elcrm 0.3.7 → 0.3.8
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 +624 -605
- package/dist/index.umd.js +10 -10
- package/dist/lib/Badge/Badge.d.ts +3 -0
- package/dist/lib/Badge/index.d.ts +7 -0
- package/dist/lib/index.d.ts +6 -5
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
|
-
import
|
|
3
|
-
var
|
|
2
|
+
import S from "react";
|
|
3
|
+
var ye = { exports: {} }, te = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-jsx-runtime.production.min.js
|
|
@@ -10,20 +10,20 @@ var je = { exports: {} }, te = {};
|
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
12
|
*/
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
if (
|
|
13
|
+
var Je;
|
|
14
|
+
function Ft() {
|
|
15
|
+
if (Je)
|
|
16
16
|
return te;
|
|
17
|
-
|
|
18
|
-
var e =
|
|
17
|
+
Je = 1;
|
|
18
|
+
var e = S, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, l = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, m = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
19
19
|
function c(f, u, d) {
|
|
20
|
-
var
|
|
20
|
+
var p, x = {}, y = null, I = null;
|
|
21
21
|
d !== void 0 && (y = "" + d), u.key !== void 0 && (y = "" + u.key), u.ref !== void 0 && (I = u.ref);
|
|
22
|
-
for (
|
|
23
|
-
s.call(u,
|
|
22
|
+
for (p in u)
|
|
23
|
+
s.call(u, p) && !m.hasOwnProperty(p) && (x[p] = u[p]);
|
|
24
24
|
if (f && f.defaultProps)
|
|
25
|
-
for (
|
|
26
|
-
x[
|
|
25
|
+
for (p in u = f.defaultProps, u)
|
|
26
|
+
x[p] === void 0 && (x[p] = u[p]);
|
|
27
27
|
return { $$typeof: r, type: f, key: y, ref: I, props: x, _owner: l.current };
|
|
28
28
|
}
|
|
29
29
|
return te.Fragment = n, te.jsx = c, te.jsxs = c, te;
|
|
@@ -38,51 +38,51 @@ var re = {};
|
|
|
38
38
|
* This source code is licensed under the MIT license found in the
|
|
39
39
|
* LICENSE file in the root directory of this source tree.
|
|
40
40
|
*/
|
|
41
|
-
var
|
|
42
|
-
function
|
|
43
|
-
return
|
|
44
|
-
var e =
|
|
45
|
-
function
|
|
41
|
+
var Ze;
|
|
42
|
+
function Mt() {
|
|
43
|
+
return Ze || (Ze = 1, process.env.NODE_ENV !== "production" && function() {
|
|
44
|
+
var e = S, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), m = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), f = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), O = Symbol.iterator, X = "@@iterator";
|
|
45
|
+
function N(t) {
|
|
46
46
|
if (t === null || typeof t != "object")
|
|
47
47
|
return null;
|
|
48
|
-
var
|
|
49
|
-
return typeof
|
|
48
|
+
var o = O && t[O] || t[X];
|
|
49
|
+
return typeof o == "function" ? o : null;
|
|
50
50
|
}
|
|
51
51
|
var T = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
52
52
|
function R(t) {
|
|
53
53
|
{
|
|
54
|
-
for (var
|
|
55
|
-
|
|
56
|
-
F("error", t,
|
|
54
|
+
for (var o = arguments.length, i = new Array(o > 1 ? o - 1 : 0), v = 1; v < o; v++)
|
|
55
|
+
i[v - 1] = arguments[v];
|
|
56
|
+
F("error", t, i);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
function F(t,
|
|
59
|
+
function F(t, o, i) {
|
|
60
60
|
{
|
|
61
|
-
var
|
|
62
|
-
b !== "" && (
|
|
63
|
-
var j =
|
|
61
|
+
var v = T.ReactDebugCurrentFrame, b = v.getStackAddendum();
|
|
62
|
+
b !== "" && (o += "%s", i = i.concat([b]));
|
|
63
|
+
var j = i.map(function(_) {
|
|
64
64
|
return String(_);
|
|
65
65
|
});
|
|
66
|
-
j.unshift("Warning: " +
|
|
66
|
+
j.unshift("Warning: " + o), Function.prototype.apply.call(console[t], console, j);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
var L = !1, W = !1, G = !1, se = !1,
|
|
70
|
-
|
|
71
|
-
function
|
|
72
|
-
return !!(typeof t == "string" || typeof t == "function" || t === s || t ===
|
|
69
|
+
var L = !1, W = !1, G = !1, se = !1, it = !1, Ee;
|
|
70
|
+
Ee = Symbol.for("react.module.reference");
|
|
71
|
+
function ct(t) {
|
|
72
|
+
return !!(typeof t == "string" || typeof t == "function" || t === s || t === m || it || t === l || t === d || t === p || se || t === I || L || W || G || typeof t == "object" && t !== null && (t.$$typeof === y || t.$$typeof === x || t.$$typeof === c || t.$$typeof === f || t.$$typeof === u || // This needs to include all possible module reference object
|
|
73
73
|
// types supported by any Flight configuration anywhere since
|
|
74
74
|
// we don't know which Flight build this will end up being used
|
|
75
75
|
// with.
|
|
76
|
-
t.$$typeof ===
|
|
76
|
+
t.$$typeof === Ee || t.getModuleId !== void 0));
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
var
|
|
80
|
-
if (
|
|
81
|
-
return
|
|
82
|
-
var b =
|
|
83
|
-
return b !== "" ?
|
|
78
|
+
function lt(t, o, i) {
|
|
79
|
+
var v = t.displayName;
|
|
80
|
+
if (v)
|
|
81
|
+
return v;
|
|
82
|
+
var b = o.displayName || o.name || "";
|
|
83
|
+
return b !== "" ? i + "(" + b + ")" : i;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function ke(t) {
|
|
86
86
|
return t.displayName || "Context";
|
|
87
87
|
}
|
|
88
88
|
function D(t) {
|
|
@@ -97,28 +97,28 @@ function Ot() {
|
|
|
97
97
|
return "Fragment";
|
|
98
98
|
case n:
|
|
99
99
|
return "Portal";
|
|
100
|
-
case
|
|
100
|
+
case m:
|
|
101
101
|
return "Profiler";
|
|
102
102
|
case l:
|
|
103
103
|
return "StrictMode";
|
|
104
104
|
case d:
|
|
105
105
|
return "Suspense";
|
|
106
|
-
case
|
|
106
|
+
case p:
|
|
107
107
|
return "SuspenseList";
|
|
108
108
|
}
|
|
109
109
|
if (typeof t == "object")
|
|
110
110
|
switch (t.$$typeof) {
|
|
111
111
|
case f:
|
|
112
|
-
var i = t;
|
|
113
|
-
return Ee(i) + ".Consumer";
|
|
114
|
-
case c:
|
|
115
112
|
var o = t;
|
|
116
|
-
return
|
|
113
|
+
return ke(o) + ".Consumer";
|
|
114
|
+
case c:
|
|
115
|
+
var i = t;
|
|
116
|
+
return ke(i._context) + ".Provider";
|
|
117
117
|
case u:
|
|
118
|
-
return
|
|
118
|
+
return lt(t, t.render, "ForwardRef");
|
|
119
119
|
case x:
|
|
120
|
-
var
|
|
121
|
-
return
|
|
120
|
+
var v = t.displayName || null;
|
|
121
|
+
return v !== null ? v : D(t.type) || "Memo";
|
|
122
122
|
case y: {
|
|
123
123
|
var b = t, j = b._payload, _ = b._init;
|
|
124
124
|
try {
|
|
@@ -130,14 +130,14 @@ function Ot() {
|
|
|
130
130
|
}
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
133
|
-
var
|
|
133
|
+
var U = Object.assign, Q = 0, Re, we, Ie, Te, Pe, $e, Oe;
|
|
134
134
|
function Ne() {
|
|
135
135
|
}
|
|
136
136
|
Ne.__reactDisabledLog = !0;
|
|
137
|
-
function
|
|
137
|
+
function ut() {
|
|
138
138
|
{
|
|
139
139
|
if (Q === 0) {
|
|
140
|
-
|
|
140
|
+
Re = console.log, we = console.info, Ie = console.warn, Te = console.error, Pe = console.group, $e = console.groupCollapsed, Oe = console.groupEnd;
|
|
141
141
|
var t = {
|
|
142
142
|
configurable: !0,
|
|
143
143
|
enumerable: !0,
|
|
@@ -157,7 +157,7 @@ function Ot() {
|
|
|
157
157
|
Q++;
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function ft() {
|
|
161
161
|
{
|
|
162
162
|
if (Q--, Q === 0) {
|
|
163
163
|
var t = {
|
|
@@ -166,67 +166,67 @@ function Ot() {
|
|
|
166
166
|
writable: !0
|
|
167
167
|
};
|
|
168
168
|
Object.defineProperties(console, {
|
|
169
|
-
log:
|
|
170
|
-
value: ke
|
|
171
|
-
}),
|
|
172
|
-
info: V({}, t, {
|
|
169
|
+
log: U({}, t, {
|
|
173
170
|
value: Re
|
|
174
171
|
}),
|
|
175
|
-
|
|
172
|
+
info: U({}, t, {
|
|
176
173
|
value: we
|
|
177
174
|
}),
|
|
178
|
-
|
|
175
|
+
warn: U({}, t, {
|
|
179
176
|
value: Ie
|
|
180
177
|
}),
|
|
181
|
-
|
|
178
|
+
error: U({}, t, {
|
|
182
179
|
value: Te
|
|
183
180
|
}),
|
|
184
|
-
|
|
181
|
+
group: U({}, t, {
|
|
185
182
|
value: Pe
|
|
186
183
|
}),
|
|
187
|
-
|
|
184
|
+
groupCollapsed: U({}, t, {
|
|
188
185
|
value: $e
|
|
186
|
+
}),
|
|
187
|
+
groupEnd: U({}, t, {
|
|
188
|
+
value: Oe
|
|
189
189
|
})
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
192
|
Q < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
var
|
|
196
|
-
function
|
|
195
|
+
var pe = T.ReactCurrentDispatcher, ve;
|
|
196
|
+
function oe(t, o, i) {
|
|
197
197
|
{
|
|
198
|
-
if (
|
|
198
|
+
if (ve === void 0)
|
|
199
199
|
try {
|
|
200
200
|
throw Error();
|
|
201
201
|
} catch (b) {
|
|
202
|
-
var
|
|
203
|
-
|
|
202
|
+
var v = b.stack.trim().match(/\n( *(at )?)/);
|
|
203
|
+
ve = v && v[1] || "";
|
|
204
204
|
}
|
|
205
205
|
return `
|
|
206
|
-
` +
|
|
206
|
+
` + ve + t;
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
var
|
|
209
|
+
var he = !1, ie;
|
|
210
210
|
{
|
|
211
|
-
var
|
|
212
|
-
|
|
211
|
+
var dt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
212
|
+
ie = new dt();
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
if (!t ||
|
|
214
|
+
function Fe(t, o) {
|
|
215
|
+
if (!t || he)
|
|
216
216
|
return "";
|
|
217
217
|
{
|
|
218
|
-
var
|
|
219
|
-
if (
|
|
220
|
-
return
|
|
218
|
+
var i = ie.get(t);
|
|
219
|
+
if (i !== void 0)
|
|
220
|
+
return i;
|
|
221
221
|
}
|
|
222
|
-
var
|
|
223
|
-
|
|
222
|
+
var v;
|
|
223
|
+
he = !0;
|
|
224
224
|
var b = Error.prepareStackTrace;
|
|
225
225
|
Error.prepareStackTrace = void 0;
|
|
226
226
|
var j;
|
|
227
|
-
j =
|
|
227
|
+
j = pe.current, pe.current = null, ut();
|
|
228
228
|
try {
|
|
229
|
-
if (
|
|
229
|
+
if (o) {
|
|
230
230
|
var _ = function() {
|
|
231
231
|
throw Error();
|
|
232
232
|
};
|
|
@@ -238,14 +238,14 @@ function Ot() {
|
|
|
238
238
|
try {
|
|
239
239
|
Reflect.construct(_, []);
|
|
240
240
|
} catch (A) {
|
|
241
|
-
|
|
241
|
+
v = A;
|
|
242
242
|
}
|
|
243
243
|
Reflect.construct(t, [], _);
|
|
244
244
|
} else {
|
|
245
245
|
try {
|
|
246
246
|
_.call();
|
|
247
247
|
} catch (A) {
|
|
248
|
-
|
|
248
|
+
v = A;
|
|
249
249
|
}
|
|
250
250
|
t.call(_.prototype);
|
|
251
251
|
}
|
|
@@ -253,80 +253,80 @@ function Ot() {
|
|
|
253
253
|
try {
|
|
254
254
|
throw Error();
|
|
255
255
|
} catch (A) {
|
|
256
|
-
|
|
256
|
+
v = A;
|
|
257
257
|
}
|
|
258
258
|
t();
|
|
259
259
|
}
|
|
260
260
|
} catch (A) {
|
|
261
|
-
if (A &&
|
|
261
|
+
if (A && v && typeof A.stack == "string") {
|
|
262
262
|
for (var g = A.stack.split(`
|
|
263
|
-
`), w =
|
|
264
|
-
`),
|
|
265
|
-
|
|
266
|
-
for (;
|
|
267
|
-
if (g[
|
|
268
|
-
if (
|
|
263
|
+
`), w = v.stack.split(`
|
|
264
|
+
`), C = g.length - 1, k = w.length - 1; C >= 1 && k >= 0 && g[C] !== w[k]; )
|
|
265
|
+
k--;
|
|
266
|
+
for (; C >= 1 && k >= 0; C--, k--)
|
|
267
|
+
if (g[C] !== w[k]) {
|
|
268
|
+
if (C !== 1 || k !== 1)
|
|
269
269
|
do
|
|
270
|
-
if (
|
|
270
|
+
if (C--, k--, k < 0 || g[C] !== w[k]) {
|
|
271
271
|
var $ = `
|
|
272
|
-
` + g[
|
|
273
|
-
return t.displayName && $.includes("<anonymous>") && ($ = $.replace("<anonymous>", t.displayName)), typeof t == "function" &&
|
|
272
|
+
` + g[C].replace(" at new ", " at ");
|
|
273
|
+
return t.displayName && $.includes("<anonymous>") && ($ = $.replace("<anonymous>", t.displayName)), typeof t == "function" && ie.set(t, $), $;
|
|
274
274
|
}
|
|
275
|
-
while (
|
|
275
|
+
while (C >= 1 && k >= 0);
|
|
276
276
|
break;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
} finally {
|
|
280
|
-
|
|
280
|
+
he = !1, pe.current = j, ft(), Error.prepareStackTrace = b;
|
|
281
281
|
}
|
|
282
|
-
var Z = t ? t.displayName || t.name : "",
|
|
283
|
-
return typeof t == "function" &&
|
|
282
|
+
var Z = t ? t.displayName || t.name : "", Ge = Z ? oe(Z) : "";
|
|
283
|
+
return typeof t == "function" && ie.set(t, Ge), Ge;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
286
|
-
return
|
|
285
|
+
function mt(t, o, i) {
|
|
286
|
+
return Fe(t, !1);
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
var
|
|
290
|
-
return !!(
|
|
288
|
+
function pt(t) {
|
|
289
|
+
var o = t.prototype;
|
|
290
|
+
return !!(o && o.isReactComponent);
|
|
291
291
|
}
|
|
292
|
-
function ce(t,
|
|
292
|
+
function ce(t, o, i) {
|
|
293
293
|
if (t == null)
|
|
294
294
|
return "";
|
|
295
295
|
if (typeof t == "function")
|
|
296
|
-
return
|
|
296
|
+
return Fe(t, pt(t));
|
|
297
297
|
if (typeof t == "string")
|
|
298
|
-
return
|
|
298
|
+
return oe(t);
|
|
299
299
|
switch (t) {
|
|
300
300
|
case d:
|
|
301
|
-
return
|
|
302
|
-
case
|
|
303
|
-
return
|
|
301
|
+
return oe("Suspense");
|
|
302
|
+
case p:
|
|
303
|
+
return oe("SuspenseList");
|
|
304
304
|
}
|
|
305
305
|
if (typeof t == "object")
|
|
306
306
|
switch (t.$$typeof) {
|
|
307
307
|
case u:
|
|
308
|
-
return
|
|
308
|
+
return mt(t.render);
|
|
309
309
|
case x:
|
|
310
|
-
return ce(t.type,
|
|
310
|
+
return ce(t.type, o, i);
|
|
311
311
|
case y: {
|
|
312
|
-
var
|
|
312
|
+
var v = t, b = v._payload, j = v._init;
|
|
313
313
|
try {
|
|
314
|
-
return ce(j(b),
|
|
314
|
+
return ce(j(b), o, i);
|
|
315
315
|
} catch {
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
return "";
|
|
320
320
|
}
|
|
321
|
-
var le = Object.prototype.hasOwnProperty,
|
|
321
|
+
var le = Object.prototype.hasOwnProperty, Me = {}, De = T.ReactDebugCurrentFrame;
|
|
322
322
|
function ue(t) {
|
|
323
323
|
if (t) {
|
|
324
|
-
var
|
|
325
|
-
|
|
324
|
+
var o = t._owner, i = ce(t.type, t._source, o ? o.type : null);
|
|
325
|
+
De.setExtraStackFrame(i);
|
|
326
326
|
} else
|
|
327
|
-
|
|
327
|
+
De.setExtraStackFrame(null);
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function vt(t, o, i, v, b) {
|
|
330
330
|
{
|
|
331
331
|
var j = Function.call.bind(le);
|
|
332
332
|
for (var _ in t)
|
|
@@ -334,100 +334,100 @@ function Ot() {
|
|
|
334
334
|
var g = void 0;
|
|
335
335
|
try {
|
|
336
336
|
if (typeof t[_] != "function") {
|
|
337
|
-
var w = Error((
|
|
337
|
+
var w = Error((v || "React class") + ": " + i + " type `" + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[_] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
338
338
|
throw w.name = "Invariant Violation", w;
|
|
339
339
|
}
|
|
340
|
-
g = t[_](
|
|
341
|
-
} catch (
|
|
342
|
-
g =
|
|
340
|
+
g = t[_](o, _, v, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
|
+
} catch (C) {
|
|
342
|
+
g = C;
|
|
343
343
|
}
|
|
344
|
-
g && !(g instanceof Error) && (ue(b), R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",
|
|
344
|
+
g && !(g instanceof Error) && (ue(b), R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", v || "React class", i, _, typeof g), ue(null)), g instanceof Error && !(g.message in Me) && (Me[g.message] = !0, ue(b), R("Failed %s type: %s", i, g.message), ue(null));
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
var
|
|
349
|
-
function
|
|
350
|
-
return
|
|
348
|
+
var ht = Array.isArray;
|
|
349
|
+
function ge(t) {
|
|
350
|
+
return ht(t);
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function gt(t) {
|
|
353
353
|
{
|
|
354
|
-
var
|
|
355
|
-
return
|
|
354
|
+
var o = typeof Symbol == "function" && Symbol.toStringTag, i = o && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
355
|
+
return i;
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function _t(t) {
|
|
359
359
|
try {
|
|
360
|
-
return
|
|
360
|
+
return Ae(t), !1;
|
|
361
361
|
} catch {
|
|
362
362
|
return !0;
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function Ae(t) {
|
|
366
366
|
return "" + t;
|
|
367
367
|
}
|
|
368
|
-
function
|
|
369
|
-
if (
|
|
370
|
-
return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
368
|
+
function Le(t) {
|
|
369
|
+
if (_t(t))
|
|
370
|
+
return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", gt(t)), Ae(t);
|
|
371
371
|
}
|
|
372
|
-
var ee = T.ReactCurrentOwner,
|
|
372
|
+
var ee = T.ReactCurrentOwner, xt = {
|
|
373
373
|
key: !0,
|
|
374
374
|
ref: !0,
|
|
375
375
|
__self: !0,
|
|
376
376
|
__source: !0
|
|
377
|
-
},
|
|
378
|
-
|
|
379
|
-
function
|
|
377
|
+
}, ze, Be, _e;
|
|
378
|
+
_e = {};
|
|
379
|
+
function bt(t) {
|
|
380
380
|
if (le.call(t, "ref")) {
|
|
381
|
-
var
|
|
382
|
-
if (
|
|
381
|
+
var o = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
382
|
+
if (o && o.isReactWarning)
|
|
383
383
|
return !1;
|
|
384
384
|
}
|
|
385
385
|
return t.ref !== void 0;
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function jt(t) {
|
|
388
388
|
if (le.call(t, "key")) {
|
|
389
|
-
var
|
|
390
|
-
if (
|
|
389
|
+
var o = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
390
|
+
if (o && o.isReactWarning)
|
|
391
391
|
return !1;
|
|
392
392
|
}
|
|
393
393
|
return t.key !== void 0;
|
|
394
394
|
}
|
|
395
|
-
function
|
|
396
|
-
if (typeof t.ref == "string" && ee.current &&
|
|
397
|
-
var
|
|
398
|
-
|
|
395
|
+
function yt(t, o) {
|
|
396
|
+
if (typeof t.ref == "string" && ee.current && o && ee.current.stateNode !== o) {
|
|
397
|
+
var i = D(ee.current.type);
|
|
398
|
+
_e[i] || (R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', D(ee.current.type), t.ref), _e[i] = !0);
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
|
-
function
|
|
401
|
+
function St(t, o) {
|
|
402
402
|
{
|
|
403
|
-
var
|
|
404
|
-
|
|
403
|
+
var i = function() {
|
|
404
|
+
ze || (ze = !0, R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", o));
|
|
405
405
|
};
|
|
406
|
-
|
|
407
|
-
get:
|
|
406
|
+
i.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
407
|
+
get: i,
|
|
408
408
|
configurable: !0
|
|
409
409
|
});
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function Ct(t, o) {
|
|
413
413
|
{
|
|
414
|
-
var
|
|
415
|
-
|
|
414
|
+
var i = function() {
|
|
415
|
+
Be || (Be = !0, R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", o));
|
|
416
416
|
};
|
|
417
|
-
|
|
418
|
-
get:
|
|
417
|
+
i.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
418
|
+
get: i,
|
|
419
419
|
configurable: !0
|
|
420
420
|
});
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
var
|
|
423
|
+
var Et = function(t, o, i, v, b, j, _) {
|
|
424
424
|
var g = {
|
|
425
425
|
// This tag allows us to uniquely identify this as a React Element
|
|
426
426
|
$$typeof: r,
|
|
427
427
|
// Built-in properties that belong on the element
|
|
428
428
|
type: t,
|
|
429
|
-
key:
|
|
430
|
-
ref:
|
|
429
|
+
key: o,
|
|
430
|
+
ref: i,
|
|
431
431
|
props: _,
|
|
432
432
|
// Record the component responsible for creating this element.
|
|
433
433
|
_owner: j
|
|
@@ -441,7 +441,7 @@ function Ot() {
|
|
|
441
441
|
configurable: !1,
|
|
442
442
|
enumerable: !1,
|
|
443
443
|
writable: !1,
|
|
444
|
-
value:
|
|
444
|
+
value: v
|
|
445
445
|
}), Object.defineProperty(g, "_source", {
|
|
446
446
|
configurable: !1,
|
|
447
447
|
enumerable: !1,
|
|
@@ -449,41 +449,41 @@ function Ot() {
|
|
|
449
449
|
value: b
|
|
450
450
|
}), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
|
|
451
451
|
};
|
|
452
|
-
function
|
|
452
|
+
function kt(t, o, i, v, b) {
|
|
453
453
|
{
|
|
454
454
|
var j, _ = {}, g = null, w = null;
|
|
455
|
-
|
|
456
|
-
for (j in
|
|
457
|
-
le.call(
|
|
455
|
+
i !== void 0 && (Le(i), g = "" + i), jt(o) && (Le(o.key), g = "" + o.key), bt(o) && (w = o.ref, yt(o, b));
|
|
456
|
+
for (j in o)
|
|
457
|
+
le.call(o, j) && !xt.hasOwnProperty(j) && (_[j] = o[j]);
|
|
458
458
|
if (t && t.defaultProps) {
|
|
459
|
-
var
|
|
460
|
-
for (j in
|
|
461
|
-
_[j] === void 0 && (_[j] =
|
|
459
|
+
var C = t.defaultProps;
|
|
460
|
+
for (j in C)
|
|
461
|
+
_[j] === void 0 && (_[j] = C[j]);
|
|
462
462
|
}
|
|
463
463
|
if (g || w) {
|
|
464
|
-
var
|
|
465
|
-
g &&
|
|
464
|
+
var k = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
465
|
+
g && St(_, k), w && Ct(_, k);
|
|
466
466
|
}
|
|
467
|
-
return
|
|
467
|
+
return Et(t, g, w, b, v, ee.current, _);
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
|
-
var
|
|
470
|
+
var xe = T.ReactCurrentOwner, Ye = T.ReactDebugCurrentFrame;
|
|
471
471
|
function J(t) {
|
|
472
472
|
if (t) {
|
|
473
|
-
var
|
|
474
|
-
Ye.setExtraStackFrame(
|
|
473
|
+
var o = t._owner, i = ce(t.type, t._source, o ? o.type : null);
|
|
474
|
+
Ye.setExtraStackFrame(i);
|
|
475
475
|
} else
|
|
476
476
|
Ye.setExtraStackFrame(null);
|
|
477
477
|
}
|
|
478
|
-
var
|
|
479
|
-
|
|
480
|
-
function
|
|
478
|
+
var be;
|
|
479
|
+
be = !1;
|
|
480
|
+
function je(t) {
|
|
481
481
|
return typeof t == "object" && t !== null && t.$$typeof === r;
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function We() {
|
|
484
484
|
{
|
|
485
|
-
if (
|
|
486
|
-
var t = D(
|
|
485
|
+
if (xe.current) {
|
|
486
|
+
var t = D(xe.current.type);
|
|
487
487
|
if (t)
|
|
488
488
|
return `
|
|
489
489
|
|
|
@@ -492,184 +492,184 @@ Check the render method of \`` + t + "`.";
|
|
|
492
492
|
return "";
|
|
493
493
|
}
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function Rt(t) {
|
|
496
496
|
{
|
|
497
497
|
if (t !== void 0) {
|
|
498
|
-
var
|
|
498
|
+
var o = t.fileName.replace(/^.*[\\\/]/, ""), i = t.lineNumber;
|
|
499
499
|
return `
|
|
500
500
|
|
|
501
|
-
Check your code at ` +
|
|
501
|
+
Check your code at ` + o + ":" + i + ".";
|
|
502
502
|
}
|
|
503
503
|
return "";
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
|
-
var
|
|
507
|
-
function
|
|
506
|
+
var Ue = {};
|
|
507
|
+
function wt(t) {
|
|
508
508
|
{
|
|
509
|
-
var
|
|
510
|
-
if (!
|
|
511
|
-
var
|
|
512
|
-
|
|
509
|
+
var o = We();
|
|
510
|
+
if (!o) {
|
|
511
|
+
var i = typeof t == "string" ? t : t.displayName || t.name;
|
|
512
|
+
i && (o = `
|
|
513
513
|
|
|
514
|
-
Check the top-level render call using <` +
|
|
514
|
+
Check the top-level render call using <` + i + ">.");
|
|
515
515
|
}
|
|
516
|
-
return
|
|
516
|
+
return o;
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
|
-
function Ve(t,
|
|
519
|
+
function Ve(t, o) {
|
|
520
520
|
{
|
|
521
521
|
if (!t._store || t._store.validated || t.key != null)
|
|
522
522
|
return;
|
|
523
523
|
t._store.validated = !0;
|
|
524
|
-
var
|
|
525
|
-
if (
|
|
524
|
+
var i = wt(o);
|
|
525
|
+
if (Ue[i])
|
|
526
526
|
return;
|
|
527
|
-
|
|
528
|
-
var
|
|
529
|
-
t && t._owner && t._owner !==
|
|
527
|
+
Ue[i] = !0;
|
|
528
|
+
var v = "";
|
|
529
|
+
t && t._owner && t._owner !== xe.current && (v = " It was passed a child from " + D(t._owner.type) + "."), J(t), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, v), J(null);
|
|
530
530
|
}
|
|
531
531
|
}
|
|
532
|
-
function
|
|
532
|
+
function He(t, o) {
|
|
533
533
|
{
|
|
534
534
|
if (typeof t != "object")
|
|
535
535
|
return;
|
|
536
|
-
if (
|
|
537
|
-
for (var
|
|
538
|
-
var
|
|
539
|
-
|
|
536
|
+
if (ge(t))
|
|
537
|
+
for (var i = 0; i < t.length; i++) {
|
|
538
|
+
var v = t[i];
|
|
539
|
+
je(v) && Ve(v, o);
|
|
540
540
|
}
|
|
541
|
-
else if (
|
|
541
|
+
else if (je(t))
|
|
542
542
|
t._store && (t._store.validated = !0);
|
|
543
543
|
else if (t) {
|
|
544
|
-
var b =
|
|
544
|
+
var b = N(t);
|
|
545
545
|
if (typeof b == "function" && b !== t.entries)
|
|
546
546
|
for (var j = b.call(t), _; !(_ = j.next()).done; )
|
|
547
|
-
|
|
547
|
+
je(_.value) && Ve(_.value, o);
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
|
-
function
|
|
551
|
+
function It(t) {
|
|
552
552
|
{
|
|
553
|
-
var
|
|
554
|
-
if (
|
|
553
|
+
var o = t.type;
|
|
554
|
+
if (o == null || typeof o == "string")
|
|
555
555
|
return;
|
|
556
|
-
var
|
|
557
|
-
if (typeof
|
|
558
|
-
|
|
559
|
-
else if (typeof
|
|
556
|
+
var i;
|
|
557
|
+
if (typeof o == "function")
|
|
558
|
+
i = o.propTypes;
|
|
559
|
+
else if (typeof o == "object" && (o.$$typeof === u || // Note: Memo only checks outer props here.
|
|
560
560
|
// Inner props are checked in the reconciler.
|
|
561
|
-
|
|
562
|
-
|
|
561
|
+
o.$$typeof === x))
|
|
562
|
+
i = o.propTypes;
|
|
563
563
|
else
|
|
564
564
|
return;
|
|
565
|
-
if (
|
|
566
|
-
var
|
|
567
|
-
|
|
568
|
-
} else if (
|
|
569
|
-
|
|
570
|
-
var b = D(
|
|
565
|
+
if (i) {
|
|
566
|
+
var v = D(o);
|
|
567
|
+
vt(i, t.props, "prop", v, t);
|
|
568
|
+
} else if (o.PropTypes !== void 0 && !be) {
|
|
569
|
+
be = !0;
|
|
570
|
+
var b = D(o);
|
|
571
571
|
R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", b || "Unknown");
|
|
572
572
|
}
|
|
573
|
-
typeof
|
|
573
|
+
typeof o.getDefaultProps == "function" && !o.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
function
|
|
576
|
+
function Tt(t) {
|
|
577
577
|
{
|
|
578
|
-
for (var
|
|
579
|
-
var
|
|
580
|
-
if (
|
|
581
|
-
J(t), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
578
|
+
for (var o = Object.keys(t.props), i = 0; i < o.length; i++) {
|
|
579
|
+
var v = o[i];
|
|
580
|
+
if (v !== "children" && v !== "key") {
|
|
581
|
+
J(t), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), J(null);
|
|
582
582
|
break;
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
585
|
t.ref !== null && (J(t), R("Invalid attribute `ref` supplied to `React.Fragment`."), J(null));
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
|
-
function
|
|
588
|
+
function qe(t, o, i, v, b, j) {
|
|
589
589
|
{
|
|
590
|
-
var _ =
|
|
590
|
+
var _ = ct(t);
|
|
591
591
|
if (!_) {
|
|
592
592
|
var g = "";
|
|
593
593
|
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (g += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
594
|
-
var w =
|
|
595
|
-
w ? g += w : g +=
|
|
596
|
-
var
|
|
597
|
-
t === null ?
|
|
594
|
+
var w = Rt(b);
|
|
595
|
+
w ? g += w : g += We();
|
|
596
|
+
var C;
|
|
597
|
+
t === null ? C = "null" : ge(t) ? C = "array" : t !== void 0 && t.$$typeof === r ? (C = "<" + (D(t.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : C = typeof t, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", C, g);
|
|
598
598
|
}
|
|
599
|
-
var
|
|
600
|
-
if (
|
|
601
|
-
return
|
|
599
|
+
var k = kt(t, o, i, b, j);
|
|
600
|
+
if (k == null)
|
|
601
|
+
return k;
|
|
602
602
|
if (_) {
|
|
603
|
-
var $ =
|
|
603
|
+
var $ = o.children;
|
|
604
604
|
if ($ !== void 0)
|
|
605
|
-
if (
|
|
606
|
-
if (
|
|
605
|
+
if (v)
|
|
606
|
+
if (ge($)) {
|
|
607
607
|
for (var Z = 0; Z < $.length; Z++)
|
|
608
|
-
|
|
608
|
+
He($[Z], t);
|
|
609
609
|
Object.freeze && Object.freeze($);
|
|
610
610
|
} else
|
|
611
611
|
R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
612
612
|
else
|
|
613
|
-
|
|
613
|
+
He($, t);
|
|
614
614
|
}
|
|
615
|
-
return t === s ?
|
|
615
|
+
return t === s ? Tt(k) : It(k), k;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
function
|
|
619
|
-
return
|
|
618
|
+
function Pt(t, o, i) {
|
|
619
|
+
return qe(t, o, i, !0);
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
return
|
|
621
|
+
function $t(t, o, i) {
|
|
622
|
+
return qe(t, o, i, !1);
|
|
623
623
|
}
|
|
624
|
-
var
|
|
625
|
-
re.Fragment = s, re.jsx =
|
|
624
|
+
var Ot = $t, Nt = Pt;
|
|
625
|
+
re.Fragment = s, re.jsx = Ot, re.jsxs = Nt;
|
|
626
626
|
}()), re;
|
|
627
627
|
}
|
|
628
|
-
process.env.NODE_ENV === "production" ?
|
|
629
|
-
var a =
|
|
630
|
-
const
|
|
631
|
-
notice:
|
|
632
|
-
error:
|
|
633
|
-
success:
|
|
634
|
-
remark:
|
|
635
|
-
copy:
|
|
628
|
+
process.env.NODE_ENV === "production" ? ye.exports = Ft() : ye.exports = Mt();
|
|
629
|
+
var a = ye.exports;
|
|
630
|
+
const Dt = "_notice_820sc_2", At = "_error_820sc_9", Lt = "_success_820sc_12", zt = "_remark_820sc_15", Bt = "_copy_820sc_18", Yt = {
|
|
631
|
+
notice: Dt,
|
|
632
|
+
error: At,
|
|
633
|
+
success: Lt,
|
|
634
|
+
remark: zt,
|
|
635
|
+
copy: Bt,
|
|
636
636
|
"show-notice": "_show-notice_820sc_1",
|
|
637
637
|
"hide-notice": "_hide-notice_820sc_1"
|
|
638
638
|
};
|
|
639
|
-
let
|
|
640
|
-
function
|
|
641
|
-
let [e, r] =
|
|
642
|
-
return
|
|
639
|
+
let Y = {};
|
|
640
|
+
function Wt() {
|
|
641
|
+
let [e, r] = S.useState([]);
|
|
642
|
+
return Y.set = (n) => {
|
|
643
643
|
r([...e, n]);
|
|
644
|
-
},
|
|
644
|
+
}, Y.del = (n) => {
|
|
645
645
|
r(e.filter((s) => s.key !== n));
|
|
646
|
-
}, e.length === 0 ? "" : /* @__PURE__ */ a.jsx("ul", { className:
|
|
646
|
+
}, e.length === 0 ? "" : /* @__PURE__ */ a.jsx("ul", { className: Yt.notice, children: e.map((n) => n.item) });
|
|
647
647
|
}
|
|
648
648
|
function ae({ data: e }) {
|
|
649
|
-
let [r, n] =
|
|
650
|
-
|
|
649
|
+
let [r, n] = S.useState("show");
|
|
650
|
+
S.useEffect(() => {
|
|
651
651
|
setTimeout(function() {
|
|
652
652
|
n("hide");
|
|
653
653
|
}, 1800), setTimeout(function() {
|
|
654
|
-
|
|
654
|
+
Y.del(e.key);
|
|
655
655
|
}, 2500);
|
|
656
656
|
}, [e.key]);
|
|
657
657
|
let s, l;
|
|
658
658
|
switch (e.type) {
|
|
659
659
|
case "error":
|
|
660
|
-
s = /* @__PURE__ */ a.jsx(
|
|
660
|
+
s = /* @__PURE__ */ a.jsx(V.error, {}), l = "Ошибка:";
|
|
661
661
|
break;
|
|
662
662
|
case "success":
|
|
663
|
-
s = /* @__PURE__ */ a.jsx(
|
|
663
|
+
s = /* @__PURE__ */ a.jsx(V.success, {}), l = "Информация:";
|
|
664
664
|
break;
|
|
665
665
|
case "copy":
|
|
666
|
-
s = /* @__PURE__ */ a.jsx(
|
|
666
|
+
s = /* @__PURE__ */ a.jsx(V.success, {}), l = "Копирование:";
|
|
667
667
|
break;
|
|
668
668
|
case "remark":
|
|
669
|
-
s = /* @__PURE__ */ a.jsx(
|
|
669
|
+
s = /* @__PURE__ */ a.jsx(V.success, {}), l = "Подсказка:";
|
|
670
670
|
break;
|
|
671
671
|
default:
|
|
672
|
-
s = /* @__PURE__ */ a.jsx(
|
|
672
|
+
s = /* @__PURE__ */ a.jsx(V.success, {}), l = "Предупреждение:";
|
|
673
673
|
break;
|
|
674
674
|
}
|
|
675
675
|
return /* @__PURE__ */ a.jsxs("li", { className: "item " + e.type, "data-status": r, children: [
|
|
@@ -678,28 +678,28 @@ function ae({ data: e }) {
|
|
|
678
678
|
/* @__PURE__ */ a.jsx("p", { children: e.text })
|
|
679
679
|
] });
|
|
680
680
|
}
|
|
681
|
-
function
|
|
681
|
+
function Ut(e) {
|
|
682
682
|
let r = Date.now(), n = { key: r, ...e };
|
|
683
|
-
|
|
683
|
+
Y.set({ item: /* @__PURE__ */ a.jsx(ae, { data: n }, r), key: r });
|
|
684
684
|
}
|
|
685
|
-
function
|
|
685
|
+
function Vt(e) {
|
|
686
686
|
let r = Date.now(), n = { key: r, text: e, type: "error" };
|
|
687
|
-
|
|
687
|
+
Y.set({ item: /* @__PURE__ */ a.jsx(ae, { data: n }, r), key: r });
|
|
688
688
|
}
|
|
689
|
-
function
|
|
689
|
+
function Ht(e) {
|
|
690
690
|
let r = Date.now(), n = { key: r, text: e, type: "success" };
|
|
691
|
-
|
|
691
|
+
Y.set({ item: /* @__PURE__ */ a.jsx(ae, { data: n }, r), key: r });
|
|
692
692
|
}
|
|
693
|
-
function
|
|
693
|
+
function qt(e) {
|
|
694
694
|
let r = Date.now(), n = { key: r, text: e, type: "remark" };
|
|
695
|
-
|
|
695
|
+
Y.set({ item: /* @__PURE__ */ a.jsx(ae, { data: n }, r), key: r });
|
|
696
696
|
}
|
|
697
|
-
function
|
|
697
|
+
function Gt(e) {
|
|
698
698
|
let r = Date.now(), n = { key: r, text: e, type: "copy" };
|
|
699
|
-
|
|
699
|
+
Y.set({ item: /* @__PURE__ */ a.jsx(ae, { data: n }, r), key: r });
|
|
700
700
|
}
|
|
701
|
-
const
|
|
702
|
-
|
|
701
|
+
const V = {};
|
|
702
|
+
V.error = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
|
|
703
703
|
/* @__PURE__ */ a.jsx(
|
|
704
704
|
"path",
|
|
705
705
|
{
|
|
@@ -715,7 +715,7 @@ U.error = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "non
|
|
|
715
715
|
}
|
|
716
716
|
)
|
|
717
717
|
] });
|
|
718
|
-
|
|
718
|
+
V.success = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
|
|
719
719
|
/* @__PURE__ */ a.jsx(
|
|
720
720
|
"path",
|
|
721
721
|
{
|
|
@@ -731,20 +731,20 @@ U.success = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "n
|
|
|
731
731
|
}
|
|
732
732
|
)
|
|
733
733
|
] });
|
|
734
|
-
const
|
|
735
|
-
alerts:
|
|
736
|
-
menuAnimation:
|
|
737
|
-
menuItemAnimation:
|
|
734
|
+
const Jt = "_alerts_1e9y0_1", Zt = "_menuAnimation_1e9y0_1", Kt = "_menuItemAnimation_1e9y0_1", Xt = "_allert_1e9y0_111", Qt = {
|
|
735
|
+
alerts: Jt,
|
|
736
|
+
menuAnimation: Zt,
|
|
737
|
+
menuItemAnimation: Kt,
|
|
738
738
|
"--body": "_--body_1e9y0_103",
|
|
739
|
-
allert:
|
|
739
|
+
allert: Xt,
|
|
740
740
|
"--form": "_--form_1e9y0_111"
|
|
741
741
|
};
|
|
742
742
|
let ne = {};
|
|
743
|
-
function
|
|
744
|
-
let [e, r] =
|
|
743
|
+
function er() {
|
|
744
|
+
let [e, r] = S.useState("");
|
|
745
745
|
return ne.set = (n) => r(n), ne.del = () => r(""), /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
|
|
746
746
|
}
|
|
747
|
-
const
|
|
747
|
+
const tr = ({ data: e, callback: r }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ a.jsxs("div", { className: Qt.alerts, children: [
|
|
748
748
|
/* @__PURE__ */ a.jsxs("dl", { children: [
|
|
749
749
|
/* @__PURE__ */ a.jsx("dt", { children: e.title }),
|
|
750
750
|
/* @__PURE__ */ a.jsx("dd", { children: e.text }),
|
|
@@ -761,75 +761,75 @@ const Qt = ({ data: e, callback: r }) => (e.button = e.button === void 0 ? "По
|
|
|
761
761
|
] }),
|
|
762
762
|
/* @__PURE__ */ a.jsx("div", { className: "--body", onClick: ne.del })
|
|
763
763
|
] }));
|
|
764
|
-
function
|
|
765
|
-
ne.set(/* @__PURE__ */ a.jsx(
|
|
764
|
+
function rr(e, r) {
|
|
765
|
+
ne.set(/* @__PURE__ */ a.jsx(tr, { data: e, callback: r }));
|
|
766
766
|
}
|
|
767
|
-
function
|
|
767
|
+
function nr({ children: e }) {
|
|
768
768
|
return /* @__PURE__ */ a.jsx("div", { className: "l", children: /* @__PURE__ */ a.jsx("ul", { children: e }) });
|
|
769
769
|
}
|
|
770
|
-
function
|
|
770
|
+
function ar({ children: e }) {
|
|
771
771
|
return /* @__PURE__ */ a.jsx("div", { className: "s", children: e });
|
|
772
772
|
}
|
|
773
|
-
const
|
|
773
|
+
const sr = ({
|
|
774
774
|
children: e,
|
|
775
775
|
disabled: r,
|
|
776
776
|
label: n,
|
|
777
777
|
onClick: s
|
|
778
778
|
}) => {
|
|
779
|
-
const l = (
|
|
780
|
-
r || s && s(
|
|
779
|
+
const l = (m) => {
|
|
780
|
+
r || s && s(m);
|
|
781
781
|
};
|
|
782
782
|
return /* @__PURE__ */ a.jsx("button", { disabled: r, onClick: l, children: n });
|
|
783
|
-
},
|
|
784
|
-
white:
|
|
785
|
-
black:
|
|
786
|
-
shake:
|
|
787
|
-
modal:
|
|
788
|
-
o:
|
|
789
|
-
w:
|
|
790
|
-
h:
|
|
791
|
-
l:
|
|
792
|
-
t:
|
|
793
|
-
m:
|
|
794
|
-
x:
|
|
795
|
-
s:
|
|
796
|
-
c:
|
|
797
|
-
f:
|
|
798
|
-
btn:
|
|
799
|
-
g:
|
|
783
|
+
}, or = "_white_1iomo_14", ir = "_black_1iomo_26", cr = "_shake_1iomo_1", lr = "_modal_1iomo_73", ur = "_o_1iomo_83", fr = "_w_1iomo_14", dr = "_h_1iomo_106", mr = "_l_1iomo_120", pr = "_t_1iomo_158", vr = "_m_1iomo_73", hr = "_x_1iomo_166", gr = "_s_1iomo_176", _r = "_c_1iomo_181", xr = "_f_1iomo_186", br = "_btn_1iomo_229", jr = "_g_1iomo_242", yr = "_confirm_1iomo_320", Sr = "_cancel_1iomo_325", Cr = "_disabled_1iomo_330", Er = "_active_1iomo_387", kr = "_coincidence_1iomo_393", z = {
|
|
784
|
+
white: or,
|
|
785
|
+
black: ir,
|
|
786
|
+
shake: cr,
|
|
787
|
+
modal: lr,
|
|
788
|
+
o: ur,
|
|
789
|
+
w: fr,
|
|
790
|
+
h: dr,
|
|
791
|
+
l: mr,
|
|
792
|
+
t: pr,
|
|
793
|
+
m: vr,
|
|
794
|
+
x: hr,
|
|
795
|
+
s: gr,
|
|
796
|
+
c: _r,
|
|
797
|
+
f: xr,
|
|
798
|
+
btn: br,
|
|
799
|
+
g: jr,
|
|
800
800
|
"size-a": "_size-a_1iomo_294",
|
|
801
801
|
"size-s": "_size-s_1iomo_298",
|
|
802
802
|
"size-m": "_size-m_1iomo_302",
|
|
803
803
|
"size-l": "_size-l_1iomo_306",
|
|
804
804
|
"size-x": "_size-x_1iomo_310",
|
|
805
805
|
"size-f": "_size-f_1iomo_314",
|
|
806
|
-
confirm:
|
|
807
|
-
cancel:
|
|
808
|
-
disabled:
|
|
806
|
+
confirm: yr,
|
|
807
|
+
cancel: Sr,
|
|
808
|
+
disabled: Cr,
|
|
809
809
|
await: "_await_1iomo_337",
|
|
810
|
-
active:
|
|
811
|
-
coincidence:
|
|
810
|
+
active: Er,
|
|
811
|
+
coincidence: kr
|
|
812
812
|
};
|
|
813
813
|
let K = {};
|
|
814
|
-
const
|
|
815
|
-
let [r, n] =
|
|
814
|
+
const Rr = ({ config: e }) => {
|
|
815
|
+
let [r, n] = S.useState([]);
|
|
816
816
|
return K.x = () => {
|
|
817
817
|
n([]);
|
|
818
818
|
}, K.config = e, K.add = (s) => {
|
|
819
819
|
n([...r, s]);
|
|
820
820
|
}, /* @__PURE__ */ a.jsx(a.Fragment, { children: r.map((s) => s) });
|
|
821
|
-
},
|
|
821
|
+
}, wr = ({
|
|
822
822
|
children: e,
|
|
823
823
|
title: r,
|
|
824
824
|
button: n,
|
|
825
825
|
tabs: s,
|
|
826
826
|
size: l = "m",
|
|
827
|
-
menu:
|
|
827
|
+
menu: m
|
|
828
828
|
}) => {
|
|
829
|
-
const [c, f] =
|
|
829
|
+
const [c, f] = S.useState(!0), u = S.useRef(), d = (x) => {
|
|
830
830
|
if (n && n.onClick)
|
|
831
831
|
return n.onClick({ closed: f, disabled: x });
|
|
832
|
-
},
|
|
832
|
+
}, p = () => {
|
|
833
833
|
u.current.setAttribute("shake", !0), setTimeout(() => {
|
|
834
834
|
u.current.setAttribute("shake", !1);
|
|
835
835
|
}, 1e3);
|
|
@@ -839,7 +839,7 @@ const Er = ({ config: e }) => {
|
|
|
839
839
|
{
|
|
840
840
|
className: `${z.modal} ${z.white}`,
|
|
841
841
|
children: [
|
|
842
|
-
/* @__PURE__ */ a.jsx("div", { className: z.o, onClick:
|
|
842
|
+
/* @__PURE__ */ a.jsx("div", { className: z.o, onClick: p }),
|
|
843
843
|
/* @__PURE__ */ a.jsxs("div", { className: z.w, ref: u, children: [
|
|
844
844
|
/* @__PURE__ */ a.jsxs("div", { className: z.h, children: [
|
|
845
845
|
/* @__PURE__ */ a.jsx("div", { className: z.t, children: r }),
|
|
@@ -853,7 +853,7 @@ const Er = ({ config: e }) => {
|
|
|
853
853
|
},
|
|
854
854
|
y
|
|
855
855
|
)) }),
|
|
856
|
-
|
|
856
|
+
m
|
|
857
857
|
] }),
|
|
858
858
|
/* @__PURE__ */ a.jsx(
|
|
859
859
|
"div",
|
|
@@ -868,7 +868,7 @@ const Er = ({ config: e }) => {
|
|
|
868
868
|
] }),
|
|
869
869
|
e,
|
|
870
870
|
n !== void 0 ? /* @__PURE__ */ a.jsx(
|
|
871
|
-
|
|
871
|
+
sr,
|
|
872
872
|
{
|
|
873
873
|
label: String(n.name),
|
|
874
874
|
onClick: d
|
|
@@ -878,22 +878,22 @@ const Er = ({ config: e }) => {
|
|
|
878
878
|
]
|
|
879
879
|
}
|
|
880
880
|
) : "" });
|
|
881
|
-
},
|
|
882
|
-
K.add(/* @__PURE__ */ a.jsx(
|
|
883
|
-
},
|
|
884
|
-
let [s, l] =
|
|
885
|
-
return
|
|
881
|
+
}, Ir = (e) => {
|
|
882
|
+
K.add(/* @__PURE__ */ a.jsx(Tr, { children: e }, String(Date.now())));
|
|
883
|
+
}, Tr = ({ children: e }) => /* @__PURE__ */ a.jsx(a.Fragment, { children: e }), Pr = ({ type: e, name: r, params: n }) => {
|
|
884
|
+
let [s, l] = S.useState(null);
|
|
885
|
+
return S.useEffect(() => {
|
|
886
886
|
K.config(e, r, n, l);
|
|
887
887
|
}, [n.id]), /* @__PURE__ */ a.jsx(a.Fragment, { children: s });
|
|
888
|
-
},
|
|
888
|
+
}, $r = (e, r, n) => {
|
|
889
889
|
K.config(e, r, n);
|
|
890
|
-
},
|
|
891
|
-
let
|
|
892
|
-
const
|
|
893
|
-
function
|
|
894
|
-
if (
|
|
890
|
+
}, Or = { List: nr, Scroll: ar, Init: Rr, Main: wr, Add: Ir, Icon: Pr, Open: $r };
|
|
891
|
+
let E = {};
|
|
892
|
+
const h = {}, P = {}, Ke = {}, tt = {}, H = {};
|
|
893
|
+
function Nr(e, r) {
|
|
894
|
+
if (E = e, localStorage.getItem("ssid")) {
|
|
895
895
|
let s = sessionStorage.getItem("page");
|
|
896
|
-
s ? (s =
|
|
896
|
+
s ? (s = E.deCode(s), h.id = s.id, h.tab = s.tab, h.page = s.page, h.module = s.module, h.time = s.time, h.payment = { active: !0 }, h.module_admin = s.module_admin) : (h.id = 0, h.tab = "", h.page = "Main", h.module = h.module || "M05");
|
|
897
897
|
} else
|
|
898
898
|
[
|
|
899
899
|
"ssid",
|
|
@@ -908,7 +908,7 @@ function $r(e, r) {
|
|
|
908
908
|
"port",
|
|
909
909
|
"mark",
|
|
910
910
|
"sort"
|
|
911
|
-
].forEach((s) => localStorage.removeItem(s)), ["page"].forEach((s) => sessionStorage.removeItem(s)),
|
|
911
|
+
].forEach((s) => localStorage.removeItem(s)), ["page"].forEach((s) => sessionStorage.removeItem(s)), h.id = 0, h.tab = "", h.page = "Auth", h.module = "M00";
|
|
912
912
|
return r;
|
|
913
913
|
}
|
|
914
914
|
function M() {
|
|
@@ -927,202 +927,202 @@ function M() {
|
|
|
927
927
|
"sort"
|
|
928
928
|
].forEach((e) => localStorage.removeItem(e)), ["page"].forEach((e) => sessionStorage.removeItem(e)), window.location.reload();
|
|
929
929
|
}
|
|
930
|
-
function
|
|
931
|
-
e = e.split("/"),
|
|
930
|
+
function Fr(e) {
|
|
931
|
+
e = e.split("/"), h.page = "Main", h.module = e[0], h.tab = e[1], h.id = 0, sessionStorage.setItem(
|
|
932
932
|
"page",
|
|
933
|
-
|
|
934
|
-
module:
|
|
935
|
-
page:
|
|
936
|
-
tab:
|
|
937
|
-
id:
|
|
933
|
+
E.enCode({
|
|
934
|
+
module: h.module,
|
|
935
|
+
page: h.page,
|
|
936
|
+
tab: h.tab,
|
|
937
|
+
id: h.id,
|
|
938
938
|
time: (/* @__PURE__ */ new Date()).getTime()
|
|
939
939
|
})
|
|
940
|
-
), P.page(
|
|
940
|
+
), P.page(h.page);
|
|
941
941
|
}
|
|
942
|
-
function
|
|
942
|
+
function Mr(e) {
|
|
943
943
|
return localStorage.setItem("ssid", e);
|
|
944
944
|
}
|
|
945
|
-
function
|
|
945
|
+
function Dr() {
|
|
946
946
|
let e = localStorage.getItem("ssid");
|
|
947
947
|
return e !== "" && e !== "undefined" && e !== null ? localStorage.getItem("ssid") : (M(), !1);
|
|
948
948
|
}
|
|
949
|
-
function
|
|
949
|
+
function Ar(e) {
|
|
950
950
|
return localStorage.setItem("auth", e);
|
|
951
951
|
}
|
|
952
|
-
function
|
|
952
|
+
function Lr() {
|
|
953
953
|
let e = localStorage.getItem("auth");
|
|
954
954
|
return e !== "" && e !== "undefined" && e !== null ? e : (M(), !1);
|
|
955
955
|
}
|
|
956
|
-
function
|
|
957
|
-
localStorage.setItem("port",
|
|
956
|
+
function zr(e) {
|
|
957
|
+
localStorage.setItem("port", E.enCode(e));
|
|
958
958
|
}
|
|
959
|
-
function
|
|
959
|
+
function Br() {
|
|
960
960
|
let e = localStorage.getItem("port");
|
|
961
961
|
if (e !== "" && e !== "undefined" && e !== null) {
|
|
962
|
-
let r =
|
|
962
|
+
let r = E.deCode(e);
|
|
963
963
|
return r || M(), r;
|
|
964
964
|
} else
|
|
965
965
|
return M(), !1;
|
|
966
966
|
}
|
|
967
|
-
function
|
|
968
|
-
const [e, r] =
|
|
967
|
+
function Yr() {
|
|
968
|
+
const [e, r] = S.useState(rt()), n = (s) => {
|
|
969
969
|
r(s);
|
|
970
970
|
};
|
|
971
971
|
return P.page = n, [e];
|
|
972
972
|
}
|
|
973
|
-
function
|
|
974
|
-
|
|
973
|
+
function Wr(e) {
|
|
974
|
+
h.page = e, sessionStorage.setItem("page", E.enCode(h)), P.page(e);
|
|
975
975
|
}
|
|
976
|
-
function
|
|
977
|
-
return
|
|
976
|
+
function rt() {
|
|
977
|
+
return h.page;
|
|
978
978
|
}
|
|
979
|
-
function
|
|
980
|
-
const [e, r] =
|
|
979
|
+
function Ur() {
|
|
980
|
+
const [e, r] = S.useState(nt()), n = (s) => {
|
|
981
981
|
r(s);
|
|
982
982
|
};
|
|
983
983
|
return P.module = n, [e];
|
|
984
984
|
}
|
|
985
|
-
function
|
|
986
|
-
|
|
985
|
+
function Vr(e, r) {
|
|
986
|
+
h.module = e, sessionStorage.setItem("page", E.enCode(h)), r !== "false" && P.module(e);
|
|
987
987
|
}
|
|
988
|
-
function
|
|
989
|
-
return
|
|
988
|
+
function nt() {
|
|
989
|
+
return h.module;
|
|
990
990
|
}
|
|
991
|
-
function
|
|
992
|
-
const [r, n] =
|
|
991
|
+
function Hr(e) {
|
|
992
|
+
const [r, n] = S.useState(de() || e), s = (l) => {
|
|
993
993
|
n(l);
|
|
994
994
|
};
|
|
995
995
|
return P.tabs = s, [r];
|
|
996
996
|
}
|
|
997
|
-
function
|
|
998
|
-
|
|
997
|
+
function qr(e, r) {
|
|
998
|
+
h.tab = e, sessionStorage.setItem("page", E.enCode(h)), r !== "false" && P.tabs(e);
|
|
999
999
|
}
|
|
1000
|
-
function
|
|
1001
|
-
return
|
|
1000
|
+
function de() {
|
|
1001
|
+
return h.tab;
|
|
1002
1002
|
}
|
|
1003
|
-
function
|
|
1004
|
-
const [e, r] =
|
|
1003
|
+
function Gr() {
|
|
1004
|
+
const [e, r] = S.useState(h.id), n = (s) => {
|
|
1005
1005
|
r(s);
|
|
1006
1006
|
};
|
|
1007
1007
|
return P.id = n, [e];
|
|
1008
1008
|
}
|
|
1009
|
-
function
|
|
1009
|
+
function Jr(e) {
|
|
1010
1010
|
P.id = e;
|
|
1011
1011
|
}
|
|
1012
|
-
function
|
|
1013
|
-
|
|
1012
|
+
function Zr(e, r) {
|
|
1013
|
+
h.id = e, sessionStorage.setItem("page", E.enCode(h)), r !== "false" && P.id(e);
|
|
1014
1014
|
}
|
|
1015
|
-
function
|
|
1016
|
-
return
|
|
1015
|
+
function Kr() {
|
|
1016
|
+
return h.id;
|
|
1017
1017
|
}
|
|
1018
|
-
function
|
|
1019
|
-
|
|
1018
|
+
function Xr(e, r, n) {
|
|
1019
|
+
h.module = e, h.id = n, h.tab = r, sessionStorage.setItem("page", E.enCode(h)), P.module(e), P.tabs(r);
|
|
1020
1020
|
}
|
|
1021
|
-
function
|
|
1022
|
-
|
|
1021
|
+
function Qr(e, r) {
|
|
1022
|
+
Ke.data[e] = r, localStorage.setItem("sett", E.enCode(Ke.data));
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1024
|
+
function en(e) {
|
|
1025
1025
|
let r = localStorage.getItem("sett");
|
|
1026
|
-
return r === null ? {} : (r =
|
|
1026
|
+
return r === null ? {} : (r = E.deCode(r), r ? e !== void 0 ? r[e] : r : M());
|
|
1027
1027
|
}
|
|
1028
|
-
function
|
|
1029
|
-
localStorage.setItem("menu",
|
|
1028
|
+
function tn(e) {
|
|
1029
|
+
localStorage.setItem("menu", E.enCode({ data: e }));
|
|
1030
1030
|
}
|
|
1031
|
-
function
|
|
1031
|
+
function rn() {
|
|
1032
1032
|
let e = localStorage.getItem("menu");
|
|
1033
1033
|
if (e !== "" && e !== "undefined" && e !== null) {
|
|
1034
|
-
let r = localStorage.getItem("menu"), n =
|
|
1034
|
+
let r = localStorage.getItem("menu"), n = E.deCode(r);
|
|
1035
1035
|
n || M();
|
|
1036
|
-
const s = (
|
|
1036
|
+
const s = (m, c) => {
|
|
1037
1037
|
let f = c + "";
|
|
1038
|
-
for (; f.length <
|
|
1038
|
+
for (; f.length < m; )
|
|
1039
1039
|
f = "0" + f;
|
|
1040
1040
|
return f;
|
|
1041
1041
|
};
|
|
1042
|
-
return n.data.split(",").map((
|
|
1042
|
+
return n.data.split(",").map((m) => "M" + s(2, m));
|
|
1043
1043
|
} else
|
|
1044
1044
|
return M(), !1;
|
|
1045
1045
|
}
|
|
1046
|
-
function
|
|
1046
|
+
function nn(e) {
|
|
1047
1047
|
P.sort = e;
|
|
1048
1048
|
}
|
|
1049
|
-
function
|
|
1049
|
+
function at(e) {
|
|
1050
1050
|
let r = localStorage.getItem("sort");
|
|
1051
|
-
r = r === null ? {} :
|
|
1051
|
+
r = r === null ? {} : E.deCode(r), r[de()] = e, localStorage.setItem("sort", E.enCode(r));
|
|
1052
1052
|
}
|
|
1053
|
-
function
|
|
1053
|
+
function Se() {
|
|
1054
1054
|
let e = localStorage.getItem("sort");
|
|
1055
|
-
return e === null ? {} : (e =
|
|
1055
|
+
return e === null ? {} : (e = E.deCode(e), e = e[de()], e = e === void 0 ? { active: 1, sort: "<" } : e, e);
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1058
|
-
localStorage.setItem("c",
|
|
1057
|
+
function an(e) {
|
|
1058
|
+
localStorage.setItem("c", E.enCode(e));
|
|
1059
1059
|
}
|
|
1060
|
-
function
|
|
1060
|
+
function sn(e) {
|
|
1061
1061
|
let r = localStorage.getItem("c");
|
|
1062
1062
|
if (r !== "" && r !== "undefined" && r !== null) {
|
|
1063
|
-
let n =
|
|
1063
|
+
let n = E.deCode(r);
|
|
1064
1064
|
return n || M(), e === void 0 ? n : n[e];
|
|
1065
1065
|
} else
|
|
1066
1066
|
return M(), !1;
|
|
1067
1067
|
}
|
|
1068
|
-
function
|
|
1069
|
-
H.data = e, localStorage.setItem("qder",
|
|
1068
|
+
function on(e) {
|
|
1069
|
+
H.data = e, localStorage.setItem("qder", E.enCode(H.data));
|
|
1070
1070
|
}
|
|
1071
|
-
function
|
|
1071
|
+
function cn(e, r) {
|
|
1072
1072
|
if (!H.data) {
|
|
1073
1073
|
let n = localStorage.getItem("qder");
|
|
1074
|
-
n && (H.data =
|
|
1074
|
+
n && (H.data = E.deCode(n));
|
|
1075
1075
|
}
|
|
1076
1076
|
return e === void 0 && r === void 0 ? H.data : e !== void 0 && r === void 0 ? H.data[e] : H.data[e][r];
|
|
1077
1077
|
}
|
|
1078
|
-
function
|
|
1079
|
-
|
|
1078
|
+
function ln(e) {
|
|
1079
|
+
tt.data = e;
|
|
1080
1080
|
}
|
|
1081
|
-
function
|
|
1082
|
-
return
|
|
1081
|
+
function un(e) {
|
|
1082
|
+
return tt.data[e];
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1085
|
-
|
|
1084
|
+
function fn(e) {
|
|
1085
|
+
h.payment = e;
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1088
|
-
return
|
|
1087
|
+
function dn() {
|
|
1088
|
+
return h.payment;
|
|
1089
1089
|
}
|
|
1090
|
-
const
|
|
1091
|
-
/* @__PURE__ */ a.jsx(
|
|
1092
|
-
/* @__PURE__ */ a.jsx(
|
|
1093
|
-
/* @__PURE__ */ a.jsx(
|
|
1090
|
+
const mn = ({ children: e, config: r, crypto: n, ...s }) => Nr(n, /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1091
|
+
/* @__PURE__ */ a.jsx(Or.Init, { config: r.modal }),
|
|
1092
|
+
/* @__PURE__ */ a.jsx(Wt, {}),
|
|
1093
|
+
/* @__PURE__ */ a.jsx(er, {}),
|
|
1094
1094
|
e
|
|
1095
|
-
] })),
|
|
1095
|
+
] })), pn = ({ children: e, ...r }) => /* @__PURE__ */ a.jsx("menu", { children: e }), vn = ({ children: e, ...r }) => /* @__PURE__ */ a.jsxs("header", { children: [
|
|
1096
1096
|
"xz",
|
|
1097
1097
|
e
|
|
1098
|
-
] }),
|
|
1099
|
-
payment:
|
|
1098
|
+
] }), hn = "_payment_1lxfv_1", gn = {
|
|
1099
|
+
payment: hn
|
|
1100
1100
|
};
|
|
1101
|
-
function
|
|
1102
|
-
let [e, r] =
|
|
1103
|
-
return !e.active && !e.payment ? "" : /* @__PURE__ */ a.jsx("div", { className:
|
|
1101
|
+
function _n() {
|
|
1102
|
+
let [e, r] = S.useState({});
|
|
1103
|
+
return !e.active && !e.payment ? "" : /* @__PURE__ */ a.jsx("div", { className: gn.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
|
|
1104
1104
|
}
|
|
1105
|
-
const
|
|
1105
|
+
const ba = ({ children: e, ...r }) => {
|
|
1106
1106
|
let n = {};
|
|
1107
1107
|
return n.enCode = (s) => JSON.stringify(s).toString(), n.deCode = (s) => JSON.parse(s), /* @__PURE__ */ a.jsxs("div", { className: "app", children: [
|
|
1108
|
-
/* @__PURE__ */ a.jsx(
|
|
1109
|
-
/* @__PURE__ */ a.jsx(
|
|
1110
|
-
/* @__PURE__ */ a.jsx(
|
|
1111
|
-
/* @__PURE__ */ a.jsx(
|
|
1108
|
+
/* @__PURE__ */ a.jsx(_n, {}),
|
|
1109
|
+
/* @__PURE__ */ a.jsx(pn, {}),
|
|
1110
|
+
/* @__PURE__ */ a.jsx(vn, {}),
|
|
1111
|
+
/* @__PURE__ */ a.jsx(mn, { config: { modal: {} }, crypto: n }),
|
|
1112
1112
|
e
|
|
1113
1113
|
] });
|
|
1114
|
-
},
|
|
1115
|
-
|
|
1114
|
+
}, xn = ({ list: e, onClick: r, active: n, size: s, view: l }) => /* @__PURE__ */ a.jsx("nav", { children: /* @__PURE__ */ a.jsx("ul", { className: [s, l].join(" "), children: e.map((m) => /* @__PURE__ */ a.jsx(
|
|
1115
|
+
bn,
|
|
1116
1116
|
{
|
|
1117
1117
|
onClick: r,
|
|
1118
1118
|
active: n,
|
|
1119
|
-
label:
|
|
1120
|
-
link:
|
|
1119
|
+
label: m.label,
|
|
1120
|
+
link: m.link
|
|
1121
1121
|
},
|
|
1122
|
-
|
|
1123
|
-
)) }) }),
|
|
1124
|
-
|
|
1125
|
-
const
|
|
1122
|
+
m.link
|
|
1123
|
+
)) }) }), bn = ({ onClick: e, label: r, link: n, active: s }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(s === n), onClick: () => e(n), children: r });
|
|
1124
|
+
xn.defaultProps = { size: "M", view: "H" };
|
|
1125
|
+
const jn = ({
|
|
1126
1126
|
title: e = "",
|
|
1127
1127
|
button: r,
|
|
1128
1128
|
description: n = "",
|
|
@@ -1142,10 +1142,10 @@ const xn = ({
|
|
|
1142
1142
|
] }),
|
|
1143
1143
|
/* @__PURE__ */ a.jsx("ul", { children: s }),
|
|
1144
1144
|
n && /* @__PURE__ */ a.jsx("article", { children: n })
|
|
1145
|
-
] }),
|
|
1146
|
-
setting:
|
|
1147
|
-
},
|
|
1148
|
-
let [n, s] =
|
|
1145
|
+
] }), yn = "_setting_1r0pc_2", Sn = {
|
|
1146
|
+
setting: yn
|
|
1147
|
+
}, Cn = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: Sn.setting, children: e }), En = ({ label: e, children: r }) => {
|
|
1148
|
+
let [n, s] = S.useState(!1);
|
|
1149
1149
|
return /* @__PURE__ */ a.jsxs("li", { "data-item": "accordion", children: [
|
|
1150
1150
|
/* @__PURE__ */ a.jsxs("dl", { onClick: () => s(!n), children: [
|
|
1151
1151
|
/* @__PURE__ */ a.jsx("dt", { children: e }),
|
|
@@ -1153,10 +1153,10 @@ const xn = ({
|
|
|
1153
1153
|
] }),
|
|
1154
1154
|
n && /* @__PURE__ */ a.jsx("div", { children: r })
|
|
1155
1155
|
] });
|
|
1156
|
-
},
|
|
1156
|
+
}, kn = ({ label: e, onClick: r, button: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
|
|
1157
1157
|
/* @__PURE__ */ a.jsx("dt", { children: e }),
|
|
1158
1158
|
/* @__PURE__ */ a.jsx("dd", { role: "button", onClick: () => r(), children: n })
|
|
1159
|
-
] }) }),
|
|
1159
|
+
] }) }), Rn = ({ active: e, onClick: r }) => (console.log(e), e = typeof e == "number" ? !!e : e, /* @__PURE__ */ a.jsx(
|
|
1160
1160
|
"div",
|
|
1161
1161
|
{
|
|
1162
1162
|
role: "switch",
|
|
@@ -1165,52 +1165,52 @@ const xn = ({
|
|
|
1165
1165
|
},
|
|
1166
1166
|
"aria-checked": e ? "true" : "false"
|
|
1167
1167
|
}
|
|
1168
|
-
)),
|
|
1168
|
+
)), wn = { Switch: Rn }, In = ({ label: e, onClick: r, active: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
|
|
1169
1169
|
/* @__PURE__ */ a.jsx("dt", { children: e }),
|
|
1170
|
-
/* @__PURE__ */ a.jsx("dd", { children: /* @__PURE__ */ a.jsx(
|
|
1171
|
-
] }) }),
|
|
1170
|
+
/* @__PURE__ */ a.jsx("dd", { children: /* @__PURE__ */ a.jsx(wn.Switch, { onClick: r, active: n }) })
|
|
1171
|
+
] }) }), Tn = ({ label: e, active: r, options: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
|
|
1172
1172
|
/* @__PURE__ */ a.jsx("dt", { children: e }),
|
|
1173
1173
|
/* @__PURE__ */ a.jsx("dd", { role: "info", children: r })
|
|
1174
|
-
] }) }),
|
|
1174
|
+
] }) }), Pn = ({ label: e, info: r }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
|
|
1175
1175
|
/* @__PURE__ */ a.jsx("dt", { children: e }),
|
|
1176
1176
|
/* @__PURE__ */ a.jsx("dd", { role: "info", children: r })
|
|
1177
|
-
] }) }),
|
|
1177
|
+
] }) }), $n = ({ label: e, children: r }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
|
|
1178
1178
|
/* @__PURE__ */ a.jsx("dt", { children: e }),
|
|
1179
1179
|
/* @__PURE__ */ a.jsx("dd", { children: r })
|
|
1180
|
-
] }) }),
|
|
1180
|
+
] }) }), On = ({ label: e, children: r }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
|
|
1181
1181
|
/* @__PURE__ */ a.jsx("dt", { children: e }),
|
|
1182
1182
|
/* @__PURE__ */ a.jsx("dd", { children: r })
|
|
1183
|
-
] }) }),
|
|
1184
|
-
function
|
|
1185
|
-
return /* @__PURE__ */ a.jsx("nav", { children: /* @__PURE__ */ a.jsx("ul", { className: [s, l].join(" "), children: e.map((
|
|
1186
|
-
|
|
1183
|
+
] }) }), Nn = { Accordion: En, Button: kn, Switch: In, Info: Pn, Select: Tn, Component: $n, Node: On };
|
|
1184
|
+
function st({ list: e, onClick: r, active: n, size: s, view: l }) {
|
|
1185
|
+
return /* @__PURE__ */ a.jsx("nav", { children: /* @__PURE__ */ a.jsx("ul", { className: [s, l].join(" "), children: e.map((m) => /* @__PURE__ */ a.jsx(
|
|
1186
|
+
Fn,
|
|
1187
1187
|
{
|
|
1188
1188
|
onClick: r,
|
|
1189
1189
|
active: n,
|
|
1190
|
-
label:
|
|
1191
|
-
link:
|
|
1190
|
+
label: m.label,
|
|
1191
|
+
link: m.link
|
|
1192
1192
|
},
|
|
1193
|
-
|
|
1193
|
+
m.link
|
|
1194
1194
|
)) }) });
|
|
1195
1195
|
}
|
|
1196
|
-
const
|
|
1197
|
-
|
|
1198
|
-
const
|
|
1199
|
-
h:
|
|
1200
|
-
t:
|
|
1201
|
-
s:
|
|
1202
|
-
u:
|
|
1203
|
-
o:
|
|
1204
|
-
l:
|
|
1205
|
-
hh:
|
|
1206
|
-
},
|
|
1196
|
+
const Fn = ({ onClick: e, label: r, link: n, active: s }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(s === n), onClick: () => e(n), children: r });
|
|
1197
|
+
st.defaultProps = { size: "M", view: "H" };
|
|
1198
|
+
const ja = { Section: jn, Main: Cn, Item: Nn, Tabs: st }, Mn = "_h_158b4_1", Dn = "_t_158b4_11", An = "_s_158b4_31", Ln = "_u_158b4_40", zn = "_o_158b4_47", Bn = "_l_158b4_56", Yn = "_hh_158b4_63", q = {
|
|
1199
|
+
h: Mn,
|
|
1200
|
+
t: Dn,
|
|
1201
|
+
s: An,
|
|
1202
|
+
u: Ln,
|
|
1203
|
+
o: zn,
|
|
1204
|
+
l: Bn,
|
|
1205
|
+
hh: Yn
|
|
1206
|
+
}, Xe = ({ title: e, children: r }) => /* @__PURE__ */ a.jsxs("div", { className: q.h, children: [
|
|
1207
1207
|
/* @__PURE__ */ a.jsx("div", { className: q.t, children: e }),
|
|
1208
1208
|
r
|
|
1209
|
-
] }),
|
|
1209
|
+
] }), Wn = ({ children: e, title: r }) => /* @__PURE__ */ a.jsxs("div", { className: q.o, children: [
|
|
1210
1210
|
r && /* @__PURE__ */ a.jsx("div", { className: q.hh, children: r }),
|
|
1211
1211
|
e
|
|
1212
|
-
] }),
|
|
1213
|
-
function
|
|
1212
|
+
] }), Un = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: q.u, children: e }), Qe = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: q.s, children: e }), et = ({ children: e, ...r }) => /* @__PURE__ */ a.jsx("div", { className: q.l, children: e }), ya = { Header: Xe, Section: Qe, List: et, U: Un, L: et, O: Wn, S: Qe, H: Xe }, Sa = { Send: Ut, Error: Vt, Remark: qt, Success: Ht, Copy: Gt }, Ca = { Send: rr };
|
|
1213
|
+
function Vn() {
|
|
1214
1214
|
return /* @__PURE__ */ a.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ a.jsx(
|
|
1215
1215
|
"path",
|
|
1216
1216
|
{
|
|
@@ -1219,39 +1219,39 @@ function Wn() {
|
|
|
1219
1219
|
}
|
|
1220
1220
|
) });
|
|
1221
1221
|
}
|
|
1222
|
-
const
|
|
1223
|
-
setSSID:
|
|
1224
|
-
getSSID:
|
|
1225
|
-
getPORT:
|
|
1226
|
-
setPORT:
|
|
1227
|
-
setAUTH:
|
|
1228
|
-
getAUTH:
|
|
1222
|
+
const Ea = { Logo: Vn }, ka = {
|
|
1223
|
+
setSSID: Mr,
|
|
1224
|
+
getSSID: Dr,
|
|
1225
|
+
getPORT: Br,
|
|
1226
|
+
setPORT: zr,
|
|
1227
|
+
setAUTH: Ar,
|
|
1228
|
+
getAUTH: Lr,
|
|
1229
1229
|
Logaut: M,
|
|
1230
|
-
Start:
|
|
1231
|
-
setSetting:
|
|
1232
|
-
getSetting:
|
|
1233
|
-
setMenu:
|
|
1234
|
-
getMenu:
|
|
1235
|
-
useSort:
|
|
1236
|
-
setSort:
|
|
1237
|
-
getSort:
|
|
1238
|
-
setCompany:
|
|
1239
|
-
getCompany:
|
|
1240
|
-
setSelect:
|
|
1241
|
-
getSelect:
|
|
1242
|
-
setApi:
|
|
1243
|
-
getApi:
|
|
1244
|
-
setPayment:
|
|
1245
|
-
getPayment:
|
|
1246
|
-
},
|
|
1247
|
-
sort:
|
|
1230
|
+
Start: Fr,
|
|
1231
|
+
setSetting: Qr,
|
|
1232
|
+
getSetting: en,
|
|
1233
|
+
setMenu: tn,
|
|
1234
|
+
getMenu: rn,
|
|
1235
|
+
useSort: nn,
|
|
1236
|
+
setSort: at,
|
|
1237
|
+
getSort: Se,
|
|
1238
|
+
setCompany: an,
|
|
1239
|
+
getCompany: sn,
|
|
1240
|
+
setSelect: on,
|
|
1241
|
+
getSelect: cn,
|
|
1242
|
+
setApi: ln,
|
|
1243
|
+
getApi: un,
|
|
1244
|
+
setPayment: fn,
|
|
1245
|
+
getPayment: dn
|
|
1246
|
+
}, Ra = { Path: Xr, setPage: Wr, getPage: rt, usePage: Yr, setModule: Vr, getModule: nt, useModule: Ur, setTabs: qr, getTabs: de, useTabs: Hr, useId: Gr, setId: Zr, subId: Jr, getId: Kr }, Hn = "_sort_1yrvt_1", qn = {
|
|
1247
|
+
sort: Hn
|
|
1248
1248
|
};
|
|
1249
|
-
let
|
|
1250
|
-
function
|
|
1249
|
+
let me = {};
|
|
1250
|
+
function Gn(e, r) {
|
|
1251
1251
|
switch (r.type) {
|
|
1252
1252
|
case "active":
|
|
1253
1253
|
let n = "<";
|
|
1254
|
-
return e.active === r.data && (n = e.sort === "<" ? ">" : "<"),
|
|
1254
|
+
return e.active === r.data && (n = e.sort === "<" ? ">" : "<"), me.get({ active: r.data, sort: n }, !1), at({ active: r.data, sort: n }), {
|
|
1255
1255
|
...e,
|
|
1256
1256
|
active: r.data,
|
|
1257
1257
|
sort: n
|
|
@@ -1260,12 +1260,12 @@ function Hn(e, r) {
|
|
|
1260
1260
|
throw new Error();
|
|
1261
1261
|
}
|
|
1262
1262
|
}
|
|
1263
|
-
function
|
|
1264
|
-
const [e, r] =
|
|
1265
|
-
|
|
1266
|
-
|
|
1263
|
+
function Jn() {
|
|
1264
|
+
const [e, r] = S.useReducer(
|
|
1265
|
+
Gn,
|
|
1266
|
+
Se() === void 0 ? { active: 1, sort: "<" } : Se()
|
|
1267
1267
|
);
|
|
1268
|
-
return /* @__PURE__ */ a.jsxs("div", { className:
|
|
1268
|
+
return /* @__PURE__ */ a.jsxs("div", { className: qn.sort, children: [
|
|
1269
1269
|
/* @__PURE__ */ a.jsx(
|
|
1270
1270
|
"i",
|
|
1271
1271
|
{
|
|
@@ -1292,17 +1292,17 @@ function qn() {
|
|
|
1292
1292
|
)
|
|
1293
1293
|
] });
|
|
1294
1294
|
}
|
|
1295
|
-
function
|
|
1296
|
-
|
|
1295
|
+
function Zn(e) {
|
|
1296
|
+
me.get = e;
|
|
1297
1297
|
}
|
|
1298
|
-
function
|
|
1299
|
-
|
|
1298
|
+
function Kn(e) {
|
|
1299
|
+
me.set(e);
|
|
1300
1300
|
}
|
|
1301
|
-
function
|
|
1302
|
-
let s = 1, l = 0,
|
|
1303
|
-
|
|
1301
|
+
function Xn(e, r, n) {
|
|
1302
|
+
let s = 1, l = 0, m = {}, c = 50;
|
|
1303
|
+
m[s] = [];
|
|
1304
1304
|
let f = {}, u = "s1a";
|
|
1305
|
-
switch (f.s1a = (d,
|
|
1305
|
+
switch (f.s1a = (d, p) => p.s1 - d.s1, f.s1d = (d, p) => d.s1 - p.s1, f.s2a = (d, p) => d.s2 - p.s2, f.s2d = (d, p) => p.s2 - d.s2, f.s3a = (d, p) => d.s3.localeCompare(p.s3), f.s3d = (d, p) => p.s3.localeCompare(d.s3), n.active) {
|
|
1306
1306
|
case 1:
|
|
1307
1307
|
u = n.sort === ">" ? "s1d" : "s1a";
|
|
1308
1308
|
break;
|
|
@@ -1314,14 +1314,14 @@ function Zn(e, r, n) {
|
|
|
1314
1314
|
break;
|
|
1315
1315
|
}
|
|
1316
1316
|
return r.sort(f[u]).forEach((d) => {
|
|
1317
|
-
l++, l <= c || (s++, l = 1,
|
|
1318
|
-
}), { data:
|
|
1317
|
+
l++, l <= c || (s++, l = 1, m[s] = []), m[s].push(e[d.id]);
|
|
1318
|
+
}), { data: m };
|
|
1319
1319
|
}
|
|
1320
|
-
function
|
|
1321
|
-
|
|
1320
|
+
function Qn(e) {
|
|
1321
|
+
me.count(e);
|
|
1322
1322
|
}
|
|
1323
|
-
const
|
|
1324
|
-
function
|
|
1323
|
+
const wa = { Init: Jn, useValue: Zn, Set: Kn, Run: Xn, Count: Qn };
|
|
1324
|
+
function ea(e, r) {
|
|
1325
1325
|
r === void 0 ? (r = e, e = /* @__PURE__ */ new Date()) : e = new Date(e);
|
|
1326
1326
|
let n = {
|
|
1327
1327
|
yyyy: e.getFullYear(),
|
|
@@ -1338,11 +1338,11 @@ function Xn(e, r) {
|
|
|
1338
1338
|
r = r.replace(s, n[s]);
|
|
1339
1339
|
return r;
|
|
1340
1340
|
}
|
|
1341
|
-
function
|
|
1341
|
+
function ta(e) {
|
|
1342
1342
|
let r = ["Января", "Февраля", "Марта", "Апреля", "Мая", "Июня", "Июля", "Августа", "Сентября", "Октября", "Ноября", "Декабря"], n = new Date(e);
|
|
1343
1343
|
return { day: ("" + n.getFullYear()).slice(-2) + "" + ("0" + (n.getMonth() + 1)).slice(-2) + ("0" + n.getDate()).slice(-2), name: n.getDate() + " " + r[n.getMonth()] };
|
|
1344
1344
|
}
|
|
1345
|
-
const
|
|
1345
|
+
const ra = (e) => {
|
|
1346
1346
|
function r(F, L) {
|
|
1347
1347
|
var W, se, G;
|
|
1348
1348
|
F = F ?? "", L = L ?? 1;
|
|
@@ -1416,42 +1416,42 @@ const ea = (e) => {
|
|
|
1416
1416
|
u3: ["тысяча", "тысячи", "тысяч"],
|
|
1417
1417
|
u2: ["миллион", "миллиона", "миллионов"],
|
|
1418
1418
|
u1: ["миллиард", "миллиарда", "миллиардов"]
|
|
1419
|
-
}, l,
|
|
1420
|
-
|
|
1421
|
-
var
|
|
1422
|
-
if (
|
|
1419
|
+
}, l, m, c, f, N, u, d, X, p, x, y, I;
|
|
1420
|
+
p = parseFloat(e).toFixed(2).split("."), u = p[0], f = p[1];
|
|
1421
|
+
var O = 12 - u.length;
|
|
1422
|
+
if (O < 0)
|
|
1423
1423
|
return !1;
|
|
1424
|
-
for (var X = [];
|
|
1424
|
+
for (var X = []; O--; )
|
|
1425
1425
|
X.push("0");
|
|
1426
1426
|
u = X.join("") + u;
|
|
1427
|
-
var
|
|
1427
|
+
var N = [];
|
|
1428
1428
|
if (u > 0) {
|
|
1429
1429
|
x = r(u, 3);
|
|
1430
1430
|
for (var T = -1; T < x.length; T++)
|
|
1431
|
-
if (d = x[T], d > 0 && (y = r(d, 1), l = parseInt(y[0]),
|
|
1432
|
-
s.a20[
|
|
1433
|
-
) :
|
|
1434
|
-
|
|
1431
|
+
if (d = x[T], d > 0 && (y = r(d, 1), l = parseInt(y[0]), m = parseInt(y[1]), c = parseInt(y[2]), N.push(s.a100[l - 1]), I = T + 1 == 3 ? "a2" : "a1", m > 1 ? N.push(
|
|
1432
|
+
s.a20[m - 2] + (c > 0 ? " " + s[I][c - 1] : "")
|
|
1433
|
+
) : N.push(
|
|
1434
|
+
m > 0 ? s.a10[c] : s[I][c - 1]
|
|
1435
1435
|
), x.length > T + 1)) {
|
|
1436
1436
|
var R = s["u" + (T + 1)];
|
|
1437
|
-
|
|
1437
|
+
N.push(n(d, R));
|
|
1438
1438
|
}
|
|
1439
1439
|
} else
|
|
1440
|
-
|
|
1441
|
-
return
|
|
1440
|
+
N.push(s.null);
|
|
1441
|
+
return N.push(n(u, s.ur)), N.push(f + " " + n(f, s.uc)), N.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
|
|
1442
1442
|
};
|
|
1443
|
-
function
|
|
1443
|
+
function na(e) {
|
|
1444
1444
|
let r = -1, n = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
|
|
1445
1445
|
do
|
|
1446
1446
|
e = e / 1024, r++;
|
|
1447
1447
|
while (e > 1024);
|
|
1448
1448
|
return Math.max(e, 0.1).toFixed(1) + n[r];
|
|
1449
1449
|
}
|
|
1450
|
-
function
|
|
1450
|
+
function aa(e) {
|
|
1451
1451
|
let r = {};
|
|
1452
1452
|
return r["application/atom+xml"] = "atom", r["application/json"] = "json", r["application/javascript"] = "js", r["application/ogg"] = "ogg", r["application/pdf"] = "pdf", r["application/soap+xml"] = "soap", r["application/font-woff"] = "woff", r["application/xhtml+xml"] = "xml", r["application/xml-dtd"] = "dtd", r["application/xop+xml"] = "xop", r["application/zip"] = "zip", r["application/gzip"] = "gzip", r["application/x-bittorrent"] = "bittorrent", r["application/x-tex"] = "tex", r["application/xml"] = "xml", r["application/msword"] = "doc", r["image/svg+xml"] = "svg", r[e];
|
|
1453
1453
|
}
|
|
1454
|
-
function
|
|
1454
|
+
function sa(e, r, n, s) {
|
|
1455
1455
|
let l = {
|
|
1456
1456
|
sexM: "m",
|
|
1457
1457
|
sexF: "f",
|
|
@@ -1575,22 +1575,22 @@ function na(e, r, n, s) {
|
|
|
1575
1575
|
if (d === this.gcaseNom)
|
|
1576
1576
|
return c;
|
|
1577
1577
|
if (c.match(/[-]/)) {
|
|
1578
|
-
for (var
|
|
1579
|
-
|
|
1580
|
-
return
|
|
1578
|
+
for (var p = c.split("-"), x = 0, y = p.length; x < y; x++)
|
|
1579
|
+
p[x] = this.word(p[x], f, u, d);
|
|
1580
|
+
return p.join("-");
|
|
1581
1581
|
}
|
|
1582
1582
|
if (c.match(/^[А-ЯЁ]\.?$/i))
|
|
1583
1583
|
return c;
|
|
1584
1584
|
this.init();
|
|
1585
1585
|
var I = this.rules[u];
|
|
1586
|
-
let
|
|
1587
|
-
return I.exceptions && (
|
|
1586
|
+
let O;
|
|
1587
|
+
return I.exceptions && (O = this.pick(c, f, d, I.exceptions, !0), O) ? O : (O = this.pick(c, f, d, I.suffixes, !1), O || c);
|
|
1588
1588
|
},
|
|
1589
1589
|
// выбираем из списка правил первое подходящее и применяем
|
|
1590
|
-
pick: function(c, f, u, d,
|
|
1590
|
+
pick: function(c, f, u, d, p) {
|
|
1591
1591
|
let x = c.toLowerCase();
|
|
1592
1592
|
for (var y = 0, I = d.length; y < I; y++)
|
|
1593
|
-
if (this.ruleMatch(x, f, d[y],
|
|
1593
|
+
if (this.ruleMatch(x, f, d[y], p))
|
|
1594
1594
|
return this.applyMod(c, u, d[y]);
|
|
1595
1595
|
return !1;
|
|
1596
1596
|
},
|
|
@@ -1598,11 +1598,11 @@ function na(e, r, n, s) {
|
|
|
1598
1598
|
ruleMatch: function(c, f, u, d) {
|
|
1599
1599
|
if (u.sex === this.sexM && f === this.sexF || u.sex === this.sexF && f !== this.sexF)
|
|
1600
1600
|
return !1;
|
|
1601
|
-
for (var
|
|
1601
|
+
for (var p = 0, x = u.test.length; p < x; p++) {
|
|
1602
1602
|
var y = d ? c : c.substr(
|
|
1603
|
-
Math.max(c.length - u.test[
|
|
1603
|
+
Math.max(c.length - u.test[p].length, 0)
|
|
1604
1604
|
);
|
|
1605
|
-
if (y === u.test[
|
|
1605
|
+
if (y === u.test[p])
|
|
1606
1606
|
return !0;
|
|
1607
1607
|
}
|
|
1608
1608
|
return !1;
|
|
@@ -1630,8 +1630,8 @@ function na(e, r, n, s) {
|
|
|
1630
1630
|
d = u.mods[4];
|
|
1631
1631
|
break;
|
|
1632
1632
|
}
|
|
1633
|
-
for (var
|
|
1634
|
-
var y = d.substr(
|
|
1633
|
+
for (var p = 0, x = d.length; p < x; p++) {
|
|
1634
|
+
var y = d.substr(p, 1);
|
|
1635
1635
|
switch (y) {
|
|
1636
1636
|
case ".":
|
|
1637
1637
|
break;
|
|
@@ -1660,14 +1660,14 @@ function na(e, r, n, s) {
|
|
|
1660
1660
|
middleName: (c) => l.word(l.mn, l.sex, "middleName", c)
|
|
1661
1661
|
};
|
|
1662
1662
|
if (typeof r > "u") {
|
|
1663
|
-
var
|
|
1664
|
-
if (!
|
|
1663
|
+
var m = e.match(/^\s*(\S+)(\s+(\S+)(\s+(\S+))?)?\s*$/);
|
|
1664
|
+
if (!m)
|
|
1665
1665
|
return "Cannot parse supplied name";
|
|
1666
|
-
|
|
1666
|
+
m[5] && m[3].match(/(ич|на)$/) && !m[5].match(/(ич|на)$/) ? (e = m[5], r = m[1], n = m[3], l.fullNameSurnameLast = !0) : (e = m[1], r = m[3], n = m[5]);
|
|
1667
1667
|
}
|
|
1668
1668
|
return l.ln = e, l.fn = r || "", l.mn = n || "", l.sex = s || l.getSex(), l;
|
|
1669
1669
|
}
|
|
1670
|
-
function
|
|
1670
|
+
function oa(e) {
|
|
1671
1671
|
let r = e.split(" ");
|
|
1672
1672
|
switch (r.length) {
|
|
1673
1673
|
case 2:
|
|
@@ -1678,7 +1678,7 @@ function aa(e) {
|
|
|
1678
1678
|
return e;
|
|
1679
1679
|
}
|
|
1680
1680
|
}
|
|
1681
|
-
function
|
|
1681
|
+
function ia(e) {
|
|
1682
1682
|
return {
|
|
1683
1683
|
1: { val: "01", name: "Январь", names: "Января", abc: "Янв" },
|
|
1684
1684
|
2: { val: "02", name: "Февраль", names: "Февраля", abc: "Февр" },
|
|
@@ -1694,75 +1694,94 @@ function sa(e) {
|
|
|
1694
1694
|
12: { val: "12", name: "Декабрь", names: "Декабря", abc: "Дек" }
|
|
1695
1695
|
}[e];
|
|
1696
1696
|
}
|
|
1697
|
-
function
|
|
1697
|
+
function ca(e) {
|
|
1698
1698
|
return parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1 ");
|
|
1699
1699
|
}
|
|
1700
|
-
function
|
|
1700
|
+
function la(e, r) {
|
|
1701
1701
|
let n = r + "";
|
|
1702
1702
|
for (; n.length < e; )
|
|
1703
1703
|
n = "0" + n;
|
|
1704
1704
|
return n;
|
|
1705
1705
|
}
|
|
1706
|
-
function
|
|
1706
|
+
function ua(e, r, n) {
|
|
1707
1707
|
let s = r / e * n;
|
|
1708
1708
|
return (typeof s != "number" || s === 1 / 0) && (s = 0), parseFloat(s).toFixed(1);
|
|
1709
1709
|
}
|
|
1710
|
-
function
|
|
1710
|
+
function fa(e) {
|
|
1711
1711
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
1712
1712
|
}
|
|
1713
|
-
const
|
|
1714
|
-
Date:
|
|
1715
|
-
MoneyString:
|
|
1716
|
-
DateSort:
|
|
1717
|
-
Size:
|
|
1718
|
-
TypeFiles:
|
|
1719
|
-
Cases:
|
|
1720
|
-
Initials:
|
|
1721
|
-
Month:
|
|
1722
|
-
Money:
|
|
1723
|
-
Number:
|
|
1724
|
-
Percent:
|
|
1725
|
-
CapitalizeFirstLetter:
|
|
1726
|
-
},
|
|
1727
|
-
function ua(e, r) {
|
|
1728
|
-
Se[e] = r;
|
|
1729
|
-
}
|
|
1730
|
-
function fa(e, r) {
|
|
1731
|
-
Se[e] !== void 0 && Se[e](r);
|
|
1732
|
-
}
|
|
1733
|
-
const Y = {};
|
|
1713
|
+
const Ia = {
|
|
1714
|
+
Date: ea,
|
|
1715
|
+
MoneyString: ra,
|
|
1716
|
+
DateSort: ta,
|
|
1717
|
+
Size: na,
|
|
1718
|
+
TypeFiles: aa,
|
|
1719
|
+
Cases: sa,
|
|
1720
|
+
Initials: oa,
|
|
1721
|
+
Month: ia,
|
|
1722
|
+
Money: ca,
|
|
1723
|
+
Number: la,
|
|
1724
|
+
Percent: ua,
|
|
1725
|
+
CapitalizeFirstLetter: fa
|
|
1726
|
+
}, Ce = {};
|
|
1734
1727
|
function da(e, r) {
|
|
1735
|
-
|
|
1736
|
-
return k.useEffect(() => {
|
|
1737
|
-
if (Y[e])
|
|
1738
|
-
return Y[e].push(s);
|
|
1739
|
-
Y[e] = [s];
|
|
1740
|
-
}, []), [n];
|
|
1728
|
+
Ce[e] = r;
|
|
1741
1729
|
}
|
|
1742
1730
|
function ma(e, r) {
|
|
1743
|
-
|
|
1744
|
-
return Y[e].push(r);
|
|
1745
|
-
Y[e] = [r];
|
|
1731
|
+
Ce[e] !== void 0 && Ce[e](r);
|
|
1746
1732
|
}
|
|
1733
|
+
const B = {};
|
|
1747
1734
|
function pa(e, r) {
|
|
1748
|
-
|
|
1735
|
+
const [n, s] = S.useState(r);
|
|
1736
|
+
return S.useEffect(() => {
|
|
1737
|
+
if (B[e])
|
|
1738
|
+
return B[e].push(s);
|
|
1739
|
+
B[e] = [s];
|
|
1740
|
+
}, []), [n];
|
|
1741
|
+
}
|
|
1742
|
+
function va(e, r) {
|
|
1743
|
+
if (B[e])
|
|
1744
|
+
return B[e].push(r);
|
|
1745
|
+
B[e] = [r];
|
|
1746
|
+
}
|
|
1747
|
+
function ha(e, r) {
|
|
1748
|
+
B[e] && B[e].forEach((n) => n(r));
|
|
1749
|
+
}
|
|
1750
|
+
const Ta = { setListener: ma, useListener: da, setEmitter: ha, useEmitter: pa, subEmitter: va }, fe = {}, ot = {};
|
|
1751
|
+
function ga(e) {
|
|
1752
|
+
const [r, n] = S.useState({}), s = async (l) => {
|
|
1753
|
+
n(
|
|
1754
|
+
Object.keys(fe).reduce((m, c) => (m ? m[c] = fe[c].all : m = {}, m), {})
|
|
1755
|
+
);
|
|
1756
|
+
};
|
|
1757
|
+
return S.useEffect(() => {
|
|
1758
|
+
e.forEach((l) => fe[l] = { all: 0 }), ot.menu = s, s();
|
|
1759
|
+
}, [e]), r;
|
|
1760
|
+
}
|
|
1761
|
+
function _a(e, r) {
|
|
1762
|
+
switch (typeof r) {
|
|
1763
|
+
case "number":
|
|
1764
|
+
fe[e].all += r, ot.menu();
|
|
1765
|
+
break;
|
|
1766
|
+
}
|
|
1749
1767
|
}
|
|
1750
|
-
const
|
|
1768
|
+
const Pa = { useMenu: ga, setUpdate: _a };
|
|
1751
1769
|
export {
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
Sa as
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1770
|
+
wn as Action,
|
|
1771
|
+
Ca as Alert,
|
|
1772
|
+
Pa as Badge,
|
|
1773
|
+
ba as Browser,
|
|
1774
|
+
sr as Button,
|
|
1775
|
+
ya as Component,
|
|
1776
|
+
Ta as Event,
|
|
1777
|
+
Ia as Format,
|
|
1778
|
+
Ea as Icon,
|
|
1779
|
+
mn as Init,
|
|
1780
|
+
Or as Modal,
|
|
1781
|
+
Sa as Notice,
|
|
1782
|
+
Ra as Router,
|
|
1783
|
+
ja as Setting,
|
|
1784
|
+
ka as Store,
|
|
1785
|
+
xn as Tabs,
|
|
1786
|
+
wa as Triage
|
|
1768
1787
|
};
|