rbro-tat-uds 1.5.45 → 1.5.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +14 -14
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +122 -121
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -150,10 +150,10 @@ function S0() {
|
|
150
150
|
i1.unshift("Warning: " + V), Function.prototype.apply.call(console[p], console, i1);
|
151
151
|
}
|
152
152
|
}
|
153
|
-
var k = !1, w = !1, H = !1, L = !1,
|
153
|
+
var k = !1, w = !1, H = !1, L = !1, A = !1, z;
|
154
154
|
z = Symbol.for("react.module.reference");
|
155
155
|
function P(p) {
|
156
|
-
return !!(typeof p == "string" || typeof p == "function" || p === n || p === s ||
|
156
|
+
return !!(typeof p == "string" || typeof p == "function" || p === n || p === s || A || p === l || p === g || p === m || L || p === b || k || w || H || typeof p == "object" && p !== null && (p.$$typeof === x || p.$$typeof === u || p.$$typeof === d || p.$$typeof === c || p.$$typeof === f || // This needs to include all possible module reference object
|
157
157
|
// types supported by any Flight configuration anywhere since
|
158
158
|
// we don't know which Flight build this will end up being used
|
159
159
|
// with.
|
@@ -214,14 +214,14 @@ function S0() {
|
|
214
214
|
}
|
215
215
|
return null;
|
216
216
|
}
|
217
|
-
var y = Object.assign, E = 0,
|
217
|
+
var y = Object.assign, E = 0, R, Y, T, I, a1, s1, t1;
|
218
218
|
function q() {
|
219
219
|
}
|
220
220
|
q.__reactDisabledLog = !0;
|
221
221
|
function K() {
|
222
222
|
{
|
223
223
|
if (E === 0) {
|
224
|
-
|
224
|
+
R = console.log, Y = console.info, T = console.warn, I = console.error, a1 = console.group, s1 = console.groupCollapsed, t1 = console.groupEnd;
|
225
225
|
var p = {
|
226
226
|
configurable: !0,
|
227
227
|
enumerable: !0,
|
@@ -251,7 +251,7 @@ function S0() {
|
|
251
251
|
};
|
252
252
|
Object.defineProperties(console, {
|
253
253
|
log: y({}, p, {
|
254
|
-
value:
|
254
|
+
value: R
|
255
255
|
}),
|
256
256
|
info: y({}, p, {
|
257
257
|
value: Y
|
@@ -1691,8 +1691,8 @@ function H3(e, r, a) {
|
|
1691
1691
|
}
|
1692
1692
|
var S = new E3(a, x, n ? l.componentStyle : void 0);
|
1693
1693
|
function M(k, w) {
|
1694
|
-
return function(H, L,
|
1695
|
-
var z = H.attrs, P = H.componentStyle, C = H.defaultProps, F = H.foldedComponentIds, j = H.styledComponentId, y = H.target, E = _1.useContext(pe),
|
1694
|
+
return function(H, L, A) {
|
1695
|
+
var z = H.attrs, P = H.componentStyle, C = H.defaultProps, F = H.foldedComponentIds, j = H.styledComponentId, y = H.target, E = _1.useContext(pe), R = te(), Y = H.shouldForwardProp || R.shouldForwardProp;
|
1696
1696
|
process.env.NODE_ENV !== "production" && Ee(j);
|
1697
1697
|
var T = Lt(L, E, C) || K1, I = function(X, n1, g1) {
|
1698
1698
|
for (var h1, v1 = x1(x1({}, n1), { className: void 0, theme: g1 }), M1 = 0; M1 < X.length; M1 += 1) {
|
@@ -1708,7 +1708,7 @@ function H3(e, r, a) {
|
|
1708
1708
|
}(P, I);
|
1709
1709
|
process.env.NODE_ENV !== "production" && H.warnTooManyClasses && H.warnTooManyClasses(q);
|
1710
1710
|
var K = W1(F, j);
|
1711
|
-
return q && (K += " " + q), I.className && (K += " " + I.className), s1[P2(a1) && !q2.has(a1) ? "class" : "className"] = K, s1.ref =
|
1711
|
+
return q && (K += " " + q), I.className && (K += " " + I.className), s1[P2(a1) && !q2.has(a1) ? "class" : "className"] = K, s1.ref = A, k0(a1, s1);
|
1712
1712
|
}(Z, k, w);
|
1713
1713
|
}
|
1714
1714
|
M.displayName = u;
|
@@ -1718,13 +1718,13 @@ function H3(e, r, a) {
|
|
1718
1718
|
}, set: function(k) {
|
1719
1719
|
this._foldedDefaultProps = n ? function(w) {
|
1720
1720
|
for (var H = [], L = 1; L < arguments.length; L++) H[L - 1] = arguments[L];
|
1721
|
-
for (var
|
1721
|
+
for (var A = 0, z = H; A < z.length; A++) Q2(w, z[A], !0);
|
1722
1722
|
return w;
|
1723
1723
|
}({}, l.defaultProps, k) : k;
|
1724
1724
|
} }), process.env.NODE_ENV !== "production" && ($t(u, x), Z.warnTooManyClasses = /* @__PURE__ */ function(k, w) {
|
1725
1725
|
var H = {}, L = !1;
|
1726
|
-
return function(
|
1727
|
-
if (!L && (H[
|
1726
|
+
return function(A) {
|
1727
|
+
if (!L && (H[A] = !0, Object.keys(H).length >= 200)) {
|
1728
1728
|
var z = w ? ' with the id of "'.concat(w, '"') : "";
|
1729
1729
|
console.warn("Over ".concat(200, " classes were generated for component ").concat(k).concat(z, `.
|
1730
1730
|
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
@@ -3879,7 +3879,7 @@ const $6 = [14, 16, 18, 20, 24], L6 = [200, 300, 400, 500, 700, 800], k6 = D.div
|
|
3879
3879
|
numpadPortal: Z = !1,
|
3880
3880
|
...k
|
3881
3881
|
}) => {
|
3882
|
-
const w = r1(null), [H, L] = N(!1),
|
3882
|
+
const w = r1(null), [H, L] = N(!1), A = () => {
|
3883
3883
|
s("");
|
3884
3884
|
}, z = (C) => {
|
3885
3885
|
s && s(C);
|
@@ -3976,7 +3976,7 @@ const $6 = [14, 16, 18, 20, 24], L6 = [200, 300, 400, 500, 700, 800], k6 = D.div
|
|
3976
3976
|
(b || c === "success" || g && !!l) && /* @__PURE__ */ i.jsx(
|
3977
3977
|
W,
|
3978
3978
|
{
|
3979
|
-
onClick: k.disabled ? void 0 : b ? v :
|
3979
|
+
onClick: k.disabled ? void 0 : b ? v : A,
|
3980
3980
|
style: {
|
3981
3981
|
cursor: v || g ? "pointer" : "default"
|
3982
3982
|
},
|
@@ -4200,11 +4200,11 @@ const F6 = [32, 40, 48], z6 = D.div`
|
|
4200
4200
|
const x = r1(null), [b, v] = N(!1), $ = c1(
|
4201
4201
|
(L) => {
|
4202
4202
|
var z, P;
|
4203
|
-
const
|
4204
|
-
if (
|
4203
|
+
const A = (z = x.current) == null ? void 0 : z.getBoundingClientRect();
|
4204
|
+
if (A) {
|
4205
4205
|
let C;
|
4206
4206
|
if ("touches" in L ? C = (P = L.touches[0]) == null ? void 0 : P.clientX : "clientX" in L && (C = L.clientX), C !== void 0) {
|
4207
|
-
const F = C -
|
4207
|
+
const F = C - A.left, j = A.width, y = F / j * (s - l) + l;
|
4208
4208
|
let E = Math.round(y / c) * c;
|
4209
4209
|
E = Math.max(l, E), E = Math.min(s, E), n && n(E);
|
4210
4210
|
}
|
@@ -6829,8 +6829,8 @@ const lr = [0, 2, 4, 8], et = [14, 16, 18, 20, 24], tt = [200, 300, 400, 500, 70
|
|
6829
6829
|
if (!/^\d{4}-\d{2}-\d{2}$/.test(C)) return !1;
|
6830
6830
|
const j = new Date(C), y = j.getTime();
|
6831
6831
|
if (isNaN(y)) return !1;
|
6832
|
-
const [E,
|
6833
|
-
return !(j.getUTCFullYear() !== parseInt(E, 10) || j.getUTCMonth() + 1 !== parseInt(
|
6832
|
+
const [E, R, Y] = C.split("-");
|
6833
|
+
return !(j.getUTCFullYear() !== parseInt(E, 10) || j.getUTCMonth() + 1 !== parseInt(R, 10) || j.getUTCDate() !== parseInt(Y, 10));
|
6834
6834
|
}, S = () => !(!n || !l || !_(n) || !_(l)), M = u1(() => {
|
6835
6835
|
if (!S()) return [];
|
6836
6836
|
const C = new Date(n), F = new Date(l), j = [];
|
@@ -6843,8 +6843,8 @@ const lr = [0, 2, 4, 8], et = [14, 16, 18, 20, 24], tt = [200, 300, 400, 500, 70
|
|
6843
6843
|
) : !1,
|
6844
6844
|
[M]
|
6845
6845
|
), k = (C, F) => {
|
6846
|
-
const { current: j, month: y, year: E } = s,
|
6847
|
-
|
6846
|
+
const { current: j, month: y, year: E } = s, R = new Date(C.join("-")), Y = Z(R), T = N2(R, /* @__PURE__ */ new Date()), I = j && N2(R, j), a1 = y && E && fr(
|
6847
|
+
R,
|
6848
6848
|
new Date(
|
6849
6849
|
[
|
6850
6850
|
E.toString().padStart(2, "0"),
|
@@ -6860,19 +6860,19 @@ const lr = [0, 2, 4, 8], et = [14, 16, 18, 20, 24], tt = [200, 300, 400, 500, 70
|
|
6860
6860
|
$inMonth: a1,
|
6861
6861
|
$isLimited: Y,
|
6862
6862
|
onClick: (t1) => {
|
6863
|
-
Y || u(
|
6863
|
+
Y || u(R, t1);
|
6864
6864
|
},
|
6865
|
-
children:
|
6865
|
+
children: R.getDate()
|
6866
6866
|
},
|
6867
|
-
ur(
|
6867
|
+
ur(R)
|
6868
6868
|
);
|
6869
6869
|
}, w = () => {
|
6870
6870
|
const C = C2 * 4, { year: F } = s;
|
6871
6871
|
return [...new Array(C)].map((y, E) => +F + E);
|
6872
6872
|
}, H = (C) => {
|
6873
|
-
const { current: F, year: j } = s, y = C === j, E = F && F.getFullYear() === C,
|
6873
|
+
const { current: F, year: j } = s, y = C === j, E = F && F.getFullYear() === C, R = y ? ne : E ? st : ae;
|
6874
6874
|
return /* @__PURE__ */ i.jsx(
|
6875
|
-
|
6875
|
+
R,
|
6876
6876
|
{
|
6877
6877
|
onClick: (Y) => x(C, Y),
|
6878
6878
|
children: C
|
@@ -6880,7 +6880,7 @@ const lr = [0, 2, 4, 8], et = [14, 16, 18, 20, 24], tt = [200, 300, 400, 500, 70
|
|
6880
6880
|
C
|
6881
6881
|
);
|
6882
6882
|
}, L = (C, F) => {
|
6883
|
-
const { current: j, year: y, month: E } = s,
|
6883
|
+
const { current: j, year: y, month: E } = s, R = F + 1 === E, Y = j && j.getFullYear() === y, T = j && j.getMonth() + 1 === F + 1, a1 = R ? ne : Y && T ? st : ae;
|
6884
6884
|
return /* @__PURE__ */ i.jsx(
|
6885
6885
|
a1,
|
6886
6886
|
{
|
@@ -6889,7 +6889,7 @@ const lr = [0, 2, 4, 8], et = [14, 16, 18, 20, 24], tt = [200, 300, 400, 500, 70
|
|
6889
6889
|
},
|
6890
6890
|
C
|
6891
6891
|
);
|
6892
|
-
},
|
6892
|
+
}, A = (C) => {
|
6893
6893
|
if (C && C.preventDefault(), c === "date")
|
6894
6894
|
return f("year");
|
6895
6895
|
}, z = () => {
|
@@ -6963,7 +6963,7 @@ const lr = [0, 2, 4, 8], et = [14, 16, 18, 20, 24], tt = [200, 300, 400, 500, 70
|
|
6963
6963
|
size: "small"
|
6964
6964
|
}
|
6965
6965
|
),
|
6966
|
-
/* @__PURE__ */ i.jsx("div", { children: /* @__PURE__ */ i.jsxs("button", { onClick:
|
6966
|
+
/* @__PURE__ */ i.jsx("div", { children: /* @__PURE__ */ i.jsxs("button", { onClick: A, children: [
|
6967
6967
|
c === "date" && m.monthname + " " + m.year,
|
6968
6968
|
c === "year" && m.year + "-" + (m.year + C2 * 4 - 1),
|
6969
6969
|
c === "month" && m.year
|
@@ -7364,8 +7364,8 @@ const lr = [0, 2, 4, 8], et = [14, 16, 18, 20, 24], tt = [200, 300, 400, 500, 70
|
|
7364
7364
|
...b
|
7365
7365
|
}) => {
|
7366
7366
|
const [v, $] = N(m), _ = r1(null), [S, M] = N(u), [Z, k] = N(""), w = c1(
|
7367
|
-
(
|
7368
|
-
const z =
|
7367
|
+
(A) => {
|
7368
|
+
const z = A.target.value;
|
7369
7369
|
k(z);
|
7370
7370
|
const P = u.filter(
|
7371
7371
|
(C) => C.label.toLowerCase().includes(z.toLowerCase())
|
@@ -7374,21 +7374,21 @@ const lr = [0, 2, 4, 8], et = [14, 16, 18, 20, 24], tt = [200, 300, 400, 500, 70
|
|
7374
7374
|
},
|
7375
7375
|
[u]
|
7376
7376
|
), H = c1(
|
7377
|
-
(
|
7378
|
-
l(
|
7377
|
+
(A) => {
|
7378
|
+
l(A.value), $(!1), k(""), M(u);
|
7379
7379
|
},
|
7380
7380
|
[u, l]
|
7381
7381
|
), L = u1(() => {
|
7382
|
-
var
|
7383
|
-
return u && n && ((
|
7382
|
+
var A;
|
7383
|
+
return u && n && ((A = u.find((z) => z.value === n)) == null ? void 0 : A.label) || "";
|
7384
7384
|
}, [n, u]);
|
7385
7385
|
return l1(() => {
|
7386
|
-
const
|
7386
|
+
const A = (z) => {
|
7387
7387
|
_.current && !_.current.contains(z.target) && ($(!1), k(""), M(u));
|
7388
7388
|
};
|
7389
7389
|
if (v)
|
7390
|
-
return document.addEventListener("mousedown",
|
7391
|
-
document.removeEventListener("mousedown",
|
7390
|
+
return document.addEventListener("mousedown", A), () => {
|
7391
|
+
document.removeEventListener("mousedown", A);
|
7392
7392
|
};
|
7393
7393
|
}, [_, v, u]), l1(() => {
|
7394
7394
|
$(m);
|
@@ -7412,7 +7412,7 @@ const lr = [0, 2, 4, 8], et = [14, 16, 18, 20, 24], tt = [200, 300, 400, 500, 70
|
|
7412
7412
|
name: r,
|
7413
7413
|
value: L,
|
7414
7414
|
onClick: () => !c && $(!v),
|
7415
|
-
onChange: (
|
7415
|
+
onChange: (A) => A.preventDefault()
|
7416
7416
|
}
|
7417
7417
|
),
|
7418
7418
|
/* @__PURE__ */ i.jsx("div", { children: /* @__PURE__ */ i.jsx(
|
@@ -7441,7 +7441,7 @@ const lr = [0, 2, 4, 8], et = [14, 16, 18, 20, 24], tt = [200, 300, 400, 500, 70
|
|
7441
7441
|
}
|
7442
7442
|
)
|
7443
7443
|
] }) }),
|
7444
|
-
/* @__PURE__ */ i.jsx("div", { children: /* @__PURE__ */ i.jsx("div", { children: S.map((
|
7444
|
+
/* @__PURE__ */ i.jsx("div", { children: /* @__PURE__ */ i.jsx("div", { children: S.map((A, z) => /* @__PURE__ */ i.jsx("div", { onClick: () => H(A), children: /* @__PURE__ */ i.jsx("span", { children: A.label }) }, z)) }) })
|
7445
7445
|
]
|
7446
7446
|
}
|
7447
7447
|
)
|
@@ -7817,7 +7817,7 @@ const Dr = D.svg`
|
|
7817
7817
|
return Math.min(g1, Math.max(h1, K));
|
7818
7818
|
},
|
7819
7819
|
[_]
|
7820
|
-
),
|
7820
|
+
), A = c1(
|
7821
7821
|
(q) => {
|
7822
7822
|
const K = w.line_min_x + q, X = w.line_min_x + q;
|
7823
7823
|
return m && m.current || u && u.current ? {
|
@@ -7866,12 +7866,12 @@ const Dr = D.svg`
|
|
7866
7866
|
return K(), window.addEventListener("resize", K), () => window.removeEventListener("resize", K);
|
7867
7867
|
}
|
7868
7868
|
}, [g]);
|
7869
|
-
const [C, F] = N(0), [j, y] = N(0), [E,
|
7869
|
+
const [C, F] = N(0), [j, y] = N(0), [E, R] = N(0), [Y, T] = N(0), [I, a1] = N(0), [s1, t1] = N(0);
|
7870
7870
|
return l1(() => {
|
7871
7871
|
const q = H.value;
|
7872
|
-
F(
|
7873
|
-
}, [H.value,
|
7874
|
-
|
7872
|
+
F(A(q).label_top_x), y(A(q).sublabel_top_x);
|
7873
|
+
}, [H.value, A]), l1(() => {
|
7874
|
+
R(z().label_limit_min_x), T(z().sublabel_limit_min_x), a1(P().label_limit_max_x), t1(P().sublabel_limit_max_x);
|
7875
7875
|
}, [z, P]), /* @__PURE__ */ i.jsxs(
|
7876
7876
|
Dr,
|
7877
7877
|
{
|
@@ -11198,8 +11198,8 @@ const Ir = D.svg`
|
|
11198
11198
|
currency: Z = "RON",
|
11199
11199
|
dev: k = !1
|
11200
11200
|
}) => {
|
11201
|
-
const w = new Intl.NumberFormat("RO"), H = r1(null), [L,
|
11202
|
-
const F = Math.abs(L - r - a), j = Math.abs(z - n - l), y = Math.abs(j / (d - f) * (d - c) + n), E = (F - 3 * s) / 4,
|
11201
|
+
const w = new Intl.NumberFormat("RO"), H = r1(null), [L, A] = N(0), [z, P] = N(0), C = u1(() => {
|
11202
|
+
const F = Math.abs(L - r - a), j = Math.abs(z - n - l), y = Math.abs(j / (d - f) * (d - c) + n), E = (F - 3 * s) / 4, R = (s1) => {
|
11203
11203
|
const t1 = Math.abs(j / (d - f) * (s1 - c)), q = Math.abs(j / (d - f) * (c - s1)), K = s1 > c ? t1 : q;
|
11204
11204
|
return {
|
11205
11205
|
h: K,
|
@@ -11207,28 +11207,28 @@ const Ir = D.svg`
|
|
11207
11207
|
};
|
11208
11208
|
}, Y = {
|
11209
11209
|
x: r,
|
11210
|
-
y:
|
11210
|
+
y: R(u).y,
|
11211
11211
|
w: E,
|
11212
|
-
h:
|
11213
|
-
text_y: u >= c ? +
|
11212
|
+
h: R(u).h,
|
11213
|
+
text_y: u >= c ? +R(u).y - 12 : +R(u).y + 12 + 10
|
11214
11214
|
}, T = {
|
11215
11215
|
x: r + E + s,
|
11216
|
-
y:
|
11216
|
+
y: R(x).y,
|
11217
11217
|
w: E,
|
11218
|
-
h:
|
11219
|
-
text_y: x >= c ? +
|
11218
|
+
h: R(x).h,
|
11219
|
+
text_y: x >= c ? +R(x).y - 12 : +R(x).y + 12 + 10
|
11220
11220
|
}, I = {
|
11221
11221
|
x: r + E * 2 + s * 2,
|
11222
|
-
y:
|
11222
|
+
y: R(b).y,
|
11223
11223
|
w: E,
|
11224
|
-
h:
|
11225
|
-
text_y: b >= c ? +
|
11224
|
+
h: R(b).h,
|
11225
|
+
text_y: b >= c ? +R(b).y - 12 : +R(b).y + R(b).h + 12 + 10
|
11226
11226
|
}, a1 = {
|
11227
11227
|
x: r + E * 3 + s * 3,
|
11228
|
-
y:
|
11228
|
+
y: R(v).y,
|
11229
11229
|
w: E,
|
11230
|
-
h:
|
11231
|
-
text_y: v >= c ? +
|
11230
|
+
h: R(v).h,
|
11231
|
+
text_y: v >= c ? +R(v).y - 12 : +R(v).y + R(v).h + 12 + 10
|
11232
11232
|
};
|
11233
11233
|
return {
|
11234
11234
|
graphW: F,
|
@@ -11261,7 +11261,7 @@ const Ir = D.svg`
|
|
11261
11261
|
const F = () => {
|
11262
11262
|
var y;
|
11263
11263
|
const j = (y = H == null ? void 0 : H.current) == null ? void 0 : y.clientWidth;
|
11264
|
-
|
11264
|
+
A(+j), P(e);
|
11265
11265
|
};
|
11266
11266
|
return F(), window.addEventListener("resize", F), () => window.removeEventListener("resize", F);
|
11267
11267
|
}
|
@@ -11570,20 +11570,20 @@ const Ir = D.svg`
|
|
11570
11570
|
}) => {
|
11571
11571
|
const d = new Intl.NumberFormat("RO"), c = r1(null), f = r1(null), g = r1(null), m = r1(null), u = r1(null), [x, b] = N(0), [v, $] = N(0), _ = u1(() => {
|
11572
11572
|
const w = v / 2 - 12;
|
11573
|
-
let H, L,
|
11573
|
+
let H, L, A, z, P, C, F;
|
11574
11574
|
if (r > e) {
|
11575
11575
|
L = x - 1;
|
11576
11576
|
const j = e * x / r;
|
11577
|
-
H = Math.min(x, Math.max(j, 1)),
|
11577
|
+
H = Math.min(x, Math.max(j, 1)), A = Math.min(x, Math.max(x * e / r, 0)), P = H, C = x - A, F = t.danger_500;
|
11578
11578
|
} else {
|
11579
11579
|
H = x - 1;
|
11580
11580
|
const j = r * x / e;
|
11581
|
-
L = Math.min(x, Math.max(j, 1)),
|
11581
|
+
L = Math.min(x, Math.max(j, 1)), A = Math.min(x, Math.max(x * r / e, 0)), P = L, C = x - A, F = t.success_500;
|
11582
11582
|
}
|
11583
11583
|
return z = t.success_400, {
|
11584
11584
|
bar_h: 24,
|
11585
11585
|
bar_y: w,
|
11586
|
-
secondary_bar_w:
|
11586
|
+
secondary_bar_w: A,
|
11587
11587
|
limit_top_x: H,
|
11588
11588
|
limit_bottom_x: L,
|
11589
11589
|
dynamic_bar_x: P,
|
@@ -11610,7 +11610,7 @@ const Ir = D.svg`
|
|
11610
11610
|
textAnchor: "end"
|
11611
11611
|
};
|
11612
11612
|
if (f && f.current || g && g.current) {
|
11613
|
-
const
|
11613
|
+
const A = ((H = f.current) == null ? void 0 : H.getBBox().width) ?? 0, z = ((L = g.current) == null ? void 0 : L.getBBox().width) ?? 0, P = Math.max(A, z);
|
11614
11614
|
return {
|
11615
11615
|
limitMinLabel: {
|
11616
11616
|
x: S(P, k.x).x,
|
@@ -11636,7 +11636,7 @@ const Ir = D.svg`
|
|
11636
11636
|
textAnchor: "end"
|
11637
11637
|
};
|
11638
11638
|
if (m && m.current || u && u.current) {
|
11639
|
-
const
|
11639
|
+
const A = ((H = m.current) == null ? void 0 : H.getBBox().width) ?? 0, z = ((L = u.current) == null ? void 0 : L.getBBox().width) ?? 0, P = Math.max(A, z);
|
11640
11640
|
return {
|
11641
11641
|
limitMaxLabel: {
|
11642
11642
|
x: S(P, k.x).x,
|
@@ -11954,9 +11954,9 @@ const Ir = D.svg`
|
|
11954
11954
|
currency: w = "RON",
|
11955
11955
|
dev: H = !1
|
11956
11956
|
}) => {
|
11957
|
-
const L = new Intl.NumberFormat("RO"),
|
11958
|
-
const E = Math.abs(z - r - a),
|
11959
|
-
const X = Math.abs(
|
11957
|
+
const L = new Intl.NumberFormat("RO"), A = r1(null), [z, P] = N(0), [C, F] = N(0), j = r1(null), y = u1(() => {
|
11958
|
+
const E = Math.abs(z - r - a), R = Math.abs(C - n - l), Y = Math.abs(R / (d - f) * (d - c) + n), T = (E - 3 * s) / 4, I = (K) => {
|
11959
|
+
const X = Math.abs(R / d * K), n1 = Math.abs(R + n - X);
|
11960
11960
|
return {
|
11961
11961
|
h: X,
|
11962
11962
|
y: n1
|
@@ -11988,7 +11988,7 @@ const Ir = D.svg`
|
|
11988
11988
|
};
|
11989
11989
|
return {
|
11990
11990
|
graphW: E,
|
11991
|
-
graphH:
|
11991
|
+
graphH: R,
|
11992
11992
|
lineY: Y,
|
11993
11993
|
col_1: a1,
|
11994
11994
|
col_2: s1,
|
@@ -12014,18 +12014,18 @@ const Ir = D.svg`
|
|
12014
12014
|
j
|
12015
12015
|
]);
|
12016
12016
|
return l1(() => {
|
12017
|
-
if (
|
12017
|
+
if (A && A.current) {
|
12018
12018
|
const E = () => {
|
12019
12019
|
var Y;
|
12020
|
-
const
|
12021
|
-
P(+
|
12020
|
+
const R = (Y = A == null ? void 0 : A.current) == null ? void 0 : Y.clientWidth;
|
12021
|
+
P(+R), F(e);
|
12022
12022
|
};
|
12023
12023
|
return E(), window.addEventListener("resize", E), () => window.removeEventListener("resize", E);
|
12024
12024
|
}
|
12025
|
-
}, [
|
12025
|
+
}, [A, e]), /* @__PURE__ */ i.jsxs(
|
12026
12026
|
i7,
|
12027
12027
|
{
|
12028
|
-
ref:
|
12028
|
+
ref: A,
|
12029
12029
|
width: "100%",
|
12030
12030
|
height: "100%",
|
12031
12031
|
viewBox: `0 0 ${z} ${C}`,
|
@@ -12470,12 +12470,12 @@ const Ir = D.svg`
|
|
12470
12470
|
currency: k = "RON",
|
12471
12471
|
dev: w = !1
|
12472
12472
|
}) => {
|
12473
|
-
const H = new Intl.NumberFormat("RO"), L = r1(null), [
|
12474
|
-
const y = Math.abs(
|
12473
|
+
const H = new Intl.NumberFormat("RO"), L = r1(null), [A, z] = N(0), [P, C] = N(0), F = r1(null), j = u1(() => {
|
12474
|
+
const y = Math.abs(A - r - a), E = Math.abs(P - n - l), R = Math.abs(E / (d - f) * (d - c) + n), Y = (y - 2 * s) / 3, T = (t1) => {
|
12475
12475
|
const q = Math.abs(E / (d - f) * (t1 - c)), K = Math.abs(E / (d - f) * (c - t1)), X = t1 > c ? q : K;
|
12476
12476
|
return {
|
12477
12477
|
h: X,
|
12478
|
-
y: t1 > c ?
|
12478
|
+
y: t1 > c ? R - X : R
|
12479
12479
|
};
|
12480
12480
|
}, I = {
|
12481
12481
|
x: r,
|
@@ -12499,14 +12499,14 @@ const Ir = D.svg`
|
|
12499
12499
|
return {
|
12500
12500
|
graphW: y,
|
12501
12501
|
graphH: E,
|
12502
|
-
lineY:
|
12502
|
+
lineY: R,
|
12503
12503
|
col_1: I,
|
12504
12504
|
col_2: a1,
|
12505
12505
|
col_3: s1,
|
12506
12506
|
paddingLeft: r
|
12507
12507
|
};
|
12508
12508
|
}, [
|
12509
|
-
|
12509
|
+
A,
|
12510
12510
|
P,
|
12511
12511
|
f,
|
12512
12512
|
d,
|
@@ -12524,8 +12524,8 @@ const Ir = D.svg`
|
|
12524
12524
|
return l1(() => {
|
12525
12525
|
if (L && L.current) {
|
12526
12526
|
const y = () => {
|
12527
|
-
var
|
12528
|
-
const E = (
|
12527
|
+
var R;
|
12528
|
+
const E = (R = L == null ? void 0 : L.current) == null ? void 0 : R.clientWidth;
|
12529
12529
|
z(+E), C(e);
|
12530
12530
|
};
|
12531
12531
|
return y(), window.addEventListener("resize", y), () => window.removeEventListener("resize", y);
|
@@ -12536,7 +12536,7 @@ const Ir = D.svg`
|
|
12536
12536
|
ref: L,
|
12537
12537
|
width: "100%",
|
12538
12538
|
height: "100%",
|
12539
|
-
viewBox: `0 0 ${
|
12539
|
+
viewBox: `0 0 ${A} ${P}`,
|
12540
12540
|
xmlns: "http://www.w3.org/2000/svg",
|
12541
12541
|
$col1Color: S,
|
12542
12542
|
$col2Color: M,
|
@@ -12700,7 +12700,7 @@ const Ir = D.svg`
|
|
12700
12700
|
"line",
|
12701
12701
|
{
|
12702
12702
|
x1: 0,
|
12703
|
-
x2:
|
12703
|
+
x2: A,
|
12704
12704
|
y1: j.lineY,
|
12705
12705
|
y2: j.lineY,
|
12706
12706
|
strokeWidth: 2,
|
@@ -12810,19 +12810,19 @@ const Ir = D.svg`
|
|
12810
12810
|
if (!u.current) return;
|
12811
12811
|
const M = u.current, Z = M.getBoundingClientRect(), k = (P = M.offsetParent) == null ? void 0 : P.getBoundingClientRect();
|
12812
12812
|
if (!k) return;
|
12813
|
-
const w = window.innerHeight - k.bottom, H = k.top,
|
12814
|
-
top:
|
12813
|
+
const w = window.innerHeight - k.bottom, H = k.top, A = Z.height + 100 > w && H > w, z = {
|
12814
|
+
top: A ? "auto" : "100%",
|
12815
12815
|
left: `${e.left}`,
|
12816
12816
|
right: `${e.right}`,
|
12817
|
-
bottom:
|
12818
|
-
marginTop:
|
12819
|
-
marginBottom:
|
12817
|
+
bottom: A ? "100%" : "auto",
|
12818
|
+
marginTop: A ? "auto" : `${s}px`,
|
12819
|
+
marginBottom: A ? `${s}px` : "auto"
|
12820
12820
|
};
|
12821
12821
|
b((C) => JSON.stringify(C) === JSON.stringify(z) ? C : z);
|
12822
12822
|
}, []), $ = c1(() => {
|
12823
12823
|
const M = u == null ? void 0 : u.current, Z = c == null ? void 0 : c.current;
|
12824
12824
|
if (!M || !Z) return;
|
12825
|
-
const k = M.getBoundingClientRect(), w = Z.getBoundingClientRect(), H = w.left + window.scrollX, L = w.top + window.scrollY,
|
12825
|
+
const k = M.getBoundingClientRect(), w = Z.getBoundingClientRect(), H = w.left + window.scrollX, L = w.top + window.scrollY, A = window.innerHeight - w.bottom, z = w.top, P = k.height + 50 > A && z + 150 > A, C = {
|
12826
12826
|
top: P ? `${L - k.height - 10}px` : `${L + w.height}px`,
|
12827
12827
|
left: `${H}px`,
|
12828
12828
|
marginTop: P ? "auto" : "10px",
|
@@ -14719,15 +14719,15 @@ const d7 = D.button`
|
|
14719
14719
|
disabled: c = !1,
|
14720
14720
|
...f
|
14721
14721
|
}) => {
|
14722
|
-
const g = r1(null), [m, u] = N(!1), [x, b] = N(""), [v, $] = N(!1), [_, S] = N(""), [M, Z] = N(""), [k, w] = N(""), [H, L] = N(""),
|
14722
|
+
const g = r1(null), [m, u] = N(!1), [x, b] = N(""), [v, $] = N(!1), [_, S] = N(""), [M, Z] = N(""), [k, w] = N(""), [H, L] = N(""), A = r1(!1), z = u1(() => {
|
14723
14723
|
var E;
|
14724
14724
|
return !_ || !v ? [] : ((E = I2.find(
|
14725
|
-
(
|
14725
|
+
(R) => R.title.toLowerCase() === _.toLowerCase()
|
14726
14726
|
)) == null ? void 0 : E.localitati) ?? [];
|
14727
14727
|
}, [_, v]), P = u1(() => {
|
14728
14728
|
const E = x.toLowerCase();
|
14729
14729
|
return E ? (v ? z : I2).filter(
|
14730
|
-
(
|
14730
|
+
(R) => R.title.toLowerCase().includes(E)
|
14731
14731
|
) : v ? z : I2;
|
14732
14732
|
}, [x, v, z]), C = c1(
|
14733
14733
|
(E) => {
|
@@ -14736,7 +14736,7 @@ const d7 = D.button`
|
|
14736
14736
|
[]
|
14737
14737
|
), F = c1(
|
14738
14738
|
(E) => {
|
14739
|
-
if (
|
14739
|
+
if (A.current = !0, !v) {
|
14740
14740
|
S(E.title);
|
14741
14741
|
return;
|
14742
14742
|
}
|
@@ -14744,9 +14744,9 @@ const d7 = D.button`
|
|
14744
14744
|
},
|
14745
14745
|
[v]
|
14746
14746
|
), j = c1(() => {
|
14747
|
-
|
14747
|
+
A.current = !0, $(!1), b(""), Z(""), w("");
|
14748
14748
|
}, []), y = c1(() => {
|
14749
|
-
if (
|
14749
|
+
if (A.current = !0, !v && _) {
|
14750
14750
|
$(!0), b("");
|
14751
14751
|
return;
|
14752
14752
|
}
|
@@ -14755,8 +14755,8 @@ const d7 = D.button`
|
|
14755
14755
|
$(!0), u(!1), L(E), l && l({ judet: _, localitate: M, clasificare: k });
|
14756
14756
|
}, [v, _, M, k, l]);
|
14757
14757
|
return l1(() => {
|
14758
|
-
const E = (
|
14759
|
-
if (g.current && !g.current.contains(
|
14758
|
+
const E = (R) => {
|
14759
|
+
if (g.current && !g.current.contains(R.target)) {
|
14760
14760
|
if (u(!1), n != null && n.judet) {
|
14761
14761
|
S(n == null ? void 0 : n.judet), $(!0), n != null && n.localitate && (Z(n == null ? void 0 : n.localitate), w((n == null ? void 0 : n.clasificare) ?? ""));
|
14762
14762
|
return;
|
@@ -14769,7 +14769,7 @@ const d7 = D.button`
|
|
14769
14769
|
document.removeEventListener("mousedown", E);
|
14770
14770
|
};
|
14771
14771
|
}, [g, m]), l1(() => {
|
14772
|
-
if (
|
14772
|
+
if (A.current) return;
|
14773
14773
|
let E = "";
|
14774
14774
|
n != null && n.judet && (S(n == null ? void 0 : n.judet), E = `${n == null ? void 0 : n.judet}`, $(!0)), n != null && n.localitate && (Z(n == null ? void 0 : n.localitate), n != null && n.judet && (E = `${n == null ? void 0 : n.judet} - ${n == null ? void 0 : n.localitate}`)), n != null && n.clasificare && w(n == null ? void 0 : n.clasificare), L(E);
|
14775
14775
|
}, [n]), /* @__PURE__ */ i.jsxs(
|
@@ -14818,14 +14818,14 @@ const d7 = D.button`
|
|
14818
14818
|
)
|
14819
14819
|
] })
|
14820
14820
|
] }),
|
14821
|
-
/* @__PURE__ */ i.jsx("div", { children: /* @__PURE__ */ i.jsx("div", { children: P.length > 0 ? P.map((E,
|
14821
|
+
/* @__PURE__ */ i.jsx("div", { children: /* @__PURE__ */ i.jsx("div", { children: P.length > 0 ? P.map((E, R) => /* @__PURE__ */ i.jsx(
|
14822
14822
|
"div",
|
14823
14823
|
{
|
14824
14824
|
"data-active": v ? M === E.title : _ === E.title,
|
14825
14825
|
onClick: () => F(E),
|
14826
14826
|
children: /* @__PURE__ */ i.jsx("span", { children: E.title })
|
14827
14827
|
},
|
14828
|
-
|
14828
|
+
R
|
14829
14829
|
)) : /* @__PURE__ */ i.jsx("div", { className: "k3m8n9p4v2", children: /* @__PURE__ */ i.jsx("span", { children: "Nu au fost gasite rezultate." }) }) }) }),
|
14830
14830
|
/* @__PURE__ */ i.jsxs("div", { children: [
|
14831
14831
|
v && /* @__PURE__ */ i.jsx(
|
@@ -14949,17 +14949,17 @@ const d7 = D.button`
|
|
14949
14949
|
card_de_credit: "Card de credit",
|
14950
14950
|
overdraft: "Overdraft",
|
14951
14951
|
credit_ipotecar: "Credit ipotecar"
|
14952
|
-
}, M = u1(() => !s || s.length === 0 ? [] : s.map((E,
|
14952
|
+
}, M = u1(() => !s || s.length === 0 ? [] : s.map((E, R) => {
|
14953
14953
|
if (E.tipCredit === "card_de_credit" || E.tipCredit === "overdraft") {
|
14954
14954
|
const Y = Number(E.limitaAprobata) / 100 * 3;
|
14955
14955
|
return {
|
14956
|
-
id: String(
|
14956
|
+
id: String(R + 1),
|
14957
14957
|
rata: String(Y.toFixed(0)),
|
14958
14958
|
...E
|
14959
14959
|
};
|
14960
14960
|
}
|
14961
14961
|
return {
|
14962
|
-
id: String(
|
14962
|
+
id: String(R + 1),
|
14963
14963
|
limitaAprobata: "0",
|
14964
14964
|
...E
|
14965
14965
|
};
|
@@ -14985,21 +14985,22 @@ const d7 = D.button`
|
|
14985
14985
|
}, L = u1(() => ({
|
14986
14986
|
rata: u === "card_de_credit" || u === "overdraft",
|
14987
14987
|
limitaAprobata: u === "nevoi_personale" || u === "credit_ipotecar"
|
14988
|
-
}), [u]),
|
14989
|
-
|
14990
|
-
|
14991
|
-
|
14992
|
-
|
14993
|
-
}, [Z
|
14988
|
+
}), [u]), A = u1(() => Math.round(
|
14989
|
+
Z.reduce((y, E) => y + Number(E.rata), 0)
|
14990
|
+
).toFixed(0), [Z]);
|
14991
|
+
l1(() => {
|
14992
|
+
c && c(String(A));
|
14993
|
+
}, [Z, A]);
|
14994
|
+
const z = (y, E) => {
|
14994
14995
|
if (E === "limitaAprobata" && L.limitaAprobata || E === "rata" && L.rata) return;
|
14995
|
-
const
|
14996
|
+
const R = y === "0" || y.startsWith("0.") ? y : y.replace(/^0+/, "");
|
14996
14997
|
if (E === "limitaAprobata") {
|
14997
|
-
const Y = Number(
|
14998
|
+
const Y = Number(R) / 100 * 3;
|
14998
14999
|
_(String(Y.toFixed(0)));
|
14999
15000
|
}
|
15000
|
-
E === "limitaAprobata" ? v(
|
15001
|
-
}, P = (y, E,
|
15002
|
-
const Y =
|
15001
|
+
E === "limitaAprobata" ? v(R) : _(R);
|
15002
|
+
}, P = (y, E, R) => {
|
15003
|
+
const Y = R === "0" || R.startsWith("0.") ? R : R.replace(/^0+/, "");
|
15003
15004
|
k((T) => {
|
15004
15005
|
if (E === "limitaAprobata") {
|
15005
15006
|
const I = Number(Y) / 100 * 3;
|
@@ -15026,7 +15027,7 @@ const d7 = D.button`
|
|
15026
15027
|
...y
|
15027
15028
|
]), v("0"), _("0"), x("")));
|
15028
15029
|
}, [L, b, $, u]), F = (y) => {
|
15029
|
-
k((E) => E.filter((
|
15030
|
+
k((E) => E.filter((R) => R.id !== y));
|
15030
15031
|
}, j = () => {
|
15031
15032
|
k([]), v("0"), _("0"), x("");
|
15032
15033
|
};
|
@@ -15182,10 +15183,10 @@ const d7 = D.button`
|
|
15182
15183
|
rightText: "RON",
|
15183
15184
|
size: "small",
|
15184
15185
|
value: y.limitaAprobata,
|
15185
|
-
setValue: (
|
15186
|
+
setValue: (R) => P(
|
15186
15187
|
y.id,
|
15187
15188
|
"limitaAprobata",
|
15188
|
-
|
15189
|
+
R
|
15189
15190
|
),
|
15190
15191
|
numpad: !0,
|
15191
15192
|
numpadFloatNumber: !1,
|
@@ -15202,10 +15203,10 @@ const d7 = D.button`
|
|
15202
15203
|
rightText: "RON",
|
15203
15204
|
size: "small",
|
15204
15205
|
value: y.rata,
|
15205
|
-
setValue: (
|
15206
|
+
setValue: (R) => P(
|
15206
15207
|
y.id,
|
15207
15208
|
"rata",
|
15208
|
-
|
15209
|
+
R
|
15209
15210
|
),
|
15210
15211
|
numpad: !0,
|
15211
15212
|
numpadFloatNumber: !1,
|
@@ -15268,7 +15269,7 @@ const d7 = D.button`
|
|
15268
15269
|
label: "Total rate",
|
15269
15270
|
labelFontSize: 14,
|
15270
15271
|
labelColor: "gray_700",
|
15271
|
-
text: `${
|
15272
|
+
text: `${A} RON`,
|
15272
15273
|
textFontSize: 16,
|
15273
15274
|
textFontWeight: 500
|
15274
15275
|
}
|
@@ -15308,7 +15309,7 @@ const d7 = D.button`
|
|
15308
15309
|
id: e,
|
15309
15310
|
type: "text",
|
15310
15311
|
name: r,
|
15311
|
-
value: Z.length ?
|
15312
|
+
value: Z.length ? A : "0",
|
15312
15313
|
onClick: () => !a && H(),
|
15313
15314
|
onChange: (y) => y.preventDefault()
|
15314
15315
|
}
|