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.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, R = !1, z;
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 || R || 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
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, A, Y, T, I, a1, s1, t1;
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
- A = console.log, Y = console.info, T = console.warn, I = console.error, a1 = console.group, s1 = console.groupCollapsed, t1 = console.groupEnd;
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: A
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, R) {
1695
- var z = H.attrs, P = H.componentStyle, C = H.defaultProps, F = H.foldedComponentIds, j = H.styledComponentId, y = H.target, E = _1.useContext(pe), A = te(), Y = H.shouldForwardProp || A.shouldForwardProp;
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 = R, k0(a1, s1);
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 R = 0, z = H; R < z.length; R++) Q2(w, z[R], !0);
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(R) {
1727
- if (!L && (H[R] = !0, Object.keys(H).length >= 200)) {
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), R = () => {
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 : R,
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 R = (z = x.current) == null ? void 0 : z.getBoundingClientRect();
4204
- if (R) {
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 - R.left, j = R.width, y = F / j * (s - l) + l;
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, A, Y] = C.split("-");
6833
- return !(j.getUTCFullYear() !== parseInt(E, 10) || j.getUTCMonth() + 1 !== parseInt(A, 10) || j.getUTCDate() !== parseInt(Y, 10));
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, A = new Date(C.join("-")), Y = Z(A), T = N2(A, /* @__PURE__ */ new Date()), I = j && N2(A, j), a1 = y && E && fr(
6847
- A,
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(A, t1);
6863
+ Y || u(R, t1);
6864
6864
  },
6865
- children: A.getDate()
6865
+ children: R.getDate()
6866
6866
  },
6867
- ur(A)
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, A = y ? ne : E ? st : ae;
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
- A,
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, A = F + 1 === E, Y = j && j.getFullYear() === y, T = j && j.getMonth() + 1 === F + 1, a1 = A ? ne : Y && T ? st : ae;
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
- }, R = (C) => {
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: R, children: [
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
- (R) => {
7368
- const z = R.target.value;
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
- (R) => {
7378
- l(R.value), $(!1), k(""), M(u);
7377
+ (A) => {
7378
+ l(A.value), $(!1), k(""), M(u);
7379
7379
  },
7380
7380
  [u, l]
7381
7381
  ), L = u1(() => {
7382
- var R;
7383
- return u && n && ((R = u.find((z) => z.value === n)) == null ? void 0 : R.label) || "";
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 R = (z) => {
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", R), () => {
7391
- document.removeEventListener("mousedown", R);
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: (R) => R.preventDefault()
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((R, z) => /* @__PURE__ */ i.jsx("div", { onClick: () => H(R), children: /* @__PURE__ */ i.jsx("span", { children: R.label }) }, z)) }) })
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
- ), R = c1(
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, A] = N(0), [Y, T] = N(0), [I, a1] = N(0), [s1, t1] = N(0);
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(R(q).label_top_x), y(R(q).sublabel_top_x);
7873
- }, [H.value, R]), l1(() => {
7874
- A(z().label_limit_min_x), T(z().sublabel_limit_min_x), a1(P().label_limit_max_x), t1(P().sublabel_limit_max_x);
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, R] = 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, A = (s1) => {
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: A(u).y,
11210
+ y: R(u).y,
11211
11211
  w: E,
11212
- h: A(u).h,
11213
- text_y: u >= c ? +A(u).y - 12 : +A(u).y + 12 + 10
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: A(x).y,
11216
+ y: R(x).y,
11217
11217
  w: E,
11218
- h: A(x).h,
11219
- text_y: x >= c ? +A(x).y - 12 : +A(x).y + 12 + 10
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: A(b).y,
11222
+ y: R(b).y,
11223
11223
  w: E,
11224
- h: A(b).h,
11225
- text_y: b >= c ? +A(b).y - 12 : +A(b).y + A(b).h + 12 + 10
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: A(v).y,
11228
+ y: R(v).y,
11229
11229
  w: E,
11230
- h: A(v).h,
11231
- text_y: v >= c ? +A(v).y - 12 : +A(v).y + A(v).h + 12 + 10
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
- R(+j), P(e);
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, R, z, P, C, F;
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)), R = Math.min(x, Math.max(x * e / r, 0)), P = H, C = x - R, F = t.danger_500;
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)), R = Math.min(x, Math.max(x * r / e, 0)), P = L, C = x - R, F = t.success_500;
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: R,
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 R = ((H = f.current) == null ? void 0 : H.getBBox().width) ?? 0, z = ((L = g.current) == null ? void 0 : L.getBBox().width) ?? 0, P = Math.max(R, z);
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 R = ((H = m.current) == null ? void 0 : H.getBBox().width) ?? 0, z = ((L = u.current) == null ? void 0 : L.getBBox().width) ?? 0, P = Math.max(R, z);
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"), R = r1(null), [z, P] = N(0), [C, F] = N(0), j = r1(null), y = u1(() => {
11958
- const E = Math.abs(z - r - a), A = Math.abs(C - n - l), Y = Math.abs(A / (d - f) * (d - c) + n), T = (E - 3 * s) / 4, I = (K) => {
11959
- const X = Math.abs(A / d * K), n1 = Math.abs(A + n - X);
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: A,
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 (R && R.current) {
12017
+ if (A && A.current) {
12018
12018
  const E = () => {
12019
12019
  var Y;
12020
- const A = (Y = R == null ? void 0 : R.current) == null ? void 0 : Y.clientWidth;
12021
- P(+A), F(e);
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
- }, [R, e]), /* @__PURE__ */ i.jsxs(
12025
+ }, [A, e]), /* @__PURE__ */ i.jsxs(
12026
12026
  i7,
12027
12027
  {
12028
- ref: R,
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), [R, z] = N(0), [P, C] = N(0), F = r1(null), j = u1(() => {
12474
- const y = Math.abs(R - r - a), E = Math.abs(P - n - l), A = Math.abs(E / (d - f) * (d - c) + n), Y = (y - 2 * s) / 3, T = (t1) => {
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 ? A - X : A
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: A,
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
- R,
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 A;
12528
- const E = (A = L == null ? void 0 : L.current) == null ? void 0 : A.clientWidth;
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 ${R} ${P}`,
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: R,
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, R = Z.height + 100 > w && H > w, z = {
12814
- top: R ? "auto" : "100%",
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: R ? "100%" : "auto",
12818
- marginTop: R ? "auto" : `${s}px`,
12819
- marginBottom: R ? `${s}px` : "auto"
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, R = window.innerHeight - w.bottom, z = w.top, P = k.height + 50 > R && z + 150 > R, C = {
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(""), R = r1(!1), z = u1(() => {
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
- (A) => A.title.toLowerCase() === _.toLowerCase()
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
- (A) => A.title.toLowerCase().includes(E)
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 (R.current = !0, !v) {
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
- R.current = !0, $(!1), b(""), Z(""), w("");
14747
+ A.current = !0, $(!1), b(""), Z(""), w("");
14748
14748
  }, []), y = c1(() => {
14749
- if (R.current = !0, !v && _) {
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 = (A) => {
14759
- if (g.current && !g.current.contains(A.target)) {
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 (R.current) return;
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, A) => /* @__PURE__ */ i.jsx(
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
- A
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, A) => {
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(A + 1),
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(A + 1),
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]), R = u1(() => {
14989
- const y = Math.round(
14990
- Z.reduce((E, A) => E + Number(A.rata), 0)
14991
- ).toFixed(0);
14992
- return c && c(String(y)), y;
14993
- }, [Z]), z = (y, E) => {
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 A = y === "0" || y.startsWith("0.") ? y : y.replace(/^0+/, "");
14996
+ const R = y === "0" || y.startsWith("0.") ? y : y.replace(/^0+/, "");
14996
14997
  if (E === "limitaAprobata") {
14997
- const Y = Number(A) / 100 * 3;
14998
+ const Y = Number(R) / 100 * 3;
14998
14999
  _(String(Y.toFixed(0)));
14999
15000
  }
15000
- E === "limitaAprobata" ? v(A) : _(A);
15001
- }, P = (y, E, A) => {
15002
- const Y = A === "0" || A.startsWith("0.") ? A : A.replace(/^0+/, "");
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((A) => A.id !== y));
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: (A) => P(
15186
+ setValue: (R) => P(
15186
15187
  y.id,
15187
15188
  "limitaAprobata",
15188
- A
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: (A) => P(
15206
+ setValue: (R) => P(
15206
15207
  y.id,
15207
15208
  "rata",
15208
- A
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: `${R} RON`,
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 ? R : "0",
15312
+ value: Z.length ? A : "0",
15312
15313
  onClick: () => !a && H(),
15313
15314
  onChange: (y) => y.preventDefault()
15314
15315
  }