sprof 0.1.16 → 0.1.17
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/core/helpers/Router.d.ts +2 -1
- package/dist/sprof.js +108 -108
- package/dist/sprof.umd.cjs +9 -9
- package/package.json +1 -1
package/dist/sprof.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var iu = Object.defineProperty;
|
|
2
2
|
var nu = (t, e, i) => e in t ? iu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
|
|
3
3
|
var a = (t, e, i) => nu(t, typeof e != "symbol" ? e + "" : e, i);
|
|
4
|
-
import { reactive as Pe, ref as P, createElementBlock as y, openBlock as m, createElementVNode as f, getCurrentInstance as su, inject as ru, onUnmounted as Br, onDeactivated as ou, onActivated as au, onBeforeMount as lt, defineComponent as R, computed as ue, mergeProps as Dt, withModifiers as De, unref as p, renderSlot as E, createTextVNode as Gi, toDisplayString as Ee, Fragment as G, normalizeStyle as k, normalizeClass as ne, mergeModels as Te, useModel as vt, withDirectives as ut, vModelCheckbox as lu, createCommentVNode as X, createVNode as A, vModelDynamic as uu, resolveComponent as N, withKeys as cu, isRef as
|
|
4
|
+
import { reactive as Pe, ref as P, createElementBlock as y, openBlock as m, createElementVNode as f, getCurrentInstance as su, inject as ru, onUnmounted as Br, onDeactivated as ou, onActivated as au, onBeforeMount as lt, defineComponent as R, computed as ue, mergeProps as Dt, withModifiers as De, unref as p, renderSlot as E, createTextVNode as Gi, toDisplayString as Ee, Fragment as G, normalizeStyle as k, normalizeClass as ne, mergeModels as Te, useModel as vt, withDirectives as ut, vModelCheckbox as lu, createCommentVNode as X, createVNode as A, vModelDynamic as uu, resolveComponent as N, withKeys as cu, isRef as Je, vModelText as Hr, watch as Ue, createBlock as U, vModelRadio as du, vShow as as, createStaticVNode as ls, useCssVars as qr, onMounted as Xt, renderList as Oe, withCtx as J, resolveDirective as Nr, nextTick as hu, Transition as Ur, onBeforeUnmount as us, onUpdated as fu, useTemplateRef as mu, resolveDynamicComponent as ui } from "vue";
|
|
5
5
|
var $e = /* @__PURE__ */ ((t) => (t.Login = "login", t.Register = "register", t.Restore = "restore", t.Refresh = "refresh", t))($e || {}), Me = /* @__PURE__ */ ((t) => (t.Primary = "primary", t.Success = "success", t.Warning = "warning", t.Error = "error", t.Info = "info", t))(Me || {});
|
|
6
6
|
class It {
|
|
7
7
|
constructor(e, i, n, s) {
|
|
@@ -478,7 +478,7 @@ class it {
|
|
|
478
478
|
localStorage.removeItem(e);
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
|
-
var
|
|
481
|
+
var Ye = /* @__PURE__ */ ((t) => (t.User = "user", t.AccessToken = "accessToken", t.RefreshToken = "refreshToken", t))(Ye || {});
|
|
482
482
|
class Ru {
|
|
483
483
|
// private accessToken?: string;
|
|
484
484
|
// private refreshToken?: string;
|
|
@@ -486,19 +486,19 @@ class Ru {
|
|
|
486
486
|
this.setAccessToken(e.accessToken), this.setRefreshToken(e.refreshToken);
|
|
487
487
|
}
|
|
488
488
|
getAccessToken() {
|
|
489
|
-
return it.Get(
|
|
489
|
+
return it.Get(Ye.AccessToken);
|
|
490
490
|
}
|
|
491
491
|
getRefreshToken() {
|
|
492
|
-
return it.Get(
|
|
492
|
+
return it.Get(Ye.RefreshToken);
|
|
493
493
|
}
|
|
494
494
|
setAccessToken(e) {
|
|
495
|
-
it.Set(
|
|
495
|
+
it.Set(Ye.AccessToken, e);
|
|
496
496
|
}
|
|
497
497
|
setRefreshToken(e) {
|
|
498
|
-
it.Set(
|
|
498
|
+
it.Set(Ye.RefreshToken, e);
|
|
499
499
|
}
|
|
500
500
|
reset() {
|
|
501
|
-
it.Remove(
|
|
501
|
+
it.Remove(Ye.AccessToken), it.Remove(Ye.RefreshToken);
|
|
502
502
|
}
|
|
503
503
|
actualize() {
|
|
504
504
|
this.setAccessToken(this.getAccessToken()), this.setRefreshToken(this.getAccessToken());
|
|
@@ -523,13 +523,13 @@ class $u {
|
|
|
523
523
|
return this.user;
|
|
524
524
|
}
|
|
525
525
|
set(e) {
|
|
526
|
-
this.userConstructor && (this.user = new this.userConstructor(e), it.Set(
|
|
526
|
+
this.userConstructor && (this.user = new this.userConstructor(e), it.Set(Ye.User, this.user));
|
|
527
527
|
}
|
|
528
528
|
reset() {
|
|
529
|
-
this.user = void 0, it.Remove(
|
|
529
|
+
this.user = void 0, it.Remove(Ye.User);
|
|
530
530
|
}
|
|
531
531
|
actualize() {
|
|
532
|
-
const e = it.Get(
|
|
532
|
+
const e = it.Get(Ye.User);
|
|
533
533
|
e && this.set(e);
|
|
534
534
|
}
|
|
535
535
|
}
|
|
@@ -673,7 +673,7 @@ var or;
|
|
|
673
673
|
throw new TypeError();
|
|
674
674
|
if (!pe(T) && !_(T) && !Ht(T))
|
|
675
675
|
throw new TypeError();
|
|
676
|
-
return Ht(T) && (T = void 0), I =
|
|
676
|
+
return Ht(T) && (T = void 0), I = et(I), Nl(v, b, I, T);
|
|
677
677
|
}
|
|
678
678
|
}
|
|
679
679
|
e("decorate", Y);
|
|
@@ -691,51 +691,51 @@ var or;
|
|
|
691
691
|
function B(v, b, I, T) {
|
|
692
692
|
if (!pe(I))
|
|
693
693
|
throw new TypeError();
|
|
694
|
-
return _(T) || (T =
|
|
694
|
+
return _(T) || (T = et(T)), Ws(v, b, I, T);
|
|
695
695
|
}
|
|
696
696
|
e("defineMetadata", B);
|
|
697
697
|
function Q(v, b, I) {
|
|
698
698
|
if (!pe(b))
|
|
699
699
|
throw new TypeError();
|
|
700
|
-
return _(I) || (I =
|
|
700
|
+
return _(I) || (I = et(I)), Ns(v, b, I);
|
|
701
701
|
}
|
|
702
702
|
e("hasMetadata", Q);
|
|
703
703
|
function je(v, b, I) {
|
|
704
704
|
if (!pe(b))
|
|
705
705
|
throw new TypeError();
|
|
706
|
-
return _(I) || (I =
|
|
706
|
+
return _(I) || (I = et(I)), xn(v, b, I);
|
|
707
707
|
}
|
|
708
708
|
e("hasOwnMetadata", je);
|
|
709
709
|
function We(v, b, I) {
|
|
710
710
|
if (!pe(b))
|
|
711
711
|
throw new TypeError();
|
|
712
|
-
return _(I) || (I =
|
|
712
|
+
return _(I) || (I = et(I)), Us(v, b, I);
|
|
713
713
|
}
|
|
714
714
|
e("getMetadata", We);
|
|
715
715
|
function yt(v, b, I) {
|
|
716
716
|
if (!pe(b))
|
|
717
717
|
throw new TypeError();
|
|
718
|
-
return _(I) || (I =
|
|
718
|
+
return _(I) || (I = et(I)), js(v, b, I);
|
|
719
719
|
}
|
|
720
720
|
e("getOwnMetadata", yt);
|
|
721
721
|
function Bt(v, b) {
|
|
722
722
|
if (!pe(v))
|
|
723
723
|
throw new TypeError();
|
|
724
|
-
return _(b) || (b =
|
|
724
|
+
return _(b) || (b = et(b)), Gs(v, b);
|
|
725
725
|
}
|
|
726
726
|
e("getMetadataKeys", Bt);
|
|
727
727
|
function Mi(v, b) {
|
|
728
728
|
if (!pe(v))
|
|
729
729
|
throw new TypeError();
|
|
730
|
-
return _(b) || (b =
|
|
730
|
+
return _(b) || (b = et(b)), Vs(v, b);
|
|
731
731
|
}
|
|
732
732
|
e("getOwnMetadataKeys", Mi);
|
|
733
733
|
function Hl(v, b, I) {
|
|
734
734
|
if (!pe(b))
|
|
735
735
|
throw new TypeError();
|
|
736
|
-
if (_(I) || (I =
|
|
736
|
+
if (_(I) || (I = et(I)), !pe(b))
|
|
737
737
|
throw new TypeError();
|
|
738
|
-
_(I) || (I =
|
|
738
|
+
_(I) || (I = et(I));
|
|
739
739
|
var T = ii(
|
|
740
740
|
b,
|
|
741
741
|
I,
|
|
@@ -918,7 +918,7 @@ var or;
|
|
|
918
918
|
function Gl(v) {
|
|
919
919
|
return "" + v;
|
|
920
920
|
}
|
|
921
|
-
function
|
|
921
|
+
function et(v) {
|
|
922
922
|
var b = jl(v);
|
|
923
923
|
return Ul(b) ? b : Gl(b);
|
|
924
924
|
}
|
|
@@ -1024,9 +1024,9 @@ var or;
|
|
|
1024
1024
|
var me = er(le);
|
|
1025
1025
|
if (!me)
|
|
1026
1026
|
return;
|
|
1027
|
-
var
|
|
1028
|
-
if (
|
|
1029
|
-
return tr(le),
|
|
1027
|
+
var Xe = Ks(me);
|
|
1028
|
+
if (Xe.isProviderFor(H, ie))
|
|
1029
|
+
return tr(le), Xe;
|
|
1030
1030
|
}
|
|
1031
1031
|
}
|
|
1032
1032
|
}
|
|
@@ -1049,8 +1049,8 @@ var or;
|
|
|
1049
1049
|
if (me !== le) {
|
|
1050
1050
|
if (!_(me))
|
|
1051
1051
|
return !1;
|
|
1052
|
-
var
|
|
1053
|
-
_(
|
|
1052
|
+
var Xe = V.get(H);
|
|
1053
|
+
_(Xe) && (Xe = new g(), V.set(H, Xe)), Xe.set(ie, le);
|
|
1054
1054
|
}
|
|
1055
1055
|
return !0;
|
|
1056
1056
|
}
|
|
@@ -1130,13 +1130,13 @@ var or;
|
|
|
1130
1130
|
);
|
|
1131
1131
|
if (_(ie))
|
|
1132
1132
|
return H;
|
|
1133
|
-
for (var le = ie.keys(), me = Qs(le),
|
|
1133
|
+
for (var le = ie.keys(), me = Qs(le), Xe = 0; ; ) {
|
|
1134
1134
|
var ir = er(me);
|
|
1135
1135
|
if (!ir)
|
|
1136
|
-
return H.length =
|
|
1136
|
+
return H.length = Xe, H;
|
|
1137
1137
|
var eu = Ks(ir);
|
|
1138
1138
|
try {
|
|
1139
|
-
H[
|
|
1139
|
+
H[Xe] = eu;
|
|
1140
1140
|
} catch (tu) {
|
|
1141
1141
|
try {
|
|
1142
1142
|
tr(me);
|
|
@@ -1144,7 +1144,7 @@ var or;
|
|
|
1144
1144
|
throw tu;
|
|
1145
1145
|
}
|
|
1146
1146
|
}
|
|
1147
|
-
|
|
1147
|
+
Xe++;
|
|
1148
1148
|
}
|
|
1149
1149
|
}
|
|
1150
1150
|
function z(F, D, H) {
|
|
@@ -2097,7 +2097,7 @@ class qi {
|
|
|
2097
2097
|
this.page = 0, this.rowsPerPage = 25, O.BuildClass(this);
|
|
2098
2098
|
}
|
|
2099
2099
|
}
|
|
2100
|
-
var
|
|
2100
|
+
var Ve = /* @__PURE__ */ ((t) => (t.Asc = "asc", t.Desc = "desc", t))(Ve || {});
|
|
2101
2101
|
class Xi {
|
|
2102
2102
|
constructor(e) {
|
|
2103
2103
|
a(this, "model", "");
|
|
@@ -2108,15 +2108,15 @@ class Xi {
|
|
|
2108
2108
|
a(this, "selected", !1);
|
|
2109
2109
|
O.BuildClass(this, e);
|
|
2110
2110
|
}
|
|
2111
|
-
static Create(e, i, n =
|
|
2111
|
+
static Create(e, i, n = Ve.Asc, s, r) {
|
|
2112
2112
|
const o = new Xi();
|
|
2113
|
-
return o.model = e.GetClassName(), o.col = i ?? "", o.order = n ??
|
|
2113
|
+
return o.model = e.GetClassName(), o.col = i ?? "", o.order = n ?? Ve.Asc, o.label = s ?? "", o.default = r ?? !1, o;
|
|
2114
2114
|
}
|
|
2115
2115
|
isAsc() {
|
|
2116
|
-
return this.order ===
|
|
2116
|
+
return this.order === Ve.Asc;
|
|
2117
2117
|
}
|
|
2118
2118
|
isDesc() {
|
|
2119
|
-
return this.order ===
|
|
2119
|
+
return this.order === Ve.Desc;
|
|
2120
2120
|
}
|
|
2121
2121
|
eq(e) {
|
|
2122
2122
|
return e.model === this.model && e.col === this.col && e.order === this.order;
|
|
@@ -2130,10 +2130,10 @@ class Xi {
|
|
|
2130
2130
|
this.model = n.get("model") ?? "", this.col = n.get("col") ?? "", this.label = n.get("label") ?? "", this.default = !!n.get("default"), this.order = n.get("order") ?? "";
|
|
2131
2131
|
}
|
|
2132
2132
|
asc() {
|
|
2133
|
-
this.order =
|
|
2133
|
+
this.order = Ve.Asc;
|
|
2134
2134
|
}
|
|
2135
2135
|
desc() {
|
|
2136
|
-
this.order =
|
|
2136
|
+
this.order = Ve.Desc;
|
|
2137
2137
|
}
|
|
2138
2138
|
}
|
|
2139
2139
|
class Yi {
|
|
@@ -2238,11 +2238,11 @@ function Kr(t, e) {
|
|
|
2238
2238
|
const { toString: qu } = Object.prototype, { getPrototypeOf: ms } = Object, { iterator: Qi, toStringTag: eo } = Symbol, Ki = /* @__PURE__ */ ((t) => (e) => {
|
|
2239
2239
|
const i = qu.call(e);
|
|
2240
2240
|
return t[i] || (t[i] = i.slice(8, -1).toLowerCase());
|
|
2241
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
2241
|
+
})(/* @__PURE__ */ Object.create(null)), Qe = (t) => (t = t.toLowerCase(), (e) => Ki(e) === t), en = (t) => (e) => typeof e === t, { isArray: Qt } = Array, hi = en("undefined");
|
|
2242
2242
|
function vi(t) {
|
|
2243
2243
|
return t !== null && !hi(t) && t.constructor !== null && !hi(t.constructor) && Be(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
2244
2244
|
}
|
|
2245
|
-
const to =
|
|
2245
|
+
const to = Qe("ArrayBuffer");
|
|
2246
2246
|
function Nu(t) {
|
|
2247
2247
|
let e;
|
|
2248
2248
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && to(t.buffer), e;
|
|
@@ -2260,11 +2260,11 @@ const Uu = en("string"), Be = en("function"), io = en("number"), yi = (t) => t !
|
|
|
2260
2260
|
} catch {
|
|
2261
2261
|
return !1;
|
|
2262
2262
|
}
|
|
2263
|
-
}, Gu =
|
|
2263
|
+
}, Gu = Qe("Date"), Vu = Qe("File"), _u = Qe("Blob"), Zu = Qe("FileList"), Ju = (t) => yi(t) && Be(t.pipe), Xu = (t) => {
|
|
2264
2264
|
let e;
|
|
2265
2265
|
return t && (typeof FormData == "function" && t instanceof FormData || Be(t.append) && ((e = Ki(t)) === "formdata" || // detect form-data instance
|
|
2266
2266
|
e === "object" && Be(t.toString) && t.toString() === "[object FormData]"));
|
|
2267
|
-
}, Yu =
|
|
2267
|
+
}, Yu = Qe("URLSearchParams"), [Qu, Ku, ec, tc] = ["ReadableStream", "Request", "Response", "Headers"].map(Qe), ic = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
2268
2268
|
function wi(t, e, { allOwnKeys: i = !1 } = {}) {
|
|
2269
2269
|
if (t === null || typeof t > "u")
|
|
2270
2270
|
return;
|
|
@@ -2344,12 +2344,12 @@ const nc = (t, e, i, { allOwnKeys: n } = {}) => (wi(e, (s, r) => {
|
|
|
2344
2344
|
for (; (i = t.exec(e)) !== null; )
|
|
2345
2345
|
n.push(i);
|
|
2346
2346
|
return n;
|
|
2347
|
-
}, hc =
|
|
2347
|
+
}, hc = Qe("HTMLFormElement"), fc = (t) => t.toLowerCase().replace(
|
|
2348
2348
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
2349
2349
|
function(i, n, s) {
|
|
2350
2350
|
return n.toUpperCase() + s;
|
|
2351
2351
|
}
|
|
2352
|
-
), lr = (({ hasOwnProperty: t }) => (e, i) => t.call(e, i))(Object.prototype), mc =
|
|
2352
|
+
), lr = (({ hasOwnProperty: t }) => (e, i) => t.call(e, i))(Object.prototype), mc = Qe("RegExp"), ro = (t, e) => {
|
|
2353
2353
|
const i = Object.getOwnPropertyDescriptors(t), n = {};
|
|
2354
2354
|
wi(i, (s, r) => {
|
|
2355
2355
|
let o;
|
|
@@ -2401,7 +2401,7 @@ const bc = (t) => {
|
|
|
2401
2401
|
return n;
|
|
2402
2402
|
};
|
|
2403
2403
|
return i(t, 0);
|
|
2404
|
-
}, Sc =
|
|
2404
|
+
}, Sc = Qe("AsyncFunction"), Cc = (t) => t && (yi(t) || Be(t)) && Be(t.then) && Be(t.catch), oo = ((t, e) => t ? setImmediate : e ? ((i, n) => (Rt.addEventListener("message", ({ source: s, data: r }) => {
|
|
2405
2405
|
s === Rt && r === i && n.length && n.shift()();
|
|
2406
2406
|
}, !1), (s) => {
|
|
2407
2407
|
n.push(s), Rt.postMessage(i, "*");
|
|
@@ -2442,7 +2442,7 @@ const bc = (t) => {
|
|
|
2442
2442
|
inherits: rc,
|
|
2443
2443
|
toFlatObject: oc,
|
|
2444
2444
|
kindOf: Ki,
|
|
2445
|
-
kindOfTest:
|
|
2445
|
+
kindOfTest: Qe,
|
|
2446
2446
|
endsWith: ac,
|
|
2447
2447
|
toArray: lc,
|
|
2448
2448
|
forEachEntry: cc,
|
|
@@ -3629,7 +3629,7 @@ function hd(t, e, i) {
|
|
|
3629
3629
|
const Fi = {
|
|
3630
3630
|
assertOptions: hd,
|
|
3631
3631
|
validators: sn
|
|
3632
|
-
},
|
|
3632
|
+
}, tt = Fi.validators;
|
|
3633
3633
|
let $t = class {
|
|
3634
3634
|
constructor(e) {
|
|
3635
3635
|
this.defaults = e || {}, this.interceptors = {
|
|
@@ -3666,17 +3666,17 @@ let $t = class {
|
|
|
3666
3666
|
typeof e == "string" ? (i = i || {}, i.url = e) : i = e || {}, i = Tt(this.defaults, i);
|
|
3667
3667
|
const { transitional: n, paramsSerializer: s, headers: r } = i;
|
|
3668
3668
|
n !== void 0 && Fi.assertOptions(n, {
|
|
3669
|
-
silentJSONParsing:
|
|
3670
|
-
forcedJSONParsing:
|
|
3671
|
-
clarifyTimeoutError:
|
|
3669
|
+
silentJSONParsing: tt.transitional(tt.boolean),
|
|
3670
|
+
forcedJSONParsing: tt.transitional(tt.boolean),
|
|
3671
|
+
clarifyTimeoutError: tt.transitional(tt.boolean)
|
|
3672
3672
|
}, !1), s != null && (S.isFunction(s) ? i.paramsSerializer = {
|
|
3673
3673
|
serialize: s
|
|
3674
3674
|
} : Fi.assertOptions(s, {
|
|
3675
|
-
encode:
|
|
3676
|
-
serialize:
|
|
3675
|
+
encode: tt.function,
|
|
3676
|
+
serialize: tt.function
|
|
3677
3677
|
}, !0)), i.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? i.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : i.allowAbsoluteUrls = !0), Fi.assertOptions(i, {
|
|
3678
|
-
baseUrl:
|
|
3679
|
-
withXsrfToken:
|
|
3678
|
+
baseUrl: tt.spelling("baseURL"),
|
|
3679
|
+
withXsrfToken: tt.spelling("withXSRFToken")
|
|
3680
3680
|
}, !0), i.method = (i.method || this.defaults.method || "get").toLowerCase();
|
|
3681
3681
|
let o = r && S.merge(
|
|
3682
3682
|
r.common,
|
|
@@ -4140,7 +4140,7 @@ const ae = class ae {
|
|
|
4140
4140
|
return o || "file";
|
|
4141
4141
|
}
|
|
4142
4142
|
static getHeaders(e) {
|
|
4143
|
-
const i = it.Get(
|
|
4143
|
+
const i = it.Get(Ye.AccessToken);
|
|
4144
4144
|
return e || (e = ae.headers), i && (e[Xn.Token] = i), e ?? ae.headers;
|
|
4145
4145
|
}
|
|
4146
4146
|
static returnResponse(e, i) {
|
|
@@ -4227,9 +4227,9 @@ const ys = /* @__PURE__ */ $(yd, [["render", bd]]), Sd = [
|
|
|
4227
4227
|
name: "NotFound",
|
|
4228
4228
|
component: ys
|
|
4229
4229
|
}
|
|
4230
|
-
],
|
|
4231
|
-
static Set(e) {
|
|
4232
|
-
this.router = e, this.AddRoutes(Sd);
|
|
4230
|
+
], Ge = class Ge {
|
|
4231
|
+
static Set(e, i = "") {
|
|
4232
|
+
this.router = e, this.title = i, this.AddRoutes(Sd);
|
|
4233
4233
|
}
|
|
4234
4234
|
static Get() {
|
|
4235
4235
|
return this.router;
|
|
@@ -4248,16 +4248,16 @@ const ys = /* @__PURE__ */ $(yd, [["render", bd]]), Sd = [
|
|
|
4248
4248
|
await this.Get().replace(e);
|
|
4249
4249
|
}
|
|
4250
4250
|
static Id() {
|
|
4251
|
-
return
|
|
4251
|
+
return Ge.GetStringParam("id");
|
|
4252
4252
|
}
|
|
4253
4253
|
static Slug() {
|
|
4254
|
-
return
|
|
4254
|
+
return Ge.GetStringParam("slug");
|
|
4255
4255
|
}
|
|
4256
4256
|
static async Back() {
|
|
4257
4257
|
this.Get().go(-1);
|
|
4258
4258
|
}
|
|
4259
4259
|
static GetQid() {
|
|
4260
|
-
return
|
|
4260
|
+
return Ge.GetStringQueryParam("qid");
|
|
4261
4261
|
}
|
|
4262
4262
|
static Route() {
|
|
4263
4263
|
var e;
|
|
@@ -4269,7 +4269,7 @@ const ys = /* @__PURE__ */ $(yd, [["render", bd]]), Sd = [
|
|
|
4269
4269
|
}
|
|
4270
4270
|
static GetPath() {
|
|
4271
4271
|
var i;
|
|
4272
|
-
const e = (i =
|
|
4272
|
+
const e = (i = Ge.Route()) == null ? void 0 : i.path.split("/");
|
|
4273
4273
|
return !e || e.length <= 0 ? "" : e[e.length - 1];
|
|
4274
4274
|
}
|
|
4275
4275
|
static async ToAdmin(e) {
|
|
@@ -4278,7 +4278,7 @@ const ys = /* @__PURE__ */ $(yd, [["render", bd]]), Sd = [
|
|
|
4278
4278
|
return;
|
|
4279
4279
|
}
|
|
4280
4280
|
let i = e;
|
|
4281
|
-
i[0] === "/" && (i = e.substring(1)), await
|
|
4281
|
+
i[0] === "/" && (i = e.substring(1)), await Ge.To(`/admin/${i}`);
|
|
4282
4282
|
}
|
|
4283
4283
|
static GetStringQueryParam(e) {
|
|
4284
4284
|
return String(this.Route().query[e]);
|
|
@@ -4298,11 +4298,11 @@ const ys = /* @__PURE__ */ $(yd, [["render", bd]]), Sd = [
|
|
|
4298
4298
|
return this.Get().resolve(e);
|
|
4299
4299
|
}
|
|
4300
4300
|
};
|
|
4301
|
-
a(
|
|
4302
|
-
|
|
4303
|
-
i &&
|
|
4301
|
+
a(Ge, "router"), a(Ge, "title", ""), a(Ge, "ChangeDocumentTitle", (e = "") => {
|
|
4302
|
+
const i = Ge.Route().meta.title ?? e;
|
|
4303
|
+
i && (document.title = Ge.title + i);
|
|
4304
4304
|
});
|
|
4305
|
-
let ot =
|
|
4305
|
+
let ot = Ge;
|
|
4306
4306
|
class he {
|
|
4307
4307
|
constructor(e, i) {
|
|
4308
4308
|
a(this, "items", Pe([]));
|
|
@@ -4473,7 +4473,7 @@ class Md {
|
|
|
4473
4473
|
}
|
|
4474
4474
|
}
|
|
4475
4475
|
function Ro(t, e) {
|
|
4476
|
-
const i = [], n = e ||
|
|
4476
|
+
const i = [], n = e || Ve.Asc, s = n === Ve.Asc ? Ve.Desc : Ve.Asc;
|
|
4477
4477
|
return Object.values(t).forEach((r) => {
|
|
4478
4478
|
i.push(r(n)), i.push(r(s));
|
|
4479
4479
|
}), i.length > 0 && !i.some((r) => r.default) && (i[0].default = !0), e && i.forEach((r) => {
|
|
@@ -5424,7 +5424,7 @@ let Bo = (Ne = class {
|
|
|
5424
5424
|
}, a(Ne, "Auth", th), a(Ne, "Contacts", sh), a(Ne, "Emails", oh), a(Ne, "FileInfos", new he(ze, "file-infos")), a(Ne, "FTSPPresets", lh), a(Ne, "Humans", ch), a(Ne, "Phones", hh), a(Ne, "Schemas", vh), a(Ne, "UserAccounts", Ch), a(Ne, "ValueTypes", Mh), a(Ne, "Search", Kn), Ne);
|
|
5425
5425
|
var Ss = /* @__PURE__ */ ((t) => (t.XS = "xs", t.S = "s", t.M = "m", t.L = "l", t.XL = "xl", t))(Ss || {}), wt;
|
|
5426
5426
|
let kh = (wt = class {
|
|
5427
|
-
}, a(wt, "Orders",
|
|
5427
|
+
}, a(wt, "Orders", Ve), a(wt, "Sizes", Ss), a(wt, "Statuses", Me), a(wt, "DataTypes", be), a(wt, "ValueTypes", Re), a(wt, "Operators", ce), wt);
|
|
5428
5428
|
const Ih = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5429
5429
|
__proto__: null
|
|
5430
5430
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -7212,7 +7212,7 @@ const Fn = /* @__PURE__ */ new WeakMap(), Rm = (t, e) => {
|
|
|
7212
7212
|
}, [
|
|
7213
7213
|
A(d, {
|
|
7214
7214
|
modelValue: p(r),
|
|
7215
|
-
"onUpdate:modelValue": c[0] || (c[0] = (h) =>
|
|
7215
|
+
"onUpdate:modelValue": c[0] || (c[0] = (h) => Je(r) ? r.value = h : null),
|
|
7216
7216
|
mask: "##.##.####",
|
|
7217
7217
|
placeholder: t.placeholder,
|
|
7218
7218
|
margin: t.margin,
|
|
@@ -7350,7 +7350,7 @@ const Fn = /* @__PURE__ */ new WeakMap(), Rm = (t, e) => {
|
|
|
7350
7350
|
], 2)
|
|
7351
7351
|
]),
|
|
7352
7352
|
ut(f("input", Dt(C.$attrs, {
|
|
7353
|
-
"onUpdate:modelValue": M[0] || (M[0] = (L) =>
|
|
7353
|
+
"onUpdate:modelValue": M[0] || (M[0] = (L) => Je(l) ? l.value = L : null),
|
|
7354
7354
|
class: "input-field",
|
|
7355
7355
|
type: "number",
|
|
7356
7356
|
disabled: t.disabled,
|
|
@@ -8548,13 +8548,13 @@ const Cg = { class: "container" }, xg = { class: "slide-box" }, Mg = { class: "i
|
|
|
8548
8548
|
return m(), y("div", Pg, [
|
|
8549
8549
|
A(d, {
|
|
8550
8550
|
"model-value": p(s),
|
|
8551
|
-
"onUpdate:modelValue": c[0] || (c[0] = (h) =>
|
|
8551
|
+
"onUpdate:modelValue": c[0] || (c[0] = (h) => Je(s) ? s.value = h : null),
|
|
8552
8552
|
onChange: o
|
|
8553
8553
|
}, null, 8, ["model-value"]),
|
|
8554
8554
|
c[2] || (c[2] = Gi(" - ", -1)),
|
|
8555
8555
|
A(d, {
|
|
8556
8556
|
"model-value": p(r),
|
|
8557
|
-
"onUpdate:modelValue": c[1] || (c[1] = (h) =>
|
|
8557
|
+
"onUpdate:modelValue": c[1] || (c[1] = (h) => Je(r) ? r.value = h : null),
|
|
8558
8558
|
onChange: l
|
|
8559
8559
|
}, null, 8, ["model-value"])
|
|
8560
8560
|
]);
|
|
@@ -8632,7 +8632,7 @@ const Ca = /* @__PURE__ */ $(Tg, [["render", Og], ["__scopeId", "data-v-d28c6f33
|
|
|
8632
8632
|
const u = N("PCheckBox");
|
|
8633
8633
|
return m(), U(u, {
|
|
8634
8634
|
modelValue: p(n),
|
|
8635
|
-
"onUpdate:modelValue": l[0] || (l[0] = (c) =>
|
|
8635
|
+
"onUpdate:modelValue": l[0] || (l[0] = (c) => Je(n) ? n.value = c : null),
|
|
8636
8636
|
label: t.model.label,
|
|
8637
8637
|
size: "mini",
|
|
8638
8638
|
onChange: r
|
|
@@ -8729,7 +8729,7 @@ const Ca = /* @__PURE__ */ $(Tg, [["render", Og], ["__scopeId", "data-v-d28c6f33
|
|
|
8729
8729
|
const c = N("PSelect");
|
|
8730
8730
|
return m(), U(c, {
|
|
8731
8731
|
modelValue: p(s),
|
|
8732
|
-
"onUpdate:modelValue": u[0] || (u[0] = (d) =>
|
|
8732
|
+
"onUpdate:modelValue": u[0] || (u[0] = (d) => Je(s) ? s.value = d : null),
|
|
8733
8733
|
clearable: p(s),
|
|
8734
8734
|
placeholder: t.defaultLabel,
|
|
8735
8735
|
onChange: o
|
|
@@ -9218,7 +9218,7 @@ const Ca = /* @__PURE__ */ $(Tg, [["render", Og], ["__scopeId", "data-v-d28c6f33
|
|
|
9218
9218
|
}, [
|
|
9219
9219
|
A(pn, {
|
|
9220
9220
|
modelValue: p(s),
|
|
9221
|
-
"onUpdate:modelValue": d[0] || (d[0] = (h) =>
|
|
9221
|
+
"onUpdate:modelValue": d[0] || (d[0] = (h) => Je(s) ? s.value = h : null),
|
|
9222
9222
|
placeholder: "Найти",
|
|
9223
9223
|
onInput: o
|
|
9224
9224
|
}, {
|
|
@@ -9528,7 +9528,7 @@ const Oa = /* @__PURE__ */ $(a1, [["render", l1], ["__scopeId", "data-v-0f1f2f84
|
|
|
9528
9528
|
ref_key: "searchForm",
|
|
9529
9529
|
ref: r,
|
|
9530
9530
|
modelValue: p(s),
|
|
9531
|
-
"onUpdate:modelValue": h[0] || (h[0] = (g) =>
|
|
9531
|
+
"onUpdate:modelValue": h[0] || (h[0] = (g) => Je(s) ? s.value = g : null),
|
|
9532
9532
|
maxHeightResultList: t.maxHeightResultList,
|
|
9533
9533
|
zIndexResultList: t.zIndexResultList,
|
|
9534
9534
|
boxShadowResultList: t.boxShadowResultList,
|
|
@@ -9838,7 +9838,7 @@ const Oa = /* @__PURE__ */ $(a1, [["render", l1], ["__scopeId", "data-v-0f1f2f84
|
|
|
9838
9838
|
return p(i) ? (m(), U(c, {
|
|
9839
9839
|
key: 0,
|
|
9840
9840
|
modelValue: p(s),
|
|
9841
|
-
"onUpdate:modelValue": u[0] || (u[0] = (h) =>
|
|
9841
|
+
"onUpdate:modelValue": u[0] || (u[0] = (h) => Je(s) ? s.value = h : null),
|
|
9842
9842
|
"popper-append-to-body": !1,
|
|
9843
9843
|
clearable: !((d = p(s)) != null && d.default),
|
|
9844
9844
|
"value-key": "label",
|
|
@@ -9880,7 +9880,7 @@ const Oa = /* @__PURE__ */ $(a1, [["render", l1], ["__scopeId", "data-v-0f1f2f84
|
|
|
9880
9880
|
const u = N("PSelect");
|
|
9881
9881
|
return m(), U(u, {
|
|
9882
9882
|
modelValue: p(n),
|
|
9883
|
-
"onUpdate:modelValue": l[0] || (l[0] = (d) =>
|
|
9883
|
+
"onUpdate:modelValue": l[0] || (l[0] = (d) => Je(n) ? n.value = d : null),
|
|
9884
9884
|
"popper-append-to-body": !1,
|
|
9885
9885
|
clearable: !((c = p(n)) != null && c.default),
|
|
9886
9886
|
"value-key": "label",
|
|
@@ -11565,14 +11565,14 @@ function re(t) {
|
|
|
11565
11565
|
for (var e = 1; e < arguments.length; e++) {
|
|
11566
11566
|
var i = arguments[e] != null ? arguments[e] : {};
|
|
11567
11567
|
e % 2 ? $r(Object(i), !0).forEach(function(n) {
|
|
11568
|
-
|
|
11568
|
+
_e(t, n, i[n]);
|
|
11569
11569
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : $r(Object(i)).forEach(function(n) {
|
|
11570
11570
|
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(i, n));
|
|
11571
11571
|
});
|
|
11572
11572
|
}
|
|
11573
11573
|
return t;
|
|
11574
11574
|
}
|
|
11575
|
-
function
|
|
11575
|
+
function _e(t, e, i) {
|
|
11576
11576
|
return e in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
11577
11577
|
}
|
|
11578
11578
|
function Op(t, e) {
|
|
@@ -11642,7 +11642,7 @@ var Ar, Fp, $i, ye = (Ar = function(t) {
|
|
|
11642
11642
|
return function() {
|
|
11643
11643
|
throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
|
|
11644
11644
|
}(e == null && $i.path);
|
|
11645
|
-
} }, $i.exports), $i.exports),
|
|
11645
|
+
} }, $i.exports), $i.exports), Ke = function(t) {
|
|
11646
11646
|
return function(e, i) {
|
|
11647
11647
|
if (!e) return t;
|
|
11648
11648
|
var n;
|
|
@@ -11807,11 +11807,11 @@ Ds.render = function(t, e, i, n, s, r) {
|
|
|
11807
11807
|
return r.onMouseLeave && r.onMouseLeave.apply(r, arguments);
|
|
11808
11808
|
}) }, [E(t.$slots, "default")], 34);
|
|
11809
11809
|
};
|
|
11810
|
-
var Dn =
|
|
11810
|
+
var Dn = Ke("vue-handler-wrapper"), Ml = { name: "HandlerWrapper", components: { DraggableElement: Ds }, props: { horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: !1 } }, computed: { classes: function() {
|
|
11811
11811
|
var t;
|
|
11812
11812
|
if (this.horizontalPosition || this.verticalPosition) {
|
|
11813
11813
|
var e, i = bl(this.horizontalPosition, this.verticalPosition);
|
|
11814
|
-
t = Dn((
|
|
11814
|
+
t = Dn((_e(e = {}, i.classname, !0), _e(e, "disabled", this.disabled), e));
|
|
11815
11815
|
} else t = Dn({ disabled: this.disabled });
|
|
11816
11816
|
return { root: t, draggable: Dn("draggable") };
|
|
11817
11817
|
} }, emits: ["leave", "enter", "drag", "drag-end"] };
|
|
@@ -11829,9 +11829,9 @@ Ml.render = function(t, e, i, n, s, r) {
|
|
|
11829
11829
|
return [E(t.$slots, "default")];
|
|
11830
11830
|
}), _: 3 }, 8, ["class"])], 2);
|
|
11831
11831
|
};
|
|
11832
|
-
var Bp =
|
|
11832
|
+
var Bp = Ke("vue-line-wrapper"), kl = { name: "LineWrapper", components: { DraggableElement: Ds }, props: { position: { type: String, required: !0 }, disabled: { type: Boolean, default: !1 } }, computed: { classname: function() {
|
|
11833
11833
|
var t;
|
|
11834
|
-
return Bp((
|
|
11834
|
+
return Bp((_e(t = {}, this.position, !0), _e(t, "disabled", this.disabled), t));
|
|
11835
11835
|
} }, emits: ["leave", "enter", "drag", "drag-end"] };
|
|
11836
11836
|
kl.render = function(t, e, i, n, s, r) {
|
|
11837
11837
|
var o = N("DraggableElement");
|
|
@@ -11878,7 +11878,7 @@ function bn(t) {
|
|
|
11878
11878
|
function qe(t, e) {
|
|
11879
11879
|
return j(j({}, t), { left: t.left + e.left, top: t.top + e.top });
|
|
11880
11880
|
}
|
|
11881
|
-
function
|
|
11881
|
+
function Ze(t, e, i, n) {
|
|
11882
11882
|
if (e !== 1) {
|
|
11883
11883
|
if (i) {
|
|
11884
11884
|
var s = ke(t);
|
|
@@ -11985,8 +11985,8 @@ function Gp(t) {
|
|
|
11985
11985
|
t.stencilReference;
|
|
11986
11986
|
var u, c, d, h = j({}, n), g = j({}, s), w = j({}, r);
|
|
11987
11987
|
u = oe(w), c = oe(h), d === void 0 && (d = 1e-3), (u === 0 || c === 0 ? Math.abs(c - u) < d : Math.abs(c / u) < 1 + d && Math.abs(c / u) > 1 - d) || (h = j(j({}, h), mt({ sizeRestrictions: o, width: h.width, height: h.height, aspectRatio: { minimum: oe(w), maximum: oe(w) } })));
|
|
11988
|
-
var x = Sn(g =
|
|
11989
|
-
return x !== 1 && (g =
|
|
11988
|
+
var x = Sn(g = Ze(g, h.width * i.width / (g.width * w.width)), e({ visibleArea: g, type: "resize" }));
|
|
11989
|
+
return x !== 1 && (g = Ze(g, x), h = Ze(h, x)), g = Ie(g = qe(g, _t(ke(h), ke(g))), e({ visibleArea: g, type: "move" })), { coordinates: h = Ie(h, Cn(at(g), l)), visibleArea: g };
|
|
11990
11990
|
}
|
|
11991
11991
|
function Vp(t) {
|
|
11992
11992
|
var e = t.event, i = t.getAreaRestrictions, n = t.boundaries, s = t.coordinates, r = t.visibleArea;
|
|
@@ -11997,8 +11997,8 @@ function Vp(t) {
|
|
|
11997
11997
|
if (s && r && e.type !== "manipulateImage") {
|
|
11998
11998
|
var c = { width: 0, height: 0 };
|
|
11999
11999
|
u.width, n.width, oe(n) > oe(l) ? (c.height = 0.8 * n.height, c.width = c.height * oe(l)) : (c.width = 0.8 * n.width, c.height = c.width * oe(l));
|
|
12000
|
-
var d = Sn(u =
|
|
12001
|
-
u =
|
|
12000
|
+
var d = Sn(u = Ze(u, l.width * n.width / (u.width * c.width)), i({ visibleArea: u, type: "resize" }));
|
|
12001
|
+
u = Ze(u, d), d !== 1 && (c.height /= d, c.width /= d), u = Ie(u = qe(u, _t(ke(l), ke(u))), i({ visibleArea: u, type: "move" })), l = Ie(l, Cn(at(u), o));
|
|
12002
12002
|
}
|
|
12003
12003
|
return { coordinates: l, visibleArea: u };
|
|
12004
12004
|
}
|
|
@@ -12006,7 +12006,7 @@ function _p(t) {
|
|
|
12006
12006
|
var e = t.event, i = t.coordinates, n = t.visibleArea, s = t.getAreaRestrictions, r = j({}, n), o = j({}, i);
|
|
12007
12007
|
if (e.type === "setCoordinates") {
|
|
12008
12008
|
var l = Math.max(0, o.width - r.width), u = Math.max(0, o.height - r.height);
|
|
12009
|
-
l > u ? r =
|
|
12009
|
+
l > u ? r = Ze(r, Math.min(o.width / r.width, Zt(r, s({ visibleArea: r, type: "resize" })))) : u > l && (r = Ze(r, Math.min(o.height / r.height, Zt(r, s({ visibleArea: r, type: "resize" }))))), r = Ie(r = qe(r, bn(Jt(o, at(r)))), s({ visibleArea: r, type: "move" }));
|
|
12010
12010
|
}
|
|
12011
12011
|
return { visibleArea: r, coordinates: o };
|
|
12012
12012
|
}
|
|
@@ -12038,13 +12038,13 @@ function Qp(t) {
|
|
|
12038
12038
|
var e = t.event, i = t.coordinates, n = t.visibleArea, s = t.sizeRestrictions, r = t.getAreaRestrictions, o = t.positionRestrictions, l = t.adjustStencil, u = e.scale, c = e.move, d = j({}, n), h = j({}, i), g = 1, w = 1, x = u.factor && Math.abs(u.factor - 1) > 1e-3;
|
|
12039
12039
|
d = qe(d, { left: c.left || 0, top: c.top || 0 });
|
|
12040
12040
|
var C = { 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, Zt(h, o)) }, area: { maximum: Zt(d, r({ visibleArea: d, type: "resize" })) } };
|
|
12041
|
-
u.factor && x && (u.factor < 1 ? (w = Math.max(u.factor, C.stencil.minimum)) > 1 && (w = 1) : u.factor > 1 && (w = Math.min(u.factor, Math.min(C.area.maximum, C.stencil.maximum))) < 1 && (w = 1)), w && (d =
|
|
12041
|
+
u.factor && x && (u.factor < 1 ? (w = Math.max(u.factor, C.stencil.minimum)) > 1 && (w = 1) : u.factor > 1 && (w = Math.min(u.factor, Math.min(C.area.maximum, C.stencil.maximum))) < 1 && (w = 1)), w && (d = Ze(d, w, u.center));
|
|
12042
12042
|
var M = i.left - n.left, L = n.width + n.left - (i.width + i.left), Y = i.top - n.top, W = n.height + n.top - (i.height + i.top);
|
|
12043
|
-
return d = Ie(d = qe(d, Jt(d, { left: o.left !== void 0 ? o.left - M * w : void 0, top: o.top !== void 0 ? o.top - Y * w : void 0, bottom: o.bottom !== void 0 ? o.bottom + W * w : void 0, right: o.right !== void 0 ? o.right + L * w : void 0 })), r({ visibleArea: d, type: "move" })), h.width = h.width * w, h.height = h.height * w, h.left = d.left + M * w, h.top = d.top + Y * w, h = Ie(h, Cn(at(d), o)), u.factor && x && l && (u.factor > 1 ? g = Math.min(C.area.maximum, u.factor) / w : u.factor < 1 && (g = Math.max(h.height / d.height, h.width / d.width, u.factor / w)), g !== 1 && (d = qe(d = Ie(d =
|
|
12043
|
+
return d = Ie(d = qe(d, Jt(d, { left: o.left !== void 0 ? o.left - M * w : void 0, top: o.top !== void 0 ? o.top - Y * w : void 0, bottom: o.bottom !== void 0 ? o.bottom + W * w : void 0, right: o.right !== void 0 ? o.right + L * w : void 0 })), r({ visibleArea: d, type: "move" })), h.width = h.width * w, h.height = h.height * w, h.left = d.left + M * w, h.top = d.top + Y * w, h = Ie(h, Cn(at(d), o)), u.factor && x && l && (u.factor > 1 ? g = Math.min(C.area.maximum, u.factor) / w : u.factor < 1 && (g = Math.max(h.height / d.height, h.width / d.width, u.factor / w)), g !== 1 && (d = qe(d = Ie(d = Ze(d, g, u.factor > 1 ? u.center : ke(h)), r({ visibleArea: d, type: "move" })), bn(Jt(h, at(d)))))), { coordinates: h, visibleArea: d };
|
|
12044
12044
|
}
|
|
12045
12045
|
function Kp(t) {
|
|
12046
12046
|
var e = t.aspectRatio, i = t.getAreaRestrictions, n = t.coordinates, s = t.visibleArea, r = t.sizeRestrictions, o = t.positionRestrictions, l = t.imageSize, u = t.previousImageSize, c = t.angle, d = j({}, n), h = j({}, s), g = Ct(ke(j({ left: 0, top: 0 }, u)), c);
|
|
12047
|
-
return (d = j(j({}, mt({ sizeRestrictions: r, aspectRatio: e, width: d.width, height: d.height })), Ct(ke(d), c))).left -= g.left - l.width / 2 + d.width / 2, d.top -= g.top - l.height / 2 + d.height / 2, h =
|
|
12047
|
+
return (d = j(j({}, mt({ sizeRestrictions: r, aspectRatio: e, width: d.width, height: d.height })), Ct(ke(d), c))).left -= g.left - l.width / 2 + d.width / 2, d.top -= g.top - l.height / 2 + d.height / 2, h = Ze(h, Sn(h, i({ visibleArea: h, type: "resize" }))), { coordinates: d = Ie(d, o), visibleArea: h = Ie(h = qe(h, _t(ke(d), ke(n))), i({ visibleArea: h, type: "move" })) };
|
|
12048
12048
|
}
|
|
12049
12049
|
function e0(t) {
|
|
12050
12050
|
var e = t.flip, i = t.previousFlip, n = t.rotate, s = t.getAreaRestrictions, r = t.coordinates, o = t.visibleArea, l = t.imageSize, u = j({}, r), c = j({}, o), d = i.horizontal !== e.horizontal, h = i.vertical !== e.vertical;
|
|
@@ -12088,10 +12088,10 @@ function Lr(t) {
|
|
|
12088
12088
|
function Ei(t, e, i) {
|
|
12089
12089
|
return e == 0 && i == 0 ? t / 2 : e == 0 ? 0 : i == 0 ? t : t * Math.abs(e / (e + i));
|
|
12090
12090
|
}
|
|
12091
|
-
var t0 =
|
|
12091
|
+
var t0 = Ke("vue-simple-handler"), i0 = Ke("vue-simple-handler-wrapper"), Bs = { name: "SimpleHandler", components: { HandlerWrapper: Ml }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
|
|
12092
12092
|
return { hover: !1 };
|
|
12093
12093
|
}, computed: { classes: function() {
|
|
12094
|
-
var t, e = (
|
|
12094
|
+
var t, e = (_e(t = {}, this.horizontalPosition, !!this.horizontalPosition), _e(t, this.verticalPosition, !!this.verticalPosition), _e(t, "".concat(this.horizontalPosition, "-").concat(this.verticalPosition), !!(this.verticalPosition && this.horizontalPosition)), _e(t, "hover", this.hover), t);
|
|
12095
12095
|
return { default: ye(t0(e), this.defaultClass, this.hover && this.hoverClass), wrapper: ye(i0(e), this.wrapperClass) };
|
|
12096
12096
|
} }, methods: { onDrag: function(t) {
|
|
12097
12097
|
this.$emit("drag", t);
|
|
@@ -12108,10 +12108,10 @@ Bs.render = function(t, e, i, n, s, r) {
|
|
|
12108
12108
|
return [A("div", { class: r.classes.default }, null, 2)];
|
|
12109
12109
|
}), _: 1 }, 8, ["class", "vertical-position", "horizontal-position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
|
|
12110
12110
|
};
|
|
12111
|
-
var n0 =
|
|
12111
|
+
var n0 = Ke("vue-simple-line"), s0 = Ke("vue-simple-line-wrapper"), Hs = { name: "SimpleLine", components: { LineWrapper: kl }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, position: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
|
|
12112
12112
|
return { hover: !1 };
|
|
12113
12113
|
}, computed: { classes: function() {
|
|
12114
|
-
return { root: ye(n0(
|
|
12114
|
+
return { root: ye(n0(_e({}, this.position, !0)), this.defaultClass, this.hover && this.hoverClass), wrapper: ye(s0(_e({}, this.position, !0)), this.wrapperClass) };
|
|
12115
12115
|
} }, methods: { onDrag: function(t) {
|
|
12116
12116
|
this.$emit("drag", t);
|
|
12117
12117
|
}, onEnter: function() {
|
|
@@ -12127,7 +12127,7 @@ Hs.render = function(t, e, i, n, s, r) {
|
|
|
12127
12127
|
return [A("div", { class: r.classes.root }, null, 2)];
|
|
12128
12128
|
}), _: 1 }, 8, ["class", "position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
|
|
12129
12129
|
};
|
|
12130
|
-
var Hn =
|
|
12130
|
+
var Hn = Ke("vue-bounding-box"), r0 = ["east", "west", null], o0 = ["south", "north", null], Al = { name: "BoundingBox", props: { width: { type: Number }, height: { type: Number }, transitions: { type: Object }, handlers: { type: Object, default: function() {
|
|
12131
12131
|
return { eastNorth: !0, north: !0, westNorth: !0, west: !0, westSouth: !0, south: !0, eastSouth: !0, east: !0 };
|
|
12132
12132
|
} }, handlersComponent: { type: [Object, String], default: function() {
|
|
12133
12133
|
return Bs;
|
|
@@ -12172,7 +12172,7 @@ var Hn = Qe("vue-bounding-box"), r0 = ["east", "west", null], o0 = ["south", "no
|
|
|
12172
12172
|
if (i && n) {
|
|
12173
12173
|
var o = s.horizontalDirection, l = s.verticalDirection, u = o === "east" ? i : o === "west" ? 0 : i / 2, c = l === "south" ? n : l === "north" ? 0 : n / 2;
|
|
12174
12174
|
r.wrapperClass = Hn("handler"), r.wrapperStyle = { transform: "translate(".concat(u, "px, ").concat(c, "px)") }, t.transitions && t.transitions.enabled && (r.wrapperStyle.transition = "".concat(t.transitions.time, "ms ").concat(t.transitions.timingFunction));
|
|
12175
|
-
} else r.wrapperClass = Hn("handler",
|
|
12175
|
+
} else r.wrapperClass = Hn("handler", _e({}, s.classname, !0));
|
|
12176
12176
|
e.push(r);
|
|
12177
12177
|
}
|
|
12178
12178
|
}), e;
|
|
@@ -12203,7 +12203,7 @@ Al.render = function(t, e, i, n, s, r) {
|
|
|
12203
12203
|
}) }, null, 8, ["default-class", "hover-class", "wrapper-class", "horizontal-position", "vertical-position", "disabled", "onDrag"]))], 6);
|
|
12204
12204
|
}), 128))], 6);
|
|
12205
12205
|
};
|
|
12206
|
-
var a0 =
|
|
12206
|
+
var a0 = Ke("vue-draggable-area"), Pl = { name: "DraggableArea", props: { movable: { type: Boolean, default: !0 }, activationDistance: { type: Number, default: 20 } }, computed: { classnames: function() {
|
|
12207
12207
|
return { default: a0() };
|
|
12208
12208
|
} }, beforeMount: function() {
|
|
12209
12209
|
window.addEventListener("mouseup", this.onMouseUp, { passive: !1 }), window.addEventListener("mousemove", this.onMouseMove, { passive: !1 }), window.addEventListener("touchmove", this.onTouchMove, { passive: !1 }), window.addEventListener("touchend", this.onTouchEnd, { passive: !1 });
|
|
@@ -12405,7 +12405,7 @@ os.render = function(t, e, i, n, s, r) {
|
|
|
12405
12405
|
return [E(t.$slots, "default")];
|
|
12406
12406
|
}), _: 3 }, 8, ["touch-move", "touch-resize", "mouse-move", "wheel-resize"]);
|
|
12407
12407
|
};
|
|
12408
|
-
var Ti =
|
|
12408
|
+
var Ti = Ke("vue-preview"), zl = { props: { coordinates: { type: Object }, transitions: { type: Object }, image: { type: Object, default: function() {
|
|
12409
12409
|
return {};
|
|
12410
12410
|
} }, imageClass: { type: String }, width: { type: Number }, height: { type: Number }, fill: { type: Boolean } }, data: function() {
|
|
12411
12411
|
return { calculatedImageSize: { width: 0, height: 0 }, calculatedSize: { width: 0, height: 0 } };
|
|
@@ -12456,7 +12456,7 @@ Ol.render = function(t, e, i, n, s, r) {
|
|
|
12456
12456
|
var o = N("preview");
|
|
12457
12457
|
return m(), U(o, Dt(t.$attrs, { fill: !0 }), null, 16);
|
|
12458
12458
|
};
|
|
12459
|
-
var Nn =
|
|
12459
|
+
var Nn = Ke("vue-rectangle-stencil"), Fl = { name: "RectangleStencil", components: { StencilPreview: Ol, BoundingBox: Al, DraggableArea: Pl }, props: { image: { type: Object }, coordinates: { type: Object }, stencilCoordinates: { type: Object }, handlers: { type: Object }, handlersComponent: { type: [Object, String], default: function() {
|
|
12460
12460
|
return Bs;
|
|
12461
12461
|
} }, lines: { type: Object }, linesComponent: { type: [Object, String], default: function() {
|
|
12462
12462
|
return Hs;
|
|
@@ -12494,7 +12494,7 @@ Fl.render = function(t, e, i, n, s, r) {
|
|
|
12494
12494
|
}), _: 1 }, 8, ["movable", "onMove", "onMoveEnd"])];
|
|
12495
12495
|
}), _: 1 }, 8, ["width", "height", "transitions", "class", "handlers", "handlers-component", "handlers-classes", "handlers-wrappers-classes", "lines", "lines-component", "lines-classes", "lines-wrappers-classes", "resizable", "onResize", "onResizeEnd"])], 6);
|
|
12496
12496
|
};
|
|
12497
|
-
var c0 = ["transitions"], ct =
|
|
12497
|
+
var c0 = ["transitions"], ct = Ke("vue-advanced-cropper"), Ll = { name: "Cropper", components: { BackgroundWrapper: os }, props: { src: { type: String, default: null }, stencilComponent: { type: [Object, String], default: function() {
|
|
12498
12498
|
return Fl;
|
|
12499
12499
|
} }, backgroundWrapperComponent: { type: [Object, String], default: function() {
|
|
12500
12500
|
return os;
|
|
@@ -12538,8 +12538,8 @@ var c0 = ["transitions"], ct = Qe("vue-advanced-cropper"), Ll = { name: "Cropper
|
|
|
12538
12538
|
return o = Ie(o = qe(o, _t(ke(i), ke(o))), Cn(at(e), r));
|
|
12539
12539
|
} }, fitVisibleArea: { type: Function, default: function(t) {
|
|
12540
12540
|
var e = t.visibleArea, i = t.boundaries, n = t.getAreaRestrictions, s = t.coordinates, r = j({}, e);
|
|
12541
|
-
r.height = r.width / oe(i), r.top += (e.height - r.height) / 2, (s.height - r.height > 0 || s.width - r.width > 0) && (r =
|
|
12542
|
-
var o = bn(Jt(s, at(r =
|
|
12541
|
+
r.height = r.width / oe(i), r.top += (e.height - r.height) / 2, (s.height - r.height > 0 || s.width - r.width > 0) && (r = Ze(r, Math.max(s.height / r.height, s.width / r.width)));
|
|
12542
|
+
var o = bn(Jt(s, at(r = Ze(r, Sn(r, n({ visibleArea: r, type: "resize" }))))));
|
|
12543
12543
|
return r.width < s.width && (o.left = 0), r.height < s.height && (o.top = 0), r = Ie(r = qe(r, o), n({ visibleArea: r, type: "move" }));
|
|
12544
12544
|
} }, areaRestrictionsAlgorithm: { type: Function, default: function(t) {
|
|
12545
12545
|
var e = t.visibleArea, i = t.boundaries, n = t.imageSize, s = t.imageRestriction, r = t.type, o = {};
|
|
@@ -13014,7 +13014,7 @@ const m0 = { class: "background-container" }, g0 = { class: "dialog-footer" }, p
|
|
|
13014
13014
|
return (c, d) => (m(), y("div", m0, [
|
|
13015
13015
|
A(Ps, {
|
|
13016
13016
|
modelValue: p(s),
|
|
13017
|
-
"onUpdate:modelValue": d[0] || (d[0] = (h) =>
|
|
13017
|
+
"onUpdate:modelValue": d[0] || (d[0] = (h) => Je(s) ? s.value = h : null),
|
|
13018
13018
|
label: "Задайте пропорции фото",
|
|
13019
13019
|
width: "100%",
|
|
13020
13020
|
margin: "0 0 20px 0",
|
|
@@ -13313,7 +13313,7 @@ const m0 = { class: "background-container" }, g0 = { class: "dialog-footer" }, p
|
|
|
13313
13313
|
default: J(() => [
|
|
13314
13314
|
A(v0, {
|
|
13315
13315
|
ratio: p(h),
|
|
13316
|
-
"onUpdate:ratio": B[2] || (B[2] = (Q) =>
|
|
13316
|
+
"onUpdate:ratio": B[2] || (B[2] = (Q) => Je(h) ? h.value = Q : null),
|
|
13317
13317
|
src: p(g),
|
|
13318
13318
|
onCrop: x,
|
|
13319
13319
|
onClose: B[3] || (B[3] = (Q) => c.value = !1)
|