sprof 0.9.16 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sprof.js +707 -676
- package/dist/sprof.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +11 -11
package/dist/sprof.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var zd = Object.defineProperty;
|
|
2
2
|
var Dd = (t, e, n) => e in t ? zd(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var u = (t, e, n) => Dd(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
-
import { Notify as Lo, Dialog as qo, QBadge as Xa, QBtn as dn, QItemLabel as Qa, QTooltip as aa, QInput as Wi, QDialog as Fd, QCard as Jt, QCardSection as
|
|
5
|
-
import { reactive as St, ref as E, openBlock as h, createElementBlock as S, createElementVNode as v, onBeforeMount as zt, defineComponent as N, useAttrs as Kt, computed as B, createBlock as
|
|
6
|
-
import
|
|
4
|
+
import { Notify as Lo, Dialog as qo, QBadge as Xa, QBtn as dn, QItemLabel as Qa, QTooltip as aa, QInput as Wi, QDialog as Fd, QCard as Jt, QCardSection as $t, QIcon as ue, QCardActions as Nn, ClosePopup as ei, QSpace as Hn, QSlideTransition as Ld, QSeparator as Bo, QPopupProxy as Hi, QDate as sr, QTime as Za, QTabs as or, QTab as rr, QChip as qd, QScrollArea as Bd, QList as ar, QItem as lr, QItemSection as Ja, QTd as xn, QSelect as Hd, QTable as Vd, QTr as la, QTh as ua, QTabPanels as Ka, QTabPanel as el, QSplitter as Ud, QCheckbox as Nd, date as Ii, QForm as _d, QMenu as jd, QSpinner as Wd, QRadio as Gd, QToggle as Yd, Ripple as Xd, QUploader as Qd, QUploaderAddTrigger as Zd, QImg as Jd, Quasar as Kd } from "quasar";
|
|
5
|
+
import { reactive as St, ref as E, openBlock as h, createElementBlock as S, createElementVNode as v, onBeforeMount as zt, defineComponent as N, useAttrs as Kt, computed as B, createBlock as F, unref as d, mergeProps as xt, withCtx as C, renderSlot as D, createTextVNode as fe, toDisplayString as j, normalizeClass as he, createVNode as y, normalizeStyle as V, useModel as Dt, createSlots as Ls, mergeModels as Be, watch as ze, isRef as Le, withDirectives as tt, createCommentVNode as W, TransitionGroup as tl, Fragment as Q, renderList as ve, withModifiers as Fe, vShow as ur, onBeforeUnmount as qs, resolveComponent as ae, withKeys as $s, resolveDirective as dr, mergeDefaults as ec, nextTick as fi, normalizeProps as vs, guardReactiveProps as ys, resolveDynamicComponent as Wn, markRaw as tc, vModelText as nc, useCssVars as cr, onMounted as ti, createStaticVNode as nl, onUpdated as ic, useTemplateRef as sc, onUnmounted as oc, getCurrentScope as il, onScopeDispose as sl, getCurrentInstance as rc, provide as ac, inject as lc } from "vue";
|
|
6
|
+
import Ts from "vuedraggable";
|
|
7
7
|
import { onBeforeRouteLeave as uc } from "vue-router";
|
|
8
8
|
var bt = /* @__PURE__ */ ((t) => (t.Login = "login", t.Register = "register", t.Restore = "restore", t.Refresh = "refresh", t))(bt || {}), Oe = /* @__PURE__ */ ((t) => (t.Primary = "primary", t.Success = "success", t.Warning = "warning", t.Error = "error", t.Info = "info", t))(Oe || {});
|
|
9
9
|
class Vn {
|
|
@@ -29,7 +29,7 @@ class Vn {
|
|
|
29
29
|
return new Vn(e, n, Oe.Error, i);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
class
|
|
32
|
+
class Bs extends Vn {
|
|
33
33
|
constructor() {
|
|
34
34
|
super();
|
|
35
35
|
u(this, "id", "auth-button");
|
|
@@ -42,7 +42,7 @@ class Ls extends Vn {
|
|
|
42
42
|
return this.chunk;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
let da = class extends
|
|
45
|
+
let da = class extends Bs {
|
|
46
46
|
constructor() {
|
|
47
47
|
super(...arguments);
|
|
48
48
|
u(this, "id", "auth-button-login");
|
|
@@ -51,7 +51,7 @@ let da = class extends Ls {
|
|
|
51
51
|
u(this, "chunk", bt.Login);
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
|
-
class dc extends
|
|
54
|
+
class dc extends Bs {
|
|
55
55
|
constructor() {
|
|
56
56
|
super(...arguments);
|
|
57
57
|
u(this, "id", "auth-button-refresh");
|
|
@@ -60,7 +60,7 @@ class dc extends Ls {
|
|
|
60
60
|
u(this, "chunk", bt.Refresh);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
class ca extends
|
|
63
|
+
class ca extends Bs {
|
|
64
64
|
constructor() {
|
|
65
65
|
super(...arguments);
|
|
66
66
|
u(this, "id", "auth-button-register");
|
|
@@ -69,7 +69,7 @@ class ca extends Ls {
|
|
|
69
69
|
u(this, "chunk", bt.Register);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
class yo extends
|
|
72
|
+
class yo extends Bs {
|
|
73
73
|
constructor() {
|
|
74
74
|
super(...arguments);
|
|
75
75
|
u(this, "id", "auth-button-restore");
|
|
@@ -93,8 +93,8 @@ class ol {
|
|
|
93
93
|
this.value = "";
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
var
|
|
97
|
-
class
|
|
96
|
+
var zn = /* @__PURE__ */ ((t) => (t.Email = "field-auth-email", t.Password = "field-auth-password", t.PasswordRepeat = "field-auth-password-repeat", t))(zn || {});
|
|
97
|
+
class Hs extends ol {
|
|
98
98
|
constructor() {
|
|
99
99
|
super(...arguments);
|
|
100
100
|
u(this, "method");
|
|
@@ -102,7 +102,7 @@ class qs extends ol {
|
|
|
102
102
|
u(this, "name", "");
|
|
103
103
|
}
|
|
104
104
|
get IsPassword() {
|
|
105
|
-
return this.id ===
|
|
105
|
+
return this.id === zn.Password || this.id === zn.PasswordRepeat;
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
var Gi = /* @__PURE__ */ ((t) => (t.Login = "login", t.Email = "email", t.Phone = "phone", t.VK = "vk", t.ESIA = "esia", t))(Gi || {});
|
|
@@ -115,10 +115,10 @@ class rl {
|
|
|
115
115
|
return (e === "" || !e) && this.errors.push("Введите email"), cc.test(e) || this.errors.push("Некорректный email"), this.errors;
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
class fc extends
|
|
118
|
+
class fc extends Hs {
|
|
119
119
|
constructor() {
|
|
120
120
|
super(...arguments);
|
|
121
|
-
u(this, "id",
|
|
121
|
+
u(this, "id", zn.Email);
|
|
122
122
|
u(this, "label", "Email");
|
|
123
123
|
u(this, "name", "email");
|
|
124
124
|
u(this, "placeholder", "Введите email");
|
|
@@ -136,22 +136,22 @@ class hc {
|
|
|
136
136
|
return e === "" || !e ? (this.errors.push("Введите пароль"), this.errors) : (e.length < this.length && this.errors.push("Пароль должен быть длиннее 3 символов"), this.errors);
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
class mc extends
|
|
139
|
+
class mc extends Hs {
|
|
140
140
|
constructor() {
|
|
141
141
|
super(...arguments);
|
|
142
142
|
u(this, "label", "Пароль");
|
|
143
143
|
u(this, "validator", new hc());
|
|
144
144
|
u(this, "name", "password");
|
|
145
145
|
u(this, "placeholder", "Введите пароль");
|
|
146
|
-
u(this, "id",
|
|
146
|
+
u(this, "id", zn.Password);
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
const wo = new mc();
|
|
150
|
-
class pc extends
|
|
150
|
+
class pc extends Hs {
|
|
151
151
|
constructor() {
|
|
152
152
|
super(...arguments);
|
|
153
153
|
u(this, "label", "Повторите пароль");
|
|
154
|
-
u(this, "id",
|
|
154
|
+
u(this, "id", zn.PasswordRepeat);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
const gc = new pc(), vc = {
|
|
@@ -214,7 +214,7 @@ class yc {
|
|
|
214
214
|
}
|
|
215
215
|
Validate() {
|
|
216
216
|
if (this.IsRegister) {
|
|
217
|
-
const e = this.GetField(
|
|
217
|
+
const e = this.GetField(zn.Password), n = this.GetField(zn.PasswordRepeat);
|
|
218
218
|
if ((e == null ? void 0 : e.value) !== (n == null ? void 0 : n.value))
|
|
219
219
|
return ["Пароли не совпадают"];
|
|
220
220
|
}
|
|
@@ -369,7 +369,7 @@ class Ho {
|
|
|
369
369
|
}
|
|
370
370
|
const al = 1e3, ll = 60 * al, So = 60 * ll;
|
|
371
371
|
var Vi = /* @__PURE__ */ ((t) => (t.FiveMinutes = "5", t.HourQuarter = "15", t.HourHalf = "30", t.Hour = "60", t))(Vi || {});
|
|
372
|
-
const
|
|
372
|
+
const Ps = {
|
|
373
373
|
5: ["00", "05", "10", "15", "20", "25", "30", "35", "40", "45", "50", "55"],
|
|
374
374
|
15: ["00", "15", "30", "45"],
|
|
375
375
|
30: ["00", "30"],
|
|
@@ -475,7 +475,7 @@ class Sc extends hi {
|
|
|
475
475
|
this.showMessage("Изменения успешно сохранены", Oe.Success);
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
|
-
const
|
|
478
|
+
const On = new Sc();
|
|
479
479
|
class an {
|
|
480
480
|
static Get(e) {
|
|
481
481
|
const n = localStorage.getItem(e);
|
|
@@ -574,7 +574,7 @@ class kc {
|
|
|
574
574
|
}
|
|
575
575
|
Logout() {
|
|
576
576
|
if (this.preventLogout) {
|
|
577
|
-
|
|
577
|
+
On.Warning("В текущий момент Вы не можете выйти из системы");
|
|
578
578
|
return;
|
|
579
579
|
}
|
|
580
580
|
this.user.reset(), this.tokens.reset(), this.isAuth = !1;
|
|
@@ -669,14 +669,14 @@ var ha;
|
|
|
669
669
|
} : function(R, z) {
|
|
670
670
|
return R[z];
|
|
671
671
|
}
|
|
672
|
-
}, m = Object.getPrototypeOf(Function), p = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map :
|
|
673
|
-
function
|
|
672
|
+
}, m = Object.getPrototypeOf(Function), p = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : lo(), x = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : uo(), T = typeof WeakMap == "function" ? WeakMap : ss(), A = s ? Symbol.for("@reflect-metadata:registry") : void 0, O = Pi(), M = ni(O);
|
|
673
|
+
function q(R, z, U, J) {
|
|
674
674
|
if (te(U)) {
|
|
675
675
|
if (!Qt(R))
|
|
676
676
|
throw new TypeError();
|
|
677
|
-
if (
|
|
677
|
+
if (!$n(z))
|
|
678
678
|
throw new TypeError();
|
|
679
|
-
return
|
|
679
|
+
return kt(R, z);
|
|
680
680
|
} else {
|
|
681
681
|
if (!Qt(R))
|
|
682
682
|
throw new TypeError();
|
|
@@ -687,12 +687,12 @@ var ha;
|
|
|
687
687
|
return st(J) && (J = void 0), U = Xe(U), Ft(R, z, U, J);
|
|
688
688
|
}
|
|
689
689
|
}
|
|
690
|
-
e("decorate",
|
|
690
|
+
e("decorate", q);
|
|
691
691
|
function k(R, z) {
|
|
692
692
|
function U(J, de) {
|
|
693
693
|
if (!He(J))
|
|
694
694
|
throw new TypeError();
|
|
695
|
-
if (!te(de) &&
|
|
695
|
+
if (!te(de) && !Tn(de))
|
|
696
696
|
throw new TypeError();
|
|
697
697
|
Ht(R, z, J, de);
|
|
698
698
|
}
|
|
@@ -732,7 +732,7 @@ var ha;
|
|
|
732
732
|
function Ve(R, z) {
|
|
733
733
|
if (!He(R))
|
|
734
734
|
throw new TypeError();
|
|
735
|
-
return te(z) || (z = Xe(z)),
|
|
735
|
+
return te(z) || (z = Xe(z)), kn(R, z);
|
|
736
736
|
}
|
|
737
737
|
e("getMetadataKeys", Ve);
|
|
738
738
|
function De(R, z) {
|
|
@@ -756,11 +756,11 @@ var ha;
|
|
|
756
756
|
return te(J) ? !1 : J.OrdinaryDeleteMetadata(R, z, U);
|
|
757
757
|
}
|
|
758
758
|
e("deleteMetadata", Ze);
|
|
759
|
-
function
|
|
759
|
+
function kt(R, z) {
|
|
760
760
|
for (var U = R.length - 1; U >= 0; --U) {
|
|
761
761
|
var J = R[U], de = J(z);
|
|
762
762
|
if (!te(de) && !st(de)) {
|
|
763
|
-
if (
|
|
763
|
+
if (!$n(de))
|
|
764
764
|
throw new TypeError();
|
|
765
765
|
z = de;
|
|
766
766
|
}
|
|
@@ -821,11 +821,11 @@ var ha;
|
|
|
821
821
|
);
|
|
822
822
|
de.OrdinaryDefineOwnMetadata(R, z, U, J);
|
|
823
823
|
}
|
|
824
|
-
function
|
|
824
|
+
function kn(R, z) {
|
|
825
825
|
var U = qt(R, z), J = qn(R);
|
|
826
826
|
if (J === null)
|
|
827
827
|
return U;
|
|
828
|
-
var de =
|
|
828
|
+
var de = kn(J, z);
|
|
829
829
|
if (de.length <= 0)
|
|
830
830
|
return U;
|
|
831
831
|
if (U.length <= 0)
|
|
@@ -939,10 +939,10 @@ var ha;
|
|
|
939
939
|
function ot(R) {
|
|
940
940
|
return typeof R == "function";
|
|
941
941
|
}
|
|
942
|
-
function
|
|
942
|
+
function $n(R) {
|
|
943
943
|
return typeof R == "function";
|
|
944
944
|
}
|
|
945
|
-
function
|
|
945
|
+
function Tn(R) {
|
|
946
946
|
switch (Re(R)) {
|
|
947
947
|
case 3:
|
|
948
948
|
return !0;
|
|
@@ -995,7 +995,7 @@ var ha;
|
|
|
995
995
|
}
|
|
996
996
|
function nn() {
|
|
997
997
|
var R;
|
|
998
|
-
!te(A) && typeof n.Reflect < "u" && !(A in n.Reflect) && typeof n.Reflect.defineMetadata == "function" && (R =
|
|
998
|
+
!te(A) && typeof n.Reflect < "u" && !(A in n.Reflect) && typeof n.Reflect.defineMetadata == "function" && (R = ao(n.Reflect));
|
|
999
999
|
var z, U, J, de = new T(), Qe = {
|
|
1000
1000
|
registerProvider: je,
|
|
1001
1001
|
getProvider: K,
|
|
@@ -1148,11 +1148,11 @@ var ha;
|
|
|
1148
1148
|
var rs = Tt(os);
|
|
1149
1149
|
try {
|
|
1150
1150
|
se[at] = rs;
|
|
1151
|
-
} catch (
|
|
1151
|
+
} catch (co) {
|
|
1152
1152
|
try {
|
|
1153
1153
|
Pt(Ae);
|
|
1154
1154
|
} finally {
|
|
1155
|
-
throw
|
|
1155
|
+
throw co;
|
|
1156
1156
|
}
|
|
1157
1157
|
}
|
|
1158
1158
|
at++;
|
|
@@ -1174,7 +1174,7 @@ var ha;
|
|
|
1174
1174
|
return !0;
|
|
1175
1175
|
}
|
|
1176
1176
|
}
|
|
1177
|
-
function
|
|
1177
|
+
function ao(R) {
|
|
1178
1178
|
var z = R.defineMetadata, U = R.hasOwnMetadata, J = R.getOwnMetadata, de = R.getOwnMetadataKeys, Qe = R.deleteMetadata, je = new T(), be = {
|
|
1179
1179
|
isProviderFor: function(K, ne) {
|
|
1180
1180
|
var ie = je.get(K);
|
|
@@ -1198,7 +1198,7 @@ var ha;
|
|
|
1198
1198
|
throw new Error("Illegal state.");
|
|
1199
1199
|
}
|
|
1200
1200
|
}
|
|
1201
|
-
function
|
|
1201
|
+
function lo() {
|
|
1202
1202
|
var R = {}, z = [], U = (
|
|
1203
1203
|
/** @class */
|
|
1204
1204
|
function() {
|
|
@@ -1302,7 +1302,7 @@ var ha;
|
|
|
1302
1302
|
return [be, K];
|
|
1303
1303
|
}
|
|
1304
1304
|
}
|
|
1305
|
-
function
|
|
1305
|
+
function uo() {
|
|
1306
1306
|
var R = (
|
|
1307
1307
|
/** @class */
|
|
1308
1308
|
function() {
|
|
@@ -1431,7 +1431,7 @@ const Tc = new Uint8Array(16);
|
|
|
1431
1431
|
function Pc() {
|
|
1432
1432
|
return crypto.getRandomValues(Tc);
|
|
1433
1433
|
}
|
|
1434
|
-
function
|
|
1434
|
+
function Dn(t, e, n) {
|
|
1435
1435
|
return crypto.randomUUID ? crypto.randomUUID() : Mc(t);
|
|
1436
1436
|
}
|
|
1437
1437
|
function Mc(t, e, n) {
|
|
@@ -1444,7 +1444,7 @@ function Mc(t, e, n) {
|
|
|
1444
1444
|
}
|
|
1445
1445
|
class Rt {
|
|
1446
1446
|
static UUID() {
|
|
1447
|
-
return
|
|
1447
|
+
return Dn();
|
|
1448
1448
|
}
|
|
1449
1449
|
static GUID() {
|
|
1450
1450
|
const e = function() {
|
|
@@ -1818,7 +1818,7 @@ class Gn {
|
|
|
1818
1818
|
return e.id = Rt.UUID(), e;
|
|
1819
1819
|
}
|
|
1820
1820
|
}
|
|
1821
|
-
class
|
|
1821
|
+
class Ms {
|
|
1822
1822
|
constructor(e) {
|
|
1823
1823
|
u(this, "id");
|
|
1824
1824
|
u(this, "address");
|
|
@@ -1826,7 +1826,7 @@ class Ts {
|
|
|
1826
1826
|
ge.BuildClass(this, e);
|
|
1827
1827
|
}
|
|
1828
1828
|
}
|
|
1829
|
-
class
|
|
1829
|
+
class Vs {
|
|
1830
1830
|
constructor(e) {
|
|
1831
1831
|
u(this, "id");
|
|
1832
1832
|
u(this, "login", "");
|
|
@@ -1835,7 +1835,7 @@ class Bs {
|
|
|
1835
1835
|
ge.BuildClass(this, e);
|
|
1836
1836
|
}
|
|
1837
1837
|
static Create() {
|
|
1838
|
-
const e = new
|
|
1838
|
+
const e = new Vs();
|
|
1839
1839
|
return e.id = Rt.UUID(), e;
|
|
1840
1840
|
}
|
|
1841
1841
|
}
|
|
@@ -1849,7 +1849,7 @@ class mr {
|
|
|
1849
1849
|
}
|
|
1850
1850
|
var bn;
|
|
1851
1851
|
let Ic = (bn = class {
|
|
1852
|
-
}, u(bn, "Phone", Gn), u(bn, "FileInfo", cn), u(bn, "Website", mr), u(bn, "Email", Ui), u(bn, "Human", dl), u(bn, "PostAddress",
|
|
1852
|
+
}, u(bn, "Phone", Gn), u(bn, "FileInfo", cn), u(bn, "Website", mr), u(bn, "Email", Ui), u(bn, "Human", dl), u(bn, "PostAddress", Ms), u(bn, "UserAccount", Vs), bn);
|
|
1853
1853
|
class fn {
|
|
1854
1854
|
static Shuffle(e) {
|
|
1855
1855
|
for (let n = e.length - 1; n > 0; n--) {
|
|
@@ -1960,7 +1960,7 @@ const cl = class Oi {
|
|
|
1960
1960
|
}
|
|
1961
1961
|
static CreateFilterModelWithJoin(e, n, i, s, o, r, l, a) {
|
|
1962
1962
|
const c = new Oi();
|
|
1963
|
-
return c.id =
|
|
1963
|
+
return c.id = Dn(), c.joinTable = i, c.joinTablePk = s, c.joinTableFk = o, c.col = n, c.type = r, l && (c.joinTableId = l), a && (c.joinTableIdCol = a), c;
|
|
1964
1964
|
}
|
|
1965
1965
|
static CreateFilterModelWithJoinV2(e, n, i, s, o, r, l) {
|
|
1966
1966
|
const a = new Oi();
|
|
@@ -1968,7 +1968,7 @@ const cl = class Oi {
|
|
|
1968
1968
|
}
|
|
1969
1969
|
static OnlyIfSecondModelExists(e, n) {
|
|
1970
1970
|
const i = new Oi();
|
|
1971
|
-
return i.id =
|
|
1971
|
+
return i.id = Dn(), i.model = Ne.ToCamelCase(e.GetClassName()), i.joinTableModel = Ne.ToCamelCase(n.GetClassName()), i.type = nt.Join, i;
|
|
1972
1972
|
}
|
|
1973
1973
|
addToSet(...e) {
|
|
1974
1974
|
e.forEach((n) => {
|
|
@@ -2038,7 +2038,7 @@ class Oc {
|
|
|
2038
2038
|
* состояние из URL никогда не восстанавливалось.
|
|
2039
2039
|
*/
|
|
2040
2040
|
}
|
|
2041
|
-
class
|
|
2041
|
+
class Rs {
|
|
2042
2042
|
constructor(e) {
|
|
2043
2043
|
/**
|
|
2044
2044
|
* Смещение от начала списка (НЕ номер страницы!).
|
|
@@ -2091,7 +2091,7 @@ class Ps {
|
|
|
2091
2091
|
}
|
|
2092
2092
|
}
|
|
2093
2093
|
var jt = /* @__PURE__ */ ((t) => (t.Asc = "asc", t.Desc = "desc", t))(jt || {});
|
|
2094
|
-
class
|
|
2094
|
+
class Us {
|
|
2095
2095
|
constructor(e) {
|
|
2096
2096
|
u(this, "model", "");
|
|
2097
2097
|
u(this, "col", "");
|
|
@@ -2102,7 +2102,7 @@ class Hs {
|
|
|
2102
2102
|
ge.BuildClass(this, e);
|
|
2103
2103
|
}
|
|
2104
2104
|
static Create(e, n, i = jt.Asc, s, o) {
|
|
2105
|
-
const r = new
|
|
2105
|
+
const r = new Us();
|
|
2106
2106
|
return r.model = e.GetClassName(), r.col = n ?? "", r.order = i ?? jt.Asc, r.label = s ?? "", r.default = o ?? !1, r;
|
|
2107
2107
|
}
|
|
2108
2108
|
isAsc() {
|
|
@@ -2130,18 +2130,18 @@ class Hs {
|
|
|
2130
2130
|
this.order = jt.Desc;
|
|
2131
2131
|
}
|
|
2132
2132
|
}
|
|
2133
|
-
class
|
|
2133
|
+
class Ns {
|
|
2134
2134
|
constructor() {
|
|
2135
2135
|
u(this, "model", "");
|
|
2136
2136
|
u(this, "cols", []);
|
|
2137
2137
|
u(this, "models", []);
|
|
2138
2138
|
}
|
|
2139
2139
|
static Create(e, n) {
|
|
2140
|
-
const i = new
|
|
2140
|
+
const i = new Ns();
|
|
2141
2141
|
return i.model = e.GetClassName(), i.cols = n, i;
|
|
2142
2142
|
}
|
|
2143
2143
|
}
|
|
2144
|
-
var zc = Object.defineProperty,
|
|
2144
|
+
var zc = Object.defineProperty, _s = (t, e, n, i) => {
|
|
2145
2145
|
for (var s = void 0, o = t.length - 1, r; o >= 0; o--)
|
|
2146
2146
|
(r = t[o]) && (s = r(e, n, s) || s);
|
|
2147
2147
|
return s && zc(e, n, s), s;
|
|
@@ -2151,8 +2151,8 @@ const Yi = (Mt = class {
|
|
|
2151
2151
|
u(this, "id");
|
|
2152
2152
|
u(this, "f", []);
|
|
2153
2153
|
u(this, "s", []);
|
|
2154
|
-
u(this, "p", new
|
|
2155
|
-
u(this, "t", new
|
|
2154
|
+
u(this, "p", new Rs());
|
|
2155
|
+
u(this, "t", new Ns());
|
|
2156
2156
|
ge.BuildClass(this, e);
|
|
2157
2157
|
}
|
|
2158
2158
|
static Get() {
|
|
@@ -2205,40 +2205,40 @@ const Yi = (Mt = class {
|
|
|
2205
2205
|
ge.RemoveFromClassByIndex(n, this.f);
|
|
2206
2206
|
}
|
|
2207
2207
|
reset() {
|
|
2208
|
-
this.f = [], this.s = [], this.p = new
|
|
2208
|
+
this.f = [], this.s = [], this.p = new Rs();
|
|
2209
2209
|
}
|
|
2210
2210
|
resetF() {
|
|
2211
2211
|
this.f = [];
|
|
2212
2212
|
}
|
|
2213
2213
|
}, u(Mt, "instance"), Mt);
|
|
2214
|
-
|
|
2214
|
+
_s([
|
|
2215
2215
|
ge.GetClassConstructor(pr)
|
|
2216
2216
|
], Yi.prototype, "f");
|
|
2217
|
-
|
|
2218
|
-
ge.GetClassConstructor(
|
|
2217
|
+
_s([
|
|
2218
|
+
ge.GetClassConstructor(Us)
|
|
2219
2219
|
], Yi.prototype, "s");
|
|
2220
|
-
|
|
2221
|
-
ge.GetClassConstructor(
|
|
2220
|
+
_s([
|
|
2221
|
+
ge.GetClassConstructor(Rs)
|
|
2222
2222
|
], Yi.prototype, "p");
|
|
2223
|
-
|
|
2224
|
-
ge.GetClassConstructor(
|
|
2223
|
+
_s([
|
|
2224
|
+
ge.GetClassConstructor(Ns)
|
|
2225
2225
|
], Yi.prototype, "t");
|
|
2226
2226
|
let Yt = Yi;
|
|
2227
2227
|
var Ei;
|
|
2228
2228
|
let Dc = (Ei = class {
|
|
2229
|
-
}, u(Ei, "SortModel",
|
|
2229
|
+
}, u(Ei, "SortModel", Us), u(Ei, "FilterModel", pr), u(Ei, "FTSP", Yt), Ei);
|
|
2230
2230
|
function fl(t, e) {
|
|
2231
2231
|
return function() {
|
|
2232
2232
|
return t.apply(e, arguments);
|
|
2233
2233
|
};
|
|
2234
2234
|
}
|
|
2235
|
-
const { toString: Fc } = Object.prototype, { getPrototypeOf: mi } = Object, { iterator: Xi, toStringTag: hl } = Symbol,
|
|
2235
|
+
const { toString: Fc } = Object.prototype, { getPrototypeOf: mi } = Object, { iterator: Xi, toStringTag: hl } = Symbol, Is = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Ni = (t, e) => {
|
|
2236
2236
|
let n = t;
|
|
2237
2237
|
const i = [];
|
|
2238
2238
|
for (; n != null && n !== Object.prototype; ) {
|
|
2239
2239
|
if (i.indexOf(n) !== -1)
|
|
2240
2240
|
return !1;
|
|
2241
|
-
if (i.push(n),
|
|
2241
|
+
if (i.push(n), Is(n, e))
|
|
2242
2242
|
return !0;
|
|
2243
2243
|
n = mi(n);
|
|
2244
2244
|
}
|
|
@@ -2246,7 +2246,7 @@ const { toString: Fc } = Object.prototype, { getPrototypeOf: mi } = Object, { it
|
|
|
2246
2246
|
}, Lc = (t, e) => t != null && Ni(t, e) ? t[e] : void 0, gr = /* @__PURE__ */ ((t) => (e) => {
|
|
2247
2247
|
const n = Fc.call(e);
|
|
2248
2248
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
2249
|
-
})(/* @__PURE__ */ Object.create(null)), en = (t) => (t = t.toLowerCase(), (e) => gr(e) === t),
|
|
2249
|
+
})(/* @__PURE__ */ Object.create(null)), en = (t) => (t = t.toLowerCase(), (e) => gr(e) === t), js = (t) => (e) => typeof e === t, { isArray: Yn } = Array, pi = js("undefined");
|
|
2250
2250
|
function Si(t) {
|
|
2251
2251
|
return t !== null && !pi(t) && t.constructor !== null && !pi(t.constructor) && It(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
2252
2252
|
}
|
|
@@ -2255,7 +2255,7 @@ function qc(t) {
|
|
|
2255
2255
|
let e;
|
|
2256
2256
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && ml(t.buffer), e;
|
|
2257
2257
|
}
|
|
2258
|
-
const Bc =
|
|
2258
|
+
const Bc = js("string"), It = js("function"), pl = js("number"), Ci = (t) => t !== null && typeof t == "object", Hc = (t) => t === !0 || t === !1, bs = (t) => {
|
|
2259
2259
|
if (!Ci(t))
|
|
2260
2260
|
return !1;
|
|
2261
2261
|
const e = mi(t);
|
|
@@ -2321,8 +2321,8 @@ function Uo(...t) {
|
|
|
2321
2321
|
const { caseless: e, skipUndefined: n } = vl(this) && this || {}, i = {}, s = (o, r) => {
|
|
2322
2322
|
if (r === "__proto__" || r === "constructor" || r === "prototype")
|
|
2323
2323
|
return;
|
|
2324
|
-
const l = e && typeof r == "string" && gl(i, r) || r, a =
|
|
2325
|
-
|
|
2324
|
+
const l = e && typeof r == "string" && gl(i, r) || r, a = Is(i, l) ? i[l] : void 0;
|
|
2325
|
+
bs(a) && bs(o) ? i[l] = Uo(a, o) : bs(o) ? i[l] = Uo({}, o) : Yn(o) ? i[l] = o.slice() : (!n || !pi(o)) && (i[l] = o);
|
|
2326
2326
|
};
|
|
2327
2327
|
for (let o = 0, r = t.length; o < r; o++) {
|
|
2328
2328
|
const l = t[o];
|
|
@@ -2475,7 +2475,7 @@ const Cf = (t) => {
|
|
|
2475
2475
|
isNumber: pl,
|
|
2476
2476
|
isBoolean: Hc,
|
|
2477
2477
|
isObject: Ci,
|
|
2478
|
-
isPlainObject:
|
|
2478
|
+
isPlainObject: bs,
|
|
2479
2479
|
isEmptyObject: Vc,
|
|
2480
2480
|
isReadableStream: Jc,
|
|
2481
2481
|
isRequest: Kc,
|
|
@@ -2507,8 +2507,8 @@ const Cf = (t) => {
|
|
|
2507
2507
|
forEachEntry: cf,
|
|
2508
2508
|
matchAll: ff,
|
|
2509
2509
|
isHTMLForm: hf,
|
|
2510
|
-
hasOwnProperty:
|
|
2511
|
-
hasOwnProp:
|
|
2510
|
+
hasOwnProperty: Is,
|
|
2511
|
+
hasOwnProp: Is,
|
|
2512
2512
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
2513
2513
|
hasOwnInPrototypeChain: Ni,
|
|
2514
2514
|
getSafeProp: Lc,
|
|
@@ -2586,8 +2586,8 @@ const ga = Symbol("internals");
|
|
|
2586
2586
|
function Ai(t) {
|
|
2587
2587
|
return t && String(t).trim().toLowerCase();
|
|
2588
2588
|
}
|
|
2589
|
-
function
|
|
2590
|
-
return t === !1 || t == null ? t : P.isArray(t) ? t.map(
|
|
2589
|
+
function ws(t) {
|
|
2590
|
+
return t === !1 || t == null ? t : P.isArray(t) ? t.map(ws) : Ef(String(t));
|
|
2591
2591
|
}
|
|
2592
2592
|
function zf(t) {
|
|
2593
2593
|
const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -2635,7 +2635,7 @@ let Ct = class {
|
|
|
2635
2635
|
if (!f)
|
|
2636
2636
|
return;
|
|
2637
2637
|
const m = P.findKey(s, f);
|
|
2638
|
-
(!m || s[m] === void 0 || c === !0 || c === void 0 && s[m] !== !1) && (s[m || a] =
|
|
2638
|
+
(!m || s[m] === void 0 || c === !0 || c === void 0 && s[m] !== !1) && (s[m || a] = ws(l));
|
|
2639
2639
|
}
|
|
2640
2640
|
const r = (l, a) => P.forEach(l, (c, f) => o(c, f, a));
|
|
2641
2641
|
if (P.isPlainObject(e) || e instanceof this.constructor)
|
|
@@ -2703,11 +2703,11 @@ let Ct = class {
|
|
|
2703
2703
|
return P.forEach(this, (s, o) => {
|
|
2704
2704
|
const r = P.findKey(i, o);
|
|
2705
2705
|
if (r) {
|
|
2706
|
-
n[r] =
|
|
2706
|
+
n[r] = ws(s), delete n[o];
|
|
2707
2707
|
return;
|
|
2708
2708
|
}
|
|
2709
2709
|
const l = e ? Ff(o) : String(o).trim();
|
|
2710
|
-
l !== o && delete n[o], n[l] =
|
|
2710
|
+
l !== o && delete n[o], n[l] = ws(s), i[l] = !0;
|
|
2711
2711
|
}), this;
|
|
2712
2712
|
}
|
|
2713
2713
|
concat(...e) {
|
|
@@ -2890,7 +2890,7 @@ function Uf(t) {
|
|
|
2890
2890
|
const Nf = P.toFlatObject(P, {}, null, function(e) {
|
|
2891
2891
|
return /^is[A-Z]/.test(e);
|
|
2892
2892
|
});
|
|
2893
|
-
function
|
|
2893
|
+
function Ws(t, e, n) {
|
|
2894
2894
|
if (!P.isObject(t))
|
|
2895
2895
|
throw new TypeError("target must be an object");
|
|
2896
2896
|
e = e || new FormData(), n = P.toFlatObject(
|
|
@@ -2901,8 +2901,8 @@ function _s(t, e, n) {
|
|
|
2901
2901
|
indexes: !1
|
|
2902
2902
|
},
|
|
2903
2903
|
!1,
|
|
2904
|
-
function(
|
|
2905
|
-
return !P.isUndefined(k[
|
|
2904
|
+
function(q, k) {
|
|
2905
|
+
return !P.isUndefined(k[q]);
|
|
2906
2906
|
}
|
|
2907
2907
|
);
|
|
2908
2908
|
const i = n.metaTokens, s = n.visitor || T, o = n.dots, r = n.indexes, l = n.Blob || typeof Blob < "u" && Blob, a = n.maxDepth === void 0 ? xl : n.maxDepth, c = l && P.isSpecCompliantForm(e), f = [];
|
|
@@ -2932,7 +2932,7 @@ function _s(t, e, n) {
|
|
|
2932
2932
|
ee.ERR_FORM_DATA_DEPTH_EXCEEDED
|
|
2933
2933
|
);
|
|
2934
2934
|
}
|
|
2935
|
-
function x(M,
|
|
2935
|
+
function x(M, q) {
|
|
2936
2936
|
if (a === 1 / 0)
|
|
2937
2937
|
return JSON.stringify(M);
|
|
2938
2938
|
const k = [];
|
|
@@ -2941,38 +2941,38 @@ function _s(t, e, n) {
|
|
|
2941
2941
|
return H;
|
|
2942
2942
|
for (; k.length && k[k.length - 1] !== this; )
|
|
2943
2943
|
k.pop();
|
|
2944
|
-
return k.push(H), p(
|
|
2944
|
+
return k.push(H), p(q + k.length - 1), H;
|
|
2945
2945
|
});
|
|
2946
2946
|
}
|
|
2947
|
-
function T(M,
|
|
2947
|
+
function T(M, q, k) {
|
|
2948
2948
|
let I = M;
|
|
2949
2949
|
if (P.isReactNative(e) && P.isReactNativeBlob(M))
|
|
2950
|
-
return e.append(xo(k,
|
|
2950
|
+
return e.append(xo(k, q, o), m(M)), !1;
|
|
2951
2951
|
if (M && !k && typeof M == "object") {
|
|
2952
|
-
if (P.endsWith(
|
|
2953
|
-
|
|
2954
|
-
else if (P.isArray(M) && Uf(M) || (P.isFileList(M) || P.endsWith(
|
|
2955
|
-
return
|
|
2952
|
+
if (P.endsWith(q, "{}"))
|
|
2953
|
+
q = i ? q : q.slice(0, -2), M = x(M, 1);
|
|
2954
|
+
else if (P.isArray(M) && Uf(M) || (P.isFileList(M) || P.endsWith(q, "[]")) && (I = P.toArray(M)))
|
|
2955
|
+
return q = kl(q), I.forEach(function(H, G) {
|
|
2956
2956
|
!(P.isUndefined(H) || H === null) && e.append(
|
|
2957
2957
|
// eslint-disable-next-line no-nested-ternary
|
|
2958
|
-
r === !0 ? xo([
|
|
2958
|
+
r === !0 ? xo([q], G, o) : r === null ? q : q + "[]",
|
|
2959
2959
|
m(H)
|
|
2960
2960
|
);
|
|
2961
2961
|
}), !1;
|
|
2962
2962
|
}
|
|
2963
|
-
return No(M) ? !0 : (e.append(xo(k,
|
|
2963
|
+
return No(M) ? !0 : (e.append(xo(k, q, o), m(M)), !1);
|
|
2964
2964
|
}
|
|
2965
2965
|
const A = Object.assign(Nf, {
|
|
2966
2966
|
defaultVisitor: T,
|
|
2967
2967
|
convertValue: m,
|
|
2968
2968
|
isVisitable: No
|
|
2969
2969
|
});
|
|
2970
|
-
function O(M,
|
|
2970
|
+
function O(M, q, k = 0) {
|
|
2971
2971
|
if (!P.isUndefined(M)) {
|
|
2972
2972
|
if (p(k), f.indexOf(M) !== -1)
|
|
2973
|
-
throw new Error("Circular reference detected in " +
|
|
2973
|
+
throw new Error("Circular reference detected in " + q.join("."));
|
|
2974
2974
|
f.push(M), P.forEach(M, function(w, H) {
|
|
2975
|
-
(!(P.isUndefined(w) || w === null) && s.call(e, w, P.isString(H) ? H.trim() : H,
|
|
2975
|
+
(!(P.isUndefined(w) || w === null) && s.call(e, w, P.isString(H) ? H.trim() : H, q, A)) === !0 && O(w, q ? q.concat(H) : [H], k + 1);
|
|
2976
2976
|
}), f.pop();
|
|
2977
2977
|
}
|
|
2978
2978
|
}
|
|
@@ -2994,7 +2994,7 @@ function va(t) {
|
|
|
2994
2994
|
});
|
|
2995
2995
|
}
|
|
2996
2996
|
function yr(t, e) {
|
|
2997
|
-
this._pairs = [], t &&
|
|
2997
|
+
this._pairs = [], t && Ws(t, this, e);
|
|
2998
2998
|
}
|
|
2999
2999
|
const $l = yr.prototype;
|
|
3000
3000
|
$l.append = function(e, n) {
|
|
@@ -3106,7 +3106,7 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Zf
|
|
|
3106
3106
|
...Yf
|
|
3107
3107
|
};
|
|
3108
3108
|
function Kf(t, e) {
|
|
3109
|
-
return
|
|
3109
|
+
return Ws(t, new dt.classes.URLSearchParams(), {
|
|
3110
3110
|
visitor: function(n, i, s, o) {
|
|
3111
3111
|
return dt.isNode && P.isBuffer(n) ? (this.append(i, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
3112
3112
|
},
|
|
@@ -3185,7 +3185,7 @@ const Zi = {
|
|
|
3185
3185
|
return Kf(e, a).toString();
|
|
3186
3186
|
if ((l = P.isFileList(e)) || i.indexOf("multipart/form-data") > -1) {
|
|
3187
3187
|
const c = si(this, "env"), f = c && c.FormData;
|
|
3188
|
-
return
|
|
3188
|
+
return Ws(
|
|
3189
3189
|
l ? { "files[]": e } : e,
|
|
3190
3190
|
f && new f(),
|
|
3191
3191
|
a
|
|
@@ -3304,7 +3304,7 @@ function oh(t, e) {
|
|
|
3304
3304
|
}, i - m)));
|
|
3305
3305
|
}, () => s && r(s)];
|
|
3306
3306
|
}
|
|
3307
|
-
const
|
|
3307
|
+
const As = (t, e, n = 3) => {
|
|
3308
3308
|
let i = 0;
|
|
3309
3309
|
const s = sh(50, 250);
|
|
3310
3310
|
return oh((o) => {
|
|
@@ -3588,14 +3588,14 @@ const vh = typeof XMLHttpRequest < "u", yh = vh && function(t) {
|
|
|
3588
3588
|
), A(), O = null;
|
|
3589
3589
|
}, o === void 0 && r.setContentType(null), "setRequestHeader" in O && P.forEach(Sl(r), function(I, w) {
|
|
3590
3590
|
O.setRequestHeader(w, I);
|
|
3591
|
-
}), P.isUndefined(s.withCredentials) || (O.withCredentials = !!s.withCredentials), l && l !== "json" && (O.responseType = s.responseType), c && ([p, T] =
|
|
3591
|
+
}), P.isUndefined(s.withCredentials) || (O.withCredentials = !!s.withCredentials), l && l !== "json" && (O.responseType = s.responseType), c && ([p, T] = As(c, !0), O.addEventListener("progress", p)), a && O.upload && ([m, x] = As(a), O.upload.addEventListener("progress", m), O.upload.addEventListener("loadend", x)), (s.cancelToken || s.signal) && (f = (k) => {
|
|
3592
3592
|
O && (i(!k || k.type ? new Ji(null, t, O) : k), O.abort(), A(), O = null);
|
|
3593
3593
|
}, s.cancelToken && s.cancelToken.subscribe(f), s.signal && (s.signal.aborted ? f() : s.signal.addEventListener("abort", f)));
|
|
3594
|
-
const
|
|
3595
|
-
if (
|
|
3594
|
+
const q = ih(s.url);
|
|
3595
|
+
if (q && !dt.protocols.includes(q)) {
|
|
3596
3596
|
i(
|
|
3597
3597
|
new ee(
|
|
3598
|
-
"Unsupported protocol " +
|
|
3598
|
+
"Unsupported protocol " + q + ":",
|
|
3599
3599
|
ee.ERR_BAD_REQUEST,
|
|
3600
3600
|
t
|
|
3601
3601
|
)
|
|
@@ -3689,7 +3689,7 @@ const vh = typeof XMLHttpRequest < "u", yh = vh && function(t) {
|
|
|
3689
3689
|
highWaterMark: 2
|
|
3690
3690
|
}
|
|
3691
3691
|
);
|
|
3692
|
-
},
|
|
3692
|
+
}, Es = (t) => t >= 48 && t <= 57 || t >= 65 && t <= 70 || t >= 97 && t <= 102, xh = (t, e, n) => e + 2 < n && Es(t.charCodeAt(e + 1)) && Es(t.charCodeAt(e + 2));
|
|
3693
3693
|
function kh(t) {
|
|
3694
3694
|
if (!t || typeof t != "string" || !t.startsWith("data:")) return 0;
|
|
3695
3695
|
const e = t.indexOf(",");
|
|
@@ -3701,7 +3701,7 @@ function kh(t) {
|
|
|
3701
3701
|
for (let x = 0; x < l; x++)
|
|
3702
3702
|
if (i.charCodeAt(x) === 37 && x + 2 < l) {
|
|
3703
3703
|
const T = i.charCodeAt(x + 1), A = i.charCodeAt(x + 2);
|
|
3704
|
-
|
|
3704
|
+
Es(T) && Es(A) && (r -= 2, x += 2);
|
|
3705
3705
|
}
|
|
3706
3706
|
let a = 0, c = l - 1;
|
|
3707
3707
|
const f = (x) => x >= 2 && i.charCodeAt(x - 2) === 37 && // '%'
|
|
@@ -3764,24 +3764,24 @@ const Sr = "1.18.1", $a = 64 * 1024, { isFunction: cs } = P, $h = (t) => encodeU
|
|
|
3764
3764
|
const { fetch: s, Request: o, Response: r } = t, l = s ? cs(s) : typeof fetch == "function", a = cs(o), c = cs(r);
|
|
3765
3765
|
if (!l)
|
|
3766
3766
|
return !1;
|
|
3767
|
-
const f = l && cs(n), m = l && (typeof i == "function" ? /* @__PURE__ */ ((M) => (
|
|
3767
|
+
const f = l && cs(n), m = l && (typeof i == "function" ? /* @__PURE__ */ ((M) => (q) => M.encode(q))(new i()) : async (M) => new Uint8Array(await new o(M).arrayBuffer())), p = a && f && Pa(() => {
|
|
3768
3768
|
let M = !1;
|
|
3769
|
-
const
|
|
3769
|
+
const q = new o(dt.origin, {
|
|
3770
3770
|
body: new n(),
|
|
3771
3771
|
method: "POST",
|
|
3772
3772
|
get duplex() {
|
|
3773
3773
|
return M = !0, "half";
|
|
3774
3774
|
}
|
|
3775
|
-
}), k =
|
|
3776
|
-
return
|
|
3775
|
+
}), k = q.headers.has("Content-Type");
|
|
3776
|
+
return q.body != null && q.body.cancel(), M && !k;
|
|
3777
3777
|
}), x = c && f && Pa(() => P.isReadableStream(new r("").body)), T = {
|
|
3778
3778
|
stream: x && ((M) => M.body)
|
|
3779
3779
|
};
|
|
3780
3780
|
l && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((M) => {
|
|
3781
|
-
!T[M] && (T[M] = (
|
|
3782
|
-
let I =
|
|
3781
|
+
!T[M] && (T[M] = (q, k) => {
|
|
3782
|
+
let I = q && q[M];
|
|
3783
3783
|
if (I)
|
|
3784
|
-
return I.call(
|
|
3784
|
+
return I.call(q);
|
|
3785
3785
|
throw new ee(
|
|
3786
3786
|
`Response type '${M}' is not supported`,
|
|
3787
3787
|
ee.ERR_NOT_SUPPORT,
|
|
@@ -3803,13 +3803,13 @@ const Sr = "1.18.1", $a = 64 * 1024, { isFunction: cs } = P, $h = (t) => encodeU
|
|
|
3803
3803
|
return M.byteLength;
|
|
3804
3804
|
if (P.isURLSearchParams(M) && (M = M + ""), P.isString(M))
|
|
3805
3805
|
return (await m(M)).byteLength;
|
|
3806
|
-
}, O = async (M,
|
|
3806
|
+
}, O = async (M, q) => {
|
|
3807
3807
|
const k = P.toFiniteNumber(M.getContentLength());
|
|
3808
|
-
return k ?? A(
|
|
3808
|
+
return k ?? A(q);
|
|
3809
3809
|
};
|
|
3810
3810
|
return async (M) => {
|
|
3811
3811
|
let {
|
|
3812
|
-
url:
|
|
3812
|
+
url: q,
|
|
3813
3813
|
method: k,
|
|
3814
3814
|
data: I,
|
|
3815
3815
|
signal: w,
|
|
@@ -3819,13 +3819,13 @@ const Sr = "1.18.1", $a = 64 * 1024, { isFunction: cs } = P, $h = (t) => encodeU
|
|
|
3819
3819
|
onUploadProgress: Ve,
|
|
3820
3820
|
responseType: De,
|
|
3821
3821
|
headers: Ze,
|
|
3822
|
-
withCredentials:
|
|
3822
|
+
withCredentials: kt = "same-origin",
|
|
3823
3823
|
fetchOptions: Ft,
|
|
3824
3824
|
maxContentLength: _e,
|
|
3825
3825
|
maxBodyLength: Xt
|
|
3826
3826
|
} = El(M);
|
|
3827
3827
|
const Lt = P.isNumber(_e) && _e > -1, Bt = P.isNumber(Xt) && Xt > -1, Ht = (ke) => P.hasOwnProp(M, ke) ? M[ke] : void 0;
|
|
3828
|
-
let
|
|
3828
|
+
let kn = s || fetch;
|
|
3829
3829
|
De = De ? (De + "").toLowerCase() : "text";
|
|
3830
3830
|
let qt = bh(
|
|
3831
3831
|
[w, H && H.toAbortSignal()],
|
|
@@ -3851,8 +3851,8 @@ const Sr = "1.18.1", $a = 64 * 1024, { isFunction: cs } = P, $h = (t) => encodeU
|
|
|
3851
3851
|
password: Je
|
|
3852
3852
|
};
|
|
3853
3853
|
}
|
|
3854
|
-
if (Th(
|
|
3855
|
-
const pe = new URL(
|
|
3854
|
+
if (Th(q)) {
|
|
3855
|
+
const pe = new URL(q, dt.origin);
|
|
3856
3856
|
if (!ke && (pe.username || pe.password)) {
|
|
3857
3857
|
const Je = Ta(pe.username), Tt = Ta(pe.password);
|
|
3858
3858
|
ke = {
|
|
@@ -3860,12 +3860,12 @@ const Sr = "1.18.1", $a = 64 * 1024, { isFunction: cs } = P, $h = (t) => encodeU
|
|
|
3860
3860
|
password: Tt
|
|
3861
3861
|
};
|
|
3862
3862
|
}
|
|
3863
|
-
(pe.username || pe.password) && (pe.username = "", pe.password = "",
|
|
3863
|
+
(pe.username || pe.password) && (pe.username = "", pe.password = "", q = pe.href);
|
|
3864
3864
|
}
|
|
3865
3865
|
if (ke && (Ze.delete("authorization"), Ze.set(
|
|
3866
3866
|
"Authorization",
|
|
3867
3867
|
"Basic " + btoa($h((ke.username || "") + ":" + (ke.password || "")))
|
|
3868
|
-
)), Lt && typeof
|
|
3868
|
+
)), Lt && typeof q == "string" && q.startsWith("data:") && kh(q) > _e)
|
|
3869
3869
|
throw new ee(
|
|
3870
3870
|
"maxContentLength size of " + _e + " exceeded",
|
|
3871
3871
|
ee.ERR_BAD_RESPONSE,
|
|
@@ -3889,7 +3889,7 @@ const Sr = "1.18.1", $a = 64 * 1024, { isFunction: cs } = P, $h = (t) => encodeU
|
|
|
3889
3889
|
);
|
|
3890
3890
|
if (p && k !== "get" && k !== "head" && (Ve || gn)) {
|
|
3891
3891
|
if (st = st ?? await O(Ze, I), st !== 0 || gn) {
|
|
3892
|
-
let pe = new o(
|
|
3892
|
+
let pe = new o(q, {
|
|
3893
3893
|
method: "POST",
|
|
3894
3894
|
body: I,
|
|
3895
3895
|
duplex: "half"
|
|
@@ -3897,7 +3897,7 @@ const Sr = "1.18.1", $a = 64 * 1024, { isFunction: cs } = P, $h = (t) => encodeU
|
|
|
3897
3897
|
if (P.isFormData(I) && (Je = pe.headers.get("content-type")) && Ze.setContentType(Je), pe.body) {
|
|
3898
3898
|
const [Tt, Vt] = Ve && wa(
|
|
3899
3899
|
st,
|
|
3900
|
-
|
|
3900
|
+
As(Sa(Ve))
|
|
3901
3901
|
) || [];
|
|
3902
3902
|
I = Ln(pe.body, Tt, Vt);
|
|
3903
3903
|
}
|
|
@@ -3911,7 +3911,7 @@ const Sr = "1.18.1", $a = 64 * 1024, { isFunction: cs } = P, $h = (t) => encodeU
|
|
|
3911
3911
|
M,
|
|
3912
3912
|
Re
|
|
3913
3913
|
);
|
|
3914
|
-
P.isString(
|
|
3914
|
+
P.isString(kt) || (kt = kt ? "include" : "omit");
|
|
3915
3915
|
const Xe = a && "credentials" in o.prototype;
|
|
3916
3916
|
if (P.isFormData(I)) {
|
|
3917
3917
|
const pe = Ze.getContentType();
|
|
@@ -3925,13 +3925,13 @@ const Sr = "1.18.1", $a = 64 * 1024, { isFunction: cs } = P, $h = (t) => encodeU
|
|
|
3925
3925
|
headers: Sl(Ze.normalize()),
|
|
3926
3926
|
body: I,
|
|
3927
3927
|
duplex: "half",
|
|
3928
|
-
credentials: Xe ?
|
|
3928
|
+
credentials: Xe ? kt : void 0
|
|
3929
3929
|
};
|
|
3930
|
-
Re = a && new o(
|
|
3931
|
-
let ot = await (a ?
|
|
3932
|
-
const
|
|
3930
|
+
Re = a && new o(q, Qt);
|
|
3931
|
+
let ot = await (a ? kn(Re, Ft) : kn(q, Qt));
|
|
3932
|
+
const $n = Ct.from(ot.headers);
|
|
3933
3933
|
if (Lt) {
|
|
3934
|
-
const pe = P.toFiniteNumber(
|
|
3934
|
+
const pe = P.toFiniteNumber($n.getContentLength());
|
|
3935
3935
|
if (pe != null && pe > _e)
|
|
3936
3936
|
throw new ee(
|
|
3937
3937
|
"maxContentLength size of " + _e + " exceeded",
|
|
@@ -3940,15 +3940,15 @@ const Sr = "1.18.1", $a = 64 * 1024, { isFunction: cs } = P, $h = (t) => encodeU
|
|
|
3940
3940
|
Re
|
|
3941
3941
|
);
|
|
3942
3942
|
}
|
|
3943
|
-
const
|
|
3944
|
-
if (x && ot.body && (ye || Lt ||
|
|
3943
|
+
const Tn = x && (De === "stream" || De === "response");
|
|
3944
|
+
if (x && ot.body && (ye || Lt || Tn && te)) {
|
|
3945
3945
|
const pe = {};
|
|
3946
3946
|
["status", "statusText", "headers"].forEach((nn) => {
|
|
3947
3947
|
pe[nn] = ot[nn];
|
|
3948
3948
|
});
|
|
3949
|
-
const Je = P.toFiniteNumber(
|
|
3949
|
+
const Je = P.toFiniteNumber($n.getContentLength()), [Tt, Vt] = ye && wa(
|
|
3950
3950
|
Je,
|
|
3951
|
-
|
|
3951
|
+
As(Sa(ye), !0)
|
|
3952
3952
|
) || [];
|
|
3953
3953
|
let Pt = 0;
|
|
3954
3954
|
const qn = (nn) => {
|
|
@@ -3973,7 +3973,7 @@ const Sr = "1.18.1", $a = 64 * 1024, { isFunction: cs } = P, $h = (t) => encodeU
|
|
|
3973
3973
|
ot,
|
|
3974
3974
|
M
|
|
3975
3975
|
);
|
|
3976
|
-
if (Lt && !x &&
|
|
3976
|
+
if (Lt && !x && !Tn) {
|
|
3977
3977
|
let pe;
|
|
3978
3978
|
if (rt != null && (typeof rt.byteLength == "number" ? pe = rt.byteLength : typeof rt.size == "number" ? pe = rt.size : typeof rt == "string" && (pe = typeof i == "function" ? new i().encode(rt).byteLength : rt.length)), typeof pe == "number" && pe > _e)
|
|
3979
3979
|
throw new ee(
|
|
@@ -3983,7 +3983,7 @@ const Sr = "1.18.1", $a = 64 * 1024, { isFunction: cs } = P, $h = (t) => encodeU
|
|
|
3983
3983
|
Re
|
|
3984
3984
|
);
|
|
3985
3985
|
}
|
|
3986
|
-
return
|
|
3986
|
+
return !Tn && te && te(), await new Promise((pe, Je) => {
|
|
3987
3987
|
Il(pe, Je, {
|
|
3988
3988
|
data: rt,
|
|
3989
3989
|
headers: Ct.from(ot.headers),
|
|
@@ -4126,14 +4126,14 @@ function Ra(t) {
|
|
|
4126
4126
|
}
|
|
4127
4127
|
);
|
|
4128
4128
|
}
|
|
4129
|
-
const
|
|
4129
|
+
const Gs = {};
|
|
4130
4130
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
|
|
4131
|
-
|
|
4131
|
+
Gs[t] = function(i) {
|
|
4132
4132
|
return typeof i === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
4133
4133
|
};
|
|
4134
4134
|
});
|
|
4135
4135
|
const Ia = {};
|
|
4136
|
-
|
|
4136
|
+
Gs.transitional = function(e, n, i) {
|
|
4137
4137
|
function s(o, r) {
|
|
4138
4138
|
return "[Axios v" + Sr + "] Transitional option '" + o + "'" + r + (i ? ". " + i : "");
|
|
4139
4139
|
}
|
|
@@ -4151,7 +4151,7 @@ js.transitional = function(e, n, i) {
|
|
|
4151
4151
|
)), e ? e(o, r, l) : !0;
|
|
4152
4152
|
};
|
|
4153
4153
|
};
|
|
4154
|
-
|
|
4154
|
+
Gs.spelling = function(e) {
|
|
4155
4155
|
return (n, i) => (console.warn(`${i} is likely a misspelling of ${e}`), !0);
|
|
4156
4156
|
};
|
|
4157
4157
|
function Ah(t, e, n) {
|
|
@@ -4174,10 +4174,10 @@ function Ah(t, e, n) {
|
|
|
4174
4174
|
throw new ee("Unknown option " + o, ee.ERR_BAD_OPTION);
|
|
4175
4175
|
}
|
|
4176
4176
|
}
|
|
4177
|
-
const
|
|
4177
|
+
const Ss = {
|
|
4178
4178
|
assertOptions: Ah,
|
|
4179
|
-
validators:
|
|
4180
|
-
}, mt =
|
|
4179
|
+
validators: Gs
|
|
4180
|
+
}, mt = Ss.validators;
|
|
4181
4181
|
let _n = class {
|
|
4182
4182
|
constructor(e) {
|
|
4183
4183
|
this.defaults = e || {}, this.interceptors = {
|
|
@@ -4226,7 +4226,7 @@ let _n = class {
|
|
|
4226
4226
|
_request(e, n) {
|
|
4227
4227
|
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = Xn(this.defaults, n);
|
|
4228
4228
|
const { transitional: i, paramsSerializer: s, headers: o } = n;
|
|
4229
|
-
i !== void 0 &&
|
|
4229
|
+
i !== void 0 && Ss.assertOptions(
|
|
4230
4230
|
i,
|
|
4231
4231
|
{
|
|
4232
4232
|
silentJSONParsing: mt.transitional(mt.boolean),
|
|
@@ -4239,14 +4239,14 @@ let _n = class {
|
|
|
4239
4239
|
!1
|
|
4240
4240
|
), s != null && (P.isFunction(s) ? n.paramsSerializer = {
|
|
4241
4241
|
serialize: s
|
|
4242
|
-
} :
|
|
4242
|
+
} : Ss.assertOptions(
|
|
4243
4243
|
s,
|
|
4244
4244
|
{
|
|
4245
4245
|
encode: mt.function,
|
|
4246
4246
|
serialize: mt.function
|
|
4247
4247
|
},
|
|
4248
4248
|
!0
|
|
4249
|
-
)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0),
|
|
4249
|
+
)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Ss.assertOptions(
|
|
4250
4250
|
n,
|
|
4251
4251
|
{
|
|
4252
4252
|
baseUrl: mt.spelling("baseURL"),
|
|
@@ -4499,7 +4499,7 @@ Ge.CanceledError = Ji;
|
|
|
4499
4499
|
Ge.CancelToken = Eh;
|
|
4500
4500
|
Ge.isCancel = Rl;
|
|
4501
4501
|
Ge.VERSION = Sr;
|
|
4502
|
-
Ge.toFormData =
|
|
4502
|
+
Ge.toFormData = Ws;
|
|
4503
4503
|
Ge.AxiosError = ee;
|
|
4504
4504
|
Ge.Cancel = Ge.CanceledError;
|
|
4505
4505
|
Ge.all = function(e) {
|
|
@@ -4596,14 +4596,14 @@ class xr {
|
|
|
4596
4596
|
return i._retry = !0, n.defaults.headers.common.token = _i.getAccessToken(), e.config.headers.token = _i.getAccessToken(), e.config.baseURL = void 0, n.request(i);
|
|
4597
4597
|
if (e.response.status >= 500) {
|
|
4598
4598
|
if (e.response.data === "неверный логин или пароль") {
|
|
4599
|
-
|
|
4599
|
+
On.Error("Неверный логин или пароль");
|
|
4600
4600
|
return;
|
|
4601
4601
|
}
|
|
4602
|
-
|
|
4602
|
+
On.Error("Ошибка на сервере, попробуйте позже");
|
|
4603
4603
|
}
|
|
4604
4604
|
if (e.response.status >= 400 && e.response.status < 500) {
|
|
4605
4605
|
const s = new xr(e.response.data).getErr();
|
|
4606
|
-
s &&
|
|
4606
|
+
s && On.Error(s);
|
|
4607
4607
|
}
|
|
4608
4608
|
return Promise.reject(e);
|
|
4609
4609
|
}
|
|
@@ -4648,7 +4648,7 @@ class Di {
|
|
|
4648
4648
|
});
|
|
4649
4649
|
}
|
|
4650
4650
|
}
|
|
4651
|
-
class
|
|
4651
|
+
class En {
|
|
4652
4652
|
constructor(e) {
|
|
4653
4653
|
u(this, "name", "");
|
|
4654
4654
|
ge.BuildClass(this, e);
|
|
@@ -4686,11 +4686,11 @@ class An {
|
|
|
4686
4686
|
}
|
|
4687
4687
|
}
|
|
4688
4688
|
static async TryGet(e, n, i) {
|
|
4689
|
-
const s =
|
|
4689
|
+
const s = En.Get(e, i);
|
|
4690
4690
|
if (s)
|
|
4691
4691
|
return s;
|
|
4692
4692
|
const o = await n();
|
|
4693
|
-
return o &&
|
|
4693
|
+
return o && En.Set(e, o), o;
|
|
4694
4694
|
}
|
|
4695
4695
|
}
|
|
4696
4696
|
var Wo = /* @__PURE__ */ ((t) => (t.ContentType = "Content-Type", t.Token = "token", t))(Wo || {}), Ll = /* @__PURE__ */ ((t) => (t.ApplicationJson = "application/json", t.MultipartFormData = "multipart/form-data", t))(Ll || {});
|
|
@@ -4919,7 +4919,7 @@ class Ye {
|
|
|
4919
4919
|
async GetOptions(e = "name", n = "id", i) {
|
|
4920
4920
|
const s = `${this.getUrl()}/options/${e}/${n}`, o = `pf-options:${s}`, r = (i == null ? void 0 : i.cache) !== !1;
|
|
4921
4921
|
if (r && !(i != null && i.force)) {
|
|
4922
|
-
const c =
|
|
4922
|
+
const c = En.Get(o, (i == null ? void 0 : i.ttl) ?? Bh);
|
|
4923
4923
|
if (c) {
|
|
4924
4924
|
this.SetOptions(c);
|
|
4925
4925
|
return;
|
|
@@ -4935,7 +4935,7 @@ class Ye {
|
|
|
4935
4935
|
const c = await qe.Get({ query: s });
|
|
4936
4936
|
if (!c)
|
|
4937
4937
|
return;
|
|
4938
|
-
this.SetOptions(c), r &&
|
|
4938
|
+
this.SetOptions(c), r && En.Set(o, c);
|
|
4939
4939
|
} catch (c) {
|
|
4940
4940
|
console.warn("GetOptions failed:", c);
|
|
4941
4941
|
} finally {
|
|
@@ -4949,7 +4949,7 @@ class Ye {
|
|
|
4949
4949
|
* `labelCol`/`valueCol` можно не указывать — сбросится кэш всех вариантов пары.
|
|
4950
4950
|
*/
|
|
4951
4951
|
InvalidateOptions(e = "name", n = "id") {
|
|
4952
|
-
|
|
4952
|
+
En.Clear(`pf-options:${this.getUrl()}/options/${e}/${n}`);
|
|
4953
4953
|
}
|
|
4954
4954
|
/**
|
|
4955
4955
|
* Серверный поиск по справочнику (К2, Т8) — для тяжёлых справочников.
|
|
@@ -4980,7 +4980,7 @@ class Ye {
|
|
|
4980
4980
|
try {
|
|
4981
4981
|
let n;
|
|
4982
4982
|
const i = qe.Get;
|
|
4983
|
-
e && e.withCache ? n = await
|
|
4983
|
+
e && e.withCache ? n = await En.TryGet(this.getUrl(), i) : n = await i({ query: this.getUrl() }), Array.isArray(n) ? this.SetAll(n) : this.SetAllWithCount(n);
|
|
4984
4984
|
} catch (n) {
|
|
4985
4985
|
console.warn("GetAll failed:", n);
|
|
4986
4986
|
}
|
|
@@ -5171,7 +5171,7 @@ let Nh = class {
|
|
|
5171
5171
|
u(this, "dragged", !1);
|
|
5172
5172
|
u(this, "draggedStartTime", "");
|
|
5173
5173
|
u(this, "draggedEndTime", "");
|
|
5174
|
-
u(this, "timelines",
|
|
5174
|
+
u(this, "timelines", Ps[Vi.FiveMinutes]);
|
|
5175
5175
|
}
|
|
5176
5176
|
startDrag(e, n) {
|
|
5177
5177
|
this.draggedStartTime = e, this.draggedEndTime = n, this.dragged = !0;
|
|
@@ -5183,7 +5183,7 @@ let Nh = class {
|
|
|
5183
5183
|
this.timelineStep = e, this.setTimelines();
|
|
5184
5184
|
}
|
|
5185
5185
|
setTimelines() {
|
|
5186
|
-
this.timelines =
|
|
5186
|
+
this.timelines = Ps[this.timelineStep];
|
|
5187
5187
|
}
|
|
5188
5188
|
getScheduleHeight() {
|
|
5189
5189
|
return this.getHourHeight() * this.getHoursArr().length;
|
|
@@ -5492,7 +5492,7 @@ class kr {
|
|
|
5492
5492
|
return this.items[this.idx].slug;
|
|
5493
5493
|
}
|
|
5494
5494
|
}
|
|
5495
|
-
const
|
|
5495
|
+
const Fs = class Fs {
|
|
5496
5496
|
static Format(e) {
|
|
5497
5497
|
let n = e;
|
|
5498
5498
|
if (!n)
|
|
@@ -5528,10 +5528,10 @@ const zs = class zs {
|
|
|
5528
5528
|
return /^(\s*)?(\+)?([- _():=+]?\d[- _():=+]?){10,14}(\s*)?$/;
|
|
5529
5529
|
}
|
|
5530
5530
|
};
|
|
5531
|
-
u(
|
|
5532
|
-
|
|
5531
|
+
u(Fs, "validatePhone", (e, n, i) => {
|
|
5532
|
+
Fs.getPhoneRegExp().test(n) || !n ? i() : i(new Error("Пожалуйста, введите корректный номер телефона"));
|
|
5533
5533
|
});
|
|
5534
|
-
let Yo =
|
|
5534
|
+
let Yo = Fs;
|
|
5535
5535
|
class im {
|
|
5536
5536
|
static Count(e) {
|
|
5537
5537
|
const n = e.filter((o) => o.rating !== 0);
|
|
@@ -5556,7 +5556,7 @@ class om {
|
|
|
5556
5556
|
u(this, "endHM", `${this.endHour}:00`);
|
|
5557
5557
|
u(this, "timelinePxHeight", 50);
|
|
5558
5558
|
u(this, "timelineStep", Vi.FiveMinutes);
|
|
5559
|
-
u(this, "timelines",
|
|
5559
|
+
u(this, "timelines", Ps[Vi.FiveMinutes]);
|
|
5560
5560
|
}
|
|
5561
5561
|
periodIsCorrect(e, n) {
|
|
5562
5562
|
return xe.GtOrEq(e, this.startHM) && xe.GtOrEq(this.endHM, n);
|
|
@@ -5565,7 +5565,7 @@ class om {
|
|
|
5565
5565
|
this.timelineStep = e, this.setTimelines();
|
|
5566
5566
|
}
|
|
5567
5567
|
setTimelines() {
|
|
5568
|
-
this.timelines =
|
|
5568
|
+
this.timelines = Ps[this.timelineStep];
|
|
5569
5569
|
}
|
|
5570
5570
|
getScheduleHeight() {
|
|
5571
5571
|
return this.getHourHeight() * this.getHoursArr().length;
|
|
@@ -5602,15 +5602,15 @@ class lm {
|
|
|
5602
5602
|
e.forEach((n, i) => n.order = i);
|
|
5603
5603
|
}
|
|
5604
5604
|
}
|
|
5605
|
-
class
|
|
5605
|
+
class Os {
|
|
5606
5606
|
static Wait(e, n) {
|
|
5607
5607
|
return new Promise((i) => setTimeout(() => i(n), e));
|
|
5608
5608
|
}
|
|
5609
5609
|
static WaitS(e, n) {
|
|
5610
|
-
return
|
|
5610
|
+
return Os.Wait(xe.S(e), n);
|
|
5611
5611
|
}
|
|
5612
5612
|
static WaitM(e, n) {
|
|
5613
|
-
return
|
|
5613
|
+
return Os.Wait(xe.M(e), n);
|
|
5614
5614
|
}
|
|
5615
5615
|
}
|
|
5616
5616
|
class gi {
|
|
@@ -5635,9 +5635,9 @@ class gi {
|
|
|
5635
5635
|
var i, s;
|
|
5636
5636
|
try {
|
|
5637
5637
|
const o = await e();
|
|
5638
|
-
return !n.silent && n.success &&
|
|
5638
|
+
return !n.silent && n.success && On.Success(n.success), (i = n.onSuccess) == null || i.call(n, o), { ok: !0, data: o };
|
|
5639
5639
|
} catch (o) {
|
|
5640
|
-
return n.silent ||
|
|
5640
|
+
return n.silent || On.Error(n.message || gi.Message(o) || "Произошла ошибка"), (s = n.onError) == null || s.call(n, o), { ok: !1, error: o };
|
|
5641
5641
|
}
|
|
5642
5642
|
}
|
|
5643
5643
|
/**
|
|
@@ -5675,7 +5675,7 @@ const xi = (t) => t === "" || t === null || t === void 0 || Array.isArray(t) &&
|
|
|
5675
5675
|
subtree: !0
|
|
5676
5676
|
});
|
|
5677
5677
|
});
|
|
5678
|
-
class
|
|
5678
|
+
class zs {
|
|
5679
5679
|
constructor(e) {
|
|
5680
5680
|
u(this, "id");
|
|
5681
5681
|
u(this, "message", "");
|
|
@@ -5688,12 +5688,12 @@ class Es {
|
|
|
5688
5688
|
ge.BuildClass(this, e);
|
|
5689
5689
|
}
|
|
5690
5690
|
static Create(e, n, i, s) {
|
|
5691
|
-
const o = new
|
|
5692
|
-
return o.id =
|
|
5691
|
+
const o = new zs();
|
|
5692
|
+
return o.id = Dn(), o.chatId = e, o.message = i, o.userName = s, o;
|
|
5693
5693
|
}
|
|
5694
5694
|
static CreatePingMessage() {
|
|
5695
|
-
const e = new
|
|
5696
|
-
return e.type = "ping", e.id =
|
|
5695
|
+
const e = new zs();
|
|
5696
|
+
return e.type = "ping", e.id = Dn(), e;
|
|
5697
5697
|
}
|
|
5698
5698
|
isMessage() {
|
|
5699
5699
|
return this.type === "message" || this.type === "";
|
|
@@ -5715,7 +5715,7 @@ class ym {
|
|
|
5715
5715
|
setInterval(this.sendPing.bind(this), this.period);
|
|
5716
5716
|
}
|
|
5717
5717
|
sendPing() {
|
|
5718
|
-
!this.client || this.client.readyState !== 1 || this.send(JSON.stringify(
|
|
5718
|
+
!this.client || this.client.readyState !== 1 || this.send(JSON.stringify(zs.CreatePingMessage()));
|
|
5719
5719
|
}
|
|
5720
5720
|
setOnMessage() {
|
|
5721
5721
|
this.client && (this.client.onmessage = (e) => {
|
|
@@ -5736,10 +5736,10 @@ class ym {
|
|
|
5736
5736
|
var Se;
|
|
5737
5737
|
let bm = (Se = class {
|
|
5738
5738
|
}, u(Se, "Arrays", fn), u(Se, "Axios", Di), u(Se, "BaseStore", Ye), // static Phone = Phone;
|
|
5739
|
-
u(Se, "Cache",
|
|
5739
|
+
u(Se, "Cache", En), u(Se, "Classes", ge), u(Se, "CarouselSwipe", Hh), u(Se, "Color", Uh), u(Se, "CreateSortModels", Bl), u(Se, "Cursor", Nh), u(Se, "DateMask", Xh), u(Se, "Dates", yt), u(Se, "Dragger", Jh), u(Se, "Extension", Hl), u(Se, "Favourite", Kh), // static FTSP = FTSP;
|
|
5740
5740
|
u(Se, "Hooks", nm), u(Se, "HttpClient", qe), u(Se, "Id", Rt), u(Se, "MakeCarousel", Vl), u(Se, "Period", Ho), u(Se, "PhoneService", Yo), u(Se, "Rating", im), u(Se, "Router", hn), u(Se, "RouterGuard", sm), u(Se, "Scheduler", om), u(Se, "Scroll", am), // static Sizes = Sizes;
|
|
5741
5741
|
u(Se, "Sorter", lm), u(Se, "Static", hr), // static Statuses = Statuses;
|
|
5742
|
-
u(Se, "Strings", Ne), u(Se, "Time", xe), u(Se, "Timer",
|
|
5742
|
+
u(Se, "Strings", Ne), u(Se, "Time", xe), u(Se, "Timer", Os), u(Se, "Token", _i), u(Se, "Try", gi), u(Se, "Menus", kr), // static useConfirmLeavePage = useConfirmLeavePage();
|
|
5743
5743
|
u(Se, "Validate", pm), u(Se, "WaitElement", gm), u(Se, "WebSocketClient", ym), Se);
|
|
5744
5744
|
class wm {
|
|
5745
5745
|
constructor() {
|
|
@@ -5816,7 +5816,7 @@ let Cm = class {
|
|
|
5816
5816
|
}
|
|
5817
5817
|
};
|
|
5818
5818
|
const xm = new Cm();
|
|
5819
|
-
var km = Object.defineProperty,
|
|
5819
|
+
var km = Object.defineProperty, Ys = (t, e, n, i) => {
|
|
5820
5820
|
for (var s = void 0, o = t.length - 1, r; o >= 0; o--)
|
|
5821
5821
|
(r = t[o]) && (s = r(e, n, s) || s);
|
|
5822
5822
|
return s && km(e, n, s), s;
|
|
@@ -5829,7 +5829,7 @@ const Ki = class Gl {
|
|
|
5829
5829
|
u(this, "latitude", "");
|
|
5830
5830
|
u(this, "longitude", "");
|
|
5831
5831
|
u(this, "emails", []);
|
|
5832
|
-
u(this, "postAddresses", [new
|
|
5832
|
+
u(this, "postAddresses", [new Ms()]);
|
|
5833
5833
|
u(this, "phones", []);
|
|
5834
5834
|
u(this, "websites", []);
|
|
5835
5835
|
ge.BuildClass(this, e);
|
|
@@ -5853,7 +5853,7 @@ const Ki = class Gl {
|
|
|
5853
5853
|
ge.RemoveFromClassById(e, this.phones);
|
|
5854
5854
|
}
|
|
5855
5855
|
addPostAddress() {
|
|
5856
|
-
this.postAddresses.push(new
|
|
5856
|
+
this.postAddresses.push(new Ms());
|
|
5857
5857
|
}
|
|
5858
5858
|
addWebsite() {
|
|
5859
5859
|
this.websites.push(new mr());
|
|
@@ -5877,16 +5877,16 @@ const Ki = class Gl {
|
|
|
5877
5877
|
this.longitude = e;
|
|
5878
5878
|
}
|
|
5879
5879
|
};
|
|
5880
|
-
|
|
5880
|
+
Ys([
|
|
5881
5881
|
ge.GetClassConstructor(Ui)
|
|
5882
5882
|
], Ki.prototype, "emails");
|
|
5883
|
-
|
|
5884
|
-
ge.GetClassConstructor(
|
|
5883
|
+
Ys([
|
|
5884
|
+
ge.GetClassConstructor(Ms)
|
|
5885
5885
|
], Ki.prototype, "postAddresses");
|
|
5886
|
-
|
|
5886
|
+
Ys([
|
|
5887
5887
|
ge.GetClassConstructor(Gn)
|
|
5888
5888
|
], Ki.prototype, "phones");
|
|
5889
|
-
|
|
5889
|
+
Ys([
|
|
5890
5890
|
ge.GetClassConstructor(mr)
|
|
5891
5891
|
], Ki.prototype, "websites");
|
|
5892
5892
|
let $m = Ki, Tm = class extends Ye {
|
|
@@ -6004,7 +6004,7 @@ class Po {
|
|
|
6004
6004
|
u(this, "searchGroups", []);
|
|
6005
6005
|
u(this, "searchGroup", new ui());
|
|
6006
6006
|
u(this, "searchObjects", []);
|
|
6007
|
-
u(this, "pagination", new
|
|
6007
|
+
u(this, "pagination", new Rs());
|
|
6008
6008
|
u(this, "count", 0);
|
|
6009
6009
|
e && (this.query = e.query, e.searchGroups && (this.searchGroups = e.searchGroups.map((n) => new ui(n))), e.searchGroup && (this.searchGroup = new ui(e.searchGroup)), e.options && (this.options = e.options.map((n) => new Xl(n))), this.count = e.count);
|
|
6010
6010
|
}
|
|
@@ -6070,7 +6070,7 @@ let Vm = class {
|
|
|
6070
6070
|
const Xo = new Vm();
|
|
6071
6071
|
let Um = class extends Ye {
|
|
6072
6072
|
constructor() {
|
|
6073
|
-
super(
|
|
6073
|
+
super(Vs, "users-accounts");
|
|
6074
6074
|
}
|
|
6075
6075
|
};
|
|
6076
6076
|
const Nm = new Um();
|
|
@@ -6132,9 +6132,9 @@ const jm = new _m();
|
|
|
6132
6132
|
var Ut;
|
|
6133
6133
|
let Jl = (Ut = class {
|
|
6134
6134
|
}, u(Ut, "Auth", xm), u(Ut, "Contacts", Pm), u(Ut, "Emails", Rm), u(Ut, "FileInfos", new Ye(cn, "file-infos")), u(Ut, "Humans", Am), u(Ut, "Phones", Om), u(Ut, "Schemas", qm), u(Ut, "UserAccounts", Nm), u(Ut, "ValueTypes", jm), u(Ut, "Search", Xo), Ut);
|
|
6135
|
-
var wt = /* @__PURE__ */ ((t) => (t.XS = "xs", t.S = "s", t.M = "m", t.L = "l", t.XL = "xl", t))(wt || {}),
|
|
6136
|
-
let Wm = (
|
|
6137
|
-
}, u(
|
|
6135
|
+
var wt = /* @__PURE__ */ ((t) => (t.XS = "xs", t.S = "s", t.M = "m", t.L = "l", t.XL = "xl", t))(wt || {}), Rn;
|
|
6136
|
+
let Wm = (Rn = class {
|
|
6137
|
+
}, u(Rn, "Orders", jt), u(Rn, "Sizes", wt), u(Rn, "Statuses", Oe), u(Rn, "DataTypes", nt), u(Rn, "ValueTypes", vt), u(Rn, "Operators", gt), Rn);
|
|
6138
6138
|
class Gm {
|
|
6139
6139
|
constructor() {
|
|
6140
6140
|
u(this, "title", "");
|
|
@@ -6275,12 +6275,12 @@ class np extends tp {
|
|
|
6275
6275
|
}
|
|
6276
6276
|
}
|
|
6277
6277
|
const ip = new np();
|
|
6278
|
-
class
|
|
6278
|
+
class In {
|
|
6279
6279
|
}
|
|
6280
|
-
u(
|
|
6280
|
+
u(In, "Admin", Jm), u(In, "Dialog", ep), u(In, "Loading", ip), u(In, "Notify", On), u(In, "Btn", Vn), u(In, "Input", ol);
|
|
6281
6281
|
class X {
|
|
6282
6282
|
}
|
|
6283
|
-
u(X, "Auth", St(ut)), u(X, "UI", St(
|
|
6283
|
+
u(X, "Auth", St(ut)), u(X, "UI", St(In)), u(X, "Paginator", St(Nl)), /**
|
|
6284
6284
|
* Stores
|
|
6285
6285
|
*/
|
|
6286
6286
|
u(X, "S", Jl), /**
|
|
@@ -6299,7 +6299,7 @@ u(X, "I", Sm), /**
|
|
|
6299
6299
|
* FTSP
|
|
6300
6300
|
*/
|
|
6301
6301
|
u(X, "F", Dc);
|
|
6302
|
-
const
|
|
6302
|
+
const Xs = /* @__PURE__ */ N({
|
|
6303
6303
|
inheritAttrs: !1,
|
|
6304
6304
|
__name: "PBadge",
|
|
6305
6305
|
props: {
|
|
@@ -6319,7 +6319,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
6319
6319
|
["label", "color", "text-color", "outline", "rounded", "floating", "multi-line", "transparent"].includes(s) || (i[s] = e[s]);
|
|
6320
6320
|
return i;
|
|
6321
6321
|
});
|
|
6322
|
-
return (i, s) => (h(),
|
|
6322
|
+
return (i, s) => (h(), F(d(Xa), xt(d(n), {
|
|
6323
6323
|
label: t.label || void 0,
|
|
6324
6324
|
color: t.color || void 0,
|
|
6325
6325
|
"text-color": t.textColor || void 0,
|
|
@@ -6361,13 +6361,13 @@ const Gs = /* @__PURE__ */ N({
|
|
|
6361
6361
|
},
|
|
6362
6362
|
setup(t) {
|
|
6363
6363
|
const e = t, n = Kt(), i = B(() => {
|
|
6364
|
-
const
|
|
6364
|
+
const q = {};
|
|
6365
6365
|
for (const k of Object.keys(n))
|
|
6366
|
-
["disable", "color", "size", "flat", "outline", "unelevated", "type"].includes(k) || (
|
|
6367
|
-
return
|
|
6366
|
+
["disable", "color", "size", "flat", "outline", "unelevated", "type"].includes(k) || (q[k] = n[k]);
|
|
6367
|
+
return q;
|
|
6368
6368
|
}), s = ["submit", "button", "reset"], o = B(() => s.includes(e.type)), r = B(() => o.value ? e.type : void 0), l = B(() => o.value ? Oe.Primary : e.type), a = B(() => {
|
|
6369
|
-
const
|
|
6370
|
-
return e.margin && (
|
|
6369
|
+
const q = {};
|
|
6370
|
+
return e.margin && (q.margin = e.margin), e.padding && (q.padding = e.padding), e.width && (q.maxWidth = e.width, q.minWidth = e.width), e.height && (q.minHeight = e.height, q.maxHeight = e.height), e.fontSize && (q.fontSize = e.fontSize), q;
|
|
6371
6371
|
}), c = {
|
|
6372
6372
|
[Oe.Primary]: "primary",
|
|
6373
6373
|
[Oe.Success]: "positive",
|
|
@@ -6387,7 +6387,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
6387
6387
|
), O = B(
|
|
6388
6388
|
() => n.unelevated !== void 0 ? n.unelevated : e.skin === "base"
|
|
6389
6389
|
), M = B(() => n.disable ?? e.disabled);
|
|
6390
|
-
return (
|
|
6390
|
+
return (q, k) => (h(), F(d(dn), xt(d(i), {
|
|
6391
6391
|
style: d(a),
|
|
6392
6392
|
color: d(f),
|
|
6393
6393
|
size: d(x),
|
|
@@ -6399,7 +6399,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
6399
6399
|
"no-wrap": ""
|
|
6400
6400
|
}), {
|
|
6401
6401
|
default: C(() => [
|
|
6402
|
-
D(
|
|
6402
|
+
D(q.$slots, "default"),
|
|
6403
6403
|
fe(" " + j(t.text), 1)
|
|
6404
6404
|
]),
|
|
6405
6405
|
_: 3
|
|
@@ -6489,7 +6489,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
6489
6489
|
justifyContent: "center",
|
|
6490
6490
|
alignItems: "center"
|
|
6491
6491
|
}));
|
|
6492
|
-
return (a, c) => t.tooltipText ? (h(), S("div",
|
|
6492
|
+
return (a, c) => t.tooltipText ? (h(), S("div", xt({ key: 0 }, d(i), { class: "tooltip-wrapper" }), [
|
|
6493
6493
|
D(a.$slots, "default", {}, void 0, !0),
|
|
6494
6494
|
y(d(aa), {
|
|
6495
6495
|
delay: t.timeout,
|
|
@@ -6507,7 +6507,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
6507
6507
|
]),
|
|
6508
6508
|
_: 1
|
|
6509
6509
|
}, 8, ["delay", "anchor", "self", "style"])
|
|
6510
|
-
], 16)) : (h(),
|
|
6510
|
+
], 16)) : (h(), F(d(aa), xt({ key: 1 }, d(i), {
|
|
6511
6511
|
delay: t.timeout,
|
|
6512
6512
|
class: "tooltip-box"
|
|
6513
6513
|
}), {
|
|
@@ -6598,18 +6598,18 @@ const Gs = /* @__PURE__ */ N({
|
|
|
6598
6598
|
var w;
|
|
6599
6599
|
return await ((w = p.value) == null ? void 0 : w.validate()) ?? !0;
|
|
6600
6600
|
}
|
|
6601
|
-
function
|
|
6601
|
+
function q() {
|
|
6602
6602
|
var w;
|
|
6603
6603
|
(w = p.value) == null || w.resetValidation();
|
|
6604
6604
|
}
|
|
6605
|
-
e({ focus: x, blur: T, select: A, getNativeElement: O, validate: M, resetValidation:
|
|
6605
|
+
e({ focus: x, blur: T, select: A, getNativeElement: O, validate: M, resetValidation: q });
|
|
6606
6606
|
const k = () => {
|
|
6607
6607
|
i("input", s.value);
|
|
6608
6608
|
}, I = B(() => {
|
|
6609
6609
|
const w = {};
|
|
6610
6610
|
return a.margin && (w.margin = a.margin), a.padding && (w.padding = a.padding), a.width && (w.width = a.width), a.borderColor && (w["--p-border-color"] = a.borderColor), w;
|
|
6611
6611
|
});
|
|
6612
|
-
return (w, H) => (h(),
|
|
6612
|
+
return (w, H) => (h(), F(d(Wi), xt({
|
|
6613
6613
|
ref_key: "input",
|
|
6614
6614
|
ref: p,
|
|
6615
6615
|
modelValue: s.value,
|
|
@@ -6632,7 +6632,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
6632
6632
|
onBlur: H[1] || (H[1] = (G) => w.$emit("blur", s.value)),
|
|
6633
6633
|
onFocus: H[2] || (H[2] = (G) => w.$emit("focus", s.value)),
|
|
6634
6634
|
onClear: H[3] || (H[3] = (G) => w.$emit("clear"))
|
|
6635
|
-
}),
|
|
6635
|
+
}), Ls({
|
|
6636
6636
|
before: C(() => [
|
|
6637
6637
|
D(w.$slots, "before", {}, () => [
|
|
6638
6638
|
D(w.$slots, "default", {}, void 0, !0)
|
|
@@ -6726,7 +6726,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
6726
6726
|
["modelValue", "persistent", "maximized", "transition-show", "transition-hide", "onUpdate:modelValue"].includes(x) || (p[x] = f[x]);
|
|
6727
6727
|
return p;
|
|
6728
6728
|
});
|
|
6729
|
-
return (p, x) => (h(),
|
|
6729
|
+
return (p, x) => (h(), F(d(Fd), xt({
|
|
6730
6730
|
modelValue: d(o),
|
|
6731
6731
|
"onUpdate:modelValue": x[0] || (x[0] = (T) => Le(o) ? o.value = T : null)
|
|
6732
6732
|
}, d(m), {
|
|
@@ -6735,7 +6735,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
6735
6735
|
"transition-show": t.transitionShow,
|
|
6736
6736
|
"transition-hide": t.transitionHide,
|
|
6737
6737
|
"onUpdate:modelValue": r
|
|
6738
|
-
}),
|
|
6738
|
+
}), Ls({
|
|
6739
6739
|
default: C(() => [
|
|
6740
6740
|
D(p.$slots, "default")
|
|
6741
6741
|
]),
|
|
@@ -6771,7 +6771,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
6771
6771
|
} : void 0
|
|
6772
6772
|
]), 1040, ["modelValue", "persistent", "maximized", "transition-show", "transition-hide"]));
|
|
6773
6773
|
}
|
|
6774
|
-
}), up = { class: "q-mb-md" }, dp = { class: "text-subtitle1 text-weight-medium text-grey-9" }, cp = { class: "text-caption text-grey-6 q-mt-xs" },
|
|
6774
|
+
}), up = { class: "q-mb-md" }, dp = { class: "text-subtitle1 text-weight-medium text-grey-9" }, cp = { class: "text-caption text-grey-6 q-mt-xs" }, Qs = /* @__PURE__ */ N({
|
|
6775
6775
|
__name: "PContactFormDeleteDialog",
|
|
6776
6776
|
props: /* @__PURE__ */ Be({
|
|
6777
6777
|
title: { type: String, default: "Удалить элемент?" },
|
|
@@ -6784,7 +6784,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
6784
6784
|
emits: /* @__PURE__ */ Be(["confirm"], ["update:modelValue"]),
|
|
6785
6785
|
setup(t) {
|
|
6786
6786
|
const e = ei, n = Dt(t, "modelValue");
|
|
6787
|
-
return (i, s) => (h(),
|
|
6787
|
+
return (i, s) => (h(), F(ki, {
|
|
6788
6788
|
modelValue: n.value,
|
|
6789
6789
|
"onUpdate:modelValue": s[1] || (s[1] = (o) => n.value = o),
|
|
6790
6790
|
persistent: ""
|
|
@@ -6792,7 +6792,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
6792
6792
|
default: C(() => [
|
|
6793
6793
|
y(d(Jt), { style: { width: "340px", "max-width": "90vw" } }, {
|
|
6794
6794
|
default: C(() => [
|
|
6795
|
-
y(d(
|
|
6795
|
+
y(d($t), { class: "column items-center q-pt-xl q-pb-sm text-center" }, {
|
|
6796
6796
|
default: C(() => [
|
|
6797
6797
|
v("div", up, [
|
|
6798
6798
|
y(d(ue), {
|
|
@@ -6834,7 +6834,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
6834
6834
|
_: 1
|
|
6835
6835
|
}, 8, ["modelValue"]));
|
|
6836
6836
|
}
|
|
6837
|
-
}), fp = { class: "q-mr-md" }, hp = { class: "text-subtitle1 text-weight-medium text-grey-9" },
|
|
6837
|
+
}), fp = { class: "q-mr-md" }, hp = { class: "text-subtitle1 text-weight-medium text-grey-9" }, Zs = /* @__PURE__ */ N({
|
|
6838
6838
|
__name: "PContactFormEditDialog",
|
|
6839
6839
|
props: /* @__PURE__ */ Be({
|
|
6840
6840
|
icon: { type: String, default: "edit" },
|
|
@@ -6847,7 +6847,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
6847
6847
|
emits: /* @__PURE__ */ Be(["save"], ["update:modelValue"]),
|
|
6848
6848
|
setup(t) {
|
|
6849
6849
|
const e = ei, n = Dt(t, "modelValue");
|
|
6850
|
-
return (i, s) => (h(),
|
|
6850
|
+
return (i, s) => (h(), F(ki, {
|
|
6851
6851
|
modelValue: n.value,
|
|
6852
6852
|
"onUpdate:modelValue": s[1] || (s[1] = (o) => n.value = o),
|
|
6853
6853
|
persistent: ""
|
|
@@ -6855,7 +6855,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
6855
6855
|
default: C(() => [
|
|
6856
6856
|
y(d(Jt), { style: { width: "380px", "max-width": "90vw" } }, {
|
|
6857
6857
|
default: C(() => [
|
|
6858
|
-
y(d(
|
|
6858
|
+
y(d($t), { class: "row items-center q-pb-none" }, {
|
|
6859
6859
|
default: C(() => [
|
|
6860
6860
|
v("div", fp, [
|
|
6861
6861
|
y(Ce, {
|
|
@@ -6883,7 +6883,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
6883
6883
|
]),
|
|
6884
6884
|
_: 1
|
|
6885
6885
|
}),
|
|
6886
|
-
y(d(
|
|
6886
|
+
y(d($t), { class: "q-pt-md" }, {
|
|
6887
6887
|
default: C(() => [
|
|
6888
6888
|
D(i.$slots, "default")
|
|
6889
6889
|
]),
|
|
@@ -6966,7 +6966,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
6966
6966
|
} finally {
|
|
6967
6967
|
f.value = !1;
|
|
6968
6968
|
}
|
|
6969
|
-
},
|
|
6969
|
+
}, q = (I) => {
|
|
6970
6970
|
x.value = I, p.value = !0;
|
|
6971
6971
|
}, k = async () => {
|
|
6972
6972
|
var I, w;
|
|
@@ -6989,7 +6989,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
6989
6989
|
color: "primary"
|
|
6990
6990
|
}),
|
|
6991
6991
|
v("span", vp, j(d(n).emailsTitle), 1),
|
|
6992
|
-
d(i).length > 0 ? (h(),
|
|
6992
|
+
d(i).length > 0 ? (h(), F(Xs, {
|
|
6993
6993
|
key: 0,
|
|
6994
6994
|
rounded: "",
|
|
6995
6995
|
color: "primary"
|
|
@@ -7012,7 +7012,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
7012
7012
|
onClick: M
|
|
7013
7013
|
}, null, 8, ["loading"])
|
|
7014
7014
|
]),
|
|
7015
|
-
d(i).length > 0 ? (h(),
|
|
7015
|
+
d(i).length > 0 ? (h(), F(tl, {
|
|
7016
7016
|
key: 0,
|
|
7017
7017
|
name: "list",
|
|
7018
7018
|
tag: "div",
|
|
@@ -7020,7 +7020,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
7020
7020
|
}, {
|
|
7021
7021
|
default: C(() => [
|
|
7022
7022
|
(h(!0), S(Q, null, ve(d(i), (H, G) => {
|
|
7023
|
-
var ye, Ve, De, Ze,
|
|
7023
|
+
var ye, Ve, De, Ze, kt, Ft;
|
|
7024
7024
|
return h(), S("div", {
|
|
7025
7025
|
key: ((Ve = (ye = t.adapter).emailId) == null ? void 0 : Ve.call(ye, H)) ?? G,
|
|
7026
7026
|
class: he(["row items-center justify-between q-pa-sm bg-grey-1 rounded-borders", I.$q.dark.isActive ? "" : "hover-item"]),
|
|
@@ -7034,7 +7034,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
7034
7034
|
}),
|
|
7035
7035
|
v("div", bp, [
|
|
7036
7036
|
v("div", wp, j(t.adapter.emailValue(H)), 1),
|
|
7037
|
-
(Ze = (De = t.adapter).emailDescription) != null && Ze.call(De, H) ? (h(), S("div", Sp, j((Ft = (
|
|
7037
|
+
(Ze = (De = t.adapter).emailDescription) != null && Ze.call(De, H) ? (h(), S("div", Sp, j((Ft = (kt = t.adapter).emailDescription) == null ? void 0 : Ft.call(kt, H)), 1)) : W("", !0)
|
|
7038
7038
|
])
|
|
7039
7039
|
]),
|
|
7040
7040
|
v("div", Cp, [
|
|
@@ -7076,7 +7076,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
7076
7076
|
]),
|
|
7077
7077
|
_: 1
|
|
7078
7078
|
}, 8, ["onClick"]),
|
|
7079
|
-
G >= t.presetted ? (h(),
|
|
7079
|
+
G >= t.presetted ? (h(), F(Ce, {
|
|
7080
7080
|
key: 0,
|
|
7081
7081
|
flat: "",
|
|
7082
7082
|
round: "",
|
|
@@ -7084,7 +7084,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
7084
7084
|
icon: "delete",
|
|
7085
7085
|
size: "sm",
|
|
7086
7086
|
color: "negative",
|
|
7087
|
-
onClick: (_e) =>
|
|
7087
|
+
onClick: (_e) => q(G)
|
|
7088
7088
|
}, {
|
|
7089
7089
|
default: C(() => [
|
|
7090
7090
|
y(At, null, {
|
|
@@ -7120,7 +7120,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
7120
7120
|
onClick: M
|
|
7121
7121
|
}, null, 8, ["loading"])
|
|
7122
7122
|
])),
|
|
7123
|
-
y(
|
|
7123
|
+
y(Zs, {
|
|
7124
7124
|
modelValue: d(s),
|
|
7125
7125
|
"onUpdate:modelValue": w[2] || (w[2] = (H) => Le(s) ? s.value = H : null),
|
|
7126
7126
|
icon: "email",
|
|
@@ -7129,7 +7129,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
7129
7129
|
onSave: O
|
|
7130
7130
|
}, {
|
|
7131
7131
|
default: C(() => [
|
|
7132
|
-
d(r) ? (h(),
|
|
7132
|
+
d(r) ? (h(), F(Ot, {
|
|
7133
7133
|
key: 0,
|
|
7134
7134
|
modelValue: d(l),
|
|
7135
7135
|
"onUpdate:modelValue": w[0] || (w[0] = (H) => Le(l) ? l.value = H : null),
|
|
@@ -7154,7 +7154,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
7154
7154
|
]),
|
|
7155
7155
|
_: 1
|
|
7156
7156
|
}, 8, ["modelValue", "rules"])) : W("", !0),
|
|
7157
|
-
d(r) ? (h(),
|
|
7157
|
+
d(r) ? (h(), F(Ot, {
|
|
7158
7158
|
key: 1,
|
|
7159
7159
|
modelValue: d(a),
|
|
7160
7160
|
"onUpdate:modelValue": w[1] || (w[1] = (H) => Le(a) ? a.value = H : null),
|
|
@@ -7174,7 +7174,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
7174
7174
|
]),
|
|
7175
7175
|
_: 1
|
|
7176
7176
|
}, 8, ["modelValue", "saving"]),
|
|
7177
|
-
y(
|
|
7177
|
+
y(Qs, {
|
|
7178
7178
|
modelValue: d(p),
|
|
7179
7179
|
"onUpdate:modelValue": w[3] || (w[3] = (H) => Le(p) ? p.value = H : null),
|
|
7180
7180
|
title: "Удалить email адрес?",
|
|
@@ -7233,7 +7233,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
7233
7233
|
} finally {
|
|
7234
7234
|
f.value = !1;
|
|
7235
7235
|
}
|
|
7236
|
-
},
|
|
7236
|
+
}, q = (I) => {
|
|
7237
7237
|
x.value = I, p.value = !0;
|
|
7238
7238
|
}, k = async () => {
|
|
7239
7239
|
var I, w;
|
|
@@ -7256,7 +7256,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
7256
7256
|
color: "primary"
|
|
7257
7257
|
}),
|
|
7258
7258
|
v("span", Rp, j(d(n).phonesTitle), 1),
|
|
7259
|
-
d(i).length > 0 ? (h(),
|
|
7259
|
+
d(i).length > 0 ? (h(), F(Xs, {
|
|
7260
7260
|
key: 0,
|
|
7261
7261
|
rounded: "",
|
|
7262
7262
|
color: "primary"
|
|
@@ -7279,7 +7279,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
7279
7279
|
onClick: M
|
|
7280
7280
|
}, null, 8, ["loading"])
|
|
7281
7281
|
]),
|
|
7282
|
-
d(i).length > 0 ? (h(),
|
|
7282
|
+
d(i).length > 0 ? (h(), F(tl, {
|
|
7283
7283
|
key: 0,
|
|
7284
7284
|
name: "list",
|
|
7285
7285
|
tag: "div",
|
|
@@ -7287,7 +7287,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
7287
7287
|
}, {
|
|
7288
7288
|
default: C(() => [
|
|
7289
7289
|
(h(!0), S(Q, null, ve(d(i), (H, G) => {
|
|
7290
|
-
var ye, Ve, De, Ze,
|
|
7290
|
+
var ye, Ve, De, Ze, kt, Ft;
|
|
7291
7291
|
return h(), S("div", {
|
|
7292
7292
|
key: ((Ve = (ye = t.adapter).phoneId) == null ? void 0 : Ve.call(ye, H)) ?? G,
|
|
7293
7293
|
class: he(["row items-center justify-between q-pa-sm bg-grey-1 rounded-borders", I.$q.dark.isActive ? "" : "hover-item"]),
|
|
@@ -7301,7 +7301,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
7301
7301
|
}),
|
|
7302
7302
|
v("div", Ap, [
|
|
7303
7303
|
v("div", Ep, j(t.adapter.phoneNumber(H)), 1),
|
|
7304
|
-
(Ze = (De = t.adapter).phoneDescription) != null && Ze.call(De, H) ? (h(), S("div", Op, j((Ft = (
|
|
7304
|
+
(Ze = (De = t.adapter).phoneDescription) != null && Ze.call(De, H) ? (h(), S("div", Op, j((Ft = (kt = t.adapter).phoneDescription) == null ? void 0 : Ft.call(kt, H)), 1)) : W("", !0)
|
|
7305
7305
|
])
|
|
7306
7306
|
]),
|
|
7307
7307
|
v("div", zp, [
|
|
@@ -7343,7 +7343,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
7343
7343
|
]),
|
|
7344
7344
|
_: 1
|
|
7345
7345
|
}, 8, ["onClick"]),
|
|
7346
|
-
G >= t.presetted ? (h(),
|
|
7346
|
+
G >= t.presetted ? (h(), F(Ce, {
|
|
7347
7347
|
key: 0,
|
|
7348
7348
|
flat: "",
|
|
7349
7349
|
round: "",
|
|
@@ -7351,7 +7351,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
7351
7351
|
icon: "delete",
|
|
7352
7352
|
size: "sm",
|
|
7353
7353
|
color: "negative",
|
|
7354
|
-
onClick: (_e) =>
|
|
7354
|
+
onClick: (_e) => q(G)
|
|
7355
7355
|
}, {
|
|
7356
7356
|
default: C(() => [
|
|
7357
7357
|
y(At, null, {
|
|
@@ -7387,7 +7387,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
7387
7387
|
onClick: M
|
|
7388
7388
|
}, null, 8, ["loading"])
|
|
7389
7389
|
])),
|
|
7390
|
-
y(
|
|
7390
|
+
y(Zs, {
|
|
7391
7391
|
modelValue: d(s),
|
|
7392
7392
|
"onUpdate:modelValue": w[2] || (w[2] = (H) => Le(s) ? s.value = H : null),
|
|
7393
7393
|
icon: "phone",
|
|
@@ -7396,7 +7396,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
7396
7396
|
onSave: O
|
|
7397
7397
|
}, {
|
|
7398
7398
|
default: C(() => [
|
|
7399
|
-
d(r) ? (h(),
|
|
7399
|
+
d(r) ? (h(), F(Ot, {
|
|
7400
7400
|
key: 0,
|
|
7401
7401
|
modelValue: d(l),
|
|
7402
7402
|
"onUpdate:modelValue": w[0] || (w[0] = (H) => Le(l) ? l.value = H : null),
|
|
@@ -7418,7 +7418,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
7418
7418
|
]),
|
|
7419
7419
|
_: 1
|
|
7420
7420
|
}, 8, ["modelValue", "mask", "rules"])) : W("", !0),
|
|
7421
|
-
d(r) && d(o) >= t.presetted ? (h(),
|
|
7421
|
+
d(r) && d(o) >= t.presetted ? (h(), F(Ot, {
|
|
7422
7422
|
key: 1,
|
|
7423
7423
|
modelValue: d(a),
|
|
7424
7424
|
"onUpdate:modelValue": w[1] || (w[1] = (H) => Le(a) ? a.value = H : null),
|
|
@@ -7438,7 +7438,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
7438
7438
|
]),
|
|
7439
7439
|
_: 1
|
|
7440
7440
|
}, 8, ["modelValue", "saving"]),
|
|
7441
|
-
y(
|
|
7441
|
+
y(Qs, {
|
|
7442
7442
|
modelValue: d(p),
|
|
7443
7443
|
"onUpdate:modelValue": w[3] || (w[3] = (H) => Le(p) ? p.value = H : null),
|
|
7444
7444
|
title: "Удалить телефонный номер?",
|
|
@@ -7466,7 +7466,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
7466
7466
|
const c = o.value;
|
|
7467
7467
|
c && (await navigator.clipboard.writeText(c), X.UI.Notify.Success(n.value.copied));
|
|
7468
7468
|
};
|
|
7469
|
-
return (c, f) => (h(),
|
|
7469
|
+
return (c, f) => (h(), F(d(Jt), {
|
|
7470
7470
|
flat: "",
|
|
7471
7471
|
bordered: "",
|
|
7472
7472
|
class: "contact-form-card",
|
|
@@ -7492,7 +7492,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
7492
7492
|
color: "primary"
|
|
7493
7493
|
}),
|
|
7494
7494
|
v("span", Bp, j(t.title), 1),
|
|
7495
|
-
d(i).length + d(s).length > 0 ? (h(),
|
|
7495
|
+
d(i).length + d(s).length > 0 ? (h(), F(Xs, {
|
|
7496
7496
|
key: 0,
|
|
7497
7497
|
outline: "",
|
|
7498
7498
|
color: "primary"
|
|
@@ -7509,7 +7509,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
7509
7509
|
onClick: f[0] || (f[0] = Fe(() => {
|
|
7510
7510
|
}, ["stop"]))
|
|
7511
7511
|
}, [
|
|
7512
|
-
d(o) ? (h(),
|
|
7512
|
+
d(o) ? (h(), F(Ce, {
|
|
7513
7513
|
key: 0,
|
|
7514
7514
|
flat: "",
|
|
7515
7515
|
dense: "",
|
|
@@ -7535,7 +7535,7 @@ const Gs = /* @__PURE__ */ N({
|
|
|
7535
7535
|
default: C(() => [
|
|
7536
7536
|
tt(v("div", null, [
|
|
7537
7537
|
y(d(Bo)),
|
|
7538
|
-
y(d(
|
|
7538
|
+
y(d($t), { class: "q-pt-xs q-pb-md q-px-md" }, {
|
|
7539
7539
|
default: C(() => [
|
|
7540
7540
|
y(Ti, {
|
|
7541
7541
|
contact: t.contact,
|
|
@@ -7653,14 +7653,14 @@ const Gs = /* @__PURE__ */ N({
|
|
|
7653
7653
|
}
|
|
7654
7654
|
}), iu = /* @__PURE__ */ Y(Yp, [["__scopeId", "data-v-3747c197"]]);
|
|
7655
7655
|
function su(t) {
|
|
7656
|
-
t.component("PContactForm", Kl), t.component("PContactFormDeleteDialog",
|
|
7656
|
+
t.component("PContactForm", Kl), t.component("PContactFormDeleteDialog", Qs), t.component("PContactFormEdit", eu), t.component("PContactFormEditDialog", Zs), t.component("PContactFormEditEmails", tu), t.component("PContactFormEditPhones", nu), t.component("PContactFormView", iu), t.component("PContactFormViewEmails", $i), t.component("PContactFormViewPhones", Ti);
|
|
7657
7657
|
}
|
|
7658
7658
|
const Xp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7659
7659
|
__proto__: null,
|
|
7660
7660
|
PContactForm: Kl,
|
|
7661
|
-
PContactFormDeleteDialog:
|
|
7661
|
+
PContactFormDeleteDialog: Qs,
|
|
7662
7662
|
PContactFormEdit: eu,
|
|
7663
|
-
PContactFormEditDialog:
|
|
7663
|
+
PContactFormEditDialog: Zs,
|
|
7664
7664
|
PContactFormEditEmails: tu,
|
|
7665
7665
|
PContactFormEditPhones: nu,
|
|
7666
7666
|
PContactFormView: iu,
|
|
@@ -7720,7 +7720,7 @@ var Qp = Object.defineProperty, es = (t, e, n, i) => {
|
|
|
7720
7720
|
(r = t[o]) && (s = r(e, n, s) || s);
|
|
7721
7721
|
return s && Qp(e, n, s), s;
|
|
7722
7722
|
};
|
|
7723
|
-
const Zn = class
|
|
7723
|
+
const Zn = class Cs {
|
|
7724
7724
|
constructor(e) {
|
|
7725
7725
|
u(this, "id");
|
|
7726
7726
|
u(this, "name", "");
|
|
@@ -7752,7 +7752,7 @@ const Zn = class ws {
|
|
|
7752
7752
|
return this.answerVariants.filter((e) => e.isMatrixY);
|
|
7753
7753
|
}
|
|
7754
7754
|
static Create(e) {
|
|
7755
|
-
const n = new
|
|
7755
|
+
const n = new Cs();
|
|
7756
7756
|
return n.id = X.H.Id.UUID(), n.formSectionId = e, n;
|
|
7757
7757
|
}
|
|
7758
7758
|
getRegisterPropertyRadioOriginalValue(e) {
|
|
@@ -7810,7 +7810,7 @@ const Zn = class ws {
|
|
|
7810
7810
|
return e.name = "Вариант", e.order = this.answerVariants.length, this.answerVariants.push(e), e;
|
|
7811
7811
|
}
|
|
7812
7812
|
addChild() {
|
|
7813
|
-
const e =
|
|
7813
|
+
const e = Cs.Create();
|
|
7814
7814
|
return e.parentId = this.id, e.name = "Вопрос", e.order = this.children.length, this.children.push(e), e;
|
|
7815
7815
|
}
|
|
7816
7816
|
addFieldVariant() {
|
|
@@ -7818,7 +7818,7 @@ const Zn = class ws {
|
|
|
7818
7818
|
return this.fieldVariants.push(e), e;
|
|
7819
7819
|
}
|
|
7820
7820
|
copy() {
|
|
7821
|
-
const e = new
|
|
7821
|
+
const e = new Cs(this);
|
|
7822
7822
|
return e.id = X.H.Id.UUID(), e.answerVariants.forEach((n) => {
|
|
7823
7823
|
n.id = X.H.Id.UUID(), n.fieldId = e.id;
|
|
7824
7824
|
}), e.children = e.children.map((n) => {
|
|
@@ -7842,7 +7842,7 @@ es([
|
|
|
7842
7842
|
es([
|
|
7843
7843
|
X.H.Classes.GetClassConstructor(Zn)
|
|
7844
7844
|
], Zn.prototype, "children");
|
|
7845
|
-
let
|
|
7845
|
+
let Js = Zn;
|
|
7846
7846
|
class Mr {
|
|
7847
7847
|
constructor(e) {
|
|
7848
7848
|
u(this, "id");
|
|
@@ -7863,7 +7863,7 @@ class Jn {
|
|
|
7863
7863
|
}
|
|
7864
7864
|
static Create(e, n) {
|
|
7865
7865
|
const i = new Jn();
|
|
7866
|
-
return i.id =
|
|
7866
|
+
return i.id = Dn(), i.fieldFillId = e, i.answerVariantId = n, i;
|
|
7867
7867
|
}
|
|
7868
7868
|
static GetClassName() {
|
|
7869
7869
|
return "selectedAnswerVariant";
|
|
@@ -7874,7 +7874,7 @@ var Zp = Object.defineProperty, Rr = (t, e, n, i) => {
|
|
|
7874
7874
|
(r = t[o]) && (s = r(e, n, s) || s);
|
|
7875
7875
|
return s && Zp(e, n, s), s;
|
|
7876
7876
|
};
|
|
7877
|
-
const
|
|
7877
|
+
const Ks = class Qo {
|
|
7878
7878
|
constructor(e) {
|
|
7879
7879
|
u(this, "id");
|
|
7880
7880
|
u(this, "valueString");
|
|
@@ -7900,7 +7900,7 @@ const Zs = class Qo {
|
|
|
7900
7900
|
}
|
|
7901
7901
|
static Create(e, n) {
|
|
7902
7902
|
const i = new Qo();
|
|
7903
|
-
return i.id =
|
|
7903
|
+
return i.id = Dn(), i.fieldId = e.id, i.formFillId = n, i.order = e.order, i.valueNumber = 0, i.valueString = "", i.valueDate = /* @__PURE__ */ new Date(), i;
|
|
7904
7904
|
}
|
|
7905
7905
|
setString(e) {
|
|
7906
7906
|
this.valueString = e, this.valueString && (this.filled = this.valueString.length > 0);
|
|
@@ -7922,7 +7922,7 @@ const Zs = class Qo {
|
|
|
7922
7922
|
}
|
|
7923
7923
|
addFile() {
|
|
7924
7924
|
const e = new Mr();
|
|
7925
|
-
return e.id =
|
|
7925
|
+
return e.id = Dn(), e.answerId = this.id, this.answerFiles.push(e), e;
|
|
7926
7926
|
}
|
|
7927
7927
|
getFileInfos() {
|
|
7928
7928
|
const e = [];
|
|
@@ -7952,14 +7952,14 @@ const Zs = class Qo {
|
|
|
7952
7952
|
};
|
|
7953
7953
|
Rr([
|
|
7954
7954
|
X.H.Classes.IsDate
|
|
7955
|
-
],
|
|
7955
|
+
], Ks.prototype, "valueDate");
|
|
7956
7956
|
Rr([
|
|
7957
7957
|
X.H.Classes.GetClassConstructor(Jn)
|
|
7958
|
-
],
|
|
7958
|
+
], Ks.prototype, "selectedAnswerVariants");
|
|
7959
7959
|
Rr([
|
|
7960
7960
|
X.H.Classes.GetClassConstructor(Mr)
|
|
7961
|
-
],
|
|
7962
|
-
let ci =
|
|
7961
|
+
], Ks.prototype, "answerFiles");
|
|
7962
|
+
let ci = Ks;
|
|
7963
7963
|
class Jp {
|
|
7964
7964
|
constructor(e) {
|
|
7965
7965
|
u(this, "id");
|
|
@@ -8001,7 +8001,7 @@ const ru = class au {
|
|
|
8001
8001
|
return n.id = X.H.Id.UUID(), n.formId = e, n;
|
|
8002
8002
|
}
|
|
8003
8003
|
addField() {
|
|
8004
|
-
const e =
|
|
8004
|
+
const e = Js.Create(this.id);
|
|
8005
8005
|
return this.fields.push(e), this.sortFields(), e;
|
|
8006
8006
|
}
|
|
8007
8007
|
sortFields() {
|
|
@@ -8032,9 +8032,9 @@ const ru = class au {
|
|
|
8032
8032
|
// }
|
|
8033
8033
|
};
|
|
8034
8034
|
eg([
|
|
8035
|
-
X.H.Classes.GetClassConstructor(
|
|
8035
|
+
X.H.Classes.GetClassConstructor(Js)
|
|
8036
8036
|
], ru.prototype, "fields");
|
|
8037
|
-
let
|
|
8037
|
+
let eo = ru;
|
|
8038
8038
|
var tg = Object.defineProperty, ng = (t, e, n, i) => {
|
|
8039
8039
|
for (var s = void 0, o = t.length - 1, r; o >= 0; o--)
|
|
8040
8040
|
(r = t[o]) && (s = r(e, n, s) || s);
|
|
@@ -8067,7 +8067,7 @@ const lu = class uu {
|
|
|
8067
8067
|
this.isEdit = e ?? !this.isEdit;
|
|
8068
8068
|
}
|
|
8069
8069
|
addFormSection() {
|
|
8070
|
-
const e =
|
|
8070
|
+
const e = eo.Create(this.id);
|
|
8071
8071
|
return this.formSections.push(e), X.H.Sorter.Sort(this.formSections), e;
|
|
8072
8072
|
}
|
|
8073
8073
|
getFields() {
|
|
@@ -8076,7 +8076,7 @@ const lu = class uu {
|
|
|
8076
8076
|
}
|
|
8077
8077
|
};
|
|
8078
8078
|
ng([
|
|
8079
|
-
X.H.Classes.GetClassConstructor(
|
|
8079
|
+
X.H.Classes.GetClassConstructor(eo)
|
|
8080
8080
|
], lu.prototype, "formSections");
|
|
8081
8081
|
let du = lu;
|
|
8082
8082
|
var ig = Object.defineProperty, sg = (t, e, n, i) => {
|
|
@@ -8164,7 +8164,7 @@ let hu = cu;
|
|
|
8164
8164
|
const og = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8165
8165
|
__proto__: null,
|
|
8166
8166
|
AnswerVariant: Qn,
|
|
8167
|
-
Field:
|
|
8167
|
+
Field: Js,
|
|
8168
8168
|
FieldExample: ou,
|
|
8169
8169
|
FieldFill: ci,
|
|
8170
8170
|
FieldFillFile: Mr,
|
|
@@ -8173,7 +8173,7 @@ const og = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8173
8173
|
FieldVariant: vi,
|
|
8174
8174
|
Form: du,
|
|
8175
8175
|
FormFill: hu,
|
|
8176
|
-
FormSection:
|
|
8176
|
+
FormSection: eo,
|
|
8177
8177
|
SelectedAnswerVariant: Jn
|
|
8178
8178
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
8179
8179
|
let rg = class extends Ye {
|
|
@@ -8190,7 +8190,7 @@ let lg = class extends Ye {
|
|
|
8190
8190
|
const ug = new lg();
|
|
8191
8191
|
let dg = class extends Ye {
|
|
8192
8192
|
constructor() {
|
|
8193
|
-
super(
|
|
8193
|
+
super(Js, "fields");
|
|
8194
8194
|
}
|
|
8195
8195
|
};
|
|
8196
8196
|
const cg = new dg();
|
|
@@ -8202,7 +8202,7 @@ let fg = class extends Ye {
|
|
|
8202
8202
|
const hg = new fg();
|
|
8203
8203
|
let mg = class extends Ye {
|
|
8204
8204
|
constructor() {
|
|
8205
|
-
super(
|
|
8205
|
+
super(eo, "form-sections");
|
|
8206
8206
|
}
|
|
8207
8207
|
};
|
|
8208
8208
|
const pg = new mg();
|
|
@@ -8231,7 +8231,7 @@ const bg = new yg(), wg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
8231
8231
|
C: og,
|
|
8232
8232
|
S: wg
|
|
8233
8233
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
8234
|
-
class
|
|
8234
|
+
class to {
|
|
8235
8235
|
constructor(e) {
|
|
8236
8236
|
u(this, "id");
|
|
8237
8237
|
u(this, "name", "");
|
|
@@ -8290,7 +8290,7 @@ class Ir {
|
|
|
8290
8290
|
this.icon.id || (this.icon.id = Rt.UUID()), this.icon.originalName = e.name, this.icon.file = e.raw;
|
|
8291
8291
|
}
|
|
8292
8292
|
addSubMenu() {
|
|
8293
|
-
this.subMenus.push(new
|
|
8293
|
+
this.subMenus.push(new to());
|
|
8294
8294
|
}
|
|
8295
8295
|
removeSubMenu(e) {
|
|
8296
8296
|
const n = this.subMenus[e].id;
|
|
@@ -8311,12 +8311,12 @@ class Ir {
|
|
|
8311
8311
|
}
|
|
8312
8312
|
}
|
|
8313
8313
|
xg([
|
|
8314
|
-
ge.GetClassConstructor(
|
|
8314
|
+
ge.GetClassConstructor(to)
|
|
8315
8315
|
], Ir.prototype, "subMenus");
|
|
8316
8316
|
const kg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8317
8317
|
__proto__: null,
|
|
8318
8318
|
Menu: Ir,
|
|
8319
|
-
SubMenu:
|
|
8319
|
+
SubMenu: to
|
|
8320
8320
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
8321
8321
|
let $g = class extends X.H.BaseStore {
|
|
8322
8322
|
constructor() {
|
|
@@ -8326,7 +8326,7 @@ let $g = class extends X.H.BaseStore {
|
|
|
8326
8326
|
const Tg = new $g();
|
|
8327
8327
|
let Pg = class extends X.H.BaseStore {
|
|
8328
8328
|
constructor() {
|
|
8329
|
-
super(
|
|
8329
|
+
super(to, "sub-menus");
|
|
8330
8330
|
}
|
|
8331
8331
|
};
|
|
8332
8332
|
const Mg = new Pg(), Rg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -8415,7 +8415,7 @@ gu([
|
|
|
8415
8415
|
gu([
|
|
8416
8416
|
X.H.Classes.GetClassConstructor(Fn)
|
|
8417
8417
|
], Ar.prototype, "slots");
|
|
8418
|
-
let
|
|
8418
|
+
let no = Ar;
|
|
8419
8419
|
var zg = Object.defineProperty, Dg = (t, e, n, i) => {
|
|
8420
8420
|
for (var s = void 0, o = t.length - 1, r; o >= 0; o--)
|
|
8421
8421
|
(r = t[o]) && (s = r(e, n, s) || s);
|
|
@@ -8437,7 +8437,7 @@ const yu = class bu {
|
|
|
8437
8437
|
}
|
|
8438
8438
|
};
|
|
8439
8439
|
Dg([
|
|
8440
|
-
X.H.Classes.GetClassConstructor(
|
|
8440
|
+
X.H.Classes.GetClassConstructor(no)
|
|
8441
8441
|
], yu.prototype, "schedules");
|
|
8442
8442
|
let Er = yu;
|
|
8443
8443
|
class ns {
|
|
@@ -8455,7 +8455,7 @@ class ns {
|
|
|
8455
8455
|
}
|
|
8456
8456
|
const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8457
8457
|
__proto__: null,
|
|
8458
|
-
Schedule:
|
|
8458
|
+
Schedule: no,
|
|
8459
8459
|
ScheduleDay: Er,
|
|
8460
8460
|
SchedulePlace: ns,
|
|
8461
8461
|
ScheduleSession: ts,
|
|
@@ -8559,7 +8559,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8559
8559
|
return Er.Create(void 0, void 0, t);
|
|
8560
8560
|
},
|
|
8561
8561
|
createSchedule(t, e) {
|
|
8562
|
-
return
|
|
8562
|
+
return no.Create(t, e);
|
|
8563
8563
|
},
|
|
8564
8564
|
createSession(t) {
|
|
8565
8565
|
const e = (t == null ? void 0 : t.sessions) || [], n = e[e.length - 1], i = (n == null ? void 0 : n.endTime) || "9:00", s = ts.Create(t == null ? void 0 : t.id);
|
|
@@ -8848,7 +8848,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8848
8848
|
})), r = B(() => ({
|
|
8849
8849
|
...Mu,
|
|
8850
8850
|
...e.factories
|
|
8851
|
-
})), l = (g) => e.slotListOf ? e.slotListOf(g) : (g == null ? void 0 : g.slots) || [], a = (g) => e.nestedSlotListOf ? e.nestedSlotListOf(g) : (g == null ? void 0 : g.slots) || [], c = (g) => (g == null ? void 0 : g.name) || o.value.hall, f = (g) => e.sessionName ? e.sessionName(g) : (g == null ? void 0 : g.name) || `${o.value.session} ${(g == null ? void 0 : g.startTime) || ""}–${(g == null ? void 0 : g.endTime) || ""}`.trim(), m = (g) => e.slotName ? e.slotName(g) : (g == null ? void 0 : g.name) || o.value.slot, p = (g) => e.slotSubtitle ? e.slotSubtitle(g) : "", x = E("grid"), T = E((ra = (oa = e.days) == null ? void 0 : oa[0]) == null ? void 0 : ra.id), A = E(!1), O = E(""), M = E(!1),
|
|
8851
|
+
})), l = (g) => e.slotListOf ? e.slotListOf(g) : (g == null ? void 0 : g.slots) || [], a = (g) => e.nestedSlotListOf ? e.nestedSlotListOf(g) : (g == null ? void 0 : g.slots) || [], c = (g) => (g == null ? void 0 : g.name) || o.value.hall, f = (g) => e.sessionName ? e.sessionName(g) : (g == null ? void 0 : g.name) || `${o.value.session} ${(g == null ? void 0 : g.startTime) || ""}–${(g == null ? void 0 : g.endTime) || ""}`.trim(), m = (g) => e.slotName ? e.slotName(g) : (g == null ? void 0 : g.name) || o.value.slot, p = (g) => e.slotSubtitle ? e.slotSubtitle(g) : "", x = E("grid"), T = E((ra = (oa = e.days) == null ? void 0 : oa[0]) == null ? void 0 : ra.id), A = E(!1), O = E(""), M = E(!1), q = E(!1), k = E(null), I = E(null), w = E(null), H = E(void 0), G = E(null), ye = E(null), Ve = E(!1), De = E(0), Ze = E(null), kt = [
|
|
8852
8852
|
{ label: "5 мин", value: 5 },
|
|
8853
8853
|
{ label: "10 мин", value: 10 },
|
|
8854
8854
|
{ label: "15 мин", value: 15 },
|
|
@@ -8867,15 +8867,15 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8867
8867
|
{ label: o.value.grid, value: "grid", icon: "calendar_view_week" },
|
|
8868
8868
|
{ label: o.value.list, value: "list", icon: "view_list" }
|
|
8869
8869
|
]), Xt = (g, b, $) => {
|
|
8870
|
-
const
|
|
8871
|
-
return b.includes(
|
|
8870
|
+
const L = Number(localStorage.getItem(g));
|
|
8871
|
+
return b.includes(L) ? L : $;
|
|
8872
8872
|
}, Lt = E(
|
|
8873
|
-
Xt(Oa,
|
|
8873
|
+
Xt(Oa, kt.map((g) => g.value), jv)
|
|
8874
8874
|
), Bt = E(
|
|
8875
8875
|
Xt(za, Ft.map((g) => g.value), Wv)
|
|
8876
8876
|
), Ht = B(() => Lt.value);
|
|
8877
8877
|
ze(Lt, (g) => localStorage.setItem(Oa, String(g))), ze(Bt, (g) => localStorage.setItem(za, String(g)));
|
|
8878
|
-
const
|
|
8878
|
+
const kn = B(() => Math.max(Ue.value.total / 60 * Bt.value, 360)), qt = B(() => kn.value + "px"), Re = B(
|
|
8879
8879
|
() => [...e.days || []].sort(
|
|
8880
8880
|
(g, b) => new Date(g.date).getTime() - new Date(b.date).getTime()
|
|
8881
8881
|
)
|
|
@@ -8900,42 +8900,42 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8900
8900
|
}, He = async (g, b) => {
|
|
8901
8901
|
b && (g.date = new Date(b), await e.persist.updateDay(g), await e.persist.refresh());
|
|
8902
8902
|
}, ke = (g) => {
|
|
8903
|
-
k.value = g,
|
|
8903
|
+
k.value = g, q.value = !0;
|
|
8904
8904
|
}, ht = async () => {
|
|
8905
8905
|
const g = k.value;
|
|
8906
|
-
|
|
8906
|
+
q.value = !1, k.value = null, await gn(g);
|
|
8907
8907
|
}, gn = async (g) => {
|
|
8908
8908
|
var $;
|
|
8909
8909
|
if (!g)
|
|
8910
8910
|
return;
|
|
8911
|
-
for (const
|
|
8912
|
-
await Tt(
|
|
8911
|
+
for (const L of Xe(g))
|
|
8912
|
+
await Tt(L);
|
|
8913
8913
|
await e.persist.removeDay(g);
|
|
8914
8914
|
const b = (e.days || []).indexOf(g);
|
|
8915
8915
|
b >= 0 && e.days.splice(b, 1), await e.persist.refresh(), T.value = ($ = Re.value[0]) == null ? void 0 : $.id;
|
|
8916
8916
|
}, Ln = async () => {
|
|
8917
8917
|
var Z, re;
|
|
8918
8918
|
const g = Re.value, b = g[g.length - 1], $ = b ? new Date(new Date(b.date).getTime() + 864e5) : /* @__PURE__ */ new Date();
|
|
8919
|
-
let
|
|
8919
|
+
let L;
|
|
8920
8920
|
try {
|
|
8921
|
-
|
|
8921
|
+
L = r.value.createDay($);
|
|
8922
8922
|
} catch {
|
|
8923
8923
|
e.persist.notify("warning", o.value.saveEventFirst);
|
|
8924
8924
|
return;
|
|
8925
8925
|
}
|
|
8926
8926
|
try {
|
|
8927
|
-
await ((re = (Z = e.persist).createDay) == null ? void 0 : re.call(Z,
|
|
8927
|
+
await ((re = (Z = e.persist).createDay) == null ? void 0 : re.call(Z, L));
|
|
8928
8928
|
for (const $e of e.places || [])
|
|
8929
|
-
await
|
|
8929
|
+
await Tn($e, L);
|
|
8930
8930
|
await e.persist.refresh();
|
|
8931
8931
|
} catch {
|
|
8932
8932
|
e.persist.notify("negative", o.value.createFailed);
|
|
8933
8933
|
return;
|
|
8934
8934
|
}
|
|
8935
|
-
T.value =
|
|
8935
|
+
T.value = L.id, e.persist.notify("positive", `${o.value.dayAdded}: ${st(L)}`);
|
|
8936
8936
|
}, Xe = (g) => ((g == null ? void 0 : g.schedules) || []).slice().sort((b, $) => {
|
|
8937
|
-
const
|
|
8938
|
-
return
|
|
8937
|
+
const L = Qt(b), Z = Qt($);
|
|
8938
|
+
return L.localeCompare(Z, "ru");
|
|
8939
8939
|
}), Qt = (g) => {
|
|
8940
8940
|
if (e.hallName)
|
|
8941
8941
|
return e.hallName(g);
|
|
@@ -8943,10 +8943,10 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8943
8943
|
return (b == null ? void 0 : b.name) || o.value.hall;
|
|
8944
8944
|
}, ot = () => {
|
|
8945
8945
|
A.value = !0;
|
|
8946
|
-
},
|
|
8946
|
+
}, $n = B(() => {
|
|
8947
8947
|
const g = te.value, b = new Set(((g == null ? void 0 : g.schedules) || []).map(($) => $.placeId));
|
|
8948
8948
|
return (e.places || []).filter(($) => !b.has($.id));
|
|
8949
|
-
}),
|
|
8949
|
+
}), Tn = async (g, b) => {
|
|
8950
8950
|
if (e.persist.bindPlaceToDay) {
|
|
8951
8951
|
await e.persist.bindPlaceToDay(g, b, r.value.createSchedule);
|
|
8952
8952
|
return;
|
|
@@ -8965,14 +8965,14 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8965
8965
|
return;
|
|
8966
8966
|
}
|
|
8967
8967
|
try {
|
|
8968
|
-
await
|
|
8968
|
+
await Tn(g, b);
|
|
8969
8969
|
} catch ($) {
|
|
8970
8970
|
console.warn("addPlaceToDay failed:", $), e.persist.notify("negative", o.value.createFailed), await e.persist.refresh();
|
|
8971
8971
|
return;
|
|
8972
8972
|
}
|
|
8973
8973
|
await e.persist.refresh(), T.value = b.id;
|
|
8974
8974
|
}, pe = async () => {
|
|
8975
|
-
var $,
|
|
8975
|
+
var $, L, Z;
|
|
8976
8976
|
const g = ($ = O.value) == null ? void 0 : $.trim();
|
|
8977
8977
|
if (!g) {
|
|
8978
8978
|
e.persist.notify("warning", o.value.enterName);
|
|
@@ -8980,7 +8980,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8980
8980
|
}
|
|
8981
8981
|
const b = r.value.createPlace(g);
|
|
8982
8982
|
try {
|
|
8983
|
-
if (!await ((Z = (
|
|
8983
|
+
if (!await ((Z = (L = e.persist).createPlace) == null ? void 0 : Z.call(L, b))) {
|
|
8984
8984
|
e.persist.notify("negative", o.value.hallCreateFailed);
|
|
8985
8985
|
return;
|
|
8986
8986
|
}
|
|
@@ -9008,24 +9008,24 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9008
9008
|
const b = nn.get(g), $ = l(g);
|
|
9009
9009
|
if (b && b.src === $)
|
|
9010
9010
|
return b.list;
|
|
9011
|
-
const
|
|
9011
|
+
const L = new Set((g.sessions || []).map((re) => re.id)), Z = $.filter((re) => !re.sessionId || !L.has(re.sessionId));
|
|
9012
9012
|
return nn.set(g, { src: $, list: Z }), Z;
|
|
9013
9013
|
}, ni = (g) => [
|
|
9014
9014
|
...n.value ? (g.sessions || []).map((b) => ({ kind: "session", item: b })) : [],
|
|
9015
9015
|
...Pi(g).map((b) => ({ kind: "slot", item: b }))
|
|
9016
|
-
],
|
|
9016
|
+
], ao = (g) => n.value ? (g.sessions || []).map((b) => ({ kind: "session", item: b })) : [], Ue = B(() => {
|
|
9017
9017
|
var b, $;
|
|
9018
|
-
const g = (((b = te.value) == null ? void 0 : b.schedules) || []).flatMap((
|
|
9019
|
-
for (const
|
|
9020
|
-
for (const Z of
|
|
9018
|
+
const g = (((b = te.value) == null ? void 0 : b.schedules) || []).flatMap((L) => ni(L));
|
|
9019
|
+
for (const L of (($ = te.value) == null ? void 0 : $.schedules) || [])
|
|
9020
|
+
for (const Z of L.sessions || [])
|
|
9021
9021
|
g.push(...Pt(Z).map((re) => ({ kind: "slot", item: re })));
|
|
9022
9022
|
return wu(g);
|
|
9023
|
-
}),
|
|
9023
|
+
}), lo = B(() => {
|
|
9024
9024
|
const g = [];
|
|
9025
9025
|
for (let b = Ue.value.start; b <= Ue.value.end; b += 60)
|
|
9026
9026
|
g.push({ min: b, label: pt(b) });
|
|
9027
9027
|
return g;
|
|
9028
|
-
}),
|
|
9028
|
+
}), uo = B(() => {
|
|
9029
9029
|
const g = [];
|
|
9030
9030
|
for (let b = Ue.value.start + 30; b < Ue.value.end; b += 60)
|
|
9031
9031
|
g.push({ min: b, label: pt(b) });
|
|
@@ -9048,16 +9048,16 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9048
9048
|
if (!g)
|
|
9049
9049
|
return 0;
|
|
9050
9050
|
const b = { startTime: G.value.time, endTime: R.value }, $ = (Z = G.value.session) == null ? void 0 : Z.id;
|
|
9051
|
-
let
|
|
9051
|
+
let L = 0;
|
|
9052
9052
|
for (const _ of ni(g))
|
|
9053
|
-
_.item.id !== ((re = w.value) == null ? void 0 : re.id) && ((($e = w.value) == null ? void 0 : $e.kind) === "slot" && _.kind === "session" && _.item.id === $ || Fi(b, _.item) &&
|
|
9053
|
+
_.item.id !== ((re = w.value) == null ? void 0 : re.id) && ((($e = w.value) == null ? void 0 : $e.kind) === "slot" && _.kind === "session" && _.item.id === $ || Fi(b, _.item) && L++);
|
|
9054
9054
|
if (((We = w.value) == null ? void 0 : We.kind) === "slot" && G.value.session)
|
|
9055
9055
|
for (const _ of Pt(G.value.session))
|
|
9056
|
-
_.id !== ((Ke = w.value) == null ? void 0 : Ke.id) && Fi(b, _) &&
|
|
9057
|
-
return
|
|
9056
|
+
_.id !== ((Ke = w.value) == null ? void 0 : Ke.id) && Fi(b, _) && L++;
|
|
9057
|
+
return L;
|
|
9058
9058
|
}), J = B(() => U.value > 0), de = (g, b) => xu(ni(g), b, Fi), Qe = (g, b) => ku(Pt(g), b, Fi), je = (g, b) => Cu(g, b), be = (g) => {
|
|
9059
|
-
const b = Ue.value, $ = Pe(g.item.startTime),
|
|
9060
|
-
return !isFinite($) || !isFinite(
|
|
9059
|
+
const b = Ue.value, $ = Pe(g.item.startTime), L = Pe(g.item.endTime);
|
|
9060
|
+
return !isFinite($) || !isFinite(L) ? 48 : (L - $) / b.total * kn.value;
|
|
9061
9061
|
}, K = (g) => Tu(be(g)), ne = (g) => {
|
|
9062
9062
|
const b = e.slotName ? e.slotName(g.item) : g.item.name || (g.kind === "session" ? o.value.session : o.value.slot);
|
|
9063
9063
|
if (g.kind === "slot" && K(g) !== "h-full") {
|
|
@@ -9069,9 +9069,9 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9069
9069
|
}, ie = (g, b) => {
|
|
9070
9070
|
const $ = m(g);
|
|
9071
9071
|
if (b !== "h-full") {
|
|
9072
|
-
const
|
|
9073
|
-
if (
|
|
9074
|
-
return `${$} — ${
|
|
9072
|
+
const L = p(g);
|
|
9073
|
+
if (L)
|
|
9074
|
+
return `${$} — ${L}`;
|
|
9075
9075
|
}
|
|
9076
9076
|
return $;
|
|
9077
9077
|
}, se = (g) => {
|
|
@@ -9099,10 +9099,10 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9099
9099
|
[K(g)]: !0
|
|
9100
9100
|
};
|
|
9101
9101
|
}, Ae = E(null), at = (g, b) => {
|
|
9102
|
-
const $ = g.getBoundingClientRect(),
|
|
9103
|
-
return Ue.value.start + Li(
|
|
9102
|
+
const $ = g.getBoundingClientRect(), L = Math.min(Math.max((b - $.top) / $.height, 0), 1);
|
|
9103
|
+
return Ue.value.start + Li(L * Ue.value.total, Ht.value);
|
|
9104
9104
|
}, os = (g, b) => {
|
|
9105
|
-
b.target.closest(".block-actions, .block-resize") || b.button !== 0 || Ve.value || (Ae.value = { gi: g, startX: b.clientX, startY: b.clientY, moved: !1 }, window.addEventListener("pointermove", rs), window.addEventListener("pointerup", Hr), window.addEventListener("pointercancel",
|
|
9105
|
+
b.target.closest(".block-actions, .block-resize") || b.button !== 0 || Ve.value || (Ae.value = { gi: g, startX: b.clientX, startY: b.clientY, moved: !1 }, window.addEventListener("pointermove", rs), window.addEventListener("pointerup", Hr), window.addEventListener("pointercancel", ho), window.addEventListener("keydown", Ur));
|
|
9106
9106
|
}, rs = (g) => {
|
|
9107
9107
|
const b = Ae.value;
|
|
9108
9108
|
if (b) {
|
|
@@ -9118,12 +9118,12 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9118
9118
|
duration: isFinite($) && $ > 0 ? $ : 30
|
|
9119
9119
|
}, document.body.style.userSelect = "none", document.body.style.cursor = "grabbing";
|
|
9120
9120
|
}
|
|
9121
|
-
|
|
9121
|
+
co(g.clientX, g.clientY), hd(g.clientX, g.clientY);
|
|
9122
9122
|
}
|
|
9123
|
-
},
|
|
9123
|
+
}, co = (g, b) => {
|
|
9124
9124
|
var We, Ke;
|
|
9125
|
-
const $ = document.elementFromPoint(g, b),
|
|
9126
|
-
if (!
|
|
9125
|
+
const $ = document.elementFromPoint(g, b), L = $ == null ? void 0 : $.closest(".hall-col"), Z = L == null ? void 0 : L.getAttribute("data-schedule-id");
|
|
9126
|
+
if (!L || !Z) {
|
|
9127
9127
|
H.value = void 0, G.value = null;
|
|
9128
9128
|
return;
|
|
9129
9129
|
}
|
|
@@ -9131,7 +9131,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9131
9131
|
if (!re)
|
|
9132
9132
|
return;
|
|
9133
9133
|
H.value = re.id;
|
|
9134
|
-
const $e = at(
|
|
9134
|
+
const $e = at(L, b);
|
|
9135
9135
|
G.value = {
|
|
9136
9136
|
scheduleId: re.id,
|
|
9137
9137
|
minutes: $e,
|
|
@@ -9151,41 +9151,41 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9151
9151
|
const $ = Ze.value;
|
|
9152
9152
|
if (!$)
|
|
9153
9153
|
return;
|
|
9154
|
-
const
|
|
9155
|
-
b <
|
|
9154
|
+
const L = $.getBoundingClientRect();
|
|
9155
|
+
b < L.top + 48 ? $.scrollTop -= 14 : b > L.bottom - 48 && ($.scrollTop += 14), g < L.left + 48 ? $.scrollLeft -= 14 : g > L.right - 48 && ($.scrollLeft += 14);
|
|
9156
9156
|
}, Hr = (g) => {
|
|
9157
9157
|
md(g);
|
|
9158
9158
|
}, md = async (g) => {
|
|
9159
9159
|
const b = Ae.value;
|
|
9160
|
-
if (
|
|
9160
|
+
if (fo(), Ae.value = null, !b || !b.moved)
|
|
9161
9161
|
return;
|
|
9162
9162
|
De.value = Date.now();
|
|
9163
|
-
const $ = document.elementFromPoint(g.clientX, g.clientY),
|
|
9164
|
-
if (
|
|
9165
|
-
const $e = at(
|
|
9163
|
+
const $ = document.elementFromPoint(g.clientX, g.clientY), L = $ == null ? void 0 : $.closest(".hall-col"), Z = L == null ? void 0 : L.getAttribute("data-schedule-id"), re = Z ? ii(Z) : void 0;
|
|
9164
|
+
if (L && re) {
|
|
9165
|
+
const $e = at(L, g.clientY);
|
|
9166
9166
|
await Wr(re, $e);
|
|
9167
9167
|
}
|
|
9168
9168
|
Vr();
|
|
9169
|
-
},
|
|
9170
|
-
window.removeEventListener("pointermove", rs), window.removeEventListener("pointerup", Hr), window.removeEventListener("pointercancel",
|
|
9169
|
+
}, fo = () => {
|
|
9170
|
+
window.removeEventListener("pointermove", rs), window.removeEventListener("pointerup", Hr), window.removeEventListener("pointercancel", ho), window.removeEventListener("keydown", Ur);
|
|
9171
9171
|
}, Vr = () => {
|
|
9172
9172
|
Ae.value = null, w.value = null, H.value = void 0, G.value = null, ye.value = null, document.body.style.userSelect = "", document.body.style.cursor = "", De.value = Date.now();
|
|
9173
|
-
},
|
|
9174
|
-
|
|
9173
|
+
}, ho = () => {
|
|
9174
|
+
fo(), Vr();
|
|
9175
9175
|
}, Ur = (g) => {
|
|
9176
|
-
g.key === "Escape" &&
|
|
9176
|
+
g.key === "Escape" && ho();
|
|
9177
9177
|
};
|
|
9178
|
-
|
|
9179
|
-
|
|
9178
|
+
qs(() => {
|
|
9179
|
+
fo(), po(), $d(), document.body.style.userSelect = "", document.body.style.cursor = "";
|
|
9180
9180
|
});
|
|
9181
9181
|
const as = (g) => {
|
|
9182
9182
|
if (!g)
|
|
9183
9183
|
return null;
|
|
9184
9184
|
for (const b of e.days || [])
|
|
9185
9185
|
for (const $ of b.schedules || []) {
|
|
9186
|
-
const
|
|
9187
|
-
if (
|
|
9188
|
-
return { kind: "session", item:
|
|
9186
|
+
const L = ($.sessions || []).find((re) => re.id === g);
|
|
9187
|
+
if (L)
|
|
9188
|
+
return { kind: "session", item: L, schedule: $ };
|
|
9189
9189
|
const Z = l($).find((re) => re.id === g);
|
|
9190
9190
|
if (Z)
|
|
9191
9191
|
return { kind: "slot", item: Z, schedule: $ };
|
|
@@ -9196,18 +9196,18 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9196
9196
|
return as((g = w.value) == null ? void 0 : g.id);
|
|
9197
9197
|
}, gd = (g, b) => {
|
|
9198
9198
|
b.preventDefault(), b.stopPropagation();
|
|
9199
|
-
const $ = g.item,
|
|
9200
|
-
if (!isFinite(
|
|
9199
|
+
const $ = g.item, L = Pe($.startTime), Z = Pe($.endTime);
|
|
9200
|
+
if (!isFinite(L) || !isFinite(Z))
|
|
9201
9201
|
return;
|
|
9202
9202
|
const re = b.clientY;
|
|
9203
9203
|
Ve.value = !0;
|
|
9204
9204
|
const $e = (_) => {
|
|
9205
9205
|
const oe = (_.clientY - re) / Bt.value * 60, me = Li(Z + oe, Ht.value);
|
|
9206
|
-
$.endTime = pt(Math.max(me,
|
|
9206
|
+
$.endTime = pt(Math.max(me, L + Ht.value));
|
|
9207
9207
|
}, We = async () => {
|
|
9208
9208
|
window.removeEventListener("pointermove", $e), window.removeEventListener("pointerup", Ke), Ve.value = !1, De.value = Date.now();
|
|
9209
9209
|
const _ = as($.id);
|
|
9210
|
-
_ && (await
|
|
9210
|
+
_ && (await Pn($, _.kind), await e.persist.refresh());
|
|
9211
9211
|
}, Ke = () => {
|
|
9212
9212
|
We();
|
|
9213
9213
|
};
|
|
@@ -9215,8 +9215,8 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9215
9215
|
}, sn = E(null), vd = (g, b, $) => {
|
|
9216
9216
|
if ($.target.closest(".nested-edit, .nested-resize") || $.button !== 0 || Ve.value)
|
|
9217
9217
|
return;
|
|
9218
|
-
const
|
|
9219
|
-
!
|
|
9218
|
+
const L = $.target.closest(".session-perfoms"), Z = Pe(g.startTime), re = Pe(g.endTime), $e = ai(b.startTime, b.endTime);
|
|
9219
|
+
!L || !isFinite(Z) || !isFinite(re) || re <= Z || (sn.value = {
|
|
9220
9220
|
perfom: b,
|
|
9221
9221
|
session: g,
|
|
9222
9222
|
startX: $.clientX,
|
|
@@ -9227,8 +9227,8 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9227
9227
|
sessionStart: Z,
|
|
9228
9228
|
sessionDur: re - Z,
|
|
9229
9229
|
durMin: isFinite($e) && $e > 0 ? $e : 30,
|
|
9230
|
-
container:
|
|
9231
|
-
}, window.addEventListener("pointermove", Nr), window.addEventListener("pointerup", _r), window.addEventListener("pointercancel",
|
|
9230
|
+
container: L
|
|
9231
|
+
}, window.addEventListener("pointermove", Nr), window.addEventListener("pointerup", _r), window.addEventListener("pointercancel", mo), window.addEventListener("keydown", jr));
|
|
9232
9232
|
}, Nr = (g) => {
|
|
9233
9233
|
const b = sn.value;
|
|
9234
9234
|
if (!b)
|
|
@@ -9238,8 +9238,8 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9238
9238
|
return;
|
|
9239
9239
|
b.moved = !0, document.body.style.userSelect = "none", document.body.style.cursor = "grabbing";
|
|
9240
9240
|
}
|
|
9241
|
-
const $ = b.container.getBoundingClientRect(),
|
|
9242
|
-
let Z = b.sessionStart + Li(
|
|
9241
|
+
const $ = b.container.getBoundingClientRect(), L = Math.min(Math.max((g.clientY - $.top) / $.height, 0), 1);
|
|
9242
|
+
let Z = b.sessionStart + Li(L * b.sessionDur, Ht.value);
|
|
9243
9243
|
const re = b.sessionStart + b.sessionDur - b.durMin;
|
|
9244
9244
|
Z = Math.min(Math.max(Z, b.sessionStart), Math.max(re, b.sessionStart)), b.perfom.startTime = pt(Z), b.perfom.endTime = pt(Z + b.durMin), ye.value = { x: g.clientX, y: g.clientY };
|
|
9245
9245
|
}, _r = (g) => {
|
|
@@ -9247,39 +9247,39 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9247
9247
|
}, yd = async (g) => {
|
|
9248
9248
|
var $e;
|
|
9249
9249
|
const b = sn.value;
|
|
9250
|
-
if (
|
|
9250
|
+
if (po(), sn.value = null, ye.value = null, document.body.style.userSelect = "", document.body.style.cursor = "", !b || !b.moved)
|
|
9251
9251
|
return;
|
|
9252
9252
|
De.value = Date.now();
|
|
9253
|
-
const $ = document.elementFromPoint(g.clientX, g.clientY),
|
|
9254
|
-
if (
|
|
9253
|
+
const $ = document.elementFromPoint(g.clientX, g.clientY), L = $ == null ? void 0 : $.closest(".hall-col"), Z = L == null ? void 0 : L.getAttribute("data-schedule-id"), re = Z ? ii(Z) : void 0;
|
|
9254
|
+
if (L && re) {
|
|
9255
9255
|
w.value = {
|
|
9256
9256
|
kind: "slot",
|
|
9257
9257
|
id: b.perfom.id,
|
|
9258
9258
|
name: b.perfom.name || o.value.slot,
|
|
9259
9259
|
duration: b.durMin
|
|
9260
9260
|
};
|
|
9261
|
-
const We = at(
|
|
9261
|
+
const We = at(L, g.clientY), Ke = pt(We), _ = ai(b.perfom.startTime, b.perfom.endTime), oe = Zt(Ke, _ > 0 ? _ : 30), me = (($e = Xr(b.perfom)) == null ? void 0 : $e.id) === re.id && b.perfom.startTime === Ke && b.perfom.endTime === oe;
|
|
9262
9262
|
await Wr(re, We), me && (await e.persist.updateSlot(b.perfom), await e.persist.refresh()), w.value = null;
|
|
9263
9263
|
return;
|
|
9264
9264
|
}
|
|
9265
9265
|
b.perfom.startTime = Bn(b.perfom.startTime), b.perfom.endTime = Bn(b.perfom.endTime), b.perfom.startTime && (await e.persist.updateSlot(b.perfom), await e.persist.refresh());
|
|
9266
|
-
},
|
|
9266
|
+
}, mo = () => {
|
|
9267
9267
|
const g = sn.value;
|
|
9268
|
-
|
|
9269
|
-
},
|
|
9270
|
-
window.removeEventListener("pointermove", Nr), window.removeEventListener("pointerup", _r), window.removeEventListener("pointercancel",
|
|
9268
|
+
po(), g && (g.perfom.startTime = g.savedStart, g.perfom.endTime = g.savedEnd), sn.value = null, ye.value = null, document.body.style.userSelect = "", document.body.style.cursor = "";
|
|
9269
|
+
}, po = () => {
|
|
9270
|
+
window.removeEventListener("pointermove", Nr), window.removeEventListener("pointerup", _r), window.removeEventListener("pointercancel", mo), window.removeEventListener("keydown", jr);
|
|
9271
9271
|
}, jr = (g) => {
|
|
9272
|
-
g.key === "Escape" &&
|
|
9272
|
+
g.key === "Escape" && mo();
|
|
9273
9273
|
}, bd = (g, b, $) => {
|
|
9274
9274
|
$.preventDefault(), $.stopPropagation();
|
|
9275
|
-
const
|
|
9276
|
-
if (!$e || !We || !isFinite(
|
|
9275
|
+
const L = Pe(g.startTime), Z = Pe(g.endTime), re = Pe(b.startTime), $e = $.target.closest(".nested-perfom"), We = $e == null ? void 0 : $e.closest(".session-perfoms");
|
|
9276
|
+
if (!$e || !We || !isFinite(L) || !isFinite(Z) || Z <= L || !isFinite(re))
|
|
9277
9277
|
return;
|
|
9278
|
-
const Ke = We.getBoundingClientRect(), _ = Z -
|
|
9278
|
+
const Ke = We.getBoundingClientRect(), _ = Z - L;
|
|
9279
9279
|
Ve.value = !0;
|
|
9280
9280
|
const oe = (vn) => {
|
|
9281
9281
|
const Ed = Math.min(Math.max((vn.clientY - Ke.top) / Ke.height, 0), 1), Od = Math.min(
|
|
9282
|
-
Math.max(re + Ht.value,
|
|
9282
|
+
Math.max(re + Ht.value, L + Li(Ed * _, Ht.value)),
|
|
9283
9283
|
Z
|
|
9284
9284
|
);
|
|
9285
9285
|
b.endTime = pt(Od);
|
|
@@ -9295,18 +9295,18 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9295
9295
|
const $ = pd();
|
|
9296
9296
|
if (!$)
|
|
9297
9297
|
return;
|
|
9298
|
-
const
|
|
9299
|
-
if (((oe = $.schedule) == null ? void 0 : oe.id) === g.id && $.item.startTime ===
|
|
9298
|
+
const L = pt(b), Z = ai($.item.startTime, $.item.endTime), re = Zt(L, Z > 0 ? Z : 30);
|
|
9299
|
+
if (((oe = $.schedule) == null ? void 0 : oe.id) === g.id && $.item.startTime === L && $.item.endTime === re)
|
|
9300
9300
|
return;
|
|
9301
9301
|
const $e = $.item.startTime;
|
|
9302
|
-
if ($.item.startTime =
|
|
9303
|
-
const me = ls(g.sessions, Pe(
|
|
9302
|
+
if ($.item.startTime = L, $.item.endTime = re, $.kind === "slot" && n.value) {
|
|
9303
|
+
const me = ls(g.sessions, Pe(L), Pe(re), Pe);
|
|
9304
9304
|
me ? $.item.sessionId = me.id : delete $.item.sessionId;
|
|
9305
9305
|
} else $.kind === "slot" && delete $.item.sessionId;
|
|
9306
9306
|
if ($.kind === "session") {
|
|
9307
|
-
const me = Pe(
|
|
9307
|
+
const me = Pe(L) - Pe($e);
|
|
9308
9308
|
for (const le of Pt($.item))
|
|
9309
|
-
le.startTime && (le.startTime = Zt(le.startTime, me), le.endTime && (le.endTime = Zt(le.endTime, me)), le.scheduleId = g.id, await
|
|
9309
|
+
le.startTime && (le.startTime = Zt(le.startTime, me), le.endTime && (le.endTime = Zt(le.endTime, me)), le.scheduleId = g.id, await Pn(le, "slot"));
|
|
9310
9310
|
}
|
|
9311
9311
|
const We = $.schedule, Ke = $.kind === "session" ? g.sessions : l(g), _ = $.item;
|
|
9312
9312
|
if (We && We.id !== g.id) {
|
|
@@ -9314,40 +9314,40 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9314
9314
|
const me = $.kind === "session" ? We.sessions : l(We);
|
|
9315
9315
|
X.H.Classes.RemoveFromClassById(_.id, me, []), Ke.push(_);
|
|
9316
9316
|
}
|
|
9317
|
-
await
|
|
9317
|
+
await Pn(_, $.kind), await e.persist.refresh();
|
|
9318
9318
|
}, wd = async (g, b) => {
|
|
9319
9319
|
if (b.target.closest(".timeline-block"))
|
|
9320
9320
|
return;
|
|
9321
|
-
const $ = at(b.currentTarget, b.clientY),
|
|
9322
|
-
if (
|
|
9321
|
+
const $ = at(b.currentTarget, b.clientY), L = r.value.createSlot(g);
|
|
9322
|
+
if (L.startTime = pt($), L.endTime = pt($ + 30), n.value) {
|
|
9323
9323
|
const re = ls(g.sessions, $, $ + 30, Pe);
|
|
9324
|
-
re != null && re.id && (
|
|
9324
|
+
re != null && re.id && (L.sessionId = re.id);
|
|
9325
9325
|
}
|
|
9326
|
-
await e.persist.createSlot(
|
|
9327
|
-
const Z = as(
|
|
9328
|
-
Z &&
|
|
9326
|
+
await e.persist.createSlot(L), await e.persist.refresh();
|
|
9327
|
+
const Z = as(L.id);
|
|
9328
|
+
Z && Mn(Z);
|
|
9329
9329
|
}, Gr = async (g, b, $) => {
|
|
9330
9330
|
if (g.added) {
|
|
9331
9331
|
if (g.added.element.scheduleId = b.id, $ === "slot" && g.added.element.sessionId && ((b.sessions || []).some(
|
|
9332
9332
|
(Z) => Z.id === g.added.element.sessionId
|
|
9333
|
-
) || delete g.added.element.sessionId), await
|
|
9334
|
-
for (const
|
|
9335
|
-
|
|
9333
|
+
) || delete g.added.element.sessionId), await Pn(g.added.element, $), $ === "session")
|
|
9334
|
+
for (const L of a(g.added.element))
|
|
9335
|
+
L.scheduleId = b.id, await e.persist.updateSlot(L);
|
|
9336
9336
|
await e.persist.refresh();
|
|
9337
9337
|
}
|
|
9338
9338
|
}, ii = (g) => {
|
|
9339
9339
|
for (const b of e.days || []) {
|
|
9340
|
-
const $ = (b.schedules || []).find((
|
|
9340
|
+
const $ = (b.schedules || []).find((L) => L.id === g);
|
|
9341
9341
|
if ($)
|
|
9342
9342
|
return $;
|
|
9343
9343
|
}
|
|
9344
|
-
}, ls = (g, b, $,
|
|
9344
|
+
}, ls = (g, b, $, L) => $u(g, b, $, L), Yr = (g) => n.value ? ((g == null ? void 0 : g.sessions) || []).map((b) => ({
|
|
9345
9345
|
id: b.id,
|
|
9346
9346
|
label: f(b)
|
|
9347
9347
|
})) : [], Xr = (g) => {
|
|
9348
9348
|
for (const b of e.days || [])
|
|
9349
9349
|
for (const $ of b.schedules || [])
|
|
9350
|
-
if (l($).some((
|
|
9350
|
+
if (l($).some((L) => L.id === g.id) || g.sessionId && ($.sessions || []).some((L) => L.id === g.sessionId))
|
|
9351
9351
|
return $;
|
|
9352
9352
|
}, Qr = B(() => {
|
|
9353
9353
|
const g = I.value;
|
|
@@ -9358,12 +9358,12 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9358
9358
|
return !g || g.kind !== "slot" ? [] : Yr(Qr.value);
|
|
9359
9359
|
}), Zr = (g, b) => {
|
|
9360
9360
|
for (const $ of e.days || [])
|
|
9361
|
-
for (const
|
|
9361
|
+
for (const L of $.schedules || [])
|
|
9362
9362
|
if (b === "session") {
|
|
9363
|
-
if ((
|
|
9364
|
-
return
|
|
9365
|
-
} else if (l(
|
|
9366
|
-
return
|
|
9363
|
+
if ((L.sessions || []).some((Z) => Z.id === g.id))
|
|
9364
|
+
return L;
|
|
9365
|
+
} else if (l(L).some((Z) => Z.id === g.id))
|
|
9366
|
+
return L;
|
|
9367
9367
|
}, Jr = async (g, b) => {
|
|
9368
9368
|
b ? g.sessionId = b : delete g.sessionId, await e.persist.updateSlot(g), await e.persist.refresh();
|
|
9369
9369
|
}, Kr = async (g) => {
|
|
@@ -9378,14 +9378,14 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9378
9378
|
Z != null && Z.id && ($.sessionId = Z.id);
|
|
9379
9379
|
}
|
|
9380
9380
|
await e.persist.createSlot($), await e.persist.refresh();
|
|
9381
|
-
const
|
|
9382
|
-
|
|
9381
|
+
const L = as($.id);
|
|
9382
|
+
L && Mn(L);
|
|
9383
9383
|
}, ea = async (g) => {
|
|
9384
9384
|
const b = r.value.createSlot(g), $ = [...l(g)].sort(Zo).slice(-1)[0];
|
|
9385
9385
|
b.startTime = Bn($ == null ? void 0 : $.endTime) || "9:00", b.endTime = Zt(b.startTime, 30), await e.persist.createSlot(b), await e.persist.refresh();
|
|
9386
9386
|
}, on = E(null), xd = (g) => {
|
|
9387
9387
|
on.value = null, g.action();
|
|
9388
|
-
},
|
|
9388
|
+
}, go = (g, b) => {
|
|
9389
9389
|
const $ = b.length * 34 + 12;
|
|
9390
9390
|
on.value = {
|
|
9391
9391
|
x: Math.min(g.clientX, window.innerWidth - 210),
|
|
@@ -9400,15 +9400,15 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9400
9400
|
g.key === "Escape" && (on.value = null);
|
|
9401
9401
|
}, us = () => {
|
|
9402
9402
|
on.value = null;
|
|
9403
|
-
},
|
|
9404
|
-
|
|
9403
|
+
}, vo = E(!1), kd = () => {
|
|
9404
|
+
vo.value || (window.addEventListener("click", ta), window.addEventListener("contextmenu", na), window.addEventListener("keydown", ia), window.addEventListener("scroll", us, !0), window.addEventListener("resize", us), vo.value = !0);
|
|
9405
9405
|
}, $d = () => {
|
|
9406
|
-
window.removeEventListener("click", ta), window.removeEventListener("contextmenu", na), window.removeEventListener("keydown", ia), window.removeEventListener("scroll", us, !0), window.removeEventListener("resize", us),
|
|
9406
|
+
window.removeEventListener("click", ta), window.removeEventListener("contextmenu", na), window.removeEventListener("keydown", ia), window.removeEventListener("scroll", us, !0), window.removeEventListener("resize", us), vo.value = !1;
|
|
9407
9407
|
};
|
|
9408
9408
|
kd();
|
|
9409
9409
|
const Td = (g, b) => {
|
|
9410
9410
|
const $ = [
|
|
9411
|
-
{ icon: "edit", label: o.value.edit, action: () =>
|
|
9411
|
+
{ icon: "edit", label: o.value.edit, action: () => Mn(g) },
|
|
9412
9412
|
{
|
|
9413
9413
|
icon: "content_copy",
|
|
9414
9414
|
label: o.value.duplicate,
|
|
@@ -9421,10 +9421,10 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9421
9421
|
action: () => void Ri(g.item, g.kind)
|
|
9422
9422
|
}
|
|
9423
9423
|
];
|
|
9424
|
-
|
|
9424
|
+
go(b, $);
|
|
9425
9425
|
}, Pd = (g, b) => {
|
|
9426
|
-
const $ = { kind: "slot", item: g },
|
|
9427
|
-
{ icon: "edit", label: o.value.edit, action: () =>
|
|
9426
|
+
const $ = { kind: "slot", item: g }, L = [
|
|
9427
|
+
{ icon: "edit", label: o.value.edit, action: () => Mn($) },
|
|
9428
9428
|
{
|
|
9429
9429
|
icon: "content_copy",
|
|
9430
9430
|
label: o.value.duplicate,
|
|
@@ -9437,20 +9437,20 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9437
9437
|
action: () => void Ri(g, "slot")
|
|
9438
9438
|
}
|
|
9439
9439
|
];
|
|
9440
|
-
|
|
9440
|
+
go(b, L);
|
|
9441
9441
|
}, Md = (g, b) => {
|
|
9442
|
-
const $ = at(b.currentTarget, b.clientY),
|
|
9442
|
+
const $ = at(b.currentTarget, b.clientY), L = pt($), Z = [
|
|
9443
9443
|
{
|
|
9444
9444
|
icon: "mic",
|
|
9445
|
-
label: `${o.value.addSlot} · ${
|
|
9445
|
+
label: `${o.value.addSlot} · ${L}`,
|
|
9446
9446
|
action: () => void Cd(g, $)
|
|
9447
9447
|
}
|
|
9448
9448
|
];
|
|
9449
9449
|
n.value && Z.push({
|
|
9450
9450
|
icon: "groups",
|
|
9451
|
-
label: `${o.value.addSession} · ${
|
|
9451
|
+
label: `${o.value.addSession} · ${L}`,
|
|
9452
9452
|
action: () => void Rd(g, $)
|
|
9453
|
-
}),
|
|
9453
|
+
}), go(b, Z);
|
|
9454
9454
|
}, Rd = async (g, b) => {
|
|
9455
9455
|
if (!n.value)
|
|
9456
9456
|
return;
|
|
@@ -9460,13 +9460,13 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9460
9460
|
const b = ii(g.item.scheduleId) || Zr(g.item, g.kind);
|
|
9461
9461
|
if (!b)
|
|
9462
9462
|
return;
|
|
9463
|
-
const $ = ai(g.item.startTime, g.item.endTime) || 30,
|
|
9463
|
+
const $ = ai(g.item.startTime, g.item.endTime) || 30, L = Bn(g.item.endTime) || "9:00";
|
|
9464
9464
|
if (g.kind === "slot") {
|
|
9465
9465
|
const Z = r.value.createSlot(b);
|
|
9466
|
-
Z.name = g.item.name ? `${g.item.name} (копия)` : g.item.name, Z.startTime =
|
|
9466
|
+
Z.name = g.item.name ? `${g.item.name} (копия)` : g.item.name, Z.startTime = L, Z.endTime = Zt(L, $), Z.sessionId = g.item.sessionId, g.item.description && (Z.description = g.item.description), g.item.payload && (Z.payload = { ...g.item.payload }), await e.persist.createSlot(Z);
|
|
9467
9467
|
} else {
|
|
9468
9468
|
const Z = r.value.createSession(b);
|
|
9469
|
-
Z.name = g.item.name ? `${g.item.name} (копия)` : g.item.name, Z.startTime =
|
|
9469
|
+
Z.name = g.item.name ? `${g.item.name} (копия)` : g.item.name, Z.startTime = L, Z.endTime = Zt(L, $), Z.scheduleId = b.id, await e.persist.createSession(Z);
|
|
9470
9470
|
}
|
|
9471
9471
|
await e.persist.refresh();
|
|
9472
9472
|
}, Ri = async (g, b) => {
|
|
@@ -9478,27 +9478,27 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9478
9478
|
await e.persist.removeSession(g);
|
|
9479
9479
|
}
|
|
9480
9480
|
await e.persist.refresh();
|
|
9481
|
-
},
|
|
9482
|
-
const $ = Bn(g.startTime),
|
|
9481
|
+
}, Pn = async (g, b) => {
|
|
9482
|
+
const $ = Bn(g.startTime), L = Bn(g.endTime);
|
|
9483
9483
|
if (!$) {
|
|
9484
9484
|
e.persist.notify("warning", o.value.correctStartTime);
|
|
9485
9485
|
return;
|
|
9486
9486
|
}
|
|
9487
|
-
g.startTime = $, g.endTime =
|
|
9488
|
-
},
|
|
9487
|
+
g.startTime = $, g.endTime = L || Zt($, 30), b === "slot" ? await e.persist.updateSlot(g) : await e.persist.updateSession(g);
|
|
9488
|
+
}, Mn = (g) => {
|
|
9489
9489
|
Ve.value || Date.now() - De.value < 400 || (I.value = { kind: g.kind, item: g.item }, M.value = !0);
|
|
9490
9490
|
}, Id = async () => {
|
|
9491
9491
|
const g = I.value;
|
|
9492
|
-
g && (await
|
|
9492
|
+
g && (await Pn(g.item, g.kind), M.value = !1, I.value = null, await e.persist.refresh());
|
|
9493
9493
|
}, Ad = async () => {
|
|
9494
9494
|
const g = I.value;
|
|
9495
9495
|
g && (await Ri(g.item, g.kind), M.value = !1, I.value = null);
|
|
9496
|
-
}, ds = (g, b, $,
|
|
9497
|
-
g[b] = $,
|
|
9496
|
+
}, ds = (g, b, $, L) => {
|
|
9497
|
+
g[b] = $, Pn(g, L);
|
|
9498
9498
|
};
|
|
9499
9499
|
return e.persist.loadOptions && e.persist.loadOptions(), (g, b) => {
|
|
9500
9500
|
var We, Ke;
|
|
9501
|
-
const $ = ae("PButton"),
|
|
9501
|
+
const $ = ae("PButton"), L = ae("PTooltip"), Z = ae("PSelect"), re = ae("PInput"), $e = ae("PDialog");
|
|
9502
9502
|
return h(), S("div", Ug, [
|
|
9503
9503
|
(We = t.days) != null && We.length ? (h(), S(Q, { key: 1 }, [
|
|
9504
9504
|
v("div", _g, [
|
|
@@ -9511,7 +9511,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9511
9511
|
"active-color": "primary"
|
|
9512
9512
|
}, {
|
|
9513
9513
|
default: C(() => [
|
|
9514
|
-
(h(!0), S(Q, null, ve(Re.value, (_) => (h(),
|
|
9514
|
+
(h(!0), S(Q, null, ve(Re.value, (_) => (h(), F(d(rr), {
|
|
9515
9515
|
key: _.id,
|
|
9516
9516
|
name: _.id,
|
|
9517
9517
|
class: "day-tab"
|
|
@@ -9525,7 +9525,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9525
9525
|
onClick: Fe((oe) => ke(_), ["stop"])
|
|
9526
9526
|
}, {
|
|
9527
9527
|
default: C(() => [
|
|
9528
|
-
y(
|
|
9528
|
+
y(L, null, {
|
|
9529
9529
|
default: C(() => [
|
|
9530
9530
|
fe(j(o.value.deleteDay), 1)
|
|
9531
9531
|
]),
|
|
@@ -9550,7 +9550,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9550
9550
|
onClick: Ln
|
|
9551
9551
|
}, {
|
|
9552
9552
|
default: C(() => [
|
|
9553
|
-
y(
|
|
9553
|
+
y(L, null, {
|
|
9554
9554
|
default: C(() => [
|
|
9555
9555
|
fe(j(o.value.addDay), 1)
|
|
9556
9556
|
]),
|
|
@@ -9561,14 +9561,14 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9561
9561
|
})
|
|
9562
9562
|
])) : W("", !0),
|
|
9563
9563
|
y(d(Hn)),
|
|
9564
|
-
i.value && te.value ? (h(),
|
|
9564
|
+
i.value && te.value ? (h(), F(Bg, {
|
|
9565
9565
|
key: 1,
|
|
9566
9566
|
"model-value": pn(te.value.date),
|
|
9567
9567
|
label: o.value.date,
|
|
9568
9568
|
class: "date-input",
|
|
9569
9569
|
"onUpdate:modelValue": b[1] || (b[1] = (_) => He(te.value, _))
|
|
9570
9570
|
}, null, 8, ["model-value", "label"])) : W("", !0),
|
|
9571
|
-
s.value ? (h(),
|
|
9571
|
+
s.value ? (h(), F($, {
|
|
9572
9572
|
key: 2,
|
|
9573
9573
|
size: "sm",
|
|
9574
9574
|
color: "primary",
|
|
@@ -9586,7 +9586,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9586
9586
|
y(Z, {
|
|
9587
9587
|
modelValue: Lt.value,
|
|
9588
9588
|
"onUpdate:modelValue": b[2] || (b[2] = (_) => Lt.value = _),
|
|
9589
|
-
options:
|
|
9589
|
+
options: kt,
|
|
9590
9590
|
clearable: !1,
|
|
9591
9591
|
size: "sm",
|
|
9592
9592
|
dense: "",
|
|
@@ -9594,7 +9594,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9594
9594
|
class: "step-select"
|
|
9595
9595
|
}, {
|
|
9596
9596
|
default: C(() => [
|
|
9597
|
-
y(
|
|
9597
|
+
y(L, null, {
|
|
9598
9598
|
default: C(() => [
|
|
9599
9599
|
fe(j(o.value.gridStepTitle), 1)
|
|
9600
9600
|
]),
|
|
@@ -9619,7 +9619,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9619
9619
|
class: "zoom-select"
|
|
9620
9620
|
}, {
|
|
9621
9621
|
default: C(() => [
|
|
9622
|
-
y(
|
|
9622
|
+
y(L, null, {
|
|
9623
9623
|
default: C(() => [
|
|
9624
9624
|
fe(j(o.value.gridZoomTitle), 1)
|
|
9625
9625
|
]),
|
|
@@ -9640,7 +9640,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9640
9640
|
class: "view-select"
|
|
9641
9641
|
}, {
|
|
9642
9642
|
default: C(() => [
|
|
9643
|
-
y(
|
|
9643
|
+
y(L, null, {
|
|
9644
9644
|
default: C(() => [
|
|
9645
9645
|
fe(j(o.value.viewTitle), 1)
|
|
9646
9646
|
]),
|
|
@@ -9686,7 +9686,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9686
9686
|
onClick: (oe) => ea(_)
|
|
9687
9687
|
}, {
|
|
9688
9688
|
default: C(() => [
|
|
9689
|
-
y(
|
|
9689
|
+
y(L, null, {
|
|
9690
9690
|
default: C(() => [
|
|
9691
9691
|
fe(j(o.value.addSlot), 1)
|
|
9692
9692
|
]),
|
|
@@ -9695,7 +9695,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9695
9695
|
]),
|
|
9696
9696
|
_: 1
|
|
9697
9697
|
}, 8, ["onClick"]),
|
|
9698
|
-
n.value ? (h(),
|
|
9698
|
+
n.value ? (h(), F($, {
|
|
9699
9699
|
key: 0,
|
|
9700
9700
|
size: "sm",
|
|
9701
9701
|
flat: "",
|
|
@@ -9705,7 +9705,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9705
9705
|
onClick: (oe) => Kr(_)
|
|
9706
9706
|
}, {
|
|
9707
9707
|
default: C(() => [
|
|
9708
|
-
y(
|
|
9708
|
+
y(L, null, {
|
|
9709
9709
|
default: C(() => [
|
|
9710
9710
|
fe(j(o.value.addSession), 1)
|
|
9711
9711
|
]),
|
|
@@ -9714,7 +9714,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9714
9714
|
]),
|
|
9715
9715
|
_: 1
|
|
9716
9716
|
}, 8, ["onClick"])) : W("", !0),
|
|
9717
|
-
s.value ? (h(),
|
|
9717
|
+
s.value ? (h(), F($, {
|
|
9718
9718
|
key: 1,
|
|
9719
9719
|
size: "sm",
|
|
9720
9720
|
flat: "",
|
|
@@ -9724,7 +9724,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9724
9724
|
onClick: (oe) => Je(_)
|
|
9725
9725
|
}, {
|
|
9726
9726
|
default: C(() => [
|
|
9727
|
-
y(
|
|
9727
|
+
y(L, null, {
|
|
9728
9728
|
default: C(() => [
|
|
9729
9729
|
fe(j(o.value.deleteHall), 1)
|
|
9730
9730
|
]),
|
|
@@ -9741,12 +9741,12 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9741
9741
|
style: V({ height: qt.value })
|
|
9742
9742
|
}, [
|
|
9743
9743
|
v("div", Kg, [
|
|
9744
|
-
(h(!0), S(Q, null, ve(
|
|
9744
|
+
(h(!0), S(Q, null, ve(lo.value, (_) => (h(), S("div", {
|
|
9745
9745
|
key: _.min,
|
|
9746
9746
|
class: "hour-label",
|
|
9747
9747
|
style: V({ top: (_.min - Ue.value.start) / Ue.value.total * 100 + "%" })
|
|
9748
9748
|
}, j(_.label), 5))), 128)),
|
|
9749
|
-
(h(!0), S(Q, null, ve(
|
|
9749
|
+
(h(!0), S(Q, null, ve(uo.value, (_) => (h(), S("div", {
|
|
9750
9750
|
key: _.min,
|
|
9751
9751
|
class: "half-label",
|
|
9752
9752
|
style: V({ top: (_.min - Ue.value.start) / Ue.value.total * 100 + "%" })
|
|
@@ -9771,7 +9771,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9771
9771
|
style: V(ss(oe)),
|
|
9772
9772
|
title: se(oe),
|
|
9773
9773
|
onPointerdown: (le) => os(oe, le),
|
|
9774
|
-
onClick: (le) =>
|
|
9774
|
+
onClick: (le) => Mn(oe),
|
|
9775
9775
|
onContextmenu: Fe((le) => Td(oe, le), ["prevent", "stop"])
|
|
9776
9776
|
}, [
|
|
9777
9777
|
y(d(ue), {
|
|
@@ -9790,7 +9790,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9790
9790
|
style: V(je(oe.item, le)),
|
|
9791
9791
|
title: we(le),
|
|
9792
9792
|
onPointerdown: Fe((vn) => vd(oe.item, le, vn), ["stop"]),
|
|
9793
|
-
onClick: Fe((vn) =>
|
|
9793
|
+
onClick: Fe((vn) => Mn({ kind: "slot", item: le }), ["stop"]),
|
|
9794
9794
|
onContextmenu: Fe((vn) => Pd(le, vn), ["prevent", "stop"])
|
|
9795
9795
|
}, [
|
|
9796
9796
|
v("div", lv, j(le.startTime) + "–" + j(le.endTime), 1),
|
|
@@ -9809,14 +9809,14 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9809
9809
|
], 46, av))), 128))
|
|
9810
9810
|
])) : W("", !0),
|
|
9811
9811
|
v("div", fv, [
|
|
9812
|
-
de(_, oe) ? (h(),
|
|
9812
|
+
de(_, oe) ? (h(), F(d(ue), {
|
|
9813
9813
|
key: 0,
|
|
9814
9814
|
name: "warning",
|
|
9815
9815
|
size: "12px",
|
|
9816
9816
|
class: "conflict-icon"
|
|
9817
9817
|
}, {
|
|
9818
9818
|
default: C(() => [
|
|
9819
|
-
y(
|
|
9819
|
+
y(L, null, {
|
|
9820
9820
|
default: C(() => [
|
|
9821
9821
|
fe(j(o.value.conflictTitle), 1)
|
|
9822
9822
|
]),
|
|
@@ -9829,10 +9829,10 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9829
9829
|
name: "edit",
|
|
9830
9830
|
size: "13px",
|
|
9831
9831
|
class: "edit-icon",
|
|
9832
|
-
onClick: Fe((le) =>
|
|
9832
|
+
onClick: Fe((le) => Mn(oe), ["stop"])
|
|
9833
9833
|
}, {
|
|
9834
9834
|
default: C(() => [
|
|
9835
|
-
y(
|
|
9835
|
+
y(L, null, {
|
|
9836
9836
|
default: C(() => [
|
|
9837
9837
|
fe(j(o.value.edit), 1)
|
|
9838
9838
|
]),
|
|
@@ -9849,7 +9849,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9849
9849
|
}, null, 40, hv)
|
|
9850
9850
|
], 46, tv);
|
|
9851
9851
|
}), 128)),
|
|
9852
|
-
(h(!0), S(Q, null, ve(
|
|
9852
|
+
(h(!0), S(Q, null, ve(ao(_), (oe) => {
|
|
9853
9853
|
var me;
|
|
9854
9854
|
return h(), S("div", {
|
|
9855
9855
|
key: "spine-" + oe.item.id,
|
|
@@ -9887,7 +9887,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9887
9887
|
], 4)
|
|
9888
9888
|
], 512)) : (h(), S("div", Xg, [
|
|
9889
9889
|
fe(j(o.value.noHalls) + " ", 1),
|
|
9890
|
-
s.value ? (h(),
|
|
9890
|
+
s.value ? (h(), F($, {
|
|
9891
9891
|
key: 0,
|
|
9892
9892
|
flat: "",
|
|
9893
9893
|
color: "primary",
|
|
@@ -9935,12 +9935,12 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9935
9935
|
fe(" " + j(sn.value.perfom.startTime) + "–" + j(sn.value.perfom.endTime) + " · " + j(o.value.intoSession), 1)
|
|
9936
9936
|
], 4)) : W("", !0)
|
|
9937
9937
|
])) : (h(), S("div", Sv, [
|
|
9938
|
-
(h(!0), S(Q, null, ve(Xe(te.value), (_) => (h(),
|
|
9938
|
+
(h(!0), S(Q, null, ve(Xe(te.value), (_) => (h(), F(d(Jt), {
|
|
9939
9939
|
key: _.id,
|
|
9940
9940
|
class: "hall-card q-mb-md"
|
|
9941
9941
|
}, {
|
|
9942
9942
|
default: C(() => [
|
|
9943
|
-
y(d(
|
|
9943
|
+
y(d($t), { class: "hall-card-head" }, {
|
|
9944
9944
|
default: C(() => [
|
|
9945
9945
|
v("div", Cv, [
|
|
9946
9946
|
y(d(ue), {
|
|
@@ -9968,7 +9968,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9968
9968
|
label: o.value.slot,
|
|
9969
9969
|
onClick: (oe) => ea(_)
|
|
9970
9970
|
}, null, 8, ["label", "onClick"]),
|
|
9971
|
-
s.value ? (h(),
|
|
9971
|
+
s.value ? (h(), F($, {
|
|
9972
9972
|
key: 0,
|
|
9973
9973
|
size: "sm",
|
|
9974
9974
|
flat: "",
|
|
@@ -9978,7 +9978,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9978
9978
|
onClick: (oe) => Je(_)
|
|
9979
9979
|
}, {
|
|
9980
9980
|
default: C(() => [
|
|
9981
|
-
y(
|
|
9981
|
+
y(L, null, {
|
|
9982
9982
|
default: C(() => [
|
|
9983
9983
|
fe(j(o.value.deleteHall), 1)
|
|
9984
9984
|
]),
|
|
@@ -9991,7 +9991,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9991
9991
|
]),
|
|
9992
9992
|
_: 2
|
|
9993
9993
|
}, 1024),
|
|
9994
|
-
y(d(
|
|
9994
|
+
y(d($t), { class: "q-pt-none" }, {
|
|
9995
9995
|
default: C(() => {
|
|
9996
9996
|
var oe;
|
|
9997
9997
|
return [
|
|
@@ -10003,7 +10003,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10003
10003
|
}),
|
|
10004
10004
|
fe(" " + j(o.value.sessionsTitle), 1)
|
|
10005
10005
|
]),
|
|
10006
|
-
y(d(
|
|
10006
|
+
y(d(Ts), {
|
|
10007
10007
|
list: _.sessions,
|
|
10008
10008
|
"item-key": "id",
|
|
10009
10009
|
group: "sessions",
|
|
@@ -10024,7 +10024,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10024
10024
|
outlined: "",
|
|
10025
10025
|
class: "col-4",
|
|
10026
10026
|
"onUpdate:modelValue": (le) => me.name = le,
|
|
10027
|
-
onBlur: (le) =>
|
|
10027
|
+
onBlur: (le) => Pn(me, "session")
|
|
10028
10028
|
}, null, 8, ["model-value", "label", "onUpdate:modelValue", "onBlur"]),
|
|
10029
10029
|
y(oi, {
|
|
10030
10030
|
"model-value": me.startTime,
|
|
@@ -10070,7 +10070,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10070
10070
|
dense: "",
|
|
10071
10071
|
color: "primary",
|
|
10072
10072
|
icon: "edit",
|
|
10073
|
-
onClick: (vn) =>
|
|
10073
|
+
onClick: (vn) => Mn({ kind: "slot", item: le })
|
|
10074
10074
|
}, null, 8, ["onClick"])
|
|
10075
10075
|
]))), 128))
|
|
10076
10076
|
])) : W("", !0)
|
|
@@ -10086,7 +10086,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10086
10086
|
}),
|
|
10087
10087
|
fe(" " + j(o.value.slotsTitle), 1)
|
|
10088
10088
|
]),
|
|
10089
|
-
y(d(
|
|
10089
|
+
y(d(Ts), {
|
|
10090
10090
|
list: Pi(_),
|
|
10091
10091
|
"item-key": "id",
|
|
10092
10092
|
group: "slots",
|
|
@@ -10107,7 +10107,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10107
10107
|
outlined: "",
|
|
10108
10108
|
class: "col-4",
|
|
10109
10109
|
"onUpdate:modelValue": (le) => me.name = le,
|
|
10110
|
-
onBlur: (le) =>
|
|
10110
|
+
onBlur: (le) => Pn(me, "slot")
|
|
10111
10111
|
}, null, 8, ["model-value", "label", "onUpdate:modelValue", "onBlur"]),
|
|
10112
10112
|
y(oi, {
|
|
10113
10113
|
"model-value": me.startTime,
|
|
@@ -10121,7 +10121,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10121
10121
|
class: "time-input",
|
|
10122
10122
|
"onUpdate:modelValue": (le) => ds(me, "endTime", le, "slot")
|
|
10123
10123
|
}, null, 8, ["model-value", "label", "onUpdate:modelValue"]),
|
|
10124
|
-
n.value ? (h(),
|
|
10124
|
+
n.value ? (h(), F(Z, {
|
|
10125
10125
|
key: 0,
|
|
10126
10126
|
"model-value": me.sessionId,
|
|
10127
10127
|
label: o.value.sessionSelect,
|
|
@@ -10184,13 +10184,13 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10184
10184
|
default: C(() => [
|
|
10185
10185
|
y(d(Jt), { style: { width: "700px", "max-width": "80vw" } }, {
|
|
10186
10186
|
default: C(() => [
|
|
10187
|
-
y(d(
|
|
10187
|
+
y(d($t), null, {
|
|
10188
10188
|
default: C(() => [
|
|
10189
10189
|
v("div", Dv, j(o.value.addHall), 1)
|
|
10190
10190
|
]),
|
|
10191
10191
|
_: 1
|
|
10192
10192
|
}),
|
|
10193
|
-
y(d(
|
|
10193
|
+
y(d($t), null, {
|
|
10194
10194
|
default: C(() => [
|
|
10195
10195
|
v("div", Fv, [
|
|
10196
10196
|
y(re, {
|
|
@@ -10200,7 +10200,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10200
10200
|
dense: "",
|
|
10201
10201
|
outlined: "",
|
|
10202
10202
|
class: "col",
|
|
10203
|
-
onKeyup:
|
|
10203
|
+
onKeyup: $s(pe, ["enter"])
|
|
10204
10204
|
}, null, 8, ["modelValue", "label"]),
|
|
10205
10205
|
y($, {
|
|
10206
10206
|
color: "primary",
|
|
@@ -10214,8 +10214,8 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10214
10214
|
day: te.value,
|
|
10215
10215
|
add: rt
|
|
10216
10216
|
}, () => [
|
|
10217
|
-
|
|
10218
|
-
(h(!0), S(Q, null, ve(
|
|
10217
|
+
$n.value.length ? W("", !0) : (h(), S("div", Lv, j(o.value.noHalls), 1)),
|
|
10218
|
+
(h(!0), S(Q, null, ve($n.value, (_) => (h(), S("div", {
|
|
10219
10219
|
key: _.id,
|
|
10220
10220
|
class: "place-row row items-center q-gutter-sm"
|
|
10221
10221
|
}, [
|
|
@@ -10256,19 +10256,19 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10256
10256
|
_: 3
|
|
10257
10257
|
}, 8, ["modelValue"]),
|
|
10258
10258
|
y($e, {
|
|
10259
|
-
modelValue:
|
|
10260
|
-
"onUpdate:modelValue": b[9] || (b[9] = (_) =>
|
|
10259
|
+
modelValue: q.value,
|
|
10260
|
+
"onUpdate:modelValue": b[9] || (b[9] = (_) => q.value = _)
|
|
10261
10261
|
}, {
|
|
10262
10262
|
default: C(() => [
|
|
10263
10263
|
y(d(Jt), { style: { width: "420px", "max-width": "90vw" } }, {
|
|
10264
10264
|
default: C(() => [
|
|
10265
|
-
y(d(
|
|
10265
|
+
y(d($t), null, {
|
|
10266
10266
|
default: C(() => [
|
|
10267
10267
|
v("div", Bv, j(o.value.deleteDay), 1)
|
|
10268
10268
|
]),
|
|
10269
10269
|
_: 1
|
|
10270
10270
|
}),
|
|
10271
|
-
y(d(
|
|
10271
|
+
y(d($t), { class: "q-pt-none" }, {
|
|
10272
10272
|
default: C(() => [
|
|
10273
10273
|
fe(j(o.value.deleteDayConfirm.replace("{date}", k.value ? st(k.value) : "")), 1)
|
|
10274
10274
|
]),
|
|
@@ -10280,7 +10280,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10280
10280
|
flat: "",
|
|
10281
10281
|
label: o.value.cancel,
|
|
10282
10282
|
color: "primary",
|
|
10283
|
-
onClick: b[8] || (b[8] = (_) =>
|
|
10283
|
+
onClick: b[8] || (b[8] = (_) => q.value = !1)
|
|
10284
10284
|
}, null, 8, ["label"]),
|
|
10285
10285
|
y($, {
|
|
10286
10286
|
label: o.value.delete,
|
|
@@ -10303,7 +10303,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10303
10303
|
default: C(() => [
|
|
10304
10304
|
y(d(Jt), { style: { width: "640px", "max-width": "90vw" } }, {
|
|
10305
10305
|
default: C(() => [
|
|
10306
|
-
y(d(
|
|
10306
|
+
y(d($t), null, {
|
|
10307
10307
|
default: C(() => {
|
|
10308
10308
|
var _;
|
|
10309
10309
|
return [
|
|
@@ -10312,7 +10312,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10312
10312
|
}),
|
|
10313
10313
|
_: 1
|
|
10314
10314
|
}),
|
|
10315
|
-
I.value ? (h(),
|
|
10315
|
+
I.value ? (h(), F(d($t), {
|
|
10316
10316
|
key: 0,
|
|
10317
10317
|
class: "q-pt-none"
|
|
10318
10318
|
}, {
|
|
@@ -10345,7 +10345,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10345
10345
|
}, null, 8, ["modelValue", "label"])
|
|
10346
10346
|
])
|
|
10347
10347
|
]),
|
|
10348
|
-
I.value.kind === "slot" && n.value ? (h(),
|
|
10348
|
+
I.value.kind === "slot" && n.value ? (h(), F(Z, {
|
|
10349
10349
|
key: 0,
|
|
10350
10350
|
"model-value": I.value.item.sessionId,
|
|
10351
10351
|
label: o.value.sessionSelect,
|
|
@@ -10363,7 +10363,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10363
10363
|
item: I.value.item,
|
|
10364
10364
|
schedule: Qr.value
|
|
10365
10365
|
}, void 0, !0),
|
|
10366
|
-
I.value.kind === "slot" ? (h(),
|
|
10366
|
+
I.value.kind === "slot" ? (h(), F(re, {
|
|
10367
10367
|
key: 1,
|
|
10368
10368
|
modelValue: I.value.item.description,
|
|
10369
10369
|
"onUpdate:modelValue": b[14] || (b[14] = (_) => I.value.item.description = _),
|
|
@@ -10378,7 +10378,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10378
10378
|
})) : W("", !0),
|
|
10379
10379
|
y(d(Nn), { align: "right" }, {
|
|
10380
10380
|
default: C(() => [
|
|
10381
|
-
I.value ? (h(),
|
|
10381
|
+
I.value ? (h(), F($, {
|
|
10382
10382
|
key: 0,
|
|
10383
10383
|
flat: "",
|
|
10384
10384
|
color: "negative",
|
|
@@ -10520,7 +10520,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10520
10520
|
);
|
|
10521
10521
|
}
|
|
10522
10522
|
);
|
|
10523
|
-
}),
|
|
10523
|
+
}), q = (k, I) => `${k} - ${I}`;
|
|
10524
10524
|
return (k, I) => (h(), S("div", Xv, [
|
|
10525
10525
|
M.value ? (h(), S("div", Qv, [
|
|
10526
10526
|
(h(!0), S(Q, null, ve(t.days, (w) => (h(), S("div", {
|
|
@@ -10555,7 +10555,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10555
10555
|
}, [
|
|
10556
10556
|
G.kind === "session" ? (h(), S("div", n1, [
|
|
10557
10557
|
v("div", i1, [
|
|
10558
|
-
v("div", s1, j(
|
|
10558
|
+
v("div", s1, j(q(G.item.startTime, G.item.endTime)), 1),
|
|
10559
10559
|
v("div", o1, [
|
|
10560
10560
|
v("div", r1, j(a(G.item)), 1),
|
|
10561
10561
|
f(G.item).length ? (h(), S("div", a1, [
|
|
@@ -10589,7 +10589,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10589
10589
|
}, [
|
|
10590
10590
|
!G.nested && G.index > 0 ? (h(), S("div", h1)) : W("", !0),
|
|
10591
10591
|
v("div", m1, [
|
|
10592
|
-
v("div", p1, j(
|
|
10592
|
+
v("div", p1, j(q(G.item.startTime, G.item.endTime)), 1),
|
|
10593
10593
|
v("div", g1, [
|
|
10594
10594
|
v("div", v1, j(l(G.item)), 1),
|
|
10595
10595
|
v("div", y1, [
|
|
@@ -10683,7 +10683,7 @@ let D1 = class extends Ye {
|
|
|
10683
10683
|
const F1 = new D1();
|
|
10684
10684
|
let L1 = class extends Ye {
|
|
10685
10685
|
constructor() {
|
|
10686
|
-
super(
|
|
10686
|
+
super(no, "schedule-timetables");
|
|
10687
10687
|
}
|
|
10688
10688
|
};
|
|
10689
10689
|
const q1 = new L1(), B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -10724,7 +10724,7 @@ const q1 = new L1(), B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
10724
10724
|
["label", "color", "text-color", "outline", "square", "dense", "removable"].includes(r) || (o[r] = i[r]);
|
|
10725
10725
|
return o;
|
|
10726
10726
|
});
|
|
10727
|
-
return (o, r) => (h(),
|
|
10727
|
+
return (o, r) => (h(), F(d(qd), xt(d(s), {
|
|
10728
10728
|
label: t.label || void 0,
|
|
10729
10729
|
color: t.color || void 0,
|
|
10730
10730
|
"text-color": t.textColor || void 0,
|
|
@@ -10733,7 +10733,7 @@ const q1 = new L1(), B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
10733
10733
|
dense: t.dense,
|
|
10734
10734
|
removable: t.removable,
|
|
10735
10735
|
onRemove: r[0] || (r[0] = (l) => n("remove"))
|
|
10736
|
-
}),
|
|
10736
|
+
}), Ls({
|
|
10737
10737
|
default: C(() => [
|
|
10738
10738
|
D(o.$slots, "default")
|
|
10739
10739
|
]),
|
|
@@ -10793,7 +10793,7 @@ const q1 = new L1(), B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
10793
10793
|
default: C(() => [
|
|
10794
10794
|
y(d(ar), { dense: "" }, {
|
|
10795
10795
|
default: C(() => [
|
|
10796
|
-
(h(!0), S(Q, null, ve(d(o), (m) => tt((h(),
|
|
10796
|
+
(h(!0), S(Q, null, ve(d(o), (m) => tt((h(), F(d(lr), {
|
|
10797
10797
|
key: m.value,
|
|
10798
10798
|
clickable: "",
|
|
10799
10799
|
class: "tag-item",
|
|
@@ -10869,7 +10869,7 @@ const q1 = new L1(), B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
10869
10869
|
);
|
|
10870
10870
|
p && "focus" in p && p.focus();
|
|
10871
10871
|
};
|
|
10872
|
-
return (p, x) => (h(),
|
|
10872
|
+
return (p, x) => (h(), F(ki, {
|
|
10873
10873
|
modelValue: d(r),
|
|
10874
10874
|
"onUpdate:modelValue": [
|
|
10875
10875
|
x[0] || (x[0] = (T) => Le(r) ? r.value = T : null),
|
|
@@ -10877,8 +10877,8 @@ const q1 = new L1(), B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
10877
10877
|
],
|
|
10878
10878
|
position: "top",
|
|
10879
10879
|
onKeydown: [
|
|
10880
|
-
|
|
10881
|
-
|
|
10880
|
+
$s(l, ["enter"]),
|
|
10881
|
+
$s(c, ["escape"])
|
|
10882
10882
|
],
|
|
10883
10883
|
onShow: m
|
|
10884
10884
|
}, {
|
|
@@ -10941,7 +10941,7 @@ const q1 = new L1(), B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
10941
10941
|
n.row[n.prop] = l, await n.store.Update(n.row), s.value.toggle();
|
|
10942
10942
|
};
|
|
10943
10943
|
return (l, a) => (h(), S(Q, null, [
|
|
10944
|
-
(h(),
|
|
10944
|
+
(h(), F(d(xn), {
|
|
10945
10945
|
key: t.prop,
|
|
10946
10946
|
class: "tags-cell"
|
|
10947
10947
|
}, {
|
|
@@ -11018,7 +11018,7 @@ const q1 = new L1(), B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
11018
11018
|
e.row && e.prop && e.store && (e.row[e.prop] = c, await e.store.Update(e.row)), n.value.toggle();
|
|
11019
11019
|
};
|
|
11020
11020
|
return (c, f) => (h(), S(Q, null, [
|
|
11021
|
-
(h(),
|
|
11021
|
+
(h(), F(d(xn), {
|
|
11022
11022
|
key: t.cellKey,
|
|
11023
11023
|
class: "tags-cell"
|
|
11024
11024
|
}, {
|
|
@@ -11030,7 +11030,7 @@ const q1 = new L1(), B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
11030
11030
|
d(o) ? (h(), S(Q, { key: 0 }, [
|
|
11031
11031
|
v("span", J1, j(d(r)), 1),
|
|
11032
11032
|
d(l) ? (h(), S("span", K1, "+" + j(d(l)), 1)) : W("", !0)
|
|
11033
|
-
], 64)) : (h(),
|
|
11033
|
+
], 64)) : (h(), F(d(ue), {
|
|
11034
11034
|
key: 1,
|
|
11035
11035
|
name: "add",
|
|
11036
11036
|
size: "18px",
|
|
@@ -11048,7 +11048,7 @@ const q1 = new L1(), B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
11048
11048
|
}, {
|
|
11049
11049
|
default: C(() => [
|
|
11050
11050
|
D(c.$slots, "default", {}, () => [
|
|
11051
|
-
t.storeOpts ? (h(),
|
|
11051
|
+
t.storeOpts ? (h(), F(Or, {
|
|
11052
11052
|
key: 0,
|
|
11053
11053
|
store: t.storeOpts,
|
|
11054
11054
|
onSelect: a
|
|
@@ -11075,7 +11075,7 @@ const q1 = new L1(), B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
11075
11075
|
const n = t, i = e, s = () => {
|
|
11076
11076
|
n.count !== 0 && (n.to && X.H.Router.To(n.to), i("click"));
|
|
11077
11077
|
};
|
|
11078
|
-
return (o, r) => (h(),
|
|
11078
|
+
return (o, r) => (h(), F(d(xn), {
|
|
11079
11079
|
key: t.cellKey,
|
|
11080
11080
|
class: "relation-cell"
|
|
11081
11081
|
}, {
|
|
@@ -11098,7 +11098,7 @@ const q1 = new L1(), B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
11098
11098
|
row: {}
|
|
11099
11099
|
},
|
|
11100
11100
|
setup(t) {
|
|
11101
|
-
return (e, n) => (h(),
|
|
11101
|
+
return (e, n) => (h(), F(d(xn), { "auto-width": "" }, {
|
|
11102
11102
|
default: C(() => [
|
|
11103
11103
|
y(Ce, {
|
|
11104
11104
|
size: "sm",
|
|
@@ -11139,7 +11139,7 @@ const q1 = new L1(), B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
11139
11139
|
e.store && await e.store.Update(e.row);
|
|
11140
11140
|
};
|
|
11141
11141
|
return (a, c) => (h(), S(Q, null, [
|
|
11142
|
-
(h(),
|
|
11142
|
+
(h(), F(d(xn), {
|
|
11143
11143
|
key: t.prop,
|
|
11144
11144
|
class: "p-table-number-cell"
|
|
11145
11145
|
}, {
|
|
@@ -11149,7 +11149,7 @@ const q1 = new L1(), B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
11149
11149
|
onClick: c[0] || (c[0] = (f) => d(s) ? d(n).toggle() : void 0)
|
|
11150
11150
|
}, [
|
|
11151
11151
|
v("span", i0, j(d(r)), 1),
|
|
11152
|
-
d(o) ? (h(),
|
|
11152
|
+
d(o) ? (h(), F(At, { key: 0 }, {
|
|
11153
11153
|
default: C(() => [
|
|
11154
11154
|
fe(j(d(i)), 1)
|
|
11155
11155
|
]),
|
|
@@ -11159,7 +11159,7 @@ const q1 = new L1(), B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
11159
11159
|
]),
|
|
11160
11160
|
_: 1
|
|
11161
11161
|
})),
|
|
11162
|
-
d(s) ? (h(),
|
|
11162
|
+
d(s) ? (h(), F(is, {
|
|
11163
11163
|
key: 0,
|
|
11164
11164
|
ref_key: "edit",
|
|
11165
11165
|
ref: n,
|
|
@@ -11183,7 +11183,7 @@ const q1 = new L1(), B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
11183
11183
|
}, 512)) : W("", !0)
|
|
11184
11184
|
], 64));
|
|
11185
11185
|
}
|
|
11186
|
-
}), zu = /* @__PURE__ */ Y(s0, [["__scopeId", "data-v-4e17e527"]]),
|
|
11186
|
+
}), zu = /* @__PURE__ */ Y(s0, [["__scopeId", "data-v-4e17e527"]]), io = /* @__PURE__ */ N({
|
|
11187
11187
|
inheritAttrs: !1,
|
|
11188
11188
|
__name: "PSelect",
|
|
11189
11189
|
props: /* @__PURE__ */ Be({
|
|
@@ -11262,7 +11262,7 @@ const q1 = new L1(), B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
11262
11262
|
}), A = t, O = B(() => p.disable ?? A.disabled), M = B(() => {
|
|
11263
11263
|
const w = A.size === "sm" ? wt.S : A.size === "xs" ? wt.XS : A.size;
|
|
11264
11264
|
return w === wt.M ? void 0 : `p-field--${w}`;
|
|
11265
|
-
}),
|
|
11265
|
+
}), q = (w) => {
|
|
11266
11266
|
s("change", w);
|
|
11267
11267
|
}, k = () => {
|
|
11268
11268
|
s("clear", void 0);
|
|
@@ -11270,7 +11270,7 @@ const q1 = new L1(), B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
11270
11270
|
const w = {};
|
|
11271
11271
|
return A.margin && (w.margin = A.margin), A.padding && (w.padding = A.padding), A.width && (w.width = A.width), A.inPadding && (w.padding = A.inPadding), w;
|
|
11272
11272
|
});
|
|
11273
|
-
return (w, H) => (h(),
|
|
11273
|
+
return (w, H) => (h(), F(d(Hd), xt({
|
|
11274
11274
|
ref_key: "selectRef",
|
|
11275
11275
|
ref: o,
|
|
11276
11276
|
modelValue: i.value,
|
|
@@ -11294,9 +11294,9 @@ const q1 = new L1(), B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
11294
11294
|
outlined: "",
|
|
11295
11295
|
dense: "",
|
|
11296
11296
|
"hide-bottom-space": "",
|
|
11297
|
-
"onUpdate:modelValue":
|
|
11297
|
+
"onUpdate:modelValue": q,
|
|
11298
11298
|
onClear: k
|
|
11299
|
-
}),
|
|
11299
|
+
}), Ls({
|
|
11300
11300
|
before: C(() => [
|
|
11301
11301
|
D(w.$slots, "before", {}, () => [
|
|
11302
11302
|
D(w.$slots, "left")
|
|
@@ -11375,14 +11375,14 @@ const q1 = new L1(), B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
11375
11375
|
w.$slots.option ? {
|
|
11376
11376
|
name: "option",
|
|
11377
11377
|
fn: C((G) => [
|
|
11378
|
-
D(w.$slots, "option",
|
|
11378
|
+
D(w.$slots, "option", vs(ys(G)))
|
|
11379
11379
|
]),
|
|
11380
11380
|
key: "9"
|
|
11381
11381
|
} : void 0,
|
|
11382
11382
|
w.$slots["no-option"] ? {
|
|
11383
11383
|
name: "no-option",
|
|
11384
11384
|
fn: C((G) => [
|
|
11385
|
-
D(w.$slots, "no-option",
|
|
11385
|
+
D(w.$slots, "no-option", vs(ys(G)))
|
|
11386
11386
|
]),
|
|
11387
11387
|
key: "10"
|
|
11388
11388
|
} : void 0,
|
|
@@ -11403,7 +11403,7 @@ const q1 = new L1(), B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
11403
11403
|
w.$slots["selected-item"] ? {
|
|
11404
11404
|
name: "selected-item",
|
|
11405
11405
|
fn: C((G) => [
|
|
11406
|
-
D(w.$slots, "selected-item",
|
|
11406
|
+
D(w.$slots, "selected-item", vs(ys(G)))
|
|
11407
11407
|
]),
|
|
11408
11408
|
key: "13"
|
|
11409
11409
|
} : void 0
|
|
@@ -11421,12 +11421,12 @@ const q1 = new L1(), B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
11421
11421
|
const e = t, n = B(() => e.storeOpts.Options);
|
|
11422
11422
|
return zt(async () => {
|
|
11423
11423
|
await e.storeOpts.GetOptions();
|
|
11424
|
-
}), (i, s) => (h(),
|
|
11424
|
+
}), (i, s) => (h(), F(d(xn), {
|
|
11425
11425
|
key: t.prop,
|
|
11426
11426
|
class: "relation-cell"
|
|
11427
11427
|
}, {
|
|
11428
11428
|
default: C(() => [
|
|
11429
|
-
y(
|
|
11429
|
+
y(io, {
|
|
11430
11430
|
modelValue: t.row[t.prop + "Id"],
|
|
11431
11431
|
"onUpdate:modelValue": s[0] || (s[0] = (o) => t.row[t.prop + "Id"] = o),
|
|
11432
11432
|
clearable: !1,
|
|
@@ -11461,7 +11461,7 @@ const q1 = new L1(), B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
11461
11461
|
e.store && await e.store.Update(e.row);
|
|
11462
11462
|
};
|
|
11463
11463
|
return (a, c) => (h(), S(Q, null, [
|
|
11464
|
-
(h(),
|
|
11464
|
+
(h(), F(d(xn), {
|
|
11465
11465
|
key: t.prop,
|
|
11466
11466
|
class: "p-table-string-cell"
|
|
11467
11467
|
}, {
|
|
@@ -11471,7 +11471,7 @@ const q1 = new L1(), B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
11471
11471
|
onClick: c[0] || (c[0] = (f) => d(s) ? d(n).toggle() : void 0)
|
|
11472
11472
|
}, [
|
|
11473
11473
|
v("span", r0, j(d(r)), 1),
|
|
11474
|
-
d(o) ? (h(),
|
|
11474
|
+
d(o) ? (h(), F(At, { key: 0 }, {
|
|
11475
11475
|
default: C(() => [
|
|
11476
11476
|
fe(j(d(i)), 1)
|
|
11477
11477
|
]),
|
|
@@ -11481,7 +11481,7 @@ const q1 = new L1(), B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
11481
11481
|
]),
|
|
11482
11482
|
_: 1
|
|
11483
11483
|
})),
|
|
11484
|
-
d(s) ? (h(),
|
|
11484
|
+
d(s) ? (h(), F(is, {
|
|
11485
11485
|
key: 0,
|
|
11486
11486
|
ref_key: "edit",
|
|
11487
11487
|
ref: n,
|
|
@@ -11506,11 +11506,16 @@ const q1 = new L1(), B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
11506
11506
|
props: {
|
|
11507
11507
|
cols: {},
|
|
11508
11508
|
items: {},
|
|
11509
|
-
store: {},
|
|
11509
|
+
store: { default: void 0 },
|
|
11510
11510
|
ftsp: { default: void 0 },
|
|
11511
11511
|
rowKey: { default: "name" },
|
|
11512
11512
|
rowsPerPageOptions: { default: () => [25, 50, 75, 100] },
|
|
11513
|
-
paginationLabel: { type: Function, default: (t, e, n) => `${t}-${e} из ${n}` }
|
|
11513
|
+
paginationLabel: { type: Function, default: (t, e, n) => `${t}-${e} из ${n}` },
|
|
11514
|
+
lead: { type: Boolean, default: !0 },
|
|
11515
|
+
rowAttrs: { type: Function, default: void 0 },
|
|
11516
|
+
dense: { type: Boolean, default: !1 },
|
|
11517
|
+
hideBottom: { type: Boolean, default: !1 },
|
|
11518
|
+
loading: { type: Boolean, default: !1 }
|
|
11514
11519
|
},
|
|
11515
11520
|
emits: ["request"],
|
|
11516
11521
|
setup(t, { emit: e }) {
|
|
@@ -11522,7 +11527,8 @@ const q1 = new L1(), B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
11522
11527
|
descending: !1
|
|
11523
11528
|
});
|
|
11524
11529
|
function l() {
|
|
11525
|
-
|
|
11530
|
+
var m;
|
|
11531
|
+
const f = (m = n.store) == null ? void 0 : m.Count;
|
|
11526
11532
|
return typeof f == "number" ? f : Number((f == null ? void 0 : f.value) ?? 0) || 0;
|
|
11527
11533
|
}
|
|
11528
11534
|
ze(l, (f) => {
|
|
@@ -11531,9 +11537,9 @@ const q1 = new L1(), B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
11531
11537
|
const a = (f) => {
|
|
11532
11538
|
s.value.p.offset = (f.pagination.page - 1) * f.pagination.rowsPerPage, s.value.p.rowsPerPage = f.pagination.rowsPerPage, r.value.page = f.pagination.page, r.value.rowsPerPage = f.pagination.rowsPerPage;
|
|
11533
11539
|
}, c = async (f) => {
|
|
11534
|
-
a(f), await n.store.FTSP({ ftsp: s.value }), o("request");
|
|
11540
|
+
a(f), n.store && await n.store.FTSP({ ftsp: s.value }), o("request");
|
|
11535
11541
|
};
|
|
11536
|
-
return (f, m) => (h(),
|
|
11542
|
+
return (f, m) => (h(), F(d(Vd), {
|
|
11537
11543
|
pagination: d(r),
|
|
11538
11544
|
"onUpdate:pagination": m[0] || (m[0] = (p) => Le(r) ? r.value = p : null),
|
|
11539
11545
|
columns: t.cols,
|
|
@@ -11544,40 +11550,65 @@ const q1 = new L1(), B1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
11544
11550
|
"rows-per-page-label": "На странице",
|
|
11545
11551
|
"pagination-label": t.paginationLabel,
|
|
11546
11552
|
"rows-per-page-options": t.rowsPerPageOptions,
|
|
11553
|
+
dense: t.dense,
|
|
11554
|
+
"hide-bottom": t.hideBottom,
|
|
11555
|
+
loading: t.loading,
|
|
11547
11556
|
class: "p-table",
|
|
11548
11557
|
onRequest: c
|
|
11549
11558
|
}, {
|
|
11550
11559
|
header: C((p) => [
|
|
11551
|
-
|
|
11552
|
-
|
|
11553
|
-
|
|
11554
|
-
|
|
11555
|
-
|
|
11556
|
-
|
|
11557
|
-
|
|
11560
|
+
D(f.$slots, "header", { props: p }, () => [
|
|
11561
|
+
y(d(la), { props: p }, {
|
|
11562
|
+
default: C(() => [
|
|
11563
|
+
t.lead ? (h(), F(d(ua), {
|
|
11564
|
+
key: 0,
|
|
11565
|
+
"auto-width": ""
|
|
11566
|
+
})) : W("", !0),
|
|
11567
|
+
(h(!0), S(Q, null, ve(p.cols, (x) => (h(), F(d(ua), {
|
|
11568
|
+
key: x.name,
|
|
11569
|
+
props: p
|
|
11570
|
+
}, {
|
|
11571
|
+
default: C(() => [
|
|
11572
|
+
fe(j(x.label), 1)
|
|
11573
|
+
]),
|
|
11574
|
+
_: 2
|
|
11575
|
+
}, 1032, ["props"]))), 128))
|
|
11576
|
+
]),
|
|
11577
|
+
_: 2
|
|
11578
|
+
}, 1032, ["props"])
|
|
11579
|
+
], !0)
|
|
11580
|
+
]),
|
|
11581
|
+
body: C((p) => [
|
|
11582
|
+
D(f.$slots, "body", vs(ys(p)), () => {
|
|
11583
|
+
var x;
|
|
11584
|
+
return [
|
|
11585
|
+
y(d(la), xt({ props: p }, ((x = t.rowAttrs) == null ? void 0 : x.call(t, p.row)) ?? {}), {
|
|
11558
11586
|
default: C(() => [
|
|
11559
|
-
|
|
11587
|
+
t.lead ? (h(), F(d(xn), {
|
|
11588
|
+
key: 0,
|
|
11589
|
+
"auto-width": ""
|
|
11590
|
+
}, {
|
|
11591
|
+
default: C(() => [
|
|
11592
|
+
D(f.$slots, "lead", {
|
|
11593
|
+
row: p.row
|
|
11594
|
+
}, void 0, !0)
|
|
11595
|
+
]),
|
|
11596
|
+
_: 2
|
|
11597
|
+
}, 1024)) : W("", !0),
|
|
11598
|
+
D(f.$slots, "default", {
|
|
11599
|
+
row: p.row,
|
|
11600
|
+
props: p
|
|
11601
|
+
}, void 0, !0)
|
|
11560
11602
|
]),
|
|
11561
11603
|
_: 2
|
|
11562
|
-
},
|
|
11563
|
-
]
|
|
11564
|
-
|
|
11565
|
-
}, 1032, ["props"])
|
|
11566
|
-
]),
|
|
11567
|
-
body: C((p) => [
|
|
11568
|
-
y(d(la), { props: p }, {
|
|
11569
|
-
default: C(() => [
|
|
11570
|
-
D(f.$slots, "default", {
|
|
11571
|
-
row: p.row
|
|
11572
|
-
}, void 0, !0)
|
|
11573
|
-
]),
|
|
11574
|
-
_: 2
|
|
11575
|
-
}, 1032, ["props"])
|
|
11604
|
+
}, 1040, ["props"])
|
|
11605
|
+
];
|
|
11606
|
+
}, !0)
|
|
11576
11607
|
]),
|
|
11577
11608
|
_: 3
|
|
11578
|
-
}, 8, ["pagination", "columns", "rows", "row-key", "pagination-label", "rows-per-page-options"]));
|
|
11609
|
+
}, 8, ["pagination", "columns", "rows", "row-key", "pagination-label", "rows-per-page-options", "dense", "hide-bottom", "loading"]));
|
|
11579
11610
|
}
|
|
11580
|
-
}), Lu = /* @__PURE__ */ Y(l0, [["__scopeId", "data-v-
|
|
11611
|
+
}), Lu = /* @__PURE__ */ Y(l0, [["__scopeId", "data-v-4626673c"]]);
|
|
11581
11612
|
function qu(t) {
|
|
11582
11613
|
t.component("PTable", Lu), t.component("PTableBadge", Iu), t.component("PTableBadges", Au), t.component("PTableCount", Eu), t.component("PTableEdit", Ou), t.component("PTableNumber", zu), t.component("PTableSelect", Du), t.component("PTableString", Fu);
|
|
11583
11614
|
}
|
|
@@ -11640,7 +11671,7 @@ const u0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
11640
11671
|
"onUpdate:modelValue": s
|
|
11641
11672
|
}, {
|
|
11642
11673
|
default: C(() => [
|
|
11643
|
-
(h(!0), S(Q, null, ve(t.tabsStore.items, (l) => (h(),
|
|
11674
|
+
(h(!0), S(Q, null, ve(t.tabsStore.items, (l) => (h(), F(d(rr), {
|
|
11644
11675
|
key: l.value,
|
|
11645
11676
|
name: l.value,
|
|
11646
11677
|
label: l.htmlLabel ? void 0 : l.label,
|
|
@@ -11652,7 +11683,7 @@ const u0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
11652
11683
|
key: 0,
|
|
11653
11684
|
innerHTML: l.htmlLabel
|
|
11654
11685
|
}, null, 8, d0)) : W("", !0),
|
|
11655
|
-
l.alert ? (h(),
|
|
11686
|
+
l.alert ? (h(), F(d(Xa), {
|
|
11656
11687
|
key: 1,
|
|
11657
11688
|
color: "negative",
|
|
11658
11689
|
floating: "",
|
|
@@ -11677,7 +11708,7 @@ const u0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
11677
11708
|
"transition-next": "slide-left"
|
|
11678
11709
|
}, {
|
|
11679
11710
|
default: C(() => [
|
|
11680
|
-
(h(!0), S(Q, null, ve(t.tabsStore.items, (l) => (h(),
|
|
11711
|
+
(h(!0), S(Q, null, ve(t.tabsStore.items, (l) => (h(), F(d(el), {
|
|
11681
11712
|
key: l.value,
|
|
11682
11713
|
name: l.value,
|
|
11683
11714
|
class: "tab-panel"
|
|
@@ -11687,7 +11718,7 @@ const u0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
11687
11718
|
item: l,
|
|
11688
11719
|
tab: l
|
|
11689
11720
|
}, () => [
|
|
11690
|
-
(h(),
|
|
11721
|
+
(h(), F(Wn(l.component)))
|
|
11691
11722
|
], !0)
|
|
11692
11723
|
]),
|
|
11693
11724
|
_: 2
|
|
@@ -11714,7 +11745,7 @@ const u0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
11714
11745
|
const n = t, i = e, s = (r) => {
|
|
11715
11746
|
n.tabsStore.Select(r), i("select");
|
|
11716
11747
|
}, o = E(20);
|
|
11717
|
-
return (r, l) => (h(),
|
|
11748
|
+
return (r, l) => (h(), F(d(Ud), {
|
|
11718
11749
|
modelValue: d(o),
|
|
11719
11750
|
"onUpdate:modelValue": l[0] || (l[0] = (a) => Le(o) ? o.value = a : null),
|
|
11720
11751
|
class: "full-height"
|
|
@@ -11727,7 +11758,7 @@ const u0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
11727
11758
|
"onUpdate:modelValue": s
|
|
11728
11759
|
}, {
|
|
11729
11760
|
default: C(() => [
|
|
11730
|
-
(h(!0), S(Q, null, ve(t.tabsStore.items, (a) => (h(),
|
|
11761
|
+
(h(!0), S(Q, null, ve(t.tabsStore.items, (a) => (h(), F(d(rr), {
|
|
11731
11762
|
key: a.value,
|
|
11732
11763
|
name: a.value,
|
|
11733
11764
|
label: a.label,
|
|
@@ -11737,7 +11768,7 @@ const u0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
11737
11768
|
_: 1
|
|
11738
11769
|
}, 8, ["model-value"]),
|
|
11739
11770
|
v("div", f0, [
|
|
11740
|
-
(h(!0), S(Q, null, ve(t.buttons, (a, c) => (h(),
|
|
11771
|
+
(h(!0), S(Q, null, ve(t.buttons, (a, c) => (h(), F(Ce, {
|
|
11741
11772
|
key: c,
|
|
11742
11773
|
label: a.text,
|
|
11743
11774
|
color: a.color,
|
|
@@ -11753,13 +11784,13 @@ const u0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
11753
11784
|
class: "shadow-2 rounded-borders"
|
|
11754
11785
|
}, {
|
|
11755
11786
|
default: C(() => [
|
|
11756
|
-
(h(!0), S(Q, null, ve(t.tabsStore.GetItems(), (a) => (h(),
|
|
11787
|
+
(h(!0), S(Q, null, ve(t.tabsStore.GetItems(), (a) => (h(), F(d(el), {
|
|
11757
11788
|
key: a.value,
|
|
11758
11789
|
name: a.value
|
|
11759
11790
|
}, {
|
|
11760
11791
|
default: C(() => [
|
|
11761
11792
|
D(r.$slots, "default", { item: a }, () => [
|
|
11762
|
-
(h(),
|
|
11793
|
+
(h(), F(Wn(a.component)))
|
|
11763
11794
|
], !0)
|
|
11764
11795
|
]),
|
|
11765
11796
|
_: 2
|
|
@@ -11872,7 +11903,7 @@ const m0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
11872
11903
|
class: "p-checkbox",
|
|
11873
11904
|
style: V({ padding: t.padding, margin: t.margin, maxWidth: t.width })
|
|
11874
11905
|
}, [
|
|
11875
|
-
y(d(Nd),
|
|
11906
|
+
y(d(Nd), xt({
|
|
11876
11907
|
modelValue: n.value,
|
|
11877
11908
|
"onUpdate:modelValue": a[0] || (a[0] = (c) => n.value = c)
|
|
11878
11909
|
}, d(o), {
|
|
@@ -11952,7 +11983,7 @@ const m0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
11952
11983
|
!k || k.length === 10 && !!f(k) || (x.value = !0, m.value = c(o.value), x.value = !1), m.value !== c(o.value) && s("blur", o.value);
|
|
11953
11984
|
}, M = async () => {
|
|
11954
11985
|
await fi(), await fi(), s("blur", o.value);
|
|
11955
|
-
},
|
|
11986
|
+
}, q = {
|
|
11956
11987
|
days: "Понедельник_Вторник_Среда_Четверг_Пятница_Суббота_Воскресенье".split("_"),
|
|
11957
11988
|
daysShort: "Пн_Вт_Ср_Чт_Пт_Сб_Вс".split("_"),
|
|
11958
11989
|
months: "Январь_Февраль_Март_Апрель_Май_Июнь_Июль_Август_Сентябрь_Октябрь_Ноябрь_Декабрь".split(
|
|
@@ -11963,7 +11994,7 @@ const m0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
11963
11994
|
format24h: !0,
|
|
11964
11995
|
pluralDay: "дни"
|
|
11965
11996
|
};
|
|
11966
|
-
return (k, I) => (h(),
|
|
11997
|
+
return (k, I) => (h(), F(Ot, {
|
|
11967
11998
|
modelValue: d(m),
|
|
11968
11999
|
"onUpdate:modelValue": [
|
|
11969
12000
|
I[1] || (I[1] = (w) => Le(m) ? m.value = w : null),
|
|
@@ -12007,7 +12038,7 @@ const m0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12007
12038
|
],
|
|
12008
12039
|
mask: Fa,
|
|
12009
12040
|
"today-btn": "",
|
|
12010
|
-
locale:
|
|
12041
|
+
locale: q
|
|
12011
12042
|
}, {
|
|
12012
12043
|
default: C(() => [
|
|
12013
12044
|
v("div", g0, [
|
|
@@ -12098,7 +12129,7 @@ const m0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12098
12129
|
format24h: !0,
|
|
12099
12130
|
pluralDay: "дни"
|
|
12100
12131
|
};
|
|
12101
|
-
return (T, A) => (h(),
|
|
12132
|
+
return (T, A) => (h(), F(Ot, {
|
|
12102
12133
|
"model-value": d(i),
|
|
12103
12134
|
label: t.label,
|
|
12104
12135
|
placeholder: t.placeholder,
|
|
@@ -12247,8 +12278,8 @@ const m0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12247
12278
|
var M;
|
|
12248
12279
|
(M = l.value) == null || M.resetValidation(), r(!0), i("reset");
|
|
12249
12280
|
}, p = async () => {
|
|
12250
|
-
var
|
|
12251
|
-
const M = await ((
|
|
12281
|
+
var q;
|
|
12282
|
+
const M = await ((q = l.value) == null ? void 0 : q.validate()) ?? !1;
|
|
12252
12283
|
return r(M), M;
|
|
12253
12284
|
}, x = () => {
|
|
12254
12285
|
var M;
|
|
@@ -12258,12 +12289,12 @@ const m0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12258
12289
|
var M;
|
|
12259
12290
|
return (M = l.value) == null ? void 0 : M.focus();
|
|
12260
12291
|
}, submit: (M) => {
|
|
12261
|
-
var
|
|
12262
|
-
return (
|
|
12292
|
+
var q;
|
|
12293
|
+
return (q = l.value) == null ? void 0 : q.submit(M);
|
|
12263
12294
|
}, reset: (M) => {
|
|
12264
|
-
var
|
|
12265
|
-
return (
|
|
12266
|
-
} }), (M,
|
|
12295
|
+
var q;
|
|
12296
|
+
return (q = l.value) == null ? void 0 : q.reset(M);
|
|
12297
|
+
} }), (M, q) => (h(), F(d(_d), {
|
|
12267
12298
|
ref_key: "qFormRef",
|
|
12268
12299
|
ref: l,
|
|
12269
12300
|
greedy: t.greedy,
|
|
@@ -12297,7 +12328,7 @@ const m0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12297
12328
|
setup(t) {
|
|
12298
12329
|
const e = E(!1);
|
|
12299
12330
|
return (n, i) => (h(), S(Q, null, [
|
|
12300
|
-
t.text ? (h(),
|
|
12331
|
+
t.text ? (h(), F(d(ue), {
|
|
12301
12332
|
key: 0,
|
|
12302
12333
|
name: "help_outline",
|
|
12303
12334
|
size: "15px",
|
|
@@ -12450,8 +12481,8 @@ const m0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12450
12481
|
c.value = T(w), p.value = T(w).toFixed(l()), H.forEach((G) => n(G, c.value));
|
|
12451
12482
|
}, O = (w, ...H) => {
|
|
12452
12483
|
r.disabled || w > r.max || w < r.min || A(w, ...H);
|
|
12453
|
-
}, M = () => O(+p.value + r.step, "change"),
|
|
12454
|
-
return (w, H) => (h(),
|
|
12484
|
+
}, M = () => O(+p.value + r.step, "change"), q = () => O(+p.value - r.step, "change"), k = (w) => O(Number(w), "input"), I = () => O(+p.value, "change", "blur");
|
|
12485
|
+
return (w, H) => (h(), F(d(Wi), xt(d(o), {
|
|
12455
12486
|
for: d(s),
|
|
12456
12487
|
"model-value": d(p),
|
|
12457
12488
|
label: t.label || void 0,
|
|
@@ -12474,7 +12505,7 @@ const m0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12474
12505
|
dense: "",
|
|
12475
12506
|
round: "",
|
|
12476
12507
|
style: { width: "32px", height: "32px" },
|
|
12477
|
-
onClick:
|
|
12508
|
+
onClick: q
|
|
12478
12509
|
}, {
|
|
12479
12510
|
default: C(() => [
|
|
12480
12511
|
y(R0)
|
|
@@ -12596,14 +12627,14 @@ const m0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12596
12627
|
onClick: l[0] || (l[0] = (c) => o(!d(s)))
|
|
12597
12628
|
}, {
|
|
12598
12629
|
default: C(() => [
|
|
12599
|
-
d(s) ? (h(),
|
|
12630
|
+
d(s) ? (h(), F(a, {
|
|
12600
12631
|
key: 0,
|
|
12601
12632
|
string: t.titleOpen,
|
|
12602
12633
|
"font-size": "16px",
|
|
12603
12634
|
padding: "0",
|
|
12604
12635
|
color: "inherit"
|
|
12605
12636
|
}, null, 8, ["string"])) : W("", !0),
|
|
12606
|
-
d(s) ? W("", !0) : (h(),
|
|
12637
|
+
d(s) ? W("", !0) : (h(), F(a, {
|
|
12607
12638
|
key: 1,
|
|
12608
12639
|
string: t.titleClose,
|
|
12609
12640
|
"font-size": "16px",
|
|
@@ -12625,7 +12656,7 @@ const m0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12625
12656
|
width: { type: String, required: !1, default: "300px" }
|
|
12626
12657
|
},
|
|
12627
12658
|
setup(t) {
|
|
12628
|
-
return (e, n) => (h(),
|
|
12659
|
+
return (e, n) => (h(), F(d(ar), {
|
|
12629
12660
|
tag: "ul",
|
|
12630
12661
|
style: V({
|
|
12631
12662
|
margin: t.margin,
|
|
@@ -12648,7 +12679,7 @@ const m0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12648
12679
|
background: { type: String, required: !1, default: "" }
|
|
12649
12680
|
},
|
|
12650
12681
|
setup(t) {
|
|
12651
|
-
return (e, n) => (h(),
|
|
12682
|
+
return (e, n) => (h(), F(d(lr), {
|
|
12652
12683
|
tag: "li",
|
|
12653
12684
|
style: V({
|
|
12654
12685
|
margin: t.margin,
|
|
@@ -12714,7 +12745,7 @@ const m0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12714
12745
|
class: "p-loader__icon--error"
|
|
12715
12746
|
}, null, 8, ["size"]),
|
|
12716
12747
|
v("div", V0, j(t.error), 1),
|
|
12717
|
-
t.retryLabel ? (h(),
|
|
12748
|
+
t.retryLabel ? (h(), F(Ce, {
|
|
12718
12749
|
key: 0,
|
|
12719
12750
|
unelevated: "",
|
|
12720
12751
|
color: "primary",
|
|
@@ -12773,7 +12804,7 @@ const m0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12773
12804
|
};
|
|
12774
12805
|
return zt(async () => {
|
|
12775
12806
|
n.length > 0 || await e.storeOpts.GetOptions(e.optLabel, e.optValue);
|
|
12776
|
-
}), (a, c) => (h(),
|
|
12807
|
+
}), (a, c) => (h(), F(io, {
|
|
12777
12808
|
"use-input": "",
|
|
12778
12809
|
options: d(i),
|
|
12779
12810
|
"model-value": t.item[t.prop + "Id"],
|
|
@@ -12922,14 +12953,14 @@ const m0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12922
12953
|
onClick: l[0] || (l[0] = (c) => o(!d(s)))
|
|
12923
12954
|
}, {
|
|
12924
12955
|
default: C(() => [
|
|
12925
|
-
d(s) ? (h(),
|
|
12956
|
+
d(s) ? (h(), F(a, {
|
|
12926
12957
|
key: 0,
|
|
12927
12958
|
string: t.titleOpen,
|
|
12928
12959
|
"font-size": "16px",
|
|
12929
12960
|
padding: "0",
|
|
12930
12961
|
color: "inherit"
|
|
12931
12962
|
}, null, 8, ["string"])) : W("", !0),
|
|
12932
|
-
d(s) ? W("", !0) : (h(),
|
|
12963
|
+
d(s) ? W("", !0) : (h(), F(a, {
|
|
12933
12964
|
key: 1,
|
|
12934
12965
|
string: t.titleClose,
|
|
12935
12966
|
"font-size": "16px",
|
|
@@ -12994,7 +13025,7 @@ const m0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12994
13025
|
const e = t, n = B(() => e.row[e.prop]), i = async () => {
|
|
12995
13026
|
e.row[e.prop] = !e.row[e.prop], await e.store.Update(e.row);
|
|
12996
13027
|
};
|
|
12997
|
-
return (s, o) => (h(),
|
|
13028
|
+
return (s, o) => (h(), F(d(xn), { key: t.prop }, {
|
|
12998
13029
|
default: C(() => [
|
|
12999
13030
|
v("div", {
|
|
13000
13031
|
class: he(["toggle-cell", { clickable: !e.readonly }]),
|
|
@@ -13047,7 +13078,7 @@ const m0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13047
13078
|
const a = {};
|
|
13048
13079
|
return o.margin && (a.margin = o.margin), o.padding && (a.padding = o.padding), o.borderColor && (a["--p-border-color"] = o.borderColor), a;
|
|
13049
13080
|
});
|
|
13050
|
-
return (a, c) => (h(),
|
|
13081
|
+
return (a, c) => (h(), F(d(Wi), xt({
|
|
13051
13082
|
modelValue: e.value,
|
|
13052
13083
|
"onUpdate:modelValue": c[0] || (c[0] = (f) => e.value = f)
|
|
13053
13084
|
}, d(s), {
|
|
@@ -13103,7 +13134,7 @@ const m0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13103
13134
|
class: "p-toggle",
|
|
13104
13135
|
style: V({ padding: t.padding, margin: t.margin, maxWidth: t.width })
|
|
13105
13136
|
}, [
|
|
13106
|
-
y(d(Yd),
|
|
13137
|
+
y(d(Yd), xt({
|
|
13107
13138
|
modelValue: n.value,
|
|
13108
13139
|
"onUpdate:modelValue": a[0] || (a[0] = (c) => n.value = c)
|
|
13109
13140
|
}, d(o), {
|
|
@@ -13191,7 +13222,7 @@ const m0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13191
13222
|
}
|
|
13192
13223
|
}), ay = /* @__PURE__ */ Y(ry, [["__scopeId", "data-v-3f29d8f7"]]);
|
|
13193
13224
|
function ly(t) {
|
|
13194
|
-
t.component("PButton", Ce), t.component("PBadge",
|
|
13225
|
+
t.component("PButton", Ce), t.component("PBadge", Xs), t.component("PCheckBox", p0), t.component("PChip", Ru), t.component("PDateInput", v0), t.component("PDateTimeInput", w0), t.component("PDialog", ki), t.component("PFlex", C0), t.component("PForm", $0), t.component("PHint", Uu), t.component("PInput", Ot), t.component("PInputNumber", O0), t.component("PLeftSlider", D0), t.component("PList", F0), t.component("PListItem", L0), t.component("PLoader", j0), t.component("POptionsListSingle", Or), t.component("POpts", W0), t.component("PRadio", G0), t.component("PRightSlider", X0), t.component("PSelect", io), t.component("PSticky", J0), t.component("PString", Tr), t.component("PTextarea", ny), t.component("PTopSlider", ay), t.component("PTableToggle", ey), t.component("PToggle", iy), t.component("PTooltip", At);
|
|
13195
13226
|
}
|
|
13196
13227
|
const uy = {
|
|
13197
13228
|
key: 0,
|
|
@@ -13408,7 +13439,7 @@ const uy = {
|
|
|
13408
13439
|
return (l, a) => {
|
|
13409
13440
|
const c = ae("PUploderImage"), f = ae("Move");
|
|
13410
13441
|
return h(), S(Q, null, [
|
|
13411
|
-
y(d(
|
|
13442
|
+
y(d(Ts), {
|
|
13412
13443
|
class: "groups",
|
|
13413
13444
|
list: t.images,
|
|
13414
13445
|
"item-key": "id",
|
|
@@ -13707,7 +13738,7 @@ const uy = {
|
|
|
13707
13738
|
};
|
|
13708
13739
|
return (r, l) => {
|
|
13709
13740
|
const a = ae("PCheckBox");
|
|
13710
|
-
return h(),
|
|
13741
|
+
return h(), F(a, {
|
|
13711
13742
|
modelValue: d(i),
|
|
13712
13743
|
"onUpdate:modelValue": l[0] || (l[0] = (c) => Le(i) ? i.value = c : null),
|
|
13713
13744
|
label: t.model.label,
|
|
@@ -13765,7 +13796,7 @@ const uy = {
|
|
|
13765
13796
|
margin: "0px"
|
|
13766
13797
|
}, {
|
|
13767
13798
|
default: C(() => [
|
|
13768
|
-
(h(!0), S(Q, null, ve(t.models, (T, A) => (h(),
|
|
13799
|
+
(h(!0), S(Q, null, ve(t.models, (T, A) => (h(), F(m, {
|
|
13769
13800
|
key: A,
|
|
13770
13801
|
color: "blue",
|
|
13771
13802
|
height: "auto",
|
|
@@ -13806,7 +13837,7 @@ const uy = {
|
|
|
13806
13837
|
};
|
|
13807
13838
|
return (l, a) => {
|
|
13808
13839
|
const c = ae("PSelect");
|
|
13809
|
-
return h(),
|
|
13840
|
+
return h(), F(c, {
|
|
13810
13841
|
modelValue: d(s),
|
|
13811
13842
|
"onUpdate:modelValue": a[0] || (a[0] = (f) => Le(s) ? s.value = f : null),
|
|
13812
13843
|
clearable: d(s),
|
|
@@ -14011,7 +14042,7 @@ const uy = {
|
|
|
14011
14042
|
background: n.background
|
|
14012
14043
|
})), M = () => {
|
|
14013
14044
|
n.showSaveDialog ? l.value = !0 : r.value = !1;
|
|
14014
|
-
},
|
|
14045
|
+
}, q = async () => {
|
|
14015
14046
|
await i("keyup-enter"), n.close && (r.value = !1), l.value = !1;
|
|
14016
14047
|
}, k = () => {
|
|
14017
14048
|
r.value = !1, l.value = !1;
|
|
@@ -14083,7 +14114,7 @@ const uy = {
|
|
|
14083
14114
|
}),
|
|
14084
14115
|
y(G, {
|
|
14085
14116
|
text: "Сохранять",
|
|
14086
|
-
onClick:
|
|
14117
|
+
onClick: q
|
|
14087
14118
|
})
|
|
14088
14119
|
])
|
|
14089
14120
|
]),
|
|
@@ -14115,7 +14146,7 @@ const uy = {
|
|
|
14115
14146
|
};
|
|
14116
14147
|
return (o, r) => {
|
|
14117
14148
|
const l = ae("PString"), a = ae("PButton"), c = ae("InfoItem");
|
|
14118
|
-
return h(),
|
|
14149
|
+
return h(), F(c, {
|
|
14119
14150
|
close: d(n),
|
|
14120
14151
|
title: t.title,
|
|
14121
14152
|
"close-window-overflow": "hidden",
|
|
@@ -14123,7 +14154,7 @@ const uy = {
|
|
|
14123
14154
|
"with-open-window": !0
|
|
14124
14155
|
}, {
|
|
14125
14156
|
"open-inside-content": C(() => [
|
|
14126
|
-
(h(!0), S(Q, null, ve(t.list, (f) => (h(),
|
|
14157
|
+
(h(!0), S(Q, null, ve(t.list, (f) => (h(), F(a, {
|
|
14127
14158
|
key: f,
|
|
14128
14159
|
type: "admin",
|
|
14129
14160
|
color: "blue",
|
|
@@ -14358,10 +14389,10 @@ const uy = {
|
|
|
14358
14389
|
const m = document.querySelector(".el-table__body-wrapper"), p = document.querySelector("#list");
|
|
14359
14390
|
m ? m.scrollTo({ top: 0 }) : p && p.scrollTo({ top: 0 });
|
|
14360
14391
|
};
|
|
14361
|
-
return
|
|
14392
|
+
return qs(() => {
|
|
14362
14393
|
Yt.Get().p.drop();
|
|
14363
14394
|
}), (m, p) => {
|
|
14364
|
-
const x = ae("ArrowLeft"), T = ae("PButton"), A = ae("DoubleArrowLeft"), O = ae("EllipsisSvg"), M = ae("DoubleArrowRight"),
|
|
14395
|
+
const x = ae("ArrowLeft"), T = ae("PButton"), A = ae("DoubleArrowLeft"), O = ae("EllipsisSvg"), M = ae("DoubleArrowRight"), q = ae("ArrowRight");
|
|
14365
14396
|
return h(), S("div", cb, [
|
|
14366
14397
|
v("div", {
|
|
14367
14398
|
class: "pag-container",
|
|
@@ -14400,7 +14431,7 @@ const uy = {
|
|
|
14400
14431
|
onClick: p[2] || (p[2] = (k) => l(d(s).curPage - 5))
|
|
14401
14432
|
}, {
|
|
14402
14433
|
default: C(() => [
|
|
14403
|
-
d(o) ? (h(),
|
|
14434
|
+
d(o) ? (h(), F(A, { key: 0 })) : (h(), F(O, { key: 1 }))
|
|
14404
14435
|
]),
|
|
14405
14436
|
_: 1
|
|
14406
14437
|
})
|
|
@@ -14424,7 +14455,7 @@ const uy = {
|
|
|
14424
14455
|
onClick: p[5] || (p[5] = (k) => l(d(s).curPage + 5))
|
|
14425
14456
|
}, {
|
|
14426
14457
|
default: C(() => [
|
|
14427
|
-
d(r) ? (h(),
|
|
14458
|
+
d(r) ? (h(), F(M, { key: 0 })) : (h(), F(O, { key: 1 }))
|
|
14428
14459
|
]),
|
|
14429
14460
|
_: 1
|
|
14430
14461
|
})
|
|
@@ -14444,7 +14475,7 @@ const uy = {
|
|
|
14444
14475
|
onClick: p[9] || (p[9] = (k) => l(d(s).curPage + 1))
|
|
14445
14476
|
}, {
|
|
14446
14477
|
default: C(() => [
|
|
14447
|
-
y(
|
|
14478
|
+
y(q)
|
|
14448
14479
|
]),
|
|
14449
14480
|
_: 1
|
|
14450
14481
|
}, 8, ["type"])
|
|
@@ -14520,7 +14551,7 @@ const uy = {
|
|
|
14520
14551
|
}, c = (f) => {
|
|
14521
14552
|
i("input", f), f.length === 0 && i("input", "");
|
|
14522
14553
|
};
|
|
14523
|
-
return (f, m) => (h(),
|
|
14554
|
+
return (f, m) => (h(), F(ju, {
|
|
14524
14555
|
ref_key: "searchForm",
|
|
14525
14556
|
ref: o,
|
|
14526
14557
|
modelValue: d(s),
|
|
@@ -14635,14 +14666,14 @@ const uy = {
|
|
|
14635
14666
|
class: "click-line",
|
|
14636
14667
|
onClick: l[0] || (l[0] = (c) => o(!d(s)))
|
|
14637
14668
|
}, [
|
|
14638
|
-
d(s) ? (h(),
|
|
14669
|
+
d(s) ? (h(), F(a, {
|
|
14639
14670
|
key: 0,
|
|
14640
14671
|
string: t.titleClose,
|
|
14641
14672
|
"font-size": "16px",
|
|
14642
14673
|
padding: "0",
|
|
14643
14674
|
color: "var(--font-color-focus)"
|
|
14644
14675
|
}, null, 8, ["string"])) : W("", !0),
|
|
14645
|
-
d(s) ? W("", !0) : (h(),
|
|
14676
|
+
d(s) ? W("", !0) : (h(), F(a, {
|
|
14646
14677
|
key: 1,
|
|
14647
14678
|
string: t.titleOpen,
|
|
14648
14679
|
"font-size": "16px",
|
|
@@ -14831,7 +14862,7 @@ const uy = {
|
|
|
14831
14862
|
return (l, a) => {
|
|
14832
14863
|
var f;
|
|
14833
14864
|
const c = ae("PSelect");
|
|
14834
|
-
return d(n) ? (h(),
|
|
14865
|
+
return d(n) ? (h(), F(c, {
|
|
14835
14866
|
key: 0,
|
|
14836
14867
|
modelValue: d(s),
|
|
14837
14868
|
"onUpdate:modelValue": a[0] || (a[0] = (m) => Le(s) ? s.value = m : null),
|
|
@@ -14876,7 +14907,7 @@ const uy = {
|
|
|
14876
14907
|
return (a, c) => {
|
|
14877
14908
|
var m;
|
|
14878
14909
|
const f = ae("PSelect");
|
|
14879
|
-
return h(),
|
|
14910
|
+
return h(), F(f, {
|
|
14880
14911
|
modelValue: d(o),
|
|
14881
14912
|
"onUpdate:modelValue": c[0] || (c[0] = (p) => Le(o) ? o.value = p : null),
|
|
14882
14913
|
"popper-append-to-body": !1,
|
|
@@ -14998,7 +15029,7 @@ const Zb = /* @__PURE__ */ Y(Yb, [["render", Qb], ["__scopeId", "data-v-5023d414
|
|
|
14998
15029
|
};
|
|
14999
15030
|
return (o, r) => {
|
|
15000
15031
|
const l = ae("PString"), a = ae("PButton"), c = ae("GridContainer"), f = ae("InfoItem");
|
|
15001
|
-
return h(),
|
|
15032
|
+
return h(), F(f, {
|
|
15002
15033
|
title: t.title,
|
|
15003
15034
|
icon: "edit-title",
|
|
15004
15035
|
"with-hover": !0,
|
|
@@ -15021,10 +15052,10 @@ const Zb = /* @__PURE__ */ Y(Yb, [["render", Qb], ["__scopeId", "data-v-5023d414
|
|
|
15021
15052
|
})
|
|
15022
15053
|
]),
|
|
15023
15054
|
default: C(() => [
|
|
15024
|
-
t.content.length > 0 ? (h(),
|
|
15055
|
+
t.content.length > 0 ? (h(), F(l, {
|
|
15025
15056
|
key: 0,
|
|
15026
15057
|
string: t.content
|
|
15027
|
-
}, null, 8, ["string"])) : (h(),
|
|
15058
|
+
}, null, 8, ["string"])) : (h(), F(l, {
|
|
15028
15059
|
key: 1,
|
|
15029
15060
|
string: "Введите данные",
|
|
15030
15061
|
color: "var(--brand-font-hint)"
|
|
@@ -15842,10 +15873,10 @@ const Uw = /* @__PURE__ */ Y(qw, [["render", Vw], ["__scopeId", "data-v-6fb8269e
|
|
|
15842
15873
|
v("div", _w, [
|
|
15843
15874
|
D(i.$slots, "inside-title", {}, void 0, !0)
|
|
15844
15875
|
]),
|
|
15845
|
-
d(e) ? (h(),
|
|
15876
|
+
d(e) ? (h(), F(o, {
|
|
15846
15877
|
key: 0,
|
|
15847
15878
|
"icon-class": "icon-arrow"
|
|
15848
|
-
})) : (h(),
|
|
15879
|
+
})) : (h(), F(r, {
|
|
15849
15880
|
key: 1,
|
|
15850
15881
|
"icon-class": "icon-arrow"
|
|
15851
15882
|
}))
|
|
@@ -15981,7 +16012,7 @@ const Uw = /* @__PURE__ */ Y(qw, [["render", Vw], ["__scopeId", "data-v-6fb8269e
|
|
|
15981
16012
|
setup(t) {
|
|
15982
16013
|
return (e, n) => {
|
|
15983
16014
|
const i = ae("PSticky"), s = ae("PContainer");
|
|
15984
|
-
return h(),
|
|
16015
|
+
return h(), F(s, {
|
|
15985
16016
|
background: t.background,
|
|
15986
16017
|
margin: t.margin,
|
|
15987
16018
|
padding: t.padding
|
|
@@ -16025,8 +16056,8 @@ const Uw = /* @__PURE__ */ Y(qw, [["render", Vw], ["__scopeId", "data-v-6fb8269e
|
|
|
16025
16056
|
await i.store.GetOptions(), r.value = i.store.Options;
|
|
16026
16057
|
}, f = async (O) => {
|
|
16027
16058
|
await i.store.Get(O.value);
|
|
16028
|
-
const M = i.store.Item,
|
|
16029
|
-
s("add",
|
|
16059
|
+
const M = i.store.Item, q = new M.constructor(M);
|
|
16060
|
+
s("add", q), m();
|
|
16030
16061
|
}, m = () => {
|
|
16031
16062
|
s("close"), o.value = !1;
|
|
16032
16063
|
}, p = (O) => {
|
|
@@ -16040,14 +16071,14 @@ const Uw = /* @__PURE__ */ Y(qw, [["render", Vw], ["__scopeId", "data-v-6fb8269e
|
|
|
16040
16071
|
const O = document.querySelector(".select-dialog-content .q-item");
|
|
16041
16072
|
O && "focus" in O && O.focus();
|
|
16042
16073
|
};
|
|
16043
|
-
return e({ opened: o, toggle: T }), zt(c), (O, M) => (h(),
|
|
16074
|
+
return e({ opened: o, toggle: T }), zt(c), (O, M) => (h(), F(ki, {
|
|
16044
16075
|
modelValue: o.value,
|
|
16045
16076
|
"onUpdate:modelValue": [
|
|
16046
|
-
M[0] || (M[0] = (
|
|
16077
|
+
M[0] || (M[0] = (q) => o.value = q),
|
|
16047
16078
|
p
|
|
16048
16079
|
],
|
|
16049
16080
|
position: "top",
|
|
16050
|
-
onKeydown:
|
|
16081
|
+
onKeydown: $s(x, ["escape"]),
|
|
16051
16082
|
onShow: A
|
|
16052
16083
|
}, {
|
|
16053
16084
|
default: C(() => [
|
|
@@ -16070,18 +16101,18 @@ const Uw = /* @__PURE__ */ Y(qw, [["render", Vw], ["__scopeId", "data-v-6fb8269e
|
|
|
16070
16101
|
separator: ""
|
|
16071
16102
|
}, {
|
|
16072
16103
|
default: C(() => [
|
|
16073
|
-
(h(!0), S(Q, null, ve(d(r), (
|
|
16074
|
-
key:
|
|
16104
|
+
(h(!0), S(Q, null, ve(d(r), (q) => tt((h(), F(d(lr), {
|
|
16105
|
+
key: q.value,
|
|
16075
16106
|
clickable: "",
|
|
16076
16107
|
class: "q-px-md q-py-sm",
|
|
16077
|
-
onClick: (k) => f(
|
|
16108
|
+
onClick: (k) => f(q)
|
|
16078
16109
|
}, {
|
|
16079
16110
|
default: C(() => [
|
|
16080
16111
|
y(d(Ja), null, {
|
|
16081
16112
|
default: C(() => [
|
|
16082
16113
|
y(d(Qa), { class: "text-body1" }, {
|
|
16083
16114
|
default: C(() => [
|
|
16084
|
-
fe(j(
|
|
16115
|
+
fe(j(q.label), 1)
|
|
16085
16116
|
]),
|
|
16086
16117
|
_: 2
|
|
16087
16118
|
}, 1024)
|
|
@@ -16173,7 +16204,7 @@ const Uw = /* @__PURE__ */ Y(qw, [["render", Vw], ["__scopeId", "data-v-6fb8269e
|
|
|
16173
16204
|
const n = E(null), i = t, s = e, o = B(() => i.img ? i.isMain ? "365px" : "200px" : "0"), r = (l) => {
|
|
16174
16205
|
i.noPointer || s("click", l);
|
|
16175
16206
|
};
|
|
16176
|
-
return (l, a) => (h(),
|
|
16207
|
+
return (l, a) => (h(), F(d(Jt), {
|
|
16177
16208
|
class: he(["card", { "no-hover": t.noHover, "cursor-pointer": !t.noPointer }]),
|
|
16178
16209
|
flat: "",
|
|
16179
16210
|
bordered: "",
|
|
@@ -16193,7 +16224,7 @@ const Uw = /* @__PURE__ */ Y(qw, [["render", Vw], ["__scopeId", "data-v-6fb8269e
|
|
|
16193
16224
|
style: V({ height: o.value })
|
|
16194
16225
|
}, null, 12, l2)
|
|
16195
16226
|
], 4)) : W("", !0),
|
|
16196
|
-
y(d(
|
|
16227
|
+
y(d($t), {
|
|
16197
16228
|
class: "card-content",
|
|
16198
16229
|
style: V({ maxHeight: t.maxHeight })
|
|
16199
16230
|
}, {
|
|
@@ -16221,7 +16252,7 @@ const Uw = /* @__PURE__ */ Y(qw, [["render", Vw], ["__scopeId", "data-v-6fb8269e
|
|
|
16221
16252
|
], !0)
|
|
16222
16253
|
])) : W("", !0)
|
|
16223
16254
|
])) : W("", !0),
|
|
16224
|
-
t.title || l.$slots.title ? (h(),
|
|
16255
|
+
t.title || l.$slots.title ? (h(), F(d(Bo), {
|
|
16225
16256
|
key: 1,
|
|
16226
16257
|
class: "header-separator"
|
|
16227
16258
|
})) : W("", !0),
|
|
@@ -16328,12 +16359,12 @@ const Uw = /* @__PURE__ */ Y(qw, [["render", Vw], ["__scopeId", "data-v-6fb8269e
|
|
|
16328
16359
|
}, l = async () => {
|
|
16329
16360
|
!n.sortable || n.list.length === 0 || typeof n.list[0].order > "u" || (X.H.Sorter.Sort(n.list), n.store && await n.store.UpdateMany(n.list), i("sort"));
|
|
16330
16361
|
};
|
|
16331
|
-
return (a, c) => (h(), S("div",
|
|
16362
|
+
return (a, c) => (h(), S("div", xt(a.$attrs, {
|
|
16332
16363
|
style: { margin: t.margin, boxSizing: "border-box" },
|
|
16333
16364
|
class: "ordered-list"
|
|
16334
16365
|
}), [
|
|
16335
16366
|
t.title ? (h(), S("div", w2, j(t.title), 1)) : D(a.$slots, "title", {}, void 0, !0, 1),
|
|
16336
|
-
t.sortable ? (h(),
|
|
16367
|
+
t.sortable ? (h(), F(d(Ts), {
|
|
16337
16368
|
key: 2,
|
|
16338
16369
|
class: "draggable-list",
|
|
16339
16370
|
list: t.list,
|
|
@@ -16504,7 +16535,7 @@ const Uw = /* @__PURE__ */ Y(qw, [["render", Vw], ["__scopeId", "data-v-6fb8269e
|
|
|
16504
16535
|
};
|
|
16505
16536
|
ti(() => {
|
|
16506
16537
|
document.body.addEventListener("keydown", s);
|
|
16507
|
-
}),
|
|
16538
|
+
}), qs(() => {
|
|
16508
16539
|
document.body.removeEventListener("keydown", s);
|
|
16509
16540
|
});
|
|
16510
16541
|
const o = () => {
|
|
@@ -16575,7 +16606,7 @@ const F2 = { class: "btn-group" }, L2 = /* @__PURE__ */ N({
|
|
|
16575
16606
|
}
|
|
16576
16607
|
const a = ut.Form.Validate();
|
|
16577
16608
|
if (a.length > 0) {
|
|
16578
|
-
|
|
16609
|
+
In.Notify.Error(a.join("<br/>"));
|
|
16579
16610
|
return;
|
|
16580
16611
|
}
|
|
16581
16612
|
n("submit");
|
|
@@ -16587,7 +16618,7 @@ const F2 = { class: "btn-group" }, L2 = /* @__PURE__ */ N({
|
|
|
16587
16618
|
};
|
|
16588
16619
|
return ti(async () => {
|
|
16589
16620
|
await r();
|
|
16590
|
-
}),
|
|
16621
|
+
}), qs(() => {
|
|
16591
16622
|
ut.Form.Reset();
|
|
16592
16623
|
}), (l, a) => (h(), S("div", {
|
|
16593
16624
|
class: "auth-card",
|
|
@@ -16597,7 +16628,7 @@ const F2 = { class: "btn-group" }, L2 = /* @__PURE__ */ N({
|
|
|
16597
16628
|
string: d(ut).Form.GetTitle(),
|
|
16598
16629
|
"font-size": "18px"
|
|
16599
16630
|
}, null, 8, ["string"]),
|
|
16600
|
-
(h(!0), S(Q, null, ve(d(ut).Form.GetFields(), (c) => (h(),
|
|
16631
|
+
(h(!0), S(Q, null, ve(d(ut).Form.GetFields(), (c) => (h(), F(Ot, {
|
|
16601
16632
|
id: c.id,
|
|
16602
16633
|
key: c.id,
|
|
16603
16634
|
ref_for: !0,
|
|
@@ -16611,7 +16642,7 @@ const F2 = { class: "btn-group" }, L2 = /* @__PURE__ */ N({
|
|
|
16611
16642
|
margin: "10px 0 0 0"
|
|
16612
16643
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "type", "placeholder"]))), 128)),
|
|
16613
16644
|
v("div", F2, [
|
|
16614
|
-
(h(!0), S(Q, null, ve(d(i), (c, f) => (h(),
|
|
16645
|
+
(h(!0), S(Q, null, ve(d(i), (c, f) => (h(), F(Ce, {
|
|
16615
16646
|
id: c.id,
|
|
16616
16647
|
key: c.GetChunk(),
|
|
16617
16648
|
disabled: d(ut).Form.IsBlock,
|
|
@@ -16646,7 +16677,7 @@ const F2 = { class: "btn-group" }, L2 = /* @__PURE__ */ N({
|
|
|
16646
16677
|
const e = () => {
|
|
16647
16678
|
ut.Form.Reset(), ut.Modal.Close();
|
|
16648
16679
|
};
|
|
16649
|
-
return (n, i) => (h(),
|
|
16680
|
+
return (n, i) => (h(), F(Gu, {
|
|
16650
16681
|
show: d(ut).Modal.Visible,
|
|
16651
16682
|
closable: d(ut).Modal.Closable,
|
|
16652
16683
|
width: t.width,
|
|
@@ -16754,7 +16785,7 @@ const F2 = { class: "btn-group" }, L2 = /* @__PURE__ */ N({
|
|
|
16754
16785
|
})
|
|
16755
16786
|
}, [
|
|
16756
16787
|
D(f.$slots, "default", {}, () => [
|
|
16757
|
-
t.menus.idx > -1 ? (h(),
|
|
16788
|
+
t.menus.idx > -1 ? (h(), F(Wn(t.menus.GetComponent()), { key: 0 })) : W("", !0)
|
|
16758
16789
|
], !0)
|
|
16759
16790
|
], 4)
|
|
16760
16791
|
], 4));
|
|
@@ -16793,7 +16824,7 @@ const F2 = { class: "btn-group" }, L2 = /* @__PURE__ */ N({
|
|
|
16793
16824
|
if (!f)
|
|
16794
16825
|
return;
|
|
16795
16826
|
if (!a(f.name)) {
|
|
16796
|
-
|
|
16827
|
+
On.Error(`Загруженный файл должен быть в одном из форматов: ${n.formats.join(", ")}`);
|
|
16797
16828
|
return;
|
|
16798
16829
|
}
|
|
16799
16830
|
const m = new cn();
|
|
@@ -17061,13 +17092,13 @@ function ri(t) {
|
|
|
17061
17092
|
function it(t) {
|
|
17062
17093
|
return t === void 0;
|
|
17063
17094
|
}
|
|
17064
|
-
function
|
|
17095
|
+
function xs(t) {
|
|
17065
17096
|
return typeof t == "object" && t !== null;
|
|
17066
17097
|
}
|
|
17067
17098
|
function er(t, e, n) {
|
|
17068
17099
|
var i = {};
|
|
17069
|
-
return
|
|
17070
|
-
it(t[s]) ? i[s] = e[s] :
|
|
17100
|
+
return xs(t) ? (Object.keys(e).forEach(function(s) {
|
|
17101
|
+
it(t[s]) ? i[s] = e[s] : xs(e[s]) ? xs(t[s]) ? i[s] = er(t[s], e[s], n[s]) : i[s] = t[s] ? e[s] : n[s] : e[s] === !0 || e[s] === !1 ? i[s] = !!t[s] : i[s] = t[s];
|
|
17071
17102
|
}), i) : t ? e : n;
|
|
17072
17103
|
}
|
|
17073
17104
|
function hs(t) {
|
|
@@ -17147,7 +17178,7 @@ var qi = function(t, e) {
|
|
|
17147
17178
|
this.touches.length && this.$emit("drag-end"), this.hovered && (this.$emit("leave"), this.hovered = !1), this.touches = [];
|
|
17148
17179
|
} }, emits: ["drag", "drag-end", "leave", "enter"] };
|
|
17149
17180
|
Fr.render = function(t, e, n, i, s, o) {
|
|
17150
|
-
return h(),
|
|
17181
|
+
return h(), F("div", { ref: "draggable", class: n.classname, onTouchstart: e[1] || (e[1] = function() {
|
|
17151
17182
|
return o.onTouchStart && o.onTouchStart.apply(o, arguments);
|
|
17152
17183
|
}), onMousedown: e[2] || (e[2] = function() {
|
|
17153
17184
|
return o.onMouseDown && o.onMouseDown.apply(o, arguments);
|
|
@@ -17167,7 +17198,7 @@ var Ro = tn("vue-handler-wrapper"), Ku = { name: "HandlerWrapper", components: {
|
|
|
17167
17198
|
} }, emits: ["leave", "enter", "drag", "drag-end"] };
|
|
17168
17199
|
Ku.render = function(t, e, n, i, s, o) {
|
|
17169
17200
|
var r = ae("DraggableElement");
|
|
17170
|
-
return h(),
|
|
17201
|
+
return h(), F("div", { class: o.classes.root }, [y(r, { class: o.classes.draggable, onDrag: e[1] || (e[1] = function(l) {
|
|
17171
17202
|
return t.$emit("drag", l);
|
|
17172
17203
|
}), onDragEnd: e[2] || (e[2] = function(l) {
|
|
17173
17204
|
return t.$emit("drag-end");
|
|
@@ -17185,7 +17216,7 @@ var eS = tn("vue-line-wrapper"), ed = { name: "LineWrapper", components: { Dragg
|
|
|
17185
17216
|
} }, emits: ["leave", "enter", "drag", "drag-end"] };
|
|
17186
17217
|
ed.render = function(t, e, n, i, s, o) {
|
|
17187
17218
|
var r = ae("DraggableElement");
|
|
17188
|
-
return h(),
|
|
17219
|
+
return h(), F(r, { class: o.classname, onDrag: e[1] || (e[1] = function(l) {
|
|
17189
17220
|
return t.$emit("drag", l);
|
|
17190
17221
|
}), onDragEnd: e[2] || (e[2] = function(l) {
|
|
17191
17222
|
return t.$emit("drag-end");
|
|
@@ -17222,7 +17253,7 @@ function ji(t, e) {
|
|
|
17222
17253
|
function ln(t, e) {
|
|
17223
17254
|
return { left: t.left - e.left, top: t.top - e.top, width: t.width + e.left + e.right, height: t.height + e.top + e.bottom };
|
|
17224
17255
|
}
|
|
17225
|
-
function
|
|
17256
|
+
function so(t) {
|
|
17226
17257
|
return { left: -t.left, top: -t.top };
|
|
17227
17258
|
}
|
|
17228
17259
|
function Et(t, e) {
|
|
@@ -17260,18 +17291,18 @@ function nd(t, e) {
|
|
|
17260
17291
|
var n = e * Math.PI / 180;
|
|
17261
17292
|
return { width: Math.abs(t.width * Math.cos(n)) + Math.abs(t.height * Math.sin(n)), height: Math.abs(t.width * Math.sin(n)) + Math.abs(t.height * Math.cos(n)) };
|
|
17262
17293
|
}
|
|
17263
|
-
function
|
|
17294
|
+
function An(t, e) {
|
|
17264
17295
|
var n = e * Math.PI / 180;
|
|
17265
17296
|
return { left: t.left * Math.cos(n) - t.top * Math.sin(n), top: t.left * Math.sin(n) + t.top * Math.cos(n) };
|
|
17266
17297
|
}
|
|
17267
|
-
function
|
|
17298
|
+
function oo(t, e) {
|
|
17268
17299
|
var n = ji(ft(t, e), e);
|
|
17269
17300
|
return n.left + n.right + n.top + n.bottom ? n.left + n.right > n.top + n.bottom ? Math.min((t.width + n.left + n.right) / t.width, bi(t, e)) : Math.min((t.height + n.top + n.bottom) / t.height, bi(t, e)) : 1;
|
|
17270
17301
|
}
|
|
17271
17302
|
function ft(t, e, n) {
|
|
17272
17303
|
n === void 0 && (n = !1);
|
|
17273
17304
|
var i = wi(t, e);
|
|
17274
|
-
return Et(t, n ?
|
|
17305
|
+
return Et(t, n ? so(i) : i);
|
|
17275
17306
|
}
|
|
17276
17307
|
function tr(t) {
|
|
17277
17308
|
return { width: t.right !== void 0 && t.left !== void 0 ? t.right - t.left : 1 / 0, height: t.bottom !== void 0 && t.top !== void 0 ? t.bottom - t.top : 1 / 0 };
|
|
@@ -17287,7 +17318,7 @@ function id(t, e, n) {
|
|
|
17287
17318
|
o !== void 0 && r !== void 0 ? i[s] = s === "left" || s === "top" ? n ? Math.max(o, r) : Math.min(o, r) : n ? Math.min(o, r) : Math.max(o, r) : r !== void 0 ? i[s] = r : o !== void 0 && (i[s] = o);
|
|
17288
17319
|
}), i;
|
|
17289
17320
|
}
|
|
17290
|
-
function
|
|
17321
|
+
function ro(t, e) {
|
|
17291
17322
|
return id(t, e, !0);
|
|
17292
17323
|
}
|
|
17293
17324
|
function Na(t) {
|
|
@@ -17335,8 +17366,8 @@ function aS(t) {
|
|
|
17335
17366
|
t.stencilReference;
|
|
17336
17367
|
var a, c, f, m = ce({}, i), p = ce({}, s), x = ce({}, o);
|
|
17337
17368
|
a = Me(x), c = Me(m), f === void 0 && (f = 1e-3), (a === 0 || c === 0 ? Math.abs(c - a) < f : Math.abs(c / a) < 1 + f && Math.abs(c / a) > 1 - f) || (m = ce(ce({}, m), Sn({ sizeRestrictions: r, width: m.width, height: m.height, aspectRatio: { minimum: Me(x), maximum: Me(x) } })));
|
|
17338
|
-
var T =
|
|
17339
|
-
return T !== 1 && (p = Gt(p, T), m = Gt(m, T)), p = ft(p = Et(p, yi(ct(m), ct(p))), e({ visibleArea: p, type: "move" })), { coordinates: m = ft(m,
|
|
17369
|
+
var T = oo(p = Gt(p, m.width * n.width / (p.width * x.width)), e({ visibleArea: p, type: "resize" }));
|
|
17370
|
+
return T !== 1 && (p = Gt(p, T), m = Gt(m, T)), p = ft(p = Et(p, yi(ct(m), ct(p))), e({ visibleArea: p, type: "move" })), { coordinates: m = ft(m, ro(mn(p), l)), visibleArea: p };
|
|
17340
17371
|
}
|
|
17341
17372
|
function lS(t) {
|
|
17342
17373
|
var e = t.event, n = t.getAreaRestrictions, i = t.boundaries, s = t.coordinates, o = t.visibleArea;
|
|
@@ -17347,8 +17378,8 @@ function lS(t) {
|
|
|
17347
17378
|
if (s && o && e.type !== "manipulateImage") {
|
|
17348
17379
|
var c = { width: 0, height: 0 };
|
|
17349
17380
|
a.width, i.width, Me(i) > Me(l) ? (c.height = 0.8 * i.height, c.width = c.height * Me(l)) : (c.width = 0.8 * i.width, c.height = c.width * Me(l));
|
|
17350
|
-
var f =
|
|
17351
|
-
a = Gt(a, f), f !== 1 && (c.height /= f, c.width /= f), a = ft(a = Et(a, yi(ct(l), ct(a))), n({ visibleArea: a, type: "move" })), l = ft(l,
|
|
17381
|
+
var f = oo(a = Gt(a, l.width * i.width / (a.width * c.width)), n({ visibleArea: a, type: "resize" }));
|
|
17382
|
+
a = Gt(a, f), f !== 1 && (c.height /= f, c.width /= f), a = ft(a = Et(a, yi(ct(l), ct(a))), n({ visibleArea: a, type: "move" })), l = ft(l, ro(mn(a), r));
|
|
17352
17383
|
}
|
|
17353
17384
|
return { coordinates: l, visibleArea: a };
|
|
17354
17385
|
}
|
|
@@ -17356,7 +17387,7 @@ function uS(t) {
|
|
|
17356
17387
|
var e = t.event, n = t.coordinates, i = t.visibleArea, s = t.getAreaRestrictions, o = ce({}, i), r = ce({}, n);
|
|
17357
17388
|
if (e.type === "setCoordinates") {
|
|
17358
17389
|
var l = Math.max(0, r.width - o.width), a = Math.max(0, r.height - o.height);
|
|
17359
|
-
l > a ? o = Gt(o, Math.min(r.width / o.width, bi(o, s({ visibleArea: o, type: "resize" })))) : a > l && (o = Gt(o, Math.min(r.height / o.height, bi(o, s({ visibleArea: o, type: "resize" }))))), o = ft(o = Et(o,
|
|
17390
|
+
l > a ? o = Gt(o, Math.min(r.width / o.width, bi(o, s({ visibleArea: o, type: "resize" })))) : a > l && (o = Gt(o, Math.min(r.height / o.height, bi(o, s({ visibleArea: o, type: "resize" }))))), o = ft(o = Et(o, so(wi(r, mn(o)))), s({ visibleArea: o, type: "move" }));
|
|
17360
17391
|
}
|
|
17361
17392
|
return { visibleArea: o, coordinates: r };
|
|
17362
17393
|
}
|
|
@@ -17389,18 +17420,18 @@ function mS(t) {
|
|
|
17389
17420
|
f = Et(f, { left: c.left || 0, top: c.top || 0 });
|
|
17390
17421
|
var A = { stencil: { minimum: Math.max(s.minWidth ? s.minWidth / m.width : 0, s.minHeight ? s.minHeight / m.height : 0), maximum: Math.min(s.maxWidth ? s.maxWidth / m.width : 1 / 0, s.maxHeight ? s.maxHeight / m.height : 1 / 0, bi(m, r)) }, area: { maximum: bi(f, o({ visibleArea: f, type: "resize" })) } };
|
|
17391
17422
|
a.factor && T && (a.factor < 1 ? (x = Math.max(a.factor, A.stencil.minimum)) > 1 && (x = 1) : a.factor > 1 && (x = Math.min(a.factor, Math.min(A.area.maximum, A.stencil.maximum))) < 1 && (x = 1)), x && (f = Gt(f, x, a.center));
|
|
17392
|
-
var O = n.left - i.left, M = i.width + i.left - (n.width + n.left),
|
|
17393
|
-
return f = ft(f = Et(f, wi(f, { left: r.left !== void 0 ? r.left - O * x : void 0, top: r.top !== void 0 ? r.top -
|
|
17423
|
+
var O = n.left - i.left, M = i.width + i.left - (n.width + n.left), q = n.top - i.top, k = i.height + i.top - (n.height + n.top);
|
|
17424
|
+
return f = ft(f = Et(f, wi(f, { left: r.left !== void 0 ? r.left - O * x : void 0, top: r.top !== void 0 ? r.top - q * x : void 0, bottom: r.bottom !== void 0 ? r.bottom + k * x : void 0, right: r.right !== void 0 ? r.right + M * x : void 0 })), o({ visibleArea: f, type: "move" })), m.width = m.width * x, m.height = m.height * x, m.left = f.left + O * x, m.top = f.top + q * x, m = ft(m, ro(mn(f), r)), a.factor && T && l && (a.factor > 1 ? p = Math.min(A.area.maximum, a.factor) / x : a.factor < 1 && (p = Math.max(m.height / f.height, m.width / f.width, a.factor / x)), p !== 1 && (f = Et(f = ft(f = Gt(f, p, a.factor > 1 ? a.center : ct(m)), o({ visibleArea: f, type: "move" })), so(wi(m, mn(f)))))), { coordinates: m, visibleArea: f };
|
|
17394
17425
|
}
|
|
17395
17426
|
function pS(t) {
|
|
17396
|
-
var e = t.aspectRatio, n = t.getAreaRestrictions, i = t.coordinates, s = t.visibleArea, o = t.sizeRestrictions, r = t.positionRestrictions, l = t.imageSize, a = t.previousImageSize, c = t.angle, f = ce({}, i), m = ce({}, s), p =
|
|
17397
|
-
return (f = ce(ce({}, Sn({ sizeRestrictions: o, aspectRatio: e, width: f.width, height: f.height })),
|
|
17427
|
+
var e = t.aspectRatio, n = t.getAreaRestrictions, i = t.coordinates, s = t.visibleArea, o = t.sizeRestrictions, r = t.positionRestrictions, l = t.imageSize, a = t.previousImageSize, c = t.angle, f = ce({}, i), m = ce({}, s), p = An(ct(ce({ left: 0, top: 0 }, a)), c);
|
|
17428
|
+
return (f = ce(ce({}, Sn({ sizeRestrictions: o, aspectRatio: e, width: f.width, height: f.height })), An(ct(f), c))).left -= p.left - l.width / 2 + f.width / 2, f.top -= p.top - l.height / 2 + f.height / 2, m = Gt(m, oo(m, n({ visibleArea: m, type: "resize" }))), { coordinates: f = ft(f, r), visibleArea: m = ft(m = Et(m, yi(ct(f), ct(i))), n({ visibleArea: m, type: "move" })) };
|
|
17398
17429
|
}
|
|
17399
17430
|
function gS(t) {
|
|
17400
17431
|
var e = t.flip, n = t.previousFlip, i = t.rotate, s = t.getAreaRestrictions, o = t.coordinates, r = t.visibleArea, l = t.imageSize, a = ce({}, o), c = ce({}, r), f = n.horizontal !== e.horizontal, m = n.vertical !== e.vertical;
|
|
17401
17432
|
if (f || m) {
|
|
17402
|
-
var p =
|
|
17403
|
-
a = Et(a, yi(T, ct(a))), x =
|
|
17433
|
+
var p = An({ left: l.width / 2, top: l.height / 2 }, -i), x = An(ct(a), -i), T = An({ left: f ? p.left - (x.left - p.left) : x.left, top: m ? p.top - (x.top - p.top) : x.top }, i);
|
|
17434
|
+
a = Et(a, yi(T, ct(a))), x = An(ct(c), -i), c = ft(c = Et(c, yi(T = An({ left: f ? p.left - (x.left - p.left) : x.left, top: m ? p.top - (x.top - p.top) : x.top }, i), ct(c))), s({ visibleArea: c, type: "move" }));
|
|
17404
17435
|
}
|
|
17405
17436
|
return { coordinates: a, visibleArea: c };
|
|
17406
17437
|
}
|
|
@@ -17454,7 +17485,7 @@ var vS = tn("vue-simple-handler"), yS = tn("vue-simple-handler-wrapper"), Lr = {
|
|
|
17454
17485
|
} }, emits: ["drag", "drag-end"] };
|
|
17455
17486
|
Lr.render = function(t, e, n, i, s, o) {
|
|
17456
17487
|
var r = ae("HandlerWrapper");
|
|
17457
|
-
return h(),
|
|
17488
|
+
return h(), F(r, { class: o.classes.wrapper, "vertical-position": n.verticalPosition, "horizontal-position": n.horizontalPosition, disabled: n.disabled, onDrag: o.onDrag, onDragEnd: o.onDragEnd, onEnter: o.onEnter, onLeave: o.onLeave }, { default: C(function() {
|
|
17458
17489
|
return [y("div", { class: o.classes.default }, null, 2)];
|
|
17459
17490
|
}), _: 1 }, 8, ["class", "vertical-position", "horizontal-position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
|
|
17460
17491
|
};
|
|
@@ -17473,7 +17504,7 @@ var bS = tn("vue-simple-line"), wS = tn("vue-simple-line-wrapper"), qr = { name:
|
|
|
17473
17504
|
} }, emits: ["drag", "drag-end"] };
|
|
17474
17505
|
qr.render = function(t, e, n, i, s, o) {
|
|
17475
17506
|
var r = ae("LineWrapper");
|
|
17476
|
-
return h(),
|
|
17507
|
+
return h(), F(r, { class: o.classes.wrapper, position: n.position, disabled: n.disabled, onDrag: o.onDrag, onDragEnd: o.onDragEnd, onEnter: o.onEnter, onLeave: o.onLeave }, { default: C(function() {
|
|
17477
17508
|
return [y("div", { class: o.classes.root }, null, 2)];
|
|
17478
17509
|
}), _: 1 }, 8, ["class", "position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
|
|
17479
17510
|
};
|
|
@@ -17539,14 +17570,14 @@ var Ao = tn("vue-bounding-box"), SS = ["east", "west", null], CS = ["south", "no
|
|
|
17539
17570
|
e === "west" ? l.left -= o : e === "east" && (l.right += o), n === "north" ? l.top -= r : n === "south" && (l.bottom += r), !n && e ? i = "width" : n && !e && (i = "height"), this.resizable && this.$emit("resize", new J2(l, { allowedDirections: { left: e === "west" || !e, right: e === "east" || !e, bottom: n === "south" || !n, top: n === "north" || !n }, preserveAspectRatio: t.nativeEvent && t.nativeEvent.shiftKey, respectDirection: i }));
|
|
17540
17571
|
} }, emits: ["resize", "resize-end"] };
|
|
17541
17572
|
sd.render = function(t, e, n, i, s, o) {
|
|
17542
|
-
return h(),
|
|
17543
|
-
return h(),
|
|
17573
|
+
return h(), F("div", { ref: "box", class: o.classes.root, style: o.style }, [D(t.$slots, "default"), y("div", null, [(h(!0), F(Q, null, ve(o.lineNodes, function(r) {
|
|
17574
|
+
return h(), F(Wn(r.component), { key: r.name, "default-class": r.class, "hover-class": r.hoverClass, "wrapper-class": r.wrapperClass, position: r.name, disabled: r.disabled, onDrag: function(l) {
|
|
17544
17575
|
return o.onHandlerDrag(l, r.horizontalDirection, r.verticalDirection);
|
|
17545
17576
|
}, onDragEnd: e[1] || (e[1] = function(l) {
|
|
17546
17577
|
return o.onEnd();
|
|
17547
17578
|
}) }, null, 8, ["default-class", "hover-class", "wrapper-class", "position", "disabled", "onDrag"]);
|
|
17548
|
-
}), 128))]), (h(!0),
|
|
17549
|
-
return h(),
|
|
17579
|
+
}), 128))]), (h(!0), F(Q, null, ve(o.handlerNodes, function(r) {
|
|
17580
|
+
return h(), F("div", { key: r.name, style: r.wrapperStyle, class: r.wrapperClass }, [(h(), F(Wn(r.component), { "default-class": r.class, "hover-class": r.hoverClass, "wrapper-class": r.wrapperClass, "horizontal-position": r.horizontalDirection, "vertical-position": r.verticalDirection, disabled: r.disabled, onDrag: function(l) {
|
|
17550
17581
|
return o.onHandlerDrag(l, r.horizontalDirection, r.verticalDirection);
|
|
17551
17582
|
}, onDragEnd: e[2] || (e[2] = function(l) {
|
|
17552
17583
|
return o.onEnd();
|
|
@@ -17592,7 +17623,7 @@ var xS = tn("vue-draggable-area"), od = { name: "DraggableArea", props: { movabl
|
|
|
17592
17623
|
this.touches.length && this.$emit("move-end"), this.touches = [];
|
|
17593
17624
|
} }, emits: ["move", "move-end"] };
|
|
17594
17625
|
od.render = function(t, e, n, i, s, o) {
|
|
17595
|
-
return h(),
|
|
17626
|
+
return h(), F("div", { ref: "container", onTouchstart: e[1] || (e[1] = function() {
|
|
17596
17627
|
return o.onTouchStart && o.onTouchStart.apply(o, arguments);
|
|
17597
17628
|
}), onMousedown: e[2] || (e[2] = function() {
|
|
17598
17629
|
return o.onMouseDown && o.onMouseDown.apply(o, arguments);
|
|
@@ -17736,7 +17767,7 @@ var ad = { props: { touchMove: { type: Boolean, required: !0 }, mouseMove: { typ
|
|
|
17736
17767
|
var r, l;
|
|
17737
17768
|
} }, emits: ["resize", "move", "transform-end"] };
|
|
17738
17769
|
ad.render = function(t, e, n, i, s, o) {
|
|
17739
|
-
return h(),
|
|
17770
|
+
return h(), F("div", { ref: "container", onTouchstart: e[1] || (e[1] = function() {
|
|
17740
17771
|
return o.onTouchStart && o.onTouchStart.apply(o, arguments);
|
|
17741
17772
|
}), onMousedown: e[2] || (e[2] = function() {
|
|
17742
17773
|
return o.onMouseDown && o.onMouseDown.apply(o, arguments);
|
|
@@ -17747,7 +17778,7 @@ ad.render = function(t, e, n, i, s, o) {
|
|
|
17747
17778
|
var ir = { components: { TransformableImage: ad }, props: { touchMove: { type: Boolean, required: !0 }, mouseMove: { type: Boolean, required: !0 }, touchResize: { type: Boolean, required: !0 }, wheelResize: { type: [Boolean, Object], required: !0 } }, emits: ["resize", "move"] };
|
|
17748
17779
|
ir.render = function(t, e, n, i, s, o) {
|
|
17749
17780
|
var r = ae("transformable-image");
|
|
17750
|
-
return h(),
|
|
17781
|
+
return h(), F(r, { "touch-move": n.touchMove, "touch-resize": n.touchResize, "mouse-move": n.mouseMove, "wheel-resize": n.wheelResize, onMove: e[1] || (e[1] = function(l) {
|
|
17751
17782
|
return t.$emit("move", l);
|
|
17752
17783
|
}), onResize: e[2] || (e[2] = function(l) {
|
|
17753
17784
|
return t.$emit("resize", l);
|
|
@@ -17799,12 +17830,12 @@ var gs = tn("vue-preview"), ld = { props: { coordinates: { type: Object }, trans
|
|
|
17799
17830
|
t && t.complete && this.refreshImage(), this.refresh();
|
|
17800
17831
|
} } };
|
|
17801
17832
|
ld.render = function(t, e, n, i, s, o) {
|
|
17802
|
-
return h(),
|
|
17833
|
+
return h(), F("div", { ref: "root", class: o.classes.root, style: o.style }, [y("div", { ref: "wrapper", class: o.classes.wrapper, style: o.wrapperStyle }, [tt(y("img", { ref: "image", src: n.image && n.image.src, class: o.classes.image, style: o.imageStyle }, null, 14, ["src"]), [[ur, n.image && n.image.src]])], 6)], 6);
|
|
17803
17834
|
};
|
|
17804
17835
|
var ud = { components: { Preview: ld }, inheritAttrs: !1 };
|
|
17805
17836
|
ud.render = function(t, e, n, i, s, o) {
|
|
17806
17837
|
var r = ae("preview");
|
|
17807
|
-
return h(),
|
|
17838
|
+
return h(), F(r, xt(t.$attrs, { fill: !0 }), null, 16);
|
|
17808
17839
|
};
|
|
17809
17840
|
var Oo = tn("vue-rectangle-stencil"), dd = { name: "RectangleStencil", components: { StencilPreview: ud, BoundingBox: sd, DraggableArea: od }, props: { image: { type: Object }, coordinates: { type: Object }, stencilCoordinates: { type: Object }, handlers: { type: Object }, handlersComponent: { type: [Object, String], default: function() {
|
|
17810
17841
|
return Lr;
|
|
@@ -17838,7 +17869,7 @@ var Oo = tn("vue-rectangle-stencil"), dd = { name: "RectangleStencil", component
|
|
|
17838
17869
|
} }, emits: ["resize", "resize-end", "move", "move-end"] };
|
|
17839
17870
|
dd.render = function(t, e, n, i, s, o) {
|
|
17840
17871
|
var r = ae("stencil-preview"), l = ae("draggable-area"), a = ae("bounding-box");
|
|
17841
|
-
return h(),
|
|
17872
|
+
return h(), F("div", { class: o.classes.stencil, style: o.style }, [y(a, { width: n.stencilCoordinates.width, height: n.stencilCoordinates.height, transitions: n.transitions, class: o.classes.boundingBox, handlers: n.handlers, "handlers-component": n.handlersComponent, "handlers-classes": n.handlersClasses, "handlers-wrappers-classes": n.handlersWrappersClasses, lines: n.lines, "lines-component": n.linesComponent, "lines-classes": n.linesClasses, "lines-wrappers-classes": n.linesWrappersClasses, resizable: n.resizable, onResize: o.onResize, onResizeEnd: o.onResizeEnd }, { default: C(function() {
|
|
17842
17873
|
return [y(l, { movable: n.movable, onMove: o.onMove, onMoveEnd: o.onMoveEnd }, { default: C(function() {
|
|
17843
17874
|
return [y(r, { image: n.image, coordinates: n.coordinates, width: n.stencilCoordinates.width, height: n.stencilCoordinates.height, class: o.classes.preview, transitions: n.transitions }, null, 8, ["image", "coordinates", "width", "height", "class", "transitions"])];
|
|
17844
17875
|
}), _: 1 }, 8, ["movable", "onMove", "onMoveEnd"])];
|
|
@@ -17871,8 +17902,8 @@ var TS = ["transitions"], yn = tn("vue-advanced-cropper"), cd = { name: "Cropper
|
|
|
17871
17902
|
} else if (x === "height") {
|
|
17872
17903
|
var M = r.width - m * p;
|
|
17873
17904
|
if (c.left && c.right) {
|
|
17874
|
-
var
|
|
17875
|
-
a.left = -ps(M,
|
|
17905
|
+
var q = a.left, k = a.right;
|
|
17906
|
+
a.left = -ps(M, q, k), a.right = -ps(M, k, q);
|
|
17876
17907
|
} else c.left ? a.left = -M : c.right ? a.right = -M : c.top ? a.top = 0 : c.bottom && (a.bottom = 0);
|
|
17877
17908
|
}
|
|
17878
17909
|
a = ja({ directions: a, coordinates: r, sizeRestrictions: o, positionRestrictions: s, preserveRatio: !0, compensate: l.compensate });
|
|
@@ -17885,11 +17916,11 @@ var TS = ["transitions"], yn = tn("vue-advanced-cropper"), cd = { name: "Cropper
|
|
|
17885
17916
|
e.style.width = n.width + "px", e.style.height = e.clientWidth / i + "px", e.style.width = e.clientWidth + "px";
|
|
17886
17917
|
} }, fitCoordinates: { type: Function, default: function(t) {
|
|
17887
17918
|
var e = t.visibleArea, n = t.coordinates, i = t.aspectRatio, s = t.sizeRestrictions, o = t.positionRestrictions, r = ce(ce({}, n), Sn({ width: n.width, height: n.height, aspectRatio: i, sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minHeight: Math.min(e.height, s.minHeight), minWidth: Math.min(e.width, s.minWidth) } }));
|
|
17888
|
-
return r = ft(r = Et(r, yi(ct(n), ct(r))),
|
|
17919
|
+
return r = ft(r = Et(r, yi(ct(n), ct(r))), ro(mn(e), o));
|
|
17889
17920
|
} }, fitVisibleArea: { type: Function, default: function(t) {
|
|
17890
17921
|
var e = t.visibleArea, n = t.boundaries, i = t.getAreaRestrictions, s = t.coordinates, o = ce({}, e);
|
|
17891
17922
|
o.height = o.width / Me(n), o.top += (e.height - o.height) / 2, (s.height - o.height > 0 || s.width - o.width > 0) && (o = Gt(o, Math.max(s.height / o.height, s.width / o.width)));
|
|
17892
|
-
var r =
|
|
17923
|
+
var r = so(wi(s, mn(o = Gt(o, oo(o, i({ visibleArea: o, type: "resize" }))))));
|
|
17893
17924
|
return o.width < s.width && (r.left = 0), o.height < s.height && (r.top = 0), o = ft(o = Et(o, r), i({ visibleArea: o, type: "move" }));
|
|
17894
17925
|
} }, areaRestrictionsAlgorithm: { type: Function, default: function(t) {
|
|
17895
17926
|
var e = t.visibleArea, n = t.boundaries, i = t.imageSize, s = t.imageRestriction, o = t.type, r = {};
|
|
@@ -18052,7 +18083,7 @@ var TS = ["transitions"], yn = tn("vue-advanced-cropper"), cd = { name: "Cropper
|
|
|
18052
18083
|
var t = this.$refs.canvas, e = this.$refs.image, n = this.imageTransforms.rotate !== 0 || this.imageTransforms.flip.horizontal || this.imageTransforms.flip.vertical ? function(l, a, c) {
|
|
18053
18084
|
var f = c.rotate, m = c.flip, p = { width: a.naturalWidth, height: a.naturalHeight }, x = nd(p, f), T = l.getContext("2d");
|
|
18054
18085
|
l.height = x.height, l.width = x.width, T.save();
|
|
18055
|
-
var A =
|
|
18086
|
+
var A = An(ct(ce({ left: 0, top: 0 }, p)), f);
|
|
18056
18087
|
return T.translate(-(A.left - x.width / 2), -(A.top - x.height / 2)), T.rotate(f * Math.PI / 180), T.translate(m.horizontal ? p.width : 0, m.vertical ? p.height : 0), T.scale(m.horizontal ? -1 : 1, m.vertical ? -1 : 1), T.drawImage(a, 0, 0, p.width, p.height), T.restore(), l;
|
|
18057
18088
|
}(this.$refs.sourceCanvas, e, this.imageTransforms) : e, i = Te({ minWidth: 0, minHeight: 0, maxWidth: 1 / 0, maxHeight: 1 / 0, maxArea: this.maxCanvasSize, imageSmoothingEnabled: !0, imageSmoothingQuality: "high", fillColor: "transparent" }, this.canvas), s = function(l) {
|
|
18058
18089
|
return l.find(function(a) {
|
|
@@ -18176,7 +18207,7 @@ var TS = ["transitions"], yn = tn("vue-advanced-cropper"), cd = { name: "Cropper
|
|
|
18176
18207
|
r.push(String.fromCharCode.apply(null, Array.from ? Array.from(a) : a.slice())), l = l.subarray(8192);
|
|
18177
18208
|
}
|
|
18178
18209
|
return "data:image/jpeg;base64," + btoa(r.join(""));
|
|
18179
|
-
}(i) : this.imageAttributes.src = n, ri(this.defaultTransforms) ? this.appliedImageTransforms = Eo(this.defaultTransforms()) :
|
|
18210
|
+
}(i) : this.imageAttributes.src = n, ri(this.defaultTransforms) ? this.appliedImageTransforms = Eo(this.defaultTransforms()) : xs(this.defaultTransforms) ? this.appliedImageTransforms = Eo(this.defaultTransforms) : this.appliedImageTransforms = function(o) {
|
|
18180
18211
|
var r = Eo({});
|
|
18181
18212
|
if (o) switch (o) {
|
|
18182
18213
|
case 2:
|
|
@@ -18271,9 +18302,9 @@ var TS = ["transitions"], yn = tn("vue-advanced-cropper"), cd = { name: "Cropper
|
|
|
18271
18302
|
}
|
|
18272
18303
|
} }, emits: ["change", "error", "ready"] }, PS = { key: 0, ref: "canvas", style: { display: "none" } }, MS = { key: 1, ref: "sourceCanvas", style: { display: "none" } };
|
|
18273
18304
|
cd.render = function(t, e, n, i, s, o) {
|
|
18274
|
-
return h(),
|
|
18305
|
+
return h(), F("div", { ref: "cropper", class: o.classes.cropper }, [y("div", { ref: "stretcher", class: o.classes.stretcher }, null, 2), y("div", { class: o.classes.boundaries, style: o.boundariesStyle }, [(h(), F(Wn(n.backgroundWrapperComponent), { class: o.classes.cropperWrapper, "wheel-resize": o.settings.resizeImage.wheel, "touch-resize": o.settings.resizeImage.touch, "touch-move": o.settings.moveImage.touch, "mouse-move": o.settings.moveImage.mouse, onMove: o.onManipulateImage, onResize: o.onManipulateImage }, { default: C(function() {
|
|
18275
18306
|
return [y("div", { class: o.classes.background, style: o.boundariesStyle }, null, 6), y("div", { class: o.classes.imageWrapper }, [y("img", { ref: "image", crossorigin: s.imageAttributes.crossOrigin, src: s.imageAttributes.src, class: o.classes.image, style: o.imageStyle, onMousedown: e[1] || (e[1] = Fe(function() {
|
|
18276
|
-
}, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2), y("div", { class: o.classes.foreground, style: o.boundariesStyle }, null, 6), tt((h(),
|
|
18307
|
+
}, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2), y("div", { class: o.classes.foreground, style: o.boundariesStyle }, null, 6), tt((h(), F(Wn(n.stencilComponent), xt({ ref: "stencil", image: o.image, coordinates: s.coordinates, "stencil-coordinates": o.stencilCoordinates, transitions: o.transitionsOptions }, n.stencilProps, { onResize: o.onResize, onResizeEnd: o.onResizeEnd, onMove: o.onMove, onMoveEnd: o.onMoveEnd }), null, 16, ["image", "coordinates", "stencil-coordinates", "transitions", "onResize", "onResizeEnd", "onMove", "onMoveEnd"])), [[ur, s.imageLoaded]]), n.canvas ? (h(), F("canvas", PS, null, 512)) : W("", !0), n.canvas ? (h(), F("canvas", MS, null, 512)) : W("", !0)];
|
|
18277
18308
|
}), _: 1 }, 8, ["class", "wheel-resize", "touch-resize", "touch-move", "mouse-move", "onMove", "onResize"]))], 6)], 2);
|
|
18278
18309
|
};
|
|
18279
18310
|
const RS = {
|
|
@@ -18373,7 +18404,7 @@ const IS = { class: "cropper-wrapper" }, AS = { class: "row justify-end q-mt-md"
|
|
|
18373
18404
|
});
|
|
18374
18405
|
};
|
|
18375
18406
|
return (f, m) => (h(), S("div", IS, [
|
|
18376
|
-
y(
|
|
18407
|
+
y(io, {
|
|
18377
18408
|
modelValue: s.value,
|
|
18378
18409
|
"onUpdate:modelValue": [
|
|
18379
18410
|
m[0] || (m[0] = (p) => s.value = p),
|
|
@@ -18421,8 +18452,8 @@ const IS = { class: "cropper-wrapper" }, AS = { class: "row justify-end q-mt-md"
|
|
|
18421
18452
|
ti(() => {
|
|
18422
18453
|
fi(() => {
|
|
18423
18454
|
var k;
|
|
18424
|
-
const
|
|
18425
|
-
|
|
18455
|
+
const q = (k = r.value) == null ? void 0 : k.querySelector(".q-uploader__input");
|
|
18456
|
+
q && !q.getAttribute("aria-label") && q.setAttribute("aria-label", "Добавить изображение");
|
|
18426
18457
|
});
|
|
18427
18458
|
});
|
|
18428
18459
|
const f = E(i.ratio), m = E(""), p = B(() => ({
|
|
@@ -18435,17 +18466,17 @@ const IS = { class: "cropper-wrapper" }, AS = { class: "row justify-end q-mt-md"
|
|
|
18435
18466
|
maxWidth: "100%"
|
|
18436
18467
|
})), T = () => {
|
|
18437
18468
|
o.value = void 0, f.value = 1, s("update:ratio", 1), s("removeFile");
|
|
18438
|
-
}, A = (
|
|
18439
|
-
|
|
18440
|
-
}, O = (
|
|
18441
|
-
m.value =
|
|
18442
|
-
}, M = (
|
|
18443
|
-
if (
|
|
18444
|
-
const k =
|
|
18469
|
+
}, A = (q) => {
|
|
18470
|
+
q.blob.src = q.src, i.fileInfo.setFile && i.fileInfo.setFile(q.blob), i.fileInfo.fileSystemPath && (o.value = i.fileInfo), a.value = !1, s("crop");
|
|
18471
|
+
}, O = (q) => {
|
|
18472
|
+
m.value = q.url, a.value = !0;
|
|
18473
|
+
}, M = (q) => {
|
|
18474
|
+
if (q.length === 0) return;
|
|
18475
|
+
const k = q[0];
|
|
18445
18476
|
k.url = URL.createObjectURL(k), o.value = k, i.fileInfo.setFile && i.fileInfo.setFile(k), i.withCrop && O(o.value);
|
|
18446
18477
|
};
|
|
18447
|
-
return ze(f, (
|
|
18448
|
-
s("update:ratio",
|
|
18478
|
+
return ze(f, (q) => {
|
|
18479
|
+
s("update:ratio", q);
|
|
18449
18480
|
}), ze(
|
|
18450
18481
|
() => [i.fileInfo.description, i.fileInfo.order, i.fileInfo.fileSystemPath],
|
|
18451
18482
|
() => {
|
|
@@ -18453,7 +18484,7 @@ const IS = { class: "cropper-wrapper" }, AS = { class: "row justify-end q-mt-md"
|
|
|
18453
18484
|
}
|
|
18454
18485
|
), zt(() => {
|
|
18455
18486
|
i.fileInfo.fileSystemPath && (o.value = i.fileInfo, i.fileInfo.getFileUrl && (o.value.url = i.fileInfo.getFileUrl()));
|
|
18456
|
-
}), (
|
|
18487
|
+
}), (q, k) => (h(), S("div", {
|
|
18457
18488
|
ref_key: "rootEl",
|
|
18458
18489
|
ref: r,
|
|
18459
18490
|
class: "column items-center q-my-md"
|
|
@@ -18514,7 +18545,7 @@ const IS = { class: "cropper-wrapper" }, AS = { class: "row justify-end q-mt-md"
|
|
|
18514
18545
|
})
|
|
18515
18546
|
])
|
|
18516
18547
|
])
|
|
18517
|
-
], 4)) : (h(),
|
|
18548
|
+
], 4)) : (h(), F(d(Qd), {
|
|
18518
18549
|
key: 0,
|
|
18519
18550
|
id: d(l),
|
|
18520
18551
|
ref_key: "uploader",
|
|
@@ -18555,7 +18586,7 @@ const IS = { class: "cropper-wrapper" }, AS = { class: "row justify-end q-mt-md"
|
|
|
18555
18586
|
default: C(() => [
|
|
18556
18587
|
y(d(Jt), { class: "full-height" }, {
|
|
18557
18588
|
default: C(() => [
|
|
18558
|
-
y(d(
|
|
18589
|
+
y(d($t), { class: "row items-center q-pb-none" }, {
|
|
18559
18590
|
default: C(() => [
|
|
18560
18591
|
y(d(Hn)),
|
|
18561
18592
|
tt(y(Ce, {
|
|
@@ -18570,7 +18601,7 @@ const IS = { class: "cropper-wrapper" }, AS = { class: "row justify-end q-mt-md"
|
|
|
18570
18601
|
]),
|
|
18571
18602
|
_: 1
|
|
18572
18603
|
}),
|
|
18573
|
-
y(d(
|
|
18604
|
+
y(d($t), { class: "cropper-section" }, {
|
|
18574
18605
|
default: C(() => [
|
|
18575
18606
|
y(OS, {
|
|
18576
18607
|
ratio: d(f),
|
|
@@ -18603,7 +18634,7 @@ function Q8(t, e = {}) {
|
|
|
18603
18634
|
const { quasarPlugins: n = !0 } = e;
|
|
18604
18635
|
n && t.use(Kd, { plugins: { Notify: Lo, Dialog: qo } }), VS.install(t), Vu(t), su(t), qu(t);
|
|
18605
18636
|
}
|
|
18606
|
-
class Z8 extends
|
|
18637
|
+
class Z8 extends Hs {
|
|
18607
18638
|
constructor() {
|
|
18608
18639
|
super(...arguments);
|
|
18609
18640
|
u(this, "label", "Логин");
|
|
@@ -18849,8 +18880,8 @@ const u4 = {
|
|
|
18849
18880
|
dark: "#1e1e1e",
|
|
18850
18881
|
"dark-page": "#121212"
|
|
18851
18882
|
}, WS = 5 * 60 * 1e3, GS = 5 * 1e3;
|
|
18852
|
-
let Ya = !1, zo = 0,
|
|
18853
|
-
function
|
|
18883
|
+
let Ya = !1, zo = 0, Ds = !1, Do = !1;
|
|
18884
|
+
function ks(t, e, n = "", i = !1) {
|
|
18854
18885
|
const s = t.UserInfo(), o = {
|
|
18855
18886
|
operation: e,
|
|
18856
18887
|
reason: n,
|
|
@@ -18883,21 +18914,21 @@ function Cs(t, e, n = "", i = !1) {
|
|
|
18883
18914
|
}
|
|
18884
18915
|
}
|
|
18885
18916
|
function Fo(t, e, n = !1) {
|
|
18886
|
-
|
|
18917
|
+
Ds || (Ds = !0, ks(t, "logout", e, n));
|
|
18887
18918
|
}
|
|
18888
18919
|
function c4(t) {
|
|
18889
18920
|
if (Ya) return;
|
|
18890
18921
|
Ya = !0, t.on("login", () => {
|
|
18891
18922
|
const n = Date.now();
|
|
18892
|
-
n - zo < GS || (zo = n,
|
|
18923
|
+
n - zo < GS || (zo = n, Ds = !1, Do = !1, ks(t, "login"));
|
|
18893
18924
|
}), t.on("logout", () => {
|
|
18894
18925
|
Do = !0, Fo(t, "user");
|
|
18895
|
-
}), t.on("session-expired", () => Fo(t, "token-expired")), t.isAuth() && (zo = Date.now(),
|
|
18926
|
+
}), t.on("session-expired", () => Fo(t, "token-expired")), t.isAuth() && (zo = Date.now(), Ds = !1, ks(t, "login"));
|
|
18896
18927
|
const e = () => {
|
|
18897
18928
|
t.isAuth() && Fo(t, Do ? "user" : "tab-close", !0);
|
|
18898
18929
|
};
|
|
18899
18930
|
window.addEventListener("pagehide", e), window.addEventListener("beforeunload", e), window.setInterval(() => {
|
|
18900
|
-
t.isAuth() &&
|
|
18931
|
+
t.isAuth() && ks(t, "heartbeat");
|
|
18901
18932
|
}, WS);
|
|
18902
18933
|
}
|
|
18903
18934
|
const f4 = ["PF", "PFM"];
|
|
@@ -18907,7 +18938,7 @@ export {
|
|
|
18907
18938
|
ca as AuthButtonRegister,
|
|
18908
18939
|
yo as AuthButtonRestore,
|
|
18909
18940
|
bt as AuthChunks,
|
|
18910
|
-
|
|
18941
|
+
zn as AuthFieldsIds,
|
|
18911
18942
|
vc as AuthFormSettings,
|
|
18912
18943
|
Gi as AuthMethods,
|
|
18913
18944
|
_S as DEFAULT_PLATFORM,
|
|
@@ -18915,15 +18946,15 @@ export {
|
|
|
18915
18946
|
Z8 as LoginField,
|
|
18916
18947
|
jS as MOBILE_MAX_WIDTH,
|
|
18917
18948
|
a2 as PAddDialog,
|
|
18918
|
-
|
|
18949
|
+
Xs as PBadge,
|
|
18919
18950
|
Ce as PButton,
|
|
18920
18951
|
b2 as PCard,
|
|
18921
18952
|
p0 as PCheckBox,
|
|
18922
18953
|
Ru as PChip,
|
|
18923
18954
|
Kl as PContactForm,
|
|
18924
|
-
|
|
18955
|
+
Qs as PContactFormDeleteDialog,
|
|
18925
18956
|
eu as PContactFormEdit,
|
|
18926
|
-
|
|
18957
|
+
Zs as PContactFormEditDialog,
|
|
18927
18958
|
tu as PContactFormEditEmails,
|
|
18928
18959
|
nu as PContactFormEditPhones,
|
|
18929
18960
|
iu as PContactFormView,
|
|
@@ -18940,7 +18971,7 @@ export {
|
|
|
18940
18971
|
Ot as PInput,
|
|
18941
18972
|
Or as POptionsListSingle,
|
|
18942
18973
|
W0 as POpts,
|
|
18943
|
-
|
|
18974
|
+
io as PSelect,
|
|
18944
18975
|
Lu as PTable,
|
|
18945
18976
|
Iu as PTableBadge,
|
|
18946
18977
|
Au as PTableBadges,
|
|
@@ -18956,7 +18987,7 @@ export {
|
|
|
18956
18987
|
fd as PageFTSPKey,
|
|
18957
18988
|
wo as PasswordField,
|
|
18958
18989
|
gc as PasswordRepeatField,
|
|
18959
|
-
|
|
18990
|
+
no as Schedule,
|
|
18960
18991
|
Er as ScheduleDay,
|
|
18961
18992
|
Pu as ScheduleDefaultLabels,
|
|
18962
18993
|
Yv as ScheduleGridEditor,
|