rbro-tat-uds 1.6.28 → 1.6.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/PropunereFlexicredit/PropunereFlexicredit.d.ts +5 -0
- package/dist/components/SidebarItem/SidebarItem.d.ts +1 -0
- package/dist/index.cjs.js +97 -51
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +411 -321
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
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];
|
@@ -2650,6 +2650,27 @@ const R1 = {
|
|
2650
2650
|
padding: 2px 12px;
|
2651
2651
|
border-radius: 999999px;
|
2652
2652
|
background: ${({ $selected: t, $theme: i }) => t ? i && Object.keys(R1).includes(i) ? R1[i].itemActive.backgroundColor : R1.light.itemActive.backgroundColor : "transparent"};
|
2653
|
+
position: relative;
|
2654
|
+
|
2655
|
+
${({ $badgeText: t }) => t && d`
|
2656
|
+
& > div {
|
2657
|
+
position: absolute;
|
2658
|
+
top: -23%;
|
2659
|
+
right: -23%;
|
2660
|
+
background-color: ${l.danger_500};
|
2661
|
+
padding: 2px 6.175px;
|
2662
|
+
border-radius: 999999px;
|
2663
|
+
display: flex;
|
2664
|
+
align-items: center;
|
2665
|
+
justify-content: center;
|
2666
|
+
|
2667
|
+
& > span {
|
2668
|
+
color: ${l.white};
|
2669
|
+
font-size: 11px;
|
2670
|
+
font-weight: 500;
|
2671
|
+
}
|
2672
|
+
}
|
2673
|
+
`}
|
2653
2674
|
}
|
2654
2675
|
|
2655
2676
|
& > span {
|
@@ -2687,24 +2708,29 @@ const R1 = {
|
|
2687
2708
|
onClick: n,
|
2688
2709
|
disabled: r = !1,
|
2689
2710
|
theme: c = "light",
|
2690
|
-
|
2711
|
+
badgeText: o = "",
|
2712
|
+
...C
|
2691
2713
|
}) => /* @__PURE__ */ L.jsxs(
|
2692
2714
|
I4,
|
2693
2715
|
{
|
2694
2716
|
onClick: n,
|
2695
2717
|
$selected: a,
|
2696
2718
|
$theme: c,
|
2719
|
+
$badgeText: o,
|
2697
2720
|
disabled: r,
|
2698
|
-
...
|
2721
|
+
...C,
|
2699
2722
|
children: [
|
2700
|
-
/* @__PURE__ */ L.
|
2701
|
-
|
2702
|
-
|
2703
|
-
|
2704
|
-
|
2705
|
-
|
2706
|
-
|
2707
|
-
|
2723
|
+
/* @__PURE__ */ L.jsxs("div", { children: [
|
2724
|
+
/* @__PURE__ */ L.jsx(
|
2725
|
+
O,
|
2726
|
+
{
|
2727
|
+
icon: t,
|
2728
|
+
size: 20,
|
2729
|
+
color: r ? R1[c].icon.disabled : R1[c].icon.default
|
2730
|
+
}
|
2731
|
+
),
|
2732
|
+
o && /* @__PURE__ */ L.jsx("div", { children: /* @__PURE__ */ L.jsx("span", { children: o }) })
|
2733
|
+
] }),
|
2708
2734
|
/* @__PURE__ */ L.jsx("span", { children: i })
|
2709
2735
|
]
|
2710
2736
|
}
|
@@ -2862,7 +2888,7 @@ const R1 = {
|
|
2862
2888
|
items: m,
|
2863
2889
|
content: M,
|
2864
2890
|
padding: g,
|
2865
|
-
margin:
|
2891
|
+
margin: E,
|
2866
2892
|
radius: V,
|
2867
2893
|
border: b,
|
2868
2894
|
css: R,
|
@@ -2890,7 +2916,7 @@ const R1 = {
|
|
2890
2916
|
$items: m,
|
2891
2917
|
$content: M,
|
2892
2918
|
$padding: g,
|
2893
|
-
$margin:
|
2919
|
+
$margin: E,
|
2894
2920
|
$radius: V,
|
2895
2921
|
$border: b,
|
2896
2922
|
$css: R,
|
@@ -3180,7 +3206,7 @@ const R1 = {
|
|
3180
3206
|
disabled: m = !1,
|
3181
3207
|
loading: M = !1,
|
3182
3208
|
buttonOnClick: g,
|
3183
|
-
...
|
3209
|
+
...E
|
3184
3210
|
}) => /* @__PURE__ */ L.jsxs(
|
3185
3211
|
d0,
|
3186
3212
|
{
|
@@ -3193,7 +3219,7 @@ const R1 = {
|
|
3193
3219
|
$textFontWeight: o,
|
3194
3220
|
$icon: C,
|
3195
3221
|
$disabled: m,
|
3196
|
-
...
|
3222
|
+
...E,
|
3197
3223
|
children: [
|
3198
3224
|
/* @__PURE__ */ L.jsxs("div", { children: [
|
3199
3225
|
/* @__PURE__ */ L.jsxs("div", { children: [
|
@@ -4035,7 +4061,7 @@ const v0 = [14, 16, 18, 20, 24], M0 = [200, 300, 400, 500, 700, 800], _0 = B.div
|
|
4035
4061
|
leftButtonIcon: m,
|
4036
4062
|
rightButtonIcon: M,
|
4037
4063
|
rightButtonOnClick: g,
|
4038
|
-
onCloseNumpad:
|
4064
|
+
onCloseNumpad: E,
|
4039
4065
|
numpad: V = !1,
|
4040
4066
|
numpadOffset: b = 10,
|
4041
4067
|
numpadFloatNumber: R = !0,
|
@@ -4050,7 +4076,7 @@ const v0 = [14, 16, 18, 20, 24], M0 = [200, 300, 400, 500, 700, 800], _0 = B.div
|
|
4050
4076
|
c("");
|
4051
4077
|
}, P = (A) => {
|
4052
4078
|
c && c(A);
|
4053
|
-
},
|
4079
|
+
}, x = (A) => {
|
4054
4080
|
if (V && !s)
|
4055
4081
|
if (v) {
|
4056
4082
|
const Z = setTimeout(() => k(!0), 100);
|
@@ -4062,13 +4088,13 @@ const v0 = [14, 16, 18, 20, 24], M0 = [200, 300, 400, 500, 700, 800], _0 = B.div
|
|
4062
4088
|
return e1(() => {
|
4063
4089
|
const A = F == null ? void 0 : F.current, Z = (y) => {
|
4064
4090
|
const H = document.getElementById("rbro-numpad-wrapper"), D = H == null ? void 0 : H.contains(y.target);
|
4065
|
-
A && !A.contains(y.target) && !D && (
|
4091
|
+
A && !A.contains(y.target) && !D && (E && E(), k(!1));
|
4066
4092
|
};
|
4067
4093
|
if (w)
|
4068
4094
|
return document.addEventListener("mousedown", Z), () => {
|
4069
4095
|
document.removeEventListener("mousedown", Z);
|
4070
4096
|
};
|
4071
|
-
}, [w, F,
|
4097
|
+
}, [w, F, E]), /* @__PURE__ */ L.jsxs(
|
4072
4098
|
$0,
|
4073
4099
|
{
|
4074
4100
|
ref: F,
|
@@ -4090,7 +4116,7 @@ const v0 = [14, 16, 18, 20, 24], M0 = [200, 300, 400, 500, 700, 800], _0 = B.div
|
|
4090
4116
|
value: r,
|
4091
4117
|
getValue: (A) => P(A),
|
4092
4118
|
handleFooterButton: () => {
|
4093
|
-
|
4119
|
+
E && E(), k(!1);
|
4094
4120
|
},
|
4095
4121
|
offset: b,
|
4096
4122
|
float: R,
|
@@ -4105,7 +4131,7 @@ const v0 = [14, 16, 18, 20, 24], M0 = [200, 300, 400, 500, 700, 800], _0 = B.div
|
|
4105
4131
|
value: r,
|
4106
4132
|
getValue: (A) => P(A),
|
4107
4133
|
handleFooterButton: () => {
|
4108
|
-
|
4134
|
+
E && E(), k(!1);
|
4109
4135
|
},
|
4110
4136
|
offset: b,
|
4111
4137
|
float: R,
|
@@ -4139,7 +4165,7 @@ const v0 = [14, 16, 18, 20, 24], M0 = [200, 300, 400, 500, 700, 800], _0 = B.div
|
|
4139
4165
|
onChange: (A) => {
|
4140
4166
|
V || P(A.target.value);
|
4141
4167
|
},
|
4142
|
-
onClick:
|
4168
|
+
onClick: x
|
4143
4169
|
}
|
4144
4170
|
),
|
4145
4171
|
s ? /* @__PURE__ */ L.jsx(s2, { style: { opacity: _.disabled ? 0.3 : 1 }, size: 20 }) : (M || p && typeof p == "string" || C && C === "success" || h) && /* @__PURE__ */ L.jsxs("div", { className: "rnd9x7m2k4l", children: [
|
@@ -4243,7 +4269,7 @@ const v0 = [14, 16, 18, 20, 24], M0 = [200, 300, 400, 500, 700, 800], _0 = B.div
|
|
4243
4269
|
showLeftHelperIcon: m = !0,
|
4244
4270
|
...M
|
4245
4271
|
}, g) => {
|
4246
|
-
const
|
4272
|
+
const E = {
|
4247
4273
|
info: /* @__PURE__ */ L.jsx(O, { icon: "info_filled", color: l.gray_500, size: 14 }),
|
4248
4274
|
success: /* @__PURE__ */ L.jsx(O, { icon: "checkmark_filled", color: l.success_600, size: 14 }),
|
4249
4275
|
warning: /* @__PURE__ */ L.jsx(O, { icon: "warning_filled", color: l.warning_500, size: 14 }),
|
@@ -4291,7 +4317,7 @@ const v0 = [14, 16, 18, 20, 24], M0 = [200, 300, 400, 500, 700, 800], _0 = B.div
|
|
4291
4317
|
$helperIntent: s,
|
4292
4318
|
children: [
|
4293
4319
|
typeof c == "string" && !!c.length && /* @__PURE__ */ L.jsxs("div", { children: [
|
4294
|
-
m &&
|
4320
|
+
m && E[s],
|
4295
4321
|
/* @__PURE__ */ L.jsx("span", { children: c })
|
4296
4322
|
] }),
|
4297
4323
|
/* @__PURE__ */ L.jsx("span", { children: o })
|
@@ -4368,14 +4394,14 @@ const k0 = [32, 40, 48], A0 = B.div`
|
|
4368
4394
|
wrapperWidth: u,
|
4369
4395
|
...p
|
4370
4396
|
}) => {
|
4371
|
-
const m = Q(null), [M, g] = T(!1),
|
4397
|
+
const m = Q(null), [M, g] = T(!1), E = C1(
|
4372
4398
|
(w) => {
|
4373
4399
|
var j, P;
|
4374
4400
|
const k = (j = m.current) == null ? void 0 : j.getBoundingClientRect();
|
4375
4401
|
if (k) {
|
4376
|
-
let
|
4377
|
-
if ("touches" in w ?
|
4378
|
-
const A =
|
4402
|
+
let x;
|
4403
|
+
if ("touches" in w ? x = (P = w.touches[0]) == null ? void 0 : P.clientX : "clientX" in w && (x = w.clientX), x !== void 0) {
|
4404
|
+
const A = x - k.left, Z = k.width, y = A / Z * (c - r) + r;
|
4379
4405
|
let H = Math.round(y / C) * C;
|
4380
4406
|
H = Math.max(r, H), H = Math.min(c, H), n && n(H);
|
4381
4407
|
}
|
@@ -4402,18 +4428,18 @@ const k0 = [32, 40, 48], A0 = B.div`
|
|
4402
4428
|
n && n(a), g(!1);
|
4403
4429
|
}, [a, n]), R = C1(
|
4404
4430
|
(w) => {
|
4405
|
-
M &&
|
4431
|
+
M && E(w);
|
4406
4432
|
},
|
4407
|
-
[M,
|
4433
|
+
[M, E]
|
4408
4434
|
), $ = (w) => {
|
4409
|
-
s || (
|
4435
|
+
s || (E(w), g(!0));
|
4410
4436
|
}, v = (w) => {
|
4411
|
-
g(!0),
|
4437
|
+
g(!0), E(w);
|
4412
4438
|
}, _ = C1(
|
4413
4439
|
(w) => {
|
4414
|
-
|
4440
|
+
E(w);
|
4415
4441
|
},
|
4416
|
-
[
|
4442
|
+
[E]
|
4417
4443
|
), F = C1(() => {
|
4418
4444
|
n && n(a), g(!1);
|
4419
4445
|
}, [a, n]);
|
@@ -4496,9 +4522,9 @@ const k0 = [32, 40, 48], A0 = B.div`
|
|
4496
4522
|
}, D0 = B.div`
|
4497
4523
|
border-radius: 8px;
|
4498
4524
|
border: 1px solid
|
4499
|
-
${({ $featured: t }) => t ? l.accent_600 : l.gray_200};
|
4525
|
+
${({ $featured: t, $selected: i }) => i ? l.purple_500 : t ? l.accent_600 : l.gray_200};
|
4500
4526
|
overflow: hidden;
|
4501
|
-
min-height: 274px;
|
4527
|
+
min-height: ${({ $hideButton: t }) => t ? "274px" : "314px"};
|
4502
4528
|
box-sizing: border-box;
|
4503
4529
|
height: 100%;
|
4504
4530
|
width: 100%;
|
@@ -4535,13 +4561,13 @@ const k0 = [32, 40, 48], A0 = B.div`
|
|
4535
4561
|
align-items: center;
|
4536
4562
|
justify-content: space-between;
|
4537
4563
|
gap: 8px;
|
4538
|
-
background-color: ${t.$featured ? l.accent_100 : "transparent"};
|
4564
|
+
background-color: ${t.$refused ? l.gray_30 : t.$selected ? l.purple_50 : t.$featured ? l.accent_100 : "transparent"};
|
4539
4565
|
|
4540
4566
|
& > span {
|
4541
4567
|
font-size: 18px;
|
4542
4568
|
font-weight: 700;
|
4543
4569
|
line-height: 120%;
|
4544
|
-
color: ${l.purple_600};
|
4570
|
+
color: ${({ $refused: i }) => i ? l.gray_300 : l.purple_600};
|
4545
4571
|
}
|
4546
4572
|
}
|
4547
4573
|
|
@@ -4552,7 +4578,7 @@ const k0 = [32, 40, 48], A0 = B.div`
|
|
4552
4578
|
padding: 8px 16px 12px 16px;
|
4553
4579
|
min-height: 104px;
|
4554
4580
|
height: 100%;
|
4555
|
-
background-color: ${t.$featured ? l.accent_100 : "transparent"};
|
4581
|
+
background-color: ${t.$refused ? l.gray_30 : t.$selected ? l.purple_50 : t.$featured ? l.accent_100 : "transparent"};
|
4556
4582
|
|
4557
4583
|
& > div {
|
4558
4584
|
display: flex;
|
@@ -4573,14 +4599,14 @@ const k0 = [32, 40, 48], A0 = B.div`
|
|
4573
4599
|
font-size: 14px;
|
4574
4600
|
font-weight: 400;
|
4575
4601
|
line-height: 120%;
|
4576
|
-
color: ${l.gray_700};
|
4602
|
+
color: ${({ $refused: i }) => i ? l.gray_200 : l.gray_700};
|
4577
4603
|
}
|
4578
4604
|
|
4579
4605
|
& > span:nth-child(2) {
|
4580
4606
|
font-size: 20px;
|
4581
4607
|
font-weight: 700;
|
4582
4608
|
line-height: 120%;
|
4583
|
-
color: ${l.gray_950};
|
4609
|
+
color: ${({ $refused: i }) => i ? l.gray_300 : l.gray_950};
|
4584
4610
|
}
|
4585
4611
|
}
|
4586
4612
|
|
@@ -4590,14 +4616,14 @@ const k0 = [32, 40, 48], A0 = B.div`
|
|
4590
4616
|
font-size: 12px;
|
4591
4617
|
font-weight: 400;
|
4592
4618
|
line-height: 120%;
|
4593
|
-
color: ${l.gray_700};
|
4619
|
+
color: ${({ $refused: i }) => i ? l.gray_200 : l.gray_700};
|
4594
4620
|
}
|
4595
4621
|
|
4596
4622
|
& > span:nth-child(2) {
|
4597
4623
|
font-size: 14px;
|
4598
4624
|
font-weight: 500;
|
4599
4625
|
line-height: 120%;
|
4600
|
-
color: ${l.gray_950};
|
4626
|
+
color: ${({ $refused: i }) => i ? l.gray_300 : l.gray_950};
|
4601
4627
|
}
|
4602
4628
|
}
|
4603
4629
|
}
|
@@ -4643,16 +4669,16 @@ const k0 = [32, 40, 48], A0 = B.div`
|
|
4643
4669
|
|
4644
4670
|
& > div:first-of-type {
|
4645
4671
|
border-right: 0.5px solid ${l.gray_200};
|
4646
|
-
background-color: ${t.$featured ? l.white : l.gray_30};
|
4672
|
+
background-color: ${t.$refused ? l.gray_60 : t.$featured ? l.white : l.gray_30};
|
4647
4673
|
|
4648
4674
|
& > div {
|
4649
4675
|
& > div {
|
4650
4676
|
& > span:first-child {
|
4651
|
-
color: ${l.gray_700};
|
4677
|
+
color: ${({ $refused: i }) => i ? l.gray_300 : l.gray_700};
|
4652
4678
|
}
|
4653
4679
|
|
4654
4680
|
& > span:last-child {
|
4655
|
-
color: ${l.gray_950};
|
4681
|
+
color: ${({ $refused: i }) => i ? l.gray_300 : l.gray_950};
|
4656
4682
|
}
|
4657
4683
|
}
|
4658
4684
|
}
|
@@ -4662,7 +4688,7 @@ const k0 = [32, 40, 48], A0 = B.div`
|
|
4662
4688
|
border-left: 0.5px solid ${l.gray_200};
|
4663
4689
|
background-color: ${(i) => {
|
4664
4690
|
var a;
|
4665
|
-
return (a = i.$refinantare) != null && a.length ? l.success_100 : l.gray_60;
|
4691
|
+
return i.$refused ? l.gray_60 : (a = i.$refinantare) != null && a.length ? l.success_100 : l.gray_60;
|
4666
4692
|
}};
|
4667
4693
|
|
4668
4694
|
& > div {
|
@@ -4670,13 +4696,13 @@ const k0 = [32, 40, 48], A0 = B.div`
|
|
4670
4696
|
& > span:first-child {
|
4671
4697
|
color: ${(i) => {
|
4672
4698
|
var a;
|
4673
|
-
return (a = i.$refinantare) != null && a.length ? l.success_800 : l.gray_300;
|
4699
|
+
return i.$refused ? l.gray_300 : (a = i.$refinantare) != null && a.length ? l.success_800 : l.gray_300;
|
4674
4700
|
}};
|
4675
4701
|
}
|
4676
4702
|
& > span:last-child {
|
4677
4703
|
color: ${(i) => {
|
4678
4704
|
var a;
|
4679
|
-
return (a = i.$refinantare) != null && a.length ? l.success_600 : l.gray_300;
|
4705
|
+
return i.$refused ? l.gray_300 : (a = i.$refinantare) != null && a.length ? l.success_600 : l.gray_300;
|
4680
4706
|
}};
|
4681
4707
|
}
|
4682
4708
|
}
|
@@ -4689,6 +4715,29 @@ const k0 = [32, 40, 48], A0 = B.div`
|
|
4689
4715
|
height: 106px;
|
4690
4716
|
box-sizing: border-box;
|
4691
4717
|
}
|
4718
|
+
|
4719
|
+
& > button {
|
4720
|
+
appearance: none;
|
4721
|
+
border: none;
|
4722
|
+
outline: none;
|
4723
|
+
background-color: ${({ $selected: i, $disabled: a }) => i ? a ? l.gray_100 : l.purple_600 : "transparent"};
|
4724
|
+
padding: 0px;
|
4725
|
+
width: 100%;
|
4726
|
+
height: 40px;
|
4727
|
+
display: flex;
|
4728
|
+
align-items: center;
|
4729
|
+
justify-content: center;
|
4730
|
+
gap: 8px;
|
4731
|
+
border-top: 1px solid ${l.gray_200};
|
4732
|
+
cursor: pointer;
|
4733
|
+
|
4734
|
+
& > span {
|
4735
|
+
font-size: 14px;
|
4736
|
+
font-weight: 500;
|
4737
|
+
line-height: 120%;
|
4738
|
+
color: ${({ $selected: i, $disabled: a }) => i ? a ? l.gray_600 : l.white : a ? l.gray_300 : l.purple_600};
|
4739
|
+
}
|
4740
|
+
}
|
4692
4741
|
`}
|
4693
4742
|
`, P0 = ({
|
4694
4743
|
title: t = "Propunere Flexicredit",
|
@@ -4703,19 +4752,28 @@ const k0 = [32, 40, 48], A0 = B.div`
|
|
4703
4752
|
emptyText: h = "Indisponibil",
|
4704
4753
|
featured: u = !1,
|
4705
4754
|
buttonOnClick: p,
|
4706
|
-
|
4707
|
-
|
4755
|
+
selectOnClick: m,
|
4756
|
+
hideButton: M = !0,
|
4757
|
+
selected: g = !1,
|
4758
|
+
disabled: E = !1,
|
4759
|
+
refused: V = !1,
|
4760
|
+
children: b,
|
4761
|
+
...R
|
4708
4762
|
}) => {
|
4709
|
-
let
|
4710
|
-
return T1.toArray(
|
4711
|
-
|
4763
|
+
let $ = null;
|
4764
|
+
return T1.toArray(b).filter(Boolean).forEach((v) => {
|
4765
|
+
v.type === l9 && ($ = v);
|
4712
4766
|
}), /* @__PURE__ */ L.jsx(
|
4713
4767
|
D0,
|
4714
4768
|
{
|
4715
4769
|
$refinantare: C,
|
4716
4770
|
$empty: s,
|
4717
4771
|
$featured: u,
|
4718
|
-
|
4772
|
+
$selected: g,
|
4773
|
+
$disabled: E,
|
4774
|
+
$refused: V,
|
4775
|
+
$hideButton: M,
|
4776
|
+
...R,
|
4719
4777
|
children: s ? /* @__PURE__ */ L.jsxs("div", { children: [
|
4720
4778
|
/* @__PURE__ */ L.jsx(O, { size: 20, icon: "rejected", color: l.gray_500 }),
|
4721
4779
|
/* @__PURE__ */ L.jsx("span", { children: h })
|
@@ -4760,7 +4818,14 @@ const k0 = [32, 40, 48], A0 = B.div`
|
|
4760
4818
|
] }),
|
4761
4819
|
/* @__PURE__ */ L.jsxs("div", { children: [
|
4762
4820
|
/* @__PURE__ */ L.jsx("div", { children: /* @__PURE__ */ L.jsxs("div", { children: [
|
4763
|
-
/* @__PURE__ */ L.jsx(
|
4821
|
+
/* @__PURE__ */ L.jsx(
|
4822
|
+
O,
|
4823
|
+
{
|
4824
|
+
icon: "calendar",
|
4825
|
+
size: 16,
|
4826
|
+
color: V ? l.gray_200 : l.gray_500
|
4827
|
+
}
|
4828
|
+
),
|
4764
4829
|
/* @__PURE__ */ L.jsxs("div", { children: [
|
4765
4830
|
/* @__PURE__ */ L.jsx("span", { children: "Perioada" }),
|
4766
4831
|
/* @__PURE__ */ L.jsx("span", { children: o ?? "-" })
|
@@ -4772,7 +4837,7 @@ const k0 = [32, 40, 48], A0 = B.div`
|
|
4772
4837
|
{
|
4773
4838
|
icon: "money-return",
|
4774
4839
|
size: 16,
|
4775
|
-
color: C.length ? l.success_800 : l.gray_200
|
4840
|
+
color: V ? l.gray_200 : C.length ? l.success_800 : l.gray_200
|
4776
4841
|
}
|
4777
4842
|
),
|
4778
4843
|
/* @__PURE__ */ L.jsxs("div", { children: [
|
@@ -4782,7 +4847,30 @@ const k0 = [32, 40, 48], A0 = B.div`
|
|
4782
4847
|
] }) })
|
4783
4848
|
] })
|
4784
4849
|
] }),
|
4785
|
-
/* @__PURE__ */ L.jsx("div", { children:
|
4850
|
+
/* @__PURE__ */ L.jsx("div", { children: $ }),
|
4851
|
+
!M && /* @__PURE__ */ L.jsxs(
|
4852
|
+
"button",
|
4853
|
+
{
|
4854
|
+
disabled: E,
|
4855
|
+
type: "button",
|
4856
|
+
onClick: E ? () => {
|
4857
|
+
} : m,
|
4858
|
+
children: [
|
4859
|
+
/* @__PURE__ */ L.jsx(
|
4860
|
+
O,
|
4861
|
+
{
|
4862
|
+
icon: g ? "checkmark_filled" : "checkmark-part",
|
4863
|
+
size: 16,
|
4864
|
+
color: g ? E ? l.gray_600 : l.white : l.purple_600,
|
4865
|
+
style: {
|
4866
|
+
opacity: E && !g ? "0.25" : "1"
|
4867
|
+
}
|
4868
|
+
}
|
4869
|
+
),
|
4870
|
+
/* @__PURE__ */ L.jsx("span", { children: g ? "Varianta selectata" : "Vreau aceasta varianta!" })
|
4871
|
+
]
|
4872
|
+
}
|
4873
|
+
)
|
4786
4874
|
] })
|
4787
4875
|
}
|
4788
4876
|
);
|
@@ -5020,11 +5108,11 @@ const z0 = B.div`
|
|
5020
5108
|
reActionButtonOnClick: p,
|
5021
5109
|
...m
|
5022
5110
|
}) => {
|
5023
|
-
const [M, g] = T(h), [
|
5024
|
-
!
|
5111
|
+
const [M, g] = T(h), [E, V] = T(!1), [b, R] = T(!1), $ = () => {
|
5112
|
+
!E && !o && (b ? (p && p(), V(!0)) : (R(!0), u && u(), V(!0)));
|
5025
5113
|
};
|
5026
5114
|
return e1(() => {
|
5027
|
-
if (
|
5115
|
+
if (E && !o) {
|
5028
5116
|
const v = setInterval(() => {
|
5029
5117
|
g((_) => _ <= 1 ? (clearInterval(v), V(!1), 0) : _ - 1);
|
5030
5118
|
}, 1e3);
|
@@ -5033,13 +5121,13 @@ const z0 = B.div`
|
|
5033
5121
|
};
|
5034
5122
|
} else
|
5035
5123
|
g(h);
|
5036
|
-
}, [h,
|
5124
|
+
}, [h, E, o]), /* @__PURE__ */ L.jsxs(
|
5037
5125
|
q0,
|
5038
5126
|
{
|
5039
|
-
disabled:
|
5127
|
+
disabled: E || o,
|
5040
5128
|
onClick: $,
|
5041
5129
|
$intent: a,
|
5042
|
-
$loading:
|
5130
|
+
$loading: E,
|
5043
5131
|
$size: s,
|
5044
5132
|
$disabled: o,
|
5045
5133
|
$buttonIntent: c,
|
@@ -5047,7 +5135,7 @@ const z0 = B.div`
|
|
5047
5135
|
...m,
|
5048
5136
|
children: [
|
5049
5137
|
a !== "default" && /* @__PURE__ */ L.jsx("span", { children: a === "success" ? r : n }),
|
5050
|
-
|
5138
|
+
E ? /* @__PURE__ */ L.jsx(
|
5051
5139
|
O,
|
5052
5140
|
{
|
5053
5141
|
icon: "retry-1",
|
@@ -5059,10 +5147,10 @@ const z0 = B.div`
|
|
5059
5147
|
{
|
5060
5148
|
icon: C,
|
5061
5149
|
size: s === "large" ? 18 : 16,
|
5062
|
-
color: o ? l.gray_300 :
|
5150
|
+
color: o ? l.gray_300 : E ? l.info_200 : c && Object.keys(k2).includes(c) ? k2[c] : l.info_800
|
5063
5151
|
}
|
5064
5152
|
),
|
5065
|
-
/* @__PURE__ */ L.jsx("span", { children:
|
5153
|
+
/* @__PURE__ */ L.jsx("span", { children: E ? `Retrimite in ${M} secunde` : b ? i : t })
|
5066
5154
|
]
|
5067
5155
|
}
|
5068
5156
|
);
|
@@ -6222,7 +6310,7 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
6222
6310
|
imgHeight: m,
|
6223
6311
|
showButton: M = !1,
|
6224
6312
|
buttonLabel: g = "Afla mai multe",
|
6225
|
-
buttonOnClick:
|
6313
|
+
buttonOnClick: E,
|
6226
6314
|
contained: V = !0,
|
6227
6315
|
rigthIcon: b,
|
6228
6316
|
rightIconColor: R = "info_700",
|
@@ -6268,7 +6356,7 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
6268
6356
|
M && /* @__PURE__ */ L.jsx(
|
6269
6357
|
y1,
|
6270
6358
|
{
|
6271
|
-
onClick:
|
6359
|
+
onClick: E,
|
6272
6360
|
style: { width: "fit-content" },
|
6273
6361
|
intent: "info",
|
6274
6362
|
variant: "secondaryOutlined",
|
@@ -6855,14 +6943,14 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
6855
6943
|
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
6944
|
t,
|
6857
6945
|
i
|
6858
|
-
), { month: s, year: h } = o9(t, i), u = m6(o, C), p = [...new Array(r)].map((g,
|
6859
|
-
const V =
|
6946
|
+
), { month: s, year: h } = o9(t, i), u = m6(o, C), p = [...new Array(r)].map((g, E) => {
|
6947
|
+
const V = E + 1 + (u - r);
|
6860
6948
|
return [C, S1(o, 2), S1(V, 2)];
|
6861
|
-
}), m = [...new Array(a)].map((g,
|
6862
|
-
const V =
|
6949
|
+
}), m = [...new Array(a)].map((g, E) => {
|
6950
|
+
const V = E + 1;
|
6863
6951
|
return [i, S1(t, 2), S1(V, 2)];
|
6864
|
-
}), M = [...new Array(c)].map((g,
|
6865
|
-
const V =
|
6952
|
+
}), M = [...new Array(c)].map((g, E) => {
|
6953
|
+
const V = E + 1;
|
6866
6954
|
return [h, S1(s, 2), S1(V, 2)];
|
6867
6955
|
});
|
6868
6956
|
return [...p, ...m, ...M];
|
@@ -6990,60 +7078,60 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
6990
7078
|
current: t,
|
6991
7079
|
month: +t.getMonth() + 1,
|
6992
7080
|
year: t.getFullYear()
|
6993
|
-
}), [C, s] = T("date"), h = (
|
6994
|
-
const Z = X1(
|
7081
|
+
}), [C, s] = T("date"), h = (x) => {
|
7082
|
+
const Z = X1(x) ? x : /* @__PURE__ */ new Date();
|
6995
7083
|
o({
|
6996
|
-
current:
|
7084
|
+
current: x,
|
6997
7085
|
month: +Z.getMonth() + 1,
|
6998
7086
|
year: Z.getFullYear()
|
6999
7087
|
});
|
7000
7088
|
}, u = i1(() => {
|
7001
|
-
const { month:
|
7089
|
+
const { month: x, year: A } = c, Z = Object.keys(t3)[Math.max(0, Math.min(x - 1, 11))];
|
7002
7090
|
return {
|
7003
7091
|
monthname: t3[Z],
|
7004
7092
|
year: A
|
7005
7093
|
};
|
7006
|
-
}, [c]), p = (
|
7094
|
+
}, [c]), p = (x, A) => {
|
7007
7095
|
A && A.preventDefault();
|
7008
7096
|
const { current: Z } = c;
|
7009
|
-
Z && l3(
|
7010
|
-
}, m = (
|
7097
|
+
Z && l3(x, Z) || (h(x), i && i(x));
|
7098
|
+
}, m = (x, A) => {
|
7011
7099
|
A && A.preventDefault(), o({
|
7012
7100
|
current: c.current,
|
7013
7101
|
month: c.month,
|
7014
|
-
year: +
|
7102
|
+
year: +x
|
7015
7103
|
}), s("month");
|
7016
|
-
}, M = (
|
7104
|
+
}, M = (x, A) => {
|
7017
7105
|
A && A.preventDefault(), o({
|
7018
7106
|
current: c.current,
|
7019
|
-
month: +
|
7107
|
+
month: +x,
|
7020
7108
|
year: c.year
|
7021
7109
|
}), s("date");
|
7022
|
-
}, g = (
|
7023
|
-
const Z = u6[
|
7110
|
+
}, g = (x, A) => {
|
7111
|
+
const Z = u6[x].toUpperCase();
|
7024
7112
|
return /* @__PURE__ */ L.jsx(ge, { $index: A, children: Z }, Z + A);
|
7025
|
-
},
|
7026
|
-
const { current:
|
7113
|
+
}, E = () => {
|
7114
|
+
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
7115
|
return pe(y, H);
|
7028
|
-
}, V = (
|
7029
|
-
if (!/^\d{4}-\d{2}-\d{2}$/.test(
|
7030
|
-
const Z = new Date(
|
7116
|
+
}, V = (x) => {
|
7117
|
+
if (!/^\d{4}-\d{2}-\d{2}$/.test(x)) return !1;
|
7118
|
+
const Z = new Date(x), y = Z.getTime();
|
7031
7119
|
if (isNaN(y)) return !1;
|
7032
|
-
const [H, D, W] =
|
7120
|
+
const [H, D, W] = x.split("-");
|
7033
7121
|
return !(Z.getUTCFullYear() !== parseInt(H, 10) || Z.getUTCMonth() + 1 !== parseInt(D, 10) || Z.getUTCDate() !== parseInt(W, 10));
|
7034
7122
|
}, b = () => !(!n || !r || !V(n) || !V(r)), R = i1(() => {
|
7035
7123
|
if (!b()) return [];
|
7036
|
-
const
|
7037
|
-
for (let y = new Date(
|
7124
|
+
const x = new Date(n), A = new Date(r), Z = [];
|
7125
|
+
for (let y = new Date(x); y <= A; y.setUTCDate(y.getUTCDate() + 1))
|
7038
7126
|
Z.push(new Date(y));
|
7039
7127
|
return Z;
|
7040
7128
|
}, [n, r]), $ = C1(
|
7041
|
-
(
|
7042
|
-
(A) => A.getTime() ===
|
7129
|
+
(x) => R && R.length ? !R.some(
|
7130
|
+
(A) => A.getTime() === x.getTime()
|
7043
7131
|
) : !1,
|
7044
7132
|
[R]
|
7045
|
-
), v = (
|
7046
|
-
const { current: Z, month: y, year: H } = c, D = new Date(
|
7133
|
+
), v = (x, A) => {
|
7134
|
+
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
7135
|
D,
|
7048
7136
|
new Date(
|
7049
7137
|
[
|
@@ -7067,35 +7155,35 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
7067
7155
|
se(D)
|
7068
7156
|
);
|
7069
7157
|
}, _ = () => {
|
7070
|
-
const
|
7071
|
-
return [...new Array(
|
7072
|
-
}, F = (
|
7073
|
-
const { current: A, year: Z } = c, y =
|
7158
|
+
const x = M2 * 4, { year: A } = c;
|
7159
|
+
return [...new Array(x)].map((y, H) => +A + H);
|
7160
|
+
}, F = (x) => {
|
7161
|
+
const { current: A, year: Z } = c, y = x === Z, H = A && A.getFullYear() === x, D = y ? E3 : H ? g6 : g3;
|
7074
7162
|
return /* @__PURE__ */ L.jsx(
|
7075
7163
|
D,
|
7076
7164
|
{
|
7077
|
-
onClick: (W) => m(
|
7078
|
-
children:
|
7165
|
+
onClick: (W) => m(x, W),
|
7166
|
+
children: x
|
7079
7167
|
},
|
7080
|
-
|
7168
|
+
x
|
7081
7169
|
);
|
7082
|
-
}, w = (
|
7170
|
+
}, w = (x, A) => {
|
7083
7171
|
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
7172
|
return /* @__PURE__ */ L.jsx(
|
7085
7173
|
a1,
|
7086
7174
|
{
|
7087
7175
|
onClick: (c1) => M(A + 1, c1),
|
7088
|
-
children:
|
7176
|
+
children: x.slice(0, 3)
|
7089
7177
|
},
|
7090
|
-
|
7178
|
+
x
|
7091
7179
|
);
|
7092
|
-
}, k = (
|
7093
|
-
if (
|
7180
|
+
}, k = (x) => {
|
7181
|
+
if (x && x.preventDefault(), C === "date")
|
7094
7182
|
return s("year");
|
7095
7183
|
}, j = () => {
|
7096
|
-
const { month:
|
7184
|
+
const { month: x, year: A } = c;
|
7097
7185
|
if (C === "date") {
|
7098
|
-
const Z = c9(
|
7186
|
+
const Z = c9(x, A);
|
7099
7187
|
o({
|
7100
7188
|
month: Z.month,
|
7101
7189
|
year: Z.year,
|
@@ -7121,9 +7209,9 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
7121
7209
|
return;
|
7122
7210
|
}
|
7123
7211
|
}, P = () => {
|
7124
|
-
const { month:
|
7212
|
+
const { month: x, year: A } = c;
|
7125
7213
|
if (C === "date") {
|
7126
|
-
const Z = o9(
|
7214
|
+
const Z = o9(x, A);
|
7127
7215
|
o({
|
7128
7216
|
month: Z.month,
|
7129
7217
|
year: Z.year,
|
@@ -7184,7 +7272,7 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
7184
7272
|
/* @__PURE__ */ L.jsxs(me, { $view: C, children: [
|
7185
7273
|
C === "date" && /* @__PURE__ */ L.jsxs(L.Fragment, { children: [
|
7186
7274
|
/* @__PURE__ */ L.jsx(L.Fragment, { children: Object.keys(u6).map(g) }),
|
7187
|
-
/* @__PURE__ */ L.jsx(L.Fragment, { children:
|
7275
|
+
/* @__PURE__ */ L.jsx(L.Fragment, { children: E().map(v) })
|
7188
7276
|
] }),
|
7189
7277
|
C === "year" && /* @__PURE__ */ L.jsx(L.Fragment, { children: _().map(F) }),
|
7190
7278
|
C === "month" && /* @__PURE__ */ L.jsx(L.Fragment, { children: Object.values(t3).map(w) })
|
@@ -7299,7 +7387,7 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
7299
7387
|
defaultOpen: p = !1,
|
7300
7388
|
...m
|
7301
7389
|
}) => {
|
7302
|
-
const [M, g] = T(p), [
|
7390
|
+
const [M, g] = T(p), [E, V] = T("bottom"), b = Q(null), R = (v) => {
|
7303
7391
|
c(v);
|
7304
7392
|
};
|
7305
7393
|
e1(() => {
|
@@ -7371,7 +7459,7 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
7371
7459
|
color: s ? l.info_500_40 : l.info_700
|
7372
7460
|
}
|
7373
7461
|
) }),
|
7374
|
-
M && /* @__PURE__ */ L.jsx(Me, { $position:
|
7462
|
+
M && /* @__PURE__ */ L.jsx(Me, { $position: E, children: /* @__PURE__ */ L.jsx(
|
7375
7463
|
Ve,
|
7376
7464
|
{
|
7377
7465
|
limitStart: h,
|
@@ -7563,19 +7651,19 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
7563
7651
|
dropdownContentWidth: m = "100%",
|
7564
7652
|
...M
|
7565
7653
|
}) => {
|
7566
|
-
const [g,
|
7654
|
+
const [g, E] = T(u), V = Q(null), [b, R] = T(p), [$, v] = T(""), _ = C1(
|
7567
7655
|
(k) => {
|
7568
7656
|
const j = k.target.value;
|
7569
7657
|
v(j);
|
7570
7658
|
const P = p.filter(
|
7571
|
-
(
|
7659
|
+
(x) => x.label.toLowerCase().includes(j.toLowerCase())
|
7572
7660
|
);
|
7573
7661
|
R(P);
|
7574
7662
|
},
|
7575
7663
|
[p]
|
7576
7664
|
), F = C1(
|
7577
7665
|
(k) => {
|
7578
|
-
r(k.value),
|
7666
|
+
r(k.value), E(!1), v(""), R(p);
|
7579
7667
|
},
|
7580
7668
|
[p, r]
|
7581
7669
|
), w = i1(() => {
|
@@ -7584,14 +7672,14 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
7584
7672
|
}, [n, p]);
|
7585
7673
|
return e1(() => {
|
7586
7674
|
const k = (j) => {
|
7587
|
-
V.current && !V.current.contains(j.target) && (
|
7675
|
+
V.current && !V.current.contains(j.target) && (E(!1), v(""), R(p));
|
7588
7676
|
};
|
7589
7677
|
if (g)
|
7590
7678
|
return document.addEventListener("mousedown", k), () => {
|
7591
7679
|
document.removeEventListener("mousedown", k);
|
7592
7680
|
};
|
7593
7681
|
}, [V, g, p]), e1(() => {
|
7594
|
-
|
7682
|
+
E(u);
|
7595
7683
|
}, [u]), /* @__PURE__ */ L.jsxs(
|
7596
7684
|
ye,
|
7597
7685
|
{
|
@@ -7611,7 +7699,7 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
7611
7699
|
type: "text",
|
7612
7700
|
name: i,
|
7613
7701
|
value: w,
|
7614
|
-
onClick: () => !C &&
|
7702
|
+
onClick: () => !C && E(!g),
|
7615
7703
|
onChange: (k) => k.preventDefault()
|
7616
7704
|
}
|
7617
7705
|
),
|
@@ -7835,7 +7923,7 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
7835
7923
|
iconButtonOnClick: m,
|
7836
7924
|
buttonOnClick: M,
|
7837
7925
|
children: g,
|
7838
|
-
...
|
7926
|
+
...E
|
7839
7927
|
}) => {
|
7840
7928
|
let V = null;
|
7841
7929
|
return T1.toArray(g).filter(Boolean).forEach((b) => {
|
@@ -7848,7 +7936,7 @@ const ae = [0, 2, 4, 8], C6 = [14, 16, 18, 20, 24], d6 = [200, 300, 400, 500, 70
|
|
7848
7936
|
$refused: o,
|
7849
7937
|
$disabled: C,
|
7850
7938
|
$hideButton: s,
|
7851
|
-
...
|
7939
|
+
...E,
|
7852
7940
|
children: u ? /* @__PURE__ */ L.jsxs("div", { children: [
|
7853
7941
|
/* @__PURE__ */ L.jsx(O, { size: 20, icon: "rejected", color: l.gray_500 }),
|
7854
7942
|
/* @__PURE__ */ L.jsx("span", { children: p })
|
@@ -7986,7 +8074,7 @@ const Re = B.svg`
|
|
7986
8074
|
label_limit_min: o = "Pensie standard",
|
7987
8075
|
label_limit_max: C = "Obiectiv pensie"
|
7988
8076
|
}) => {
|
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),
|
8077
|
+
const s = new Intl.NumberFormat("RO"), h = Q(null), u = Q(null), p = Q(null), m = Q(null), M = Q(null), g = Q(null), E = Q(null), [V, b] = T(0), [R, $] = T(0), v = 10, _ = i1(() => {
|
7990
8078
|
const K = R / 2 - 20, q = V - v * 2, n1 = Math.min(
|
7991
8079
|
q,
|
7992
8080
|
Math.max(q * a / t, 0)
|
@@ -8046,10 +8134,10 @@ const Re = B.svg`
|
|
8046
8134
|
};
|
8047
8135
|
}, [_.line_min_x, w]), P = C1(() => {
|
8048
8136
|
const X = _.line_max_x, K = _.line_max_x;
|
8049
|
-
return g && g.current ||
|
8137
|
+
return g && g.current || E && E.current ? {
|
8050
8138
|
label_limit_max_x: w(g, X, "end"),
|
8051
8139
|
sublabel_limit_max_x: w(
|
8052
|
-
|
8140
|
+
E,
|
8053
8141
|
K,
|
8054
8142
|
"end"
|
8055
8143
|
)
|
@@ -8068,7 +8156,7 @@ const Re = B.svg`
|
|
8068
8156
|
return K(), window.addEventListener("resize", K), () => window.removeEventListener("resize", K);
|
8069
8157
|
}
|
8070
8158
|
}, [h]);
|
8071
|
-
const [
|
8159
|
+
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
8160
|
return e1(() => {
|
8073
8161
|
const X = F.value;
|
8074
8162
|
A(k(X).label_top_x), y(k(X).sublabel_top_x);
|
@@ -8119,7 +8207,7 @@ const Re = B.svg`
|
|
8119
8207
|
ref: u,
|
8120
8208
|
className: "label_top",
|
8121
8209
|
textAnchor: "middle",
|
8122
|
-
x
|
8210
|
+
x,
|
8123
8211
|
y: 15,
|
8124
8212
|
children: c
|
8125
8213
|
}
|
@@ -8193,7 +8281,7 @@ const Re = B.svg`
|
|
8193
8281
|
/* @__PURE__ */ L.jsx(
|
8194
8282
|
"text",
|
8195
8283
|
{
|
8196
|
-
ref:
|
8284
|
+
ref: E,
|
8197
8285
|
className: "sublabel_bottom",
|
8198
8286
|
textAnchor: "start",
|
8199
8287
|
x: c1,
|
@@ -9406,14 +9494,14 @@ const We = B.svg`
|
|
9406
9494
|
col2Value: m = 25e3,
|
9407
9495
|
col3Value: M = 15e3,
|
9408
9496
|
col4Value: g = 1e4,
|
9409
|
-
col1Color:
|
9497
|
+
col1Color: E = "success_500",
|
9410
9498
|
col2Color: V = "info_500",
|
9411
9499
|
col3Color: b = "warning_500",
|
9412
9500
|
col4Color: R = "danger_500",
|
9413
9501
|
currency: $ = "RON",
|
9414
9502
|
dev: v = !1
|
9415
9503
|
}) => {
|
9416
|
-
const _ = new Intl.NumberFormat("RO"), F = Q(null), [w, k] = T(0), [j, P] = T(0),
|
9504
|
+
const _ = new Intl.NumberFormat("RO"), F = Q(null), [w, k] = T(0), [j, P] = T(0), x = i1(() => {
|
9417
9505
|
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
9506
|
const t1 = Math.abs(Z / (o - s) * (c1 - C)), X = Math.abs(Z / (o - s) * (C - c1)), K = c1 > C ? t1 : X;
|
9419
9507
|
return {
|
@@ -9488,7 +9576,7 @@ const We = B.svg`
|
|
9488
9576
|
height: "100%",
|
9489
9577
|
viewBox: `0 0 ${w} ${j}`,
|
9490
9578
|
xmlns: "http://www.w3.org/2000/svg",
|
9491
|
-
$col1Color:
|
9579
|
+
$col1Color: E,
|
9492
9580
|
$col2Color: V,
|
9493
9581
|
$col3Color: b,
|
9494
9582
|
$col4Color: R,
|
@@ -9498,9 +9586,9 @@ const We = B.svg`
|
|
9498
9586
|
"rect",
|
9499
9587
|
{
|
9500
9588
|
className: "dev-graph",
|
9501
|
-
width:
|
9502
|
-
height:
|
9503
|
-
x:
|
9589
|
+
width: x.graphW,
|
9590
|
+
height: x.graphH,
|
9591
|
+
x: x.paddingLeft,
|
9504
9592
|
y: n
|
9505
9593
|
}
|
9506
9594
|
),
|
@@ -9509,8 +9597,8 @@ const We = B.svg`
|
|
9509
9597
|
{
|
9510
9598
|
className: "col_1_text",
|
9511
9599
|
textAnchor: "middle",
|
9512
|
-
x:
|
9513
|
-
y:
|
9600
|
+
x: x.col_1.x + x.col_1.w / 2,
|
9601
|
+
y: x.col_1.text_y,
|
9514
9602
|
children: _.format(p) + ` ${$}`
|
9515
9603
|
}
|
9516
9604
|
),
|
@@ -9518,17 +9606,17 @@ const We = B.svg`
|
|
9518
9606
|
"rect",
|
9519
9607
|
{
|
9520
9608
|
className: "col_1_rect",
|
9521
|
-
width:
|
9522
|
-
height:
|
9523
|
-
x:
|
9524
|
-
y:
|
9609
|
+
width: x.col_1.w,
|
9610
|
+
height: x.col_1.h,
|
9611
|
+
x: x.col_1.x,
|
9612
|
+
y: x.col_1.y
|
9525
9613
|
}
|
9526
9614
|
),
|
9527
9615
|
/* @__PURE__ */ L.jsx(
|
9528
9616
|
"line",
|
9529
9617
|
{
|
9530
|
-
x1:
|
9531
|
-
x2:
|
9618
|
+
x1: x.col_1.x,
|
9619
|
+
x2: x.col_1.x + x.col_1.w,
|
9532
9620
|
y1: j - 27,
|
9533
9621
|
y2: j - 27,
|
9534
9622
|
strokeWidth: 1,
|
@@ -9540,7 +9628,7 @@ const We = B.svg`
|
|
9540
9628
|
{
|
9541
9629
|
className: "sub_favorabil",
|
9542
9630
|
textAnchor: "middle",
|
9543
|
-
x:
|
9631
|
+
x: x.col_1.x + x.col_1.w / 2,
|
9544
9632
|
y: j - 5,
|
9545
9633
|
children: "Favorabil"
|
9546
9634
|
}
|
@@ -9550,8 +9638,8 @@ const We = B.svg`
|
|
9550
9638
|
{
|
9551
9639
|
className: "col_2_text",
|
9552
9640
|
textAnchor: "middle",
|
9553
|
-
x:
|
9554
|
-
y:
|
9641
|
+
x: x.col_2.x + x.col_2.w / 2,
|
9642
|
+
y: x.col_2.text_y,
|
9555
9643
|
children: _.format(m) + ` ${$}`
|
9556
9644
|
}
|
9557
9645
|
),
|
@@ -9559,17 +9647,17 @@ const We = B.svg`
|
|
9559
9647
|
"rect",
|
9560
9648
|
{
|
9561
9649
|
className: "col_2_rect",
|
9562
|
-
width:
|
9563
|
-
height:
|
9564
|
-
x:
|
9565
|
-
y:
|
9650
|
+
width: x.col_2.w,
|
9651
|
+
height: x.col_2.h,
|
9652
|
+
x: x.col_2.x,
|
9653
|
+
y: x.col_2.y
|
9566
9654
|
}
|
9567
9655
|
),
|
9568
9656
|
/* @__PURE__ */ L.jsx(
|
9569
9657
|
"line",
|
9570
9658
|
{
|
9571
|
-
x1:
|
9572
|
-
x2:
|
9659
|
+
x1: x.col_2.x,
|
9660
|
+
x2: x.col_2.x + x.col_2.w,
|
9573
9661
|
y1: j - 27,
|
9574
9662
|
y2: j - 27,
|
9575
9663
|
strokeWidth: 1,
|
@@ -9581,7 +9669,7 @@ const We = B.svg`
|
|
9581
9669
|
{
|
9582
9670
|
className: "sub_moderat",
|
9583
9671
|
textAnchor: "middle",
|
9584
|
-
x:
|
9672
|
+
x: x.col_2.x + x.col_2.w / 2,
|
9585
9673
|
y: j - 5,
|
9586
9674
|
children: "Moderat"
|
9587
9675
|
}
|
@@ -9591,8 +9679,8 @@ const We = B.svg`
|
|
9591
9679
|
{
|
9592
9680
|
className: "col_3_text",
|
9593
9681
|
textAnchor: "middle",
|
9594
|
-
x:
|
9595
|
-
y:
|
9682
|
+
x: x.col_3.x + x.col_3.w / 2,
|
9683
|
+
y: x.col_3.text_y,
|
9596
9684
|
children: _.format(M) + ` ${$}`
|
9597
9685
|
}
|
9598
9686
|
),
|
@@ -9600,17 +9688,17 @@ const We = B.svg`
|
|
9600
9688
|
"rect",
|
9601
9689
|
{
|
9602
9690
|
className: "col_3_rect",
|
9603
|
-
width:
|
9604
|
-
height:
|
9605
|
-
x:
|
9606
|
-
y:
|
9691
|
+
width: x.col_3.w,
|
9692
|
+
height: x.col_3.h,
|
9693
|
+
x: x.col_3.x,
|
9694
|
+
y: x.col_3.y
|
9607
9695
|
}
|
9608
9696
|
),
|
9609
9697
|
/* @__PURE__ */ L.jsx(
|
9610
9698
|
"line",
|
9611
9699
|
{
|
9612
|
-
x1:
|
9613
|
-
x2:
|
9700
|
+
x1: x.col_3.x,
|
9701
|
+
x2: x.col_3.x + x.col_3.w,
|
9614
9702
|
y1: j - 27,
|
9615
9703
|
y2: j - 27,
|
9616
9704
|
strokeWidth: 1,
|
@@ -9622,7 +9710,7 @@ const We = B.svg`
|
|
9622
9710
|
{
|
9623
9711
|
className: "sub_nefavorabil",
|
9624
9712
|
textAnchor: "middle",
|
9625
|
-
x:
|
9713
|
+
x: x.col_3.x + x.col_3.w / 2,
|
9626
9714
|
y: j - 5,
|
9627
9715
|
children: "Nefavorabil"
|
9628
9716
|
}
|
@@ -9632,8 +9720,8 @@ const We = B.svg`
|
|
9632
9720
|
{
|
9633
9721
|
className: "col_4_text",
|
9634
9722
|
textAnchor: "middle",
|
9635
|
-
x:
|
9636
|
-
y:
|
9723
|
+
x: x.col_4.x + x.col_4.w / 2,
|
9724
|
+
y: x.col_4.text_y,
|
9637
9725
|
children: _.format(g) + ` ${$}`
|
9638
9726
|
}
|
9639
9727
|
),
|
@@ -9641,17 +9729,17 @@ const We = B.svg`
|
|
9641
9729
|
"rect",
|
9642
9730
|
{
|
9643
9731
|
className: "col_4_rect",
|
9644
|
-
width:
|
9645
|
-
height:
|
9646
|
-
x:
|
9647
|
-
y:
|
9732
|
+
width: x.col_4.w,
|
9733
|
+
height: x.col_4.h,
|
9734
|
+
x: x.col_4.x,
|
9735
|
+
y: x.col_4.y
|
9648
9736
|
}
|
9649
9737
|
),
|
9650
9738
|
/* @__PURE__ */ L.jsx(
|
9651
9739
|
"line",
|
9652
9740
|
{
|
9653
|
-
x1:
|
9654
|
-
x2:
|
9741
|
+
x1: x.col_4.x,
|
9742
|
+
x2: x.col_4.x + x.col_4.w,
|
9655
9743
|
y1: j - 27,
|
9656
9744
|
y2: j - 27,
|
9657
9745
|
strokeWidth: 1,
|
@@ -9664,7 +9752,7 @@ const We = B.svg`
|
|
9664
9752
|
className: "sub_criza",
|
9665
9753
|
style: { fontSize: "14px" },
|
9666
9754
|
textAnchor: "middle",
|
9667
|
-
x:
|
9755
|
+
x: x.col_4.x + x.col_4.w / 2,
|
9668
9756
|
y: j - 5,
|
9669
9757
|
children: "Criza"
|
9670
9758
|
}
|
@@ -9675,7 +9763,7 @@ const We = B.svg`
|
|
9675
9763
|
className: "textLeft",
|
9676
9764
|
textAnchor: "start",
|
9677
9765
|
x: 0,
|
9678
|
-
y:
|
9766
|
+
y: x.lineY - 26,
|
9679
9767
|
children: h
|
9680
9768
|
}
|
9681
9769
|
),
|
@@ -9685,7 +9773,7 @@ const We = B.svg`
|
|
9685
9773
|
className: "textValueLeft",
|
9686
9774
|
textAnchor: "start",
|
9687
9775
|
x: 0,
|
9688
|
-
y:
|
9776
|
+
y: x.lineY - 6,
|
9689
9777
|
children: _.format(u) + ` ${$}`
|
9690
9778
|
}
|
9691
9779
|
),
|
@@ -9694,8 +9782,8 @@ const We = B.svg`
|
|
9694
9782
|
{
|
9695
9783
|
x1: 0,
|
9696
9784
|
x2: w,
|
9697
|
-
y1:
|
9698
|
-
y2:
|
9785
|
+
y1: x.lineY,
|
9786
|
+
y2: x.lineY,
|
9699
9787
|
strokeWidth: 2,
|
9700
9788
|
stroke: l.gray_950
|
9701
9789
|
}
|
@@ -9783,17 +9871,17 @@ const We = B.svg`
|
|
9783
9871
|
currency: r = "RON",
|
9784
9872
|
height: c = 284
|
9785
9873
|
}) => {
|
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,
|
9874
|
+
const o = new Intl.NumberFormat("RO"), C = Q(null), s = Q(null), h = Q(null), u = Q(null), p = Q(null), [m, M] = T(0), [g, E] = T(0), V = i1(() => {
|
9787
9875
|
const _ = g / 2 - 12;
|
9788
|
-
let F, w, k, j, P,
|
9876
|
+
let F, w, k, j, P, x, A;
|
9789
9877
|
if (i > t) {
|
9790
9878
|
w = m - 1;
|
9791
9879
|
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,
|
9880
|
+
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
9881
|
} else {
|
9794
9882
|
F = m - 1;
|
9795
9883
|
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,
|
9884
|
+
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
9885
|
}
|
9798
9886
|
return j = l.success_400, {
|
9799
9887
|
bar_h: 24,
|
@@ -9802,7 +9890,7 @@ const We = B.svg`
|
|
9802
9890
|
limit_top_x: F,
|
9803
9891
|
limit_bottom_x: w,
|
9804
9892
|
dynamic_bar_x: P,
|
9805
|
-
dynamic_bar_w:
|
9893
|
+
dynamic_bar_w: x,
|
9806
9894
|
dynamic_fill_color: A,
|
9807
9895
|
secondary_fill_color: j
|
9808
9896
|
};
|
@@ -9873,7 +9961,7 @@ const We = B.svg`
|
|
9873
9961
|
const v = () => {
|
9874
9962
|
var F;
|
9875
9963
|
const _ = (F = C == null ? void 0 : C.current) == null ? void 0 : F.clientWidth;
|
9876
|
-
M(+_),
|
9964
|
+
M(+_), E(c);
|
9877
9965
|
};
|
9878
9966
|
return v(), window.addEventListener("resize", v), () => window.removeEventListener("resize", v);
|
9879
9967
|
}
|
@@ -9999,7 +10087,7 @@ const We = B.svg`
|
|
9999
10087
|
const h = new Intl.NumberFormat("RO", {
|
10000
10088
|
minimumFractionDigits: c,
|
10001
10089
|
maximumFractionDigits: c
|
10002
|
-
}), u = Q(null), [p, m] = T(0), [M, g] = T(0),
|
10090
|
+
}), u = Q(null), [p, m] = T(0), [M, g] = T(0), E = i1(() => {
|
10003
10091
|
const R = M / 2 - 12, $ = Math.min(p, Math.max(p * a / t, 0)), v = a * p / t - 1, _ = Math.min(p, Math.max(v, 0.5)), F = i * p / t - 1, w = Math.min(p, Math.max(F, 1));
|
10004
10092
|
return {
|
10005
10093
|
bar_h: 24,
|
@@ -10009,7 +10097,7 @@ const We = B.svg`
|
|
10009
10097
|
line_max_x: w
|
10010
10098
|
};
|
10011
10099
|
}, [p, M, i, a, t]), V = i1(() => {
|
10012
|
-
const R = n * p / t -
|
10100
|
+
const R = n * p / t - E.secondary_bar_w, $ = p - E.secondary_bar_w, v = n >= i ? l.success_200 : l.danger_200, _ = n >= i ? l.success_500 : l.danger_500, F = n >= i ? l.success_800 : l.danger_800;
|
10013
10101
|
return {
|
10014
10102
|
value: Math.min($, Math.max(0, R)),
|
10015
10103
|
fill_rect_primary: v,
|
@@ -10036,14 +10124,14 @@ const We = B.svg`
|
|
10036
10124
|
xmlns: "http://www.w3.org/2000/svg",
|
10037
10125
|
$selected: s,
|
10038
10126
|
children: [
|
10039
|
-
/* @__PURE__ */ L.jsx("rect", { x: 0, y:
|
10127
|
+
/* @__PURE__ */ L.jsx("rect", { x: 0, y: E.bar_y, height: E.bar_h, width: p }),
|
10040
10128
|
/* @__PURE__ */ L.jsx(
|
10041
10129
|
"rect",
|
10042
10130
|
{
|
10043
10131
|
x: 0,
|
10044
|
-
y:
|
10045
|
-
height:
|
10046
|
-
width:
|
10132
|
+
y: E.bar_y,
|
10133
|
+
height: E.bar_h,
|
10134
|
+
width: E.secondary_bar_w,
|
10047
10135
|
fill: V.fill_rect_primary
|
10048
10136
|
}
|
10049
10137
|
),
|
@@ -10053,7 +10141,7 @@ const We = B.svg`
|
|
10053
10141
|
className: "limitMinLabel",
|
10054
10142
|
textAnchor: "start",
|
10055
10143
|
x: 10,
|
10056
|
-
y:
|
10144
|
+
y: E.bar_y + E.bar_h / 1.5,
|
10057
10145
|
fill: V.fill_value_text,
|
10058
10146
|
children: h.format(r) + " " + o
|
10059
10147
|
}
|
@@ -10061,9 +10149,9 @@ const We = B.svg`
|
|
10061
10149
|
/* @__PURE__ */ L.jsx(
|
10062
10150
|
"rect",
|
10063
10151
|
{
|
10064
|
-
x:
|
10065
|
-
y:
|
10066
|
-
height:
|
10152
|
+
x: E.line_min_x,
|
10153
|
+
y: E.bar_y,
|
10154
|
+
height: E.bar_h,
|
10067
10155
|
width: V.value,
|
10068
10156
|
fill: V.fill_rect_secondary
|
10069
10157
|
}
|
@@ -10071,8 +10159,8 @@ const We = B.svg`
|
|
10071
10159
|
/* @__PURE__ */ L.jsx(
|
10072
10160
|
"line",
|
10073
10161
|
{
|
10074
|
-
x1:
|
10075
|
-
x2:
|
10162
|
+
x1: E.line_min_x,
|
10163
|
+
x2: E.line_min_x,
|
10076
10164
|
y1: 0,
|
10077
10165
|
y2: M,
|
10078
10166
|
strokeWidth: 2,
|
@@ -10082,8 +10170,8 @@ const We = B.svg`
|
|
10082
10170
|
/* @__PURE__ */ L.jsx(
|
10083
10171
|
"line",
|
10084
10172
|
{
|
10085
|
-
x1:
|
10086
|
-
x2:
|
10173
|
+
x1: E.line_max_x,
|
10174
|
+
x2: E.line_max_x,
|
10087
10175
|
y1: 0,
|
10088
10176
|
y2: M,
|
10089
10177
|
strokeWidth: 2,
|
@@ -10160,7 +10248,7 @@ const We = B.svg`
|
|
10160
10248
|
textBottomSecondary: m = 24,
|
10161
10249
|
col1Value: M = 40015,
|
10162
10250
|
col2Value: g = 32721,
|
10163
|
-
col3Value:
|
10251
|
+
col3Value: E = 25806,
|
10164
10252
|
col4Value: V = 24806,
|
10165
10253
|
col1Color: b = "success_500",
|
10166
10254
|
col2Color: R = "info_500",
|
@@ -10169,8 +10257,8 @@ const We = B.svg`
|
|
10169
10257
|
currency: _ = "RON",
|
10170
10258
|
dev: F = !1
|
10171
10259
|
}) => {
|
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(
|
10260
|
+
const w = new Intl.NumberFormat("RO"), k = Q(null), [j, P] = T(0), [x, A] = T(0), Z = Q(null), y = i1(() => {
|
10261
|
+
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
10262
|
const q = Math.abs(D / o * K), n1 = Math.abs(D + n - q);
|
10175
10263
|
return {
|
10176
10264
|
h: q,
|
@@ -10190,10 +10278,10 @@ const We = B.svg`
|
|
10190
10278
|
text_y: +N(g).y - 12
|
10191
10279
|
}, t1 = {
|
10192
10280
|
x: i + G * 2 + c * 2,
|
10193
|
-
y: N(
|
10281
|
+
y: N(E).y,
|
10194
10282
|
w: G,
|
10195
|
-
h: N(
|
10196
|
-
text_y: +N(
|
10283
|
+
h: N(E).h,
|
10284
|
+
text_y: +N(E).y - 12
|
10197
10285
|
}, X = {
|
10198
10286
|
x: i + G * 3 + c * 3,
|
10199
10287
|
y: N(V).y,
|
@@ -10213,7 +10301,7 @@ const We = B.svg`
|
|
10213
10301
|
};
|
10214
10302
|
}, [
|
10215
10303
|
j,
|
10216
|
-
|
10304
|
+
x,
|
10217
10305
|
s,
|
10218
10306
|
o,
|
10219
10307
|
C,
|
@@ -10224,7 +10312,7 @@ const We = B.svg`
|
|
10224
10312
|
r,
|
10225
10313
|
M,
|
10226
10314
|
g,
|
10227
|
-
|
10315
|
+
E,
|
10228
10316
|
V,
|
10229
10317
|
Z
|
10230
10318
|
]);
|
@@ -10243,7 +10331,7 @@ const We = B.svg`
|
|
10243
10331
|
ref: k,
|
10244
10332
|
width: "100%",
|
10245
10333
|
height: "100%",
|
10246
|
-
viewBox: `0 0 ${j} ${
|
10334
|
+
viewBox: `0 0 ${j} ${x}`,
|
10247
10335
|
xmlns: "http://www.w3.org/2000/svg",
|
10248
10336
|
$col1Color: b,
|
10249
10337
|
$col2Color: R,
|
@@ -10286,8 +10374,8 @@ const We = B.svg`
|
|
10286
10374
|
{
|
10287
10375
|
x1: y.col_1.x,
|
10288
10376
|
x2: y.col_1.x + y.col_1.w,
|
10289
|
-
y1:
|
10290
|
-
y2:
|
10377
|
+
y1: x - 27,
|
10378
|
+
y2: x - 27,
|
10291
10379
|
strokeWidth: 1,
|
10292
10380
|
stroke: "#D5D5D6"
|
10293
10381
|
}
|
@@ -10298,7 +10386,7 @@ const We = B.svg`
|
|
10298
10386
|
className: "sub_favorabil",
|
10299
10387
|
textAnchor: "middle",
|
10300
10388
|
x: y.col_1.x + y.col_1.w / 2,
|
10301
|
-
y:
|
10389
|
+
y: x - 5,
|
10302
10390
|
children: "Favorabil"
|
10303
10391
|
}
|
10304
10392
|
),
|
@@ -10327,8 +10415,8 @@ const We = B.svg`
|
|
10327
10415
|
{
|
10328
10416
|
x1: y.col_2.x,
|
10329
10417
|
x2: y.col_2.x + y.col_2.w,
|
10330
|
-
y1:
|
10331
|
-
y2:
|
10418
|
+
y1: x - 27,
|
10419
|
+
y2: x - 27,
|
10332
10420
|
strokeWidth: 1,
|
10333
10421
|
stroke: "#D5D5D6"
|
10334
10422
|
}
|
@@ -10339,7 +10427,7 @@ const We = B.svg`
|
|
10339
10427
|
className: "sub_moderat",
|
10340
10428
|
textAnchor: "middle",
|
10341
10429
|
x: y.col_2.x + y.col_2.w / 2,
|
10342
|
-
y:
|
10430
|
+
y: x - 5,
|
10343
10431
|
children: "Moderat"
|
10344
10432
|
}
|
10345
10433
|
),
|
@@ -10350,7 +10438,7 @@ const We = B.svg`
|
|
10350
10438
|
textAnchor: "middle",
|
10351
10439
|
x: y.col_3.x + y.col_3.w / 2,
|
10352
10440
|
y: 16,
|
10353
|
-
children: w.format(
|
10441
|
+
children: w.format(E) + ` ${_}`
|
10354
10442
|
}
|
10355
10443
|
),
|
10356
10444
|
/* @__PURE__ */ L.jsx(
|
@@ -10368,8 +10456,8 @@ const We = B.svg`
|
|
10368
10456
|
{
|
10369
10457
|
x1: y.col_3.x,
|
10370
10458
|
x2: y.col_3.x + y.col_3.w,
|
10371
|
-
y1:
|
10372
|
-
y2:
|
10459
|
+
y1: x - 27,
|
10460
|
+
y2: x - 27,
|
10373
10461
|
strokeWidth: 1,
|
10374
10462
|
stroke: "#D5D5D6"
|
10375
10463
|
}
|
@@ -10380,7 +10468,7 @@ const We = B.svg`
|
|
10380
10468
|
className: "sub_nefavorabil",
|
10381
10469
|
textAnchor: "middle",
|
10382
10470
|
x: y.col_3.x + y.col_3.w / 2,
|
10383
|
-
y:
|
10471
|
+
y: x - 5,
|
10384
10472
|
children: "Nefavorabil"
|
10385
10473
|
}
|
10386
10474
|
),
|
@@ -10409,8 +10497,8 @@ const We = B.svg`
|
|
10409
10497
|
{
|
10410
10498
|
x1: y.col_4.x,
|
10411
10499
|
x2: y.col_4.x + y.col_4.w,
|
10412
|
-
y1:
|
10413
|
-
y2:
|
10500
|
+
y1: x - 27,
|
10501
|
+
y2: x - 27,
|
10414
10502
|
strokeWidth: 1,
|
10415
10503
|
stroke: "#D5D5D6"
|
10416
10504
|
}
|
@@ -10422,7 +10510,7 @@ const We = B.svg`
|
|
10422
10510
|
style: { fontSize: "14px" },
|
10423
10511
|
textAnchor: "middle",
|
10424
10512
|
x: y.col_4.x + y.col_4.w / 2,
|
10425
|
-
y:
|
10513
|
+
y: x - 5,
|
10426
10514
|
children: "Criza"
|
10427
10515
|
}
|
10428
10516
|
),
|
@@ -10561,20 +10649,20 @@ const We = B.svg`
|
|
10561
10649
|
}) => {
|
10562
10650
|
var g;
|
10563
10651
|
const u = Q(null), [p, m] = T(C), M = C1(
|
10564
|
-
(
|
10652
|
+
(E) => {
|
10565
10653
|
if (r) return;
|
10566
|
-
const { id: V } =
|
10654
|
+
const { id: V } = E;
|
10567
10655
|
n(V), m(!1);
|
10568
10656
|
},
|
10569
10657
|
[n, r]
|
10570
10658
|
);
|
10571
10659
|
return e1(() => {
|
10572
|
-
const
|
10660
|
+
const E = (V) => {
|
10573
10661
|
u.current && !u.current.contains(V.target) && m(!1);
|
10574
10662
|
};
|
10575
10663
|
if (o && o(p), p)
|
10576
|
-
return document.addEventListener("mousedown",
|
10577
|
-
document.removeEventListener("mousedown",
|
10664
|
+
return document.addEventListener("mousedown", E), () => {
|
10665
|
+
document.removeEventListener("mousedown", E);
|
10578
10666
|
};
|
10579
10667
|
}, [u, p, o]), e1(() => {
|
10580
10668
|
!a && !c && n(i[0].id);
|
@@ -10593,14 +10681,14 @@ const We = B.svg`
|
|
10593
10681
|
children: /* @__PURE__ */ L.jsxs("button", { disabled: r, onClick: () => m(!p), children: [
|
10594
10682
|
/* @__PURE__ */ L.jsxs("div", { children: [
|
10595
10683
|
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((
|
10684
|
+
/* @__PURE__ */ L.jsx("div", { className: "Kj9pL4mN", children: p ? i && i.length ? i.map((E, V) => /* @__PURE__ */ L.jsx(
|
10597
10685
|
"div",
|
10598
10686
|
{
|
10599
|
-
onClick: () => r ? null : M(
|
10600
|
-
children:
|
10687
|
+
onClick: () => r ? null : M(E),
|
10688
|
+
children: E.content
|
10601
10689
|
},
|
10602
10690
|
V
|
10603
|
-
)) : /* @__PURE__ */ L.jsx(L.Fragment, {}) : !a && c ? c : (g = i.find((
|
10691
|
+
)) : /* @__PURE__ */ L.jsx(L.Fragment, {}) : !a && c ? c : (g = i.find((E) => E.id === a)) == null ? void 0 : g.content }),
|
10604
10692
|
s && p && /* @__PURE__ */ L.jsx("div", { className: "x8Kp9Lm2", children: /* @__PURE__ */ L.jsx(O, { icon: "menu-down", size: 20, color: l.info_700 }) })
|
10605
10693
|
] }),
|
10606
10694
|
/* @__PURE__ */ L.jsx("div", { children: /* @__PURE__ */ L.jsx("div", { children: /* @__PURE__ */ L.jsx(
|
@@ -10677,7 +10765,7 @@ const We = B.svg`
|
|
10677
10765
|
col2Text: m = "5 ani",
|
10678
10766
|
col3Text: M = "10 ani",
|
10679
10767
|
col1Value: g = 15e3,
|
10680
|
-
col2Value:
|
10768
|
+
col2Value: E = 13e3,
|
10681
10769
|
col3Value: V = 11e3,
|
10682
10770
|
col1Color: b = "danger_500",
|
10683
10771
|
col2Color: R = "danger_500",
|
@@ -10685,7 +10773,7 @@ const We = B.svg`
|
|
10685
10773
|
currency: v = "RON",
|
10686
10774
|
dev: _ = !1
|
10687
10775
|
}) => {
|
10688
|
-
const F = new Intl.NumberFormat("RO"), w = Q(null), [k, j] = T(0), [P,
|
10776
|
+
const F = new Intl.NumberFormat("RO"), w = Q(null), [k, j] = T(0), [P, x] = T(0), A = Q(null), Z = i1(() => {
|
10689
10777
|
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
10778
|
const X = Math.abs(H / (o - s) * (t1 - C)), K = Math.abs(H / (o - s) * (C - t1)), q = t1 > C ? X : K;
|
10691
10779
|
return {
|
@@ -10700,10 +10788,10 @@ const We = B.svg`
|
|
10700
10788
|
text_y: g >= C ? +G(g).y - 12 : +G(g).y + +G(g).h + 12 + 10
|
10701
10789
|
}, a1 = {
|
10702
10790
|
x: i + W + c,
|
10703
|
-
y: G(
|
10791
|
+
y: G(E).y,
|
10704
10792
|
w: W,
|
10705
|
-
h: G(
|
10706
|
-
text_y:
|
10793
|
+
h: G(E).h,
|
10794
|
+
text_y: E >= C ? +G(E).y - 12 : +G(E).y + +G(E).h + 12 + 10
|
10707
10795
|
}, c1 = {
|
10708
10796
|
x: i + W * 2 + c * 2,
|
10709
10797
|
y: G(V).y,
|
@@ -10732,7 +10820,7 @@ const We = B.svg`
|
|
10732
10820
|
n,
|
10733
10821
|
r,
|
10734
10822
|
g,
|
10735
|
-
|
10823
|
+
E,
|
10736
10824
|
V,
|
10737
10825
|
A
|
10738
10826
|
]);
|
@@ -10741,7 +10829,7 @@ const We = B.svg`
|
|
10741
10829
|
const y = () => {
|
10742
10830
|
var D;
|
10743
10831
|
const H = (D = w == null ? void 0 : w.current) == null ? void 0 : D.clientWidth;
|
10744
|
-
j(+H),
|
10832
|
+
j(+H), x(t);
|
10745
10833
|
};
|
10746
10834
|
return y(), window.addEventListener("resize", y), () => window.removeEventListener("resize", y);
|
10747
10835
|
}
|
@@ -10816,7 +10904,7 @@ const We = B.svg`
|
|
10816
10904
|
textAnchor: "middle",
|
10817
10905
|
x: Z.col_2.x + Z.col_2.w / 2,
|
10818
10906
|
y: Z.col_2.text_y,
|
10819
|
-
children: F.format(
|
10907
|
+
children: F.format(E) + ` ${v}`
|
10820
10908
|
}
|
10821
10909
|
),
|
10822
10910
|
/* @__PURE__ */ L.jsx(
|
@@ -11033,18 +11121,18 @@ const We = B.svg`
|
|
11033
11121
|
marginTop: k ? "auto" : `${c}px`,
|
11034
11122
|
marginBottom: k ? `${c}px` : "auto"
|
11035
11123
|
};
|
11036
|
-
M((
|
11037
|
-
}, []),
|
11124
|
+
M((x) => JSON.stringify(x) === JSON.stringify(j) ? x : j);
|
11125
|
+
}, []), E = C1(() => {
|
11038
11126
|
const R = p == null ? void 0 : p.current, $ = C == null ? void 0 : C.current;
|
11039
11127
|
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,
|
11128
|
+
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
11129
|
top: P ? `${w - v.height - 10}px` : `${w + _.height}px`,
|
11042
11130
|
left: `${F}px`,
|
11043
11131
|
marginTop: P ? "auto" : "10px",
|
11044
11132
|
marginBottom: P ? "10px" : "auto"
|
11045
11133
|
};
|
11046
|
-
M((A) => JSON.stringify(A) === JSON.stringify(
|
11047
|
-
}, []), V = C1(() => o ?
|
11134
|
+
M((A) => JSON.stringify(A) === JSON.stringify(x) ? A : x);
|
11135
|
+
}, []), V = C1(() => o ? E() : g(), [o, g, E]);
|
11048
11136
|
e1(() => (V(), window.addEventListener("resize", V), window.addEventListener("scroll", V, !0), () => {
|
11049
11137
|
window.removeEventListener("resize", V), window.removeEventListener("scroll", V, !0);
|
11050
11138
|
}), [V]);
|
@@ -11489,6 +11577,7 @@ const ct = B.div`
|
|
11489
11577
|
align-items: center;
|
11490
11578
|
padding: 0px 16px;
|
11491
11579
|
background-color: ${({ $refused: i }) => i ? l.gray_60 : l.gray_30};
|
11580
|
+
|
11492
11581
|
& > div {
|
11493
11582
|
display: flex;
|
11494
11583
|
align-items: flex-start;
|
@@ -11571,9 +11660,9 @@ const ct = B.div`
|
|
11571
11660
|
children: M,
|
11572
11661
|
...g
|
11573
11662
|
}) => {
|
11574
|
-
let
|
11663
|
+
let E = null;
|
11575
11664
|
return T1.toArray(M).filter(Boolean).forEach((V) => {
|
11576
|
-
V.type === u9 && (
|
11665
|
+
V.type === u9 && (E = V);
|
11577
11666
|
}), /* @__PURE__ */ L.jsx(
|
11578
11667
|
ct,
|
11579
11668
|
{
|
@@ -11644,7 +11733,7 @@ const ct = B.div`
|
|
11644
11733
|
] }) })
|
11645
11734
|
] })
|
11646
11735
|
] }),
|
11647
|
-
/* @__PURE__ */ L.jsx("div", { children:
|
11736
|
+
/* @__PURE__ */ L.jsx("div", { children: E }),
|
11648
11737
|
!s && /* @__PURE__ */ L.jsxs(
|
11649
11738
|
"button",
|
11650
11739
|
{
|
@@ -12934,7 +13023,7 @@ const Ct = B.button`
|
|
12934
13023
|
disabled: C = !1,
|
12935
13024
|
...s
|
12936
13025
|
}) => {
|
12937
|
-
const h = Q(null), [u, p] = T(!1), [m, M] = T(""), [g,
|
13026
|
+
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
13027
|
var H;
|
12939
13028
|
return !V || !g ? [] : ((H = i3.find(
|
12940
13029
|
(D) => D.title.toLowerCase() === V.toLowerCase()
|
@@ -12944,7 +13033,7 @@ const Ct = B.button`
|
|
12944
13033
|
return H ? (g ? j : i3).filter(
|
12945
13034
|
(D) => D.title.toLowerCase().includes(H)
|
12946
13035
|
) : g ? j : i3;
|
12947
|
-
}, [m, g, j]),
|
13036
|
+
}, [m, g, j]), x = C1(
|
12948
13037
|
(H) => {
|
12949
13038
|
M(H.target.value);
|
12950
13039
|
},
|
@@ -12959,24 +13048,24 @@ const Ct = B.button`
|
|
12959
13048
|
},
|
12960
13049
|
[g]
|
12961
13050
|
), Z = C1(() => {
|
12962
|
-
k.current = !0,
|
13051
|
+
k.current = !0, E(!1), M(""), $(""), _("");
|
12963
13052
|
}, []), y = C1(() => {
|
12964
13053
|
if (k.current = !0, !g && V) {
|
12965
|
-
|
13054
|
+
E(!0), M("");
|
12966
13055
|
return;
|
12967
13056
|
}
|
12968
13057
|
if (!R) return;
|
12969
13058
|
const H = `${V} - ${R}`;
|
12970
|
-
|
13059
|
+
E(!0), p(!1), w(H), r && r({ judet: V, localitate: R, clasificare: v });
|
12971
13060
|
}, [g, V, R, v, r]);
|
12972
13061
|
return e1(() => {
|
12973
13062
|
const H = (D) => {
|
12974
13063
|
if (h.current && !h.current.contains(D.target)) {
|
12975
13064
|
if (p(!1), n != null && n.judet) {
|
12976
|
-
b(n == null ? void 0 : n.judet),
|
13065
|
+
b(n == null ? void 0 : n.judet), E(!0), n != null && n.localitate && ($(n == null ? void 0 : n.localitate), _((n == null ? void 0 : n.clasificare) ?? ""));
|
12977
13066
|
return;
|
12978
13067
|
}
|
12979
|
-
b(""), $(""), _(""),
|
13068
|
+
b(""), $(""), _(""), E(!1);
|
12980
13069
|
}
|
12981
13070
|
};
|
12982
13071
|
if (u)
|
@@ -12986,7 +13075,7 @@ const Ct = B.button`
|
|
12986
13075
|
}, [h, u]), e1(() => {
|
12987
13076
|
if (k.current) return;
|
12988
13077
|
let H = "";
|
12989
|
-
n != null && n.judet && (b(n == null ? void 0 : n.judet), H = `${n == null ? void 0 : n.judet}`,
|
13078
|
+
n != null && n.judet && (b(n == null ? void 0 : n.judet), H = `${n == null ? void 0 : n.judet}`, E(!0)), n != null && n.localitate && ($(n == null ? void 0 : n.localitate), n != null && n.judet && (H = `${n == null ? void 0 : n.judet} - ${n == null ? void 0 : n.localitate}`)), n != null && n.clasificare && _(n == null ? void 0 : n.clasificare), w(H);
|
12990
13079
|
}, [n]), /* @__PURE__ */ L.jsxs(
|
12991
13080
|
dt,
|
12992
13081
|
{
|
@@ -13026,7 +13115,7 @@ const Ct = B.button`
|
|
13026
13115
|
/* @__PURE__ */ L.jsx(
|
13027
13116
|
"input",
|
13028
13117
|
{
|
13029
|
-
onChange:
|
13118
|
+
onChange: x,
|
13030
13119
|
value: m,
|
13031
13120
|
type: "text"
|
13032
13121
|
}
|
@@ -13160,7 +13249,7 @@ const Ct = B.button`
|
|
13160
13249
|
getValue: C,
|
13161
13250
|
...s
|
13162
13251
|
}) => {
|
13163
|
-
const [h, u] = T(!1), [p, m] = T(""), [M, g] = T("0"), [
|
13252
|
+
const [h, u] = T(!1), [p, m] = T(""), [M, g] = T("0"), [E, V] = T("0"), b = {
|
13164
13253
|
nevoi_personale: "Nevoi personale",
|
13165
13254
|
card_de_credit: "Card de credit",
|
13166
13255
|
overdraft: "Overdraft",
|
@@ -13232,17 +13321,17 @@ const Ct = B.button`
|
|
13232
13321
|
(N) => N.id === y ? { ...N, rata: W } : N
|
13233
13322
|
);
|
13234
13323
|
});
|
13235
|
-
},
|
13236
|
-
p && (w.rata && (!Number(M) || Number(M) < 1) || w.limitaAprobata && (!Number(
|
13324
|
+
}, x = C1(() => {
|
13325
|
+
p && (w.rata && (!Number(M) || Number(M) < 1) || w.limitaAprobata && (!Number(E) || Number(E) < 1) || (v((y) => [
|
13237
13326
|
{
|
13238
13327
|
id: String(y.length + 1),
|
13239
13328
|
tipCredit: p,
|
13240
13329
|
limitaAprobata: M,
|
13241
|
-
rata:
|
13330
|
+
rata: E
|
13242
13331
|
},
|
13243
13332
|
...y
|
13244
13333
|
]), g("0"), V("0"), m("")));
|
13245
|
-
}, [w, M,
|
13334
|
+
}, [w, M, E, p]), A = (y) => {
|
13246
13335
|
v((H) => H.filter((D) => D.id !== y));
|
13247
13336
|
}, Z = () => {
|
13248
13337
|
v([]), g("0"), V("0"), m("");
|
@@ -13320,7 +13409,7 @@ const Ct = B.button`
|
|
13320
13409
|
rightText: "RON",
|
13321
13410
|
id: "rata",
|
13322
13411
|
name: "rata",
|
13323
|
-
value:
|
13412
|
+
value: E,
|
13324
13413
|
setValue: (y) => j(y, "rata"),
|
13325
13414
|
size: "small",
|
13326
13415
|
numpad: !0,
|
@@ -13339,7 +13428,7 @@ const Ct = B.button`
|
|
13339
13428
|
intent: "info",
|
13340
13429
|
size: "small",
|
13341
13430
|
width: "90px",
|
13342
|
-
onClick:
|
13431
|
+
onClick: x
|
13343
13432
|
}
|
13344
13433
|
)
|
13345
13434
|
]
|
@@ -13989,9 +14078,9 @@ const Ct = B.button`
|
|
13989
14078
|
$disabled: p,
|
13990
14079
|
$loading: m,
|
13991
14080
|
...g,
|
13992
|
-
onClick: (
|
14081
|
+
onClick: (E) => {
|
13993
14082
|
var V;
|
13994
|
-
p || m || (V = g.onClick) == null || V.call(g,
|
14083
|
+
p || m || (V = g.onClick) == null || V.call(g, E);
|
13995
14084
|
},
|
13996
14085
|
children: [
|
13997
14086
|
M > 0 && !m && /* @__PURE__ */ L.jsxs("div", { className: "a7b2c9d4e8f5h3", children: [
|
@@ -14016,8 +14105,8 @@ const Ct = B.button`
|
|
14016
14105
|
/* @__PURE__ */ L.jsx("div", { className: "xk9m2pq4nt", children: C !== "null" && /* @__PURE__ */ L.jsx(
|
14017
14106
|
w1,
|
14018
14107
|
{
|
14019
|
-
onClick: (
|
14020
|
-
|
14108
|
+
onClick: (E) => {
|
14109
|
+
E.preventDefault(), E.stopPropagation(), !(p || m) && s();
|
14021
14110
|
},
|
14022
14111
|
size: "medium",
|
14023
14112
|
disabled: p,
|
@@ -14099,6 +14188,7 @@ const Ct = B.button`
|
|
14099
14188
|
flex-direction: column;
|
14100
14189
|
overflow: hidden;
|
14101
14190
|
cursor: pointer;
|
14191
|
+
background-color: ${l.white};
|
14102
14192
|
|
14103
14193
|
&:hover {
|
14104
14194
|
outline: 2px solid ${l.info_800};
|
@@ -14266,7 +14356,7 @@ const Ct = B.button`
|
|
14266
14356
|
textFontSize: m = 14,
|
14267
14357
|
textFontWeight: M = 400,
|
14268
14358
|
width: g = "auto",
|
14269
|
-
disabled:
|
14359
|
+
disabled: E = !1,
|
14270
14360
|
img: V = "",
|
14271
14361
|
onClick: b = () => {
|
14272
14362
|
},
|
@@ -14281,9 +14371,9 @@ const Ct = B.button`
|
|
14281
14371
|
$titleFontWeight: p,
|
14282
14372
|
$textFontSize: m,
|
14283
14373
|
$textFontWeight: M,
|
14284
|
-
$disabled:
|
14374
|
+
$disabled: E,
|
14285
14375
|
onClick: ($) => {
|
14286
|
-
|
14376
|
+
E || b($);
|
14287
14377
|
},
|
14288
14378
|
...R,
|
14289
14379
|
children: [
|
@@ -14446,7 +14536,7 @@ const Ct = B.button`
|
|
14446
14536
|
showRightContent: h = !0,
|
14447
14537
|
...u
|
14448
14538
|
}) => {
|
14449
|
-
const p = Q(null), m = Q(null), M = Q(null), g = Q(null),
|
14539
|
+
const p = Q(null), m = Q(null), M = Q(null), g = Q(null), E = 0.2, V = {
|
14450
14540
|
cash: l.warm_gray_150,
|
14451
14541
|
crestere: l.blue_400,
|
14452
14542
|
conservare: l.purple_500,
|
@@ -14457,17 +14547,17 @@ const Ct = B.button`
|
|
14457
14547
|
}, [b, R] = T(83), $ = C1(
|
14458
14548
|
(w) => {
|
14459
14549
|
const k = s ? 0 : (w / t || 0) * b;
|
14460
|
-
return (k > 0 ? Math.max(k,
|
14550
|
+
return (k > 0 ? Math.max(k, E) : 0).toFixed(2);
|
14461
14551
|
},
|
14462
14552
|
[s, t, b]
|
14463
14553
|
), v = i1(() => {
|
14464
|
-
const w = $(i), k = $(a), j = $(n), P = $(r),
|
14554
|
+
const w = $(i), k = $(a), j = $(n), P = $(r), x = $(c), A = $(o), Z = $(C);
|
14465
14555
|
return {
|
14466
14556
|
cash_percentage: Number(w),
|
14467
14557
|
crestere_percentage: Number(k),
|
14468
14558
|
conservare_percentage: Number(j),
|
14469
14559
|
lichiditate_percentage: Number(P),
|
14470
|
-
cashCrestere_percentage: Number(
|
14560
|
+
cashCrestere_percentage: Number(x),
|
14471
14561
|
cashConservare_percentage: Number(A),
|
14472
14562
|
cashLichiditate_percentage: Number(Z)
|
14473
14563
|
};
|
@@ -14486,7 +14576,7 @@ const Ct = B.button`
|
|
14486
14576
|
const j = p.current.clientWidth, P = Math.max(
|
14487
14577
|
((w = m.current) == null ? void 0 : w.getBBox().width) || 0,
|
14488
14578
|
((k = M.current) == null ? void 0 : k.getBBox().width) || 0
|
14489
|
-
),
|
14579
|
+
), x = h && M.current ? P + 30 || 65 : 4, A = (j - Number(x)) / j * 100;
|
14490
14580
|
return Number(Math.max(A, 0).toFixed(2));
|
14491
14581
|
}
|
14492
14582
|
return 85;
|
@@ -14677,7 +14767,7 @@ const Ct = B.button`
|
|
14677
14767
|
cash_label_nedistribuit: m = "echivalentul a 120.000 RON de astazi",
|
14678
14768
|
height: M = 334,
|
14679
14769
|
test: g = !1,
|
14680
|
-
visualDifference:
|
14770
|
+
visualDifference: E = 1,
|
14681
14771
|
currency: V = "RON",
|
14682
14772
|
...b
|
14683
14773
|
}) => {
|
@@ -14687,12 +14777,12 @@ const Ct = B.button`
|
|
14687
14777
|
conservare: l.purple_400,
|
14688
14778
|
lichiditate: l.pink_300,
|
14689
14779
|
inflatie: l.danger_500
|
14690
|
-
}, w = (P,
|
14780
|
+
}, w = (P, x = 134) => {
|
14691
14781
|
const A = P.split(" "), Z = [];
|
14692
14782
|
let y = A[0];
|
14693
14783
|
for (let H = 1; H < A.length; H++) {
|
14694
14784
|
const D = A[H], W = `${y} ${D}`;
|
14695
|
-
Number(W.length) * 6.15 < Number(
|
14785
|
+
Number(W.length) * 6.15 < Number(x) ? y = W : (Z.push(y), y = D);
|
14696
14786
|
}
|
14697
14787
|
return Z.push(y), Z;
|
14698
14788
|
}, k = i1(() => {
|
@@ -14715,7 +14805,7 @@ const Ct = B.button`
|
|
14715
14805
|
V
|
14716
14806
|
]), j = i1(() => {
|
14717
14807
|
const A = M - 54, Z = h > t ? h - t : 0, y = Z > 0 ? Number(
|
14718
|
-
(Z * A / h *
|
14808
|
+
(Z * A / h * E).toFixed(2)
|
14719
14809
|
) : 0, H = A - y, D = i + a + n, W = Math.max(t - D, 0), G = Math.max(
|
14720
14810
|
h - (r + c + o),
|
14721
14811
|
0
|
@@ -14768,7 +14858,7 @@ const Ct = B.button`
|
|
14768
14858
|
M,
|
14769
14859
|
h,
|
14770
14860
|
C,
|
14771
|
-
|
14861
|
+
E,
|
14772
14862
|
r,
|
14773
14863
|
c,
|
14774
14864
|
o
|
@@ -14830,7 +14920,7 @@ const Ct = B.button`
|
|
14830
14920
|
minimumFractionDigits: 0,
|
14831
14921
|
maximumFractionDigits: 0
|
14832
14922
|
}).format(i)
|
14833
|
-
).map((P,
|
14923
|
+
).map((P, x) => /* @__PURE__ */ L.jsx("tspan", { x: "50%", dy: x === 0 ? "0" : "1.2em", children: P }, x))
|
14834
14924
|
}
|
14835
14925
|
),
|
14836
14926
|
/* @__PURE__ */ L.jsx(
|
@@ -14857,7 +14947,7 @@ const Ct = B.button`
|
|
14857
14947
|
minimumFractionDigits: 0,
|
14858
14948
|
maximumFractionDigits: 0
|
14859
14949
|
}).format(a)
|
14860
|
-
).map((P,
|
14950
|
+
).map((P, x) => /* @__PURE__ */ L.jsx("tspan", { x: "50%", dy: x === 0 ? "0" : "1.2em", children: P }, x))
|
14861
14951
|
}
|
14862
14952
|
),
|
14863
14953
|
/* @__PURE__ */ L.jsx(
|
@@ -14884,7 +14974,7 @@ const Ct = B.button`
|
|
14884
14974
|
minimumFractionDigits: 0,
|
14885
14975
|
maximumFractionDigits: 0
|
14886
14976
|
}).format(n)
|
14887
|
-
).map((P,
|
14977
|
+
).map((P, x) => /* @__PURE__ */ L.jsx("tspan", { x: "50%", dy: x === 0 ? "0" : "1.2em", children: P }, x))
|
14888
14978
|
}
|
14889
14979
|
),
|
14890
14980
|
/* @__PURE__ */ L.jsx(
|
@@ -14904,7 +14994,7 @@ const Ct = B.button`
|
|
14904
14994
|
y: j.remaining_cash > 0 ? j.cash_y + j.cash_h / 2 + 5 : 0,
|
14905
14995
|
textAnchor: "middle",
|
14906
14996
|
className: `basic-label ${j.remaining_cash > 0 && j.cash_h >= 18 ? "" : "hidden"}`,
|
14907
|
-
children: w(k).map((P,
|
14997
|
+
children: w(k).map((P, x) => /* @__PURE__ */ L.jsx("tspan", { x: "50%", dy: x === 0 ? "0" : "1.2em", children: P }, x))
|
14908
14998
|
}
|
14909
14999
|
),
|
14910
15000
|
C > 0 && /* @__PURE__ */ L.jsx(
|
@@ -14924,7 +15014,7 @@ const Ct = B.button`
|
|
14924
15014
|
y: j.inflatie_y + j.inflatie_h / 2 + 5,
|
14925
15015
|
textAnchor: "middle",
|
14926
15016
|
className: "inflatie-label",
|
14927
|
-
children: w(C + "%").map((P,
|
15017
|
+
children: w(C + "%").map((P, x) => /* @__PURE__ */ L.jsx("tspan", { x: "50%", dy: x === 0 ? "0" : "1.2em", children: P }, x))
|
14928
15018
|
}
|
14929
15019
|
),
|
14930
15020
|
/* @__PURE__ */ L.jsx("text", { textAnchor: "middle", x: "50%", y: "98.5%", className: "label_bottom", children: p })
|
@@ -15652,11 +15742,11 @@ const Ct = B.button`
|
|
15652
15742
|
};
|
15653
15743
|
return e1(() => {
|
15654
15744
|
if (o === "loading" && !C) {
|
15655
|
-
const
|
15656
|
-
M((V) => V <= 1 ? (clearInterval(
|
15745
|
+
const E = setInterval(() => {
|
15746
|
+
M((V) => V <= 1 ? (clearInterval(E), 0) : V - 1);
|
15657
15747
|
}, 1e3);
|
15658
15748
|
return () => {
|
15659
|
-
clearInterval(
|
15749
|
+
clearInterval(E);
|
15660
15750
|
};
|
15661
15751
|
} else
|
15662
15752
|
M(s);
|
@@ -15837,7 +15927,7 @@ const Ct = B.button`
|
|
15837
15927
|
}, g = {
|
15838
15928
|
x: i + a * Math.cos(u),
|
15839
15929
|
y: i + a * Math.sin(u)
|
15840
|
-
},
|
15930
|
+
}, E = {
|
15841
15931
|
x: i + a * Math.cos(p),
|
15842
15932
|
y: i + a * Math.sin(p)
|
15843
15933
|
}, V = h - s > 180 ? 1 : 0;
|
@@ -15845,7 +15935,7 @@ const Ct = B.button`
|
|
15845
15935
|
M ${m.x} ${m.y}
|
15846
15936
|
A ${i} ${i} 0 ${V} 0 ${M.x} ${M.y}
|
15847
15937
|
L ${g.x} ${g.y}
|
15848
|
-
A ${a} ${a} 0 ${V} 1 ${
|
15938
|
+
A ${a} ${a} 0 ${V} 1 ${E.x} ${E.y}
|
15849
15939
|
Z
|
15850
15940
|
`;
|
15851
15941
|
},
|
@@ -15874,7 +15964,7 @@ const Ct = B.button`
|
|
15874
15964
|
value: a = 50,
|
15875
15965
|
width: n = "40px"
|
15876
15966
|
}) => {
|
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),
|
15967
|
+
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
15968
|
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
15969
|
return isNaN(k) ? $ : k;
|
15880
15970
|
}, [o, C, m, t, i, a]), R = i1(() => {
|
@@ -15890,22 +15980,22 @@ const Ct = B.button`
|
|
15890
15980
|
g.current.width.baseVal.value ?? g.current.getBoundingClientRect().width ?? 28
|
15891
15981
|
);
|
15892
15982
|
}, [g]), e1(() => {
|
15893
|
-
if (
|
15894
|
-
const { height: $ } =
|
15983
|
+
if (E.current) {
|
15984
|
+
const { height: $ } = E.current.getBoundingClientRect();
|
15895
15985
|
h($), M($ - 4);
|
15896
15986
|
}
|
15897
|
-
}, [
|
15898
|
-
if (
|
15987
|
+
}, [E]), e1(() => {
|
15988
|
+
if (E.current) {
|
15899
15989
|
const $ = () => {
|
15900
|
-
const _ =
|
15990
|
+
const _ = E.current.getBoundingClientRect();
|
15901
15991
|
_.height > 0 && (h(_.height), M(_.height - 4));
|
15902
15992
|
}, v = new ResizeObserver($);
|
15903
|
-
return v.observe(
|
15993
|
+
return v.observe(E.current), () => {
|
15904
15994
|
v.disconnect();
|
15905
15995
|
};
|
15906
15996
|
}
|
15907
|
-
}, [
|
15908
|
-
if (
|
15997
|
+
}, [E]), e1(() => {
|
15998
|
+
if (E.current && s && m && g.current) {
|
15909
15999
|
const $ = () => {
|
15910
16000
|
const _ = g.current.width.baseVal.value ?? g.current.getBoundingClientRect().width;
|
15911
16001
|
p(_ ?? 28);
|
@@ -15914,7 +16004,7 @@ const Ct = B.button`
|
|
15914
16004
|
v.disconnect();
|
15915
16005
|
};
|
15916
16006
|
}
|
15917
|
-
}, [m, s, g]), /* @__PURE__ */ L.jsxs(Tt, { width: n, height: "100%", ref:
|
16007
|
+
}, [m, s, g]), /* @__PURE__ */ L.jsxs(Tt, { width: n, height: "100%", ref: E, children: [
|
15918
16008
|
/* @__PURE__ */ L.jsx("rect", { x: 0, y: 0, fill: l.gray_950, height: 2, width: "100%" }),
|
15919
16009
|
/* @__PURE__ */ L.jsx("defs", { children: /* @__PURE__ */ L.jsxs("linearGradient", { id: r, x1: "0%", y1: "0%", x2: "0%", y2: "100%", children: [
|
15920
16010
|
/* @__PURE__ */ L.jsx("stop", { offset: R.positive, stopColor: "#1BB18C" }),
|