elcrm 0.9.150 → 0.9.151
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 +340 -338
- package/dist/index.umd.js +5 -5
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -24,12 +24,12 @@ function qa() {
|
|
|
24
24
|
if (ln) return $e;
|
|
25
25
|
ln = 1;
|
|
26
26
|
var e = h, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
27
|
-
function o(
|
|
27
|
+
function o(c, l, _) {
|
|
28
28
|
var u, x = {}, f = null, m = null;
|
|
29
|
-
_ !== void 0 && (f = "" + _),
|
|
30
|
-
for (u in
|
|
31
|
-
if (
|
|
32
|
-
return { $$typeof: t, type:
|
|
29
|
+
_ !== void 0 && (f = "" + _), l.key !== void 0 && (f = "" + l.key), l.ref !== void 0 && (m = l.ref);
|
|
30
|
+
for (u in l) r.call(l, u) && !i.hasOwnProperty(u) && (x[u] = l[u]);
|
|
31
|
+
if (c && c.defaultProps) for (u in l = c.defaultProps, l) x[u] === void 0 && (x[u] = l[u]);
|
|
32
|
+
return { $$typeof: t, type: c, key: f, ref: m, props: x, _owner: s.current };
|
|
33
33
|
}
|
|
34
34
|
return $e.Fragment = n, $e.jsx = o, $e.jsxs = o, $e;
|
|
35
35
|
}
|
|
@@ -46,7 +46,7 @@ var Fe = {};
|
|
|
46
46
|
var cn;
|
|
47
47
|
function Ja() {
|
|
48
48
|
return cn || (cn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
49
|
-
var e = h, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"),
|
|
49
|
+
var e = h, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), v = Symbol.iterator, g = "@@iterator";
|
|
50
50
|
function p(d) {
|
|
51
51
|
if (d === null || typeof d != "object")
|
|
52
52
|
return null;
|
|
@@ -74,7 +74,7 @@ function Ja() {
|
|
|
74
74
|
var N = !1, T = !1, E = !1, M = !1, R = !1, Z;
|
|
75
75
|
Z = Symbol.for("react.module.reference");
|
|
76
76
|
function w(d) {
|
|
77
|
-
return !!(typeof d == "string" || typeof d == "function" || d === r || d === i || R || d === s || d === _ || d === u || M || d === m || N || T || E || typeof d == "object" && d !== null && (d.$$typeof === f || d.$$typeof === x || d.$$typeof === o || d.$$typeof ===
|
|
77
|
+
return !!(typeof d == "string" || typeof d == "function" || d === r || d === i || R || d === s || d === _ || d === u || M || d === m || N || T || E || typeof d == "object" && d !== null && (d.$$typeof === f || d.$$typeof === x || d.$$typeof === o || d.$$typeof === c || d.$$typeof === l || // 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.
|
|
@@ -113,13 +113,13 @@ function Ja() {
|
|
|
113
113
|
}
|
|
114
114
|
if (typeof d == "object")
|
|
115
115
|
switch (d.$$typeof) {
|
|
116
|
-
case
|
|
116
|
+
case c:
|
|
117
117
|
var k = d;
|
|
118
118
|
return b(k) + ".Consumer";
|
|
119
119
|
case o:
|
|
120
120
|
var I = d;
|
|
121
121
|
return b(I._context) + ".Provider";
|
|
122
|
-
case
|
|
122
|
+
case l:
|
|
123
123
|
return B(d, d.render, "ForwardRef");
|
|
124
124
|
case x:
|
|
125
125
|
var F = d.displayName || null;
|
|
@@ -309,7 +309,7 @@ function Ja() {
|
|
|
309
309
|
}
|
|
310
310
|
if (typeof d == "object")
|
|
311
311
|
switch (d.$$typeof) {
|
|
312
|
-
case
|
|
312
|
+
case l:
|
|
313
313
|
return Ca(d.render);
|
|
314
314
|
case x:
|
|
315
315
|
return Je(d.type, k, I);
|
|
@@ -553,7 +553,7 @@ Check the top-level render call using <` + I + ">.");
|
|
|
553
553
|
var I;
|
|
554
554
|
if (typeof k == "function")
|
|
555
555
|
I = k.propTypes;
|
|
556
|
-
else if (typeof k == "object" && (k.$$typeof ===
|
|
556
|
+
else if (typeof k == "object" && (k.$$typeof === l || // Note: Memo only checks outer props here.
|
|
557
557
|
// Inner props are checked in the reconciler.
|
|
558
558
|
k.$$typeof === x))
|
|
559
559
|
I = k.propTypes;
|
|
@@ -925,9 +925,9 @@ function Pr() {
|
|
|
925
925
|
let t = localStorage.getItem("m"), n = A.deCode(t);
|
|
926
926
|
n || ie();
|
|
927
927
|
const r = (i, o) => {
|
|
928
|
-
let
|
|
929
|
-
for (;
|
|
930
|
-
return
|
|
928
|
+
let c = o + "";
|
|
929
|
+
for (; c.length < i; ) c = "0" + c;
|
|
930
|
+
return c;
|
|
931
931
|
};
|
|
932
932
|
return n.data.split(",").map((i) => "M" + r(2, i));
|
|
933
933
|
} else
|
|
@@ -1183,14 +1183,14 @@ function ps({
|
|
|
1183
1183
|
const o = {
|
|
1184
1184
|
[s ? "backgroundImage" : "WebkitMaskImage"]: `url(${An}${e}.svg)`,
|
|
1185
1185
|
"--size": t
|
|
1186
|
-
},
|
|
1187
|
-
return i && (
|
|
1186
|
+
}, c = {};
|
|
1187
|
+
return i && (c.className = i), n && (c.onClick = n, c.pointer = ""), r && (c.hover = r), /* @__PURE__ */ a.jsx(
|
|
1188
1188
|
"i",
|
|
1189
1189
|
{
|
|
1190
1190
|
role: "icon",
|
|
1191
1191
|
style: o,
|
|
1192
1192
|
className: [hs.i, `icon-${e}`].join(" "),
|
|
1193
|
-
...
|
|
1193
|
+
...c
|
|
1194
1194
|
}
|
|
1195
1195
|
);
|
|
1196
1196
|
}
|
|
@@ -1226,8 +1226,8 @@ function Ke(e, t = {}, n = Ne ? V.getSSID() : V.getAUTH()) {
|
|
|
1226
1226
|
return new Promise((r) => {
|
|
1227
1227
|
const s = new Pn();
|
|
1228
1228
|
s.onmessage = (i) => {
|
|
1229
|
-
var o,
|
|
1230
|
-
if (Ne && ((o = i.data) != null && o.ssid) && V.setSSID(i.data.ssid), ((
|
|
1229
|
+
var o, c, l;
|
|
1230
|
+
if (Ne && ((o = i.data) != null && o.ssid) && V.setSSID(i.data.ssid), ((c = i.data) == null ? void 0 : c.status) === "logaut" || ((l = i.data) == null ? void 0 : l.status) === "logout")
|
|
1231
1231
|
return V.Logaut();
|
|
1232
1232
|
r(i.data), s.terminate();
|
|
1233
1233
|
}, s.postMessage({
|
|
@@ -1266,10 +1266,10 @@ function Ss(e, t = {}, n = Ne ? V.getSSID() : V.getAUTH()) {
|
|
|
1266
1266
|
}
|
|
1267
1267
|
function Es(e, t = {}, n = Ne ? V.getSSID() : V.getAUTH()) {
|
|
1268
1268
|
const [r, s] = h.useState({ status: "load" }), i = async (o) => {
|
|
1269
|
-
let
|
|
1270
|
-
if (
|
|
1269
|
+
let c = await Ke(e, o, n);
|
|
1270
|
+
if (c.status === "logaut" || c.status === "logout")
|
|
1271
1271
|
return V.Logaut();
|
|
1272
|
-
s(
|
|
1272
|
+
s(c);
|
|
1273
1273
|
};
|
|
1274
1274
|
return h.useEffect(() => {
|
|
1275
1275
|
i(t);
|
|
@@ -1433,17 +1433,17 @@ const Ls = (e) => {
|
|
|
1433
1433
|
u3: ["тысяча", "тысячи", "тысяч"],
|
|
1434
1434
|
u2: ["миллион", "миллиона", "миллионов"],
|
|
1435
1435
|
u1: ["миллиард", "миллиарда", "миллиардов"]
|
|
1436
|
-
}, s, i, o,
|
|
1437
|
-
u = parseFloat(e).toFixed(2).split("."),
|
|
1438
|
-
var v = 12 -
|
|
1436
|
+
}, s, i, o, c, p, l, _, g, u, x, f, m;
|
|
1437
|
+
u = parseFloat(e).toFixed(2).split("."), l = u[0], c = u[1];
|
|
1438
|
+
var v = 12 - l.length;
|
|
1439
1439
|
if (v < 0)
|
|
1440
1440
|
return !1;
|
|
1441
1441
|
for (var g = []; v--; )
|
|
1442
1442
|
g.push("0");
|
|
1443
|
-
|
|
1443
|
+
l = g.join("") + l;
|
|
1444
1444
|
var p = [];
|
|
1445
|
-
if (
|
|
1446
|
-
x = t(
|
|
1445
|
+
if (l > 0) {
|
|
1446
|
+
x = t(l, 3);
|
|
1447
1447
|
for (var y = -1; y < x.length; y++)
|
|
1448
1448
|
if (_ = x[y], _ > 0 && (f = t(_, 1), s = parseInt(f[0]), i = parseInt(f[1]), o = parseInt(f[2]), p.push(r.a100[s - 1]), m = y + 1 == 3 ? "a2" : "a1", i > 1 ? p.push(
|
|
1449
1449
|
r.a20[i - 2] + (o > 0 ? " " + r[m][o - 1] : "")
|
|
@@ -1455,7 +1455,7 @@ const Ls = (e) => {
|
|
|
1455
1455
|
}
|
|
1456
1456
|
} else
|
|
1457
1457
|
p.push(r.null);
|
|
1458
|
-
return p.push(n(
|
|
1458
|
+
return p.push(n(l, r.ur)), p.push(c + " " + n(c, r.uc)), p.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
|
|
1459
1459
|
};
|
|
1460
1460
|
function Bs(e) {
|
|
1461
1461
|
let t = -1, n = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
|
|
@@ -1571,76 +1571,76 @@ function Fs(e, t, n, r) {
|
|
|
1571
1571
|
},
|
|
1572
1572
|
prepareRules: function() {
|
|
1573
1573
|
for (var o in this.rules)
|
|
1574
|
-
for (var
|
|
1575
|
-
for (var
|
|
1576
|
-
this.rules[o][
|
|
1577
|
-
this.rules[o][
|
|
1574
|
+
for (var c in this.rules[o])
|
|
1575
|
+
for (var l = 0, _ = this.rules[o][c].length; l < _; l++)
|
|
1576
|
+
this.rules[o][c][l] = this.rule(
|
|
1577
|
+
this.rules[o][c][l]
|
|
1578
1578
|
);
|
|
1579
1579
|
},
|
|
1580
1580
|
rule: function(o) {
|
|
1581
|
-
var
|
|
1581
|
+
var c = o.match(
|
|
1582
1582
|
/^\s*([fm]?)\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s*$/
|
|
1583
1583
|
);
|
|
1584
|
-
return
|
|
1585
|
-
sex:
|
|
1586
|
-
test:
|
|
1587
|
-
mods: [
|
|
1584
|
+
return c ? {
|
|
1585
|
+
sex: c[1],
|
|
1586
|
+
test: c[2].split(","),
|
|
1587
|
+
mods: [c[3], c[4], c[5], c[6], c[7]]
|
|
1588
1588
|
} : !1;
|
|
1589
1589
|
},
|
|
1590
1590
|
// склоняем слово по указанному набору правил и исключений
|
|
1591
|
-
word: function(o,
|
|
1591
|
+
word: function(o, c, l, _) {
|
|
1592
1592
|
if (_ === this.gcaseNom) return o;
|
|
1593
1593
|
if (o.match(/[-]/)) {
|
|
1594
1594
|
for (var u = o.split("-"), x = 0, f = u.length; x < f; x++)
|
|
1595
|
-
u[x] = this.word(u[x],
|
|
1595
|
+
u[x] = this.word(u[x], c, l, _);
|
|
1596
1596
|
return u.join("-");
|
|
1597
1597
|
}
|
|
1598
1598
|
if (o.match(/^[А-ЯЁ]\.?$/i)) return o;
|
|
1599
1599
|
this.init();
|
|
1600
|
-
var m = this.rules[
|
|
1600
|
+
var m = this.rules[l];
|
|
1601
1601
|
let v;
|
|
1602
|
-
return m.exceptions && (v = this.pick(o,
|
|
1602
|
+
return m.exceptions && (v = this.pick(o, c, _, m.exceptions, !0), v) ? v : (v = this.pick(o, c, _, m.suffixes, !1), v || o);
|
|
1603
1603
|
},
|
|
1604
1604
|
// выбираем из списка правил первое подходящее и применяем
|
|
1605
|
-
pick: function(o,
|
|
1605
|
+
pick: function(o, c, l, _, u) {
|
|
1606
1606
|
let x = o.toLowerCase();
|
|
1607
1607
|
for (var f = 0, m = _.length; f < m; f++)
|
|
1608
|
-
if (this.ruleMatch(x,
|
|
1609
|
-
return this.applyMod(o,
|
|
1608
|
+
if (this.ruleMatch(x, c, _[f], u))
|
|
1609
|
+
return this.applyMod(o, l, _[f]);
|
|
1610
1610
|
return !1;
|
|
1611
1611
|
},
|
|
1612
1612
|
// проверяем, подходит ли правило к слову
|
|
1613
|
-
ruleMatch: function(o,
|
|
1614
|
-
if (
|
|
1615
|
-
for (var u = 0, x =
|
|
1613
|
+
ruleMatch: function(o, c, l, _) {
|
|
1614
|
+
if (l.sex === this.sexM && c === this.sexF || l.sex === this.sexF && c !== this.sexF) return !1;
|
|
1615
|
+
for (var u = 0, x = l.test.length; u < x; u++) {
|
|
1616
1616
|
var f = _ ? o : o.substr(
|
|
1617
|
-
Math.max(o.length -
|
|
1617
|
+
Math.max(o.length - l.test[u].length, 0)
|
|
1618
1618
|
);
|
|
1619
|
-
if (f ===
|
|
1619
|
+
if (f === l.test[u]) return !0;
|
|
1620
1620
|
}
|
|
1621
1621
|
return !1;
|
|
1622
1622
|
},
|
|
1623
1623
|
// склоняем слово (правим окончание)
|
|
1624
|
-
applyMod: function(o,
|
|
1624
|
+
applyMod: function(o, c, l) {
|
|
1625
1625
|
let _;
|
|
1626
|
-
switch (
|
|
1626
|
+
switch (c) {
|
|
1627
1627
|
case this.gcaseNom:
|
|
1628
1628
|
_ = ".";
|
|
1629
1629
|
break;
|
|
1630
1630
|
case this.gcaseGen:
|
|
1631
|
-
_ =
|
|
1631
|
+
_ = l.mods[0];
|
|
1632
1632
|
break;
|
|
1633
1633
|
case this.gcaseDat:
|
|
1634
|
-
_ =
|
|
1634
|
+
_ = l.mods[1];
|
|
1635
1635
|
break;
|
|
1636
1636
|
case this.gcaseAcc:
|
|
1637
|
-
_ =
|
|
1637
|
+
_ = l.mods[2];
|
|
1638
1638
|
break;
|
|
1639
1639
|
case this.gcaseIns:
|
|
1640
|
-
_ =
|
|
1640
|
+
_ = l.mods[3];
|
|
1641
1641
|
break;
|
|
1642
1642
|
case this.gcasePos:
|
|
1643
|
-
_ =
|
|
1643
|
+
_ = l.mods[4];
|
|
1644
1644
|
break;
|
|
1645
1645
|
}
|
|
1646
1646
|
for (var u = 0, x = _.length; u < x; u++) {
|
|
@@ -1899,14 +1899,14 @@ const H = {
|
|
|
1899
1899
|
s.s = !0;
|
|
1900
1900
|
const i = 1e3, o = n / (r * 10);
|
|
1901
1901
|
s.n = 0;
|
|
1902
|
-
let
|
|
1902
|
+
let c = i / (n / o), l = e ? e + " " : "";
|
|
1903
1903
|
return s.i = setInterval(() => {
|
|
1904
1904
|
if (!s.s)
|
|
1905
|
-
return s.current.textContent = `${
|
|
1905
|
+
return s.current.textContent = `${l}` + H.Money(n), clearInterval(s.i);
|
|
1906
1906
|
if (n === 0)
|
|
1907
|
-
return s.current.textContent = `${
|
|
1908
|
-
s.n = s.n + o, s.n > n && s.n >= n && (s.n = n, clearInterval(s.i)), s.current && (s.current.textContent = `${
|
|
1909
|
-
},
|
|
1907
|
+
return s.current.textContent = `${l}` + H.Money(n), clearInterval(s.i);
|
|
1908
|
+
s.n = s.n + o, s.n > n && s.n >= n && (s.n = n, clearInterval(s.i)), s.current && (s.current.textContent = `${l}` + H.Money(s.n));
|
|
1909
|
+
}, c), () => {
|
|
1910
1910
|
s.s = !1, clearInterval(s.i);
|
|
1911
1911
|
};
|
|
1912
1912
|
}, [t, n]), /* @__PURE__ */ a.jsx("span", { ref: s });
|
|
@@ -2021,8 +2021,8 @@ const zi = "_btn_294gf_1", Ki = "_confirm_294gf_15", Hi = "_cancel_294gf_20", Yi
|
|
|
2021
2021
|
mode: s = "primary",
|
|
2022
2022
|
children: i,
|
|
2023
2023
|
isDisabled: o = !1,
|
|
2024
|
-
className:
|
|
2025
|
-
after:
|
|
2024
|
+
className: c,
|
|
2025
|
+
after: l,
|
|
2026
2026
|
before: _,
|
|
2027
2027
|
label: u,
|
|
2028
2028
|
onRef: x,
|
|
@@ -2043,7 +2043,7 @@ const zi = "_btn_294gf_1", Ki = "_confirm_294gf_15", Hi = "_cancel_294gf_20", Yi
|
|
|
2043
2043
|
Ve.btn,
|
|
2044
2044
|
m ? Ve.disabled : Ve[r],
|
|
2045
2045
|
n && Ve[n],
|
|
2046
|
-
|
|
2046
|
+
c
|
|
2047
2047
|
].join(" "),
|
|
2048
2048
|
onClick: g,
|
|
2049
2049
|
children: m ? f : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
@@ -2051,7 +2051,7 @@ const zi = "_btn_294gf_1", Ki = "_confirm_294gf_15", Hi = "_cancel_294gf_20", Yi
|
|
|
2051
2051
|
" ",
|
|
2052
2052
|
u,
|
|
2053
2053
|
" ",
|
|
2054
|
-
|
|
2054
|
+
l || ""
|
|
2055
2055
|
] }) || i
|
|
2056
2056
|
}
|
|
2057
2057
|
);
|
|
@@ -2073,9 +2073,9 @@ function eo({
|
|
|
2073
2073
|
size: s = "m",
|
|
2074
2074
|
className: i = "",
|
|
2075
2075
|
shake: o = !0,
|
|
2076
|
-
menu:
|
|
2076
|
+
menu: c
|
|
2077
2077
|
}) {
|
|
2078
|
-
const [
|
|
2078
|
+
const [l, _] = h.useState(!0), u = h.useRef(), x = (m) => {
|
|
2079
2079
|
if (n) {
|
|
2080
2080
|
if (n.onClick)
|
|
2081
2081
|
return m(!1), n.onClick({ setOpen: _ });
|
|
@@ -2091,7 +2091,7 @@ function eo({
|
|
|
2091
2091
|
u.current.setAttribute("shake", !1);
|
|
2092
2092
|
}, 1e3);
|
|
2093
2093
|
};
|
|
2094
|
-
return /* @__PURE__ */ a.jsx(a.Fragment, { children:
|
|
2094
|
+
return /* @__PURE__ */ a.jsx(a.Fragment, { children: l ? /* @__PURE__ */ a.jsxs(
|
|
2095
2095
|
"div",
|
|
2096
2096
|
{
|
|
2097
2097
|
className: `${re.modal}`,
|
|
@@ -2119,7 +2119,7 @@ function eo({
|
|
|
2119
2119
|
},
|
|
2120
2120
|
v
|
|
2121
2121
|
)) }),
|
|
2122
|
-
|
|
2122
|
+
c
|
|
2123
2123
|
] }),
|
|
2124
2124
|
/* @__PURE__ */ a.jsx(
|
|
2125
2125
|
"div",
|
|
@@ -2412,22 +2412,22 @@ const yo = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
|
|
|
2412
2412
|
/* @__PURE__ */ a.jsx("i", {}),
|
|
2413
2413
|
/* @__PURE__ */ a.jsx("i", {}),
|
|
2414
2414
|
/* @__PURE__ */ a.jsx("i", {})
|
|
2415
|
-
] }) : s.list.length === 0 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : s.list.map((
|
|
2415
|
+
] }) : s.list.length === 0 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : s.list.map((c, l) => /* @__PURE__ */ a.jsx(To, { dispatch: i, data: c }, l)) })
|
|
2416
2416
|
] });
|
|
2417
2417
|
}, No = ({ id: e, dir: t, dispatch: n }) => {
|
|
2418
2418
|
let [r, s] = h.useState(!0), i = h.useRef(null), o = (_) => {
|
|
2419
2419
|
_.preventDefault(), _.stopPropagation();
|
|
2420
|
-
}, l = (_) => {
|
|
2421
2420
|
}, c = (_) => {
|
|
2421
|
+
}, l = (_) => {
|
|
2422
2422
|
};
|
|
2423
2423
|
return h.useEffect(() => {
|
|
2424
2424
|
let _ = i.current;
|
|
2425
2425
|
["dragenter", "dragover", "dragleave", "drop"].forEach((u) => {
|
|
2426
2426
|
_.addEventListener(u, o, !1), document.body.addEventListener(u, o, !1);
|
|
2427
2427
|
}), ["dragenter", "dragover"].forEach((u) => {
|
|
2428
|
-
_.addEventListener(u, l, !1);
|
|
2429
|
-
}), ["dragleave", "drop"].forEach((u) => {
|
|
2430
2428
|
_.addEventListener(u, c, !1);
|
|
2429
|
+
}), ["dragleave", "drop"].forEach((u) => {
|
|
2430
|
+
_.addEventListener(u, l, !1);
|
|
2431
2431
|
});
|
|
2432
2432
|
}, []), /* @__PURE__ */ a.jsx(a.Fragment, { children: r ? /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsx(
|
|
2433
2433
|
"div",
|
|
@@ -2474,8 +2474,8 @@ const yo = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
|
|
|
2474
2474
|
if (i.size !== 2) {
|
|
2475
2475
|
let o = new Blob([i], { type: i.type });
|
|
2476
2476
|
o = URL.createObjectURL(o);
|
|
2477
|
-
let
|
|
2478
|
-
|
|
2477
|
+
let c = document.createElement("a");
|
|
2478
|
+
c.setAttribute("href", o), c.setAttribute("download", e.name), c.click();
|
|
2479
2479
|
}
|
|
2480
2480
|
}, r = async () => {
|
|
2481
2481
|
(await (await fetch(kt.url().files + "/yandex/delete/" + e.id, {
|
|
@@ -2544,16 +2544,16 @@ const Mo = () => {
|
|
|
2544
2544
|
let i = Object.keys(q.list);
|
|
2545
2545
|
if (i.length !== 0) {
|
|
2546
2546
|
let o = [];
|
|
2547
|
-
i.forEach((
|
|
2547
|
+
i.forEach((c, l) => {
|
|
2548
2548
|
o.push({
|
|
2549
2549
|
item: /* @__PURE__ */ a.jsx(
|
|
2550
2550
|
bt,
|
|
2551
2551
|
{
|
|
2552
|
-
data: q.list[
|
|
2552
|
+
data: q.list[c]
|
|
2553
2553
|
},
|
|
2554
|
-
q.list[
|
|
2554
|
+
q.list[c].id
|
|
2555
2555
|
),
|
|
2556
|
-
link: q.list[
|
|
2556
|
+
link: q.list[c].link
|
|
2557
2557
|
});
|
|
2558
2558
|
}), t(o);
|
|
2559
2559
|
}
|
|
@@ -2567,8 +2567,8 @@ const Mo = () => {
|
|
|
2567
2567
|
{ item: /* @__PURE__ */ a.jsx(bt, { data: i }, i.id), link: i.link }
|
|
2568
2568
|
]);
|
|
2569
2569
|
}, q.del = (i) => {
|
|
2570
|
-
e.forEach((o,
|
|
2571
|
-
o.link === i && e.splice(
|
|
2570
|
+
e.forEach((o, c) => {
|
|
2571
|
+
o.link === i && e.splice(c, 1);
|
|
2572
2572
|
}), t([...e]);
|
|
2573
2573
|
}, (s = document.querySelector("app-body")) == null || s.setAttribute(
|
|
2574
2574
|
"bookmarks",
|
|
@@ -2731,10 +2731,10 @@ function Po({ id: e, type: t }) {
|
|
|
2731
2731
|
const [n, r] = h.useState({}), [s, i] = h.useState(t);
|
|
2732
2732
|
h.useEffect(() => {
|
|
2733
2733
|
r(V.getSelect("user")[e]);
|
|
2734
|
-
}, []), Y.useListener((
|
|
2735
|
-
switch (
|
|
2734
|
+
}, []), Y.useListener((l) => {
|
|
2735
|
+
switch (l.type) {
|
|
2736
2736
|
case "state":
|
|
2737
|
-
i(
|
|
2737
|
+
i(l.data);
|
|
2738
2738
|
}
|
|
2739
2739
|
});
|
|
2740
2740
|
const o = () => {
|
|
@@ -2761,7 +2761,7 @@ function Po({ id: e, type: t }) {
|
|
|
2761
2761
|
);
|
|
2762
2762
|
case "in":
|
|
2763
2763
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2764
|
-
/* @__PURE__ */ a.jsx("span", { onClick:
|
|
2764
|
+
/* @__PURE__ */ a.jsx("span", { onClick: c, children: /* @__PURE__ */ a.jsx(
|
|
2765
2765
|
"svg",
|
|
2766
2766
|
{
|
|
2767
2767
|
className: "red",
|
|
@@ -2817,11 +2817,11 @@ function Po({ id: e, type: t }) {
|
|
|
2817
2817
|
}
|
|
2818
2818
|
);
|
|
2819
2819
|
}
|
|
2820
|
-
},
|
|
2820
|
+
}, c = () => {
|
|
2821
2821
|
Y.callRefuser(n.id), Pe.del();
|
|
2822
2822
|
};
|
|
2823
2823
|
return /* @__PURE__ */ a.jsx("div", { className: "web-phone white", children: /* @__PURE__ */ a.jsxs("div", { className: "w", children: [
|
|
2824
|
-
/* @__PURE__ */ a.jsx("div", { className: "x", "data-icon": "F038", onClick:
|
|
2824
|
+
/* @__PURE__ */ a.jsx("div", { className: "x", "data-icon": "F038", onClick: c }),
|
|
2825
2825
|
/* @__PURE__ */ a.jsx("div", { className: "a" }),
|
|
2826
2826
|
/* @__PURE__ */ a.jsx("div", { className: "n", children: n.name }),
|
|
2827
2827
|
/* @__PURE__ */ a.jsx("div", { className: "b", children: o() })
|
|
@@ -2867,26 +2867,28 @@ function Uo({
|
|
|
2867
2867
|
dev: s,
|
|
2868
2868
|
...i
|
|
2869
2869
|
}) {
|
|
2870
|
-
const o = (
|
|
2870
|
+
const o = (l) => {
|
|
2871
2871
|
i.element ? Ae.set(
|
|
2872
2872
|
/* @__PURE__ */ a.jsx(
|
|
2873
2873
|
i.element,
|
|
2874
2874
|
{
|
|
2875
2875
|
content: e,
|
|
2876
|
-
position:
|
|
2876
|
+
position: l.currentTarget.getBoundingClientRect(),
|
|
2877
|
+
update: Date.now()
|
|
2877
2878
|
}
|
|
2878
2879
|
)
|
|
2879
2880
|
) : Ae.set(
|
|
2880
2881
|
/* @__PURE__ */ a.jsx(
|
|
2881
2882
|
Go,
|
|
2882
2883
|
{
|
|
2884
|
+
update: Date.now(),
|
|
2883
2885
|
orientation: r,
|
|
2884
2886
|
content: e,
|
|
2885
|
-
position:
|
|
2887
|
+
position: l.currentTarget.getBoundingClientRect()
|
|
2886
2888
|
}
|
|
2887
2889
|
)
|
|
2888
2890
|
);
|
|
2889
|
-
},
|
|
2891
|
+
}, c = () => {
|
|
2890
2892
|
s || Ae.del();
|
|
2891
2893
|
};
|
|
2892
2894
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -2894,32 +2896,32 @@ function Uo({
|
|
|
2894
2896
|
{
|
|
2895
2897
|
className: n,
|
|
2896
2898
|
onMouseOver: o,
|
|
2897
|
-
onMouseOut:
|
|
2899
|
+
onMouseOut: c,
|
|
2898
2900
|
children: t
|
|
2899
2901
|
}
|
|
2900
2902
|
);
|
|
2901
2903
|
}
|
|
2902
|
-
const Go = ({ content: e, position: t, orientation: n }) => {
|
|
2903
|
-
const
|
|
2904
|
+
const Go = ({ content: e, position: t, orientation: n, update: r }) => {
|
|
2905
|
+
const s = h.useRef(null);
|
|
2904
2906
|
return h.useEffect(() => {
|
|
2905
|
-
const
|
|
2906
|
-
let
|
|
2907
|
+
const i = s.current, o = i.getBoundingClientRect();
|
|
2908
|
+
let c = t.width / 2, l = 0;
|
|
2907
2909
|
switch (n) {
|
|
2908
2910
|
case "up":
|
|
2909
|
-
l = t.left +
|
|
2911
|
+
l = t.left + c - o.width / 2, l = l < 0 ? 0 : l, i.style.left = l + "px", i.style.top = t.top - o.height - 10 + "px";
|
|
2910
2912
|
break;
|
|
2911
2913
|
case "down":
|
|
2912
|
-
l = t.left +
|
|
2914
|
+
l = t.left + c - o.width / 2, l = l < 0 ? 0 : l, i.style.left = l + "px", i.style.top = t.bottom + 10 + "px";
|
|
2913
2915
|
break;
|
|
2914
2916
|
case "left":
|
|
2915
|
-
|
|
2917
|
+
i.style.top = t.top + "px", i.style.left = t.left - o.width - t.width + "px";
|
|
2916
2918
|
break;
|
|
2917
2919
|
case "right":
|
|
2918
|
-
|
|
2920
|
+
i.style.top = t.top + "px", i.style.left = t.right + "px";
|
|
2919
2921
|
break;
|
|
2920
2922
|
}
|
|
2921
|
-
|
|
2922
|
-
}, []), /* @__PURE__ */ a.jsx("div", { ref:
|
|
2923
|
+
i.style.transition = "all 0.3s", i.style.opacity = "1";
|
|
2924
|
+
}, [r]), /* @__PURE__ */ a.jsx("div", { ref: s, className: "tooltip", children: e });
|
|
2923
2925
|
};
|
|
2924
2926
|
let Qe = {}, Et = {}, Dt = "ru";
|
|
2925
2927
|
const Wo = (e, t) => {
|
|
@@ -3035,16 +3037,16 @@ const Zd = ({ children: e, ...t }) => /* @__PURE__ */ a.jsxs("div", { className:
|
|
|
3035
3037
|
}) => {
|
|
3036
3038
|
const [i, o] = h.useState(t);
|
|
3037
3039
|
return /* @__PURE__ */ a.jsxs("div", { className: ["tabs-button", r].join(" "), children: [
|
|
3038
|
-
/* @__PURE__ */ a.jsx("ul", { children: e.map((
|
|
3040
|
+
/* @__PURE__ */ a.jsx("ul", { children: e.map((c) => /* @__PURE__ */ a.jsx(
|
|
3039
3041
|
_l,
|
|
3040
3042
|
{
|
|
3041
|
-
data:
|
|
3042
|
-
light:
|
|
3043
|
+
data: c,
|
|
3044
|
+
light: c.light,
|
|
3043
3045
|
setTabs: o,
|
|
3044
|
-
active:
|
|
3046
|
+
active: c.id === i,
|
|
3045
3047
|
onChange: n
|
|
3046
3048
|
},
|
|
3047
|
-
|
|
3049
|
+
c.id
|
|
3048
3050
|
)) }),
|
|
3049
3051
|
s
|
|
3050
3052
|
] });
|
|
@@ -3150,13 +3152,13 @@ function El({ value: e, background: t, gradient: n }) {
|
|
|
3150
3152
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3151
3153
|
style: { borderRadius: "50%", background: t },
|
|
3152
3154
|
children: [
|
|
3153
|
-
n && /* @__PURE__ */ a.jsx("linearGradient", { id: i, x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: n.map((o,
|
|
3155
|
+
n && /* @__PURE__ */ a.jsx("linearGradient", { id: i, x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: n.map((o, c) => /* @__PURE__ */ a.jsx(
|
|
3154
3156
|
"stop",
|
|
3155
3157
|
{
|
|
3156
3158
|
offset: o[0],
|
|
3157
3159
|
stopColor: o[1]
|
|
3158
3160
|
},
|
|
3159
|
-
|
|
3161
|
+
c
|
|
3160
3162
|
)) }),
|
|
3161
3163
|
/* @__PURE__ */ a.jsx(
|
|
3162
3164
|
"circle",
|
|
@@ -3272,24 +3274,24 @@ function Kn({
|
|
|
3272
3274
|
searchParams: s = ["p01", "p02", "p03"],
|
|
3273
3275
|
...i
|
|
3274
3276
|
}) {
|
|
3275
|
-
const [o,
|
|
3277
|
+
const [o, c] = h.useState([]), [l, _] = h.useState([]), [u, x] = h.useState(!1), f = async () => {
|
|
3276
3278
|
let m = await kt.fetch(e, t);
|
|
3277
|
-
m.data && m.data.length > 0 && (
|
|
3279
|
+
m.data && m.data.length > 0 && (c(m.data), _(m.data)), x(!0);
|
|
3278
3280
|
};
|
|
3279
3281
|
return he.useListener("list_children", (m) => {
|
|
3280
3282
|
if (m.action === "edit") {
|
|
3281
|
-
let v =
|
|
3283
|
+
let v = l.map(
|
|
3282
3284
|
(g) => g.id === m.id ? Object.assign(g, { [m.name]: m.value }) : g
|
|
3283
3285
|
);
|
|
3284
|
-
|
|
3286
|
+
c(v), _(v);
|
|
3285
3287
|
}
|
|
3286
3288
|
if (m.action === "delete") {
|
|
3287
|
-
let v =
|
|
3288
|
-
|
|
3289
|
+
let v = l.filter((g) => g.id !== m.id);
|
|
3290
|
+
c(v), _(v);
|
|
3289
3291
|
}
|
|
3290
3292
|
}), he.useListener("search", (m) => {
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
+
c(
|
|
3294
|
+
l.filter((v) => ("" + s.map((p) => v[p]).toString()).toLowerCase().includes(m.toLowerCase()))
|
|
3293
3295
|
);
|
|
3294
3296
|
}), h.useEffect(() => {
|
|
3295
3297
|
f(), n && he.setListener("button", n);
|
|
@@ -3353,19 +3355,19 @@ function Zl(e) {
|
|
|
3353
3355
|
function Ul(e, t, n) {
|
|
3354
3356
|
let r = 1, s = 0, i = {}, o = 50;
|
|
3355
3357
|
i[r] = [];
|
|
3356
|
-
let
|
|
3357
|
-
switch (
|
|
3358
|
+
let c = {}, l = "s1a";
|
|
3359
|
+
switch (c.s1a = (_, u) => u.s1 - _.s1, c.s1d = (_, u) => _.s1 - u.s1, c.s2a = (_, u) => _.s2 - u.s2, c.s2d = (_, u) => u.s2 - _.s2, c.s3a = (_, u) => _.s3.localeCompare(u.s3), c.s3d = (_, u) => u.s3.localeCompare(_.s3), n.active) {
|
|
3358
3360
|
case 1:
|
|
3359
|
-
|
|
3361
|
+
l = n.sort === ">" ? "s1d" : "s1a";
|
|
3360
3362
|
break;
|
|
3361
3363
|
case 2:
|
|
3362
|
-
|
|
3364
|
+
l = n.sort === ">" ? "s2d" : "s2a";
|
|
3363
3365
|
break;
|
|
3364
3366
|
case 3:
|
|
3365
|
-
|
|
3367
|
+
l = n.sort === ">" ? "s3d" : "s3a";
|
|
3366
3368
|
break;
|
|
3367
3369
|
}
|
|
3368
|
-
return t.sort(l
|
|
3370
|
+
return t.sort(c[l]).forEach((_) => {
|
|
3369
3371
|
s++, s <= o || (r++, s = 1, i[r] = []), i[r].push(e[_.id]);
|
|
3370
3372
|
}), { data: i };
|
|
3371
3373
|
}
|
|
@@ -3437,13 +3439,13 @@ const Te = () => (pt || (pt = new Kl()), pt), ke = (e, t, n = Te()) => n._withID
|
|
|
3437
3439
|
};
|
|
3438
3440
|
}).then(() => t);
|
|
3439
3441
|
}, ql = (e, t, n = [], r = {}) => {
|
|
3440
|
-
let s = n.length !== 0, i = [], o = r.sort,
|
|
3442
|
+
let s = n.length !== 0, i = [], o = r.sort, c = Object.keys(r).length !== 0, l = Object.keys(r), _ = Object.keys(e), u = [], x = (m) => {
|
|
3441
3443
|
let v = "";
|
|
3442
3444
|
if (n.forEach((g) => {
|
|
3443
3445
|
v += t[m][g];
|
|
3444
|
-
}),
|
|
3446
|
+
}), c) {
|
|
3445
3447
|
let g = {};
|
|
3446
|
-
|
|
3448
|
+
l.forEach((p) => {
|
|
3447
3449
|
g[p] = t[m][p];
|
|
3448
3450
|
});
|
|
3449
3451
|
for (let p in o)
|
|
@@ -3456,18 +3458,18 @@ const Te = () => (pt || (pt = new Kl()), pt), ke = (e, t, n = Te()) => n._withID
|
|
|
3456
3458
|
return _.forEach((m) => {
|
|
3457
3459
|
u.push(t[m]);
|
|
3458
3460
|
}), u.forEach((m) => {
|
|
3459
|
-
m === void 0 ? (Nt(), location.reload()) : (s && x(m.id),
|
|
3461
|
+
m === void 0 ? (Nt(), location.reload()) : (s && x(m.id), c && f(m.id));
|
|
3460
3462
|
}), { list: u, search: i, filter: r };
|
|
3461
3463
|
}, Jl = (e, t, n, r = Te()) => {
|
|
3462
3464
|
if (X[e] === void 0)
|
|
3463
3465
|
return new Promise((s, i) => {
|
|
3464
3466
|
let o;
|
|
3465
|
-
r._withIDBStore("readonly", (
|
|
3466
|
-
o =
|
|
3467
|
+
r._withIDBStore("readonly", (c) => {
|
|
3468
|
+
o = c.get(e);
|
|
3467
3469
|
}).then(() => {
|
|
3468
3470
|
if (o.result !== void 0) {
|
|
3469
|
-
let
|
|
3470
|
-
X[e] =
|
|
3471
|
+
let c = A.deCode(o.result);
|
|
3472
|
+
X[e] = c, X[e][t.id] = {
|
|
3471
3473
|
...X[e][t.id],
|
|
3472
3474
|
...t.data
|
|
3473
3475
|
}, r.put(A.enCode(X[e]), e), s({});
|
|
@@ -3586,7 +3588,7 @@ function dc({
|
|
|
3586
3588
|
h.useEffect(() => {
|
|
3587
3589
|
s.current.scrollTop = 0, e !== null && o({ type: "load", load: !0, data: e });
|
|
3588
3590
|
}, [t]);
|
|
3589
|
-
let
|
|
3591
|
+
let c = () => {
|
|
3590
3592
|
s.current.scrollHeight - s.current.scrollTop - 300 <= s.current.clientHeight && !i.wait && o({ type: "update" });
|
|
3591
3593
|
};
|
|
3592
3594
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -3594,8 +3596,8 @@ function dc({
|
|
|
3594
3596
|
{
|
|
3595
3597
|
className: [lc.s, n].join(" "),
|
|
3596
3598
|
ref: s,
|
|
3597
|
-
onScroll:
|
|
3598
|
-
children: /* @__PURE__ */ a.jsx(Yn, { "el-empty": "Данные не найдены", children: i.load && i.list !== void 0 ? i.list.map((
|
|
3599
|
+
onScroll: c,
|
|
3600
|
+
children: /* @__PURE__ */ a.jsx(Yn, { "el-empty": "Данные не найдены", children: i.load && i.list !== void 0 ? i.list.map((l) => /* @__PURE__ */ a.jsx(r.item, { data: l }, l.id)) : /* @__PURE__ */ a.jsxs("div", { "data-load": "load", children: [
|
|
3599
3601
|
/* @__PURE__ */ a.jsx("i", {}),
|
|
3600
3602
|
/* @__PURE__ */ a.jsx("i", {}),
|
|
3601
3603
|
/* @__PURE__ */ a.jsx("i", {})
|
|
@@ -3651,8 +3653,8 @@ function Ue({
|
|
|
3651
3653
|
placeholder: s = "",
|
|
3652
3654
|
title: i = "",
|
|
3653
3655
|
error: o = "",
|
|
3654
|
-
hide:
|
|
3655
|
-
edit:
|
|
3656
|
+
hide: c = !1,
|
|
3657
|
+
edit: l = !0,
|
|
3656
3658
|
active: _ = !0,
|
|
3657
3659
|
after: u = "",
|
|
3658
3660
|
before: x = "",
|
|
@@ -3663,7 +3665,7 @@ function Ue({
|
|
|
3663
3665
|
isCopy: p = !0,
|
|
3664
3666
|
isReload: y = !1
|
|
3665
3667
|
}) {
|
|
3666
|
-
let C = !!(
|
|
3668
|
+
let C = !!(c && (t === "" || t === void 0)), D = (w) => {
|
|
3667
3669
|
n && n({
|
|
3668
3670
|
value: w.target.textContent.trim(),
|
|
3669
3671
|
name: r,
|
|
@@ -3694,11 +3696,11 @@ function Ue({
|
|
|
3694
3696
|
}).catch((B) => {
|
|
3695
3697
|
});
|
|
3696
3698
|
};
|
|
3697
|
-
if (!(
|
|
3699
|
+
if (!(l && _) && !f || !(l && _) && C) return "";
|
|
3698
3700
|
const M = {};
|
|
3699
3701
|
M.field = "input", g && (M.className = g);
|
|
3700
3702
|
const R = {};
|
|
3701
|
-
s && (R.placeholder = s),
|
|
3703
|
+
s && (R.placeholder = s), l && _ && (R.edit = "");
|
|
3702
3704
|
const Z = (w) => {
|
|
3703
3705
|
z.Blur(w), v == null || v({ value: w.target.textContent.trim(), name: r });
|
|
3704
3706
|
};
|
|
@@ -3714,7 +3716,7 @@ function Ue({
|
|
|
3714
3716
|
onKeyDown: N,
|
|
3715
3717
|
onContextMenu: T,
|
|
3716
3718
|
spellCheck: "true",
|
|
3717
|
-
contentEditable:
|
|
3719
|
+
contentEditable: l && _ ? z.ContentEditable : "false",
|
|
3718
3720
|
suppressContentEditableWarning: !0,
|
|
3719
3721
|
...R,
|
|
3720
3722
|
children: t
|
|
@@ -3749,8 +3751,8 @@ function Xn({
|
|
|
3749
3751
|
name: s,
|
|
3750
3752
|
view: i,
|
|
3751
3753
|
maxLength: o,
|
|
3752
|
-
edit:
|
|
3753
|
-
active:
|
|
3754
|
+
edit: c = !0,
|
|
3755
|
+
active: l = !0,
|
|
3754
3756
|
placeholder: _ = "Введите сообщение"
|
|
3755
3757
|
}) {
|
|
3756
3758
|
const u = h.useRef({
|
|
@@ -3783,7 +3785,7 @@ function Xn({
|
|
|
3783
3785
|
}, y = {
|
|
3784
3786
|
spellCheck: "true"
|
|
3785
3787
|
};
|
|
3786
|
-
return _ && (y.placeholder = _),
|
|
3788
|
+
return _ && (y.placeholder = _), c && l && (y.contentEditable = z.ContentEditable), /* @__PURE__ */ a.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ a.jsx(
|
|
3787
3789
|
"dd",
|
|
3788
3790
|
{
|
|
3789
3791
|
onPaste: g,
|
|
@@ -3798,12 +3800,12 @@ function Xn({
|
|
|
3798
3800
|
) });
|
|
3799
3801
|
}
|
|
3800
3802
|
function Vn(e) {
|
|
3801
|
-
let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0, s = e.placeholder !== void 0 ? e.placeholder : "", i = (
|
|
3802
|
-
e.onValue({ value:
|
|
3803
|
-
}, o = (
|
|
3804
|
-
|
|
3805
|
-
},
|
|
3806
|
-
|
|
3803
|
+
let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0, s = e.placeholder !== void 0 ? e.placeholder : "", i = (l) => {
|
|
3804
|
+
e.onValue({ value: l.target.textContent, name: e.name });
|
|
3805
|
+
}, o = (l) => {
|
|
3806
|
+
l.key === "Enter" && l.preventDefault();
|
|
3807
|
+
}, c = (l) => {
|
|
3808
|
+
l.preventDefault(), navigator.clipboard.readText().then((_) => {
|
|
3807
3809
|
window.document.execCommand("insertText", !1, _);
|
|
3808
3810
|
}).catch((_) => {
|
|
3809
3811
|
});
|
|
@@ -3813,7 +3815,7 @@ function Vn(e) {
|
|
|
3813
3815
|
/* @__PURE__ */ a.jsx(
|
|
3814
3816
|
"dd",
|
|
3815
3817
|
{
|
|
3816
|
-
onPaste:
|
|
3818
|
+
onPaste: c,
|
|
3817
3819
|
onInput: i,
|
|
3818
3820
|
onKeyDown: o,
|
|
3819
3821
|
contentEditable: n && r ? z.ContentEditable : "false",
|
|
@@ -3831,10 +3833,10 @@ function Qn({
|
|
|
3831
3833
|
placeholder: r = "",
|
|
3832
3834
|
name: s
|
|
3833
3835
|
}) {
|
|
3834
|
-
let i = (v, g) => Number(Math.round(v + Math.random() * (g - v))), o = h.useRef(null),
|
|
3836
|
+
let i = (v, g) => Number(Math.round(v + Math.random() * (g - v))), o = h.useRef(null), c = h.useRef(null), l = i(1e4, 99999), _ = (v) => {
|
|
3835
3837
|
v.key !== "Backspace" && (v.key === "Enter" && v.preventDefault(), v.target.textContent.length === 5 && v.preventDefault(), /\d/.test(v.key) || v.preventDefault());
|
|
3836
3838
|
}, u = (v) => {
|
|
3837
|
-
t({ value: Number(v.target.textContent) ===
|
|
3839
|
+
t({ value: Number(v.target.textContent) === l, name: s });
|
|
3838
3840
|
}, x = (v) => {
|
|
3839
3841
|
v.preventDefault(), navigator.clipboard.readText().then((g) => {
|
|
3840
3842
|
if (n) {
|
|
@@ -3852,8 +3854,8 @@ function Qn({
|
|
|
3852
3854
|
};
|
|
3853
3855
|
h.useEffect(() => {
|
|
3854
3856
|
const v = o.current, g = v.getContext("2d");
|
|
3855
|
-
g.clearRect(0, 0, v.width, v.height), g.font = "30px brush script mt", g.fillStyle = "#eee", g.textAlign = "center", g.fillText(
|
|
3856
|
-
}, [
|
|
3857
|
+
g.clearRect(0, 0, v.width, v.height), g.font = "30px brush script mt", g.fillStyle = "#eee", g.textAlign = "center", g.fillText(l, 50, 27), c.current.textContent = "";
|
|
3858
|
+
}, [l]);
|
|
3857
3859
|
const f = {};
|
|
3858
3860
|
f.field = "captcha";
|
|
3859
3861
|
const m = {};
|
|
@@ -3861,7 +3863,7 @@ function Qn({
|
|
|
3861
3863
|
/* @__PURE__ */ a.jsx(
|
|
3862
3864
|
"dd",
|
|
3863
3865
|
{
|
|
3864
|
-
ref:
|
|
3866
|
+
ref: c,
|
|
3865
3867
|
onPaste: x,
|
|
3866
3868
|
onInput: u,
|
|
3867
3869
|
onBlur: z.Blur,
|
|
@@ -3882,9 +3884,9 @@ function ea({
|
|
|
3882
3884
|
real: s,
|
|
3883
3885
|
onValue: i,
|
|
3884
3886
|
empty: o,
|
|
3885
|
-
name:
|
|
3887
|
+
name: c
|
|
3886
3888
|
}) {
|
|
3887
|
-
let
|
|
3889
|
+
let l = {
|
|
3888
3890
|
n1: "",
|
|
3889
3891
|
n2: "",
|
|
3890
3892
|
n3: "",
|
|
@@ -3896,7 +3898,7 @@ function ea({
|
|
|
3896
3898
|
if (g.preventDefault(), !r) return;
|
|
3897
3899
|
g.target.textContent = g.target.textContent.slice(-1).replace(/[^+\d]/g, "");
|
|
3898
3900
|
let p = window.getSelection(), y = g.target.textContent.length;
|
|
3899
|
-
if (
|
|
3901
|
+
if (l[g.target.id] = g.target.textContent, l.code = l.n1 + "" + l.n2 + l.n3 + l.n4 + l.n5 + l.n6, p.collapse(g.target.firstChild, 1), y === 0) {
|
|
3900
3902
|
g.target.blur(), g.target.focus();
|
|
3901
3903
|
return;
|
|
3902
3904
|
}
|
|
@@ -3904,18 +3906,18 @@ function ea({
|
|
|
3904
3906
|
}, u = (g) => {
|
|
3905
3907
|
if (!r) return g.preventDefault();
|
|
3906
3908
|
if (g.key === "Enter" && g.preventDefault(), g.key === "Backspace") {
|
|
3907
|
-
if (g.preventDefault(), g.target.textContent = "",
|
|
3909
|
+
if (g.preventDefault(), g.target.textContent = "", l[g.target.id] = "", g.target.previousSibling != null) {
|
|
3908
3910
|
let p = g.target.previousSibling.id.slice(1);
|
|
3909
|
-
g.target.previousSibling.textContent = "",
|
|
3911
|
+
g.target.previousSibling.textContent = "", l["n" + p] = "", g.target.previousSibling.focus();
|
|
3910
3912
|
}
|
|
3911
|
-
|
|
3913
|
+
l.code = l.n1 + "" + l.n2 + l.n3 + l.n4 + l.n5 + l.n6;
|
|
3912
3914
|
}
|
|
3913
3915
|
}, x = (g) => {
|
|
3914
3916
|
if (!r) return g.preventDefault();
|
|
3915
3917
|
if (s)
|
|
3916
|
-
i && i({ value:
|
|
3917
|
-
else if (
|
|
3918
|
-
|
|
3918
|
+
i && i({ value: l.code, name: c });
|
|
3919
|
+
else if (l.code.length === 6 && (g.target.blur(), i && i({ value: l.code, name: c }), o)) {
|
|
3920
|
+
l = {
|
|
3919
3921
|
n1: "",
|
|
3920
3922
|
n2: "",
|
|
3921
3923
|
n3: "",
|
|
@@ -3940,10 +3942,10 @@ function ea({
|
|
|
3940
3942
|
let D = C.split("");
|
|
3941
3943
|
for (let T = 1; T <= D.length; T++) {
|
|
3942
3944
|
let E = document.getElementById("n" + T);
|
|
3943
|
-
E && (E.textContent = D[T - 1],
|
|
3945
|
+
E && (E.textContent = D[T - 1], l["n" + T] = D[T - 1]);
|
|
3944
3946
|
}
|
|
3945
|
-
if (
|
|
3946
|
-
|
|
3947
|
+
if (l.code = l.n1 + "" + l.n2 + l.n3 + l.n4 + l.n5 + l.n6, l.code.length === 6 && (g.target.blur(), i && i({ value: l.code, name: c }), o)) {
|
|
3948
|
+
l = {
|
|
3947
3949
|
n1: "",
|
|
3948
3950
|
n2: "",
|
|
3949
3951
|
n3: "",
|
|
@@ -4054,8 +4056,8 @@ function ta({
|
|
|
4054
4056
|
placeholder: s = "",
|
|
4055
4057
|
title: i = "",
|
|
4056
4058
|
error: o = "",
|
|
4057
|
-
hide:
|
|
4058
|
-
length:
|
|
4059
|
+
hide: c = !1,
|
|
4060
|
+
length: l = 6,
|
|
4059
4061
|
edit: _ = !0,
|
|
4060
4062
|
active: u = !0,
|
|
4061
4063
|
after: x = "",
|
|
@@ -4076,7 +4078,7 @@ function ta({
|
|
|
4076
4078
|
}
|
|
4077
4079
|
) : /* @__PURE__ */ a.jsxs("dl", { ...D, children: [
|
|
4078
4080
|
i && /* @__PURE__ */ a.jsx("dt", { children: i }),
|
|
4079
|
-
/* @__PURE__ */ a.jsx("dd", { children:
|
|
4081
|
+
/* @__PURE__ */ a.jsx("dd", { children: l > 0 && Array.from(Array(l).keys()).map((N) => /* @__PURE__ */ a.jsx(
|
|
4080
4082
|
"s",
|
|
4081
4083
|
{
|
|
4082
4084
|
active: (Number(N) === Number(p)) + "",
|
|
@@ -4105,8 +4107,8 @@ function Ft({
|
|
|
4105
4107
|
className: s,
|
|
4106
4108
|
placeholder: i,
|
|
4107
4109
|
max: o,
|
|
4108
|
-
min:
|
|
4109
|
-
view:
|
|
4110
|
+
min: c,
|
|
4111
|
+
view: l = "date",
|
|
4110
4112
|
onValue: _,
|
|
4111
4113
|
name: u,
|
|
4112
4114
|
value: x,
|
|
@@ -4131,7 +4133,7 @@ function Ft({
|
|
|
4131
4133
|
onValue: p,
|
|
4132
4134
|
date: m,
|
|
4133
4135
|
max: o,
|
|
4134
|
-
min:
|
|
4136
|
+
min: c,
|
|
4135
4137
|
className: s
|
|
4136
4138
|
},
|
|
4137
4139
|
(/* @__PURE__ */ new Date()).getTime()
|
|
@@ -4141,7 +4143,7 @@ function Ft({
|
|
|
4141
4143
|
const C = {};
|
|
4142
4144
|
C.field = "input", s && (C.className = s);
|
|
4143
4145
|
const D = {};
|
|
4144
|
-
return i && (D.placeholder = i), g ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsx(a.Fragment, { children:
|
|
4146
|
+
return i && (D.placeholder = i), g ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsx(a.Fragment, { children: l === "icon" ? /* @__PURE__ */ a.jsx(
|
|
4145
4147
|
"i",
|
|
4146
4148
|
{
|
|
4147
4149
|
"data-icon": "F043",
|
|
@@ -4167,10 +4169,10 @@ function Ft({
|
|
|
4167
4169
|
] }) });
|
|
4168
4170
|
}
|
|
4169
4171
|
const gc = ({ date: e, onValue: t, position: n, max: r, min: s, className: i }) => {
|
|
4170
|
-
let [o,
|
|
4171
|
-
y: parseInt(
|
|
4172
|
-
d: parseInt(
|
|
4173
|
-
m: parseInt(
|
|
4172
|
+
let [o, c] = h.useState(!0), l = /* @__PURE__ */ new Date(), _ = new Date(e), u = {
|
|
4173
|
+
y: parseInt(l.getFullYear()),
|
|
4174
|
+
d: parseInt(l.getDate()),
|
|
4175
|
+
m: parseInt(l.getMonth()) + 1
|
|
4174
4176
|
}, x = {
|
|
4175
4177
|
y: parseInt(_.getFullYear()),
|
|
4176
4178
|
d: parseInt(_.getDate()),
|
|
@@ -4184,7 +4186,7 @@ const gc = ({ date: e, onValue: t, position: n, max: r, min: s, className: i })
|
|
|
4184
4186
|
for (; y.getMonth() === p; )
|
|
4185
4187
|
C.push(y.getDate()), y.setDate(y.getDate() + 1);
|
|
4186
4188
|
let D = () => {
|
|
4187
|
-
|
|
4189
|
+
c(!1);
|
|
4188
4190
|
}, N = () => {
|
|
4189
4191
|
M(f.m + 1, f.y);
|
|
4190
4192
|
}, T = () => {
|
|
@@ -4281,8 +4283,8 @@ function Pt({
|
|
|
4281
4283
|
title: s,
|
|
4282
4284
|
error: i,
|
|
4283
4285
|
hide: o = !1,
|
|
4284
|
-
edit:
|
|
4285
|
-
show:
|
|
4286
|
+
edit: c = !0,
|
|
4287
|
+
show: l = !0,
|
|
4286
4288
|
active: _ = !0,
|
|
4287
4289
|
after: u = "",
|
|
4288
4290
|
view: x,
|
|
@@ -4292,7 +4294,7 @@ function Pt({
|
|
|
4292
4294
|
className: g
|
|
4293
4295
|
}) {
|
|
4294
4296
|
let [p, y] = h.useState(e), C = (T) => {
|
|
4295
|
-
if (!(
|
|
4297
|
+
if (!(c && _) || !f) return;
|
|
4296
4298
|
let E = f.split(".");
|
|
4297
4299
|
rt.Open(E[0], E[1], {
|
|
4298
4300
|
callback: (M) => {
|
|
@@ -4314,7 +4316,7 @@ function Pt({
|
|
|
4314
4316
|
{
|
|
4315
4317
|
...N,
|
|
4316
4318
|
onClick: C,
|
|
4317
|
-
edit: (
|
|
4319
|
+
edit: (c && _) + "",
|
|
4318
4320
|
"data-after": u,
|
|
4319
4321
|
children: p
|
|
4320
4322
|
}
|
|
@@ -4330,8 +4332,8 @@ function At({
|
|
|
4330
4332
|
title: s = "",
|
|
4331
4333
|
error: i = "",
|
|
4332
4334
|
hide: o = !1,
|
|
4333
|
-
edit:
|
|
4334
|
-
active:
|
|
4335
|
+
edit: c = !0,
|
|
4336
|
+
active: l = !0,
|
|
4335
4337
|
after: _ = "",
|
|
4336
4338
|
show: u = !0,
|
|
4337
4339
|
course: x = 100,
|
|
@@ -4371,11 +4373,11 @@ function At({
|
|
|
4371
4373
|
}).catch((j) => {
|
|
4372
4374
|
});
|
|
4373
4375
|
};
|
|
4374
|
-
if (!(
|
|
4376
|
+
if (!(c && l) && !u || !(c && l) && y) return "";
|
|
4375
4377
|
const w = {};
|
|
4376
4378
|
w.field = "input", g && (w.className = g);
|
|
4377
4379
|
const B = {};
|
|
4378
|
-
return B.inputMode = "decimal", r && (B.placeholder = r),
|
|
4380
|
+
return B.inputMode = "decimal", r && (B.placeholder = r), c && l && (B.edit = ""), /* @__PURE__ */ a.jsxs("dl", { ...w, children: [
|
|
4379
4381
|
s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "",
|
|
4380
4382
|
/* @__PURE__ */ a.jsx(
|
|
4381
4383
|
"dd",
|
|
@@ -4386,7 +4388,7 @@ function At({
|
|
|
4386
4388
|
onBlur: T,
|
|
4387
4389
|
onKeyDown: R,
|
|
4388
4390
|
onFocus: E,
|
|
4389
|
-
contentEditable:
|
|
4391
|
+
contentEditable: c && l ? z.ContentEditable : "false",
|
|
4390
4392
|
suppressContentEditableWarning: !0,
|
|
4391
4393
|
"data-after": _,
|
|
4392
4394
|
children: !r || e ? H.Money(e) : ""
|
|
@@ -4404,8 +4406,8 @@ function na({
|
|
|
4404
4406
|
error: s,
|
|
4405
4407
|
edit: i = !0,
|
|
4406
4408
|
active: o = !0,
|
|
4407
|
-
title:
|
|
4408
|
-
placeholder:
|
|
4409
|
+
title: c,
|
|
4410
|
+
placeholder: l = "",
|
|
4409
4411
|
className: _,
|
|
4410
4412
|
after: u
|
|
4411
4413
|
}) {
|
|
@@ -4432,8 +4434,8 @@ function na({
|
|
|
4432
4434
|
);
|
|
4433
4435
|
};
|
|
4434
4436
|
const g = {};
|
|
4435
|
-
return
|
|
4436
|
-
|
|
4437
|
+
return l && (g.placeholder = l), r === "icon" ? /* @__PURE__ */ a.jsx("i", { "data-icon": "F043", onClick: v }) : /* @__PURE__ */ a.jsxs("dl", { children: [
|
|
4438
|
+
c && /* @__PURE__ */ a.jsx("dt", { children: c }),
|
|
4437
4439
|
/* @__PURE__ */ a.jsx(
|
|
4438
4440
|
"dd",
|
|
4439
4441
|
{
|
|
@@ -4452,14 +4454,14 @@ const pc = (e) => {
|
|
|
4452
4454
|
}, o = {
|
|
4453
4455
|
y: parseInt(s.getFullYear()),
|
|
4454
4456
|
m: parseInt(s.getMonth()) + 1
|
|
4455
|
-
}, [
|
|
4457
|
+
}, [c, l] = h.useState(o.y), _ = () => {
|
|
4456
4458
|
n(!1);
|
|
4457
4459
|
}, u = () => {
|
|
4458
|
-
c
|
|
4460
|
+
l(c + 1);
|
|
4459
4461
|
}, x = () => {
|
|
4460
|
-
c
|
|
4462
|
+
l(c - 1);
|
|
4461
4463
|
}, f = (y) => {
|
|
4462
|
-
e.onValue(
|
|
4464
|
+
e.onValue(c + "-" + H.Number(2, y)), _();
|
|
4463
4465
|
}, m = (y) => i.y === o.y && i.m === y ? "_FFEB3B" : "", v = Array(12).fill("").map((y, C) => C + 1), g = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, p = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
|
|
4464
4466
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: t ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
4465
4467
|
/* @__PURE__ */ a.jsx(
|
|
@@ -4488,7 +4490,7 @@ const pc = (e) => {
|
|
|
4488
4490
|
children: /* @__PURE__ */ a.jsx("path", { d: "m15.09 4.594-7.646 6.553a1.126 1.126 0 0 0 0 1.708l7.647 6.552c.73.625 1.857.107 1.857-.854V5.447c0-.961-1.127-1.48-1.857-.853Z" })
|
|
4489
4491
|
}
|
|
4490
4492
|
) }),
|
|
4491
|
-
/* @__PURE__ */ a.jsx("h2", { children:
|
|
4493
|
+
/* @__PURE__ */ a.jsx("h2", { children: c }),
|
|
4492
4494
|
/* @__PURE__ */ a.jsx("i", { onClick: u, children: /* @__PURE__ */ a.jsx(
|
|
4493
4495
|
"svg",
|
|
4494
4496
|
{
|
|
@@ -4525,8 +4527,8 @@ function aa({
|
|
|
4525
4527
|
placeholder: s = "",
|
|
4526
4528
|
title: i = "",
|
|
4527
4529
|
error: o = "",
|
|
4528
|
-
hide:
|
|
4529
|
-
edit:
|
|
4530
|
+
hide: c = !1,
|
|
4531
|
+
edit: l = !0,
|
|
4530
4532
|
active: _ = !0,
|
|
4531
4533
|
after: u = "",
|
|
4532
4534
|
show: x = !0,
|
|
@@ -4537,7 +4539,7 @@ function aa({
|
|
|
4537
4539
|
isCopy: p = !0
|
|
4538
4540
|
}) {
|
|
4539
4541
|
let [y, C] = h.useState(!1);
|
|
4540
|
-
y =
|
|
4542
|
+
y = l ? !0 : y;
|
|
4541
4543
|
let D = (w) => {
|
|
4542
4544
|
n == null || n({ value: w.target.innerText, name: r });
|
|
4543
4545
|
}, N = (w) => {
|
|
@@ -4565,12 +4567,12 @@ function aa({
|
|
|
4565
4567
|
}).catch((B) => {
|
|
4566
4568
|
});
|
|
4567
4569
|
};
|
|
4568
|
-
if (
|
|
4569
|
-
if (!(
|
|
4570
|
+
if (c) return /* @__PURE__ */ a.jsx(a.Fragment, {});
|
|
4571
|
+
if (!(l && _) && !x) return "";
|
|
4570
4572
|
const M = {};
|
|
4571
4573
|
M.field = "notes", g && (M.className = g);
|
|
4572
4574
|
const R = {};
|
|
4573
|
-
s && (R.placeholder = s),
|
|
4575
|
+
s && (R.placeholder = s), l && _ && (R.edit = ""), y && (R.open = "");
|
|
4574
4576
|
const Z = (w) => {
|
|
4575
4577
|
z.Blur(w), v == null || v({ value: w.target.textContent.trim(), name: r });
|
|
4576
4578
|
};
|
|
@@ -4584,7 +4586,7 @@ function aa({
|
|
|
4584
4586
|
onBlur: Z,
|
|
4585
4587
|
onKeyDown: N,
|
|
4586
4588
|
onContextMenu: T,
|
|
4587
|
-
contentEditable:
|
|
4589
|
+
contentEditable: l && _ ? z.ContentEditable : "false",
|
|
4588
4590
|
suppressContentEditableWarning: !0,
|
|
4589
4591
|
...R,
|
|
4590
4592
|
children: t
|
|
@@ -4602,8 +4604,8 @@ function Ot({
|
|
|
4602
4604
|
edit: s,
|
|
4603
4605
|
title: i,
|
|
4604
4606
|
error: o,
|
|
4605
|
-
show:
|
|
4606
|
-
hide:
|
|
4607
|
+
show: c,
|
|
4608
|
+
hide: l,
|
|
4607
4609
|
value: _,
|
|
4608
4610
|
placeholder: u,
|
|
4609
4611
|
className: x,
|
|
@@ -4613,7 +4615,7 @@ function Ot({
|
|
|
4613
4615
|
before: g = "",
|
|
4614
4616
|
view: p
|
|
4615
4617
|
}) {
|
|
4616
|
-
s = s !== void 0 ? s : !0, n = n !== void 0 ? n : !0,
|
|
4618
|
+
s = s !== void 0 ? s : !0, n = n !== void 0 ? n : !0, l = !!(l && (_ === "" || _ === void 0)) && !(s && n), u = u !== void 0 ? u : "", r = r !== void 0 ? r : 99;
|
|
4617
4619
|
let C = !1, D = (w) => {
|
|
4618
4620
|
e == null || e({ value: w.target.textContent, name: m });
|
|
4619
4621
|
}, N = (w) => {
|
|
@@ -4639,7 +4641,7 @@ function Ot({
|
|
|
4639
4641
|
}, R = {};
|
|
4640
4642
|
R.field = "input", x && (R.className = x);
|
|
4641
4643
|
let Z = {};
|
|
4642
|
-
return s && n ? (Z.edit = "true", Z.contentEditable = z.ContentEditable) : Z.contentEditable = "false", Z.inputMode = "decimal", u && (Z.placeholder = u),
|
|
4644
|
+
return s && n ? (Z.edit = "true", Z.contentEditable = z.ContentEditable) : Z.contentEditable = "false", Z.inputMode = "decimal", u && (Z.placeholder = u), l ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...R, children: [
|
|
4643
4645
|
i && /* @__PURE__ */ a.jsx("dt", { children: i }),
|
|
4644
4646
|
g,
|
|
4645
4647
|
/* @__PURE__ */ a.jsx(
|
|
@@ -4667,8 +4669,8 @@ function ra({
|
|
|
4667
4669
|
placeholder: s = "",
|
|
4668
4670
|
className: i,
|
|
4669
4671
|
title: o,
|
|
4670
|
-
error:
|
|
4671
|
-
edit:
|
|
4672
|
+
error: c,
|
|
4673
|
+
edit: l = !0,
|
|
4672
4674
|
active: _ = !0,
|
|
4673
4675
|
reload: u = !1,
|
|
4674
4676
|
native: x = !1,
|
|
@@ -4715,7 +4717,7 @@ function ra({
|
|
|
4715
4717
|
onInput: C,
|
|
4716
4718
|
onKeyDown: D,
|
|
4717
4719
|
onBlur: T,
|
|
4718
|
-
contentEditable:
|
|
4720
|
+
contentEditable: l && _ ? z.ContentEditable : "false",
|
|
4719
4721
|
...M,
|
|
4720
4722
|
suppressContentEditableWarning: !0,
|
|
4721
4723
|
children: e
|
|
@@ -4723,7 +4725,7 @@ function ra({
|
|
|
4723
4725
|
),
|
|
4724
4726
|
v[0] && /* @__PURE__ */ a.jsx("i", { onClick: () => y(!p), children: p ? v[1] : v[0] }),
|
|
4725
4727
|
g,
|
|
4726
|
-
|
|
4728
|
+
c ? /* @__PURE__ */ a.jsx("em", { children: c }) : ""
|
|
4727
4729
|
] });
|
|
4728
4730
|
}
|
|
4729
4731
|
const xt = {
|
|
@@ -6116,15 +6118,15 @@ function Zt({
|
|
|
6116
6118
|
placeholder: s = "",
|
|
6117
6119
|
title: i = "",
|
|
6118
6120
|
error: o = "",
|
|
6119
|
-
hide:
|
|
6120
|
-
edit:
|
|
6121
|
+
hide: c = !1,
|
|
6122
|
+
edit: l = !0,
|
|
6121
6123
|
active: _ = !0,
|
|
6122
6124
|
after: u = "",
|
|
6123
6125
|
show: x = !0,
|
|
6124
6126
|
view: f,
|
|
6125
6127
|
className: m = ""
|
|
6126
6128
|
}) {
|
|
6127
|
-
|
|
6129
|
+
l = l !== void 0 ? l : !0, _ = _ !== void 0 ? _ : !0, c = !!(c && (e === "" || e === void 0)) && !(l && _), h.useRef(null);
|
|
6128
6130
|
let g = "+_(___) ___-__-__", p = !0, y = 0, C = (b, j) => {
|
|
6129
6131
|
let L = document.createRange(), G = window.getSelection();
|
|
6130
6132
|
L.setStart(j.childNodes[0], b), L.collapse(!0), G.removeAllRanges(), G.addRange(L), j.focus();
|
|
@@ -6172,7 +6174,7 @@ function Zt({
|
|
|
6172
6174
|
}, w = {};
|
|
6173
6175
|
w.field = "input", m && (w.className = m);
|
|
6174
6176
|
let B = {};
|
|
6175
|
-
return
|
|
6177
|
+
return l && _ ? (B.edit = "true", B.contentEditable = z.ContentEditable) : B.contentEditable = "false", s && (B.placeholder = s), u && (B.after = u), c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...w, children: [
|
|
6176
6178
|
i && /* @__PURE__ */ a.jsx("dt", { children: i }),
|
|
6177
6179
|
/* @__PURE__ */ a.jsx(
|
|
6178
6180
|
"dd",
|
|
@@ -6198,8 +6200,8 @@ const sa = ({
|
|
|
6198
6200
|
edit: s = !0,
|
|
6199
6201
|
active: i = !0,
|
|
6200
6202
|
value: o,
|
|
6201
|
-
onValue:
|
|
6202
|
-
maxLength:
|
|
6203
|
+
onValue: c,
|
|
6204
|
+
maxLength: l = 20
|
|
6203
6205
|
}) => {
|
|
6204
6206
|
let _ = 0, u = h.useRef({
|
|
6205
6207
|
textContent: o
|
|
@@ -6207,20 +6209,20 @@ const sa = ({
|
|
|
6207
6209
|
u.current.textContent.trim().length === 0 && (u.current.textContent = ""), clearTimeout(_), _ = setTimeout(
|
|
6208
6210
|
() => {
|
|
6209
6211
|
var C;
|
|
6210
|
-
return
|
|
6212
|
+
return c((C = u.current) == null ? void 0 : C.textContent);
|
|
6211
6213
|
},
|
|
6212
6214
|
n
|
|
6213
6215
|
);
|
|
6214
6216
|
}, f = () => {
|
|
6215
|
-
u.current && (u.current.textContent = ""),
|
|
6217
|
+
u.current && (u.current.textContent = ""), c("");
|
|
6216
6218
|
}, m = (C) => {
|
|
6217
|
-
|
|
6219
|
+
l && C.target.textContent.trim().length >= l && C.key !== "Backspace" && C.preventDefault(), C.key === "Enter" && C.preventDefault();
|
|
6218
6220
|
}, v = (C) => {
|
|
6219
6221
|
C.preventDefault(), navigator.clipboard.readText().then((D) => {
|
|
6220
|
-
if (
|
|
6222
|
+
if (l) {
|
|
6221
6223
|
let N = C.target.textContent.length;
|
|
6222
|
-
if (N >=
|
|
6223
|
-
|
|
6224
|
+
if (N >= l) return;
|
|
6225
|
+
l -= N, D = D.slice(0, l);
|
|
6224
6226
|
}
|
|
6225
6227
|
window.document.execCommand(
|
|
6226
6228
|
"insertText",
|
|
@@ -6263,8 +6265,8 @@ function Ut({
|
|
|
6263
6265
|
hide: s,
|
|
6264
6266
|
value: i = 0,
|
|
6265
6267
|
onValue: o,
|
|
6266
|
-
options:
|
|
6267
|
-
placeholder:
|
|
6268
|
+
options: c,
|
|
6269
|
+
placeholder: l = "",
|
|
6268
6270
|
className: _,
|
|
6269
6271
|
name: u,
|
|
6270
6272
|
after: x,
|
|
@@ -6273,10 +6275,10 @@ function Ut({
|
|
|
6273
6275
|
isReload: v = !1
|
|
6274
6276
|
}) {
|
|
6275
6277
|
var Z, w;
|
|
6276
|
-
const g = h.useRef(), [p, y] = h.useState(i), [C, D] = h.useState(
|
|
6278
|
+
const g = h.useRef(), [p, y] = h.useState(i), [C, D] = h.useState(c);
|
|
6277
6279
|
h.useEffect(() => {
|
|
6278
|
-
y(i), D(
|
|
6279
|
-
}, [i,
|
|
6280
|
+
y(i), D(c);
|
|
6281
|
+
}, [i, c]), s = !!(s && (i === 0 || ((Z = C == null ? void 0 : C[i]) == null ? void 0 : Z.n) === void 0)) && !(n && r);
|
|
6280
6282
|
let T = (B) => {
|
|
6281
6283
|
y(B), o && o({ value: B, name: u, reload: v });
|
|
6282
6284
|
}, E = (B) => {
|
|
@@ -6298,7 +6300,7 @@ function Ut({
|
|
|
6298
6300
|
)
|
|
6299
6301
|
);
|
|
6300
6302
|
}, M = { field: "select", className: _ }, R = { onClick: E };
|
|
6301
|
-
return
|
|
6303
|
+
return l && (R.placeholder = l), x && (R.after = x), n && r && (R.edit = ""), s ? "" : /* @__PURE__ */ a.jsxs("dl", { ...M, children: [
|
|
6302
6304
|
e && /* @__PURE__ */ a.jsx("dt", { children: e }),
|
|
6303
6305
|
/* @__PURE__ */ a.jsx("dd", { ...R, ref: g, children: (w = C == null ? void 0 : C[p]) == null ? void 0 : w.n }),
|
|
6304
6306
|
Object.keys(C || {}).length !== 0 && /* @__PURE__ */ a.jsx("s", { children: /* @__PURE__ */ a.jsx(
|
|
@@ -6325,17 +6327,17 @@ const xc = ({
|
|
|
6325
6327
|
options: s,
|
|
6326
6328
|
order: i
|
|
6327
6329
|
}) => {
|
|
6328
|
-
let [o,
|
|
6329
|
-
|
|
6330
|
+
let [o, c] = h.useState(!0), l = () => {
|
|
6331
|
+
c(!1);
|
|
6330
6332
|
}, _ = (f) => {
|
|
6331
|
-
|
|
6333
|
+
c(!1), e(f);
|
|
6332
6334
|
}, u = window.innerHeight - t.y + t.height < 320 ? t.y - 312 : t.y + 33, x = window.innerWidth - t.x < 265 ? t.x - 235 : t.x;
|
|
6333
6335
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: o ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
6334
6336
|
/* @__PURE__ */ a.jsx(
|
|
6335
6337
|
"div",
|
|
6336
6338
|
{
|
|
6337
6339
|
"data-select": "backdrop",
|
|
6338
|
-
onClick:
|
|
6340
|
+
onClick: l
|
|
6339
6341
|
},
|
|
6340
6342
|
(/* @__PURE__ */ new Date()).getTime()
|
|
6341
6343
|
),
|
|
@@ -6377,7 +6379,7 @@ const xc = ({
|
|
|
6377
6379
|
) : ""
|
|
6378
6380
|
) });
|
|
6379
6381
|
function Gt(e) {
|
|
6380
|
-
let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, o = !!(e.hide && (e.default === "" || e.options[e.default] === void 0)) && !(r && s),
|
|
6382
|
+
let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, o = !!(e.hide && (e.default === "" || e.options[e.default] === void 0)) && !(r && s), c = e.placeholder !== void 0 ? e.placeholder : "", l = (m) => {
|
|
6381
6383
|
u(e.options[m]), e.onValue({ value: m, name: e.name });
|
|
6382
6384
|
}, [_, u] = h.useState(
|
|
6383
6385
|
e.default !== void 0 ? e.options[e.default] : e.default
|
|
@@ -6390,7 +6392,7 @@ function Gt(e) {
|
|
|
6390
6392
|
Cc,
|
|
6391
6393
|
{
|
|
6392
6394
|
parent: v,
|
|
6393
|
-
onValue:
|
|
6395
|
+
onValue: l,
|
|
6394
6396
|
view: e.view,
|
|
6395
6397
|
options: e.options
|
|
6396
6398
|
},
|
|
@@ -6399,7 +6401,7 @@ function Gt(e) {
|
|
|
6399
6401
|
);
|
|
6400
6402
|
};
|
|
6401
6403
|
const f = {};
|
|
6402
|
-
return
|
|
6404
|
+
return c && (f.placeholder = c), o ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs(
|
|
6403
6405
|
"dl",
|
|
6404
6406
|
{
|
|
6405
6407
|
"data-form": "select",
|
|
@@ -6422,9 +6424,9 @@ function Gt(e) {
|
|
|
6422
6424
|
const Cc = ({ onValue: e, parent: t, view: n, options: r }) => {
|
|
6423
6425
|
let [s, i] = h.useState(!0), o = () => {
|
|
6424
6426
|
i(!1);
|
|
6425
|
-
},
|
|
6427
|
+
}, c = (x) => {
|
|
6426
6428
|
i(!1), e(x);
|
|
6427
|
-
},
|
|
6429
|
+
}, l = Object.keys(r).length * 36, _ = window.innerHeight - t.y + t.height < l ? t.y - (l - 33) : t.y + 33, u = window.innerWidth - t.x < 265 ? t.x - 235 : t.x;
|
|
6428
6430
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: s ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
6429
6431
|
/* @__PURE__ */ a.jsx(
|
|
6430
6432
|
"div",
|
|
@@ -6447,7 +6449,7 @@ const Cc = ({ onValue: e, parent: t, view: n, options: r }) => {
|
|
|
6447
6449
|
"li",
|
|
6448
6450
|
{
|
|
6449
6451
|
onClick: () => {
|
|
6450
|
-
|
|
6452
|
+
c(x);
|
|
6451
6453
|
},
|
|
6452
6454
|
children: r[x]
|
|
6453
6455
|
},
|
|
@@ -6465,8 +6467,8 @@ function Tt({
|
|
|
6465
6467
|
placeholder: s = "",
|
|
6466
6468
|
title: i = "",
|
|
6467
6469
|
error: o = "",
|
|
6468
|
-
hide:
|
|
6469
|
-
edit:
|
|
6470
|
+
hide: c = !1,
|
|
6471
|
+
edit: l = !0,
|
|
6470
6472
|
show: _ = !0,
|
|
6471
6473
|
active: u = !0,
|
|
6472
6474
|
after: x = "",
|
|
@@ -6483,9 +6485,9 @@ function Tt({
|
|
|
6483
6485
|
{
|
|
6484
6486
|
title: i,
|
|
6485
6487
|
show: _,
|
|
6486
|
-
hide:
|
|
6488
|
+
hide: c,
|
|
6487
6489
|
view: f,
|
|
6488
|
-
edit:
|
|
6490
|
+
edit: l,
|
|
6489
6491
|
active: u,
|
|
6490
6492
|
value: t,
|
|
6491
6493
|
onValue: n,
|
|
@@ -6500,9 +6502,9 @@ function Tt({
|
|
|
6500
6502
|
{
|
|
6501
6503
|
title: i,
|
|
6502
6504
|
show: _,
|
|
6503
|
-
hide:
|
|
6505
|
+
hide: c,
|
|
6504
6506
|
view: f,
|
|
6505
|
-
edit:
|
|
6507
|
+
edit: l,
|
|
6506
6508
|
active: u,
|
|
6507
6509
|
value: parseInt(t || "0"),
|
|
6508
6510
|
onValue: n,
|
|
@@ -6518,9 +6520,9 @@ function Tt({
|
|
|
6518
6520
|
{
|
|
6519
6521
|
title: i,
|
|
6520
6522
|
show: _,
|
|
6521
|
-
hide:
|
|
6523
|
+
hide: c,
|
|
6522
6524
|
view: f,
|
|
6523
|
-
edit:
|
|
6525
|
+
edit: l,
|
|
6524
6526
|
active: u,
|
|
6525
6527
|
value: t,
|
|
6526
6528
|
onValue: n,
|
|
@@ -6536,9 +6538,9 @@ function Tt({
|
|
|
6536
6538
|
{
|
|
6537
6539
|
title: i,
|
|
6538
6540
|
show: _,
|
|
6539
|
-
hide:
|
|
6541
|
+
hide: c,
|
|
6540
6542
|
view: f,
|
|
6541
|
-
edit:
|
|
6543
|
+
edit: l,
|
|
6542
6544
|
active: u,
|
|
6543
6545
|
value: t,
|
|
6544
6546
|
onValue: n,
|
|
@@ -6553,9 +6555,9 @@ function Tt({
|
|
|
6553
6555
|
{
|
|
6554
6556
|
title: i,
|
|
6555
6557
|
show: _,
|
|
6556
|
-
hide:
|
|
6558
|
+
hide: c,
|
|
6557
6559
|
view: f,
|
|
6558
|
-
edit:
|
|
6560
|
+
edit: l,
|
|
6559
6561
|
active: u,
|
|
6560
6562
|
value: t,
|
|
6561
6563
|
onValue: n,
|
|
@@ -6570,9 +6572,9 @@ function Tt({
|
|
|
6570
6572
|
{
|
|
6571
6573
|
title: i,
|
|
6572
6574
|
show: _,
|
|
6573
|
-
hide:
|
|
6575
|
+
hide: c,
|
|
6574
6576
|
view: f,
|
|
6575
|
-
edit:
|
|
6577
|
+
edit: l,
|
|
6576
6578
|
active: u,
|
|
6577
6579
|
value: t,
|
|
6578
6580
|
onValue: n,
|
|
@@ -6587,9 +6589,9 @@ function Tt({
|
|
|
6587
6589
|
{
|
|
6588
6590
|
title: i,
|
|
6589
6591
|
show: _,
|
|
6590
|
-
hide:
|
|
6592
|
+
hide: c,
|
|
6591
6593
|
view: f,
|
|
6592
|
-
edit:
|
|
6594
|
+
edit: l,
|
|
6593
6595
|
active: u,
|
|
6594
6596
|
value: t,
|
|
6595
6597
|
onValue: n,
|
|
@@ -6604,9 +6606,9 @@ function Tt({
|
|
|
6604
6606
|
{
|
|
6605
6607
|
title: i,
|
|
6606
6608
|
show: _,
|
|
6607
|
-
hide:
|
|
6609
|
+
hide: c,
|
|
6608
6610
|
view: f,
|
|
6609
|
-
edit:
|
|
6611
|
+
edit: l,
|
|
6610
6612
|
active: u,
|
|
6611
6613
|
value: t,
|
|
6612
6614
|
onValue: n,
|
|
@@ -6627,8 +6629,8 @@ function ia({
|
|
|
6627
6629
|
title: s = "",
|
|
6628
6630
|
error: i = "",
|
|
6629
6631
|
hide: o = !1,
|
|
6630
|
-
edit:
|
|
6631
|
-
active:
|
|
6632
|
+
edit: c = !0,
|
|
6633
|
+
active: l = !0,
|
|
6632
6634
|
after: _ = "",
|
|
6633
6635
|
show: u = !0,
|
|
6634
6636
|
view: x,
|
|
@@ -6637,7 +6639,7 @@ function ia({
|
|
|
6637
6639
|
className: v = ""
|
|
6638
6640
|
}) {
|
|
6639
6641
|
let g = !!(o && (e === "" || e === void 0));
|
|
6640
|
-
if (!(
|
|
6642
|
+
if (!(c && l) && !u || !(c && l) && g) return "";
|
|
6641
6643
|
let p = (T) => {
|
|
6642
6644
|
t && t({ value: T.target.innerText, name: n });
|
|
6643
6645
|
}, y = (T) => {
|
|
@@ -6664,7 +6666,7 @@ function ia({
|
|
|
6664
6666
|
onPaste: C,
|
|
6665
6667
|
onBlur: y,
|
|
6666
6668
|
onInput: p,
|
|
6667
|
-
contentEditable:
|
|
6669
|
+
contentEditable: c && l ? z.ContentEditable : "false",
|
|
6668
6670
|
...N,
|
|
6669
6671
|
suppressContentEditableWarning: !0,
|
|
6670
6672
|
children: e
|
|
@@ -6681,8 +6683,8 @@ function oa({
|
|
|
6681
6683
|
title: s = "",
|
|
6682
6684
|
error: i = "",
|
|
6683
6685
|
hide: o = !1,
|
|
6684
|
-
edit:
|
|
6685
|
-
active:
|
|
6686
|
+
edit: c = !0,
|
|
6687
|
+
active: l = !0,
|
|
6686
6688
|
after: _ = "",
|
|
6687
6689
|
show: u = !0,
|
|
6688
6690
|
view: x,
|
|
@@ -6690,7 +6692,7 @@ function oa({
|
|
|
6690
6692
|
className: m = ""
|
|
6691
6693
|
}) {
|
|
6692
6694
|
let v = !!(o && (e === "" || e === void 0)), g = H.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), p = h.useRef(null);
|
|
6693
|
-
if (!(
|
|
6695
|
+
if (!(c && l) && !u || !(c && l) && v) return "";
|
|
6694
6696
|
let y = (E) => {
|
|
6695
6697
|
p.current.textContent = E, t && t({ value: E, name: n });
|
|
6696
6698
|
}, C = (E) => {
|
|
@@ -6730,7 +6732,7 @@ const jc = ({ positions: e, onSave: t, onValue: n, date: r }) => {
|
|
|
6730
6732
|
let s = r.split(":"), i = {
|
|
6731
6733
|
h: H.Number(2, s[0]),
|
|
6732
6734
|
m: H.Number(2, s[1])
|
|
6733
|
-
}, o = "hour", [
|
|
6735
|
+
}, o = "hour", [c, l] = h.useState({}), _ = !1, u = 0, x = 0, f = {
|
|
6734
6736
|
body: h.useRef(null),
|
|
6735
6737
|
time: h.useRef(null),
|
|
6736
6738
|
hour: h.useRef(null),
|
|
@@ -6738,7 +6740,7 @@ const jc = ({ positions: e, onSave: t, onValue: n, date: r }) => {
|
|
|
6738
6740
|
hourText: h.useRef(null)
|
|
6739
6741
|
};
|
|
6740
6742
|
h.useEffect(() => {
|
|
6741
|
-
|
|
6743
|
+
l(f.body.current.getBoundingClientRect()), f.hour.current.style.transform = "rotate(" + i.h * 15 + "deg)", f.time.current.style.transform = "rotate(" + i.m * 6 + "deg)";
|
|
6742
6744
|
}, [f.body, f.hour, f.time, i.m, i.h]);
|
|
6743
6745
|
let m = () => {
|
|
6744
6746
|
_ = !0;
|
|
@@ -6747,8 +6749,8 @@ const jc = ({ positions: e, onSave: t, onValue: n, date: r }) => {
|
|
|
6747
6749
|
}, g = (E) => {
|
|
6748
6750
|
if (_) {
|
|
6749
6751
|
let R = Math.atan2(
|
|
6750
|
-
E.pageX - (
|
|
6751
|
-
E.pageY - (
|
|
6752
|
+
E.pageX - (c.x + 78),
|
|
6753
|
+
E.pageY - (c.y + 78)
|
|
6752
6754
|
) * (180 / Math.PI) * -1 + 180;
|
|
6753
6755
|
f[o].current.style.transform = "rotate(" + R + "deg)", o === "hour" ? (i = {
|
|
6754
6756
|
...i,
|
|
@@ -6861,15 +6863,15 @@ function la({
|
|
|
6861
6863
|
className: s,
|
|
6862
6864
|
name: i,
|
|
6863
6865
|
text: o,
|
|
6864
|
-
id:
|
|
6865
|
-
reload:
|
|
6866
|
+
id: c,
|
|
6867
|
+
reload: l
|
|
6866
6868
|
}) {
|
|
6867
6869
|
const [_, u] = h.useState(!!n), x = t || r;
|
|
6868
6870
|
h.useEffect(() => {
|
|
6869
6871
|
u(!!n);
|
|
6870
6872
|
}, [n]);
|
|
6871
6873
|
let f = () => {
|
|
6872
|
-
e && e({ value: _ ? 0 : 1, name: i, id:
|
|
6874
|
+
e && e({ value: _ ? 0 : 1, name: i, id: c }), u(!_);
|
|
6873
6875
|
};
|
|
6874
6876
|
const m = {};
|
|
6875
6877
|
return m.field = "check", s && (m.className = s), /* @__PURE__ */ a.jsxs("dl", { ...m, children: [
|
|
@@ -6891,15 +6893,15 @@ const kc = ({ label: e, onValue: t, value: n, name: r, item: s }) => {
|
|
|
6891
6893
|
h.useEffect(() => {
|
|
6892
6894
|
o(!!n);
|
|
6893
6895
|
}, [n]);
|
|
6894
|
-
let
|
|
6895
|
-
let
|
|
6896
|
-
o(
|
|
6896
|
+
let c = () => {
|
|
6897
|
+
let l = parseInt(i) === 0 ? 1 : 0;
|
|
6898
|
+
o(l), t({ value: l, name: r, key: s, item: s });
|
|
6897
6899
|
};
|
|
6898
6900
|
return /* @__PURE__ */ a.jsx(
|
|
6899
6901
|
"div",
|
|
6900
6902
|
{
|
|
6901
6903
|
role: "switch",
|
|
6902
|
-
onClick:
|
|
6904
|
+
onClick: c,
|
|
6903
6905
|
"aria-checked": `${i ? "true" : "false"}`
|
|
6904
6906
|
}
|
|
6905
6907
|
);
|
|
@@ -6909,8 +6911,8 @@ const kc = ({ label: e, onValue: t, value: n, name: r, item: s }) => {
|
|
|
6909
6911
|
i(!!t);
|
|
6910
6912
|
}, [t]);
|
|
6911
6913
|
let o = () => {
|
|
6912
|
-
let
|
|
6913
|
-
i(
|
|
6914
|
+
let c = parseInt(s) === 0 ? 1 : 0;
|
|
6915
|
+
i(c), e({ value: c, name: n, key: r, item: r });
|
|
6914
6916
|
};
|
|
6915
6917
|
return /* @__PURE__ */ a.jsx(
|
|
6916
6918
|
"div",
|
|
@@ -6929,8 +6931,8 @@ function da({
|
|
|
6929
6931
|
title: s = "",
|
|
6930
6932
|
error: i = "",
|
|
6931
6933
|
hide: o = !1,
|
|
6932
|
-
edit:
|
|
6933
|
-
active:
|
|
6934
|
+
edit: c = !0,
|
|
6935
|
+
active: l = !0,
|
|
6934
6936
|
after: _ = "",
|
|
6935
6937
|
show: u = !0,
|
|
6936
6938
|
view: x,
|
|
@@ -6953,7 +6955,7 @@ function da({
|
|
|
6953
6955
|
p.splice(B, 1), p.length === 0 && p.push(""), y([...p]), m !== void 0 && m({ value: p.join(g), name: n });
|
|
6954
6956
|
}, N = !!(o && (e === "" || e === void 0)), T = (B) => {
|
|
6955
6957
|
};
|
|
6956
|
-
if (!(
|
|
6958
|
+
if (!(c && l) && !u || !(c && l) && N) return "";
|
|
6957
6959
|
const E = {};
|
|
6958
6960
|
E.field = "group", v && (E.className = v);
|
|
6959
6961
|
const M = (B, b) => {
|
|
@@ -6994,7 +6996,7 @@ function da({
|
|
|
6994
6996
|
name: n,
|
|
6995
6997
|
placeholder: r,
|
|
6996
6998
|
onPaste: T,
|
|
6997
|
-
contentEditable:
|
|
6999
|
+
contentEditable: c && l ? z.ContentEditable : "false",
|
|
6998
7000
|
onKeyDown: Z,
|
|
6999
7001
|
onBlur: (j) => M(j, b),
|
|
7000
7002
|
suppressContentEditableWarning: !0,
|
|
@@ -7038,8 +7040,8 @@ function _a({
|
|
|
7038
7040
|
title: s,
|
|
7039
7041
|
error: i,
|
|
7040
7042
|
hide: o = !1,
|
|
7041
|
-
edit:
|
|
7042
|
-
show:
|
|
7043
|
+
edit: c = !0,
|
|
7044
|
+
show: l = !0,
|
|
7043
7045
|
active: _ = !0,
|
|
7044
7046
|
outFormat: u = "",
|
|
7045
7047
|
after: x = "",
|
|
@@ -7050,7 +7052,7 @@ function _a({
|
|
|
7050
7052
|
className: p
|
|
7051
7053
|
}) {
|
|
7052
7054
|
const [y, C] = h.useState(yc(e)), D = (E) => {
|
|
7053
|
-
if (!(
|
|
7055
|
+
if (!(c && _) || !m) return;
|
|
7054
7056
|
let M = m.split(".");
|
|
7055
7057
|
rt.Open(M[0], M[1], {
|
|
7056
7058
|
callback: (R) => {
|
|
@@ -7101,7 +7103,7 @@ function _a({
|
|
|
7101
7103
|
{
|
|
7102
7104
|
...T,
|
|
7103
7105
|
onClick: D,
|
|
7104
|
-
edit: (
|
|
7106
|
+
edit: (c && _) + "",
|
|
7105
7107
|
"data-after": x,
|
|
7106
7108
|
children: Object.keys(y).map((E) => {
|
|
7107
7109
|
var M;
|
|
@@ -7120,8 +7122,8 @@ function jn({
|
|
|
7120
7122
|
title: s = "",
|
|
7121
7123
|
link: i = "",
|
|
7122
7124
|
error: o = "",
|
|
7123
|
-
hide:
|
|
7124
|
-
edit:
|
|
7125
|
+
hide: c = !1,
|
|
7126
|
+
edit: l = !0,
|
|
7125
7127
|
active: _ = !0,
|
|
7126
7128
|
after: u = "",
|
|
7127
7129
|
show: x = !0,
|
|
@@ -7131,8 +7133,8 @@ function jn({
|
|
|
7131
7133
|
className: g = ""
|
|
7132
7134
|
}) {
|
|
7133
7135
|
const p = h.useId();
|
|
7134
|
-
let y = !!(
|
|
7135
|
-
if (!(
|
|
7136
|
+
let y = !!(c && (e === "" || e === void 0)), [C, D] = h.useState(i);
|
|
7137
|
+
if (!(l && _) && !x || !(l && _) && y) return "";
|
|
7136
7138
|
const N = async (E) => {
|
|
7137
7139
|
if (f) {
|
|
7138
7140
|
let M = wc(E, f, e || "default");
|
|
@@ -7172,8 +7174,8 @@ const bc = ({ children: e, onFiles: t }) => {
|
|
|
7172
7174
|
}, n.highlight = (s) => {
|
|
7173
7175
|
}, n.unhighlight = (s) => {
|
|
7174
7176
|
}, n.onHandleDrop = (s) => {
|
|
7175
|
-
let
|
|
7176
|
-
t && t(
|
|
7177
|
+
let c = s.dataTransfer.files[0];
|
|
7178
|
+
t && t(c);
|
|
7177
7179
|
};
|
|
7178
7180
|
let r = n.current;
|
|
7179
7181
|
["dragenter", "dragover", "dragleave", "drop"].forEach((s) => {
|
|
@@ -7194,8 +7196,8 @@ const bc = ({ children: e, onFiles: t }) => {
|
|
|
7194
7196
|
const i = s.getContext("2d"), o = new Image();
|
|
7195
7197
|
o.addEventListener("load", () => {
|
|
7196
7198
|
i.drawImage(o, 0, 0, o.width, o.height);
|
|
7197
|
-
const
|
|
7198
|
-
return s.remove(),
|
|
7199
|
+
const c = t === "png" ? s.toDataURL() : s.toDataURL(`image/${t}`), l = Sc(c, n);
|
|
7200
|
+
return s.remove(), l;
|
|
7199
7201
|
}), o.src = URL.createObjectURL(e);
|
|
7200
7202
|
};
|
|
7201
7203
|
function Sc(e, t) {
|
|
@@ -7288,8 +7290,8 @@ function Nc({
|
|
|
7288
7290
|
format: s = "+_(___) ___-__-__",
|
|
7289
7291
|
placeholder: i = "",
|
|
7290
7292
|
title: o = "",
|
|
7291
|
-
error:
|
|
7292
|
-
hide:
|
|
7293
|
+
error: c = "",
|
|
7294
|
+
hide: l = !1,
|
|
7293
7295
|
edit: _ = !0,
|
|
7294
7296
|
active: u = !0,
|
|
7295
7297
|
after: x = "",
|
|
@@ -7297,7 +7299,7 @@ function Nc({
|
|
|
7297
7299
|
view: m,
|
|
7298
7300
|
className: v = ""
|
|
7299
7301
|
}) {
|
|
7300
|
-
_ = _ !== void 0 ? _ : !0, u = u !== void 0 ? u : !0,
|
|
7302
|
+
_ = _ !== void 0 ? _ : !0, u = u !== void 0 ? u : !0, l = !!(l && (e === "" || e === void 0)) && !(_ && u), h.useRef(null);
|
|
7301
7303
|
let p = s, y = !0, C = 0, D = (j, L) => {
|
|
7302
7304
|
let G = document.createRange(), ee = window.getSelection();
|
|
7303
7305
|
G.setStart(L.childNodes[0], j), G.collapse(!0), ee.removeAllRanges(), ee.addRange(G), L.focus();
|
|
@@ -7339,7 +7341,7 @@ function Nc({
|
|
|
7339
7341
|
}, B = {};
|
|
7340
7342
|
B.field = "input", v && (B.className = v);
|
|
7341
7343
|
let b = {};
|
|
7342
|
-
return _ && u ? (b.edit = "true", b.contentEditable = z.ContentEditable) : b.contentEditable = "false", i && (b.placeholder = i), x && (b.after = x),
|
|
7344
|
+
return _ && u ? (b.edit = "true", b.contentEditable = z.ContentEditable) : b.contentEditable = "false", i && (b.placeholder = i), x && (b.after = x), l ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...B, children: [
|
|
7343
7345
|
o && /* @__PURE__ */ a.jsx("dt", { children: o }),
|
|
7344
7346
|
/* @__PURE__ */ a.jsx(
|
|
7345
7347
|
"dd",
|
|
@@ -7354,7 +7356,7 @@ function Nc({
|
|
|
7354
7356
|
children: M.q
|
|
7355
7357
|
}
|
|
7356
7358
|
),
|
|
7357
|
-
|
|
7359
|
+
c && /* @__PURE__ */ a.jsx("em", { children: c })
|
|
7358
7360
|
] });
|
|
7359
7361
|
}
|
|
7360
7362
|
const t_ = {
|
|
@@ -7419,8 +7421,8 @@ const n_ = { Spinner: Bc, Inline: $c }, Fc = "_ph_1wjxu_1", Pc = "_e_1wjxu_5", k
|
|
|
7419
7421
|
button: s,
|
|
7420
7422
|
page: i,
|
|
7421
7423
|
tabs: o = [],
|
|
7422
|
-
className:
|
|
7423
|
-
modules:
|
|
7424
|
+
className: c = "",
|
|
7425
|
+
modules: l,
|
|
7424
7426
|
loading: _
|
|
7425
7427
|
}) => {
|
|
7426
7428
|
const [u] = Nn(
|
|
@@ -7429,7 +7431,7 @@ const n_ = { Spinner: Bc, Inline: $c }, Fc = "_ph_1wjxu_1", Pc = "_e_1wjxu_5", k
|
|
|
7429
7431
|
return h.useEffect(() => {
|
|
7430
7432
|
f(!0);
|
|
7431
7433
|
}, []), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
7432
|
-
/* @__PURE__ */ a.jsxs("div", { className: [kn.ph,
|
|
7434
|
+
/* @__PURE__ */ a.jsxs("div", { className: [kn.ph, c].join(" "), children: [
|
|
7433
7435
|
/* @__PURE__ */ a.jsx(Uc, { title: e, affter: t }),
|
|
7434
7436
|
/* @__PURE__ */ a.jsx("div", { className: kn.e }),
|
|
7435
7437
|
/* @__PURE__ */ a.jsx(Zc, { button: s })
|
|
@@ -7441,7 +7443,7 @@ const n_ = { Spinner: Bc, Inline: $c }, Fc = "_ph_1wjxu_1", Pc = "_e_1wjxu_5", k
|
|
|
7441
7443
|
{
|
|
7442
7444
|
onDynamicURL: n,
|
|
7443
7445
|
loading: _,
|
|
7444
|
-
m:
|
|
7446
|
+
m: l,
|
|
7445
7447
|
t: u
|
|
7446
7448
|
}
|
|
7447
7449
|
)
|
|
@@ -7478,9 +7480,9 @@ function Wc({ className: e, placeholder: t }) {
|
|
|
7478
7480
|
}, r = (o) => {
|
|
7479
7481
|
o.key === "Enter" && o.preventDefault();
|
|
7480
7482
|
}, s = (o) => {
|
|
7481
|
-
o.preventDefault(), navigator.clipboard.readText().then((
|
|
7482
|
-
window.document.execCommand("insertText", !1,
|
|
7483
|
-
}).catch((
|
|
7483
|
+
o.preventDefault(), navigator.clipboard.readText().then((c) => {
|
|
7484
|
+
window.document.execCommand("insertText", !1, c);
|
|
7485
|
+
}).catch((c) => {
|
|
7484
7486
|
});
|
|
7485
7487
|
};
|
|
7486
7488
|
const i = {};
|
|
@@ -7497,11 +7499,11 @@ function Wc({ className: e, placeholder: t }) {
|
|
|
7497
7499
|
);
|
|
7498
7500
|
}
|
|
7499
7501
|
function zc(e, t, n) {
|
|
7500
|
-
let r = [], s = 1, i = 0, o = {},
|
|
7501
|
-
return o[s] = [], e.forEach((
|
|
7502
|
-
|
|
7503
|
-
}), r.forEach((
|
|
7504
|
-
i++, i <=
|
|
7502
|
+
let r = [], s = 1, i = 0, o = {}, c = 50;
|
|
7503
|
+
return o[s] = [], e.forEach((l) => {
|
|
7504
|
+
l.text.toLowerCase().indexOf(t) > -1 && r.push(l.id);
|
|
7505
|
+
}), r.forEach((l) => {
|
|
7506
|
+
i++, i <= c || (s++, i = 1, o[s] = []), o[s].push(n[l]);
|
|
7505
7507
|
}), o;
|
|
7506
7508
|
}
|
|
7507
7509
|
function Kc(e) {
|
|
@@ -7718,16 +7720,16 @@ function ad(e) {
|
|
|
7718
7720
|
ue.reset !== void 0 && ue.reset(e);
|
|
7719
7721
|
}
|
|
7720
7722
|
function rd(e, t, n, r) {
|
|
7721
|
-
let s = [], i = 1, o = 0,
|
|
7722
|
-
return
|
|
7723
|
+
let s = [], i = 1, o = 0, c = {}, l = 50;
|
|
7724
|
+
return c[i] = [], r === !0 && (Object.keys(t).forEach((_) => {
|
|
7723
7725
|
Number.parseInt(t[_]) !== 999 && (e = e.filter(
|
|
7724
7726
|
(u) => Number.parseInt(u[_]) === Number.parseInt(t[_])
|
|
7725
7727
|
));
|
|
7726
7728
|
}), ma(e.length)), e.forEach((_) => {
|
|
7727
7729
|
s.push(_.id);
|
|
7728
7730
|
}), s.forEach((_) => {
|
|
7729
|
-
o++, o <=
|
|
7730
|
-
}),
|
|
7731
|
+
o++, o <= l || (i++, o = 1, c[i] = []), c[i].push(n[_]);
|
|
7732
|
+
}), c;
|
|
7731
7733
|
}
|
|
7732
7734
|
function ma(e) {
|
|
7733
7735
|
ue.count(e);
|
|
@@ -7938,15 +7940,15 @@ function pd(e) {
|
|
|
7938
7940
|
s.push({ page: 1 }), s.push({ text: "..." });
|
|
7939
7941
|
}, o = () => {
|
|
7940
7942
|
s.push({ text: "..." }), s.push({ page: r });
|
|
7941
|
-
},
|
|
7942
|
-
for (let u =
|
|
7943
|
+
}, c = (l, _) => {
|
|
7944
|
+
for (let u = l; u < _; u++)
|
|
7943
7945
|
s.push({ page: u });
|
|
7944
7946
|
};
|
|
7945
|
-
return r < t * 2 + 6 ?
|
|
7947
|
+
return r < t * 2 + 6 ? c(1, r + 1) : n < t * 2 + 1 ? (c(1, t * 2 + 4), o()) : n > r - t * 2 ? (t = r > 1e4 ? 1 : t, i(), c(r - t * 2 - 2, r + 1)) : (t = r > 1e4 ? 1 : t, i(), c(n - t, n + t + 1), o()), s.length === 1 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("div", { className: ha.p, children: [
|
|
7946
7948
|
/* @__PURE__ */ a.jsx("i", { onClick: () => e.onChangePage(n - 1), children: /* @__PURE__ */ a.jsx("svg", { viewBox: "0 0 24 24", children: /* @__PURE__ */ a.jsx("path", { d: "M8.19486 5.40705C8.52237 4.96235 9.14837 4.86736 9.59306 5.19488C9.93847 5.44927 10.2668 5.70372 10.5528 5.92689C11.1236 6.3724 11.8882 6.98573 12.6556 7.65208C13.4181 8.31412 14.2064 9.04815 14.8119 9.73344C15.1136 10.0749 15.3911 10.4279 15.5986 10.7721C15.7895 11.0888 16 11.524 16 12.0001C16 12.4762 15.7895 12.9115 15.5986 13.2282C15.3911 13.5724 15.1136 13.9253 14.8119 14.2668C14.2064 14.9521 13.4181 15.6861 12.6556 16.3482C11.8882 17.0145 11.1236 17.6278 10.5528 18.0734C10.2668 18.2965 9.93847 18.551 9.59307 18.8054C9.14837 19.1329 8.52237 19.0379 8.19486 18.5932C8.0632 18.4144 7.99983 18.2064 8.00001 18.0002L8 12.0001L8 6.00007C7.99983 5.79387 8.0632 5.58581 8.19486 5.40705Z" }) }) }),
|
|
7947
|
-
s.map((
|
|
7949
|
+
s.map((l, _) => {
|
|
7948
7950
|
const u = {};
|
|
7949
|
-
return
|
|
7951
|
+
return l.page && (u.onClick = () => e.onChangePage(l.page)), l.page === e.page && (u.active = ""), /* @__PURE__ */ Sn("span", { ...u, key: _ }, l.page || l.text);
|
|
7950
7952
|
}),
|
|
7951
7953
|
/* @__PURE__ */ a.jsx("i", { onClick: () => e.onChangePage(n + 1), children: /* @__PURE__ */ a.jsx("svg", { viewBox: "0 0 24 24", children: /* @__PURE__ */ a.jsx("path", { d: "M8.19486 5.40705C8.52237 4.96235 9.14837 4.86736 9.59306 5.19488C9.93847 5.44927 10.2668 5.70372 10.5528 5.92689C11.1236 6.3724 11.8882 6.98573 12.6556 7.65208C13.4181 8.31412 14.2064 9.04815 14.8119 9.73344C15.1136 10.0749 15.3911 10.4279 15.5986 10.7721C15.7895 11.0888 16 11.524 16 12.0001C16 12.4762 15.7895 12.9115 15.5986 13.2282C15.3911 13.5724 15.1136 13.9253 14.8119 14.2668C14.2064 14.9521 13.4181 15.6861 12.6556 16.3482C11.8882 17.0145 11.1236 17.6278 10.5528 18.0734C10.2668 18.2965 9.93847 18.551 9.59307 18.8054C9.14837 19.1329 8.52237 19.0379 8.19486 18.5932C8.0632 18.4144 7.99983 18.2064 8.00001 18.0002L8 12.0001L8 6.00007C7.99983 5.79387 8.0632 5.58581 8.19486 5.40705Z" }) }) })
|
|
7952
7954
|
] });
|
|
@@ -7984,14 +7986,14 @@ function ga({ load: e, list: t, item: n }) {
|
|
|
7984
7986
|
h.useEffect(() => {
|
|
7985
7987
|
t !== null && i({ type: "load", load: e, data: t });
|
|
7986
7988
|
}, [e]);
|
|
7987
|
-
let o = (
|
|
7988
|
-
if (
|
|
7989
|
-
if (
|
|
7990
|
-
i({ type: "page", page:
|
|
7989
|
+
let o = (c) => {
|
|
7990
|
+
if (c === 0) return c = 1;
|
|
7991
|
+
if (c > s.size) return c = s.size;
|
|
7992
|
+
i({ type: "page", page: c });
|
|
7991
7993
|
};
|
|
7992
7994
|
return h.useEffect(() => {
|
|
7993
7995
|
}, [s]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
7994
|
-
/* @__PURE__ */ a.jsx("div", { className: ha.l, ref: r, children: /* @__PURE__ */ a.jsx(Yn, { "el-empty": "Данные не найдены", children: s.load && s.list !== void 0 ? s.list.map((
|
|
7996
|
+
/* @__PURE__ */ a.jsx("div", { className: ha.l, ref: r, children: /* @__PURE__ */ a.jsx(Yn, { "el-empty": "Данные не найдены", children: s.load && s.list !== void 0 ? s.list.map((c) => /* @__PURE__ */ a.jsx(s.item, { data: c }, c.id)) : /* @__PURE__ */ a.jsxs("div", { "type-data": "load", children: [
|
|
7995
7997
|
/* @__PURE__ */ a.jsx("i", {}),
|
|
7996
7998
|
/* @__PURE__ */ a.jsx("i", {}),
|
|
7997
7999
|
/* @__PURE__ */ a.jsx("i", {})
|
|
@@ -8083,7 +8085,7 @@ const d_ = { Get: yd }, __ = function({
|
|
|
8083
8085
|
tabs: i,
|
|
8084
8086
|
modules: o
|
|
8085
8087
|
}) {
|
|
8086
|
-
const [
|
|
8088
|
+
const [c] = Se.useTabs(s), [l, _] = h.useState(!1);
|
|
8087
8089
|
return h.useEffect(() => {
|
|
8088
8090
|
_(!0);
|
|
8089
8091
|
}, []), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
@@ -8092,7 +8094,7 @@ const d_ = { Get: yd }, __ = function({
|
|
|
8092
8094
|
/* @__PURE__ */ a.jsx("div", { className: "empty" }),
|
|
8093
8095
|
/* @__PURE__ */ a.jsx(wd, { button: r })
|
|
8094
8096
|
] }),
|
|
8095
|
-
|
|
8097
|
+
l && /* @__PURE__ */ a.jsx(bd, { imp: n, modules: o, t: c }),
|
|
8096
8098
|
t
|
|
8097
8099
|
] });
|
|
8098
8100
|
};
|
|
@@ -8113,9 +8115,9 @@ function f_({ active: e, onActive: t, id: n, name: r }) {
|
|
|
8113
8115
|
i(!!e);
|
|
8114
8116
|
}, [e]);
|
|
8115
8117
|
let o = () => {
|
|
8116
|
-
let
|
|
8118
|
+
let c = s ? 0 : 1;
|
|
8117
8119
|
i(!s), t && t({
|
|
8118
|
-
value:
|
|
8120
|
+
value: c,
|
|
8119
8121
|
is: !s,
|
|
8120
8122
|
name: r,
|
|
8121
8123
|
id: n,
|
|
@@ -8184,27 +8186,27 @@ const Dd = async (e) => window.crypto.subtle.importKey(
|
|
|
8184
8186
|
};
|
|
8185
8187
|
function Td(e, t) {
|
|
8186
8188
|
const [n, r] = h.useState(!1), [s, i] = h.useState(null);
|
|
8187
|
-
async function o(
|
|
8188
|
-
const
|
|
8189
|
-
if (ne.isClosed = !1, !
|
|
8189
|
+
async function o(c = e) {
|
|
8190
|
+
const l = new Ed();
|
|
8191
|
+
if (ne.isClosed = !1, !c) return i(3);
|
|
8190
8192
|
let _ = localStorage.getItem("d");
|
|
8191
8193
|
if (t == null || t(_), typeof _ != "string")
|
|
8192
8194
|
return i(0);
|
|
8193
|
-
let u = await Nd(
|
|
8195
|
+
let u = await Nd(c);
|
|
8194
8196
|
if (t == null || t(u), !u) return i(1);
|
|
8195
8197
|
window.location.protocol !== "http:" && (u.d = !1), ne.send = (f) => {
|
|
8196
|
-
|
|
8198
|
+
l.port.postMessage({ type: "send", json: f });
|
|
8197
8199
|
}, ne.closed = () => {
|
|
8198
|
-
ne.isClosed = !0,
|
|
8200
|
+
ne.isClosed = !0, l.port.postMessage(!1);
|
|
8199
8201
|
};
|
|
8200
8202
|
const x = () => {
|
|
8201
|
-
|
|
8203
|
+
l.port.postMessage({
|
|
8202
8204
|
type: "connect",
|
|
8203
8205
|
ukey: _,
|
|
8204
8206
|
link: u
|
|
8205
8207
|
});
|
|
8206
8208
|
};
|
|
8207
|
-
|
|
8209
|
+
l.port.onmessage = (f) => {
|
|
8208
8210
|
t == null || t(f.data);
|
|
8209
8211
|
let m = f.data;
|
|
8210
8212
|
if (m.type === 2 && i(2), m.type === 0 && !ne.isClosed && x(), m.type === 1) return r(!0);
|