sprof 0.0.58 → 0.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/helpers/ui/AdminUI.d.ts +28 -13
- package/dist/sprof.js +100 -100
- package/dist/sprof.umd.cjs +1 -1
- package/package.json +1 -1
|
@@ -1,23 +1,38 @@
|
|
|
1
1
|
declare class AdminUI {
|
|
2
2
|
Menu: {
|
|
3
|
-
menu:
|
|
3
|
+
menu: {
|
|
4
|
+
name: string;
|
|
5
|
+
to: string;
|
|
6
|
+
icon?: string | undefined;
|
|
7
|
+
showTo?: string[] | undefined;
|
|
8
|
+
children?: any[] | undefined;
|
|
9
|
+
tableName?: string | undefined;
|
|
10
|
+
count?: number | undefined;
|
|
11
|
+
}[];
|
|
4
12
|
path: string;
|
|
5
13
|
isOpen: boolean;
|
|
6
14
|
filterString: string;
|
|
7
|
-
Set(menu: import('../../interfaces/IAdminMenu').default[])
|
|
8
|
-
Get()
|
|
9
|
-
filterMenu()
|
|
10
|
-
IsOpen()
|
|
11
|
-
Toggle()
|
|
12
|
-
SetPath(path: string)
|
|
13
|
-
GetPath()
|
|
14
|
-
SetFilter(str: string)
|
|
15
|
-
GetChildren(menu: import('../../interfaces/IAdminMenu').default)
|
|
15
|
+
Set: (menu: import('../../interfaces/IAdminMenu').default[]) => void;
|
|
16
|
+
Get: () => import('../../interfaces/IAdminMenu').default[];
|
|
17
|
+
filterMenu: () => import('../../interfaces/IAdminMenu').default[];
|
|
18
|
+
IsOpen: () => boolean;
|
|
19
|
+
Toggle: () => void;
|
|
20
|
+
SetPath: (path: string) => void;
|
|
21
|
+
GetPath: () => string;
|
|
22
|
+
SetFilter: (str: string) => void;
|
|
23
|
+
GetChildren: (menu: import('../../interfaces/IAdminMenu').default) => import('../../interfaces/IAdminMenu').default[] | undefined;
|
|
16
24
|
};
|
|
17
25
|
Head: {
|
|
18
|
-
title:
|
|
19
|
-
buttons:
|
|
20
|
-
|
|
26
|
+
title: any;
|
|
27
|
+
buttons: {
|
|
28
|
+
text: string | undefined;
|
|
29
|
+
type?: import('..').Statuses | undefined;
|
|
30
|
+
condition?: boolean | undefined;
|
|
31
|
+
action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
|
|
32
|
+
id: string;
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
}[];
|
|
35
|
+
Set: (title: (string | (() => string) | globalThis.ComputedRef<any>) | undefined, buttons: import('..').Button[]) => void;
|
|
21
36
|
};
|
|
22
37
|
}
|
|
23
38
|
declare const _default: AdminUI;
|
package/dist/sprof.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Zo = Object.defineProperty;
|
|
2
2
|
var Jo = (t, e, i) => e in t ? Zo(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
|
|
3
3
|
var u = (t, e, i) => Jo(t, typeof e != "symbol" ? e + "" : e, i);
|
|
4
|
-
import { defineComponent as $, ref as T, onBeforeMount as
|
|
4
|
+
import { defineComponent as $, ref as T, onBeforeMount as ot, openBlock as m, createElementBlock as C, Fragment as G, renderSlot as F, unref as p, createElementVNode as f, normalizeStyle as I, createCommentVNode as ee, resolveComponent as E, createVNode as A, withCtx as j, withModifiers as Ie, withDirectives as qe, vModelText as Tn, computed as me, mergeProps as Lt, createTextVNode as Ii, toDisplayString as ye, mergeModels as Ee, useModel as ft, vModelCheckbox as Xo, vModelDynamic as Yo, isRef as We, withKeys as Qo, watch as Ye, createBlock as q, vModelRadio as Ko, normalizeClass as se, vShow as Fn, vModelSelect as ea, useCssVars as Qs, onMounted as Qt, renderList as Re, resolveDirective as Ks, createStaticVNode as er, resolveDynamicComponent as Vt, nextTick as ta, onUpdated as ia, onBeforeUnmount as On, onUnmounted as tr, Transition as ir, reactive as st, getCurrentInstance as na, inject as sa, onDeactivated as ra, onActivated as oa } from "vue";
|
|
5
5
|
const aa = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "mainblock"
|
|
@@ -23,7 +23,7 @@ const aa = {
|
|
|
23
23
|
const e = t, i = T(!1), n = T(!0), s = T(window.matchMedia("(max-width: 1330px)").matches), r = () => {
|
|
24
24
|
n.value = !n.value;
|
|
25
25
|
};
|
|
26
|
-
return
|
|
26
|
+
return ot(async () => {
|
|
27
27
|
window.addEventListener("resize", () => {
|
|
28
28
|
switch (e.mobileWidth) {
|
|
29
29
|
case "1330px":
|
|
@@ -115,7 +115,7 @@ const aa = {
|
|
|
115
115
|
const e = t, i = T(!1), n = T(!0), s = T(window.matchMedia("(max-width: 1330px)").matches), r = () => {
|
|
116
116
|
n.value = !n.value;
|
|
117
117
|
};
|
|
118
|
-
return
|
|
118
|
+
return ot(async () => {
|
|
119
119
|
window.addEventListener("resize", () => {
|
|
120
120
|
switch (e.mobileWidth) {
|
|
121
121
|
case "1330px":
|
|
@@ -188,7 +188,7 @@ const aa = {
|
|
|
188
188
|
], 64));
|
|
189
189
|
}
|
|
190
190
|
}), pa = /* @__PURE__ */ P(ga, [["__scopeId", "data-v-a7d519dd"]]);
|
|
191
|
-
class
|
|
191
|
+
class dt {
|
|
192
192
|
static Shuffle(e) {
|
|
193
193
|
for (let i = e.length - 1; i > 0; i--) {
|
|
194
194
|
const n = Math.floor(Math.random() * (i + 1));
|
|
@@ -271,7 +271,7 @@ const va = { class: "item" }, ya = { class: "move" }, wa = { class: "item-tools"
|
|
|
271
271
|
list: t.fileList,
|
|
272
272
|
"item-key": "id",
|
|
273
273
|
handle: ".move",
|
|
274
|
-
onEnd: l[0] || (l[0] = (h) => p(
|
|
274
|
+
onEnd: l[0] || (l[0] = (h) => p(dt).Sort(t.fileList))
|
|
275
275
|
}, {
|
|
276
276
|
item: j(({ element: h, index: g }) => [
|
|
277
277
|
f("div", va, [
|
|
@@ -366,7 +366,7 @@ const ka = "p-button", Ra = /* @__PURE__ */ $({
|
|
|
366
366
|
}),
|
|
367
367
|
emits: /* @__PURE__ */ Ee(["change"], ["update:modelValue"]),
|
|
368
368
|
setup(t, { emit: e }) {
|
|
369
|
-
const i =
|
|
369
|
+
const i = ft(t, "modelValue"), n = e, s = () => {
|
|
370
370
|
n("change", i.value);
|
|
371
371
|
};
|
|
372
372
|
return (r, o) => {
|
|
@@ -424,7 +424,7 @@ const ka = "p-button", Ra = /* @__PURE__ */ $({
|
|
|
424
424
|
}),
|
|
425
425
|
emits: /* @__PURE__ */ Ee(["blur", "input"], ["update:modelValue"]),
|
|
426
426
|
setup(t, { emit: e }) {
|
|
427
|
-
const i = e, n =
|
|
427
|
+
const i = e, n = ft(t, "modelValue"), s = (o) => {
|
|
428
428
|
const a = o.target.valueAsDate;
|
|
429
429
|
a ? (n.value = a, i("input", r(n.value))) : (n.value = null, i("input", null));
|
|
430
430
|
}, r = (o) => o ? new Date(o.getTime() - o.getTimezoneOffset() * 60 * 1e3).toISOString().split("T")[0] : "";
|
|
@@ -696,7 +696,7 @@ const Xi = /* @__PURE__ */ new WeakMap(), Za = (t, e) => {
|
|
|
696
696
|
}),
|
|
697
697
|
emits: /* @__PURE__ */ Ee(["blur", "input"], ["update:modelValue"]),
|
|
698
698
|
setup(t) {
|
|
699
|
-
const e =
|
|
699
|
+
const e = ft(t, "modelValue");
|
|
700
700
|
return (i, n) => (m(), C("div", {
|
|
701
701
|
class: "text-field",
|
|
702
702
|
style: I({ margin: t.margin, padding: t.padding })
|
|
@@ -819,7 +819,7 @@ const nl = /* @__PURE__ */ $({
|
|
|
819
819
|
}),
|
|
820
820
|
emits: /* @__PURE__ */ Ee(["update:modelValue", "change", "beforeChange"], ["update:modelValue"]),
|
|
821
821
|
setup(t, { emit: e }) {
|
|
822
|
-
const i = e, n =
|
|
822
|
+
const i = e, n = ft(t, "modelValue"), s = tt.Format(n.value), r = T(s), o = (a) => {
|
|
823
823
|
if (!l(a))
|
|
824
824
|
return;
|
|
825
825
|
const c = tt.FromRuStr(a);
|
|
@@ -1051,7 +1051,7 @@ const nl = /* @__PURE__ */ $({
|
|
|
1051
1051
|
}),
|
|
1052
1052
|
emits: /* @__PURE__ */ Ee(["change"], ["update:modelValue"]),
|
|
1053
1053
|
setup(t, { emit: e }) {
|
|
1054
|
-
const i =
|
|
1054
|
+
const i = ft(t, "modelValue"), n = e, s = t, r = M.H.Strings.CreateGuid(), o = me(() => i.value === s.value), l = () => {
|
|
1055
1055
|
n("change", s.value);
|
|
1056
1056
|
};
|
|
1057
1057
|
return (a, c) => (m(), C("div", {
|
|
@@ -1246,7 +1246,7 @@ const nl = /* @__PURE__ */ $({
|
|
|
1246
1246
|
}),
|
|
1247
1247
|
emits: /* @__PURE__ */ Ee(["change", "clear"], ["update:modelValue"]),
|
|
1248
1248
|
setup(t, { emit: e }) {
|
|
1249
|
-
const i =
|
|
1249
|
+
const i = ft(t, "modelValue"), n = T(!0), s = e, r = T(!1), o = () => {
|
|
1250
1250
|
n.value = !1, s("change", i.value);
|
|
1251
1251
|
}, l = () => {
|
|
1252
1252
|
s("clear", void 0), s("change", void 0), n.value = !0;
|
|
@@ -1380,7 +1380,7 @@ const nl = /* @__PURE__ */ $({
|
|
|
1380
1380
|
}),
|
|
1381
1381
|
emits: /* @__PURE__ */ Ee(["blur", "input"], ["update:modelValue"]),
|
|
1382
1382
|
setup(t) {
|
|
1383
|
-
const e =
|
|
1383
|
+
const e = ft(t, "modelValue");
|
|
1384
1384
|
return (i, n) => (m(), C("div", {
|
|
1385
1385
|
class: "text-field",
|
|
1386
1386
|
style: I({ margin: t.margin, padding: t.padding })
|
|
@@ -1823,7 +1823,7 @@ function fu(t, e = 0) {
|
|
|
1823
1823
|
const mu = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Cs = {
|
|
1824
1824
|
randomUUID: mu
|
|
1825
1825
|
};
|
|
1826
|
-
function
|
|
1826
|
+
function rt(t, e, i) {
|
|
1827
1827
|
if (Cs.randomUUID && !e && !t)
|
|
1828
1828
|
return Cs.randomUUID();
|
|
1829
1829
|
t = t || {};
|
|
@@ -1944,12 +1944,12 @@ var xs;
|
|
|
1944
1944
|
return _(R) || (R = _e(R)), ns(w, S, R);
|
|
1945
1945
|
}
|
|
1946
1946
|
e("getMetadata", Le);
|
|
1947
|
-
function
|
|
1947
|
+
function at(w, S, R) {
|
|
1948
1948
|
if (!de(S))
|
|
1949
1949
|
throw new TypeError();
|
|
1950
1950
|
return _(R) || (R = _e(R)), ss(w, S, R);
|
|
1951
1951
|
}
|
|
1952
|
-
e("getOwnMetadata",
|
|
1952
|
+
e("getOwnMetadata", at);
|
|
1953
1953
|
function xt(w, S) {
|
|
1954
1954
|
if (!de(w))
|
|
1955
1955
|
throw new TypeError();
|
|
@@ -2642,7 +2642,7 @@ var xs;
|
|
|
2642
2642
|
}
|
|
2643
2643
|
});
|
|
2644
2644
|
})(xs || (xs = {}));
|
|
2645
|
-
const
|
|
2645
|
+
const mt = class mt {
|
|
2646
2646
|
static BuildClass(e, i) {
|
|
2647
2647
|
i && Object.keys(i).forEach((n) => {
|
|
2648
2648
|
const s = i[n];
|
|
@@ -2665,13 +2665,13 @@ const ft = class ft {
|
|
|
2665
2665
|
return e !== null && typeof e < "u" && e !== Object(e);
|
|
2666
2666
|
}
|
|
2667
2667
|
static RemoveFromClassByIndex(e, i, n) {
|
|
2668
|
-
|
|
2668
|
+
mt.RemoveFromClass(e, i, n);
|
|
2669
2669
|
}
|
|
2670
2670
|
static RemoveFromClassById(e, i, n) {
|
|
2671
2671
|
if (!e)
|
|
2672
2672
|
return;
|
|
2673
2673
|
const s = i.findIndex((r) => r.id === e);
|
|
2674
|
-
|
|
2674
|
+
mt.RemoveFromClass(s, i, n);
|
|
2675
2675
|
}
|
|
2676
2676
|
static RemoveFromClass(e, i, n) {
|
|
2677
2677
|
if (e < 0)
|
|
@@ -2688,21 +2688,21 @@ const ft = class ft {
|
|
|
2688
2688
|
});
|
|
2689
2689
|
}
|
|
2690
2690
|
static CreateUUID() {
|
|
2691
|
-
return
|
|
2691
|
+
return rt();
|
|
2692
2692
|
}
|
|
2693
2693
|
static InitClassInstance(e, i) {
|
|
2694
2694
|
const n = e.constructor(i);
|
|
2695
|
-
return
|
|
2695
|
+
return mt.BuildClass(n), n.id = mt.CreateUUID(), n;
|
|
2696
2696
|
}
|
|
2697
2697
|
static ExistsWithId(e, i) {
|
|
2698
2698
|
return e.some((n) => n.id === i);
|
|
2699
2699
|
}
|
|
2700
2700
|
};
|
|
2701
|
-
u(
|
|
2701
|
+
u(mt, "GetClassConstructor", (e) => (i, n) => {
|
|
2702
2702
|
const s = Reflect.getMetadata(`property:${n}`, i) || {};
|
|
2703
2703
|
s[n] = e, Reflect.defineMetadata(n, s, i);
|
|
2704
2704
|
});
|
|
2705
|
-
let U =
|
|
2705
|
+
let U = mt;
|
|
2706
2706
|
class ve {
|
|
2707
2707
|
static Capitalize(e) {
|
|
2708
2708
|
return e ? e[0].toUpperCase() + e.slice(1) : "";
|
|
@@ -2840,12 +2840,12 @@ const ar = class Rt {
|
|
|
2840
2840
|
return !1;
|
|
2841
2841
|
if (this.type === ue.Join) {
|
|
2842
2842
|
const i = e.model === this.model && e.operator === this.operator && this.joinTableModel === e.joinTableModel;
|
|
2843
|
-
return e.operator === xe.In ? i &&
|
|
2843
|
+
return e.operator === xe.In ? i && dt.Eq(this.set, e.set) : i;
|
|
2844
2844
|
}
|
|
2845
2845
|
return e.model === this.model && e.col === this.col && e.operator === this.operator;
|
|
2846
2846
|
}
|
|
2847
2847
|
valueEq(e) {
|
|
2848
|
-
return !this || !e || !this.eq(e) ? !1 : this.type === ue.Boolean ? this.boolean === (e == null ? void 0 : e.boolean) : this.type === ue.String ? this.value1 === (e == null ? void 0 : e.value1) : this.type === ue.Join && this.set.length ?
|
|
2848
|
+
return !this || !e || !this.eq(e) ? !1 : this.type === ue.Boolean ? this.boolean === (e == null ? void 0 : e.boolean) : this.type === ue.String ? this.value1 === (e == null ? void 0 : e.value1) : this.type === ue.Join && this.set.length ? dt.Eq(this.set, e.set) : !1;
|
|
2849
2849
|
}
|
|
2850
2850
|
toUrlQuery() {
|
|
2851
2851
|
const e = this.type ? `"type":"${this.type}"` : "", i = this.model ? `"model":"${this.model}"` : "", n = this.col ? `"col":"${this.col}"` : "", s = this.operator ? `"operator":"${this.operator}"` : "", r = this.value1 ? `"value1":"${this.value1}"` : "", o = this.type === ue.Boolean ? `"boolean":${this.boolean}` : "", l = this.type === ue.Date && this.date1 ? `"date1":"${this.date1.toISOString()}"` : "", a = this.type === ue.Date && this.date2 ? `"date2":"${this.date2.toISOString()}"` : "", c = this.type === ue.Number ? `"number":${this.number}` : "", d = this.type === ue.Set || this.operator === xe.In ? `"set":${JSON.stringify(this.set)}` : "", h = this.type === ue.Join ? `"joinTableModel":"${this.joinTableModel}"` : "";
|
|
@@ -2869,11 +2869,11 @@ const ar = class Rt {
|
|
|
2869
2869
|
}
|
|
2870
2870
|
static CreateFilterModel(e, i, n) {
|
|
2871
2871
|
const s = new Rt();
|
|
2872
|
-
return s.id =
|
|
2872
|
+
return s.id = rt(), s.model = typeof e == "string" ? e : e.GetClassName(), s.col = i ?? "", s.type = n, s.type === ue.Number && (s.value1 = "0"), s.type === ue.String && (s.value1 = ""), s.type === ue.Boolean && (s.value1 = "false"), s;
|
|
2873
2873
|
}
|
|
2874
2874
|
static CreateFilterModelWithJoin(e, i, n, s, r, o, l, a) {
|
|
2875
2875
|
const c = new Rt();
|
|
2876
|
-
return c.id =
|
|
2876
|
+
return c.id = rt(), c.joinTable = n, c.joinTablePk = s, c.joinTableFk = r, c.col = i, c.type = o, l && (c.joinTableId = l), a && (c.joinTableIdCol = a), c;
|
|
2877
2877
|
}
|
|
2878
2878
|
static CreateFilterModelWithJoinV2(e, i, n, s, r, o, l) {
|
|
2879
2879
|
const a = new Rt();
|
|
@@ -2881,7 +2881,7 @@ const ar = class Rt {
|
|
|
2881
2881
|
}
|
|
2882
2882
|
static OnlyIfSecondModelExists(e, i) {
|
|
2883
2883
|
const n = new Rt();
|
|
2884
|
-
return n.id =
|
|
2884
|
+
return n.id = rt(), n.model = ve.ToCamelCase(e.GetClassName()), n.joinTableModel = ve.ToCamelCase(i.GetClassName()), n.type = ue.Join, n;
|
|
2885
2885
|
}
|
|
2886
2886
|
addToSet(...e) {
|
|
2887
2887
|
e.forEach((i) => {
|
|
@@ -3065,7 +3065,7 @@ const vu = /* @__PURE__ */ $({
|
|
|
3065
3065
|
}), xu = /* @__PURE__ */ P(Su, [["__scopeId", "data-v-7b102249"]]), Mu = /* @__PURE__ */ $({
|
|
3066
3066
|
__name: "FTSPPanel",
|
|
3067
3067
|
setup(t) {
|
|
3068
|
-
return
|
|
3068
|
+
return ot(async () => {
|
|
3069
3069
|
}), (e, i) => (m(), C("div"));
|
|
3070
3070
|
}
|
|
3071
3071
|
}), ku = /* @__PURE__ */ P(Mu, [["__scopeId", "data-v-799d5edf"]]), Ru = /* @__PURE__ */ $({
|
|
@@ -4112,7 +4112,7 @@ function gr(t, e) {
|
|
|
4112
4112
|
var i = e * Math.PI / 180;
|
|
4113
4113
|
return { width: Math.abs(t.width * Math.cos(i)) + Math.abs(t.height * Math.sin(i)), height: Math.abs(t.width * Math.sin(i)) + Math.abs(t.height * Math.cos(i)) };
|
|
4114
4114
|
}
|
|
4115
|
-
function
|
|
4115
|
+
function ct(t, e) {
|
|
4116
4116
|
var i = e * Math.PI / 180;
|
|
4117
4117
|
return { left: t.left * Math.cos(i) - t.top * Math.sin(i), top: t.left * Math.sin(i) + t.top * Math.cos(i) };
|
|
4118
4118
|
}
|
|
@@ -4245,14 +4245,14 @@ function Sc(t) {
|
|
|
4245
4245
|
return d = Se(d = Ae(d, Tt(d, { left: o.left !== void 0 ? o.left - b * y : void 0, top: o.top !== void 0 ? o.top - J * y : void 0, bottom: o.bottom !== void 0 ? o.bottom + Y * y : void 0, right: o.right !== void 0 ? o.right + z * y : void 0 })), r({ visibleArea: d, type: "move" })), h.width = h.width * y, h.height = h.height * y, h.left = d.left + b * y, h.top = d.top + J * y, h = Se(h, Pi(Qe(d), o)), a.factor && v && l && (a.factor > 1 ? g = Math.min(k.area.maximum, a.factor) / y : a.factor < 1 && (g = Math.max(h.height / d.height, h.width / d.width, a.factor / y)), g !== 1 && (d = Ae(d = Se(d = Be(d, g, a.factor > 1 ? a.center : Ce(h)), r({ visibleArea: d, type: "move" })), Ai(Tt(h, Qe(d)))))), { coordinates: h, visibleArea: d };
|
|
4246
4246
|
}
|
|
4247
4247
|
function xc(t) {
|
|
4248
|
-
var e = t.aspectRatio, i = t.getAreaRestrictions, n = t.coordinates, s = t.visibleArea, r = t.sizeRestrictions, o = t.positionRestrictions, l = t.imageSize, a = t.previousImageSize, c = t.angle, d = N({}, n), h = N({}, s), g =
|
|
4249
|
-
return (d = N(N({}, it({ sizeRestrictions: r, aspectRatio: e, width: d.width, height: d.height })),
|
|
4248
|
+
var e = t.aspectRatio, i = t.getAreaRestrictions, n = t.coordinates, s = t.visibleArea, r = t.sizeRestrictions, o = t.positionRestrictions, l = t.imageSize, a = t.previousImageSize, c = t.angle, d = N({}, n), h = N({}, s), g = ct(Ce(N({ left: 0, top: 0 }, a)), c);
|
|
4249
|
+
return (d = N(N({}, it({ sizeRestrictions: r, aspectRatio: e, width: d.width, height: d.height })), ct(Ce(d), c))).left -= g.left - l.width / 2 + d.width / 2, d.top -= g.top - l.height / 2 + d.height / 2, h = Be(h, $i(h, i({ visibleArea: h, type: "resize" }))), { coordinates: d = Se(d, o), visibleArea: h = Se(h = Ae(h, Pt(Ce(d), Ce(n))), i({ visibleArea: h, type: "move" })) };
|
|
4250
4250
|
}
|
|
4251
4251
|
function Mc(t) {
|
|
4252
4252
|
var e = t.flip, i = t.previousFlip, n = t.rotate, s = t.getAreaRestrictions, r = t.coordinates, o = t.visibleArea, l = t.imageSize, a = N({}, r), c = N({}, o), d = i.horizontal !== e.horizontal, h = i.vertical !== e.vertical;
|
|
4253
4253
|
if (d || h) {
|
|
4254
|
-
var g =
|
|
4255
|
-
a = Ae(a, Pt(v, Ce(a))), y =
|
|
4254
|
+
var g = ct({ left: l.width / 2, top: l.height / 2 }, -n), y = ct(Ce(a), -n), v = ct({ left: d ? g.left - (y.left - g.left) : y.left, top: h ? g.top - (y.top - g.top) : y.top }, n);
|
|
4255
|
+
a = Ae(a, Pt(v, Ce(a))), y = ct(Ce(c), -n), c = Se(c = Ae(c, Pt(v = ct({ left: d ? g.left - (y.left - g.left) : y.left, top: h ? g.top - (y.top - g.top) : y.top }, n), Ce(c))), s({ visibleArea: c, type: "move" }));
|
|
4256
4256
|
}
|
|
4257
4257
|
return { coordinates: a, visibleArea: c };
|
|
4258
4258
|
}
|
|
@@ -4904,7 +4904,7 @@ var Oc = ["transitions"], Ke = je("vue-advanced-cropper"), Mr = { name: "Cropper
|
|
|
4904
4904
|
var t = this.$refs.canvas, e = this.$refs.image, i = this.imageTransforms.rotate !== 0 || this.imageTransforms.flip.horizontal || this.imageTransforms.flip.vertical ? function(l, a, c) {
|
|
4905
4905
|
var d = c.rotate, h = c.flip, g = { width: a.naturalWidth, height: a.naturalHeight }, y = gr(g, d), v = l.getContext("2d");
|
|
4906
4906
|
l.height = y.height, l.width = y.width, v.save();
|
|
4907
|
-
var k =
|
|
4907
|
+
var k = ct(Ce(N({ left: 0, top: 0 }, g)), d);
|
|
4908
4908
|
return v.translate(-(k.left - y.width / 2), -(k.top - y.height / 2)), v.rotate(d * Math.PI / 180), v.translate(h.horizontal ? g.width : 0, h.vertical ? g.height : 0), v.scale(h.horizontal ? -1 : 1, h.vertical ? -1 : 1), v.drawImage(a, 0, 0, g.width, g.height), v.restore(), l;
|
|
4909
4909
|
}(this.$refs.sourceCanvas, e, this.imageTransforms) : e, n = ie({ minWidth: 0, minHeight: 0, maxWidth: 1 / 0, maxHeight: 1 / 0, maxArea: this.maxCanvasSize, imageSmoothingEnabled: !0, imageSmoothingQuality: "high", fillColor: "transparent" }, this.canvas), s = function(l) {
|
|
4910
4910
|
return l.find(function(a) {
|
|
@@ -5336,7 +5336,7 @@ const Dc = { class: "background-container" }, Hc = { class: "tools-line" }, Bc =
|
|
|
5336
5336
|
o.value = !1, l.value = !1;
|
|
5337
5337
|
};
|
|
5338
5338
|
return (Z, V) => {
|
|
5339
|
-
const Te = E("PString"), Le = E("PButton"),
|
|
5339
|
+
const Te = E("PString"), Le = E("PButton"), at = E("PModal"), xt = Ks("click-outside");
|
|
5340
5340
|
return m(), C(G, null, [
|
|
5341
5341
|
p(o) ? (m(), C("div", Wc)) : ee("", !0),
|
|
5342
5342
|
f("div", {
|
|
@@ -5390,7 +5390,7 @@ const Dc = { class: "background-container" }, Hc = { class: "tools-line" }, Bc =
|
|
|
5390
5390
|
], 4)
|
|
5391
5391
|
], 38)
|
|
5392
5392
|
], 4),
|
|
5393
|
-
A(
|
|
5393
|
+
A(at, {
|
|
5394
5394
|
show: p(l),
|
|
5395
5395
|
title: "У вас остались несохраненные изменения, вы уверены что хотите закрыть окно?"
|
|
5396
5396
|
}, {
|
|
@@ -5569,7 +5569,7 @@ const sd = /* @__PURE__ */ P(id, [["render", nd]]), rd = $({
|
|
|
5569
5569
|
};
|
|
5570
5570
|
return ia(() => {
|
|
5571
5571
|
t.activeId && t.activeId !== t.tabId && (i.value = !0);
|
|
5572
|
-
}),
|
|
5572
|
+
}), ot(() => {
|
|
5573
5573
|
t.activeId && t.activeId !== t.tabId && (i.value = !1);
|
|
5574
5574
|
}), {
|
|
5575
5575
|
collapsed: i,
|
|
@@ -6449,7 +6449,7 @@ const Rr = /* @__PURE__ */ P(jd, [["render", Vd]]), _d = { class: "container" },
|
|
|
6449
6449
|
},
|
|
6450
6450
|
emits: ["update:modelValue"],
|
|
6451
6451
|
setup(t) {
|
|
6452
|
-
const e =
|
|
6452
|
+
const e = ft(t, "modelValue"), i = async () => {
|
|
6453
6453
|
await M.S.Phones.Update(e.value);
|
|
6454
6454
|
};
|
|
6455
6455
|
return (n, s) => {
|
|
@@ -6885,7 +6885,7 @@ const oh = /* @__PURE__ */ P(sh, [["render", rh], ["__scopeId", "data-v-0f1f2f84
|
|
|
6885
6885
|
const i = t, n = e, s = T(!1), r = T(window.matchMedia("(max-width: 768px)").matches), o = (a) => {
|
|
6886
6886
|
n("toggle", a);
|
|
6887
6887
|
}, l = T(!1);
|
|
6888
|
-
return
|
|
6888
|
+
return ot(async () => {
|
|
6889
6889
|
window.addEventListener("resize", () => {
|
|
6890
6890
|
switch (i.mobileWidth) {
|
|
6891
6891
|
case "1330px":
|
|
@@ -7137,7 +7137,7 @@ const Xe = new Hh(), Bh = ["label", "value"], qh = /* @__PURE__ */ $({
|
|
|
7137
7137
|
emits: ["load"],
|
|
7138
7138
|
setup(t, { emit: e }) {
|
|
7139
7139
|
const i = T(!1), n = e, s = T();
|
|
7140
|
-
|
|
7140
|
+
ot(() => {
|
|
7141
7141
|
i.value = !0, s.value = Xe.GetDefault(), M.H.FTSP.Get().setSortModel(s.value);
|
|
7142
7142
|
});
|
|
7143
7143
|
const r = async (l) => {
|
|
@@ -7180,7 +7180,7 @@ const Xe = new Hh(), Bh = ["label", "value"], qh = /* @__PURE__ */ $({
|
|
|
7180
7180
|
emits: ["load"],
|
|
7181
7181
|
setup(t, { emit: e }) {
|
|
7182
7182
|
const i = e, n = T();
|
|
7183
|
-
|
|
7183
|
+
ot(() => {
|
|
7184
7184
|
n.value = Xe.GetDefault();
|
|
7185
7185
|
});
|
|
7186
7186
|
const s = async (o) => {
|
|
@@ -7486,7 +7486,7 @@ const af = {
|
|
|
7486
7486
|
}, d = (b) => {
|
|
7487
7487
|
i.fileInfo.setFile(b), i.fileInfo.fileSystemPath && (s.value = i.fileInfo), o.value = !1, n("crop");
|
|
7488
7488
|
};
|
|
7489
|
-
|
|
7489
|
+
ot(() => {
|
|
7490
7490
|
i.fileInfo.fileSystemPath && (s.value = i.fileInfo, s.value.url = i.fileInfo.getFileUrl());
|
|
7491
7491
|
});
|
|
7492
7492
|
let h = null;
|
|
@@ -7583,7 +7583,7 @@ const af = {
|
|
|
7583
7583
|
}
|
|
7584
7584
|
}), gf = /* @__PURE__ */ P(mf, [["__scopeId", "data-v-eb3f1dc2"]]);
|
|
7585
7585
|
var Oe = /* @__PURE__ */ ((t) => (t.Login = "login", t.Register = "register", t.Restore = "restore", t.Refresh = "refresh", t))(Oe || {});
|
|
7586
|
-
class
|
|
7586
|
+
class gt {
|
|
7587
7587
|
constructor(e, i, n, s) {
|
|
7588
7588
|
u(this, "text", "Сохранить");
|
|
7589
7589
|
u(this, "type", ke.Success);
|
|
@@ -7594,19 +7594,19 @@ class mt {
|
|
|
7594
7594
|
this.text = e, this.type = n, this.action = i, s !== void 0 && (this.condition = s);
|
|
7595
7595
|
}
|
|
7596
7596
|
static Primary(e, i, n) {
|
|
7597
|
-
return new
|
|
7597
|
+
return new gt(e, i, ke.Primary, n);
|
|
7598
7598
|
}
|
|
7599
7599
|
static Success(e, i, n) {
|
|
7600
|
-
return new
|
|
7600
|
+
return new gt(e, i, ke.Success, n);
|
|
7601
7601
|
}
|
|
7602
7602
|
static Warning(e, i, n) {
|
|
7603
|
-
return new
|
|
7603
|
+
return new gt(e, i, ke.Warning, n);
|
|
7604
7604
|
}
|
|
7605
7605
|
static Error(e, i, n) {
|
|
7606
|
-
return new
|
|
7606
|
+
return new gt(e, i, ke.Error, n);
|
|
7607
7607
|
}
|
|
7608
7608
|
}
|
|
7609
|
-
class Ar extends
|
|
7609
|
+
class Ar extends gt {
|
|
7610
7610
|
constructor() {
|
|
7611
7611
|
super(...arguments);
|
|
7612
7612
|
u(this, "id", "auth-button");
|
|
@@ -8134,7 +8134,7 @@ class Rf extends Ti {
|
|
|
8134
8134
|
u(this, "id", "field-auth-login");
|
|
8135
8135
|
}
|
|
8136
8136
|
}
|
|
8137
|
-
class
|
|
8137
|
+
class ht {
|
|
8138
8138
|
constructor(e) {
|
|
8139
8139
|
u(this, "id");
|
|
8140
8140
|
u(this, "address");
|
|
@@ -8143,7 +8143,7 @@ class dt {
|
|
|
8143
8143
|
U.BuildClass(this, e);
|
|
8144
8144
|
}
|
|
8145
8145
|
static Create() {
|
|
8146
|
-
const e = new
|
|
8146
|
+
const e = new ht();
|
|
8147
8147
|
return e.id = U.CreateUUID(), e;
|
|
8148
8148
|
}
|
|
8149
8149
|
}
|
|
@@ -8195,7 +8195,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8195
8195
|
AuthFormSettings: Er,
|
|
8196
8196
|
AuthFormStatuses: Oe,
|
|
8197
8197
|
AuthMethods: Dt,
|
|
8198
|
-
Email:
|
|
8198
|
+
Email: ht,
|
|
8199
8199
|
EmailField: gi,
|
|
8200
8200
|
FileInfo: Ge,
|
|
8201
8201
|
Human: Dr,
|
|
@@ -8251,7 +8251,7 @@ const Kt = class Br {
|
|
|
8251
8251
|
U.BuildClass(this, e);
|
|
8252
8252
|
}
|
|
8253
8253
|
addEmail() {
|
|
8254
|
-
const e =
|
|
8254
|
+
const e = ht.Create();
|
|
8255
8255
|
return e.contactId = this.id, this.emails.push(e), e;
|
|
8256
8256
|
}
|
|
8257
8257
|
addPhone() {
|
|
@@ -8275,7 +8275,7 @@ const Kt = class Br {
|
|
|
8275
8275
|
this.websites.push(new Hr());
|
|
8276
8276
|
}
|
|
8277
8277
|
pushFirst() {
|
|
8278
|
-
this.emails.length || this.emails.push(new
|
|
8278
|
+
this.emails.length || this.emails.push(new ht()), this.phones.length || this.phones.push(new Ft());
|
|
8279
8279
|
}
|
|
8280
8280
|
getCoords() {
|
|
8281
8281
|
return [Number(this.latitude), Number(this.longitude)];
|
|
@@ -8294,7 +8294,7 @@ const Kt = class Br {
|
|
|
8294
8294
|
}
|
|
8295
8295
|
};
|
|
8296
8296
|
Fi([
|
|
8297
|
-
U.GetClassConstructor(
|
|
8297
|
+
U.GetClassConstructor(ht)
|
|
8298
8298
|
], Kt.prototype, "emails");
|
|
8299
8299
|
Fi([
|
|
8300
8300
|
U.GetClassConstructor(bn)
|
|
@@ -8443,7 +8443,7 @@ const ei = (Fe = class {
|
|
|
8443
8443
|
return this.f.find((i) => e.id === i.id);
|
|
8444
8444
|
}
|
|
8445
8445
|
getFirstSortModel() {
|
|
8446
|
-
return
|
|
8446
|
+
return dt.GetLast(this.s);
|
|
8447
8447
|
}
|
|
8448
8448
|
setSortModel(e) {
|
|
8449
8449
|
e && (this.s[0] = e);
|
|
@@ -8580,7 +8580,7 @@ function Vr(t, e) {
|
|
|
8580
8580
|
return s;
|
|
8581
8581
|
return null;
|
|
8582
8582
|
}
|
|
8583
|
-
const
|
|
8583
|
+
const pt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, _r = (t) => !Xt(t) && t !== pt;
|
|
8584
8584
|
function Cn() {
|
|
8585
8585
|
const { caseless: t } = _r(this) && this || {}, e = {}, i = (n, s) => {
|
|
8586
8586
|
const r = t && Vr(e, s) || s;
|
|
@@ -8697,14 +8697,14 @@ const hm = (t) => {
|
|
|
8697
8697
|
return n;
|
|
8698
8698
|
};
|
|
8699
8699
|
return i(t, 0);
|
|
8700
|
-
}, fm = Ve("AsyncFunction"), mm = (t) => t && (Bi(t) || ze(t)) && ze(t.then) && ze(t.catch), Xr = ((t, e) => t ? setImmediate : e ? ((i, n) => (
|
|
8701
|
-
s ===
|
|
8700
|
+
}, fm = Ve("AsyncFunction"), mm = (t) => t && (Bi(t) || ze(t)) && ze(t.then) && ze(t.catch), Xr = ((t, e) => t ? setImmediate : e ? ((i, n) => (pt.addEventListener("message", ({ source: s, data: r }) => {
|
|
8701
|
+
s === pt && r === i && n.length && n.shift()();
|
|
8702
8702
|
}, !1), (s) => {
|
|
8703
|
-
n.push(s),
|
|
8703
|
+
n.push(s), pt.postMessage(i, "*");
|
|
8704
8704
|
}))(`axios@${Math.random()}`, []) : (i) => setTimeout(i))(
|
|
8705
8705
|
typeof setImmediate == "function",
|
|
8706
|
-
ze(
|
|
8707
|
-
), gm = typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
|
8706
|
+
ze(pt.postMessage)
|
|
8707
|
+
), gm = typeof queueMicrotask < "u" ? queueMicrotask.bind(pt) : typeof process < "u" && process.nextTick || Xr, x = {
|
|
8708
8708
|
isArray: Ht,
|
|
8709
8709
|
isArrayBuffer: jr,
|
|
8710
8710
|
isBuffer: Tf,
|
|
@@ -8753,7 +8753,7 @@ const hm = (t) => {
|
|
|
8753
8753
|
noop: lm,
|
|
8754
8754
|
toFiniteNumber: um,
|
|
8755
8755
|
findKey: Vr,
|
|
8756
|
-
global:
|
|
8756
|
+
global: pt,
|
|
8757
8757
|
isContextDefined: _r,
|
|
8758
8758
|
ALPHABET: Jr,
|
|
8759
8759
|
generateString: cm,
|
|
@@ -9766,11 +9766,11 @@ const Km = async (t) => {
|
|
|
9766
9766
|
duplex: "half"
|
|
9767
9767
|
}), Te;
|
|
9768
9768
|
if (x.isFormData(n) && (Te = V.headers.get("content-type")) && d.setContentType(Te), V.body) {
|
|
9769
|
-
const [Le,
|
|
9769
|
+
const [Le, at] = qs(
|
|
9770
9770
|
b,
|
|
9771
9771
|
xi(Ns(a))
|
|
9772
9772
|
);
|
|
9773
|
-
n = Ws(V.body, js, Le,
|
|
9773
|
+
n = Ws(V.body, js, Le, at);
|
|
9774
9774
|
}
|
|
9775
9775
|
}
|
|
9776
9776
|
x.isString(h) || (h = h ? "include" : "omit");
|
|
@@ -9791,13 +9791,13 @@ const Km = async (t) => {
|
|
|
9791
9791
|
["status", "statusText", "headers"].forEach((xt) => {
|
|
9792
9792
|
V[xt] = J[xt];
|
|
9793
9793
|
});
|
|
9794
|
-
const Te = x.toFiniteNumber(J.headers.get("content-length")), [Le,
|
|
9794
|
+
const Te = x.toFiniteNumber(J.headers.get("content-length")), [Le, at] = l && qs(
|
|
9795
9795
|
Te,
|
|
9796
9796
|
xi(Ns(l), !0)
|
|
9797
9797
|
) || [];
|
|
9798
9798
|
J = new Response(
|
|
9799
9799
|
Ws(J.body, js, Le, () => {
|
|
9800
|
-
|
|
9800
|
+
at && at(), k && k();
|
|
9801
9801
|
}),
|
|
9802
9802
|
V
|
|
9803
9803
|
);
|
|
@@ -9934,7 +9934,7 @@ function ng(t, e, i) {
|
|
|
9934
9934
|
const Rn = {
|
|
9935
9935
|
assertOptions: ng,
|
|
9936
9936
|
validators: _n
|
|
9937
|
-
},
|
|
9937
|
+
}, lt = Rn.validators;
|
|
9938
9938
|
class vt {
|
|
9939
9939
|
constructor(e) {
|
|
9940
9940
|
this.defaults = e, this.interceptors = {
|
|
@@ -9971,14 +9971,14 @@ class vt {
|
|
|
9971
9971
|
typeof e == "string" ? (i = i || {}, i.url = e) : i = e || {}, i = wt(this.defaults, i);
|
|
9972
9972
|
const { transitional: n, paramsSerializer: s, headers: r } = i;
|
|
9973
9973
|
n !== void 0 && Rn.assertOptions(n, {
|
|
9974
|
-
silentJSONParsing:
|
|
9975
|
-
forcedJSONParsing:
|
|
9976
|
-
clarifyTimeoutError:
|
|
9974
|
+
silentJSONParsing: lt.transitional(lt.boolean),
|
|
9975
|
+
forcedJSONParsing: lt.transitional(lt.boolean),
|
|
9976
|
+
clarifyTimeoutError: lt.transitional(lt.boolean)
|
|
9977
9977
|
}, !1), s != null && (x.isFunction(s) ? i.paramsSerializer = {
|
|
9978
9978
|
serialize: s
|
|
9979
9979
|
} : Rn.assertOptions(s, {
|
|
9980
|
-
encode:
|
|
9981
|
-
serialize:
|
|
9980
|
+
encode: lt.function,
|
|
9981
|
+
serialize: lt.function
|
|
9982
9982
|
}, !0)), i.method = (i.method || this.defaults.method || "get").toLowerCase();
|
|
9983
9983
|
let o = r && x.merge(
|
|
9984
9984
|
r.common,
|
|
@@ -10471,7 +10471,7 @@ const og = [
|
|
|
10471
10471
|
name: "NotFound",
|
|
10472
10472
|
component: Rr
|
|
10473
10473
|
}
|
|
10474
|
-
],
|
|
10474
|
+
], ut = class ut {
|
|
10475
10475
|
static SetRouter(e) {
|
|
10476
10476
|
this.router = e, this.AddRoutes(og);
|
|
10477
10477
|
}
|
|
@@ -10492,16 +10492,16 @@ const og = [
|
|
|
10492
10492
|
await this.GetRouter().replace(e);
|
|
10493
10493
|
}
|
|
10494
10494
|
static Id() {
|
|
10495
|
-
return
|
|
10495
|
+
return ut.GetStringParam("id");
|
|
10496
10496
|
}
|
|
10497
10497
|
static Slug() {
|
|
10498
|
-
return
|
|
10498
|
+
return ut.GetStringParam("slug");
|
|
10499
10499
|
}
|
|
10500
10500
|
static async Back() {
|
|
10501
10501
|
this.GetRouter().go(-1);
|
|
10502
10502
|
}
|
|
10503
10503
|
static GetQid() {
|
|
10504
|
-
return
|
|
10504
|
+
return ut.GetStringQueryParam("qid");
|
|
10505
10505
|
}
|
|
10506
10506
|
static Route() {
|
|
10507
10507
|
return this.GetRouter().currentRoute.value;
|
|
@@ -10512,7 +10512,7 @@ const og = [
|
|
|
10512
10512
|
}
|
|
10513
10513
|
static GetPath() {
|
|
10514
10514
|
var i;
|
|
10515
|
-
const e = (i =
|
|
10515
|
+
const e = (i = ut.Route()) == null ? void 0 : i.path.split("/");
|
|
10516
10516
|
return !e || e.length <= 0 ? "" : e[e.length - 1];
|
|
10517
10517
|
}
|
|
10518
10518
|
static async ToAdmin(e) {
|
|
@@ -10521,7 +10521,7 @@ const og = [
|
|
|
10521
10521
|
return;
|
|
10522
10522
|
}
|
|
10523
10523
|
let i = e;
|
|
10524
|
-
i[0] === "/" && (i = e.substring(1)), await
|
|
10524
|
+
i[0] === "/" && (i = e.substring(1)), await ut.To(`/admin/${i}`);
|
|
10525
10525
|
}
|
|
10526
10526
|
static GetStringQueryParam(e) {
|
|
10527
10527
|
return String(this.Route().query[e]);
|
|
@@ -10536,16 +10536,16 @@ const og = [
|
|
|
10536
10536
|
return this.GetRouter().resolve(e);
|
|
10537
10537
|
}
|
|
10538
10538
|
};
|
|
10539
|
-
u(
|
|
10540
|
-
let Ot =
|
|
10539
|
+
u(ut, "router");
|
|
10540
|
+
let Ot = ut;
|
|
10541
10541
|
class ae {
|
|
10542
10542
|
constructor(e, i) {
|
|
10543
|
-
u(this, "items",
|
|
10543
|
+
u(this, "items", st([]));
|
|
10544
10544
|
u(this, "item");
|
|
10545
10545
|
u(this, "count", T(0));
|
|
10546
10546
|
u(this, "classConstructor");
|
|
10547
10547
|
u(this, "url", "");
|
|
10548
|
-
this.classConstructor = e, this.item =
|
|
10548
|
+
this.classConstructor = e, this.item = st(new this.classConstructor()), this.url = i;
|
|
10549
10549
|
}
|
|
10550
10550
|
Set(e) {
|
|
10551
10551
|
Object.assign(this.item, new this.classConstructor(e));
|
|
@@ -10740,7 +10740,7 @@ function go() {
|
|
|
10740
10740
|
};
|
|
10741
10741
|
}
|
|
10742
10742
|
const dg = (() => {
|
|
10743
|
-
const t = (r, o) =>
|
|
10743
|
+
const t = (r, o) => ot(async () => {
|
|
10744
10744
|
var l;
|
|
10745
10745
|
M.H.FTSP.Get().reset(), Xe.Set(o == null ? void 0 : o.sortsLib), M.H.FTSP.Get().setSortModel(Xe.GetDefault()), Xe.Set(o == null ? void 0 : o.sortsLib), M.H.FTSP.Get().setSortModel(Xe.GetDefault()), M.Paginator.storeModule = (l = o == null ? void 0 : o.pagination) == null ? void 0 : l.storeModule, await r();
|
|
10746
10746
|
}), { saveButtonClick: e, showConfirmModal: i } = go(), n = (r) => cg((o, l, a) => {
|
|
@@ -10762,7 +10762,7 @@ const dg = (() => {
|
|
|
10762
10762
|
})(), hg = ["#31af5e", "#ff4d3b", "#006BB5", "#f3911c"];
|
|
10763
10763
|
class fg {
|
|
10764
10764
|
static GetRandColor(e) {
|
|
10765
|
-
return
|
|
10765
|
+
return dt.GetRandEL(e ?? hg);
|
|
10766
10766
|
}
|
|
10767
10767
|
}
|
|
10768
10768
|
let mg = class {
|
|
@@ -10797,7 +10797,7 @@ let mg = class {
|
|
|
10797
10797
|
return this.timelinePxHeight * this.timelines.length;
|
|
10798
10798
|
}
|
|
10799
10799
|
getHoursArr() {
|
|
10800
|
-
return
|
|
10800
|
+
return dt.GenerateNumsRange(this.startHour, this.endHour);
|
|
10801
10801
|
}
|
|
10802
10802
|
};
|
|
10803
10803
|
const $n = (t) => t === 8 || t === 46, gg = (t) => t > 46 && t < 58, pg = (t) => t > 34 && t < 41, vg = (t) => t + ".", yg = (t, e, i) => {
|
|
@@ -10965,7 +10965,7 @@ class Rg {
|
|
|
10965
10965
|
return this.timelinePxHeight * this.timelines.length;
|
|
10966
10966
|
}
|
|
10967
10967
|
getHoursArr() {
|
|
10968
|
-
return
|
|
10968
|
+
return dt.GenerateNumsRange(this.startHour, this.endHour);
|
|
10969
10969
|
}
|
|
10970
10970
|
timeIsFree(e, i, n, s) {
|
|
10971
10971
|
return s.filter((r) => r.id !== n).every(
|
|
@@ -11022,11 +11022,11 @@ class ki {
|
|
|
11022
11022
|
}
|
|
11023
11023
|
static Create(e, i, n, s) {
|
|
11024
11024
|
const r = new ki();
|
|
11025
|
-
return r.id =
|
|
11025
|
+
return r.id = rt(), r.chatId = e, r.message = n, r.userName = s, r;
|
|
11026
11026
|
}
|
|
11027
11027
|
static CreatePingMessage() {
|
|
11028
11028
|
const e = new ki();
|
|
11029
|
-
return e.type = "ping", e.id =
|
|
11029
|
+
return e.type = "ping", e.id = rt(), e;
|
|
11030
11030
|
}
|
|
11031
11031
|
isMessage() {
|
|
11032
11032
|
return this.type === "message" || this.type === "";
|
|
@@ -11068,10 +11068,10 @@ class Fg {
|
|
|
11068
11068
|
}
|
|
11069
11069
|
const Og = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11070
11070
|
__proto__: null,
|
|
11071
|
-
Arrays:
|
|
11071
|
+
Arrays: dt,
|
|
11072
11072
|
Axios: Wt,
|
|
11073
11073
|
BaseStore: ae,
|
|
11074
|
-
Button:
|
|
11074
|
+
Button: gt,
|
|
11075
11075
|
Cache: Ui,
|
|
11076
11076
|
CarouselSwipe: ag,
|
|
11077
11077
|
Classes: U,
|
|
@@ -11082,7 +11082,7 @@ const Og = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
11082
11082
|
DateMask: bg,
|
|
11083
11083
|
Dates: tt,
|
|
11084
11084
|
Dragger: Cg,
|
|
11085
|
-
Email:
|
|
11085
|
+
Email: ht,
|
|
11086
11086
|
Extension: Sg,
|
|
11087
11087
|
FTSP: Nr,
|
|
11088
11088
|
Favourite: xg,
|
|
@@ -11184,8 +11184,8 @@ class Bg {
|
|
|
11184
11184
|
const qg = new Bg();
|
|
11185
11185
|
class Ng {
|
|
11186
11186
|
constructor() {
|
|
11187
|
-
u(this, "Menu", qg);
|
|
11188
|
-
u(this, "Head", Hg);
|
|
11187
|
+
u(this, "Menu", st(qg));
|
|
11188
|
+
u(this, "Head", st(Hg));
|
|
11189
11189
|
}
|
|
11190
11190
|
}
|
|
11191
11191
|
const Ug = new Ng();
|
|
@@ -11306,7 +11306,7 @@ let Qg = class {
|
|
|
11306
11306
|
const Kg = new Qg();
|
|
11307
11307
|
let ep = class extends ae {
|
|
11308
11308
|
constructor() {
|
|
11309
|
-
super(
|
|
11309
|
+
super(ht, "emails");
|
|
11310
11310
|
}
|
|
11311
11311
|
};
|
|
11312
11312
|
const tp = new ep();
|
|
@@ -11459,8 +11459,8 @@ class un {
|
|
|
11459
11459
|
let vp = class {
|
|
11460
11460
|
constructor() {
|
|
11461
11461
|
u(this, "isSearchDrawerOpen", T(!1));
|
|
11462
|
-
u(this, "searchModel",
|
|
11463
|
-
u(this, "searchGroups",
|
|
11462
|
+
u(this, "searchModel", st(new un()));
|
|
11463
|
+
u(this, "searchGroups", st([]));
|
|
11464
11464
|
u(this, "count", 0);
|
|
11465
11465
|
}
|
|
11466
11466
|
async Search(e) {
|
|
@@ -11542,7 +11542,7 @@ const Sp = new Cp(), xp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
11542
11542
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
11543
11543
|
class M {
|
|
11544
11544
|
}
|
|
11545
|
-
u(M, "Auth",
|
|
11545
|
+
u(M, "Auth", st(Lr)), u(M, "UI", st(_g)), u(M, "Paginator", st(Lg)), u(M, "S", xp), u(M, "H", Og), u(M, "C", If);
|
|
11546
11546
|
class wo {
|
|
11547
11547
|
constructor() {
|
|
11548
11548
|
u(this, "id");
|
|
@@ -11830,7 +11830,7 @@ class St {
|
|
|
11830
11830
|
}
|
|
11831
11831
|
static Create(e, i) {
|
|
11832
11832
|
const n = new St();
|
|
11833
|
-
return n.id =
|
|
11833
|
+
return n.id = rt(), n.fieldFillId = e, n.answerVariantId = i, n;
|
|
11834
11834
|
}
|
|
11835
11835
|
static GetClassName() {
|
|
11836
11836
|
return "selectedAnswerVariant";
|
|
@@ -11867,7 +11867,7 @@ const ts = class En {
|
|
|
11867
11867
|
}
|
|
11868
11868
|
static Create(e, i) {
|
|
11869
11869
|
const n = new En();
|
|
11870
|
-
return n.id =
|
|
11870
|
+
return n.id = rt(), n.fieldId = e.id, n.formFillId = i, n.order = e.order, n.valueNumber = 0, n.valueString = "", n.valueDate = /* @__PURE__ */ new Date(), n;
|
|
11871
11871
|
}
|
|
11872
11872
|
setString(e) {
|
|
11873
11873
|
this.valueString = e, this.valueString && (this.filled = this.valueString.length > 0);
|
|
@@ -11889,7 +11889,7 @@ const ts = class En {
|
|
|
11889
11889
|
}
|
|
11890
11890
|
addFile() {
|
|
11891
11891
|
const e = new es();
|
|
11892
|
-
return e.id =
|
|
11892
|
+
return e.id = rt(), e.answerId = this.id, this.answerFiles.push(e), e;
|
|
11893
11893
|
}
|
|
11894
11894
|
getFileInfos() {
|
|
11895
11895
|
const e = [];
|
package/dist/sprof.umd.cjs
CHANGED
|
@@ -39,4 +39,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
39
39
|
* vue-router v4.4.5
|
|
40
40
|
* (c) 2024 Eduardo San Martin Morote
|
|
41
41
|
* @license MIT
|
|
42
|
-
*/function Ds(t){const e=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+t].concat(e))}var Ls;(function(t){t.pop="pop",t.push="push"})(Ls||(Ls={}));var Hs;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Hs||(Hs={})),Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var _s;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(_s||(_s={}));const vh=Symbol(process.env.NODE_ENV!=="production"?"router view location matched":"");Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),Symbol(process.env.NODE_ENV!=="production"?"router":""),Symbol(process.env.NODE_ENV!=="production"?"route location":""),Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function xh(t,e,n){const o=()=>{t[e].delete(n)};i.onUnmounted(o),i.onDeactivated(o),i.onActivated(()=>{t[e].add(n)}),t[e].add(n)}function Bh(t){if(process.env.NODE_ENV!=="production"&&!i.getCurrentInstance()){Ds("getCurrentInstance() returned null. onBeforeRouteLeave() must be called at the top of a setup function");return}const e=i.inject(vh,{}).value;if(!e){process.env.NODE_ENV!=="production"&&Ds("No active route record was found when calling `onBeforeRouteLeave()`. Make sure you call this function inside a component child of <router-view>. Maybe you called it inside of App.vue?");return}xh(e,"leaveGuards",t)}function qs(){const t=i.ref(!1),e=i.ref(!1);return{confirmLeave:t,saveButtonClick:e,beforeWindowUnload:s=>{t.value&&s.preventDefault()},formUpdated:()=>{t.value=!0},showConfirmModal:(s,a)=>{t.value&&!e.value?s():a()}}}const Mh=(()=>{const t=(s,a)=>i.onBeforeMount(async()=>{var c;S.H.FTSP.Get().reset(),Ae.Set(a==null?void 0:a.sortsLib),S.H.FTSP.Get().setSortModel(Ae.GetDefault()),Ae.Set(a==null?void 0:a.sortsLib),S.H.FTSP.Get().setSortModel(Ae.GetDefault()),S.Paginator.storeModule=(c=a==null?void 0:a.pagination)==null?void 0:c.storeModule,await s()}),{saveButtonClick:e,showConfirmModal:n}=qs(),o=s=>Bh((a,c,l)=>{n((s||r)(),l)}),r=s=>async()=>{e.value=!0;try{s&&await s(),S.UI.Notify.Success("Сохранено")}catch(a){S.UI.Notify.Success("Что-то пошло не так. "+a);return}};return{onBeforeMount:t,onBeforeRouteLeave:o,submit:r}})(),Rh=["#31af5e","#ff4d3b","#006BB5","#f3911c"];class Ih{static GetRandColor(e){return De.GetRandEL(e??Rh)}}let $h=class{constructor(){d(this,"startHour",9);d(this,"endHour",19);d(this,"timelinePxHeight",50);d(this,"timelineStep",wt.FiveMinutes);d(this,"activeTime","");d(this,"activeObjectId","");d(this,"dragged",!1);d(this,"draggedStartTime","");d(this,"draggedEndTime","");d(this,"timelines",Yt[wt.FiveMinutes])}startDrag(e,n){this.draggedStartTime=e,this.draggedEndTime=n,this.dragged=!0}endDrag(){this.activeTime="",this.dragged=!1}setTimelineStep(e){this.timelineStep=e,this.setTimelines()}setTimelines(){this.timelines=Yt[this.timelineStep]}getScheduleHeight(){return this.getHourHeight()*this.getHoursArr().length}getHourHeight(){return this.timelinePxHeight*this.timelines.length}getHoursArr(){return De.GenerateNumsRange(this.startHour,this.endHour)}};const pi=t=>t===8||t===46,Ah=t=>t>46&&t<58,Nh=t=>t>34&&t<41,Ph=t=>t+".",Th=(t,e,n)=>{pi(e)||Nh(e)||(!Ah(e)||n>9)&&t.preventDefault()};function zh(t,e){if(e>8){let n=t.substring(0,2).replace(".","1");Number(n)>31&&(n="31");let o=t.substring(3,5).replace(".","1");Number(o)>12&&(o="12");let r=t.substring(6,10).replace(".","1");Number(r)>2100&&(r="2100"),t=n+"."+o+"."+r}return t}function Vh(t){const e=t.keyCode;let n=t.srcElement.value;const o=n.length;Th(t,e,o),!pi(e)&&(o===2||o===5)&&(n=Ph(n));const r=t.srcElement.value+String.fromCharCode(t.which);if(pi(e)){t.srcElement.value=n;return}n.length===0&&Number(r)>3&&(n="3",t.preventDefault()),n.length===1&&Number(r)>31&&(n="31",t.preventDefault()),r.length===5&&Number(r.substring(3,5))>12&&(n=n.substring(0,3)+"12",t.preventDefault()),n=zh(n,o),t.srcElement.value=n}class Fh{constructor(){d(this,"dragged",!1);d(this,"dragImg",new Image);this.dragImg.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs="}start(e){this.dragged=!0,e&&e.dataTransfer&&e.dataTransfer.setDragImage(this.dragImg,0,0)}end(){this.dragged=!1}isDragged(){return this.dragged}}class Oh{static Get(e){const n=e.split(".");return n[n.length-1]}}const Dh=(()=>{function t(s,a){localStorage.setItem(`${s}_favourite`,a.toString())}function e(s,a){const c=localStorage.getItem(`${s}_favourite`);return c?c.split(",").includes(a):!1}function n(s,a){const c=localStorage.getItem(`${s}_favourite`);if(!c){t(s,[a]);return}const l=c.split(",");l.push(a),t(s,l)}function o(s,a){const c=localStorage.getItem(`${s}_favourite`);if(!c)return;const l=c.split(",").filter(u=>u!==a);t(s,l)}function r(){for(const s in localStorage)s.includes("_favourite")&&localStorage.removeItem(s)}return{addToFavourite:n,removeFromFavourite:o,setFavourite:t,isFavourite:e,clearFavourite:r}})(),wn=class wn{static Format(e){let n=e;if(!n)e=n;else{(n[0]==="7"||n[0]==="8")&&n.length!==1&&(n=n.slice(1));const o=n.replace(/\+7|[^\d]/g,""),r=o.length;switch(!0){case r===0:e="";break;case(r===1&&n.length===1&&o==="7"):case(r===1&&n.length===1&&o==="8"):e="+7 (";break;case r<4:e=`+7 (${o}`;break;case r<7:e=`+7 (${o.slice(0,3)}) ${o.slice(3)}`;break;case r<9:e=`+7 (${o.slice(0,3)}) ${o.slice(3,6)}-${o.slice(6,8)}`;break;default:e=`+7 (${o.slice(0,3)}) ${o.slice(3,6)}-${o.slice(6,8)}-${o.slice(8,10)}`;break}}return e}static getPhoneRegExp(){return/^(\s*)?(\+)?([- _():=+]?\d[- _():=+]?){10,14}(\s*)?$/}};d(wn,"validatePhone",(e,n,o)=>{wn.getPhoneRegExp().test(n)||!n?o():o(new Error("Пожалуйста, введите корректный номер телефона"))});let gi=wn;class Lh{static Count(e){const n=e.filter(s=>s.rating!==0);let o=0;n.forEach(s=>o=o+s.rating);const r=o/n.length;return isNaN(r)?0:Number((o/n.length).toFixed(2))}}class Hh{static async Auth(e){e&&e()}static Dev(){}}class _h{constructor(){d(this,"startHour",9);d(this,"startHM",`${this.startHour}:00`);d(this,"endHour",19);d(this,"endHM",`${this.endHour}:00`);d(this,"timelinePxHeight",50);d(this,"timelineStep",wt.FiveMinutes);d(this,"timelines",Yt[wt.FiveMinutes])}periodIsCorrect(e,n){return H.GtOrEq(e,this.startHM)&&H.GtOrEq(this.endHM,n)}setTimelineStep(e){this.timelineStep=e,this.setTimelines()}setTimelines(){this.timelines=Yt[this.timelineStep]}getScheduleHeight(){return this.getHourHeight()*this.getHoursArr().length}getHourHeight(){return this.timelinePxHeight*this.timelines.length}getHoursArr(){return De.GenerateNumsRange(this.startHour,this.endHour)}timeIsFree(e,n,o,r){return r.filter(s=>s.id!==o).every(s=>!H.PeriodsIntersects(e,n,s.startTime,s.endTime))}sortByStartTime(e){e.sort((n,o)=>H.HMtoM(n.startTime)-H.HMtoM(o.startTime))}}const qh=-68;function Uh(t,e){if(!t){document.body.scrollTo({top:0,behavior:"smooth"});return}const n=document.querySelector(t),o=e??qh;let r=0;n&&(r=n.getBoundingClientRect().top+o+document.body.scrollTop),r&&document.body.scrollTo({top:r,behavior:"smooth"})}class Wh{static Sort(e){e.forEach((n,o)=>n.order=o)}}function jh(t,e){let n=!0;return t.value.validate(o=>(o||(n=!1),n)),n}const Gh=t=>new Promise(e=>{if(document.querySelector(t))return e(document.querySelector(t));const n=new MutationObserver(()=>{document.querySelector(t)&&(n.disconnect(),e(document.querySelector(t)))});n.observe(document.body,{childList:!0,subtree:!0})});class mn{constructor(e){d(this,"id");d(this,"message","");d(this,"userName");d(this,"createdOn",new Date);d(this,"chatId");d(this,"type","message");P.BuildClass(this,e)}static Create(e,n,o,r){const s=new mn;return s.id=ze(),s.chatId=e,s.message=o,s.userName=r,s}static CreatePingMessage(){const e=new mn;return e.type="ping",e.id=ze(),e}isMessage(){return this.type==="message"||this.type===""}}const Zh="";class Xh{constructor(e="",n="",o="set"){d(this,"client");d(this,"endpoint","");d(this,"query","");d(this,"period",2e4);P.BuildClass(this,{endpoint:e,query:n,mutation:o}),this.connect(),this.ping()}send(e){!this.client||this.client.readyState!==1||this.client.send(e)}ping(){setInterval(this.sendPing.bind(this),this.period)}sendPing(){!this.client||this.client.readyState!==1||this.send(JSON.stringify(mn.CreatePingMessage()))}setOnMessage(){this.client&&(this.client.onmessage=e=>{e.data})}buildUrl(){const e=`ws/${this.endpoint}/${this.query}`;return new URL(e,Zh.replace("http","ws")).toString()}connect(){this.client=new WebSocket(this.buildUrl()),this.client.onclose=this.reconnect,this.client.onerror=this.reconnect}reconnect(){setTimeout(this.connect,3e3)}}const Jh=Object.freeze(Object.defineProperty({__proto__:null,Arrays:De,Axios:It,BaseStore:Z,Button:je,Cache:fn,CarouselSwipe:Eh,Classes:P,Color:Ih,Contact:Yr,CreateSortModels:Nr,Cursor:$h,DateMask:Vh,Dates:Pe,Dragger:Fh,Email:He,Extension:Oh,FTSP:Qr,Favourite:Dh,FilterModel:xn,Hooks:Mh,HttpClient:ae,MakeCarousel:to,Period:Gn,PhoneService:gi,Rating:Lh,Router:ct,RouterGuard:Hh,Scheduler:_h,Scroll:Uh,Sizes:kn,SortModel:tn,Sorter:Wh,Static:_n,Statuses:le,Strings:te,Time:H,Timer:bt,Token:Rt,ValueType:Jn,WaitElement:Gh,WebSocketClient:Xh,useConfirmLeavePage:qs,validate:jh},Symbol.toStringTag,{value:"Module"}));class Yh{constructor(){d(this,"limit",25);d(this,"count",0);d(this,"curPage",1);d(this,"storeModule","")}setCurPage(e){this.curPage=e}pagesCount(){return Math.ceil(this.count/this.limit)??1}reset(){this.count=0,this.curPage=1}}const Qh=new Yh;class Kh{constructor(){d(this,"title","");d(this,"buttons",[])}Set(e="",n){typeof e=="function"?this.title=e():typeof e=="string"?this.title=e:this.title=e.value,this.buttons=n}}const ef=new Kh;class tf{constructor(){d(this,"menu",[]);d(this,"path","");d(this,"isOpen",!0);d(this,"filterString","")}Set(e){this.menu=e}Get(){return this.filterString?this.filterMenu():this.menu}filterMenu(){return this.menu.filter(e=>{var n;return te.SearchIn(e.name,this.filterString)||((n=e.children)==null?void 0:n.some(o=>te.SearchIn(o.name,this.filterString)))})}IsOpen(){return this.isOpen}Toggle(){this.isOpen=!this.isOpen}SetPath(e){this.path=e}GetPath(){return this.path}SetFilter(e){this.filterString=e}GetChildren(e){var n;return this.filterString?(n=e.children)==null?void 0:n.filter(o=>te.SearchIn(o.name,this.filterString)):e.children}}const nf=new tf;class of{constructor(){d(this,"Menu",nf);d(this,"Head",ef)}}const rf=new of;class sf extends Wr{constructor(){super(...arguments);d(this,"confirmButtonText","Да");d(this,"cancelButtonText","Нет");d(this,"resolve");d(this,"reject")}GetConfirmButtonText(){return this.confirmButtonText}GetCancelButtonText(){return this.cancelButtonText}Show(n){return super.show(),typeof n!="string"&&(this.confirmButtonText=n.confirmButtonText,this.cancelButtonText=n.cancelButtonText),new Promise((o,r)=>{this.resolve=o,this.reject=r})}Save(){return this.Show({text:"У вас есть несохранённые изменения",confirmButtonText:"Сохранить",cancelButtonText:"Не сохранять"})}Submit(){this.resolve(!0),this.hide()}Cancel(){this.reject(),this.hide()}hide(){this.resolve=void 0,this.reject=void 0,super.hide()}}const af=new sf;class lf extends Ur{Show(){super.show()}Hide(){super.hide()}}const cf=new lf,df=Object.freeze(Object.defineProperty({__proto__:null,Admin:rf,Dialog:af,Loading:cf,Notify:Ct},Symbol.toStringTag,{value:"Module"}));let uf=class{async Login(e){const n=e??S.Auth.Form.GetValues(),o=await ae.Post({query:"auth/login",payload:n});if(!o)throw S.UI.Notify.Error("Ошибка авторизации"),"Ошибка авторизации";S.Auth.Status.SetState(o)}async LoginAs(e){if(!await ae.Post({query:"auth/login-as",payload:{email:e}})){S.UI.Notify.Error("Ошибка авторизации");return}}async Register(){}async RestorePassword(){}async passwordChange(){await ae.Put({query:"auth/password-change"})}async RefreshToken(){await ae.Post({query:"auth/refresh-token",payload:{refreshToken:Rt.getRefreshToken()}})}async CheckUuid(e){await ae.Get({query:`auth/check-uuid/${e.userId}/${e.uniqueId}`})}};const hf=new uf;let ff=class extends Z{constructor(){super(Yr,"contacts")}};const mf=new ff;let pf=class{constructor(){d(this,"cropper",new Gt)}Open(e){this.cropper=e}Cropper(){return this.cropper}Ratio(){return this.cropper.ratio}};const gf=new pf;let yf=class extends Z{constructor(){super(He,"emails")}};const wf=new yf;let bf=class extends Z{constructor(){super(ve,"file-infos")}};const Cf=new bf;class yi{constructor(e){d(this,"id");d(this,"ftsp");d(this,"name","");P.BuildClass(this,e)}static Create(e){const n=new yi;return n.id=P.CreateUUID(),n.ftsp=JSON.stringify(e),n}}let Sf=class extends Z{constructor(){super(yi,"ftsp-presets")}};const kf=new Sf;let Ef=class extends Z{constructor(){super(Xr,"humans")}};const vf=new Ef;let xf=class extends Z{constructor(){super(rt,"phones")}};const Bf=new xf;class Mf{constructor(e){d(this,"id");d(this,"nameRus","");P.BuildClass(this,e)}}var Rf=Object.defineProperty,If=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&Rf(e,n,r),r};class Us{constructor(e){d(this,"id");d(this,"nameRus","");d(this,"fields",[]);P.BuildClass(this,e)}}If([P.GetClassConstructor(Mf)],Us.prototype,"fields");let $f=class extends Z{constructor(){super(Us,"schemas")}};const Af=new $f;class Ws{constructor(e){d(this,"id","");d(this,"value","");d(this,"label","");d(this,"key","");d(this,"description","");d(this,"route","");d(this,"searchElementMetas",[]);P.BuildClass(this,e)}}class Nf{constructor(e){d(this,"id");d(this,"name","");d(this,"label","");P.BuildClass(this,e)}}var Pf=Object.defineProperty,js=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&Pf(e,n,r),r};class dt{constructor(e){d(this,"id");d(this,"key","");d(this,"label","");d(this,"order",0);d(this,"route","");d(this,"table","");d(this,"active",!0);d(this,"searchColumn","");d(this,"descriptionColumn","");d(this,"labelColumn","");d(this,"valueColumn","");d(this,"options",[]);d(this,"searchGroupMetaColumns",[]);P.BuildClass(this,e)}}js([P.GetClassConstructor(Ws)],dt.prototype,"options"),js([P.GetClassConstructor(Nf)],dt.prototype,"searchGroupMetaColumns");class wi{constructor(e){d(this,"query","");d(this,"key","");d(this,"params","");d(this,"suggester",!1);d(this,"mustBeTranslated",!0);d(this,"options",[]);d(this,"searchGroupId","");d(this,"searchGroups",[]);d(this,"searchGroup",new dt);d(this,"searchObjects",[]);d(this,"pagination",new Kt);d(this,"count",0);e&&(this.query=e.query,e.searchGroups&&(this.searchGroups=e.searchGroups.map(n=>new dt(n))),e.searchGroup&&(this.searchGroup=new dt(e.searchGroup)),e.options&&(this.options=e.options.map(n=>new Ws(n))),this.count=e.count)}toUrl(){return JSON.stringify(this)}async setSearchGroup(e){const n=this.searchGroups.find(o=>o.id===e);n?this.searchGroup=n:this.searchGroup=new dt}async reproduceFromRoute(){this.setQuery(),await this.setSearchGroup(ct.Route().query.groupId)}setQuery(){const e=ct.Route().query.query;e&&(this.query=e)}}let Tf=class{constructor(){d(this,"isSearchDrawerOpen",i.ref(!1));d(this,"searchModel",i.reactive(new wi));d(this,"searchGroups",i.reactive([]));d(this,"count",0)}async Search(e){const n=await ae.Get({query:`?key=${e.key}&query=${e.query}`});n&&n.searchGroup&&n.searchGroup.options.forEach(o=>{e.searchObjects.push({id:o.id,value:o.value,label:o.label,description:o.description})})}async mainSearch(e){this.SetSearchModel(await ae.Get({query:`/main?searchModel=${e.toUrl()}`}))}async Full(e){e.options=[],e.searchGroups.forEach(o=>{o.options=[]});const n=await ae.Get({query:`main?searchModel=${e.toUrl()}`});this.SetSearchModel(n)}ToggleDrawer(e){this.isSearchDrawerOpen.value=e,this.searchModel=new wi}SetSearchModel(e){e&&(this.searchModel=new wi(e))}SetSearchGroups(){}IsSearchDrawerOpen(){return this.isSearchDrawerOpen}SearchModel(){return this.searchModel}SearchGroups(){return this.searchGroups}Count(){return this.count}};const zf=new Tf;class bi{constructor(e){d(this,"id");d(this,"login","");d(this,"email","");d(this,"password","");P.BuildClass(this,e)}static Create(){const e=new bi;return e.id=P.CreateUUID(),e}}let Vf=class extends Z{constructor(){super(bi,"users-accounts")}};const Ff=new Vf;let Of=class extends Z{constructor(){super(Jn,"value-types")}};const Df=new Of,Lf=Object.freeze(Object.defineProperty({__proto__:null,Auth:hf,Contacts:mf,Cropper:gf,Emails:wf,FTSPPresets:kf,FileInfos:Cf,Humans:vf,Phones:Bf,Schemas:Af,Search:zf,UserAccounts:Ff,ValueTypes:Df},Symbol.toStringTag,{value:"Module"}));class S{}d(S,"Auth",i.reactive(Zr)),d(S,"UI",i.reactive(df)),d(S,"Paginator",i.reactive(Qh)),d(S,"S",Lf),d(S,"H",Jh),d(S,"C",Xd);class Gs{constructor(){d(this,"id");d(this,"num","");d(this,"fileInfoId");d(this,"fileInfo",new ve)}}class $t{constructor(e){d(this,"id");d(this,"passportId");d(this,"fileInfoId");d(this,"fileInfo",new ve);d(this,"order",0);S.H.Classes.BuildClass(this,e)}static Create(e){const n=new $t;return n.id=S.H.Classes.CreateUUID(),n.passportId=e,n}}var Hf=Object.defineProperty,_f=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&Hf(e,n,r),r};class Ci{constructor(e){d(this,"id");d(this,"num","");d(this,"seria","");d(this,"division","");d(this,"divisionCode","");d(this,"citzenship","");d(this,"date",new Date);d(this,"address","");d(this,"passportScans",[]);S.H.Classes.BuildClass(this,e)}}_f([S.H.Classes.GetClassConstructor($t)],Ci.prototype,"passportScans");class Zs{constructor(){d(this,"id");d(this,"num","");d(this,"fileInfoId");d(this,"fileInfo",new ve)}}const qf=Object.freeze(Object.defineProperty({__proto__:null,Inn:Gs,Passport:Ci,PassportScan:$t,Snils:Zs},Symbol.toStringTag,{value:"Module"}));let Uf=class extends Z{constructor(){super(Gs,"inns")}};const Wf=new Uf;let jf=class extends Z{constructor(){super($t,"passport-scans")}};const Gf=new jf;let Zf=class extends Z{constructor(){super(Ci,"passports")}};const Xf=new Zf;let Jf=class extends Z{constructor(){super(Zs,"snilss")}};const Yf=new Jf,Qf=Object.freeze(Object.defineProperty({__proto__:null,C:qf,S:Object.freeze(Object.defineProperty({__proto__:null,Inns:Wf,PassportScans:Gf,Passports:Xf,Snilss:Yf},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class Je{constructor(e){d(this,"id");d(this,"name","");d(this,"score",0);d(this,"order",0);d(this,"showMoreQuestions",!1);d(this,"showOther",!1);d(this,"fieldId");d(this,"isMatrixY",!1);S.H.Classes.BuildClass(this,e)}static Create(e){const n=new Je;return n.id=S.H.Classes.CreateUUID(),n.fieldId=e,n}}class Xs{constructor(e){d(this,"id");d(this,"name","");d(this,"order",0);d(this,"fieldId");S.H.Classes.BuildClass(this,e)}}class Si{constructor(e){d(this,"id");d(this,"name","");d(this,"order",0);S.H.Classes.BuildClass(this,e)}}class ut{constructor(e){d(this,"id");d(this,"name","");d(this,"fieldId");S.H.Classes.BuildClass(this,e)}static Create(e){const n=new ut;return n.id=S.H.Classes.CreateUUID(),n.fieldId=e,n}}var Kf=Object.defineProperty,At=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&Kf(e,n,r),r};const Ye=class Sn{constructor(e){d(this,"id");d(this,"name","");d(this,"code","");d(this,"valueTypeId");d(this,"order",0);d(this,"ageCompare",!1);d(this,"answerVariants",[]);d(this,"answerVariantsForDelete",[]);d(this,"fieldExamples",[]);d(this,"fieldVariants",[]);d(this,"valueType",new Jn);d(this,"fieldMeasures",[]);d(this,"showSet",!1);d(this,"showRadio",!1);d(this,"isEdit",!1);d(this,"children",[]);d(this,"parentId");d(this,"formSectionId");d(this,"selected",!1);S.H.Classes.BuildClass(this,e),this.changeRelation([this.valueType])}getMatrixX(){return this.answerVariants.filter(e=>!e.isMatrixY)}getMatrixY(){return this.answerVariants.filter(e=>e.isMatrixY)}static Create(e){const n=new Sn;return n.id=S.H.Classes.CreateUUID(),n.formSectionId=e,n}getRegisterPropertyRadioOriginalValue(e){const n=this.answerVariants.find(o=>o.id===e);return n?n.name:""}addRadioItem(e){const n=new Je(e);n.order=this.answerVariants.length,this.answerVariants.push(n)}removeRadioItem(e){const n=this.answerVariants[e].id;n&&this.answerVariantsForDelete.push(n),this.answerVariants.splice(e,1)}changeRelation(e){const n=e.find(o=>o.id===this.valueTypeId);if(n){if(n.isRadio()){this.showRadio=!0,this.showSet=!1;return}if(n.isSet()){this.showSet=!0,this.showRadio=!1;return}this.showSet=!1,this.showRadio=!1,this.valueType=n}}editRegisterProperty(e){this.isEdit=e??!this.isEdit}sortExamples(){this.fieldExamples.forEach((e,n)=>e.order=n)}addRegisterPropertyMeasure(e){this.fieldMeasures.push(new Si(e))}addRegisterPropertyVariant(){this.fieldVariants.push(new ut)}getIdWithoutDashes(){return this.id?this.id.replaceAll(/[^a-zA-Z]+/g,""):""}static GetClassName(){return"Field"}setType(e){this.valueType=e,this.valueTypeId=e.id}setName(e){this.name=e}addAnswerVariant(){const e=Je.Create(this.id);return e.name="Вариант",e.order=this.answerVariants.length,this.answerVariants.push(e),e}addChild(){const e=Sn.Create();return e.parentId=this.id,e.name="Вопрос",e.order=this.children.length,this.children.push(e),e}addFieldVariant(){const e=ut.Create(this.id);return this.fieldVariants.push(e),e}copy(){const e=new Sn(this);return e.id=S.H.Classes.CreateUUID(),e.answerVariants.forEach(n=>{n.id=S.H.Classes.CreateUUID(),n.fieldId=e.id}),e.children=e.children.map(n=>{const o=n.copy();return o.parentId=e.id,o}),e}};At([S.H.Classes.GetClassConstructor(Je)],Ye.prototype,"answerVariants"),At([S.H.Classes.GetClassConstructor(Xs)],Ye.prototype,"fieldExamples"),At([S.H.Classes.GetClassConstructor(ut)],Ye.prototype,"fieldVariants"),At([S.H.Classes.GetClassConstructor(Si)],Ye.prototype,"fieldMeasures"),At([S.H.Classes.GetClassConstructor(Ye)],Ye.prototype,"children");let pn=Ye;class ki{constructor(e){d(this,"id");d(this,"answerId");d(this,"comment","");d(this,"fileInfoId");d(this,"fileInfo",new ve);S.H.Classes.BuildClass(this,e)}}class Qe{constructor(e){d(this,"id");d(this,"answerVariantId");d(this,"answerVariantIdY");d(this,"fieldFillId");S.H.Classes.BuildClass(this,e)}static Create(e,n){const o=new Qe;return o.id=ze(),o.fieldFillId=e,o.answerVariantId=n,o}static GetClassName(){return"selectedAnswerVariant"}}var em=Object.defineProperty,Js=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&em(e,n,r),r};const Ei=class Ri{constructor(e){d(this,"id");d(this,"valueString");d(this,"valueOther");d(this,"valueNumber");d(this,"valueDate");d(this,"fileInfo",new ve);d(this,"fileInfoId");d(this,"order",0);d(this,"selectedAnswerVariants",[]);d(this,"patientId");d(this,"fieldId");d(this,"formFillId");d(this,"answerVariantId");d(this,"filled",!1);d(this,"researchResultId");d(this,"answerFiles",[]);d(this,"answerFilesForDelete",[]);S.H.Classes.BuildClass(this,e)}setFilled(e){this.filled=e}static Create(e,n){const o=new Ri;return o.id=ze(),o.fieldId=e.id,o.formFillId=n,o.order=e.order,o.valueNumber=0,o.valueString="",o.valueDate=new Date,o}setString(e){this.valueString=e,this.valueString&&(this.filled=this.valueString.length>0)}setNumber(e){this.valueNumber=e,this.valueNumber&&(this.filled=!0)}setOther(e){this.valueOther=e,this.valueOther&&(this.filled=this.valueOther.length>0)}setDate(e){this.valueDate=e,this.filled=!0}setRadio(e){this.answerVariantId=e,this.filled=!!this.answerVariantId}static CreateMany(e,n){return e.map(o=>Ri.Create(o,n))}addFile(){const e=new ki;return e.id=ze(),e.answerId=this.id,this.answerFiles.push(e),e}getFileInfos(){const e=[];return this.answerFiles.forEach(n=>e.push(n.fileInfo)),e}getSelectedAnswerVariant(){return!0}setMatrixRadioValue(e,n){const o=Qe.Create(this.id,e);return o.answerVariantIdY=n,this.selectedAnswerVariants.push(o),this.filled=!0,o}getMatrixValue(e,n){return this.selectedAnswerVariants.find(o=>o.answerVariantId===e&&o.answerVariantIdY===n)}addSelectedAnswerVariant(e){const n=Qe.Create(this.id,e);return this.selectedAnswerVariants.push(n),this.filled=!0,n}static GetClassName(){return"answer"}showOther(e){const n=e.find(o=>o.showOther);return n?this.answerVariantId===n.id||this.selectedAnswerVariants.some(o=>o.answerVariantId===n.id):!1}};Js([S.H.Classes.GetClassConstructor(Qe)],Ei.prototype,"selectedAnswerVariants"),Js([S.H.Classes.GetClassConstructor(ki)],Ei.prototype,"answerFiles");let ht=Ei;class tm{constructor(e){d(this,"id");d(this,"fieldId");S.H.Classes.BuildClass(this,e)}static GetClassName(){return"fieldFilter"}}var nm=Object.defineProperty,im=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&nm(e,n,r),r};const Ys=class ba{constructor(e){d(this,"id");d(this,"name","");d(this,"order",0);d(this,"fields",[]);d(this,"formId");S.H.Classes.BuildClass(this,e)}static GetClassName(){return"formSection"}getN(){return`${this.order+1}`}getFieldN(e){return`${this.getN()}.${e+1}`}getSubFieldN(e,n){return`${this.getFieldN(e)}.${n+1}`}static Create(e){const n=new ba;return n.id=S.H.Classes.CreateUUID(),n.formId=e,n}addField(){const e=pn.Create(this.id);return this.fields.push(e),this.sortFields(),e}sortFields(){this.fields.forEach((e,n)=>e.order=n)}getAnswerVariants(){const e=[];return this.fields.forEach(n=>e.push(...n.answerVariants)),e}};im([S.H.Classes.GetClassConstructor(pn)],Ys.prototype,"fields");let gn=Ys;var om=Object.defineProperty,rm=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&om(e,n,r),r};const Qs=class Ca{constructor(e){d(this,"id");d(this,"name","");d(this,"order",0);d(this,"isLaboratory",!1);d(this,"formSections",[]);d(this,"isEdit",!1);d(this,"withDates",!1);d(this,"withScores",!1);d(this,"selectedForExport",!1);d(this,"filterString","");d(this,"showOnlyNotFilled",!1);d(this,"showOnlyFilled",!1);S.H.Classes.BuildClass(this,e)}static GetClassName(){return"Form"}static Create(){const e=new Ca;return e.id=S.H.Classes.CreateUUID(),e}editRegisterGroup(e){this.isEdit=e??!this.isEdit}addFormSection(){const e=gn.Create(this.id);return this.formSections.push(e),S.H.Sorter.Sort(this.formSections),e}getFields(){const e=this.formSections.map(o=>o.fields).flat(),n=e.map(o=>o.children).flat();return e.concat(n).filter(o=>o.children.length===0)}};rm([S.H.Classes.GetClassConstructor(gn)],Qs.prototype,"formSections");let Ks=Qs;var sm=Object.defineProperty,am=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&sm(e,n,r),r};const ea=class Sa{constructor(e){d(this,"id");d(this,"date",new Date);d(this,"editMode",!1);d(this,"userFormId");d(this,"fillingPercentage",0);d(this,"fieldFills",[]);d(this,"num","");d(this,"formId");S.H.Classes.BuildClass(this,e)}static Create(e){const n=new Sa;return n.id=S.H.Classes.CreateUUID(),n.formId=e.id,n.fieldFills.push(...ht.CreateMany(e.getFields(),n.id)),n}addFieldFill(e){this.fieldFills.push(e)}getFieldFill(e){var n;return(n=this.fieldFills)==null?void 0:n.find(o=>o.fieldId===e)}pushRegisterProperty(e){const n=new ht;n.researchResultId=e,this.fieldFills.push(n)}getRegisterPropertyToPatient(e){return this.fieldFills.filter(n=>n.researchResultId===e)}getOrCreateFieldFill(e){let n=this.getFieldFill(e.id);return n||(n=ht.Create(e),this.addFieldFill(n)),n}getFileInfos(){const e=[];return this.fieldFills.forEach(n=>e.push(...n.getFileInfos())),e}calculateFilling(){const e=this.fieldFills.filter(o=>o.filled).length,n=this.fieldFills.length;this.fillingPercentage=Math.round(e/n*100)}getFieldFillByFieldId(e){return this.fieldFills.find(n=>n.fieldId===e)}getFieldVariantFieldFill(e){return this.fieldFills.find(n=>n.answerVariantId===e)}getFieldsFieldFillsMap(e){const n={};return e.forEach(o=>{var r;if(o.code){const s=(r=this.getFieldFillByFieldId(o.id))==null?void 0:r.valueNumber;n[o.code]=s}}),n}getIdWithoutDashes(){return this.id?this.id.replaceAll(/[^a-zA-Z]+/g,""):""}};am([S.H.Classes.GetClassConstructor(ht)],ea.prototype,"fieldFills");let ta=ea;const lm=Object.freeze(Object.defineProperty({__proto__:null,AnswerVariant:Je,Field:pn,FieldExample:Xs,FieldFill:ht,FieldFillFile:ki,FieldFilter:tm,FieldMeasure:Si,FieldVariant:ut,Form:Ks,FormFill:ta,FormSection:gn,SelectedAnswerVariant:Qe},Symbol.toStringTag,{value:"Module"}));let cm=class extends Z{constructor(){super(Je,"answer-variants")}};const dm=new cm;let um=class extends Z{constructor(){super(ht,"field-fills")}};const hm=new um;let fm=class extends Z{constructor(){super(pn,"fields")}};const mm=new fm;let pm=class extends Z{constructor(){super(ta,"form-fills")}};const gm=new pm;let ym=class extends Z{constructor(){super(gn,"form-sections")}};const wm=new ym;let bm=class extends Z{constructor(){super(Ks,"forms")}};const Cm=new bm;let Sm=class extends Z{constructor(){super(Qe,"selected-answer-variants")}};const km=new Sm,Em=Object.freeze(Object.defineProperty({__proto__:null,C:lm,S:Object.freeze(Object.defineProperty({__proto__:null,AnswerVariants:dm,FieldFills:hm,Fields:mm,FormFills:gm,FormSections:wm,Forms:Cm,SelectedAnswerVariants:km},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class yn{constructor(e){d(this,"id");d(this,"name","");d(this,"label","");S.H.Classes.BuildClass(this,e)}static Create(e,n){const o=new yn;return o.id=S.H.Classes.CreateUUID(),o.name=e,o.label=n,o}}const vm=Object.freeze(Object.defineProperty({__proto__:null,ColorTheme:yn},Symbol.toStringTag,{value:"Module"}));class xm extends Z{constructor(){super(yn,"color-themes")}}const Bm=new xm,Mm=Object.freeze(Object.defineProperty({__proto__:null,Docs:Qf,Forms:Em,Settings:Object.freeze(Object.defineProperty({__proto__:null,C:vm,S:Object.freeze(Object.defineProperty({__proto__:null,ColorThemes:Bm},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"})),Rm={install:function(t){t.component("PButton",Ni),t.component("PCheckBox",Pi),t.component("PDatePicker",Ti),t.component("PFlex",zi),t.component("PInput",Hi),t.component("PInputDate",_i),t.component("PInputNumber",qi),t.component("PLeftSlider",Ui),t.component("PList",Wi),t.component("PListItem",ji),t.component("PRadio",Gi),t.component("PRightSlider",Zi),t.component("PSelect",Xi),t.component("PSticky",Ji),t.component("PString",Yi),t.component("PTextarea",Qi),t.component("PTopSlider",Ki),t.component("IconDownload",yo),t.component("IconFilter",wo),t.component("ArrowLeft",Mo),t.component("ArrowRight",Ro),t.component("DoubleArrowLeft",Io),t.component("DoubleArrowRight",$o),t.component("EllipsisSvg",Ao),t.component("IconArrowLeft",bo),t.component("IconCheckDefault",Co),t.component("IconClose",zt),t.component("IconEdit",So),t.component("IconEmail",ko),t.component("IconMove",Eo),t.component("IconPhone",vo),t.component("IconSearch",xo),t.component("IconSelectArrow",Bo),t.component("CollapseContainer",cr),t.component("CollapseItem",dr),t.component("VerticalCollapseContainer",ur),t.component("PAdd",hr),t.component("PContainer",fr),t.component("PContainerStickyHead",mr),t.component("PDel",pr),t.component("PTabs",wr),t.component("UploaderFile",br),t.component("AuthForm",gr),t.component("PModal",yr),t.component("AuthPage",qn),t.component("PageNotFound",Un),t.component("AdaptiveContainer",Ii),t.component("AdaptiveContainerHorizontal",$i),t.component("AdminGallery",Ai),t.component("AuthModal",eo),t.component("CarouselImages",no),t.component("ContextWindow",io),t.component("DateInputRangeV2",ro),t.component("DateInputRange",oo),t.component("DropList",so),t.component("FilterCheckbox",ho),t.component("FiltersButtonsSelect",fo),t.component("FilterSelect",mo),t.component("FTSPPanel",po),t.component("GeneralItem",go),t.component("GridContainer",vn),t.component("ImageCropper",rr),t.component("InfoItem",jt),t.component("InfoItemSelectButtons",sr),t.component("LeftRightContainer",ar),t.component("MessageBody",lr),t.component("PAutocomplete",Cr),t.component("PDialog",Sr),t.component("PhoneForm",kr),t.component("PLoader",Er),t.component("PNotification",vr),t.component("PPagination",xr),t.component("RemoteSearch",Br),t.component("ResearcheContainer",Mr),t.component("RightSliderContainer",Rr),t.component("RightTabsContainer",Ir),t.component("SelectValueType",$r),t.component("SingleNameToggleForm",Ar),t.component("SortList",Pr),t.component("SortSelect",Tr),t.component("Switch3Pos",zr),t.component("ThemeWrapper",Vr),t.component("ToggleInfoItem",Fr),t.component("TopSliderContainer",Or),t.component("UploaderImage",Dr)}},Im=["PF","PFM"];v.AdaptiveContainer=Ii,v.AdaptiveContainerHorizontal=$i,v.AdminGallery=Ai,v.ArrowLeft=Mo,v.ArrowRight=Ro,v.AuthForm=gr,v.AuthModal=eo,v.AuthPage=qn,v.CarouselImages=no,v.CollapseContainer=cr,v.CollapseItem=dr,v.ContextWindow=io,v.DateInputRange=oo,v.DateInputRange_v2=ro,v.DoubleArrowLeft=Io,v.DoubleArrowRight=$o,v.DropList=so,v.EllipsisSvg=Ao,v.FTSPPanel=po,v.FilterCheckbox=ho,v.FilterSelect=mo,v.FiltersButtonsSelect=fo,v.GeneralItem=go,v.GridContainer=vn,v.IconArrowLeft=bo,v.IconCheckDefault=Co,v.IconClose=zt,v.IconDownload=yo,v.IconEdit=So,v.IconEmail=ko,v.IconFilter=wo,v.IconMove=Eo,v.IconPhone=vo,v.IconSearch=xo,v.IconSelectArrow=Bo,v.ImageCropper=rr,v.InfoItem=jt,v.InfoItemSelectButtons=sr,v.LeftRightContainer=ar,v.MessageBody=lr,v.PAdd=hr,v.PAutocomplete=Cr,v.PButton=Ni,v.PCheckBox=Pi,v.PContainer=fr,v.PContainerStickyHead=mr,v.PDatePicker=Ti,v.PDel=pr,v.PDialog=Sr,v.PF=S,v.PFM=Mm,v.PFlex=zi,v.PInput=Hi,v.PInputDate=_i,v.PInputNumber=qi,v.PLeftSlider=Ui,v.PList=Wi,v.PListItem=ji,v.PLoader=Er,v.PModal=yr,v.PNotification=vr,v.PPagination=xr,v.PRadio=Gi,v.PRightSlider=Zi,v.PSelect=Xi,v.PSticky=Ji,v.PString=Yi,v.PTabs=wr,v.PTextarea=Qi,v.PTopSlider=Ki,v.PageNotFound=Un,v.PhoneForm=kr,v.RemoteSearch=Br,v.ResearcheContainer=Mr,v.RightSliderContainer=Rr,v.RightTabsContainer=Ir,v.SelectValueType=$r,v.SingleNameToggleForm=Ar,v.SortList=Pr,v.SortSelect=Tr,v.Switch3Pos=zr,v.ThemeWrapper=Vr,v.ToggleInfoItem=Fr,v.TopSliderContainer=Or,v.UploaderFile=br,v.UploaderImage=Dr,v.VerticalCollapseContainer=ur,v.pfName=Im,v.servicesComponents=Rm,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
|
|
42
|
+
*/function Ds(t){const e=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+t].concat(e))}var Ls;(function(t){t.pop="pop",t.push="push"})(Ls||(Ls={}));var Hs;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Hs||(Hs={})),Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var _s;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(_s||(_s={}));const vh=Symbol(process.env.NODE_ENV!=="production"?"router view location matched":"");Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),Symbol(process.env.NODE_ENV!=="production"?"router":""),Symbol(process.env.NODE_ENV!=="production"?"route location":""),Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function xh(t,e,n){const o=()=>{t[e].delete(n)};i.onUnmounted(o),i.onDeactivated(o),i.onActivated(()=>{t[e].add(n)}),t[e].add(n)}function Bh(t){if(process.env.NODE_ENV!=="production"&&!i.getCurrentInstance()){Ds("getCurrentInstance() returned null. onBeforeRouteLeave() must be called at the top of a setup function");return}const e=i.inject(vh,{}).value;if(!e){process.env.NODE_ENV!=="production"&&Ds("No active route record was found when calling `onBeforeRouteLeave()`. Make sure you call this function inside a component child of <router-view>. Maybe you called it inside of App.vue?");return}xh(e,"leaveGuards",t)}function qs(){const t=i.ref(!1),e=i.ref(!1);return{confirmLeave:t,saveButtonClick:e,beforeWindowUnload:s=>{t.value&&s.preventDefault()},formUpdated:()=>{t.value=!0},showConfirmModal:(s,a)=>{t.value&&!e.value?s():a()}}}const Mh=(()=>{const t=(s,a)=>i.onBeforeMount(async()=>{var c;S.H.FTSP.Get().reset(),Ae.Set(a==null?void 0:a.sortsLib),S.H.FTSP.Get().setSortModel(Ae.GetDefault()),Ae.Set(a==null?void 0:a.sortsLib),S.H.FTSP.Get().setSortModel(Ae.GetDefault()),S.Paginator.storeModule=(c=a==null?void 0:a.pagination)==null?void 0:c.storeModule,await s()}),{saveButtonClick:e,showConfirmModal:n}=qs(),o=s=>Bh((a,c,l)=>{n((s||r)(),l)}),r=s=>async()=>{e.value=!0;try{s&&await s(),S.UI.Notify.Success("Сохранено")}catch(a){S.UI.Notify.Success("Что-то пошло не так. "+a);return}};return{onBeforeMount:t,onBeforeRouteLeave:o,submit:r}})(),Rh=["#31af5e","#ff4d3b","#006BB5","#f3911c"];class Ih{static GetRandColor(e){return De.GetRandEL(e??Rh)}}let $h=class{constructor(){d(this,"startHour",9);d(this,"endHour",19);d(this,"timelinePxHeight",50);d(this,"timelineStep",wt.FiveMinutes);d(this,"activeTime","");d(this,"activeObjectId","");d(this,"dragged",!1);d(this,"draggedStartTime","");d(this,"draggedEndTime","");d(this,"timelines",Yt[wt.FiveMinutes])}startDrag(e,n){this.draggedStartTime=e,this.draggedEndTime=n,this.dragged=!0}endDrag(){this.activeTime="",this.dragged=!1}setTimelineStep(e){this.timelineStep=e,this.setTimelines()}setTimelines(){this.timelines=Yt[this.timelineStep]}getScheduleHeight(){return this.getHourHeight()*this.getHoursArr().length}getHourHeight(){return this.timelinePxHeight*this.timelines.length}getHoursArr(){return De.GenerateNumsRange(this.startHour,this.endHour)}};const pi=t=>t===8||t===46,Ah=t=>t>46&&t<58,Nh=t=>t>34&&t<41,Ph=t=>t+".",Th=(t,e,n)=>{pi(e)||Nh(e)||(!Ah(e)||n>9)&&t.preventDefault()};function zh(t,e){if(e>8){let n=t.substring(0,2).replace(".","1");Number(n)>31&&(n="31");let o=t.substring(3,5).replace(".","1");Number(o)>12&&(o="12");let r=t.substring(6,10).replace(".","1");Number(r)>2100&&(r="2100"),t=n+"."+o+"."+r}return t}function Vh(t){const e=t.keyCode;let n=t.srcElement.value;const o=n.length;Th(t,e,o),!pi(e)&&(o===2||o===5)&&(n=Ph(n));const r=t.srcElement.value+String.fromCharCode(t.which);if(pi(e)){t.srcElement.value=n;return}n.length===0&&Number(r)>3&&(n="3",t.preventDefault()),n.length===1&&Number(r)>31&&(n="31",t.preventDefault()),r.length===5&&Number(r.substring(3,5))>12&&(n=n.substring(0,3)+"12",t.preventDefault()),n=zh(n,o),t.srcElement.value=n}class Fh{constructor(){d(this,"dragged",!1);d(this,"dragImg",new Image);this.dragImg.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs="}start(e){this.dragged=!0,e&&e.dataTransfer&&e.dataTransfer.setDragImage(this.dragImg,0,0)}end(){this.dragged=!1}isDragged(){return this.dragged}}class Oh{static Get(e){const n=e.split(".");return n[n.length-1]}}const Dh=(()=>{function t(s,a){localStorage.setItem(`${s}_favourite`,a.toString())}function e(s,a){const c=localStorage.getItem(`${s}_favourite`);return c?c.split(",").includes(a):!1}function n(s,a){const c=localStorage.getItem(`${s}_favourite`);if(!c){t(s,[a]);return}const l=c.split(",");l.push(a),t(s,l)}function o(s,a){const c=localStorage.getItem(`${s}_favourite`);if(!c)return;const l=c.split(",").filter(u=>u!==a);t(s,l)}function r(){for(const s in localStorage)s.includes("_favourite")&&localStorage.removeItem(s)}return{addToFavourite:n,removeFromFavourite:o,setFavourite:t,isFavourite:e,clearFavourite:r}})(),wn=class wn{static Format(e){let n=e;if(!n)e=n;else{(n[0]==="7"||n[0]==="8")&&n.length!==1&&(n=n.slice(1));const o=n.replace(/\+7|[^\d]/g,""),r=o.length;switch(!0){case r===0:e="";break;case(r===1&&n.length===1&&o==="7"):case(r===1&&n.length===1&&o==="8"):e="+7 (";break;case r<4:e=`+7 (${o}`;break;case r<7:e=`+7 (${o.slice(0,3)}) ${o.slice(3)}`;break;case r<9:e=`+7 (${o.slice(0,3)}) ${o.slice(3,6)}-${o.slice(6,8)}`;break;default:e=`+7 (${o.slice(0,3)}) ${o.slice(3,6)}-${o.slice(6,8)}-${o.slice(8,10)}`;break}}return e}static getPhoneRegExp(){return/^(\s*)?(\+)?([- _():=+]?\d[- _():=+]?){10,14}(\s*)?$/}};d(wn,"validatePhone",(e,n,o)=>{wn.getPhoneRegExp().test(n)||!n?o():o(new Error("Пожалуйста, введите корректный номер телефона"))});let gi=wn;class Lh{static Count(e){const n=e.filter(s=>s.rating!==0);let o=0;n.forEach(s=>o=o+s.rating);const r=o/n.length;return isNaN(r)?0:Number((o/n.length).toFixed(2))}}class Hh{static async Auth(e){e&&e()}static Dev(){}}class _h{constructor(){d(this,"startHour",9);d(this,"startHM",`${this.startHour}:00`);d(this,"endHour",19);d(this,"endHM",`${this.endHour}:00`);d(this,"timelinePxHeight",50);d(this,"timelineStep",wt.FiveMinutes);d(this,"timelines",Yt[wt.FiveMinutes])}periodIsCorrect(e,n){return H.GtOrEq(e,this.startHM)&&H.GtOrEq(this.endHM,n)}setTimelineStep(e){this.timelineStep=e,this.setTimelines()}setTimelines(){this.timelines=Yt[this.timelineStep]}getScheduleHeight(){return this.getHourHeight()*this.getHoursArr().length}getHourHeight(){return this.timelinePxHeight*this.timelines.length}getHoursArr(){return De.GenerateNumsRange(this.startHour,this.endHour)}timeIsFree(e,n,o,r){return r.filter(s=>s.id!==o).every(s=>!H.PeriodsIntersects(e,n,s.startTime,s.endTime))}sortByStartTime(e){e.sort((n,o)=>H.HMtoM(n.startTime)-H.HMtoM(o.startTime))}}const qh=-68;function Uh(t,e){if(!t){document.body.scrollTo({top:0,behavior:"smooth"});return}const n=document.querySelector(t),o=e??qh;let r=0;n&&(r=n.getBoundingClientRect().top+o+document.body.scrollTop),r&&document.body.scrollTo({top:r,behavior:"smooth"})}class Wh{static Sort(e){e.forEach((n,o)=>n.order=o)}}function jh(t,e){let n=!0;return t.value.validate(o=>(o||(n=!1),n)),n}const Gh=t=>new Promise(e=>{if(document.querySelector(t))return e(document.querySelector(t));const n=new MutationObserver(()=>{document.querySelector(t)&&(n.disconnect(),e(document.querySelector(t)))});n.observe(document.body,{childList:!0,subtree:!0})});class mn{constructor(e){d(this,"id");d(this,"message","");d(this,"userName");d(this,"createdOn",new Date);d(this,"chatId");d(this,"type","message");P.BuildClass(this,e)}static Create(e,n,o,r){const s=new mn;return s.id=ze(),s.chatId=e,s.message=o,s.userName=r,s}static CreatePingMessage(){const e=new mn;return e.type="ping",e.id=ze(),e}isMessage(){return this.type==="message"||this.type===""}}const Zh="";class Xh{constructor(e="",n="",o="set"){d(this,"client");d(this,"endpoint","");d(this,"query","");d(this,"period",2e4);P.BuildClass(this,{endpoint:e,query:n,mutation:o}),this.connect(),this.ping()}send(e){!this.client||this.client.readyState!==1||this.client.send(e)}ping(){setInterval(this.sendPing.bind(this),this.period)}sendPing(){!this.client||this.client.readyState!==1||this.send(JSON.stringify(mn.CreatePingMessage()))}setOnMessage(){this.client&&(this.client.onmessage=e=>{e.data})}buildUrl(){const e=`ws/${this.endpoint}/${this.query}`;return new URL(e,Zh.replace("http","ws")).toString()}connect(){this.client=new WebSocket(this.buildUrl()),this.client.onclose=this.reconnect,this.client.onerror=this.reconnect}reconnect(){setTimeout(this.connect,3e3)}}const Jh=Object.freeze(Object.defineProperty({__proto__:null,Arrays:De,Axios:It,BaseStore:Z,Button:je,Cache:fn,CarouselSwipe:Eh,Classes:P,Color:Ih,Contact:Yr,CreateSortModels:Nr,Cursor:$h,DateMask:Vh,Dates:Pe,Dragger:Fh,Email:He,Extension:Oh,FTSP:Qr,Favourite:Dh,FilterModel:xn,Hooks:Mh,HttpClient:ae,MakeCarousel:to,Period:Gn,PhoneService:gi,Rating:Lh,Router:ct,RouterGuard:Hh,Scheduler:_h,Scroll:Uh,Sizes:kn,SortModel:tn,Sorter:Wh,Static:_n,Statuses:le,Strings:te,Time:H,Timer:bt,Token:Rt,ValueType:Jn,WaitElement:Gh,WebSocketClient:Xh,useConfirmLeavePage:qs,validate:jh},Symbol.toStringTag,{value:"Module"}));class Yh{constructor(){d(this,"limit",25);d(this,"count",0);d(this,"curPage",1);d(this,"storeModule","")}setCurPage(e){this.curPage=e}pagesCount(){return Math.ceil(this.count/this.limit)??1}reset(){this.count=0,this.curPage=1}}const Qh=new Yh;class Kh{constructor(){d(this,"title","");d(this,"buttons",[])}Set(e="",n){typeof e=="function"?this.title=e():typeof e=="string"?this.title=e:this.title=e.value,this.buttons=n}}const ef=new Kh;class tf{constructor(){d(this,"menu",[]);d(this,"path","");d(this,"isOpen",!0);d(this,"filterString","")}Set(e){this.menu=e}Get(){return this.filterString?this.filterMenu():this.menu}filterMenu(){return this.menu.filter(e=>{var n;return te.SearchIn(e.name,this.filterString)||((n=e.children)==null?void 0:n.some(o=>te.SearchIn(o.name,this.filterString)))})}IsOpen(){return this.isOpen}Toggle(){this.isOpen=!this.isOpen}SetPath(e){this.path=e}GetPath(){return this.path}SetFilter(e){this.filterString=e}GetChildren(e){var n;return this.filterString?(n=e.children)==null?void 0:n.filter(o=>te.SearchIn(o.name,this.filterString)):e.children}}const nf=new tf;class of{constructor(){d(this,"Menu",i.reactive(nf));d(this,"Head",i.reactive(ef))}}const rf=new of;class sf extends Wr{constructor(){super(...arguments);d(this,"confirmButtonText","Да");d(this,"cancelButtonText","Нет");d(this,"resolve");d(this,"reject")}GetConfirmButtonText(){return this.confirmButtonText}GetCancelButtonText(){return this.cancelButtonText}Show(n){return super.show(),typeof n!="string"&&(this.confirmButtonText=n.confirmButtonText,this.cancelButtonText=n.cancelButtonText),new Promise((o,r)=>{this.resolve=o,this.reject=r})}Save(){return this.Show({text:"У вас есть несохранённые изменения",confirmButtonText:"Сохранить",cancelButtonText:"Не сохранять"})}Submit(){this.resolve(!0),this.hide()}Cancel(){this.reject(),this.hide()}hide(){this.resolve=void 0,this.reject=void 0,super.hide()}}const af=new sf;class lf extends Ur{Show(){super.show()}Hide(){super.hide()}}const cf=new lf,df=Object.freeze(Object.defineProperty({__proto__:null,Admin:rf,Dialog:af,Loading:cf,Notify:Ct},Symbol.toStringTag,{value:"Module"}));let uf=class{async Login(e){const n=e??S.Auth.Form.GetValues(),o=await ae.Post({query:"auth/login",payload:n});if(!o)throw S.UI.Notify.Error("Ошибка авторизации"),"Ошибка авторизации";S.Auth.Status.SetState(o)}async LoginAs(e){if(!await ae.Post({query:"auth/login-as",payload:{email:e}})){S.UI.Notify.Error("Ошибка авторизации");return}}async Register(){}async RestorePassword(){}async passwordChange(){await ae.Put({query:"auth/password-change"})}async RefreshToken(){await ae.Post({query:"auth/refresh-token",payload:{refreshToken:Rt.getRefreshToken()}})}async CheckUuid(e){await ae.Get({query:`auth/check-uuid/${e.userId}/${e.uniqueId}`})}};const hf=new uf;let ff=class extends Z{constructor(){super(Yr,"contacts")}};const mf=new ff;let pf=class{constructor(){d(this,"cropper",new Gt)}Open(e){this.cropper=e}Cropper(){return this.cropper}Ratio(){return this.cropper.ratio}};const gf=new pf;let yf=class extends Z{constructor(){super(He,"emails")}};const wf=new yf;let bf=class extends Z{constructor(){super(ve,"file-infos")}};const Cf=new bf;class yi{constructor(e){d(this,"id");d(this,"ftsp");d(this,"name","");P.BuildClass(this,e)}static Create(e){const n=new yi;return n.id=P.CreateUUID(),n.ftsp=JSON.stringify(e),n}}let Sf=class extends Z{constructor(){super(yi,"ftsp-presets")}};const kf=new Sf;let Ef=class extends Z{constructor(){super(Xr,"humans")}};const vf=new Ef;let xf=class extends Z{constructor(){super(rt,"phones")}};const Bf=new xf;class Mf{constructor(e){d(this,"id");d(this,"nameRus","");P.BuildClass(this,e)}}var Rf=Object.defineProperty,If=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&Rf(e,n,r),r};class Us{constructor(e){d(this,"id");d(this,"nameRus","");d(this,"fields",[]);P.BuildClass(this,e)}}If([P.GetClassConstructor(Mf)],Us.prototype,"fields");let $f=class extends Z{constructor(){super(Us,"schemas")}};const Af=new $f;class Ws{constructor(e){d(this,"id","");d(this,"value","");d(this,"label","");d(this,"key","");d(this,"description","");d(this,"route","");d(this,"searchElementMetas",[]);P.BuildClass(this,e)}}class Nf{constructor(e){d(this,"id");d(this,"name","");d(this,"label","");P.BuildClass(this,e)}}var Pf=Object.defineProperty,js=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&Pf(e,n,r),r};class dt{constructor(e){d(this,"id");d(this,"key","");d(this,"label","");d(this,"order",0);d(this,"route","");d(this,"table","");d(this,"active",!0);d(this,"searchColumn","");d(this,"descriptionColumn","");d(this,"labelColumn","");d(this,"valueColumn","");d(this,"options",[]);d(this,"searchGroupMetaColumns",[]);P.BuildClass(this,e)}}js([P.GetClassConstructor(Ws)],dt.prototype,"options"),js([P.GetClassConstructor(Nf)],dt.prototype,"searchGroupMetaColumns");class wi{constructor(e){d(this,"query","");d(this,"key","");d(this,"params","");d(this,"suggester",!1);d(this,"mustBeTranslated",!0);d(this,"options",[]);d(this,"searchGroupId","");d(this,"searchGroups",[]);d(this,"searchGroup",new dt);d(this,"searchObjects",[]);d(this,"pagination",new Kt);d(this,"count",0);e&&(this.query=e.query,e.searchGroups&&(this.searchGroups=e.searchGroups.map(n=>new dt(n))),e.searchGroup&&(this.searchGroup=new dt(e.searchGroup)),e.options&&(this.options=e.options.map(n=>new Ws(n))),this.count=e.count)}toUrl(){return JSON.stringify(this)}async setSearchGroup(e){const n=this.searchGroups.find(o=>o.id===e);n?this.searchGroup=n:this.searchGroup=new dt}async reproduceFromRoute(){this.setQuery(),await this.setSearchGroup(ct.Route().query.groupId)}setQuery(){const e=ct.Route().query.query;e&&(this.query=e)}}let Tf=class{constructor(){d(this,"isSearchDrawerOpen",i.ref(!1));d(this,"searchModel",i.reactive(new wi));d(this,"searchGroups",i.reactive([]));d(this,"count",0)}async Search(e){const n=await ae.Get({query:`?key=${e.key}&query=${e.query}`});n&&n.searchGroup&&n.searchGroup.options.forEach(o=>{e.searchObjects.push({id:o.id,value:o.value,label:o.label,description:o.description})})}async mainSearch(e){this.SetSearchModel(await ae.Get({query:`/main?searchModel=${e.toUrl()}`}))}async Full(e){e.options=[],e.searchGroups.forEach(o=>{o.options=[]});const n=await ae.Get({query:`main?searchModel=${e.toUrl()}`});this.SetSearchModel(n)}ToggleDrawer(e){this.isSearchDrawerOpen.value=e,this.searchModel=new wi}SetSearchModel(e){e&&(this.searchModel=new wi(e))}SetSearchGroups(){}IsSearchDrawerOpen(){return this.isSearchDrawerOpen}SearchModel(){return this.searchModel}SearchGroups(){return this.searchGroups}Count(){return this.count}};const zf=new Tf;class bi{constructor(e){d(this,"id");d(this,"login","");d(this,"email","");d(this,"password","");P.BuildClass(this,e)}static Create(){const e=new bi;return e.id=P.CreateUUID(),e}}let Vf=class extends Z{constructor(){super(bi,"users-accounts")}};const Ff=new Vf;let Of=class extends Z{constructor(){super(Jn,"value-types")}};const Df=new Of,Lf=Object.freeze(Object.defineProperty({__proto__:null,Auth:hf,Contacts:mf,Cropper:gf,Emails:wf,FTSPPresets:kf,FileInfos:Cf,Humans:vf,Phones:Bf,Schemas:Af,Search:zf,UserAccounts:Ff,ValueTypes:Df},Symbol.toStringTag,{value:"Module"}));class S{}d(S,"Auth",i.reactive(Zr)),d(S,"UI",i.reactive(df)),d(S,"Paginator",i.reactive(Qh)),d(S,"S",Lf),d(S,"H",Jh),d(S,"C",Xd);class Gs{constructor(){d(this,"id");d(this,"num","");d(this,"fileInfoId");d(this,"fileInfo",new ve)}}class $t{constructor(e){d(this,"id");d(this,"passportId");d(this,"fileInfoId");d(this,"fileInfo",new ve);d(this,"order",0);S.H.Classes.BuildClass(this,e)}static Create(e){const n=new $t;return n.id=S.H.Classes.CreateUUID(),n.passportId=e,n}}var Hf=Object.defineProperty,_f=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&Hf(e,n,r),r};class Ci{constructor(e){d(this,"id");d(this,"num","");d(this,"seria","");d(this,"division","");d(this,"divisionCode","");d(this,"citzenship","");d(this,"date",new Date);d(this,"address","");d(this,"passportScans",[]);S.H.Classes.BuildClass(this,e)}}_f([S.H.Classes.GetClassConstructor($t)],Ci.prototype,"passportScans");class Zs{constructor(){d(this,"id");d(this,"num","");d(this,"fileInfoId");d(this,"fileInfo",new ve)}}const qf=Object.freeze(Object.defineProperty({__proto__:null,Inn:Gs,Passport:Ci,PassportScan:$t,Snils:Zs},Symbol.toStringTag,{value:"Module"}));let Uf=class extends Z{constructor(){super(Gs,"inns")}};const Wf=new Uf;let jf=class extends Z{constructor(){super($t,"passport-scans")}};const Gf=new jf;let Zf=class extends Z{constructor(){super(Ci,"passports")}};const Xf=new Zf;let Jf=class extends Z{constructor(){super(Zs,"snilss")}};const Yf=new Jf,Qf=Object.freeze(Object.defineProperty({__proto__:null,C:qf,S:Object.freeze(Object.defineProperty({__proto__:null,Inns:Wf,PassportScans:Gf,Passports:Xf,Snilss:Yf},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class Je{constructor(e){d(this,"id");d(this,"name","");d(this,"score",0);d(this,"order",0);d(this,"showMoreQuestions",!1);d(this,"showOther",!1);d(this,"fieldId");d(this,"isMatrixY",!1);S.H.Classes.BuildClass(this,e)}static Create(e){const n=new Je;return n.id=S.H.Classes.CreateUUID(),n.fieldId=e,n}}class Xs{constructor(e){d(this,"id");d(this,"name","");d(this,"order",0);d(this,"fieldId");S.H.Classes.BuildClass(this,e)}}class Si{constructor(e){d(this,"id");d(this,"name","");d(this,"order",0);S.H.Classes.BuildClass(this,e)}}class ut{constructor(e){d(this,"id");d(this,"name","");d(this,"fieldId");S.H.Classes.BuildClass(this,e)}static Create(e){const n=new ut;return n.id=S.H.Classes.CreateUUID(),n.fieldId=e,n}}var Kf=Object.defineProperty,At=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&Kf(e,n,r),r};const Ye=class Sn{constructor(e){d(this,"id");d(this,"name","");d(this,"code","");d(this,"valueTypeId");d(this,"order",0);d(this,"ageCompare",!1);d(this,"answerVariants",[]);d(this,"answerVariantsForDelete",[]);d(this,"fieldExamples",[]);d(this,"fieldVariants",[]);d(this,"valueType",new Jn);d(this,"fieldMeasures",[]);d(this,"showSet",!1);d(this,"showRadio",!1);d(this,"isEdit",!1);d(this,"children",[]);d(this,"parentId");d(this,"formSectionId");d(this,"selected",!1);S.H.Classes.BuildClass(this,e),this.changeRelation([this.valueType])}getMatrixX(){return this.answerVariants.filter(e=>!e.isMatrixY)}getMatrixY(){return this.answerVariants.filter(e=>e.isMatrixY)}static Create(e){const n=new Sn;return n.id=S.H.Classes.CreateUUID(),n.formSectionId=e,n}getRegisterPropertyRadioOriginalValue(e){const n=this.answerVariants.find(o=>o.id===e);return n?n.name:""}addRadioItem(e){const n=new Je(e);n.order=this.answerVariants.length,this.answerVariants.push(n)}removeRadioItem(e){const n=this.answerVariants[e].id;n&&this.answerVariantsForDelete.push(n),this.answerVariants.splice(e,1)}changeRelation(e){const n=e.find(o=>o.id===this.valueTypeId);if(n){if(n.isRadio()){this.showRadio=!0,this.showSet=!1;return}if(n.isSet()){this.showSet=!0,this.showRadio=!1;return}this.showSet=!1,this.showRadio=!1,this.valueType=n}}editRegisterProperty(e){this.isEdit=e??!this.isEdit}sortExamples(){this.fieldExamples.forEach((e,n)=>e.order=n)}addRegisterPropertyMeasure(e){this.fieldMeasures.push(new Si(e))}addRegisterPropertyVariant(){this.fieldVariants.push(new ut)}getIdWithoutDashes(){return this.id?this.id.replaceAll(/[^a-zA-Z]+/g,""):""}static GetClassName(){return"Field"}setType(e){this.valueType=e,this.valueTypeId=e.id}setName(e){this.name=e}addAnswerVariant(){const e=Je.Create(this.id);return e.name="Вариант",e.order=this.answerVariants.length,this.answerVariants.push(e),e}addChild(){const e=Sn.Create();return e.parentId=this.id,e.name="Вопрос",e.order=this.children.length,this.children.push(e),e}addFieldVariant(){const e=ut.Create(this.id);return this.fieldVariants.push(e),e}copy(){const e=new Sn(this);return e.id=S.H.Classes.CreateUUID(),e.answerVariants.forEach(n=>{n.id=S.H.Classes.CreateUUID(),n.fieldId=e.id}),e.children=e.children.map(n=>{const o=n.copy();return o.parentId=e.id,o}),e}};At([S.H.Classes.GetClassConstructor(Je)],Ye.prototype,"answerVariants"),At([S.H.Classes.GetClassConstructor(Xs)],Ye.prototype,"fieldExamples"),At([S.H.Classes.GetClassConstructor(ut)],Ye.prototype,"fieldVariants"),At([S.H.Classes.GetClassConstructor(Si)],Ye.prototype,"fieldMeasures"),At([S.H.Classes.GetClassConstructor(Ye)],Ye.prototype,"children");let pn=Ye;class ki{constructor(e){d(this,"id");d(this,"answerId");d(this,"comment","");d(this,"fileInfoId");d(this,"fileInfo",new ve);S.H.Classes.BuildClass(this,e)}}class Qe{constructor(e){d(this,"id");d(this,"answerVariantId");d(this,"answerVariantIdY");d(this,"fieldFillId");S.H.Classes.BuildClass(this,e)}static Create(e,n){const o=new Qe;return o.id=ze(),o.fieldFillId=e,o.answerVariantId=n,o}static GetClassName(){return"selectedAnswerVariant"}}var em=Object.defineProperty,Js=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&em(e,n,r),r};const Ei=class Ri{constructor(e){d(this,"id");d(this,"valueString");d(this,"valueOther");d(this,"valueNumber");d(this,"valueDate");d(this,"fileInfo",new ve);d(this,"fileInfoId");d(this,"order",0);d(this,"selectedAnswerVariants",[]);d(this,"patientId");d(this,"fieldId");d(this,"formFillId");d(this,"answerVariantId");d(this,"filled",!1);d(this,"researchResultId");d(this,"answerFiles",[]);d(this,"answerFilesForDelete",[]);S.H.Classes.BuildClass(this,e)}setFilled(e){this.filled=e}static Create(e,n){const o=new Ri;return o.id=ze(),o.fieldId=e.id,o.formFillId=n,o.order=e.order,o.valueNumber=0,o.valueString="",o.valueDate=new Date,o}setString(e){this.valueString=e,this.valueString&&(this.filled=this.valueString.length>0)}setNumber(e){this.valueNumber=e,this.valueNumber&&(this.filled=!0)}setOther(e){this.valueOther=e,this.valueOther&&(this.filled=this.valueOther.length>0)}setDate(e){this.valueDate=e,this.filled=!0}setRadio(e){this.answerVariantId=e,this.filled=!!this.answerVariantId}static CreateMany(e,n){return e.map(o=>Ri.Create(o,n))}addFile(){const e=new ki;return e.id=ze(),e.answerId=this.id,this.answerFiles.push(e),e}getFileInfos(){const e=[];return this.answerFiles.forEach(n=>e.push(n.fileInfo)),e}getSelectedAnswerVariant(){return!0}setMatrixRadioValue(e,n){const o=Qe.Create(this.id,e);return o.answerVariantIdY=n,this.selectedAnswerVariants.push(o),this.filled=!0,o}getMatrixValue(e,n){return this.selectedAnswerVariants.find(o=>o.answerVariantId===e&&o.answerVariantIdY===n)}addSelectedAnswerVariant(e){const n=Qe.Create(this.id,e);return this.selectedAnswerVariants.push(n),this.filled=!0,n}static GetClassName(){return"answer"}showOther(e){const n=e.find(o=>o.showOther);return n?this.answerVariantId===n.id||this.selectedAnswerVariants.some(o=>o.answerVariantId===n.id):!1}};Js([S.H.Classes.GetClassConstructor(Qe)],Ei.prototype,"selectedAnswerVariants"),Js([S.H.Classes.GetClassConstructor(ki)],Ei.prototype,"answerFiles");let ht=Ei;class tm{constructor(e){d(this,"id");d(this,"fieldId");S.H.Classes.BuildClass(this,e)}static GetClassName(){return"fieldFilter"}}var nm=Object.defineProperty,im=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&nm(e,n,r),r};const Ys=class ba{constructor(e){d(this,"id");d(this,"name","");d(this,"order",0);d(this,"fields",[]);d(this,"formId");S.H.Classes.BuildClass(this,e)}static GetClassName(){return"formSection"}getN(){return`${this.order+1}`}getFieldN(e){return`${this.getN()}.${e+1}`}getSubFieldN(e,n){return`${this.getFieldN(e)}.${n+1}`}static Create(e){const n=new ba;return n.id=S.H.Classes.CreateUUID(),n.formId=e,n}addField(){const e=pn.Create(this.id);return this.fields.push(e),this.sortFields(),e}sortFields(){this.fields.forEach((e,n)=>e.order=n)}getAnswerVariants(){const e=[];return this.fields.forEach(n=>e.push(...n.answerVariants)),e}};im([S.H.Classes.GetClassConstructor(pn)],Ys.prototype,"fields");let gn=Ys;var om=Object.defineProperty,rm=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&om(e,n,r),r};const Qs=class Ca{constructor(e){d(this,"id");d(this,"name","");d(this,"order",0);d(this,"isLaboratory",!1);d(this,"formSections",[]);d(this,"isEdit",!1);d(this,"withDates",!1);d(this,"withScores",!1);d(this,"selectedForExport",!1);d(this,"filterString","");d(this,"showOnlyNotFilled",!1);d(this,"showOnlyFilled",!1);S.H.Classes.BuildClass(this,e)}static GetClassName(){return"Form"}static Create(){const e=new Ca;return e.id=S.H.Classes.CreateUUID(),e}editRegisterGroup(e){this.isEdit=e??!this.isEdit}addFormSection(){const e=gn.Create(this.id);return this.formSections.push(e),S.H.Sorter.Sort(this.formSections),e}getFields(){const e=this.formSections.map(o=>o.fields).flat(),n=e.map(o=>o.children).flat();return e.concat(n).filter(o=>o.children.length===0)}};rm([S.H.Classes.GetClassConstructor(gn)],Qs.prototype,"formSections");let Ks=Qs;var sm=Object.defineProperty,am=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&sm(e,n,r),r};const ea=class Sa{constructor(e){d(this,"id");d(this,"date",new Date);d(this,"editMode",!1);d(this,"userFormId");d(this,"fillingPercentage",0);d(this,"fieldFills",[]);d(this,"num","");d(this,"formId");S.H.Classes.BuildClass(this,e)}static Create(e){const n=new Sa;return n.id=S.H.Classes.CreateUUID(),n.formId=e.id,n.fieldFills.push(...ht.CreateMany(e.getFields(),n.id)),n}addFieldFill(e){this.fieldFills.push(e)}getFieldFill(e){var n;return(n=this.fieldFills)==null?void 0:n.find(o=>o.fieldId===e)}pushRegisterProperty(e){const n=new ht;n.researchResultId=e,this.fieldFills.push(n)}getRegisterPropertyToPatient(e){return this.fieldFills.filter(n=>n.researchResultId===e)}getOrCreateFieldFill(e){let n=this.getFieldFill(e.id);return n||(n=ht.Create(e),this.addFieldFill(n)),n}getFileInfos(){const e=[];return this.fieldFills.forEach(n=>e.push(...n.getFileInfos())),e}calculateFilling(){const e=this.fieldFills.filter(o=>o.filled).length,n=this.fieldFills.length;this.fillingPercentage=Math.round(e/n*100)}getFieldFillByFieldId(e){return this.fieldFills.find(n=>n.fieldId===e)}getFieldVariantFieldFill(e){return this.fieldFills.find(n=>n.answerVariantId===e)}getFieldsFieldFillsMap(e){const n={};return e.forEach(o=>{var r;if(o.code){const s=(r=this.getFieldFillByFieldId(o.id))==null?void 0:r.valueNumber;n[o.code]=s}}),n}getIdWithoutDashes(){return this.id?this.id.replaceAll(/[^a-zA-Z]+/g,""):""}};am([S.H.Classes.GetClassConstructor(ht)],ea.prototype,"fieldFills");let ta=ea;const lm=Object.freeze(Object.defineProperty({__proto__:null,AnswerVariant:Je,Field:pn,FieldExample:Xs,FieldFill:ht,FieldFillFile:ki,FieldFilter:tm,FieldMeasure:Si,FieldVariant:ut,Form:Ks,FormFill:ta,FormSection:gn,SelectedAnswerVariant:Qe},Symbol.toStringTag,{value:"Module"}));let cm=class extends Z{constructor(){super(Je,"answer-variants")}};const dm=new cm;let um=class extends Z{constructor(){super(ht,"field-fills")}};const hm=new um;let fm=class extends Z{constructor(){super(pn,"fields")}};const mm=new fm;let pm=class extends Z{constructor(){super(ta,"form-fills")}};const gm=new pm;let ym=class extends Z{constructor(){super(gn,"form-sections")}};const wm=new ym;let bm=class extends Z{constructor(){super(Ks,"forms")}};const Cm=new bm;let Sm=class extends Z{constructor(){super(Qe,"selected-answer-variants")}};const km=new Sm,Em=Object.freeze(Object.defineProperty({__proto__:null,C:lm,S:Object.freeze(Object.defineProperty({__proto__:null,AnswerVariants:dm,FieldFills:hm,Fields:mm,FormFills:gm,FormSections:wm,Forms:Cm,SelectedAnswerVariants:km},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class yn{constructor(e){d(this,"id");d(this,"name","");d(this,"label","");S.H.Classes.BuildClass(this,e)}static Create(e,n){const o=new yn;return o.id=S.H.Classes.CreateUUID(),o.name=e,o.label=n,o}}const vm=Object.freeze(Object.defineProperty({__proto__:null,ColorTheme:yn},Symbol.toStringTag,{value:"Module"}));class xm extends Z{constructor(){super(yn,"color-themes")}}const Bm=new xm,Mm=Object.freeze(Object.defineProperty({__proto__:null,Docs:Qf,Forms:Em,Settings:Object.freeze(Object.defineProperty({__proto__:null,C:vm,S:Object.freeze(Object.defineProperty({__proto__:null,ColorThemes:Bm},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"})),Rm={install:function(t){t.component("PButton",Ni),t.component("PCheckBox",Pi),t.component("PDatePicker",Ti),t.component("PFlex",zi),t.component("PInput",Hi),t.component("PInputDate",_i),t.component("PInputNumber",qi),t.component("PLeftSlider",Ui),t.component("PList",Wi),t.component("PListItem",ji),t.component("PRadio",Gi),t.component("PRightSlider",Zi),t.component("PSelect",Xi),t.component("PSticky",Ji),t.component("PString",Yi),t.component("PTextarea",Qi),t.component("PTopSlider",Ki),t.component("IconDownload",yo),t.component("IconFilter",wo),t.component("ArrowLeft",Mo),t.component("ArrowRight",Ro),t.component("DoubleArrowLeft",Io),t.component("DoubleArrowRight",$o),t.component("EllipsisSvg",Ao),t.component("IconArrowLeft",bo),t.component("IconCheckDefault",Co),t.component("IconClose",zt),t.component("IconEdit",So),t.component("IconEmail",ko),t.component("IconMove",Eo),t.component("IconPhone",vo),t.component("IconSearch",xo),t.component("IconSelectArrow",Bo),t.component("CollapseContainer",cr),t.component("CollapseItem",dr),t.component("VerticalCollapseContainer",ur),t.component("PAdd",hr),t.component("PContainer",fr),t.component("PContainerStickyHead",mr),t.component("PDel",pr),t.component("PTabs",wr),t.component("UploaderFile",br),t.component("AuthForm",gr),t.component("PModal",yr),t.component("AuthPage",qn),t.component("PageNotFound",Un),t.component("AdaptiveContainer",Ii),t.component("AdaptiveContainerHorizontal",$i),t.component("AdminGallery",Ai),t.component("AuthModal",eo),t.component("CarouselImages",no),t.component("ContextWindow",io),t.component("DateInputRangeV2",ro),t.component("DateInputRange",oo),t.component("DropList",so),t.component("FilterCheckbox",ho),t.component("FiltersButtonsSelect",fo),t.component("FilterSelect",mo),t.component("FTSPPanel",po),t.component("GeneralItem",go),t.component("GridContainer",vn),t.component("ImageCropper",rr),t.component("InfoItem",jt),t.component("InfoItemSelectButtons",sr),t.component("LeftRightContainer",ar),t.component("MessageBody",lr),t.component("PAutocomplete",Cr),t.component("PDialog",Sr),t.component("PhoneForm",kr),t.component("PLoader",Er),t.component("PNotification",vr),t.component("PPagination",xr),t.component("RemoteSearch",Br),t.component("ResearcheContainer",Mr),t.component("RightSliderContainer",Rr),t.component("RightTabsContainer",Ir),t.component("SelectValueType",$r),t.component("SingleNameToggleForm",Ar),t.component("SortList",Pr),t.component("SortSelect",Tr),t.component("Switch3Pos",zr),t.component("ThemeWrapper",Vr),t.component("ToggleInfoItem",Fr),t.component("TopSliderContainer",Or),t.component("UploaderImage",Dr)}},Im=["PF","PFM"];v.AdaptiveContainer=Ii,v.AdaptiveContainerHorizontal=$i,v.AdminGallery=Ai,v.ArrowLeft=Mo,v.ArrowRight=Ro,v.AuthForm=gr,v.AuthModal=eo,v.AuthPage=qn,v.CarouselImages=no,v.CollapseContainer=cr,v.CollapseItem=dr,v.ContextWindow=io,v.DateInputRange=oo,v.DateInputRange_v2=ro,v.DoubleArrowLeft=Io,v.DoubleArrowRight=$o,v.DropList=so,v.EllipsisSvg=Ao,v.FTSPPanel=po,v.FilterCheckbox=ho,v.FilterSelect=mo,v.FiltersButtonsSelect=fo,v.GeneralItem=go,v.GridContainer=vn,v.IconArrowLeft=bo,v.IconCheckDefault=Co,v.IconClose=zt,v.IconDownload=yo,v.IconEdit=So,v.IconEmail=ko,v.IconFilter=wo,v.IconMove=Eo,v.IconPhone=vo,v.IconSearch=xo,v.IconSelectArrow=Bo,v.ImageCropper=rr,v.InfoItem=jt,v.InfoItemSelectButtons=sr,v.LeftRightContainer=ar,v.MessageBody=lr,v.PAdd=hr,v.PAutocomplete=Cr,v.PButton=Ni,v.PCheckBox=Pi,v.PContainer=fr,v.PContainerStickyHead=mr,v.PDatePicker=Ti,v.PDel=pr,v.PDialog=Sr,v.PF=S,v.PFM=Mm,v.PFlex=zi,v.PInput=Hi,v.PInputDate=_i,v.PInputNumber=qi,v.PLeftSlider=Ui,v.PList=Wi,v.PListItem=ji,v.PLoader=Er,v.PModal=yr,v.PNotification=vr,v.PPagination=xr,v.PRadio=Gi,v.PRightSlider=Zi,v.PSelect=Xi,v.PSticky=Ji,v.PString=Yi,v.PTabs=wr,v.PTextarea=Qi,v.PTopSlider=Ki,v.PageNotFound=Un,v.PhoneForm=kr,v.RemoteSearch=Br,v.ResearcheContainer=Mr,v.RightSliderContainer=Rr,v.RightTabsContainer=Ir,v.SelectValueType=$r,v.SingleNameToggleForm=Ar,v.SortList=Pr,v.SortSelect=Tr,v.Switch3Pos=zr,v.ThemeWrapper=Vr,v.ToggleInfoItem=Fr,v.TopSliderContainer=Or,v.UploaderFile=br,v.UploaderImage=Dr,v.VerticalCollapseContainer=ur,v.pfName=Im,v.servicesComponents=Rm,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED