rbro-tat-uds 1.6.29 → 1.6.31
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/components/SidebarItem/SidebarItem.d.ts +1 -0
- package/dist/index.cjs.js +83 -61
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +485 -458
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as e from "react";
|
2
|
-
import f1, { useRef as Q, useContext as S9, useDebugValue as O3, createElement as D9, Children as T1, useState as T,
|
2
|
+
import f1, { useRef as Q, useContext as S9, useDebugValue as O3, createElement as D9, Children as T1, useState as T, useMemo as l1, useEffect as e1, useCallback as C1 } from "react";
|
3
3
|
import { createPortal as P9 } from "react-dom";
|
4
4
|
const l = {
|
5
5
|
gray_30: "#F9F9F9",
|
@@ -179,47 +179,47 @@ function O9() {
|
|
179
179
|
function V(f) {
|
180
180
|
if (f === null || typeof f != "object")
|
181
181
|
return null;
|
182
|
-
var
|
183
|
-
return typeof
|
182
|
+
var A = g && f[g] || f[E];
|
183
|
+
return typeof A == "function" ? A : null;
|
184
184
|
}
|
185
185
|
var b = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
186
186
|
function R(f) {
|
187
187
|
{
|
188
|
-
for (var
|
188
|
+
for (var A = arguments.length, z = new Array(A > 1 ? A - 1 : 0), I = 1; I < A; I++)
|
189
189
|
z[I - 1] = arguments[I];
|
190
190
|
$("error", f, z);
|
191
191
|
}
|
192
192
|
}
|
193
|
-
function $(f,
|
193
|
+
function $(f, A, z) {
|
194
194
|
{
|
195
|
-
var I = b.ReactDebugCurrentFrame,
|
196
|
-
|
195
|
+
var I = b.ReactDebugCurrentFrame, L1 = I.getStackAddendum();
|
196
|
+
L1 !== "" && (A += "%s", z = z.concat([L1]));
|
197
197
|
var r1 = z.map(function(J) {
|
198
198
|
return String(J);
|
199
199
|
});
|
200
|
-
r1.unshift("Warning: " +
|
200
|
+
r1.unshift("Warning: " + A), Function.prototype.apply.call(console[f], console, r1);
|
201
201
|
}
|
202
202
|
}
|
203
|
-
var v = !1, _ = !1, F = !1,
|
203
|
+
var v = !1, _ = !1, F = !1, Z = !1, k = !1, j;
|
204
204
|
j = Symbol.for("react.module.reference");
|
205
205
|
function P(f) {
|
206
|
-
return !!(typeof f == "string" || typeof f == "function" || f === n || f === c || k || f === r || f === h || f === u ||
|
206
|
+
return !!(typeof f == "string" || typeof f == "function" || f === n || f === c || k || f === r || f === h || f === u || Z || f === M || v || _ || F || typeof f == "object" && f !== null && (f.$$typeof === m || f.$$typeof === p || f.$$typeof === o || f.$$typeof === C || f.$$typeof === s || // This needs to include all possible module reference object
|
207
207
|
// types supported by any Flight configuration anywhere since
|
208
208
|
// we don't know which Flight build this will end up being used
|
209
209
|
// with.
|
210
210
|
f.$$typeof === j || f.getModuleId !== void 0));
|
211
211
|
}
|
212
|
-
function x(f,
|
212
|
+
function x(f, A, z) {
|
213
213
|
var I = f.displayName;
|
214
214
|
if (I)
|
215
215
|
return I;
|
216
|
-
var
|
217
|
-
return
|
216
|
+
var L1 = A.displayName || A.name || "";
|
217
|
+
return L1 !== "" ? z + "(" + L1 + ")" : z;
|
218
218
|
}
|
219
|
-
function
|
219
|
+
function D(f) {
|
220
220
|
return f.displayName || "Context";
|
221
221
|
}
|
222
|
-
function
|
222
|
+
function w(f) {
|
223
223
|
if (f == null)
|
224
224
|
return null;
|
225
225
|
if (typeof f.tag == "number" && R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof f == "function")
|
@@ -243,20 +243,20 @@ function O9() {
|
|
243
243
|
if (typeof f == "object")
|
244
244
|
switch (f.$$typeof) {
|
245
245
|
case C:
|
246
|
-
var
|
247
|
-
return A
|
246
|
+
var A = f;
|
247
|
+
return D(A) + ".Consumer";
|
248
248
|
case o:
|
249
249
|
var z = f;
|
250
|
-
return
|
250
|
+
return D(z._context) + ".Provider";
|
251
251
|
case s:
|
252
252
|
return x(f, f.render, "ForwardRef");
|
253
253
|
case p:
|
254
254
|
var I = f.displayName || null;
|
255
|
-
return I !== null ? I :
|
255
|
+
return I !== null ? I : w(f.type) || "Memo";
|
256
256
|
case m: {
|
257
|
-
var
|
257
|
+
var L1 = f, r1 = L1._payload, J = L1._init;
|
258
258
|
try {
|
259
|
-
return
|
259
|
+
return w(J(r1));
|
260
260
|
} catch {
|
261
261
|
return null;
|
262
262
|
}
|
@@ -264,14 +264,14 @@ function O9() {
|
|
264
264
|
}
|
265
265
|
return null;
|
266
266
|
}
|
267
|
-
var y = Object.assign, H = 0,
|
267
|
+
var y = Object.assign, H = 0, S, W, G, N, a1, c1, t1;
|
268
268
|
function X() {
|
269
269
|
}
|
270
270
|
X.__reactDisabledLog = !0;
|
271
271
|
function K() {
|
272
272
|
{
|
273
273
|
if (H === 0) {
|
274
|
-
|
274
|
+
S = console.log, W = console.info, G = console.warn, N = console.error, a1 = console.group, c1 = console.groupCollapsed, t1 = console.groupEnd;
|
275
275
|
var f = {
|
276
276
|
configurable: !0,
|
277
277
|
enumerable: !0,
|
@@ -301,7 +301,7 @@ function O9() {
|
|
301
301
|
};
|
302
302
|
Object.defineProperties(console, {
|
303
303
|
log: y({}, f, {
|
304
|
-
value:
|
304
|
+
value: S
|
305
305
|
}),
|
306
306
|
info: y({}, f, {
|
307
307
|
value: W
|
@@ -327,13 +327,13 @@ function O9() {
|
|
327
327
|
}
|
328
328
|
}
|
329
329
|
var n1 = b.ReactCurrentDispatcher, s1;
|
330
|
-
function d1(f,
|
330
|
+
function d1(f, A, z) {
|
331
331
|
{
|
332
332
|
if (s1 === void 0)
|
333
333
|
try {
|
334
334
|
throw Error();
|
335
|
-
} catch (
|
336
|
-
var I =
|
335
|
+
} catch (L1) {
|
336
|
+
var I = L1.stack.trim().match(/\n( *(at )?)/);
|
337
337
|
s1 = I && I[1] || "";
|
338
338
|
}
|
339
339
|
return `
|
@@ -345,7 +345,7 @@ function O9() {
|
|
345
345
|
var m1 = typeof WeakMap == "function" ? WeakMap : Map;
|
346
346
|
_1 = new m1();
|
347
347
|
}
|
348
|
-
function V1(f,
|
348
|
+
function V1(f, A) {
|
349
349
|
if (!f || E1)
|
350
350
|
return "";
|
351
351
|
{
|
@@ -355,12 +355,12 @@ function O9() {
|
|
355
355
|
}
|
356
356
|
var I;
|
357
357
|
E1 = !0;
|
358
|
-
var
|
358
|
+
var L1 = Error.prepareStackTrace;
|
359
359
|
Error.prepareStackTrace = void 0;
|
360
360
|
var r1;
|
361
361
|
r1 = n1.current, n1.current = null, K();
|
362
362
|
try {
|
363
|
-
if (
|
363
|
+
if (A) {
|
364
364
|
var J = function() {
|
365
365
|
throw Error();
|
366
366
|
};
|
@@ -411,19 +411,19 @@ function O9() {
|
|
411
411
|
}
|
412
412
|
}
|
413
413
|
} finally {
|
414
|
-
E1 = !1, n1.current = r1, q(), Error.prepareStackTrace =
|
414
|
+
E1 = !1, n1.current = r1, q(), Error.prepareStackTrace = L1;
|
415
415
|
}
|
416
416
|
var l2 = f ? f.displayName || f.name : "", z3 = l2 ? d1(l2) : "";
|
417
417
|
return typeof f == "function" && _1.set(f, z3), z3;
|
418
418
|
}
|
419
|
-
function T2(f,
|
419
|
+
function T2(f, A, z) {
|
420
420
|
return V1(f, !1);
|
421
421
|
}
|
422
422
|
function I2(f) {
|
423
|
-
var
|
424
|
-
return !!(
|
423
|
+
var A = f.prototype;
|
424
|
+
return !!(A && A.isReactComponent);
|
425
425
|
}
|
426
|
-
function J1(f,
|
426
|
+
function J1(f, A, z) {
|
427
427
|
if (f == null)
|
428
428
|
return "";
|
429
429
|
if (typeof f == "function")
|
@@ -441,11 +441,11 @@ function O9() {
|
|
441
441
|
case s:
|
442
442
|
return T2(f.render);
|
443
443
|
case p:
|
444
|
-
return J1(f.type,
|
444
|
+
return J1(f.type, A, z);
|
445
445
|
case m: {
|
446
|
-
var I = f,
|
446
|
+
var I = f, L1 = I._payload, r1 = I._init;
|
447
447
|
try {
|
448
|
-
return J1(r1(
|
448
|
+
return J1(r1(L1), A, z);
|
449
449
|
} catch {
|
450
450
|
}
|
451
451
|
}
|
@@ -455,12 +455,12 @@ function O9() {
|
|
455
455
|
var K1 = Object.prototype.hasOwnProperty, I1 = {}, Q1 = b.ReactDebugCurrentFrame;
|
456
456
|
function e2(f) {
|
457
457
|
if (f) {
|
458
|
-
var
|
458
|
+
var A = f._owner, z = J1(f.type, f._source, A ? A.type : null);
|
459
459
|
Q1.setExtraStackFrame(z);
|
460
460
|
} else
|
461
461
|
Q1.setExtraStackFrame(null);
|
462
462
|
}
|
463
|
-
function m9(f,
|
463
|
+
function m9(f, A, z, I, L1) {
|
464
464
|
{
|
465
465
|
var r1 = Function.call.bind(K1);
|
466
466
|
for (var J in f)
|
@@ -471,11 +471,11 @@ function O9() {
|
|
471
471
|
var v1 = Error((I || "React class") + ": " + z + " type `" + J + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof f[J] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
472
472
|
throw v1.name = "Invariant Violation", v1;
|
473
473
|
}
|
474
|
-
U = f[J](
|
474
|
+
U = f[J](A, J, I, z, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
475
475
|
} catch (p1) {
|
476
476
|
U = p1;
|
477
477
|
}
|
478
|
-
U && !(U instanceof Error) && (e2(
|
478
|
+
U && !(U instanceof Error) && (e2(L1), R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", I || "React class", z, J, typeof U), e2(null)), U instanceof Error && !(U.message in I1) && (I1[U.message] = !0, e2(L1), R("Failed %s type: %s", z, U.message), e2(null));
|
479
479
|
}
|
480
480
|
}
|
481
481
|
}
|
@@ -485,7 +485,7 @@ function O9() {
|
|
485
485
|
}
|
486
486
|
function E9(f) {
|
487
487
|
{
|
488
|
-
var
|
488
|
+
var A = typeof Symbol == "function" && Symbol.toStringTag, z = A && f[Symbol.toStringTag] || f.constructor.name || "Object";
|
489
489
|
return z;
|
490
490
|
}
|
491
491
|
}
|
@@ -512,30 +512,30 @@ function O9() {
|
|
512
512
|
G2 = {};
|
513
513
|
function v9(f) {
|
514
514
|
if (K1.call(f, "ref")) {
|
515
|
-
var
|
516
|
-
if (
|
515
|
+
var A = Object.getOwnPropertyDescriptor(f, "ref").get;
|
516
|
+
if (A && A.isReactWarning)
|
517
517
|
return !1;
|
518
518
|
}
|
519
519
|
return f.ref !== void 0;
|
520
520
|
}
|
521
521
|
function M9(f) {
|
522
522
|
if (K1.call(f, "key")) {
|
523
|
-
var
|
524
|
-
if (
|
523
|
+
var A = Object.getOwnPropertyDescriptor(f, "key").get;
|
524
|
+
if (A && A.isReactWarning)
|
525
525
|
return !1;
|
526
526
|
}
|
527
527
|
return f.key !== void 0;
|
528
528
|
}
|
529
|
-
function _9(f,
|
530
|
-
if (typeof f.ref == "string" && p2.current &&
|
531
|
-
var z =
|
532
|
-
G2[z] || (R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',
|
529
|
+
function _9(f, A) {
|
530
|
+
if (typeof f.ref == "string" && p2.current && A && p2.current.stateNode !== A) {
|
531
|
+
var z = w(p2.current.type);
|
532
|
+
G2[z] || (R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', w(p2.current.type), f.ref), G2[z] = !0);
|
533
533
|
}
|
534
534
|
}
|
535
|
-
function y9(f,
|
535
|
+
function y9(f, A) {
|
536
536
|
{
|
537
537
|
var z = function() {
|
538
|
-
F3 || (F3 = !0, R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
538
|
+
F3 || (F3 = !0, R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", A));
|
539
539
|
};
|
540
540
|
z.isReactWarning = !0, Object.defineProperty(f, "key", {
|
541
541
|
get: z,
|
@@ -543,10 +543,10 @@ function O9() {
|
|
543
543
|
});
|
544
544
|
}
|
545
545
|
}
|
546
|
-
function w9(f,
|
546
|
+
function w9(f, A) {
|
547
547
|
{
|
548
548
|
var z = function() {
|
549
|
-
H3 || (H3 = !0, R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
549
|
+
H3 || (H3 = !0, R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", A));
|
550
550
|
};
|
551
551
|
z.isReactWarning = !0, Object.defineProperty(f, "ref", {
|
552
552
|
get: z,
|
@@ -554,13 +554,13 @@ function O9() {
|
|
554
554
|
});
|
555
555
|
}
|
556
556
|
}
|
557
|
-
var Z9 = function(f,
|
557
|
+
var Z9 = function(f, A, z, I, L1, r1, J) {
|
558
558
|
var U = {
|
559
559
|
// This tag allows us to uniquely identify this as a React Element
|
560
560
|
$$typeof: i,
|
561
561
|
// Built-in properties that belong on the element
|
562
562
|
type: f,
|
563
|
-
key:
|
563
|
+
key: A,
|
564
564
|
ref: z,
|
565
565
|
props: J,
|
566
566
|
// Record the component responsible for creating this element.
|
@@ -580,15 +580,15 @@ function O9() {
|
|
580
580
|
configurable: !1,
|
581
581
|
enumerable: !1,
|
582
582
|
writable: !1,
|
583
|
-
value:
|
583
|
+
value: L1
|
584
584
|
}), Object.freeze && (Object.freeze(U.props), Object.freeze(U)), U;
|
585
585
|
};
|
586
|
-
function b9(f,
|
586
|
+
function b9(f, A, z, I, L1) {
|
587
587
|
{
|
588
588
|
var r1, J = {}, U = null, v1 = null;
|
589
|
-
z !== void 0 && (B3(z), U = "" + z), M9(
|
590
|
-
for (r1 in
|
591
|
-
K1.call(
|
589
|
+
z !== void 0 && (B3(z), U = "" + z), M9(A) && (B3(A.key), U = "" + A.key), v9(A) && (v1 = A.ref, _9(A, L1));
|
590
|
+
for (r1 in A)
|
591
|
+
K1.call(A, r1) && !V9.hasOwnProperty(r1) && (J[r1] = A[r1]);
|
592
592
|
if (f && f.defaultProps) {
|
593
593
|
var p1 = f.defaultProps;
|
594
594
|
for (r1 in p1)
|
@@ -598,13 +598,13 @@ function O9() {
|
|
598
598
|
var h1 = typeof f == "function" ? f.displayName || f.name || "Unknown" : f;
|
599
599
|
U && y9(J, h1), v1 && w9(J, h1);
|
600
600
|
}
|
601
|
-
return Z9(f, U, v1,
|
601
|
+
return Z9(f, U, v1, L1, I, p2.current, J);
|
602
602
|
}
|
603
603
|
}
|
604
604
|
var Y2 = b.ReactCurrentOwner, j3 = b.ReactDebugCurrentFrame;
|
605
605
|
function t2(f) {
|
606
606
|
if (f) {
|
607
|
-
var
|
607
|
+
var A = f._owner, z = J1(f.type, f._source, A ? A.type : null);
|
608
608
|
j3.setExtraStackFrame(z);
|
609
609
|
} else
|
610
610
|
j3.setExtraStackFrame(null);
|
@@ -617,7 +617,7 @@ function O9() {
|
|
617
617
|
function k3() {
|
618
618
|
{
|
619
619
|
if (Y2.current) {
|
620
|
-
var f =
|
620
|
+
var f = w(Y2.current.type);
|
621
621
|
if (f)
|
622
622
|
return `
|
623
623
|
|
@@ -632,77 +632,77 @@ Check the render method of \`` + f + "`.";
|
|
632
632
|
var A3 = {};
|
633
633
|
function R9(f) {
|
634
634
|
{
|
635
|
-
var
|
636
|
-
if (!
|
635
|
+
var A = k3();
|
636
|
+
if (!A) {
|
637
637
|
var z = typeof f == "string" ? f : f.displayName || f.name;
|
638
|
-
z && (
|
638
|
+
z && (A = `
|
639
639
|
|
640
640
|
Check the top-level render call using <` + z + ">.");
|
641
641
|
}
|
642
|
-
return
|
642
|
+
return A;
|
643
643
|
}
|
644
644
|
}
|
645
|
-
function S3(f,
|
645
|
+
function S3(f, A) {
|
646
646
|
{
|
647
647
|
if (!f._store || f._store.validated || f.key != null)
|
648
648
|
return;
|
649
649
|
f._store.validated = !0;
|
650
|
-
var z = R9(
|
650
|
+
var z = R9(A);
|
651
651
|
if (A3[z])
|
652
652
|
return;
|
653
653
|
A3[z] = !0;
|
654
654
|
var I = "";
|
655
|
-
f && f._owner && f._owner !== Y2.current && (I = " It was passed a child from " +
|
655
|
+
f && f._owner && f._owner !== Y2.current && (I = " It was passed a child from " + w(f._owner.type) + "."), t2(f), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', z, I), t2(null);
|
656
656
|
}
|
657
657
|
}
|
658
|
-
function D3(f,
|
658
|
+
function D3(f, A) {
|
659
659
|
{
|
660
660
|
if (typeof f != "object")
|
661
661
|
return;
|
662
662
|
if (W2(f))
|
663
663
|
for (var z = 0; z < f.length; z++) {
|
664
664
|
var I = f[z];
|
665
|
-
U2(I) && S3(I,
|
665
|
+
U2(I) && S3(I, A);
|
666
666
|
}
|
667
667
|
else if (U2(f))
|
668
668
|
f._store && (f._store.validated = !0);
|
669
669
|
else if (f) {
|
670
|
-
var
|
671
|
-
if (typeof
|
672
|
-
for (var r1 =
|
673
|
-
U2(J.value) && S3(J.value,
|
670
|
+
var L1 = V(f);
|
671
|
+
if (typeof L1 == "function" && L1 !== f.entries)
|
672
|
+
for (var r1 = L1.call(f), J; !(J = r1.next()).done; )
|
673
|
+
U2(J.value) && S3(J.value, A);
|
674
674
|
}
|
675
675
|
}
|
676
676
|
}
|
677
677
|
function B9(f) {
|
678
678
|
{
|
679
|
-
var
|
680
|
-
if (
|
679
|
+
var A = f.type;
|
680
|
+
if (A == null || typeof A == "string")
|
681
681
|
return;
|
682
682
|
var z;
|
683
|
-
if (typeof
|
684
|
-
z =
|
685
|
-
else if (typeof
|
683
|
+
if (typeof A == "function")
|
684
|
+
z = A.propTypes;
|
685
|
+
else if (typeof A == "object" && (A.$$typeof === s || // Note: Memo only checks outer props here.
|
686
686
|
// Inner props are checked in the reconciler.
|
687
|
-
|
688
|
-
z =
|
687
|
+
A.$$typeof === p))
|
688
|
+
z = A.propTypes;
|
689
689
|
else
|
690
690
|
return;
|
691
691
|
if (z) {
|
692
|
-
var I =
|
692
|
+
var I = w(A);
|
693
693
|
m9(z, f.props, "prop", I, f);
|
694
|
-
} else if (
|
694
|
+
} else if (A.PropTypes !== void 0 && !q2) {
|
695
695
|
q2 = !0;
|
696
|
-
var
|
697
|
-
R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
696
|
+
var L1 = w(A);
|
697
|
+
R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", L1 || "Unknown");
|
698
698
|
}
|
699
|
-
typeof
|
699
|
+
typeof A.getDefaultProps == "function" && !A.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
700
700
|
}
|
701
701
|
}
|
702
702
|
function F9(f) {
|
703
703
|
{
|
704
|
-
for (var
|
705
|
-
var I =
|
704
|
+
for (var A = Object.keys(f.props), z = 0; z < A.length; z++) {
|
705
|
+
var I = A[z];
|
706
706
|
if (I !== "children" && I !== "key") {
|
707
707
|
t2(f), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", I), t2(null);
|
708
708
|
break;
|
@@ -711,7 +711,7 @@ Check the top-level render call using <` + z + ">.");
|
|
711
711
|
f.ref !== null && (t2(f), R("Invalid attribute `ref` supplied to `React.Fragment`."), t2(null));
|
712
712
|
}
|
713
713
|
}
|
714
|
-
function P3(f,
|
714
|
+
function P3(f, A, z, I, L1, r1) {
|
715
715
|
{
|
716
716
|
var J = P(f);
|
717
717
|
if (!J) {
|
@@ -720,13 +720,13 @@ Check the top-level render call using <` + z + ">.");
|
|
720
720
|
var v1 = $9();
|
721
721
|
v1 ? U += v1 : U += k3();
|
722
722
|
var p1;
|
723
|
-
f === null ? p1 = "null" : W2(f) ? p1 = "array" : f !== void 0 && f.$$typeof === i ? (p1 = "<" + (
|
723
|
+
f === null ? p1 = "null" : W2(f) ? p1 = "array" : f !== void 0 && f.$$typeof === i ? (p1 = "<" + (w(f.type) || "Unknown") + " />", U = " Did you accidentally export a JSX literal instead of a component?") : p1 = typeof f, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", p1, U);
|
724
724
|
}
|
725
|
-
var h1 = b9(f,
|
725
|
+
var h1 = b9(f, A, z, L1, r1);
|
726
726
|
if (h1 == null)
|
727
727
|
return h1;
|
728
728
|
if (J) {
|
729
|
-
var Z1 =
|
729
|
+
var Z1 = A.children;
|
730
730
|
if (Z1 !== void 0)
|
731
731
|
if (I)
|
732
732
|
if (W2(Z1)) {
|
@@ -741,11 +741,11 @@ Check the top-level render call using <` + z + ">.");
|
|
741
741
|
return f === n ? F9(h1) : B9(h1), h1;
|
742
742
|
}
|
743
743
|
}
|
744
|
-
function H9(f,
|
745
|
-
return P3(f,
|
744
|
+
function H9(f, A, z) {
|
745
|
+
return P3(f, A, z, !0);
|
746
746
|
}
|
747
|
-
function j9(f,
|
748
|
-
return P3(f,
|
747
|
+
function j9(f, A, z) {
|
748
|
+
return P3(f, A, z, !1);
|
749
749
|
}
|
750
750
|
var k9 = j9, A9 = H9;
|
751
751
|
h2.Fragment = n, h2.jsx = k9, h2.jsxs = A9;
|
@@ -777,7 +777,7 @@ var T9 = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
|
|
777
777
|
return T9.test(t) || t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && t.charCodeAt(2) < 91;
|
778
778
|
}
|
779
779
|
/* Z+1 */
|
780
|
-
), o1 = "-ms-", m2 = "-moz-",
|
780
|
+
), o1 = "-ms-", m2 = "-moz-", i1 = "-webkit-", $6 = "comm", S2 = "rule", x3 = "decl", W9 = "@import", R6 = "@keyframes", G9 = "@layer", B6 = Math.abs, V3 = String.fromCharCode, r3 = Object.assign;
|
781
781
|
function Y9(t, i) {
|
782
782
|
return g1(t, 0) ^ 45 ? (((i << 2 ^ g1(t, 0)) << 2 ^ g1(t, 1)) << 2 ^ g1(t, 2)) << 2 ^ g1(t, 3) : 0;
|
783
783
|
}
|
@@ -930,26 +930,26 @@ function L5(t) {
|
|
930
930
|
return K9(Z2("", null, null, null, [""], t = J9(t), 0, [0], t));
|
931
931
|
}
|
932
932
|
function Z2(t, i, a, n, r, c, o, C, s) {
|
933
|
-
for (var h = 0, u = 0, p = o, m = 0, M = 0, g = 0, E = 1, V = 1, b = 1, R = 0, $ = "", v = r, _ = c, F = n,
|
933
|
+
for (var h = 0, u = 0, p = o, m = 0, M = 0, g = 0, E = 1, V = 1, b = 1, R = 0, $ = "", v = r, _ = c, F = n, Z = $; V; )
|
934
934
|
switch (g = R, R = B1()) {
|
935
935
|
case 40:
|
936
|
-
if (g != 108 && g1(
|
937
|
-
y2(
|
936
|
+
if (g != 108 && g1(Z, p - 1) == 58) {
|
937
|
+
y2(Z += Y(X2(R), "&", "&\f"), "&\f", B6(h ? C[h - 1] : 0)) != -1 && (b = -1);
|
938
938
|
break;
|
939
939
|
}
|
940
940
|
case 34:
|
941
941
|
case 39:
|
942
942
|
case 91:
|
943
|
-
|
943
|
+
Z += X2(R);
|
944
944
|
break;
|
945
945
|
case 9:
|
946
946
|
case 10:
|
947
947
|
case 13:
|
948
948
|
case 32:
|
949
|
-
|
949
|
+
Z += Q9(g);
|
950
950
|
break;
|
951
951
|
case 92:
|
952
|
-
|
952
|
+
Z += e5(w2() - 1, 7);
|
953
953
|
continue;
|
954
954
|
case 47:
|
955
955
|
switch (Y1()) {
|
@@ -958,11 +958,11 @@ function Z2(t, i, a, n, r, c, o, C, s) {
|
|
958
958
|
u2(i5(t5(B1(), w2()), i, a, s), s);
|
959
959
|
break;
|
960
960
|
default:
|
961
|
-
|
961
|
+
Z += "/";
|
962
962
|
}
|
963
963
|
break;
|
964
964
|
case 123 * E:
|
965
|
-
C[h++] = H1(
|
965
|
+
C[h++] = H1(Z) * b;
|
966
966
|
case 125 * E:
|
967
967
|
case 59:
|
968
968
|
case 0:
|
@@ -971,16 +971,16 @@ function Z2(t, i, a, n, r, c, o, C, s) {
|
|
971
971
|
case 125:
|
972
972
|
V = 0;
|
973
973
|
case 59 + u:
|
974
|
-
b == -1 && (
|
974
|
+
b == -1 && (Z = Y(Z, /\f/g, "")), M > 0 && H1(Z) - p && u2(M > 32 ? G3(Z + ";", n, a, p - 1, s) : G3(Y(Z, " ", "") + ";", n, a, p - 2, s), s);
|
975
975
|
break;
|
976
976
|
case 59:
|
977
|
-
|
977
|
+
Z += ";";
|
978
978
|
default:
|
979
|
-
if (u2(F = W3(
|
979
|
+
if (u2(F = W3(Z, i, a, h, u, r, C, $, v = [], _ = [], p, c), c), R === 123)
|
980
980
|
if (u === 0)
|
981
|
-
Z2(
|
981
|
+
Z2(Z, i, F, F, v, c, p, C, _);
|
982
982
|
else
|
983
|
-
switch (m === 99 && g1(
|
983
|
+
switch (m === 99 && g1(Z, 3) === 110 ? 100 : m) {
|
984
984
|
case 100:
|
985
985
|
case 108:
|
986
986
|
case 109:
|
@@ -988,13 +988,13 @@ function Z2(t, i, a, n, r, c, o, C, s) {
|
|
988
988
|
Z2(t, F, F, n && u2(W3(t, F, F, 0, 0, r, C, $, r, v = [], p, _), _), r, _, p, C, n ? v : _);
|
989
989
|
break;
|
990
990
|
default:
|
991
|
-
Z2(
|
991
|
+
Z2(Z, F, F, F, [""], _, 0, C, _);
|
992
992
|
}
|
993
993
|
}
|
994
|
-
h = u = M = 0, E = b = 1, $ =
|
994
|
+
h = u = M = 0, E = b = 1, $ = Z = "", p = o;
|
995
995
|
break;
|
996
996
|
case 58:
|
997
|
-
p = 1 + H1(
|
997
|
+
p = 1 + H1(Z), M = g;
|
998
998
|
default:
|
999
999
|
if (E < 1) {
|
1000
1000
|
if (R == 123)
|
@@ -1002,18 +1002,18 @@ function Z2(t, i, a, n, r, c, o, C, s) {
|
|
1002
1002
|
else if (R == 125 && E++ == 0 && X9() == 125)
|
1003
1003
|
continue;
|
1004
1004
|
}
|
1005
|
-
switch (
|
1005
|
+
switch (Z += V3(R), R * E) {
|
1006
1006
|
case 38:
|
1007
|
-
b = u > 0 ? 1 : (
|
1007
|
+
b = u > 0 ? 1 : (Z += "\f", -1);
|
1008
1008
|
break;
|
1009
1009
|
case 44:
|
1010
|
-
C[h++] = (H1(
|
1010
|
+
C[h++] = (H1(Z) - 1) * b, b = 1;
|
1011
1011
|
break;
|
1012
1012
|
case 64:
|
1013
|
-
Y1() === 45 && (
|
1013
|
+
Y1() === 45 && (Z += X2(B1())), m = Y1(), u = p = H1($ = Z += l5(w2())), R++;
|
1014
1014
|
break;
|
1015
1015
|
case 45:
|
1016
|
-
g === 45 && H1(
|
1016
|
+
g === 45 && H1(Z) == 2 && (E = 0);
|
1017
1017
|
}
|
1018
1018
|
}
|
1019
1019
|
return c;
|
@@ -1033,7 +1033,7 @@ function G3(t, i, a, n, r) {
|
|
1033
1033
|
function k6(t, i, a) {
|
1034
1034
|
switch (Y9(t, i)) {
|
1035
1035
|
case 5103:
|
1036
|
-
return
|
1036
|
+
return i1 + "print-" + t + t;
|
1037
1037
|
case 5737:
|
1038
1038
|
case 4201:
|
1039
1039
|
case 3177:
|
@@ -1059,7 +1059,7 @@ function k6(t, i, a) {
|
|
1059
1059
|
case 5365:
|
1060
1060
|
case 5621:
|
1061
1061
|
case 3829:
|
1062
|
-
return
|
1062
|
+
return i1 + t + t;
|
1063
1063
|
case 4789:
|
1064
1064
|
return m2 + t + t;
|
1065
1065
|
case 5349:
|
@@ -1067,43 +1067,43 @@ function k6(t, i, a) {
|
|
1067
1067
|
case 4810:
|
1068
1068
|
case 6968:
|
1069
1069
|
case 2756:
|
1070
|
-
return
|
1070
|
+
return i1 + t + m2 + t + o1 + t + t;
|
1071
1071
|
case 5936:
|
1072
1072
|
switch (g1(t, i + 11)) {
|
1073
1073
|
case 114:
|
1074
|
-
return
|
1074
|
+
return i1 + t + o1 + Y(t, /[svh]\w+-[tblr]{2}/, "tb") + t;
|
1075
1075
|
case 108:
|
1076
|
-
return
|
1076
|
+
return i1 + t + o1 + Y(t, /[svh]\w+-[tblr]{2}/, "tb-rl") + t;
|
1077
1077
|
case 45:
|
1078
|
-
return
|
1078
|
+
return i1 + t + o1 + Y(t, /[svh]\w+-[tblr]{2}/, "lr") + t;
|
1079
1079
|
}
|
1080
1080
|
case 6828:
|
1081
1081
|
case 4268:
|
1082
1082
|
case 2903:
|
1083
|
-
return
|
1083
|
+
return i1 + t + o1 + t + t;
|
1084
1084
|
case 6165:
|
1085
|
-
return
|
1085
|
+
return i1 + t + o1 + "flex-" + t + t;
|
1086
1086
|
case 5187:
|
1087
|
-
return
|
1087
|
+
return i1 + t + Y(t, /(\w+).+(:[^]+)/, i1 + "box-$1$2" + o1 + "flex-$1$2") + t;
|
1088
1088
|
case 5443:
|
1089
|
-
return
|
1089
|
+
return i1 + t + o1 + "flex-item-" + Y(t, /flex-|-self/g, "") + (A1(t, /flex-|baseline/) ? "" : o1 + "grid-row-" + Y(t, /flex-|-self/g, "")) + t;
|
1090
1090
|
case 4675:
|
1091
|
-
return
|
1091
|
+
return i1 + t + o1 + "flex-line-pack" + Y(t, /align-content|flex-|-self/g, "") + t;
|
1092
1092
|
case 5548:
|
1093
|
-
return
|
1093
|
+
return i1 + t + o1 + Y(t, "shrink", "negative") + t;
|
1094
1094
|
case 5292:
|
1095
|
-
return
|
1095
|
+
return i1 + t + o1 + Y(t, "basis", "preferred-size") + t;
|
1096
1096
|
case 6060:
|
1097
|
-
return
|
1097
|
+
return i1 + "box-" + Y(t, "-grow", "") + i1 + t + o1 + Y(t, "grow", "positive") + t;
|
1098
1098
|
case 4554:
|
1099
|
-
return
|
1099
|
+
return i1 + Y(t, /([^-])(transform)/g, "$1" + i1 + "$2") + t;
|
1100
1100
|
case 6187:
|
1101
|
-
return Y(Y(Y(t, /(zoom-|grab)/,
|
1101
|
+
return Y(Y(Y(t, /(zoom-|grab)/, i1 + "$1"), /(image-set)/, i1 + "$1"), t, "") + t;
|
1102
1102
|
case 5495:
|
1103
1103
|
case 3959:
|
1104
|
-
return Y(t, /(image-set\([^]*)/,
|
1104
|
+
return Y(t, /(image-set\([^]*)/, i1 + "$1$`$1");
|
1105
1105
|
case 4968:
|
1106
|
-
return Y(Y(t, /(.+:)(flex-)?(.*)/,
|
1106
|
+
return Y(Y(t, /(.+:)(flex-)?(.*)/, i1 + "box-pack:$3" + o1 + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + i1 + t + t;
|
1107
1107
|
case 4200:
|
1108
1108
|
if (!A1(t, /flex-|baseline/)) return o1 + "grid-column-align" + a2(t, i) + t;
|
1109
1109
|
break;
|
@@ -1124,7 +1124,7 @@ function k6(t, i, a) {
|
|
1124
1124
|
case 3583:
|
1125
1125
|
case 4068:
|
1126
1126
|
case 2532:
|
1127
|
-
return Y(t, /(.+)-inline(.+)/,
|
1127
|
+
return Y(t, /(.+)-inline(.+)/, i1 + "$1$2") + t;
|
1128
1128
|
case 8116:
|
1129
1129
|
case 7059:
|
1130
1130
|
case 5753:
|
@@ -1143,7 +1143,7 @@ function k6(t, i, a) {
|
|
1143
1143
|
if (g1(t, i + 4) !== 45)
|
1144
1144
|
break;
|
1145
1145
|
case 102:
|
1146
|
-
return Y(t, /(.+:)(.+)-([^]+)/, "$1" +
|
1146
|
+
return Y(t, /(.+:)(.+)-([^]+)/, "$1" + i1 + "$2-$3$1" + m2 + (g1(t, i + 3) == 108 ? "$3" : "$2-$3")) + t;
|
1147
1147
|
case 115:
|
1148
1148
|
return ~y2(t, "stretch", 0) ? k6(Y(t, "stretch", "fill-available"), i, a) + t : t;
|
1149
1149
|
}
|
@@ -1155,12 +1155,12 @@ function k6(t, i, a) {
|
|
1155
1155
|
});
|
1156
1156
|
case 4949:
|
1157
1157
|
if (g1(t, i + 6) === 121)
|
1158
|
-
return Y(t, ":", ":" +
|
1158
|
+
return Y(t, ":", ":" + i1) + t;
|
1159
1159
|
break;
|
1160
1160
|
case 6444:
|
1161
1161
|
switch (g1(t, g1(t, 14) === 45 ? 18 : 11)) {
|
1162
1162
|
case 120:
|
1163
|
-
return Y(t, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" +
|
1163
|
+
return Y(t, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + i1 + (g1(t, 14) === 45 ? "inline-" : "") + "box$3$1" + i1 + "$2$3$1" + o1 + "$2box$3") + t;
|
1164
1164
|
case 100:
|
1165
1165
|
return Y(t, ":", ":" + o1) + t;
|
1166
1166
|
}
|
@@ -1215,7 +1215,7 @@ function c5(t, i, a, n) {
|
|
1215
1215
|
t.return = k6(t.value, t.length, a);
|
1216
1216
|
return;
|
1217
1217
|
case R6:
|
1218
|
-
return F2([P1(t, { value: Y(t.value, "@", "@" +
|
1218
|
+
return F2([P1(t, { value: Y(t.value, "@", "@" + i1) })], n);
|
1219
1219
|
case S2:
|
1220
1220
|
if (t.length)
|
1221
1221
|
return q9(a = t.props, function(r) {
|
@@ -1225,7 +1225,7 @@ function c5(t, i, a, n) {
|
|
1225
1225
|
L2(P1(t, { props: [Y(r, /:(read-\w+)/, ":" + m2 + "$1")] })), L2(P1(t, { props: [r] })), r3(t, { props: I3(a, n) });
|
1226
1226
|
break;
|
1227
1227
|
case "::placeholder":
|
1228
|
-
L2(P1(t, { props: [Y(r, /:(plac\w+)/, ":" +
|
1228
|
+
L2(P1(t, { props: [Y(r, /:(plac\w+)/, ":" + i1 + "input-$1")] })), L2(P1(t, { props: [Y(r, /:(plac\w+)/, ":" + m2 + "$1")] })), L2(P1(t, { props: [Y(r, /:(plac\w+)/, o1 + "input-$1")] })), L2(P1(t, { props: [r] })), r3(t, { props: I3(a, n) });
|
1229
1229
|
break;
|
1230
1230
|
}
|
1231
1231
|
return "";
|
@@ -1725,8 +1725,8 @@ function T5(t, i, a) {
|
|
1725
1725
|
var n = _3(t), r = t, c = !K2(t), o = i.attrs, C = o === void 0 ? N2 : o, s = i.componentId, h = s === void 0 ? function(v, _) {
|
1726
1726
|
var F = typeof v != "string" ? "sc" : q3(v);
|
1727
1727
|
Q2[F] = (Q2[F] || 0) + 1;
|
1728
|
-
var
|
1729
|
-
return _ ? "".concat(_, "-").concat(
|
1728
|
+
var Z = "".concat(F, "-").concat(N6(O2 + F + Q2[F]));
|
1729
|
+
return _ ? "".concat(_, "-").concat(Z) : Z;
|
1730
1730
|
}(i.displayName, i.parentComponentId) : s, u = i.displayName, p = u === void 0 ? function(v) {
|
1731
1731
|
return K2(v) ? "styled.".concat(v) : "Styled(".concat(T6(v), ")");
|
1732
1732
|
}(t) : u, m = i.displayName && i.componentId ? "".concat(q3(i.displayName), "-").concat(i.componentId) : i.componentId || h, M = n && r.attrs ? r.attrs.concat(C).filter(Boolean) : C, g = i.shouldForwardProp;
|
@@ -1741,23 +1741,23 @@ function T5(t, i, a) {
|
|
1741
1741
|
}
|
1742
1742
|
var b = new N5(a, m, n ? r.componentStyle : void 0);
|
1743
1743
|
function R(v, _) {
|
1744
|
-
return function(F,
|
1745
|
-
var j = F.attrs, P = F.componentStyle, x = F.defaultProps,
|
1746
|
-
process.env.NODE_ENV !== "production" && O3(
|
1747
|
-
var G = P6(
|
1744
|
+
return function(F, Z, k) {
|
1745
|
+
var j = F.attrs, P = F.componentStyle, x = F.defaultProps, D = F.foldedComponentIds, w = F.styledComponentId, y = F.target, H = f1.useContext(w3), S = h3(), W = F.shouldForwardProp || S.shouldForwardProp;
|
1746
|
+
process.env.NODE_ENV !== "production" && O3(w);
|
1747
|
+
var G = P6(Z, H, x) || r2, N = function(q, n1, s1) {
|
1748
1748
|
for (var d1, E1 = x1(x1({}, n1), { className: void 0, theme: s1 }), _1 = 0; _1 < q.length; _1 += 1) {
|
1749
1749
|
var m1 = c2(d1 = q[_1]) ? d1(E1) : d1;
|
1750
1750
|
for (var V1 in m1) E1[V1] = V1 === "className" ? G1(E1[V1], m1[V1]) : V1 === "style" ? x1(x1({}, E1[V1]), m1[V1]) : m1[V1];
|
1751
1751
|
}
|
1752
1752
|
return n1.className && (E1.className = G1(E1.className, n1.className)), E1;
|
1753
|
-
}(j,
|
1753
|
+
}(j, Z, G), a1 = N.as || y, c1 = {};
|
1754
1754
|
for (var t1 in N) N[t1] === void 0 || t1[0] === "$" || t1 === "as" || t1 === "theme" && N.theme === G || (t1 === "forwardedAs" ? c1.as = N.forwardedAs : W && !W(t1, a1) || (c1[t1] = N[t1], W || process.env.NODE_ENV !== "development" || I9(t1) || l6.has(t1) || !C3.has(a1) || (l6.add(t1), console.warn('styled-components: it looks like an unknown prop "'.concat(t1, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
1755
1755
|
var X = function(q, n1) {
|
1756
1756
|
var s1 = h3(), d1 = q.generateAndInjectStyles(n1, s1.styleSheet, s1.stylis);
|
1757
1757
|
return process.env.NODE_ENV !== "production" && O3(d1), d1;
|
1758
1758
|
}(P, N);
|
1759
1759
|
process.env.NODE_ENV !== "production" && F.warnTooManyClasses && F.warnTooManyClasses(X);
|
1760
|
-
var K = G1(
|
1760
|
+
var K = G1(D, w);
|
1761
1761
|
return X && (K += " " + X), N.className && (K += " " + N.className), c1[K2(a1) && !C3.has(a1) ? "class" : "className"] = K, c1.ref = k, D9(a1, c1);
|
1762
1762
|
}($, v, _);
|
1763
1763
|
}
|
@@ -1767,14 +1767,14 @@ function T5(t, i, a) {
|
|
1767
1767
|
return this._foldedDefaultProps;
|
1768
1768
|
}, set: function(v) {
|
1769
1769
|
this._foldedDefaultProps = n ? function(_) {
|
1770
|
-
for (var F = [],
|
1770
|
+
for (var F = [], Z = 1; Z < arguments.length; Z++) F[Z - 1] = arguments[Z];
|
1771
1771
|
for (var k = 0, j = F; k < j.length; k++) p3(_, j[k], !0);
|
1772
1772
|
return _;
|
1773
1773
|
}({}, r.defaultProps, v) : v;
|
1774
1774
|
} }), process.env.NODE_ENV !== "production" && (D6(p, m), $.warnTooManyClasses = /* @__PURE__ */ function(v, _) {
|
1775
|
-
var F = {},
|
1775
|
+
var F = {}, Z = !1;
|
1776
1776
|
return function(k) {
|
1777
|
-
if (!
|
1777
|
+
if (!Z && (F[k] = !0, Object.keys(F).length >= 200)) {
|
1778
1778
|
var j = _ ? ' with the id of "'.concat(_, '"') : "";
|
1779
1779
|
console.warn("Over ".concat(200, " classes were generated for component ").concat(v).concat(j, `.
|
1780
1780
|
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
@@ -1785,7 +1785,7 @@ Example:
|
|
1785
1785
|
},
|
1786
1786
|
}))\`width: 100%;\`
|
1787
1787
|
|
1788
|
-
<Component />`),
|
1788
|
+
<Component />`), Z = !0, F = {};
|
1789
1789
|
}
|
1790
1790
|
};
|
1791
1791
|
}(p, m)), y3($, function() {
|
@@ -2650,6 +2650,27 @@ const R1 = {
|
|
2650
2650
|
padding: 2px 12px;
|
2651
2651
|
border-radius: 999999px;
|
2652
2652
|
background: ${({ $selected: t, $theme: i }) => t ? i && Object.keys(R1).includes(i) ? R1[i].itemActive.backgroundColor : R1.light.itemActive.backgroundColor : "transparent"};
|
2653
|
+
position: relative;
|
2654
|
+
|
2655
|
+
${({ $badgeText: t }) => t && d`
|
2656
|
+
& > div {
|
2657
|
+
position: absolute;
|
2658
|
+
top: -23%;
|
2659
|
+
right: -23%;
|
2660
|
+
background-color: ${l.danger_500};
|
2661
|
+
padding: 2px 6.175px;
|
2662
|
+
border-radius: 999999px;
|
2663
|
+
display: flex;
|
2664
|
+
align-items: center;
|
2665
|
+
justify-content: center;
|
2666
|
+
|
2667
|
+
& > span {
|
2668
|
+
color: ${l.white};
|
2669
|
+
font-size: 11px;
|
2670
|
+
font-weight: 500;
|
2671
|
+
}
|
2672
|
+
}
|
2673
|
+
`}
|
2653
2674
|
}
|
2654
2675
|
|
2655
2676
|
& > span {
|
@@ -2687,24 +2708,29 @@ const R1 = {
|
|
2687
2708
|
onClick: n,
|
2688
2709
|
disabled: r = !1,
|
2689
2710
|
theme: c = "light",
|
2690
|
-
|
2711
|
+
badgeText: o = "",
|
2712
|
+
...C
|
2691
2713
|
}) => /* @__PURE__ */ L.jsxs(
|
2692
2714
|
I4,
|
2693
2715
|
{
|
2694
2716
|
onClick: n,
|
2695
2717
|
$selected: a,
|
2696
2718
|
$theme: c,
|
2719
|
+
$badgeText: o,
|
2697
2720
|
disabled: r,
|
2698
|
-
...
|
2721
|
+
...C,
|
2699
2722
|
children: [
|
2700
|
-
/* @__PURE__ */ L.
|
2701
|
-
|
2702
|
-
|
2703
|
-
|
2704
|
-
|
2705
|
-
|
2706
|
-
|
2707
|
-
|
2723
|
+
/* @__PURE__ */ L.jsxs("div", { children: [
|
2724
|
+
/* @__PURE__ */ L.jsx(
|
2725
|
+
O,
|
2726
|
+
{
|
2727
|
+
icon: t,
|
2728
|
+
size: 20,
|
2729
|
+
color: r ? R1[c].icon.disabled : R1[c].icon.default
|
2730
|
+
}
|
2731
|
+
),
|
2732
|
+
o && /* @__PURE__ */ L.jsx("div", { children: /* @__PURE__ */ L.jsx("span", { children: o }) })
|
2733
|
+
] }),
|
2708
2734
|
/* @__PURE__ */ L.jsx("span", { children: i })
|
2709
2735
|
]
|
2710
2736
|
}
|
@@ -4046,29 +4072,29 @@ const v0 = [14, 16, 18, 20, 24], M0 = [200, 300, 400, 500, 700, 800], _0 = B.div
|
|
4046
4072
|
numpadPortal: v = !1,
|
4047
4073
|
..._
|
4048
4074
|
}) => {
|
4049
|
-
const F = Q(null), [
|
4075
|
+
const F = Q(null), [Z, k] = T(!1), j = l1(() => _.readOnly !== void 0 ? _.readOnly : !!V, [_.readOnly, V]), P = () => {
|
4050
4076
|
c("");
|
4051
|
-
},
|
4052
|
-
c && c(
|
4053
|
-
},
|
4077
|
+
}, x = (w) => {
|
4078
|
+
c && c(w);
|
4079
|
+
}, D = (w) => {
|
4054
4080
|
if (V && !s)
|
4055
4081
|
if (v) {
|
4056
|
-
const
|
4057
|
-
return () => clearTimeout(
|
4082
|
+
const y = setTimeout(() => k(!0), 100);
|
4083
|
+
return () => clearTimeout(y);
|
4058
4084
|
} else
|
4059
4085
|
k(!0);
|
4060
|
-
_ != null && _.onClick && _.onClick(
|
4086
|
+
_ != null && _.onClick && _.onClick(w);
|
4061
4087
|
};
|
4062
4088
|
return e1(() => {
|
4063
|
-
const
|
4064
|
-
const
|
4065
|
-
|
4089
|
+
const w = F == null ? void 0 : F.current, y = (H) => {
|
4090
|
+
const S = document.getElementById("rbro-numpad-wrapper"), W = S == null ? void 0 : S.contains(H.target);
|
4091
|
+
w && !w.contains(H.target) && !W && (E && E(), k(!1));
|
4066
4092
|
};
|
4067
|
-
if (
|
4068
|
-
return document.addEventListener("mousedown",
|
4069
|
-
document.removeEventListener("mousedown",
|
4093
|
+
if (Z)
|
4094
|
+
return document.addEventListener("mousedown", y), () => {
|
4095
|
+
document.removeEventListener("mousedown", y);
|
4070
4096
|
};
|
4071
|
-
}, [
|
4097
|
+
}, [Z, F, E]), /* @__PURE__ */ L.jsxs(
|
4072
4098
|
$0,
|
4073
4099
|
{
|
4074
4100
|
ref: F,
|
@@ -4083,12 +4109,12 @@ const v0 = [14, 16, 18, 20, 24], M0 = [200, 300, 400, 500, 700, 800], _0 = B.div
|
|
4083
4109
|
$clearButton: h,
|
4084
4110
|
$loading: s,
|
4085
4111
|
children: [
|
4086
|
-
V &&
|
4112
|
+
V && Z && (v ? P9(
|
4087
4113
|
/* @__PURE__ */ L.jsx(
|
4088
4114
|
V6,
|
4089
4115
|
{
|
4090
4116
|
value: r,
|
4091
|
-
getValue: (
|
4117
|
+
getValue: (w) => x(w),
|
4092
4118
|
handleFooterButton: () => {
|
4093
4119
|
E && E(), k(!1);
|
4094
4120
|
},
|
@@ -4103,7 +4129,7 @@ const v0 = [14, 16, 18, 20, 24], M0 = [200, 300, 400, 500, 700, 800], _0 = B.div
|
|
4103
4129
|
V6,
|
4104
4130
|
{
|
4105
4131
|
value: r,
|
4106
|
-
getValue: (
|
4132
|
+
getValue: (w) => x(w),
|
4107
4133
|
handleFooterButton: () => {
|
4108
4134
|
E && E(), k(!1);
|
4109
4135
|
},
|
@@ -4135,11 +4161,11 @@ const v0 = [14, 16, 18, 20, 24], M0 = [200, 300, 400, 500, 700, 800], _0 = B.div
|
|
4135
4161
|
type: B0(i, V),
|
4136
4162
|
placeholder: n,
|
4137
4163
|
value: r,
|
4138
|
-
readOnly:
|
4139
|
-
onChange: (
|
4140
|
-
V ||
|
4164
|
+
readOnly: j,
|
4165
|
+
onChange: (w) => {
|
4166
|
+
V || x(w.target.value);
|
4141
4167
|
},
|
4142
|
-
onClick:
|
4168
|
+
onClick: D
|
4143
4169
|
}
|
4144
4170
|
),
|
4145
4171
|
s ? /* @__PURE__ */ L.jsx(s2, { style: { opacity: _.disabled ? 0.3 : 1 }, size: 20 }) : (M || p && typeof p == "string" || C && C === "success" || h) && /* @__PURE__ */ L.jsxs("div", { className: "rnd9x7m2k4l", children: [
|
@@ -4147,7 +4173,7 @@ const v0 = [14, 16, 18, 20, 24], M0 = [200, 300, 400, 500, 700, 800], _0 = B.div
|
|
4147
4173
|
(M || C === "success" || h && !!r) && /* @__PURE__ */ L.jsx(
|
4148
4174
|
O,
|
4149
4175
|
{
|
4150
|
-
onClick: _.disabled ? void 0 : M ? g :
|
4176
|
+
onClick: _.disabled ? void 0 : M ? g : P,
|
4151
4177
|
style: {
|
4152
4178
|
cursor: g || h ? "pointer" : "default"
|
4153
4179
|
},
|
@@ -4369,21 +4395,21 @@ const k0 = [32, 40, 48], A0 = B.div`
|
|
4369
4395
|
...p
|
4370
4396
|
}) => {
|
4371
4397
|
const m = Q(null), [M, g] = T(!1), E = C1(
|
4372
|
-
(
|
4398
|
+
(Z) => {
|
4373
4399
|
var j, P;
|
4374
4400
|
const k = (j = m.current) == null ? void 0 : j.getBoundingClientRect();
|
4375
4401
|
if (k) {
|
4376
4402
|
let x;
|
4377
|
-
if ("touches" in
|
4378
|
-
const
|
4403
|
+
if ("touches" in Z ? x = (P = Z.touches[0]) == null ? void 0 : P.clientX : "clientX" in Z && (x = Z.clientX), x !== void 0) {
|
4404
|
+
const D = x - k.left, w = k.width, y = D / w * (c - r) + r;
|
4379
4405
|
let H = Math.round(y / C) * C;
|
4380
4406
|
H = Math.max(r, H), H = Math.min(c, H), n && n(H);
|
4381
4407
|
}
|
4382
4408
|
}
|
4383
4409
|
},
|
4384
4410
|
[c, r, n, C]
|
4385
|
-
), V = (
|
4386
|
-
if (
|
4411
|
+
), V = (Z) => {
|
4412
|
+
if (Z === "minus") {
|
4387
4413
|
if (a === r) return;
|
4388
4414
|
if (a - C < r) {
|
4389
4415
|
n && n(r);
|
@@ -4401,17 +4427,17 @@ const k0 = [32, 40, 48], A0 = B.div`
|
|
4401
4427
|
}, b = C1(() => {
|
4402
4428
|
n && n(a), g(!1);
|
4403
4429
|
}, [a, n]), R = C1(
|
4404
|
-
(
|
4405
|
-
M && E(
|
4430
|
+
(Z) => {
|
4431
|
+
M && E(Z);
|
4406
4432
|
},
|
4407
4433
|
[M, E]
|
4408
|
-
), $ = (
|
4409
|
-
s || (E(
|
4410
|
-
}, v = (
|
4411
|
-
g(!0), E(
|
4434
|
+
), $ = (Z) => {
|
4435
|
+
s || (E(Z), g(!0));
|
4436
|
+
}, v = (Z) => {
|
4437
|
+
g(!0), E(Z);
|
4412
4438
|
}, _ = C1(
|
4413
|
-
(
|
4414
|
-
E(
|
4439
|
+
(Z) => {
|
4440
|
+
E(Z);
|
4415
4441
|
},
|
4416
4442
|
[E]
|
4417
4443
|
), F = C1(() => {
|
@@ -7053,60 +7079,60 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
7053
7079
|
month: +t.getMonth() + 1,
|
7054
7080
|
year: t.getFullYear()
|
7055
7081
|
}), [C, s] = T("date"), h = (x) => {
|
7056
|
-
const
|
7082
|
+
const w = X1(x) ? x : /* @__PURE__ */ new Date();
|
7057
7083
|
o({
|
7058
7084
|
current: x,
|
7059
|
-
month: +
|
7060
|
-
year:
|
7085
|
+
month: +w.getMonth() + 1,
|
7086
|
+
year: w.getFullYear()
|
7061
7087
|
});
|
7062
|
-
}, u =
|
7063
|
-
const { month: x, year:
|
7088
|
+
}, u = l1(() => {
|
7089
|
+
const { month: x, year: D } = c, w = Object.keys(t3)[Math.max(0, Math.min(x - 1, 11))];
|
7064
7090
|
return {
|
7065
|
-
monthname: t3[
|
7066
|
-
year:
|
7091
|
+
monthname: t3[w],
|
7092
|
+
year: D
|
7067
7093
|
};
|
7068
|
-
}, [c]), p = (x,
|
7069
|
-
|
7070
|
-
const { current:
|
7071
|
-
|
7072
|
-
}, m = (x,
|
7073
|
-
|
7094
|
+
}, [c]), p = (x, D) => {
|
7095
|
+
D && D.preventDefault();
|
7096
|
+
const { current: w } = c;
|
7097
|
+
w && l3(x, w) || (h(x), i && i(x));
|
7098
|
+
}, m = (x, D) => {
|
7099
|
+
D && D.preventDefault(), o({
|
7074
7100
|
current: c.current,
|
7075
7101
|
month: c.month,
|
7076
7102
|
year: +x
|
7077
7103
|
}), s("month");
|
7078
|
-
}, M = (x,
|
7079
|
-
|
7104
|
+
}, M = (x, D) => {
|
7105
|
+
D && D.preventDefault(), o({
|
7080
7106
|
current: c.current,
|
7081
7107
|
month: +x,
|
7082
7108
|
year: c.year
|
7083
7109
|
}), s("date");
|
7084
|
-
}, g = (x,
|
7085
|
-
const
|
7086
|
-
return /* @__PURE__ */ L.jsx(ge, { $index:
|
7110
|
+
}, g = (x, D) => {
|
7111
|
+
const w = u6[x].toUpperCase();
|
7112
|
+
return /* @__PURE__ */ L.jsx(ge, { $index: D, children: w }, w + D);
|
7087
7113
|
}, E = () => {
|
7088
|
-
const { current: x, month:
|
7114
|
+
const { current: x, month: D, year: w } = c, y = D || +(x == null ? void 0 : x.getMonth()) + 1, H = w || (x == null ? void 0 : x.getFullYear());
|
7089
7115
|
return pe(y, H);
|
7090
7116
|
}, V = (x) => {
|
7091
7117
|
if (!/^\d{4}-\d{2}-\d{2}$/.test(x)) return !1;
|
7092
|
-
const
|
7118
|
+
const w = new Date(x), y = w.getTime();
|
7093
7119
|
if (isNaN(y)) return !1;
|
7094
|
-
const [H,
|
7095
|
-
return !(
|
7096
|
-
}, b = () => !(!n || !r || !V(n) || !V(r)), R =
|
7120
|
+
const [H, S, W] = x.split("-");
|
7121
|
+
return !(w.getUTCFullYear() !== parseInt(H, 10) || w.getUTCMonth() + 1 !== parseInt(S, 10) || w.getUTCDate() !== parseInt(W, 10));
|
7122
|
+
}, b = () => !(!n || !r || !V(n) || !V(r)), R = l1(() => {
|
7097
7123
|
if (!b()) return [];
|
7098
|
-
const x = new Date(n),
|
7099
|
-
for (let y = new Date(x); y <=
|
7100
|
-
|
7101
|
-
return
|
7124
|
+
const x = new Date(n), D = new Date(r), w = [];
|
7125
|
+
for (let y = new Date(x); y <= D; y.setUTCDate(y.getUTCDate() + 1))
|
7126
|
+
w.push(new Date(y));
|
7127
|
+
return w;
|
7102
7128
|
}, [n, r]), $ = C1(
|
7103
7129
|
(x) => R && R.length ? !R.some(
|
7104
|
-
(
|
7130
|
+
(D) => D.getTime() === x.getTime()
|
7105
7131
|
) : !1,
|
7106
7132
|
[R]
|
7107
|
-
), v = (x,
|
7108
|
-
const { current:
|
7109
|
-
|
7133
|
+
), v = (x, D) => {
|
7134
|
+
const { current: w, month: y, year: H } = c, S = new Date(x.join("-")), W = $(S), G = l3(S, /* @__PURE__ */ new Date()), N = w && l3(S, w), a1 = y && H && de(
|
7135
|
+
S,
|
7110
7136
|
new Date(
|
7111
7137
|
[
|
7112
7138
|
H.toString().padStart(2, "0"),
|
@@ -7118,35 +7144,35 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
7118
7144
|
return /* @__PURE__ */ L.jsx(
|
7119
7145
|
c1,
|
7120
7146
|
{
|
7121
|
-
$index:
|
7147
|
+
$index: D,
|
7122
7148
|
$inMonth: a1,
|
7123
7149
|
$isLimited: W,
|
7124
7150
|
onClick: (t1) => {
|
7125
|
-
W || p(
|
7151
|
+
W || p(S, t1);
|
7126
7152
|
},
|
7127
|
-
children:
|
7153
|
+
children: S.getDate()
|
7128
7154
|
},
|
7129
|
-
se(
|
7155
|
+
se(S)
|
7130
7156
|
);
|
7131
7157
|
}, _ = () => {
|
7132
|
-
const x = M2 * 4, { year:
|
7133
|
-
return [...new Array(x)].map((y, H) => +
|
7158
|
+
const x = M2 * 4, { year: D } = c;
|
7159
|
+
return [...new Array(x)].map((y, H) => +D + H);
|
7134
7160
|
}, F = (x) => {
|
7135
|
-
const { current:
|
7161
|
+
const { current: D, year: w } = c, y = x === w, H = D && D.getFullYear() === x, S = y ? E3 : H ? g6 : g3;
|
7136
7162
|
return /* @__PURE__ */ L.jsx(
|
7137
|
-
|
7163
|
+
S,
|
7138
7164
|
{
|
7139
7165
|
onClick: (W) => m(x, W),
|
7140
7166
|
children: x
|
7141
7167
|
},
|
7142
7168
|
x
|
7143
7169
|
);
|
7144
|
-
},
|
7145
|
-
const { current:
|
7170
|
+
}, Z = (x, D) => {
|
7171
|
+
const { current: w, year: y, month: H } = c, S = D + 1 === H, W = w && w.getFullYear() === y, G = w && w.getMonth() + 1 === D + 1, a1 = S ? E3 : W && G ? g6 : g3;
|
7146
7172
|
return /* @__PURE__ */ L.jsx(
|
7147
7173
|
a1,
|
7148
7174
|
{
|
7149
|
-
onClick: (c1) => M(
|
7175
|
+
onClick: (c1) => M(D + 1, c1),
|
7150
7176
|
children: x.slice(0, 3)
|
7151
7177
|
},
|
7152
7178
|
x
|
@@ -7155,21 +7181,21 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
7155
7181
|
if (x && x.preventDefault(), C === "date")
|
7156
7182
|
return s("year");
|
7157
7183
|
}, j = () => {
|
7158
|
-
const { month: x, year:
|
7184
|
+
const { month: x, year: D } = c;
|
7159
7185
|
if (C === "date") {
|
7160
|
-
const
|
7186
|
+
const w = c9(x, D);
|
7161
7187
|
o({
|
7162
|
-
month:
|
7163
|
-
year:
|
7188
|
+
month: w.month,
|
7189
|
+
year: w.year,
|
7164
7190
|
current: c.current
|
7165
7191
|
});
|
7166
7192
|
return;
|
7167
7193
|
}
|
7168
7194
|
if (C === "year") {
|
7169
|
-
const
|
7195
|
+
const w = D - M2 * 4;
|
7170
7196
|
o({
|
7171
7197
|
month: c.month,
|
7172
|
-
year:
|
7198
|
+
year: w,
|
7173
7199
|
current: c.current
|
7174
7200
|
});
|
7175
7201
|
return;
|
@@ -7183,21 +7209,21 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
7183
7209
|
return;
|
7184
7210
|
}
|
7185
7211
|
}, P = () => {
|
7186
|
-
const { month: x, year:
|
7212
|
+
const { month: x, year: D } = c;
|
7187
7213
|
if (C === "date") {
|
7188
|
-
const
|
7214
|
+
const w = o9(x, D);
|
7189
7215
|
o({
|
7190
|
-
month:
|
7191
|
-
year:
|
7216
|
+
month: w.month,
|
7217
|
+
year: w.year,
|
7192
7218
|
current: c.current
|
7193
7219
|
});
|
7194
7220
|
return;
|
7195
7221
|
}
|
7196
7222
|
if (C === "year") {
|
7197
|
-
const
|
7223
|
+
const w = D + M2 * 4;
|
7198
7224
|
o({
|
7199
7225
|
month: c.month,
|
7200
|
-
year:
|
7226
|
+
year: w,
|
7201
7227
|
current: c.current
|
7202
7228
|
});
|
7203
7229
|
return;
|
@@ -7249,7 +7275,7 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
7249
7275
|
/* @__PURE__ */ L.jsx(L.Fragment, { children: E().map(v) })
|
7250
7276
|
] }),
|
7251
7277
|
C === "year" && /* @__PURE__ */ L.jsx(L.Fragment, { children: _().map(F) }),
|
7252
|
-
C === "month" && /* @__PURE__ */ L.jsx(L.Fragment, { children: Object.values(t3).map(
|
7278
|
+
C === "month" && /* @__PURE__ */ L.jsx(L.Fragment, { children: Object.values(t3).map(Z) })
|
7253
7279
|
] }),
|
7254
7280
|
/* @__PURE__ */ L.jsxs(ue, { children: [
|
7255
7281
|
/* @__PURE__ */ L.jsx(
|
@@ -7375,7 +7401,7 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
7375
7401
|
document.removeEventListener("mousedown", v);
|
7376
7402
|
};
|
7377
7403
|
}, [M, b]);
|
7378
|
-
const $ =
|
7404
|
+
const $ = l1(() => {
|
7379
7405
|
if (!r) return "";
|
7380
7406
|
if (n === "date") return r == null ? void 0 : r.toString();
|
7381
7407
|
if (n === "type1")
|
@@ -7640,7 +7666,7 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
7640
7666
|
r(k.value), E(!1), v(""), R(p);
|
7641
7667
|
},
|
7642
7668
|
[p, r]
|
7643
|
-
),
|
7669
|
+
), Z = l1(() => {
|
7644
7670
|
var k;
|
7645
7671
|
return p && n && ((k = p.find((j) => j.value === n)) == null ? void 0 : k.label) || "";
|
7646
7672
|
}, [n, p]);
|
@@ -7672,7 +7698,7 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
7672
7698
|
id: t,
|
7673
7699
|
type: "text",
|
7674
7700
|
name: i,
|
7675
|
-
value:
|
7701
|
+
value: Z,
|
7676
7702
|
onClick: () => !C && E(!g),
|
7677
7703
|
onChange: (k) => k.preventDefault()
|
7678
7704
|
}
|
@@ -8048,7 +8074,7 @@ const Re = B.svg`
|
|
8048
8074
|
label_limit_min: o = "Pensie standard",
|
8049
8075
|
label_limit_max: C = "Obiectiv pensie"
|
8050
8076
|
}) => {
|
8051
|
-
const s = new Intl.NumberFormat("RO"), h = Q(null), u = Q(null), p = Q(null), m = Q(null), M = Q(null), g = Q(null), E = Q(null), [V, b] = T(0), [R, $] = T(0), v = 10, _ =
|
8077
|
+
const s = new Intl.NumberFormat("RO"), h = Q(null), u = Q(null), p = Q(null), m = Q(null), M = Q(null), g = Q(null), E = Q(null), [V, b] = T(0), [R, $] = T(0), v = 10, _ = l1(() => {
|
8052
8078
|
const K = R / 2 - 20, q = V - v * 2, n1 = Math.min(
|
8053
8079
|
q,
|
8054
8080
|
Math.max(q * a / t, 0)
|
@@ -8068,14 +8094,14 @@ const Re = B.svg`
|
|
8068
8094
|
line_min_x: _1,
|
8069
8095
|
line_max_x: V1
|
8070
8096
|
};
|
8071
|
-
}, [R, V, a, i, t]), F =
|
8097
|
+
}, [R, V, a, i, t]), F = l1(() => {
|
8072
8098
|
const X = v * 2, q = n * (V - X) / t - _.secondary_bar_w, n1 = V - X - _.secondary_bar_w, s1 = n > i ? l.success_400 : l.danger_200, d1 = n > i ? l.success_600 : l.danger_400;
|
8073
8099
|
return {
|
8074
8100
|
value: Math.min(n1, Math.max(0, q)),
|
8075
8101
|
fill: s1,
|
8076
8102
|
fill_value: d1
|
8077
8103
|
};
|
8078
|
-
}, [V, _.secondary_bar_w, n, i, t]),
|
8104
|
+
}, [V, _.secondary_bar_w, n, i, t]), Z = C1(
|
8079
8105
|
(X, K, q) => {
|
8080
8106
|
const { width: n1 } = X.current.getBBox(), s1 = q === "middle" ? V - n1 + n1 / 2 : q === "end" ? V - n1 : V - n1 + n1, d1 = q === "middle" ? n1 / 2 : q === "end" ? 10 : n1 + 10;
|
8081
8107
|
return Math.min(s1, Math.max(d1, K));
|
@@ -8085,19 +8111,19 @@ const Re = B.svg`
|
|
8085
8111
|
(X) => {
|
8086
8112
|
const K = _.line_min_x + X, q = _.line_min_x + X;
|
8087
8113
|
return u && u.current || p && p.current ? {
|
8088
|
-
label_top_x:
|
8089
|
-
sublabel_top_x:
|
8114
|
+
label_top_x: Z(u, K, "middle"),
|
8115
|
+
sublabel_top_x: Z(p, q, "middle")
|
8090
8116
|
} : {
|
8091
8117
|
label_top_x: K,
|
8092
8118
|
sublabel_top_x: q
|
8093
8119
|
};
|
8094
8120
|
},
|
8095
|
-
[_.line_min_x,
|
8121
|
+
[_.line_min_x, Z]
|
8096
8122
|
), j = C1(() => {
|
8097
8123
|
const X = _.line_min_x, K = _.line_min_x;
|
8098
8124
|
return m && m.current || M && M.current ? {
|
8099
|
-
label_limit_min_x:
|
8100
|
-
sublabel_limit_min_x:
|
8125
|
+
label_limit_min_x: Z(m, X, "start"),
|
8126
|
+
sublabel_limit_min_x: Z(
|
8101
8127
|
M,
|
8102
8128
|
K,
|
8103
8129
|
"start"
|
@@ -8106,11 +8132,11 @@ const Re = B.svg`
|
|
8106
8132
|
label_limit_min_x: X,
|
8107
8133
|
sublabel_limit_min_x: K
|
8108
8134
|
};
|
8109
|
-
}, [_.line_min_x,
|
8135
|
+
}, [_.line_min_x, Z]), P = C1(() => {
|
8110
8136
|
const X = _.line_max_x, K = _.line_max_x;
|
8111
8137
|
return g && g.current || E && E.current ? {
|
8112
|
-
label_limit_max_x:
|
8113
|
-
sublabel_limit_max_x:
|
8138
|
+
label_limit_max_x: Z(g, X, "end"),
|
8139
|
+
sublabel_limit_max_x: Z(
|
8114
8140
|
E,
|
8115
8141
|
K,
|
8116
8142
|
"end"
|
@@ -8119,7 +8145,7 @@ const Re = B.svg`
|
|
8119
8145
|
label_limit_max_x: X,
|
8120
8146
|
sublabel_limit_max_x: K
|
8121
8147
|
};
|
8122
|
-
}, [_.line_max_x,
|
8148
|
+
}, [_.line_max_x, Z]);
|
8123
8149
|
e1(() => {
|
8124
8150
|
if (h && h.current) {
|
8125
8151
|
const K = () => {
|
@@ -8130,12 +8156,12 @@ const Re = B.svg`
|
|
8130
8156
|
return K(), window.addEventListener("resize", K), () => window.removeEventListener("resize", K);
|
8131
8157
|
}
|
8132
8158
|
}, [h]);
|
8133
|
-
const [x,
|
8159
|
+
const [x, D] = T(0), [w, y] = T(0), [H, S] = T(0), [W, G] = T(0), [N, a1] = T(0), [c1, t1] = T(0);
|
8134
8160
|
return e1(() => {
|
8135
8161
|
const X = F.value;
|
8136
|
-
|
8162
|
+
D(k(X).label_top_x), y(k(X).sublabel_top_x);
|
8137
8163
|
}, [F.value, k]), e1(() => {
|
8138
|
-
|
8164
|
+
S(j().label_limit_min_x), G(j().sublabel_limit_min_x), a1(P().label_limit_max_x), t1(P().sublabel_limit_max_x);
|
8139
8165
|
}, [j, P]), /* @__PURE__ */ L.jsxs(
|
8140
8166
|
Re,
|
8141
8167
|
{
|
@@ -8192,7 +8218,7 @@ const Re = B.svg`
|
|
8192
8218
|
ref: p,
|
8193
8219
|
className: "sublabel_top",
|
8194
8220
|
textAnchor: "middle",
|
8195
|
-
x:
|
8221
|
+
x: w,
|
8196
8222
|
y: 32,
|
8197
8223
|
children: s.format(n) + " " + r
|
8198
8224
|
}
|
@@ -8855,7 +8881,7 @@ const Re = B.svg`
|
|
8855
8881
|
buttonOnClick: i,
|
8856
8882
|
...a
|
8857
8883
|
}) => {
|
8858
|
-
const n =
|
8884
|
+
const n = l1(() => ({
|
8859
8885
|
PlanFinanciar: {
|
8860
8886
|
label: "Plan Financiar",
|
8861
8887
|
icon: /* @__PURE__ */ L.jsx(De, {})
|
@@ -9475,41 +9501,41 @@ const We = B.svg`
|
|
9475
9501
|
currency: $ = "RON",
|
9476
9502
|
dev: v = !1
|
9477
9503
|
}) => {
|
9478
|
-
const _ = new Intl.NumberFormat("RO"), F = Q(null), [
|
9479
|
-
const
|
9480
|
-
const t1 = Math.abs(
|
9504
|
+
const _ = new Intl.NumberFormat("RO"), F = Q(null), [Z, k] = T(0), [j, P] = T(0), x = l1(() => {
|
9505
|
+
const D = Math.abs(Z - i - a), w = Math.abs(j - n - r), y = Math.abs(w / (o - s) * (o - C) + n), H = (D - 3 * c) / 4, S = (c1) => {
|
9506
|
+
const t1 = Math.abs(w / (o - s) * (c1 - C)), X = Math.abs(w / (o - s) * (C - c1)), K = c1 > C ? t1 : X;
|
9481
9507
|
return {
|
9482
9508
|
h: K,
|
9483
9509
|
y: c1 > C ? y - K : y
|
9484
9510
|
};
|
9485
9511
|
}, W = {
|
9486
9512
|
x: i,
|
9487
|
-
y:
|
9513
|
+
y: S(p).y,
|
9488
9514
|
w: H,
|
9489
|
-
h:
|
9490
|
-
text_y: p >= C ? +
|
9515
|
+
h: S(p).h,
|
9516
|
+
text_y: p >= C ? +S(p).y - 12 : +S(p).y + 12 + 10
|
9491
9517
|
}, G = {
|
9492
9518
|
x: i + H + c,
|
9493
|
-
y:
|
9519
|
+
y: S(m).y,
|
9494
9520
|
w: H,
|
9495
|
-
h:
|
9496
|
-
text_y: m >= C ? +
|
9521
|
+
h: S(m).h,
|
9522
|
+
text_y: m >= C ? +S(m).y - 12 : +S(m).y + 12 + 10
|
9497
9523
|
}, N = {
|
9498
9524
|
x: i + H * 2 + c * 2,
|
9499
|
-
y:
|
9525
|
+
y: S(M).y,
|
9500
9526
|
w: H,
|
9501
|
-
h:
|
9502
|
-
text_y: M >= C ? +
|
9527
|
+
h: S(M).h,
|
9528
|
+
text_y: M >= C ? +S(M).y - 12 : +S(M).y + S(M).h + 12 + 10
|
9503
9529
|
}, a1 = {
|
9504
9530
|
x: i + H * 3 + c * 3,
|
9505
|
-
y:
|
9531
|
+
y: S(g).y,
|
9506
9532
|
w: H,
|
9507
|
-
h:
|
9508
|
-
text_y: g >= C ? +
|
9533
|
+
h: S(g).h,
|
9534
|
+
text_y: g >= C ? +S(g).y - 12 : +S(g).y + S(g).h + 12 + 10
|
9509
9535
|
};
|
9510
9536
|
return {
|
9511
|
-
graphW:
|
9512
|
-
graphH:
|
9537
|
+
graphW: D,
|
9538
|
+
graphH: w,
|
9513
9539
|
lineY: y,
|
9514
9540
|
col_1: W,
|
9515
9541
|
col_2: G,
|
@@ -9518,7 +9544,7 @@ const We = B.svg`
|
|
9518
9544
|
paddingLeft: i
|
9519
9545
|
};
|
9520
9546
|
}, [
|
9521
|
-
|
9547
|
+
Z,
|
9522
9548
|
j,
|
9523
9549
|
s,
|
9524
9550
|
o,
|
@@ -9535,12 +9561,12 @@ const We = B.svg`
|
|
9535
9561
|
]);
|
9536
9562
|
return e1(() => {
|
9537
9563
|
if (F && F.current) {
|
9538
|
-
const
|
9564
|
+
const D = () => {
|
9539
9565
|
var y;
|
9540
|
-
const
|
9541
|
-
k(+
|
9566
|
+
const w = (y = F == null ? void 0 : F.current) == null ? void 0 : y.clientWidth;
|
9567
|
+
k(+w), P(t);
|
9542
9568
|
};
|
9543
|
-
return
|
9569
|
+
return D(), window.addEventListener("resize", D), () => window.removeEventListener("resize", D);
|
9544
9570
|
}
|
9545
9571
|
}, [F, t]), /* @__PURE__ */ L.jsxs(
|
9546
9572
|
We,
|
@@ -9548,7 +9574,7 @@ const We = B.svg`
|
|
9548
9574
|
ref: F,
|
9549
9575
|
width: "100%",
|
9550
9576
|
height: "100%",
|
9551
|
-
viewBox: `0 0 ${
|
9577
|
+
viewBox: `0 0 ${Z} ${j}`,
|
9552
9578
|
xmlns: "http://www.w3.org/2000/svg",
|
9553
9579
|
$col1Color: E,
|
9554
9580
|
$col2Color: V,
|
@@ -9755,7 +9781,7 @@ const We = B.svg`
|
|
9755
9781
|
"line",
|
9756
9782
|
{
|
9757
9783
|
x1: 0,
|
9758
|
-
x2:
|
9784
|
+
x2: Z,
|
9759
9785
|
y1: x.lineY,
|
9760
9786
|
y2: x.lineY,
|
9761
9787
|
strokeWidth: 2,
|
@@ -9845,27 +9871,27 @@ const We = B.svg`
|
|
9845
9871
|
currency: r = "RON",
|
9846
9872
|
height: c = 284
|
9847
9873
|
}) => {
|
9848
|
-
const o = new Intl.NumberFormat("RO"), C = Q(null), s = Q(null), h = Q(null), u = Q(null), p = Q(null), [m, M] = T(0), [g, E] = T(0), V =
|
9874
|
+
const o = new Intl.NumberFormat("RO"), C = Q(null), s = Q(null), h = Q(null), u = Q(null), p = Q(null), [m, M] = T(0), [g, E] = T(0), V = l1(() => {
|
9849
9875
|
const _ = g / 2 - 12;
|
9850
|
-
let F,
|
9876
|
+
let F, Z, k, j, P, x, D;
|
9851
9877
|
if (i > t) {
|
9852
|
-
|
9853
|
-
const
|
9854
|
-
F = Math.min(m, Math.max(
|
9878
|
+
Z = m - 1;
|
9879
|
+
const w = t * m / i;
|
9880
|
+
F = Math.min(m, Math.max(w, 1)), k = Math.min(m, Math.max(m * t / i, 0)), P = F, x = m - k, D = l.danger_500;
|
9855
9881
|
} else {
|
9856
9882
|
F = m - 1;
|
9857
|
-
const
|
9858
|
-
|
9883
|
+
const w = i * m / t;
|
9884
|
+
Z = Math.min(m, Math.max(w, 1)), k = Math.min(m, Math.max(m * i / t, 0)), P = Z, x = m - k, D = l.success_500;
|
9859
9885
|
}
|
9860
9886
|
return j = l.success_400, {
|
9861
9887
|
bar_h: 24,
|
9862
9888
|
bar_y: _,
|
9863
9889
|
secondary_bar_w: k,
|
9864
9890
|
limit_top_x: F,
|
9865
|
-
limit_bottom_x:
|
9891
|
+
limit_bottom_x: Z,
|
9866
9892
|
dynamic_bar_x: P,
|
9867
9893
|
dynamic_bar_w: x,
|
9868
|
-
dynamic_fill_color:
|
9894
|
+
dynamic_fill_color: D,
|
9869
9895
|
secondary_fill_color: j
|
9870
9896
|
};
|
9871
9897
|
}, [m, g, i, t]), b = C1(
|
@@ -9877,8 +9903,8 @@ const We = B.svg`
|
|
9877
9903
|
x: Math.max(v, _)
|
9878
9904
|
},
|
9879
9905
|
[m]
|
9880
|
-
), R =
|
9881
|
-
var F,
|
9906
|
+
), R = l1(() => {
|
9907
|
+
var F, Z;
|
9882
9908
|
const v = {
|
9883
9909
|
x: V.limit_top_x - 10,
|
9884
9910
|
textAnchor: "end"
|
@@ -9887,7 +9913,7 @@ const We = B.svg`
|
|
9887
9913
|
textAnchor: "end"
|
9888
9914
|
};
|
9889
9915
|
if (s && s.current || h && h.current) {
|
9890
|
-
const k = ((F = s.current) == null ? void 0 : F.getBBox().width) ?? 0, j = ((
|
9916
|
+
const k = ((F = s.current) == null ? void 0 : F.getBBox().width) ?? 0, j = ((Z = h.current) == null ? void 0 : Z.getBBox().width) ?? 0, P = Math.max(k, j);
|
9891
9917
|
return {
|
9892
9918
|
limitMinLabel: {
|
9893
9919
|
x: b(P, v.x).x,
|
@@ -9903,8 +9929,8 @@ const We = B.svg`
|
|
9903
9929
|
limitMinLabel: v,
|
9904
9930
|
limitMinSublabel: _
|
9905
9931
|
};
|
9906
|
-
}, [V.limit_top_x]), $ =
|
9907
|
-
var F,
|
9932
|
+
}, [V.limit_top_x]), $ = l1(() => {
|
9933
|
+
var F, Z;
|
9908
9934
|
const v = {
|
9909
9935
|
x: V.limit_bottom_x - 10,
|
9910
9936
|
textAnchor: "end"
|
@@ -9913,7 +9939,7 @@ const We = B.svg`
|
|
9913
9939
|
textAnchor: "end"
|
9914
9940
|
};
|
9915
9941
|
if (u && u.current || p && p.current) {
|
9916
|
-
const k = ((F = u.current) == null ? void 0 : F.getBBox().width) ?? 0, j = ((
|
9942
|
+
const k = ((F = u.current) == null ? void 0 : F.getBBox().width) ?? 0, j = ((Z = p.current) == null ? void 0 : Z.getBBox().width) ?? 0, P = Math.max(k, j);
|
9917
9943
|
return {
|
9918
9944
|
limitMaxLabel: {
|
9919
9945
|
x: b(P, v.x).x,
|
@@ -10061,16 +10087,16 @@ const We = B.svg`
|
|
10061
10087
|
const h = new Intl.NumberFormat("RO", {
|
10062
10088
|
minimumFractionDigits: c,
|
10063
10089
|
maximumFractionDigits: c
|
10064
|
-
}), u = Q(null), [p, m] = T(0), [M, g] = T(0), E =
|
10065
|
-
const R = M / 2 - 12, $ = Math.min(p, Math.max(p * a / t, 0)), v = a * p / t - 1, _ = Math.min(p, Math.max(v, 0.5)), F = i * p / t - 1,
|
10090
|
+
}), u = Q(null), [p, m] = T(0), [M, g] = T(0), E = l1(() => {
|
10091
|
+
const R = M / 2 - 12, $ = Math.min(p, Math.max(p * a / t, 0)), v = a * p / t - 1, _ = Math.min(p, Math.max(v, 0.5)), F = i * p / t - 1, Z = Math.min(p, Math.max(F, 1));
|
10066
10092
|
return {
|
10067
10093
|
bar_h: 24,
|
10068
10094
|
bar_y: R,
|
10069
10095
|
secondary_bar_w: $,
|
10070
10096
|
line_min_x: _,
|
10071
|
-
line_max_x:
|
10097
|
+
line_max_x: Z
|
10072
10098
|
};
|
10073
|
-
}, [p, M, i, a, t]), V =
|
10099
|
+
}, [p, M, i, a, t]), V = l1(() => {
|
10074
10100
|
const R = n * p / t - E.secondary_bar_w, $ = p - E.secondary_bar_w, v = n >= i ? l.success_200 : l.danger_200, _ = n >= i ? l.success_500 : l.danger_500, F = n >= i ? l.success_800 : l.danger_800;
|
10075
10101
|
return {
|
10076
10102
|
value: Math.min($, Math.max(0, R)),
|
@@ -10231,9 +10257,9 @@ const We = B.svg`
|
|
10231
10257
|
currency: _ = "RON",
|
10232
10258
|
dev: F = !1
|
10233
10259
|
}) => {
|
10234
|
-
const
|
10235
|
-
const H = Math.abs(j - i - a),
|
10236
|
-
const q = Math.abs(
|
10260
|
+
const Z = new Intl.NumberFormat("RO"), k = Q(null), [j, P] = T(0), [x, D] = T(0), w = Q(null), y = l1(() => {
|
10261
|
+
const H = Math.abs(j - i - a), S = Math.abs(x - n - r), W = Math.abs(S / (o - s) * (o - C) + n), G = (H - 3 * c) / 4, N = (K) => {
|
10262
|
+
const q = Math.abs(S / o * K), n1 = Math.abs(S + n - q);
|
10237
10263
|
return {
|
10238
10264
|
h: q,
|
10239
10265
|
y: n1
|
@@ -10265,7 +10291,7 @@ const We = B.svg`
|
|
10265
10291
|
};
|
10266
10292
|
return {
|
10267
10293
|
graphW: H,
|
10268
|
-
graphH:
|
10294
|
+
graphH: S,
|
10269
10295
|
lineY: W,
|
10270
10296
|
col_1: a1,
|
10271
10297
|
col_2: c1,
|
@@ -10288,14 +10314,14 @@ const We = B.svg`
|
|
10288
10314
|
g,
|
10289
10315
|
E,
|
10290
10316
|
V,
|
10291
|
-
|
10317
|
+
w
|
10292
10318
|
]);
|
10293
10319
|
return e1(() => {
|
10294
10320
|
if (k && k.current) {
|
10295
10321
|
const H = () => {
|
10296
10322
|
var W;
|
10297
|
-
const
|
10298
|
-
P(+
|
10323
|
+
const S = (W = k == null ? void 0 : k.current) == null ? void 0 : W.clientWidth;
|
10324
|
+
P(+S), D(t);
|
10299
10325
|
};
|
10300
10326
|
return H(), window.addEventListener("resize", H), () => window.removeEventListener("resize", H);
|
10301
10327
|
}
|
@@ -10330,7 +10356,7 @@ const We = B.svg`
|
|
10330
10356
|
textAnchor: "middle",
|
10331
10357
|
x: y.col_1.x + y.col_1.w / 2,
|
10332
10358
|
y: 16,
|
10333
|
-
children:
|
10359
|
+
children: Z.format(M) + ` ${_}`
|
10334
10360
|
}
|
10335
10361
|
),
|
10336
10362
|
/* @__PURE__ */ L.jsx(
|
@@ -10371,7 +10397,7 @@ const We = B.svg`
|
|
10371
10397
|
textAnchor: "middle",
|
10372
10398
|
x: y.col_2.x + y.col_2.w / 2,
|
10373
10399
|
y: 16,
|
10374
|
-
children:
|
10400
|
+
children: Z.format(g) + ` ${_}`
|
10375
10401
|
}
|
10376
10402
|
),
|
10377
10403
|
/* @__PURE__ */ L.jsx(
|
@@ -10412,7 +10438,7 @@ const We = B.svg`
|
|
10412
10438
|
textAnchor: "middle",
|
10413
10439
|
x: y.col_3.x + y.col_3.w / 2,
|
10414
10440
|
y: 16,
|
10415
|
-
children:
|
10441
|
+
children: Z.format(E) + ` ${_}`
|
10416
10442
|
}
|
10417
10443
|
),
|
10418
10444
|
/* @__PURE__ */ L.jsx(
|
@@ -10453,7 +10479,7 @@ const We = B.svg`
|
|
10453
10479
|
textAnchor: "middle",
|
10454
10480
|
x: y.col_4.x + y.col_4.w / 2,
|
10455
10481
|
y: 16,
|
10456
|
-
children:
|
10482
|
+
children: Z.format(V) + ` ${_}`
|
10457
10483
|
}
|
10458
10484
|
),
|
10459
10485
|
/* @__PURE__ */ L.jsx(
|
@@ -10489,8 +10515,8 @@ const We = B.svg`
|
|
10489
10515
|
}
|
10490
10516
|
),
|
10491
10517
|
/* @__PURE__ */ L.jsx("text", { className: "text", textAnchor: "start", x: 0, y: y.lineY - 26, children: h }),
|
10492
|
-
/* @__PURE__ */ L.jsx("text", { className: "text", textAnchor: "start", x: 0, y: y.lineY - 6, children:
|
10493
|
-
/* @__PURE__ */ L.jsx("text", { className: "text", textAnchor: "start", x: 0, y: y.lineY + 18, children:
|
10518
|
+
/* @__PURE__ */ L.jsx("text", { className: "text", textAnchor: "start", x: 0, y: y.lineY - 6, children: Z.format(u) + ` ${_}` }),
|
10519
|
+
/* @__PURE__ */ L.jsx("text", { className: "text", textAnchor: "start", x: 0, y: y.lineY + 18, children: Z.format(p) + ` ${_} x` }),
|
10494
10520
|
/* @__PURE__ */ L.jsx("text", { className: "text", textAnchor: "start", x: 0, y: y.lineY + 36, children: m + " luni" }),
|
10495
10521
|
/* @__PURE__ */ L.jsx(
|
10496
10522
|
"line",
|
@@ -10747,12 +10773,12 @@ const We = B.svg`
|
|
10747
10773
|
currency: v = "RON",
|
10748
10774
|
dev: _ = !1
|
10749
10775
|
}) => {
|
10750
|
-
const F = new Intl.NumberFormat("RO"),
|
10751
|
-
const y = Math.abs(k - i - a), H = Math.abs(P - n - r),
|
10776
|
+
const F = new Intl.NumberFormat("RO"), Z = Q(null), [k, j] = T(0), [P, x] = T(0), D = Q(null), w = l1(() => {
|
10777
|
+
const y = Math.abs(k - i - a), H = Math.abs(P - n - r), S = Math.abs(H / (o - s) * (o - C) + n), W = (y - 2 * c) / 3, G = (t1) => {
|
10752
10778
|
const X = Math.abs(H / (o - s) * (t1 - C)), K = Math.abs(H / (o - s) * (C - t1)), q = t1 > C ? X : K;
|
10753
10779
|
return {
|
10754
10780
|
h: q,
|
10755
|
-
y: t1 > C ?
|
10781
|
+
y: t1 > C ? S - q : S
|
10756
10782
|
};
|
10757
10783
|
}, N = {
|
10758
10784
|
x: i,
|
@@ -10776,7 +10802,7 @@ const We = B.svg`
|
|
10776
10802
|
return {
|
10777
10803
|
graphW: y,
|
10778
10804
|
graphH: H,
|
10779
|
-
lineY:
|
10805
|
+
lineY: S,
|
10780
10806
|
col_1: N,
|
10781
10807
|
col_2: a1,
|
10782
10808
|
col_3: c1,
|
@@ -10796,21 +10822,21 @@ const We = B.svg`
|
|
10796
10822
|
g,
|
10797
10823
|
E,
|
10798
10824
|
V,
|
10799
|
-
|
10825
|
+
D
|
10800
10826
|
]);
|
10801
10827
|
return e1(() => {
|
10802
|
-
if (
|
10828
|
+
if (Z && Z.current) {
|
10803
10829
|
const y = () => {
|
10804
|
-
var
|
10805
|
-
const H = (
|
10830
|
+
var S;
|
10831
|
+
const H = (S = Z == null ? void 0 : Z.current) == null ? void 0 : S.clientWidth;
|
10806
10832
|
j(+H), x(t);
|
10807
10833
|
};
|
10808
10834
|
return y(), window.addEventListener("resize", y), () => window.removeEventListener("resize", y);
|
10809
10835
|
}
|
10810
|
-
}, [
|
10836
|
+
}, [Z, t]), /* @__PURE__ */ L.jsxs(
|
10811
10837
|
it,
|
10812
10838
|
{
|
10813
|
-
ref:
|
10839
|
+
ref: Z,
|
10814
10840
|
width: "100%",
|
10815
10841
|
height: "100%",
|
10816
10842
|
viewBox: `0 0 ${k} ${P}`,
|
@@ -10824,9 +10850,9 @@ const We = B.svg`
|
|
10824
10850
|
"rect",
|
10825
10851
|
{
|
10826
10852
|
className: "dev-graph",
|
10827
|
-
width:
|
10828
|
-
height:
|
10829
|
-
x:
|
10853
|
+
width: w.graphW,
|
10854
|
+
height: w.graphH,
|
10855
|
+
x: w.paddingLeft,
|
10830
10856
|
y: n
|
10831
10857
|
}
|
10832
10858
|
),
|
@@ -10835,8 +10861,8 @@ const We = B.svg`
|
|
10835
10861
|
{
|
10836
10862
|
className: "col_1_text",
|
10837
10863
|
textAnchor: "middle",
|
10838
|
-
x:
|
10839
|
-
y:
|
10864
|
+
x: w.col_1.x + w.col_1.w / 2,
|
10865
|
+
y: w.col_1.text_y,
|
10840
10866
|
children: F.format(g) + ` ${v}`
|
10841
10867
|
}
|
10842
10868
|
),
|
@@ -10844,17 +10870,17 @@ const We = B.svg`
|
|
10844
10870
|
"rect",
|
10845
10871
|
{
|
10846
10872
|
className: "col_1_rect",
|
10847
|
-
width:
|
10848
|
-
height:
|
10849
|
-
x:
|
10850
|
-
y:
|
10873
|
+
width: w.col_1.w,
|
10874
|
+
height: w.col_1.h,
|
10875
|
+
x: w.col_1.x,
|
10876
|
+
y: w.col_1.y
|
10851
10877
|
}
|
10852
10878
|
),
|
10853
10879
|
/* @__PURE__ */ L.jsx(
|
10854
10880
|
"line",
|
10855
10881
|
{
|
10856
|
-
x1:
|
10857
|
-
x2:
|
10882
|
+
x1: w.col_1.x,
|
10883
|
+
x2: w.col_1.x + w.col_1.w,
|
10858
10884
|
y1: P - 27,
|
10859
10885
|
y2: P - 27,
|
10860
10886
|
strokeWidth: 1,
|
@@ -10866,7 +10892,7 @@ const We = B.svg`
|
|
10866
10892
|
{
|
10867
10893
|
className: "col_1_sub_text",
|
10868
10894
|
textAnchor: "middle",
|
10869
|
-
x:
|
10895
|
+
x: w.col_1.x + w.col_1.w / 2,
|
10870
10896
|
y: P - 5,
|
10871
10897
|
children: p
|
10872
10898
|
}
|
@@ -10876,8 +10902,8 @@ const We = B.svg`
|
|
10876
10902
|
{
|
10877
10903
|
className: "col_2_text",
|
10878
10904
|
textAnchor: "middle",
|
10879
|
-
x:
|
10880
|
-
y:
|
10905
|
+
x: w.col_2.x + w.col_2.w / 2,
|
10906
|
+
y: w.col_2.text_y,
|
10881
10907
|
children: F.format(E) + ` ${v}`
|
10882
10908
|
}
|
10883
10909
|
),
|
@@ -10885,17 +10911,17 @@ const We = B.svg`
|
|
10885
10911
|
"rect",
|
10886
10912
|
{
|
10887
10913
|
className: "col_2_rect",
|
10888
|
-
width:
|
10889
|
-
height:
|
10890
|
-
x:
|
10891
|
-
y:
|
10914
|
+
width: w.col_2.w,
|
10915
|
+
height: w.col_2.h,
|
10916
|
+
x: w.col_2.x,
|
10917
|
+
y: w.col_2.y
|
10892
10918
|
}
|
10893
10919
|
),
|
10894
10920
|
/* @__PURE__ */ L.jsx(
|
10895
10921
|
"line",
|
10896
10922
|
{
|
10897
|
-
x1:
|
10898
|
-
x2:
|
10923
|
+
x1: w.col_2.x,
|
10924
|
+
x2: w.col_2.x + w.col_2.w,
|
10899
10925
|
y1: P - 27,
|
10900
10926
|
y2: P - 27,
|
10901
10927
|
strokeWidth: 1,
|
@@ -10907,7 +10933,7 @@ const We = B.svg`
|
|
10907
10933
|
{
|
10908
10934
|
className: "col_1_sub_text",
|
10909
10935
|
textAnchor: "middle",
|
10910
|
-
x:
|
10936
|
+
x: w.col_2.x + w.col_2.w / 2,
|
10911
10937
|
y: P - 5,
|
10912
10938
|
children: m
|
10913
10939
|
}
|
@@ -10917,8 +10943,8 @@ const We = B.svg`
|
|
10917
10943
|
{
|
10918
10944
|
className: "col_3_text",
|
10919
10945
|
textAnchor: "middle",
|
10920
|
-
x:
|
10921
|
-
y:
|
10946
|
+
x: w.col_3.x + w.col_3.w / 2,
|
10947
|
+
y: w.col_3.text_y,
|
10922
10948
|
children: F.format(V) + ` ${v}`
|
10923
10949
|
}
|
10924
10950
|
),
|
@@ -10926,17 +10952,17 @@ const We = B.svg`
|
|
10926
10952
|
"rect",
|
10927
10953
|
{
|
10928
10954
|
className: "col_3_rect",
|
10929
|
-
width:
|
10930
|
-
height:
|
10931
|
-
x:
|
10932
|
-
y:
|
10955
|
+
width: w.col_3.w,
|
10956
|
+
height: w.col_3.h,
|
10957
|
+
x: w.col_3.x,
|
10958
|
+
y: w.col_3.y
|
10933
10959
|
}
|
10934
10960
|
),
|
10935
10961
|
/* @__PURE__ */ L.jsx(
|
10936
10962
|
"line",
|
10937
10963
|
{
|
10938
|
-
x1:
|
10939
|
-
x2:
|
10964
|
+
x1: w.col_3.x,
|
10965
|
+
x2: w.col_3.x + w.col_3.w,
|
10940
10966
|
y1: P - 27,
|
10941
10967
|
y2: P - 27,
|
10942
10968
|
strokeWidth: 1,
|
@@ -10948,7 +10974,7 @@ const We = B.svg`
|
|
10948
10974
|
{
|
10949
10975
|
className: "col_1_sub_text",
|
10950
10976
|
textAnchor: "middle",
|
10951
|
-
x:
|
10977
|
+
x: w.col_3.x + w.col_3.w / 2,
|
10952
10978
|
y: P - 5,
|
10953
10979
|
children: M
|
10954
10980
|
}
|
@@ -10959,7 +10985,7 @@ const We = B.svg`
|
|
10959
10985
|
className: "textLeft",
|
10960
10986
|
textAnchor: "start",
|
10961
10987
|
x: 0,
|
10962
|
-
y:
|
10988
|
+
y: w.lineY - 26,
|
10963
10989
|
children: h
|
10964
10990
|
}
|
10965
10991
|
),
|
@@ -10969,7 +10995,7 @@ const We = B.svg`
|
|
10969
10995
|
className: "textValueLeft",
|
10970
10996
|
textAnchor: "start",
|
10971
10997
|
x: 0,
|
10972
|
-
y:
|
10998
|
+
y: w.lineY - 6,
|
10973
10999
|
children: F.format(u) + ` ${v}`
|
10974
11000
|
}
|
10975
11001
|
),
|
@@ -10978,8 +11004,8 @@ const We = B.svg`
|
|
10978
11004
|
{
|
10979
11005
|
x1: 0,
|
10980
11006
|
x2: k,
|
10981
|
-
y1:
|
10982
|
-
y2:
|
11007
|
+
y1: w.lineY,
|
11008
|
+
y2: w.lineY,
|
10983
11009
|
strokeWidth: 2,
|
10984
11010
|
stroke: l.gray_950
|
10985
11011
|
}
|
@@ -11099,13 +11125,13 @@ const We = B.svg`
|
|
11099
11125
|
}, []), E = C1(() => {
|
11100
11126
|
const R = p == null ? void 0 : p.current, $ = C == null ? void 0 : C.current;
|
11101
11127
|
if (!R || !$) return;
|
11102
|
-
const v = R.getBoundingClientRect(), _ = $.getBoundingClientRect(), F = _.left + window.scrollX,
|
11103
|
-
top: P ? `${
|
11128
|
+
const v = R.getBoundingClientRect(), _ = $.getBoundingClientRect(), F = _.left + window.scrollX, Z = _.top + window.scrollY, k = window.innerHeight - _.bottom, j = _.top, P = v.height + 50 > k && j + 150 > k, x = {
|
11129
|
+
top: P ? `${Z - v.height - 10}px` : `${Z + _.height}px`,
|
11104
11130
|
left: `${F}px`,
|
11105
11131
|
marginTop: P ? "auto" : "10px",
|
11106
11132
|
marginBottom: P ? "10px" : "auto"
|
11107
11133
|
};
|
11108
|
-
M((
|
11134
|
+
M((D) => JSON.stringify(D) === JSON.stringify(x) ? D : x);
|
11109
11135
|
}, []), V = C1(() => o ? E() : g(), [o, g, E]);
|
11110
11136
|
e1(() => (V(), window.addEventListener("resize", V), window.addEventListener("scroll", V, !0), () => {
|
11111
11137
|
window.removeEventListener("resize", V), window.removeEventListener("scroll", V, !0);
|
@@ -12997,22 +13023,22 @@ const Ct = B.button`
|
|
12997
13023
|
disabled: C = !1,
|
12998
13024
|
...s
|
12999
13025
|
}) => {
|
13000
|
-
const h = Q(null), [u, p] = T(!1), [m, M] = T(""), [g, E] = T(!1), [V, b] = T(""), [R, $] = T(""), [v, _] = T(""), [F,
|
13026
|
+
const h = Q(null), [u, p] = T(!1), [m, M] = T(""), [g, E] = T(!1), [V, b] = T(""), [R, $] = T(""), [v, _] = T(""), [F, Z] = T(""), k = Q(!1), j = l1(() => {
|
13001
13027
|
var H;
|
13002
13028
|
return !V || !g ? [] : ((H = i3.find(
|
13003
|
-
(
|
13029
|
+
(S) => S.title.toLowerCase() === V.toLowerCase()
|
13004
13030
|
)) == null ? void 0 : H.localitati) ?? [];
|
13005
|
-
}, [V, g]), P =
|
13031
|
+
}, [V, g]), P = l1(() => {
|
13006
13032
|
const H = m.toLowerCase();
|
13007
13033
|
return H ? (g ? j : i3).filter(
|
13008
|
-
(
|
13034
|
+
(S) => S.title.toLowerCase().includes(H)
|
13009
13035
|
) : g ? j : i3;
|
13010
13036
|
}, [m, g, j]), x = C1(
|
13011
13037
|
(H) => {
|
13012
13038
|
M(H.target.value);
|
13013
13039
|
},
|
13014
13040
|
[]
|
13015
|
-
),
|
13041
|
+
), D = C1(
|
13016
13042
|
(H) => {
|
13017
13043
|
if (k.current = !0, !g) {
|
13018
13044
|
b(H.title);
|
@@ -13021,7 +13047,7 @@ const Ct = B.button`
|
|
13021
13047
|
$(H.title), _(H.clasificare ?? "");
|
13022
13048
|
},
|
13023
13049
|
[g]
|
13024
|
-
),
|
13050
|
+
), w = C1(() => {
|
13025
13051
|
k.current = !0, E(!1), M(""), $(""), _("");
|
13026
13052
|
}, []), y = C1(() => {
|
13027
13053
|
if (k.current = !0, !g && V) {
|
@@ -13030,11 +13056,11 @@ const Ct = B.button`
|
|
13030
13056
|
}
|
13031
13057
|
if (!R) return;
|
13032
13058
|
const H = `${V} - ${R}`;
|
13033
|
-
E(!0), p(!1),
|
13059
|
+
E(!0), p(!1), Z(H), r && r({ judet: V, localitate: R, clasificare: v });
|
13034
13060
|
}, [g, V, R, v, r]);
|
13035
13061
|
return e1(() => {
|
13036
|
-
const H = (
|
13037
|
-
if (h.current && !h.current.contains(
|
13062
|
+
const H = (S) => {
|
13063
|
+
if (h.current && !h.current.contains(S.target)) {
|
13038
13064
|
if (p(!1), n != null && n.judet) {
|
13039
13065
|
b(n == null ? void 0 : n.judet), E(!0), n != null && n.localitate && ($(n == null ? void 0 : n.localitate), _((n == null ? void 0 : n.clasificare) ?? ""));
|
13040
13066
|
return;
|
@@ -13049,7 +13075,7 @@ const Ct = B.button`
|
|
13049
13075
|
}, [h, u]), e1(() => {
|
13050
13076
|
if (k.current) return;
|
13051
13077
|
let H = "";
|
13052
|
-
n != null && n.judet && (b(n == null ? void 0 : n.judet), H = `${n == null ? void 0 : n.judet}`, E(!0)), n != null && n.localitate && ($(n == null ? void 0 : n.localitate), n != null && n.judet && (H = `${n == null ? void 0 : n.judet} - ${n == null ? void 0 : n.localitate}`)), n != null && n.clasificare && _(n == null ? void 0 : n.clasificare),
|
13078
|
+
n != null && n.judet && (b(n == null ? void 0 : n.judet), H = `${n == null ? void 0 : n.judet}`, E(!0)), n != null && n.localitate && ($(n == null ? void 0 : n.localitate), n != null && n.judet && (H = `${n == null ? void 0 : n.judet} - ${n == null ? void 0 : n.localitate}`)), n != null && n.clasificare && _(n == null ? void 0 : n.clasificare), Z(H);
|
13053
13079
|
}, [n]), /* @__PURE__ */ L.jsxs(
|
13054
13080
|
dt,
|
13055
13081
|
{
|
@@ -13096,14 +13122,14 @@ const Ct = B.button`
|
|
13096
13122
|
)
|
13097
13123
|
] })
|
13098
13124
|
] }),
|
13099
|
-
/* @__PURE__ */ L.jsx("div", { children: /* @__PURE__ */ L.jsx("div", { children: P.length > 0 ? P.map((H,
|
13125
|
+
/* @__PURE__ */ L.jsx("div", { children: /* @__PURE__ */ L.jsx("div", { children: P.length > 0 ? P.map((H, S) => /* @__PURE__ */ L.jsx(
|
13100
13126
|
"div",
|
13101
13127
|
{
|
13102
13128
|
"data-active": g ? R === H.title : V === H.title,
|
13103
|
-
onClick: () =>
|
13129
|
+
onClick: () => D(H),
|
13104
13130
|
children: /* @__PURE__ */ L.jsx("span", { children: H.title })
|
13105
13131
|
},
|
13106
|
-
|
13132
|
+
S
|
13107
13133
|
)) : /* @__PURE__ */ L.jsx("div", { className: "k3m8n9p4v2", children: /* @__PURE__ */ L.jsx("span", { children: "Nu au fost gasite rezultate." }) }) }) }),
|
13108
13134
|
/* @__PURE__ */ L.jsxs("div", { children: [
|
13109
13135
|
g && /* @__PURE__ */ L.jsx(
|
@@ -13113,7 +13139,7 @@ const Ct = B.button`
|
|
13113
13139
|
intent: "accent",
|
13114
13140
|
variant: "secondaryOutlined",
|
13115
13141
|
size: "medium",
|
13116
|
-
onClick:
|
13142
|
+
onClick: w
|
13117
13143
|
}
|
13118
13144
|
),
|
13119
13145
|
/* @__PURE__ */ L.jsx(
|
@@ -13228,17 +13254,17 @@ const Ct = B.button`
|
|
13228
13254
|
card_de_credit: "Card de credit",
|
13229
13255
|
overdraft: "Overdraft",
|
13230
13256
|
credit_ipotecar: "Credit ipotecar"
|
13231
|
-
}, R =
|
13257
|
+
}, R = l1(() => !c || c.length === 0 ? [] : c.map((H, S) => {
|
13232
13258
|
if (H.tipCredit === "card_de_credit" || H.tipCredit === "overdraft") {
|
13233
13259
|
const W = Number(H.limitaAprobata) / 100 * 3;
|
13234
13260
|
return {
|
13235
|
-
id: String(
|
13261
|
+
id: String(S + 1),
|
13236
13262
|
rata: String(W.toFixed(0)),
|
13237
13263
|
...H
|
13238
13264
|
};
|
13239
13265
|
}
|
13240
13266
|
return {
|
13241
|
-
id: String(
|
13267
|
+
id: String(S + 1),
|
13242
13268
|
limitaAprobata: "0",
|
13243
13269
|
...H
|
13244
13270
|
};
|
@@ -13261,25 +13287,25 @@ const Ct = B.button`
|
|
13261
13287
|
}
|
13262
13288
|
], F = () => {
|
13263
13289
|
u(!0);
|
13264
|
-
},
|
13290
|
+
}, Z = l1(() => ({
|
13265
13291
|
rata: p === "card_de_credit" || p === "overdraft",
|
13266
13292
|
limitaAprobata: p === "nevoi_personale" || p === "credit_ipotecar"
|
13267
|
-
}), [p]), k =
|
13293
|
+
}), [p]), k = l1(() => Math.round(
|
13268
13294
|
$.reduce((y, H) => y + Number(H.rata), 0)
|
13269
13295
|
).toFixed(0), [$]);
|
13270
13296
|
e1(() => {
|
13271
13297
|
C && C(String(k));
|
13272
13298
|
}, [$, k]);
|
13273
13299
|
const j = (y, H) => {
|
13274
|
-
if (H === "limitaAprobata" &&
|
13275
|
-
const
|
13300
|
+
if (H === "limitaAprobata" && Z.limitaAprobata || H === "rata" && Z.rata) return;
|
13301
|
+
const S = y === "0" || y.startsWith("0.") ? y : y.replace(/^0+/, "");
|
13276
13302
|
if (H === "limitaAprobata") {
|
13277
|
-
const W = Number(
|
13303
|
+
const W = Number(S) / 100 * 3;
|
13278
13304
|
V(String(W.toFixed(0)));
|
13279
13305
|
}
|
13280
|
-
H === "limitaAprobata" ? g(
|
13281
|
-
}, P = (y, H,
|
13282
|
-
const W =
|
13306
|
+
H === "limitaAprobata" ? g(S) : V(S);
|
13307
|
+
}, P = (y, H, S) => {
|
13308
|
+
const W = S === "0" || S.startsWith("0.") ? S : S.replace(/^0+/, "");
|
13283
13309
|
v((G) => {
|
13284
13310
|
if (H === "limitaAprobata") {
|
13285
13311
|
const N = Number(W) / 100 * 3;
|
@@ -13296,7 +13322,7 @@ const Ct = B.button`
|
|
13296
13322
|
);
|
13297
13323
|
});
|
13298
13324
|
}, x = C1(() => {
|
13299
|
-
p && (
|
13325
|
+
p && (Z.rata && (!Number(M) || Number(M) < 1) || Z.limitaAprobata && (!Number(E) || Number(E) < 1) || (v((y) => [
|
13300
13326
|
{
|
13301
13327
|
id: String(y.length + 1),
|
13302
13328
|
tipCredit: p,
|
@@ -13305,9 +13331,9 @@ const Ct = B.button`
|
|
13305
13331
|
},
|
13306
13332
|
...y
|
13307
13333
|
]), g("0"), V("0"), m("")));
|
13308
|
-
}, [
|
13309
|
-
v((H) => H.filter((
|
13310
|
-
},
|
13334
|
+
}, [Z, M, E, p]), D = (y) => {
|
13335
|
+
v((H) => H.filter((S) => S.id !== y));
|
13336
|
+
}, w = () => {
|
13311
13337
|
v([]), g("0"), V("0"), m("");
|
13312
13338
|
};
|
13313
13339
|
return e1(() => {
|
@@ -13360,7 +13386,7 @@ const Ct = B.button`
|
|
13360
13386
|
/* @__PURE__ */ L.jsx(M1, { grow: 1, shrink: 1, basis: "0%", children: /* @__PURE__ */ L.jsx(B2, { label: "Limita aprobata", children: /* @__PURE__ */ L.jsx(
|
13361
13387
|
v2,
|
13362
13388
|
{
|
13363
|
-
disabled: !p ||
|
13389
|
+
disabled: !p || Z.limitaAprobata,
|
13364
13390
|
type: "number",
|
13365
13391
|
inputMode: "numeric",
|
13366
13392
|
rightText: "RON",
|
@@ -13378,7 +13404,7 @@ const Ct = B.button`
|
|
13378
13404
|
/* @__PURE__ */ L.jsx(M1, { grow: 1, shrink: 1, basis: "0%", children: /* @__PURE__ */ L.jsx(B2, { label: "Rata", children: /* @__PURE__ */ L.jsx(
|
13379
13405
|
v2,
|
13380
13406
|
{
|
13381
|
-
disabled: !p ||
|
13407
|
+
disabled: !p || Z.rata,
|
13382
13408
|
type: "number",
|
13383
13409
|
rightText: "RON",
|
13384
13410
|
id: "rata",
|
@@ -13462,10 +13488,10 @@ const Ct = B.button`
|
|
13462
13488
|
rightText: "RON",
|
13463
13489
|
size: "small",
|
13464
13490
|
value: y.limitaAprobata,
|
13465
|
-
setValue: (
|
13491
|
+
setValue: (S) => P(
|
13466
13492
|
y.id,
|
13467
13493
|
"limitaAprobata",
|
13468
|
-
|
13494
|
+
S
|
13469
13495
|
),
|
13470
13496
|
numpad: !0,
|
13471
13497
|
numpadFloatNumber: !1,
|
@@ -13482,10 +13508,10 @@ const Ct = B.button`
|
|
13482
13508
|
rightText: "RON",
|
13483
13509
|
size: "small",
|
13484
13510
|
value: y.rata,
|
13485
|
-
setValue: (
|
13511
|
+
setValue: (S) => P(
|
13486
13512
|
y.id,
|
13487
13513
|
"rata",
|
13488
|
-
|
13514
|
+
S
|
13489
13515
|
),
|
13490
13516
|
numpad: !0,
|
13491
13517
|
numpadFloatNumber: !1,
|
@@ -13504,7 +13530,7 @@ const Ct = B.button`
|
|
13504
13530
|
intent: "danger",
|
13505
13531
|
size: "small",
|
13506
13532
|
width: "90px",
|
13507
|
-
onClick: () =>
|
13533
|
+
onClick: () => D(y.id)
|
13508
13534
|
}
|
13509
13535
|
)
|
13510
13536
|
]
|
@@ -13535,7 +13561,7 @@ const Ct = B.button`
|
|
13535
13561
|
label: "Reseteaza",
|
13536
13562
|
variant: "secondaryOutlined",
|
13537
13563
|
intent: "accent",
|
13538
|
-
onClick:
|
13564
|
+
onClick: w,
|
13539
13565
|
width: "90px"
|
13540
13566
|
}
|
13541
13567
|
),
|
@@ -14162,6 +14188,7 @@ const Ct = B.button`
|
|
14162
14188
|
flex-direction: column;
|
14163
14189
|
overflow: hidden;
|
14164
14190
|
cursor: pointer;
|
14191
|
+
background-color: ${l.white};
|
14165
14192
|
|
14166
14193
|
&:hover {
|
14167
14194
|
outline: 2px solid ${l.info_800};
|
@@ -14518,21 +14545,21 @@ const Ct = B.button`
|
|
14518
14545
|
cashConservare: l.purple_300,
|
14519
14546
|
cashLichiditate: l.pink_300
|
14520
14547
|
}, [b, R] = T(83), $ = C1(
|
14521
|
-
(
|
14522
|
-
const k = s ? 0 : (
|
14548
|
+
(Z) => {
|
14549
|
+
const k = s ? 0 : (Z / t || 0) * b;
|
14523
14550
|
return (k > 0 ? Math.max(k, E) : 0).toFixed(2);
|
14524
14551
|
},
|
14525
14552
|
[s, t, b]
|
14526
|
-
), v =
|
14527
|
-
const
|
14553
|
+
), v = l1(() => {
|
14554
|
+
const Z = $(i), k = $(a), j = $(n), P = $(r), x = $(c), D = $(o), w = $(C);
|
14528
14555
|
return {
|
14529
|
-
cash_percentage: Number(
|
14556
|
+
cash_percentage: Number(Z),
|
14530
14557
|
crestere_percentage: Number(k),
|
14531
14558
|
conservare_percentage: Number(j),
|
14532
14559
|
lichiditate_percentage: Number(P),
|
14533
14560
|
cashCrestere_percentage: Number(x),
|
14534
|
-
cashConservare_percentage: Number(
|
14535
|
-
cashLichiditate_percentage: Number(
|
14561
|
+
cashConservare_percentage: Number(D),
|
14562
|
+
cashLichiditate_percentage: Number(w)
|
14536
14563
|
};
|
14537
14564
|
}, [
|
14538
14565
|
i,
|
@@ -14543,14 +14570,14 @@ const Ct = B.button`
|
|
14543
14570
|
o,
|
14544
14571
|
C,
|
14545
14572
|
$
|
14546
|
-
]), _ =
|
14547
|
-
var
|
14573
|
+
]), _ = l1(() => v.crestere_percentage + v.conservare_percentage + v.lichiditate_percentage + v.cashCrestere_percentage + v.cashConservare_percentage + v.cashLichiditate_percentage > 0 ? v.cash_percentage : b, [v, b]), F = C1(() => {
|
14574
|
+
var Z, k;
|
14548
14575
|
if (p.current) {
|
14549
14576
|
const j = p.current.clientWidth, P = Math.max(
|
14550
|
-
((
|
14577
|
+
((Z = m.current) == null ? void 0 : Z.getBBox().width) || 0,
|
14551
14578
|
((k = M.current) == null ? void 0 : k.getBBox().width) || 0
|
14552
|
-
), x = h && M.current ? P + 30 || 65 : 4,
|
14553
|
-
return Number(Math.max(
|
14579
|
+
), x = h && M.current ? P + 30 || 65 : 4, D = (j - Number(x)) / j * 100;
|
14580
|
+
return Number(Math.max(D, 0).toFixed(2));
|
14554
14581
|
}
|
14555
14582
|
return 85;
|
14556
14583
|
}, [h]);
|
@@ -14750,15 +14777,15 @@ const Ct = B.button`
|
|
14750
14777
|
conservare: l.purple_400,
|
14751
14778
|
lichiditate: l.pink_300,
|
14752
14779
|
inflatie: l.danger_500
|
14753
|
-
},
|
14754
|
-
const
|
14755
|
-
let y =
|
14756
|
-
for (let H = 1; H <
|
14757
|
-
const
|
14758
|
-
Number(W.length) * 6.15 < Number(x) ? y = W : (
|
14759
|
-
}
|
14760
|
-
return
|
14761
|
-
}, k =
|
14780
|
+
}, Z = (P, x = 134) => {
|
14781
|
+
const D = P.split(" "), w = [];
|
14782
|
+
let y = D[0];
|
14783
|
+
for (let H = 1; H < D.length; H++) {
|
14784
|
+
const S = D[H], W = `${y} ${S}`;
|
14785
|
+
Number(W.length) * 6.15 < Number(x) ? y = W : (w.push(y), y = S);
|
14786
|
+
}
|
14787
|
+
return w.push(y), w;
|
14788
|
+
}, k = l1(() => {
|
14762
14789
|
if (i === 0 && a === 0 && n === 0 && s)
|
14763
14790
|
return m;
|
14764
14791
|
const P = t - (i || 0) - (a || 0) - (n || 0);
|
@@ -14776,24 +14803,24 @@ const Ct = B.button`
|
|
14776
14803
|
m,
|
14777
14804
|
s,
|
14778
14805
|
V
|
14779
|
-
]), j =
|
14780
|
-
const
|
14781
|
-
(
|
14782
|
-
) : 0, H =
|
14806
|
+
]), j = l1(() => {
|
14807
|
+
const D = M - 54, w = h > t ? h - t : 0, y = w > 0 ? Number(
|
14808
|
+
(w * D / h * E).toFixed(2)
|
14809
|
+
) : 0, H = D - y, S = i + a + n, W = Math.max(t - S, 0), G = Math.max(
|
14783
14810
|
h - (r + c + o),
|
14784
14811
|
0
|
14785
14812
|
), N = {
|
14786
14813
|
crestere: i > 0 ? i * H / t : 0,
|
14787
14814
|
conservare: a > 0 ? a * H / t : 0,
|
14788
14815
|
lichiditate: n > 0 ? n * H / t : 0,
|
14789
|
-
cash: t > 0 ? G *
|
14790
|
-
inflatie: C > 0 ? C / 100 *
|
14816
|
+
cash: t > 0 ? G * D / h : 0,
|
14817
|
+
inflatie: C > 0 ? C / 100 * D + 1 : 0
|
14791
14818
|
}, a1 = Object.entries(N).filter(
|
14792
14819
|
([I1, Q1]) => Q1 > 0 && I1 !== "inflatie"
|
14793
|
-
).length, c1 = (a1 - 1) * 4 + (C > 0 ? 8 : 0), t1 = a1 * 1 + c1 + (C > 0 ? N.inflatie : 0), X = Math.max(0, H - t1), K = Math.max(0,
|
14820
|
+
).length, c1 = (a1 - 1) * 4 + (C > 0 ? 8 : 0), t1 = a1 * 1 + c1 + (C > 0 ? N.inflatie : 0), X = Math.max(0, H - t1), K = Math.max(0, D - t1), q = Object.entries(N).reduce(
|
14794
14821
|
(I1, [Q1, e2]) => Q1 !== "inflatie" ? I1 + e2 : I1,
|
14795
14822
|
0
|
14796
|
-
), n1 = N.crestere > 0 ? 1 + X * N.crestere / q : 0, s1 = N.conservare > 0 ? 1 + X * N.conservare / q : 0, d1 = N.lichiditate > 0 ? 1 + X * N.lichiditate / q : 0, E1 = N.cash > 0 ? 1 + K * N.cash /
|
14823
|
+
), n1 = N.crestere > 0 ? 1 + X * N.crestere / q : 0, s1 = N.conservare > 0 ? 1 + X * N.conservare / q : 0, d1 = N.lichiditate > 0 ? 1 + X * N.lichiditate / q : 0, E1 = N.cash > 0 ? 1 + K * N.cash / D : 0, _1 = N.inflatie > 0 ? Math.min(
|
14797
14824
|
N.inflatie,
|
14798
14825
|
q - (a1 * 1 + c1)
|
14799
14826
|
) : 0;
|
@@ -14821,7 +14848,7 @@ const Ct = B.button`
|
|
14821
14848
|
inflatie_y: K1,
|
14822
14849
|
available_h: H,
|
14823
14850
|
invisible_h: y,
|
14824
|
-
cash_init_h:
|
14851
|
+
cash_init_h: D
|
14825
14852
|
};
|
14826
14853
|
}, [
|
14827
14854
|
t,
|
@@ -14886,7 +14913,7 @@ const Ct = B.button`
|
|
14886
14913
|
y: j.crestere_h > 0 ? j.crestere_y + j.crestere_h / 2 + 5 : 0,
|
14887
14914
|
textAnchor: "middle",
|
14888
14915
|
className: `basic-label ${i > 0 && j.crestere_h >= 18 ? "" : "hidden"}`,
|
14889
|
-
children:
|
14916
|
+
children: Z(
|
14890
14917
|
new Intl.NumberFormat("ro-RO", {
|
14891
14918
|
style: "currency",
|
14892
14919
|
currency: V,
|
@@ -14913,7 +14940,7 @@ const Ct = B.button`
|
|
14913
14940
|
y: j.conservare_h > 0 ? j.conservare_y + j.conservare_h / 2 + 5 : 0,
|
14914
14941
|
textAnchor: "middle",
|
14915
14942
|
className: `basic-label ${a > 0 && j.conservare_h >= 18 ? "" : "hidden"}`,
|
14916
|
-
children:
|
14943
|
+
children: Z(
|
14917
14944
|
new Intl.NumberFormat("ro-RO", {
|
14918
14945
|
style: "currency",
|
14919
14946
|
currency: V,
|
@@ -14940,7 +14967,7 @@ const Ct = B.button`
|
|
14940
14967
|
y: j.lichiditate_h > 0 ? j.lichiditate_y + j.lichiditate_h / 2 + 5 : 0,
|
14941
14968
|
textAnchor: "middle",
|
14942
14969
|
className: `basic-label ${n > 0 && j.lichiditate_h >= 18 ? "" : "hidden"}`,
|
14943
|
-
children:
|
14970
|
+
children: Z(
|
14944
14971
|
new Intl.NumberFormat("ro-RO", {
|
14945
14972
|
style: "currency",
|
14946
14973
|
currency: V,
|
@@ -14967,7 +14994,7 @@ const Ct = B.button`
|
|
14967
14994
|
y: j.remaining_cash > 0 ? j.cash_y + j.cash_h / 2 + 5 : 0,
|
14968
14995
|
textAnchor: "middle",
|
14969
14996
|
className: `basic-label ${j.remaining_cash > 0 && j.cash_h >= 18 ? "" : "hidden"}`,
|
14970
|
-
children:
|
14997
|
+
children: Z(k).map((P, x) => /* @__PURE__ */ L.jsx("tspan", { x: "50%", dy: x === 0 ? "0" : "1.2em", children: P }, x))
|
14971
14998
|
}
|
14972
14999
|
),
|
14973
15000
|
C > 0 && /* @__PURE__ */ L.jsx(
|
@@ -14987,7 +15014,7 @@ const Ct = B.button`
|
|
14987
15014
|
y: j.inflatie_y + j.inflatie_h / 2 + 5,
|
14988
15015
|
textAnchor: "middle",
|
14989
15016
|
className: "inflatie-label",
|
14990
|
-
children:
|
15017
|
+
children: Z(C + "%").map((P, x) => /* @__PURE__ */ L.jsx("tspan", { x: "50%", dy: x === 0 ? "0" : "1.2em", children: P }, x))
|
14991
15018
|
}
|
14992
15019
|
),
|
14993
15020
|
/* @__PURE__ */ L.jsx("text", { textAnchor: "middle", x: "50%", y: "98.5%", className: "label_bottom", children: p })
|
@@ -15881,10 +15908,10 @@ const Ct = B.button`
|
|
15881
15908
|
size: i = 100,
|
15882
15909
|
innerSize: a = 30
|
15883
15910
|
}) => {
|
15884
|
-
const n =
|
15911
|
+
const n = l1(() => Math.max(
|
15885
15912
|
1,
|
15886
15913
|
t.reduce((s, h) => s + h.value, 0)
|
15887
|
-
), [t]), r =
|
15914
|
+
), [t]), r = l1(() => t.length === 1 || t.some((s) => s.value > 0), [t]);
|
15888
15915
|
let c = 0;
|
15889
15916
|
const o = (s) => {
|
15890
15917
|
const h = Math.PI * 2;
|
@@ -15937,10 +15964,10 @@ const Ct = B.button`
|
|
15937
15964
|
value: a = 50,
|
15938
15965
|
width: n = "40px"
|
15939
15966
|
}) => {
|
15940
|
-
const r =
|
15941
|
-
const $ = o / 2 + C / 2 + 2, v = m - (o / 2 + C / 2) + 2, _ = Math.max(t, Math.min(i, a)), F = i - t,
|
15967
|
+
const r = l1(() => Math.random().toString(36).substring(2, 15), []), c = 9, o = c * 2, C = 3, [s, h] = T(0), [u, p] = T(0), [m, M] = T(0), g = Q(null), E = Q(null), V = l1(() => u / 2, [u]), b = l1(() => {
|
15968
|
+
const $ = o / 2 + C / 2 + 2, v = m - (o / 2 + C / 2) + 2, _ = Math.max(t, Math.min(i, a)), F = i - t, Z = F === 0 ? 0.5 : 1 - (_ - t) / F, k = $ + Z * (v - $);
|
15942
15969
|
return isNaN(k) ? $ : k;
|
15943
|
-
}, [o, C, m, t, i, a]), R =
|
15970
|
+
}, [o, C, m, t, i, a]), R = l1(() => {
|
15944
15971
|
let $ = "0%", v = "51.44%", _ = "100%";
|
15945
15972
|
return t <= 0 && i <= 0 && ($ = "0%", v = "0%", _ = "50%"), t > 0 && i > 0 && ($ = "30%", v = "100%", _ = "0%"), {
|
15946
15973
|
positive: $,
|