rbro-tat-uds 1.6.28 → 1.6.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
@@ -175,11 +175,11 @@ var h2 = {};
|
|
175
175
|
var T3;
|
176
176
|
function O9() {
|
177
177
|
return T3 || (T3 = 1, process.env.NODE_ENV !== "production" && function() {
|
178
|
-
var t = f1, i = Symbol.for("react.element"), a = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), C = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), M = Symbol.for("react.offscreen"), g = Symbol.iterator,
|
178
|
+
var t = f1, i = Symbol.for("react.element"), a = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), C = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), M = Symbol.for("react.offscreen"), g = Symbol.iterator, E = "@@iterator";
|
179
179
|
function V(f) {
|
180
180
|
if (f === null || typeof f != "object")
|
181
181
|
return null;
|
182
|
-
var S = g && f[g] || f[
|
182
|
+
var S = g && f[g] || f[E];
|
183
183
|
return typeof S == "function" ? S : null;
|
184
184
|
}
|
185
185
|
var b = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
@@ -209,7 +209,7 @@ function O9() {
|
|
209
209
|
// with.
|
210
210
|
f.$$typeof === j || f.getModuleId !== void 0));
|
211
211
|
}
|
212
|
-
function
|
212
|
+
function x(f, S, z) {
|
213
213
|
var I = f.displayName;
|
214
214
|
if (I)
|
215
215
|
return I;
|
@@ -249,7 +249,7 @@ function O9() {
|
|
249
249
|
var z = f;
|
250
250
|
return A(z._context) + ".Provider";
|
251
251
|
case s:
|
252
|
-
return
|
252
|
+
return x(f, f.render, "ForwardRef");
|
253
253
|
case p:
|
254
254
|
var I = f.displayName || null;
|
255
255
|
return I !== null ? I : Z(f.type) || "Memo";
|
@@ -930,7 +930,7 @@ 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,
|
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, w = $; V; )
|
934
934
|
switch (g = R, R = B1()) {
|
935
935
|
case 40:
|
936
936
|
if (g != 108 && g1(w, p - 1) == 58) {
|
@@ -961,9 +961,9 @@ function Z2(t, i, a, n, r, c, o, C, s) {
|
|
961
961
|
w += "/";
|
962
962
|
}
|
963
963
|
break;
|
964
|
-
case 123 *
|
964
|
+
case 123 * E:
|
965
965
|
C[h++] = H1(w) * b;
|
966
|
-
case 125 *
|
966
|
+
case 125 * E:
|
967
967
|
case 59:
|
968
968
|
case 0:
|
969
969
|
switch (R) {
|
@@ -991,18 +991,18 @@ function Z2(t, i, a, n, r, c, o, C, s) {
|
|
991
991
|
Z2(w, F, F, F, [""], _, 0, C, _);
|
992
992
|
}
|
993
993
|
}
|
994
|
-
h = u = M = 0,
|
994
|
+
h = u = M = 0, E = b = 1, $ = w = "", p = o;
|
995
995
|
break;
|
996
996
|
case 58:
|
997
997
|
p = 1 + H1(w), M = g;
|
998
998
|
default:
|
999
|
-
if (
|
999
|
+
if (E < 1) {
|
1000
1000
|
if (R == 123)
|
1001
|
-
--
|
1002
|
-
else if (R == 125 &&
|
1001
|
+
--E;
|
1002
|
+
else if (R == 125 && E++ == 0 && X9() == 125)
|
1003
1003
|
continue;
|
1004
1004
|
}
|
1005
|
-
switch (w += V3(R), R *
|
1005
|
+
switch (w += V3(R), R * E) {
|
1006
1006
|
case 38:
|
1007
1007
|
b = u > 0 ? 1 : (w += "\f", -1);
|
1008
1008
|
break;
|
@@ -1013,14 +1013,14 @@ function Z2(t, i, a, n, r, c, o, C, s) {
|
|
1013
1013
|
Y1() === 45 && (w += X2(B1())), m = Y1(), u = p = H1($ = w += l5(w2())), R++;
|
1014
1014
|
break;
|
1015
1015
|
case 45:
|
1016
|
-
g === 45 && H1(w) == 2 && (
|
1016
|
+
g === 45 && H1(w) == 2 && (E = 0);
|
1017
1017
|
}
|
1018
1018
|
}
|
1019
1019
|
return c;
|
1020
1020
|
}
|
1021
1021
|
function W3(t, i, a, n, r, c, o, C, s, h, u, p) {
|
1022
|
-
for (var m = r - 1, M = r === 0 ? c : [""], g = H6(M),
|
1023
|
-
for (var R = 0, $ = a2(t, m + 1, m = B6(V = o[
|
1022
|
+
for (var m = r - 1, M = r === 0 ? c : [""], g = H6(M), E = 0, V = 0, b = 0; E < n; ++E)
|
1023
|
+
for (var R = 0, $ = a2(t, m + 1, m = B6(V = o[E])), v = t; R < g; ++R)
|
1024
1024
|
(v = F6(V > 0 ? M[R] + " " + $ : Y($, /&\f/g, M[R]))) && (s[b++] = v);
|
1025
1025
|
return P2(t, i, a, r === 0 ? S2 : C, s, h, u, p);
|
1026
1026
|
}
|
@@ -1560,10 +1560,10 @@ var q6 = function(t) {
|
|
1560
1560
|
if (m === void 0) return "continue";
|
1561
1561
|
var M = c.names.get(m), g = o.getGroup(p);
|
1562
1562
|
if (M === void 0 || g.length === 0) return "continue";
|
1563
|
-
var
|
1563
|
+
var E = "".concat(U1, ".g").concat(p, '[id="').concat(m, '"]'), V = "";
|
1564
1564
|
M !== void 0 && M.forEach(function(b) {
|
1565
1565
|
b.length > 0 && (V += "".concat(b, ","));
|
1566
|
-
}), s += "".concat(g).concat(
|
1566
|
+
}), s += "".concat(g).concat(E, '{content:"').concat(V, '"}').concat(v3);
|
1567
1567
|
}, u = 0; u < C; u++) h(u);
|
1568
1568
|
return s;
|
1569
1569
|
}(r);
|
@@ -1613,8 +1613,8 @@ function D5(t) {
|
|
1613
1613
|
u.push(function(m) {
|
1614
1614
|
m.type === S2 && m.value.includes("&") && (m.props[0] = m.props[0].replace(A5, a).replace(n, h));
|
1615
1615
|
}), o.prefix && u.push(c5), u.push(a5);
|
1616
|
-
var p = function(m, M, g,
|
1617
|
-
M === void 0 && (M = ""), g === void 0 && (g = ""),
|
1616
|
+
var p = function(m, M, g, E) {
|
1617
|
+
M === void 0 && (M = ""), g === void 0 && (g = ""), E === void 0 && (E = "&"), i = E, a = M, n = new RegExp("\\".concat(a, "\\b"), "g");
|
1618
1618
|
var V = m.replace(S5, ""), b = L5(g || M ? "".concat(g, " ").concat(M, " { ").concat(V, " }") : V);
|
1619
1619
|
o.namespace && (b = U6(b, o.namespace));
|
1620
1620
|
var R = [];
|
@@ -1731,20 +1731,20 @@ function T5(t, i, a) {
|
|
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;
|
1733
1733
|
if (n && r.shouldForwardProp) {
|
1734
|
-
var
|
1734
|
+
var E = r.shouldForwardProp;
|
1735
1735
|
if (i.shouldForwardProp) {
|
1736
1736
|
var V = i.shouldForwardProp;
|
1737
1737
|
g = function(v, _) {
|
1738
|
-
return
|
1738
|
+
return E(v, _) && V(v, _);
|
1739
1739
|
};
|
1740
|
-
} else g =
|
1740
|
+
} else g = E;
|
1741
1741
|
}
|
1742
1742
|
var b = new N5(a, m, n ? r.componentStyle : void 0);
|
1743
1743
|
function R(v, _) {
|
1744
1744
|
return function(F, w, k) {
|
1745
|
-
var j = F.attrs, P = F.componentStyle,
|
1745
|
+
var j = F.attrs, P = F.componentStyle, x = F.defaultProps, A = F.foldedComponentIds, Z = F.styledComponentId, y = F.target, H = f1.useContext(w3), D = h3(), W = F.shouldForwardProp || D.shouldForwardProp;
|
1746
1746
|
process.env.NODE_ENV !== "production" && O3(Z);
|
1747
|
-
var G = P6(w, H,
|
1747
|
+
var G = P6(w, 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];
|
@@ -2862,7 +2862,7 @@ const R1 = {
|
|
2862
2862
|
items: m,
|
2863
2863
|
content: M,
|
2864
2864
|
padding: g,
|
2865
|
-
margin:
|
2865
|
+
margin: E,
|
2866
2866
|
radius: V,
|
2867
2867
|
border: b,
|
2868
2868
|
css: R,
|
@@ -2890,7 +2890,7 @@ const R1 = {
|
|
2890
2890
|
$items: m,
|
2891
2891
|
$content: M,
|
2892
2892
|
$padding: g,
|
2893
|
-
$margin:
|
2893
|
+
$margin: E,
|
2894
2894
|
$radius: V,
|
2895
2895
|
$border: b,
|
2896
2896
|
$css: R,
|
@@ -3180,7 +3180,7 @@ const R1 = {
|
|
3180
3180
|
disabled: m = !1,
|
3181
3181
|
loading: M = !1,
|
3182
3182
|
buttonOnClick: g,
|
3183
|
-
...
|
3183
|
+
...E
|
3184
3184
|
}) => /* @__PURE__ */ L.jsxs(
|
3185
3185
|
d0,
|
3186
3186
|
{
|
@@ -3193,7 +3193,7 @@ const R1 = {
|
|
3193
3193
|
$textFontWeight: o,
|
3194
3194
|
$icon: C,
|
3195
3195
|
$disabled: m,
|
3196
|
-
...
|
3196
|
+
...E,
|
3197
3197
|
children: [
|
3198
3198
|
/* @__PURE__ */ L.jsxs("div", { children: [
|
3199
3199
|
/* @__PURE__ */ L.jsxs("div", { children: [
|
@@ -4035,7 +4035,7 @@ const v0 = [14, 16, 18, 20, 24], M0 = [200, 300, 400, 500, 700, 800], _0 = B.div
|
|
4035
4035
|
leftButtonIcon: m,
|
4036
4036
|
rightButtonIcon: M,
|
4037
4037
|
rightButtonOnClick: g,
|
4038
|
-
onCloseNumpad:
|
4038
|
+
onCloseNumpad: E,
|
4039
4039
|
numpad: V = !1,
|
4040
4040
|
numpadOffset: b = 10,
|
4041
4041
|
numpadFloatNumber: R = !0,
|
@@ -4050,7 +4050,7 @@ const v0 = [14, 16, 18, 20, 24], M0 = [200, 300, 400, 500, 700, 800], _0 = B.div
|
|
4050
4050
|
c("");
|
4051
4051
|
}, P = (A) => {
|
4052
4052
|
c && c(A);
|
4053
|
-
},
|
4053
|
+
}, x = (A) => {
|
4054
4054
|
if (V && !s)
|
4055
4055
|
if (v) {
|
4056
4056
|
const Z = setTimeout(() => k(!0), 100);
|
@@ -4062,13 +4062,13 @@ const v0 = [14, 16, 18, 20, 24], M0 = [200, 300, 400, 500, 700, 800], _0 = B.div
|
|
4062
4062
|
return e1(() => {
|
4063
4063
|
const A = F == null ? void 0 : F.current, Z = (y) => {
|
4064
4064
|
const H = document.getElementById("rbro-numpad-wrapper"), D = H == null ? void 0 : H.contains(y.target);
|
4065
|
-
A && !A.contains(y.target) && !D && (
|
4065
|
+
A && !A.contains(y.target) && !D && (E && E(), k(!1));
|
4066
4066
|
};
|
4067
4067
|
if (w)
|
4068
4068
|
return document.addEventListener("mousedown", Z), () => {
|
4069
4069
|
document.removeEventListener("mousedown", Z);
|
4070
4070
|
};
|
4071
|
-
}, [w, F,
|
4071
|
+
}, [w, F, E]), /* @__PURE__ */ L.jsxs(
|
4072
4072
|
$0,
|
4073
4073
|
{
|
4074
4074
|
ref: F,
|
@@ -4090,7 +4090,7 @@ const v0 = [14, 16, 18, 20, 24], M0 = [200, 300, 400, 500, 700, 800], _0 = B.div
|
|
4090
4090
|
value: r,
|
4091
4091
|
getValue: (A) => P(A),
|
4092
4092
|
handleFooterButton: () => {
|
4093
|
-
|
4093
|
+
E && E(), k(!1);
|
4094
4094
|
},
|
4095
4095
|
offset: b,
|
4096
4096
|
float: R,
|
@@ -4105,7 +4105,7 @@ const v0 = [14, 16, 18, 20, 24], M0 = [200, 300, 400, 500, 700, 800], _0 = B.div
|
|
4105
4105
|
value: r,
|
4106
4106
|
getValue: (A) => P(A),
|
4107
4107
|
handleFooterButton: () => {
|
4108
|
-
|
4108
|
+
E && E(), k(!1);
|
4109
4109
|
},
|
4110
4110
|
offset: b,
|
4111
4111
|
float: R,
|
@@ -4139,7 +4139,7 @@ const v0 = [14, 16, 18, 20, 24], M0 = [200, 300, 400, 500, 700, 800], _0 = B.div
|
|
4139
4139
|
onChange: (A) => {
|
4140
4140
|
V || P(A.target.value);
|
4141
4141
|
},
|
4142
|
-
onClick:
|
4142
|
+
onClick: x
|
4143
4143
|
}
|
4144
4144
|
),
|
4145
4145
|
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: [
|
@@ -4243,7 +4243,7 @@ const v0 = [14, 16, 18, 20, 24], M0 = [200, 300, 400, 500, 700, 800], _0 = B.div
|
|
4243
4243
|
showLeftHelperIcon: m = !0,
|
4244
4244
|
...M
|
4245
4245
|
}, g) => {
|
4246
|
-
const
|
4246
|
+
const E = {
|
4247
4247
|
info: /* @__PURE__ */ L.jsx(O, { icon: "info_filled", color: l.gray_500, size: 14 }),
|
4248
4248
|
success: /* @__PURE__ */ L.jsx(O, { icon: "checkmark_filled", color: l.success_600, size: 14 }),
|
4249
4249
|
warning: /* @__PURE__ */ L.jsx(O, { icon: "warning_filled", color: l.warning_500, size: 14 }),
|
@@ -4291,7 +4291,7 @@ const v0 = [14, 16, 18, 20, 24], M0 = [200, 300, 400, 500, 700, 800], _0 = B.div
|
|
4291
4291
|
$helperIntent: s,
|
4292
4292
|
children: [
|
4293
4293
|
typeof c == "string" && !!c.length && /* @__PURE__ */ L.jsxs("div", { children: [
|
4294
|
-
m &&
|
4294
|
+
m && E[s],
|
4295
4295
|
/* @__PURE__ */ L.jsx("span", { children: c })
|
4296
4296
|
] }),
|
4297
4297
|
/* @__PURE__ */ L.jsx("span", { children: o })
|
@@ -4368,14 +4368,14 @@ const k0 = [32, 40, 48], A0 = B.div`
|
|
4368
4368
|
wrapperWidth: u,
|
4369
4369
|
...p
|
4370
4370
|
}) => {
|
4371
|
-
const m = Q(null), [M, g] = T(!1),
|
4371
|
+
const m = Q(null), [M, g] = T(!1), E = C1(
|
4372
4372
|
(w) => {
|
4373
4373
|
var j, P;
|
4374
4374
|
const k = (j = m.current) == null ? void 0 : j.getBoundingClientRect();
|
4375
4375
|
if (k) {
|
4376
|
-
let
|
4377
|
-
if ("touches" in w ?
|
4378
|
-
const A =
|
4376
|
+
let x;
|
4377
|
+
if ("touches" in w ? x = (P = w.touches[0]) == null ? void 0 : P.clientX : "clientX" in w && (x = w.clientX), x !== void 0) {
|
4378
|
+
const A = x - k.left, Z = k.width, y = A / Z * (c - r) + r;
|
4379
4379
|
let H = Math.round(y / C) * C;
|
4380
4380
|
H = Math.max(r, H), H = Math.min(c, H), n && n(H);
|
4381
4381
|
}
|
@@ -4402,18 +4402,18 @@ const k0 = [32, 40, 48], A0 = B.div`
|
|
4402
4402
|
n && n(a), g(!1);
|
4403
4403
|
}, [a, n]), R = C1(
|
4404
4404
|
(w) => {
|
4405
|
-
M &&
|
4405
|
+
M && E(w);
|
4406
4406
|
},
|
4407
|
-
[M,
|
4407
|
+
[M, E]
|
4408
4408
|
), $ = (w) => {
|
4409
|
-
s || (
|
4409
|
+
s || (E(w), g(!0));
|
4410
4410
|
}, v = (w) => {
|
4411
|
-
g(!0),
|
4411
|
+
g(!0), E(w);
|
4412
4412
|
}, _ = C1(
|
4413
4413
|
(w) => {
|
4414
|
-
|
4414
|
+
E(w);
|
4415
4415
|
},
|
4416
|
-
[
|
4416
|
+
[E]
|
4417
4417
|
), F = C1(() => {
|
4418
4418
|
n && n(a), g(!1);
|
4419
4419
|
}, [a, n]);
|
@@ -4496,9 +4496,9 @@ const k0 = [32, 40, 48], A0 = B.div`
|
|
4496
4496
|
}, D0 = B.div`
|
4497
4497
|
border-radius: 8px;
|
4498
4498
|
border: 1px solid
|
4499
|
-
${({ $featured: t }) => t ? l.accent_600 : l.gray_200};
|
4499
|
+
${({ $featured: t, $selected: i }) => i ? l.purple_500 : t ? l.accent_600 : l.gray_200};
|
4500
4500
|
overflow: hidden;
|
4501
|
-
min-height: 274px;
|
4501
|
+
min-height: ${({ $hideButton: t }) => t ? "274px" : "314px"};
|
4502
4502
|
box-sizing: border-box;
|
4503
4503
|
height: 100%;
|
4504
4504
|
width: 100%;
|
@@ -4535,13 +4535,13 @@ const k0 = [32, 40, 48], A0 = B.div`
|
|
4535
4535
|
align-items: center;
|
4536
4536
|
justify-content: space-between;
|
4537
4537
|
gap: 8px;
|
4538
|
-
background-color: ${t.$featured ? l.accent_100 : "transparent"};
|
4538
|
+
background-color: ${t.$refused ? l.gray_30 : t.$selected ? l.purple_50 : t.$featured ? l.accent_100 : "transparent"};
|
4539
4539
|
|
4540
4540
|
& > span {
|
4541
4541
|
font-size: 18px;
|
4542
4542
|
font-weight: 700;
|
4543
4543
|
line-height: 120%;
|
4544
|
-
color: ${l.purple_600};
|
4544
|
+
color: ${({ $refused: i }) => i ? l.gray_300 : l.purple_600};
|
4545
4545
|
}
|
4546
4546
|
}
|
4547
4547
|
|
@@ -4552,7 +4552,7 @@ const k0 = [32, 40, 48], A0 = B.div`
|
|
4552
4552
|
padding: 8px 16px 12px 16px;
|
4553
4553
|
min-height: 104px;
|
4554
4554
|
height: 100%;
|
4555
|
-
background-color: ${t.$featured ? l.accent_100 : "transparent"};
|
4555
|
+
background-color: ${t.$refused ? l.gray_30 : t.$selected ? l.purple_50 : t.$featured ? l.accent_100 : "transparent"};
|
4556
4556
|
|
4557
4557
|
& > div {
|
4558
4558
|
display: flex;
|
@@ -4573,14 +4573,14 @@ const k0 = [32, 40, 48], A0 = B.div`
|
|
4573
4573
|
font-size: 14px;
|
4574
4574
|
font-weight: 400;
|
4575
4575
|
line-height: 120%;
|
4576
|
-
color: ${l.gray_700};
|
4576
|
+
color: ${({ $refused: i }) => i ? l.gray_200 : l.gray_700};
|
4577
4577
|
}
|
4578
4578
|
|
4579
4579
|
& > span:nth-child(2) {
|
4580
4580
|
font-size: 20px;
|
4581
4581
|
font-weight: 700;
|
4582
4582
|
line-height: 120%;
|
4583
|
-
color: ${l.gray_950};
|
4583
|
+
color: ${({ $refused: i }) => i ? l.gray_300 : l.gray_950};
|
4584
4584
|
}
|
4585
4585
|
}
|
4586
4586
|
|
@@ -4590,14 +4590,14 @@ const k0 = [32, 40, 48], A0 = B.div`
|
|
4590
4590
|
font-size: 12px;
|
4591
4591
|
font-weight: 400;
|
4592
4592
|
line-height: 120%;
|
4593
|
-
color: ${l.gray_700};
|
4593
|
+
color: ${({ $refused: i }) => i ? l.gray_200 : l.gray_700};
|
4594
4594
|
}
|
4595
4595
|
|
4596
4596
|
& > span:nth-child(2) {
|
4597
4597
|
font-size: 14px;
|
4598
4598
|
font-weight: 500;
|
4599
4599
|
line-height: 120%;
|
4600
|
-
color: ${l.gray_950};
|
4600
|
+
color: ${({ $refused: i }) => i ? l.gray_300 : l.gray_950};
|
4601
4601
|
}
|
4602
4602
|
}
|
4603
4603
|
}
|
@@ -4643,16 +4643,16 @@ const k0 = [32, 40, 48], A0 = B.div`
|
|
4643
4643
|
|
4644
4644
|
& > div:first-of-type {
|
4645
4645
|
border-right: 0.5px solid ${l.gray_200};
|
4646
|
-
background-color: ${t.$featured ? l.white : l.gray_30};
|
4646
|
+
background-color: ${t.$refused ? l.gray_60 : t.$featured ? l.white : l.gray_30};
|
4647
4647
|
|
4648
4648
|
& > div {
|
4649
4649
|
& > div {
|
4650
4650
|
& > span:first-child {
|
4651
|
-
color: ${l.gray_700};
|
4651
|
+
color: ${({ $refused: i }) => i ? l.gray_300 : l.gray_700};
|
4652
4652
|
}
|
4653
4653
|
|
4654
4654
|
& > span:last-child {
|
4655
|
-
color: ${l.gray_950};
|
4655
|
+
color: ${({ $refused: i }) => i ? l.gray_300 : l.gray_950};
|
4656
4656
|
}
|
4657
4657
|
}
|
4658
4658
|
}
|
@@ -4662,7 +4662,7 @@ const k0 = [32, 40, 48], A0 = B.div`
|
|
4662
4662
|
border-left: 0.5px solid ${l.gray_200};
|
4663
4663
|
background-color: ${(i) => {
|
4664
4664
|
var a;
|
4665
|
-
return (a = i.$refinantare) != null && a.length ? l.success_100 : l.gray_60;
|
4665
|
+
return i.$refused ? l.gray_60 : (a = i.$refinantare) != null && a.length ? l.success_100 : l.gray_60;
|
4666
4666
|
}};
|
4667
4667
|
|
4668
4668
|
& > div {
|
@@ -4670,13 +4670,13 @@ const k0 = [32, 40, 48], A0 = B.div`
|
|
4670
4670
|
& > span:first-child {
|
4671
4671
|
color: ${(i) => {
|
4672
4672
|
var a;
|
4673
|
-
return (a = i.$refinantare) != null && a.length ? l.success_800 : l.gray_300;
|
4673
|
+
return i.$refused ? l.gray_300 : (a = i.$refinantare) != null && a.length ? l.success_800 : l.gray_300;
|
4674
4674
|
}};
|
4675
4675
|
}
|
4676
4676
|
& > span:last-child {
|
4677
4677
|
color: ${(i) => {
|
4678
4678
|
var a;
|
4679
|
-
return (a = i.$refinantare) != null && a.length ? l.success_600 : l.gray_300;
|
4679
|
+
return i.$refused ? l.gray_300 : (a = i.$refinantare) != null && a.length ? l.success_600 : l.gray_300;
|
4680
4680
|
}};
|
4681
4681
|
}
|
4682
4682
|
}
|
@@ -4689,6 +4689,29 @@ const k0 = [32, 40, 48], A0 = B.div`
|
|
4689
4689
|
height: 106px;
|
4690
4690
|
box-sizing: border-box;
|
4691
4691
|
}
|
4692
|
+
|
4693
|
+
& > button {
|
4694
|
+
appearance: none;
|
4695
|
+
border: none;
|
4696
|
+
outline: none;
|
4697
|
+
background-color: ${({ $selected: i, $disabled: a }) => i ? a ? l.gray_100 : l.purple_600 : "transparent"};
|
4698
|
+
padding: 0px;
|
4699
|
+
width: 100%;
|
4700
|
+
height: 40px;
|
4701
|
+
display: flex;
|
4702
|
+
align-items: center;
|
4703
|
+
justify-content: center;
|
4704
|
+
gap: 8px;
|
4705
|
+
border-top: 1px solid ${l.gray_200};
|
4706
|
+
cursor: pointer;
|
4707
|
+
|
4708
|
+
& > span {
|
4709
|
+
font-size: 14px;
|
4710
|
+
font-weight: 500;
|
4711
|
+
line-height: 120%;
|
4712
|
+
color: ${({ $selected: i, $disabled: a }) => i ? a ? l.gray_600 : l.white : a ? l.gray_300 : l.purple_600};
|
4713
|
+
}
|
4714
|
+
}
|
4692
4715
|
`}
|
4693
4716
|
`, P0 = ({
|
4694
4717
|
title: t = "Propunere Flexicredit",
|
@@ -4703,19 +4726,28 @@ const k0 = [32, 40, 48], A0 = B.div`
|
|
4703
4726
|
emptyText: h = "Indisponibil",
|
4704
4727
|
featured: u = !1,
|
4705
4728
|
buttonOnClick: p,
|
4706
|
-
|
4707
|
-
|
4729
|
+
selectOnClick: m,
|
4730
|
+
hideButton: M = !0,
|
4731
|
+
selected: g = !1,
|
4732
|
+
disabled: E = !1,
|
4733
|
+
refused: V = !1,
|
4734
|
+
children: b,
|
4735
|
+
...R
|
4708
4736
|
}) => {
|
4709
|
-
let
|
4710
|
-
return T1.toArray(
|
4711
|
-
|
4737
|
+
let $ = null;
|
4738
|
+
return T1.toArray(b).filter(Boolean).forEach((v) => {
|
4739
|
+
v.type === l9 && ($ = v);
|
4712
4740
|
}), /* @__PURE__ */ L.jsx(
|
4713
4741
|
D0,
|
4714
4742
|
{
|
4715
4743
|
$refinantare: C,
|
4716
4744
|
$empty: s,
|
4717
4745
|
$featured: u,
|
4718
|
-
|
4746
|
+
$selected: g,
|
4747
|
+
$disabled: E,
|
4748
|
+
$refused: V,
|
4749
|
+
$hideButton: M,
|
4750
|
+
...R,
|
4719
4751
|
children: s ? /* @__PURE__ */ L.jsxs("div", { children: [
|
4720
4752
|
/* @__PURE__ */ L.jsx(O, { size: 20, icon: "rejected", color: l.gray_500 }),
|
4721
4753
|
/* @__PURE__ */ L.jsx("span", { children: h })
|
@@ -4760,7 +4792,14 @@ const k0 = [32, 40, 48], A0 = B.div`
|
|
4760
4792
|
] }),
|
4761
4793
|
/* @__PURE__ */ L.jsxs("div", { children: [
|
4762
4794
|
/* @__PURE__ */ L.jsx("div", { children: /* @__PURE__ */ L.jsxs("div", { children: [
|
4763
|
-
/* @__PURE__ */ L.jsx(
|
4795
|
+
/* @__PURE__ */ L.jsx(
|
4796
|
+
O,
|
4797
|
+
{
|
4798
|
+
icon: "calendar",
|
4799
|
+
size: 16,
|
4800
|
+
color: V ? l.gray_200 : l.gray_500
|
4801
|
+
}
|
4802
|
+
),
|
4764
4803
|
/* @__PURE__ */ L.jsxs("div", { children: [
|
4765
4804
|
/* @__PURE__ */ L.jsx("span", { children: "Perioada" }),
|
4766
4805
|
/* @__PURE__ */ L.jsx("span", { children: o ?? "-" })
|
@@ -4772,7 +4811,7 @@ const k0 = [32, 40, 48], A0 = B.div`
|
|
4772
4811
|
{
|
4773
4812
|
icon: "money-return",
|
4774
4813
|
size: 16,
|
4775
|
-
color: C.length ? l.success_800 : l.gray_200
|
4814
|
+
color: V ? l.gray_200 : C.length ? l.success_800 : l.gray_200
|
4776
4815
|
}
|
4777
4816
|
),
|
4778
4817
|
/* @__PURE__ */ L.jsxs("div", { children: [
|
@@ -4782,7 +4821,30 @@ const k0 = [32, 40, 48], A0 = B.div`
|
|
4782
4821
|
] }) })
|
4783
4822
|
] })
|
4784
4823
|
] }),
|
4785
|
-
/* @__PURE__ */ L.jsx("div", { children:
|
4824
|
+
/* @__PURE__ */ L.jsx("div", { children: $ }),
|
4825
|
+
!M && /* @__PURE__ */ L.jsxs(
|
4826
|
+
"button",
|
4827
|
+
{
|
4828
|
+
disabled: E,
|
4829
|
+
type: "button",
|
4830
|
+
onClick: E ? () => {
|
4831
|
+
} : m,
|
4832
|
+
children: [
|
4833
|
+
/* @__PURE__ */ L.jsx(
|
4834
|
+
O,
|
4835
|
+
{
|
4836
|
+
icon: g ? "checkmark_filled" : "checkmark-part",
|
4837
|
+
size: 16,
|
4838
|
+
color: g ? E ? l.gray_600 : l.white : l.purple_600,
|
4839
|
+
style: {
|
4840
|
+
opacity: E && !g ? "0.25" : "1"
|
4841
|
+
}
|
4842
|
+
}
|
4843
|
+
),
|
4844
|
+
/* @__PURE__ */ L.jsx("span", { children: g ? "Varianta selectata" : "Vreau aceasta varianta!" })
|
4845
|
+
]
|
4846
|
+
}
|
4847
|
+
)
|
4786
4848
|
] })
|
4787
4849
|
}
|
4788
4850
|
);
|
@@ -5020,11 +5082,11 @@ const z0 = B.div`
|
|
5020
5082
|
reActionButtonOnClick: p,
|
5021
5083
|
...m
|
5022
5084
|
}) => {
|
5023
|
-
const [M, g] = T(h), [
|
5024
|
-
!
|
5085
|
+
const [M, g] = T(h), [E, V] = T(!1), [b, R] = T(!1), $ = () => {
|
5086
|
+
!E && !o && (b ? (p && p(), V(!0)) : (R(!0), u && u(), V(!0)));
|
5025
5087
|
};
|
5026
5088
|
return e1(() => {
|
5027
|
-
if (
|
5089
|
+
if (E && !o) {
|
5028
5090
|
const v = setInterval(() => {
|
5029
5091
|
g((_) => _ <= 1 ? (clearInterval(v), V(!1), 0) : _ - 1);
|
5030
5092
|
}, 1e3);
|
@@ -5033,13 +5095,13 @@ const z0 = B.div`
|
|
5033
5095
|
};
|
5034
5096
|
} else
|
5035
5097
|
g(h);
|
5036
|
-
}, [h,
|
5098
|
+
}, [h, E, o]), /* @__PURE__ */ L.jsxs(
|
5037
5099
|
q0,
|
5038
5100
|
{
|
5039
|
-
disabled:
|
5101
|
+
disabled: E || o,
|
5040
5102
|
onClick: $,
|
5041
5103
|
$intent: a,
|
5042
|
-
$loading:
|
5104
|
+
$loading: E,
|
5043
5105
|
$size: s,
|
5044
5106
|
$disabled: o,
|
5045
5107
|
$buttonIntent: c,
|
@@ -5047,7 +5109,7 @@ const z0 = B.div`
|
|
5047
5109
|
...m,
|
5048
5110
|
children: [
|
5049
5111
|
a !== "default" && /* @__PURE__ */ L.jsx("span", { children: a === "success" ? r : n }),
|
5050
|
-
|
5112
|
+
E ? /* @__PURE__ */ L.jsx(
|
5051
5113
|
O,
|
5052
5114
|
{
|
5053
5115
|
icon: "retry-1",
|
@@ -5059,10 +5121,10 @@ const z0 = B.div`
|
|
5059
5121
|
{
|
5060
5122
|
icon: C,
|
5061
5123
|
size: s === "large" ? 18 : 16,
|
5062
|
-
color: o ? l.gray_300 :
|
5124
|
+
color: o ? l.gray_300 : E ? l.info_200 : c && Object.keys(k2).includes(c) ? k2[c] : l.info_800
|
5063
5125
|
}
|
5064
5126
|
),
|
5065
|
-
/* @__PURE__ */ L.jsx("span", { children:
|
5127
|
+
/* @__PURE__ */ L.jsx("span", { children: E ? `Retrimite in ${M} secunde` : b ? i : t })
|
5066
5128
|
]
|
5067
5129
|
}
|
5068
5130
|
);
|
@@ -6222,7 +6284,7 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
6222
6284
|
imgHeight: m,
|
6223
6285
|
showButton: M = !1,
|
6224
6286
|
buttonLabel: g = "Afla mai multe",
|
6225
|
-
buttonOnClick:
|
6287
|
+
buttonOnClick: E,
|
6226
6288
|
contained: V = !0,
|
6227
6289
|
rigthIcon: b,
|
6228
6290
|
rightIconColor: R = "info_700",
|
@@ -6268,7 +6330,7 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
6268
6330
|
M && /* @__PURE__ */ L.jsx(
|
6269
6331
|
y1,
|
6270
6332
|
{
|
6271
|
-
onClick:
|
6333
|
+
onClick: E,
|
6272
6334
|
style: { width: "fit-content" },
|
6273
6335
|
intent: "info",
|
6274
6336
|
variant: "secondaryOutlined",
|
@@ -6855,14 +6917,14 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
6855
6917
|
const a = m6(t, i), n = Ce(t, i), r = n === 0 ? 6 : n - 1, c = oe * 7 - (r + a), { month: o, year: C } = c9(
|
6856
6918
|
t,
|
6857
6919
|
i
|
6858
|
-
), { month: s, year: h } = o9(t, i), u = m6(o, C), p = [...new Array(r)].map((g,
|
6859
|
-
const V =
|
6920
|
+
), { month: s, year: h } = o9(t, i), u = m6(o, C), p = [...new Array(r)].map((g, E) => {
|
6921
|
+
const V = E + 1 + (u - r);
|
6860
6922
|
return [C, S1(o, 2), S1(V, 2)];
|
6861
|
-
}), m = [...new Array(a)].map((g,
|
6862
|
-
const V =
|
6923
|
+
}), m = [...new Array(a)].map((g, E) => {
|
6924
|
+
const V = E + 1;
|
6863
6925
|
return [i, S1(t, 2), S1(V, 2)];
|
6864
|
-
}), M = [...new Array(c)].map((g,
|
6865
|
-
const V =
|
6926
|
+
}), M = [...new Array(c)].map((g, E) => {
|
6927
|
+
const V = E + 1;
|
6866
6928
|
return [h, S1(s, 2), S1(V, 2)];
|
6867
6929
|
});
|
6868
6930
|
return [...p, ...m, ...M];
|
@@ -6990,60 +7052,60 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
6990
7052
|
current: t,
|
6991
7053
|
month: +t.getMonth() + 1,
|
6992
7054
|
year: t.getFullYear()
|
6993
|
-
}), [C, s] = T("date"), h = (
|
6994
|
-
const Z = X1(
|
7055
|
+
}), [C, s] = T("date"), h = (x) => {
|
7056
|
+
const Z = X1(x) ? x : /* @__PURE__ */ new Date();
|
6995
7057
|
o({
|
6996
|
-
current:
|
7058
|
+
current: x,
|
6997
7059
|
month: +Z.getMonth() + 1,
|
6998
7060
|
year: Z.getFullYear()
|
6999
7061
|
});
|
7000
7062
|
}, u = i1(() => {
|
7001
|
-
const { month:
|
7063
|
+
const { month: x, year: A } = c, Z = Object.keys(t3)[Math.max(0, Math.min(x - 1, 11))];
|
7002
7064
|
return {
|
7003
7065
|
monthname: t3[Z],
|
7004
7066
|
year: A
|
7005
7067
|
};
|
7006
|
-
}, [c]), p = (
|
7068
|
+
}, [c]), p = (x, A) => {
|
7007
7069
|
A && A.preventDefault();
|
7008
7070
|
const { current: Z } = c;
|
7009
|
-
Z && l3(
|
7010
|
-
}, m = (
|
7071
|
+
Z && l3(x, Z) || (h(x), i && i(x));
|
7072
|
+
}, m = (x, A) => {
|
7011
7073
|
A && A.preventDefault(), o({
|
7012
7074
|
current: c.current,
|
7013
7075
|
month: c.month,
|
7014
|
-
year: +
|
7076
|
+
year: +x
|
7015
7077
|
}), s("month");
|
7016
|
-
}, M = (
|
7078
|
+
}, M = (x, A) => {
|
7017
7079
|
A && A.preventDefault(), o({
|
7018
7080
|
current: c.current,
|
7019
|
-
month: +
|
7081
|
+
month: +x,
|
7020
7082
|
year: c.year
|
7021
7083
|
}), s("date");
|
7022
|
-
}, g = (
|
7023
|
-
const Z = u6[
|
7084
|
+
}, g = (x, A) => {
|
7085
|
+
const Z = u6[x].toUpperCase();
|
7024
7086
|
return /* @__PURE__ */ L.jsx(ge, { $index: A, children: Z }, Z + A);
|
7025
|
-
},
|
7026
|
-
const { current:
|
7087
|
+
}, E = () => {
|
7088
|
+
const { current: x, month: A, year: Z } = c, y = A || +(x == null ? void 0 : x.getMonth()) + 1, H = Z || (x == null ? void 0 : x.getFullYear());
|
7027
7089
|
return pe(y, H);
|
7028
|
-
}, V = (
|
7029
|
-
if (!/^\d{4}-\d{2}-\d{2}$/.test(
|
7030
|
-
const Z = new Date(
|
7090
|
+
}, V = (x) => {
|
7091
|
+
if (!/^\d{4}-\d{2}-\d{2}$/.test(x)) return !1;
|
7092
|
+
const Z = new Date(x), y = Z.getTime();
|
7031
7093
|
if (isNaN(y)) return !1;
|
7032
|
-
const [H, D, W] =
|
7094
|
+
const [H, D, W] = x.split("-");
|
7033
7095
|
return !(Z.getUTCFullYear() !== parseInt(H, 10) || Z.getUTCMonth() + 1 !== parseInt(D, 10) || Z.getUTCDate() !== parseInt(W, 10));
|
7034
7096
|
}, b = () => !(!n || !r || !V(n) || !V(r)), R = i1(() => {
|
7035
7097
|
if (!b()) return [];
|
7036
|
-
const
|
7037
|
-
for (let y = new Date(
|
7098
|
+
const x = new Date(n), A = new Date(r), Z = [];
|
7099
|
+
for (let y = new Date(x); y <= A; y.setUTCDate(y.getUTCDate() + 1))
|
7038
7100
|
Z.push(new Date(y));
|
7039
7101
|
return Z;
|
7040
7102
|
}, [n, r]), $ = C1(
|
7041
|
-
(
|
7042
|
-
(A) => A.getTime() ===
|
7103
|
+
(x) => R && R.length ? !R.some(
|
7104
|
+
(A) => A.getTime() === x.getTime()
|
7043
7105
|
) : !1,
|
7044
7106
|
[R]
|
7045
|
-
), v = (
|
7046
|
-
const { current: Z, month: y, year: H } = c, D = new Date(
|
7107
|
+
), v = (x, A) => {
|
7108
|
+
const { current: Z, month: y, year: H } = c, D = new Date(x.join("-")), W = $(D), G = l3(D, /* @__PURE__ */ new Date()), N = Z && l3(D, Z), a1 = y && H && de(
|
7047
7109
|
D,
|
7048
7110
|
new Date(
|
7049
7111
|
[
|
@@ -7067,35 +7129,35 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
7067
7129
|
se(D)
|
7068
7130
|
);
|
7069
7131
|
}, _ = () => {
|
7070
|
-
const
|
7071
|
-
return [...new Array(
|
7072
|
-
}, F = (
|
7073
|
-
const { current: A, year: Z } = c, y =
|
7132
|
+
const x = M2 * 4, { year: A } = c;
|
7133
|
+
return [...new Array(x)].map((y, H) => +A + H);
|
7134
|
+
}, F = (x) => {
|
7135
|
+
const { current: A, year: Z } = c, y = x === Z, H = A && A.getFullYear() === x, D = y ? E3 : H ? g6 : g3;
|
7074
7136
|
return /* @__PURE__ */ L.jsx(
|
7075
7137
|
D,
|
7076
7138
|
{
|
7077
|
-
onClick: (W) => m(
|
7078
|
-
children:
|
7139
|
+
onClick: (W) => m(x, W),
|
7140
|
+
children: x
|
7079
7141
|
},
|
7080
|
-
|
7142
|
+
x
|
7081
7143
|
);
|
7082
|
-
}, w = (
|
7144
|
+
}, w = (x, A) => {
|
7083
7145
|
const { current: Z, year: y, month: H } = c, D = A + 1 === H, W = Z && Z.getFullYear() === y, G = Z && Z.getMonth() + 1 === A + 1, a1 = D ? E3 : W && G ? g6 : g3;
|
7084
7146
|
return /* @__PURE__ */ L.jsx(
|
7085
7147
|
a1,
|
7086
7148
|
{
|
7087
7149
|
onClick: (c1) => M(A + 1, c1),
|
7088
|
-
children:
|
7150
|
+
children: x.slice(0, 3)
|
7089
7151
|
},
|
7090
|
-
|
7152
|
+
x
|
7091
7153
|
);
|
7092
|
-
}, k = (
|
7093
|
-
if (
|
7154
|
+
}, k = (x) => {
|
7155
|
+
if (x && x.preventDefault(), C === "date")
|
7094
7156
|
return s("year");
|
7095
7157
|
}, j = () => {
|
7096
|
-
const { month:
|
7158
|
+
const { month: x, year: A } = c;
|
7097
7159
|
if (C === "date") {
|
7098
|
-
const Z = c9(
|
7160
|
+
const Z = c9(x, A);
|
7099
7161
|
o({
|
7100
7162
|
month: Z.month,
|
7101
7163
|
year: Z.year,
|
@@ -7121,9 +7183,9 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
7121
7183
|
return;
|
7122
7184
|
}
|
7123
7185
|
}, P = () => {
|
7124
|
-
const { month:
|
7186
|
+
const { month: x, year: A } = c;
|
7125
7187
|
if (C === "date") {
|
7126
|
-
const Z = o9(
|
7188
|
+
const Z = o9(x, A);
|
7127
7189
|
o({
|
7128
7190
|
month: Z.month,
|
7129
7191
|
year: Z.year,
|
@@ -7184,7 +7246,7 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
7184
7246
|
/* @__PURE__ */ L.jsxs(me, { $view: C, children: [
|
7185
7247
|
C === "date" && /* @__PURE__ */ L.jsxs(L.Fragment, { children: [
|
7186
7248
|
/* @__PURE__ */ L.jsx(L.Fragment, { children: Object.keys(u6).map(g) }),
|
7187
|
-
/* @__PURE__ */ L.jsx(L.Fragment, { children:
|
7249
|
+
/* @__PURE__ */ L.jsx(L.Fragment, { children: E().map(v) })
|
7188
7250
|
] }),
|
7189
7251
|
C === "year" && /* @__PURE__ */ L.jsx(L.Fragment, { children: _().map(F) }),
|
7190
7252
|
C === "month" && /* @__PURE__ */ L.jsx(L.Fragment, { children: Object.values(t3).map(w) })
|
@@ -7299,7 +7361,7 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
7299
7361
|
defaultOpen: p = !1,
|
7300
7362
|
...m
|
7301
7363
|
}) => {
|
7302
|
-
const [M, g] = T(p), [
|
7364
|
+
const [M, g] = T(p), [E, V] = T("bottom"), b = Q(null), R = (v) => {
|
7303
7365
|
c(v);
|
7304
7366
|
};
|
7305
7367
|
e1(() => {
|
@@ -7371,7 +7433,7 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
7371
7433
|
color: s ? l.info_500_40 : l.info_700
|
7372
7434
|
}
|
7373
7435
|
) }),
|
7374
|
-
M && /* @__PURE__ */ L.jsx(Me, { $position:
|
7436
|
+
M && /* @__PURE__ */ L.jsx(Me, { $position: E, children: /* @__PURE__ */ L.jsx(
|
7375
7437
|
Ve,
|
7376
7438
|
{
|
7377
7439
|
limitStart: h,
|
@@ -7563,19 +7625,19 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
7563
7625
|
dropdownContentWidth: m = "100%",
|
7564
7626
|
...M
|
7565
7627
|
}) => {
|
7566
|
-
const [g,
|
7628
|
+
const [g, E] = T(u), V = Q(null), [b, R] = T(p), [$, v] = T(""), _ = C1(
|
7567
7629
|
(k) => {
|
7568
7630
|
const j = k.target.value;
|
7569
7631
|
v(j);
|
7570
7632
|
const P = p.filter(
|
7571
|
-
(
|
7633
|
+
(x) => x.label.toLowerCase().includes(j.toLowerCase())
|
7572
7634
|
);
|
7573
7635
|
R(P);
|
7574
7636
|
},
|
7575
7637
|
[p]
|
7576
7638
|
), F = C1(
|
7577
7639
|
(k) => {
|
7578
|
-
r(k.value),
|
7640
|
+
r(k.value), E(!1), v(""), R(p);
|
7579
7641
|
},
|
7580
7642
|
[p, r]
|
7581
7643
|
), w = i1(() => {
|
@@ -7584,14 +7646,14 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
7584
7646
|
}, [n, p]);
|
7585
7647
|
return e1(() => {
|
7586
7648
|
const k = (j) => {
|
7587
|
-
V.current && !V.current.contains(j.target) && (
|
7649
|
+
V.current && !V.current.contains(j.target) && (E(!1), v(""), R(p));
|
7588
7650
|
};
|
7589
7651
|
if (g)
|
7590
7652
|
return document.addEventListener("mousedown", k), () => {
|
7591
7653
|
document.removeEventListener("mousedown", k);
|
7592
7654
|
};
|
7593
7655
|
}, [V, g, p]), e1(() => {
|
7594
|
-
|
7656
|
+
E(u);
|
7595
7657
|
}, [u]), /* @__PURE__ */ L.jsxs(
|
7596
7658
|
ye,
|
7597
7659
|
{
|
@@ -7611,7 +7673,7 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
7611
7673
|
type: "text",
|
7612
7674
|
name: i,
|
7613
7675
|
value: w,
|
7614
|
-
onClick: () => !C &&
|
7676
|
+
onClick: () => !C && E(!g),
|
7615
7677
|
onChange: (k) => k.preventDefault()
|
7616
7678
|
}
|
7617
7679
|
),
|
@@ -7835,7 +7897,7 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
7835
7897
|
iconButtonOnClick: m,
|
7836
7898
|
buttonOnClick: M,
|
7837
7899
|
children: g,
|
7838
|
-
...
|
7900
|
+
...E
|
7839
7901
|
}) => {
|
7840
7902
|
let V = null;
|
7841
7903
|
return T1.toArray(g).filter(Boolean).forEach((b) => {
|
@@ -7848,7 +7910,7 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
7848
7910
|
$refused: o,
|
7849
7911
|
$disabled: C,
|
7850
7912
|
$hideButton: s,
|
7851
|
-
...
|
7913
|
+
...E,
|
7852
7914
|
children: u ? /* @__PURE__ */ L.jsxs("div", { children: [
|
7853
7915
|
/* @__PURE__ */ L.jsx(O, { size: 20, icon: "rejected", color: l.gray_500 }),
|
7854
7916
|
/* @__PURE__ */ L.jsx("span", { children: p })
|
@@ -7986,7 +8048,7 @@ const Re = B.svg`
|
|
7986
8048
|
label_limit_min: o = "Pensie standard",
|
7987
8049
|
label_limit_max: C = "Obiectiv pensie"
|
7988
8050
|
}) => {
|
7989
|
-
const s = new Intl.NumberFormat("RO"), h = Q(null), u = Q(null), p = Q(null), m = Q(null), M = Q(null), g = Q(null),
|
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, _ = i1(() => {
|
7990
8052
|
const K = R / 2 - 20, q = V - v * 2, n1 = Math.min(
|
7991
8053
|
q,
|
7992
8054
|
Math.max(q * a / t, 0)
|
@@ -8046,10 +8108,10 @@ const Re = B.svg`
|
|
8046
8108
|
};
|
8047
8109
|
}, [_.line_min_x, w]), P = C1(() => {
|
8048
8110
|
const X = _.line_max_x, K = _.line_max_x;
|
8049
|
-
return g && g.current ||
|
8111
|
+
return g && g.current || E && E.current ? {
|
8050
8112
|
label_limit_max_x: w(g, X, "end"),
|
8051
8113
|
sublabel_limit_max_x: w(
|
8052
|
-
|
8114
|
+
E,
|
8053
8115
|
K,
|
8054
8116
|
"end"
|
8055
8117
|
)
|
@@ -8068,7 +8130,7 @@ const Re = B.svg`
|
|
8068
8130
|
return K(), window.addEventListener("resize", K), () => window.removeEventListener("resize", K);
|
8069
8131
|
}
|
8070
8132
|
}, [h]);
|
8071
|
-
const [
|
8133
|
+
const [x, A] = T(0), [Z, y] = T(0), [H, D] = T(0), [W, G] = T(0), [N, a1] = T(0), [c1, t1] = T(0);
|
8072
8134
|
return e1(() => {
|
8073
8135
|
const X = F.value;
|
8074
8136
|
A(k(X).label_top_x), y(k(X).sublabel_top_x);
|
@@ -8119,7 +8181,7 @@ const Re = B.svg`
|
|
8119
8181
|
ref: u,
|
8120
8182
|
className: "label_top",
|
8121
8183
|
textAnchor: "middle",
|
8122
|
-
x
|
8184
|
+
x,
|
8123
8185
|
y: 15,
|
8124
8186
|
children: c
|
8125
8187
|
}
|
@@ -8193,7 +8255,7 @@ const Re = B.svg`
|
|
8193
8255
|
/* @__PURE__ */ L.jsx(
|
8194
8256
|
"text",
|
8195
8257
|
{
|
8196
|
-
ref:
|
8258
|
+
ref: E,
|
8197
8259
|
className: "sublabel_bottom",
|
8198
8260
|
textAnchor: "start",
|
8199
8261
|
x: c1,
|
@@ -9406,14 +9468,14 @@ const We = B.svg`
|
|
9406
9468
|
col2Value: m = 25e3,
|
9407
9469
|
col3Value: M = 15e3,
|
9408
9470
|
col4Value: g = 1e4,
|
9409
|
-
col1Color:
|
9471
|
+
col1Color: E = "success_500",
|
9410
9472
|
col2Color: V = "info_500",
|
9411
9473
|
col3Color: b = "warning_500",
|
9412
9474
|
col4Color: R = "danger_500",
|
9413
9475
|
currency: $ = "RON",
|
9414
9476
|
dev: v = !1
|
9415
9477
|
}) => {
|
9416
|
-
const _ = new Intl.NumberFormat("RO"), F = Q(null), [w, k] = T(0), [j, P] = T(0),
|
9478
|
+
const _ = new Intl.NumberFormat("RO"), F = Q(null), [w, k] = T(0), [j, P] = T(0), x = i1(() => {
|
9417
9479
|
const A = Math.abs(w - i - a), Z = Math.abs(j - n - r), y = Math.abs(Z / (o - s) * (o - C) + n), H = (A - 3 * c) / 4, D = (c1) => {
|
9418
9480
|
const t1 = Math.abs(Z / (o - s) * (c1 - C)), X = Math.abs(Z / (o - s) * (C - c1)), K = c1 > C ? t1 : X;
|
9419
9481
|
return {
|
@@ -9488,7 +9550,7 @@ const We = B.svg`
|
|
9488
9550
|
height: "100%",
|
9489
9551
|
viewBox: `0 0 ${w} ${j}`,
|
9490
9552
|
xmlns: "http://www.w3.org/2000/svg",
|
9491
|
-
$col1Color:
|
9553
|
+
$col1Color: E,
|
9492
9554
|
$col2Color: V,
|
9493
9555
|
$col3Color: b,
|
9494
9556
|
$col4Color: R,
|
@@ -9498,9 +9560,9 @@ const We = B.svg`
|
|
9498
9560
|
"rect",
|
9499
9561
|
{
|
9500
9562
|
className: "dev-graph",
|
9501
|
-
width:
|
9502
|
-
height:
|
9503
|
-
x:
|
9563
|
+
width: x.graphW,
|
9564
|
+
height: x.graphH,
|
9565
|
+
x: x.paddingLeft,
|
9504
9566
|
y: n
|
9505
9567
|
}
|
9506
9568
|
),
|
@@ -9509,8 +9571,8 @@ const We = B.svg`
|
|
9509
9571
|
{
|
9510
9572
|
className: "col_1_text",
|
9511
9573
|
textAnchor: "middle",
|
9512
|
-
x:
|
9513
|
-
y:
|
9574
|
+
x: x.col_1.x + x.col_1.w / 2,
|
9575
|
+
y: x.col_1.text_y,
|
9514
9576
|
children: _.format(p) + ` ${$}`
|
9515
9577
|
}
|
9516
9578
|
),
|
@@ -9518,17 +9580,17 @@ const We = B.svg`
|
|
9518
9580
|
"rect",
|
9519
9581
|
{
|
9520
9582
|
className: "col_1_rect",
|
9521
|
-
width:
|
9522
|
-
height:
|
9523
|
-
x:
|
9524
|
-
y:
|
9583
|
+
width: x.col_1.w,
|
9584
|
+
height: x.col_1.h,
|
9585
|
+
x: x.col_1.x,
|
9586
|
+
y: x.col_1.y
|
9525
9587
|
}
|
9526
9588
|
),
|
9527
9589
|
/* @__PURE__ */ L.jsx(
|
9528
9590
|
"line",
|
9529
9591
|
{
|
9530
|
-
x1:
|
9531
|
-
x2:
|
9592
|
+
x1: x.col_1.x,
|
9593
|
+
x2: x.col_1.x + x.col_1.w,
|
9532
9594
|
y1: j - 27,
|
9533
9595
|
y2: j - 27,
|
9534
9596
|
strokeWidth: 1,
|
@@ -9540,7 +9602,7 @@ const We = B.svg`
|
|
9540
9602
|
{
|
9541
9603
|
className: "sub_favorabil",
|
9542
9604
|
textAnchor: "middle",
|
9543
|
-
x:
|
9605
|
+
x: x.col_1.x + x.col_1.w / 2,
|
9544
9606
|
y: j - 5,
|
9545
9607
|
children: "Favorabil"
|
9546
9608
|
}
|
@@ -9550,8 +9612,8 @@ const We = B.svg`
|
|
9550
9612
|
{
|
9551
9613
|
className: "col_2_text",
|
9552
9614
|
textAnchor: "middle",
|
9553
|
-
x:
|
9554
|
-
y:
|
9615
|
+
x: x.col_2.x + x.col_2.w / 2,
|
9616
|
+
y: x.col_2.text_y,
|
9555
9617
|
children: _.format(m) + ` ${$}`
|
9556
9618
|
}
|
9557
9619
|
),
|
@@ -9559,17 +9621,17 @@ const We = B.svg`
|
|
9559
9621
|
"rect",
|
9560
9622
|
{
|
9561
9623
|
className: "col_2_rect",
|
9562
|
-
width:
|
9563
|
-
height:
|
9564
|
-
x:
|
9565
|
-
y:
|
9624
|
+
width: x.col_2.w,
|
9625
|
+
height: x.col_2.h,
|
9626
|
+
x: x.col_2.x,
|
9627
|
+
y: x.col_2.y
|
9566
9628
|
}
|
9567
9629
|
),
|
9568
9630
|
/* @__PURE__ */ L.jsx(
|
9569
9631
|
"line",
|
9570
9632
|
{
|
9571
|
-
x1:
|
9572
|
-
x2:
|
9633
|
+
x1: x.col_2.x,
|
9634
|
+
x2: x.col_2.x + x.col_2.w,
|
9573
9635
|
y1: j - 27,
|
9574
9636
|
y2: j - 27,
|
9575
9637
|
strokeWidth: 1,
|
@@ -9581,7 +9643,7 @@ const We = B.svg`
|
|
9581
9643
|
{
|
9582
9644
|
className: "sub_moderat",
|
9583
9645
|
textAnchor: "middle",
|
9584
|
-
x:
|
9646
|
+
x: x.col_2.x + x.col_2.w / 2,
|
9585
9647
|
y: j - 5,
|
9586
9648
|
children: "Moderat"
|
9587
9649
|
}
|
@@ -9591,8 +9653,8 @@ const We = B.svg`
|
|
9591
9653
|
{
|
9592
9654
|
className: "col_3_text",
|
9593
9655
|
textAnchor: "middle",
|
9594
|
-
x:
|
9595
|
-
y:
|
9656
|
+
x: x.col_3.x + x.col_3.w / 2,
|
9657
|
+
y: x.col_3.text_y,
|
9596
9658
|
children: _.format(M) + ` ${$}`
|
9597
9659
|
}
|
9598
9660
|
),
|
@@ -9600,17 +9662,17 @@ const We = B.svg`
|
|
9600
9662
|
"rect",
|
9601
9663
|
{
|
9602
9664
|
className: "col_3_rect",
|
9603
|
-
width:
|
9604
|
-
height:
|
9605
|
-
x:
|
9606
|
-
y:
|
9665
|
+
width: x.col_3.w,
|
9666
|
+
height: x.col_3.h,
|
9667
|
+
x: x.col_3.x,
|
9668
|
+
y: x.col_3.y
|
9607
9669
|
}
|
9608
9670
|
),
|
9609
9671
|
/* @__PURE__ */ L.jsx(
|
9610
9672
|
"line",
|
9611
9673
|
{
|
9612
|
-
x1:
|
9613
|
-
x2:
|
9674
|
+
x1: x.col_3.x,
|
9675
|
+
x2: x.col_3.x + x.col_3.w,
|
9614
9676
|
y1: j - 27,
|
9615
9677
|
y2: j - 27,
|
9616
9678
|
strokeWidth: 1,
|
@@ -9622,7 +9684,7 @@ const We = B.svg`
|
|
9622
9684
|
{
|
9623
9685
|
className: "sub_nefavorabil",
|
9624
9686
|
textAnchor: "middle",
|
9625
|
-
x:
|
9687
|
+
x: x.col_3.x + x.col_3.w / 2,
|
9626
9688
|
y: j - 5,
|
9627
9689
|
children: "Nefavorabil"
|
9628
9690
|
}
|
@@ -9632,8 +9694,8 @@ const We = B.svg`
|
|
9632
9694
|
{
|
9633
9695
|
className: "col_4_text",
|
9634
9696
|
textAnchor: "middle",
|
9635
|
-
x:
|
9636
|
-
y:
|
9697
|
+
x: x.col_4.x + x.col_4.w / 2,
|
9698
|
+
y: x.col_4.text_y,
|
9637
9699
|
children: _.format(g) + ` ${$}`
|
9638
9700
|
}
|
9639
9701
|
),
|
@@ -9641,17 +9703,17 @@ const We = B.svg`
|
|
9641
9703
|
"rect",
|
9642
9704
|
{
|
9643
9705
|
className: "col_4_rect",
|
9644
|
-
width:
|
9645
|
-
height:
|
9646
|
-
x:
|
9647
|
-
y:
|
9706
|
+
width: x.col_4.w,
|
9707
|
+
height: x.col_4.h,
|
9708
|
+
x: x.col_4.x,
|
9709
|
+
y: x.col_4.y
|
9648
9710
|
}
|
9649
9711
|
),
|
9650
9712
|
/* @__PURE__ */ L.jsx(
|
9651
9713
|
"line",
|
9652
9714
|
{
|
9653
|
-
x1:
|
9654
|
-
x2:
|
9715
|
+
x1: x.col_4.x,
|
9716
|
+
x2: x.col_4.x + x.col_4.w,
|
9655
9717
|
y1: j - 27,
|
9656
9718
|
y2: j - 27,
|
9657
9719
|
strokeWidth: 1,
|
@@ -9664,7 +9726,7 @@ const We = B.svg`
|
|
9664
9726
|
className: "sub_criza",
|
9665
9727
|
style: { fontSize: "14px" },
|
9666
9728
|
textAnchor: "middle",
|
9667
|
-
x:
|
9729
|
+
x: x.col_4.x + x.col_4.w / 2,
|
9668
9730
|
y: j - 5,
|
9669
9731
|
children: "Criza"
|
9670
9732
|
}
|
@@ -9675,7 +9737,7 @@ const We = B.svg`
|
|
9675
9737
|
className: "textLeft",
|
9676
9738
|
textAnchor: "start",
|
9677
9739
|
x: 0,
|
9678
|
-
y:
|
9740
|
+
y: x.lineY - 26,
|
9679
9741
|
children: h
|
9680
9742
|
}
|
9681
9743
|
),
|
@@ -9685,7 +9747,7 @@ const We = B.svg`
|
|
9685
9747
|
className: "textValueLeft",
|
9686
9748
|
textAnchor: "start",
|
9687
9749
|
x: 0,
|
9688
|
-
y:
|
9750
|
+
y: x.lineY - 6,
|
9689
9751
|
children: _.format(u) + ` ${$}`
|
9690
9752
|
}
|
9691
9753
|
),
|
@@ -9694,8 +9756,8 @@ const We = B.svg`
|
|
9694
9756
|
{
|
9695
9757
|
x1: 0,
|
9696
9758
|
x2: w,
|
9697
|
-
y1:
|
9698
|
-
y2:
|
9759
|
+
y1: x.lineY,
|
9760
|
+
y2: x.lineY,
|
9699
9761
|
strokeWidth: 2,
|
9700
9762
|
stroke: l.gray_950
|
9701
9763
|
}
|
@@ -9783,17 +9845,17 @@ const We = B.svg`
|
|
9783
9845
|
currency: r = "RON",
|
9784
9846
|
height: c = 284
|
9785
9847
|
}) => {
|
9786
|
-
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,
|
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 = i1(() => {
|
9787
9849
|
const _ = g / 2 - 12;
|
9788
|
-
let F, w, k, j, P,
|
9850
|
+
let F, w, k, j, P, x, A;
|
9789
9851
|
if (i > t) {
|
9790
9852
|
w = m - 1;
|
9791
9853
|
const Z = t * m / i;
|
9792
|
-
F = Math.min(m, Math.max(Z, 1)), k = Math.min(m, Math.max(m * t / i, 0)), P = F,
|
9854
|
+
F = Math.min(m, Math.max(Z, 1)), k = Math.min(m, Math.max(m * t / i, 0)), P = F, x = m - k, A = l.danger_500;
|
9793
9855
|
} else {
|
9794
9856
|
F = m - 1;
|
9795
9857
|
const Z = i * m / t;
|
9796
|
-
w = Math.min(m, Math.max(Z, 1)), k = Math.min(m, Math.max(m * i / t, 0)), P = w,
|
9858
|
+
w = Math.min(m, Math.max(Z, 1)), k = Math.min(m, Math.max(m * i / t, 0)), P = w, x = m - k, A = l.success_500;
|
9797
9859
|
}
|
9798
9860
|
return j = l.success_400, {
|
9799
9861
|
bar_h: 24,
|
@@ -9802,7 +9864,7 @@ const We = B.svg`
|
|
9802
9864
|
limit_top_x: F,
|
9803
9865
|
limit_bottom_x: w,
|
9804
9866
|
dynamic_bar_x: P,
|
9805
|
-
dynamic_bar_w:
|
9867
|
+
dynamic_bar_w: x,
|
9806
9868
|
dynamic_fill_color: A,
|
9807
9869
|
secondary_fill_color: j
|
9808
9870
|
};
|
@@ -9873,7 +9935,7 @@ const We = B.svg`
|
|
9873
9935
|
const v = () => {
|
9874
9936
|
var F;
|
9875
9937
|
const _ = (F = C == null ? void 0 : C.current) == null ? void 0 : F.clientWidth;
|
9876
|
-
M(+_),
|
9938
|
+
M(+_), E(c);
|
9877
9939
|
};
|
9878
9940
|
return v(), window.addEventListener("resize", v), () => window.removeEventListener("resize", v);
|
9879
9941
|
}
|
@@ -9999,7 +10061,7 @@ const We = B.svg`
|
|
9999
10061
|
const h = new Intl.NumberFormat("RO", {
|
10000
10062
|
minimumFractionDigits: c,
|
10001
10063
|
maximumFractionDigits: c
|
10002
|
-
}), u = Q(null), [p, m] = T(0), [M, g] = T(0),
|
10064
|
+
}), u = Q(null), [p, m] = T(0), [M, g] = T(0), E = i1(() => {
|
10003
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, w = Math.min(p, Math.max(F, 1));
|
10004
10066
|
return {
|
10005
10067
|
bar_h: 24,
|
@@ -10009,7 +10071,7 @@ const We = B.svg`
|
|
10009
10071
|
line_max_x: w
|
10010
10072
|
};
|
10011
10073
|
}, [p, M, i, a, t]), V = i1(() => {
|
10012
|
-
const R = n * p / t -
|
10074
|
+
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;
|
10013
10075
|
return {
|
10014
10076
|
value: Math.min($, Math.max(0, R)),
|
10015
10077
|
fill_rect_primary: v,
|
@@ -10036,14 +10098,14 @@ const We = B.svg`
|
|
10036
10098
|
xmlns: "http://www.w3.org/2000/svg",
|
10037
10099
|
$selected: s,
|
10038
10100
|
children: [
|
10039
|
-
/* @__PURE__ */ L.jsx("rect", { x: 0, y:
|
10101
|
+
/* @__PURE__ */ L.jsx("rect", { x: 0, y: E.bar_y, height: E.bar_h, width: p }),
|
10040
10102
|
/* @__PURE__ */ L.jsx(
|
10041
10103
|
"rect",
|
10042
10104
|
{
|
10043
10105
|
x: 0,
|
10044
|
-
y:
|
10045
|
-
height:
|
10046
|
-
width:
|
10106
|
+
y: E.bar_y,
|
10107
|
+
height: E.bar_h,
|
10108
|
+
width: E.secondary_bar_w,
|
10047
10109
|
fill: V.fill_rect_primary
|
10048
10110
|
}
|
10049
10111
|
),
|
@@ -10053,7 +10115,7 @@ const We = B.svg`
|
|
10053
10115
|
className: "limitMinLabel",
|
10054
10116
|
textAnchor: "start",
|
10055
10117
|
x: 10,
|
10056
|
-
y:
|
10118
|
+
y: E.bar_y + E.bar_h / 1.5,
|
10057
10119
|
fill: V.fill_value_text,
|
10058
10120
|
children: h.format(r) + " " + o
|
10059
10121
|
}
|
@@ -10061,9 +10123,9 @@ const We = B.svg`
|
|
10061
10123
|
/* @__PURE__ */ L.jsx(
|
10062
10124
|
"rect",
|
10063
10125
|
{
|
10064
|
-
x:
|
10065
|
-
y:
|
10066
|
-
height:
|
10126
|
+
x: E.line_min_x,
|
10127
|
+
y: E.bar_y,
|
10128
|
+
height: E.bar_h,
|
10067
10129
|
width: V.value,
|
10068
10130
|
fill: V.fill_rect_secondary
|
10069
10131
|
}
|
@@ -10071,8 +10133,8 @@ const We = B.svg`
|
|
10071
10133
|
/* @__PURE__ */ L.jsx(
|
10072
10134
|
"line",
|
10073
10135
|
{
|
10074
|
-
x1:
|
10075
|
-
x2:
|
10136
|
+
x1: E.line_min_x,
|
10137
|
+
x2: E.line_min_x,
|
10076
10138
|
y1: 0,
|
10077
10139
|
y2: M,
|
10078
10140
|
strokeWidth: 2,
|
@@ -10082,8 +10144,8 @@ const We = B.svg`
|
|
10082
10144
|
/* @__PURE__ */ L.jsx(
|
10083
10145
|
"line",
|
10084
10146
|
{
|
10085
|
-
x1:
|
10086
|
-
x2:
|
10147
|
+
x1: E.line_max_x,
|
10148
|
+
x2: E.line_max_x,
|
10087
10149
|
y1: 0,
|
10088
10150
|
y2: M,
|
10089
10151
|
strokeWidth: 2,
|
@@ -10160,7 +10222,7 @@ const We = B.svg`
|
|
10160
10222
|
textBottomSecondary: m = 24,
|
10161
10223
|
col1Value: M = 40015,
|
10162
10224
|
col2Value: g = 32721,
|
10163
|
-
col3Value:
|
10225
|
+
col3Value: E = 25806,
|
10164
10226
|
col4Value: V = 24806,
|
10165
10227
|
col1Color: b = "success_500",
|
10166
10228
|
col2Color: R = "info_500",
|
@@ -10169,8 +10231,8 @@ const We = B.svg`
|
|
10169
10231
|
currency: _ = "RON",
|
10170
10232
|
dev: F = !1
|
10171
10233
|
}) => {
|
10172
|
-
const w = new Intl.NumberFormat("RO"), k = Q(null), [j, P] = T(0), [
|
10173
|
-
const H = Math.abs(j - i - a), D = Math.abs(
|
10234
|
+
const w = new Intl.NumberFormat("RO"), k = Q(null), [j, P] = T(0), [x, A] = T(0), Z = Q(null), y = i1(() => {
|
10235
|
+
const H = Math.abs(j - i - a), D = Math.abs(x - n - r), W = Math.abs(D / (o - s) * (o - C) + n), G = (H - 3 * c) / 4, N = (K) => {
|
10174
10236
|
const q = Math.abs(D / o * K), n1 = Math.abs(D + n - q);
|
10175
10237
|
return {
|
10176
10238
|
h: q,
|
@@ -10190,10 +10252,10 @@ const We = B.svg`
|
|
10190
10252
|
text_y: +N(g).y - 12
|
10191
10253
|
}, t1 = {
|
10192
10254
|
x: i + G * 2 + c * 2,
|
10193
|
-
y: N(
|
10255
|
+
y: N(E).y,
|
10194
10256
|
w: G,
|
10195
|
-
h: N(
|
10196
|
-
text_y: +N(
|
10257
|
+
h: N(E).h,
|
10258
|
+
text_y: +N(E).y - 12
|
10197
10259
|
}, X = {
|
10198
10260
|
x: i + G * 3 + c * 3,
|
10199
10261
|
y: N(V).y,
|
@@ -10213,7 +10275,7 @@ const We = B.svg`
|
|
10213
10275
|
};
|
10214
10276
|
}, [
|
10215
10277
|
j,
|
10216
|
-
|
10278
|
+
x,
|
10217
10279
|
s,
|
10218
10280
|
o,
|
10219
10281
|
C,
|
@@ -10224,7 +10286,7 @@ const We = B.svg`
|
|
10224
10286
|
r,
|
10225
10287
|
M,
|
10226
10288
|
g,
|
10227
|
-
|
10289
|
+
E,
|
10228
10290
|
V,
|
10229
10291
|
Z
|
10230
10292
|
]);
|
@@ -10243,7 +10305,7 @@ const We = B.svg`
|
|
10243
10305
|
ref: k,
|
10244
10306
|
width: "100%",
|
10245
10307
|
height: "100%",
|
10246
|
-
viewBox: `0 0 ${j} ${
|
10308
|
+
viewBox: `0 0 ${j} ${x}`,
|
10247
10309
|
xmlns: "http://www.w3.org/2000/svg",
|
10248
10310
|
$col1Color: b,
|
10249
10311
|
$col2Color: R,
|
@@ -10286,8 +10348,8 @@ const We = B.svg`
|
|
10286
10348
|
{
|
10287
10349
|
x1: y.col_1.x,
|
10288
10350
|
x2: y.col_1.x + y.col_1.w,
|
10289
|
-
y1:
|
10290
|
-
y2:
|
10351
|
+
y1: x - 27,
|
10352
|
+
y2: x - 27,
|
10291
10353
|
strokeWidth: 1,
|
10292
10354
|
stroke: "#D5D5D6"
|
10293
10355
|
}
|
@@ -10298,7 +10360,7 @@ const We = B.svg`
|
|
10298
10360
|
className: "sub_favorabil",
|
10299
10361
|
textAnchor: "middle",
|
10300
10362
|
x: y.col_1.x + y.col_1.w / 2,
|
10301
|
-
y:
|
10363
|
+
y: x - 5,
|
10302
10364
|
children: "Favorabil"
|
10303
10365
|
}
|
10304
10366
|
),
|
@@ -10327,8 +10389,8 @@ const We = B.svg`
|
|
10327
10389
|
{
|
10328
10390
|
x1: y.col_2.x,
|
10329
10391
|
x2: y.col_2.x + y.col_2.w,
|
10330
|
-
y1:
|
10331
|
-
y2:
|
10392
|
+
y1: x - 27,
|
10393
|
+
y2: x - 27,
|
10332
10394
|
strokeWidth: 1,
|
10333
10395
|
stroke: "#D5D5D6"
|
10334
10396
|
}
|
@@ -10339,7 +10401,7 @@ const We = B.svg`
|
|
10339
10401
|
className: "sub_moderat",
|
10340
10402
|
textAnchor: "middle",
|
10341
10403
|
x: y.col_2.x + y.col_2.w / 2,
|
10342
|
-
y:
|
10404
|
+
y: x - 5,
|
10343
10405
|
children: "Moderat"
|
10344
10406
|
}
|
10345
10407
|
),
|
@@ -10350,7 +10412,7 @@ const We = B.svg`
|
|
10350
10412
|
textAnchor: "middle",
|
10351
10413
|
x: y.col_3.x + y.col_3.w / 2,
|
10352
10414
|
y: 16,
|
10353
|
-
children: w.format(
|
10415
|
+
children: w.format(E) + ` ${_}`
|
10354
10416
|
}
|
10355
10417
|
),
|
10356
10418
|
/* @__PURE__ */ L.jsx(
|
@@ -10368,8 +10430,8 @@ const We = B.svg`
|
|
10368
10430
|
{
|
10369
10431
|
x1: y.col_3.x,
|
10370
10432
|
x2: y.col_3.x + y.col_3.w,
|
10371
|
-
y1:
|
10372
|
-
y2:
|
10433
|
+
y1: x - 27,
|
10434
|
+
y2: x - 27,
|
10373
10435
|
strokeWidth: 1,
|
10374
10436
|
stroke: "#D5D5D6"
|
10375
10437
|
}
|
@@ -10380,7 +10442,7 @@ const We = B.svg`
|
|
10380
10442
|
className: "sub_nefavorabil",
|
10381
10443
|
textAnchor: "middle",
|
10382
10444
|
x: y.col_3.x + y.col_3.w / 2,
|
10383
|
-
y:
|
10445
|
+
y: x - 5,
|
10384
10446
|
children: "Nefavorabil"
|
10385
10447
|
}
|
10386
10448
|
),
|
@@ -10409,8 +10471,8 @@ const We = B.svg`
|
|
10409
10471
|
{
|
10410
10472
|
x1: y.col_4.x,
|
10411
10473
|
x2: y.col_4.x + y.col_4.w,
|
10412
|
-
y1:
|
10413
|
-
y2:
|
10474
|
+
y1: x - 27,
|
10475
|
+
y2: x - 27,
|
10414
10476
|
strokeWidth: 1,
|
10415
10477
|
stroke: "#D5D5D6"
|
10416
10478
|
}
|
@@ -10422,7 +10484,7 @@ const We = B.svg`
|
|
10422
10484
|
style: { fontSize: "14px" },
|
10423
10485
|
textAnchor: "middle",
|
10424
10486
|
x: y.col_4.x + y.col_4.w / 2,
|
10425
|
-
y:
|
10487
|
+
y: x - 5,
|
10426
10488
|
children: "Criza"
|
10427
10489
|
}
|
10428
10490
|
),
|
@@ -10561,20 +10623,20 @@ const We = B.svg`
|
|
10561
10623
|
}) => {
|
10562
10624
|
var g;
|
10563
10625
|
const u = Q(null), [p, m] = T(C), M = C1(
|
10564
|
-
(
|
10626
|
+
(E) => {
|
10565
10627
|
if (r) return;
|
10566
|
-
const { id: V } =
|
10628
|
+
const { id: V } = E;
|
10567
10629
|
n(V), m(!1);
|
10568
10630
|
},
|
10569
10631
|
[n, r]
|
10570
10632
|
);
|
10571
10633
|
return e1(() => {
|
10572
|
-
const
|
10634
|
+
const E = (V) => {
|
10573
10635
|
u.current && !u.current.contains(V.target) && m(!1);
|
10574
10636
|
};
|
10575
10637
|
if (o && o(p), p)
|
10576
|
-
return document.addEventListener("mousedown",
|
10577
|
-
document.removeEventListener("mousedown",
|
10638
|
+
return document.addEventListener("mousedown", E), () => {
|
10639
|
+
document.removeEventListener("mousedown", E);
|
10578
10640
|
};
|
10579
10641
|
}, [u, p, o]), e1(() => {
|
10580
10642
|
!a && !c && n(i[0].id);
|
@@ -10593,14 +10655,14 @@ const We = B.svg`
|
|
10593
10655
|
children: /* @__PURE__ */ L.jsxs("button", { disabled: r, onClick: () => m(!p), children: [
|
10594
10656
|
/* @__PURE__ */ L.jsxs("div", { children: [
|
10595
10657
|
s && p && /* @__PURE__ */ L.jsx("div", { className: "x8Kp9Lm2", children: /* @__PURE__ */ L.jsx(O, { icon: "menu-up", size: 20, color: l.info_700 }) }),
|
10596
|
-
/* @__PURE__ */ L.jsx("div", { className: "Kj9pL4mN", children: p ? i && i.length ? i.map((
|
10658
|
+
/* @__PURE__ */ L.jsx("div", { className: "Kj9pL4mN", children: p ? i && i.length ? i.map((E, V) => /* @__PURE__ */ L.jsx(
|
10597
10659
|
"div",
|
10598
10660
|
{
|
10599
|
-
onClick: () => r ? null : M(
|
10600
|
-
children:
|
10661
|
+
onClick: () => r ? null : M(E),
|
10662
|
+
children: E.content
|
10601
10663
|
},
|
10602
10664
|
V
|
10603
|
-
)) : /* @__PURE__ */ L.jsx(L.Fragment, {}) : !a && c ? c : (g = i.find((
|
10665
|
+
)) : /* @__PURE__ */ L.jsx(L.Fragment, {}) : !a && c ? c : (g = i.find((E) => E.id === a)) == null ? void 0 : g.content }),
|
10604
10666
|
s && p && /* @__PURE__ */ L.jsx("div", { className: "x8Kp9Lm2", children: /* @__PURE__ */ L.jsx(O, { icon: "menu-down", size: 20, color: l.info_700 }) })
|
10605
10667
|
] }),
|
10606
10668
|
/* @__PURE__ */ L.jsx("div", { children: /* @__PURE__ */ L.jsx("div", { children: /* @__PURE__ */ L.jsx(
|
@@ -10677,7 +10739,7 @@ const We = B.svg`
|
|
10677
10739
|
col2Text: m = "5 ani",
|
10678
10740
|
col3Text: M = "10 ani",
|
10679
10741
|
col1Value: g = 15e3,
|
10680
|
-
col2Value:
|
10742
|
+
col2Value: E = 13e3,
|
10681
10743
|
col3Value: V = 11e3,
|
10682
10744
|
col1Color: b = "danger_500",
|
10683
10745
|
col2Color: R = "danger_500",
|
@@ -10685,7 +10747,7 @@ const We = B.svg`
|
|
10685
10747
|
currency: v = "RON",
|
10686
10748
|
dev: _ = !1
|
10687
10749
|
}) => {
|
10688
|
-
const F = new Intl.NumberFormat("RO"), w = Q(null), [k, j] = T(0), [P,
|
10750
|
+
const F = new Intl.NumberFormat("RO"), w = Q(null), [k, j] = T(0), [P, x] = T(0), A = Q(null), Z = i1(() => {
|
10689
10751
|
const y = Math.abs(k - i - a), H = Math.abs(P - n - r), D = Math.abs(H / (o - s) * (o - C) + n), W = (y - 2 * c) / 3, G = (t1) => {
|
10690
10752
|
const X = Math.abs(H / (o - s) * (t1 - C)), K = Math.abs(H / (o - s) * (C - t1)), q = t1 > C ? X : K;
|
10691
10753
|
return {
|
@@ -10700,10 +10762,10 @@ const We = B.svg`
|
|
10700
10762
|
text_y: g >= C ? +G(g).y - 12 : +G(g).y + +G(g).h + 12 + 10
|
10701
10763
|
}, a1 = {
|
10702
10764
|
x: i + W + c,
|
10703
|
-
y: G(
|
10765
|
+
y: G(E).y,
|
10704
10766
|
w: W,
|
10705
|
-
h: G(
|
10706
|
-
text_y:
|
10767
|
+
h: G(E).h,
|
10768
|
+
text_y: E >= C ? +G(E).y - 12 : +G(E).y + +G(E).h + 12 + 10
|
10707
10769
|
}, c1 = {
|
10708
10770
|
x: i + W * 2 + c * 2,
|
10709
10771
|
y: G(V).y,
|
@@ -10732,7 +10794,7 @@ const We = B.svg`
|
|
10732
10794
|
n,
|
10733
10795
|
r,
|
10734
10796
|
g,
|
10735
|
-
|
10797
|
+
E,
|
10736
10798
|
V,
|
10737
10799
|
A
|
10738
10800
|
]);
|
@@ -10741,7 +10803,7 @@ const We = B.svg`
|
|
10741
10803
|
const y = () => {
|
10742
10804
|
var D;
|
10743
10805
|
const H = (D = w == null ? void 0 : w.current) == null ? void 0 : D.clientWidth;
|
10744
|
-
j(+H),
|
10806
|
+
j(+H), x(t);
|
10745
10807
|
};
|
10746
10808
|
return y(), window.addEventListener("resize", y), () => window.removeEventListener("resize", y);
|
10747
10809
|
}
|
@@ -10816,7 +10878,7 @@ const We = B.svg`
|
|
10816
10878
|
textAnchor: "middle",
|
10817
10879
|
x: Z.col_2.x + Z.col_2.w / 2,
|
10818
10880
|
y: Z.col_2.text_y,
|
10819
|
-
children: F.format(
|
10881
|
+
children: F.format(E) + ` ${v}`
|
10820
10882
|
}
|
10821
10883
|
),
|
10822
10884
|
/* @__PURE__ */ L.jsx(
|
@@ -11033,18 +11095,18 @@ const We = B.svg`
|
|
11033
11095
|
marginTop: k ? "auto" : `${c}px`,
|
11034
11096
|
marginBottom: k ? `${c}px` : "auto"
|
11035
11097
|
};
|
11036
|
-
M((
|
11037
|
-
}, []),
|
11098
|
+
M((x) => JSON.stringify(x) === JSON.stringify(j) ? x : j);
|
11099
|
+
}, []), E = C1(() => {
|
11038
11100
|
const R = p == null ? void 0 : p.current, $ = C == null ? void 0 : C.current;
|
11039
11101
|
if (!R || !$) return;
|
11040
|
-
const v = R.getBoundingClientRect(), _ = $.getBoundingClientRect(), F = _.left + window.scrollX, w = _.top + window.scrollY, k = window.innerHeight - _.bottom, j = _.top, P = v.height + 50 > k && j + 150 > k,
|
11102
|
+
const v = R.getBoundingClientRect(), _ = $.getBoundingClientRect(), F = _.left + window.scrollX, w = _.top + window.scrollY, k = window.innerHeight - _.bottom, j = _.top, P = v.height + 50 > k && j + 150 > k, x = {
|
11041
11103
|
top: P ? `${w - v.height - 10}px` : `${w + _.height}px`,
|
11042
11104
|
left: `${F}px`,
|
11043
11105
|
marginTop: P ? "auto" : "10px",
|
11044
11106
|
marginBottom: P ? "10px" : "auto"
|
11045
11107
|
};
|
11046
|
-
M((A) => JSON.stringify(A) === JSON.stringify(
|
11047
|
-
}, []), V = C1(() => o ?
|
11108
|
+
M((A) => JSON.stringify(A) === JSON.stringify(x) ? A : x);
|
11109
|
+
}, []), V = C1(() => o ? E() : g(), [o, g, E]);
|
11048
11110
|
e1(() => (V(), window.addEventListener("resize", V), window.addEventListener("scroll", V, !0), () => {
|
11049
11111
|
window.removeEventListener("resize", V), window.removeEventListener("scroll", V, !0);
|
11050
11112
|
}), [V]);
|
@@ -11489,6 +11551,7 @@ const ct = B.div`
|
|
11489
11551
|
align-items: center;
|
11490
11552
|
padding: 0px 16px;
|
11491
11553
|
background-color: ${({ $refused: i }) => i ? l.gray_60 : l.gray_30};
|
11554
|
+
|
11492
11555
|
& > div {
|
11493
11556
|
display: flex;
|
11494
11557
|
align-items: flex-start;
|
@@ -11571,9 +11634,9 @@ const ct = B.div`
|
|
11571
11634
|
children: M,
|
11572
11635
|
...g
|
11573
11636
|
}) => {
|
11574
|
-
let
|
11637
|
+
let E = null;
|
11575
11638
|
return T1.toArray(M).filter(Boolean).forEach((V) => {
|
11576
|
-
V.type === u9 && (
|
11639
|
+
V.type === u9 && (E = V);
|
11577
11640
|
}), /* @__PURE__ */ L.jsx(
|
11578
11641
|
ct,
|
11579
11642
|
{
|
@@ -11644,7 +11707,7 @@ const ct = B.div`
|
|
11644
11707
|
] }) })
|
11645
11708
|
] })
|
11646
11709
|
] }),
|
11647
|
-
/* @__PURE__ */ L.jsx("div", { children:
|
11710
|
+
/* @__PURE__ */ L.jsx("div", { children: E }),
|
11648
11711
|
!s && /* @__PURE__ */ L.jsxs(
|
11649
11712
|
"button",
|
11650
11713
|
{
|
@@ -12934,7 +12997,7 @@ const Ct = B.button`
|
|
12934
12997
|
disabled: C = !1,
|
12935
12998
|
...s
|
12936
12999
|
}) => {
|
12937
|
-
const h = Q(null), [u, p] = T(!1), [m, M] = T(""), [g,
|
13000
|
+
const h = Q(null), [u, p] = T(!1), [m, M] = T(""), [g, E] = T(!1), [V, b] = T(""), [R, $] = T(""), [v, _] = T(""), [F, w] = T(""), k = Q(!1), j = i1(() => {
|
12938
13001
|
var H;
|
12939
13002
|
return !V || !g ? [] : ((H = i3.find(
|
12940
13003
|
(D) => D.title.toLowerCase() === V.toLowerCase()
|
@@ -12944,7 +13007,7 @@ const Ct = B.button`
|
|
12944
13007
|
return H ? (g ? j : i3).filter(
|
12945
13008
|
(D) => D.title.toLowerCase().includes(H)
|
12946
13009
|
) : g ? j : i3;
|
12947
|
-
}, [m, g, j]),
|
13010
|
+
}, [m, g, j]), x = C1(
|
12948
13011
|
(H) => {
|
12949
13012
|
M(H.target.value);
|
12950
13013
|
},
|
@@ -12959,24 +13022,24 @@ const Ct = B.button`
|
|
12959
13022
|
},
|
12960
13023
|
[g]
|
12961
13024
|
), Z = C1(() => {
|
12962
|
-
k.current = !0,
|
13025
|
+
k.current = !0, E(!1), M(""), $(""), _("");
|
12963
13026
|
}, []), y = C1(() => {
|
12964
13027
|
if (k.current = !0, !g && V) {
|
12965
|
-
|
13028
|
+
E(!0), M("");
|
12966
13029
|
return;
|
12967
13030
|
}
|
12968
13031
|
if (!R) return;
|
12969
13032
|
const H = `${V} - ${R}`;
|
12970
|
-
|
13033
|
+
E(!0), p(!1), w(H), r && r({ judet: V, localitate: R, clasificare: v });
|
12971
13034
|
}, [g, V, R, v, r]);
|
12972
13035
|
return e1(() => {
|
12973
13036
|
const H = (D) => {
|
12974
13037
|
if (h.current && !h.current.contains(D.target)) {
|
12975
13038
|
if (p(!1), n != null && n.judet) {
|
12976
|
-
b(n == null ? void 0 : n.judet),
|
13039
|
+
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) ?? ""));
|
12977
13040
|
return;
|
12978
13041
|
}
|
12979
|
-
b(""), $(""), _(""),
|
13042
|
+
b(""), $(""), _(""), E(!1);
|
12980
13043
|
}
|
12981
13044
|
};
|
12982
13045
|
if (u)
|
@@ -12986,7 +13049,7 @@ const Ct = B.button`
|
|
12986
13049
|
}, [h, u]), e1(() => {
|
12987
13050
|
if (k.current) return;
|
12988
13051
|
let H = "";
|
12989
|
-
n != null && n.judet && (b(n == null ? void 0 : n.judet), H = `${n == null ? void 0 : n.judet}`,
|
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), w(H);
|
12990
13053
|
}, [n]), /* @__PURE__ */ L.jsxs(
|
12991
13054
|
dt,
|
12992
13055
|
{
|
@@ -13026,7 +13089,7 @@ const Ct = B.button`
|
|
13026
13089
|
/* @__PURE__ */ L.jsx(
|
13027
13090
|
"input",
|
13028
13091
|
{
|
13029
|
-
onChange:
|
13092
|
+
onChange: x,
|
13030
13093
|
value: m,
|
13031
13094
|
type: "text"
|
13032
13095
|
}
|
@@ -13160,7 +13223,7 @@ const Ct = B.button`
|
|
13160
13223
|
getValue: C,
|
13161
13224
|
...s
|
13162
13225
|
}) => {
|
13163
|
-
const [h, u] = T(!1), [p, m] = T(""), [M, g] = T("0"), [
|
13226
|
+
const [h, u] = T(!1), [p, m] = T(""), [M, g] = T("0"), [E, V] = T("0"), b = {
|
13164
13227
|
nevoi_personale: "Nevoi personale",
|
13165
13228
|
card_de_credit: "Card de credit",
|
13166
13229
|
overdraft: "Overdraft",
|
@@ -13232,17 +13295,17 @@ const Ct = B.button`
|
|
13232
13295
|
(N) => N.id === y ? { ...N, rata: W } : N
|
13233
13296
|
);
|
13234
13297
|
});
|
13235
|
-
},
|
13236
|
-
p && (w.rata && (!Number(M) || Number(M) < 1) || w.limitaAprobata && (!Number(
|
13298
|
+
}, x = C1(() => {
|
13299
|
+
p && (w.rata && (!Number(M) || Number(M) < 1) || w.limitaAprobata && (!Number(E) || Number(E) < 1) || (v((y) => [
|
13237
13300
|
{
|
13238
13301
|
id: String(y.length + 1),
|
13239
13302
|
tipCredit: p,
|
13240
13303
|
limitaAprobata: M,
|
13241
|
-
rata:
|
13304
|
+
rata: E
|
13242
13305
|
},
|
13243
13306
|
...y
|
13244
13307
|
]), g("0"), V("0"), m("")));
|
13245
|
-
}, [w, M,
|
13308
|
+
}, [w, M, E, p]), A = (y) => {
|
13246
13309
|
v((H) => H.filter((D) => D.id !== y));
|
13247
13310
|
}, Z = () => {
|
13248
13311
|
v([]), g("0"), V("0"), m("");
|
@@ -13320,7 +13383,7 @@ const Ct = B.button`
|
|
13320
13383
|
rightText: "RON",
|
13321
13384
|
id: "rata",
|
13322
13385
|
name: "rata",
|
13323
|
-
value:
|
13386
|
+
value: E,
|
13324
13387
|
setValue: (y) => j(y, "rata"),
|
13325
13388
|
size: "small",
|
13326
13389
|
numpad: !0,
|
@@ -13339,7 +13402,7 @@ const Ct = B.button`
|
|
13339
13402
|
intent: "info",
|
13340
13403
|
size: "small",
|
13341
13404
|
width: "90px",
|
13342
|
-
onClick:
|
13405
|
+
onClick: x
|
13343
13406
|
}
|
13344
13407
|
)
|
13345
13408
|
]
|
@@ -13989,9 +14052,9 @@ const Ct = B.button`
|
|
13989
14052
|
$disabled: p,
|
13990
14053
|
$loading: m,
|
13991
14054
|
...g,
|
13992
|
-
onClick: (
|
14055
|
+
onClick: (E) => {
|
13993
14056
|
var V;
|
13994
|
-
p || m || (V = g.onClick) == null || V.call(g,
|
14057
|
+
p || m || (V = g.onClick) == null || V.call(g, E);
|
13995
14058
|
},
|
13996
14059
|
children: [
|
13997
14060
|
M > 0 && !m && /* @__PURE__ */ L.jsxs("div", { className: "a7b2c9d4e8f5h3", children: [
|
@@ -14016,8 +14079,8 @@ const Ct = B.button`
|
|
14016
14079
|
/* @__PURE__ */ L.jsx("div", { className: "xk9m2pq4nt", children: C !== "null" && /* @__PURE__ */ L.jsx(
|
14017
14080
|
w1,
|
14018
14081
|
{
|
14019
|
-
onClick: (
|
14020
|
-
|
14082
|
+
onClick: (E) => {
|
14083
|
+
E.preventDefault(), E.stopPropagation(), !(p || m) && s();
|
14021
14084
|
},
|
14022
14085
|
size: "medium",
|
14023
14086
|
disabled: p,
|
@@ -14266,7 +14329,7 @@ const Ct = B.button`
|
|
14266
14329
|
textFontSize: m = 14,
|
14267
14330
|
textFontWeight: M = 400,
|
14268
14331
|
width: g = "auto",
|
14269
|
-
disabled:
|
14332
|
+
disabled: E = !1,
|
14270
14333
|
img: V = "",
|
14271
14334
|
onClick: b = () => {
|
14272
14335
|
},
|
@@ -14281,9 +14344,9 @@ const Ct = B.button`
|
|
14281
14344
|
$titleFontWeight: p,
|
14282
14345
|
$textFontSize: m,
|
14283
14346
|
$textFontWeight: M,
|
14284
|
-
$disabled:
|
14347
|
+
$disabled: E,
|
14285
14348
|
onClick: ($) => {
|
14286
|
-
|
14349
|
+
E || b($);
|
14287
14350
|
},
|
14288
14351
|
...R,
|
14289
14352
|
children: [
|
@@ -14446,7 +14509,7 @@ const Ct = B.button`
|
|
14446
14509
|
showRightContent: h = !0,
|
14447
14510
|
...u
|
14448
14511
|
}) => {
|
14449
|
-
const p = Q(null), m = Q(null), M = Q(null), g = Q(null),
|
14512
|
+
const p = Q(null), m = Q(null), M = Q(null), g = Q(null), E = 0.2, V = {
|
14450
14513
|
cash: l.warm_gray_150,
|
14451
14514
|
crestere: l.blue_400,
|
14452
14515
|
conservare: l.purple_500,
|
@@ -14457,17 +14520,17 @@ const Ct = B.button`
|
|
14457
14520
|
}, [b, R] = T(83), $ = C1(
|
14458
14521
|
(w) => {
|
14459
14522
|
const k = s ? 0 : (w / t || 0) * b;
|
14460
|
-
return (k > 0 ? Math.max(k,
|
14523
|
+
return (k > 0 ? Math.max(k, E) : 0).toFixed(2);
|
14461
14524
|
},
|
14462
14525
|
[s, t, b]
|
14463
14526
|
), v = i1(() => {
|
14464
|
-
const w = $(i), k = $(a), j = $(n), P = $(r),
|
14527
|
+
const w = $(i), k = $(a), j = $(n), P = $(r), x = $(c), A = $(o), Z = $(C);
|
14465
14528
|
return {
|
14466
14529
|
cash_percentage: Number(w),
|
14467
14530
|
crestere_percentage: Number(k),
|
14468
14531
|
conservare_percentage: Number(j),
|
14469
14532
|
lichiditate_percentage: Number(P),
|
14470
|
-
cashCrestere_percentage: Number(
|
14533
|
+
cashCrestere_percentage: Number(x),
|
14471
14534
|
cashConservare_percentage: Number(A),
|
14472
14535
|
cashLichiditate_percentage: Number(Z)
|
14473
14536
|
};
|
@@ -14486,7 +14549,7 @@ const Ct = B.button`
|
|
14486
14549
|
const j = p.current.clientWidth, P = Math.max(
|
14487
14550
|
((w = m.current) == null ? void 0 : w.getBBox().width) || 0,
|
14488
14551
|
((k = M.current) == null ? void 0 : k.getBBox().width) || 0
|
14489
|
-
),
|
14552
|
+
), x = h && M.current ? P + 30 || 65 : 4, A = (j - Number(x)) / j * 100;
|
14490
14553
|
return Number(Math.max(A, 0).toFixed(2));
|
14491
14554
|
}
|
14492
14555
|
return 85;
|
@@ -14677,7 +14740,7 @@ const Ct = B.button`
|
|
14677
14740
|
cash_label_nedistribuit: m = "echivalentul a 120.000 RON de astazi",
|
14678
14741
|
height: M = 334,
|
14679
14742
|
test: g = !1,
|
14680
|
-
visualDifference:
|
14743
|
+
visualDifference: E = 1,
|
14681
14744
|
currency: V = "RON",
|
14682
14745
|
...b
|
14683
14746
|
}) => {
|
@@ -14687,12 +14750,12 @@ const Ct = B.button`
|
|
14687
14750
|
conservare: l.purple_400,
|
14688
14751
|
lichiditate: l.pink_300,
|
14689
14752
|
inflatie: l.danger_500
|
14690
|
-
}, w = (P,
|
14753
|
+
}, w = (P, x = 134) => {
|
14691
14754
|
const A = P.split(" "), Z = [];
|
14692
14755
|
let y = A[0];
|
14693
14756
|
for (let H = 1; H < A.length; H++) {
|
14694
14757
|
const D = A[H], W = `${y} ${D}`;
|
14695
|
-
Number(W.length) * 6.15 < Number(
|
14758
|
+
Number(W.length) * 6.15 < Number(x) ? y = W : (Z.push(y), y = D);
|
14696
14759
|
}
|
14697
14760
|
return Z.push(y), Z;
|
14698
14761
|
}, k = i1(() => {
|
@@ -14715,7 +14778,7 @@ const Ct = B.button`
|
|
14715
14778
|
V
|
14716
14779
|
]), j = i1(() => {
|
14717
14780
|
const A = M - 54, Z = h > t ? h - t : 0, y = Z > 0 ? Number(
|
14718
|
-
(Z * A / h *
|
14781
|
+
(Z * A / h * E).toFixed(2)
|
14719
14782
|
) : 0, H = A - y, D = i + a + n, W = Math.max(t - D, 0), G = Math.max(
|
14720
14783
|
h - (r + c + o),
|
14721
14784
|
0
|
@@ -14768,7 +14831,7 @@ const Ct = B.button`
|
|
14768
14831
|
M,
|
14769
14832
|
h,
|
14770
14833
|
C,
|
14771
|
-
|
14834
|
+
E,
|
14772
14835
|
r,
|
14773
14836
|
c,
|
14774
14837
|
o
|
@@ -14830,7 +14893,7 @@ const Ct = B.button`
|
|
14830
14893
|
minimumFractionDigits: 0,
|
14831
14894
|
maximumFractionDigits: 0
|
14832
14895
|
}).format(i)
|
14833
|
-
).map((P,
|
14896
|
+
).map((P, x) => /* @__PURE__ */ L.jsx("tspan", { x: "50%", dy: x === 0 ? "0" : "1.2em", children: P }, x))
|
14834
14897
|
}
|
14835
14898
|
),
|
14836
14899
|
/* @__PURE__ */ L.jsx(
|
@@ -14857,7 +14920,7 @@ const Ct = B.button`
|
|
14857
14920
|
minimumFractionDigits: 0,
|
14858
14921
|
maximumFractionDigits: 0
|
14859
14922
|
}).format(a)
|
14860
|
-
).map((P,
|
14923
|
+
).map((P, x) => /* @__PURE__ */ L.jsx("tspan", { x: "50%", dy: x === 0 ? "0" : "1.2em", children: P }, x))
|
14861
14924
|
}
|
14862
14925
|
),
|
14863
14926
|
/* @__PURE__ */ L.jsx(
|
@@ -14884,7 +14947,7 @@ const Ct = B.button`
|
|
14884
14947
|
minimumFractionDigits: 0,
|
14885
14948
|
maximumFractionDigits: 0
|
14886
14949
|
}).format(n)
|
14887
|
-
).map((P,
|
14950
|
+
).map((P, x) => /* @__PURE__ */ L.jsx("tspan", { x: "50%", dy: x === 0 ? "0" : "1.2em", children: P }, x))
|
14888
14951
|
}
|
14889
14952
|
),
|
14890
14953
|
/* @__PURE__ */ L.jsx(
|
@@ -14904,7 +14967,7 @@ const Ct = B.button`
|
|
14904
14967
|
y: j.remaining_cash > 0 ? j.cash_y + j.cash_h / 2 + 5 : 0,
|
14905
14968
|
textAnchor: "middle",
|
14906
14969
|
className: `basic-label ${j.remaining_cash > 0 && j.cash_h >= 18 ? "" : "hidden"}`,
|
14907
|
-
children: w(k).map((P,
|
14970
|
+
children: w(k).map((P, x) => /* @__PURE__ */ L.jsx("tspan", { x: "50%", dy: x === 0 ? "0" : "1.2em", children: P }, x))
|
14908
14971
|
}
|
14909
14972
|
),
|
14910
14973
|
C > 0 && /* @__PURE__ */ L.jsx(
|
@@ -14924,7 +14987,7 @@ const Ct = B.button`
|
|
14924
14987
|
y: j.inflatie_y + j.inflatie_h / 2 + 5,
|
14925
14988
|
textAnchor: "middle",
|
14926
14989
|
className: "inflatie-label",
|
14927
|
-
children: w(C + "%").map((P,
|
14990
|
+
children: w(C + "%").map((P, x) => /* @__PURE__ */ L.jsx("tspan", { x: "50%", dy: x === 0 ? "0" : "1.2em", children: P }, x))
|
14928
14991
|
}
|
14929
14992
|
),
|
14930
14993
|
/* @__PURE__ */ L.jsx("text", { textAnchor: "middle", x: "50%", y: "98.5%", className: "label_bottom", children: p })
|
@@ -15652,11 +15715,11 @@ const Ct = B.button`
|
|
15652
15715
|
};
|
15653
15716
|
return e1(() => {
|
15654
15717
|
if (o === "loading" && !C) {
|
15655
|
-
const
|
15656
|
-
M((V) => V <= 1 ? (clearInterval(
|
15718
|
+
const E = setInterval(() => {
|
15719
|
+
M((V) => V <= 1 ? (clearInterval(E), 0) : V - 1);
|
15657
15720
|
}, 1e3);
|
15658
15721
|
return () => {
|
15659
|
-
clearInterval(
|
15722
|
+
clearInterval(E);
|
15660
15723
|
};
|
15661
15724
|
} else
|
15662
15725
|
M(s);
|
@@ -15837,7 +15900,7 @@ const Ct = B.button`
|
|
15837
15900
|
}, g = {
|
15838
15901
|
x: i + a * Math.cos(u),
|
15839
15902
|
y: i + a * Math.sin(u)
|
15840
|
-
},
|
15903
|
+
}, E = {
|
15841
15904
|
x: i + a * Math.cos(p),
|
15842
15905
|
y: i + a * Math.sin(p)
|
15843
15906
|
}, V = h - s > 180 ? 1 : 0;
|
@@ -15845,7 +15908,7 @@ const Ct = B.button`
|
|
15845
15908
|
M ${m.x} ${m.y}
|
15846
15909
|
A ${i} ${i} 0 ${V} 0 ${M.x} ${M.y}
|
15847
15910
|
L ${g.x} ${g.y}
|
15848
|
-
A ${a} ${a} 0 ${V} 1 ${
|
15911
|
+
A ${a} ${a} 0 ${V} 1 ${E.x} ${E.y}
|
15849
15912
|
Z
|
15850
15913
|
`;
|
15851
15914
|
},
|
@@ -15874,7 +15937,7 @@ const Ct = B.button`
|
|
15874
15937
|
value: a = 50,
|
15875
15938
|
width: n = "40px"
|
15876
15939
|
}) => {
|
15877
|
-
const r = i1(() => 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),
|
15940
|
+
const r = i1(() => 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 = i1(() => u / 2, [u]), b = i1(() => {
|
15878
15941
|
const $ = o / 2 + C / 2 + 2, v = m - (o / 2 + C / 2) + 2, _ = Math.max(t, Math.min(i, a)), F = i - t, w = F === 0 ? 0.5 : 1 - (_ - t) / F, k = $ + w * (v - $);
|
15879
15942
|
return isNaN(k) ? $ : k;
|
15880
15943
|
}, [o, C, m, t, i, a]), R = i1(() => {
|
@@ -15890,22 +15953,22 @@ const Ct = B.button`
|
|
15890
15953
|
g.current.width.baseVal.value ?? g.current.getBoundingClientRect().width ?? 28
|
15891
15954
|
);
|
15892
15955
|
}, [g]), e1(() => {
|
15893
|
-
if (
|
15894
|
-
const { height: $ } =
|
15956
|
+
if (E.current) {
|
15957
|
+
const { height: $ } = E.current.getBoundingClientRect();
|
15895
15958
|
h($), M($ - 4);
|
15896
15959
|
}
|
15897
|
-
}, [
|
15898
|
-
if (
|
15960
|
+
}, [E]), e1(() => {
|
15961
|
+
if (E.current) {
|
15899
15962
|
const $ = () => {
|
15900
|
-
const _ =
|
15963
|
+
const _ = E.current.getBoundingClientRect();
|
15901
15964
|
_.height > 0 && (h(_.height), M(_.height - 4));
|
15902
15965
|
}, v = new ResizeObserver($);
|
15903
|
-
return v.observe(
|
15966
|
+
return v.observe(E.current), () => {
|
15904
15967
|
v.disconnect();
|
15905
15968
|
};
|
15906
15969
|
}
|
15907
|
-
}, [
|
15908
|
-
if (
|
15970
|
+
}, [E]), e1(() => {
|
15971
|
+
if (E.current && s && m && g.current) {
|
15909
15972
|
const $ = () => {
|
15910
15973
|
const _ = g.current.width.baseVal.value ?? g.current.getBoundingClientRect().width;
|
15911
15974
|
p(_ ?? 28);
|
@@ -15914,7 +15977,7 @@ const Ct = B.button`
|
|
15914
15977
|
v.disconnect();
|
15915
15978
|
};
|
15916
15979
|
}
|
15917
|
-
}, [m, s, g]), /* @__PURE__ */ L.jsxs(Tt, { width: n, height: "100%", ref:
|
15980
|
+
}, [m, s, g]), /* @__PURE__ */ L.jsxs(Tt, { width: n, height: "100%", ref: E, children: [
|
15918
15981
|
/* @__PURE__ */ L.jsx("rect", { x: 0, y: 0, fill: l.gray_950, height: 2, width: "100%" }),
|
15919
15982
|
/* @__PURE__ */ L.jsx("defs", { children: /* @__PURE__ */ L.jsxs("linearGradient", { id: r, x1: "0%", y1: "0%", x2: "0%", y2: "100%", children: [
|
15920
15983
|
/* @__PURE__ */ L.jsx("stop", { offset: R.positive, stopColor: "#1BB18C" }),
|