elcrm 0.9.125 → 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 +487 -478
- 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
|
};
|
|
@@ -266,18 +266,18 @@ function ar() {
|
|
|
266
266
|
if (re && F && typeof re.stack == "string") {
|
|
267
267
|
for (var U = re.stack.split(`
|
|
268
268
|
`), ne = F.stack.split(`
|
|
269
|
-
`),
|
|
269
|
+
`), V = U.length - 1, Q = ne.length - 1; V >= 1 && Q >= 0 && U[V] !== ne[Q]; )
|
|
270
270
|
Q--;
|
|
271
|
-
for (;
|
|
272
|
-
if (U[
|
|
273
|
-
if (
|
|
271
|
+
for (; V >= 1 && Q >= 0; V--, Q--)
|
|
272
|
+
if (U[V] !== ne[Q]) {
|
|
273
|
+
if (V !== 1 || Q !== 1)
|
|
274
274
|
do
|
|
275
|
-
if (
|
|
275
|
+
if (V--, Q--, Q < 0 || U[V] !== ne[Q]) {
|
|
276
276
|
var ce = `
|
|
277
|
-
` + U[
|
|
277
|
+
` + U[V].replace(" at new ", " at ");
|
|
278
278
|
return d.displayName && ce.includes("<anonymous>") && (ce = ce.replace("<anonymous>", d.displayName)), typeof d == "function" && tt.set(d, ce), ce;
|
|
279
279
|
}
|
|
280
|
-
while (
|
|
280
|
+
while (V >= 1 && Q >= 0);
|
|
281
281
|
break;
|
|
282
282
|
}
|
|
283
283
|
}
|
|
@@ -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](
|
|
346
|
-
} catch (
|
|
347
|
-
U =
|
|
345
|
+
U = d[G](k, G, F, D, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
346
|
+
} catch (V) {
|
|
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,16 +454,16 @@ 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
|
-
var
|
|
465
|
-
for (K in
|
|
466
|
-
G[K] === void 0 && (G[K] =
|
|
464
|
+
var V = d.defaultProps;
|
|
465
|
+
for (K in V)
|
|
466
|
+
G[K] === void 0 && (G[K] = V[K]);
|
|
467
467
|
}
|
|
468
468
|
if (U || ne) {
|
|
469
469
|
var Q = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
|
|
@@ -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) {
|
|
@@ -591,14 +591,14 @@ Check the top-level render call using <` + D + ">.");
|
|
|
591
591
|
(d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (U += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
592
592
|
var ne = Ua();
|
|
593
593
|
ne ? U += ne : U += ln();
|
|
594
|
-
var
|
|
595
|
-
d === null ?
|
|
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, 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;
|
|
@@ -1071,7 +1071,7 @@ function Zn() {
|
|
|
1071
1071
|
function os(e) {
|
|
1072
1072
|
return Zn() === e;
|
|
1073
1073
|
}
|
|
1074
|
-
const
|
|
1074
|
+
const J = {
|
|
1075
1075
|
setSSID: yr,
|
|
1076
1076
|
getSSID: br,
|
|
1077
1077
|
getPORT: St,
|
|
@@ -1195,7 +1195,7 @@ const Be = {
|
|
|
1195
1195
|
};
|
|
1196
1196
|
let Cs = "api", js = "elcrm", ks = "online", $e = !1;
|
|
1197
1197
|
function ys() {
|
|
1198
|
-
let e =
|
|
1198
|
+
let e = J.getPORT(), t = "", n = "";
|
|
1199
1199
|
return e.address === "localhost" ? (t = `http://localhost:${e.socket}/documents`, n = `http://localhost:${e.socket}/files`) : (t = "https://" + e.address + "/documents", n = "https://" + e.address + "/files"), {
|
|
1200
1200
|
documents: t,
|
|
1201
1201
|
files: n
|
|
@@ -1211,13 +1211,13 @@ function ws(e) {
|
|
|
1211
1211
|
function Ss(e) {
|
|
1212
1212
|
$e = e;
|
|
1213
1213
|
}
|
|
1214
|
-
function Ve(e, t = {}, n = $e ?
|
|
1214
|
+
function Ve(e, t = {}, n = $e ? J.getSSID() : J.getAUTH()) {
|
|
1215
1215
|
return new Promise((r) => {
|
|
1216
1216
|
const s = new Wn();
|
|
1217
1217
|
s.onmessage = (i) => {
|
|
1218
1218
|
var o, l, c;
|
|
1219
|
-
if ($e && ((o = i.data) != null && o.ssid) &&
|
|
1220
|
-
return
|
|
1219
|
+
if ($e && ((o = i.data) != null && o.ssid) && J.setSSID(i.data.ssid), ((l = i.data) == null ? void 0 : l.status) === "logaut" || ((c = i.data) == null ? void 0 : c.status) === "logout")
|
|
1220
|
+
return J.Logaut();
|
|
1221
1221
|
r(i.data), s.terminate();
|
|
1222
1222
|
}, s.postMessage({
|
|
1223
1223
|
link: e,
|
|
@@ -1227,7 +1227,7 @@ function Ve(e, t = {}, n = $e ? X.getSSID() : X.getAUTH()) {
|
|
|
1227
1227
|
});
|
|
1228
1228
|
});
|
|
1229
1229
|
}
|
|
1230
|
-
async function Es(e, t = {}, n = $e ?
|
|
1230
|
+
async function Es(e, t = {}, n = $e ? J.getSSID() : J.getAUTH()) {
|
|
1231
1231
|
try {
|
|
1232
1232
|
return await (await Ve(Be.Host() || `https://${Je}/` + e, {
|
|
1233
1233
|
method: "POST",
|
|
@@ -1240,7 +1240,7 @@ async function Es(e, t = {}, n = $e ? X.getSSID() : X.getAUTH()) {
|
|
|
1240
1240
|
return { status: "error", message: r };
|
|
1241
1241
|
}
|
|
1242
1242
|
}
|
|
1243
|
-
function Ds(e, t = {}, n = $e ?
|
|
1243
|
+
function Ds(e, t = {}, n = $e ? J.getSSID() : J.getAUTH()) {
|
|
1244
1244
|
return new Promise((r) => {
|
|
1245
1245
|
const s = new Wn();
|
|
1246
1246
|
s.onmessage = (i) => {
|
|
@@ -1253,11 +1253,11 @@ function Ds(e, t = {}, n = $e ? X.getSSID() : X.getAUTH()) {
|
|
|
1253
1253
|
});
|
|
1254
1254
|
});
|
|
1255
1255
|
}
|
|
1256
|
-
function Rs(e, t = {}, n = $e ?
|
|
1256
|
+
function Rs(e, t = {}, n = $e ? J.getSSID() : J.getAUTH()) {
|
|
1257
1257
|
const [r, s] = m.useState({ status: "load" }), i = async (o) => {
|
|
1258
1258
|
let l = await Ve(e, o, n);
|
|
1259
1259
|
if (l.status === "logaut" || l.status === "logout")
|
|
1260
|
-
return
|
|
1260
|
+
return J.Logaut();
|
|
1261
1261
|
s(l);
|
|
1262
1262
|
};
|
|
1263
1263
|
return m.useEffect(() => {
|
|
@@ -1266,7 +1266,7 @@ function Rs(e, t = {}, n = $e ? X.getSSID() : X.getAUTH()) {
|
|
|
1266
1266
|
}
|
|
1267
1267
|
let Hn = {
|
|
1268
1268
|
"Content-type": "application/json;charset=utf-8",
|
|
1269
|
-
ssid:
|
|
1269
|
+
ssid: J.getAUTH() || ""
|
|
1270
1270
|
};
|
|
1271
1271
|
async function Is(e, t, n = {}) {
|
|
1272
1272
|
try {
|
|
@@ -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
|
" ",
|
|
@@ -2899,7 +2899,7 @@ const Wo = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
|
|
|
2899
2899
|
let i = await (await fetch(Dt.url().files + "/yandex/data/" + e.id, {
|
|
2900
2900
|
headers: {
|
|
2901
2901
|
"Content-type": "application/json;charset=utf-8",
|
|
2902
|
-
SSID:
|
|
2902
|
+
SSID: J.getSSID() || ""
|
|
2903
2903
|
}
|
|
2904
2904
|
})).blob();
|
|
2905
2905
|
if (i.size !== 2) {
|
|
@@ -2912,7 +2912,7 @@ const Wo = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
|
|
|
2912
2912
|
(await (await fetch(Dt.url().files + "/yandex/delete/" + e.id, {
|
|
2913
2913
|
headers: {
|
|
2914
2914
|
"Content-type": "application/json;charset=utf-8",
|
|
2915
|
-
SSID:
|
|
2915
|
+
SSID: J.getSSID() || ""
|
|
2916
2916
|
}
|
|
2917
2917
|
})).json()).status === "success" && (t({ type: "delete", id: e.id }), Ce.Send({ type: "success", text: "Файл успешно удалён" }));
|
|
2918
2918
|
};
|
|
@@ -3183,7 +3183,7 @@ function sl(e, t) {
|
|
|
3183
3183
|
function il({ id: e, type: t }) {
|
|
3184
3184
|
const [n, r] = m.useState({}), [s, i] = m.useState(t);
|
|
3185
3185
|
m.useEffect(() => {
|
|
3186
|
-
r(
|
|
3186
|
+
r(J.getSelect("user")[e]);
|
|
3187
3187
|
}, []), Y.useListener((c) => {
|
|
3188
3188
|
switch (c.type) {
|
|
3189
3189
|
case "state":
|
|
@@ -3664,7 +3664,7 @@ function tc({ items: e, list: t, icons: n, isSetting: r = !0 }) {
|
|
|
3664
3664
|
Jl.Send(
|
|
3665
3665
|
{ title: "Выйти", text: "Вы уверене что хотиет выйти" },
|
|
3666
3666
|
() => {
|
|
3667
|
-
|
|
3667
|
+
J.Logaut();
|
|
3668
3668
|
}
|
|
3669
3669
|
);
|
|
3670
3670
|
};
|
|
@@ -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);
|
|
@@ -3864,21 +3864,21 @@ class mc {
|
|
|
3864
3864
|
);
|
|
3865
3865
|
}
|
|
3866
3866
|
}
|
|
3867
|
-
let yt,
|
|
3867
|
+
let yt, X = {};
|
|
3868
3868
|
const Fe = () => (yt || (yt = new mc()), yt), Se = (e, t, n = Fe()) => n._withIDBStore("readwrite", (r) => {
|
|
3869
|
-
|
|
3870
|
-
}), xe = (e, t = Fe()) =>
|
|
3869
|
+
X[e] = t, r.put(A.enCode(t), e);
|
|
3870
|
+
}), xe = (e, t = Fe()) => X[e] === void 0 ? new Promise((n, r) => {
|
|
3871
3871
|
let s;
|
|
3872
3872
|
t._withIDBStore("readonly", (i) => {
|
|
3873
3873
|
s = i.get(e);
|
|
3874
3874
|
}).then(() => {
|
|
3875
3875
|
if (s.result !== void 0) {
|
|
3876
3876
|
let i = A.deCode(s.result);
|
|
3877
|
-
|
|
3877
|
+
X[e] = i, n(i);
|
|
3878
3878
|
} else
|
|
3879
3879
|
n({});
|
|
3880
3880
|
});
|
|
3881
|
-
}) :
|
|
3881
|
+
}) : X[e], hc = (e, t = Fe()) => t._withIDBStore("readwrite", (n) => {
|
|
3882
3882
|
n.delete(e);
|
|
3883
3883
|
}), Ft = (e = Fe()) => e._withIDBStore("readwrite", (t) => {
|
|
3884
3884
|
t.clear();
|
|
@@ -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) => {
|
|
@@ -3912,7 +3912,7 @@ const Fe = () => (yt || (yt = new mc()), yt), Se = (e, t, n = Fe()) => n._withID
|
|
|
3912
3912
|
h === void 0 ? (Ft(), location.reload()) : (s && x(h.id), l && f(h.id));
|
|
3913
3913
|
}), { list: u, search: i, filter: r };
|
|
3914
3914
|
}, xc = (e, t, n, r = Fe()) => {
|
|
3915
|
-
if (
|
|
3915
|
+
if (X[e] === void 0)
|
|
3916
3916
|
return new Promise((s, i) => {
|
|
3917
3917
|
let o;
|
|
3918
3918
|
r._withIDBStore("readonly", (l) => {
|
|
@@ -3920,17 +3920,17 @@ const Fe = () => (yt || (yt = new mc()), yt), Se = (e, t, n = Fe()) => n._withID
|
|
|
3920
3920
|
}).then(() => {
|
|
3921
3921
|
if (o.result !== void 0) {
|
|
3922
3922
|
let l = A.deCode(o.result);
|
|
3923
|
-
|
|
3924
|
-
...
|
|
3923
|
+
X[e] = l, X[e][t.id] = {
|
|
3924
|
+
...X[e][t.id],
|
|
3925
3925
|
...t.data
|
|
3926
|
-
}, r.put(A.enCode(
|
|
3926
|
+
}, r.put(A.enCode(X[e]), e), s({});
|
|
3927
3927
|
} else
|
|
3928
3928
|
s({});
|
|
3929
3929
|
});
|
|
3930
3930
|
});
|
|
3931
|
-
if (
|
|
3932
|
-
return
|
|
3933
|
-
s.put(A.enCode(
|
|
3931
|
+
if (X[e][t.id] !== void 0)
|
|
3932
|
+
return X[e][t.id] = { ...X[e][t.id], ...t.data }, n !== void 0 && X[n] !== void 0 ? X[n][t.id] !== void 0 && (X[n][t.id] = t.data.eDate) : X[n] = [], delete X[e][t.id].$_item, delete X[e][t.id].$_send, r._withIDBStore("readwrite", (s) => {
|
|
3933
|
+
s.put(A.enCode(X[e]), e), n !== void 0 && s.put(A.enCode(X[n]), n);
|
|
3934
3934
|
});
|
|
3935
3935
|
}, vc = async (e, t, n, r) => {
|
|
3936
3936
|
let s, i;
|
|
@@ -3955,7 +3955,7 @@ const Fe = () => (yt || (yt = new mc()), yt), Se = (e, t, n = Fe()) => n._withID
|
|
|
3955
3955
|
n({ type: "load", base: r });
|
|
3956
3956
|
else
|
|
3957
3957
|
return r[e];
|
|
3958
|
-
}, wc = (e) =>
|
|
3958
|
+
}, wc = (e) => X[e], qd = {
|
|
3959
3959
|
id: bc,
|
|
3960
3960
|
get: xe,
|
|
3961
3961
|
set: Se,
|
|
@@ -4095,7 +4095,7 @@ z.Focus = (e) => {
|
|
|
4095
4095
|
z.Blur = (e) => {
|
|
4096
4096
|
e.target.scrollLeft = 0, e.target.querySelector("br") !== null && e.target.querySelector("br").remove();
|
|
4097
4097
|
};
|
|
4098
|
-
z.ContentEditable =
|
|
4098
|
+
z.ContentEditable = J.isBrowser("Firefox") ? "true" : "plaintext-only";
|
|
4099
4099
|
function He({
|
|
4100
4100
|
id: e,
|
|
4101
4101
|
value: t,
|
|
@@ -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: $,
|
|
@@ -6626,43 +6626,52 @@ const ua = ({
|
|
|
6626
6626
|
value: o,
|
|
6627
6627
|
onValue: l
|
|
6628
6628
|
}) => {
|
|
6629
|
-
let c = 0, _ = m.useRef({
|
|
6630
|
-
|
|
6629
|
+
let c = 0, _ = m.useRef({
|
|
6630
|
+
textContent: o
|
|
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(
|
|
6631
6637
|
() => {
|
|
6632
|
-
var
|
|
6633
|
-
return l((
|
|
6638
|
+
var j;
|
|
6639
|
+
return l((j = _.current) == null ? void 0 : j.textContent);
|
|
6634
6640
|
},
|
|
6635
6641
|
n
|
|
6636
6642
|
);
|
|
6637
|
-
},
|
|
6638
|
-
_.current && (_.current.textContent = ""), l("");
|
|
6639
|
-
},
|
|
6640
|
-
|
|
6641
|
-
},
|
|
6642
|
-
|
|
6643
|
-
window.document.execCommand("insertText", !1,
|
|
6644
|
-
}).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) => {
|
|
6645
6651
|
});
|
|
6652
|
+
}, p = () => {
|
|
6653
|
+
_.current.textContent = _.current.textContent.trim(), u();
|
|
6646
6654
|
};
|
|
6647
|
-
const v = {};
|
|
6648
|
-
v.field = "search", e && (v.className = e);
|
|
6649
6655
|
const g = {};
|
|
6650
|
-
|
|
6656
|
+
g.field = "search", e && (g.className = e);
|
|
6657
|
+
const y = {};
|
|
6658
|
+
return r && (y.placeholder = r), /* @__PURE__ */ a.jsxs("dl", { ...g, children: [
|
|
6651
6659
|
t && /* @__PURE__ */ a.jsx("dt", { children: t }),
|
|
6652
6660
|
/* @__PURE__ */ a.jsx(
|
|
6653
6661
|
"dd",
|
|
6654
6662
|
{
|
|
6655
6663
|
ref: _,
|
|
6656
|
-
onPaste:
|
|
6657
|
-
onInput:
|
|
6658
|
-
onKeyDown:
|
|
6664
|
+
onPaste: v,
|
|
6665
|
+
onInput: x,
|
|
6666
|
+
onKeyDown: h,
|
|
6667
|
+
onBlur: p,
|
|
6659
6668
|
contentEditable: s && i ? z.ContentEditable : "false",
|
|
6660
|
-
...
|
|
6669
|
+
...y,
|
|
6661
6670
|
suppressContentEditableWarning: !0,
|
|
6662
6671
|
children: o
|
|
6663
6672
|
}
|
|
6664
6673
|
),
|
|
6665
|
-
/* @__PURE__ */ a.jsx("s", { onClick:
|
|
6674
|
+
/* @__PURE__ */ a.jsx("s", { onClick: f, children: /* @__PURE__ */ a.jsxs(
|
|
6666
6675
|
"svg",
|
|
6667
6676
|
{
|
|
6668
6677
|
fill: "none",
|
|
@@ -6698,12 +6707,12 @@ function Yt({
|
|
|
6698
6707
|
isReload: v = !1
|
|
6699
6708
|
}) {
|
|
6700
6709
|
var P, B;
|
|
6701
|
-
const
|
|
6710
|
+
const p = m.useRef(), [g, y] = m.useState(i), [j, T] = m.useState(l);
|
|
6702
6711
|
m.useEffect(() => {
|
|
6703
|
-
|
|
6704
|
-
}, [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);
|
|
6705
6714
|
let $ = (b) => {
|
|
6706
|
-
|
|
6715
|
+
y(b), o && o({ value: b, name: u, reload: v });
|
|
6707
6716
|
}, R = (b) => {
|
|
6708
6717
|
if (Object.keys(l).length === 0 || !(n && r)) return;
|
|
6709
6718
|
const S = b.target.getBoundingClientRect();
|
|
@@ -6716,7 +6725,7 @@ function Yt({
|
|
|
6716
6725
|
onValue: $,
|
|
6717
6726
|
view: f,
|
|
6718
6727
|
className: _,
|
|
6719
|
-
options:
|
|
6728
|
+
options: j,
|
|
6720
6729
|
order: h
|
|
6721
6730
|
},
|
|
6722
6731
|
(/* @__PURE__ */ new Date()).getTime()
|
|
@@ -6725,8 +6734,8 @@ function Yt({
|
|
|
6725
6734
|
}, I = { field: "select", className: _ }, E = { onClick: R };
|
|
6726
6735
|
return c && (E.placeholder = c), x && (E.after = x), n && r && (E.edit = ""), s ? "" : /* @__PURE__ */ a.jsxs("dl", { ...I, children: [
|
|
6727
6736
|
e && /* @__PURE__ */ a.jsx("dt", { children: e }),
|
|
6728
|
-
/* @__PURE__ */ a.jsx("dd", { ...E, ref:
|
|
6729
|
-
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(
|
|
6730
6739
|
"svg",
|
|
6731
6740
|
{
|
|
6732
6741
|
fill: "none",
|
|
@@ -6898,9 +6907,9 @@ function Pt({
|
|
|
6898
6907
|
view: f,
|
|
6899
6908
|
module: h,
|
|
6900
6909
|
item: v,
|
|
6901
|
-
className:
|
|
6910
|
+
className: p = ""
|
|
6902
6911
|
}) {
|
|
6903
|
-
let
|
|
6912
|
+
let g = {};
|
|
6904
6913
|
switch (e) {
|
|
6905
6914
|
case "Input":
|
|
6906
6915
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -6916,11 +6925,11 @@ function Pt({
|
|
|
6916
6925
|
onValue: n,
|
|
6917
6926
|
name: r,
|
|
6918
6927
|
placeholder: s,
|
|
6919
|
-
className:
|
|
6928
|
+
className: p
|
|
6920
6929
|
}
|
|
6921
6930
|
);
|
|
6922
6931
|
case "Select":
|
|
6923
|
-
return v && (
|
|
6932
|
+
return v && (g = J.getSelect(parseInt(v)) ? J.getSelect(parseInt(v)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ a.jsx(
|
|
6924
6933
|
Yt,
|
|
6925
6934
|
{
|
|
6926
6935
|
title: i,
|
|
@@ -6933,12 +6942,12 @@ function Pt({
|
|
|
6933
6942
|
onValue: n,
|
|
6934
6943
|
name: r,
|
|
6935
6944
|
placeholder: s,
|
|
6936
|
-
className:
|
|
6937
|
-
options:
|
|
6945
|
+
className: p,
|
|
6946
|
+
options: g
|
|
6938
6947
|
}
|
|
6939
6948
|
);
|
|
6940
6949
|
case "Users":
|
|
6941
|
-
return
|
|
6950
|
+
return J.getSelect("user"), /* @__PURE__ */ a.jsx(
|
|
6942
6951
|
qt,
|
|
6943
6952
|
{
|
|
6944
6953
|
title: i,
|
|
@@ -6951,8 +6960,8 @@ function Pt({
|
|
|
6951
6960
|
onValue: n,
|
|
6952
6961
|
name: r,
|
|
6953
6962
|
placeholder: s,
|
|
6954
|
-
className:
|
|
6955
|
-
options:
|
|
6963
|
+
className: p,
|
|
6964
|
+
options: g
|
|
6956
6965
|
}
|
|
6957
6966
|
);
|
|
6958
6967
|
case "Date":
|
|
@@ -6969,7 +6978,7 @@ function Pt({
|
|
|
6969
6978
|
onValue: n,
|
|
6970
6979
|
name: r,
|
|
6971
6980
|
placeholder: s,
|
|
6972
|
-
className:
|
|
6981
|
+
className: p
|
|
6973
6982
|
}
|
|
6974
6983
|
);
|
|
6975
6984
|
case "Phone":
|
|
@@ -6986,7 +6995,7 @@ function Pt({
|
|
|
6986
6995
|
onValue: n,
|
|
6987
6996
|
name: r,
|
|
6988
6997
|
placeholder: s,
|
|
6989
|
-
className:
|
|
6998
|
+
className: p
|
|
6990
6999
|
}
|
|
6991
7000
|
);
|
|
6992
7001
|
case "Number":
|
|
@@ -7003,7 +7012,7 @@ function Pt({
|
|
|
7003
7012
|
onValue: n,
|
|
7004
7013
|
name: r,
|
|
7005
7014
|
placeholder: s,
|
|
7006
|
-
className:
|
|
7015
|
+
className: p
|
|
7007
7016
|
}
|
|
7008
7017
|
);
|
|
7009
7018
|
case "Money":
|
|
@@ -7020,7 +7029,7 @@ function Pt({
|
|
|
7020
7029
|
onValue: n,
|
|
7021
7030
|
name: r,
|
|
7022
7031
|
placeholder: s,
|
|
7023
|
-
className:
|
|
7032
|
+
className: p
|
|
7024
7033
|
}
|
|
7025
7034
|
);
|
|
7026
7035
|
case "Modal":
|
|
@@ -7037,8 +7046,8 @@ function Pt({
|
|
|
7037
7046
|
onValue: n,
|
|
7038
7047
|
name: r || "",
|
|
7039
7048
|
placeholder: s,
|
|
7040
|
-
className:
|
|
7041
|
-
options:
|
|
7049
|
+
className: p,
|
|
7050
|
+
options: g,
|
|
7042
7051
|
module: h || ""
|
|
7043
7052
|
}
|
|
7044
7053
|
);
|
|
@@ -7060,15 +7069,15 @@ function fa({
|
|
|
7060
7069
|
onBlur: f,
|
|
7061
7070
|
maxLength: h,
|
|
7062
7071
|
onSave: v,
|
|
7063
|
-
className:
|
|
7072
|
+
className: p = ""
|
|
7064
7073
|
}) {
|
|
7065
|
-
let
|
|
7066
|
-
if (!(l && c) && !u || !(l && c) &&
|
|
7067
|
-
let
|
|
7074
|
+
let g = !!(o && (e === "" || e === void 0));
|
|
7075
|
+
if (!(l && c) && !u || !(l && c) && g) return "";
|
|
7076
|
+
let y = (R) => {
|
|
7068
7077
|
t && t({ value: R.target.innerText, name: n });
|
|
7069
|
-
},
|
|
7078
|
+
}, j = (R) => {
|
|
7070
7079
|
v && v({ value: R.target.innerText, name: n });
|
|
7071
|
-
},
|
|
7080
|
+
}, T = (R) => {
|
|
7072
7081
|
R.preventDefault(), navigator.clipboard.readText().then((I) => {
|
|
7073
7082
|
if (h) {
|
|
7074
7083
|
let E = R.target.textContent.length;
|
|
@@ -7080,16 +7089,16 @@ function fa({
|
|
|
7080
7089
|
});
|
|
7081
7090
|
};
|
|
7082
7091
|
const L = {};
|
|
7083
|
-
L.field = "text",
|
|
7092
|
+
L.field = "text", p && (L.className = p);
|
|
7084
7093
|
const $ = {};
|
|
7085
7094
|
return r && ($.placeholder = r), /* @__PURE__ */ a.jsxs("dl", { ...L, children: [
|
|
7086
7095
|
s && /* @__PURE__ */ a.jsx("dt", { children: s }),
|
|
7087
7096
|
/* @__PURE__ */ a.jsx(
|
|
7088
7097
|
"dd",
|
|
7089
7098
|
{
|
|
7090
|
-
onPaste:
|
|
7091
|
-
onBlur:
|
|
7092
|
-
onInput:
|
|
7099
|
+
onPaste: T,
|
|
7100
|
+
onBlur: j,
|
|
7101
|
+
onInput: y,
|
|
7093
7102
|
contentEditable: l && c ? z.ContentEditable : "false",
|
|
7094
7103
|
...$,
|
|
7095
7104
|
suppressContentEditableWarning: !0,
|
|
@@ -7116,11 +7125,11 @@ function ma({
|
|
|
7116
7125
|
onSave: h,
|
|
7117
7126
|
className: v = ""
|
|
7118
7127
|
}) {
|
|
7119
|
-
let
|
|
7120
|
-
if (!(l && c) && !u || !(l && c) &&
|
|
7121
|
-
let
|
|
7122
|
-
|
|
7123
|
-
},
|
|
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) => {
|
|
7124
7133
|
h && h({ value: I, name: n });
|
|
7125
7134
|
}, L = (I) => {
|
|
7126
7135
|
const E = I.target.getBoundingClientRect(), P = E.left, B = E.top;
|
|
@@ -7130,9 +7139,9 @@ function ma({
|
|
|
7130
7139
|
Zc,
|
|
7131
7140
|
{
|
|
7132
7141
|
positions: { x: P, y: B },
|
|
7133
|
-
onSave:
|
|
7134
|
-
onValue:
|
|
7135
|
-
date:
|
|
7142
|
+
onSave: T,
|
|
7143
|
+
onValue: j,
|
|
7144
|
+
date: g
|
|
7136
7145
|
},
|
|
7137
7146
|
(/* @__PURE__ */ new Date()).getTime()
|
|
7138
7147
|
)
|
|
@@ -7149,7 +7158,7 @@ function ma({
|
|
|
7149
7158
|
}
|
|
7150
7159
|
) : /* @__PURE__ */ a.jsxs("dl", { ...$, children: [
|
|
7151
7160
|
s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "",
|
|
7152
|
-
/* @__PURE__ */ a.jsx("dd", { onClick: L, ref:
|
|
7161
|
+
/* @__PURE__ */ a.jsx("dd", { onClick: L, ref: y, ...R, children: g }),
|
|
7153
7162
|
i ? /* @__PURE__ */ a.jsx("em", { children: i }) : ""
|
|
7154
7163
|
] }) });
|
|
7155
7164
|
}
|
|
@@ -7171,7 +7180,7 @@ const Zc = ({ positions: e, onSave: t, onValue: n, date: r }) => {
|
|
|
7171
7180
|
_ = !0;
|
|
7172
7181
|
}, v = () => {
|
|
7173
7182
|
_ = !1, o = o === "hour" ? "time" : "hour", f.body.current.setAttribute("active", o);
|
|
7174
|
-
},
|
|
7183
|
+
}, p = (R) => {
|
|
7175
7184
|
if (_) {
|
|
7176
7185
|
let E = Math.atan2(
|
|
7177
7186
|
R.pageX - (l.x + 78),
|
|
@@ -7185,7 +7194,7 @@ const Zc = ({ positions: e, onSave: t, onValue: n, date: r }) => {
|
|
|
7185
7194
|
m: H.Number(2, parseInt(String(E / 6), 10))
|
|
7186
7195
|
}, f.timeText.current.textContent = i.m), n(i.h + ":" + i.m);
|
|
7187
7196
|
}
|
|
7188
|
-
},
|
|
7197
|
+
}, g = (R) => {
|
|
7189
7198
|
if (o === "hour")
|
|
7190
7199
|
if (R.deltaY > 0) {
|
|
7191
7200
|
u += R.deltaY;
|
|
@@ -7222,15 +7231,15 @@ const Zc = ({ positions: e, onSave: t, onValue: n, date: r }) => {
|
|
|
7222
7231
|
}
|
|
7223
7232
|
}
|
|
7224
7233
|
n(i.h + ":" + i.m);
|
|
7225
|
-
}, [
|
|
7226
|
-
|
|
7234
|
+
}, [y, j] = m.useState(!0), T = () => {
|
|
7235
|
+
j(!1), t(i.h + ":" + i.m);
|
|
7227
7236
|
}, L = window.innerHeight - e.y + 33 < 320 ? e.y - 312 : e.y + 33, $ = window.innerWidth - e.x < 265 ? e.x - 235 : e.x;
|
|
7228
|
-
return /* @__PURE__ */ a.jsx(a.Fragment, { children:
|
|
7237
|
+
return /* @__PURE__ */ a.jsx(a.Fragment, { children: y ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
7229
7238
|
/* @__PURE__ */ a.jsx(
|
|
7230
7239
|
"div",
|
|
7231
7240
|
{
|
|
7232
7241
|
className: fe.o,
|
|
7233
|
-
onClick: () =>
|
|
7242
|
+
onClick: () => T()
|
|
7234
7243
|
},
|
|
7235
7244
|
(/* @__PURE__ */ new Date()).getTime()
|
|
7236
7245
|
),
|
|
@@ -7240,8 +7249,8 @@ const Zc = ({ positions: e, onSave: t, onValue: n, date: r }) => {
|
|
|
7240
7249
|
className: fe.c,
|
|
7241
7250
|
onMouseDown: h,
|
|
7242
7251
|
onMouseUp: v,
|
|
7243
|
-
onMouseMove:
|
|
7244
|
-
onWheel:
|
|
7252
|
+
onMouseMove: p,
|
|
7253
|
+
onWheel: g,
|
|
7245
7254
|
ref: f.body,
|
|
7246
7255
|
style: { top: L + "px", left: $ + "px" },
|
|
7247
7256
|
children: [
|
|
@@ -7364,34 +7373,34 @@ function ga({
|
|
|
7364
7373
|
max: f = 0,
|
|
7365
7374
|
onSave: h,
|
|
7366
7375
|
className: v = "",
|
|
7367
|
-
separator:
|
|
7376
|
+
separator: p = ","
|
|
7368
7377
|
}) {
|
|
7369
|
-
const [
|
|
7370
|
-
e !== void 0 ? e.split(
|
|
7378
|
+
const [g, y] = m.useState(
|
|
7379
|
+
e !== void 0 ? e.split(p) : []
|
|
7371
7380
|
);
|
|
7372
7381
|
m.useEffect(() => {
|
|
7373
|
-
|
|
7382
|
+
y(e !== void 0 ? e !== void 0 ? e.split(p) : [] : []);
|
|
7374
7383
|
}, [e]);
|
|
7375
|
-
let
|
|
7376
|
-
if (f !== 0 &&
|
|
7384
|
+
let j = () => {
|
|
7385
|
+
if (f !== 0 && g.length >= f)
|
|
7377
7386
|
return Ce.Error("Слишком много");
|
|
7378
|
-
|
|
7379
|
-
},
|
|
7380
|
-
|
|
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 });
|
|
7381
7390
|
}, L = !!(o && (e === "" || e === void 0)), $ = (b) => {
|
|
7382
7391
|
};
|
|
7383
7392
|
if (!(l && c) && !u || !(l && c) && L) return "";
|
|
7384
7393
|
const R = {};
|
|
7385
7394
|
R.field = "group", v && (R.className = v);
|
|
7386
7395
|
const I = (b, S) => {
|
|
7387
|
-
z.Blur(b),
|
|
7396
|
+
z.Blur(b), g[S] = b.target.textContent, h && h({ value: g.join(p), name: n });
|
|
7388
7397
|
};
|
|
7389
7398
|
let E = (b, S) => {
|
|
7390
|
-
|
|
7399
|
+
g[S] = b.target.textContent, t && t({ value: g.join(p), name: n });
|
|
7391
7400
|
}, P = (b) => {
|
|
7392
7401
|
b.key === "Enter" && b.preventDefault();
|
|
7393
7402
|
};
|
|
7394
|
-
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(
|
|
7395
7404
|
"svg",
|
|
7396
7405
|
{
|
|
7397
7406
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7410,9 +7419,9 @@ function ga({
|
|
|
7410
7419
|
return /* @__PURE__ */ a.jsxs("dl", { ...R, children: [
|
|
7411
7420
|
/* @__PURE__ */ a.jsxs("dt", { children: [
|
|
7412
7421
|
s,
|
|
7413
|
-
/* @__PURE__ */ a.jsx(B, { data:
|
|
7422
|
+
/* @__PURE__ */ a.jsx(B, { data: g })
|
|
7414
7423
|
] }),
|
|
7415
|
-
/* @__PURE__ */ a.jsx("dd", { children:
|
|
7424
|
+
/* @__PURE__ */ a.jsx("dd", { children: g.map((b, S) => /* @__PURE__ */ a.jsxs("li", { className: "field_group_item", children: [
|
|
7416
7425
|
/* @__PURE__ */ a.jsx(
|
|
7417
7426
|
"span",
|
|
7418
7427
|
{
|
|
@@ -7425,14 +7434,14 @@ function ga({
|
|
|
7425
7434
|
onKeyDown: P,
|
|
7426
7435
|
onBlur: (C) => I(C, S),
|
|
7427
7436
|
suppressContentEditableWarning: !0,
|
|
7428
|
-
children:
|
|
7437
|
+
children: g[S]
|
|
7429
7438
|
}
|
|
7430
7439
|
),
|
|
7431
7440
|
/* @__PURE__ */ a.jsx(
|
|
7432
7441
|
"i",
|
|
7433
7442
|
{
|
|
7434
7443
|
onClick: () => {
|
|
7435
|
-
|
|
7444
|
+
T(S);
|
|
7436
7445
|
},
|
|
7437
7446
|
children: /* @__PURE__ */ a.jsxs(
|
|
7438
7447
|
"svg",
|
|
@@ -7473,27 +7482,27 @@ function xa({
|
|
|
7473
7482
|
modal: f,
|
|
7474
7483
|
module: h,
|
|
7475
7484
|
options: v,
|
|
7476
|
-
className:
|
|
7485
|
+
className: p
|
|
7477
7486
|
}) {
|
|
7478
|
-
const [
|
|
7487
|
+
const [g, y] = m.useState(Wc(e)), j = ($) => {
|
|
7479
7488
|
if (!(l && _) || !f) return;
|
|
7480
7489
|
let R = f.split(".");
|
|
7481
7490
|
_t.Open(R[0], R[1], {
|
|
7482
7491
|
callback: (I) => {
|
|
7483
|
-
t && t({ value: I, name: n }),
|
|
7492
|
+
t && t({ value: I, name: n }), y(I);
|
|
7484
7493
|
},
|
|
7485
7494
|
onValue: t,
|
|
7486
7495
|
options: v,
|
|
7487
7496
|
name: n,
|
|
7488
|
-
value:
|
|
7497
|
+
value: g
|
|
7489
7498
|
});
|
|
7490
|
-
},
|
|
7491
|
-
|
|
7499
|
+
}, T = {};
|
|
7500
|
+
T.field = "group", p && (T.className = p);
|
|
7492
7501
|
const L = {};
|
|
7493
|
-
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: [
|
|
7494
7503
|
/* @__PURE__ */ a.jsxs("dt", { children: [
|
|
7495
7504
|
s,
|
|
7496
|
-
/* @__PURE__ */ a.jsx("i", { onClick:
|
|
7505
|
+
/* @__PURE__ */ a.jsx("i", { onClick: j, children: /* @__PURE__ */ a.jsxs(
|
|
7497
7506
|
"svg",
|
|
7498
7507
|
{
|
|
7499
7508
|
width: "20",
|
|
@@ -7518,7 +7527,7 @@ function xa({
|
|
|
7518
7527
|
onClick: open,
|
|
7519
7528
|
edit: (l && _) + "",
|
|
7520
7529
|
"data-after": u,
|
|
7521
|
-
children: Object.keys(
|
|
7530
|
+
children: Object.keys(g).map(($) => {
|
|
7522
7531
|
var R;
|
|
7523
7532
|
return /* @__PURE__ */ a.jsx("div", { className: "field_group_item", children: (R = v[$]) == null ? void 0 : R.label }, $);
|
|
7524
7533
|
})
|
|
@@ -7543,12 +7552,12 @@ function Sn({
|
|
|
7543
7552
|
type: f,
|
|
7544
7553
|
view: h,
|
|
7545
7554
|
onBlur: v,
|
|
7546
|
-
onSave:
|
|
7547
|
-
className:
|
|
7555
|
+
onSave: p,
|
|
7556
|
+
className: g = ""
|
|
7548
7557
|
}) {
|
|
7549
|
-
const
|
|
7550
|
-
let
|
|
7551
|
-
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 "";
|
|
7552
7561
|
const $ = async (I) => {
|
|
7553
7562
|
if (f) {
|
|
7554
7563
|
let E = Hc(I, f, e || "default");
|
|
@@ -7556,7 +7565,7 @@ function Sn({
|
|
|
7556
7565
|
} else
|
|
7557
7566
|
t == null || t({ name: n, value: I }), L(URL.createObjectURL(I));
|
|
7558
7567
|
}, R = {};
|
|
7559
|
-
return R.field = "file",
|
|
7568
|
+
return R.field = "file", g && (R.className = g), /* @__PURE__ */ a.jsxs("dl", { ...R, children: [
|
|
7560
7569
|
s && /* @__PURE__ */ a.jsxs("dt", { children: [
|
|
7561
7570
|
s,
|
|
7562
7571
|
" "
|
|
@@ -7565,7 +7574,7 @@ function Sn({
|
|
|
7565
7574
|
/* @__PURE__ */ a.jsx(
|
|
7566
7575
|
"input",
|
|
7567
7576
|
{
|
|
7568
|
-
id:
|
|
7577
|
+
id: y,
|
|
7569
7578
|
type: "file",
|
|
7570
7579
|
multiple: !0,
|
|
7571
7580
|
onChange: (I) => {
|
|
@@ -7573,8 +7582,8 @@ function Sn({
|
|
|
7573
7582
|
}
|
|
7574
7583
|
}
|
|
7575
7584
|
),
|
|
7576
|
-
/* @__PURE__ */ a.jsx("label", { htmlFor:
|
|
7577
|
-
/* @__PURE__ */ a.jsx("img", { src:
|
|
7585
|
+
/* @__PURE__ */ a.jsx("label", { htmlFor: y }),
|
|
7586
|
+
/* @__PURE__ */ a.jsx("img", { src: T })
|
|
7578
7587
|
] }),
|
|
7579
7588
|
o && /* @__PURE__ */ a.jsx("em", { children: o })
|
|
7580
7589
|
] });
|
|
@@ -7714,36 +7723,36 @@ function Qc({
|
|
|
7714
7723
|
className: v = ""
|
|
7715
7724
|
}) {
|
|
7716
7725
|
_ = _ !== void 0 ? _ : !0, u = u !== void 0 ? u : !0, c = !!(c && (e === "" || e === void 0)) && !(_ && u), m.useRef(null);
|
|
7717
|
-
let
|
|
7726
|
+
let g = s, y = !0, j = 0, T = (C, N) => {
|
|
7718
7727
|
let W = document.createRange(), ee = window.getSelection();
|
|
7719
|
-
W.setStart(
|
|
7728
|
+
W.setStart(N.childNodes[0], C), W.collapse(!0), ee.removeAllRanges(), ee.addRange(W), N.focus();
|
|
7720
7729
|
}, L = (C) => {
|
|
7721
|
-
C.preventDefault(), navigator.clipboard.readText().then((
|
|
7722
|
-
window.document.execCommand("insertText", !1,
|
|
7723
|
-
}).catch((
|
|
7730
|
+
C.preventDefault(), navigator.clipboard.readText().then((N) => {
|
|
7731
|
+
window.document.execCommand("insertText", !1, N);
|
|
7732
|
+
}).catch((N) => {
|
|
7724
7733
|
});
|
|
7725
7734
|
}, $ = (C) => {
|
|
7726
|
-
let
|
|
7727
|
-
ee === "" && (
|
|
7735
|
+
let N = 0, W = "", ee = C.replace(/\D/g, "");
|
|
7736
|
+
ee === "" && (y = !0);
|
|
7728
7737
|
let oe = ee.split(""), ve = "";
|
|
7729
7738
|
oe.forEach((Qe) => {
|
|
7730
|
-
|
|
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 = ""));
|
|
7731
7740
|
});
|
|
7732
|
-
let Ie =
|
|
7733
|
-
return Ie.length >= ee.length && (ee = Ie), { q:
|
|
7734
|
-
return ee.charAt(
|
|
7735
|
-
}), 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 };
|
|
7736
7745
|
}, R = (C) => {
|
|
7737
7746
|
C.preventDefault(), navigator.clipboard.writeText(C.target.textContent.replace(/\D/g, "")).then(
|
|
7738
7747
|
function() {
|
|
7739
7748
|
Ce.Copy("Данные в буфер обмене");
|
|
7740
7749
|
},
|
|
7741
|
-
function(
|
|
7750
|
+
function(N) {
|
|
7742
7751
|
}
|
|
7743
7752
|
);
|
|
7744
7753
|
}, I = $(e), E = (C) => {
|
|
7745
|
-
let
|
|
7746
|
-
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 });
|
|
7747
7756
|
}, P = (C) => {
|
|
7748
7757
|
C.key === "Enter" && C.preventDefault();
|
|
7749
7758
|
};
|
|
@@ -8358,7 +8367,7 @@ export {
|
|
|
8358
8367
|
Ud as Setting,
|
|
8359
8368
|
Be as Sistym,
|
|
8360
8369
|
ke as Socket,
|
|
8361
|
-
|
|
8370
|
+
J as Store,
|
|
8362
8371
|
__ as Switch,
|
|
8363
8372
|
Ad as Tabs,
|
|
8364
8373
|
c_ as Test,
|