elcrm 0.8.62 → 0.8.63
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/index.es.js +145 -143
- package/dist/index.umd.js +3 -3
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -5,7 +5,7 @@ import p, { createElement as Ea } from "react";
|
|
|
5
5
|
let Et = {};
|
|
6
6
|
const Ra = (e) => {
|
|
7
7
|
Et = e;
|
|
8
|
-
}, Na = (e) => Et.enCode(e), Ta = (e) => Et.deCode(e), L = { enCode: Na, deCode: Ta, New: Ra },
|
|
8
|
+
}, Na = (e) => Et.enCode(e), Ta = (e) => Et.deCode(e), L = { enCode: Na, deCode: Ta, New: Ra }, S = {}, Y = {}, be = {}, hn = {}, ce = {};
|
|
9
9
|
let Xe = "M06";
|
|
10
10
|
function Ia(e) {
|
|
11
11
|
Xe = e;
|
|
@@ -16,11 +16,11 @@ function Da() {
|
|
|
16
16
|
function Ma(e) {
|
|
17
17
|
if (localStorage.getItem("d")) {
|
|
18
18
|
let a = sessionStorage.getItem("f");
|
|
19
|
-
a ? (a = L.deCode(a), a || te(),
|
|
19
|
+
a ? (a = L.deCode(a), a || te(), S.id = a.id, S.tab = a.tab, S.page = a.page, S.module = a.module, S.time = a.time, S.payment = { active: !0 }, S.module_admin = a.module_admin) : (S.id = 0, S.tab = "", S.page = "Main", S.module = S.module || Xe);
|
|
20
20
|
} else
|
|
21
21
|
["a", "b", "c", "d", "e", "m", "u", "s", "q", "p"].forEach(
|
|
22
22
|
(a) => localStorage.removeItem(a)
|
|
23
|
-
), ["f"].forEach((a) => sessionStorage.removeItem(a)),
|
|
23
|
+
), ["f"].forEach((a) => sessionStorage.removeItem(a)), S.id = 0, S.tab = "", S.page = "Auth", S.module = Xe;
|
|
24
24
|
return e;
|
|
25
25
|
}
|
|
26
26
|
function te() {
|
|
@@ -29,16 +29,16 @@ function te() {
|
|
|
29
29
|
), ["f"].forEach((e) => sessionStorage.removeItem(e)), window.location.reload();
|
|
30
30
|
}
|
|
31
31
|
function La(e) {
|
|
32
|
-
e = e.split("/"),
|
|
32
|
+
e = e.split("/"), S.page = "Main", S.module = e[0], S.tab = e[1], S.id = 0, sessionStorage.setItem(
|
|
33
33
|
"f",
|
|
34
34
|
L.enCode({
|
|
35
|
-
module:
|
|
36
|
-
page:
|
|
37
|
-
tab:
|
|
38
|
-
id:
|
|
35
|
+
module: S.module,
|
|
36
|
+
page: S.page,
|
|
37
|
+
tab: S.tab,
|
|
38
|
+
id: S.id,
|
|
39
39
|
time: (/* @__PURE__ */ new Date()).getTime()
|
|
40
40
|
})
|
|
41
|
-
), Y.page(
|
|
41
|
+
), Y.page(S.page);
|
|
42
42
|
}
|
|
43
43
|
function Fa(e) {
|
|
44
44
|
return localStorage.setItem("d", e);
|
|
@@ -72,13 +72,13 @@ function Aa() {
|
|
|
72
72
|
return Y.page = a, [e];
|
|
73
73
|
}
|
|
74
74
|
function Ga(e, t = !0) {
|
|
75
|
-
|
|
75
|
+
S.page = e, sessionStorage.setItem("f", L.enCode(S)), t && Y.page(e);
|
|
76
76
|
}
|
|
77
77
|
function xn() {
|
|
78
|
-
return
|
|
78
|
+
return S.page;
|
|
79
79
|
}
|
|
80
80
|
function Za(e) {
|
|
81
|
-
return
|
|
81
|
+
return S.page === e;
|
|
82
82
|
}
|
|
83
83
|
function za(e) {
|
|
84
84
|
if (typeof e != "function") {
|
|
@@ -90,13 +90,13 @@ function za(e) {
|
|
|
90
90
|
Y.module = e;
|
|
91
91
|
}
|
|
92
92
|
function Ka(e, t = !0) {
|
|
93
|
-
|
|
93
|
+
S.module = e, sessionStorage.setItem("f", L.enCode(S)), t && Y.module(e);
|
|
94
94
|
}
|
|
95
95
|
function pn() {
|
|
96
|
-
return
|
|
96
|
+
return S.module;
|
|
97
97
|
}
|
|
98
98
|
function Wa(e) {
|
|
99
|
-
return
|
|
99
|
+
return S.module === e;
|
|
100
100
|
}
|
|
101
101
|
function Ua(e) {
|
|
102
102
|
if (typeof e != "function") {
|
|
@@ -106,17 +106,17 @@ function Ua(e) {
|
|
|
106
106
|
Y.tabs = e;
|
|
107
107
|
}
|
|
108
108
|
function Ya(e, t = !0) {
|
|
109
|
-
if (
|
|
109
|
+
if (S.tab = e, sessionStorage.setItem("f", L.enCode(S)), !!t)
|
|
110
110
|
if (Y.tabs)
|
|
111
111
|
Y.tabs(e);
|
|
112
112
|
else
|
|
113
113
|
throw new Error("useTabs not found");
|
|
114
114
|
}
|
|
115
115
|
function Qe() {
|
|
116
|
-
return
|
|
116
|
+
return S.tab;
|
|
117
117
|
}
|
|
118
118
|
function Ha(e) {
|
|
119
|
-
return
|
|
119
|
+
return S.tab === e;
|
|
120
120
|
}
|
|
121
121
|
function Va(e) {
|
|
122
122
|
if (typeof e != "function") {
|
|
@@ -131,16 +131,16 @@ function qa(e) {
|
|
|
131
131
|
Y.id = e;
|
|
132
132
|
}
|
|
133
133
|
function Ja(e, t = !0) {
|
|
134
|
-
|
|
134
|
+
S.id = e, sessionStorage.setItem("f", L.enCode(S)), t && Y.id(e);
|
|
135
135
|
}
|
|
136
136
|
function gn() {
|
|
137
|
-
return
|
|
137
|
+
return S.id;
|
|
138
138
|
}
|
|
139
139
|
function Xa(e) {
|
|
140
|
-
return Number(
|
|
140
|
+
return Number(S.id) === e;
|
|
141
141
|
}
|
|
142
142
|
function Qa(e, t, a) {
|
|
143
|
-
|
|
143
|
+
S.module = e, S.id = a, S.tab = t, sessionStorage.setItem("f", L.enCode(S)), Y.module(e), Y.tabs(t);
|
|
144
144
|
}
|
|
145
145
|
function er(e) {
|
|
146
146
|
be.data = e[0], delete be.data.id, document.body.dataset.theme = be.data.s15, localStorage.setItem("s", L.enCode(be.data));
|
|
@@ -213,10 +213,10 @@ function or(e) {
|
|
|
213
213
|
return hn.data[e];
|
|
214
214
|
}
|
|
215
215
|
function lr(e) {
|
|
216
|
-
|
|
216
|
+
S.payment = e;
|
|
217
217
|
}
|
|
218
218
|
function cr() {
|
|
219
|
-
return
|
|
219
|
+
return S.payment;
|
|
220
220
|
}
|
|
221
221
|
function yn(e) {
|
|
222
222
|
localStorage.setItem("u", L.enCode(e));
|
|
@@ -252,23 +252,23 @@ function ur(e) {
|
|
|
252
252
|
let s = L.deCode(r);
|
|
253
253
|
if (!s)
|
|
254
254
|
return;
|
|
255
|
-
|
|
255
|
+
S[a] = { is: !0, time: s.time, data: s.data };
|
|
256
256
|
} catch {
|
|
257
|
-
|
|
257
|
+
S[a] = { is: !1, time: 0, data: {} };
|
|
258
258
|
}
|
|
259
259
|
else
|
|
260
|
-
|
|
260
|
+
S[a] = { is: !1, time: 0, data: {} };
|
|
261
261
|
};
|
|
262
262
|
e.forEach((a) => t(a));
|
|
263
263
|
}
|
|
264
264
|
function fr(e) {
|
|
265
|
-
return
|
|
265
|
+
return S[e] === void 0 ? (S[e] = { data: {}, time: 0 }, { data: {}, time: 0 }) : S[e];
|
|
266
266
|
}
|
|
267
267
|
function mr(e, t) {
|
|
268
|
-
|
|
268
|
+
S[e] = { data: t.data, time: t.time }, localStorage.setItem(e, L.enCode(S[e]));
|
|
269
269
|
}
|
|
270
270
|
function hr(e, t, a) {
|
|
271
|
-
|
|
271
|
+
S[e].time = a, S[e].data[t.item][t.name] = t.value, localStorage.setItem(e, L.enCode(S[e]));
|
|
272
272
|
}
|
|
273
273
|
const ae = {
|
|
274
274
|
setSSID: Fa,
|
|
@@ -509,10 +509,10 @@ function Lr() {
|
|
|
509
509
|
P.unshift("Warning: " + g), Function.prototype.apply.call(console[c], console, P);
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
|
-
var D = !1,
|
|
512
|
+
var D = !1, b = !1, E = !1, R = !1, N = !1, A;
|
|
513
513
|
A = Symbol.for("react.module.reference");
|
|
514
514
|
function X(c) {
|
|
515
|
-
return !!(typeof c == "string" || typeof c == "function" || c === r || c === i || N || c === s || c === _ || c === u ||
|
|
515
|
+
return !!(typeof c == "string" || typeof c == "function" || c === r || c === i || N || c === s || c === _ || c === u || R || c === h || D || b || E || typeof c == "object" && c !== null && (c.$$typeof === f || c.$$typeof === m || c.$$typeof === o || c.$$typeof === l || c.$$typeof === d || // This needs to include all possible module reference object
|
|
516
516
|
// types supported by any Flight configuration anywhere since
|
|
517
517
|
// we don't know which Flight build this will end up being used
|
|
518
518
|
// with.
|
|
@@ -1685,15 +1685,15 @@ function js(e) {
|
|
|
1685
1685
|
}
|
|
1686
1686
|
const ys = (e) => {
|
|
1687
1687
|
function t(T, D) {
|
|
1688
|
-
var
|
|
1688
|
+
var b, R, E;
|
|
1689
1689
|
T = T ?? "", D = D ?? 1;
|
|
1690
|
-
for (var
|
|
1691
|
-
|
|
1692
|
-
return
|
|
1690
|
+
for (var b = [], E = 0, R = T.length; E < R; )
|
|
1691
|
+
b.push(T.slice(E, E += D));
|
|
1692
|
+
return b;
|
|
1693
1693
|
}
|
|
1694
1694
|
function a(T, D) {
|
|
1695
|
-
var
|
|
1696
|
-
return D[T > 4 && T < 20 ? 2 :
|
|
1695
|
+
var b = [2, 0, 1, 1, 1, 2];
|
|
1696
|
+
return D[T > 4 && T < 20 ? 2 : b[Math.min(T, 5)]];
|
|
1697
1697
|
}
|
|
1698
1698
|
var r = {
|
|
1699
1699
|
null: "ноль",
|
|
@@ -3472,13 +3472,13 @@ function Pe({
|
|
|
3472
3472
|
onSave: h,
|
|
3473
3473
|
className: C = ""
|
|
3474
3474
|
}) {
|
|
3475
|
-
let x = !!(o && (e === "" || e === void 0)), v = (
|
|
3476
|
-
t && t({ value:
|
|
3477
|
-
}, k = (
|
|
3478
|
-
|
|
3479
|
-
}, w = (
|
|
3480
|
-
}, T = (
|
|
3481
|
-
|
|
3475
|
+
let x = !!(o && (e === "" || e === void 0)), v = (R) => {
|
|
3476
|
+
t && t({ value: R.target.textContent, name: a });
|
|
3477
|
+
}, k = (R) => {
|
|
3478
|
+
R.key === "Enter" && R.preventDefault();
|
|
3479
|
+
}, w = (R) => {
|
|
3480
|
+
}, T = (R) => {
|
|
3481
|
+
R.preventDefault(), navigator.clipboard.writeText(R.target.textContent).then(
|
|
3482
3482
|
function() {
|
|
3483
3483
|
$e.Copy("Данные в буфер обмене");
|
|
3484
3484
|
},
|
|
@@ -3490,10 +3490,10 @@ function Pe({
|
|
|
3490
3490
|
return "";
|
|
3491
3491
|
const D = {};
|
|
3492
3492
|
D.field = "input", C && (D.className = C);
|
|
3493
|
-
const
|
|
3494
|
-
r && (
|
|
3495
|
-
const
|
|
3496
|
-
ue.Blur(
|
|
3493
|
+
const b = {};
|
|
3494
|
+
r && (b.placeholder = r), l && d && (b.edit = "");
|
|
3495
|
+
const E = (R) => {
|
|
3496
|
+
ue.Blur(R), h && h({ value: R.target.textContent, name: a });
|
|
3497
3497
|
};
|
|
3498
3498
|
return /* @__PURE__ */ n.jsxs("dl", { ...D, children: [
|
|
3499
3499
|
s ? /* @__PURE__ */ n.jsx("dt", { children: s }) : "",
|
|
@@ -3502,12 +3502,12 @@ function Pe({
|
|
|
3502
3502
|
{
|
|
3503
3503
|
onPaste: w,
|
|
3504
3504
|
onInput: v,
|
|
3505
|
-
onBlur:
|
|
3505
|
+
onBlur: E,
|
|
3506
3506
|
onKeyDown: k,
|
|
3507
3507
|
onContextMenu: T,
|
|
3508
3508
|
contentEditable: l && d ? "plaintext-only" : "false",
|
|
3509
3509
|
suppressContentEditableWarning: !0,
|
|
3510
|
-
...
|
|
3510
|
+
...b,
|
|
3511
3511
|
children: e
|
|
3512
3512
|
}
|
|
3513
3513
|
),
|
|
@@ -3894,11 +3894,11 @@ const fl = (e) => {
|
|
|
3894
3894
|
y: parseInt(s.getFullYear()),
|
|
3895
3895
|
d: parseInt(s.getDate()),
|
|
3896
3896
|
m: parseInt(s.getMonth()) + 1
|
|
3897
|
-
}, [l, d] = p.useState({ y: o.y, m: o.m }), _ = (
|
|
3898
|
-
let
|
|
3899
|
-
return
|
|
3897
|
+
}, [l, d] = p.useState({ y: o.y, m: o.m }), _ = (b) => {
|
|
3898
|
+
let E = b.getDay();
|
|
3899
|
+
return E === 0 && (E = 7), E - 1;
|
|
3900
3900
|
}, u = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], m = l.m - 1, f = new Date(l.y, m), h = [];
|
|
3901
|
-
for (let
|
|
3901
|
+
for (let b = 0; b < _(f); b++)
|
|
3902
3902
|
h.push(0);
|
|
3903
3903
|
for (; f.getMonth() === m; )
|
|
3904
3904
|
h.push(f.getDate()), f.setDate(f.getDate() + 1);
|
|
@@ -3908,12 +3908,12 @@ const fl = (e) => {
|
|
|
3908
3908
|
w(l.m + 1, l.y);
|
|
3909
3909
|
}, v = () => {
|
|
3910
3910
|
w(l.m - 1, l.y);
|
|
3911
|
-
}, k = (
|
|
3911
|
+
}, k = (b) => {
|
|
3912
3912
|
e.onValue(
|
|
3913
|
-
l.y + "-" + W.Number(2, l.m) + "-" + W.Number(2,
|
|
3913
|
+
l.y + "-" + W.Number(2, l.m) + "-" + W.Number(2, b)
|
|
3914
3914
|
), C();
|
|
3915
|
-
}, w = (
|
|
3916
|
-
|
|
3915
|
+
}, w = (b, E) => {
|
|
3916
|
+
E = b > 12 ? E + 1 : b < 1 ? E - 1 : E, b = b > 12 ? 1 : b < 1 ? 12 : b, d({ y: E, m: b });
|
|
3917
3917
|
}, T = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, D = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
|
|
3918
3918
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3919
3919
|
/* @__PURE__ */ n.jsx(
|
|
@@ -3960,15 +3960,15 @@ const fl = (e) => {
|
|
|
3960
3960
|
) })
|
|
3961
3961
|
] }),
|
|
3962
3962
|
/* @__PURE__ */ n.jsxs("div", { "grid-calendar": "", children: [
|
|
3963
|
-
u.map((
|
|
3964
|
-
h.map((
|
|
3963
|
+
u.map((b, E) => /* @__PURE__ */ n.jsx("p", { children: b }, "v" + E)),
|
|
3964
|
+
h.map((b, E) => /* @__PURE__ */ n.jsx("span", { children: b !== 0 ? /* @__PURE__ */ n.jsx(
|
|
3965
3965
|
"b",
|
|
3966
3966
|
{
|
|
3967
|
-
color: i.y === l.y && i.m === l.m && i.d ===
|
|
3968
|
-
onClick: () => k(
|
|
3969
|
-
children:
|
|
3967
|
+
color: i.y === l.y && i.m === l.m && i.d === b ? "_FFEB3B" : "",
|
|
3968
|
+
onClick: () => k(b),
|
|
3969
|
+
children: b
|
|
3970
3970
|
}
|
|
3971
|
-
) : /* @__PURE__ */ n.jsx("p", {}) },
|
|
3971
|
+
) : /* @__PURE__ */ n.jsx("p", {}) }, E))
|
|
3972
3972
|
] })
|
|
3973
3973
|
]
|
|
3974
3974
|
}
|
|
@@ -3993,13 +3993,13 @@ function It({
|
|
|
3993
3993
|
options: C,
|
|
3994
3994
|
className: x
|
|
3995
3995
|
}) {
|
|
3996
|
-
let [v, k] = p.useState(e), w = (
|
|
3996
|
+
let [v, k] = p.useState(e), w = (b) => {
|
|
3997
3997
|
if (!(l && _) || !f)
|
|
3998
3998
|
return;
|
|
3999
|
-
let
|
|
4000
|
-
tt.Open(
|
|
4001
|
-
callback: (
|
|
4002
|
-
t && t({ value:
|
|
3999
|
+
let E = f.split(".");
|
|
4000
|
+
tt.Open(E[0], E[1], {
|
|
4001
|
+
callback: (R) => {
|
|
4002
|
+
t && t({ value: R, name: a }), k(R);
|
|
4003
4003
|
},
|
|
4004
4004
|
onValue: t,
|
|
4005
4005
|
options: C,
|
|
@@ -4261,7 +4261,7 @@ function Mt({
|
|
|
4261
4261
|
}, D = (N) => {
|
|
4262
4262
|
if (N.which === 17 || N.which === 91)
|
|
4263
4263
|
return k = !1;
|
|
4264
|
-
},
|
|
4264
|
+
}, b = (N) => {
|
|
4265
4265
|
N.preventDefault(), navigator.clipboard.readText().then((A) => {
|
|
4266
4266
|
A = A.replace(/\D/g, ""), window.document.execCommand(
|
|
4267
4267
|
"insertText",
|
|
@@ -4271,16 +4271,16 @@ function Mt({
|
|
|
4271
4271
|
}).catch((A) => {
|
|
4272
4272
|
});
|
|
4273
4273
|
};
|
|
4274
|
-
const
|
|
4275
|
-
|
|
4276
|
-
let
|
|
4277
|
-
return r && t ? (
|
|
4274
|
+
const E = {};
|
|
4275
|
+
E.field = "input", u && (E.className = u);
|
|
4276
|
+
let R = {};
|
|
4277
|
+
return r && t ? (R.edit = "true", R.contentEditable = "plaintext-only") : R.contentEditable = "false", _ && (R.placeholder = _), f && (R.after = f), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...E, children: [
|
|
4278
4278
|
C(),
|
|
4279
4279
|
/* @__PURE__ */ n.jsx(
|
|
4280
4280
|
"dd",
|
|
4281
4281
|
{
|
|
4282
|
-
...
|
|
4283
|
-
onPaste:
|
|
4282
|
+
...R,
|
|
4283
|
+
onPaste: b,
|
|
4284
4284
|
onInput: w,
|
|
4285
4285
|
onKeyDown: T,
|
|
4286
4286
|
onKeyUp: D,
|
|
@@ -5768,7 +5768,7 @@ function Lt({
|
|
|
5768
5768
|
return Ne.length >= q.length && (q = Ne), { q: x.replace(/[_\d]/g, function() {
|
|
5769
5769
|
return q.charAt(B++) || "_";
|
|
5770
5770
|
}), i: B, v: q, f: V };
|
|
5771
|
-
},
|
|
5771
|
+
}, b = (Z) => {
|
|
5772
5772
|
Z.preventDefault(), navigator.clipboard.writeText(Z.target.textContent.replace(/\D/g, "")).then(
|
|
5773
5773
|
function() {
|
|
5774
5774
|
$e.Copy("Данные в буфер обмене");
|
|
@@ -5776,7 +5776,7 @@ function Lt({
|
|
|
5776
5776
|
function(B) {
|
|
5777
5777
|
}
|
|
5778
5778
|
);
|
|
5779
|
-
},
|
|
5779
|
+
}, E = D(e), R = (Z) => {
|
|
5780
5780
|
let B = D(Z.target.textContent);
|
|
5781
5781
|
Z.target.textContent = B.q, B.i = B.q.lastIndexOf(B.v.substr(-1)), B.i < B.q.length && B.q !== x ? B.i++ : B.i = B.q.indexOf("_"), w(B.i, Z.target), t && t({ value: B.q.replace(/\D/g, ""), name: r });
|
|
5782
5782
|
}, N = (Z) => {
|
|
@@ -5797,12 +5797,12 @@ function Lt({
|
|
|
5797
5797
|
{
|
|
5798
5798
|
...le,
|
|
5799
5799
|
onPaste: T,
|
|
5800
|
-
onInput:
|
|
5800
|
+
onInput: R,
|
|
5801
5801
|
onKeyDown: N,
|
|
5802
|
-
onContextMenu:
|
|
5802
|
+
onContextMenu: b,
|
|
5803
5803
|
onBlur: A,
|
|
5804
5804
|
suppressContentEditableWarning: !0,
|
|
5805
|
-
children:
|
|
5805
|
+
children: E.q
|
|
5806
5806
|
}
|
|
5807
5807
|
),
|
|
5808
5808
|
o && /* @__PURE__ */ n.jsx("em", { children: o })
|
|
@@ -6189,18 +6189,20 @@ function Zn({
|
|
|
6189
6189
|
let x = !!(o && (e === "" || e === void 0));
|
|
6190
6190
|
if (!(l && d) && !u || !(l && d) && x)
|
|
6191
6191
|
return "";
|
|
6192
|
-
let v = (
|
|
6193
|
-
t && t({ value:
|
|
6194
|
-
}, k = (
|
|
6195
|
-
h && h({ value:
|
|
6196
|
-
}, w = (
|
|
6197
|
-
|
|
6198
|
-
window.document.execCommand("insertText", !1,
|
|
6199
|
-
}).catch((
|
|
6192
|
+
let v = (b) => {
|
|
6193
|
+
t && t({ value: b.target.innerText, name: a });
|
|
6194
|
+
}, k = (b) => {
|
|
6195
|
+
h && h({ value: b.target.innerText, name: a });
|
|
6196
|
+
}, w = (b) => {
|
|
6197
|
+
b.preventDefault(), navigator.clipboard.readText().then((E) => {
|
|
6198
|
+
window.document.execCommand("insertText", !1, E);
|
|
6199
|
+
}).catch((E) => {
|
|
6200
6200
|
});
|
|
6201
6201
|
};
|
|
6202
6202
|
const T = {};
|
|
6203
|
-
|
|
6203
|
+
T.field = "text", C && (T.className = C);
|
|
6204
|
+
const D = {};
|
|
6205
|
+
return r && (D.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { ...T, children: [
|
|
6204
6206
|
s ?? /* @__PURE__ */ n.jsx("dt", { children: s }),
|
|
6205
6207
|
/* @__PURE__ */ n.jsx(
|
|
6206
6208
|
"dd",
|
|
@@ -6209,7 +6211,7 @@ function Zn({
|
|
|
6209
6211
|
onBlur: k,
|
|
6210
6212
|
onInput: v,
|
|
6211
6213
|
contentEditable: l && d ? "plaintext-only" : "false",
|
|
6212
|
-
...
|
|
6214
|
+
...D,
|
|
6213
6215
|
suppressContentEditableWarning: !0,
|
|
6214
6216
|
children: e
|
|
6215
6217
|
}
|
|
@@ -6237,12 +6239,12 @@ function zn({
|
|
|
6237
6239
|
let x = !!(o && (e === "" || e === void 0)), v = W.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), k = p.useRef(null);
|
|
6238
6240
|
if (!(l && d) && !u || !(l && d) && x)
|
|
6239
6241
|
return "";
|
|
6240
|
-
let w = (
|
|
6241
|
-
k.current.textContent =
|
|
6242
|
-
}, T = (
|
|
6243
|
-
h && h({ value:
|
|
6244
|
-
}, D = (
|
|
6245
|
-
const N =
|
|
6242
|
+
let w = (R) => {
|
|
6243
|
+
k.current.textContent = R, t && t({ value: R, name: a });
|
|
6244
|
+
}, T = (R) => {
|
|
6245
|
+
h && h({ value: R, name: a });
|
|
6246
|
+
}, D = (R) => {
|
|
6247
|
+
const N = R.target.getBoundingClientRect(), A = N.left, X = N.top;
|
|
6246
6248
|
Ee.setListener(
|
|
6247
6249
|
"form",
|
|
6248
6250
|
/* @__PURE__ */ n.jsx(
|
|
@@ -6257,18 +6259,18 @@ function zn({
|
|
|
6257
6259
|
)
|
|
6258
6260
|
);
|
|
6259
6261
|
};
|
|
6260
|
-
const
|
|
6261
|
-
|
|
6262
|
-
const
|
|
6263
|
-
return r && (
|
|
6262
|
+
const b = {};
|
|
6263
|
+
b.field = "input", C && (b.className = C);
|
|
6264
|
+
const E = {};
|
|
6265
|
+
return r && (E.placeholder = r), /* @__PURE__ */ n.jsx(n.Fragment, { children: m === "icon" ? /* @__PURE__ */ n.jsx(
|
|
6264
6266
|
"i",
|
|
6265
6267
|
{
|
|
6266
6268
|
"data-icon": "F043",
|
|
6267
6269
|
onClick: D
|
|
6268
6270
|
}
|
|
6269
|
-
) : /* @__PURE__ */ n.jsxs("dl", { ...
|
|
6271
|
+
) : /* @__PURE__ */ n.jsxs("dl", { ...b, children: [
|
|
6270
6272
|
s ? /* @__PURE__ */ n.jsx("dt", { children: s }) : "",
|
|
6271
|
-
/* @__PURE__ */ n.jsx("dd", { onClick: D, ref: k, ...
|
|
6273
|
+
/* @__PURE__ */ n.jsx("dd", { onClick: D, ref: k, ...E, children: v }),
|
|
6272
6274
|
i ? /* @__PURE__ */ n.jsx("em", { children: i }) : ""
|
|
6273
6275
|
] }) });
|
|
6274
6276
|
}
|
|
@@ -6290,11 +6292,11 @@ const pl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
|
|
|
6290
6292
|
_ = !0;
|
|
6291
6293
|
}, C = () => {
|
|
6292
6294
|
_ = !1, o = o === "hour" ? "time" : "hour", f.body.current.setAttribute("active", o);
|
|
6293
|
-
}, x = (
|
|
6295
|
+
}, x = (E) => {
|
|
6294
6296
|
if (_) {
|
|
6295
6297
|
let N = Math.atan2(
|
|
6296
|
-
|
|
6297
|
-
|
|
6298
|
+
E.pageX - (l.x + 78),
|
|
6299
|
+
E.pageY - (l.y + 78)
|
|
6298
6300
|
) * (180 / Math.PI) * -1 + 180;
|
|
6299
6301
|
f[o].current.style.transform = "rotate(" + N + "deg)", o === "hour" ? (i = {
|
|
6300
6302
|
...i,
|
|
@@ -6304,38 +6306,38 @@ const pl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
|
|
|
6304
6306
|
m: W.Number(2, parseInt(String(N / 6), 10))
|
|
6305
6307
|
}, f.timeText.current.textContent = i.m), a(i.h + ":" + i.m);
|
|
6306
6308
|
}
|
|
6307
|
-
}, v = (
|
|
6309
|
+
}, v = (E) => {
|
|
6308
6310
|
if (o === "hour")
|
|
6309
|
-
if (
|
|
6310
|
-
u +=
|
|
6311
|
-
let
|
|
6312
|
-
if (m !==
|
|
6313
|
-
m =
|
|
6311
|
+
if (E.deltaY > 0) {
|
|
6312
|
+
u += E.deltaY;
|
|
6313
|
+
let R = parseInt(String(u / 50));
|
|
6314
|
+
if (m !== R) {
|
|
6315
|
+
m = R;
|
|
6314
6316
|
let N = parseInt(i.h, 10) + 1;
|
|
6315
6317
|
N = N > 23 ? 0 : N, i = { ...i, h: W.Number(2, N) }, f.hourText.current.textContent = i.h, f[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
|
|
6316
6318
|
}
|
|
6317
6319
|
} else {
|
|
6318
|
-
u -=
|
|
6319
|
-
let
|
|
6320
|
-
if (m !==
|
|
6321
|
-
m =
|
|
6320
|
+
u -= E.deltaY;
|
|
6321
|
+
let R = parseInt(String(u / 50));
|
|
6322
|
+
if (m !== R) {
|
|
6323
|
+
m = R;
|
|
6322
6324
|
let N = parseInt(i.h, 10) - 1;
|
|
6323
6325
|
N = N < 0 ? 23 : N, i = { ...i, h: W.Number(2, N) }, f.hourText.current.textContent = i.h, f[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
|
|
6324
6326
|
}
|
|
6325
6327
|
}
|
|
6326
|
-
else if (
|
|
6327
|
-
u +=
|
|
6328
|
-
let
|
|
6329
|
-
if (m !==
|
|
6330
|
-
m =
|
|
6328
|
+
else if (E.deltaY > 0) {
|
|
6329
|
+
u += E.deltaY;
|
|
6330
|
+
let R = parseInt(String(u / 50));
|
|
6331
|
+
if (m !== R) {
|
|
6332
|
+
m = R;
|
|
6331
6333
|
let N = parseInt(i.m, 10) + 1;
|
|
6332
6334
|
N = N > 59 ? 0 : N, i = { ...i, m: W.Number(2, N) }, f.timeText.current.textContent = i.m, f[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
|
|
6333
6335
|
}
|
|
6334
6336
|
} else {
|
|
6335
|
-
u -=
|
|
6336
|
-
let
|
|
6337
|
-
if (m !==
|
|
6338
|
-
m =
|
|
6337
|
+
u -= E.deltaY;
|
|
6338
|
+
let R = parseInt(String(u / 50));
|
|
6339
|
+
if (m !== R) {
|
|
6340
|
+
m = R;
|
|
6339
6341
|
let N = parseInt(i.m, 10) - 1;
|
|
6340
6342
|
N = N < 0 ? 59 : N, i = { ...i, m: W.Number(2, N) }, f.timeText.current.textContent = i.m, f[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
|
|
6341
6343
|
}
|
|
@@ -6343,7 +6345,7 @@ const pl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
|
|
|
6343
6345
|
a(i.h + ":" + i.m);
|
|
6344
6346
|
}, [k, w] = p.useState(!0), T = () => {
|
|
6345
6347
|
w(!1), t(i.h + ":" + i.m);
|
|
6346
|
-
}, D = window.innerHeight - e.y + 33 < 320 ? e.y - 312 : e.y + 33,
|
|
6348
|
+
}, D = window.innerHeight - e.y + 33 < 320 ? e.y - 312 : e.y + 33, b = window.innerWidth - e.x < 265 ? e.x - 235 : e.x;
|
|
6347
6349
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: k ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
6348
6350
|
/* @__PURE__ */ n.jsx(
|
|
6349
6351
|
"div",
|
|
@@ -6362,7 +6364,7 @@ const pl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
|
|
|
6362
6364
|
onMouseMove: x,
|
|
6363
6365
|
onWheel: v,
|
|
6364
6366
|
ref: f.body,
|
|
6365
|
-
style: { top: D + "px", left:
|
|
6367
|
+
style: { top: D + "px", left: b + "px" },
|
|
6366
6368
|
children: [
|
|
6367
6369
|
/* @__PURE__ */ n.jsx("div", { className: "b" }),
|
|
6368
6370
|
/* @__PURE__ */ n.jsxs("div", { className: "s", children: [
|
|
@@ -6478,17 +6480,17 @@ function Un({
|
|
|
6478
6480
|
};
|
|
6479
6481
|
if (!(l && d) && !u || !(l && d) && T)
|
|
6480
6482
|
return "";
|
|
6481
|
-
const
|
|
6482
|
-
|
|
6483
|
-
const
|
|
6483
|
+
const b = {};
|
|
6484
|
+
b.field = "group", C && (b.className = C);
|
|
6485
|
+
const E = (A) => {
|
|
6484
6486
|
ue.Blur(A), h && h({ value: A.target.textContent, name: a });
|
|
6485
6487
|
};
|
|
6486
|
-
let
|
|
6488
|
+
let R = (A, X) => {
|
|
6487
6489
|
x[X] = A.target.textContent, t !== void 0 && t({ value: x.join(","), name: a });
|
|
6488
6490
|
}, N = (A) => {
|
|
6489
6491
|
A.key === "Enter" && A.preventDefault();
|
|
6490
6492
|
};
|
|
6491
|
-
return /* @__PURE__ */ n.jsxs("dl", { ...
|
|
6493
|
+
return /* @__PURE__ */ n.jsxs("dl", { ...b, children: [
|
|
6492
6494
|
/* @__PURE__ */ n.jsxs("dt", { children: [
|
|
6493
6495
|
s,
|
|
6494
6496
|
/* @__PURE__ */ n.jsx("i", { onClick: k, children: /* @__PURE__ */ n.jsxs(
|
|
@@ -6512,14 +6514,14 @@ function Un({
|
|
|
6512
6514
|
/* @__PURE__ */ n.jsx(
|
|
6513
6515
|
"span",
|
|
6514
6516
|
{
|
|
6515
|
-
onInput: (le) =>
|
|
6517
|
+
onInput: (le) => R(le, X),
|
|
6516
6518
|
edit: "true",
|
|
6517
6519
|
name: a,
|
|
6518
6520
|
placeholder: r,
|
|
6519
6521
|
onPaste: D,
|
|
6520
6522
|
contentEditable: !0,
|
|
6521
6523
|
onKeyDown: N,
|
|
6522
|
-
onBlur:
|
|
6524
|
+
onBlur: E,
|
|
6523
6525
|
suppressContentEditableWarning: !0,
|
|
6524
6526
|
children: x[X]
|
|
6525
6527
|
}
|
|
@@ -6571,13 +6573,13 @@ function Yn({
|
|
|
6571
6573
|
options: C,
|
|
6572
6574
|
className: x
|
|
6573
6575
|
}) {
|
|
6574
|
-
const [v, k] = p.useState(vl(e)), w = (
|
|
6576
|
+
const [v, k] = p.useState(vl(e)), w = (b) => {
|
|
6575
6577
|
if (!(l && _) || !f)
|
|
6576
6578
|
return;
|
|
6577
|
-
let
|
|
6578
|
-
tt.Open(
|
|
6579
|
-
callback: (
|
|
6580
|
-
t && t({ value:
|
|
6579
|
+
let E = f.split(".");
|
|
6580
|
+
tt.Open(E[0], E[1], {
|
|
6581
|
+
callback: (R) => {
|
|
6582
|
+
t && t({ value: R, name: a }), k(R);
|
|
6581
6583
|
},
|
|
6582
6584
|
onValue: t,
|
|
6583
6585
|
options: C,
|
|
@@ -6615,9 +6617,9 @@ function Yn({
|
|
|
6615
6617
|
onClick: open,
|
|
6616
6618
|
edit: (l && _) + "",
|
|
6617
6619
|
"data-after": u,
|
|
6618
|
-
children: Object.keys(v).map((
|
|
6619
|
-
var
|
|
6620
|
-
return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (
|
|
6620
|
+
children: Object.keys(v).map((b) => {
|
|
6621
|
+
var E;
|
|
6622
|
+
return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (E = C[b]) == null ? void 0 : E.label }, b);
|
|
6621
6623
|
})
|
|
6622
6624
|
}
|
|
6623
6625
|
),
|