sprof 0.0.32 → 0.0.33
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/modules/forms/store/index.d.ts +1 -217
- package/dist/services/PHelp.d.ts +2 -0
- package/dist/services/PHelp2.d.ts +0 -2
- package/dist/sprof.js +1160 -1154
- package/dist/sprof.umd.cjs +7 -7
- package/dist/store/Store.d.ts +3 -1
- package/package.json +1 -1
package/dist/sprof.js
CHANGED
|
@@ -315,9 +315,9 @@ var Rs;
|
|
|
315
315
|
throw new TypeError();
|
|
316
316
|
if (!he(C))
|
|
317
317
|
throw new TypeError();
|
|
318
|
-
if (!he(F) && !j(F) && !
|
|
318
|
+
if (!he(F) && !j(F) && !kt(F))
|
|
319
319
|
throw new TypeError();
|
|
320
|
-
return
|
|
320
|
+
return kt(F) && (F = void 0), k = Qe(k), ba(b, C, k, F);
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
e("decorate", Y);
|
|
@@ -362,12 +362,12 @@ var Rs;
|
|
|
362
362
|
return j(k) || (k = Qe(k)), hs(b, C, k);
|
|
363
363
|
}
|
|
364
364
|
e("getOwnMetadata", ht);
|
|
365
|
-
function
|
|
365
|
+
function Mt(b, C) {
|
|
366
366
|
if (!he(b))
|
|
367
367
|
throw new TypeError();
|
|
368
368
|
return j(C) || (C = Qe(C)), ms(b, C);
|
|
369
369
|
}
|
|
370
|
-
e("getMetadataKeys",
|
|
370
|
+
e("getMetadataKeys", Mt);
|
|
371
371
|
function hi(b, C) {
|
|
372
372
|
if (!he(b))
|
|
373
373
|
throw new TypeError();
|
|
@@ -392,7 +392,7 @@ var Rs;
|
|
|
392
392
|
function wa(b, C) {
|
|
393
393
|
for (var k = b.length - 1; k >= 0; --k) {
|
|
394
394
|
var F = b[k], W = F(C);
|
|
395
|
-
if (!j(W) && !
|
|
395
|
+
if (!j(W) && !kt(W)) {
|
|
396
396
|
if (!ws(W))
|
|
397
397
|
throw new TypeError();
|
|
398
398
|
C = W;
|
|
@@ -403,7 +403,7 @@ var Rs;
|
|
|
403
403
|
function ba(b, C, k, F) {
|
|
404
404
|
for (var W = b.length - 1; W >= 0; --W) {
|
|
405
405
|
var ye = b[W], fe = ye(C, k, F);
|
|
406
|
-
if (!j(fe) && !
|
|
406
|
+
if (!j(fe) && !kt(fe)) {
|
|
407
407
|
if (!he(fe))
|
|
408
408
|
throw new TypeError();
|
|
409
409
|
F = fe;
|
|
@@ -416,7 +416,7 @@ var Rs;
|
|
|
416
416
|
if (F)
|
|
417
417
|
return !0;
|
|
418
418
|
var W = an(C);
|
|
419
|
-
return
|
|
419
|
+
return kt(W) ? !1 : cs(b, W, k);
|
|
420
420
|
}
|
|
421
421
|
function rn(b, C, k) {
|
|
422
422
|
var F = _t(
|
|
@@ -432,7 +432,7 @@ var Rs;
|
|
|
432
432
|
if (F)
|
|
433
433
|
return hs(b, C, k);
|
|
434
434
|
var W = an(C);
|
|
435
|
-
if (!
|
|
435
|
+
if (!kt(W))
|
|
436
436
|
return ds(b, W, k);
|
|
437
437
|
}
|
|
438
438
|
function hs(b, C, k) {
|
|
@@ -505,7 +505,7 @@ var Rs;
|
|
|
505
505
|
function j(b) {
|
|
506
506
|
return b === void 0;
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function kt(b) {
|
|
509
509
|
return b === null;
|
|
510
510
|
}
|
|
511
511
|
function Sa(b) {
|
|
@@ -1077,7 +1077,7 @@ function $e(t, e, i) {
|
|
|
1077
1077
|
const n = t.random || (t.rng || ol)();
|
|
1078
1078
|
return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, al(n);
|
|
1079
1079
|
}
|
|
1080
|
-
const
|
|
1080
|
+
const gt = class gt {
|
|
1081
1081
|
static BuildClass(e, i) {
|
|
1082
1082
|
i && Object.keys(i).forEach((n) => {
|
|
1083
1083
|
const s = i[n];
|
|
@@ -1100,13 +1100,13 @@ const vt = class vt {
|
|
|
1100
1100
|
return e !== null && typeof e < "u" && e !== Object(e);
|
|
1101
1101
|
}
|
|
1102
1102
|
static RemoveFromClassByIndex(e, i, n) {
|
|
1103
|
-
|
|
1103
|
+
gt.RemoveFromClass(e, i, n);
|
|
1104
1104
|
}
|
|
1105
1105
|
static RemoveFromClassById(e, i, n) {
|
|
1106
1106
|
if (!e)
|
|
1107
1107
|
return;
|
|
1108
1108
|
const s = i.findIndex((r) => r.id === e);
|
|
1109
|
-
|
|
1109
|
+
gt.RemoveFromClass(s, i, n);
|
|
1110
1110
|
}
|
|
1111
1111
|
static RemoveFromClass(e, i, n) {
|
|
1112
1112
|
if (e < 0)
|
|
@@ -1127,17 +1127,17 @@ const vt = class vt {
|
|
|
1127
1127
|
}
|
|
1128
1128
|
static InitClassInstance(e, i) {
|
|
1129
1129
|
const n = e.constructor(i);
|
|
1130
|
-
return
|
|
1130
|
+
return gt.BuildClass(n), n.id = gt.CreateUUID(), n;
|
|
1131
1131
|
}
|
|
1132
1132
|
static ExistsWithId(e, i) {
|
|
1133
1133
|
return e.some((n) => n.id === i);
|
|
1134
1134
|
}
|
|
1135
1135
|
};
|
|
1136
|
-
a(
|
|
1136
|
+
a(gt, "GetClassConstructor", (e) => (i, n) => {
|
|
1137
1137
|
const s = Reflect.getMetadata(`property:${n}`, i) || {};
|
|
1138
1138
|
s[n] = e, Reflect.defineMetadata(n, s, i);
|
|
1139
1139
|
});
|
|
1140
|
-
let R =
|
|
1140
|
+
let R = gt;
|
|
1141
1141
|
const ul = { class: "item" }, cl = { class: "move" }, dl = { class: "item-tools" }, hl = ["onClick"], fl = { class: "item-description" }, ml = ["onUpdate:modelValue"], pl = /* @__PURE__ */ $({
|
|
1142
1142
|
__name: "AdminGallery",
|
|
1143
1143
|
props: {
|
|
@@ -1774,7 +1774,7 @@ const un = /* @__PURE__ */ new WeakMap(), Bl = (t, e) => {
|
|
|
1774
1774
|
], 4)
|
|
1775
1775
|
], 4));
|
|
1776
1776
|
}
|
|
1777
|
-
}),
|
|
1777
|
+
}), Ct = /* @__PURE__ */ E(Wl, [["__scopeId", "data-v-3e6801ac"]]), Vl = ["ВС", "ПН", "ВТ", "СР", "ЧТ", "ПТ", "СБ"], Gl = "ru-RU";
|
|
1778
1778
|
class lt {
|
|
1779
1779
|
constructor() {
|
|
1780
1780
|
a(this, "locale", "ru-RU");
|
|
@@ -2979,7 +2979,7 @@ function Dr(t, e) {
|
|
|
2979
2979
|
return s;
|
|
2980
2980
|
return null;
|
|
2981
2981
|
}
|
|
2982
|
-
const
|
|
2982
|
+
const vt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, zr = (t) => !ti(t) && t !== vt;
|
|
2983
2983
|
function kn() {
|
|
2984
2984
|
const { caseless: t } = zr(this) && this || {}, e = {}, i = (n, s) => {
|
|
2985
2985
|
const r = t && Dr(e, s) || s;
|
|
@@ -3096,14 +3096,14 @@ const ec = (t) => {
|
|
|
3096
3096
|
return n;
|
|
3097
3097
|
};
|
|
3098
3098
|
return i(t, 0);
|
|
3099
|
-
}, tc = Je("AsyncFunction"), ic = (t) => t && (Gi(t) || Be(t)) && Be(t.then) && Be(t.catch), Nr = ((t, e) => t ? setImmediate : e ? ((i, n) => (
|
|
3100
|
-
s ===
|
|
3099
|
+
}, tc = Je("AsyncFunction"), ic = (t) => t && (Gi(t) || Be(t)) && Be(t.then) && Be(t.catch), Nr = ((t, e) => t ? setImmediate : e ? ((i, n) => (vt.addEventListener("message", ({ source: s, data: r }) => {
|
|
3100
|
+
s === vt && r === i && n.length && n.shift()();
|
|
3101
3101
|
}, !1), (s) => {
|
|
3102
|
-
n.push(s),
|
|
3102
|
+
n.push(s), vt.postMessage(i, "*");
|
|
3103
3103
|
}))(`axios@${Math.random()}`, []) : (i) => setTimeout(i))(
|
|
3104
3104
|
typeof setImmediate == "function",
|
|
3105
|
-
Be(
|
|
3106
|
-
), nc = typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
|
3105
|
+
Be(vt.postMessage)
|
|
3106
|
+
), nc = typeof queueMicrotask < "u" ? queueMicrotask.bind(vt) : typeof process < "u" && process.nextTick || Nr, x = {
|
|
3107
3107
|
isArray: Wt,
|
|
3108
3108
|
isArrayBuffer: Fr,
|
|
3109
3109
|
isBuffer: bu,
|
|
@@ -3152,7 +3152,7 @@ const ec = (t) => {
|
|
|
3152
3152
|
noop: Ju,
|
|
3153
3153
|
toFiniteNumber: Xu,
|
|
3154
3154
|
findKey: Dr,
|
|
3155
|
-
global:
|
|
3155
|
+
global: vt,
|
|
3156
3156
|
isContextDefined: zr,
|
|
3157
3157
|
ALPHABET: Br,
|
|
3158
3158
|
generateString: Qu,
|
|
@@ -3871,7 +3871,7 @@ function Yr(t, e) {
|
|
|
3871
3871
|
return t && !Pc(e) ? Tc(t, e) : e;
|
|
3872
3872
|
}
|
|
3873
3873
|
const js = (t) => t instanceof Le ? { ...t } : t;
|
|
3874
|
-
function
|
|
3874
|
+
function wt(t, e) {
|
|
3875
3875
|
e = e || {};
|
|
3876
3876
|
const i = {};
|
|
3877
3877
|
function n(c, d, h) {
|
|
@@ -3936,7 +3936,7 @@ function bt(t, e) {
|
|
|
3936
3936
|
}), i;
|
|
3937
3937
|
}
|
|
3938
3938
|
const Jr = (t) => {
|
|
3939
|
-
const e =
|
|
3939
|
+
const e = wt({}, t);
|
|
3940
3940
|
let { data: i, withXSRFToken: n, xsrfHeaderName: s, xsrfCookieName: r, headers: o, auth: l } = e;
|
|
3941
3941
|
e.headers = o = Le.from(o), e.url = Vr(Yr(e.baseURL, e.url), t.params, t.paramsSerializer), l && o.set(
|
|
3942
3942
|
"Authorization",
|
|
@@ -4187,8 +4187,8 @@ const qc = async (t) => {
|
|
|
4187
4187
|
const X = An && (c === "stream" || c === "response");
|
|
4188
4188
|
if (An && (l || X && M)) {
|
|
4189
4189
|
const G = {};
|
|
4190
|
-
["status", "statusText", "headers"].forEach((
|
|
4191
|
-
G[
|
|
4190
|
+
["status", "statusText", "headers"].forEach((Mt) => {
|
|
4191
|
+
G[Mt] = Y[Mt];
|
|
4192
4192
|
});
|
|
4193
4193
|
const ze = x.toFiniteNumber(Y.headers.get("content-length")), [qe, ht] = l && Vs(
|
|
4194
4194
|
ze,
|
|
@@ -4334,7 +4334,7 @@ const En = {
|
|
|
4334
4334
|
assertOptions: Gc,
|
|
4335
4335
|
validators: Yn
|
|
4336
4336
|
}, ft = En.validators;
|
|
4337
|
-
class
|
|
4337
|
+
class yt {
|
|
4338
4338
|
constructor(e) {
|
|
4339
4339
|
this.defaults = e, this.interceptors = {
|
|
4340
4340
|
request: new Us(),
|
|
@@ -4367,7 +4367,7 @@ class wt {
|
|
|
4367
4367
|
}
|
|
4368
4368
|
}
|
|
4369
4369
|
_request(e, i) {
|
|
4370
|
-
typeof e == "string" ? (i = i || {}, i.url = e) : i = e || {}, i =
|
|
4370
|
+
typeof e == "string" ? (i = i || {}, i.url = e) : i = e || {}, i = wt(this.defaults, i);
|
|
4371
4371
|
const { transitional: n, paramsSerializer: s, headers: r } = i;
|
|
4372
4372
|
n !== void 0 && En.assertOptions(n, {
|
|
4373
4373
|
silentJSONParsing: ft.transitional(ft.boolean),
|
|
@@ -4426,14 +4426,14 @@ class wt {
|
|
|
4426
4426
|
return d;
|
|
4427
4427
|
}
|
|
4428
4428
|
getUri(e) {
|
|
4429
|
-
e =
|
|
4429
|
+
e = wt(this.defaults, e);
|
|
4430
4430
|
const i = Yr(e.baseURL, e.url);
|
|
4431
4431
|
return Vr(i, e.params, e.paramsSerializer);
|
|
4432
4432
|
}
|
|
4433
4433
|
}
|
|
4434
4434
|
x.forEach(["delete", "get", "head", "options"], function(e) {
|
|
4435
|
-
|
|
4436
|
-
return this.request(
|
|
4435
|
+
yt.prototype[e] = function(i, n) {
|
|
4436
|
+
return this.request(wt(n || {}, {
|
|
4437
4437
|
method: e,
|
|
4438
4438
|
url: i,
|
|
4439
4439
|
data: (n || {}).data
|
|
@@ -4443,7 +4443,7 @@ x.forEach(["delete", "get", "head", "options"], function(e) {
|
|
|
4443
4443
|
x.forEach(["post", "put", "patch"], function(e) {
|
|
4444
4444
|
function i(n) {
|
|
4445
4445
|
return function(r, o, l) {
|
|
4446
|
-
return this.request(
|
|
4446
|
+
return this.request(wt(l || {}, {
|
|
4447
4447
|
method: e,
|
|
4448
4448
|
headers: n ? {
|
|
4449
4449
|
"Content-Type": "multipart/form-data"
|
|
@@ -4453,7 +4453,7 @@ x.forEach(["post", "put", "patch"], function(e) {
|
|
|
4453
4453
|
}));
|
|
4454
4454
|
};
|
|
4455
4455
|
}
|
|
4456
|
-
|
|
4456
|
+
yt.prototype[e] = i(), yt.prototype[e + "Form"] = i(!0);
|
|
4457
4457
|
});
|
|
4458
4458
|
class Jn {
|
|
4459
4459
|
constructor(e) {
|
|
@@ -4605,13 +4605,13 @@ Object.entries(Pn).forEach(([t, e]) => {
|
|
|
4605
4605
|
Pn[e] = t;
|
|
4606
4606
|
});
|
|
4607
4607
|
function to(t) {
|
|
4608
|
-
const e = new
|
|
4609
|
-
return x.extend(i,
|
|
4610
|
-
return to(
|
|
4608
|
+
const e = new yt(t), i = Tr(yt.prototype.request, e);
|
|
4609
|
+
return x.extend(i, yt.prototype, e, { allOwnKeys: !0 }), x.extend(i, e, null, { allOwnKeys: !0 }), i.create = function(s) {
|
|
4610
|
+
return to(wt(t, s));
|
|
4611
4611
|
}, i;
|
|
4612
4612
|
}
|
|
4613
4613
|
const de = to(ci);
|
|
4614
|
-
de.Axios =
|
|
4614
|
+
de.Axios = yt;
|
|
4615
4615
|
de.CanceledError = Vt;
|
|
4616
4616
|
de.CancelToken = Jn;
|
|
4617
4617
|
de.isCancel = _r;
|
|
@@ -4624,7 +4624,7 @@ de.all = function(e) {
|
|
|
4624
4624
|
};
|
|
4625
4625
|
de.spread = jc;
|
|
4626
4626
|
de.isAxiosError = _c;
|
|
4627
|
-
de.mergeConfig =
|
|
4627
|
+
de.mergeConfig = wt;
|
|
4628
4628
|
de.AxiosHeaders = Le;
|
|
4629
4629
|
de.formToJSON = (t) => jr(x.isHTMLForm(t) ? new FormData(t) : t);
|
|
4630
4630
|
de.getAdapter = Kr.getAdapter;
|
|
@@ -5068,7 +5068,7 @@ var ed = Object.defineProperty, di = (t, e, i, n) => {
|
|
|
5068
5068
|
(o = t[r]) && (s = o(e, i, s) || s);
|
|
5069
5069
|
return s && ed(e, i, s), s;
|
|
5070
5070
|
};
|
|
5071
|
-
const
|
|
5071
|
+
const bt = class ki {
|
|
5072
5072
|
constructor(e) {
|
|
5073
5073
|
a(this, "id");
|
|
5074
5074
|
a(this, "name", "");
|
|
@@ -5177,20 +5177,20 @@ const St = class ki {
|
|
|
5177
5177
|
};
|
|
5178
5178
|
di([
|
|
5179
5179
|
R.GetClassConstructor(Dt)
|
|
5180
|
-
],
|
|
5180
|
+
], bt.prototype, "answerVariants");
|
|
5181
5181
|
di([
|
|
5182
5182
|
R.GetClassConstructor(Kc)
|
|
5183
|
-
],
|
|
5183
|
+
], bt.prototype, "fieldExamples");
|
|
5184
5184
|
di([
|
|
5185
5185
|
R.GetClassConstructor(ii)
|
|
5186
|
-
],
|
|
5186
|
+
], bt.prototype, "fieldVariants");
|
|
5187
5187
|
di([
|
|
5188
5188
|
R.GetClassConstructor(so)
|
|
5189
|
-
],
|
|
5189
|
+
], bt.prototype, "fieldMeasures");
|
|
5190
5190
|
di([
|
|
5191
|
-
R.GetClassConstructor(
|
|
5192
|
-
],
|
|
5193
|
-
let Qn =
|
|
5191
|
+
R.GetClassConstructor(bt)
|
|
5192
|
+
], bt.prototype, "children");
|
|
5193
|
+
let Qn = bt;
|
|
5194
5194
|
class ro {
|
|
5195
5195
|
constructor(e) {
|
|
5196
5196
|
a(this, "id");
|
|
@@ -5568,1290 +5568,1296 @@ class Id {
|
|
|
5568
5568
|
}
|
|
5569
5569
|
}
|
|
5570
5570
|
const mo = new Id();
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5571
|
+
let Rd = class {
|
|
5572
|
+
async Login(e) {
|
|
5573
|
+
const i = e ?? B.Auth.Form.GetValues(), n = await Ie.Post({
|
|
5574
|
+
query: "auth/login",
|
|
5575
|
+
payload: i
|
|
5576
|
+
});
|
|
5577
|
+
if (!n)
|
|
5578
|
+
throw B.Notification.Error("Ошибка авторизации"), "Ошибка авторизации";
|
|
5579
|
+
B.Auth.Status.SetState(n);
|
|
5580
5580
|
}
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5581
|
+
async LoginAs(e) {
|
|
5582
|
+
if (!await Ie.Post({
|
|
5583
|
+
query: "auth/login-as",
|
|
5584
|
+
payload: { email: e }
|
|
5585
|
+
})) {
|
|
5586
|
+
B.Notification.Error("Ошибка авторизации");
|
|
5587
|
+
return;
|
|
5588
|
+
}
|
|
5589
5589
|
}
|
|
5590
|
-
|
|
5591
|
-
this.menu = e;
|
|
5590
|
+
async Register() {
|
|
5592
5591
|
}
|
|
5593
|
-
|
|
5594
|
-
return this.filterString ? this.filterMenu() : this.menu;
|
|
5592
|
+
async RestorePassword() {
|
|
5595
5593
|
}
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5594
|
+
async passwordChange() {
|
|
5595
|
+
await Ie.Put({
|
|
5596
|
+
query: "auth/password-change"
|
|
5597
|
+
// payload: { id: userId, email: PHelp.AuthForm.Email().email, password: PHelp.AuthForm.Password().password },
|
|
5600
5598
|
});
|
|
5601
5599
|
}
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
}
|
|
5608
|
-
SetPath(e) {
|
|
5609
|
-
this.path = e;
|
|
5610
|
-
}
|
|
5611
|
-
GetPath() {
|
|
5612
|
-
return this.path;
|
|
5600
|
+
async RefreshToken() {
|
|
5601
|
+
await Ie.Post({
|
|
5602
|
+
query: "auth/refresh-token",
|
|
5603
|
+
payload: { refreshToken: Pi.getRefreshToken() }
|
|
5604
|
+
});
|
|
5613
5605
|
}
|
|
5614
|
-
|
|
5615
|
-
|
|
5606
|
+
async CheckUuid(e) {
|
|
5607
|
+
await Ie.Get({ query: `auth/check-uuid/${e.userId}/${e.uniqueId}` });
|
|
5616
5608
|
}
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5609
|
+
};
|
|
5610
|
+
const Ad = new Rd();
|
|
5611
|
+
let $d = class extends ae {
|
|
5612
|
+
constructor() {
|
|
5613
|
+
super(ei, "contacts");
|
|
5620
5614
|
}
|
|
5621
|
-
}
|
|
5615
|
+
};
|
|
5622
5616
|
const Ed = new $d();
|
|
5623
|
-
|
|
5617
|
+
let Pd = class extends ae {
|
|
5624
5618
|
constructor() {
|
|
5625
|
-
|
|
5626
|
-
a(this, "Head", Ad);
|
|
5619
|
+
super(Ft, "emails");
|
|
5627
5620
|
}
|
|
5628
|
-
}
|
|
5621
|
+
};
|
|
5629
5622
|
const po = new Pd();
|
|
5630
|
-
class
|
|
5623
|
+
let Td = class extends ae {
|
|
5631
5624
|
constructor() {
|
|
5632
|
-
|
|
5633
|
-
}
|
|
5634
|
-
hide() {
|
|
5635
|
-
this.visible = !1;
|
|
5625
|
+
super(ge, "file-infos");
|
|
5636
5626
|
}
|
|
5637
|
-
|
|
5638
|
-
|
|
5627
|
+
};
|
|
5628
|
+
const Fd = new Td();
|
|
5629
|
+
class ts {
|
|
5630
|
+
constructor(e) {
|
|
5631
|
+
a(this, "id");
|
|
5632
|
+
a(this, "ftsp");
|
|
5633
|
+
a(this, "name", "");
|
|
5634
|
+
R.BuildClass(this, e);
|
|
5639
5635
|
}
|
|
5640
|
-
|
|
5641
|
-
|
|
5636
|
+
static Create(e) {
|
|
5637
|
+
const i = new ts();
|
|
5638
|
+
return i.id = R.CreateUUID(), i.ftsp = JSON.stringify(e), i;
|
|
5642
5639
|
}
|
|
5643
5640
|
}
|
|
5644
|
-
class
|
|
5641
|
+
let Ld = class extends ae {
|
|
5645
5642
|
constructor() {
|
|
5646
|
-
super(
|
|
5647
|
-
a(this, "type", Pe.Success);
|
|
5648
|
-
a(this, "text", "");
|
|
5649
|
-
a(this, "title", "");
|
|
5650
|
-
}
|
|
5651
|
-
showMessage(i, n) {
|
|
5652
|
-
this.hide(), this.type = n, typeof i == "string" ? this.text = i : (this.text = i.text, this.title = i.title ?? ""), super.show();
|
|
5653
|
-
}
|
|
5654
|
-
GetText() {
|
|
5655
|
-
return this.text;
|
|
5643
|
+
super(ts, "ftsp-presets");
|
|
5656
5644
|
}
|
|
5657
|
-
|
|
5658
|
-
|
|
5645
|
+
};
|
|
5646
|
+
const Dd = new Ld();
|
|
5647
|
+
let zd = class extends ae {
|
|
5648
|
+
constructor() {
|
|
5649
|
+
super(kr, "humans");
|
|
5659
5650
|
}
|
|
5660
|
-
|
|
5661
|
-
|
|
5651
|
+
};
|
|
5652
|
+
const Od = new zd();
|
|
5653
|
+
class go {
|
|
5654
|
+
constructor(e) {
|
|
5655
|
+
a(this, "id");
|
|
5656
|
+
a(this, "name", "");
|
|
5657
|
+
a(this, "order", 0);
|
|
5658
|
+
a(this, "downloadToFile", !1);
|
|
5659
|
+
a(this, "pageSectionId");
|
|
5660
|
+
// pageSection: IPageSection = new PageSection();
|
|
5661
|
+
a(this, "scan", new ge());
|
|
5662
|
+
a(this, "scanId");
|
|
5663
|
+
e && (this.id = e == null ? void 0 : e.id, this.name = e.name, this.order = e.order, this.downloadToFile = e.downloadToFile, this.pageSectionId = e.pageSectionId, e.scan && (this.scan = new ge(e.scan)), this.scanId = e.scanId);
|
|
5662
5664
|
}
|
|
5663
|
-
|
|
5664
|
-
this.
|
|
5665
|
+
getFileInfos() {
|
|
5666
|
+
return [this.scan];
|
|
5665
5667
|
}
|
|
5666
|
-
|
|
5667
|
-
this.
|
|
5668
|
+
uploadScan(e) {
|
|
5669
|
+
return this.scan.id || (this.scan.id = $e()), this.scan.originalName = e.name, this.scan.file = e.raw, this.scan.fileSystemPath = $e(), this.scan.url = e.url, this.scan;
|
|
5668
5670
|
}
|
|
5669
|
-
|
|
5670
|
-
this.
|
|
5671
|
+
getFileName() {
|
|
5672
|
+
return this.name ? this.name : this.scan.originalName;
|
|
5671
5673
|
}
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
+
}
|
|
5675
|
+
class Bd {
|
|
5676
|
+
constructor(e) {
|
|
5677
|
+
a(this, "id");
|
|
5678
|
+
a(this, "documentType", new xt());
|
|
5679
|
+
a(this, "documentTypeId");
|
|
5680
|
+
a(this, "order", 0);
|
|
5681
|
+
R.BuildClass(this, e);
|
|
5674
5682
|
}
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
for (const s of Object.keys(i))
|
|
5679
|
-
i[s][0] && i[s][0].message && (n += `<li>${i[s][0].message}</li>`);
|
|
5680
|
-
return n += "</ul>", n;
|
|
5683
|
+
getFileInfos() {
|
|
5684
|
+
const e = [];
|
|
5685
|
+
return e.push(...this.documentType.getFileInfos()), e;
|
|
5681
5686
|
}
|
|
5682
5687
|
}
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
a(this, "
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5688
|
+
var Nd = Object.defineProperty, vo = (t, e, i, n) => {
|
|
5689
|
+
for (var s = void 0, r = t.length - 1, o; r >= 0; r--)
|
|
5690
|
+
(o = t[r]) && (s = o(e, i, s) || s);
|
|
5691
|
+
return s && Nd(e, i, s), s;
|
|
5692
|
+
};
|
|
5693
|
+
class xt {
|
|
5694
|
+
constructor(e) {
|
|
5695
|
+
a(this, "id");
|
|
5696
|
+
a(this, "name", "");
|
|
5697
|
+
a(this, "singleScan", !1);
|
|
5698
|
+
a(this, "scan");
|
|
5699
|
+
a(this, "scanId");
|
|
5700
|
+
a(this, "order", 0);
|
|
5701
|
+
a(this, "description", "");
|
|
5702
|
+
a(this, "scans", []);
|
|
5703
|
+
a(this, "scansForDelete", []);
|
|
5704
|
+
a(this, "pageSectionDocuments", []);
|
|
5705
|
+
a(this, "pageSectionDocumentsForDelete", []);
|
|
5706
|
+
a(this, "pageSectionImages", []);
|
|
5707
|
+
a(this, "pageSectionImagesForDelete", []);
|
|
5708
|
+
// pageSideMenu: IPageSideMenu = new PageSideMenu();
|
|
5709
|
+
a(this, "pageSideMenuId");
|
|
5710
|
+
a(this, "pageId");
|
|
5711
|
+
a(this, "text", "");
|
|
5712
|
+
a(this, "documents", []);
|
|
5713
|
+
R.BuildClass(this, e), this.documents = this.pageSectionDocuments, this.text = this.description.replace("<p>undefined</p>", "");
|
|
5695
5714
|
}
|
|
5696
|
-
|
|
5697
|
-
|
|
5715
|
+
addDocument() {
|
|
5716
|
+
const e = new go();
|
|
5717
|
+
e.order = this.pageSectionDocuments.length - 1, this.pageSectionDocuments.push(e);
|
|
5698
5718
|
}
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5719
|
+
getFileInfos() {
|
|
5720
|
+
const e = [];
|
|
5721
|
+
return this.pageSectionDocuments.forEach((i) => {
|
|
5722
|
+
e.push(...i.getFileInfos());
|
|
5723
|
+
}), e;
|
|
5703
5724
|
}
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
confirmButtonText: "Сохранить",
|
|
5708
|
-
cancelButtonText: "Не сохранять"
|
|
5709
|
-
});
|
|
5725
|
+
infoExists(e) {
|
|
5726
|
+
const i = te.SearchIn(this.name, e), n = te.SearchIn(this.description, e), s = this.getDocuments(e);
|
|
5727
|
+
return i || n || s.length > 0;
|
|
5710
5728
|
}
|
|
5711
|
-
|
|
5712
|
-
this.
|
|
5729
|
+
getDocuments(e) {
|
|
5730
|
+
return this.pageSectionDocuments.filter((i) => te.SearchIn(i.name, e));
|
|
5713
5731
|
}
|
|
5714
|
-
|
|
5715
|
-
this.
|
|
5732
|
+
getDescription(e) {
|
|
5733
|
+
return e ? te.WrapSubStr(this.description, e) : this.description;
|
|
5716
5734
|
}
|
|
5717
|
-
|
|
5718
|
-
|
|
5735
|
+
filter(e) {
|
|
5736
|
+
if (!e) {
|
|
5737
|
+
this.text = this.description, this.documents = this.pageSectionDocuments;
|
|
5738
|
+
return;
|
|
5739
|
+
}
|
|
5740
|
+
this.text = te.SearchIn(this.description, e) ? te.WrapSubStr(this.description, e) : "", this.documents = this.pageSectionDocuments.filter((i) => te.SearchIn(i.name, e));
|
|
5719
5741
|
}
|
|
5720
5742
|
}
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5743
|
+
vo([
|
|
5744
|
+
R.GetClassConstructor(go)
|
|
5745
|
+
], xt.prototype, "pageSectionDocuments");
|
|
5746
|
+
vo([
|
|
5747
|
+
R.GetClassConstructor(Bd)
|
|
5748
|
+
], xt.prototype, "pageSectionImages");
|
|
5749
|
+
class Hd {
|
|
5750
|
+
constructor(e) {
|
|
5751
|
+
a(this, "id");
|
|
5752
|
+
a(this, "document", new xt());
|
|
5753
|
+
a(this, "documentId");
|
|
5754
|
+
a(this, "pageId");
|
|
5755
|
+
R.BuildClass(this, e);
|
|
5725
5756
|
}
|
|
5726
|
-
|
|
5727
|
-
|
|
5757
|
+
static GetFileInfos(e) {
|
|
5758
|
+
const i = [];
|
|
5759
|
+
return e.forEach((n) => {
|
|
5760
|
+
const s = n.document.scan;
|
|
5761
|
+
s && i.push(s);
|
|
5762
|
+
}), i;
|
|
5728
5763
|
}
|
|
5729
5764
|
}
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5765
|
+
var qd = Object.defineProperty, Ud = (t, e, i, n) => {
|
|
5766
|
+
for (var s = void 0, r = t.length - 1, o; r >= 0; r--)
|
|
5767
|
+
(o = t[r]) && (s = o(e, i, s) || s);
|
|
5768
|
+
return s && qd(e, i, s), s;
|
|
5769
|
+
};
|
|
5770
|
+
class yo {
|
|
5771
|
+
constructor(e) {
|
|
5772
|
+
a(this, "id");
|
|
5773
|
+
a(this, "pageId");
|
|
5774
|
+
a(this, "fileInfoId");
|
|
5775
|
+
a(this, "fileInfo");
|
|
5776
|
+
a(this, "description");
|
|
5777
|
+
R.BuildClass(this, e);
|
|
5734
5778
|
}
|
|
5735
|
-
|
|
5736
|
-
|
|
5779
|
+
}
|
|
5780
|
+
Ud([
|
|
5781
|
+
R.GetClassConstructor(ge)
|
|
5782
|
+
], yo.prototype, "fileInfo");
|
|
5783
|
+
var Wd = Object.defineProperty, Vd = (t, e, i, n) => {
|
|
5784
|
+
for (var s = void 0, r = t.length - 1, o; r >= 0; r--)
|
|
5785
|
+
(o = t[r]) && (s = o(e, i, s) || s);
|
|
5786
|
+
return s && Wd(e, i, s), s;
|
|
5787
|
+
};
|
|
5788
|
+
class Pt {
|
|
5789
|
+
constructor(e) {
|
|
5790
|
+
a(this, "id");
|
|
5791
|
+
a(this, "name", "Новое меню");
|
|
5792
|
+
a(this, "order", 0);
|
|
5793
|
+
a(this, "description", "");
|
|
5794
|
+
a(this, "routeAnchor", "");
|
|
5795
|
+
a(this, "slug", "");
|
|
5796
|
+
a(this, "pageSections", []);
|
|
5797
|
+
a(this, "pageSectionsForDelete", []);
|
|
5798
|
+
a(this, "showContent", !1);
|
|
5799
|
+
a(this, "pageId");
|
|
5800
|
+
a(this, "selected", !1);
|
|
5801
|
+
a(this, "sections", []);
|
|
5802
|
+
a(this, "text", "");
|
|
5803
|
+
R.BuildClass(this, e), this.sections = this.pageSections, this.text = this.description.replace("<p>undefined</p>", "");
|
|
5737
5804
|
}
|
|
5738
|
-
|
|
5739
|
-
|
|
5805
|
+
getFileInfos() {
|
|
5806
|
+
const e = [];
|
|
5807
|
+
return this.pageSections.forEach((i) => {
|
|
5808
|
+
e.push(...i.getFileInfos());
|
|
5809
|
+
}), e;
|
|
5810
|
+
}
|
|
5811
|
+
addPageSection() {
|
|
5812
|
+
const e = new xt();
|
|
5813
|
+
e.order = this.pageSections.length + 1, e.name = `Новой раздел ${e.order}`, e.id = $e(), this.pageSections.push(e);
|
|
5814
|
+
}
|
|
5815
|
+
infoExists(e) {
|
|
5816
|
+
const i = te.SearchIn(this.name, e), n = te.SearchIn(this.description, e), s = this.getPageSections(e).length > 0;
|
|
5817
|
+
return i || n || s;
|
|
5818
|
+
}
|
|
5819
|
+
getPageSections(e) {
|
|
5820
|
+
return e.length ? this.pageSections.filter((i) => i.infoExists(e)) : this.pageSections;
|
|
5821
|
+
}
|
|
5822
|
+
filter(e) {
|
|
5823
|
+
e.length ? (this.sections = this.pageSections.filter((i) => i.infoExists(e)), this.text = te.SearchIn(this.description, e) ? te.WrapSubStr(this.description, e) : "") : (this.sections = this.pageSections, this.text = this.description), this.sections.forEach((i) => i.filter(e));
|
|
5740
5824
|
}
|
|
5741
5825
|
}
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
|
|
5826
|
+
Vd([
|
|
5827
|
+
R.GetClassConstructor(xt)
|
|
5828
|
+
], Pt.prototype, "pageSections");
|
|
5829
|
+
var wo = /* @__PURE__ */ ((t) => (t.User = "USER", t.Admin = "ADMIN", t))(wo || {});
|
|
5830
|
+
class Gd {
|
|
5831
|
+
constructor(e) {
|
|
5832
|
+
a(this, "id");
|
|
5833
|
+
a(this, "name", wo.User);
|
|
5834
|
+
a(this, "label", "");
|
|
5835
|
+
a(this, "startPage", "");
|
|
5836
|
+
R.BuildClass(this, e);
|
|
5837
|
+
}
|
|
5838
|
+
}
|
|
5839
|
+
var jd = Object.defineProperty, Yi = (t, e, i, n) => {
|
|
5840
|
+
for (var s = void 0, r = t.length - 1, o; r >= 0; r--)
|
|
5841
|
+
(o = t[r]) && (s = o(e, i, s) || s);
|
|
5842
|
+
return s && jd(e, i, s), s;
|
|
5749
5843
|
};
|
|
5750
|
-
class
|
|
5751
|
-
|
|
5752
|
-
|
|
5844
|
+
class Gt {
|
|
5845
|
+
constructor(e) {
|
|
5846
|
+
a(this, "id");
|
|
5847
|
+
a(this, "title", "");
|
|
5848
|
+
a(this, "content", "");
|
|
5849
|
+
a(this, "slug", "");
|
|
5850
|
+
a(this, "pagesGroup", "Без группы");
|
|
5851
|
+
a(this, "link", "");
|
|
5852
|
+
a(this, "withComments", !1);
|
|
5853
|
+
a(this, "showContacts", !1);
|
|
5854
|
+
a(this, "collaps", !1);
|
|
5855
|
+
a(this, "showContent", !1);
|
|
5856
|
+
a(this, "pageImages", []);
|
|
5857
|
+
a(this, "pageImagesForDelete", []);
|
|
5858
|
+
a(this, "pageImagesNames", []);
|
|
5859
|
+
a(this, "pageSideMenus", []);
|
|
5860
|
+
a(this, "menus", []);
|
|
5861
|
+
a(this, "pageSideMenusForDelete", []);
|
|
5862
|
+
a(this, "pageSections", []);
|
|
5863
|
+
a(this, "pageSectionsForDelete", []);
|
|
5864
|
+
a(this, "pageDocuments", []);
|
|
5865
|
+
// @ClassHelper.GetClassConstructor(PageComment)
|
|
5866
|
+
// pageComments: PageComment[] = [];
|
|
5867
|
+
a(this, "contact", new ei());
|
|
5868
|
+
a(this, "contactId");
|
|
5869
|
+
a(this, "role", new Gd());
|
|
5870
|
+
a(this, "roleId");
|
|
5871
|
+
//
|
|
5872
|
+
a(this, "filterStr", "");
|
|
5873
|
+
a(this, "activeMenuId", "");
|
|
5874
|
+
R.BuildClass(this, e), this.menus = this.pageSideMenus;
|
|
5753
5875
|
}
|
|
5754
|
-
|
|
5755
|
-
|
|
5876
|
+
getActiveMenu() {
|
|
5877
|
+
const e = this.pageSideMenus.find((i) => i.id === this.activeMenuId);
|
|
5878
|
+
return e || this.pageSideMenus[0];
|
|
5756
5879
|
}
|
|
5757
|
-
|
|
5758
|
-
|
|
5880
|
+
setActiveMenuId(e) {
|
|
5881
|
+
this.activeMenuId = e;
|
|
5759
5882
|
}
|
|
5760
|
-
|
|
5761
|
-
return
|
|
5883
|
+
getLink() {
|
|
5884
|
+
return this.slug !== "" ? `/pages/${this.slug}` : "404";
|
|
5762
5885
|
}
|
|
5763
|
-
|
|
5764
|
-
|
|
5886
|
+
getFileInfos() {
|
|
5887
|
+
const e = [];
|
|
5888
|
+
return this.pageSideMenus.forEach((i) => {
|
|
5889
|
+
e.push(...i.getFileInfos());
|
|
5890
|
+
}), this.pageDocuments.forEach((i) => {
|
|
5891
|
+
i.document.scan && e.push(i.document.scan);
|
|
5892
|
+
}), this.pageImages.forEach((i) => {
|
|
5893
|
+
i.fileInfo && e.push(i.fileInfo);
|
|
5894
|
+
}), e;
|
|
5765
5895
|
}
|
|
5766
|
-
|
|
5767
|
-
|
|
5896
|
+
addSideMenu() {
|
|
5897
|
+
const e = new Pt();
|
|
5898
|
+
return e.order = this.pageSideMenus.length + 1, e.name = `Новое меню ${e.order}`, e.id = $e(), this.pageSideMenus.push(e), e.id;
|
|
5768
5899
|
}
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5900
|
+
selectSideMenu(e, i) {
|
|
5901
|
+
if (!e && this.pageSideMenus.length > 0) {
|
|
5902
|
+
this.pageSideMenus[0].selected = !0;
|
|
5903
|
+
return;
|
|
5904
|
+
}
|
|
5905
|
+
this.pageSideMenus.forEach((n) => {
|
|
5906
|
+
i ? n.selected = n.id === e : n.selected = n.slug === e;
|
|
5907
|
+
});
|
|
5772
5908
|
}
|
|
5773
|
-
|
|
5774
|
-
|
|
5909
|
+
getSelectedSideMenu() {
|
|
5910
|
+
const e = this.pageSideMenus.find((i) => i.selected);
|
|
5911
|
+
return e || new Pt();
|
|
5775
5912
|
}
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
|
|
5913
|
+
//
|
|
5914
|
+
addCustomSectionsToSideMenu(e) {
|
|
5915
|
+
e.forEach((i) => {
|
|
5916
|
+
const n = new Pt();
|
|
5917
|
+
n.id = i.id, n.name = i.name, typeof i.order < "u" ? this.pageSideMenus.splice(i.order, 0, n) : this.pageSideMenus.push(n);
|
|
5918
|
+
});
|
|
5781
5919
|
}
|
|
5782
|
-
|
|
5783
|
-
|
|
5784
|
-
|
|
5920
|
+
//
|
|
5921
|
+
getPageSideMenus() {
|
|
5922
|
+
if (this.showContacts && !this.pageSideMenus.find((e) => e.id === "contacts")) {
|
|
5923
|
+
const e = new Pt();
|
|
5924
|
+
e.id = "contacts", e.name = "Контакты", this.pageSideMenus.push(e);
|
|
5925
|
+
}
|
|
5926
|
+
return this.filterStr === "" ? this.pageSideMenus : this.pageSideMenus.filter((e) => e.infoExists(this.filterStr));
|
|
5785
5927
|
}
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
n.setHours(s[0], s[1], 0, 0);
|
|
5789
|
-
const r = new Date(n.getTime() + i * 6e4), o = r.getHours(), l = r.getMinutes();
|
|
5790
|
-
return ee.ConcatHM(o, l);
|
|
5928
|
+
filter() {
|
|
5929
|
+
this.filterStr === "" ? this.menus = this.pageSideMenus : this.menus = this.pageSideMenus.filter((e) => e.infoExists(this.filterStr)), this.menus.forEach((e) => e.filter(this.filterStr));
|
|
5791
5930
|
}
|
|
5792
|
-
static
|
|
5793
|
-
return
|
|
5931
|
+
static GetClassName() {
|
|
5932
|
+
return "page";
|
|
5794
5933
|
}
|
|
5795
|
-
|
|
5796
|
-
|
|
5934
|
+
}
|
|
5935
|
+
Yi([
|
|
5936
|
+
R.GetClassConstructor(yo)
|
|
5937
|
+
], Gt.prototype, "pageImages");
|
|
5938
|
+
Yi([
|
|
5939
|
+
R.GetClassConstructor(Pt)
|
|
5940
|
+
], Gt.prototype, "pageSideMenus");
|
|
5941
|
+
Yi([
|
|
5942
|
+
R.GetClassConstructor(xt)
|
|
5943
|
+
], Gt.prototype, "pageSections");
|
|
5944
|
+
Yi([
|
|
5945
|
+
R.GetClassConstructor(Hd)
|
|
5946
|
+
], Gt.prototype, "pageDocuments");
|
|
5947
|
+
class bo {
|
|
5948
|
+
constructor(e) {
|
|
5949
|
+
a(this, "id");
|
|
5950
|
+
a(this, "name", "");
|
|
5951
|
+
a(this, "link", "");
|
|
5952
|
+
a(this, "selected", !1);
|
|
5953
|
+
a(this, "hide", !1);
|
|
5954
|
+
a(this, "editMode", !1);
|
|
5955
|
+
a(this, "color", "");
|
|
5956
|
+
a(this, "background", "");
|
|
5957
|
+
a(this, "page", new Gt());
|
|
5958
|
+
a(this, "pageId");
|
|
5959
|
+
a(this, "order", 0);
|
|
5960
|
+
a(this, "menuId");
|
|
5961
|
+
a(this, "iconId");
|
|
5962
|
+
a(this, "icon", new ge());
|
|
5963
|
+
a(this, "iconName", "");
|
|
5964
|
+
a(this, "svgCode", "");
|
|
5965
|
+
R.BuildClass(this, e);
|
|
5797
5966
|
}
|
|
5798
|
-
|
|
5799
|
-
return
|
|
5967
|
+
getLink() {
|
|
5968
|
+
return this.isLink() && !this.isPageLink() ? this.link : !this.isLink() && this.isPageLink() ? this.page.getLink() : "";
|
|
5800
5969
|
}
|
|
5801
|
-
|
|
5802
|
-
return
|
|
5970
|
+
isLink() {
|
|
5971
|
+
return this.link !== "";
|
|
5803
5972
|
}
|
|
5804
|
-
|
|
5805
|
-
return
|
|
5973
|
+
isPageLink() {
|
|
5974
|
+
return this.pageId !== void 0 && this.pageId !== "";
|
|
5806
5975
|
}
|
|
5807
|
-
|
|
5808
|
-
|
|
5976
|
+
addFile(e) {
|
|
5977
|
+
this.icon.id || (this.icon.id = $e()), this.icon.originalName = e.name, this.icon.file = e.raw;
|
|
5809
5978
|
}
|
|
5810
|
-
|
|
5811
|
-
|
|
5979
|
+
}
|
|
5980
|
+
var _d = Object.defineProperty, Zd = (t, e, i, n) => {
|
|
5981
|
+
for (var s = void 0, r = t.length - 1, o; r >= 0; r--)
|
|
5982
|
+
(o = t[r]) && (s = o(e, i, s) || s);
|
|
5983
|
+
return s && _d(e, i, s), s;
|
|
5984
|
+
};
|
|
5985
|
+
class So {
|
|
5986
|
+
constructor(e) {
|
|
5987
|
+
a(this, "id");
|
|
5988
|
+
a(this, "name", "");
|
|
5989
|
+
a(this, "link", "");
|
|
5990
|
+
a(this, "top", !0);
|
|
5991
|
+
a(this, "side", !0);
|
|
5992
|
+
a(this, "show", !1);
|
|
5993
|
+
a(this, "hide", !1);
|
|
5994
|
+
a(this, "active", !1);
|
|
5995
|
+
a(this, "order", 0);
|
|
5996
|
+
a(this, "selected", !1);
|
|
5997
|
+
a(this, "editMode", !1);
|
|
5998
|
+
a(this, "page", new Gt());
|
|
5999
|
+
a(this, "pageId");
|
|
6000
|
+
a(this, "subMenus", []);
|
|
6001
|
+
a(this, "subMenusForDelete", []);
|
|
6002
|
+
a(this, "iconId");
|
|
6003
|
+
a(this, "icon", new ge());
|
|
6004
|
+
R.BuildClass(this, e);
|
|
5812
6005
|
}
|
|
5813
|
-
|
|
5814
|
-
return
|
|
6006
|
+
getLink() {
|
|
6007
|
+
return this.isLink() && !this.isPageLink() ? this.link : !this.isLink() && this.isPageLink() ? this.page.getLink() : "";
|
|
5815
6008
|
}
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
static Wait(e, i) {
|
|
5819
|
-
return new Promise((n) => setTimeout(() => n(i), e));
|
|
6009
|
+
withoutChildren() {
|
|
6010
|
+
return this.subMenus.length === 0;
|
|
5820
6011
|
}
|
|
5821
|
-
|
|
5822
|
-
return
|
|
6012
|
+
isLink() {
|
|
6013
|
+
return this.link !== "";
|
|
5823
6014
|
}
|
|
5824
|
-
|
|
5825
|
-
return
|
|
6015
|
+
isPageLink() {
|
|
6016
|
+
return !!this.pageId && this.pageId !== "";
|
|
6017
|
+
}
|
|
6018
|
+
getFileInfos() {
|
|
6019
|
+
const e = [];
|
|
6020
|
+
return e.push(this.icon), this.subMenus.forEach((i) => {
|
|
6021
|
+
e.push(i.icon);
|
|
6022
|
+
}), e;
|
|
6023
|
+
}
|
|
6024
|
+
addFile(e) {
|
|
6025
|
+
this.icon.id || (this.icon.id = $e()), this.icon.originalName = e.name, this.icon.file = e.raw;
|
|
6026
|
+
}
|
|
6027
|
+
addSubMenu() {
|
|
6028
|
+
this.subMenus.push(new bo());
|
|
6029
|
+
}
|
|
6030
|
+
removeSubMenu(e) {
|
|
6031
|
+
const i = this.subMenus[e].id;
|
|
6032
|
+
i && this.subMenusForDelete.push(i), this.subMenus.splice(e, 1);
|
|
6033
|
+
}
|
|
6034
|
+
setColorsForSubMenus() {
|
|
6035
|
+
const e = ["#00A248", "#E63021", "#006BB5", "#F3911F", "#6F6D6B"];
|
|
6036
|
+
let i = 0;
|
|
6037
|
+
this.subMenus.forEach((n) => {
|
|
6038
|
+
n.color = e[i], i = e.length - 1 ? i = 0 : i++;
|
|
6039
|
+
});
|
|
6040
|
+
}
|
|
6041
|
+
containPath(e) {
|
|
6042
|
+
return this.getLink() === e || !!this.subMenus.find((i) => i.getLink() === e);
|
|
6043
|
+
}
|
|
6044
|
+
static GetClassName() {
|
|
6045
|
+
return "menu";
|
|
5826
6046
|
}
|
|
5827
6047
|
}
|
|
5828
|
-
|
|
6048
|
+
Zd([
|
|
6049
|
+
R.GetClassConstructor(bo)
|
|
6050
|
+
], So.prototype, "subMenus");
|
|
6051
|
+
let Yd = class extends ae {
|
|
5829
6052
|
constructor() {
|
|
5830
|
-
super(
|
|
5831
|
-
a(this, "duration", ee.S(3));
|
|
5832
|
-
}
|
|
5833
|
-
showMessage(i, n) {
|
|
5834
|
-
super.showMessage(i, n), typeof i != "string" && (this.duration = i.duration ?? this.duration), Li.Wait(this.GetDuration()).then(() => super.hide());
|
|
6053
|
+
super(So, "menus");
|
|
5835
6054
|
}
|
|
5836
|
-
|
|
5837
|
-
|
|
6055
|
+
};
|
|
6056
|
+
const Jd = new Yd();
|
|
6057
|
+
let Xd = class extends ae {
|
|
6058
|
+
constructor() {
|
|
6059
|
+
super(Lt, "phones");
|
|
5838
6060
|
}
|
|
5839
|
-
|
|
5840
|
-
|
|
5841
|
-
|
|
6061
|
+
};
|
|
6062
|
+
const Co = new Xd();
|
|
6063
|
+
class Qd {
|
|
6064
|
+
constructor(e) {
|
|
6065
|
+
a(this, "id");
|
|
6066
|
+
a(this, "nameRus", "");
|
|
6067
|
+
R.BuildClass(this, e);
|
|
5842
6068
|
}
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
|
|
6069
|
+
}
|
|
6070
|
+
var Kd = Object.defineProperty, eh = (t, e, i, n) => {
|
|
6071
|
+
for (var s = void 0, r = t.length - 1, o; r >= 0; r--)
|
|
6072
|
+
(o = t[r]) && (s = o(e, i, s) || s);
|
|
6073
|
+
return s && Kd(e, i, s), s;
|
|
6074
|
+
};
|
|
6075
|
+
class xo {
|
|
6076
|
+
constructor(e) {
|
|
6077
|
+
a(this, "id");
|
|
6078
|
+
a(this, "nameRus", "");
|
|
6079
|
+
a(this, "fields", []);
|
|
6080
|
+
R.BuildClass(this, e);
|
|
5846
6081
|
}
|
|
5847
6082
|
}
|
|
5848
|
-
|
|
5849
|
-
|
|
6083
|
+
eh([
|
|
6084
|
+
R.GetClassConstructor(Qd)
|
|
6085
|
+
], xo.prototype, "fields");
|
|
6086
|
+
let th = class extends ae {
|
|
5850
6087
|
constructor() {
|
|
5851
|
-
|
|
5852
|
-
a(this, "count", 0);
|
|
5853
|
-
a(this, "curPage", 1);
|
|
5854
|
-
a(this, "storeModule", "");
|
|
5855
|
-
}
|
|
5856
|
-
setCurPage(e) {
|
|
5857
|
-
this.curPage = e;
|
|
5858
|
-
}
|
|
5859
|
-
pagesCount() {
|
|
5860
|
-
return Math.ceil(this.count / this.limit) ?? 1;
|
|
6088
|
+
super(xo, "schemas");
|
|
5861
6089
|
}
|
|
5862
|
-
|
|
5863
|
-
|
|
6090
|
+
};
|
|
6091
|
+
const ih = new th();
|
|
6092
|
+
class Mo {
|
|
6093
|
+
constructor(e) {
|
|
6094
|
+
a(this, "id", "");
|
|
6095
|
+
a(this, "value", "");
|
|
6096
|
+
a(this, "label", "");
|
|
6097
|
+
a(this, "key", "");
|
|
6098
|
+
a(this, "description", "");
|
|
6099
|
+
a(this, "route", "");
|
|
6100
|
+
// searchGroup: SearchGroup = new SearchGroup();
|
|
6101
|
+
a(this, "searchElementMetas", []);
|
|
6102
|
+
R.BuildClass(this, e);
|
|
5864
6103
|
}
|
|
5865
6104
|
}
|
|
5866
|
-
|
|
5867
|
-
class B {
|
|
5868
|
-
}
|
|
5869
|
-
a(B, "Auth", ke(mo)), a(B, "AdminUI", ke(po)), a(B, "Dialog", ke(yo)), a(B, "Notification", ke(Co)), a(B, "Loading", ke(wo)), a(B, "Paginator", ke(xo));
|
|
5870
|
-
function zd() {
|
|
5871
|
-
const t = P(!1), e = P(!1);
|
|
5872
|
-
return {
|
|
5873
|
-
confirmLeave: t,
|
|
5874
|
-
saveButtonClick: e,
|
|
5875
|
-
beforeWindowUnload: (r) => {
|
|
5876
|
-
t.value && r.preventDefault();
|
|
5877
|
-
},
|
|
5878
|
-
formUpdated: () => {
|
|
5879
|
-
t.value = !0;
|
|
5880
|
-
},
|
|
5881
|
-
showConfirmModal: (r, o) => {
|
|
5882
|
-
t.value && !e.value ? B.Dialog.Save().then(() => {
|
|
5883
|
-
r(), o();
|
|
5884
|
-
}).catch(() => {
|
|
5885
|
-
B.Notification.Warning("Изменения не были сохранены"), o();
|
|
5886
|
-
}) : o();
|
|
5887
|
-
}
|
|
5888
|
-
};
|
|
5889
|
-
}
|
|
5890
|
-
const A0 = (() => {
|
|
5891
|
-
const t = (r, o) => st(async () => {
|
|
5892
|
-
var l;
|
|
5893
|
-
be.Get().reset(), tt.Set(o == null ? void 0 : o.sortsLib), be.Get().setSortModel(tt.GetDefault()), tt.Set(o == null ? void 0 : o.sortsLib), be.Get().setSortModel(tt.GetDefault()), B.Paginator.storeModule = (l = o == null ? void 0 : o.pagination) == null ? void 0 : l.storeModule, await r();
|
|
5894
|
-
}), { saveButtonClick: e, showConfirmModal: i } = zd(), n = (r) => tu((o, l, u) => {
|
|
5895
|
-
i((r || s)(), u);
|
|
5896
|
-
}), s = (r) => async () => {
|
|
5897
|
-
e.value = !0;
|
|
5898
|
-
try {
|
|
5899
|
-
r && await r(), B.Notification.Success("Сохранено");
|
|
5900
|
-
} catch (o) {
|
|
5901
|
-
B.Notification.Success("Что-то пошло не так. " + o);
|
|
5902
|
-
return;
|
|
5903
|
-
}
|
|
5904
|
-
};
|
|
5905
|
-
return {
|
|
5906
|
-
onBeforeMount: t,
|
|
5907
|
-
onBeforeRouteLeave: n,
|
|
5908
|
-
submit: s
|
|
5909
|
-
};
|
|
5910
|
-
})(), Qs = ["#31af5e", "#ff4d3b", "#006BB5", "#f3911c"];
|
|
5911
|
-
function $0() {
|
|
5912
|
-
return Qs[Math.floor(Math.random() * Qs.length)];
|
|
5913
|
-
}
|
|
5914
|
-
function E0(t, e) {
|
|
5915
|
-
const i = [2, 0, 1, 1, 1, 2];
|
|
5916
|
-
return t.length + " " + e[t.length % 100 > 4 && t.length % 100 < 20 ? 2 : i[t.length % 10 < 5 ? t.length % 10 : 5]];
|
|
5917
|
-
}
|
|
5918
|
-
class P0 {
|
|
6105
|
+
class nh {
|
|
5919
6106
|
constructor(e) {
|
|
6107
|
+
a(this, "id");
|
|
5920
6108
|
a(this, "name", "");
|
|
6109
|
+
a(this, "label", "");
|
|
5921
6110
|
R.BuildClass(this, e);
|
|
5922
6111
|
}
|
|
5923
|
-
cache() {
|
|
5924
|
-
}
|
|
5925
|
-
getFromCache(e) {
|
|
5926
|
-
const i = sessionStorage.getItem(this.name);
|
|
5927
|
-
if (i) {
|
|
5928
|
-
const n = JSON.parse(i), s = /* @__PURE__ */ new Date(), r = new Date(n.time), o = s.getTime() - r.getTime();
|
|
5929
|
-
return Math.round(o / 6e4) > (e || 10) ? null : n.data;
|
|
5930
|
-
} else
|
|
5931
|
-
return null;
|
|
5932
|
-
}
|
|
5933
|
-
async storeGetWithCache(e, i) {
|
|
5934
|
-
let n;
|
|
5935
|
-
return n = this.getFromCache(i), n || (n = await e(), n && this.cache()), n;
|
|
5936
|
-
}
|
|
5937
|
-
}
|
|
5938
|
-
function T0(t, e) {
|
|
5939
|
-
t == "left" && e.next(), t == "right" && e.prev();
|
|
5940
6112
|
}
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
6113
|
+
var sh = Object.defineProperty, ko = (t, e, i, n) => {
|
|
6114
|
+
for (var s = void 0, r = t.length - 1, o; r >= 0; r--)
|
|
6115
|
+
(o = t[r]) && (s = o(e, i, s) || s);
|
|
6116
|
+
return s && sh(e, i, s), s;
|
|
6117
|
+
};
|
|
6118
|
+
class Tt {
|
|
6119
|
+
constructor(e) {
|
|
6120
|
+
a(this, "id");
|
|
6121
|
+
a(this, "key", "");
|
|
6122
|
+
a(this, "label", "");
|
|
6123
|
+
a(this, "order", 0);
|
|
6124
|
+
a(this, "route", "");
|
|
6125
|
+
a(this, "table", "");
|
|
6126
|
+
a(this, "active", !0);
|
|
6127
|
+
a(this, "searchColumn", "");
|
|
6128
|
+
a(this, "descriptionColumn", "");
|
|
6129
|
+
a(this, "labelColumn", "");
|
|
6130
|
+
a(this, "valueColumn", "");
|
|
6131
|
+
a(this, "options", []);
|
|
6132
|
+
a(this, "searchGroupMetaColumns", []);
|
|
6133
|
+
R.BuildClass(this, e);
|
|
5945
6134
|
}
|
|
5946
6135
|
}
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
a(this, "
|
|
5957
|
-
a(this, "
|
|
5958
|
-
a(this, "
|
|
5959
|
-
a(this, "
|
|
5960
|
-
a(this, "
|
|
5961
|
-
a(this, "
|
|
5962
|
-
a(this, "
|
|
5963
|
-
a(this, "
|
|
5964
|
-
a(this, "
|
|
5965
|
-
a(this, "
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
this.draggedStartTime = e, this.draggedEndTime = i, this.dragged = !0;
|
|
5969
|
-
}
|
|
5970
|
-
endDrag() {
|
|
5971
|
-
this.activeTime = "", this.dragged = !1;
|
|
5972
|
-
}
|
|
5973
|
-
setTimelineStep(e) {
|
|
5974
|
-
this.timelineStep = e, this.setTimelines();
|
|
5975
|
-
}
|
|
5976
|
-
setTimelines() {
|
|
5977
|
-
this.timelines = Fi[this.timelineStep];
|
|
6136
|
+
ko([
|
|
6137
|
+
R.GetClassConstructor(Mo)
|
|
6138
|
+
], Tt.prototype, "options");
|
|
6139
|
+
ko([
|
|
6140
|
+
R.GetClassConstructor(nh)
|
|
6141
|
+
], Tt.prototype, "searchGroupMetaColumns");
|
|
6142
|
+
class gn {
|
|
6143
|
+
constructor(e) {
|
|
6144
|
+
a(this, "query", "");
|
|
6145
|
+
a(this, "key", "");
|
|
6146
|
+
a(this, "params", "");
|
|
6147
|
+
a(this, "suggester", !1);
|
|
6148
|
+
a(this, "mustBeTranslated", !0);
|
|
6149
|
+
a(this, "options", []);
|
|
6150
|
+
a(this, "searchGroupId", "");
|
|
6151
|
+
a(this, "searchGroups", []);
|
|
6152
|
+
a(this, "searchGroup", new Tt());
|
|
6153
|
+
a(this, "searchObjects", []);
|
|
6154
|
+
a(this, "pagination", new Ai());
|
|
6155
|
+
a(this, "count", 0);
|
|
6156
|
+
e && (this.query = e.query, e.searchGroups && (this.searchGroups = e.searchGroups.map((i) => new Tt(i))), e.searchGroup && (this.searchGroup = new Tt(e.searchGroup)), e.options && (this.options = e.options.map((i) => new Mo(i))), this.count = e.count);
|
|
5978
6157
|
}
|
|
5979
|
-
|
|
5980
|
-
return
|
|
6158
|
+
toUrl() {
|
|
6159
|
+
return JSON.stringify(this);
|
|
5981
6160
|
}
|
|
5982
|
-
|
|
5983
|
-
|
|
6161
|
+
async setSearchGroup(e) {
|
|
6162
|
+
const i = this.searchGroups.find((n) => n.id === e);
|
|
6163
|
+
i ? this.searchGroup = i : this.searchGroup = new Tt();
|
|
5984
6164
|
}
|
|
5985
|
-
|
|
5986
|
-
|
|
6165
|
+
async reproduceFromRoute() {
|
|
6166
|
+
this.setQuery(), await this.setSearchGroup(Ot.Route().query.groupId);
|
|
5987
6167
|
}
|
|
5988
|
-
|
|
5989
|
-
const
|
|
5990
|
-
|
|
5991
|
-
constructor(e) {
|
|
5992
|
-
a(this, "locale", "ru-RU");
|
|
5993
|
-
this.locale = e ?? this.locale;
|
|
6168
|
+
setQuery() {
|
|
6169
|
+
const e = Ot.Route().query.query;
|
|
6170
|
+
e && (this.query = e);
|
|
5994
6171
|
}
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6172
|
+
}
|
|
6173
|
+
let rh = class {
|
|
6174
|
+
constructor() {
|
|
6175
|
+
a(this, "isSearchDrawerOpen", P(!1));
|
|
6176
|
+
a(this, "searchModel", ke(new gn()));
|
|
6177
|
+
a(this, "searchGroups", ke([]));
|
|
6178
|
+
a(this, "count", 0);
|
|
6000
6179
|
}
|
|
6001
|
-
|
|
6002
|
-
|
|
6180
|
+
async Search(e) {
|
|
6181
|
+
const i = await Ie.Get({ query: `?key=${e.key}&query=${e.query}` });
|
|
6182
|
+
i && i.searchGroup && i.searchGroup.options.forEach((n) => {
|
|
6183
|
+
e.searchObjects.push({ id: n.id, value: n.value, label: n.label, description: n.description });
|
|
6184
|
+
});
|
|
6003
6185
|
}
|
|
6004
|
-
|
|
6005
|
-
|
|
6186
|
+
async mainSearch(e) {
|
|
6187
|
+
this.SetSearchModel(await Ie.Get({ query: `/main?searchModel=${e.toUrl()}` }));
|
|
6006
6188
|
}
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6189
|
+
async Full(e) {
|
|
6190
|
+
e.options = [], e.searchGroups.forEach((n) => {
|
|
6191
|
+
n.options = [];
|
|
6192
|
+
});
|
|
6193
|
+
const i = await Ie.Get({ query: `main?searchModel=${e.toUrl()}` });
|
|
6194
|
+
this.SetSearchModel(i);
|
|
6010
6195
|
}
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
return n.setHours(r[0], r[1], 0, 0), s.setHours(o[0], o[1], 0, 0), (s.getTime() - n.getTime()) / 1e3 / 60;
|
|
6196
|
+
ToggleDrawer(e) {
|
|
6197
|
+
this.isSearchDrawerOpen.value = e, this.searchModel = new gn();
|
|
6014
6198
|
}
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
return i[0] * 60 + i[1];
|
|
6199
|
+
SetSearchModel(e) {
|
|
6200
|
+
e && (this.searchModel = new gn(e));
|
|
6018
6201
|
}
|
|
6019
|
-
|
|
6020
|
-
const i = e.split(":");
|
|
6021
|
-
return [Number(i[0]), Number(i[1])];
|
|
6202
|
+
SetSearchGroups() {
|
|
6022
6203
|
}
|
|
6023
|
-
|
|
6024
|
-
|
|
6025
|
-
n.setHours(s[0], s[1], 0, 0);
|
|
6026
|
-
const r = new Date(n.getTime() + i * 6e4), o = r.getHours(), l = r.getMinutes();
|
|
6027
|
-
return `${o}:${l}`;
|
|
6204
|
+
IsSearchDrawerOpen() {
|
|
6205
|
+
return this.isSearchDrawerOpen;
|
|
6028
6206
|
}
|
|
6029
|
-
|
|
6030
|
-
return
|
|
6207
|
+
SearchModel() {
|
|
6208
|
+
return this.searchModel;
|
|
6031
6209
|
}
|
|
6032
|
-
|
|
6033
|
-
|
|
6034
|
-
|
|
6210
|
+
SearchGroups() {
|
|
6211
|
+
return this.searchGroups;
|
|
6212
|
+
}
|
|
6213
|
+
Count() {
|
|
6214
|
+
return this.count;
|
|
6035
6215
|
}
|
|
6036
|
-
}
|
|
6037
|
-
const Ln = (t) => t === 8 || t === 46, Nd = (t) => t > 46 && t < 58, Hd = (t) => t > 34 && t < 41, qd = (t) => t + ".", Ud = (t, e, i) => {
|
|
6038
|
-
Ln(e) || Hd(e) || (!Nd(e) || i > 9) && t.preventDefault();
|
|
6039
6216
|
};
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6217
|
+
const Ln = new rh();
|
|
6218
|
+
class is {
|
|
6219
|
+
constructor(e) {
|
|
6220
|
+
a(this, "id");
|
|
6221
|
+
a(this, "login", "");
|
|
6222
|
+
a(this, "email", "");
|
|
6223
|
+
a(this, "password", "");
|
|
6224
|
+
R.BuildClass(this, e);
|
|
6048
6225
|
}
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
const e = t.keyCode;
|
|
6053
|
-
let i = t.srcElement.value;
|
|
6054
|
-
const n = i.length;
|
|
6055
|
-
Ud(t, e, n), !Ln(e) && (n === 2 || n === 5) && (i = qd(i));
|
|
6056
|
-
const s = t.srcElement.value + String.fromCharCode(t.which);
|
|
6057
|
-
if (Ln(e)) {
|
|
6058
|
-
t.srcElement.value = i;
|
|
6059
|
-
return;
|
|
6226
|
+
static Create() {
|
|
6227
|
+
const e = new is();
|
|
6228
|
+
return e.id = R.CreateUUID(), e;
|
|
6060
6229
|
}
|
|
6061
|
-
i.length === 0 && Number(s) > 3 && (i = "3", t.preventDefault()), i.length === 1 && Number(s) > 31 && (i = "31", t.preventDefault()), s.length === 5 && Number(s.substring(3, 5)) > 12 && (i = i.substring(0, 3) + "12", t.preventDefault()), i = Wd(i, n), t.srcElement.value = i;
|
|
6062
6230
|
}
|
|
6063
|
-
class
|
|
6064
|
-
|
|
6065
|
-
|
|
6231
|
+
let oh = class extends ae {
|
|
6232
|
+
constructor() {
|
|
6233
|
+
super(is, "users-accounts");
|
|
6066
6234
|
}
|
|
6067
|
-
|
|
6068
|
-
|
|
6235
|
+
};
|
|
6236
|
+
const ah = new oh();
|
|
6237
|
+
let lh = class extends ae {
|
|
6238
|
+
constructor() {
|
|
6239
|
+
super(Rr, "value-types");
|
|
6069
6240
|
}
|
|
6070
|
-
|
|
6071
|
-
|
|
6241
|
+
};
|
|
6242
|
+
const uh = new lh();
|
|
6243
|
+
class Ji {
|
|
6244
|
+
constructor() {
|
|
6245
|
+
a(this, "Auth", Ad);
|
|
6246
|
+
a(this, "Contacts", Ed);
|
|
6247
|
+
a(this, "Emails", po);
|
|
6248
|
+
a(this, "FileInfos", Fd);
|
|
6249
|
+
a(this, "FTSPPresets", Dd);
|
|
6250
|
+
a(this, "Humans", Od);
|
|
6251
|
+
a(this, "Menus", Jd);
|
|
6252
|
+
a(this, "Phones", Co);
|
|
6253
|
+
a(this, "Schemas", ih);
|
|
6254
|
+
a(this, "Search", Ln);
|
|
6255
|
+
a(this, "UserAccounts", ah);
|
|
6256
|
+
a(this, "ValueTypes", uh);
|
|
6072
6257
|
}
|
|
6073
|
-
static
|
|
6074
|
-
|
|
6075
|
-
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6258
|
+
static Extend(e) {
|
|
6259
|
+
let i;
|
|
6260
|
+
for (i in e)
|
|
6261
|
+
Object.defineProperty(Ji, i, {
|
|
6262
|
+
// key: stores[key],
|
|
6263
|
+
[i]: {
|
|
6264
|
+
get: () => e[i]
|
|
6265
|
+
}
|
|
6266
|
+
});
|
|
6079
6267
|
}
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
|
|
6268
|
+
}
|
|
6269
|
+
Ji.Extend(Md);
|
|
6270
|
+
class ch {
|
|
6271
|
+
constructor() {
|
|
6272
|
+
a(this, "title", "");
|
|
6273
|
+
// showBackButton? = false;
|
|
6274
|
+
a(this, "buttons", []);
|
|
6083
6275
|
}
|
|
6084
|
-
|
|
6085
|
-
|
|
6276
|
+
// count? = 0;
|
|
6277
|
+
Set(e = "", i) {
|
|
6278
|
+
typeof e == "function" ? this.title = e() : typeof e == "string" ? this.title = e : this.title = e.value, this.buttons = i;
|
|
6086
6279
|
}
|
|
6087
6280
|
}
|
|
6088
|
-
|
|
6281
|
+
const dh = new ch();
|
|
6282
|
+
class hh {
|
|
6089
6283
|
constructor() {
|
|
6090
|
-
a(this, "
|
|
6091
|
-
a(this, "
|
|
6092
|
-
this
|
|
6284
|
+
a(this, "menu", []);
|
|
6285
|
+
a(this, "path", "");
|
|
6286
|
+
a(this, "isOpen", !0);
|
|
6287
|
+
a(this, "filterString", "");
|
|
6093
6288
|
}
|
|
6094
|
-
|
|
6095
|
-
this.
|
|
6289
|
+
Set(e) {
|
|
6290
|
+
this.menu = e;
|
|
6096
6291
|
}
|
|
6097
|
-
|
|
6098
|
-
this.
|
|
6292
|
+
Get() {
|
|
6293
|
+
return this.filterString ? this.filterMenu() : this.menu;
|
|
6099
6294
|
}
|
|
6100
|
-
|
|
6101
|
-
return this.
|
|
6295
|
+
filterMenu() {
|
|
6296
|
+
return this.menu.filter((e) => {
|
|
6297
|
+
var i;
|
|
6298
|
+
return te.SearchIn(e.name, this.filterString) || ((i = e.children) == null ? void 0 : i.some((n) => te.SearchIn(n.name, this.filterString)));
|
|
6299
|
+
});
|
|
6102
6300
|
}
|
|
6103
|
-
|
|
6104
|
-
|
|
6105
|
-
static Get(e) {
|
|
6106
|
-
const i = e.split(".");
|
|
6107
|
-
return i[i.length - 1];
|
|
6301
|
+
IsOpen() {
|
|
6302
|
+
return this.isOpen;
|
|
6108
6303
|
}
|
|
6109
|
-
|
|
6110
|
-
|
|
6111
|
-
function t(r, o) {
|
|
6112
|
-
localStorage.setItem(`${r}_favourite`, o.toString());
|
|
6304
|
+
Toggle() {
|
|
6305
|
+
this.isOpen = !this.isOpen;
|
|
6113
6306
|
}
|
|
6114
|
-
|
|
6115
|
-
|
|
6116
|
-
return l ? l.split(",").includes(o) : !1;
|
|
6307
|
+
SetPath(e) {
|
|
6308
|
+
this.path = e;
|
|
6117
6309
|
}
|
|
6118
|
-
|
|
6119
|
-
|
|
6120
|
-
if (!l) {
|
|
6121
|
-
t(r, [o]);
|
|
6122
|
-
return;
|
|
6123
|
-
}
|
|
6124
|
-
const u = l.split(",");
|
|
6125
|
-
u.push(o), t(r, u);
|
|
6310
|
+
GetPath() {
|
|
6311
|
+
return this.path;
|
|
6126
6312
|
}
|
|
6127
|
-
|
|
6128
|
-
|
|
6129
|
-
if (!l)
|
|
6130
|
-
return;
|
|
6131
|
-
const u = l.split(",").filter((c) => c !== o);
|
|
6132
|
-
t(r, u);
|
|
6313
|
+
SetFilter(e) {
|
|
6314
|
+
this.filterString = e;
|
|
6133
6315
|
}
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6316
|
+
GetChildren(e) {
|
|
6317
|
+
var i;
|
|
6318
|
+
return this.filterString ? (i = e.children) == null ? void 0 : i.filter((n) => te.SearchIn(n.name, this.filterString)) : e.children;
|
|
6137
6319
|
}
|
|
6138
|
-
return {
|
|
6139
|
-
addToFavourite: i,
|
|
6140
|
-
removeFromFavourite: n,
|
|
6141
|
-
setFavourite: t,
|
|
6142
|
-
isFavourite: e,
|
|
6143
|
-
clearFavourite: s
|
|
6144
|
-
};
|
|
6145
|
-
})();
|
|
6146
|
-
function Gd(t, e) {
|
|
6147
|
-
const i = [];
|
|
6148
|
-
if (t)
|
|
6149
|
-
for (let n = 0; n < Math.ceil(t.length / e); n++)
|
|
6150
|
-
i[n] = t.slice(n * e, n * e + e);
|
|
6151
|
-
return i;
|
|
6152
6320
|
}
|
|
6153
|
-
|
|
6154
|
-
|
|
6321
|
+
const fh = new hh();
|
|
6322
|
+
class mh {
|
|
6323
|
+
constructor() {
|
|
6324
|
+
a(this, "Menu", fh);
|
|
6325
|
+
a(this, "Head", dh);
|
|
6326
|
+
}
|
|
6155
6327
|
}
|
|
6156
|
-
|
|
6157
|
-
|
|
6328
|
+
const Io = new mh();
|
|
6329
|
+
class Ro {
|
|
6330
|
+
constructor() {
|
|
6331
|
+
a(this, "visible", !1);
|
|
6332
|
+
}
|
|
6333
|
+
hide() {
|
|
6334
|
+
this.visible = !1;
|
|
6335
|
+
}
|
|
6336
|
+
show() {
|
|
6337
|
+
this.hide(), this.visible = !0;
|
|
6338
|
+
}
|
|
6339
|
+
IsVisible() {
|
|
6340
|
+
return this.visible;
|
|
6341
|
+
}
|
|
6158
6342
|
}
|
|
6159
|
-
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
if (!n)
|
|
6166
|
-
throw B.Notification.Error("Ошибка авторизации"), "Ошибка авторизации";
|
|
6167
|
-
B.Auth.Status.SetState(n);
|
|
6343
|
+
class Ao extends Ro {
|
|
6344
|
+
constructor() {
|
|
6345
|
+
super(...arguments);
|
|
6346
|
+
a(this, "type", Pe.Success);
|
|
6347
|
+
a(this, "text", "");
|
|
6348
|
+
a(this, "title", "");
|
|
6168
6349
|
}
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
query: "auth/login-as",
|
|
6172
|
-
payload: { email: e }
|
|
6173
|
-
})) {
|
|
6174
|
-
B.Notification.Error("Ошибка авторизации");
|
|
6175
|
-
return;
|
|
6176
|
-
}
|
|
6350
|
+
showMessage(i, n) {
|
|
6351
|
+
this.hide(), this.type = n, typeof i == "string" ? this.text = i : (this.text = i.text, this.title = i.title ?? ""), super.show();
|
|
6177
6352
|
}
|
|
6178
|
-
|
|
6353
|
+
GetText() {
|
|
6354
|
+
return this.text;
|
|
6179
6355
|
}
|
|
6180
|
-
|
|
6356
|
+
GetTitle() {
|
|
6357
|
+
return this.title;
|
|
6181
6358
|
}
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
query: "auth/password-change"
|
|
6185
|
-
// payload: { id: userId, email: PHelp.AuthForm.Email().email, password: PHelp.AuthForm.Password().password },
|
|
6186
|
-
});
|
|
6359
|
+
GetType() {
|
|
6360
|
+
return this.type;
|
|
6187
6361
|
}
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
query: "auth/refresh-token",
|
|
6191
|
-
payload: { refreshToken: Pi.getRefreshToken() }
|
|
6192
|
-
});
|
|
6362
|
+
Info(i) {
|
|
6363
|
+
this.showMessage(i, Pe.Info);
|
|
6193
6364
|
}
|
|
6194
|
-
|
|
6195
|
-
|
|
6365
|
+
Success(i) {
|
|
6366
|
+
this.showMessage(i, Pe.Success);
|
|
6196
6367
|
}
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
let Zd = class extends ae {
|
|
6200
|
-
constructor() {
|
|
6201
|
-
super(ei, "contacts");
|
|
6368
|
+
Error(i) {
|
|
6369
|
+
this.showMessage(i, Pe.Error);
|
|
6202
6370
|
}
|
|
6203
|
-
|
|
6204
|
-
|
|
6205
|
-
let Jd = class extends ae {
|
|
6206
|
-
constructor() {
|
|
6207
|
-
super(Ft, "emails");
|
|
6371
|
+
Warning(i) {
|
|
6372
|
+
this.showMessage(i, Pe.Warning);
|
|
6208
6373
|
}
|
|
6209
|
-
|
|
6210
|
-
|
|
6211
|
-
let
|
|
6212
|
-
|
|
6213
|
-
|
|
6374
|
+
// eslint-disable-next-line
|
|
6375
|
+
FormMessage(i) {
|
|
6376
|
+
let n = "<strong>Проверьте правильность введенных данных:</strong><ul>";
|
|
6377
|
+
for (const s of Object.keys(i))
|
|
6378
|
+
i[s][0] && i[s][0].message && (n += `<li>${i[s][0].message}</li>`);
|
|
6379
|
+
return n += "</ul>", n;
|
|
6214
6380
|
}
|
|
6215
|
-
}
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
a(this, "
|
|
6220
|
-
a(this, "
|
|
6221
|
-
|
|
6222
|
-
|
|
6381
|
+
}
|
|
6382
|
+
class ph extends Ao {
|
|
6383
|
+
constructor() {
|
|
6384
|
+
super(...arguments);
|
|
6385
|
+
a(this, "confirmButtonText", "Да");
|
|
6386
|
+
a(this, "cancelButtonText", "Нет");
|
|
6387
|
+
// eslint-disable-next-line
|
|
6388
|
+
a(this, "resolve");
|
|
6389
|
+
// eslint-disable-next-line
|
|
6390
|
+
a(this, "reject");
|
|
6223
6391
|
}
|
|
6224
|
-
|
|
6225
|
-
|
|
6226
|
-
return i.id = R.CreateUUID(), i.ftsp = JSON.stringify(e), i;
|
|
6392
|
+
GetConfirmButtonText() {
|
|
6393
|
+
return this.confirmButtonText;
|
|
6227
6394
|
}
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
constructor() {
|
|
6231
|
-
super(ts, "ftsp-presets");
|
|
6395
|
+
GetCancelButtonText() {
|
|
6396
|
+
return this.cancelButtonText;
|
|
6232
6397
|
}
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
|
|
6237
|
-
super(kr, "humans");
|
|
6398
|
+
Show(i) {
|
|
6399
|
+
return super.show(), typeof i != "string" && (this.confirmButtonText = i.confirmButtonText, this.cancelButtonText = i.cancelButtonText), new Promise((n, s) => {
|
|
6400
|
+
this.resolve = n, this.reject = s;
|
|
6401
|
+
});
|
|
6238
6402
|
}
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
a(this, "order", 0);
|
|
6246
|
-
a(this, "downloadToFile", !1);
|
|
6247
|
-
a(this, "pageSectionId");
|
|
6248
|
-
// pageSection: IPageSection = new PageSection();
|
|
6249
|
-
a(this, "scan", new ge());
|
|
6250
|
-
a(this, "scanId");
|
|
6251
|
-
e && (this.id = e == null ? void 0 : e.id, this.name = e.name, this.order = e.order, this.downloadToFile = e.downloadToFile, this.pageSectionId = e.pageSectionId, e.scan && (this.scan = new ge(e.scan)), this.scanId = e.scanId);
|
|
6403
|
+
Save() {
|
|
6404
|
+
return this.Show({
|
|
6405
|
+
text: "У вас есть несохранённые изменения",
|
|
6406
|
+
confirmButtonText: "Сохранить",
|
|
6407
|
+
cancelButtonText: "Не сохранять"
|
|
6408
|
+
});
|
|
6252
6409
|
}
|
|
6253
|
-
|
|
6254
|
-
|
|
6410
|
+
Submit() {
|
|
6411
|
+
this.resolve(!0), this.hide();
|
|
6255
6412
|
}
|
|
6256
|
-
|
|
6257
|
-
|
|
6413
|
+
Cancel() {
|
|
6414
|
+
this.reject(), this.hide();
|
|
6258
6415
|
}
|
|
6259
|
-
|
|
6260
|
-
|
|
6416
|
+
hide() {
|
|
6417
|
+
this.resolve = void 0, this.reject = void 0, super.hide();
|
|
6261
6418
|
}
|
|
6262
6419
|
}
|
|
6263
|
-
|
|
6264
|
-
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
a(this, "documentTypeId");
|
|
6268
|
-
a(this, "order", 0);
|
|
6269
|
-
R.BuildClass(this, e);
|
|
6420
|
+
const $o = new ph();
|
|
6421
|
+
class gh extends Ro {
|
|
6422
|
+
Show() {
|
|
6423
|
+
super.show();
|
|
6270
6424
|
}
|
|
6271
|
-
|
|
6272
|
-
|
|
6273
|
-
return e.push(...this.documentType.getFileInfos()), e;
|
|
6425
|
+
Hide() {
|
|
6426
|
+
super.hide();
|
|
6274
6427
|
}
|
|
6275
6428
|
}
|
|
6276
|
-
|
|
6277
|
-
|
|
6278
|
-
|
|
6279
|
-
|
|
6280
|
-
};
|
|
6281
|
-
class Mt {
|
|
6282
|
-
constructor(e) {
|
|
6283
|
-
a(this, "id");
|
|
6284
|
-
a(this, "name", "");
|
|
6285
|
-
a(this, "singleScan", !1);
|
|
6286
|
-
a(this, "scan");
|
|
6287
|
-
a(this, "scanId");
|
|
6288
|
-
a(this, "order", 0);
|
|
6289
|
-
a(this, "description", "");
|
|
6290
|
-
a(this, "scans", []);
|
|
6291
|
-
a(this, "scansForDelete", []);
|
|
6292
|
-
a(this, "pageSectionDocuments", []);
|
|
6293
|
-
a(this, "pageSectionDocumentsForDelete", []);
|
|
6294
|
-
a(this, "pageSectionImages", []);
|
|
6295
|
-
a(this, "pageSectionImagesForDelete", []);
|
|
6296
|
-
// pageSideMenu: IPageSideMenu = new PageSideMenu();
|
|
6297
|
-
a(this, "pageSideMenuId");
|
|
6298
|
-
a(this, "pageId");
|
|
6299
|
-
a(this, "text", "");
|
|
6300
|
-
a(this, "documents", []);
|
|
6301
|
-
R.BuildClass(this, e), this.documents = this.pageSectionDocuments, this.text = this.description.replace("<p>undefined</p>", "");
|
|
6429
|
+
const Eo = new gh();
|
|
6430
|
+
class Ti {
|
|
6431
|
+
static Get(e, i, n = "-") {
|
|
6432
|
+
return !e || !i ? "" : `${e}${n}${i}`;
|
|
6302
6433
|
}
|
|
6303
|
-
|
|
6304
|
-
|
|
6305
|
-
e.order = this.pageSectionDocuments.length - 1, this.pageSectionDocuments.push(e);
|
|
6434
|
+
static In(e, i, n) {
|
|
6435
|
+
return e >= i && e <= n;
|
|
6306
6436
|
}
|
|
6307
|
-
|
|
6308
|
-
|
|
6309
|
-
return this.pageSectionDocuments.forEach((i) => {
|
|
6310
|
-
e.push(...i.getFileInfos());
|
|
6311
|
-
}), e;
|
|
6437
|
+
static Intersects(e, i, n, s) {
|
|
6438
|
+
return e === n || i === s || e > n && e < s || i > n && i < s || i > s && e < n;
|
|
6312
6439
|
}
|
|
6313
|
-
|
|
6314
|
-
|
|
6315
|
-
|
|
6440
|
+
}
|
|
6441
|
+
const Po = 1e3, To = 60 * Po, vn = 60 * To;
|
|
6442
|
+
var ni = /* @__PURE__ */ ((t) => (t.FiveMinutes = "5", t.HourQuarter = "15", t.HourHalf = "30", t.Hour = "60", t))(ni || {});
|
|
6443
|
+
const Fi = {
|
|
6444
|
+
5: ["00", "05", "10", "15", "20", "25", "30", "35", "40", "45", "50", "55"],
|
|
6445
|
+
15: ["00", "15", "30", "45"],
|
|
6446
|
+
30: ["00", "30"],
|
|
6447
|
+
60: ["00"]
|
|
6448
|
+
};
|
|
6449
|
+
class ee {
|
|
6450
|
+
static S(e) {
|
|
6451
|
+
return Po * e;
|
|
6316
6452
|
}
|
|
6317
|
-
|
|
6318
|
-
return
|
|
6453
|
+
static M(e) {
|
|
6454
|
+
return To * e;
|
|
6319
6455
|
}
|
|
6320
|
-
|
|
6321
|
-
return
|
|
6456
|
+
static H(e) {
|
|
6457
|
+
return vn * e;
|
|
6322
6458
|
}
|
|
6323
|
-
|
|
6324
|
-
|
|
6325
|
-
this.text = this.description, this.documents = this.pageSectionDocuments;
|
|
6326
|
-
return;
|
|
6327
|
-
}
|
|
6328
|
-
this.text = te.SearchIn(this.description, e) ? te.WrapSubStr(this.description, e) : "", this.documents = this.pageSectionDocuments.filter((i) => te.SearchIn(i.name, e));
|
|
6459
|
+
static D(e) {
|
|
6460
|
+
return vn * e;
|
|
6329
6461
|
}
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
R.GetClassConstructor(Io)
|
|
6333
|
-
], Mt.prototype, "pageSectionDocuments");
|
|
6334
|
-
Ro([
|
|
6335
|
-
R.GetClassConstructor(nh)
|
|
6336
|
-
], Mt.prototype, "pageSectionImages");
|
|
6337
|
-
class rh {
|
|
6338
|
-
constructor(e) {
|
|
6339
|
-
a(this, "id");
|
|
6340
|
-
a(this, "document", new Mt());
|
|
6341
|
-
a(this, "documentId");
|
|
6342
|
-
a(this, "pageId");
|
|
6343
|
-
R.BuildClass(this, e);
|
|
6462
|
+
static W(e) {
|
|
6463
|
+
return vn * e;
|
|
6344
6464
|
}
|
|
6345
|
-
static
|
|
6346
|
-
|
|
6347
|
-
return e.forEach((n) => {
|
|
6348
|
-
const s = n.document.scan;
|
|
6349
|
-
s && i.push(s);
|
|
6350
|
-
}), i;
|
|
6465
|
+
static NormalizeTime(e) {
|
|
6466
|
+
return String(e).padStart(2, "0");
|
|
6351
6467
|
}
|
|
6352
|
-
|
|
6353
|
-
|
|
6354
|
-
|
|
6355
|
-
(o = t[r]) && (s = o(e, i, s) || s);
|
|
6356
|
-
return s && oh(e, i, s), s;
|
|
6357
|
-
};
|
|
6358
|
-
class Ao {
|
|
6359
|
-
constructor(e) {
|
|
6360
|
-
a(this, "id");
|
|
6361
|
-
a(this, "pageId");
|
|
6362
|
-
a(this, "fileInfoId");
|
|
6363
|
-
a(this, "fileInfo");
|
|
6364
|
-
a(this, "description");
|
|
6365
|
-
R.BuildClass(this, e);
|
|
6468
|
+
static HMtoM(e) {
|
|
6469
|
+
const i = ee.SplitHM(e);
|
|
6470
|
+
return i.length > 1 ? ee.HtoM(i[0]) + i[1] : ee.HtoM(i[0]);
|
|
6366
6471
|
}
|
|
6367
|
-
|
|
6368
|
-
|
|
6369
|
-
R.GetClassConstructor(ge)
|
|
6370
|
-
], Ao.prototype, "fileInfo");
|
|
6371
|
-
var lh = Object.defineProperty, uh = (t, e, i, n) => {
|
|
6372
|
-
for (var s = void 0, r = t.length - 1, o; r >= 0; r--)
|
|
6373
|
-
(o = t[r]) && (s = o(e, i, s) || s);
|
|
6374
|
-
return s && lh(e, i, s), s;
|
|
6375
|
-
};
|
|
6376
|
-
class Pt {
|
|
6377
|
-
constructor(e) {
|
|
6378
|
-
a(this, "id");
|
|
6379
|
-
a(this, "name", "Новое меню");
|
|
6380
|
-
a(this, "order", 0);
|
|
6381
|
-
a(this, "description", "");
|
|
6382
|
-
a(this, "routeAnchor", "");
|
|
6383
|
-
a(this, "slug", "");
|
|
6384
|
-
a(this, "pageSections", []);
|
|
6385
|
-
a(this, "pageSectionsForDelete", []);
|
|
6386
|
-
a(this, "showContent", !1);
|
|
6387
|
-
a(this, "pageId");
|
|
6388
|
-
a(this, "selected", !1);
|
|
6389
|
-
a(this, "sections", []);
|
|
6390
|
-
a(this, "text", "");
|
|
6391
|
-
R.BuildClass(this, e), this.sections = this.pageSections, this.text = this.description.replace("<p>undefined</p>", "");
|
|
6472
|
+
static HtoM(e) {
|
|
6473
|
+
return Number(e) * 60;
|
|
6392
6474
|
}
|
|
6393
|
-
|
|
6394
|
-
|
|
6395
|
-
|
|
6396
|
-
|
|
6397
|
-
|
|
6475
|
+
static SplitHM(e) {
|
|
6476
|
+
if (!e)
|
|
6477
|
+
return [];
|
|
6478
|
+
const i = e.split(":");
|
|
6479
|
+
return [Number(i[0]), Number(i[1])];
|
|
6398
6480
|
}
|
|
6399
|
-
|
|
6400
|
-
const
|
|
6401
|
-
|
|
6481
|
+
static HmsToHm(e) {
|
|
6482
|
+
const i = ee.SplitHM(e);
|
|
6483
|
+
return ee.ConcatHM(i[0], i[1]);
|
|
6402
6484
|
}
|
|
6403
|
-
|
|
6404
|
-
const
|
|
6405
|
-
|
|
6485
|
+
static AddMtoHM(e, i) {
|
|
6486
|
+
const n = /* @__PURE__ */ new Date(), s = ee.SplitHM(e);
|
|
6487
|
+
n.setHours(s[0], s[1], 0, 0);
|
|
6488
|
+
const r = new Date(n.getTime() + i * 6e4), o = r.getHours(), l = r.getMinutes();
|
|
6489
|
+
return ee.ConcatHM(o, l);
|
|
6406
6490
|
}
|
|
6407
|
-
|
|
6408
|
-
return e.
|
|
6491
|
+
static ConcatHM(e, i) {
|
|
6492
|
+
return `${e}:${ee.NormalizeTime(i)}`;
|
|
6409
6493
|
}
|
|
6410
|
-
|
|
6411
|
-
|
|
6494
|
+
static DiffM(e, i) {
|
|
6495
|
+
return ee.Gt(i, e) ? ee.HMtoM(i) - ee.HMtoM(e) : ee.HMtoM(e) - ee.HMtoM(i);
|
|
6412
6496
|
}
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
R.GetClassConstructor(Mt)
|
|
6416
|
-
], Pt.prototype, "pageSections");
|
|
6417
|
-
var $o = /* @__PURE__ */ ((t) => (t.User = "USER", t.Admin = "ADMIN", t))($o || {});
|
|
6418
|
-
class ch {
|
|
6419
|
-
constructor(e) {
|
|
6420
|
-
a(this, "id");
|
|
6421
|
-
a(this, "name", $o.User);
|
|
6422
|
-
a(this, "label", "");
|
|
6423
|
-
a(this, "startPage", "");
|
|
6424
|
-
R.BuildClass(this, e);
|
|
6497
|
+
static GetPeriod(e, i) {
|
|
6498
|
+
return Ti.Get(e, i);
|
|
6425
6499
|
}
|
|
6426
|
-
|
|
6427
|
-
|
|
6428
|
-
for (var s = void 0, r = t.length - 1, o; r >= 0; r--)
|
|
6429
|
-
(o = t[r]) && (s = o(e, i, s) || s);
|
|
6430
|
-
return s && dh(e, i, s), s;
|
|
6431
|
-
};
|
|
6432
|
-
class Gt {
|
|
6433
|
-
constructor(e) {
|
|
6434
|
-
a(this, "id");
|
|
6435
|
-
a(this, "title", "");
|
|
6436
|
-
a(this, "content", "");
|
|
6437
|
-
a(this, "slug", "");
|
|
6438
|
-
a(this, "pagesGroup", "Без группы");
|
|
6439
|
-
a(this, "link", "");
|
|
6440
|
-
a(this, "withComments", !1);
|
|
6441
|
-
a(this, "showContacts", !1);
|
|
6442
|
-
a(this, "collaps", !1);
|
|
6443
|
-
a(this, "showContent", !1);
|
|
6444
|
-
a(this, "pageImages", []);
|
|
6445
|
-
a(this, "pageImagesForDelete", []);
|
|
6446
|
-
a(this, "pageImagesNames", []);
|
|
6447
|
-
a(this, "pageSideMenus", []);
|
|
6448
|
-
a(this, "menus", []);
|
|
6449
|
-
a(this, "pageSideMenusForDelete", []);
|
|
6450
|
-
a(this, "pageSections", []);
|
|
6451
|
-
a(this, "pageSectionsForDelete", []);
|
|
6452
|
-
a(this, "pageDocuments", []);
|
|
6453
|
-
// @ClassHelper.GetClassConstructor(PageComment)
|
|
6454
|
-
// pageComments: PageComment[] = [];
|
|
6455
|
-
a(this, "contact", new ei());
|
|
6456
|
-
a(this, "contactId");
|
|
6457
|
-
a(this, "role", new ch());
|
|
6458
|
-
a(this, "roleId");
|
|
6459
|
-
//
|
|
6460
|
-
a(this, "filterStr", "");
|
|
6461
|
-
a(this, "activeMenuId", "");
|
|
6462
|
-
R.BuildClass(this, e), this.menus = this.pageSideMenus;
|
|
6500
|
+
static Gt(e, i) {
|
|
6501
|
+
return ee.HMtoM(e) > ee.HMtoM(i);
|
|
6463
6502
|
}
|
|
6464
|
-
|
|
6465
|
-
|
|
6466
|
-
|
|
6503
|
+
static GtOrEq(e, i) {
|
|
6504
|
+
return ee.Gt(e, i) || ee.Eq(e, i);
|
|
6505
|
+
}
|
|
6506
|
+
static Eq(e, i) {
|
|
6507
|
+
return ee.HMtoM(e) === ee.HMtoM(i);
|
|
6467
6508
|
}
|
|
6468
|
-
|
|
6469
|
-
|
|
6509
|
+
static PeriodInPeriod(e, i, n, s) {
|
|
6510
|
+
return ee.HMtoM(e) >= ee.HMtoM(n) && ee.HMtoM(i) <= ee.HMtoM(s);
|
|
6470
6511
|
}
|
|
6471
|
-
|
|
6472
|
-
return
|
|
6512
|
+
static PeriodsIntersects(e, i, n, s) {
|
|
6513
|
+
return Ti.Intersects(ee.HMtoM(e), ee.HMtoM(i), ee.HMtoM(n), ee.HMtoM(s));
|
|
6473
6514
|
}
|
|
6474
|
-
|
|
6475
|
-
|
|
6476
|
-
|
|
6477
|
-
|
|
6478
|
-
}), this.pageDocuments.forEach((i) => {
|
|
6479
|
-
i.document.scan && e.push(i.document.scan);
|
|
6480
|
-
}), this.pageImages.forEach((i) => {
|
|
6481
|
-
i.fileInfo && e.push(i.fileInfo);
|
|
6482
|
-
}), e;
|
|
6515
|
+
}
|
|
6516
|
+
class Li {
|
|
6517
|
+
static Wait(e, i) {
|
|
6518
|
+
return new Promise((n) => setTimeout(() => n(i), e));
|
|
6483
6519
|
}
|
|
6484
|
-
|
|
6485
|
-
|
|
6486
|
-
return e.order = this.pageSideMenus.length + 1, e.name = `Новое меню ${e.order}`, e.id = $e(), this.pageSideMenus.push(e), e.id;
|
|
6520
|
+
static WaitS(e, i) {
|
|
6521
|
+
return Li.Wait(ee.S(e), i);
|
|
6487
6522
|
}
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
this.pageSideMenus[0].selected = !0;
|
|
6491
|
-
return;
|
|
6492
|
-
}
|
|
6493
|
-
this.pageSideMenus.forEach((n) => {
|
|
6494
|
-
i ? n.selected = n.id === e : n.selected = n.slug === e;
|
|
6495
|
-
});
|
|
6523
|
+
static WaitM(e, i) {
|
|
6524
|
+
return Li.Wait(ee.M(e), i);
|
|
6496
6525
|
}
|
|
6497
|
-
|
|
6498
|
-
|
|
6499
|
-
|
|
6526
|
+
}
|
|
6527
|
+
class vh extends Ao {
|
|
6528
|
+
constructor() {
|
|
6529
|
+
super(...arguments);
|
|
6530
|
+
a(this, "duration", ee.S(3));
|
|
6500
6531
|
}
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
e.forEach((i) => {
|
|
6504
|
-
const n = new Pt();
|
|
6505
|
-
n.id = i.id, n.name = i.name, typeof i.order < "u" ? this.pageSideMenus.splice(i.order, 0, n) : this.pageSideMenus.push(n);
|
|
6506
|
-
});
|
|
6532
|
+
showMessage(i, n) {
|
|
6533
|
+
super.showMessage(i, n), typeof i != "string" && (this.duration = i.duration ?? this.duration), Li.Wait(this.GetDuration()).then(() => super.hide());
|
|
6507
6534
|
}
|
|
6508
|
-
|
|
6509
|
-
|
|
6510
|
-
if (this.showContacts && !this.pageSideMenus.find((e) => e.id === "contacts")) {
|
|
6511
|
-
const e = new Pt();
|
|
6512
|
-
e.id = "contacts", e.name = "Контакты", this.pageSideMenus.push(e);
|
|
6513
|
-
}
|
|
6514
|
-
return this.filterStr === "" ? this.pageSideMenus : this.pageSideMenus.filter((e) => e.infoExists(this.filterStr));
|
|
6535
|
+
GetDuration() {
|
|
6536
|
+
return this.duration;
|
|
6515
6537
|
}
|
|
6516
|
-
|
|
6517
|
-
|
|
6538
|
+
Dev() {
|
|
6539
|
+
const i = "В режиме разработки", n = Pe.Warning;
|
|
6540
|
+
super.showMessage(i, n);
|
|
6518
6541
|
}
|
|
6519
|
-
|
|
6520
|
-
|
|
6542
|
+
Save() {
|
|
6543
|
+
const i = "Изменения успешно сохранены", n = Pe.Success;
|
|
6544
|
+
super.showMessage(i, n);
|
|
6521
6545
|
}
|
|
6522
6546
|
}
|
|
6523
|
-
|
|
6524
|
-
|
|
6525
|
-
|
|
6526
|
-
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
R.GetClassConstructor(Mt)
|
|
6531
|
-
], Gt.prototype, "pageSections");
|
|
6532
|
-
Yi([
|
|
6533
|
-
R.GetClassConstructor(rh)
|
|
6534
|
-
], Gt.prototype, "pageDocuments");
|
|
6535
|
-
class Eo {
|
|
6536
|
-
constructor(e) {
|
|
6537
|
-
a(this, "id");
|
|
6538
|
-
a(this, "name", "");
|
|
6539
|
-
a(this, "link", "");
|
|
6540
|
-
a(this, "selected", !1);
|
|
6541
|
-
a(this, "hide", !1);
|
|
6542
|
-
a(this, "editMode", !1);
|
|
6543
|
-
a(this, "color", "");
|
|
6544
|
-
a(this, "background", "");
|
|
6545
|
-
a(this, "page", new Gt());
|
|
6546
|
-
a(this, "pageId");
|
|
6547
|
-
a(this, "order", 0);
|
|
6548
|
-
a(this, "menuId");
|
|
6549
|
-
a(this, "iconId");
|
|
6550
|
-
a(this, "icon", new ge());
|
|
6551
|
-
a(this, "iconName", "");
|
|
6552
|
-
a(this, "svgCode", "");
|
|
6553
|
-
R.BuildClass(this, e);
|
|
6554
|
-
}
|
|
6555
|
-
getLink() {
|
|
6556
|
-
return this.isLink() && !this.isPageLink() ? this.link : !this.isLink() && this.isPageLink() ? this.page.getLink() : "";
|
|
6547
|
+
const Fo = new vh();
|
|
6548
|
+
class yh {
|
|
6549
|
+
constructor() {
|
|
6550
|
+
a(this, "limit", 25);
|
|
6551
|
+
a(this, "count", 0);
|
|
6552
|
+
a(this, "curPage", 1);
|
|
6553
|
+
a(this, "storeModule", "");
|
|
6557
6554
|
}
|
|
6558
|
-
|
|
6559
|
-
|
|
6555
|
+
setCurPage(e) {
|
|
6556
|
+
this.curPage = e;
|
|
6560
6557
|
}
|
|
6561
|
-
|
|
6562
|
-
return this.
|
|
6558
|
+
pagesCount() {
|
|
6559
|
+
return Math.ceil(this.count / this.limit) ?? 1;
|
|
6563
6560
|
}
|
|
6564
|
-
|
|
6565
|
-
this.
|
|
6561
|
+
reset() {
|
|
6562
|
+
this.count = 0, this.curPage = 1;
|
|
6566
6563
|
}
|
|
6567
6564
|
}
|
|
6568
|
-
|
|
6569
|
-
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
|
|
6573
|
-
|
|
6565
|
+
const Lo = new yh();
|
|
6566
|
+
class B {
|
|
6567
|
+
}
|
|
6568
|
+
a(B, "Auth", ke(mo)), a(B, "AdminUI", ke(Io)), a(B, "Dialog", ke($o)), a(B, "Notification", ke(Fo)), a(B, "Loading", ke(Eo)), a(B, "Paginator", ke(Lo)), a(B, "Store", Ji);
|
|
6569
|
+
function wh() {
|
|
6570
|
+
const t = P(!1), e = P(!1);
|
|
6571
|
+
return {
|
|
6572
|
+
confirmLeave: t,
|
|
6573
|
+
saveButtonClick: e,
|
|
6574
|
+
beforeWindowUnload: (r) => {
|
|
6575
|
+
t.value && r.preventDefault();
|
|
6576
|
+
},
|
|
6577
|
+
formUpdated: () => {
|
|
6578
|
+
t.value = !0;
|
|
6579
|
+
},
|
|
6580
|
+
showConfirmModal: (r, o) => {
|
|
6581
|
+
t.value && !e.value ? B.Dialog.Save().then(() => {
|
|
6582
|
+
r(), o();
|
|
6583
|
+
}).catch(() => {
|
|
6584
|
+
B.Notification.Warning("Изменения не были сохранены"), o();
|
|
6585
|
+
}) : o();
|
|
6586
|
+
}
|
|
6587
|
+
};
|
|
6588
|
+
}
|
|
6589
|
+
const H0 = (() => {
|
|
6590
|
+
const t = (r, o) => st(async () => {
|
|
6591
|
+
var l;
|
|
6592
|
+
be.Get().reset(), tt.Set(o == null ? void 0 : o.sortsLib), be.Get().setSortModel(tt.GetDefault()), tt.Set(o == null ? void 0 : o.sortsLib), be.Get().setSortModel(tt.GetDefault()), B.Paginator.storeModule = (l = o == null ? void 0 : o.pagination) == null ? void 0 : l.storeModule, await r();
|
|
6593
|
+
}), { saveButtonClick: e, showConfirmModal: i } = wh(), n = (r) => tu((o, l, u) => {
|
|
6594
|
+
i((r || s)(), u);
|
|
6595
|
+
}), s = (r) => async () => {
|
|
6596
|
+
e.value = !0;
|
|
6597
|
+
try {
|
|
6598
|
+
r && await r(), B.Notification.Success("Сохранено");
|
|
6599
|
+
} catch (o) {
|
|
6600
|
+
B.Notification.Success("Что-то пошло не так. " + o);
|
|
6601
|
+
return;
|
|
6602
|
+
}
|
|
6603
|
+
};
|
|
6604
|
+
return {
|
|
6605
|
+
onBeforeMount: t,
|
|
6606
|
+
onBeforeRouteLeave: n,
|
|
6607
|
+
submit: s
|
|
6608
|
+
};
|
|
6609
|
+
})(), Qs = ["#31af5e", "#ff4d3b", "#006BB5", "#f3911c"];
|
|
6610
|
+
function q0() {
|
|
6611
|
+
return Qs[Math.floor(Math.random() * Qs.length)];
|
|
6612
|
+
}
|
|
6613
|
+
function U0(t, e) {
|
|
6614
|
+
const i = [2, 0, 1, 1, 1, 2];
|
|
6615
|
+
return t.length + " " + e[t.length % 100 > 4 && t.length % 100 < 20 ? 2 : i[t.length % 10 < 5 ? t.length % 10 : 5]];
|
|
6616
|
+
}
|
|
6617
|
+
class W0 {
|
|
6574
6618
|
constructor(e) {
|
|
6575
|
-
a(this, "id");
|
|
6576
6619
|
a(this, "name", "");
|
|
6577
|
-
a(this, "link", "");
|
|
6578
|
-
a(this, "top", !0);
|
|
6579
|
-
a(this, "side", !0);
|
|
6580
|
-
a(this, "show", !1);
|
|
6581
|
-
a(this, "hide", !1);
|
|
6582
|
-
a(this, "active", !1);
|
|
6583
|
-
a(this, "order", 0);
|
|
6584
|
-
a(this, "selected", !1);
|
|
6585
|
-
a(this, "editMode", !1);
|
|
6586
|
-
a(this, "page", new Gt());
|
|
6587
|
-
a(this, "pageId");
|
|
6588
|
-
a(this, "subMenus", []);
|
|
6589
|
-
a(this, "subMenusForDelete", []);
|
|
6590
|
-
a(this, "iconId");
|
|
6591
|
-
a(this, "icon", new ge());
|
|
6592
6620
|
R.BuildClass(this, e);
|
|
6593
6621
|
}
|
|
6594
|
-
|
|
6595
|
-
return this.isLink() && !this.isPageLink() ? this.link : !this.isLink() && this.isPageLink() ? this.page.getLink() : "";
|
|
6596
|
-
}
|
|
6597
|
-
withoutChildren() {
|
|
6598
|
-
return this.subMenus.length === 0;
|
|
6622
|
+
cache() {
|
|
6599
6623
|
}
|
|
6600
|
-
|
|
6601
|
-
|
|
6624
|
+
getFromCache(e) {
|
|
6625
|
+
const i = sessionStorage.getItem(this.name);
|
|
6626
|
+
if (i) {
|
|
6627
|
+
const n = JSON.parse(i), s = /* @__PURE__ */ new Date(), r = new Date(n.time), o = s.getTime() - r.getTime();
|
|
6628
|
+
return Math.round(o / 6e4) > (e || 10) ? null : n.data;
|
|
6629
|
+
} else
|
|
6630
|
+
return null;
|
|
6602
6631
|
}
|
|
6603
|
-
|
|
6604
|
-
|
|
6632
|
+
async storeGetWithCache(e, i) {
|
|
6633
|
+
let n;
|
|
6634
|
+
return n = this.getFromCache(i), n || (n = await e(), n && this.cache()), n;
|
|
6605
6635
|
}
|
|
6606
|
-
|
|
6607
|
-
|
|
6608
|
-
|
|
6609
|
-
|
|
6610
|
-
|
|
6636
|
+
}
|
|
6637
|
+
function V0(t, e) {
|
|
6638
|
+
t == "left" && e.next(), t == "right" && e.prev();
|
|
6639
|
+
}
|
|
6640
|
+
const bh = ["#31af5e", "#ff4d3b", "#006BB5", "#f3911c"];
|
|
6641
|
+
class G0 {
|
|
6642
|
+
static GetRandColor(e) {
|
|
6643
|
+
return dt.GetRandEL(e ?? bh);
|
|
6611
6644
|
}
|
|
6612
|
-
|
|
6613
|
-
|
|
6645
|
+
}
|
|
6646
|
+
function j0(t) {
|
|
6647
|
+
const e = t.filter((s) => s.rating !== 0);
|
|
6648
|
+
let i = 0;
|
|
6649
|
+
e.forEach((s) => i = i + s.rating);
|
|
6650
|
+
const n = i / e.length;
|
|
6651
|
+
return isNaN(n) ? 0 : Number((i / e.length).toFixed(2));
|
|
6652
|
+
}
|
|
6653
|
+
let _0 = class {
|
|
6654
|
+
constructor() {
|
|
6655
|
+
a(this, "startHour", 9);
|
|
6656
|
+
a(this, "endHour", 19);
|
|
6657
|
+
a(this, "timelinePxHeight", 50);
|
|
6658
|
+
a(this, "timelineStep", ni.FiveMinutes);
|
|
6659
|
+
a(this, "activeTime", "");
|
|
6660
|
+
a(this, "activeObjectId", "");
|
|
6661
|
+
a(this, "dragged", !1);
|
|
6662
|
+
a(this, "draggedStartTime", "");
|
|
6663
|
+
a(this, "draggedEndTime", "");
|
|
6664
|
+
a(this, "timelines", Fi[ni.FiveMinutes]);
|
|
6614
6665
|
}
|
|
6615
|
-
|
|
6616
|
-
this.
|
|
6666
|
+
startDrag(e, i) {
|
|
6667
|
+
this.draggedStartTime = e, this.draggedEndTime = i, this.dragged = !0;
|
|
6617
6668
|
}
|
|
6618
|
-
|
|
6619
|
-
|
|
6620
|
-
i && this.subMenusForDelete.push(i), this.subMenus.splice(e, 1);
|
|
6669
|
+
endDrag() {
|
|
6670
|
+
this.activeTime = "", this.dragged = !1;
|
|
6621
6671
|
}
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
let i = 0;
|
|
6625
|
-
this.subMenus.forEach((n) => {
|
|
6626
|
-
n.color = e[i], i = e.length - 1 ? i = 0 : i++;
|
|
6627
|
-
});
|
|
6672
|
+
setTimelineStep(e) {
|
|
6673
|
+
this.timelineStep = e, this.setTimelines();
|
|
6628
6674
|
}
|
|
6629
|
-
|
|
6630
|
-
|
|
6675
|
+
setTimelines() {
|
|
6676
|
+
this.timelines = Fi[this.timelineStep];
|
|
6631
6677
|
}
|
|
6632
|
-
|
|
6633
|
-
return
|
|
6678
|
+
getScheduleHeight() {
|
|
6679
|
+
return this.getHourHeight() * this.getHoursArr().length;
|
|
6634
6680
|
}
|
|
6635
|
-
|
|
6636
|
-
|
|
6637
|
-
R.GetClassConstructor(Eo)
|
|
6638
|
-
], Po.prototype, "subMenus");
|
|
6639
|
-
let mh = class extends ae {
|
|
6640
|
-
constructor() {
|
|
6641
|
-
super(Po, "menus");
|
|
6681
|
+
getHourHeight() {
|
|
6682
|
+
return this.timelinePxHeight * this.timelines.length;
|
|
6642
6683
|
}
|
|
6643
|
-
|
|
6644
|
-
|
|
6645
|
-
let gh = class extends ae {
|
|
6646
|
-
constructor() {
|
|
6647
|
-
super(Lt, "phones");
|
|
6684
|
+
getHoursArr() {
|
|
6685
|
+
return dt.GenerateNumsRange(this.startHour, this.endHour);
|
|
6648
6686
|
}
|
|
6649
6687
|
};
|
|
6650
|
-
const
|
|
6651
|
-
class
|
|
6688
|
+
const Sh = ["ВС", "ПН", "ВТ", "СР", "ЧТ", "ПТ", "СБ"];
|
|
6689
|
+
class Jt {
|
|
6652
6690
|
constructor(e) {
|
|
6653
|
-
a(this, "
|
|
6654
|
-
|
|
6655
|
-
R.BuildClass(this, e);
|
|
6691
|
+
a(this, "locale", "ru-RU");
|
|
6692
|
+
this.locale = e ?? this.locale;
|
|
6656
6693
|
}
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
};
|
|
6663
|
-
class Fo {
|
|
6664
|
-
constructor(e) {
|
|
6665
|
-
a(this, "id");
|
|
6666
|
-
a(this, "nameRus", "");
|
|
6667
|
-
a(this, "fields", []);
|
|
6668
|
-
R.BuildClass(this, e);
|
|
6694
|
+
format(e, i) {
|
|
6695
|
+
if (!e)
|
|
6696
|
+
return "";
|
|
6697
|
+
const n = { year: "numeric", month: "2-digit", day: "2-digit", hour: void 0, minute: void 0 };
|
|
6698
|
+
return i && (n.year = i.year || i.year === void 0 ? i.year : n.year, n.month = i.month || i.month === void 0 ? i.month : n.month, n.day = i.day || i.day === void 0 ? i.day : n.day, n.hour = i.hour ?? n.hour, n.minute = i.minute ?? n.minute), Intl.DateTimeFormat(this.locale, n).format(new Date(e));
|
|
6669
6699
|
}
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
R.GetClassConstructor(vh)
|
|
6673
|
-
], Fo.prototype, "fields");
|
|
6674
|
-
let bh = class extends ae {
|
|
6675
|
-
constructor() {
|
|
6676
|
-
super(Fo, "schemas");
|
|
6700
|
+
getPeriod(e, i, n) {
|
|
6701
|
+
return `${this.format(e, n)}-${this.format(i, n)}`;
|
|
6677
6702
|
}
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
class Lo {
|
|
6681
|
-
constructor(e) {
|
|
6682
|
-
a(this, "id", "");
|
|
6683
|
-
a(this, "value", "");
|
|
6684
|
-
a(this, "label", "");
|
|
6685
|
-
a(this, "key", "");
|
|
6686
|
-
a(this, "description", "");
|
|
6687
|
-
a(this, "route", "");
|
|
6688
|
-
// searchGroup: SearchGroup = new SearchGroup();
|
|
6689
|
-
a(this, "searchElementMetas", []);
|
|
6690
|
-
R.BuildClass(this, e);
|
|
6703
|
+
getShortDayName(e) {
|
|
6704
|
+
return e ? Sh[e.getDay()] : "";
|
|
6691
6705
|
}
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
a(this, "id");
|
|
6696
|
-
a(this, "name", "");
|
|
6697
|
-
a(this, "label", "");
|
|
6698
|
-
R.BuildClass(this, e);
|
|
6706
|
+
getCurrentWeekPeriod(e) {
|
|
6707
|
+
const i = /* @__PURE__ */ new Date(), n = new Date(i.getFullYear(), i.getMonth(), i.getDate() - i.getDay() + 1), s = new Date(i.getFullYear(), i.getMonth(), n.getDate() + 7);
|
|
6708
|
+
return this.getPeriod(n, s, e || { month: "2-digit", day: "numeric", year: void 0 });
|
|
6699
6709
|
}
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
(o = t[r]) && (s = o(e, i, s) || s);
|
|
6704
|
-
return s && xh(e, i, s), s;
|
|
6705
|
-
};
|
|
6706
|
-
class Tt {
|
|
6707
|
-
constructor(e) {
|
|
6708
|
-
a(this, "id");
|
|
6709
|
-
a(this, "key", "");
|
|
6710
|
-
a(this, "label", "");
|
|
6711
|
-
a(this, "order", 0);
|
|
6712
|
-
a(this, "route", "");
|
|
6713
|
-
a(this, "table", "");
|
|
6714
|
-
a(this, "active", !0);
|
|
6715
|
-
a(this, "searchColumn", "");
|
|
6716
|
-
a(this, "descriptionColumn", "");
|
|
6717
|
-
a(this, "labelColumn", "");
|
|
6718
|
-
a(this, "valueColumn", "");
|
|
6719
|
-
a(this, "options", []);
|
|
6720
|
-
a(this, "searchGroupMetaColumns", []);
|
|
6721
|
-
R.BuildClass(this, e);
|
|
6710
|
+
getDurationInDay(e, i) {
|
|
6711
|
+
const n = /* @__PURE__ */ new Date(), s = /* @__PURE__ */ new Date(), r = Jt.SplitHourTime(e), o = Jt.SplitHourTime(i);
|
|
6712
|
+
return n.setHours(r[0], r[1], 0, 0), s.setHours(o[0], o[1], 0, 0), (s.getTime() - n.getTime()) / 1e3 / 60;
|
|
6722
6713
|
}
|
|
6723
|
-
|
|
6724
|
-
|
|
6725
|
-
|
|
6726
|
-
], Tt.prototype, "options");
|
|
6727
|
-
Do([
|
|
6728
|
-
R.GetClassConstructor(Ch)
|
|
6729
|
-
], Tt.prototype, "searchGroupMetaColumns");
|
|
6730
|
-
class vn {
|
|
6731
|
-
constructor(e) {
|
|
6732
|
-
a(this, "query", "");
|
|
6733
|
-
a(this, "key", "");
|
|
6734
|
-
a(this, "params", "");
|
|
6735
|
-
a(this, "suggester", !1);
|
|
6736
|
-
a(this, "mustBeTranslated", !0);
|
|
6737
|
-
a(this, "options", []);
|
|
6738
|
-
a(this, "searchGroupId", "");
|
|
6739
|
-
a(this, "searchGroups", []);
|
|
6740
|
-
a(this, "searchGroup", new Tt());
|
|
6741
|
-
a(this, "searchObjects", []);
|
|
6742
|
-
a(this, "pagination", new Ai());
|
|
6743
|
-
a(this, "count", 0);
|
|
6744
|
-
e && (this.query = e.query, e.searchGroups && (this.searchGroups = e.searchGroups.map((i) => new Tt(i))), e.searchGroup && (this.searchGroup = new Tt(e.searchGroup)), e.options && (this.options = e.options.map((i) => new Lo(i))), this.count = e.count);
|
|
6714
|
+
static HourTimeinMunutes(e) {
|
|
6715
|
+
const i = Jt.SplitHourTime(e);
|
|
6716
|
+
return i[0] * 60 + i[1];
|
|
6745
6717
|
}
|
|
6746
|
-
|
|
6747
|
-
|
|
6718
|
+
static SplitHourTime(e) {
|
|
6719
|
+
const i = e.split(":");
|
|
6720
|
+
return [Number(i[0]), Number(i[1])];
|
|
6748
6721
|
}
|
|
6749
|
-
|
|
6750
|
-
const
|
|
6751
|
-
|
|
6722
|
+
static AddMinutesToHM(e, i) {
|
|
6723
|
+
const n = /* @__PURE__ */ new Date(), s = Jt.SplitHourTime(e);
|
|
6724
|
+
n.setHours(s[0], s[1], 0, 0);
|
|
6725
|
+
const r = new Date(n.getTime() + i * 6e4), o = r.getHours(), l = r.getMinutes();
|
|
6726
|
+
return `${o}:${l}`;
|
|
6752
6727
|
}
|
|
6753
|
-
|
|
6754
|
-
|
|
6728
|
+
getMonthsDiff(e, i) {
|
|
6729
|
+
return i.getMonth() - e.getMonth() + 12 * (i.getFullYear() - e.getFullYear());
|
|
6755
6730
|
}
|
|
6756
|
-
|
|
6757
|
-
const
|
|
6758
|
-
|
|
6731
|
+
stringToDate(e) {
|
|
6732
|
+
const i = e.split(".");
|
|
6733
|
+
return /* @__PURE__ */ new Date(`${i[2]}-${i[1]}-${i[0]}`);
|
|
6759
6734
|
}
|
|
6760
6735
|
}
|
|
6761
|
-
|
|
6762
|
-
|
|
6763
|
-
|
|
6764
|
-
|
|
6765
|
-
|
|
6766
|
-
|
|
6736
|
+
const Dn = (t) => t === 8 || t === 46, Ch = (t) => t > 46 && t < 58, xh = (t) => t > 34 && t < 41, Mh = (t) => t + ".", kh = (t, e, i) => {
|
|
6737
|
+
Dn(e) || xh(e) || (!Ch(e) || i > 9) && t.preventDefault();
|
|
6738
|
+
};
|
|
6739
|
+
function Ih(t, e) {
|
|
6740
|
+
if (e > 8) {
|
|
6741
|
+
let i = t.substring(0, 2).replace(".", "1");
|
|
6742
|
+
Number(i) > 31 && (i = "31");
|
|
6743
|
+
let n = t.substring(3, 5).replace(".", "1");
|
|
6744
|
+
Number(n) > 12 && (n = "12");
|
|
6745
|
+
let s = t.substring(6, 10).replace(".", "1");
|
|
6746
|
+
Number(s) > 2100 && (s = "2100"), t = i + "." + n + "." + s;
|
|
6767
6747
|
}
|
|
6768
|
-
|
|
6769
|
-
|
|
6770
|
-
|
|
6771
|
-
|
|
6772
|
-
|
|
6748
|
+
return t;
|
|
6749
|
+
}
|
|
6750
|
+
function Y0(t) {
|
|
6751
|
+
const e = t.keyCode;
|
|
6752
|
+
let i = t.srcElement.value;
|
|
6753
|
+
const n = i.length;
|
|
6754
|
+
kh(t, e, n), !Dn(e) && (n === 2 || n === 5) && (i = Mh(i));
|
|
6755
|
+
const s = t.srcElement.value + String.fromCharCode(t.which);
|
|
6756
|
+
if (Dn(e)) {
|
|
6757
|
+
t.srcElement.value = i;
|
|
6758
|
+
return;
|
|
6773
6759
|
}
|
|
6774
|
-
|
|
6775
|
-
|
|
6760
|
+
i.length === 0 && Number(s) > 3 && (i = "3", t.preventDefault()), i.length === 1 && Number(s) > 31 && (i = "31", t.preventDefault()), s.length === 5 && Number(s.substring(3, 5)) > 12 && (i = i.substring(0, 3) + "12", t.preventDefault()), i = Ih(i, n), t.srcElement.value = i;
|
|
6761
|
+
}
|
|
6762
|
+
class Do {
|
|
6763
|
+
static GetPeriod(e, i) {
|
|
6764
|
+
return Ti.Get(lt.Format(e), lt.Format(i));
|
|
6776
6765
|
}
|
|
6777
|
-
|
|
6778
|
-
e.
|
|
6779
|
-
n.options = [];
|
|
6780
|
-
});
|
|
6781
|
-
const i = await Ie.Get({ query: `main?searchModel=${e.toUrl()}` });
|
|
6782
|
-
this.SetSearchModel(i);
|
|
6766
|
+
static GetDateOrToday(e) {
|
|
6767
|
+
return e ? e.date : /* @__PURE__ */ new Date();
|
|
6783
6768
|
}
|
|
6784
|
-
|
|
6785
|
-
|
|
6769
|
+
static InPeriod(e, i, n) {
|
|
6770
|
+
return Ti.In(new Date(e), new Date(i), new Date(n));
|
|
6786
6771
|
}
|
|
6787
|
-
|
|
6788
|
-
|
|
6772
|
+
static GetDatesFromPeriod(e, i) {
|
|
6773
|
+
const n = [new Date(e)];
|
|
6774
|
+
let s = e;
|
|
6775
|
+
for (; s <= i; )
|
|
6776
|
+
s = Do.AddDays(s, 1), n.push(s);
|
|
6777
|
+
return n;
|
|
6789
6778
|
}
|
|
6790
|
-
|
|
6779
|
+
static AddDays(e, i) {
|
|
6780
|
+
const n = new Date(e);
|
|
6781
|
+
return n.setDate(n.getDate() + i), n;
|
|
6791
6782
|
}
|
|
6792
|
-
|
|
6793
|
-
return
|
|
6783
|
+
static Eq(e, i) {
|
|
6784
|
+
return e.getTime() === i.getTime();
|
|
6794
6785
|
}
|
|
6795
|
-
|
|
6796
|
-
|
|
6786
|
+
}
|
|
6787
|
+
class J0 {
|
|
6788
|
+
constructor() {
|
|
6789
|
+
a(this, "dragged", !1);
|
|
6790
|
+
a(this, "dragImg", new Image());
|
|
6791
|
+
this.dragImg.src = "data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=";
|
|
6797
6792
|
}
|
|
6798
|
-
|
|
6799
|
-
|
|
6793
|
+
start(e) {
|
|
6794
|
+
this.dragged = !0, e && e.dataTransfer && e.dataTransfer.setDragImage(this.dragImg, 0, 0);
|
|
6800
6795
|
}
|
|
6801
|
-
|
|
6802
|
-
|
|
6796
|
+
end() {
|
|
6797
|
+
this.dragged = !1;
|
|
6803
6798
|
}
|
|
6804
|
-
|
|
6805
|
-
|
|
6806
|
-
class is {
|
|
6807
|
-
constructor(e) {
|
|
6808
|
-
a(this, "id");
|
|
6809
|
-
a(this, "login", "");
|
|
6810
|
-
a(this, "email", "");
|
|
6811
|
-
a(this, "password", "");
|
|
6812
|
-
R.BuildClass(this, e);
|
|
6799
|
+
isDragged() {
|
|
6800
|
+
return this.dragged;
|
|
6813
6801
|
}
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
-
|
|
6802
|
+
}
|
|
6803
|
+
class Rh {
|
|
6804
|
+
static Get(e) {
|
|
6805
|
+
const i = e.split(".");
|
|
6806
|
+
return i[i.length - 1];
|
|
6817
6807
|
}
|
|
6818
6808
|
}
|
|
6819
|
-
|
|
6820
|
-
|
|
6821
|
-
|
|
6809
|
+
const X0 = /* @__PURE__ */ (() => {
|
|
6810
|
+
function t(r, o) {
|
|
6811
|
+
localStorage.setItem(`${r}_favourite`, o.toString());
|
|
6822
6812
|
}
|
|
6823
|
-
|
|
6824
|
-
const
|
|
6825
|
-
|
|
6826
|
-
constructor() {
|
|
6827
|
-
super(Rr, "value-types");
|
|
6813
|
+
function e(r, o) {
|
|
6814
|
+
const l = localStorage.getItem(`${r}_favourite`);
|
|
6815
|
+
return l ? l.split(",").includes(o) : !1;
|
|
6828
6816
|
}
|
|
6829
|
-
|
|
6830
|
-
const
|
|
6831
|
-
|
|
6832
|
-
|
|
6833
|
-
|
|
6834
|
-
|
|
6835
|
-
|
|
6836
|
-
|
|
6837
|
-
a(this, "FTSPPresets", eh);
|
|
6838
|
-
a(this, "Humans", ih);
|
|
6839
|
-
a(this, "Menus", ph);
|
|
6840
|
-
a(this, "Phones", To);
|
|
6841
|
-
a(this, "Schemas", Sh);
|
|
6842
|
-
a(this, "Search", Dn);
|
|
6843
|
-
a(this, "UserAccounts", Ih);
|
|
6844
|
-
a(this, "ValueTypes", Ah);
|
|
6817
|
+
function i(r, o) {
|
|
6818
|
+
const l = localStorage.getItem(`${r}_favourite`);
|
|
6819
|
+
if (!l) {
|
|
6820
|
+
t(r, [o]);
|
|
6821
|
+
return;
|
|
6822
|
+
}
|
|
6823
|
+
const u = l.split(",");
|
|
6824
|
+
u.push(o), t(r, u);
|
|
6845
6825
|
}
|
|
6846
|
-
|
|
6847
|
-
|
|
6848
|
-
|
|
6826
|
+
function n(r, o) {
|
|
6827
|
+
const l = localStorage.getItem(`${r}_favourite`);
|
|
6828
|
+
if (!l)
|
|
6829
|
+
return;
|
|
6830
|
+
const u = l.split(",").filter((c) => c !== o);
|
|
6831
|
+
t(r, u);
|
|
6832
|
+
}
|
|
6833
|
+
function s() {
|
|
6834
|
+
for (const r in localStorage)
|
|
6835
|
+
r.includes("_favourite") && localStorage.removeItem(r);
|
|
6849
6836
|
}
|
|
6837
|
+
return {
|
|
6838
|
+
addToFavourite: i,
|
|
6839
|
+
removeFromFavourite: n,
|
|
6840
|
+
setFavourite: t,
|
|
6841
|
+
isFavourite: e,
|
|
6842
|
+
clearFavourite: s
|
|
6843
|
+
};
|
|
6844
|
+
})();
|
|
6845
|
+
function Ah(t, e) {
|
|
6846
|
+
const i = [];
|
|
6847
|
+
if (t)
|
|
6848
|
+
for (let n = 0; n < Math.ceil(t.length / e); n++)
|
|
6849
|
+
i[n] = t.slice(n * e, n * e + e);
|
|
6850
|
+
return i;
|
|
6850
6851
|
}
|
|
6851
|
-
|
|
6852
|
-
|
|
6852
|
+
function Q0(t, e) {
|
|
6853
|
+
t[e].order = e - 1, t[e - 1] && (t[e - 1].order = e), [t[e], t[e - 1]] = [t[e - 1], t[e]];
|
|
6854
|
+
}
|
|
6855
|
+
function K0(t, e) {
|
|
6856
|
+
t[e].order = e + 1, t[e + 1] && (t[e + 1].order = e), [t[e], t[e + 1]] = [t[e + 1], t[e]];
|
|
6857
|
+
}
|
|
6858
|
+
class It {
|
|
6853
6859
|
}
|
|
6854
|
-
a(
|
|
6860
|
+
a(It, "Auth", ke(mo)), a(It, "AdminUI", ke(Io)), a(It, "Dialog", ke($o)), a(It, "Notification", ke(Fo)), a(It, "Loading", ke(Eo)), a(It, "Paginator", ke(Lo));
|
|
6855
6861
|
const zi = class zi {
|
|
6856
6862
|
static Format(e) {
|
|
6857
6863
|
let i = e;
|
|
@@ -7143,7 +7149,7 @@ const Oo = /* @__PURE__ */ $({
|
|
|
7143
7149
|
n.value = c, i("beforeChange", c), i("change", c);
|
|
7144
7150
|
}, l = (u) => u.length != 10 ? (r.value = s, B.Notification.Error("Неверный формат даты"), !1) : Number(r.value.slice(0, 2)) > 31 ? (r.value = s, B.Notification.Error("Неверный день месяца"), !1) : Number(r.value.slice(3, 5)) > 12 ? (r.value = s, B.Notification.Error("Неверный месяц"), !1) : Number(r.value.slice(6, 10)) > 2100 ? (r.value = s, B.Notification.Error("Неверный год"), !1) : !0;
|
|
7145
7151
|
return (u, c) => {
|
|
7146
|
-
const d =
|
|
7152
|
+
const d = Ct;
|
|
7147
7153
|
return m(), y("div", {
|
|
7148
7154
|
class: "style-container",
|
|
7149
7155
|
style: I({
|
|
@@ -7950,7 +7956,7 @@ const Oo = /* @__PURE__ */ $({
|
|
|
7950
7956
|
return Vn(() => {
|
|
7951
7957
|
i.Reset();
|
|
7952
7958
|
}), (l, u) => {
|
|
7953
|
-
const c =
|
|
7959
|
+
const c = Ct, d = Ne;
|
|
7954
7960
|
return m(), y("div", {
|
|
7955
7961
|
class: "auth-card",
|
|
7956
7962
|
style: I({ width: t.width, margin: t.margin, padding: t.padding })
|
|
@@ -8107,7 +8113,7 @@ const If = { class: "container" }, Rf = { class: "slide-box" }, Af = { class: "l
|
|
|
8107
8113
|
hr((w) => ({
|
|
8108
8114
|
"17adb052": i
|
|
8109
8115
|
}));
|
|
8110
|
-
const e = t, i = `${e.animationTime}ms`, n = P(e.startActiveGroupIndex), s = P(at.None), r = P(
|
|
8116
|
+
const e = t, i = `${e.animationTime}ms`, n = P(e.startActiveGroupIndex), s = P(at.None), r = P(Ah(e.events, e.quantity)), o = pe(() => r.value[n.value]);
|
|
8111
8117
|
ri(() => {
|
|
8112
8118
|
});
|
|
8113
8119
|
const l = () => n.value = n.value + 1 < r.value.length ? n.value + 1 : 0, u = () => n.value = n.value - 1 < 0 ? r.value.length - 1 : n.value - 1, c = (w) => {
|
|
@@ -8207,10 +8213,10 @@ const No = new Tf(), Ff = /* @__PURE__ */ $({
|
|
|
8207
8213
|
emits: ["update:modelValue"],
|
|
8208
8214
|
setup(t) {
|
|
8209
8215
|
const e = rt(t, "modelValue"), i = async () => {
|
|
8210
|
-
|
|
8216
|
+
po.Update(e.value);
|
|
8211
8217
|
};
|
|
8212
8218
|
return (n, s) => {
|
|
8213
|
-
const r =
|
|
8219
|
+
const r = Ct;
|
|
8214
8220
|
return m(), y(U, null, [
|
|
8215
8221
|
A(r, {
|
|
8216
8222
|
modelValue: e.value.address,
|
|
@@ -8234,10 +8240,10 @@ const No = new Tf(), Ff = /* @__PURE__ */ $({
|
|
|
8234
8240
|
emits: ["update:modelValue"],
|
|
8235
8241
|
setup(t) {
|
|
8236
8242
|
const e = rt(t, "modelValue"), i = async () => {
|
|
8237
|
-
await
|
|
8243
|
+
await Co.Update(e.value);
|
|
8238
8244
|
};
|
|
8239
8245
|
return (n, s) => {
|
|
8240
|
-
const r =
|
|
8246
|
+
const r = Ct;
|
|
8241
8247
|
return m(), y(U, null, [
|
|
8242
8248
|
A(r, {
|
|
8243
8249
|
modelValue: e.value.number,
|
|
@@ -8280,7 +8286,7 @@ const No = new Tf(), Ff = /* @__PURE__ */ $({
|
|
|
8280
8286
|
e.value.removePhone(o);
|
|
8281
8287
|
};
|
|
8282
8288
|
return (o, l) => {
|
|
8283
|
-
const u =
|
|
8289
|
+
const u = Ct, c = Ne;
|
|
8284
8290
|
return m(), y(U, null, [
|
|
8285
8291
|
t.full ? (m(), y("div", Df, [
|
|
8286
8292
|
A(u, {
|
|
@@ -8615,7 +8621,7 @@ const Yf = /* @__PURE__ */ E(jf, [["render", Zf], ["__scopeId", "data-v-80580591
|
|
|
8615
8621
|
o.value = !1, l.value = !1;
|
|
8616
8622
|
};
|
|
8617
8623
|
return (_, G) => {
|
|
8618
|
-
const ze = He, qe = Ne, ht = Qi,
|
|
8624
|
+
const ze = He, qe = Ne, ht = Qi, Mt = fr("click-outside");
|
|
8619
8625
|
return m(), y(U, null, [
|
|
8620
8626
|
g(o) ? (m(), y("div", im)) : Z("", !0),
|
|
8621
8627
|
f("div", {
|
|
@@ -8645,7 +8651,7 @@ const Yf = /* @__PURE__ */ E(jf, [["render", Zf], ["__scopeId", "data-v-80580591
|
|
|
8645
8651
|
T(_.$slots, "open-inside-content", {}, void 0, !0)
|
|
8646
8652
|
], 4)), [
|
|
8647
8653
|
[
|
|
8648
|
-
|
|
8654
|
+
Mt,
|
|
8649
8655
|
L,
|
|
8650
8656
|
void 0,
|
|
8651
8657
|
{ prevent: !0 }
|
|
@@ -9447,7 +9453,7 @@ function Tm(t, e) {
|
|
|
9447
9453
|
}
|
|
9448
9454
|
return s;
|
|
9449
9455
|
}
|
|
9450
|
-
function
|
|
9456
|
+
function St(t) {
|
|
9451
9457
|
return function(e) {
|
|
9452
9458
|
if (Array.isArray(e)) return yn(e);
|
|
9453
9459
|
}(t) || function(e) {
|
|
@@ -9623,7 +9629,7 @@ var Qt = function(t, e) {
|
|
|
9623
9629
|
}, onMouseLeave: function() {
|
|
9624
9630
|
this.hovered && !this.touches.length && (this.hovered = !1, this.$emit("leave"));
|
|
9625
9631
|
}, onTouchStart: function(t) {
|
|
9626
|
-
t.cancelable && !this.disabled && t.touches.length === 1 && (this.touches =
|
|
9632
|
+
t.cancelable && !this.disabled && t.touches.length === 1 && (this.touches = St(t.touches), this.hovered || (this.$emit("enter"), this.hovered = !0), t.touches.length && this.initAnchor(this.touches.reduce(function(e, i) {
|
|
9627
9633
|
return { clientX: e.clientX + i.clientX / t.touches.length, clientY: e.clientY + i.clientY / t.touches.length };
|
|
9628
9634
|
}, { clientX: 0, clientY: 0 })), t.preventDefault && t.preventDefault(), t.stopPropagation());
|
|
9629
9635
|
}, onTouchEnd: function() {
|
|
@@ -9643,7 +9649,7 @@ var Qt = function(t, e) {
|
|
|
9643
9649
|
var e = this.$refs.draggable.getBoundingClientRect(), i = e.left, n = e.right, s = e.bottom, r = e.top;
|
|
9644
9650
|
this.anchor = { left: t.clientX - i, top: t.clientY - r, bottom: s - t.clientY, right: n - t.clientX };
|
|
9645
9651
|
}, processMove: function(t, e) {
|
|
9646
|
-
var i =
|
|
9652
|
+
var i = St(e);
|
|
9647
9653
|
if (this.touches.length) {
|
|
9648
9654
|
if (this.touches.length === 1 && i.length === 1) {
|
|
9649
9655
|
var n = this.$refs.draggable;
|
|
@@ -10072,7 +10078,7 @@ var rp = Xe("vue-draggable-area"), oa = { name: "DraggableArea", props: { movabl
|
|
|
10072
10078
|
}, methods: { onTouchStart: function(t) {
|
|
10073
10079
|
if (t.cancelable) {
|
|
10074
10080
|
var e = this.movable && t.touches.length === 1;
|
|
10075
|
-
e && (this.touches =
|
|
10081
|
+
e && (this.touches = St(t.touches)), (this.touchStarted || e) && (t.preventDefault(), t.stopPropagation());
|
|
10076
10082
|
}
|
|
10077
10083
|
}, onTouchEnd: function() {
|
|
10078
10084
|
this.touchStarted = !1, this.processEnd();
|
|
@@ -10091,7 +10097,7 @@ var rp = Xe("vue-draggable-area"), oa = { name: "DraggableArea", props: { movabl
|
|
|
10091
10097
|
var e = this.$refs.container.getBoundingClientRect(), i = e.left, n = e.top;
|
|
10092
10098
|
this.anchor = { x: t.clientX - i, y: t.clientY - n };
|
|
10093
10099
|
}, processMove: function(t, e) {
|
|
10094
|
-
var i =
|
|
10100
|
+
var i = St(e);
|
|
10095
10101
|
if (this.touches.length) {
|
|
10096
10102
|
var n = this.$refs.container.getBoundingClientRect(), s = n.left, r = n.top;
|
|
10097
10103
|
this.touches.length === 1 && i.length === 1 && this.$emit("move", new rs({ left: i[0].clientX - (s + this.anchor.x), top: i[0].clientY - (r + this.anchor.y) }));
|
|
@@ -10211,7 +10217,7 @@ var la = { props: { touchMove: { type: Boolean, required: !0 }, mouseMove: { typ
|
|
|
10211
10217
|
}, onTouchStart: function(t) {
|
|
10212
10218
|
if (t.cancelable && (this.touchMove || this.touchResize && t.touches.length > 1) && this.processEvent(t)) {
|
|
10213
10219
|
var e = this.$refs.container, i = e.getBoundingClientRect(), n = i.left, s = i.top, r = i.bottom, o = i.right;
|
|
10214
|
-
this.touches =
|
|
10220
|
+
this.touches = St(t.touches).filter(function(l) {
|
|
10215
10221
|
return l.clientX > n && l.clientX < o && l.clientY > s && l.clientY < r;
|
|
10216
10222
|
}), this.oldGeometricProperties = ur(this.touches, e);
|
|
10217
10223
|
}
|
|
@@ -10220,7 +10226,7 @@ var la = { props: { touchMove: { type: Boolean, required: !0 }, mouseMove: { typ
|
|
|
10220
10226
|
}, onTouchMove: function(t) {
|
|
10221
10227
|
var e = this;
|
|
10222
10228
|
if (this.touches.length) {
|
|
10223
|
-
var i =
|
|
10229
|
+
var i = St(t.touches).filter(function(n) {
|
|
10224
10230
|
return !n.identifier || e.touches.find(function(s) {
|
|
10225
10231
|
return s.identifier === n.identifier;
|
|
10226
10232
|
});
|
|
@@ -10597,7 +10603,7 @@ var lp = ["transitions"], ot = Xe("vue-advanced-cropper"), ha = { name: "Cropper
|
|
|
10597
10603
|
var l = o.coordinates;
|
|
10598
10604
|
return ie({}, Rt(s) ? s({ coordinates: l, imageSize: t.imageSize, visibleArea: t.visibleArea }) : t.defaultPosition);
|
|
10599
10605
|
}];
|
|
10600
|
-
this.delayedTransforms && r.push.apply(r,
|
|
10606
|
+
this.delayedTransforms && r.push.apply(r, St(Array.isArray(this.delayedTransforms) ? this.delayedTransforms : [this.delayedTransforms])), this.coordinates = this.applyTransform(r, !0), this.delayedTransforms = null;
|
|
10601
10607
|
}
|
|
10602
10608
|
}, clearImage: function() {
|
|
10603
10609
|
var t = this;
|
|
@@ -11531,7 +11537,7 @@ const Bp = { render: Op }, Np = { class: "tab" }, Hp = { class: "rotate" }, qp =
|
|
|
11531
11537
|
});
|
|
11532
11538
|
});
|
|
11533
11539
|
const u = (c) => {
|
|
11534
|
-
let d =
|
|
11540
|
+
let d = Rh.Get(c);
|
|
11535
11541
|
return !!i.formats.includes(d.toLowerCase());
|
|
11536
11542
|
};
|
|
11537
11543
|
return (c, d) => {
|
|
@@ -11685,7 +11691,7 @@ const ga = /* @__PURE__ */ E(gg, [["render", yg]]), wg = /* @__PURE__ */ Object.
|
|
|
11685
11691
|
i("select", c);
|
|
11686
11692
|
}
|
|
11687
11693
|
return (c, d) => {
|
|
11688
|
-
const h = Vo, p =
|
|
11694
|
+
const h = Vo, p = Ct;
|
|
11689
11695
|
return m(), y("div", bg, [
|
|
11690
11696
|
A(p, {
|
|
11691
11697
|
modelValue: g(s),
|
|
@@ -11973,7 +11979,7 @@ const Eg = /* @__PURE__ */ E(Ag, [["render", $g], ["__scopeId", "data-v-879cfd55
|
|
|
11973
11979
|
},
|
|
11974
11980
|
emits: ["select", "load", "input"],
|
|
11975
11981
|
setup(t, { emit: e }) {
|
|
11976
|
-
const i = t, n = e, s = P(i.modelValue), r = P(), o =
|
|
11982
|
+
const i = t, n = e, s = P(i.modelValue), r = P(), o = Ln.SearchModel();
|
|
11977
11983
|
it(
|
|
11978
11984
|
() => i.focus,
|
|
11979
11985
|
() => {
|
|
@@ -11987,7 +11993,7 @@ const Eg = /* @__PURE__ */ E(Ag, [["render", $g], ["__scopeId", "data-v-879cfd55
|
|
|
11987
11993
|
return;
|
|
11988
11994
|
r.value.activated = !0, o.searchObjects = [], o.query = d, o.key = i.keyValue;
|
|
11989
11995
|
const h = o.searchGroups.find((p) => p.key === i.keyValue);
|
|
11990
|
-
return h && (o.searchGroup = h), await
|
|
11996
|
+
return h && (o.searchGroup = h), await Ln.Search(o), o.searchObjects;
|
|
11991
11997
|
}, u = async (d) => {
|
|
11992
11998
|
n("select", d), s.value = "";
|
|
11993
11999
|
}, c = (d) => {
|
|
@@ -13112,11 +13118,11 @@ class dv extends qi {
|
|
|
13112
13118
|
}
|
|
13113
13119
|
const hv = {
|
|
13114
13120
|
install: function(t) {
|
|
13115
|
-
t.component("PButton", Ne), t.component("PCheckBox", yr), t.component("PDatePicker", Al), t.component("PFlex", wr), t.component("PInput",
|
|
13121
|
+
t.component("PButton", Ne), t.component("PCheckBox", yr), t.component("PDatePicker", Al), t.component("PFlex", wr), t.component("PInput", Ct), t.component("PInputDate", Oo), t.component("PInputNumber", Oh), t.component("PLeftSlider", Uh), t.component("PList", Vh), t.component("PListItem", jh), t.component("PRadio", Jh), t.component("PRightSlider", ef), t.component("PSelect", jt), t.component("PSticky", ns), t.component("PString", He), t.component("PTextarea", gf), t.component("PTopSlider", bf), t.component("IconDownload", Uo), t.component("IconFilter", Wo), t.component("ArrowLeft", Go), t.component("ArrowRight", jo), t.component("DoubleArrowLeft", _o), t.component("DoubleArrowRight", Zo), t.component("EllipsisSvg", Yo), t.component("IconArrowLeft", vm), t.component("IconCheckDefault", vr), t.component("IconClose", Xi), t.component("IconEdit", wm), t.component("IconEmail", Sm), t.component("IconMove", xm), t.component("IconPhone", km), t.component("IconSearch", Vo), t.component("IconSelectArrow", Bo), t.component("CollapseContainer", Rp), t.component("CollapseItem", Tp), t.component("VerticalCollapseContainer", Vp), t.component("PAdd", _p), t.component("PContainer", ma), t.component("PContainerStickyHead", Xp), t.component("PDel", tg), t.component("PTabs", sg), t.component("UploaderFile", hg), t.component("AuthForm", ss), t.component("PModal", Qi), t.component("AuthPage", pa), t.component("PageNotFound", ga), t.component("AdaptiveContainer", el), t.component("AdaptiveContainerHorizontal", sl), t.component("AdminGallery", gl), t.component("AuthModal", Mf), t.component("CarouselImages", Pf), t.component("ContactForm", qf), t.component("ContextWindow", Uf), t.component("DateInputRangeV2", Yf), t.component("DateInputRange", Gf), t.component("DropList", Kf), t.component("EmailForm", Ho), t.component("FilterCheckbox", tm), t.component("FiltersButtonsSelect", om), t.component("FilterSelect", um), t.component("FTSPPanel", dm), t.component("GeneralItem", fm), t.component("GridContainer", Ki), t.component("ImageCropper", fa), t.component("InfoItem", Bt), t.component("InfoItemSelectButtons", vp), t.component("LeftRightContainer", Sp), t.component("MessageBody", us), t.component("PAutocomplete", va), t.component("PDialog", Rg), t.component("PhoneForm", qo), t.component("PLoader", Eg), t.component("PNotification", Tg), t.component("PPagination", Bg), t.component("RemoteSearch", Hg), t.component("ResearcheContainer", Vg), t.component("RightSliderContainer", Jg), t.component("RightTabsContainer", t1), t.component("RSContainer", f1), t.component("SelectValueType", g1), t.component("SingleNameToggleForm", w1), t.component("SortList", C1), t.component("SortSelect", k1), t.component("Switch3Pos", E1), t.component("ThemeWrapper", L1), t.component("ToggleInfoItem", z1), t.component("TopSliderContainer", H1), t.component("UploaderImage", Y1);
|
|
13116
13122
|
}
|
|
13117
13123
|
};
|
|
13118
13124
|
export {
|
|
13119
|
-
|
|
13125
|
+
It as $P,
|
|
13120
13126
|
el as AdaptiveContainer,
|
|
13121
13127
|
sl as AdaptiveContainerHorizontal,
|
|
13122
13128
|
gl as AdminGallery,
|
|
@@ -13134,54 +13140,54 @@ export {
|
|
|
13134
13140
|
li as AuthMethods,
|
|
13135
13141
|
Mf as AuthModal,
|
|
13136
13142
|
pa as AuthPage,
|
|
13137
|
-
|
|
13143
|
+
Ad as AuthStore,
|
|
13138
13144
|
gi as Axios,
|
|
13139
13145
|
ae as BaseStore,
|
|
13140
13146
|
$t as Button,
|
|
13141
|
-
|
|
13147
|
+
W0 as Cache,
|
|
13142
13148
|
Pf as CarouselImages,
|
|
13143
|
-
|
|
13149
|
+
V0 as CarouselSwipe,
|
|
13144
13150
|
R as ClassHelper,
|
|
13145
13151
|
Rp as CollapseContainer,
|
|
13146
13152
|
Tp as CollapseItem,
|
|
13147
|
-
|
|
13153
|
+
G0 as Color,
|
|
13148
13154
|
Zi as ColorTheme,
|
|
13149
13155
|
R0 as ColorThemesStore,
|
|
13150
13156
|
ei as Contact,
|
|
13151
13157
|
qf as ContactForm,
|
|
13152
|
-
|
|
13158
|
+
Ed as ContactsStore,
|
|
13153
13159
|
Uf as ContextWindow,
|
|
13154
13160
|
iu as CreateSortModels,
|
|
13155
13161
|
No as CropperStore,
|
|
13156
|
-
|
|
13162
|
+
_0 as Cursor,
|
|
13157
13163
|
Jt as DateFormat,
|
|
13158
13164
|
Gf as DateInputRange,
|
|
13159
13165
|
Yf as DateInputRange_v2,
|
|
13160
|
-
|
|
13161
|
-
|
|
13166
|
+
Y0 as DateMask,
|
|
13167
|
+
Do as Dates,
|
|
13162
13168
|
lt as DatesFormatter,
|
|
13163
13169
|
_o as DoubleArrowLeft,
|
|
13164
13170
|
Zo as DoubleArrowRight,
|
|
13165
|
-
|
|
13171
|
+
J0 as Dragger,
|
|
13166
13172
|
Kf as DropList,
|
|
13167
13173
|
Yo as EllipsisSvg,
|
|
13168
13174
|
Ft as Email,
|
|
13169
13175
|
cn as EmailField,
|
|
13170
13176
|
Ho as EmailForm,
|
|
13171
|
-
|
|
13172
|
-
|
|
13177
|
+
po as EmailsStore,
|
|
13178
|
+
Rh as Extension,
|
|
13173
13179
|
no as Extract,
|
|
13174
13180
|
y0 as ExtractsStore,
|
|
13175
13181
|
be as FTSP,
|
|
13176
13182
|
dm as FTSPPanel,
|
|
13177
|
-
|
|
13178
|
-
|
|
13183
|
+
Dd as FTSPPresetsStore,
|
|
13184
|
+
X0 as Favourite,
|
|
13179
13185
|
Qn as Field,
|
|
13180
13186
|
Xt as FieldFill,
|
|
13181
13187
|
fd as FieldFillsStore,
|
|
13182
13188
|
pd as FieldsStore,
|
|
13183
13189
|
ge as FileInfo,
|
|
13184
|
-
|
|
13190
|
+
Fd as FileInfosStore,
|
|
13185
13191
|
tm as FilterCheckbox,
|
|
13186
13192
|
Mr as FilterModel,
|
|
13187
13193
|
um as FilterSelect,
|
|
@@ -13194,10 +13200,10 @@ export {
|
|
|
13194
13200
|
Sd as FormsStore,
|
|
13195
13201
|
fm as GeneralItem,
|
|
13196
13202
|
Ki as GridContainer,
|
|
13197
|
-
|
|
13203
|
+
H0 as Hooks,
|
|
13198
13204
|
Ie as HttpClient,
|
|
13199
13205
|
kr as Human,
|
|
13200
|
-
|
|
13206
|
+
Od as HumansStore,
|
|
13201
13207
|
vm as IconArrowLeft,
|
|
13202
13208
|
vr as IconCheckDefault,
|
|
13203
13209
|
Xi as IconClose,
|
|
@@ -13216,8 +13222,8 @@ export {
|
|
|
13216
13222
|
c0 as InnsStore,
|
|
13217
13223
|
Sp as LeftRightContainer,
|
|
13218
13224
|
dv as LoginField,
|
|
13219
|
-
|
|
13220
|
-
|
|
13225
|
+
Ah as MakeCarousel,
|
|
13226
|
+
Jd as MenusStore,
|
|
13221
13227
|
us as MessageBody,
|
|
13222
13228
|
ut as Orders,
|
|
13223
13229
|
_p as PAdd,
|
|
@@ -13231,7 +13237,7 @@ export {
|
|
|
13231
13237
|
Rg as PDialog,
|
|
13232
13238
|
wr as PFlex,
|
|
13233
13239
|
B as PHelp,
|
|
13234
|
-
|
|
13240
|
+
Ct as PInput,
|
|
13235
13241
|
Oo as PInputDate,
|
|
13236
13242
|
Oh as PInputNumber,
|
|
13237
13243
|
Uh as PLeftSlider,
|
|
@@ -13259,7 +13265,7 @@ export {
|
|
|
13259
13265
|
Ti as Period,
|
|
13260
13266
|
qo as PhoneForm,
|
|
13261
13267
|
Ks as PhoneService,
|
|
13262
|
-
|
|
13268
|
+
Co as PhonesStore,
|
|
13263
13269
|
f1 as RSContainer,
|
|
13264
13270
|
Hg as RemoteSearch,
|
|
13265
13271
|
Vg as ResearcheContainer,
|
|
@@ -13268,9 +13274,9 @@ export {
|
|
|
13268
13274
|
Ot as Router,
|
|
13269
13275
|
ev as RouterGuard,
|
|
13270
13276
|
tv as Scheduler,
|
|
13271
|
-
|
|
13277
|
+
ih as SchemasStore,
|
|
13272
13278
|
iv as Scroll,
|
|
13273
|
-
|
|
13279
|
+
Ln as SearchStore,
|
|
13274
13280
|
g1 as SelectValueType,
|
|
13275
13281
|
zt as SelectedAnswerVariant,
|
|
13276
13282
|
xd as SelectedAnswerVariantsStore,
|
|
@@ -13294,24 +13300,24 @@ export {
|
|
|
13294
13300
|
H1 as TopSliderContainer,
|
|
13295
13301
|
hg as UploaderFile,
|
|
13296
13302
|
Y1 as UploaderImage,
|
|
13297
|
-
|
|
13303
|
+
ah as UserAccountsStore,
|
|
13298
13304
|
Rr as ValueType,
|
|
13299
|
-
|
|
13305
|
+
uh as ValueTypesStore,
|
|
13300
13306
|
Vp as VerticalCollapseContainer,
|
|
13301
13307
|
sv as WaitElement,
|
|
13302
13308
|
rv as WebSocketClient,
|
|
13303
|
-
|
|
13304
|
-
|
|
13309
|
+
q0 as brandColors,
|
|
13310
|
+
U0 as buildNameNumbers,
|
|
13305
13311
|
s0 as classesNames,
|
|
13306
|
-
|
|
13312
|
+
j0 as countRating,
|
|
13307
13313
|
Md as m,
|
|
13308
13314
|
av as modulesNames,
|
|
13309
|
-
|
|
13310
|
-
|
|
13315
|
+
K0 as moveDown,
|
|
13316
|
+
Q0 as moveUp,
|
|
13311
13317
|
hv as servicesComponents,
|
|
13312
13318
|
lv as servicesNames,
|
|
13313
13319
|
uv as servicesStoresNames,
|
|
13314
13320
|
cv as typesNames,
|
|
13315
|
-
|
|
13321
|
+
wh as useConfirmLeavePage,
|
|
13316
13322
|
nv as validate
|
|
13317
13323
|
};
|