elcrm 0.9.126 → 0.9.127
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 +442 -435
- package/dist/index.umd.js +6 -6
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -46,29 +46,29 @@ var Ge = {};
|
|
|
46
46
|
var hn;
|
|
47
47
|
function ar() {
|
|
48
48
|
return hn || (hn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
49
|
-
var e = m, 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"), l = Symbol.for("react.context"), c = 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"), h = Symbol.for("react.offscreen"), v = Symbol.iterator,
|
|
50
|
-
function
|
|
49
|
+
var e = m, 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"), l = Symbol.for("react.context"), c = 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"), h = Symbol.for("react.offscreen"), v = Symbol.iterator, p = "@@iterator";
|
|
50
|
+
function g(d) {
|
|
51
51
|
if (d === null || typeof d != "object")
|
|
52
52
|
return null;
|
|
53
|
-
var
|
|
54
|
-
return typeof
|
|
53
|
+
var k = v && d[v] || d[p];
|
|
54
|
+
return typeof k == "function" ? k : null;
|
|
55
55
|
}
|
|
56
|
-
var
|
|
57
|
-
function
|
|
56
|
+
var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
57
|
+
function j(d) {
|
|
58
58
|
{
|
|
59
|
-
for (var
|
|
59
|
+
for (var k = arguments.length, D = new Array(k > 1 ? k - 1 : 0), F = 1; F < k; F++)
|
|
60
60
|
D[F - 1] = arguments[F];
|
|
61
|
-
|
|
61
|
+
T("error", d, D);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function T(d, k, D) {
|
|
65
65
|
{
|
|
66
|
-
var F =
|
|
67
|
-
Z !== "" && (
|
|
66
|
+
var F = y.ReactDebugCurrentFrame, Z = F.getStackAddendum();
|
|
67
|
+
Z !== "" && (k += "%s", D = D.concat([Z]));
|
|
68
68
|
var K = D.map(function(G) {
|
|
69
69
|
return String(G);
|
|
70
70
|
});
|
|
71
|
-
K.unshift("Warning: " +
|
|
71
|
+
K.unshift("Warning: " + k), Function.prototype.apply.call(console[d], console, K);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
var L = !1, $ = !1, R = !1, I = !1, E = !1, P;
|
|
@@ -80,11 +80,11 @@ function ar() {
|
|
|
80
80
|
// with.
|
|
81
81
|
d.$$typeof === P || d.getModuleId !== void 0));
|
|
82
82
|
}
|
|
83
|
-
function b(d,
|
|
83
|
+
function b(d, k, D) {
|
|
84
84
|
var F = d.displayName;
|
|
85
85
|
if (F)
|
|
86
86
|
return F;
|
|
87
|
-
var Z =
|
|
87
|
+
var Z = k.displayName || k.name || "";
|
|
88
88
|
return Z !== "" ? D + "(" + Z + ")" : D;
|
|
89
89
|
}
|
|
90
90
|
function S(d) {
|
|
@@ -93,7 +93,7 @@ function ar() {
|
|
|
93
93
|
function C(d) {
|
|
94
94
|
if (d == null)
|
|
95
95
|
return null;
|
|
96
|
-
if (typeof d.tag == "number" &&
|
|
96
|
+
if (typeof d.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof d == "function")
|
|
97
97
|
return d.displayName || d.name || null;
|
|
98
98
|
if (typeof d == "string")
|
|
99
99
|
return d;
|
|
@@ -114,8 +114,8 @@ function ar() {
|
|
|
114
114
|
if (typeof d == "object")
|
|
115
115
|
switch (d.$$typeof) {
|
|
116
116
|
case l:
|
|
117
|
-
var
|
|
118
|
-
return S(
|
|
117
|
+
var k = d;
|
|
118
|
+
return S(k) + ".Consumer";
|
|
119
119
|
case o:
|
|
120
120
|
var D = d;
|
|
121
121
|
return S(D._context) + ".Provider";
|
|
@@ -135,7 +135,7 @@ function ar() {
|
|
|
135
135
|
}
|
|
136
136
|
return null;
|
|
137
137
|
}
|
|
138
|
-
var
|
|
138
|
+
var N = Object.assign, W = 0, ee, oe, ve, Ie, Pe, Qe, Vt;
|
|
139
139
|
function Xt() {
|
|
140
140
|
}
|
|
141
141
|
Xt.__reactDisabledLog = !0;
|
|
@@ -171,34 +171,34 @@ function ar() {
|
|
|
171
171
|
writable: !0
|
|
172
172
|
};
|
|
173
173
|
Object.defineProperties(console, {
|
|
174
|
-
log:
|
|
174
|
+
log: N({}, d, {
|
|
175
175
|
value: ee
|
|
176
176
|
}),
|
|
177
|
-
info:
|
|
177
|
+
info: N({}, d, {
|
|
178
178
|
value: oe
|
|
179
179
|
}),
|
|
180
|
-
warn:
|
|
180
|
+
warn: N({}, d, {
|
|
181
181
|
value: ve
|
|
182
182
|
}),
|
|
183
|
-
error:
|
|
183
|
+
error: N({}, d, {
|
|
184
184
|
value: Ie
|
|
185
185
|
}),
|
|
186
|
-
group:
|
|
186
|
+
group: N({}, d, {
|
|
187
187
|
value: Pe
|
|
188
188
|
}),
|
|
189
|
-
groupCollapsed:
|
|
189
|
+
groupCollapsed: N({}, d, {
|
|
190
190
|
value: Qe
|
|
191
191
|
}),
|
|
192
|
-
groupEnd:
|
|
192
|
+
groupEnd: N({}, d, {
|
|
193
193
|
value: Vt
|
|
194
194
|
})
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
|
-
W < 0 &&
|
|
197
|
+
W < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
var ft =
|
|
201
|
-
function et(d,
|
|
200
|
+
var ft = y.ReactCurrentDispatcher, mt;
|
|
201
|
+
function et(d, k, D) {
|
|
202
202
|
{
|
|
203
203
|
if (mt === void 0)
|
|
204
204
|
try {
|
|
@@ -216,7 +216,7 @@ function ar() {
|
|
|
216
216
|
var Sa = typeof WeakMap == "function" ? WeakMap : Map;
|
|
217
217
|
tt = new Sa();
|
|
218
218
|
}
|
|
219
|
-
function Qt(d,
|
|
219
|
+
function Qt(d, k) {
|
|
220
220
|
if (!d || ht)
|
|
221
221
|
return "";
|
|
222
222
|
{
|
|
@@ -231,7 +231,7 @@ function ar() {
|
|
|
231
231
|
var K;
|
|
232
232
|
K = ft.current, ft.current = null, ba();
|
|
233
233
|
try {
|
|
234
|
-
if (
|
|
234
|
+
if (k) {
|
|
235
235
|
var G = function() {
|
|
236
236
|
throw Error();
|
|
237
237
|
};
|
|
@@ -287,14 +287,14 @@ function ar() {
|
|
|
287
287
|
var Ne = d ? d.displayName || d.name : "", Ee = Ne ? et(Ne) : "";
|
|
288
288
|
return typeof d == "function" && tt.set(d, Ee), Ee;
|
|
289
289
|
}
|
|
290
|
-
function Ea(d,
|
|
290
|
+
function Ea(d, k, D) {
|
|
291
291
|
return Qt(d, !1);
|
|
292
292
|
}
|
|
293
293
|
function Da(d) {
|
|
294
|
-
var
|
|
295
|
-
return !!(
|
|
294
|
+
var k = d.prototype;
|
|
295
|
+
return !!(k && k.isReactComponent);
|
|
296
296
|
}
|
|
297
|
-
function nt(d,
|
|
297
|
+
function nt(d, k, D) {
|
|
298
298
|
if (d == null)
|
|
299
299
|
return "";
|
|
300
300
|
if (typeof d == "function")
|
|
@@ -312,26 +312,26 @@ function ar() {
|
|
|
312
312
|
case c:
|
|
313
313
|
return Ea(d.render);
|
|
314
314
|
case x:
|
|
315
|
-
return nt(d.type,
|
|
315
|
+
return nt(d.type, k, D);
|
|
316
316
|
case f: {
|
|
317
317
|
var F = d, Z = F._payload, K = F._init;
|
|
318
318
|
try {
|
|
319
|
-
return nt(K(Z),
|
|
319
|
+
return nt(K(Z), k, D);
|
|
320
320
|
} catch {
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
return "";
|
|
325
325
|
}
|
|
326
|
-
var Oe = Object.prototype.hasOwnProperty, en = {}, tn =
|
|
326
|
+
var Oe = Object.prototype.hasOwnProperty, en = {}, tn = y.ReactDebugCurrentFrame;
|
|
327
327
|
function at(d) {
|
|
328
328
|
if (d) {
|
|
329
|
-
var
|
|
329
|
+
var k = d._owner, D = nt(d.type, d._source, k ? k.type : null);
|
|
330
330
|
tn.setExtraStackFrame(D);
|
|
331
331
|
} else
|
|
332
332
|
tn.setExtraStackFrame(null);
|
|
333
333
|
}
|
|
334
|
-
function Ra(d,
|
|
334
|
+
function Ra(d, k, D, F, Z) {
|
|
335
335
|
{
|
|
336
336
|
var K = Function.call.bind(Oe);
|
|
337
337
|
for (var G in d)
|
|
@@ -342,11 +342,11 @@ function ar() {
|
|
|
342
342
|
var ne = Error((F || "React class") + ": " + D + " type `" + G + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof d[G] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
343
343
|
throw ne.name = "Invariant Violation", ne;
|
|
344
344
|
}
|
|
345
|
-
U = d[G](
|
|
345
|
+
U = d[G](k, G, F, D, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
346
346
|
} catch (V) {
|
|
347
347
|
U = V;
|
|
348
348
|
}
|
|
349
|
-
U && !(U instanceof Error) && (at(Z),
|
|
349
|
+
U && !(U instanceof Error) && (at(Z), j("%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).", F || "React class", D, G, typeof U), at(null)), U instanceof Error && !(U.message in en) && (en[U.message] = !0, at(Z), j("Failed %s type: %s", D, U.message), at(null));
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
}
|
|
@@ -356,7 +356,7 @@ function ar() {
|
|
|
356
356
|
}
|
|
357
357
|
function Ta(d) {
|
|
358
358
|
{
|
|
359
|
-
var
|
|
359
|
+
var k = typeof Symbol == "function" && Symbol.toStringTag, D = k && d[Symbol.toStringTag] || d.constructor.name || "Object";
|
|
360
360
|
return D;
|
|
361
361
|
}
|
|
362
362
|
}
|
|
@@ -372,9 +372,9 @@ function ar() {
|
|
|
372
372
|
}
|
|
373
373
|
function an(d) {
|
|
374
374
|
if (Na(d))
|
|
375
|
-
return
|
|
375
|
+
return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ta(d)), nn(d);
|
|
376
376
|
}
|
|
377
|
-
var Ae =
|
|
377
|
+
var Ae = y.ReactCurrentOwner, Ma = {
|
|
378
378
|
key: !0,
|
|
379
379
|
ref: !0,
|
|
380
380
|
__self: !0,
|
|
@@ -383,30 +383,30 @@ function ar() {
|
|
|
383
383
|
gt = {};
|
|
384
384
|
function La(d) {
|
|
385
385
|
if (Oe.call(d, "ref")) {
|
|
386
|
-
var
|
|
387
|
-
if (
|
|
386
|
+
var k = Object.getOwnPropertyDescriptor(d, "ref").get;
|
|
387
|
+
if (k && k.isReactWarning)
|
|
388
388
|
return !1;
|
|
389
389
|
}
|
|
390
390
|
return d.ref !== void 0;
|
|
391
391
|
}
|
|
392
392
|
function $a(d) {
|
|
393
393
|
if (Oe.call(d, "key")) {
|
|
394
|
-
var
|
|
395
|
-
if (
|
|
394
|
+
var k = Object.getOwnPropertyDescriptor(d, "key").get;
|
|
395
|
+
if (k && k.isReactWarning)
|
|
396
396
|
return !1;
|
|
397
397
|
}
|
|
398
398
|
return d.key !== void 0;
|
|
399
399
|
}
|
|
400
|
-
function Ba(d,
|
|
401
|
-
if (typeof d.ref == "string" && Ae.current &&
|
|
400
|
+
function Ba(d, k) {
|
|
401
|
+
if (typeof d.ref == "string" && Ae.current && k && Ae.current.stateNode !== k) {
|
|
402
402
|
var D = C(Ae.current.type);
|
|
403
|
-
gt[D] || (
|
|
403
|
+
gt[D] || (j('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', C(Ae.current.type), d.ref), gt[D] = !0);
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
|
-
function Fa(d,
|
|
406
|
+
function Fa(d, k) {
|
|
407
407
|
{
|
|
408
408
|
var D = function() {
|
|
409
|
-
rn || (rn = !0,
|
|
409
|
+
rn || (rn = !0, j("%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)", k));
|
|
410
410
|
};
|
|
411
411
|
D.isReactWarning = !0, Object.defineProperty(d, "key", {
|
|
412
412
|
get: D,
|
|
@@ -414,10 +414,10 @@ function ar() {
|
|
|
414
414
|
});
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
function Pa(d,
|
|
417
|
+
function Pa(d, k) {
|
|
418
418
|
{
|
|
419
419
|
var D = function() {
|
|
420
|
-
sn || (sn = !0,
|
|
420
|
+
sn || (sn = !0, j("%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)", k));
|
|
421
421
|
};
|
|
422
422
|
D.isReactWarning = !0, Object.defineProperty(d, "ref", {
|
|
423
423
|
get: D,
|
|
@@ -425,13 +425,13 @@ function ar() {
|
|
|
425
425
|
});
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
|
-
var Oa = function(d,
|
|
428
|
+
var Oa = function(d, k, D, F, Z, K, G) {
|
|
429
429
|
var U = {
|
|
430
430
|
// This tag allows us to uniquely identify this as a React Element
|
|
431
431
|
$$typeof: t,
|
|
432
432
|
// Built-in properties that belong on the element
|
|
433
433
|
type: d,
|
|
434
|
-
key:
|
|
434
|
+
key: k,
|
|
435
435
|
ref: D,
|
|
436
436
|
props: G,
|
|
437
437
|
// Record the component responsible for creating this element.
|
|
@@ -454,12 +454,12 @@ function ar() {
|
|
|
454
454
|
value: Z
|
|
455
455
|
}), Object.freeze && (Object.freeze(U.props), Object.freeze(U)), U;
|
|
456
456
|
};
|
|
457
|
-
function Aa(d,
|
|
457
|
+
function Aa(d, k, D, F, Z) {
|
|
458
458
|
{
|
|
459
459
|
var K, G = {}, U = null, ne = null;
|
|
460
|
-
D !== void 0 && (an(D), U = "" + D), $a(
|
|
461
|
-
for (K in
|
|
462
|
-
Oe.call(
|
|
460
|
+
D !== void 0 && (an(D), U = "" + D), $a(k) && (an(k.key), U = "" + k.key), La(k) && (ne = k.ref, Ba(k, Z));
|
|
461
|
+
for (K in k)
|
|
462
|
+
Oe.call(k, K) && !Ma.hasOwnProperty(K) && (G[K] = k[K]);
|
|
463
463
|
if (d && d.defaultProps) {
|
|
464
464
|
var V = d.defaultProps;
|
|
465
465
|
for (K in V)
|
|
@@ -472,10 +472,10 @@ function ar() {
|
|
|
472
472
|
return Oa(d, U, ne, Z, F, Ae.current, G);
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
|
-
var xt =
|
|
475
|
+
var xt = y.ReactCurrentOwner, on = y.ReactDebugCurrentFrame;
|
|
476
476
|
function Te(d) {
|
|
477
477
|
if (d) {
|
|
478
|
-
var
|
|
478
|
+
var k = d._owner, D = nt(d.type, d._source, k ? k.type : null);
|
|
479
479
|
on.setExtraStackFrame(D);
|
|
480
480
|
} else
|
|
481
481
|
on.setExtraStackFrame(null);
|
|
@@ -503,87 +503,87 @@ Check the render method of \`` + d + "`.";
|
|
|
503
503
|
var cn = {};
|
|
504
504
|
function Ga(d) {
|
|
505
505
|
{
|
|
506
|
-
var
|
|
507
|
-
if (!
|
|
506
|
+
var k = ln();
|
|
507
|
+
if (!k) {
|
|
508
508
|
var D = typeof d == "string" ? d : d.displayName || d.name;
|
|
509
|
-
D && (
|
|
509
|
+
D && (k = `
|
|
510
510
|
|
|
511
511
|
Check the top-level render call using <` + D + ">.");
|
|
512
512
|
}
|
|
513
|
-
return
|
|
513
|
+
return k;
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
|
-
function dn(d,
|
|
516
|
+
function dn(d, k) {
|
|
517
517
|
{
|
|
518
518
|
if (!d._store || d._store.validated || d.key != null)
|
|
519
519
|
return;
|
|
520
520
|
d._store.validated = !0;
|
|
521
|
-
var D = Ga(
|
|
521
|
+
var D = Ga(k);
|
|
522
522
|
if (cn[D])
|
|
523
523
|
return;
|
|
524
524
|
cn[D] = !0;
|
|
525
525
|
var F = "";
|
|
526
|
-
d && d._owner && d._owner !== xt.current && (F = " It was passed a child from " + C(d._owner.type) + "."), Te(d),
|
|
526
|
+
d && d._owner && d._owner !== xt.current && (F = " It was passed a child from " + C(d._owner.type) + "."), Te(d), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', D, F), Te(null);
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
|
-
function _n(d,
|
|
529
|
+
function _n(d, k) {
|
|
530
530
|
{
|
|
531
531
|
if (typeof d != "object")
|
|
532
532
|
return;
|
|
533
533
|
if (pt(d))
|
|
534
534
|
for (var D = 0; D < d.length; D++) {
|
|
535
535
|
var F = d[D];
|
|
536
|
-
Ct(F) && dn(F,
|
|
536
|
+
Ct(F) && dn(F, k);
|
|
537
537
|
}
|
|
538
538
|
else if (Ct(d))
|
|
539
539
|
d._store && (d._store.validated = !0);
|
|
540
540
|
else if (d) {
|
|
541
|
-
var Z =
|
|
541
|
+
var Z = g(d);
|
|
542
542
|
if (typeof Z == "function" && Z !== d.entries)
|
|
543
543
|
for (var K = Z.call(d), G; !(G = K.next()).done; )
|
|
544
|
-
Ct(G.value) && dn(G.value,
|
|
544
|
+
Ct(G.value) && dn(G.value, k);
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
548
|
function Za(d) {
|
|
549
549
|
{
|
|
550
|
-
var
|
|
551
|
-
if (
|
|
550
|
+
var k = d.type;
|
|
551
|
+
if (k == null || typeof k == "string")
|
|
552
552
|
return;
|
|
553
553
|
var D;
|
|
554
|
-
if (typeof
|
|
555
|
-
D =
|
|
556
|
-
else if (typeof
|
|
554
|
+
if (typeof k == "function")
|
|
555
|
+
D = k.propTypes;
|
|
556
|
+
else if (typeof k == "object" && (k.$$typeof === c || // Note: Memo only checks outer props here.
|
|
557
557
|
// Inner props are checked in the reconciler.
|
|
558
|
-
|
|
559
|
-
D =
|
|
558
|
+
k.$$typeof === x))
|
|
559
|
+
D = k.propTypes;
|
|
560
560
|
else
|
|
561
561
|
return;
|
|
562
562
|
if (D) {
|
|
563
|
-
var F = C(
|
|
563
|
+
var F = C(k);
|
|
564
564
|
Ra(D, d.props, "prop", F, d);
|
|
565
|
-
} else if (
|
|
565
|
+
} else if (k.PropTypes !== void 0 && !vt) {
|
|
566
566
|
vt = !0;
|
|
567
|
-
var Z = C(
|
|
568
|
-
|
|
567
|
+
var Z = C(k);
|
|
568
|
+
j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Z || "Unknown");
|
|
569
569
|
}
|
|
570
|
-
typeof
|
|
570
|
+
typeof k.getDefaultProps == "function" && !k.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
function za(d) {
|
|
574
574
|
{
|
|
575
|
-
for (var
|
|
576
|
-
var F =
|
|
575
|
+
for (var k = Object.keys(d.props), D = 0; D < k.length; D++) {
|
|
576
|
+
var F = k[D];
|
|
577
577
|
if (F !== "children" && F !== "key") {
|
|
578
|
-
Te(d),
|
|
578
|
+
Te(d), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", F), Te(null);
|
|
579
579
|
break;
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
|
-
d.ref !== null && (Te(d),
|
|
582
|
+
d.ref !== null && (Te(d), j("Invalid attribute `ref` supplied to `React.Fragment`."), Te(null));
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
585
|
var un = {};
|
|
586
|
-
function fn(d,
|
|
586
|
+
function fn(d, k, D, F, Z, K) {
|
|
587
587
|
{
|
|
588
588
|
var G = B(d);
|
|
589
589
|
if (!G) {
|
|
@@ -592,13 +592,13 @@ Check the top-level render call using <` + D + ">.");
|
|
|
592
592
|
var ne = Ua();
|
|
593
593
|
ne ? U += ne : U += ln();
|
|
594
594
|
var V;
|
|
595
|
-
d === null ? V = "null" : pt(d) ? V = "array" : d !== void 0 && d.$$typeof === t ? (V = "<" + (C(d.type) || "Unknown") + " />", U = " Did you accidentally export a JSX literal instead of a component?") : V = typeof d,
|
|
595
|
+
d === null ? V = "null" : pt(d) ? V = "array" : d !== void 0 && d.$$typeof === t ? (V = "<" + (C(d.type) || "Unknown") + " />", U = " Did you accidentally export a JSX literal instead of a component?") : V = typeof d, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", V, U);
|
|
596
596
|
}
|
|
597
|
-
var Q = Aa(d,
|
|
597
|
+
var Q = Aa(d, k, D, Z, K);
|
|
598
598
|
if (Q == null)
|
|
599
599
|
return Q;
|
|
600
600
|
if (G) {
|
|
601
|
-
var ce =
|
|
601
|
+
var ce = k.children;
|
|
602
602
|
if (ce !== void 0)
|
|
603
603
|
if (F)
|
|
604
604
|
if (pt(ce)) {
|
|
@@ -606,17 +606,17 @@ Check the top-level render call using <` + D + ">.");
|
|
|
606
606
|
_n(ce[Ne], d);
|
|
607
607
|
Object.freeze && Object.freeze(ce);
|
|
608
608
|
} else
|
|
609
|
-
|
|
609
|
+
j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
610
610
|
else
|
|
611
611
|
_n(ce, d);
|
|
612
612
|
}
|
|
613
|
-
if (Oe.call(
|
|
614
|
-
var Ee = C(d), re = Object.keys(
|
|
613
|
+
if (Oe.call(k, "key")) {
|
|
614
|
+
var Ee = C(d), re = Object.keys(k).filter(function(Ja) {
|
|
615
615
|
return Ja !== "key";
|
|
616
616
|
}), jt = re.length > 0 ? "{key: someKey, " + re.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
617
617
|
if (!un[Ee + jt]) {
|
|
618
618
|
var qa = re.length > 0 ? "{" + re.join(": ..., ") + ": ...}" : "{}";
|
|
619
|
-
|
|
619
|
+
j(`A props object containing a "key" prop is being spread into JSX:
|
|
620
620
|
let props = %s;
|
|
621
621
|
<%s {...props} />
|
|
622
622
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -627,11 +627,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
627
627
|
return d === r ? za(Q) : Za(Q), Q;
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
|
-
function Wa(d,
|
|
631
|
-
return fn(d,
|
|
630
|
+
function Wa(d, k, D) {
|
|
631
|
+
return fn(d, k, D, !0);
|
|
632
632
|
}
|
|
633
|
-
function Ka(d,
|
|
634
|
-
return fn(d,
|
|
633
|
+
function Ka(d, k, D) {
|
|
634
|
+
return fn(d, k, D, !1);
|
|
635
635
|
}
|
|
636
636
|
var Ha = Ka, Ya = Wa;
|
|
637
637
|
Ge.Fragment = r, Ge.jsx = Ha, Ge.jsxs = Ya;
|
|
@@ -1349,16 +1349,16 @@ function $s(e) {
|
|
|
1349
1349
|
};
|
|
1350
1350
|
}
|
|
1351
1351
|
const Bs = (e) => {
|
|
1352
|
-
function t(
|
|
1352
|
+
function t(T, L) {
|
|
1353
1353
|
var $, I, R;
|
|
1354
|
-
|
|
1355
|
-
for (var $ = [], R = 0, I =
|
|
1356
|
-
$.push(
|
|
1354
|
+
T = T ?? "", L = L ?? 1;
|
|
1355
|
+
for (var $ = [], R = 0, I = T.length; R < I; )
|
|
1356
|
+
$.push(T.slice(R, R += L));
|
|
1357
1357
|
return $;
|
|
1358
1358
|
}
|
|
1359
|
-
function n(
|
|
1359
|
+
function n(T, L) {
|
|
1360
1360
|
var $ = [2, 0, 1, 1, 1, 2];
|
|
1361
|
-
return L[
|
|
1361
|
+
return L[T > 4 && T < 20 ? 2 : $[Math.min(T, 5)]];
|
|
1362
1362
|
}
|
|
1363
1363
|
var r = {
|
|
1364
1364
|
null: "ноль",
|
|
@@ -1422,29 +1422,29 @@ const Bs = (e) => {
|
|
|
1422
1422
|
u3: ["тысяча", "тысячи", "тысяч"],
|
|
1423
1423
|
u2: ["миллион", "миллиона", "миллионов"],
|
|
1424
1424
|
u1: ["миллиард", "миллиарда", "миллиардов"]
|
|
1425
|
-
}, s, i, o, l,
|
|
1425
|
+
}, s, i, o, l, g, c, _, p, u, x, f, h;
|
|
1426
1426
|
u = parseFloat(e).toFixed(2).split("."), c = u[0], l = u[1];
|
|
1427
1427
|
var v = 12 - c.length;
|
|
1428
1428
|
if (v < 0)
|
|
1429
1429
|
return !1;
|
|
1430
|
-
for (var
|
|
1431
|
-
|
|
1432
|
-
c =
|
|
1433
|
-
var
|
|
1430
|
+
for (var p = []; v--; )
|
|
1431
|
+
p.push("0");
|
|
1432
|
+
c = p.join("") + c;
|
|
1433
|
+
var g = [];
|
|
1434
1434
|
if (c > 0) {
|
|
1435
1435
|
x = t(c, 3);
|
|
1436
|
-
for (var
|
|
1437
|
-
if (_ = x[
|
|
1436
|
+
for (var y = -1; y < x.length; y++)
|
|
1437
|
+
if (_ = x[y], _ > 0 && (f = t(_, 1), s = parseInt(f[0]), i = parseInt(f[1]), o = parseInt(f[2]), g.push(r.a100[s - 1]), h = y + 1 == 3 ? "a2" : "a1", i > 1 ? g.push(
|
|
1438
1438
|
r.a20[i - 2] + (o > 0 ? " " + r[h][o - 1] : "")
|
|
1439
|
-
) :
|
|
1439
|
+
) : g.push(
|
|
1440
1440
|
i > 0 ? r.a10[o] : r[h][o - 1]
|
|
1441
|
-
), x.length >
|
|
1442
|
-
var
|
|
1443
|
-
|
|
1441
|
+
), x.length > y + 1)) {
|
|
1442
|
+
var j = r["u" + (y + 1)];
|
|
1443
|
+
g.push(n(_, j));
|
|
1444
1444
|
}
|
|
1445
1445
|
} else
|
|
1446
|
-
|
|
1447
|
-
return
|
|
1446
|
+
g.push(r.null);
|
|
1447
|
+
return g.push(n(c, r.ur)), g.push(l + " " + n(l, r.uc)), g.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
|
|
1448
1448
|
};
|
|
1449
1449
|
function Fs(e) {
|
|
1450
1450
|
let t = -1, n = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
|
|
@@ -2451,15 +2451,15 @@ const mo = "_btn_294gf_1", ho = "_confirm_294gf_15", po = "_cancel_294gf_20", go
|
|
|
2451
2451
|
awaitText: f = "Ожидайте"
|
|
2452
2452
|
}) => {
|
|
2453
2453
|
let [h, v] = m.useState(!1);
|
|
2454
|
-
const
|
|
2454
|
+
const p = (y) => {
|
|
2455
2455
|
if (e) return e();
|
|
2456
|
-
h || (t ? (v(!0), t(v)) :
|
|
2456
|
+
h || (t ? (v(!0), t(v)) : y.preventDefault());
|
|
2457
2457
|
};
|
|
2458
|
-
let
|
|
2459
|
-
return (o || h) && (
|
|
2458
|
+
let g = {};
|
|
2459
|
+
return (o || h) && (g.disabled = !0), /* @__PURE__ */ a.jsx(
|
|
2460
2460
|
"button",
|
|
2461
2461
|
{
|
|
2462
|
-
...
|
|
2462
|
+
...g,
|
|
2463
2463
|
ref: x,
|
|
2464
2464
|
className: [
|
|
2465
2465
|
st.btn,
|
|
@@ -2467,7 +2467,7 @@ const mo = "_btn_294gf_1", ho = "_confirm_294gf_15", po = "_cancel_294gf_20", go
|
|
|
2467
2467
|
n && st[n],
|
|
2468
2468
|
l
|
|
2469
2469
|
].join(" "),
|
|
2470
|
-
onClick:
|
|
2470
|
+
onClick: p,
|
|
2471
2471
|
children: h ? f : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2472
2472
|
_ || "",
|
|
2473
2473
|
" ",
|
|
@@ -3732,17 +3732,17 @@ function Qn({
|
|
|
3732
3732
|
return pe.useListener("list_children", (h) => {
|
|
3733
3733
|
if (h.action === "edit") {
|
|
3734
3734
|
let v = c.map(
|
|
3735
|
-
(
|
|
3735
|
+
(p) => p.id === h.id ? Object.assign(p, { [h.name]: h.value }) : p
|
|
3736
3736
|
);
|
|
3737
3737
|
l(v), _(v);
|
|
3738
3738
|
}
|
|
3739
3739
|
if (h.action === "delete") {
|
|
3740
|
-
let v = c.filter((
|
|
3740
|
+
let v = c.filter((p) => p.id !== h.id);
|
|
3741
3741
|
l(v), _(v);
|
|
3742
3742
|
}
|
|
3743
3743
|
}), pe.useListener("search", (h) => {
|
|
3744
3744
|
l(
|
|
3745
|
-
c.filter((v) => ("" + s.map((
|
|
3745
|
+
c.filter((v) => ("" + s.map((g) => v[g]).toString()).toLowerCase().includes(h.toLowerCase()))
|
|
3746
3746
|
);
|
|
3747
3747
|
}), m.useEffect(() => {
|
|
3748
3748
|
f(), n && pe.setListener("button", n);
|
|
@@ -3892,16 +3892,16 @@ const Fe = () => (yt || (yt = new mc()), yt), Se = (e, t, n = Fe()) => n._withID
|
|
|
3892
3892
|
}, gc = (e, t, n = [], r = {}) => {
|
|
3893
3893
|
let s = n.length !== 0, i = [], o = r.sort, l = Object.keys(r).length !== 0, c = Object.keys(r), _ = Object.keys(e), u = [], x = (h) => {
|
|
3894
3894
|
let v = "";
|
|
3895
|
-
if (n.forEach((
|
|
3896
|
-
v += t[h][
|
|
3895
|
+
if (n.forEach((p) => {
|
|
3896
|
+
v += t[h][p];
|
|
3897
3897
|
}), l) {
|
|
3898
|
-
let
|
|
3899
|
-
c.forEach((
|
|
3900
|
-
g
|
|
3898
|
+
let p = {};
|
|
3899
|
+
c.forEach((g) => {
|
|
3900
|
+
p[g] = t[h][g];
|
|
3901
3901
|
});
|
|
3902
|
-
for (let
|
|
3903
|
-
t[h][o[
|
|
3904
|
-
i.push({ id: h, text: v, ...
|
|
3902
|
+
for (let g in o)
|
|
3903
|
+
t[h][o[g]] === void 0 && (Ft(), location.reload()), g === "s1" && (p[g] = new Date(t[h][o[g]]).getTime()), g === "s2" && (p[g] = t[h][o[g]]), g === "s3" && (p[g] = t[h][o[g]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
|
|
3904
|
+
i.push({ id: h, text: v, ...p });
|
|
3905
3905
|
} else
|
|
3906
3906
|
i.push({ id: h, text: v });
|
|
3907
3907
|
}, f = (h) => {
|
|
@@ -4112,22 +4112,22 @@ function He({
|
|
|
4112
4112
|
show: f = !0,
|
|
4113
4113
|
maxLength: h,
|
|
4114
4114
|
view: v,
|
|
4115
|
-
onBlur:
|
|
4116
|
-
onSave:
|
|
4117
|
-
className:
|
|
4118
|
-
isCopy:
|
|
4119
|
-
isReload:
|
|
4115
|
+
onBlur: p,
|
|
4116
|
+
onSave: g,
|
|
4117
|
+
className: y = "",
|
|
4118
|
+
isCopy: j = !0,
|
|
4119
|
+
isReload: T = !1
|
|
4120
4120
|
}) {
|
|
4121
4121
|
let L = !!(l && (t === "" || t === void 0)), $ = (S) => {
|
|
4122
4122
|
n && n({
|
|
4123
4123
|
value: S.target.textContent.trim(),
|
|
4124
4124
|
name: r,
|
|
4125
|
-
reload:
|
|
4125
|
+
reload: T
|
|
4126
4126
|
});
|
|
4127
4127
|
}, R = (S) => {
|
|
4128
4128
|
h && S.target.textContent.trim().length >= h && S.key !== "Backspace" && S.preventDefault(), S.key === "Enter" && S.preventDefault();
|
|
4129
4129
|
}, I = (S) => {
|
|
4130
|
-
|
|
4130
|
+
j && (S.preventDefault(), navigator.clipboard.writeText(S.target.textContent.trim()).then(
|
|
4131
4131
|
function() {
|
|
4132
4132
|
Ce.Copy("Данные в буфер обмене");
|
|
4133
4133
|
},
|
|
@@ -4137,9 +4137,9 @@ function He({
|
|
|
4137
4137
|
}, E = (S) => {
|
|
4138
4138
|
S.preventDefault(), navigator.clipboard.readText().then((C) => {
|
|
4139
4139
|
if (h) {
|
|
4140
|
-
let
|
|
4141
|
-
if (
|
|
4142
|
-
h -=
|
|
4140
|
+
let N = S.target.textContent.length;
|
|
4141
|
+
if (N >= h) return;
|
|
4142
|
+
h -= N, C = C.slice(0, h);
|
|
4143
4143
|
}
|
|
4144
4144
|
window.document.execCommand(
|
|
4145
4145
|
"insertText",
|
|
@@ -4151,11 +4151,11 @@ function He({
|
|
|
4151
4151
|
};
|
|
4152
4152
|
if (!(c && _) && !f || !(c && _) && L) return "";
|
|
4153
4153
|
const P = {};
|
|
4154
|
-
P.field = "input",
|
|
4154
|
+
P.field = "input", y && (P.className = y);
|
|
4155
4155
|
const B = {};
|
|
4156
4156
|
s && (B.placeholder = s), c && _ && (B.edit = "");
|
|
4157
4157
|
const b = (S) => {
|
|
4158
|
-
z.Blur(S),
|
|
4158
|
+
z.Blur(S), g == null || g({ value: S.target.textContent.trim(), name: r });
|
|
4159
4159
|
};
|
|
4160
4160
|
return /* @__PURE__ */ a.jsxs("dl", { ...P, children: [
|
|
4161
4161
|
i ? /* @__PURE__ */ a.jsx("dt", { children: i }) : "",
|
|
@@ -4217,36 +4217,36 @@ function ra({
|
|
|
4217
4217
|
u.current.value.length > 0 ? u.current.send && (n(!0), u.current.send = !1, u.current.timerId = setTimeout(() => {
|
|
4218
4218
|
u.current.send = !0;
|
|
4219
4219
|
}, 3e3)) : n(!1);
|
|
4220
|
-
}, f = (
|
|
4221
|
-
u.current.value =
|
|
4222
|
-
}, h = (
|
|
4223
|
-
|
|
4224
|
-
}, v = (
|
|
4225
|
-
|
|
4226
|
-
},
|
|
4227
|
-
|
|
4220
|
+
}, f = (j) => {
|
|
4221
|
+
u.current.value = j.target.textContent, x();
|
|
4222
|
+
}, h = (j) => {
|
|
4223
|
+
j.keyCode === 16 && (u.current.shift = !0), j.keyCode === 13 && !u.current.shift && (j.preventDefault(), u.current.value.length !== 0 && (j.target.textContent = "", r && r(u.current.value), t && t(u.current.value), u.current.value = "", n(!1)));
|
|
4224
|
+
}, v = (j) => {
|
|
4225
|
+
j.keyCode === 16 && (u.current.shift = !1);
|
|
4226
|
+
}, p = (j) => {
|
|
4227
|
+
j.preventDefault(), navigator.clipboard.readText().then((T) => {
|
|
4228
4228
|
if (o) {
|
|
4229
|
-
let L =
|
|
4229
|
+
let L = j.target.textContent.length;
|
|
4230
4230
|
if (L >= o) return;
|
|
4231
|
-
o -= L,
|
|
4231
|
+
o -= L, T = T.slice(0, o);
|
|
4232
4232
|
}
|
|
4233
|
-
window.document.execCommand("insertText", !1,
|
|
4234
|
-
}).catch((
|
|
4233
|
+
window.document.execCommand("insertText", !1, T);
|
|
4234
|
+
}).catch((T) => {
|
|
4235
4235
|
});
|
|
4236
|
-
},
|
|
4236
|
+
}, g = () => {
|
|
4237
4237
|
n(!1);
|
|
4238
|
-
},
|
|
4238
|
+
}, y = {
|
|
4239
4239
|
spellCheck: "true"
|
|
4240
4240
|
};
|
|
4241
|
-
return _ && (
|
|
4241
|
+
return _ && (y.placeholder = _), l && c && (y.contentEditable = z.ContentEditable), /* @__PURE__ */ a.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ a.jsx(
|
|
4242
4242
|
"dd",
|
|
4243
4243
|
{
|
|
4244
|
-
onPaste:
|
|
4244
|
+
onPaste: p,
|
|
4245
4245
|
onInput: f,
|
|
4246
4246
|
onKeyUp: v,
|
|
4247
4247
|
onKeyDown: h,
|
|
4248
|
-
onBlur:
|
|
4249
|
-
...
|
|
4248
|
+
onBlur: g,
|
|
4249
|
+
...y,
|
|
4250
4250
|
suppressContentEditableWarning: !0,
|
|
4251
4251
|
children: e
|
|
4252
4252
|
}
|
|
@@ -4286,28 +4286,28 @@ function ia({
|
|
|
4286
4286
|
placeholder: r = "",
|
|
4287
4287
|
name: s
|
|
4288
4288
|
}) {
|
|
4289
|
-
let i = (v,
|
|
4289
|
+
let i = (v, p) => Number(Math.round(v + Math.random() * (p - v))), o = m.useRef(null), l = m.useRef(null), c = i(1e4, 99999), _ = (v) => {
|
|
4290
4290
|
v.key !== "Backspace" && (v.key === "Enter" && v.preventDefault(), v.target.textContent.length === 5 && v.preventDefault(), /\d/.test(v.key) || v.preventDefault());
|
|
4291
4291
|
}, u = (v) => {
|
|
4292
4292
|
t({ value: Number(v.target.textContent) === c, name: s });
|
|
4293
4293
|
}, x = (v) => {
|
|
4294
|
-
v.preventDefault(), navigator.clipboard.readText().then((
|
|
4294
|
+
v.preventDefault(), navigator.clipboard.readText().then((p) => {
|
|
4295
4295
|
if (n) {
|
|
4296
|
-
let
|
|
4297
|
-
if (
|
|
4298
|
-
n -=
|
|
4296
|
+
let g = v.target.textContent.length;
|
|
4297
|
+
if (g >= n) return;
|
|
4298
|
+
n -= g, p = p.slice(0, n);
|
|
4299
4299
|
}
|
|
4300
4300
|
window.document.execCommand(
|
|
4301
4301
|
"insertText",
|
|
4302
4302
|
!1,
|
|
4303
|
-
|
|
4303
|
+
p.replace(/(\r\n|\n|\r)/gm, " ").replace(/[^0-9]/g, "").substring(0, 5)
|
|
4304
4304
|
);
|
|
4305
|
-
}).catch((
|
|
4305
|
+
}).catch((p) => {
|
|
4306
4306
|
});
|
|
4307
4307
|
};
|
|
4308
4308
|
m.useEffect(() => {
|
|
4309
|
-
const v = o.current,
|
|
4310
|
-
|
|
4309
|
+
const v = o.current, p = v.getContext("2d");
|
|
4310
|
+
p.clearRect(0, 0, v.width, v.height), p.font = "30px brush script mt", p.fillStyle = "#eee", p.textAlign = "center", p.fillText(c, 50, 27), l.current.textContent = "";
|
|
4311
4311
|
}, [c]);
|
|
4312
4312
|
const f = {};
|
|
4313
4313
|
f.field = "captcha";
|
|
@@ -4347,24 +4347,24 @@ function oa({
|
|
|
4347
4347
|
n5: "",
|
|
4348
4348
|
n6: "",
|
|
4349
4349
|
code: ""
|
|
4350
|
-
}, _ = (
|
|
4351
|
-
if (
|
|
4352
|
-
|
|
4353
|
-
let
|
|
4354
|
-
if (c[
|
|
4355
|
-
|
|
4350
|
+
}, _ = (p) => {
|
|
4351
|
+
if (p.preventDefault(), !r) return;
|
|
4352
|
+
p.target.textContent = p.target.textContent.slice(-1).replace(/[^+\d]/g, "");
|
|
4353
|
+
let g = window.getSelection(), y = p.target.textContent.length;
|
|
4354
|
+
if (c[p.target.id] = p.target.textContent, c.code = c.n1 + "" + c.n2 + c.n3 + c.n4 + c.n5 + c.n6, g.collapse(p.target.firstChild, 1), y === 0) {
|
|
4355
|
+
p.target.blur(), p.target.focus();
|
|
4356
4356
|
return;
|
|
4357
4357
|
}
|
|
4358
|
-
|
|
4359
|
-
}, u = (
|
|
4360
|
-
if (r && (
|
|
4361
|
-
if (
|
|
4362
|
-
let
|
|
4363
|
-
|
|
4358
|
+
p.target.nextSibling != null && p.target.nextSibling.focus();
|
|
4359
|
+
}, u = (p) => {
|
|
4360
|
+
if (r && (p.key === "Enter" && p.preventDefault(), p.key === "Backspace")) {
|
|
4361
|
+
if (p.preventDefault(), p.target.textContent = "", c[p.target.id] = "", p.target.previousSibling != null) {
|
|
4362
|
+
let g = p.target.previousSibling.id.slice(1);
|
|
4363
|
+
p.target.previousSibling.textContent = "", c["n" + g] = "", p.target.previousSibling.focus();
|
|
4364
4364
|
}
|
|
4365
4365
|
c.code = c.n1 + "" + c.n2 + c.n3 + c.n4 + c.n5 + c.n6;
|
|
4366
4366
|
}
|
|
4367
|
-
}, x = (
|
|
4367
|
+
}, x = (p) => {
|
|
4368
4368
|
if (r) {
|
|
4369
4369
|
if (s)
|
|
4370
4370
|
i && i({ value: c.code, name: l });
|
|
@@ -4378,22 +4378,22 @@ function oa({
|
|
|
4378
4378
|
n6: "",
|
|
4379
4379
|
code: ""
|
|
4380
4380
|
};
|
|
4381
|
-
for (let
|
|
4382
|
-
let
|
|
4383
|
-
|
|
4381
|
+
for (let g = 1; g <= 6; g++) {
|
|
4382
|
+
let y = document.getElementById("n" + g);
|
|
4383
|
+
y && (y.textContent = "");
|
|
4384
4384
|
}
|
|
4385
4385
|
}
|
|
4386
4386
|
}
|
|
4387
|
-
}, f = (
|
|
4388
|
-
|
|
4389
|
-
}, h = (
|
|
4390
|
-
|
|
4391
|
-
let
|
|
4392
|
-
for (let
|
|
4393
|
-
let
|
|
4394
|
-
|
|
4387
|
+
}, f = (p) => {
|
|
4388
|
+
p.target.textContent = "";
|
|
4389
|
+
}, h = (p) => {
|
|
4390
|
+
p.preventDefault(), navigator.clipboard.readText().then((g) => {
|
|
4391
|
+
let y = g.split("");
|
|
4392
|
+
for (let j = 1; j <= y.length; j++) {
|
|
4393
|
+
let T = document.getElementById("n" + j);
|
|
4394
|
+
T && (T.textContent = y[j - 1]);
|
|
4395
4395
|
}
|
|
4396
|
-
}).catch((
|
|
4396
|
+
}).catch((g) => {
|
|
4397
4397
|
});
|
|
4398
4398
|
};
|
|
4399
4399
|
const v = {};
|
|
@@ -4492,15 +4492,15 @@ function la({
|
|
|
4492
4492
|
show: f = !0,
|
|
4493
4493
|
view: h,
|
|
4494
4494
|
onBlur: v,
|
|
4495
|
-
onSave:
|
|
4496
|
-
className:
|
|
4495
|
+
onSave: p,
|
|
4496
|
+
className: g = ""
|
|
4497
4497
|
}) {
|
|
4498
4498
|
_ = _ !== void 0 ? _ : !0, u = u !== void 0 ? u : !0;
|
|
4499
|
-
let [
|
|
4500
|
-
|
|
4499
|
+
let [y, j] = m.useState(t), T = ($) => {
|
|
4500
|
+
j($), n == null || n({ value: $, name: r }), p == null || p({ value: $, name: r });
|
|
4501
4501
|
};
|
|
4502
4502
|
const L = {};
|
|
4503
|
-
return L.field = "color",
|
|
4503
|
+
return L.field = "color", g && (L.className = g), /* @__PURE__ */ a.jsx(a.Fragment, { children: h === "icon" ? /* @__PURE__ */ a.jsx(
|
|
4504
4504
|
"i",
|
|
4505
4505
|
{
|
|
4506
4506
|
"data-icon": "F043"
|
|
@@ -4510,8 +4510,8 @@ function la({
|
|
|
4510
4510
|
/* @__PURE__ */ a.jsx("dd", { children: c > 0 && Array.from(Array(c).keys()).map(($) => /* @__PURE__ */ a.jsx(
|
|
4511
4511
|
"s",
|
|
4512
4512
|
{
|
|
4513
|
-
active: (Number($) === Number(
|
|
4514
|
-
onClick: () =>
|
|
4513
|
+
active: (Number($) === Number(y)) + "",
|
|
4514
|
+
onClick: () => T($),
|
|
4515
4515
|
style: {
|
|
4516
4516
|
backgroundColor: `var(--color-${$})`
|
|
4517
4517
|
}
|
|
@@ -4545,13 +4545,13 @@ function Zt({
|
|
|
4545
4545
|
}) {
|
|
4546
4546
|
let [h, v] = m.useState(
|
|
4547
4547
|
x === void 0 ? /* @__PURE__ */ new Date() : x
|
|
4548
|
-
),
|
|
4548
|
+
), p = !n && r;
|
|
4549
4549
|
m.useEffect(() => {
|
|
4550
4550
|
v(x === void 0 ? /* @__PURE__ */ new Date() : x);
|
|
4551
4551
|
}, [x]);
|
|
4552
|
-
let
|
|
4552
|
+
let g = (L) => {
|
|
4553
4553
|
v(L), _ == null || _({ value: L, name: u });
|
|
4554
|
-
},
|
|
4554
|
+
}, y = (L) => {
|
|
4555
4555
|
const $ = L.target.getBoundingClientRect(), R = $.left, I = $.bottom, E = $.top;
|
|
4556
4556
|
pe.setListener(
|
|
4557
4557
|
"form",
|
|
@@ -4559,7 +4559,7 @@ function Zt({
|
|
|
4559
4559
|
Pc,
|
|
4560
4560
|
{
|
|
4561
4561
|
position: { x: R, y: E, b: I },
|
|
4562
|
-
onValue:
|
|
4562
|
+
onValue: g,
|
|
4563
4563
|
date: h,
|
|
4564
4564
|
max: o,
|
|
4565
4565
|
min: l,
|
|
@@ -4569,24 +4569,24 @@ function Zt({
|
|
|
4569
4569
|
)
|
|
4570
4570
|
);
|
|
4571
4571
|
};
|
|
4572
|
-
const
|
|
4573
|
-
|
|
4574
|
-
const
|
|
4575
|
-
return i && (
|
|
4572
|
+
const j = {};
|
|
4573
|
+
j.field = "input", s && (j.className = s);
|
|
4574
|
+
const T = {};
|
|
4575
|
+
return i && (T.placeholder = i), p ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsx(a.Fragment, { children: c === "icon" ? /* @__PURE__ */ a.jsx(
|
|
4576
4576
|
"i",
|
|
4577
4577
|
{
|
|
4578
4578
|
"data-icon": "F043",
|
|
4579
4579
|
className: "pointer",
|
|
4580
4580
|
"data-color": "_b5b9cc :506290",
|
|
4581
|
-
onClick:
|
|
4581
|
+
onClick: y
|
|
4582
4582
|
}
|
|
4583
|
-
) : /* @__PURE__ */ a.jsxs("dl", { ...
|
|
4583
|
+
) : /* @__PURE__ */ a.jsxs("dl", { ...j, children: [
|
|
4584
4584
|
e && /* @__PURE__ */ a.jsx("dt", { children: e }),
|
|
4585
4585
|
/* @__PURE__ */ a.jsxs(
|
|
4586
4586
|
"dd",
|
|
4587
4587
|
{
|
|
4588
|
-
onClick:
|
|
4589
|
-
...
|
|
4588
|
+
onClick: y,
|
|
4589
|
+
...T,
|
|
4590
4590
|
"data-edit": (n && r) + "",
|
|
4591
4591
|
children: [
|
|
4592
4592
|
H.Date(h, "dd.mm.yyyy"),
|
|
@@ -4607,14 +4607,14 @@ const Pc = ({ date: e, onValue: t, position: n, max: r, min: s, className: i })
|
|
|
4607
4607
|
d: parseInt(_.getDate()),
|
|
4608
4608
|
m: parseInt(_.getMonth()) + 1
|
|
4609
4609
|
}, [f, h] = m.useState({ y: x.y, m: x.m }), v = (C) => {
|
|
4610
|
-
let
|
|
4611
|
-
return
|
|
4612
|
-
},
|
|
4613
|
-
for (let C = 0; C < v(
|
|
4614
|
-
|
|
4615
|
-
for (;
|
|
4616
|
-
|
|
4617
|
-
let
|
|
4610
|
+
let N = C.getDay();
|
|
4611
|
+
return N === 0 && (N = 7), N - 1;
|
|
4612
|
+
}, p = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], g = f.m - 1, y = new Date(f.y, g), j = [];
|
|
4613
|
+
for (let C = 0; C < v(y); C++)
|
|
4614
|
+
j.push(0);
|
|
4615
|
+
for (; y.getMonth() === g; )
|
|
4616
|
+
j.push(y.getDate()), y.setDate(y.getDate() + 1);
|
|
4617
|
+
let T = () => {
|
|
4618
4618
|
l(!1);
|
|
4619
4619
|
}, L = () => {
|
|
4620
4620
|
I(f.m + 1, f.y);
|
|
@@ -4623,21 +4623,21 @@ const Pc = ({ date: e, onValue: t, position: n, max: r, min: s, className: i })
|
|
|
4623
4623
|
}, R = (C) => {
|
|
4624
4624
|
t(
|
|
4625
4625
|
f.y + "-" + H.Number(2, f.m) + "-" + H.Number(2, C)
|
|
4626
|
-
),
|
|
4627
|
-
}, I = (C,
|
|
4628
|
-
|
|
4626
|
+
), T();
|
|
4627
|
+
}, I = (C, N) => {
|
|
4628
|
+
N = C > 12 ? N + 1 : C < 1 ? N - 1 : N, C = C > 12 ? 1 : C < 1 ? 12 : C, h({ y: N, m: C });
|
|
4629
4629
|
};
|
|
4630
4630
|
const E = (C) => u.y === f.y && u.m === f.m && u.d === C ? { "data-active": "true" } : {}, P = (C) => x.y === f.y && x.m === f.m && x.d === C ? { "data-current": "true" } : {}, B = (C) => {
|
|
4631
|
-
let
|
|
4631
|
+
let N = !0;
|
|
4632
4632
|
if (r) {
|
|
4633
4633
|
let W = r.getTime(), ee = new Date(f.y, f.m - 1, C).getTime();
|
|
4634
|
-
W < ee && (
|
|
4634
|
+
W < ee && (N = !1);
|
|
4635
4635
|
}
|
|
4636
4636
|
if (s) {
|
|
4637
4637
|
let W = s.getTime(), ee = new Date(f.y, f.m - 1, C).getTime();
|
|
4638
|
-
W > ee && (
|
|
4638
|
+
W > ee && (N = !1);
|
|
4639
4639
|
}
|
|
4640
|
-
return
|
|
4640
|
+
return N;
|
|
4641
4641
|
};
|
|
4642
4642
|
let b = window.innerHeight - n.y < 320 ? n.y - 312 : n.b, S = window.innerWidth - n.x < 265 ? n.x - 235 : n.x;
|
|
4643
4643
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: o ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
@@ -4645,7 +4645,7 @@ const Pc = ({ date: e, onValue: t, position: n, max: r, min: s, className: i })
|
|
|
4645
4645
|
"div",
|
|
4646
4646
|
{
|
|
4647
4647
|
className: fe.o,
|
|
4648
|
-
onClick: () =>
|
|
4648
|
+
onClick: () => T()
|
|
4649
4649
|
},
|
|
4650
4650
|
(/* @__PURE__ */ new Date()).getTime()
|
|
4651
4651
|
),
|
|
@@ -4688,8 +4688,8 @@ const Pc = ({ date: e, onValue: t, position: n, max: r, min: s, className: i })
|
|
|
4688
4688
|
) })
|
|
4689
4689
|
] }),
|
|
4690
4690
|
/* @__PURE__ */ a.jsxs("div", { "grid-calendar": "", children: [
|
|
4691
|
-
|
|
4692
|
-
|
|
4691
|
+
p.map((C, N) => /* @__PURE__ */ a.jsx("p", { children: C }, "v" + N)),
|
|
4692
|
+
j.map((C, N) => /* @__PURE__ */ a.jsx("span", { children: C !== 0 && B(C) ? /* @__PURE__ */ a.jsx(
|
|
4693
4693
|
"b",
|
|
4694
4694
|
{
|
|
4695
4695
|
...E(C),
|
|
@@ -4697,7 +4697,7 @@ const Pc = ({ date: e, onValue: t, position: n, max: r, min: s, className: i })
|
|
|
4697
4697
|
onClick: () => R(C),
|
|
4698
4698
|
children: C
|
|
4699
4699
|
}
|
|
4700
|
-
) : /* @__PURE__ */ a.jsx("p", { ...E(C), ...P(C), children: C !== 0 ? C : "" }) },
|
|
4700
|
+
) : /* @__PURE__ */ a.jsx("p", { ...E(C), ...P(C), children: C !== 0 ? C : "" }) }, N))
|
|
4701
4701
|
] })
|
|
4702
4702
|
]
|
|
4703
4703
|
}
|
|
@@ -4720,14 +4720,14 @@ function zt({
|
|
|
4720
4720
|
modal: f,
|
|
4721
4721
|
module: h,
|
|
4722
4722
|
options: v,
|
|
4723
|
-
className:
|
|
4723
|
+
className: p
|
|
4724
4724
|
}) {
|
|
4725
|
-
let [
|
|
4725
|
+
let [g, y] = m.useState(e), j = ($) => {
|
|
4726
4726
|
if (!(l && _) || !f) return;
|
|
4727
4727
|
let R = f.split(".");
|
|
4728
4728
|
_t.Open(R[0], R[1], {
|
|
4729
4729
|
callback: (I) => {
|
|
4730
|
-
t && t({ value: I, name: n }),
|
|
4730
|
+
t && t({ value: I, name: n }), y(I);
|
|
4731
4731
|
},
|
|
4732
4732
|
onValue: t,
|
|
4733
4733
|
options: v,
|
|
@@ -4735,19 +4735,19 @@ function zt({
|
|
|
4735
4735
|
value: e
|
|
4736
4736
|
});
|
|
4737
4737
|
};
|
|
4738
|
-
const
|
|
4739
|
-
|
|
4738
|
+
const T = {};
|
|
4739
|
+
T.field = "input", p && (T.className = p);
|
|
4740
4740
|
const L = {};
|
|
4741
|
-
return r && (L.placeholder = r), o ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...
|
|
4741
|
+
return r && (L.placeholder = r), o ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...T, children: [
|
|
4742
4742
|
s && /* @__PURE__ */ a.jsx("dt", { children: s }),
|
|
4743
4743
|
/* @__PURE__ */ a.jsx(
|
|
4744
4744
|
"dd",
|
|
4745
4745
|
{
|
|
4746
4746
|
...L,
|
|
4747
|
-
onClick:
|
|
4747
|
+
onClick: j,
|
|
4748
4748
|
edit: (l && _) + "",
|
|
4749
4749
|
"data-after": u,
|
|
4750
|
-
children:
|
|
4750
|
+
children: g
|
|
4751
4751
|
}
|
|
4752
4752
|
),
|
|
4753
4753
|
i && /* @__PURE__ */ a.jsx("em", { children: i })
|
|
@@ -4769,26 +4769,26 @@ function Wt({
|
|
|
4769
4769
|
view: f,
|
|
4770
4770
|
onBlur: h,
|
|
4771
4771
|
type: v,
|
|
4772
|
-
onSave:
|
|
4773
|
-
className:
|
|
4772
|
+
onSave: p,
|
|
4773
|
+
className: g = ""
|
|
4774
4774
|
}) {
|
|
4775
|
-
let
|
|
4775
|
+
let y = !!(o && (e === "" || e === void 0));
|
|
4776
4776
|
e = H.isNumeric(e) ? Number(e) / x : 0;
|
|
4777
|
-
let
|
|
4778
|
-
let C = document.createRange(),
|
|
4779
|
-
C.setStart(S.childNodes[0], b), C.collapse(!0),
|
|
4777
|
+
let j = (b) => v === "multi" ? b.replace(/[^+\d.+-]/g, "") : b.replace(/[^+\d.]/g, ""), T = (b, S) => {
|
|
4778
|
+
let C = document.createRange(), N = window.getSelection();
|
|
4779
|
+
C.setStart(S.childNodes[0], b), C.collapse(!0), N.removeAllRanges(), N.addRange(C), S.focus();
|
|
4780
4780
|
}, L = (b) => {
|
|
4781
4781
|
t == null || t({
|
|
4782
|
-
value:
|
|
4782
|
+
value: j(b.target.textContent) * x,
|
|
4783
4783
|
name: n
|
|
4784
|
-
}), b.target.textContent =
|
|
4784
|
+
}), b.target.textContent = j(b.target.textContent), b.target.textContent.length > 0 && T(b.target.textContent.length, b.target);
|
|
4785
4785
|
}, $ = (b) => {
|
|
4786
|
-
z.Blur(b), b.target.textContent === "" && (b.target.textContent = 0),
|
|
4787
|
-
value:
|
|
4786
|
+
z.Blur(b), b.target.textContent === "" && (b.target.textContent = 0), p == null || p({ value: j(b.target.textContent) * x, name: n }), t == null || t({
|
|
4787
|
+
value: j(b.target.textContent) * x,
|
|
4788
4788
|
name: n
|
|
4789
4789
|
}), b.target.textContent = H.Money(b.target.textContent);
|
|
4790
4790
|
}, R = (b) => {
|
|
4791
|
-
b.target.textContent =
|
|
4791
|
+
b.target.textContent = j(b.target.textContent);
|
|
4792
4792
|
}, I = (b) => {
|
|
4793
4793
|
b.key === "Enter" && b.preventDefault();
|
|
4794
4794
|
}, E = (b) => {
|
|
@@ -4797,9 +4797,9 @@ function Wt({
|
|
|
4797
4797
|
}).catch((S) => {
|
|
4798
4798
|
});
|
|
4799
4799
|
};
|
|
4800
|
-
if (!(l && c) && !u || !(l && c) &&
|
|
4800
|
+
if (!(l && c) && !u || !(l && c) && y) return "";
|
|
4801
4801
|
const P = {};
|
|
4802
|
-
P.field = "input",
|
|
4802
|
+
P.field = "input", g && (P.className = g);
|
|
4803
4803
|
const B = {};
|
|
4804
4804
|
return B.inputMode = "decimal", r && (B.placeholder = r), l && c && (B.edit = ""), /* @__PURE__ */ a.jsxs("dl", { ...P, children: [
|
|
4805
4805
|
s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "",
|
|
@@ -4838,17 +4838,17 @@ function ca({
|
|
|
4838
4838
|
m.useEffect(() => {
|
|
4839
4839
|
f(e);
|
|
4840
4840
|
}, [e]);
|
|
4841
|
-
let h = (
|
|
4842
|
-
f(
|
|
4843
|
-
}, v = (
|
|
4841
|
+
let h = (g) => {
|
|
4842
|
+
f(g), t && t({ value: g, name: n });
|
|
4843
|
+
}, v = (g) => {
|
|
4844
4844
|
if (!i || !o) return;
|
|
4845
|
-
const
|
|
4845
|
+
const y = g.target.getBoundingClientRect(), j = y.left, T = y.top;
|
|
4846
4846
|
pe.setListener(
|
|
4847
4847
|
"form",
|
|
4848
4848
|
/* @__PURE__ */ a.jsx(
|
|
4849
4849
|
Oc,
|
|
4850
4850
|
{
|
|
4851
|
-
position: { x:
|
|
4851
|
+
position: { x: j, y: T },
|
|
4852
4852
|
onValue: h,
|
|
4853
4853
|
date: x
|
|
4854
4854
|
},
|
|
@@ -4856,14 +4856,14 @@ function ca({
|
|
|
4856
4856
|
)
|
|
4857
4857
|
);
|
|
4858
4858
|
};
|
|
4859
|
-
const
|
|
4860
|
-
return c && (
|
|
4859
|
+
const p = {};
|
|
4860
|
+
return c && (p.placeholder = c), r === "icon" ? /* @__PURE__ */ a.jsx("i", { "data-icon": "F043", onClick: v }) : /* @__PURE__ */ a.jsxs("dl", { children: [
|
|
4861
4861
|
l && /* @__PURE__ */ a.jsx("dt", { children: l }),
|
|
4862
4862
|
/* @__PURE__ */ a.jsx(
|
|
4863
4863
|
"dd",
|
|
4864
4864
|
{
|
|
4865
4865
|
onClick: v,
|
|
4866
|
-
...
|
|
4866
|
+
...p,
|
|
4867
4867
|
children: H.Date(x, "mm.yyyy")
|
|
4868
4868
|
}
|
|
4869
4869
|
),
|
|
@@ -4883,9 +4883,9 @@ const Oc = (e) => {
|
|
|
4883
4883
|
c(l + 1);
|
|
4884
4884
|
}, x = () => {
|
|
4885
4885
|
c(l - 1);
|
|
4886
|
-
}, f = (
|
|
4887
|
-
e.onValue(l + "-" + H.Number(2,
|
|
4888
|
-
}, h = (
|
|
4886
|
+
}, f = (y) => {
|
|
4887
|
+
e.onValue(l + "-" + H.Number(2, y)), _();
|
|
4888
|
+
}, h = (y) => i.y === o.y && i.m === y ? "_FFEB3B" : "", v = Array(12).fill("").map((y, j) => j + 1), p = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, g = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
|
|
4889
4889
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: t ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
4890
4890
|
/* @__PURE__ */ a.jsx(
|
|
4891
4891
|
"div",
|
|
@@ -4899,7 +4899,7 @@ const Oc = (e) => {
|
|
|
4899
4899
|
"div",
|
|
4900
4900
|
{
|
|
4901
4901
|
className: fe.c,
|
|
4902
|
-
style: { top:
|
|
4902
|
+
style: { top: p + "px", left: g + "px" },
|
|
4903
4903
|
children: [
|
|
4904
4904
|
/* @__PURE__ */ a.jsxs("s", { children: [
|
|
4905
4905
|
/* @__PURE__ */ a.jsx("i", { onClick: x, children: /* @__PURE__ */ a.jsx(
|
|
@@ -4926,16 +4926,16 @@ const Oc = (e) => {
|
|
|
4926
4926
|
}
|
|
4927
4927
|
) })
|
|
4928
4928
|
] }),
|
|
4929
|
-
/* @__PURE__ */ a.jsx("div", { "grid-month": "", children: v.map((
|
|
4929
|
+
/* @__PURE__ */ a.jsx("div", { "grid-month": "", children: v.map((y, j) => /* @__PURE__ */ a.jsx(
|
|
4930
4930
|
"span",
|
|
4931
4931
|
{
|
|
4932
4932
|
onClick: () => {
|
|
4933
|
-
f(
|
|
4933
|
+
f(y);
|
|
4934
4934
|
},
|
|
4935
|
-
color: h(
|
|
4936
|
-
children: /* @__PURE__ */ a.jsx("b", { children: H.Month(
|
|
4935
|
+
color: h(y),
|
|
4936
|
+
children: /* @__PURE__ */ a.jsx("b", { children: H.Month(y).abc })
|
|
4937
4937
|
},
|
|
4938
|
-
|
|
4938
|
+
j
|
|
4939
4939
|
)) })
|
|
4940
4940
|
]
|
|
4941
4941
|
}
|
|
@@ -4958,18 +4958,18 @@ function da({
|
|
|
4958
4958
|
maxLength: f,
|
|
4959
4959
|
view: h,
|
|
4960
4960
|
onBlur: v,
|
|
4961
|
-
onSave:
|
|
4962
|
-
className:
|
|
4963
|
-
isCopy:
|
|
4961
|
+
onSave: p,
|
|
4962
|
+
className: g = "",
|
|
4963
|
+
isCopy: y = !0
|
|
4964
4964
|
}) {
|
|
4965
|
-
let [
|
|
4966
|
-
|
|
4965
|
+
let [j, T] = m.useState(!1);
|
|
4966
|
+
j = c ? !0 : j;
|
|
4967
4967
|
let L = (b) => {
|
|
4968
4968
|
n == null || n({ value: b.target.innerText, name: r });
|
|
4969
4969
|
}, $ = (b) => {
|
|
4970
4970
|
f && b.target.textContent.trim().length >= f && b.key !== "Backspace" && b.preventDefault(), b.key === "Enter" && b.preventDefault();
|
|
4971
4971
|
}, R = (b) => {
|
|
4972
|
-
|
|
4972
|
+
y && (b.preventDefault(), navigator.clipboard.writeText(b.target.textContent.trim()).then(
|
|
4973
4973
|
function() {
|
|
4974
4974
|
Ce.Copy("Данные в буфер обмене");
|
|
4975
4975
|
},
|
|
@@ -4994,11 +4994,11 @@ function da({
|
|
|
4994
4994
|
if (l) return /* @__PURE__ */ a.jsx(a.Fragment, {});
|
|
4995
4995
|
if (!(c && _) && !x) return "";
|
|
4996
4996
|
const E = {};
|
|
4997
|
-
E.field = "notes",
|
|
4997
|
+
E.field = "notes", g && (E.className = g);
|
|
4998
4998
|
const P = {};
|
|
4999
|
-
s && (P.placeholder = s), c && _ && (P.edit = ""),
|
|
4999
|
+
s && (P.placeholder = s), c && _ && (P.edit = ""), j && (P.open = "");
|
|
5000
5000
|
const B = (b) => {
|
|
5001
|
-
z.Blur(b),
|
|
5001
|
+
z.Blur(b), p == null || p({ value: b.target.textContent.trim(), name: r });
|
|
5002
5002
|
};
|
|
5003
5003
|
return /* @__PURE__ */ a.jsxs("dl", { ...E, children: [
|
|
5004
5004
|
i ? /* @__PURE__ */ a.jsx("dt", { children: i }) : "",
|
|
@@ -5036,19 +5036,19 @@ function Kt({
|
|
|
5036
5036
|
maxLength: f,
|
|
5037
5037
|
name: h,
|
|
5038
5038
|
after: v = "",
|
|
5039
|
-
before:
|
|
5040
|
-
view:
|
|
5039
|
+
before: p = "",
|
|
5040
|
+
view: g
|
|
5041
5041
|
}) {
|
|
5042
5042
|
s = s !== void 0 ? s : !0, n = n !== void 0 ? n : !0, c = !!(c && (_ === "" || _ === void 0)) && !(s && n), u = u !== void 0 ? u : "", r = r !== void 0 ? r : 99;
|
|
5043
|
-
let
|
|
5043
|
+
let j = !1, T = (B) => {
|
|
5044
5044
|
e == null || e({ value: B.target.textContent, name: h });
|
|
5045
5045
|
}, L = (B) => {
|
|
5046
|
-
if (!(
|
|
5047
|
-
if (B.which === 17 || B.which === 91) return
|
|
5046
|
+
if (!(j && B.which === 86)) {
|
|
5047
|
+
if (B.which === 17 || B.which === 91) return j = !0;
|
|
5048
5048
|
B.key !== "Backspace" && (B.target.textContent.length === r && B.preventDefault(), B.key === "Enter" && B.preventDefault(), isNaN(B.key) && B.preventDefault());
|
|
5049
5049
|
}
|
|
5050
5050
|
}, $ = (B) => {
|
|
5051
|
-
if (B.which === 17 || B.which === 91) return
|
|
5051
|
+
if (B.which === 17 || B.which === 91) return j = !1;
|
|
5052
5052
|
}, R = (B) => {
|
|
5053
5053
|
B.preventDefault(), navigator.clipboard.readText().then((b) => {
|
|
5054
5054
|
if (b = b.replace(/(?!^\+|\d)./g, ""), f) {
|
|
@@ -5067,13 +5067,13 @@ function Kt({
|
|
|
5067
5067
|
let P = {};
|
|
5068
5068
|
return s && n ? (P.edit = "true", P.contentEditable = z.ContentEditable) : P.contentEditable = "false", P.inputMode = "decimal", u && (P.placeholder = u), c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...E, children: [
|
|
5069
5069
|
i && /* @__PURE__ */ a.jsx("dt", { children: i }),
|
|
5070
|
-
|
|
5070
|
+
p,
|
|
5071
5071
|
/* @__PURE__ */ a.jsx(
|
|
5072
5072
|
"dd",
|
|
5073
5073
|
{
|
|
5074
5074
|
...P,
|
|
5075
5075
|
onPaste: R,
|
|
5076
|
-
onInput:
|
|
5076
|
+
onInput: T,
|
|
5077
5077
|
onBlur: I,
|
|
5078
5078
|
onKeyDown: L,
|
|
5079
5079
|
onKeyUp: $,
|
|
@@ -5101,16 +5101,16 @@ function _a({
|
|
|
5101
5101
|
isShow: f = !1,
|
|
5102
5102
|
maxLength: h,
|
|
5103
5103
|
eyes: v = [],
|
|
5104
|
-
after:
|
|
5104
|
+
after: p = ""
|
|
5105
5105
|
}) {
|
|
5106
|
-
const [
|
|
5107
|
-
let
|
|
5106
|
+
const [g, y] = m.useState(f);
|
|
5107
|
+
let j = (E) => {
|
|
5108
5108
|
t && t({
|
|
5109
5109
|
value: E.target.textContent,
|
|
5110
5110
|
name: r,
|
|
5111
5111
|
reload: u
|
|
5112
5112
|
});
|
|
5113
|
-
},
|
|
5113
|
+
}, T = (E) => {
|
|
5114
5114
|
E.key === "Enter" && E.preventDefault();
|
|
5115
5115
|
}, L = (E) => {
|
|
5116
5116
|
E.preventDefault(), navigator.clipboard.readText().then((P) => {
|
|
@@ -5130,7 +5130,7 @@ function _a({
|
|
|
5130
5130
|
z.Blur(E), n == null || n({ value: E.target.textContent.trim(), name: r });
|
|
5131
5131
|
};
|
|
5132
5132
|
const R = {};
|
|
5133
|
-
R.field = "password",
|
|
5133
|
+
R.field = "password", g && (R.show = ""), i && (R.className = i);
|
|
5134
5134
|
const I = {};
|
|
5135
5135
|
return s && (I.placeholder = s), x ? "" : /* @__PURE__ */ a.jsxs("dl", { ...R, children: [
|
|
5136
5136
|
o ? /* @__PURE__ */ a.jsx("dt", { children: o }) : "",
|
|
@@ -5138,8 +5138,8 @@ function _a({
|
|
|
5138
5138
|
"dd",
|
|
5139
5139
|
{
|
|
5140
5140
|
onPaste: L,
|
|
5141
|
-
onInput:
|
|
5142
|
-
onKeyDown:
|
|
5141
|
+
onInput: j,
|
|
5142
|
+
onKeyDown: T,
|
|
5143
5143
|
onBlur: $,
|
|
5144
5144
|
contentEditable: c && _ ? z.ContentEditable : "false",
|
|
5145
5145
|
...I,
|
|
@@ -5147,8 +5147,8 @@ function _a({
|
|
|
5147
5147
|
children: e
|
|
5148
5148
|
}
|
|
5149
5149
|
),
|
|
5150
|
-
v[0] && /* @__PURE__ */ a.jsx("i", { onClick: () =>
|
|
5151
|
-
|
|
5150
|
+
v[0] && /* @__PURE__ */ a.jsx("i", { onClick: () => y(!g), children: g ? v[1] : v[0] }),
|
|
5151
|
+
p,
|
|
5152
5152
|
l ? /* @__PURE__ */ a.jsx("em", { children: l }) : ""
|
|
5153
5153
|
] });
|
|
5154
5154
|
}
|
|
@@ -6551,31 +6551,31 @@ function Ht({
|
|
|
6551
6551
|
className: h = ""
|
|
6552
6552
|
}) {
|
|
6553
6553
|
c = c !== void 0 ? c : !0, _ = _ !== void 0 ? _ : !0, l = !!(l && (e === "" || e === void 0)) && !(c && _), m.useRef(null);
|
|
6554
|
-
let
|
|
6555
|
-
let
|
|
6556
|
-
|
|
6557
|
-
},
|
|
6554
|
+
let p = "+_(___) ___-__-__", g = !0, y = 0, j = (S, C) => {
|
|
6555
|
+
let N = document.createRange(), W = window.getSelection();
|
|
6556
|
+
N.setStart(C.childNodes[0], S), N.collapse(!0), W.removeAllRanges(), W.addRange(N), C.focus();
|
|
6557
|
+
}, T = (S) => {
|
|
6558
6558
|
S.preventDefault(), navigator.clipboard.readText().then((C) => {
|
|
6559
6559
|
window.document.execCommand("insertText", !1, C);
|
|
6560
6560
|
}).catch((C) => {
|
|
6561
6561
|
});
|
|
6562
6562
|
}, L = (S) => {
|
|
6563
|
-
let C = 0,
|
|
6564
|
-
W === "" && (
|
|
6563
|
+
let C = 0, N = "", W = S.replace(/\D/g, "");
|
|
6564
|
+
W === "" && (g = !0);
|
|
6565
6565
|
let ee = W.split(""), oe = "";
|
|
6566
6566
|
ee.forEach((Pe) => {
|
|
6567
|
-
|
|
6567
|
+
g && (oe += Pe, bt[oe] !== void 0 && g ? (g = !1, p = bt[oe].mask.replace(new RegExp("[0-9]", "g"), "_"), N = bt[oe].code) : (g && (y = ("" + oe).length, p = `+${oe}_(___) ___-__-__`.replace(
|
|
6568
6568
|
new RegExp("[0-9]", "g"),
|
|
6569
6569
|
"_"
|
|
6570
|
-
),
|
|
6570
|
+
), N = ""), y > ("" + oe).length && (g = !0, p = `+${oe}_(___) ___-__-__`.replace(
|
|
6571
6571
|
new RegExp("[0-9]", "g"),
|
|
6572
6572
|
"_"
|
|
6573
|
-
),
|
|
6573
|
+
), N = "")));
|
|
6574
6574
|
});
|
|
6575
|
-
let ve =
|
|
6576
|
-
return ve.length >= W.length && (W = ve), { q:
|
|
6575
|
+
let ve = p.replace(/\D/g, "");
|
|
6576
|
+
return ve.length >= W.length && (W = ve), { q: p.replace(/[_\d]/g, function() {
|
|
6577
6577
|
return W.charAt(C++) || "_";
|
|
6578
|
-
}), i: C, v: W, f:
|
|
6578
|
+
}), i: C, v: W, f: N };
|
|
6579
6579
|
}, $ = (S) => {
|
|
6580
6580
|
S.preventDefault(), navigator.clipboard.writeText(S.target.textContent.replace(/\D/g, "")).then(
|
|
6581
6581
|
function() {
|
|
@@ -6586,7 +6586,7 @@ function Ht({
|
|
|
6586
6586
|
);
|
|
6587
6587
|
}, R = L(e), I = (S) => {
|
|
6588
6588
|
let C = L(S.target.textContent);
|
|
6589
|
-
S.target.textContent = C.q, C.i = C.q.lastIndexOf(C.v.substr(-1)), C.i < C.q.length && C.q !==
|
|
6589
|
+
S.target.textContent = C.q, C.i = C.q.lastIndexOf(C.v.substr(-1)), C.i < C.q.length && C.q !== p ? C.i++ : C.i = C.q.indexOf("_"), j(C.i, S.target), t && t({ value: C.q.replace(/\D/g, ""), name: r });
|
|
6590
6590
|
}, E = (S) => {
|
|
6591
6591
|
S.key === "Enter" && S.preventDefault();
|
|
6592
6592
|
};
|
|
@@ -6604,7 +6604,7 @@ function Ht({
|
|
|
6604
6604
|
"dd",
|
|
6605
6605
|
{
|
|
6606
6606
|
...b,
|
|
6607
|
-
onPaste:
|
|
6607
|
+
onPaste: T,
|
|
6608
6608
|
onInput: I,
|
|
6609
6609
|
onKeyDown: E,
|
|
6610
6610
|
onContextMenu: $,
|
|
@@ -6628,43 +6628,50 @@ const ua = ({
|
|
|
6628
6628
|
}) => {
|
|
6629
6629
|
let c = 0, _ = m.useRef({
|
|
6630
6630
|
textContent: o
|
|
6631
|
-
})
|
|
6632
|
-
|
|
6631
|
+
});
|
|
6632
|
+
const u = () => {
|
|
6633
|
+
J.isBrowser("Chrome") || (_.current.textContent.length > 0 ? _.current.nextElementSibling.style.display = "block" : _.current.nextElementSibling.style.display = "none");
|
|
6634
|
+
};
|
|
6635
|
+
let x = () => {
|
|
6636
|
+
u(), clearTimeout(c), c = setTimeout(
|
|
6633
6637
|
() => {
|
|
6634
|
-
var
|
|
6635
|
-
return l((
|
|
6638
|
+
var j;
|
|
6639
|
+
return l((j = _.current) == null ? void 0 : j.textContent);
|
|
6636
6640
|
},
|
|
6637
6641
|
n
|
|
6638
6642
|
);
|
|
6639
|
-
},
|
|
6640
|
-
_.current && (_.current.textContent = ""), l("");
|
|
6641
|
-
},
|
|
6642
|
-
|
|
6643
|
-
},
|
|
6644
|
-
|
|
6645
|
-
window.document.execCommand("insertText", !1,
|
|
6646
|
-
}).catch((
|
|
6643
|
+
}, f = () => {
|
|
6644
|
+
_.current && (_.current.textContent = ""), l(""), u();
|
|
6645
|
+
}, h = (j) => {
|
|
6646
|
+
j.key === "Enter" && j.preventDefault();
|
|
6647
|
+
}, v = (j) => {
|
|
6648
|
+
j.preventDefault(), navigator.clipboard.readText().then((T) => {
|
|
6649
|
+
window.document.execCommand("insertText", !1, T);
|
|
6650
|
+
}).catch((T) => {
|
|
6647
6651
|
});
|
|
6652
|
+
}, p = () => {
|
|
6653
|
+
_.current.textContent = _.current.textContent.trim(), u();
|
|
6648
6654
|
};
|
|
6649
|
-
const v = {};
|
|
6650
|
-
v.field = "search", e && (v.className = e);
|
|
6651
6655
|
const g = {};
|
|
6652
|
-
|
|
6656
|
+
g.field = "search", e && (g.className = e);
|
|
6657
|
+
const y = {};
|
|
6658
|
+
return r && (y.placeholder = r), /* @__PURE__ */ a.jsxs("dl", { ...g, children: [
|
|
6653
6659
|
t && /* @__PURE__ */ a.jsx("dt", { children: t }),
|
|
6654
6660
|
/* @__PURE__ */ a.jsx(
|
|
6655
6661
|
"dd",
|
|
6656
6662
|
{
|
|
6657
6663
|
ref: _,
|
|
6658
|
-
onPaste:
|
|
6659
|
-
onInput:
|
|
6660
|
-
onKeyDown:
|
|
6664
|
+
onPaste: v,
|
|
6665
|
+
onInput: x,
|
|
6666
|
+
onKeyDown: h,
|
|
6667
|
+
onBlur: p,
|
|
6661
6668
|
contentEditable: s && i ? z.ContentEditable : "false",
|
|
6662
|
-
...
|
|
6669
|
+
...y,
|
|
6663
6670
|
suppressContentEditableWarning: !0,
|
|
6664
6671
|
children: o
|
|
6665
6672
|
}
|
|
6666
6673
|
),
|
|
6667
|
-
/* @__PURE__ */ a.jsx("s", { onClick:
|
|
6674
|
+
/* @__PURE__ */ a.jsx("s", { onClick: f, children: /* @__PURE__ */ a.jsxs(
|
|
6668
6675
|
"svg",
|
|
6669
6676
|
{
|
|
6670
6677
|
fill: "none",
|
|
@@ -6700,12 +6707,12 @@ function Yt({
|
|
|
6700
6707
|
isReload: v = !1
|
|
6701
6708
|
}) {
|
|
6702
6709
|
var P, B;
|
|
6703
|
-
const
|
|
6710
|
+
const p = m.useRef(), [g, y] = m.useState(i), [j, T] = m.useState(l);
|
|
6704
6711
|
m.useEffect(() => {
|
|
6705
|
-
|
|
6706
|
-
}, [i, l]), s = !!(s && (i === "" || ((P =
|
|
6712
|
+
y(i), T(l);
|
|
6713
|
+
}, [i, l]), s = !!(s && (i === "" || ((P = j[i]) == null ? void 0 : P.n) === void 0)) && !(n && r);
|
|
6707
6714
|
let $ = (b) => {
|
|
6708
|
-
|
|
6715
|
+
y(b), o && o({ value: b, name: u, reload: v });
|
|
6709
6716
|
}, R = (b) => {
|
|
6710
6717
|
if (Object.keys(l).length === 0 || !(n && r)) return;
|
|
6711
6718
|
const S = b.target.getBoundingClientRect();
|
|
@@ -6718,7 +6725,7 @@ function Yt({
|
|
|
6718
6725
|
onValue: $,
|
|
6719
6726
|
view: f,
|
|
6720
6727
|
className: _,
|
|
6721
|
-
options:
|
|
6728
|
+
options: j,
|
|
6722
6729
|
order: h
|
|
6723
6730
|
},
|
|
6724
6731
|
(/* @__PURE__ */ new Date()).getTime()
|
|
@@ -6727,8 +6734,8 @@ function Yt({
|
|
|
6727
6734
|
}, I = { field: "select", className: _ }, E = { onClick: R };
|
|
6728
6735
|
return c && (E.placeholder = c), x && (E.after = x), n && r && (E.edit = ""), s ? "" : /* @__PURE__ */ a.jsxs("dl", { ...I, children: [
|
|
6729
6736
|
e && /* @__PURE__ */ a.jsx("dt", { children: e }),
|
|
6730
|
-
/* @__PURE__ */ a.jsx("dd", { ...E, ref:
|
|
6731
|
-
Object.keys(
|
|
6737
|
+
/* @__PURE__ */ a.jsx("dd", { ...E, ref: p, children: (B = j[g]) == null ? void 0 : B.n }),
|
|
6738
|
+
Object.keys(j).length !== 0 && /* @__PURE__ */ a.jsx("s", { children: /* @__PURE__ */ a.jsx(
|
|
6732
6739
|
"svg",
|
|
6733
6740
|
{
|
|
6734
6741
|
fill: "none",
|
|
@@ -6900,9 +6907,9 @@ function Pt({
|
|
|
6900
6907
|
view: f,
|
|
6901
6908
|
module: h,
|
|
6902
6909
|
item: v,
|
|
6903
|
-
className:
|
|
6910
|
+
className: p = ""
|
|
6904
6911
|
}) {
|
|
6905
|
-
let
|
|
6912
|
+
let g = {};
|
|
6906
6913
|
switch (e) {
|
|
6907
6914
|
case "Input":
|
|
6908
6915
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -6918,11 +6925,11 @@ function Pt({
|
|
|
6918
6925
|
onValue: n,
|
|
6919
6926
|
name: r,
|
|
6920
6927
|
placeholder: s,
|
|
6921
|
-
className:
|
|
6928
|
+
className: p
|
|
6922
6929
|
}
|
|
6923
6930
|
);
|
|
6924
6931
|
case "Select":
|
|
6925
|
-
return v && (
|
|
6932
|
+
return v && (g = J.getSelect(parseInt(v)) ? J.getSelect(parseInt(v)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ a.jsx(
|
|
6926
6933
|
Yt,
|
|
6927
6934
|
{
|
|
6928
6935
|
title: i,
|
|
@@ -6935,8 +6942,8 @@ function Pt({
|
|
|
6935
6942
|
onValue: n,
|
|
6936
6943
|
name: r,
|
|
6937
6944
|
placeholder: s,
|
|
6938
|
-
className:
|
|
6939
|
-
options:
|
|
6945
|
+
className: p,
|
|
6946
|
+
options: g
|
|
6940
6947
|
}
|
|
6941
6948
|
);
|
|
6942
6949
|
case "Users":
|
|
@@ -6953,8 +6960,8 @@ function Pt({
|
|
|
6953
6960
|
onValue: n,
|
|
6954
6961
|
name: r,
|
|
6955
6962
|
placeholder: s,
|
|
6956
|
-
className:
|
|
6957
|
-
options:
|
|
6963
|
+
className: p,
|
|
6964
|
+
options: g
|
|
6958
6965
|
}
|
|
6959
6966
|
);
|
|
6960
6967
|
case "Date":
|
|
@@ -6971,7 +6978,7 @@ function Pt({
|
|
|
6971
6978
|
onValue: n,
|
|
6972
6979
|
name: r,
|
|
6973
6980
|
placeholder: s,
|
|
6974
|
-
className:
|
|
6981
|
+
className: p
|
|
6975
6982
|
}
|
|
6976
6983
|
);
|
|
6977
6984
|
case "Phone":
|
|
@@ -6988,7 +6995,7 @@ function Pt({
|
|
|
6988
6995
|
onValue: n,
|
|
6989
6996
|
name: r,
|
|
6990
6997
|
placeholder: s,
|
|
6991
|
-
className:
|
|
6998
|
+
className: p
|
|
6992
6999
|
}
|
|
6993
7000
|
);
|
|
6994
7001
|
case "Number":
|
|
@@ -7005,7 +7012,7 @@ function Pt({
|
|
|
7005
7012
|
onValue: n,
|
|
7006
7013
|
name: r,
|
|
7007
7014
|
placeholder: s,
|
|
7008
|
-
className:
|
|
7015
|
+
className: p
|
|
7009
7016
|
}
|
|
7010
7017
|
);
|
|
7011
7018
|
case "Money":
|
|
@@ -7022,7 +7029,7 @@ function Pt({
|
|
|
7022
7029
|
onValue: n,
|
|
7023
7030
|
name: r,
|
|
7024
7031
|
placeholder: s,
|
|
7025
|
-
className:
|
|
7032
|
+
className: p
|
|
7026
7033
|
}
|
|
7027
7034
|
);
|
|
7028
7035
|
case "Modal":
|
|
@@ -7039,8 +7046,8 @@ function Pt({
|
|
|
7039
7046
|
onValue: n,
|
|
7040
7047
|
name: r || "",
|
|
7041
7048
|
placeholder: s,
|
|
7042
|
-
className:
|
|
7043
|
-
options:
|
|
7049
|
+
className: p,
|
|
7050
|
+
options: g,
|
|
7044
7051
|
module: h || ""
|
|
7045
7052
|
}
|
|
7046
7053
|
);
|
|
@@ -7062,15 +7069,15 @@ function fa({
|
|
|
7062
7069
|
onBlur: f,
|
|
7063
7070
|
maxLength: h,
|
|
7064
7071
|
onSave: v,
|
|
7065
|
-
className:
|
|
7072
|
+
className: p = ""
|
|
7066
7073
|
}) {
|
|
7067
|
-
let
|
|
7068
|
-
if (!(l && c) && !u || !(l && c) &&
|
|
7069
|
-
let
|
|
7074
|
+
let g = !!(o && (e === "" || e === void 0));
|
|
7075
|
+
if (!(l && c) && !u || !(l && c) && g) return "";
|
|
7076
|
+
let y = (R) => {
|
|
7070
7077
|
t && t({ value: R.target.innerText, name: n });
|
|
7071
|
-
},
|
|
7078
|
+
}, j = (R) => {
|
|
7072
7079
|
v && v({ value: R.target.innerText, name: n });
|
|
7073
|
-
},
|
|
7080
|
+
}, T = (R) => {
|
|
7074
7081
|
R.preventDefault(), navigator.clipboard.readText().then((I) => {
|
|
7075
7082
|
if (h) {
|
|
7076
7083
|
let E = R.target.textContent.length;
|
|
@@ -7082,16 +7089,16 @@ function fa({
|
|
|
7082
7089
|
});
|
|
7083
7090
|
};
|
|
7084
7091
|
const L = {};
|
|
7085
|
-
L.field = "text",
|
|
7092
|
+
L.field = "text", p && (L.className = p);
|
|
7086
7093
|
const $ = {};
|
|
7087
7094
|
return r && ($.placeholder = r), /* @__PURE__ */ a.jsxs("dl", { ...L, children: [
|
|
7088
7095
|
s && /* @__PURE__ */ a.jsx("dt", { children: s }),
|
|
7089
7096
|
/* @__PURE__ */ a.jsx(
|
|
7090
7097
|
"dd",
|
|
7091
7098
|
{
|
|
7092
|
-
onPaste:
|
|
7093
|
-
onBlur:
|
|
7094
|
-
onInput:
|
|
7099
|
+
onPaste: T,
|
|
7100
|
+
onBlur: j,
|
|
7101
|
+
onInput: y,
|
|
7095
7102
|
contentEditable: l && c ? z.ContentEditable : "false",
|
|
7096
7103
|
...$,
|
|
7097
7104
|
suppressContentEditableWarning: !0,
|
|
@@ -7118,11 +7125,11 @@ function ma({
|
|
|
7118
7125
|
onSave: h,
|
|
7119
7126
|
className: v = ""
|
|
7120
7127
|
}) {
|
|
7121
|
-
let
|
|
7122
|
-
if (!(l && c) && !u || !(l && c) &&
|
|
7123
|
-
let
|
|
7124
|
-
|
|
7125
|
-
},
|
|
7128
|
+
let p = !!(o && (e === "" || e === void 0)), g = H.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), y = m.useRef(null);
|
|
7129
|
+
if (!(l && c) && !u || !(l && c) && p) return "";
|
|
7130
|
+
let j = (I) => {
|
|
7131
|
+
y.current.textContent = I, t && t({ value: I, name: n });
|
|
7132
|
+
}, T = (I) => {
|
|
7126
7133
|
h && h({ value: I, name: n });
|
|
7127
7134
|
}, L = (I) => {
|
|
7128
7135
|
const E = I.target.getBoundingClientRect(), P = E.left, B = E.top;
|
|
@@ -7132,9 +7139,9 @@ function ma({
|
|
|
7132
7139
|
Zc,
|
|
7133
7140
|
{
|
|
7134
7141
|
positions: { x: P, y: B },
|
|
7135
|
-
onSave:
|
|
7136
|
-
onValue:
|
|
7137
|
-
date:
|
|
7142
|
+
onSave: T,
|
|
7143
|
+
onValue: j,
|
|
7144
|
+
date: g
|
|
7138
7145
|
},
|
|
7139
7146
|
(/* @__PURE__ */ new Date()).getTime()
|
|
7140
7147
|
)
|
|
@@ -7151,7 +7158,7 @@ function ma({
|
|
|
7151
7158
|
}
|
|
7152
7159
|
) : /* @__PURE__ */ a.jsxs("dl", { ...$, children: [
|
|
7153
7160
|
s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "",
|
|
7154
|
-
/* @__PURE__ */ a.jsx("dd", { onClick: L, ref:
|
|
7161
|
+
/* @__PURE__ */ a.jsx("dd", { onClick: L, ref: y, ...R, children: g }),
|
|
7155
7162
|
i ? /* @__PURE__ */ a.jsx("em", { children: i }) : ""
|
|
7156
7163
|
] }) });
|
|
7157
7164
|
}
|
|
@@ -7173,7 +7180,7 @@ const Zc = ({ positions: e, onSave: t, onValue: n, date: r }) => {
|
|
|
7173
7180
|
_ = !0;
|
|
7174
7181
|
}, v = () => {
|
|
7175
7182
|
_ = !1, o = o === "hour" ? "time" : "hour", f.body.current.setAttribute("active", o);
|
|
7176
|
-
},
|
|
7183
|
+
}, p = (R) => {
|
|
7177
7184
|
if (_) {
|
|
7178
7185
|
let E = Math.atan2(
|
|
7179
7186
|
R.pageX - (l.x + 78),
|
|
@@ -7187,7 +7194,7 @@ const Zc = ({ positions: e, onSave: t, onValue: n, date: r }) => {
|
|
|
7187
7194
|
m: H.Number(2, parseInt(String(E / 6), 10))
|
|
7188
7195
|
}, f.timeText.current.textContent = i.m), n(i.h + ":" + i.m);
|
|
7189
7196
|
}
|
|
7190
|
-
},
|
|
7197
|
+
}, g = (R) => {
|
|
7191
7198
|
if (o === "hour")
|
|
7192
7199
|
if (R.deltaY > 0) {
|
|
7193
7200
|
u += R.deltaY;
|
|
@@ -7224,15 +7231,15 @@ const Zc = ({ positions: e, onSave: t, onValue: n, date: r }) => {
|
|
|
7224
7231
|
}
|
|
7225
7232
|
}
|
|
7226
7233
|
n(i.h + ":" + i.m);
|
|
7227
|
-
}, [
|
|
7228
|
-
|
|
7234
|
+
}, [y, j] = m.useState(!0), T = () => {
|
|
7235
|
+
j(!1), t(i.h + ":" + i.m);
|
|
7229
7236
|
}, L = window.innerHeight - e.y + 33 < 320 ? e.y - 312 : e.y + 33, $ = window.innerWidth - e.x < 265 ? e.x - 235 : e.x;
|
|
7230
|
-
return /* @__PURE__ */ a.jsx(a.Fragment, { children:
|
|
7237
|
+
return /* @__PURE__ */ a.jsx(a.Fragment, { children: y ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
7231
7238
|
/* @__PURE__ */ a.jsx(
|
|
7232
7239
|
"div",
|
|
7233
7240
|
{
|
|
7234
7241
|
className: fe.o,
|
|
7235
|
-
onClick: () =>
|
|
7242
|
+
onClick: () => T()
|
|
7236
7243
|
},
|
|
7237
7244
|
(/* @__PURE__ */ new Date()).getTime()
|
|
7238
7245
|
),
|
|
@@ -7242,8 +7249,8 @@ const Zc = ({ positions: e, onSave: t, onValue: n, date: r }) => {
|
|
|
7242
7249
|
className: fe.c,
|
|
7243
7250
|
onMouseDown: h,
|
|
7244
7251
|
onMouseUp: v,
|
|
7245
|
-
onMouseMove:
|
|
7246
|
-
onWheel:
|
|
7252
|
+
onMouseMove: p,
|
|
7253
|
+
onWheel: g,
|
|
7247
7254
|
ref: f.body,
|
|
7248
7255
|
style: { top: L + "px", left: $ + "px" },
|
|
7249
7256
|
children: [
|
|
@@ -7366,34 +7373,34 @@ function ga({
|
|
|
7366
7373
|
max: f = 0,
|
|
7367
7374
|
onSave: h,
|
|
7368
7375
|
className: v = "",
|
|
7369
|
-
separator:
|
|
7376
|
+
separator: p = ","
|
|
7370
7377
|
}) {
|
|
7371
|
-
const [
|
|
7372
|
-
e !== void 0 ? e.split(
|
|
7378
|
+
const [g, y] = m.useState(
|
|
7379
|
+
e !== void 0 ? e.split(p) : []
|
|
7373
7380
|
);
|
|
7374
7381
|
m.useEffect(() => {
|
|
7375
|
-
|
|
7382
|
+
y(e !== void 0 ? e !== void 0 ? e.split(p) : [] : []);
|
|
7376
7383
|
}, [e]);
|
|
7377
|
-
let
|
|
7378
|
-
if (f !== 0 &&
|
|
7384
|
+
let j = () => {
|
|
7385
|
+
if (f !== 0 && g.length >= f)
|
|
7379
7386
|
return Ce.Error("Слишком много");
|
|
7380
|
-
|
|
7381
|
-
},
|
|
7382
|
-
|
|
7387
|
+
y([...g, ""]);
|
|
7388
|
+
}, T = (b) => {
|
|
7389
|
+
g.splice(b, 1), g.length === 0 && g.push(""), y([...g]), h !== void 0 && h({ value: g.join(p), name: n });
|
|
7383
7390
|
}, L = !!(o && (e === "" || e === void 0)), $ = (b) => {
|
|
7384
7391
|
};
|
|
7385
7392
|
if (!(l && c) && !u || !(l && c) && L) return "";
|
|
7386
7393
|
const R = {};
|
|
7387
7394
|
R.field = "group", v && (R.className = v);
|
|
7388
7395
|
const I = (b, S) => {
|
|
7389
|
-
z.Blur(b),
|
|
7396
|
+
z.Blur(b), g[S] = b.target.textContent, h && h({ value: g.join(p), name: n });
|
|
7390
7397
|
};
|
|
7391
7398
|
let E = (b, S) => {
|
|
7392
|
-
|
|
7399
|
+
g[S] = b.target.textContent, t && t({ value: g.join(p), name: n });
|
|
7393
7400
|
}, P = (b) => {
|
|
7394
7401
|
b.key === "Enter" && b.preventDefault();
|
|
7395
7402
|
};
|
|
7396
|
-
const B = ({ data: b }) => f !== 0 && b.length >= f ? "" : /* @__PURE__ */ a.jsx("i", { onClick:
|
|
7403
|
+
const B = ({ data: b }) => f !== 0 && b.length >= f ? "" : /* @__PURE__ */ a.jsx("i", { onClick: j, children: /* @__PURE__ */ a.jsxs(
|
|
7397
7404
|
"svg",
|
|
7398
7405
|
{
|
|
7399
7406
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7412,9 +7419,9 @@ function ga({
|
|
|
7412
7419
|
return /* @__PURE__ */ a.jsxs("dl", { ...R, children: [
|
|
7413
7420
|
/* @__PURE__ */ a.jsxs("dt", { children: [
|
|
7414
7421
|
s,
|
|
7415
|
-
/* @__PURE__ */ a.jsx(B, { data:
|
|
7422
|
+
/* @__PURE__ */ a.jsx(B, { data: g })
|
|
7416
7423
|
] }),
|
|
7417
|
-
/* @__PURE__ */ a.jsx("dd", { children:
|
|
7424
|
+
/* @__PURE__ */ a.jsx("dd", { children: g.map((b, S) => /* @__PURE__ */ a.jsxs("li", { className: "field_group_item", children: [
|
|
7418
7425
|
/* @__PURE__ */ a.jsx(
|
|
7419
7426
|
"span",
|
|
7420
7427
|
{
|
|
@@ -7427,14 +7434,14 @@ function ga({
|
|
|
7427
7434
|
onKeyDown: P,
|
|
7428
7435
|
onBlur: (C) => I(C, S),
|
|
7429
7436
|
suppressContentEditableWarning: !0,
|
|
7430
|
-
children:
|
|
7437
|
+
children: g[S]
|
|
7431
7438
|
}
|
|
7432
7439
|
),
|
|
7433
7440
|
/* @__PURE__ */ a.jsx(
|
|
7434
7441
|
"i",
|
|
7435
7442
|
{
|
|
7436
7443
|
onClick: () => {
|
|
7437
|
-
|
|
7444
|
+
T(S);
|
|
7438
7445
|
},
|
|
7439
7446
|
children: /* @__PURE__ */ a.jsxs(
|
|
7440
7447
|
"svg",
|
|
@@ -7475,27 +7482,27 @@ function xa({
|
|
|
7475
7482
|
modal: f,
|
|
7476
7483
|
module: h,
|
|
7477
7484
|
options: v,
|
|
7478
|
-
className:
|
|
7485
|
+
className: p
|
|
7479
7486
|
}) {
|
|
7480
|
-
const [
|
|
7487
|
+
const [g, y] = m.useState(Wc(e)), j = ($) => {
|
|
7481
7488
|
if (!(l && _) || !f) return;
|
|
7482
7489
|
let R = f.split(".");
|
|
7483
7490
|
_t.Open(R[0], R[1], {
|
|
7484
7491
|
callback: (I) => {
|
|
7485
|
-
t && t({ value: I, name: n }),
|
|
7492
|
+
t && t({ value: I, name: n }), y(I);
|
|
7486
7493
|
},
|
|
7487
7494
|
onValue: t,
|
|
7488
7495
|
options: v,
|
|
7489
7496
|
name: n,
|
|
7490
|
-
value:
|
|
7497
|
+
value: g
|
|
7491
7498
|
});
|
|
7492
|
-
},
|
|
7493
|
-
|
|
7499
|
+
}, T = {};
|
|
7500
|
+
T.field = "group", p && (T.className = p);
|
|
7494
7501
|
const L = {};
|
|
7495
|
-
return r && (L.placeholder = r), o ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...
|
|
7502
|
+
return r && (L.placeholder = r), o ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...T, children: [
|
|
7496
7503
|
/* @__PURE__ */ a.jsxs("dt", { children: [
|
|
7497
7504
|
s,
|
|
7498
|
-
/* @__PURE__ */ a.jsx("i", { onClick:
|
|
7505
|
+
/* @__PURE__ */ a.jsx("i", { onClick: j, children: /* @__PURE__ */ a.jsxs(
|
|
7499
7506
|
"svg",
|
|
7500
7507
|
{
|
|
7501
7508
|
width: "20",
|
|
@@ -7520,7 +7527,7 @@ function xa({
|
|
|
7520
7527
|
onClick: open,
|
|
7521
7528
|
edit: (l && _) + "",
|
|
7522
7529
|
"data-after": u,
|
|
7523
|
-
children: Object.keys(
|
|
7530
|
+
children: Object.keys(g).map(($) => {
|
|
7524
7531
|
var R;
|
|
7525
7532
|
return /* @__PURE__ */ a.jsx("div", { className: "field_group_item", children: (R = v[$]) == null ? void 0 : R.label }, $);
|
|
7526
7533
|
})
|
|
@@ -7545,12 +7552,12 @@ function Sn({
|
|
|
7545
7552
|
type: f,
|
|
7546
7553
|
view: h,
|
|
7547
7554
|
onBlur: v,
|
|
7548
|
-
onSave:
|
|
7549
|
-
className:
|
|
7555
|
+
onSave: p,
|
|
7556
|
+
className: g = ""
|
|
7550
7557
|
}) {
|
|
7551
|
-
const
|
|
7552
|
-
let
|
|
7553
|
-
if (!(c && _) && !x || !(c && _) &&
|
|
7558
|
+
const y = m.useId();
|
|
7559
|
+
let j = !!(l && (e === "" || e === void 0)), [T, L] = m.useState(i);
|
|
7560
|
+
if (!(c && _) && !x || !(c && _) && j) return "";
|
|
7554
7561
|
const $ = async (I) => {
|
|
7555
7562
|
if (f) {
|
|
7556
7563
|
let E = Hc(I, f, e || "default");
|
|
@@ -7558,7 +7565,7 @@ function Sn({
|
|
|
7558
7565
|
} else
|
|
7559
7566
|
t == null || t({ name: n, value: I }), L(URL.createObjectURL(I));
|
|
7560
7567
|
}, R = {};
|
|
7561
|
-
return R.field = "file",
|
|
7568
|
+
return R.field = "file", g && (R.className = g), /* @__PURE__ */ a.jsxs("dl", { ...R, children: [
|
|
7562
7569
|
s && /* @__PURE__ */ a.jsxs("dt", { children: [
|
|
7563
7570
|
s,
|
|
7564
7571
|
" "
|
|
@@ -7567,7 +7574,7 @@ function Sn({
|
|
|
7567
7574
|
/* @__PURE__ */ a.jsx(
|
|
7568
7575
|
"input",
|
|
7569
7576
|
{
|
|
7570
|
-
id:
|
|
7577
|
+
id: y,
|
|
7571
7578
|
type: "file",
|
|
7572
7579
|
multiple: !0,
|
|
7573
7580
|
onChange: (I) => {
|
|
@@ -7575,8 +7582,8 @@ function Sn({
|
|
|
7575
7582
|
}
|
|
7576
7583
|
}
|
|
7577
7584
|
),
|
|
7578
|
-
/* @__PURE__ */ a.jsx("label", { htmlFor:
|
|
7579
|
-
/* @__PURE__ */ a.jsx("img", { src:
|
|
7585
|
+
/* @__PURE__ */ a.jsx("label", { htmlFor: y }),
|
|
7586
|
+
/* @__PURE__ */ a.jsx("img", { src: T })
|
|
7580
7587
|
] }),
|
|
7581
7588
|
o && /* @__PURE__ */ a.jsx("em", { children: o })
|
|
7582
7589
|
] });
|
|
@@ -7716,36 +7723,36 @@ function Qc({
|
|
|
7716
7723
|
className: v = ""
|
|
7717
7724
|
}) {
|
|
7718
7725
|
_ = _ !== void 0 ? _ : !0, u = u !== void 0 ? u : !0, c = !!(c && (e === "" || e === void 0)) && !(_ && u), m.useRef(null);
|
|
7719
|
-
let
|
|
7726
|
+
let g = s, y = !0, j = 0, T = (C, N) => {
|
|
7720
7727
|
let W = document.createRange(), ee = window.getSelection();
|
|
7721
|
-
W.setStart(
|
|
7728
|
+
W.setStart(N.childNodes[0], C), W.collapse(!0), ee.removeAllRanges(), ee.addRange(W), N.focus();
|
|
7722
7729
|
}, L = (C) => {
|
|
7723
|
-
C.preventDefault(), navigator.clipboard.readText().then((
|
|
7724
|
-
window.document.execCommand("insertText", !1,
|
|
7725
|
-
}).catch((
|
|
7730
|
+
C.preventDefault(), navigator.clipboard.readText().then((N) => {
|
|
7731
|
+
window.document.execCommand("insertText", !1, N);
|
|
7732
|
+
}).catch((N) => {
|
|
7726
7733
|
});
|
|
7727
7734
|
}, $ = (C) => {
|
|
7728
|
-
let
|
|
7729
|
-
ee === "" && (
|
|
7735
|
+
let N = 0, W = "", ee = C.replace(/\D/g, "");
|
|
7736
|
+
ee === "" && (y = !0);
|
|
7730
7737
|
let oe = ee.split(""), ve = "";
|
|
7731
7738
|
oe.forEach((Qe) => {
|
|
7732
|
-
|
|
7739
|
+
y && (ve += Qe, y && (j = ("" + ve).length, g = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""), j > ("" + ve).length && (y = !0, g = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""));
|
|
7733
7740
|
});
|
|
7734
|
-
let Ie =
|
|
7735
|
-
return Ie.length >= ee.length && (ee = Ie), { q:
|
|
7736
|
-
return ee.charAt(
|
|
7737
|
-
}), i:
|
|
7741
|
+
let Ie = g.replace(/\D/g, "");
|
|
7742
|
+
return Ie.length >= ee.length && (ee = Ie), { q: g.replace(/[_\d]/g, function() {
|
|
7743
|
+
return ee.charAt(N++) || "_";
|
|
7744
|
+
}), i: N, v: ee, f: W };
|
|
7738
7745
|
}, R = (C) => {
|
|
7739
7746
|
C.preventDefault(), navigator.clipboard.writeText(C.target.textContent.replace(/\D/g, "")).then(
|
|
7740
7747
|
function() {
|
|
7741
7748
|
Ce.Copy("Данные в буфер обмене");
|
|
7742
7749
|
},
|
|
7743
|
-
function(
|
|
7750
|
+
function(N) {
|
|
7744
7751
|
}
|
|
7745
7752
|
);
|
|
7746
7753
|
}, I = $(e), E = (C) => {
|
|
7747
|
-
let
|
|
7748
|
-
C.target.textContent =
|
|
7754
|
+
let N = $(C.target.textContent);
|
|
7755
|
+
C.target.textContent = N.q, N.i = N.q.lastIndexOf(N.v.substr(-1)), N.i < N.q.length && N.q !== g ? N.i++ : N.i = N.q.indexOf("_"), T(N.i, C.target), t && t({ value: N.q.replace(/\D/g, ""), name: r });
|
|
7749
7756
|
}, P = (C) => {
|
|
7750
7757
|
C.key === "Enter" && C.preventDefault();
|
|
7751
7758
|
};
|