rbro-tat-uds 1.6.2 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +24 -24
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +228 -246
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -172,7 +172,7 @@ function B9() {
|
|
172
172
|
return typeof H == "function" ? H : null;
|
173
173
|
}
|
174
174
|
var w = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
175
|
-
function
|
175
|
+
function v(s) {
|
176
176
|
{
|
177
177
|
for (var H = arguments.length, P = new Array(H > 1 ? H - 1 : 0), W = 1; W < H; W++)
|
178
178
|
P[W - 1] = arguments[W];
|
@@ -189,10 +189,10 @@ function B9() {
|
|
189
189
|
a1.unshift("Warning: " + H), Function.prototype.apply.call(console[s], console, a1);
|
190
190
|
}
|
191
191
|
}
|
192
|
-
var b = !1,
|
192
|
+
var b = !1, M = !1, R = !1, Z = !1, F = !1, D;
|
193
193
|
D = Symbol.for("react.module.reference");
|
194
194
|
function z(s) {
|
195
|
-
return !!(typeof s == "string" || typeof s == "function" || s === r || s === c || F || s === n || s === f || s === u || Z || s === _ || b ||
|
195
|
+
return !!(typeof s == "string" || typeof s == "function" || s === r || s === c || F || s === n || s === f || s === u || Z || s === _ || b || M || R || typeof s == "object" && s !== null && (s.$$typeof === g || s.$$typeof === h || s.$$typeof === C || s.$$typeof === o || s.$$typeof === p || // This needs to include all possible module reference object
|
196
196
|
// types supported by any Flight configuration anywhere since
|
197
197
|
// we don't know which Flight build this will end up being used
|
198
198
|
// with.
|
@@ -211,7 +211,7 @@ function B9() {
|
|
211
211
|
function $(s) {
|
212
212
|
if (s == null)
|
213
213
|
return null;
|
214
|
-
if (typeof s.tag == "number" &&
|
214
|
+
if (typeof s.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
|
215
215
|
return s.displayName || s.name || null;
|
216
216
|
if (typeof s == "string")
|
217
217
|
return s;
|
@@ -312,7 +312,7 @@ function B9() {
|
|
312
312
|
})
|
313
313
|
});
|
314
314
|
}
|
315
|
-
j < 0 &&
|
315
|
+
j < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
316
316
|
}
|
317
317
|
}
|
318
318
|
var L1 = w.ReactCurrentDispatcher, f1;
|
@@ -464,7 +464,7 @@ function B9() {
|
|
464
464
|
} catch (s1) {
|
465
465
|
q = s1;
|
466
466
|
}
|
467
|
-
q && !(q instanceof Error) && (d2(t1),
|
467
|
+
q && !(q instanceof Error) && (d2(t1), v("%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).", W || "React class", P, J, typeof q), d2(null)), q instanceof Error && !(q.message in x3) && (x3[q.message] = !0, d2(t1), v("Failed %s type: %s", P, q.message), d2(null));
|
468
468
|
}
|
469
469
|
}
|
470
470
|
}
|
@@ -490,7 +490,7 @@ function B9() {
|
|
490
490
|
}
|
491
491
|
function M3(s) {
|
492
492
|
if (s9(s))
|
493
|
-
return
|
493
|
+
return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", d9(s)), v3(s);
|
494
494
|
}
|
495
495
|
var i2 = w.ReactCurrentOwner, p9 = {
|
496
496
|
key: !0,
|
@@ -518,13 +518,13 @@ function B9() {
|
|
518
518
|
function u9(s, H) {
|
519
519
|
if (typeof s.ref == "string" && i2.current && H && i2.current.stateNode !== H) {
|
520
520
|
var P = $(i2.current.type);
|
521
|
-
S2[P] || (
|
521
|
+
S2[P] || (v('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', $(i2.current.type), s.ref), S2[P] = !0);
|
522
522
|
}
|
523
523
|
}
|
524
524
|
function m9(s, H) {
|
525
525
|
{
|
526
526
|
var P = function() {
|
527
|
-
_3 || (_3 = !0,
|
527
|
+
_3 || (_3 = !0, v("%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)", H));
|
528
528
|
};
|
529
529
|
P.isReactWarning = !0, Object.defineProperty(s, "key", {
|
530
530
|
get: P,
|
@@ -535,7 +535,7 @@ function B9() {
|
|
535
535
|
function g9(s, H) {
|
536
536
|
{
|
537
537
|
var P = function() {
|
538
|
-
y3 || (y3 = !0,
|
538
|
+
y3 || (y3 = !0, v("%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)", H));
|
539
539
|
};
|
540
540
|
P.isReactWarning = !0, Object.defineProperty(s, "ref", {
|
541
541
|
get: P,
|
@@ -641,7 +641,7 @@ Check the top-level render call using <` + P + ">.");
|
|
641
641
|
return;
|
642
642
|
b3[P] = !0;
|
643
643
|
var W = "";
|
644
|
-
s && s._owner && s._owner !== D2.current && (W = " It was passed a child from " + $(s._owner.type) + "."), Y1(s),
|
644
|
+
s && s._owner && s._owner !== D2.current && (W = " It was passed a child from " + $(s._owner.type) + "."), Y1(s), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', P, W), Y1(null);
|
645
645
|
}
|
646
646
|
}
|
647
647
|
function R3(s, H) {
|
@@ -683,9 +683,9 @@ Check the top-level render call using <` + P + ">.");
|
|
683
683
|
} else if (H.PropTypes !== void 0 && !P2) {
|
684
684
|
P2 = !0;
|
685
685
|
var t1 = $(H);
|
686
|
-
|
686
|
+
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", t1 || "Unknown");
|
687
687
|
}
|
688
|
-
typeof H.getDefaultProps == "function" && !H.getDefaultProps.isReactClassApproved &&
|
688
|
+
typeof H.getDefaultProps == "function" && !H.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
689
689
|
}
|
690
690
|
}
|
691
691
|
function _9(s) {
|
@@ -693,11 +693,11 @@ Check the top-level render call using <` + P + ">.");
|
|
693
693
|
for (var H = Object.keys(s.props), P = 0; P < H.length; P++) {
|
694
694
|
var W = H[P];
|
695
695
|
if (W !== "children" && W !== "key") {
|
696
|
-
Y1(s),
|
696
|
+
Y1(s), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", W), Y1(null);
|
697
697
|
break;
|
698
698
|
}
|
699
699
|
}
|
700
|
-
s.ref !== null && (Y1(s),
|
700
|
+
s.ref !== null && (Y1(s), v("Invalid attribute `ref` supplied to `React.Fragment`."), Y1(null));
|
701
701
|
}
|
702
702
|
}
|
703
703
|
function k3(s, H, P, W, t1, a1) {
|
@@ -709,7 +709,7 @@ Check the top-level render call using <` + P + ">.");
|
|
709
709
|
var x1 = V9();
|
710
710
|
x1 ? q += x1 : q += w3();
|
711
711
|
var s1;
|
712
|
-
s === null ? s1 = "null" : A2(s) ? s1 = "array" : s !== void 0 && s.$$typeof === L ? (s1 = "<" + ($(s.type) || "Unknown") + " />", q = " Did you accidentally export a JSX literal instead of a component?") : s1 = typeof s,
|
712
|
+
s === null ? s1 = "null" : A2(s) ? s1 = "array" : s !== void 0 && s.$$typeof === L ? (s1 = "<" + ($(s.type) || "Unknown") + " />", q = " Did you accidentally export a JSX literal instead of a component?") : s1 = typeof s, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s1, q);
|
713
713
|
}
|
714
714
|
var p1 = x9(s, H, P, t1, a1);
|
715
715
|
if (p1 == null)
|
@@ -723,7 +723,7 @@ Check the top-level render call using <` + P + ">.");
|
|
723
723
|
R3(Z1[U1], s);
|
724
724
|
Object.freeze && Object.freeze(Z1);
|
725
725
|
} else
|
726
|
-
|
726
|
+
v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
727
727
|
else
|
728
728
|
R3(Z1, s);
|
729
729
|
}
|
@@ -919,17 +919,17 @@ function q9(t) {
|
|
919
919
|
return T9(x2("", null, null, null, [""], t = N9(t), 0, [0], t));
|
920
920
|
}
|
921
921
|
function x2(t, L, a, r, n, c, C, o, p) {
|
922
|
-
for (var f = 0, u = 0, h = C, g = 0, _ = 0, V = 0, x = 1, E = 1, w = 1,
|
923
|
-
switch (V =
|
922
|
+
for (var f = 0, u = 0, h = C, g = 0, _ = 0, V = 0, x = 1, E = 1, w = 1, v = 0, k = "", b = n, M = c, R = r, Z = k; E; )
|
923
|
+
switch (V = v, v = $1()) {
|
924
924
|
case 40:
|
925
925
|
if (V != 108 && u1(Z, h - 1) == 58) {
|
926
|
-
g2(Z += Y(O2(
|
926
|
+
g2(Z += Y(O2(v), "&", "&\f"), "&\f", V6(f ? o[f - 1] : 0)) != -1 && (w = -1);
|
927
927
|
break;
|
928
928
|
}
|
929
929
|
case 34:
|
930
930
|
case 39:
|
931
931
|
case 91:
|
932
|
-
Z += O2(
|
932
|
+
Z += O2(v);
|
933
933
|
break;
|
934
934
|
case 9:
|
935
935
|
case 10:
|
@@ -955,7 +955,7 @@ function x2(t, L, a, r, n, c, C, o, p) {
|
|
955
955
|
case 125 * x:
|
956
956
|
case 59:
|
957
957
|
case 0:
|
958
|
-
switch (
|
958
|
+
switch (v) {
|
959
959
|
case 0:
|
960
960
|
case 125:
|
961
961
|
E = 0;
|
@@ -965,19 +965,19 @@ function x2(t, L, a, r, n, c, C, o, p) {
|
|
965
965
|
case 59:
|
966
966
|
Z += ";";
|
967
967
|
default:
|
968
|
-
if (r2(R = S3(Z, L, a, f, u, n, o, k, b = [],
|
968
|
+
if (r2(R = S3(Z, L, a, f, u, n, o, k, b = [], M = [], h, c), c), v === 123)
|
969
969
|
if (u === 0)
|
970
|
-
x2(Z, L, R, R, b, c, h, o,
|
970
|
+
x2(Z, L, R, R, b, c, h, o, M);
|
971
971
|
else
|
972
972
|
switch (g === 99 && u1(Z, 3) === 110 ? 100 : g) {
|
973
973
|
case 100:
|
974
974
|
case 108:
|
975
975
|
case 109:
|
976
976
|
case 115:
|
977
|
-
x2(t, R, R, r && r2(S3(t, R, R, 0, 0, n, o, k, n, b = [], h,
|
977
|
+
x2(t, R, R, r && r2(S3(t, R, R, 0, 0, n, o, k, n, b = [], h, M), M), n, M, h, o, r ? b : M);
|
978
978
|
break;
|
979
979
|
default:
|
980
|
-
x2(Z, R, R, R, [""],
|
980
|
+
x2(Z, R, R, R, [""], M, 0, o, M);
|
981
981
|
}
|
982
982
|
}
|
983
983
|
f = u = _ = 0, x = w = 1, k = Z = "", h = C;
|
@@ -986,12 +986,12 @@ function x2(t, L, a, r, n, c, C, o, p) {
|
|
986
986
|
h = 1 + k1(Z), _ = V;
|
987
987
|
default:
|
988
988
|
if (x < 1) {
|
989
|
-
if (
|
989
|
+
if (v == 123)
|
990
990
|
--x;
|
991
|
-
else if (
|
991
|
+
else if (v == 125 && x++ == 0 && W9() == 125)
|
992
992
|
continue;
|
993
993
|
}
|
994
|
-
switch (Z += d3(
|
994
|
+
switch (Z += d3(v), v * x) {
|
995
995
|
case 38:
|
996
996
|
w = u > 0 ? 1 : (Z += "\f", -1);
|
997
997
|
break;
|
@@ -999,7 +999,7 @@ function x2(t, L, a, r, n, c, C, o, p) {
|
|
999
999
|
o[f++] = (k1(Z) - 1) * w, w = 1;
|
1000
1000
|
break;
|
1001
1001
|
case 64:
|
1002
|
-
N1() === 45 && (Z += O2($1())), g = N1(), u = h = k1(k = Z += U9(E2())),
|
1002
|
+
N1() === 45 && (Z += O2($1())), g = N1(), u = h = k1(k = Z += U9(E2())), v++;
|
1003
1003
|
break;
|
1004
1004
|
case 45:
|
1005
1005
|
V === 45 && k1(Z) == 2 && (x = 0);
|
@@ -1009,8 +1009,8 @@ function x2(t, L, a, r, n, c, C, o, p) {
|
|
1009
1009
|
}
|
1010
1010
|
function S3(t, L, a, r, n, c, C, o, p, f, u, h) {
|
1011
1011
|
for (var g = n - 1, _ = n === 0 ? c : [""], V = M6(_), x = 0, E = 0, w = 0; x < r; ++x)
|
1012
|
-
for (var
|
1013
|
-
(b = v6(E > 0 ? _[
|
1012
|
+
for (var v = 0, k = J1(t, g + 1, g = V6(E = C[x])), b = t; v < V; ++v)
|
1013
|
+
(b = v6(E > 0 ? _[v] + " " + k : Y(k, /&\f/g, _[v]))) && (p[w++] = b);
|
1014
1014
|
return j2(t, L, a, n === 0 ? R2 : o, p, f, u, h);
|
1015
1015
|
}
|
1016
1016
|
function J9(t, L, a, r) {
|
@@ -1606,10 +1606,10 @@ function R5(t) {
|
|
1606
1606
|
_ === void 0 && (_ = ""), V === void 0 && (V = ""), x === void 0 && (x = "&"), L = x, a = _, r = new RegExp("\\".concat(a, "\\b"), "g");
|
1607
1607
|
var E = g.replace($5, ""), w = q9(V || _ ? "".concat(V, " ").concat(_, " { ").concat(E, " }") : E);
|
1608
1608
|
C.namespace && (w = P6(w, C.namespace));
|
1609
|
-
var
|
1609
|
+
var v = [];
|
1610
1610
|
return y2(w, X9(u.concat(Q9(function(k) {
|
1611
|
-
return
|
1612
|
-
})))),
|
1611
|
+
return v.push(k);
|
1612
|
+
})))), v;
|
1613
1613
|
};
|
1614
1614
|
return h.hash = p.length ? p.reduce(function(g, _) {
|
1615
1615
|
return _.name || l2(15), O1(g, _.name);
|
@@ -1711,11 +1711,11 @@ var B5 = k6(F2), F5 = function() {
|
|
1711
1711
|
u3.Consumer;
|
1712
1712
|
var T2 = {}, U3 = /* @__PURE__ */ new Set();
|
1713
1713
|
function H5(t, L, a) {
|
1714
|
-
var r = h3(t), n = t, c = !N2(t), C = L.attrs, o = C === void 0 ? H2 : C, p = L.componentId, f = p === void 0 ? function(b,
|
1714
|
+
var r = h3(t), n = t, c = !N2(t), C = L.attrs, o = C === void 0 ? H2 : C, p = L.componentId, f = p === void 0 ? function(b, M) {
|
1715
1715
|
var R = typeof b != "string" ? "sc" : z3(b);
|
1716
1716
|
T2[R] = (T2[R] || 0) + 1;
|
1717
1717
|
var Z = "".concat(R, "-").concat(j6(F2 + R + T2[R]));
|
1718
|
-
return
|
1718
|
+
return M ? "".concat(M, "-").concat(Z) : Z;
|
1719
1719
|
}(L.displayName, L.parentComponentId) : p, u = L.displayName, h = u === void 0 ? function(b) {
|
1720
1720
|
return N2(b) ? "styled.".concat(b) : "Styled(".concat(B6(b), ")");
|
1721
1721
|
}(t) : u, g = L.displayName && L.componentId ? "".concat(z3(L.displayName), "-").concat(L.componentId) : L.componentId || f, _ = r && n.attrs ? n.attrs.concat(o).filter(Boolean) : o, V = L.shouldForwardProp;
|
@@ -1723,13 +1723,13 @@ function H5(t, L, a) {
|
|
1723
1723
|
var x = n.shouldForwardProp;
|
1724
1724
|
if (L.shouldForwardProp) {
|
1725
1725
|
var E = L.shouldForwardProp;
|
1726
|
-
V = function(b,
|
1727
|
-
return x(b,
|
1726
|
+
V = function(b, M) {
|
1727
|
+
return x(b, M) && E(b, M);
|
1728
1728
|
};
|
1729
1729
|
} else V = x;
|
1730
1730
|
}
|
1731
1731
|
var w = new F5(a, g, r ? n.componentStyle : void 0);
|
1732
|
-
function
|
1732
|
+
function v(b, M) {
|
1733
1733
|
return function(R, Z, F) {
|
1734
1734
|
var D = R.attrs, z = R.componentStyle, m = R.defaultProps, S = R.foldedComponentIds, $ = R.styledComponentId, y = R.target, j = m1.useContext(u3), A = a3(), G = R.shouldForwardProp || A.shouldForwardProp;
|
1735
1735
|
process.env.NODE_ENV !== "production" && B3($);
|
@@ -1748,23 +1748,23 @@ function H5(t, L, a) {
|
|
1748
1748
|
process.env.NODE_ENV !== "production" && R.warnTooManyClasses && R.warnTooManyClasses(K);
|
1749
1749
|
var X = W1(S, $);
|
1750
1750
|
return K && (X += " " + K), I.className && (X += " " + I.className), r1[N2(i1) && !e3.has(i1) ? "class" : "className"] = X, r1.ref = F, R9(i1, r1);
|
1751
|
-
}(k, b,
|
1751
|
+
}(k, b, M);
|
1752
1752
|
}
|
1753
|
-
|
1754
|
-
var k = m1.forwardRef(
|
1753
|
+
v.displayName = h;
|
1754
|
+
var k = m1.forwardRef(v);
|
1755
1755
|
return k.attrs = _, k.componentStyle = w, k.displayName = h, k.shouldForwardProp = V, k.foldedComponentIds = r ? W1(n.foldedComponentIds, n.styledComponentId) : "", k.styledComponentId = g, k.target = r ? n.target : t, Object.defineProperty(k, "defaultProps", { get: function() {
|
1756
1756
|
return this._foldedDefaultProps;
|
1757
1757
|
}, set: function(b) {
|
1758
|
-
this._foldedDefaultProps = r ? function(
|
1758
|
+
this._foldedDefaultProps = r ? function(M) {
|
1759
1759
|
for (var R = [], Z = 1; Z < arguments.length; Z++) R[Z - 1] = arguments[Z];
|
1760
|
-
for (var F = 0, D = R; F < D.length; F++) i3(
|
1761
|
-
return
|
1760
|
+
for (var F = 0, D = R; F < D.length; F++) i3(M, D[F], !0);
|
1761
|
+
return M;
|
1762
1762
|
}({}, n.defaultProps, b) : b;
|
1763
|
-
} }), process.env.NODE_ENV !== "production" && (b6(h, g), k.warnTooManyClasses = /* @__PURE__ */ function(b,
|
1763
|
+
} }), process.env.NODE_ENV !== "production" && (b6(h, g), k.warnTooManyClasses = /* @__PURE__ */ function(b, M) {
|
1764
1764
|
var R = {}, Z = !1;
|
1765
1765
|
return function(F) {
|
1766
1766
|
if (!Z && (R[F] = !0, Object.keys(R).length >= 200)) {
|
1767
|
-
var D =
|
1767
|
+
var D = M ? ' with the id of "'.concat(M, '"') : "";
|
1768
1768
|
console.warn("Over ".concat(200, " classes were generated for component ").concat(b).concat(D, `.
|
1769
1769
|
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
1770
1770
|
Example:
|
@@ -2778,7 +2778,7 @@ const k0 = B.button`
|
|
2778
2778
|
margin: x,
|
2779
2779
|
radius: E,
|
2780
2780
|
border: w,
|
2781
|
-
css:
|
2781
|
+
css: v,
|
2782
2782
|
...k
|
2783
2783
|
}) => {
|
2784
2784
|
const b = {
|
@@ -2806,7 +2806,7 @@ const k0 = B.button`
|
|
2806
2806
|
$margin: x,
|
2807
2807
|
$radius: E,
|
2808
2808
|
$border: w,
|
2809
|
-
$css:
|
2809
|
+
$css: v,
|
2810
2810
|
$direction: C,
|
2811
2811
|
as: b[L],
|
2812
2812
|
...k,
|
@@ -3951,13 +3951,13 @@ const C4 = [14, 16, 18, 20, 24], o4 = [200, 300, 400, 500, 700, 800], d4 = B.div
|
|
3951
3951
|
onCloseNumpad: x,
|
3952
3952
|
numpad: E = !1,
|
3953
3953
|
numpadOffset: w = 10,
|
3954
|
-
numpadFloatNumber:
|
3954
|
+
numpadFloatNumber: v = !0,
|
3955
3955
|
numpadPosition: k = {
|
3956
3956
|
left: "-4px",
|
3957
3957
|
top: "100%"
|
3958
3958
|
},
|
3959
3959
|
numpadPortal: b = !1,
|
3960
|
-
...
|
3960
|
+
...M
|
3961
3961
|
}) => {
|
3962
3962
|
const R = e1(null), [Z, F] = N(!1), D = () => {
|
3963
3963
|
c("");
|
@@ -3970,7 +3970,7 @@ const C4 = [14, 16, 18, 20, 24], o4 = [200, 300, 400, 500, 700, 800], d4 = B.div
|
|
3970
3970
|
return () => clearTimeout($);
|
3971
3971
|
} else
|
3972
3972
|
F(!0);
|
3973
|
-
|
3973
|
+
M != null && M.onClick && M.onClick(S);
|
3974
3974
|
};
|
3975
3975
|
return n1(() => {
|
3976
3976
|
const S = R == null ? void 0 : R.current, $ = (y) => {
|
@@ -3992,7 +3992,7 @@ const C4 = [14, 16, 18, 20, 24], o4 = [200, 300, 400, 500, 700, 800], d4 = B.div
|
|
3992
3992
|
$rightButtonOnClick: V,
|
3993
3993
|
$size: C,
|
3994
3994
|
$intent: o,
|
3995
|
-
$disabled:
|
3995
|
+
$disabled: M.disabled,
|
3996
3996
|
$clearButton: f,
|
3997
3997
|
$loading: p,
|
3998
3998
|
children: [
|
@@ -4006,7 +4006,7 @@ const C4 = [14, 16, 18, 20, 24], o4 = [200, 300, 400, 500, 700, 800], d4 = B.div
|
|
4006
4006
|
x && x(), F(!1);
|
4007
4007
|
},
|
4008
4008
|
offset: w,
|
4009
|
-
float:
|
4009
|
+
float: v,
|
4010
4010
|
withinPortal: !0,
|
4011
4011
|
relativeRef: R
|
4012
4012
|
}
|
@@ -4021,7 +4021,7 @@ const C4 = [14, 16, 18, 20, 24], o4 = [200, 300, 400, 500, 700, 800], d4 = B.div
|
|
4021
4021
|
x && x(), F(!1);
|
4022
4022
|
},
|
4023
4023
|
offset: w,
|
4024
|
-
float:
|
4024
|
+
float: v,
|
4025
4025
|
position: k
|
4026
4026
|
}
|
4027
4027
|
)),
|
@@ -4031,7 +4031,7 @@ const C4 = [14, 16, 18, 20, 24], o4 = [200, 300, 400, 500, 700, 800], d4 = B.div
|
|
4031
4031
|
{
|
4032
4032
|
icon: g,
|
4033
4033
|
size: 20,
|
4034
|
-
color:
|
4034
|
+
color: M.disabled ? l.gray_300 : l.gray_500
|
4035
4035
|
}
|
4036
4036
|
),
|
4037
4037
|
u && typeof u == "string" && /* @__PURE__ */ i.jsx("span", { children: u })
|
@@ -4039,7 +4039,7 @@ const C4 = [14, 16, 18, 20, 24], o4 = [200, 300, 400, 500, 700, 800], d4 = B.div
|
|
4039
4039
|
/* @__PURE__ */ i.jsx(
|
4040
4040
|
m4,
|
4041
4041
|
{
|
4042
|
-
...
|
4042
|
+
...M,
|
4043
4043
|
$size: C,
|
4044
4044
|
$intent: o,
|
4045
4045
|
$type: L,
|
@@ -4055,18 +4055,18 @@ const C4 = [14, 16, 18, 20, 24], o4 = [200, 300, 400, 500, 700, 800], d4 = B.div
|
|
4055
4055
|
onClick: m
|
4056
4056
|
}
|
4057
4057
|
),
|
4058
|
-
p ? /* @__PURE__ */ i.jsx(c2, { style: { opacity:
|
4058
|
+
p ? /* @__PURE__ */ i.jsx(c2, { style: { opacity: M.disabled ? 0.3 : 1 }, size: 20 }) : (_ || h && typeof h == "string" || o && o === "success" || f) && /* @__PURE__ */ i.jsxs("div", { className: "rnd9x7m2k4l", children: [
|
4059
4059
|
h && typeof h == "string" && o !== "success" && /* @__PURE__ */ i.jsx("span", { children: h }),
|
4060
4060
|
(_ || o === "success" || f && !!n) && /* @__PURE__ */ i.jsx(
|
4061
4061
|
O,
|
4062
4062
|
{
|
4063
|
-
onClick:
|
4063
|
+
onClick: M.disabled ? void 0 : _ ? V : D,
|
4064
4064
|
style: {
|
4065
4065
|
cursor: V || f ? "pointer" : "default"
|
4066
4066
|
},
|
4067
4067
|
icon: o === "success" ? "checkmark_filled" : _ || "clear_filled",
|
4068
4068
|
size: 20,
|
4069
|
-
color:
|
4069
|
+
color: M.disabled ? l.gray_300 : o === "success" ? l.success_600 : l.gray_500
|
4070
4070
|
}
|
4071
4071
|
)
|
4072
4072
|
] })
|
@@ -4313,7 +4313,7 @@ const v4 = [32, 40, 48], M4 = B.div`
|
|
4313
4313
|
}
|
4314
4314
|
}, w = d1(() => {
|
4315
4315
|
r && r(a), V(!1);
|
4316
|
-
}, [a, r]),
|
4316
|
+
}, [a, r]), v = d1(
|
4317
4317
|
(Z) => {
|
4318
4318
|
_ && x(Z);
|
4319
4319
|
},
|
@@ -4322,7 +4322,7 @@ const v4 = [32, 40, 48], M4 = B.div`
|
|
4322
4322
|
p || (x(Z), V(!0));
|
4323
4323
|
}, b = (Z) => {
|
4324
4324
|
V(!0), x(Z);
|
4325
|
-
},
|
4325
|
+
}, M = d1(
|
4326
4326
|
(Z) => {
|
4327
4327
|
x(Z);
|
4328
4328
|
},
|
@@ -4332,12 +4332,12 @@ const v4 = [32, 40, 48], M4 = B.div`
|
|
4332
4332
|
}, [a, r]);
|
4333
4333
|
return n1(() => {
|
4334
4334
|
if (!p)
|
4335
|
-
return _ && (window.addEventListener("mousemove",
|
4335
|
+
return _ && (window.addEventListener("mousemove", v), window.addEventListener("mouseup", w), window.addEventListener("touchmove", M, {
|
4336
4336
|
passive: !0
|
4337
4337
|
}), window.addEventListener("touchend", R)), () => {
|
4338
|
-
window.removeEventListener("mousemove",
|
4338
|
+
window.removeEventListener("mousemove", v), window.removeEventListener("mouseup", w), window.removeEventListener("touchmove", M), window.removeEventListener("touchend", R);
|
4339
4339
|
};
|
4340
|
-
}, [_,
|
4340
|
+
}, [_, v, w, R, M]), /* @__PURE__ */ i.jsxs(
|
4341
4341
|
M4,
|
4342
4342
|
{
|
4343
4343
|
$height: f,
|
@@ -4926,13 +4926,13 @@ const w4 = B.div`
|
|
4926
4926
|
reActionButtonOnClick: h,
|
4927
4927
|
...g
|
4928
4928
|
}) => {
|
4929
|
-
const [_, V] = N(f), [x, E] = N(!1), [w,
|
4930
|
-
!x && !C && (w ? (h && h(), E(!0)) : (
|
4929
|
+
const [_, V] = N(f), [x, E] = N(!1), [w, v] = N(!1), k = () => {
|
4930
|
+
!x && !C && (w ? (h && h(), E(!0)) : (v(!0), u && u(), E(!0)));
|
4931
4931
|
};
|
4932
4932
|
return n1(() => {
|
4933
4933
|
if (x && !C) {
|
4934
4934
|
const b = setInterval(() => {
|
4935
|
-
V((
|
4935
|
+
V((M) => M <= 1 ? (clearInterval(b), E(!1), 0) : M - 1);
|
4936
4936
|
}, 1e3);
|
4937
4937
|
return () => {
|
4938
4938
|
clearInterval(b);
|
@@ -6123,7 +6123,7 @@ const G4 = [0, 2, 4, 8], i6 = [14, 16, 18, 20, 24], L6 = [200, 300, 400, 500, 70
|
|
6123
6123
|
buttonOnClick: x,
|
6124
6124
|
contained: E = !0,
|
6125
6125
|
rigthIcon: w,
|
6126
|
-
rightIconColor:
|
6126
|
+
rightIconColor: v = "info_700",
|
6127
6127
|
rightIconOnClick: k,
|
6128
6128
|
...b
|
6129
6129
|
}) => /* @__PURE__ */ i.jsxs(
|
@@ -6156,7 +6156,7 @@ const G4 = [0, 2, 4, 8], i6 = [14, 16, 18, 20, 24], L6 = [200, 300, 400, 500, 70
|
|
6156
6156
|
},
|
6157
6157
|
icon: w,
|
6158
6158
|
size: 16,
|
6159
|
-
color: l[
|
6159
|
+
color: l[v],
|
6160
6160
|
onClick: k
|
6161
6161
|
}
|
6162
6162
|
)
|
@@ -6929,17 +6929,17 @@ const G4 = [0, 2, 4, 8], i6 = [14, 16, 18, 20, 24], L6 = [200, 300, 400, 500, 70
|
|
6929
6929
|
if (isNaN(y)) return !1;
|
6930
6930
|
const [j, A, G] = m.split("-");
|
6931
6931
|
return !($.getUTCFullYear() !== parseInt(j, 10) || $.getUTCMonth() + 1 !== parseInt(A, 10) || $.getUTCDate() !== parseInt(G, 10));
|
6932
|
-
}, w = () => !(!r || !n || !E(r) || !E(n)),
|
6932
|
+
}, w = () => !(!r || !n || !E(r) || !E(n)), v = o1(() => {
|
6933
6933
|
if (!w()) return [];
|
6934
6934
|
const m = new Date(r), S = new Date(n), $ = [];
|
6935
6935
|
for (let y = new Date(m); y <= S; y.setUTCDate(y.getUTCDate() + 1))
|
6936
6936
|
$.push(new Date(y));
|
6937
6937
|
return $;
|
6938
6938
|
}, [r, n]), k = d1(
|
6939
|
-
(m) =>
|
6939
|
+
(m) => v && v.length ? !v.some(
|
6940
6940
|
(S) => S.getTime() === m.getTime()
|
6941
6941
|
) : !1,
|
6942
|
-
[
|
6942
|
+
[v]
|
6943
6943
|
), b = (m, S) => {
|
6944
6944
|
const { current: $, month: y, year: j } = c, A = new Date(m.join("-")), G = k(A), T = G2(A, /* @__PURE__ */ new Date()), I = $ && G2(A, $), i1 = y && j && X4(
|
6945
6945
|
A,
|
@@ -6964,7 +6964,7 @@ const G4 = [0, 2, 4, 8], i6 = [14, 16, 18, 20, 24], L6 = [200, 300, 400, 500, 70
|
|
6964
6964
|
},
|
6965
6965
|
Q4(A)
|
6966
6966
|
);
|
6967
|
-
},
|
6967
|
+
}, M = () => {
|
6968
6968
|
const m = m2 * 4, { year: S } = c;
|
6969
6969
|
return [...new Array(m)].map((y, j) => +S + j);
|
6970
6970
|
}, R = (m) => {
|
@@ -7084,7 +7084,7 @@ const G4 = [0, 2, 4, 8], i6 = [14, 16, 18, 20, 24], L6 = [200, 300, 400, 500, 70
|
|
7084
7084
|
/* @__PURE__ */ i.jsx(i.Fragment, { children: Object.keys(C6).map(V) }),
|
7085
7085
|
/* @__PURE__ */ i.jsx(i.Fragment, { children: x().map(b) })
|
7086
7086
|
] }),
|
7087
|
-
o === "year" && /* @__PURE__ */ i.jsx(i.Fragment, { children:
|
7087
|
+
o === "year" && /* @__PURE__ */ i.jsx(i.Fragment, { children: M().map(R) }),
|
7088
7088
|
o === "month" && /* @__PURE__ */ i.jsx(i.Fragment, { children: Object.values(I2).map(Z) })
|
7089
7089
|
] }),
|
7090
7090
|
/* @__PURE__ */ i.jsxs(ie, { children: [
|
@@ -7197,14 +7197,14 @@ const G4 = [0, 2, 4, 8], i6 = [14, 16, 18, 20, 24], L6 = [200, 300, 400, 500, 70
|
|
7197
7197
|
defaultOpen: h = !1,
|
7198
7198
|
...g
|
7199
7199
|
}) => {
|
7200
|
-
const [_, V] = N(h), [x, E] = N("bottom"), w = e1(null),
|
7200
|
+
const [_, V] = N(h), [x, E] = N("bottom"), w = e1(null), v = (b) => {
|
7201
7201
|
c(b);
|
7202
7202
|
};
|
7203
7203
|
n1(() => {
|
7204
7204
|
console.log({ defaultOpen: h }), V(h);
|
7205
7205
|
}, [h]), n1(() => {
|
7206
|
-
const b = (
|
7207
|
-
w.current && !w.current.contains(
|
7206
|
+
const b = (M) => {
|
7207
|
+
w.current && !w.current.contains(M.target) && V(!1);
|
7208
7208
|
};
|
7209
7209
|
if (_)
|
7210
7210
|
return document.addEventListener("mousedown", b), () => {
|
@@ -7230,8 +7230,8 @@ const G4 = [0, 2, 4, 8], i6 = [14, 16, 18, 20, 24], L6 = [200, 300, 400, 500, 70
|
|
7230
7230
|
return n1(() => {
|
7231
7231
|
const b = () => {
|
7232
7232
|
if (w.current) {
|
7233
|
-
const { y:
|
7234
|
-
|
7233
|
+
const { y: M } = w.current.getBoundingClientRect();
|
7234
|
+
M < 465 ? E("bottom") : E("top");
|
7235
7235
|
}
|
7236
7236
|
};
|
7237
7237
|
return window.addEventListener("scroll", b), () => {
|
@@ -7275,7 +7275,7 @@ const G4 = [0, 2, 4, 8], i6 = [14, 16, 18, 20, 24], L6 = [200, 300, 400, 500, 70
|
|
7275
7275
|
limitStart: f,
|
7276
7276
|
limitEnd: u,
|
7277
7277
|
date: G1(n) ? n : /* @__PURE__ */ new Date(),
|
7278
|
-
onDateChanged:
|
7278
|
+
onDateChanged: v,
|
7279
7279
|
setCalendarOpen: V
|
7280
7280
|
}
|
7281
7281
|
) })
|
@@ -7461,19 +7461,19 @@ const G4 = [0, 2, 4, 8], i6 = [14, 16, 18, 20, 24], L6 = [200, 300, 400, 500, 70
|
|
7461
7461
|
dropdownContentWidth: g = "100%",
|
7462
7462
|
..._
|
7463
7463
|
}) => {
|
7464
|
-
const [V, x] = N(u), E = e1(null), [w,
|
7464
|
+
const [V, x] = N(u), E = e1(null), [w, v] = N(h), [k, b] = N(""), M = d1(
|
7465
7465
|
(F) => {
|
7466
7466
|
const D = F.target.value;
|
7467
7467
|
b(D);
|
7468
7468
|
const z = h.filter(
|
7469
7469
|
(m) => m.label.toLowerCase().includes(D.toLowerCase())
|
7470
7470
|
);
|
7471
|
-
|
7471
|
+
v(z);
|
7472
7472
|
},
|
7473
7473
|
[h]
|
7474
7474
|
), R = d1(
|
7475
7475
|
(F) => {
|
7476
|
-
n(F.value), x(!1), b(""),
|
7476
|
+
n(F.value), x(!1), b(""), v(h);
|
7477
7477
|
},
|
7478
7478
|
[h, n]
|
7479
7479
|
), Z = o1(() => {
|
@@ -7482,7 +7482,7 @@ const G4 = [0, 2, 4, 8], i6 = [14, 16, 18, 20, 24], L6 = [200, 300, 400, 500, 70
|
|
7482
7482
|
}, [r, h]);
|
7483
7483
|
return n1(() => {
|
7484
7484
|
const F = (D) => {
|
7485
|
-
E.current && !E.current.contains(D.target) && (x(!1), b(""),
|
7485
|
+
E.current && !E.current.contains(D.target) && (x(!1), b(""), v(h));
|
7486
7486
|
};
|
7487
7487
|
if (V)
|
7488
7488
|
return document.addEventListener("mousedown", F), () => {
|
@@ -7533,7 +7533,7 @@ const G4 = [0, 2, 4, 8], i6 = [14, 16, 18, 20, 24], L6 = [200, 300, 400, 500, 70
|
|
7533
7533
|
/* @__PURE__ */ i.jsx(
|
7534
7534
|
"input",
|
7535
7535
|
{
|
7536
|
-
onChange:
|
7536
|
+
onChange: M,
|
7537
7537
|
value: k,
|
7538
7538
|
type: "text"
|
7539
7539
|
}
|
@@ -7884,8 +7884,8 @@ const me = B.svg`
|
|
7884
7884
|
label_limit_min: C = "Pensie standard",
|
7885
7885
|
label_limit_max: o = "Obiectiv pensie"
|
7886
7886
|
}) => {
|
7887
|
-
const p = new Intl.NumberFormat("RO"), f = e1(null), u = e1(null), h = e1(null), g = e1(null), _ = e1(null), V = e1(null), x = e1(null), [E, w] = N(0), [
|
7888
|
-
const X =
|
7887
|
+
const p = new Intl.NumberFormat("RO"), f = e1(null), u = e1(null), h = e1(null), g = e1(null), _ = e1(null), V = e1(null), x = e1(null), [E, w] = N(0), [v, k] = N(0), b = 10, M = o1(() => {
|
7888
|
+
const X = v / 2 - 20, Q = E - b * 2, L1 = Math.min(
|
7889
7889
|
Q,
|
7890
7890
|
Math.max(Q * a / t, 0)
|
7891
7891
|
), f1 = 20, c1 = X + b, g1 = a * Q / t + 10, y1 = Math.min(
|
@@ -7904,14 +7904,14 @@ const me = B.svg`
|
|
7904
7904
|
line_min_x: y1,
|
7905
7905
|
line_max_x: v1
|
7906
7906
|
};
|
7907
|
-
}, [
|
7908
|
-
const K = b * 2, Q = r * (E - K) / t -
|
7907
|
+
}, [v, E, a, L, t]), R = o1(() => {
|
7908
|
+
const K = b * 2, Q = r * (E - K) / t - M.secondary_bar_w, L1 = E - K - M.secondary_bar_w, f1 = r > L ? l.success_400 : l.danger_200, c1 = r > L ? l.success_600 : l.danger_400;
|
7909
7909
|
return {
|
7910
7910
|
value: Math.min(L1, Math.max(0, Q)),
|
7911
7911
|
fill: f1,
|
7912
7912
|
fill_value: c1
|
7913
7913
|
};
|
7914
|
-
}, [E,
|
7914
|
+
}, [E, M.secondary_bar_w, r, L, t]), Z = d1(
|
7915
7915
|
(K, X, Q) => {
|
7916
7916
|
const { width: L1 } = K.current.getBBox(), f1 = Q === "middle" ? E - L1 + L1 / 2 : Q === "end" ? E - L1 : E - L1 + L1, c1 = Q === "middle" ? L1 / 2 : Q === "end" ? 10 : L1 + 10;
|
7917
7917
|
return Math.min(f1, Math.max(c1, X));
|
@@ -7919,7 +7919,7 @@ const me = B.svg`
|
|
7919
7919
|
[E]
|
7920
7920
|
), F = d1(
|
7921
7921
|
(K) => {
|
7922
|
-
const X =
|
7922
|
+
const X = M.line_min_x + K, Q = M.line_min_x + K;
|
7923
7923
|
return u && u.current || h && h.current ? {
|
7924
7924
|
label_top_x: Z(u, X, "middle"),
|
7925
7925
|
sublabel_top_x: Z(h, Q, "middle")
|
@@ -7928,9 +7928,9 @@ const me = B.svg`
|
|
7928
7928
|
sublabel_top_x: Q
|
7929
7929
|
};
|
7930
7930
|
},
|
7931
|
-
[
|
7931
|
+
[M.line_min_x, Z]
|
7932
7932
|
), D = d1(() => {
|
7933
|
-
const K =
|
7933
|
+
const K = M.line_min_x, X = M.line_min_x;
|
7934
7934
|
return g && g.current || _ && _.current ? {
|
7935
7935
|
label_limit_min_x: Z(g, K, "start"),
|
7936
7936
|
sublabel_limit_min_x: Z(
|
@@ -7942,8 +7942,8 @@ const me = B.svg`
|
|
7942
7942
|
label_limit_min_x: K,
|
7943
7943
|
sublabel_limit_min_x: X
|
7944
7944
|
};
|
7945
|
-
}, [
|
7946
|
-
const K =
|
7945
|
+
}, [M.line_min_x, Z]), z = d1(() => {
|
7946
|
+
const K = M.line_max_x, X = M.line_max_x;
|
7947
7947
|
return V && V.current || x && x.current ? {
|
7948
7948
|
label_limit_max_x: Z(V, K, "end"),
|
7949
7949
|
sublabel_limit_max_x: Z(
|
@@ -7955,7 +7955,7 @@ const me = B.svg`
|
|
7955
7955
|
label_limit_max_x: K,
|
7956
7956
|
sublabel_limit_max_x: X
|
7957
7957
|
};
|
7958
|
-
}, [
|
7958
|
+
}, [M.line_max_x, Z]);
|
7959
7959
|
n1(() => {
|
7960
7960
|
if (f && f.current) {
|
7961
7961
|
const X = () => {
|
@@ -7978,15 +7978,15 @@ const me = B.svg`
|
|
7978
7978
|
ref: f,
|
7979
7979
|
width: "100%",
|
7980
7980
|
height: "100%",
|
7981
|
-
viewBox: `0 0 ${E} ${
|
7981
|
+
viewBox: `0 0 ${E} ${v}`,
|
7982
7982
|
xmlns: "http://www.w3.org/2000/svg",
|
7983
7983
|
children: [
|
7984
7984
|
/* @__PURE__ */ i.jsx(
|
7985
7985
|
"rect",
|
7986
7986
|
{
|
7987
7987
|
x: 0,
|
7988
|
-
y:
|
7989
|
-
height:
|
7988
|
+
y: M.primary_bar_y,
|
7989
|
+
height: M.primary_bar_h,
|
7990
7990
|
width: E,
|
7991
7991
|
rx: 8
|
7992
7992
|
}
|
@@ -7995,18 +7995,18 @@ const me = B.svg`
|
|
7995
7995
|
"rect",
|
7996
7996
|
{
|
7997
7997
|
x: b,
|
7998
|
-
y:
|
7999
|
-
height:
|
8000
|
-
width:
|
7998
|
+
y: M.secondary_bar_y,
|
7999
|
+
height: M.secondary_bar_h,
|
8000
|
+
width: M.secondary_bar_w,
|
8001
8001
|
fill: R.fill
|
8002
8002
|
}
|
8003
8003
|
),
|
8004
8004
|
/* @__PURE__ */ i.jsx(
|
8005
8005
|
"rect",
|
8006
8006
|
{
|
8007
|
-
x:
|
8008
|
-
y:
|
8009
|
-
height:
|
8007
|
+
x: M.line_min_x,
|
8008
|
+
y: M.secondary_bar_y,
|
8009
|
+
height: M.secondary_bar_h,
|
8010
8010
|
width: R.value,
|
8011
8011
|
fill: R.fill_value
|
8012
8012
|
}
|
@@ -8036,10 +8036,10 @@ const me = B.svg`
|
|
8036
8036
|
/* @__PURE__ */ i.jsx(
|
8037
8037
|
"line",
|
8038
8038
|
{
|
8039
|
-
x1:
|
8040
|
-
x2:
|
8041
|
-
y1:
|
8042
|
-
y2:
|
8039
|
+
x1: M.line_min_x,
|
8040
|
+
x2: M.line_min_x,
|
8041
|
+
y1: M.primary_bar_y - b,
|
8042
|
+
y2: M.primary_bar_y + M.primary_bar_h + b,
|
8043
8043
|
strokeWidth: 2,
|
8044
8044
|
stroke: "#232529"
|
8045
8045
|
}
|
@@ -8051,7 +8051,7 @@ const me = B.svg`
|
|
8051
8051
|
className: "label_bottom",
|
8052
8052
|
textAnchor: "end",
|
8053
8053
|
x: j,
|
8054
|
-
y:
|
8054
|
+
y: M.primary_bar_y + M.primary_bar_h + b + 20,
|
8055
8055
|
children: C
|
8056
8056
|
}
|
8057
8057
|
),
|
@@ -8062,17 +8062,17 @@ const me = B.svg`
|
|
8062
8062
|
className: "sublabel_bottom",
|
8063
8063
|
textAnchor: "end",
|
8064
8064
|
x: G,
|
8065
|
-
y:
|
8065
|
+
y: M.primary_bar_y + M.primary_bar_h + b + 40,
|
8066
8066
|
children: p.format(a) + " " + n
|
8067
8067
|
}
|
8068
8068
|
),
|
8069
8069
|
/* @__PURE__ */ i.jsx(
|
8070
8070
|
"line",
|
8071
8071
|
{
|
8072
|
-
x1:
|
8073
|
-
x2:
|
8074
|
-
y1:
|
8075
|
-
y2:
|
8072
|
+
x1: M.line_max_x,
|
8073
|
+
x2: M.line_max_x,
|
8074
|
+
y1: M.primary_bar_y - b,
|
8075
|
+
y2: M.primary_bar_y + M.primary_bar_h + b,
|
8076
8076
|
strokeWidth: 2,
|
8077
8077
|
stroke: "#232529"
|
8078
8078
|
}
|
@@ -8084,7 +8084,7 @@ const me = B.svg`
|
|
8084
8084
|
className: "label_bottom",
|
8085
8085
|
textAnchor: "start",
|
8086
8086
|
x: I,
|
8087
|
-
y:
|
8087
|
+
y: M.primary_bar_y + M.primary_bar_h + b + 20,
|
8088
8088
|
children: o
|
8089
8089
|
}
|
8090
8090
|
),
|
@@ -8095,7 +8095,7 @@ const me = B.svg`
|
|
8095
8095
|
className: "sublabel_bottom",
|
8096
8096
|
textAnchor: "start",
|
8097
8097
|
x: r1,
|
8098
|
-
y:
|
8098
|
+
y: M.primary_bar_y + M.primary_bar_h + b + 40,
|
8099
8099
|
children: p.format(L) + " " + n
|
8100
8100
|
}
|
8101
8101
|
)
|
@@ -11309,11 +11309,11 @@ const ke = B.svg`
|
|
11309
11309
|
col1Color: x = "success_500",
|
11310
11310
|
col2Color: E = "info_500",
|
11311
11311
|
col3Color: w = "warning_500",
|
11312
|
-
col4Color:
|
11312
|
+
col4Color: v = "danger_500",
|
11313
11313
|
currency: k = "RON",
|
11314
11314
|
dev: b = !1
|
11315
11315
|
}) => {
|
11316
|
-
const
|
11316
|
+
const M = new Intl.NumberFormat("RO"), R = e1(null), [Z, F] = N(0), [D, z] = N(0), m = o1(() => {
|
11317
11317
|
const S = Math.abs(Z - L - a), $ = Math.abs(D - r - n), y = Math.abs($ / (C - p) * (C - o) + r), j = (S - 3 * c) / 4, A = (r1) => {
|
11318
11318
|
const U = Math.abs($ / (C - p) * (r1 - o)), K = Math.abs($ / (C - p) * (o - r1)), X = r1 > o ? U : K;
|
11319
11319
|
return {
|
@@ -11391,7 +11391,7 @@ const ke = B.svg`
|
|
11391
11391
|
$col1Color: x,
|
11392
11392
|
$col2Color: E,
|
11393
11393
|
$col3Color: w,
|
11394
|
-
$col4Color:
|
11394
|
+
$col4Color: v,
|
11395
11395
|
$dev: b,
|
11396
11396
|
children: [
|
11397
11397
|
b && /* @__PURE__ */ i.jsx(
|
@@ -11411,7 +11411,7 @@ const ke = B.svg`
|
|
11411
11411
|
textAnchor: "middle",
|
11412
11412
|
x: m.col_1.x + m.col_1.w / 2,
|
11413
11413
|
y: m.col_1.text_y,
|
11414
|
-
children:
|
11414
|
+
children: M.format(h) + ` ${k}`
|
11415
11415
|
}
|
11416
11416
|
),
|
11417
11417
|
/* @__PURE__ */ i.jsx(
|
@@ -11452,7 +11452,7 @@ const ke = B.svg`
|
|
11452
11452
|
textAnchor: "middle",
|
11453
11453
|
x: m.col_2.x + m.col_2.w / 2,
|
11454
11454
|
y: m.col_2.text_y,
|
11455
|
-
children:
|
11455
|
+
children: M.format(g) + ` ${k}`
|
11456
11456
|
}
|
11457
11457
|
),
|
11458
11458
|
/* @__PURE__ */ i.jsx(
|
@@ -11493,7 +11493,7 @@ const ke = B.svg`
|
|
11493
11493
|
textAnchor: "middle",
|
11494
11494
|
x: m.col_3.x + m.col_3.w / 2,
|
11495
11495
|
y: m.col_3.text_y,
|
11496
|
-
children:
|
11496
|
+
children: M.format(_) + ` ${k}`
|
11497
11497
|
}
|
11498
11498
|
),
|
11499
11499
|
/* @__PURE__ */ i.jsx(
|
@@ -11534,7 +11534,7 @@ const ke = B.svg`
|
|
11534
11534
|
textAnchor: "middle",
|
11535
11535
|
x: m.col_4.x + m.col_4.w / 2,
|
11536
11536
|
y: m.col_4.text_y,
|
11537
|
-
children:
|
11537
|
+
children: M.format(V) + ` ${k}`
|
11538
11538
|
}
|
11539
11539
|
),
|
11540
11540
|
/* @__PURE__ */ i.jsx(
|
@@ -11586,7 +11586,7 @@ const ke = B.svg`
|
|
11586
11586
|
textAnchor: "start",
|
11587
11587
|
x: 0,
|
11588
11588
|
y: m.lineY - 6,
|
11589
|
-
children:
|
11589
|
+
children: M.format(u) + ` ${k}`
|
11590
11590
|
}
|
11591
11591
|
),
|
11592
11592
|
/* @__PURE__ */ i.jsx(
|
@@ -11684,7 +11684,7 @@ const ke = B.svg`
|
|
11684
11684
|
height: c = 284
|
11685
11685
|
}) => {
|
11686
11686
|
const C = new Intl.NumberFormat("RO"), o = e1(null), p = e1(null), f = e1(null), u = e1(null), h = e1(null), [g, _] = N(0), [V, x] = N(0), E = o1(() => {
|
11687
|
-
const
|
11687
|
+
const M = V / 2 - 12;
|
11688
11688
|
let R, Z, F, D, z, m, S;
|
11689
11689
|
if (L > t) {
|
11690
11690
|
Z = g - 1;
|
@@ -11697,7 +11697,7 @@ const ke = B.svg`
|
|
11697
11697
|
}
|
11698
11698
|
return D = l.success_400, {
|
11699
11699
|
bar_h: 24,
|
11700
|
-
bar_y:
|
11700
|
+
bar_y: M,
|
11701
11701
|
secondary_bar_w: F,
|
11702
11702
|
limit_top_x: R,
|
11703
11703
|
limit_bottom_x: Z,
|
@@ -11707,20 +11707,20 @@ const ke = B.svg`
|
|
11707
11707
|
secondary_fill_color: D
|
11708
11708
|
};
|
11709
11709
|
}, [g, V, L, t]), w = d1(
|
11710
|
-
(b,
|
11710
|
+
(b, M) => M < b ? {
|
11711
11711
|
textAnchor: "start",
|
11712
|
-
x:
|
11712
|
+
x: M + 20
|
11713
11713
|
} : {
|
11714
11714
|
textAnchor: "end",
|
11715
|
-
x: Math.max(b,
|
11715
|
+
x: Math.max(b, M)
|
11716
11716
|
},
|
11717
11717
|
[g]
|
11718
|
-
),
|
11718
|
+
), v = o1(() => {
|
11719
11719
|
var R, Z;
|
11720
11720
|
const b = {
|
11721
11721
|
x: E.limit_top_x - 10,
|
11722
11722
|
textAnchor: "end"
|
11723
|
-
},
|
11723
|
+
}, M = {
|
11724
11724
|
x: E.limit_top_x - 10,
|
11725
11725
|
textAnchor: "end"
|
11726
11726
|
};
|
@@ -11732,21 +11732,21 @@ const ke = B.svg`
|
|
11732
11732
|
textAnchor: w(z, b.x).textAnchor
|
11733
11733
|
},
|
11734
11734
|
limitMinSublabel: {
|
11735
|
-
x: w(z,
|
11736
|
-
textAnchor: w(z,
|
11735
|
+
x: w(z, M.x).x,
|
11736
|
+
textAnchor: w(z, M.x).textAnchor
|
11737
11737
|
}
|
11738
11738
|
};
|
11739
11739
|
}
|
11740
11740
|
return {
|
11741
11741
|
limitMinLabel: b,
|
11742
|
-
limitMinSublabel:
|
11742
|
+
limitMinSublabel: M
|
11743
11743
|
};
|
11744
11744
|
}, [E.limit_top_x]), k = o1(() => {
|
11745
11745
|
var R, Z;
|
11746
11746
|
const b = {
|
11747
11747
|
x: E.limit_bottom_x - 10,
|
11748
11748
|
textAnchor: "end"
|
11749
|
-
},
|
11749
|
+
}, M = {
|
11750
11750
|
x: E.limit_bottom_x - 10,
|
11751
11751
|
textAnchor: "end"
|
11752
11752
|
};
|
@@ -11758,22 +11758,22 @@ const ke = B.svg`
|
|
11758
11758
|
textAnchor: w(z, b.x).textAnchor
|
11759
11759
|
},
|
11760
11760
|
limitMaxSublabel: {
|
11761
|
-
x: w(z,
|
11762
|
-
textAnchor: w(z,
|
11761
|
+
x: w(z, M.x).x,
|
11762
|
+
textAnchor: w(z, M.x).textAnchor
|
11763
11763
|
}
|
11764
11764
|
};
|
11765
11765
|
}
|
11766
11766
|
return {
|
11767
11767
|
limitMaxLabel: b,
|
11768
|
-
limitMaxSublabel:
|
11768
|
+
limitMaxSublabel: M
|
11769
11769
|
};
|
11770
11770
|
}, [E.limit_bottom_x]);
|
11771
11771
|
return n1(() => {
|
11772
11772
|
if (o && o.current) {
|
11773
11773
|
const b = () => {
|
11774
11774
|
var R;
|
11775
|
-
const
|
11776
|
-
_(+
|
11775
|
+
const M = (R = o == null ? void 0 : o.current) == null ? void 0 : R.clientWidth;
|
11776
|
+
_(+M), x(c);
|
11777
11777
|
};
|
11778
11778
|
return b(), window.addEventListener("resize", b), () => window.removeEventListener("resize", b);
|
11779
11779
|
}
|
@@ -11823,8 +11823,8 @@ const ke = B.svg`
|
|
11823
11823
|
{
|
11824
11824
|
ref: p,
|
11825
11825
|
className: "limitMinLabel",
|
11826
|
-
textAnchor:
|
11827
|
-
x:
|
11826
|
+
textAnchor: v.limitMinLabel.textAnchor,
|
11827
|
+
x: v.limitMinLabel.x,
|
11828
11828
|
y: 12,
|
11829
11829
|
children: a
|
11830
11830
|
}
|
@@ -11834,8 +11834,8 @@ const ke = B.svg`
|
|
11834
11834
|
{
|
11835
11835
|
ref: f,
|
11836
11836
|
className: "limitMinSublabel",
|
11837
|
-
textAnchor:
|
11838
|
-
x:
|
11837
|
+
textAnchor: v.limitMinSublabel.textAnchor,
|
11838
|
+
x: v.limitMinSublabel.x,
|
11839
11839
|
y: 32,
|
11840
11840
|
children: C.format(t) + " " + n
|
11841
11841
|
}
|
@@ -11900,20 +11900,20 @@ const ke = B.svg`
|
|
11900
11900
|
minimumFractionDigits: c,
|
11901
11901
|
maximumFractionDigits: c
|
11902
11902
|
}), u = e1(null), [h, g] = N(0), [_, V] = N(0), x = o1(() => {
|
11903
|
-
const
|
11903
|
+
const v = _ / 2 - 12, k = Math.min(h, Math.max(h * a / t, 0)), b = a * h / t - 1, M = Math.min(h, Math.max(b, 0.5)), R = L * h / t - 1, Z = Math.min(h, Math.max(R, 1));
|
11904
11904
|
return {
|
11905
11905
|
bar_h: 24,
|
11906
|
-
bar_y:
|
11906
|
+
bar_y: v,
|
11907
11907
|
secondary_bar_w: k,
|
11908
|
-
line_min_x:
|
11908
|
+
line_min_x: M,
|
11909
11909
|
line_max_x: Z
|
11910
11910
|
};
|
11911
11911
|
}, [h, _, L, a, t]), E = o1(() => {
|
11912
|
-
const
|
11912
|
+
const v = r * h / t - x.secondary_bar_w, k = h - x.secondary_bar_w, b = r >= L ? l.success_200 : l.danger_200, M = r >= L ? l.success_500 : l.danger_500, R = r >= L ? l.success_800 : l.danger_800;
|
11913
11913
|
return {
|
11914
|
-
value: Math.min(k, Math.max(0,
|
11914
|
+
value: Math.min(k, Math.max(0, v)),
|
11915
11915
|
fill_rect_primary: b,
|
11916
|
-
fill_rect_secondary:
|
11916
|
+
fill_rect_secondary: M,
|
11917
11917
|
fill_value_text: R
|
11918
11918
|
};
|
11919
11919
|
}, [r, h]);
|
@@ -11921,8 +11921,8 @@ const ke = B.svg`
|
|
11921
11921
|
if (u && u.current) {
|
11922
11922
|
const w = () => {
|
11923
11923
|
var k;
|
11924
|
-
const
|
11925
|
-
g(+
|
11924
|
+
const v = (k = u == null ? void 0 : u.current) == null ? void 0 : k.clientWidth;
|
11925
|
+
g(+v), V(o);
|
11926
11926
|
};
|
11927
11927
|
return w(), window.addEventListener("resize", w), () => window.removeEventListener("resize", w);
|
11928
11928
|
}
|
@@ -12063,10 +12063,10 @@ const ke = B.svg`
|
|
12063
12063
|
col3Value: x = 25806,
|
12064
12064
|
col4Value: E = 24806,
|
12065
12065
|
col1Color: w = "success_500",
|
12066
|
-
col2Color:
|
12066
|
+
col2Color: v = "info_500",
|
12067
12067
|
col3Color: k = "warning_500",
|
12068
12068
|
col4Color: b = "danger_500",
|
12069
|
-
currency:
|
12069
|
+
currency: M = "RON",
|
12070
12070
|
dev: R = !1
|
12071
12071
|
}) => {
|
12072
12072
|
const Z = new Intl.NumberFormat("RO"), F = e1(null), [D, z] = N(0), [m, S] = N(0), $ = e1(null), y = o1(() => {
|
@@ -12146,7 +12146,7 @@ const ke = B.svg`
|
|
12146
12146
|
viewBox: `0 0 ${D} ${m}`,
|
12147
12147
|
xmlns: "http://www.w3.org/2000/svg",
|
12148
12148
|
$col1Color: w,
|
12149
|
-
$col2Color:
|
12149
|
+
$col2Color: v,
|
12150
12150
|
$col3Color: k,
|
12151
12151
|
$col4Color: b,
|
12152
12152
|
$dev: R,
|
@@ -12168,7 +12168,7 @@ const ke = B.svg`
|
|
12168
12168
|
textAnchor: "middle",
|
12169
12169
|
x: y.col_1.x + y.col_1.w / 2,
|
12170
12170
|
y: 16,
|
12171
|
-
children: Z.format(_) + ` ${
|
12171
|
+
children: Z.format(_) + ` ${M}`
|
12172
12172
|
}
|
12173
12173
|
),
|
12174
12174
|
/* @__PURE__ */ i.jsx(
|
@@ -12209,7 +12209,7 @@ const ke = B.svg`
|
|
12209
12209
|
textAnchor: "middle",
|
12210
12210
|
x: y.col_2.x + y.col_2.w / 2,
|
12211
12211
|
y: 16,
|
12212
|
-
children: Z.format(V) + ` ${
|
12212
|
+
children: Z.format(V) + ` ${M}`
|
12213
12213
|
}
|
12214
12214
|
),
|
12215
12215
|
/* @__PURE__ */ i.jsx(
|
@@ -12250,7 +12250,7 @@ const ke = B.svg`
|
|
12250
12250
|
textAnchor: "middle",
|
12251
12251
|
x: y.col_3.x + y.col_3.w / 2,
|
12252
12252
|
y: 16,
|
12253
|
-
children: Z.format(x) + ` ${
|
12253
|
+
children: Z.format(x) + ` ${M}`
|
12254
12254
|
}
|
12255
12255
|
),
|
12256
12256
|
/* @__PURE__ */ i.jsx(
|
@@ -12291,7 +12291,7 @@ const ke = B.svg`
|
|
12291
12291
|
textAnchor: "middle",
|
12292
12292
|
x: y.col_4.x + y.col_4.w / 2,
|
12293
12293
|
y: 16,
|
12294
|
-
children: Z.format(E) + ` ${
|
12294
|
+
children: Z.format(E) + ` ${M}`
|
12295
12295
|
}
|
12296
12296
|
),
|
12297
12297
|
/* @__PURE__ */ i.jsx(
|
@@ -12327,8 +12327,8 @@ const ke = B.svg`
|
|
12327
12327
|
}
|
12328
12328
|
),
|
12329
12329
|
/* @__PURE__ */ i.jsx("text", { className: "text", textAnchor: "start", x: 0, y: y.lineY - 26, children: f }),
|
12330
|
-
/* @__PURE__ */ i.jsx("text", { className: "text", textAnchor: "start", x: 0, y: y.lineY - 6, children: Z.format(u) + ` ${
|
12331
|
-
/* @__PURE__ */ i.jsx("text", { className: "text", textAnchor: "start", x: 0, y: y.lineY + 18, children: Z.format(h) + ` ${
|
12330
|
+
/* @__PURE__ */ i.jsx("text", { className: "text", textAnchor: "start", x: 0, y: y.lineY - 6, children: Z.format(u) + ` ${M}` }),
|
12331
|
+
/* @__PURE__ */ i.jsx("text", { className: "text", textAnchor: "start", x: 0, y: y.lineY + 18, children: Z.format(h) + ` ${M} x` }),
|
12332
12332
|
/* @__PURE__ */ i.jsx("text", { className: "text", textAnchor: "start", x: 0, y: y.lineY + 36, children: g + " luni" }),
|
12333
12333
|
/* @__PURE__ */ i.jsx(
|
12334
12334
|
"line",
|
@@ -12580,10 +12580,10 @@ const ke = B.svg`
|
|
12580
12580
|
col2Value: x = 13e3,
|
12581
12581
|
col3Value: E = 11e3,
|
12582
12582
|
col1Color: w = "danger_500",
|
12583
|
-
col2Color:
|
12583
|
+
col2Color: v = "danger_500",
|
12584
12584
|
col3Color: k = "danger_500",
|
12585
12585
|
currency: b = "RON",
|
12586
|
-
dev:
|
12586
|
+
dev: M = !1
|
12587
12587
|
}) => {
|
12588
12588
|
const R = new Intl.NumberFormat("RO"), Z = e1(null), [F, D] = N(0), [z, m] = N(0), S = e1(null), $ = o1(() => {
|
12589
12589
|
const y = Math.abs(F - L - a), j = Math.abs(z - r - n), A = Math.abs(j / (C - p) * (C - o) + r), G = (y - 2 * c) / 3, T = (U) => {
|
@@ -12654,11 +12654,11 @@ const ke = B.svg`
|
|
12654
12654
|
viewBox: `0 0 ${F} ${z}`,
|
12655
12655
|
xmlns: "http://www.w3.org/2000/svg",
|
12656
12656
|
$col1Color: w,
|
12657
|
-
$col2Color:
|
12657
|
+
$col2Color: v,
|
12658
12658
|
$col3Color: k,
|
12659
|
-
$dev:
|
12659
|
+
$dev: M,
|
12660
12660
|
children: [
|
12661
|
-
|
12661
|
+
M && /* @__PURE__ */ i.jsx(
|
12662
12662
|
"rect",
|
12663
12663
|
{
|
12664
12664
|
className: "dev-graph",
|
@@ -12923,9 +12923,9 @@ const ke = B.svg`
|
|
12923
12923
|
const [f, u] = N(r.toString()), h = e1(null), [g, _] = N({}), V = d1(() => {
|
12924
12924
|
var z;
|
12925
12925
|
if (!h.current) return;
|
12926
|
-
const
|
12926
|
+
const v = h.current, k = v.getBoundingClientRect(), b = (z = v.offsetParent) == null ? void 0 : z.getBoundingClientRect();
|
12927
12927
|
if (!b) return;
|
12928
|
-
const
|
12928
|
+
const M = window.innerHeight - b.bottom, R = b.top, F = k.height + 100 > M && R > M, D = {
|
12929
12929
|
top: F ? "auto" : "100%",
|
12930
12930
|
left: `${t.left}`,
|
12931
12931
|
right: `${t.right}`,
|
@@ -12935,10 +12935,10 @@ const ke = B.svg`
|
|
12935
12935
|
};
|
12936
12936
|
_((m) => JSON.stringify(m) === JSON.stringify(D) ? m : D);
|
12937
12937
|
}, []), x = d1(() => {
|
12938
|
-
const
|
12939
|
-
if (!
|
12940
|
-
const b =
|
12941
|
-
top: z ? `${Z - b.height - 10}px` : `${Z +
|
12938
|
+
const v = h == null ? void 0 : h.current, k = o == null ? void 0 : o.current;
|
12939
|
+
if (!v || !k) return;
|
12940
|
+
const b = v.getBoundingClientRect(), M = k.getBoundingClientRect(), R = M.left + window.scrollX, Z = M.top + window.scrollY, F = window.innerHeight - M.bottom, D = M.top, z = b.height + 50 > F && D + 150 > F, m = {
|
12941
|
+
top: z ? `${Z - b.height - 10}px` : `${Z + M.height}px`,
|
12942
12942
|
left: `${R}px`,
|
12943
12943
|
marginTop: z ? "auto" : "10px",
|
12944
12944
|
marginBottom: z ? "10px" : "auto"
|
@@ -12948,7 +12948,7 @@ const ke = B.svg`
|
|
12948
12948
|
n1(() => (E(), window.addEventListener("resize", E), window.addEventListener("scroll", E, !0), () => {
|
12949
12949
|
window.removeEventListener("resize", E), window.removeEventListener("scroll", E, !0);
|
12950
12950
|
}), [E]);
|
12951
|
-
const w = (
|
12951
|
+
const w = (v, k = !1) => {
|
12952
12952
|
if (k) {
|
12953
12953
|
if (f === "0") return;
|
12954
12954
|
if (f.length === 1)
|
@@ -12956,10 +12956,10 @@ const ke = B.svg`
|
|
12956
12956
|
u((b) => b.substring(0, b.length - 1));
|
12957
12957
|
return;
|
12958
12958
|
}
|
12959
|
-
if (!(
|
12959
|
+
if (!(v === "." && f.includes("."))) {
|
12960
12960
|
if (f === "0")
|
12961
|
-
return u(
|
12962
|
-
u((b) => (b +
|
12961
|
+
return u(v === "." ? (b) => (b + v).toString() : v);
|
12962
|
+
u((b) => (b + v).toString());
|
12963
12963
|
}
|
12964
12964
|
};
|
12965
12965
|
return n1(() => {
|
@@ -14834,7 +14834,7 @@ const Je = B.button`
|
|
14834
14834
|
disabled: o = !1,
|
14835
14835
|
...p
|
14836
14836
|
}) => {
|
14837
|
-
const f = e1(null), [u, h] = N(!1), [g, _] = N(""), [V, x] = N(!1), [E, w] = N(""), [
|
14837
|
+
const f = e1(null), [u, h] = N(!1), [g, _] = N(""), [V, x] = N(!1), [E, w] = N(""), [v, k] = N(""), [b, M] = N(""), [R, Z] = N(""), F = e1(!1), D = o1(() => {
|
14838
14838
|
var j;
|
14839
14839
|
return !E || !V ? [] : ((j = U2.find(
|
14840
14840
|
(A) => A.title.toLowerCase() === E.toLowerCase()
|
@@ -14855,28 +14855,28 @@ const Je = B.button`
|
|
14855
14855
|
w(j.title);
|
14856
14856
|
return;
|
14857
14857
|
}
|
14858
|
-
k(j.title),
|
14858
|
+
k(j.title), M(j.clasificare ?? "");
|
14859
14859
|
},
|
14860
14860
|
[V]
|
14861
14861
|
), $ = d1(() => {
|
14862
|
-
F.current = !0, x(!1), _(""), k(""),
|
14862
|
+
F.current = !0, x(!1), _(""), k(""), M("");
|
14863
14863
|
}, []), y = d1(() => {
|
14864
14864
|
if (F.current = !0, !V && E) {
|
14865
14865
|
x(!0), _("");
|
14866
14866
|
return;
|
14867
14867
|
}
|
14868
|
-
if (!
|
14869
|
-
const j = `${E} - ${
|
14870
|
-
x(!0), h(!1), Z(j), n && n({ judet: E, localitate:
|
14871
|
-
}, [V, E,
|
14868
|
+
if (!v) return;
|
14869
|
+
const j = `${E} - ${v}`;
|
14870
|
+
x(!0), h(!1), Z(j), n && n({ judet: E, localitate: v, clasificare: b });
|
14871
|
+
}, [V, E, v, b, n]);
|
14872
14872
|
return n1(() => {
|
14873
14873
|
const j = (A) => {
|
14874
14874
|
if (f.current && !f.current.contains(A.target)) {
|
14875
14875
|
if (h(!1), r != null && r.judet) {
|
14876
|
-
w(r == null ? void 0 : r.judet), x(!0), r != null && r.localitate && (k(r == null ? void 0 : r.localitate),
|
14876
|
+
w(r == null ? void 0 : r.judet), x(!0), r != null && r.localitate && (k(r == null ? void 0 : r.localitate), M((r == null ? void 0 : r.clasificare) ?? ""));
|
14877
14877
|
return;
|
14878
14878
|
}
|
14879
|
-
w(""), k(""),
|
14879
|
+
w(""), k(""), M(""), x(!1);
|
14880
14880
|
}
|
14881
14881
|
};
|
14882
14882
|
if (u)
|
@@ -14886,7 +14886,7 @@ const Je = B.button`
|
|
14886
14886
|
}, [f, u]), n1(() => {
|
14887
14887
|
if (F.current) return;
|
14888
14888
|
let j = "";
|
14889
|
-
r != null && r.judet && (w(r == null ? void 0 : r.judet), j = `${r == null ? void 0 : r.judet}`, x(!0)), r != null && r.localitate && (k(r == null ? void 0 : r.localitate), r != null && r.judet && (j = `${r == null ? void 0 : r.judet} - ${r == null ? void 0 : r.localitate}`)), r != null && r.clasificare &&
|
14889
|
+
r != null && r.judet && (w(r == null ? void 0 : r.judet), j = `${r == null ? void 0 : r.judet}`, x(!0)), r != null && r.localitate && (k(r == null ? void 0 : r.localitate), r != null && r.judet && (j = `${r == null ? void 0 : r.judet} - ${r == null ? void 0 : r.localitate}`)), r != null && r.clasificare && M(r == null ? void 0 : r.clasificare), Z(j);
|
14890
14890
|
}, [r]), /* @__PURE__ */ i.jsxs(
|
14891
14891
|
Ke,
|
14892
14892
|
{
|
@@ -14936,7 +14936,7 @@ const Je = B.button`
|
|
14936
14936
|
/* @__PURE__ */ i.jsx("div", { children: /* @__PURE__ */ i.jsx("div", { children: z.length > 0 ? z.map((j, A) => /* @__PURE__ */ i.jsx(
|
14937
14937
|
"div",
|
14938
14938
|
{
|
14939
|
-
"data-active": V ?
|
14939
|
+
"data-active": V ? v === j.title : E === j.title,
|
14940
14940
|
onClick: () => S(j),
|
14941
14941
|
children: /* @__PURE__ */ i.jsx("span", { children: j.title })
|
14942
14942
|
},
|
@@ -15065,7 +15065,7 @@ const Je = B.button`
|
|
15065
15065
|
card_de_credit: "Card de credit",
|
15066
15066
|
overdraft: "Overdraft",
|
15067
15067
|
credit_ipotecar: "Credit ipotecar"
|
15068
|
-
},
|
15068
|
+
}, v = o1(() => !c || c.length === 0 ? [] : c.map((j, A) => {
|
15069
15069
|
if (j.tipCredit === "card_de_credit" || j.tipCredit === "overdraft") {
|
15070
15070
|
const G = Number(j.limitaAprobata) / 100 * 3;
|
15071
15071
|
return {
|
@@ -15079,7 +15079,7 @@ const Je = B.button`
|
|
15079
15079
|
limitaAprobata: "0",
|
15080
15080
|
...j
|
15081
15081
|
};
|
15082
|
-
}), [c]), [k, b] = N(
|
15082
|
+
}), [c]), [k, b] = N(v || []), M = [
|
15083
15083
|
{
|
15084
15084
|
label: "Card de credit",
|
15085
15085
|
value: "card_de_credit"
|
@@ -15184,7 +15184,7 @@ const Je = B.button`
|
|
15184
15184
|
he,
|
15185
15185
|
{
|
15186
15186
|
dropdownContentWidth: "120%",
|
15187
|
-
data:
|
15187
|
+
data: M,
|
15188
15188
|
value: h,
|
15189
15189
|
setValue: (y) => {
|
15190
15190
|
g(y), V("0"), E("0");
|
@@ -16114,7 +16114,7 @@ const Je = B.button`
|
|
16114
16114
|
img: E = "",
|
16115
16115
|
onClick: w = () => {
|
16116
16116
|
},
|
16117
|
-
...
|
16117
|
+
...v
|
16118
16118
|
}) => /* @__PURE__ */ i.jsxs(
|
16119
16119
|
it,
|
16120
16120
|
{
|
@@ -16129,7 +16129,7 @@ const Je = B.button`
|
|
16129
16129
|
onClick: (k) => {
|
16130
16130
|
x || w(k);
|
16131
16131
|
},
|
16132
|
-
...
|
16132
|
+
...v,
|
16133
16133
|
children: [
|
16134
16134
|
/* @__PURE__ */ i.jsxs("div", { children: [
|
16135
16135
|
/* @__PURE__ */ i.jsx("img", { src: E, alt: "offer-card" }),
|
@@ -16288,10 +16288,10 @@ const Je = B.button`
|
|
16288
16288
|
cashCrestere: l.blue_300,
|
16289
16289
|
cashConservare: l.purple_300,
|
16290
16290
|
cashLichiditate: l.pink_300
|
16291
|
-
}, [E, w] = N(83),
|
16292
|
-
const
|
16291
|
+
}, [E, w] = N(83), v = o1(() => {
|
16292
|
+
const M = p ? 0 : (L / t || 0) * E, R = p ? 0 : ((a / t || 0) * E).toFixed(2), Z = p ? 0 : ((r / t || 0) * E).toFixed(2), F = p ? 0 : ((n / t || 0) * E).toFixed(2), D = p ? 0 : ((c / t || 0) * E).toFixed(2), z = p ? 0 : ((C / t || 0) * E).toFixed(2), m = p ? 0 : ((o / t || 0) * E).toFixed(2);
|
16293
16293
|
return {
|
16294
|
-
cash_percentage: Number(
|
16294
|
+
cash_percentage: Number(M),
|
16295
16295
|
crestere_percentage: Number(R),
|
16296
16296
|
conservare_percentage: Number(Z),
|
16297
16297
|
lichiditate_percentage: Number(F),
|
@@ -16310,11 +16310,11 @@ const Je = B.button`
|
|
16310
16310
|
C,
|
16311
16311
|
o,
|
16312
16312
|
p
|
16313
|
-
]), k = o1(() =>
|
16314
|
-
var
|
16313
|
+
]), k = o1(() => v.crestere_percentage + v.conservare_percentage + v.lichiditate_percentage + v.cashCrestere_percentage + v.cashConservare_percentage + v.cashLichiditate_percentage > 0 ? v.cash_percentage : E, [v, E]), b = d1(() => {
|
16314
|
+
var M, R;
|
16315
16315
|
if (h.current) {
|
16316
16316
|
const Z = h.current.clientWidth, F = Math.max(
|
16317
|
-
((
|
16317
|
+
((M = g.current) == null ? void 0 : M.getBBox().width) || 0,
|
16318
16318
|
((R = _.current) == null ? void 0 : R.getBBox().width) || 0
|
16319
16319
|
), D = f && _.current ? F + 30 || 65 : 4, z = (Z - Number(D)) / Z * 100;
|
16320
16320
|
return Number(Math.max(z, 0).toFixed(2));
|
@@ -16339,7 +16339,7 @@ const Je = B.button`
|
|
16339
16339
|
/* @__PURE__ */ i.jsx(
|
16340
16340
|
"rect",
|
16341
16341
|
{
|
16342
|
-
x:
|
16342
|
+
x: v.crestere_percentage + v.conservare_percentage + v.lichiditate_percentage + v.cashCrestere_percentage + v.cashConservare_percentage + v.cashLichiditate_percentage + "%",
|
16343
16343
|
y: 0,
|
16344
16344
|
height: 48,
|
16345
16345
|
width: k + "%",
|
@@ -16352,57 +16352,57 @@ const Je = B.button`
|
|
16352
16352
|
x: 0,
|
16353
16353
|
y: 0,
|
16354
16354
|
height: 48,
|
16355
|
-
width:
|
16355
|
+
width: v.crestere_percentage + "%",
|
16356
16356
|
fill: x.crestere
|
16357
16357
|
}
|
16358
16358
|
),
|
16359
16359
|
/* @__PURE__ */ i.jsx(
|
16360
16360
|
"rect",
|
16361
16361
|
{
|
16362
|
-
x:
|
16362
|
+
x: v.crestere_percentage + "%",
|
16363
16363
|
y: 0,
|
16364
16364
|
height: 48,
|
16365
|
-
width:
|
16365
|
+
width: v.cashCrestere_percentage + "%",
|
16366
16366
|
fill: x.cashCrestere
|
16367
16367
|
}
|
16368
16368
|
),
|
16369
16369
|
/* @__PURE__ */ i.jsx(
|
16370
16370
|
"rect",
|
16371
16371
|
{
|
16372
|
-
x:
|
16372
|
+
x: v.crestere_percentage + v.cashCrestere_percentage + "%",
|
16373
16373
|
y: 0,
|
16374
16374
|
height: 48,
|
16375
|
-
width:
|
16375
|
+
width: v.conservare_percentage + "%",
|
16376
16376
|
fill: x.conservare
|
16377
16377
|
}
|
16378
16378
|
),
|
16379
16379
|
/* @__PURE__ */ i.jsx(
|
16380
16380
|
"rect",
|
16381
16381
|
{
|
16382
|
-
x:
|
16382
|
+
x: v.crestere_percentage + v.cashCrestere_percentage + v.conservare_percentage + "%",
|
16383
16383
|
y: 0,
|
16384
16384
|
height: 48,
|
16385
|
-
width:
|
16385
|
+
width: v.cashConservare_percentage + "%",
|
16386
16386
|
fill: x.cashConservare
|
16387
16387
|
}
|
16388
16388
|
),
|
16389
16389
|
/* @__PURE__ */ i.jsx(
|
16390
16390
|
"rect",
|
16391
16391
|
{
|
16392
|
-
x:
|
16392
|
+
x: v.crestere_percentage + v.cashCrestere_percentage + v.conservare_percentage + v.cashConservare_percentage + "%",
|
16393
16393
|
y: 0,
|
16394
16394
|
height: 48,
|
16395
|
-
width:
|
16395
|
+
width: v.lichiditate_percentage + "%",
|
16396
16396
|
fill: x.lichiditate
|
16397
16397
|
}
|
16398
16398
|
),
|
16399
16399
|
/* @__PURE__ */ i.jsx(
|
16400
16400
|
"rect",
|
16401
16401
|
{
|
16402
|
-
x:
|
16402
|
+
x: v.crestere_percentage + v.cashCrestere_percentage + v.conservare_percentage + v.cashConservare_percentage + v.lichiditate_percentage + "%",
|
16403
16403
|
y: 0,
|
16404
16404
|
height: 48,
|
16405
|
-
width:
|
16405
|
+
width: v.cashLichiditate_percentage + "%",
|
16406
16406
|
fill: x.cashLichiditate
|
16407
16407
|
}
|
16408
16408
|
),
|
@@ -16479,56 +16479,38 @@ const Je = B.button`
|
|
16479
16479
|
conservare: l.purple_400,
|
16480
16480
|
lichiditate: l.pink_300,
|
16481
16481
|
inflatie: l.danger_500
|
16482
|
-
}, x = (
|
16483
|
-
const b =
|
16482
|
+
}, x = (v, k = 134) => {
|
16483
|
+
const b = v.split(" "), M = [];
|
16484
16484
|
let R = b[0];
|
16485
16485
|
for (let Z = 1; Z < b.length; Z++) {
|
16486
16486
|
const F = b[Z], D = `${R} ${F}`;
|
16487
|
-
Number(D.length) * 6.15 < Number(k) ? R = D : (
|
16487
|
+
Number(D.length) * 6.15 < Number(k) ? R = D : (M.push(R), R = F);
|
16488
16488
|
}
|
16489
|
-
return
|
16489
|
+
return M.push(R), M;
|
16490
16490
|
}, E = o1(() => {
|
16491
16491
|
if (t > 0 || L > 0 || a > 0 || r > 0) {
|
16492
|
-
const
|
16492
|
+
const v = t - (L || 0) - (a || 0) - (r || 0);
|
16493
16493
|
return new Intl.NumberFormat("ro-RO", {
|
16494
16494
|
style: "currency",
|
16495
16495
|
currency: "RON",
|
16496
16496
|
minimumFractionDigits: 0,
|
16497
16497
|
maximumFractionDigits: 0
|
16498
|
-
}).format(
|
16498
|
+
}).format(v);
|
16499
16499
|
}
|
16500
16500
|
return p;
|
16501
16501
|
}, [t, L, a, r, p]), w = o1(() => {
|
16502
|
-
const
|
16503
|
-
console.log("{{{}}}", {
|
16504
|
-
"scale-remaining": c - t,
|
16505
|
-
scale_remaining: R,
|
16506
|
-
cash_init_h: v,
|
16507
|
-
scale_max: c,
|
16508
|
-
invisible_h: Z
|
16509
|
-
});
|
16510
|
-
const F = v - Z, D = L + a + r, z = Math.max(t - D, 0), m = {
|
16502
|
+
const M = f - 54, R = c > t ? c - t : 0, Z = R > 0 ? Number((R * M / c * 3).toFixed(2)) : 0, F = M - Z, D = L + a + r, z = Math.max(t - D, 0), m = {
|
16511
16503
|
crestere: L > 0 ? L * F / t : 0,
|
16512
16504
|
conservare: a > 0 ? a * F / t : 0,
|
16513
16505
|
lichiditate: r > 0 ? r * F / t : 0,
|
16514
16506
|
cash: z > 0 ? z * F / t : 0,
|
16515
|
-
inflatie: n > 0 ? n / 100 *
|
16507
|
+
inflatie: n > 0 ? n / 100 * M + 18 : 0
|
16516
16508
|
}, S = Object.entries(m).filter(
|
16517
16509
|
([c1, g1]) => g1 > 0 && c1 !== "inflatie"
|
16518
16510
|
).length, $ = (S - 1) * 4 + (n > 0 ? 8 : 0), y = S * 18 + $ + (n > 0 ? m.inflatie : 0), j = Math.max(0, F - y), A = Object.entries(m).reduce(
|
16519
16511
|
(c1, [g1, y1]) => g1 !== "inflatie" ? c1 + y1 : c1,
|
16520
16512
|
0
|
16521
|
-
)
|
16522
|
-
console.log("avavava", {
|
16523
|
-
raw_heights_without_gaps: m,
|
16524
|
-
active_sections: S,
|
16525
|
-
gaps_space: $,
|
16526
|
-
min_space_needed: y,
|
16527
|
-
remaining_height: j,
|
16528
|
-
total_raw_height: A,
|
16529
|
-
inflatie: n
|
16530
|
-
});
|
16531
|
-
const G = m.crestere > 0 ? 18 + j * m.crestere / A : 0, T = m.conservare > 0 ? 18 + j * m.conservare / A : 0, I = m.lichiditate > 0 ? 18 + j * m.lichiditate / A : 0, i1 = m.cash > 0 ? 18 + j * m.cash / A : 0, r1 = m.inflatie > 0 ? Math.min(
|
16513
|
+
), G = m.crestere > 0 ? 18 + j * m.crestere / A : 0, T = m.conservare > 0 ? 18 + j * m.conservare / A : 0, I = m.lichiditate > 0 ? 18 + j * m.lichiditate / A : 0, i1 = m.cash > 0 ? 18 + j * m.cash / A : 0, r1 = m.inflatie > 0 ? Math.min(
|
16532
16514
|
m.inflatie,
|
16533
16515
|
A - (S * 18 + $)
|
16534
16516
|
) : 0;
|
@@ -16556,7 +16538,7 @@ const Je = B.button`
|
|
16556
16538
|
inflatie_y: f1,
|
16557
16539
|
available_h: F,
|
16558
16540
|
invisible_h: Z,
|
16559
|
-
cash_init_h:
|
16541
|
+
cash_init_h: M
|
16560
16542
|
};
|
16561
16543
|
}, [t, L, a, r, f, c, n]);
|
16562
16544
|
return /* @__PURE__ */ i.jsxs(
|
@@ -16616,7 +16598,7 @@ const Je = B.button`
|
|
16616
16598
|
minimumFractionDigits: 0,
|
16617
16599
|
maximumFractionDigits: 0
|
16618
16600
|
}).format(L)
|
16619
|
-
).map((
|
16601
|
+
).map((v, k) => /* @__PURE__ */ i.jsx("tspan", { x: "50%", dy: k === 0 ? "0" : "1.2em", children: v }, k))
|
16620
16602
|
}
|
16621
16603
|
),
|
16622
16604
|
/* @__PURE__ */ i.jsx(
|
@@ -16643,7 +16625,7 @@ const Je = B.button`
|
|
16643
16625
|
minimumFractionDigits: 0,
|
16644
16626
|
maximumFractionDigits: 0
|
16645
16627
|
}).format(a)
|
16646
|
-
).map((
|
16628
|
+
).map((v, k) => /* @__PURE__ */ i.jsx("tspan", { x: "50%", dy: k === 0 ? "0" : "1.2em", children: v }, k))
|
16647
16629
|
}
|
16648
16630
|
),
|
16649
16631
|
/* @__PURE__ */ i.jsx(
|
@@ -16670,7 +16652,7 @@ const Je = B.button`
|
|
16670
16652
|
minimumFractionDigits: 0,
|
16671
16653
|
maximumFractionDigits: 0
|
16672
16654
|
}).format(r)
|
16673
|
-
).map((
|
16655
|
+
).map((v, k) => /* @__PURE__ */ i.jsx("tspan", { x: "50%", dy: k === 0 ? "0" : "1.2em", children: v }, k))
|
16674
16656
|
}
|
16675
16657
|
),
|
16676
16658
|
/* @__PURE__ */ i.jsx(
|
@@ -16690,7 +16672,7 @@ const Je = B.button`
|
|
16690
16672
|
y: w.cash_y + w.cash_h / 2 + 5,
|
16691
16673
|
textAnchor: "middle",
|
16692
16674
|
className: "basic-label",
|
16693
|
-
children: x(E).map((
|
16675
|
+
children: x(E).map((v, k) => /* @__PURE__ */ i.jsx("tspan", { x: "50%", dy: k === 0 ? "0" : "1.2em", children: v }, k))
|
16694
16676
|
}
|
16695
16677
|
),
|
16696
16678
|
n > 0 && /* @__PURE__ */ i.jsx(
|
@@ -16710,7 +16692,7 @@ const Je = B.button`
|
|
16710
16692
|
y: w.inflatie_y + w.inflatie_h / 2 + 5,
|
16711
16693
|
textAnchor: "middle",
|
16712
16694
|
className: "inflatie-label",
|
16713
|
-
children: x(n + "%").map((
|
16695
|
+
children: x(n + "%").map((v, k) => /* @__PURE__ */ i.jsx("tspan", { x: "50%", dy: k === 0 ? "0" : "1.2em", children: v }, k))
|
16714
16696
|
}
|
16715
16697
|
),
|
16716
16698
|
/* @__PURE__ */ i.jsx("text", { textAnchor: "middle", x: "50%", y: "98.5%", className: "label_bottom", children: o })
|