elcrm 0.9.122 → 0.9.124
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 +401 -398
- package/dist/index.umd.js +3 -3
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -71,23 +71,23 @@ function ar() {
|
|
|
71
71
|
K.unshift("Warning: " + j), Function.prototype.apply.call(console[d], console, K);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
var
|
|
74
|
+
var L = !1, $ = !1, R = !1, I = !1, E = !1, P;
|
|
75
75
|
P = Symbol.for("react.module.reference");
|
|
76
|
-
function
|
|
77
|
-
return !!(typeof d == "string" || typeof d == "function" || d === r || d === i ||
|
|
76
|
+
function B(d) {
|
|
77
|
+
return !!(typeof d == "string" || typeof d == "function" || d === r || d === i || E || d === s || d === _ || d === u || I || d === h || L || $ || R || typeof d == "object" && d !== null && (d.$$typeof === f || d.$$typeof === x || d.$$typeof === o || d.$$typeof === l || d.$$typeof === c || // This needs to include all possible module reference object
|
|
78
78
|
// types supported by any Flight configuration anywhere since
|
|
79
79
|
// we don't know which Flight build this will end up being used
|
|
80
80
|
// with.
|
|
81
81
|
d.$$typeof === P || d.getModuleId !== void 0));
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function b(d, j, D) {
|
|
84
84
|
var F = d.displayName;
|
|
85
85
|
if (F)
|
|
86
86
|
return F;
|
|
87
87
|
var Z = j.displayName || j.name || "";
|
|
88
88
|
return Z !== "" ? D + "(" + Z + ")" : D;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function S(d) {
|
|
91
91
|
return d.displayName || "Context";
|
|
92
92
|
}
|
|
93
93
|
function C(d) {
|
|
@@ -115,12 +115,12 @@ function ar() {
|
|
|
115
115
|
switch (d.$$typeof) {
|
|
116
116
|
case l:
|
|
117
117
|
var j = d;
|
|
118
|
-
return
|
|
118
|
+
return S(j) + ".Consumer";
|
|
119
119
|
case o:
|
|
120
120
|
var D = d;
|
|
121
|
-
return
|
|
121
|
+
return S(D._context) + ".Provider";
|
|
122
122
|
case c:
|
|
123
|
-
return
|
|
123
|
+
return b(d, d.render, "ForwardRef");
|
|
124
124
|
case x:
|
|
125
125
|
var F = d.displayName || null;
|
|
126
126
|
return F !== null ? F : C(d.type) || "Memo";
|
|
@@ -135,7 +135,7 @@ function ar() {
|
|
|
135
135
|
}
|
|
136
136
|
return null;
|
|
137
137
|
}
|
|
138
|
-
var
|
|
138
|
+
var T = Object.assign, W = 0, ee, oe, ve, Ie, Pe, Qe, Vt;
|
|
139
139
|
function Xt() {
|
|
140
140
|
}
|
|
141
141
|
Xt.__reactDisabledLog = !0;
|
|
@@ -171,25 +171,25 @@ function ar() {
|
|
|
171
171
|
writable: !0
|
|
172
172
|
};
|
|
173
173
|
Object.defineProperties(console, {
|
|
174
|
-
log:
|
|
174
|
+
log: T({}, d, {
|
|
175
175
|
value: ee
|
|
176
176
|
}),
|
|
177
|
-
info:
|
|
177
|
+
info: T({}, d, {
|
|
178
178
|
value: oe
|
|
179
179
|
}),
|
|
180
|
-
warn:
|
|
180
|
+
warn: T({}, d, {
|
|
181
181
|
value: ve
|
|
182
182
|
}),
|
|
183
|
-
error:
|
|
183
|
+
error: T({}, d, {
|
|
184
184
|
value: Ie
|
|
185
185
|
}),
|
|
186
|
-
group:
|
|
186
|
+
group: T({}, d, {
|
|
187
187
|
value: Pe
|
|
188
188
|
}),
|
|
189
|
-
groupCollapsed:
|
|
189
|
+
groupCollapsed: T({}, d, {
|
|
190
190
|
value: Qe
|
|
191
191
|
}),
|
|
192
|
-
groupEnd:
|
|
192
|
+
groupEnd: T({}, d, {
|
|
193
193
|
value: Vt
|
|
194
194
|
})
|
|
195
195
|
});
|
|
@@ -585,7 +585,7 @@ Check the top-level render call using <` + D + ">.");
|
|
|
585
585
|
var un = {};
|
|
586
586
|
function fn(d, j, D, F, Z, K) {
|
|
587
587
|
{
|
|
588
|
-
var G =
|
|
588
|
+
var G = B(d);
|
|
589
589
|
if (!G) {
|
|
590
590
|
var U = "";
|
|
591
591
|
(d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (U += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
@@ -757,7 +757,7 @@ De.success = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "
|
|
|
757
757
|
}
|
|
758
758
|
)
|
|
759
759
|
] });
|
|
760
|
-
const Ce = { Send: fr, Error: mr, Remark: gr, Success: hr, Copy: pr, Custom: ur },
|
|
760
|
+
const Ce = { Send: fr, Error: mr, Remark: gr, Success: hr, Copy: pr, Custom: ur }, w = {}, O = {}, Me = {}, Nn = {}, be = {}, me = {};
|
|
761
761
|
let ye = "", lt = "M06";
|
|
762
762
|
function xr(e) {
|
|
763
763
|
O.dynamicURL = e;
|
|
@@ -771,11 +771,11 @@ function Cr() {
|
|
|
771
771
|
function jr(e) {
|
|
772
772
|
if (localStorage.getItem("d")) {
|
|
773
773
|
let n = sessionStorage.getItem("f");
|
|
774
|
-
n ? (n = A.deCode(n), n || ae(),
|
|
774
|
+
n ? (n = A.deCode(n), n || ae(), w.id = n.id, w.tab = n.tab, w.page = n.page, w.module = n.module, w.time = n.time, w.payment = { active: !0 }, w.module_admin = n.module_admin) : (w.id = 0, w.tab = "", w.page = "Main", w.module = w.module || lt);
|
|
775
775
|
} else
|
|
776
776
|
["a", "b", "c", "d", "e", "m", "u", "s", "q", "p"].forEach(
|
|
777
777
|
(n) => localStorage.removeItem(n)
|
|
778
|
-
), ["f"].forEach((n) => sessionStorage.removeItem(n)),
|
|
778
|
+
), ["f"].forEach((n) => sessionStorage.removeItem(n)), w.id = 0, w.tab = "", w.page = "Auth", w.module = lt;
|
|
779
779
|
return e;
|
|
780
780
|
}
|
|
781
781
|
function ae() {
|
|
@@ -784,16 +784,16 @@ function ae() {
|
|
|
784
784
|
), ["f"].forEach((e) => sessionStorage.removeItem(e)), window.location.reload();
|
|
785
785
|
}
|
|
786
786
|
function kr(e) {
|
|
787
|
-
e = e.split("/"),
|
|
787
|
+
e = e.split("/"), w.page = "Main", w.module = e[0], w.tab = e[1], w.id = 0, sessionStorage.setItem(
|
|
788
788
|
"f",
|
|
789
789
|
A.enCode({
|
|
790
|
-
module:
|
|
791
|
-
page:
|
|
792
|
-
tab:
|
|
793
|
-
id:
|
|
790
|
+
module: w.module,
|
|
791
|
+
page: w.page,
|
|
792
|
+
tab: w.tab,
|
|
793
|
+
id: w.id,
|
|
794
794
|
time: (/* @__PURE__ */ new Date()).getTime()
|
|
795
795
|
})
|
|
796
|
-
), O.page(
|
|
796
|
+
), O.page(w.page);
|
|
797
797
|
}
|
|
798
798
|
function yr(e) {
|
|
799
799
|
return localStorage.setItem("d", e);
|
|
@@ -827,13 +827,13 @@ function Dr() {
|
|
|
827
827
|
return O.page = n, [e];
|
|
828
828
|
}
|
|
829
829
|
function Rr(e, t = !0) {
|
|
830
|
-
|
|
830
|
+
w.page = e, sessionStorage.setItem("f", A.enCode(w)), O.dynamicURL && O.dynamicURL(w), t && O.page(e);
|
|
831
831
|
}
|
|
832
832
|
function Mn() {
|
|
833
|
-
return
|
|
833
|
+
return w.page;
|
|
834
834
|
}
|
|
835
835
|
function Ir(e) {
|
|
836
|
-
return
|
|
836
|
+
return w.page === e;
|
|
837
837
|
}
|
|
838
838
|
function Tr(e) {
|
|
839
839
|
if (typeof e != "function") {
|
|
@@ -845,13 +845,13 @@ function Tr(e) {
|
|
|
845
845
|
O.module = e;
|
|
846
846
|
}
|
|
847
847
|
function Nr(e, t = !0) {
|
|
848
|
-
|
|
848
|
+
w.module = e, sessionStorage.setItem("f", A.enCode(w)), O.dynamicURL && O.dynamicURL(w), t && O.module(e);
|
|
849
849
|
}
|
|
850
850
|
function Ln() {
|
|
851
|
-
return
|
|
851
|
+
return w.module;
|
|
852
852
|
}
|
|
853
853
|
function Mr(e) {
|
|
854
|
-
return
|
|
854
|
+
return w.module === e;
|
|
855
855
|
}
|
|
856
856
|
function $n(e) {
|
|
857
857
|
if (typeof e != "function") {
|
|
@@ -861,17 +861,17 @@ function $n(e) {
|
|
|
861
861
|
O.tabs = e;
|
|
862
862
|
}
|
|
863
863
|
function Bn(e, t = !0) {
|
|
864
|
-
if (
|
|
864
|
+
if (w.tab = e, sessionStorage.setItem("f", A.enCode(w)), O.dynamicURL && O.dynamicURL(w), !!t)
|
|
865
865
|
if (O.tabs)
|
|
866
866
|
O.tabs(e);
|
|
867
867
|
else
|
|
868
868
|
throw new Error("useTabs not found");
|
|
869
869
|
}
|
|
870
870
|
function Le() {
|
|
871
|
-
return
|
|
871
|
+
return w.tab;
|
|
872
872
|
}
|
|
873
873
|
function Lr(e) {
|
|
874
|
-
return
|
|
874
|
+
return w.tab === e;
|
|
875
875
|
}
|
|
876
876
|
function $r(e) {
|
|
877
877
|
if (typeof e != "function") {
|
|
@@ -886,28 +886,28 @@ function Br(e) {
|
|
|
886
886
|
O.id = e;
|
|
887
887
|
}
|
|
888
888
|
function Fr(e, t = !0) {
|
|
889
|
-
|
|
889
|
+
w.id = e, sessionStorage.setItem("f", A.enCode(w)), O.dynamicURL && O.dynamicURL(w), t && O.id(e);
|
|
890
890
|
}
|
|
891
891
|
function Fn() {
|
|
892
|
-
return
|
|
892
|
+
return w.id;
|
|
893
893
|
}
|
|
894
894
|
function Pr(e) {
|
|
895
|
-
return Number(
|
|
895
|
+
return Number(w.id) === e;
|
|
896
896
|
}
|
|
897
897
|
function Or(e, t, n) {
|
|
898
|
-
|
|
898
|
+
w.module = e, w.id = n, w.tab = t, sessionStorage.setItem("f", A.enCode(w)), O.dynamicURL && O.dynamicURL(w), O.module(e), O.tabs(t);
|
|
899
899
|
}
|
|
900
900
|
function Ar(e, t, n, r) {
|
|
901
901
|
var s, i, o;
|
|
902
|
-
if (
|
|
903
|
-
if (
|
|
904
|
-
if (
|
|
902
|
+
if (w.page === e)
|
|
903
|
+
if (w.module === t) {
|
|
904
|
+
if (w.tab = n || "", w.id = r || 0, w.tab === "") return;
|
|
905
905
|
(s = O.tabs) == null || s.call(O, n);
|
|
906
906
|
} else
|
|
907
|
-
|
|
907
|
+
w.module = t, w.tab = n || "", w.id = r || 0, (i = O.module) == null || i.call(O, t);
|
|
908
908
|
else
|
|
909
|
-
|
|
910
|
-
sessionStorage.setItem("f", A.enCode(
|
|
909
|
+
w.module = t, w.tab = n || "", w.id = r || 0, w.page = e, (o = O.page) == null || o.call(O, e);
|
|
910
|
+
sessionStorage.setItem("f", A.enCode(w)), O.dynamicURL && O.dynamicURL(w);
|
|
911
911
|
}
|
|
912
912
|
function Ur(e) {
|
|
913
913
|
Me.data = e[0], delete Me.data.id, document.body.dataset.theme = Me.data.s15, localStorage.setItem("s", A.enCode(Me.data));
|
|
@@ -979,10 +979,10 @@ function Yr(e) {
|
|
|
979
979
|
return Nn.data[e];
|
|
980
980
|
}
|
|
981
981
|
function qr(e) {
|
|
982
|
-
|
|
982
|
+
w.payment = e;
|
|
983
983
|
}
|
|
984
984
|
function Jr() {
|
|
985
|
-
return
|
|
985
|
+
return w.payment;
|
|
986
986
|
}
|
|
987
987
|
function Gn(e) {
|
|
988
988
|
localStorage.setItem("u", A.enCode(e));
|
|
@@ -1021,20 +1021,20 @@ function es(e) {
|
|
|
1021
1021
|
try {
|
|
1022
1022
|
let s = A.deCode(r);
|
|
1023
1023
|
if (!s) return;
|
|
1024
|
-
|
|
1024
|
+
w[n] = { is: !0, time: s.time, data: s.data };
|
|
1025
1025
|
} catch {
|
|
1026
|
-
|
|
1026
|
+
w[n] = { is: !1, time: 0, data: {} };
|
|
1027
1027
|
}
|
|
1028
1028
|
else
|
|
1029
|
-
|
|
1029
|
+
w[n] = { is: !1, time: 0, data: {} };
|
|
1030
1030
|
};
|
|
1031
1031
|
e.forEach((n) => t(n));
|
|
1032
1032
|
}
|
|
1033
1033
|
function ts(e) {
|
|
1034
|
-
return
|
|
1034
|
+
return w[e] === void 0 ? (w[e] = { data: {}, time: 0 }, { data: {}, time: 0 }) : w[e];
|
|
1035
1035
|
}
|
|
1036
1036
|
function ns(e, t) {
|
|
1037
|
-
|
|
1037
|
+
w[e] = { data: t.data, time: t.time }, localStorage.setItem(e, A.enCode(w[e]));
|
|
1038
1038
|
}
|
|
1039
1039
|
function as(e, t) {
|
|
1040
1040
|
be[e] = t, localStorage.setItem("t", A.enCode(be));
|
|
@@ -1053,7 +1053,7 @@ function rs(e) {
|
|
|
1053
1053
|
return e ? be[e] : be;
|
|
1054
1054
|
}
|
|
1055
1055
|
function ss(e, t, n) {
|
|
1056
|
-
|
|
1056
|
+
w[e].time = n, w[e].data[t.item][t.name] = t.value, localStorage.setItem(e, A.enCode(w[e]));
|
|
1057
1057
|
}
|
|
1058
1058
|
function is() {
|
|
1059
1059
|
var n;
|
|
@@ -1349,16 +1349,16 @@ function $s(e) {
|
|
|
1349
1349
|
};
|
|
1350
1350
|
}
|
|
1351
1351
|
const Bs = (e) => {
|
|
1352
|
-
function t(N,
|
|
1353
|
-
var
|
|
1354
|
-
N = N ?? "",
|
|
1355
|
-
for (var
|
|
1356
|
-
|
|
1357
|
-
return
|
|
1352
|
+
function t(N, L) {
|
|
1353
|
+
var $, I, R;
|
|
1354
|
+
N = N ?? "", L = L ?? 1;
|
|
1355
|
+
for (var $ = [], R = 0, I = N.length; R < I; )
|
|
1356
|
+
$.push(N.slice(R, R += L));
|
|
1357
|
+
return $;
|
|
1358
1358
|
}
|
|
1359
|
-
function n(N,
|
|
1360
|
-
var
|
|
1361
|
-
return
|
|
1359
|
+
function n(N, L) {
|
|
1360
|
+
var $ = [2, 0, 1, 1, 1, 2];
|
|
1361
|
+
return L[N > 4 && N < 20 ? 2 : $[Math.min(N, 5)]];
|
|
1362
1362
|
}
|
|
1363
1363
|
var r = {
|
|
1364
1364
|
null: "ноль",
|
|
@@ -3477,7 +3477,7 @@ const Od = ({ children: e, ...t }) => /* @__PURE__ */ a.jsxs("div", { className:
|
|
|
3477
3477
|
key: s.id
|
|
3478
3478
|
},
|
|
3479
3479
|
s.label,
|
|
3480
|
-
s.badge
|
|
3480
|
+
s.badge ? /* @__PURE__ */ a.jsx("em", { children: s.badge }) : ""
|
|
3481
3481
|
)) });
|
|
3482
3482
|
}, Nl = ({
|
|
3483
3483
|
list: e = [],
|
|
@@ -4118,28 +4118,28 @@ function He({
|
|
|
4118
4118
|
isCopy: k = !0,
|
|
4119
4119
|
isReload: N = !1
|
|
4120
4120
|
}) {
|
|
4121
|
-
let
|
|
4121
|
+
let L = !!(l && (t === "" || t === void 0)), $ = (S) => {
|
|
4122
4122
|
n && n({
|
|
4123
|
-
value:
|
|
4123
|
+
value: S.target.textContent.trim(),
|
|
4124
4124
|
name: r,
|
|
4125
4125
|
reload: N
|
|
4126
4126
|
});
|
|
4127
|
-
},
|
|
4128
|
-
h &&
|
|
4129
|
-
},
|
|
4130
|
-
k && (
|
|
4127
|
+
}, R = (S) => {
|
|
4128
|
+
h && S.target.textContent.trim().length >= h && S.key !== "Backspace" && S.preventDefault(), S.key === "Enter" && S.preventDefault();
|
|
4129
|
+
}, I = (S) => {
|
|
4130
|
+
k && (S.preventDefault(), navigator.clipboard.writeText(S.target.textContent.trim()).then(
|
|
4131
4131
|
function() {
|
|
4132
4132
|
Ce.Copy("Данные в буфер обмене");
|
|
4133
4133
|
},
|
|
4134
4134
|
function(C) {
|
|
4135
4135
|
}
|
|
4136
4136
|
));
|
|
4137
|
-
},
|
|
4138
|
-
|
|
4137
|
+
}, E = (S) => {
|
|
4138
|
+
S.preventDefault(), navigator.clipboard.readText().then((C) => {
|
|
4139
4139
|
if (h) {
|
|
4140
|
-
let
|
|
4141
|
-
if (
|
|
4142
|
-
h -=
|
|
4140
|
+
let T = S.target.textContent.length;
|
|
4141
|
+
if (T >= h) return;
|
|
4142
|
+
h -= T, C = C.slice(0, h);
|
|
4143
4143
|
}
|
|
4144
4144
|
window.document.execCommand(
|
|
4145
4145
|
"insertText",
|
|
@@ -4149,13 +4149,13 @@ function He({
|
|
|
4149
4149
|
}).catch((C) => {
|
|
4150
4150
|
});
|
|
4151
4151
|
};
|
|
4152
|
-
if (!(c && _) && !f || !(c && _) &&
|
|
4152
|
+
if (!(c && _) && !f || !(c && _) && L) return "";
|
|
4153
4153
|
const P = {};
|
|
4154
4154
|
P.field = "input", y && (P.className = y);
|
|
4155
|
-
const
|
|
4156
|
-
s && (
|
|
4157
|
-
const
|
|
4158
|
-
z.Blur(
|
|
4155
|
+
const B = {};
|
|
4156
|
+
s && (B.placeholder = s), c && _ && (B.edit = "");
|
|
4157
|
+
const b = (S) => {
|
|
4158
|
+
z.Blur(S), p == null || p({ value: S.target.textContent.trim(), name: r });
|
|
4159
4159
|
};
|
|
4160
4160
|
return /* @__PURE__ */ a.jsxs("dl", { ...P, children: [
|
|
4161
4161
|
i ? /* @__PURE__ */ a.jsx("dt", { children: i }) : "",
|
|
@@ -4163,15 +4163,15 @@ function He({
|
|
|
4163
4163
|
/* @__PURE__ */ a.jsx(
|
|
4164
4164
|
"dd",
|
|
4165
4165
|
{
|
|
4166
|
-
onPaste:
|
|
4167
|
-
onInput:
|
|
4168
|
-
onBlur:
|
|
4169
|
-
onKeyDown:
|
|
4170
|
-
onContextMenu:
|
|
4166
|
+
onPaste: E,
|
|
4167
|
+
onInput: $,
|
|
4168
|
+
onBlur: b,
|
|
4169
|
+
onKeyDown: R,
|
|
4170
|
+
onContextMenu: I,
|
|
4171
4171
|
spellCheck: "true",
|
|
4172
4172
|
contentEditable: c && _ ? z.ContentEditable : "false",
|
|
4173
4173
|
suppressContentEditableWarning: !0,
|
|
4174
|
-
...
|
|
4174
|
+
...B,
|
|
4175
4175
|
children: t
|
|
4176
4176
|
}
|
|
4177
4177
|
),
|
|
@@ -4226,9 +4226,9 @@ function ra({
|
|
|
4226
4226
|
}, g = (k) => {
|
|
4227
4227
|
k.preventDefault(), navigator.clipboard.readText().then((N) => {
|
|
4228
4228
|
if (o) {
|
|
4229
|
-
let
|
|
4230
|
-
if (
|
|
4231
|
-
o -=
|
|
4229
|
+
let L = k.target.textContent.length;
|
|
4230
|
+
if (L >= o) return;
|
|
4231
|
+
o -= L, N = N.slice(0, o);
|
|
4232
4232
|
}
|
|
4233
4233
|
window.document.execCommand("insertText", !1, N);
|
|
4234
4234
|
}).catch((N) => {
|
|
@@ -4496,27 +4496,27 @@ function la({
|
|
|
4496
4496
|
className: p = ""
|
|
4497
4497
|
}) {
|
|
4498
4498
|
_ = _ !== void 0 ? _ : !0, u = u !== void 0 ? u : !0;
|
|
4499
|
-
let [y, k] = m.useState(t), N = (
|
|
4500
|
-
k(
|
|
4499
|
+
let [y, k] = m.useState(t), N = ($) => {
|
|
4500
|
+
k($), n == null || n({ value: $, name: r }), g == null || g({ value: $, name: r });
|
|
4501
4501
|
};
|
|
4502
|
-
const
|
|
4503
|
-
return
|
|
4502
|
+
const L = {};
|
|
4503
|
+
return L.field = "color", p && (L.className = p), /* @__PURE__ */ a.jsx(a.Fragment, { children: h === "icon" ? /* @__PURE__ */ a.jsx(
|
|
4504
4504
|
"i",
|
|
4505
4505
|
{
|
|
4506
4506
|
"data-icon": "F043"
|
|
4507
4507
|
}
|
|
4508
|
-
) : /* @__PURE__ */ a.jsxs("dl", {
|
|
4508
|
+
) : /* @__PURE__ */ a.jsxs("dl", { ...L, children: [
|
|
4509
4509
|
i && /* @__PURE__ */ a.jsx("dt", { children: i }),
|
|
4510
|
-
/* @__PURE__ */ a.jsx("dd", { children: c > 0 && Array.from(Array(c).keys()).map((
|
|
4510
|
+
/* @__PURE__ */ a.jsx("dd", { children: c > 0 && Array.from(Array(c).keys()).map(($) => /* @__PURE__ */ a.jsx(
|
|
4511
4511
|
"s",
|
|
4512
4512
|
{
|
|
4513
|
-
active: (Number(
|
|
4514
|
-
onClick: () => N(
|
|
4513
|
+
active: (Number($) === Number(y)) + "",
|
|
4514
|
+
onClick: () => N($),
|
|
4515
4515
|
style: {
|
|
4516
|
-
backgroundColor: `var(--color-${
|
|
4516
|
+
backgroundColor: `var(--color-${$})`
|
|
4517
4517
|
}
|
|
4518
4518
|
},
|
|
4519
|
-
|
|
4519
|
+
$
|
|
4520
4520
|
)) }),
|
|
4521
4521
|
o && /* @__PURE__ */ a.jsx("em", { children: o })
|
|
4522
4522
|
] }) });
|
|
@@ -4549,16 +4549,16 @@ function Zt({
|
|
|
4549
4549
|
m.useEffect(() => {
|
|
4550
4550
|
v(x === void 0 ? /* @__PURE__ */ new Date() : x);
|
|
4551
4551
|
}, [x]);
|
|
4552
|
-
let p = (
|
|
4553
|
-
v(
|
|
4554
|
-
}, y = (
|
|
4555
|
-
const
|
|
4552
|
+
let p = (L) => {
|
|
4553
|
+
v(L), _ == null || _({ value: L, name: u });
|
|
4554
|
+
}, y = (L) => {
|
|
4555
|
+
const $ = L.target.getBoundingClientRect(), R = $.left, I = $.bottom, E = $.top;
|
|
4556
4556
|
ge.setListener(
|
|
4557
4557
|
"form",
|
|
4558
4558
|
/* @__PURE__ */ a.jsx(
|
|
4559
4559
|
Pc,
|
|
4560
4560
|
{
|
|
4561
|
-
position: { x:
|
|
4561
|
+
position: { x: R, y: E, b: I },
|
|
4562
4562
|
onValue: p,
|
|
4563
4563
|
date: h,
|
|
4564
4564
|
max: o,
|
|
@@ -4607,8 +4607,8 @@ const Pc = ({ date: e, onValue: t, position: n, max: r, min: s, className: i })
|
|
|
4607
4607
|
d: parseInt(_.getDate()),
|
|
4608
4608
|
m: parseInt(_.getMonth()) + 1
|
|
4609
4609
|
}, [f, h] = m.useState({ y: x.y, m: x.m }), v = (C) => {
|
|
4610
|
-
let
|
|
4611
|
-
return
|
|
4610
|
+
let T = C.getDay();
|
|
4611
|
+
return T === 0 && (T = 7), T - 1;
|
|
4612
4612
|
}, g = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], p = f.m - 1, y = new Date(f.y, p), k = [];
|
|
4613
4613
|
for (let C = 0; C < v(y); C++)
|
|
4614
4614
|
k.push(0);
|
|
@@ -4616,30 +4616,30 @@ const Pc = ({ date: e, onValue: t, position: n, max: r, min: s, className: i })
|
|
|
4616
4616
|
k.push(y.getDate()), y.setDate(y.getDate() + 1);
|
|
4617
4617
|
let N = () => {
|
|
4618
4618
|
l(!1);
|
|
4619
|
+
}, L = () => {
|
|
4620
|
+
I(f.m + 1, f.y);
|
|
4619
4621
|
}, $ = () => {
|
|
4620
|
-
|
|
4621
|
-
},
|
|
4622
|
-
T(f.m - 1, f.y);
|
|
4623
|
-
}, I = (C) => {
|
|
4622
|
+
I(f.m - 1, f.y);
|
|
4623
|
+
}, R = (C) => {
|
|
4624
4624
|
t(
|
|
4625
4625
|
f.y + "-" + H.Number(2, f.m) + "-" + H.Number(2, C)
|
|
4626
4626
|
), N();
|
|
4627
|
-
},
|
|
4628
|
-
|
|
4627
|
+
}, I = (C, T) => {
|
|
4628
|
+
T = C > 12 ? T + 1 : C < 1 ? T - 1 : T, C = C > 12 ? 1 : C < 1 ? 12 : C, h({ y: T, m: C });
|
|
4629
4629
|
};
|
|
4630
|
-
const
|
|
4631
|
-
let
|
|
4630
|
+
const E = (C) => u.y === f.y && u.m === f.m && u.d === C ? { "data-active": "true" } : {}, P = (C) => x.y === f.y && x.m === f.m && x.d === C ? { "data-current": "true" } : {}, B = (C) => {
|
|
4631
|
+
let T = !0;
|
|
4632
4632
|
if (r) {
|
|
4633
4633
|
let W = r.getTime(), ee = new Date(f.y, f.m - 1, C).getTime();
|
|
4634
|
-
W < ee && (
|
|
4634
|
+
W < ee && (T = !1);
|
|
4635
4635
|
}
|
|
4636
4636
|
if (s) {
|
|
4637
4637
|
let W = s.getTime(), ee = new Date(f.y, f.m - 1, C).getTime();
|
|
4638
|
-
W > ee && (
|
|
4638
|
+
W > ee && (T = !1);
|
|
4639
4639
|
}
|
|
4640
|
-
return
|
|
4640
|
+
return T;
|
|
4641
4641
|
};
|
|
4642
|
-
let
|
|
4642
|
+
let b = window.innerHeight - n.y < 320 ? n.y - 312 : n.b, S = window.innerWidth - n.x < 265 ? n.x - 235 : n.x;
|
|
4643
4643
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: o ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
4644
4644
|
/* @__PURE__ */ a.jsx(
|
|
4645
4645
|
"div",
|
|
@@ -4656,10 +4656,10 @@ const Pc = ({ date: e, onValue: t, position: n, max: r, min: s, className: i })
|
|
|
4656
4656
|
fe.c,
|
|
4657
4657
|
i && i + "-backdrop"
|
|
4658
4658
|
].join(" "),
|
|
4659
|
-
style: { top:
|
|
4659
|
+
style: { top: b + "px", left: S + "px" },
|
|
4660
4660
|
children: [
|
|
4661
4661
|
/* @__PURE__ */ a.jsxs("s", { children: [
|
|
4662
|
-
/* @__PURE__ */ a.jsx("i", { onClick:
|
|
4662
|
+
/* @__PURE__ */ a.jsx("i", { onClick: $, children: /* @__PURE__ */ a.jsx(
|
|
4663
4663
|
"svg",
|
|
4664
4664
|
{
|
|
4665
4665
|
width: "16",
|
|
@@ -4675,7 +4675,7 @@ const Pc = ({ date: e, onValue: t, position: n, max: r, min: s, className: i })
|
|
|
4675
4675
|
" ",
|
|
4676
4676
|
f.y
|
|
4677
4677
|
] }),
|
|
4678
|
-
/* @__PURE__ */ a.jsx("i", { onClick:
|
|
4678
|
+
/* @__PURE__ */ a.jsx("i", { onClick: L, children: /* @__PURE__ */ a.jsx(
|
|
4679
4679
|
"svg",
|
|
4680
4680
|
{
|
|
4681
4681
|
width: "16",
|
|
@@ -4688,16 +4688,16 @@ const Pc = ({ date: e, onValue: t, position: n, max: r, min: s, className: i })
|
|
|
4688
4688
|
) })
|
|
4689
4689
|
] }),
|
|
4690
4690
|
/* @__PURE__ */ a.jsxs("div", { "grid-calendar": "", children: [
|
|
4691
|
-
g.map((C,
|
|
4692
|
-
k.map((C,
|
|
4691
|
+
g.map((C, T) => /* @__PURE__ */ a.jsx("p", { children: C }, "v" + T)),
|
|
4692
|
+
k.map((C, T) => /* @__PURE__ */ a.jsx("span", { children: C !== 0 && B(C) ? /* @__PURE__ */ a.jsx(
|
|
4693
4693
|
"b",
|
|
4694
4694
|
{
|
|
4695
|
-
...
|
|
4695
|
+
...E(C),
|
|
4696
4696
|
...P(C),
|
|
4697
|
-
onClick: () =>
|
|
4697
|
+
onClick: () => R(C),
|
|
4698
4698
|
children: C
|
|
4699
4699
|
}
|
|
4700
|
-
) : /* @__PURE__ */ a.jsx("p", { ...
|
|
4700
|
+
) : /* @__PURE__ */ a.jsx("p", { ...E(C), ...P(C), children: C !== 0 ? C : "" }) }, T))
|
|
4701
4701
|
] })
|
|
4702
4702
|
]
|
|
4703
4703
|
}
|
|
@@ -4722,12 +4722,12 @@ function zt({
|
|
|
4722
4722
|
options: v,
|
|
4723
4723
|
className: g
|
|
4724
4724
|
}) {
|
|
4725
|
-
let [p, y] = m.useState(e), k = (
|
|
4725
|
+
let [p, y] = m.useState(e), k = ($) => {
|
|
4726
4726
|
if (!(l && _) || !f) return;
|
|
4727
|
-
let
|
|
4728
|
-
_t.Open(
|
|
4729
|
-
callback: (
|
|
4730
|
-
t && t({ value:
|
|
4727
|
+
let R = f.split(".");
|
|
4728
|
+
_t.Open(R[0], R[1], {
|
|
4729
|
+
callback: (I) => {
|
|
4730
|
+
t && t({ value: I, name: n }), y(I);
|
|
4731
4731
|
},
|
|
4732
4732
|
onValue: t,
|
|
4733
4733
|
options: v,
|
|
@@ -4737,13 +4737,13 @@ function zt({
|
|
|
4737
4737
|
};
|
|
4738
4738
|
const N = {};
|
|
4739
4739
|
N.field = "input", g && (N.className = g);
|
|
4740
|
-
const
|
|
4741
|
-
return r && (
|
|
4740
|
+
const L = {};
|
|
4741
|
+
return r && (L.placeholder = r), o ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...N, children: [
|
|
4742
4742
|
s && /* @__PURE__ */ a.jsx("dt", { children: s }),
|
|
4743
4743
|
/* @__PURE__ */ a.jsx(
|
|
4744
4744
|
"dd",
|
|
4745
4745
|
{
|
|
4746
|
-
|
|
4746
|
+
...L,
|
|
4747
4747
|
onClick: k,
|
|
4748
4748
|
edit: (l && _) + "",
|
|
4749
4749
|
"data-after": u,
|
|
@@ -4774,45 +4774,48 @@ function Wt({
|
|
|
4774
4774
|
}) {
|
|
4775
4775
|
let y = !!(o && (e === "" || e === void 0));
|
|
4776
4776
|
e = H.isNumeric(e) ? Number(e) / x : 0;
|
|
4777
|
-
let k = (
|
|
4778
|
-
let
|
|
4779
|
-
|
|
4780
|
-
},
|
|
4777
|
+
let k = (b) => v === "multi" ? b.replace(/[^+\d.+-]/g, "") : b.replace(/[^+\d.]/g, ""), N = (b, S) => {
|
|
4778
|
+
let C = document.createRange(), T = window.getSelection();
|
|
4779
|
+
C.setStart(S.childNodes[0], b), C.collapse(!0), T.removeAllRanges(), T.addRange(C), S.focus();
|
|
4780
|
+
}, L = (b) => {
|
|
4781
4781
|
t == null || t({
|
|
4782
|
-
value: k(
|
|
4782
|
+
value: k(b.target.textContent) * x,
|
|
4783
4783
|
name: n
|
|
4784
|
-
}),
|
|
4785
|
-
},
|
|
4786
|
-
z.Blur(
|
|
4787
|
-
value: k(
|
|
4784
|
+
}), b.target.textContent = k(b.target.textContent), b.target.textContent.length > 0 && N(b.target.textContent.length, b.target);
|
|
4785
|
+
}, $ = (b) => {
|
|
4786
|
+
z.Blur(b), b.target.textContent === "" && (b.target.textContent = 0), g == null || g({ value: k(b.target.textContent) * x, name: n }), t == null || t({
|
|
4787
|
+
value: k(b.target.textContent) * x,
|
|
4788
4788
|
name: n
|
|
4789
|
-
}),
|
|
4790
|
-
},
|
|
4791
|
-
|
|
4792
|
-
},
|
|
4793
|
-
|
|
4794
|
-
},
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
}).catch((
|
|
4789
|
+
}), b.target.textContent = H.Money(b.target.textContent);
|
|
4790
|
+
}, R = (b) => {
|
|
4791
|
+
b.target.textContent = k(b.target.textContent);
|
|
4792
|
+
}, I = (b) => {
|
|
4793
|
+
b.key === "Enter" && b.preventDefault();
|
|
4794
|
+
}, E = (b) => {
|
|
4795
|
+
b.preventDefault(), navigator.clipboard.readText().then((S) => {
|
|
4796
|
+
S = S.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, S);
|
|
4797
|
+
}).catch((S) => {
|
|
4798
4798
|
});
|
|
4799
4799
|
};
|
|
4800
4800
|
if (!(l && c) && !u || !(l && c) && y) return "";
|
|
4801
4801
|
const P = {};
|
|
4802
|
-
|
|
4802
|
+
P.field = "input", p && (P.className = p);
|
|
4803
|
+
const B = {};
|
|
4804
|
+
return B.inputMode = "decimal", r && (B.placeholder = r), l && c && (B.edit = ""), /* @__PURE__ */ a.jsxs("dl", { ...P, children: [
|
|
4803
4805
|
s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "",
|
|
4804
4806
|
/* @__PURE__ */ a.jsx(
|
|
4805
4807
|
"dd",
|
|
4806
4808
|
{
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4809
|
+
...B,
|
|
4810
|
+
onInput: L,
|
|
4811
|
+
onPaste: E,
|
|
4812
|
+
onBlur: $,
|
|
4813
|
+
onKeyDown: I,
|
|
4814
|
+
onFocus: R,
|
|
4812
4815
|
contentEditable: l && c ? z.ContentEditable : "false",
|
|
4813
4816
|
suppressContentEditableWarning: !0,
|
|
4814
|
-
"
|
|
4815
|
-
children: H.Money(e)
|
|
4817
|
+
"data-after": _,
|
|
4818
|
+
children: !r || e ? H.Money(e) : ""
|
|
4816
4819
|
}
|
|
4817
4820
|
),
|
|
4818
4821
|
i ? /* @__PURE__ */ a.jsx("em", { children: i }) : ""
|
|
@@ -4961,52 +4964,52 @@ function da({
|
|
|
4961
4964
|
}) {
|
|
4962
4965
|
let [k, N] = m.useState(!1);
|
|
4963
4966
|
k = c ? !0 : k;
|
|
4964
|
-
let
|
|
4965
|
-
n == null || n({ value:
|
|
4966
|
-
},
|
|
4967
|
-
f &&
|
|
4968
|
-
},
|
|
4969
|
-
y && (
|
|
4967
|
+
let L = (b) => {
|
|
4968
|
+
n == null || n({ value: b.target.innerText, name: r });
|
|
4969
|
+
}, $ = (b) => {
|
|
4970
|
+
f && b.target.textContent.trim().length >= f && b.key !== "Backspace" && b.preventDefault(), b.key === "Enter" && b.preventDefault();
|
|
4971
|
+
}, R = (b) => {
|
|
4972
|
+
y && (b.preventDefault(), navigator.clipboard.writeText(b.target.textContent.trim()).then(
|
|
4970
4973
|
function() {
|
|
4971
4974
|
Ce.Copy("Данные в буфер обмене");
|
|
4972
4975
|
},
|
|
4973
|
-
function(
|
|
4976
|
+
function(S) {
|
|
4974
4977
|
}
|
|
4975
4978
|
));
|
|
4976
|
-
},
|
|
4977
|
-
|
|
4979
|
+
}, I = (b) => {
|
|
4980
|
+
b.preventDefault(), navigator.clipboard.readText().then((S) => {
|
|
4978
4981
|
if (f) {
|
|
4979
|
-
let C =
|
|
4982
|
+
let C = b.target.textContent.length;
|
|
4980
4983
|
if (C >= f) return;
|
|
4981
|
-
f -= C,
|
|
4984
|
+
f -= C, S = S.slice(0, f);
|
|
4982
4985
|
}
|
|
4983
4986
|
window.document.execCommand(
|
|
4984
4987
|
"insertText",
|
|
4985
4988
|
!1,
|
|
4986
|
-
|
|
4989
|
+
S.replace(/(\r\n|\n|\r)/gm, " ")
|
|
4987
4990
|
);
|
|
4988
|
-
}).catch((
|
|
4991
|
+
}).catch((S) => {
|
|
4989
4992
|
});
|
|
4990
4993
|
};
|
|
4991
4994
|
if (l) return /* @__PURE__ */ a.jsx(a.Fragment, {});
|
|
4992
4995
|
if (!(c && _) && !x) return "";
|
|
4993
|
-
const
|
|
4994
|
-
|
|
4996
|
+
const E = {};
|
|
4997
|
+
E.field = "notes", p && (E.className = p);
|
|
4995
4998
|
const P = {};
|
|
4996
4999
|
s && (P.placeholder = s), c && _ && (P.edit = ""), k && (P.open = "");
|
|
4997
|
-
const
|
|
4998
|
-
z.Blur(
|
|
5000
|
+
const B = (b) => {
|
|
5001
|
+
z.Blur(b), g == null || g({ value: b.target.textContent.trim(), name: r });
|
|
4999
5002
|
};
|
|
5000
|
-
return /* @__PURE__ */ a.jsxs("dl", { ...
|
|
5003
|
+
return /* @__PURE__ */ a.jsxs("dl", { ...E, children: [
|
|
5001
5004
|
i ? /* @__PURE__ */ a.jsx("dt", { children: i }) : "",
|
|
5002
5005
|
/* @__PURE__ */ a.jsx(
|
|
5003
5006
|
"dd",
|
|
5004
5007
|
{
|
|
5005
|
-
onPaste:
|
|
5006
|
-
onInput:
|
|
5007
|
-
onBlur:
|
|
5008
|
-
onKeyDown:
|
|
5009
|
-
onContextMenu:
|
|
5008
|
+
onPaste: I,
|
|
5009
|
+
onInput: L,
|
|
5010
|
+
onBlur: B,
|
|
5011
|
+
onKeyDown: $,
|
|
5012
|
+
onContextMenu: R,
|
|
5010
5013
|
contentEditable: c && _ ? z.ContentEditable : "false",
|
|
5011
5014
|
suppressContentEditableWarning: !0,
|
|
5012
5015
|
...P,
|
|
@@ -5037,43 +5040,43 @@ function Kt({
|
|
|
5037
5040
|
view: p
|
|
5038
5041
|
}) {
|
|
5039
5042
|
s = s !== void 0 ? s : !0, n = n !== void 0 ? n : !0, c = !!(c && (_ === "" || _ === void 0)) && !(s && n), u = u !== void 0 ? u : "", r = r !== void 0 ? r : 99;
|
|
5040
|
-
let k = !1, N = (
|
|
5041
|
-
e == null || e({ value:
|
|
5042
|
-
},
|
|
5043
|
-
if (!(k &&
|
|
5044
|
-
if (
|
|
5045
|
-
|
|
5043
|
+
let k = !1, N = (B) => {
|
|
5044
|
+
e == null || e({ value: B.target.textContent, name: h });
|
|
5045
|
+
}, L = (B) => {
|
|
5046
|
+
if (!(k && B.which === 86)) {
|
|
5047
|
+
if (B.which === 17 || B.which === 91) return k = !0;
|
|
5048
|
+
B.key !== "Backspace" && (B.target.textContent.length === r && B.preventDefault(), B.key === "Enter" && B.preventDefault(), isNaN(B.key) && B.preventDefault());
|
|
5046
5049
|
}
|
|
5047
|
-
},
|
|
5048
|
-
if (
|
|
5049
|
-
},
|
|
5050
|
-
|
|
5051
|
-
if (
|
|
5052
|
-
let
|
|
5053
|
-
if (
|
|
5054
|
-
f -=
|
|
5050
|
+
}, $ = (B) => {
|
|
5051
|
+
if (B.which === 17 || B.which === 91) return k = !1;
|
|
5052
|
+
}, R = (B) => {
|
|
5053
|
+
B.preventDefault(), navigator.clipboard.readText().then((b) => {
|
|
5054
|
+
if (b = b.replace(/(?!^\+|\d)./g, ""), f) {
|
|
5055
|
+
let S = B.target.textContent.length;
|
|
5056
|
+
if (S >= f) return;
|
|
5057
|
+
f -= S, b = b.slice(0, f);
|
|
5055
5058
|
}
|
|
5056
|
-
window.document.execCommand("insertText", !1, "" +
|
|
5057
|
-
}).catch((
|
|
5059
|
+
window.document.execCommand("insertText", !1, "" + b);
|
|
5060
|
+
}).catch((b) => {
|
|
5058
5061
|
});
|
|
5059
5062
|
};
|
|
5060
|
-
const
|
|
5061
|
-
z.Blur(
|
|
5062
|
-
},
|
|
5063
|
-
|
|
5063
|
+
const I = (B) => {
|
|
5064
|
+
z.Blur(B), t == null || t({ value: B.target.textContent, name: h });
|
|
5065
|
+
}, E = {};
|
|
5066
|
+
E.field = "input", x && (E.className = x);
|
|
5064
5067
|
let P = {};
|
|
5065
|
-
return s && n ? (P.edit = "true", P.contentEditable = z.ContentEditable) : P.contentEditable = "false", P.inputMode = "decimal", u && (P.placeholder = u), c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...
|
|
5068
|
+
return s && n ? (P.edit = "true", P.contentEditable = z.ContentEditable) : P.contentEditable = "false", P.inputMode = "decimal", u && (P.placeholder = u), c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...E, children: [
|
|
5066
5069
|
i && /* @__PURE__ */ a.jsx("dt", { children: i }),
|
|
5067
5070
|
g,
|
|
5068
5071
|
/* @__PURE__ */ a.jsx(
|
|
5069
5072
|
"dd",
|
|
5070
5073
|
{
|
|
5071
5074
|
...P,
|
|
5072
|
-
onPaste:
|
|
5075
|
+
onPaste: R,
|
|
5073
5076
|
onInput: N,
|
|
5074
|
-
onBlur:
|
|
5075
|
-
onKeyDown:
|
|
5076
|
-
onKeyUp:
|
|
5077
|
+
onBlur: I,
|
|
5078
|
+
onKeyDown: L,
|
|
5079
|
+
onKeyUp: $,
|
|
5077
5080
|
suppressContentEditableWarning: !0,
|
|
5078
5081
|
children: _
|
|
5079
5082
|
}
|
|
@@ -5101,20 +5104,20 @@ function _a({
|
|
|
5101
5104
|
after: g = ""
|
|
5102
5105
|
}) {
|
|
5103
5106
|
const [p, y] = m.useState(f);
|
|
5104
|
-
let k = (
|
|
5107
|
+
let k = (E) => {
|
|
5105
5108
|
t && t({
|
|
5106
|
-
value:
|
|
5109
|
+
value: E.target.textContent,
|
|
5107
5110
|
name: r,
|
|
5108
5111
|
reload: u
|
|
5109
5112
|
});
|
|
5110
|
-
}, N = (
|
|
5111
|
-
|
|
5112
|
-
},
|
|
5113
|
-
|
|
5113
|
+
}, N = (E) => {
|
|
5114
|
+
E.key === "Enter" && E.preventDefault();
|
|
5115
|
+
}, L = (E) => {
|
|
5116
|
+
E.preventDefault(), navigator.clipboard.readText().then((P) => {
|
|
5114
5117
|
if (h) {
|
|
5115
|
-
let
|
|
5116
|
-
if (
|
|
5117
|
-
h -=
|
|
5118
|
+
let B = E.target.textContent.length;
|
|
5119
|
+
if (B >= h) return;
|
|
5120
|
+
h -= B, P = P.slice(0, h);
|
|
5118
5121
|
}
|
|
5119
5122
|
window.document.execCommand(
|
|
5120
5123
|
"insertText",
|
|
@@ -5123,23 +5126,23 @@ function _a({
|
|
|
5123
5126
|
);
|
|
5124
5127
|
}).catch((P) => {
|
|
5125
5128
|
});
|
|
5126
|
-
},
|
|
5127
|
-
z.Blur(
|
|
5129
|
+
}, $ = (E) => {
|
|
5130
|
+
z.Blur(E), n == null || n({ value: E.target.textContent.trim(), name: r });
|
|
5128
5131
|
};
|
|
5132
|
+
const R = {};
|
|
5133
|
+
R.field = "password", p && (R.show = ""), i && (R.className = i);
|
|
5129
5134
|
const I = {};
|
|
5130
|
-
I.
|
|
5131
|
-
const T = {};
|
|
5132
|
-
return s && (T.placeholder = s), x ? "" : /* @__PURE__ */ a.jsxs("dl", { ...I, children: [
|
|
5135
|
+
return s && (I.placeholder = s), x ? "" : /* @__PURE__ */ a.jsxs("dl", { ...R, children: [
|
|
5133
5136
|
o ? /* @__PURE__ */ a.jsx("dt", { children: o }) : "",
|
|
5134
5137
|
/* @__PURE__ */ a.jsx(
|
|
5135
5138
|
"dd",
|
|
5136
5139
|
{
|
|
5137
|
-
onPaste:
|
|
5140
|
+
onPaste: L,
|
|
5138
5141
|
onInput: k,
|
|
5139
5142
|
onKeyDown: N,
|
|
5140
|
-
onBlur:
|
|
5143
|
+
onBlur: $,
|
|
5141
5144
|
contentEditable: c && _ ? z.ContentEditable : "false",
|
|
5142
|
-
...
|
|
5145
|
+
...I,
|
|
5143
5146
|
suppressContentEditableWarning: !0,
|
|
5144
5147
|
children: e
|
|
5145
5148
|
}
|
|
@@ -6548,66 +6551,66 @@ function Ht({
|
|
|
6548
6551
|
className: h = ""
|
|
6549
6552
|
}) {
|
|
6550
6553
|
c = c !== void 0 ? c : !0, _ = _ !== void 0 ? _ : !0, l = !!(l && (e === "" || e === void 0)) && !(c && _), m.useRef(null);
|
|
6551
|
-
let g = "+_(___) ___-__-__", p = !0, y = 0, k = (
|
|
6552
|
-
let
|
|
6553
|
-
|
|
6554
|
-
}, N = (
|
|
6555
|
-
|
|
6554
|
+
let g = "+_(___) ___-__-__", p = !0, y = 0, k = (S, C) => {
|
|
6555
|
+
let T = document.createRange(), W = window.getSelection();
|
|
6556
|
+
T.setStart(C.childNodes[0], S), T.collapse(!0), W.removeAllRanges(), W.addRange(T), C.focus();
|
|
6557
|
+
}, N = (S) => {
|
|
6558
|
+
S.preventDefault(), navigator.clipboard.readText().then((C) => {
|
|
6556
6559
|
window.document.execCommand("insertText", !1, C);
|
|
6557
6560
|
}).catch((C) => {
|
|
6558
6561
|
});
|
|
6559
|
-
},
|
|
6560
|
-
let C = 0,
|
|
6562
|
+
}, L = (S) => {
|
|
6563
|
+
let C = 0, T = "", W = S.replace(/\D/g, "");
|
|
6561
6564
|
W === "" && (p = !0);
|
|
6562
6565
|
let ee = W.split(""), oe = "";
|
|
6563
6566
|
ee.forEach((Pe) => {
|
|
6564
|
-
p && (oe += Pe, bt[oe] !== void 0 && p ? (p = !1, g = bt[oe].mask.replace(new RegExp("[0-9]", "g"), "_"),
|
|
6567
|
+
p && (oe += Pe, bt[oe] !== void 0 && p ? (p = !1, g = bt[oe].mask.replace(new RegExp("[0-9]", "g"), "_"), T = bt[oe].code) : (p && (y = ("" + oe).length, g = `+${oe}_(___) ___-__-__`.replace(
|
|
6565
6568
|
new RegExp("[0-9]", "g"),
|
|
6566
6569
|
"_"
|
|
6567
|
-
),
|
|
6570
|
+
), T = ""), y > ("" + oe).length && (p = !0, g = `+${oe}_(___) ___-__-__`.replace(
|
|
6568
6571
|
new RegExp("[0-9]", "g"),
|
|
6569
6572
|
"_"
|
|
6570
|
-
),
|
|
6573
|
+
), T = "")));
|
|
6571
6574
|
});
|
|
6572
6575
|
let ve = g.replace(/\D/g, "");
|
|
6573
6576
|
return ve.length >= W.length && (W = ve), { q: g.replace(/[_\d]/g, function() {
|
|
6574
6577
|
return W.charAt(C++) || "_";
|
|
6575
|
-
}), i: C, v: W, f:
|
|
6576
|
-
},
|
|
6577
|
-
|
|
6578
|
+
}), i: C, v: W, f: T };
|
|
6579
|
+
}, $ = (S) => {
|
|
6580
|
+
S.preventDefault(), navigator.clipboard.writeText(S.target.textContent.replace(/\D/g, "")).then(
|
|
6578
6581
|
function() {
|
|
6579
6582
|
Ce.Copy("Данные в буфер обмене");
|
|
6580
6583
|
},
|
|
6581
6584
|
function(C) {
|
|
6582
6585
|
}
|
|
6583
6586
|
);
|
|
6584
|
-
},
|
|
6585
|
-
let C =
|
|
6586
|
-
|
|
6587
|
-
},
|
|
6588
|
-
|
|
6587
|
+
}, R = L(e), I = (S) => {
|
|
6588
|
+
let C = L(S.target.textContent);
|
|
6589
|
+
S.target.textContent = C.q, C.i = C.q.lastIndexOf(C.v.substr(-1)), C.i < C.q.length && C.q !== g ? C.i++ : C.i = C.q.indexOf("_"), k(C.i, S.target), t && t({ value: C.q.replace(/\D/g, ""), name: r });
|
|
6590
|
+
}, E = (S) => {
|
|
6591
|
+
S.key === "Enter" && S.preventDefault();
|
|
6589
6592
|
};
|
|
6590
|
-
const P = (
|
|
6591
|
-
z.Blur(
|
|
6592
|
-
value:
|
|
6593
|
+
const P = (S) => {
|
|
6594
|
+
z.Blur(S), n && n({
|
|
6595
|
+
value: S.target.textContent.replace(/\D/g, ""),
|
|
6593
6596
|
name: r
|
|
6594
6597
|
});
|
|
6595
|
-
},
|
|
6596
|
-
|
|
6597
|
-
let
|
|
6598
|
-
return c && _ ? (
|
|
6598
|
+
}, B = {};
|
|
6599
|
+
B.field = "input", h && (B.className = h);
|
|
6600
|
+
let b = {};
|
|
6601
|
+
return c && _ ? (b.edit = "true", b.contentEditable = z.ContentEditable) : b.contentEditable = "false", s && (b.placeholder = s), u && (b.after = u), l ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...B, children: [
|
|
6599
6602
|
i && /* @__PURE__ */ a.jsx("dt", { children: i }),
|
|
6600
6603
|
/* @__PURE__ */ a.jsx(
|
|
6601
6604
|
"dd",
|
|
6602
6605
|
{
|
|
6603
|
-
...
|
|
6606
|
+
...b,
|
|
6604
6607
|
onPaste: N,
|
|
6605
|
-
onInput:
|
|
6606
|
-
onKeyDown:
|
|
6607
|
-
onContextMenu:
|
|
6608
|
+
onInput: I,
|
|
6609
|
+
onKeyDown: E,
|
|
6610
|
+
onContextMenu: $,
|
|
6608
6611
|
onBlur: P,
|
|
6609
6612
|
suppressContentEditableWarning: !0,
|
|
6610
|
-
children:
|
|
6613
|
+
children: R.q
|
|
6611
6614
|
}
|
|
6612
6615
|
),
|
|
6613
6616
|
o && /* @__PURE__ */ a.jsx("em", { children: o })
|
|
@@ -6670,23 +6673,23 @@ function Yt({
|
|
|
6670
6673
|
order: h,
|
|
6671
6674
|
isReload: v = !1
|
|
6672
6675
|
}) {
|
|
6673
|
-
var P,
|
|
6676
|
+
var P, B;
|
|
6674
6677
|
const g = m.useRef(), [p, y] = m.useState(i), [k, N] = m.useState(l);
|
|
6675
6678
|
m.useEffect(() => {
|
|
6676
6679
|
y(i), N(l);
|
|
6677
6680
|
}, [i, l]), s = !!(s && (i === "" || ((P = k[i]) == null ? void 0 : P.n) === void 0)) && !(n && r);
|
|
6678
|
-
let
|
|
6679
|
-
y(
|
|
6680
|
-
},
|
|
6681
|
+
let $ = (b) => {
|
|
6682
|
+
y(b), o && o({ value: b, name: u, reload: v });
|
|
6683
|
+
}, R = (b) => {
|
|
6681
6684
|
if (Object.keys(l).length === 0 || !(n && r)) return;
|
|
6682
|
-
const
|
|
6685
|
+
const S = b.target.getBoundingClientRect();
|
|
6683
6686
|
ge.setListener(
|
|
6684
6687
|
"form",
|
|
6685
6688
|
/* @__PURE__ */ a.jsx(
|
|
6686
6689
|
Ac,
|
|
6687
6690
|
{
|
|
6688
|
-
parent:
|
|
6689
|
-
onValue:
|
|
6691
|
+
parent: S,
|
|
6692
|
+
onValue: $,
|
|
6690
6693
|
view: f,
|
|
6691
6694
|
className: _,
|
|
6692
6695
|
options: k,
|
|
@@ -6695,10 +6698,10 @@ function Yt({
|
|
|
6695
6698
|
(/* @__PURE__ */ new Date()).getTime()
|
|
6696
6699
|
)
|
|
6697
6700
|
);
|
|
6698
|
-
},
|
|
6699
|
-
return c && (
|
|
6701
|
+
}, I = { field: "select", className: _ }, E = { onClick: R };
|
|
6702
|
+
return c && (E.placeholder = c), x && (E.after = x), n && r && (E.edit = ""), s ? "" : /* @__PURE__ */ a.jsxs("dl", { ...I, children: [
|
|
6700
6703
|
e && /* @__PURE__ */ a.jsx("dt", { children: e }),
|
|
6701
|
-
/* @__PURE__ */ a.jsx("dd", { ...
|
|
6704
|
+
/* @__PURE__ */ a.jsx("dd", { ...E, ref: g, children: (B = k[p]) == null ? void 0 : B.n }),
|
|
6702
6705
|
Object.keys(k).length !== 0 && /* @__PURE__ */ a.jsx("s", { children: /* @__PURE__ */ a.jsx(
|
|
6703
6706
|
"svg",
|
|
6704
6707
|
{
|
|
@@ -7037,25 +7040,25 @@ function fa({
|
|
|
7037
7040
|
}) {
|
|
7038
7041
|
let p = !!(o && (e === "" || e === void 0));
|
|
7039
7042
|
if (!(l && c) && !u || !(l && c) && p) return "";
|
|
7040
|
-
let y = (
|
|
7041
|
-
t && t({ value:
|
|
7042
|
-
}, k = (
|
|
7043
|
-
v && v({ value:
|
|
7044
|
-
}, N = (
|
|
7045
|
-
|
|
7043
|
+
let y = (R) => {
|
|
7044
|
+
t && t({ value: R.target.innerText, name: n });
|
|
7045
|
+
}, k = (R) => {
|
|
7046
|
+
v && v({ value: R.target.innerText, name: n });
|
|
7047
|
+
}, N = (R) => {
|
|
7048
|
+
R.preventDefault(), navigator.clipboard.readText().then((I) => {
|
|
7046
7049
|
if (h) {
|
|
7047
|
-
let
|
|
7048
|
-
if (
|
|
7049
|
-
h -=
|
|
7050
|
+
let E = R.target.textContent.length;
|
|
7051
|
+
if (E >= h) return;
|
|
7052
|
+
h -= E, I = I.slice(0, h);
|
|
7050
7053
|
}
|
|
7051
|
-
window.document.execCommand("insertText", !1,
|
|
7052
|
-
}).catch((
|
|
7054
|
+
window.document.execCommand("insertText", !1, I);
|
|
7055
|
+
}).catch((I) => {
|
|
7053
7056
|
});
|
|
7054
7057
|
};
|
|
7058
|
+
const L = {};
|
|
7059
|
+
L.field = "text", g && (L.className = g);
|
|
7055
7060
|
const $ = {};
|
|
7056
|
-
$.
|
|
7057
|
-
const B = {};
|
|
7058
|
-
return r && (B.placeholder = r), /* @__PURE__ */ a.jsxs("dl", { ...$, children: [
|
|
7061
|
+
return r && ($.placeholder = r), /* @__PURE__ */ a.jsxs("dl", { ...L, children: [
|
|
7059
7062
|
s && /* @__PURE__ */ a.jsx("dt", { children: s }),
|
|
7060
7063
|
/* @__PURE__ */ a.jsx(
|
|
7061
7064
|
"dd",
|
|
@@ -7064,7 +7067,7 @@ function fa({
|
|
|
7064
7067
|
onBlur: k,
|
|
7065
7068
|
onInput: y,
|
|
7066
7069
|
contentEditable: l && c ? z.ContentEditable : "false",
|
|
7067
|
-
|
|
7070
|
+
...$,
|
|
7068
7071
|
suppressContentEditableWarning: !0,
|
|
7069
7072
|
children: e
|
|
7070
7073
|
}
|
|
@@ -7091,18 +7094,18 @@ function ma({
|
|
|
7091
7094
|
}) {
|
|
7092
7095
|
let g = !!(o && (e === "" || e === void 0)), p = H.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), y = m.useRef(null);
|
|
7093
7096
|
if (!(l && c) && !u || !(l && c) && g) return "";
|
|
7094
|
-
let k = (
|
|
7095
|
-
y.current.textContent =
|
|
7096
|
-
}, N = (
|
|
7097
|
-
h && h({ value:
|
|
7098
|
-
},
|
|
7099
|
-
const
|
|
7097
|
+
let k = (I) => {
|
|
7098
|
+
y.current.textContent = I, t && t({ value: I, name: n });
|
|
7099
|
+
}, N = (I) => {
|
|
7100
|
+
h && h({ value: I, name: n });
|
|
7101
|
+
}, L = (I) => {
|
|
7102
|
+
const E = I.target.getBoundingClientRect(), P = E.left, B = E.top;
|
|
7100
7103
|
ge.setListener(
|
|
7101
7104
|
"form",
|
|
7102
7105
|
/* @__PURE__ */ a.jsx(
|
|
7103
7106
|
Zc,
|
|
7104
7107
|
{
|
|
7105
|
-
positions: { x: P, y:
|
|
7108
|
+
positions: { x: P, y: B },
|
|
7106
7109
|
onSave: N,
|
|
7107
7110
|
onValue: k,
|
|
7108
7111
|
date: p
|
|
@@ -7111,18 +7114,18 @@ function ma({
|
|
|
7111
7114
|
)
|
|
7112
7115
|
);
|
|
7113
7116
|
};
|
|
7114
|
-
const
|
|
7115
|
-
|
|
7116
|
-
const
|
|
7117
|
-
return r && (
|
|
7117
|
+
const $ = {};
|
|
7118
|
+
$.field = "input", v && ($.className = v);
|
|
7119
|
+
const R = {};
|
|
7120
|
+
return r && (R.placeholder = r), /* @__PURE__ */ a.jsx(a.Fragment, { children: x === "icon" ? /* @__PURE__ */ a.jsx(
|
|
7118
7121
|
"i",
|
|
7119
7122
|
{
|
|
7120
7123
|
"data-icon": "F043",
|
|
7121
|
-
onClick:
|
|
7124
|
+
onClick: L
|
|
7122
7125
|
}
|
|
7123
|
-
) : /* @__PURE__ */ a.jsxs("dl", {
|
|
7126
|
+
) : /* @__PURE__ */ a.jsxs("dl", { ...$, children: [
|
|
7124
7127
|
s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "",
|
|
7125
|
-
/* @__PURE__ */ a.jsx("dd", { onClick:
|
|
7128
|
+
/* @__PURE__ */ a.jsx("dd", { onClick: L, ref: y, ...R, children: p }),
|
|
7126
7129
|
i ? /* @__PURE__ */ a.jsx("em", { children: i }) : ""
|
|
7127
7130
|
] }) });
|
|
7128
7131
|
}
|
|
@@ -7144,60 +7147,60 @@ const Zc = ({ positions: e, onSave: t, onValue: n, date: r }) => {
|
|
|
7144
7147
|
_ = !0;
|
|
7145
7148
|
}, v = () => {
|
|
7146
7149
|
_ = !1, o = o === "hour" ? "time" : "hour", f.body.current.setAttribute("active", o);
|
|
7147
|
-
}, g = (
|
|
7150
|
+
}, g = (R) => {
|
|
7148
7151
|
if (_) {
|
|
7149
|
-
let
|
|
7150
|
-
|
|
7151
|
-
|
|
7152
|
+
let E = Math.atan2(
|
|
7153
|
+
R.pageX - (l.x + 78),
|
|
7154
|
+
R.pageY - (l.y + 78)
|
|
7152
7155
|
) * (180 / Math.PI) * -1 + 180;
|
|
7153
|
-
f[o].current.style.transform = "rotate(" +
|
|
7156
|
+
f[o].current.style.transform = "rotate(" + E + "deg)", o === "hour" ? (i = {
|
|
7154
7157
|
...i,
|
|
7155
|
-
h: H.Number(2, parseInt(String(
|
|
7158
|
+
h: H.Number(2, parseInt(String(E / 15), 10))
|
|
7156
7159
|
}, f.hourText.current.textContent = i.h) : (i = {
|
|
7157
7160
|
...i,
|
|
7158
|
-
m: H.Number(2, parseInt(String(
|
|
7161
|
+
m: H.Number(2, parseInt(String(E / 6), 10))
|
|
7159
7162
|
}, f.timeText.current.textContent = i.m), n(i.h + ":" + i.m);
|
|
7160
7163
|
}
|
|
7161
|
-
}, p = (
|
|
7164
|
+
}, p = (R) => {
|
|
7162
7165
|
if (o === "hour")
|
|
7163
|
-
if (
|
|
7164
|
-
u +=
|
|
7165
|
-
let
|
|
7166
|
-
if (x !==
|
|
7167
|
-
x =
|
|
7168
|
-
let
|
|
7169
|
-
|
|
7166
|
+
if (R.deltaY > 0) {
|
|
7167
|
+
u += R.deltaY;
|
|
7168
|
+
let I = parseInt(String(u / 50));
|
|
7169
|
+
if (x !== I) {
|
|
7170
|
+
x = I;
|
|
7171
|
+
let E = parseInt(i.h, 10) + 1;
|
|
7172
|
+
E = E > 23 ? 0 : E, i = { ...i, h: H.Number(2, E) }, f.hourText.current.textContent = i.h, f[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
|
|
7170
7173
|
}
|
|
7171
7174
|
} else {
|
|
7172
|
-
u -=
|
|
7173
|
-
let
|
|
7174
|
-
if (x !==
|
|
7175
|
-
x =
|
|
7176
|
-
let
|
|
7177
|
-
|
|
7175
|
+
u -= R.deltaY;
|
|
7176
|
+
let I = parseInt(String(u / 50));
|
|
7177
|
+
if (x !== I) {
|
|
7178
|
+
x = I;
|
|
7179
|
+
let E = parseInt(i.h, 10) - 1;
|
|
7180
|
+
E = E < 0 ? 23 : E, i = { ...i, h: H.Number(2, E) }, f.hourText.current.textContent = i.h, f[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
|
|
7178
7181
|
}
|
|
7179
7182
|
}
|
|
7180
|
-
else if (
|
|
7181
|
-
u +=
|
|
7182
|
-
let
|
|
7183
|
-
if (x !==
|
|
7184
|
-
x =
|
|
7185
|
-
let
|
|
7186
|
-
|
|
7183
|
+
else if (R.deltaY > 0) {
|
|
7184
|
+
u += R.deltaY;
|
|
7185
|
+
let I = parseInt(String(u / 50));
|
|
7186
|
+
if (x !== I) {
|
|
7187
|
+
x = I;
|
|
7188
|
+
let E = parseInt(i.m, 10) + 1;
|
|
7189
|
+
E = E > 59 ? 0 : E, i = { ...i, m: H.Number(2, E) }, f.timeText.current.textContent = i.m, f[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
|
|
7187
7190
|
}
|
|
7188
7191
|
} else {
|
|
7189
|
-
u -=
|
|
7190
|
-
let
|
|
7191
|
-
if (x !==
|
|
7192
|
-
x =
|
|
7193
|
-
let
|
|
7194
|
-
|
|
7192
|
+
u -= R.deltaY;
|
|
7193
|
+
let I = parseInt(String(u / 50));
|
|
7194
|
+
if (x !== I) {
|
|
7195
|
+
x = I;
|
|
7196
|
+
let E = parseInt(i.m, 10) - 1;
|
|
7197
|
+
E = E < 0 ? 59 : E, i = { ...i, m: H.Number(2, E) }, f.timeText.current.textContent = i.m, f[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
|
|
7195
7198
|
}
|
|
7196
7199
|
}
|
|
7197
7200
|
n(i.h + ":" + i.m);
|
|
7198
7201
|
}, [y, k] = m.useState(!0), N = () => {
|
|
7199
7202
|
k(!1), t(i.h + ":" + i.m);
|
|
7200
|
-
},
|
|
7203
|
+
}, L = window.innerHeight - e.y + 33 < 320 ? e.y - 312 : e.y + 33, $ = window.innerWidth - e.x < 265 ? e.x - 235 : e.x;
|
|
7201
7204
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: y ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
7202
7205
|
/* @__PURE__ */ a.jsx(
|
|
7203
7206
|
"div",
|
|
@@ -7216,7 +7219,7 @@ const Zc = ({ positions: e, onSave: t, onValue: n, date: r }) => {
|
|
|
7216
7219
|
onMouseMove: g,
|
|
7217
7220
|
onWheel: p,
|
|
7218
7221
|
ref: f.body,
|
|
7219
|
-
style: { top:
|
|
7222
|
+
style: { top: L + "px", left: $ + "px" },
|
|
7220
7223
|
children: [
|
|
7221
7224
|
/* @__PURE__ */ a.jsx("div", { className: "b" }),
|
|
7222
7225
|
/* @__PURE__ */ a.jsxs("div", { className: "s", children: [
|
|
@@ -7349,22 +7352,22 @@ function pa({
|
|
|
7349
7352
|
if (f !== 0 && p.length >= f)
|
|
7350
7353
|
return Ce.Error("Слишком много");
|
|
7351
7354
|
y([...p, ""]);
|
|
7352
|
-
}, N = (
|
|
7353
|
-
p.splice(
|
|
7354
|
-
},
|
|
7355
|
+
}, N = (b) => {
|
|
7356
|
+
p.splice(b, 1), p.length === 0 && p.push(""), y([...p]), h !== void 0 && h({ value: p.join(g), name: n });
|
|
7357
|
+
}, L = !!(o && (e === "" || e === void 0)), $ = (b) => {
|
|
7355
7358
|
};
|
|
7356
|
-
if (!(l && c) && !u || !(l && c) &&
|
|
7357
|
-
const
|
|
7358
|
-
|
|
7359
|
-
const
|
|
7360
|
-
z.Blur(
|
|
7359
|
+
if (!(l && c) && !u || !(l && c) && L) return "";
|
|
7360
|
+
const R = {};
|
|
7361
|
+
R.field = "group", v && (R.className = v);
|
|
7362
|
+
const I = (b, S) => {
|
|
7363
|
+
z.Blur(b), p[S] = b.target.textContent, h && h({ value: p.join(g), name: n });
|
|
7361
7364
|
};
|
|
7362
|
-
let
|
|
7363
|
-
p[
|
|
7364
|
-
}, P = (
|
|
7365
|
-
|
|
7365
|
+
let E = (b, S) => {
|
|
7366
|
+
p[S] = b.target.textContent, t && t({ value: p.join(g), name: n });
|
|
7367
|
+
}, P = (b) => {
|
|
7368
|
+
b.key === "Enter" && b.preventDefault();
|
|
7366
7369
|
};
|
|
7367
|
-
const
|
|
7370
|
+
const B = ({ data: b }) => f !== 0 && b.length >= f ? "" : /* @__PURE__ */ a.jsx("i", { onClick: k, children: /* @__PURE__ */ a.jsxs(
|
|
7368
7371
|
"svg",
|
|
7369
7372
|
{
|
|
7370
7373
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7380,32 +7383,32 @@ function pa({
|
|
|
7380
7383
|
]
|
|
7381
7384
|
}
|
|
7382
7385
|
) });
|
|
7383
|
-
return /* @__PURE__ */ a.jsxs("dl", { ...
|
|
7386
|
+
return /* @__PURE__ */ a.jsxs("dl", { ...R, children: [
|
|
7384
7387
|
/* @__PURE__ */ a.jsxs("dt", { children: [
|
|
7385
7388
|
s,
|
|
7386
|
-
/* @__PURE__ */ a.jsx(
|
|
7389
|
+
/* @__PURE__ */ a.jsx(B, { data: p })
|
|
7387
7390
|
] }),
|
|
7388
|
-
/* @__PURE__ */ a.jsx("dd", { children: p.map((
|
|
7391
|
+
/* @__PURE__ */ a.jsx("dd", { children: p.map((b, S) => /* @__PURE__ */ a.jsxs("li", { className: "field_group_item", children: [
|
|
7389
7392
|
/* @__PURE__ */ a.jsx(
|
|
7390
7393
|
"span",
|
|
7391
7394
|
{
|
|
7392
|
-
onInput: (C) =>
|
|
7395
|
+
onInput: (C) => E(C, S),
|
|
7393
7396
|
edit: "true",
|
|
7394
7397
|
name: n,
|
|
7395
7398
|
placeholder: r,
|
|
7396
|
-
onPaste:
|
|
7399
|
+
onPaste: $,
|
|
7397
7400
|
contentEditable: l && c ? z.ContentEditable : "false",
|
|
7398
7401
|
onKeyDown: P,
|
|
7399
|
-
onBlur: (C) =>
|
|
7402
|
+
onBlur: (C) => I(C, S),
|
|
7400
7403
|
suppressContentEditableWarning: !0,
|
|
7401
|
-
children: p[
|
|
7404
|
+
children: p[S]
|
|
7402
7405
|
}
|
|
7403
7406
|
),
|
|
7404
7407
|
/* @__PURE__ */ a.jsx(
|
|
7405
7408
|
"i",
|
|
7406
7409
|
{
|
|
7407
7410
|
onClick: () => {
|
|
7408
|
-
N(
|
|
7411
|
+
N(S);
|
|
7409
7412
|
},
|
|
7410
7413
|
children: /* @__PURE__ */ a.jsxs(
|
|
7411
7414
|
"svg",
|
|
@@ -7425,7 +7428,7 @@ function pa({
|
|
|
7425
7428
|
)
|
|
7426
7429
|
}
|
|
7427
7430
|
)
|
|
7428
|
-
] },
|
|
7431
|
+
] }, S)) }),
|
|
7429
7432
|
i && /* @__PURE__ */ a.jsx("em", { children: i })
|
|
7430
7433
|
] });
|
|
7431
7434
|
}
|
|
@@ -7448,12 +7451,12 @@ function xa({
|
|
|
7448
7451
|
options: v,
|
|
7449
7452
|
className: g
|
|
7450
7453
|
}) {
|
|
7451
|
-
const [p, y] = m.useState(Wc(e)), k = (
|
|
7454
|
+
const [p, y] = m.useState(Wc(e)), k = ($) => {
|
|
7452
7455
|
if (!(l && _) || !f) return;
|
|
7453
|
-
let
|
|
7454
|
-
_t.Open(
|
|
7455
|
-
callback: (
|
|
7456
|
-
t && t({ value:
|
|
7456
|
+
let R = f.split(".");
|
|
7457
|
+
_t.Open(R[0], R[1], {
|
|
7458
|
+
callback: (I) => {
|
|
7459
|
+
t && t({ value: I, name: n }), y(I);
|
|
7457
7460
|
},
|
|
7458
7461
|
onValue: t,
|
|
7459
7462
|
options: v,
|
|
@@ -7462,8 +7465,8 @@ function xa({
|
|
|
7462
7465
|
});
|
|
7463
7466
|
}, N = {};
|
|
7464
7467
|
N.field = "group", g && (N.className = g);
|
|
7465
|
-
const
|
|
7466
|
-
return r && (
|
|
7468
|
+
const L = {};
|
|
7469
|
+
return r && (L.placeholder = r), o ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...N, children: [
|
|
7467
7470
|
/* @__PURE__ */ a.jsxs("dt", { children: [
|
|
7468
7471
|
s,
|
|
7469
7472
|
/* @__PURE__ */ a.jsx("i", { onClick: k, children: /* @__PURE__ */ a.jsxs(
|
|
@@ -7487,13 +7490,13 @@ function xa({
|
|
|
7487
7490
|
/* @__PURE__ */ a.jsx(
|
|
7488
7491
|
"dd",
|
|
7489
7492
|
{
|
|
7490
|
-
|
|
7493
|
+
...L,
|
|
7491
7494
|
onClick: open,
|
|
7492
7495
|
edit: (l && _) + "",
|
|
7493
7496
|
"data-after": u,
|
|
7494
|
-
children: Object.keys(p).map((
|
|
7495
|
-
var
|
|
7496
|
-
return /* @__PURE__ */ a.jsx("div", { className: "field_group_item", children: (
|
|
7497
|
+
children: Object.keys(p).map(($) => {
|
|
7498
|
+
var R;
|
|
7499
|
+
return /* @__PURE__ */ a.jsx("div", { className: "field_group_item", children: (R = v[$]) == null ? void 0 : R.label }, $);
|
|
7497
7500
|
})
|
|
7498
7501
|
}
|
|
7499
7502
|
),
|
|
@@ -7520,29 +7523,29 @@ function Sn({
|
|
|
7520
7523
|
className: p = ""
|
|
7521
7524
|
}) {
|
|
7522
7525
|
const y = m.useId();
|
|
7523
|
-
let k = !!(l && (e === "" || e === void 0)), [N,
|
|
7526
|
+
let k = !!(l && (e === "" || e === void 0)), [N, L] = m.useState(i);
|
|
7524
7527
|
if (!(c && _) && !x || !(c && _) && k) return "";
|
|
7525
|
-
const
|
|
7528
|
+
const $ = async (I) => {
|
|
7526
7529
|
if (f) {
|
|
7527
|
-
let
|
|
7528
|
-
t == null || t({ name: n, value:
|
|
7530
|
+
let E = Hc(I, f, e || "default");
|
|
7531
|
+
t == null || t({ name: n, value: E }), L(URL.createObjectURL(E));
|
|
7529
7532
|
} else
|
|
7530
|
-
t == null || t({ name: n, value:
|
|
7531
|
-
},
|
|
7532
|
-
return
|
|
7533
|
+
t == null || t({ name: n, value: I }), L(URL.createObjectURL(I));
|
|
7534
|
+
}, R = {};
|
|
7535
|
+
return R.field = "file", p && (R.className = p), /* @__PURE__ */ a.jsxs("dl", { ...R, children: [
|
|
7533
7536
|
s && /* @__PURE__ */ a.jsxs("dt", { children: [
|
|
7534
7537
|
s,
|
|
7535
7538
|
" "
|
|
7536
7539
|
] }),
|
|
7537
|
-
/* @__PURE__ */ a.jsxs(Kc, { onFiles:
|
|
7540
|
+
/* @__PURE__ */ a.jsxs(Kc, { onFiles: $, children: [
|
|
7538
7541
|
/* @__PURE__ */ a.jsx(
|
|
7539
7542
|
"input",
|
|
7540
7543
|
{
|
|
7541
7544
|
id: y,
|
|
7542
7545
|
type: "file",
|
|
7543
7546
|
multiple: !0,
|
|
7544
|
-
onChange: (
|
|
7545
|
-
|
|
7547
|
+
onChange: (I) => {
|
|
7548
|
+
I.target.files[0] && $(I.target.files[0]);
|
|
7546
7549
|
}
|
|
7547
7550
|
}
|
|
7548
7551
|
),
|
|
@@ -7687,16 +7690,16 @@ function Qc({
|
|
|
7687
7690
|
className: v = ""
|
|
7688
7691
|
}) {
|
|
7689
7692
|
_ = _ !== void 0 ? _ : !0, u = u !== void 0 ? u : !0, c = !!(c && (e === "" || e === void 0)) && !(_ && u), m.useRef(null);
|
|
7690
|
-
let p = s, y = !0, k = 0, N = (C,
|
|
7693
|
+
let p = s, y = !0, k = 0, N = (C, T) => {
|
|
7691
7694
|
let W = document.createRange(), ee = window.getSelection();
|
|
7692
|
-
W.setStart(
|
|
7693
|
-
},
|
|
7694
|
-
C.preventDefault(), navigator.clipboard.readText().then((
|
|
7695
|
-
window.document.execCommand("insertText", !1,
|
|
7696
|
-
}).catch((
|
|
7695
|
+
W.setStart(T.childNodes[0], C), W.collapse(!0), ee.removeAllRanges(), ee.addRange(W), T.focus();
|
|
7696
|
+
}, L = (C) => {
|
|
7697
|
+
C.preventDefault(), navigator.clipboard.readText().then((T) => {
|
|
7698
|
+
window.document.execCommand("insertText", !1, T);
|
|
7699
|
+
}).catch((T) => {
|
|
7697
7700
|
});
|
|
7698
|
-
},
|
|
7699
|
-
let
|
|
7701
|
+
}, $ = (C) => {
|
|
7702
|
+
let T = 0, W = "", ee = C.replace(/\D/g, "");
|
|
7700
7703
|
ee === "" && (y = !0);
|
|
7701
7704
|
let oe = ee.split(""), ve = "";
|
|
7702
7705
|
oe.forEach((Qe) => {
|
|
@@ -7704,43 +7707,43 @@ function Qc({
|
|
|
7704
7707
|
});
|
|
7705
7708
|
let Ie = p.replace(/\D/g, "");
|
|
7706
7709
|
return Ie.length >= ee.length && (ee = Ie), { q: p.replace(/[_\d]/g, function() {
|
|
7707
|
-
return ee.charAt(
|
|
7708
|
-
}), i:
|
|
7709
|
-
},
|
|
7710
|
+
return ee.charAt(T++) || "_";
|
|
7711
|
+
}), i: T, v: ee, f: W };
|
|
7712
|
+
}, R = (C) => {
|
|
7710
7713
|
C.preventDefault(), navigator.clipboard.writeText(C.target.textContent.replace(/\D/g, "")).then(
|
|
7711
7714
|
function() {
|
|
7712
7715
|
Ce.Copy("Данные в буфер обмене");
|
|
7713
7716
|
},
|
|
7714
|
-
function(
|
|
7717
|
+
function(T) {
|
|
7715
7718
|
}
|
|
7716
7719
|
);
|
|
7717
|
-
},
|
|
7718
|
-
let
|
|
7719
|
-
C.target.textContent =
|
|
7720
|
+
}, I = $(e), E = (C) => {
|
|
7721
|
+
let T = $(C.target.textContent);
|
|
7722
|
+
C.target.textContent = T.q, T.i = T.q.lastIndexOf(T.v.substr(-1)), T.i < T.q.length && T.q !== p ? T.i++ : T.i = T.q.indexOf("_"), N(T.i, C.target), t && t({ value: T.q.replace(/\D/g, ""), name: r });
|
|
7720
7723
|
}, P = (C) => {
|
|
7721
7724
|
C.key === "Enter" && C.preventDefault();
|
|
7722
7725
|
};
|
|
7723
|
-
const
|
|
7726
|
+
const B = (C) => {
|
|
7724
7727
|
z.Blur(C), n && n({
|
|
7725
7728
|
value: C.target.textContent.replace(/\D/g, ""),
|
|
7726
7729
|
name: r
|
|
7727
7730
|
});
|
|
7728
|
-
},
|
|
7729
|
-
|
|
7730
|
-
let
|
|
7731
|
-
return _ && u ? (
|
|
7731
|
+
}, b = {};
|
|
7732
|
+
b.field = "input", v && (b.className = v);
|
|
7733
|
+
let S = {};
|
|
7734
|
+
return _ && u ? (S.edit = "true", S.contentEditable = z.ContentEditable) : S.contentEditable = "false", i && (S.placeholder = i), x && (S.after = x), c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...b, children: [
|
|
7732
7735
|
o && /* @__PURE__ */ a.jsx("dt", { children: o }),
|
|
7733
7736
|
/* @__PURE__ */ a.jsx(
|
|
7734
7737
|
"dd",
|
|
7735
7738
|
{
|
|
7736
|
-
...
|
|
7737
|
-
onPaste:
|
|
7738
|
-
onInput:
|
|
7739
|
+
...S,
|
|
7740
|
+
onPaste: L,
|
|
7741
|
+
onInput: E,
|
|
7739
7742
|
onKeyDown: P,
|
|
7740
|
-
onContextMenu:
|
|
7741
|
-
onBlur:
|
|
7743
|
+
onContextMenu: R,
|
|
7744
|
+
onBlur: B,
|
|
7742
7745
|
suppressContentEditableWarning: !0,
|
|
7743
|
-
children:
|
|
7746
|
+
children: I.q
|
|
7744
7747
|
}
|
|
7745
7748
|
),
|
|
7746
7749
|
l && /* @__PURE__ */ a.jsx("em", { children: l })
|