@idds/react 1.6.22 → 1.6.23

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
@@ -701,14 +701,14 @@ function Ar(e) {
701
701
  if (!H) return;
702
702
  const G = H.closest(".ina-accordion-group") || H.parentElement;
703
703
  if (!G) return;
704
- const K = Array.from(
704
+ const W = Array.from(
705
705
  G.querySelectorAll(
706
706
  ".ina-accordion__toggle:not([disabled])"
707
707
  )
708
- ), ae = K.indexOf(P.currentTarget);
708
+ ), ae = W.indexOf(P.currentTarget);
709
709
  if (ae > -1) {
710
- const ce = P.key === "ArrowDown" ? (ae + 1) % K.length : (ae - 1 + K.length) % K.length;
711
- (V = K[ce]) == null || V.focus();
710
+ const ce = P.key === "ArrowDown" ? (ae + 1) % W.length : (ae - 1 + W.length) % W.length;
711
+ (V = W[ce]) == null || V.focus();
712
712
  }
713
713
  }
714
714
  },
@@ -1670,7 +1670,7 @@ function Hr({
1670
1670
  }, Y = l ? [...e, { label: c, value: c }] : e, P = S("ina-chip", h);
1671
1671
  return /* @__PURE__ */ w("div", { className: P, children: [
1672
1672
  /* @__PURE__ */ n("div", { className: "ina-chip__list", children: Y.map((V, H) => {
1673
- const G = l && V.value === c, K = G ? m : u.includes(V.value);
1673
+ const G = l && V.value === c, W = G ? m : u.includes(V.value);
1674
1674
  return /* @__PURE__ */ n(
1675
1675
  "button",
1676
1676
  {
@@ -1682,7 +1682,7 @@ function Hr({
1682
1682
  V.disabled || (_(H), G ? (E(!0), F(!t && !m ? "" : p)) : T(V.value));
1683
1683
  },
1684
1684
  onKeyDown: (ae) => {
1685
- var ce, te, X, O, W;
1685
+ var ce, te, X, O, K;
1686
1686
  if (!V.disabled) {
1687
1687
  if (ae.key === "ArrowRight" || ae.key === "ArrowDown") {
1688
1688
  ae.preventDefault();
@@ -1697,14 +1697,14 @@ function Hr({
1697
1697
  B = (B - 1 + Y.length) % Y.length;
1698
1698
  _(B), (O = f.current[B]) == null || O.focus();
1699
1699
  }
1700
- ae.key === " " && (ae.preventDefault(), (W = f.current[H]) == null || W.click());
1700
+ ae.key === " " && (ae.preventDefault(), (K = f.current[H]) == null || K.click());
1701
1701
  }
1702
1702
  },
1703
1703
  className: S(
1704
1704
  "ina-chip__item",
1705
1705
  `ina-chip__item--size-${r}`,
1706
1706
  `ina-chip__item--variant-${i}`,
1707
- K && "ina-chip__item--selected",
1707
+ W && "ina-chip__item--selected",
1708
1708
  V.disabled && "ina-chip__item--disabled"
1709
1709
  ),
1710
1710
  children: V.label
@@ -2393,7 +2393,7 @@ function Wr({
2393
2393
  u || (O = E.current) == null || O.click();
2394
2394
  }, [u]), P = me(
2395
2395
  async (O) => {
2396
- const W = [], B = [], se = [];
2396
+ const K = [], B = [], se = [];
2397
2397
  if (i && c) {
2398
2398
  const j = A.length;
2399
2399
  if (j + O.length > c) {
@@ -2428,7 +2428,7 @@ function Wr({
2428
2428
  isValid: !1,
2429
2429
  error: `Ekstensi file harus: ${l.join(", ")}`,
2430
2430
  file: j
2431
- }), W.push({
2431
+ }), K.push({
2432
2432
  isValid: !1,
2433
2433
  error: `Ekstensi file harus: ${l.join(", ")}`,
2434
2434
  file: j
@@ -2442,7 +2442,7 @@ function Wr({
2442
2442
  validateExtension: !0
2443
2443
  });
2444
2444
  if (!Q.isValid) {
2445
- se.push(Q), W.push(Q);
2445
+ se.push(Q), K.push(Q);
2446
2446
  continue;
2447
2447
  }
2448
2448
  if (h && j.type) {
@@ -2455,7 +2455,7 @@ function Wr({
2455
2455
  isValid: !1,
2456
2456
  error: ee.error || "File signature tidak valid",
2457
2457
  file: j
2458
- }), W.push({
2458
+ }), K.push({
2459
2459
  isValid: !1,
2460
2460
  error: ee.error || "File signature tidak valid",
2461
2461
  file: j
@@ -2466,7 +2466,7 @@ function Wr({
2466
2466
  B.push({
2467
2467
  file: j,
2468
2468
  status: "idle"
2469
- }), W.push({
2469
+ }), K.push({
2470
2470
  isValid: !0,
2471
2471
  file: j
2472
2472
  });
@@ -2488,8 +2488,8 @@ function Wr({
2488
2488
  ]
2489
2489
  ), V = me(
2490
2490
  async (O) => {
2491
- const W = Array.from(O.target.files || []);
2492
- await P(W), E.current && (E.current.value = "");
2491
+ const K = Array.from(O.target.files || []);
2492
+ await P(K), E.current && (E.current.value = "");
2493
2493
  },
2494
2494
  [P]
2495
2495
  ), H = me(
@@ -2499,29 +2499,29 @@ function Wr({
2499
2499
  [u]
2500
2500
  ), G = me((O) => {
2501
2501
  O.preventDefault(), O.stopPropagation(), k(!1);
2502
- }, []), K = me(
2502
+ }, []), W = me(
2503
2503
  async (O) => {
2504
2504
  var B;
2505
2505
  if (O.preventDefault(), O.stopPropagation(), k(!1), u) return;
2506
- const W = Array.from(((B = O.dataTransfer) == null ? void 0 : B.files) || []);
2507
- await P(W);
2506
+ const K = Array.from(((B = O.dataTransfer) == null ? void 0 : B.files) || []);
2507
+ await P(K);
2508
2508
  },
2509
2509
  [u, P]
2510
2510
  ), ae = me(
2511
2511
  (O) => {
2512
2512
  if (u) return;
2513
- const W = A[O], B = A.filter((se, q) => q !== O);
2514
- F(B), p == null || p(W.file, O), m == null || m(
2513
+ const K = A[O], B = A.filter((se, q) => q !== O);
2514
+ F(B), p == null || p(K.file, O), m == null || m(
2515
2515
  B.map((se) => se.file),
2516
2516
  _
2517
2517
  );
2518
2518
  },
2519
2519
  [u, A, _, p, m]
2520
2520
  ), ce = me(
2521
- (O, W, B, se) => {
2521
+ (O, K, B, se) => {
2522
2522
  F(
2523
2523
  (q) => q.map(
2524
- (j, Q) => Q === O ? { ...j, status: W, error: B, progress: se } : j
2524
+ (j, Q) => Q === O ? { ...j, status: K, error: B, progress: se } : j
2525
2525
  )
2526
2526
  );
2527
2527
  },
@@ -2541,7 +2541,7 @@ function Wr({
2541
2541
  onClick: Y,
2542
2542
  onDragOver: H,
2543
2543
  onDragLeave: G,
2544
- onDrop: K,
2544
+ onDrop: W,
2545
2545
  children: [
2546
2546
  /* @__PURE__ */ n(
2547
2547
  "input",
@@ -2580,7 +2580,7 @@ function Wr({
2580
2580
  ),
2581
2581
  A.length > 0 && /* @__PURE__ */ w(Ye, { children: [
2582
2582
  /* @__PURE__ */ n("div", { className: "ina-file-upload__files", children: (i && A.length > 5 && !T ? A.slice(0, 5) : A).map((O) => {
2583
- const W = A.findIndex(
2583
+ const K = A.findIndex(
2584
2584
  (B) => B.file.name === O.file.name && B.file.size === O.file.size && B.status === O.status
2585
2585
  );
2586
2586
  return /* @__PURE__ */ w(
@@ -2617,7 +2617,7 @@ function Wr({
2617
2617
  type: "button",
2618
2618
  className: "ina-file-upload__file-retry",
2619
2619
  onClick: () => {
2620
- ce(W, "idle");
2620
+ ce(K, "idle");
2621
2621
  },
2622
2622
  title: "Coba lagi",
2623
2623
  children: /* @__PURE__ */ n(xt, { size: 20 })
@@ -2628,7 +2628,7 @@ function Wr({
2628
2628
  {
2629
2629
  type: "button",
2630
2630
  className: "ina-file-upload__file-remove",
2631
- onClick: () => ae(W),
2631
+ onClick: () => ae(K),
2632
2632
  title: "Hapus file",
2633
2633
  children: /* @__PURE__ */ n(ot, { size: 20 })
2634
2634
  }
@@ -2639,7 +2639,7 @@ function Wr({
2639
2639
  {
2640
2640
  type: "button",
2641
2641
  className: "ina-file-upload__file-remove",
2642
- onClick: () => ae(W),
2642
+ onClick: () => ae(K),
2643
2643
  title: "Batalkan upload",
2644
2644
  children: /* @__PURE__ */ n(Te, { size: 20 })
2645
2645
  }
@@ -2649,7 +2649,7 @@ function Wr({
2649
2649
  {
2650
2650
  type: "button",
2651
2651
  className: "ina-file-upload__file-remove",
2652
- onClick: () => ae(W),
2652
+ onClick: () => ae(K),
2653
2653
  title: "Hapus file",
2654
2654
  children: /* @__PURE__ */ n(ot, { size: 20 })
2655
2655
  }
@@ -2659,7 +2659,7 @@ function Wr({
2659
2659
  {
2660
2660
  type: "button",
2661
2661
  className: "ina-file-upload__file-remove",
2662
- onClick: () => ae(W),
2662
+ onClick: () => ae(K),
2663
2663
  title: "Hapus file",
2664
2664
  children: /* @__PURE__ */ n(ot, { size: 20 })
2665
2665
  }
@@ -2667,7 +2667,7 @@ function Wr({
2667
2667
  ] })
2668
2668
  ]
2669
2669
  },
2670
- `${O.file.name}-${W}`
2670
+ `${O.file.name}-${K}`
2671
2671
  );
2672
2672
  }) }),
2673
2673
  i && A.length > 5 && /* @__PURE__ */ w(
@@ -2705,11 +2705,11 @@ function Wr({
2705
2705
  }
2706
2706
  )
2707
2707
  ] }),
2708
- _.length > 0 && /* @__PURE__ */ n("div", { className: "ina-file-upload__errors", children: _.map((O, W) => /* @__PURE__ */ w("div", { className: "ina-file-upload__error-message", children: [
2708
+ _.length > 0 && /* @__PURE__ */ n("div", { className: "ina-file-upload__errors", children: _.map((O, K) => /* @__PURE__ */ w("div", { className: "ina-file-upload__error-message", children: [
2709
2709
  dt(O.file.name),
2710
2710
  ": ",
2711
2711
  O.error
2712
- ] }, W)) })
2712
+ ] }, K)) })
2713
2713
  ] });
2714
2714
  }
2715
2715
  const un = ({ size: e = 24, stroke: a = 2, ...t }) => /* @__PURE__ */ w(
@@ -2792,12 +2792,12 @@ function jr({
2792
2792
  ...m
2793
2793
  }) {
2794
2794
  const p = le(null), [I, E] = Z(null), [A, F] = Z(0), [C, k] = Z("idle"), [_, f] = Z(!1), T = b !== void 0 ? b : A, $ = h !== void 0 ? h : C, Y = me(() => {
2795
- var W;
2796
- l || I || (W = p.current) == null || W.click();
2795
+ var K;
2796
+ l || I || (K = p.current) == null || K.click();
2797
2797
  }, [l, I]), P = me(
2798
- async (W) => {
2798
+ async (K) => {
2799
2799
  var j;
2800
- const B = (j = W.target.files) == null ? void 0 : j[0];
2800
+ const B = (j = K.target.files) == null ? void 0 : j[0];
2801
2801
  if (!B) return;
2802
2802
  if (dt(B.name) !== B.name) {
2803
2803
  const Q = {
@@ -2853,23 +2853,23 @@ function jr({
2853
2853
  l || I || Y();
2854
2854
  }, [l, I, Y]), G = me(() => {
2855
2855
  l || I || f(!0);
2856
- }, [l, I]), K = me(() => {
2856
+ }, [l, I]), W = me(() => {
2857
2857
  f(!1);
2858
2858
  }, []), ae = me(
2859
- (W) => {
2860
- l || I || (W.preventDefault(), W.stopPropagation(), f(!0));
2859
+ (K) => {
2860
+ l || I || (K.preventDefault(), K.stopPropagation(), f(!0));
2861
2861
  },
2862
2862
  [l, I]
2863
2863
  ), ce = me(
2864
- (W) => {
2865
- l || I || (W.preventDefault(), W.stopPropagation(), f(!1));
2864
+ (K) => {
2865
+ l || I || (K.preventDefault(), K.stopPropagation(), f(!1));
2866
2866
  },
2867
2867
  [l, I]
2868
2868
  ), te = me(
2869
- async (W) => {
2869
+ async (K) => {
2870
2870
  if (l || I) return;
2871
- W.preventDefault(), W.stopPropagation(), f(!1);
2872
- const B = W.dataTransfer.files[0];
2871
+ K.preventDefault(), K.stopPropagation(), f(!1);
2872
+ const B = K.dataTransfer.files[0];
2873
2873
  if (!B) return;
2874
2874
  if (dt(B.name) !== B.name) {
2875
2875
  const j = {
@@ -2929,8 +2929,8 @@ function jr({
2929
2929
  ]
2930
2930
  ), X = () => {
2931
2931
  if (!I) return null;
2932
- const W = I.type, B = I.name.toLowerCase();
2933
- return W === "application/pdf" || B.endsWith(".pdf") ? /* @__PURE__ */ n(fn, { size: 16 }) : W.startsWith("image/") ? /* @__PURE__ */ n(pn, { size: 16 }) : /* @__PURE__ */ n(un, { size: 16 });
2932
+ const K = I.type, B = I.name.toLowerCase();
2933
+ return K === "application/pdf" || B.endsWith(".pdf") ? /* @__PURE__ */ n(fn, { size: 16 }) : K.startsWith("image/") ? /* @__PURE__ */ n(pn, { size: 16 }) : /* @__PURE__ */ n(un, { size: 16 });
2934
2934
  }, O = S("ina-single-file-upload__container", {
2935
2935
  "ina-single-file-upload__container--active": _ && !l && !I,
2936
2936
  "ina-single-file-upload__container--disabled": l
@@ -2954,7 +2954,7 @@ function jr({
2954
2954
  className: O,
2955
2955
  onClick: H,
2956
2956
  onFocus: G,
2957
- onBlur: K,
2957
+ onBlur: W,
2958
2958
  onDragOver: ae,
2959
2959
  onDragLeave: ce,
2960
2960
  onDrop: te,
@@ -2997,8 +2997,8 @@ function jr({
2997
2997
  {
2998
2998
  type: "button",
2999
2999
  className: "ina-single-file-upload__delete-button",
3000
- onClick: (W) => {
3001
- W.stopPropagation(), V();
3000
+ onClick: (K) => {
3001
+ K.stopPropagation(), V();
3002
3002
  },
3003
3003
  "aria-label": "Remove file",
3004
3004
  children: /* @__PURE__ */ n(ot, { size: 18 })
@@ -3120,12 +3120,12 @@ function hn(e, a, t, r) {
3120
3120
  return !s.current || X >= a || X < 0 || f && te - l.current >= $;
3121
3121
  }, G = function(te) {
3122
3122
  return b.current = null, k && h.current ? P(te) : (h.current = u.current = null, N.current);
3123
- }, K = function te() {
3123
+ }, W = function te() {
3124
3124
  var X = Date.now();
3125
3125
  if (C && c.current === l.current && ae(), H(X)) return G(X);
3126
3126
  if (p.current) {
3127
- var O = a - (X - s.current), W = f ? Math.min(O, $ - (X - l.current)) : O;
3128
- V(te, W);
3127
+ var O = a - (X - s.current), K = f ? Math.min(O, $ - (X - l.current)) : O;
3128
+ V(te, K);
3129
3129
  }
3130
3130
  }, ae = function() {
3131
3131
  r && r({});
@@ -3133,13 +3133,13 @@ function hn(e, a, t, r) {
3133
3133
  if (A || T) {
3134
3134
  var te, X = Date.now(), O = H(X);
3135
3135
  if (h.current = [].slice.call(arguments), u.current = i, s.current = X, _ && !I.current && (I.current = function() {
3136
- var W;
3137
- ((W = global.document) == null ? void 0 : W.visibilityState) === "hidden" && E.current.flush();
3136
+ var K;
3137
+ ((K = global.document) == null ? void 0 : K.visibilityState) === "hidden" && E.current.flush();
3138
3138
  }, (te = global.document) == null || te.addEventListener == null || te.addEventListener("visibilitychange", I.current)), O) {
3139
- if (!b.current && p.current) return l.current = s.current, V(K, a), C ? P(s.current) : N.current;
3140
- if (f) return V(K, a), P(s.current);
3139
+ if (!b.current && p.current) return l.current = s.current, V(W, a), C ? P(s.current) : N.current;
3140
+ if (f) return V(W, a), P(s.current);
3141
3141
  }
3142
- return b.current || V(K, a), N.current;
3142
+ return b.current || V(W, a), N.current;
3143
3143
  }
3144
3144
  };
3145
3145
  return ce.cancel = function() {
@@ -3331,11 +3331,11 @@ function yn({
3331
3331
  if (H.key === "Tab" && E) {
3332
3332
  const G = document.querySelector(".ina-modal__dialog");
3333
3333
  if (!G) return;
3334
- const K = G.querySelectorAll(
3334
+ const W = G.querySelectorAll(
3335
3335
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
3336
3336
  );
3337
- if (K.length === 0) return;
3338
- const ae = K[0], ce = K[K.length - 1];
3337
+ if (W.length === 0) return;
3338
+ const ae = W[0], ce = W[W.length - 1];
3339
3339
  H.shiftKey ? document.activeElement === ae && (H.preventDefault(), ce.focus()) : document.activeElement === ce && (H.preventDefault(), ae.focus());
3340
3340
  }
3341
3341
  };
@@ -3825,11 +3825,11 @@ function as({
3825
3825
  }, [e]), oe(() => {
3826
3826
  T.current ? T.current = !1 : t > 0 && r && r(f);
3827
3827
  }, [f, t, r]);
3828
- const $ = (K) => {
3829
- const ae = K.target.value;
3828
+ const $ = (W) => {
3829
+ const ae = W.target.value;
3830
3830
  u != null && ae.length > u || (C(ae), a(ae));
3831
- }, Y = (K) => {
3832
- E == null || E(K);
3831
+ }, Y = (W) => {
3832
+ E == null || E(W);
3833
3833
  }, P = () => {
3834
3834
  C(""), a(""), r && r("");
3835
3835
  }, V = c !== "neutral" && b != null ? b : l, H = (A == null ? void 0 : A.id) || (A == null ? void 0 : A.name) || String(s).toLowerCase(), G = `${H}-status`;
@@ -3878,8 +3878,8 @@ function as({
3878
3878
  type: "button",
3879
3879
  className: "ina-password-input__clear-button",
3880
3880
  onClick: P,
3881
- onKeyDown: (K) => {
3882
- (K.key === "Enter" || K.key === " ") && (K.preventDefault(), P());
3881
+ onKeyDown: (W) => {
3882
+ (W.key === "Enter" || W.key === " ") && (W.preventDefault(), P());
3883
3883
  },
3884
3884
  "aria-label": "Hapus input",
3885
3885
  children: /* @__PURE__ */ n(Te, { size: 16 })
@@ -3890,9 +3890,9 @@ function as({
3890
3890
  {
3891
3891
  type: "button",
3892
3892
  className: "ina-password-input__toggle-button",
3893
- onClick: () => _((K) => !K),
3894
- onKeyDown: (K) => {
3895
- (K.key === "Enter" || K.key === " ") && (K.preventDefault(), _((ae) => !ae));
3893
+ onClick: () => _((W) => !W),
3894
+ onKeyDown: (W) => {
3895
+ (W.key === "Enter" || W.key === " ") && (W.preventDefault(), _((ae) => !ae));
3896
3896
  },
3897
3897
  "aria-label": k ? "Sembunyikan password" : "Tampilkan password",
3898
3898
  children: k ? /* @__PURE__ */ n(Mn, { size: 20 }) : /* @__PURE__ */ n(Cn, { size: 20 })
@@ -4498,7 +4498,7 @@ function rs({
4498
4498
  }) {
4499
4499
  const C = Fe(() => A || `phone-input-${Math.random().toString(36).substr(2, 9)}`, [A]), [k, _] = Z(a), [f, T] = Z(!1), [$, Y] = Z(""), [P, V] = Z(
4500
4500
  p.find((ee) => ee.code === m) || p[0]
4501
- ), H = le(null), G = le(null), K = le(null), ae = Fe(() => `${C}-helper`, [C]), ce = (ee) => {
4501
+ ), H = le(null), G = le(null), W = le(null), ae = Fe(() => `${C}-helper`, [C]), ce = (ee) => {
4502
4502
  const de = ee.replace(/\D/g, "");
4503
4503
  return de.length > 7 ? de.replace(/^(\d{3})(\d{4})(.*)/, "$1-$2-$3") : de.length > 3 ? de.replace(/^(\d{3})(.*)/, "$1-$2") : de;
4504
4504
  };
@@ -4512,7 +4512,7 @@ function rs({
4512
4512
  a.startsWith(ee) && (de = a.substring(ee.length)), _(ce(de));
4513
4513
  }, [a, P.dialCode]), oe(() => {
4514
4514
  const ee = (de) => {
4515
- K.current && !K.current.contains(de.target) && T(!1);
4515
+ W.current && !W.current.contains(de.target) && T(!1);
4516
4516
  };
4517
4517
  return document.addEventListener("mousedown", ee), () => {
4518
4518
  document.removeEventListener("mousedown", ee);
@@ -4541,7 +4541,7 @@ function rs({
4541
4541
  var de;
4542
4542
  (de = H.current) == null || de.focus();
4543
4543
  }, 0);
4544
- }, W = (ee) => {
4544
+ }, K = (ee) => {
4545
4545
  const _e = ee.target.value.replace(/\D/g, ""), ie = ce(_e);
4546
4546
  _(ie);
4547
4547
  let J = _e;
@@ -4569,7 +4569,7 @@ function rs({
4569
4569
  N && /* @__PURE__ */ n("span", { className: "ina-text-field__required", children: "*" })
4570
4570
  ] }),
4571
4571
  /* @__PURE__ */ w("div", { className: q, children: [
4572
- /* @__PURE__ */ w("div", { className: "ina-phone-input__country-selector", ref: K, children: [
4572
+ /* @__PURE__ */ w("div", { className: "ina-phone-input__country-selector", ref: W, children: [
4573
4573
  /* @__PURE__ */ w(
4574
4574
  "button",
4575
4575
  {
@@ -4679,7 +4679,7 @@ function rs({
4679
4679
  disabled: h,
4680
4680
  readOnly: u,
4681
4681
  className: "ina-phone-input__input",
4682
- onChange: W,
4682
+ onChange: K,
4683
4683
  "aria-describedby": Q ? ae : void 0
4684
4684
  }
4685
4685
  ),
@@ -4806,14 +4806,14 @@ const is = ({
4806
4806
  disabled: V = !1,
4807
4807
  showPreviewValue: H = !0,
4808
4808
  searchable: G = !0,
4809
- onSelectedRawChange: K,
4809
+ onSelectedRawChange: W,
4810
4810
  label: ae,
4811
4811
  required: ce,
4812
4812
  selectionTitle: te,
4813
4813
  mandatorySelected: X = !1
4814
4814
  }) => {
4815
4815
  var x;
4816
- const [O, W] = Z(!1), [B, se] = Z(""), [q, j] = Z(-1), Q = le(null), ee = le(null), de = le([]), _e = le(null), ie = le(/* @__PURE__ */ new Map()), J = Y !== void 0, he = J ? Y : B;
4816
+ const [O, K] = Z(!1), [B, se] = Z(""), [q, j] = Z(-1), Q = le(null), ee = le(null), de = le([]), _e = le(null), ie = le(/* @__PURE__ */ new Map()), J = Y !== void 0, he = J ? Y : B;
4817
4817
  oe(() => (_e.current && clearTimeout(_e.current), _ && he !== "" ? _e.current = setTimeout(() => {
4818
4818
  _(he);
4819
4819
  }, f) : _ && he === "" && _(""), () => {
@@ -4822,7 +4822,7 @@ const is = ({
4822
4822
  J && Y !== B && se(Y);
4823
4823
  }, [Y, J, B]), oe(() => {
4824
4824
  const v = (g) => {
4825
- Q.current && !Q.current.contains(g.target) && (W(!1), j(-1), N == null || N());
4825
+ Q.current && !Q.current.contains(g.target) && (K(!1), j(-1), N == null || N());
4826
4826
  };
4827
4827
  return document.addEventListener("mousedown", v), () => document.removeEventListener("mousedown", v);
4828
4828
  }, [N, J, P]), oe(() => () => {
@@ -4838,7 +4838,7 @@ const is = ({
4838
4838
  return g !== null ? { label: g, value: v } : e.find((re) => re.value === v) || null;
4839
4839
  };
4840
4840
  oe(() => {
4841
- if (K) {
4841
+ if (W) {
4842
4842
  let v = null;
4843
4843
  if (h) {
4844
4844
  if (fe.length > 0) {
@@ -4847,7 +4847,7 @@ const is = ({
4847
4847
  }
4848
4848
  } else
4849
4849
  pe != null && pe !== "" && (v = be(pe));
4850
- K(v);
4850
+ W(v);
4851
4851
  }
4852
4852
  }, [a, h, e]), oe(() => {
4853
4853
  const v = ie.current;
@@ -4984,11 +4984,11 @@ const is = ({
4984
4984
  V && "ina-select-dropdown__trigger-icon--disabled"
4985
4985
  ), R = () => h || O ? he : pe != null && pe !== "" && Ce(pe) || "", L = () => {
4986
4986
  var g;
4987
- !O && !V && W(!0);
4987
+ !O && !V && K(!0);
4988
4988
  const v = (g = Q.current) == null ? void 0 : g.querySelector("input");
4989
4989
  v && v.focus();
4990
4990
  }, z = (v) => {
4991
- O || W(!0), Ne(v);
4991
+ O || K(!0), Ne(v);
4992
4992
  }, d = (v) => {
4993
4993
  var g, U;
4994
4994
  if (!(V || v.disabled))
@@ -5009,18 +5009,18 @@ const is = ({
5009
5009
  } else {
5010
5010
  if (v.value === pe) {
5011
5011
  if (X) {
5012
- W(!1), j(-1);
5012
+ K(!1), j(-1);
5013
5013
  return;
5014
5014
  }
5015
5015
  ie.current.delete(v.value), t(null, v);
5016
5016
  } else
5017
5017
  ie.current.set(v.value, v.label), t(v.value, v);
5018
- W(!1), j(-1), J ? P == null || P("") : se(""), N == null || N();
5018
+ K(!1), j(-1), J ? P == null || P("") : se(""), N == null || N();
5019
5019
  }
5020
5020
  }, D = (v) => {
5021
5021
  v.key === "ArrowDown" ? (v.preventDefault(), O ? j(
5022
5022
  (g) => g < ke.length - 1 ? g + 1 : g
5023
- ) : (W(!0), j(0))) : v.key === "ArrowUp" ? (v.preventDefault(), j((g) => g > 0 ? g - 1 : g)) : v.key === "Enter" ? (v.preventDefault(), O && q >= 0 && q < ke.length && d(ke[q])) : v.key === "Escape" && (v.preventDefault(), W(!1), j(-1));
5023
+ ) : (K(!0), j(0))) : v.key === "ArrowUp" ? (v.preventDefault(), j((g) => g > 0 ? g - 1 : g)) : v.key === "Enter" ? (v.preventDefault(), O && q >= 0 && q < ke.length && d(ke[q])) : v.key === "Escape" && (v.preventDefault(), K(!1), j(-1));
5024
5024
  };
5025
5025
  return /* @__PURE__ */ w(
5026
5026
  "div",
@@ -5387,30 +5387,30 @@ function En({
5387
5387
  }) {
5388
5388
  const T = () => k != null && k.enableXssProtection ? Xe(e).sanitized : e, [$, Y] = Z(T()), [P] = ht($, r), V = le(!0);
5389
5389
  oe(() => {
5390
- let W = e;
5390
+ let K = e;
5391
5391
  if (k != null && k.enableXssProtection) {
5392
5392
  const B = Xe(e);
5393
5393
  B.isValid || (k.logViolations && console.warn(
5394
5394
  "TextField security violation on value change:",
5395
5395
  B.threats
5396
- ), k.onSecurityViolation && k.onSecurityViolation(B.threats, e), W = B.sanitized);
5396
+ ), k.onSecurityViolation && k.onSecurityViolation(B.threats, e), K = B.sanitized);
5397
5397
  }
5398
- Y(W);
5398
+ Y(K);
5399
5399
  }, [e, k]), oe(() => {
5400
5400
  V.current ? V.current = !1 : r > 0 && i && i(P);
5401
5401
  }, [P, r, i]);
5402
- const H = (W) => {
5403
- let B = W.target.value;
5402
+ const H = (K) => {
5403
+ let B = K.target.value;
5404
5404
  if (!(m != null && B.length > m)) {
5405
5405
  if (k != null && k.enableXssProtection) {
5406
5406
  const se = Xe(B);
5407
5407
  se.isValid || (k.logViolations && console.warn("TextField security violation:", se.threats), k.onSecurityViolation && k.onSecurityViolation(se.threats, B), B = se.sanitized);
5408
5408
  }
5409
- Y(B), a(B), t == null || t(W);
5409
+ Y(B), a(B, K), t == null || t(K);
5410
5410
  }
5411
- }, G = (W) => {
5412
- _ == null || _(W);
5413
- }, K = () => {
5411
+ }, G = (K) => {
5412
+ _ == null || _(K);
5413
+ }, W = () => {
5414
5414
  Y(""), a(""), i && i(""), E == null || E();
5415
5415
  }, ae = S(
5416
5416
  "ina-text-field__wrapper",
@@ -5422,17 +5422,10 @@ function En({
5422
5422
  `ina-text-field__helper-text--${h}`
5423
5423
  ), te = h !== "neutral" && u != null ? u : b, X = (f == null ? void 0 : f.id) || (f == null ? void 0 : f.name) || String(c).toLowerCase(), O = `${X}-status`;
5424
5424
  return /* @__PURE__ */ w("div", { className: "ina-text-field", children: [
5425
- c && /* @__PURE__ */ w(
5426
- "label",
5427
- {
5428
- className: "ina-text-field__label",
5429
- htmlFor: String(X),
5430
- children: [
5431
- c,
5432
- f.required && /* @__PURE__ */ n("span", { className: "ina-text-field__required", children: "*" })
5433
- ]
5434
- }
5435
- ),
5425
+ c && /* @__PURE__ */ w("label", { className: "ina-text-field__label", htmlFor: String(X), children: [
5426
+ c,
5427
+ f.required && /* @__PURE__ */ n("span", { className: "ina-text-field__required", children: "*" })
5428
+ ] }),
5436
5429
  /* @__PURE__ */ w("div", { className: ae, children: [
5437
5430
  s && /* @__PURE__ */ n("div", { className: "ina-text-field__prefix-icon", children: s }),
5438
5431
  /* @__PURE__ */ n(
@@ -5456,9 +5449,9 @@ function En({
5456
5449
  {
5457
5450
  type: "button",
5458
5451
  className: "ina-text-field__clear-button",
5459
- onClick: K,
5460
- onKeyDown: (W) => {
5461
- (W.key === "Enter" || W.key === " ") && (W.preventDefault(), K());
5452
+ onClick: W,
5453
+ onKeyDown: (K) => {
5454
+ (K.key === "Enter" || K.key === " ") && (K.preventDefault(), W());
5462
5455
  },
5463
5456
  "aria-label": "Hapus input",
5464
5457
  children: /* @__PURE__ */ n(Te, { size: 16, className: "ina-text-field__clear-icon" })
@@ -5543,7 +5536,7 @@ function ds({
5543
5536
  emptyState: f = "No data found",
5544
5537
  showPagination: T = !0
5545
5538
  }) {
5546
- const [$, Y] = Z([]), [P, V] = Z(0), [H, G] = Z(!1), K = le(null), ae = ma(), [ce, te] = Z(t), [X, O] = Z(r), [W, B] = Z(s), [se, q] = Z(
5539
+ const [$, Y] = Z([]), [P, V] = Z(0), [H, G] = Z(!1), W = le(null), ae = ma(), [ce, te] = Z(t), [X, O] = Z(r), [K, B] = Z(s), [se, q] = Z(
5547
5540
  l
5548
5541
  ), [j, Q] = Z(""), [ee, de] = Z(""), [_e, ie] = Z({}), J = Object.values(_e).every(Boolean), he = Object.values(_e).some(Boolean), [ve, fe] = Z({}), [pe, Ce] = Z(null), be = Math.ceil(P / X);
5549
5542
  oe(() => {
@@ -5554,7 +5547,7 @@ function ds({
5554
5547
  const ue = await a({
5555
5548
  page: ce,
5556
5549
  pageSize: X,
5557
- sortField: W,
5550
+ sortField: K,
5558
5551
  sortOrder: se,
5559
5552
  searchTerm: j
5560
5553
  });
@@ -5568,7 +5561,7 @@ function ds({
5568
5561
  return re(), () => {
5569
5562
  g.abort();
5570
5563
  };
5571
- }, [ce, X, W, se, j, a]), oe(() => {
5564
+ }, [ce, X, K, se, j, a]), oe(() => {
5572
5565
  te(t);
5573
5566
  }, [t]);
5574
5567
  const we = () => {
@@ -5597,7 +5590,7 @@ function ds({
5597
5590
  return delete re[g], re;
5598
5591
  }), Ce(null);
5599
5592
  }, o = (g, U) => {
5600
- g.sortable && (W === g.accessor && se === U ? (B(null), q(null)) : (B(g.accessor), q(U)), te(1));
5593
+ g.sortable && (K === g.accessor && se === U ? (B(null), q(null)) : (B(g.accessor), q(U)), te(1));
5601
5594
  }, y = (g) => de(g), M = (g) => {
5602
5595
  g.key === "Enter" && (g.preventDefault(), te(1), Q(ee.trim()));
5603
5596
  }, R = () => {
@@ -5609,7 +5602,7 @@ function ds({
5609
5602
  };
5610
5603
  oe(() => {
5611
5604
  const g = (U) => {
5612
- K.current && !K.current.contains(U.target) && Ce(null);
5605
+ W.current && !W.current.contains(U.target) && Ce(null);
5613
5606
  };
5614
5607
  return document.addEventListener("mousedown", g), () => {
5615
5608
  document.removeEventListener("mousedown", g);
@@ -5647,7 +5640,7 @@ function ds({
5647
5640
  className: "ina-table__progress-bar"
5648
5641
  }
5649
5642
  ),
5650
- /* @__PURE__ */ w("table", { ref: K, className: D, children: [
5643
+ /* @__PURE__ */ w("table", { ref: W, className: D, children: [
5651
5644
  /* @__PURE__ */ n("thead", { className: x, children: /* @__PURE__ */ w("tr", { children: [
5652
5645
  N && /* @__PURE__ */ n("th", { className: "ina-table__header-cell", children: /* @__PURE__ */ n(
5653
5646
  Wt,
@@ -5660,7 +5653,7 @@ function ds({
5660
5653
  }
5661
5654
  ) }),
5662
5655
  e.map((g, U) => {
5663
- const re = W === g.accessor;
5656
+ const re = K === g.accessor;
5664
5657
  return /* @__PURE__ */ n(
5665
5658
  "th",
5666
5659
  {
@@ -5870,7 +5863,7 @@ function us({
5870
5863
  let ee = Math.floor(Q / j);
5871
5864
  I && (ee = Math.min(ee, I)), G(Math.max(ee, p));
5872
5865
  }, [T, p, I]);
5873
- const K = (q) => {
5866
+ const W = (q) => {
5874
5867
  let j = q.target.value;
5875
5868
  if (!(u != null && j.length > u)) {
5876
5869
  if (C != null && C.enableXssProtection) {
@@ -5890,7 +5883,7 @@ function us({
5890
5883
  ), O = S(
5891
5884
  "ina-text-area__helper-text",
5892
5885
  `ina-text-area__helper-text--${b}`
5893
- ), W = b !== "neutral" && h != null ? h : c, B = (_ == null ? void 0 : _.id) || (_ == null ? void 0 : _.name) || String(l).toLowerCase(), se = `${B}-status`;
5886
+ ), K = b !== "neutral" && h != null ? h : c, B = (_ == null ? void 0 : _.id) || (_ == null ? void 0 : _.name) || String(l).toLowerCase(), se = `${B}-status`;
5894
5887
  return /* @__PURE__ */ w("div", { className: te, children: [
5895
5888
  l && /* @__PURE__ */ w(
5896
5889
  "label",
@@ -5914,12 +5907,12 @@ function us({
5914
5907
  rows: H,
5915
5908
  className: "ina-text-area__input",
5916
5909
  value: T,
5917
- onChange: K,
5910
+ onChange: W,
5918
5911
  onBlur: ae,
5919
5912
  placeholder: E,
5920
5913
  disabled: A,
5921
5914
  maxLength: u,
5922
- "aria-describedby": W ? se : void 0
5915
+ "aria-describedby": K ? se : void 0
5923
5916
  }
5924
5917
  ),
5925
5918
  m && T !== "" && !A && /* @__PURE__ */ n(
@@ -5937,7 +5930,7 @@ function us({
5937
5930
  ),
5938
5931
  s && /* @__PURE__ */ n("div", { className: "ina-text-area__suffix-icon", children: s })
5939
5932
  ] }),
5940
- W && /* @__PURE__ */ n("div", { id: se, className: O, children: W }),
5933
+ K && /* @__PURE__ */ n("div", { id: se, className: O, children: K }),
5941
5934
  N && u != null && /* @__PURE__ */ w("div", { className: "ina-text-area__char-count", children: [
5942
5935
  T.length,
5943
5936
  "/",
@@ -6110,9 +6103,9 @@ const Vn = ({ size: e = 24, stroke: a = 2, ...t }) => /* @__PURE__ */ w(
6110
6103
  required: $,
6111
6104
  ...Y
6112
6105
  }, P) => {
6113
- const [V, H] = Z(!1), [G, K] = Z(
6106
+ const [V, H] = Z(!1), [G, W] = Z(
6114
6107
  e || h || ""
6115
- ), [ae, ce] = Z(null), [te, X] = Z(null), [O, W] = Z(!1), B = le(null), se = le(null), q = le(null);
6108
+ ), [ae, ce] = Z(null), [te, X] = Z(null), [O, K] = Z(!1), B = le(null), se = le(null), q = le(null);
6116
6109
  va(P, () => ({
6117
6110
  focus: () => {
6118
6111
  var o;
@@ -6185,12 +6178,12 @@ const Vn = ({ size: e = 24, stroke: a = 2, ...t }) => /* @__PURE__ */ w(
6185
6178
  }
6186
6179
  return y;
6187
6180
  }, ie = j(G || ""), J = _e("hour"), he = _e("minute"), ve = _e("second"), fe = () => {
6188
- a || V || (H(!0), W(!0), N == null || N(!0), setTimeout(() => {
6181
+ a || V || (H(!0), K(!0), N == null || N(!0), setTimeout(() => {
6189
6182
  var o;
6190
6183
  return (o = se.current) == null ? void 0 : o.focus();
6191
6184
  }, 0));
6192
6185
  }, pe = () => {
6193
- H(!1), W(!1), ce(null), X(null), N == null || N(!1);
6186
+ H(!1), K(!1), ce(null), X(null), N == null || N(!1);
6194
6187
  }, Ce = () => {
6195
6188
  a || (V ? pe() : fe());
6196
6189
  }, be = (o, y) => {
@@ -6215,7 +6208,7 @@ const Vn = ({ size: e = 24, stroke: a = 2, ...t }) => /* @__PURE__ */ w(
6215
6208
  L,
6216
6209
  p ? z : void 0
6217
6210
  );
6218
- K(d), u == null || u(d);
6211
+ W(d), u == null || u(d);
6219
6212
  }, we = (o) => {
6220
6213
  let y = o.target.value;
6221
6214
  const M = p ? /[0-9: apm]/gi : /[0-9:]/g;
@@ -6226,12 +6219,12 @@ const Vn = ({ size: e = 24, stroke: a = 2, ...t }) => /* @__PURE__ */ w(
6226
6219
  d ? L += " " + d[0].toUpperCase() : y.includes(" ") && (L += " ");
6227
6220
  }
6228
6221
  let z = 5;
6229
- I && (z = 8), p && (z += 3), L = L.slice(0, z), o.target.value = L, K(L), u == null || u(L);
6222
+ I && (z = 8), p && (z += 3), L = L.slice(0, z), o.target.value = L, W(L), u == null || u(L);
6230
6223
  }, ke = () => {
6231
- K(""), u == null || u("");
6224
+ W(""), u == null || u("");
6232
6225
  };
6233
6226
  oe(() => {
6234
- h !== void 0 && h !== G && K(h);
6227
+ h !== void 0 && h !== G && W(h);
6235
6228
  }, [h]), oe(() => {
6236
6229
  const o = (y) => {
6237
6230
  B.current && !B.current.contains(y.target) && pe();
@@ -6374,7 +6367,7 @@ const Vn = ({ size: e = 24, stroke: a = 2, ...t }) => /* @__PURE__ */ w(
6374
6367
  o.stopPropagation(), fe();
6375
6368
  },
6376
6369
  onFocus: () => {
6377
- O || fe(), W(!1);
6370
+ O || fe(), K(!1);
6378
6371
  },
6379
6372
  placeholder: l,
6380
6373
  disabled: a,
@@ -6474,7 +6467,7 @@ const Vn = ({ size: e = 24, stroke: a = 2, ...t }) => /* @__PURE__ */ w(
6474
6467
  I ? o.getSeconds() : 0,
6475
6468
  o.getHours() >= 12 ? "PM" : "AM"
6476
6469
  ) : y;
6477
- K(R), u == null || u(R), pe();
6470
+ W(R), u == null || u(R), pe();
6478
6471
  },
6479
6472
  children: "Sekarang"
6480
6473
  }
@@ -7357,8 +7350,8 @@ var Je = (e) => Se(e) && !mt(e) ? e : {
7357
7350
  return {};
7358
7351
  const k = c ? c[0] : l, _ = (G) => {
7359
7352
  i && k.reportValidity && (k.setCustomValidity(Pe(G) ? "" : G || ""), k.reportValidity());
7360
- }, f = {}, T = Ot(l), $ = st(l), Y = T || $, P = (A || Ht(l)) && xe(l.value) && xe(C) || pt(l) && l.value === "" || C === "" || Array.isArray(C) && !C.length, V = jn.bind(null, E, r, f), H = (G, K, ae, ce = We.maxLength, te = We.minLength) => {
7361
- const X = G ? K : ae;
7353
+ }, f = {}, T = Ot(l), $ = st(l), Y = T || $, P = (A || Ht(l)) && xe(l.value) && xe(C) || pt(l) && l.value === "" || C === "" || Array.isArray(C) && !C.length, V = jn.bind(null, E, r, f), H = (G, W, ae, ce = We.maxLength, te = We.minLength) => {
7354
+ const X = G ? W : ae;
7362
7355
  f[E] = {
7363
7356
  type: G ? ce : te,
7364
7357
  message: X,
@@ -7367,60 +7360,60 @@ var Je = (e) => Se(e) && !mt(e) ? e : {
7367
7360
  };
7368
7361
  };
7369
7362
  if (s ? !Array.isArray(C) || !C.length : b && (!Y && (P || Be(C)) || Pe(C) && !C || $ && !Ba(c).isValid || T && !Ha(c).isValid)) {
7370
- const { value: G, message: K } = He(b) ? { value: !!b, message: b } : Je(b);
7363
+ const { value: G, message: W } = He(b) ? { value: !!b, message: b } : Je(b);
7371
7364
  if (G && (f[E] = {
7372
7365
  type: We.required,
7373
- message: K,
7366
+ message: W,
7374
7367
  ref: k,
7375
- ...V(We.required, K)
7368
+ ...V(We.required, W)
7376
7369
  }, !r))
7377
- return _(K), f;
7370
+ return _(W), f;
7378
7371
  }
7379
7372
  if (!P && (!Be(N) || !Be(m))) {
7380
- let G, K;
7373
+ let G, W;
7381
7374
  const ae = Je(m), ce = Je(N);
7382
7375
  if (!Be(C) && !isNaN(C)) {
7383
7376
  const te = l.valueAsNumber || C && +C;
7384
- Be(ae.value) || (G = te > ae.value), Be(ce.value) || (K = te < ce.value);
7377
+ Be(ae.value) || (G = te > ae.value), Be(ce.value) || (W = te < ce.value);
7385
7378
  } else {
7386
- const te = l.valueAsDate || new Date(C), X = (B) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + B), O = l.type == "time", W = l.type == "week";
7387
- He(ae.value) && C && (G = O ? X(C) > X(ae.value) : W ? C > ae.value : te > new Date(ae.value)), He(ce.value) && C && (K = O ? X(C) < X(ce.value) : W ? C < ce.value : te < new Date(ce.value));
7379
+ const te = l.valueAsDate || new Date(C), X = (B) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + B), O = l.type == "time", K = l.type == "week";
7380
+ He(ae.value) && C && (G = O ? X(C) > X(ae.value) : K ? C > ae.value : te > new Date(ae.value)), He(ce.value) && C && (W = O ? X(C) < X(ce.value) : K ? C < ce.value : te < new Date(ce.value));
7388
7381
  }
7389
- if ((G || K) && (H(!!G, ae.message, ce.message, We.max, We.min), !r))
7382
+ if ((G || W) && (H(!!G, ae.message, ce.message, We.max, We.min), !r))
7390
7383
  return _(f[E].message), f;
7391
7384
  }
7392
7385
  if ((h || u) && !P && (He(C) || s && Array.isArray(C))) {
7393
- const G = Je(h), K = Je(u), ae = !Be(G.value) && C.length > +G.value, ce = !Be(K.value) && C.length < +K.value;
7394
- if ((ae || ce) && (H(ae, G.message, K.message), !r))
7386
+ const G = Je(h), W = Je(u), ae = !Be(G.value) && C.length > +G.value, ce = !Be(W.value) && C.length < +W.value;
7387
+ if ((ae || ce) && (H(ae, G.message, W.message), !r))
7395
7388
  return _(f[E].message), f;
7396
7389
  }
7397
7390
  if (p && !P && He(C)) {
7398
- const { value: G, message: K } = Je(p);
7391
+ const { value: G, message: W } = Je(p);
7399
7392
  if (mt(G) && !C.match(G) && (f[E] = {
7400
7393
  type: We.pattern,
7401
- message: K,
7394
+ message: W,
7402
7395
  ref: l,
7403
- ...V(We.pattern, K)
7396
+ ...V(We.pattern, W)
7404
7397
  }, !r))
7405
- return _(K), f;
7398
+ return _(W), f;
7406
7399
  }
7407
7400
  if (I) {
7408
7401
  if (Re(I)) {
7409
- const G = await I(C, t), K = la(G, k);
7410
- if (K && (f[E] = {
7411
- ...K,
7412
- ...V(We.validate, K.message)
7402
+ const G = await I(C, t), W = la(G, k);
7403
+ if (W && (f[E] = {
7404
+ ...W,
7405
+ ...V(We.validate, W.message)
7413
7406
  }, !r))
7414
- return _(K.message), f;
7407
+ return _(W.message), f;
7415
7408
  } else if (Se(I)) {
7416
7409
  let G = {};
7417
- for (const K in I) {
7410
+ for (const W in I) {
7418
7411
  if (!$e(G) && !r)
7419
7412
  break;
7420
- const ae = la(await I[K](C, t), k, K);
7413
+ const ae = la(await I[W](C, t), k, W);
7421
7414
  ae && (G = {
7422
7415
  ...ae,
7423
- ...V(K, ae.message)
7416
+ ...V(W, ae.message)
7424
7417
  }, _(ae.message), r && (f[E] = G));
7425
7418
  }
7426
7419
  if (!$e(G) && (f[E] = {
@@ -7606,7 +7599,7 @@ function lr(e = {}) {
7606
7599
  y && (y._f.refs ? y._f.refs.every((M) => !kt(M)) : !kt(y._f.ref)) && ie(o);
7607
7600
  }
7608
7601
  c.unMount = /* @__PURE__ */ new Set();
7609
- }, G = (o, y) => !a.disabled && (o && y && Me(s, o, y), !Ue(se(), i)), K = (o, y, M) => It(o, c, {
7602
+ }, G = (o, y) => !a.disabled && (o && y && Me(s, o, y), !Ue(se(), i)), W = (o, y, M) => It(o, c, {
7610
7603
  ...l.mount ? s : xe(y) ? i : He(o) ? { [o]: y } : y
7611
7604
  }, M, y), ae = (o) => $t(ne(l.mount ? s : i, o, a.shouldUnregister ? ne(i, o, []) : [])), ce = (o, y, M = {}) => {
7612
7605
  const R = ne(r, o);
@@ -7673,7 +7666,7 @@ function lr(e = {}) {
7673
7666
  F([M], !0), x = (await oa(L, c.disabled, s, I, a.shouldUseNativeValidation))[M], F([M]), z(g), R && (x ? v = !1 : (N.isValid || m.isValid) && (v = await V(r, !0)));
7674
7667
  R && (L._f.deps && (!Array.isArray(L._f.deps) || L._f.deps.length > 0) && B(L._f.deps), $(M, v, x, ye));
7675
7668
  }
7676
- }, W = (o, y) => {
7669
+ }, K = (o, y) => {
7677
7670
  if (ne(t.errors, y) && o.focus)
7678
7671
  return o.focus(), 1;
7679
7672
  }, B = async (o, y = {}) => {
@@ -7690,7 +7683,7 @@ function lr(e = {}) {
7690
7683
  ...!He(o) || (N.isValid || m.isValid) && M !== t.isValid ? {} : { name: o },
7691
7684
  ...a.resolver || !o ? { isValid: M } : {},
7692
7685
  errors: t.errors
7693
- }), y.shouldFocus && !R && tt(r, W, o ? L : c.mount), R;
7686
+ }), y.shouldFocus && !R && tt(r, K, o ? L : c.mount), R;
7694
7687
  }, se = (o, y) => {
7695
7688
  let M = {
7696
7689
  ...l.mount ? s : i
@@ -7718,8 +7711,8 @@ function lr(e = {}) {
7718
7711
  isValid: !1
7719
7712
  }), M && M.shouldFocus && R && R.focus && R.focus();
7720
7713
  }, ee = (o, y) => Re(o) ? p.state.subscribe({
7721
- next: (M) => "values" in M && o(K(void 0, y), M)
7722
- }) : K(o, y, !0), de = (o) => p.state.subscribe({
7714
+ next: (M) => "values" in M && o(W(void 0, y), M)
7715
+ }) : W(o, y, !0), de = (o) => p.state.subscribe({
7723
7716
  next: (y) => {
7724
7717
  ar(o.name, y.name, o.exact) && tr(y, o.formState || N, Ne, o.reRenderRoot) && o.callback({
7725
7718
  values: { ...s },
@@ -7801,7 +7794,7 @@ function lr(e = {}) {
7801
7794
  M = ne(r, o, {}), M._f && (M._f.mount = !1), (a.shouldUnregister || y.shouldUnregister) && !(Ta(c.array, o) && l.action) && c.unMount.add(o);
7802
7795
  }
7803
7796
  };
7804
- }, ve = () => a.shouldFocusError && tt(r, W, c.mount), fe = (o) => {
7797
+ }, ve = () => a.shouldFocusError && tt(r, K, c.mount), fe = (o) => {
7805
7798
  Pe(o) && (p.state.next({ disabled: o }), tt(r, (y, M) => {
7806
7799
  const R = ne(r, M);
7807
7800
  R && (y.disabled = R._f.disabled || o, Array.isArray(R._f.refs) && R._f.refs.forEach((L) => {
@@ -7925,7 +7918,7 @@ function lr(e = {}) {
7925
7918
  _runSchema: Y,
7926
7919
  _updateIsValidating: F,
7927
7920
  _focusError: ve,
7928
- _getWatch: K,
7921
+ _getWatch: W,
7929
7922
  _getDirty: G,
7930
7923
  _setValid: A,
7931
7924
  _setFieldArray: C,
@@ -8139,7 +8132,7 @@ function ca({
8139
8132
  };
8140
8133
  return J(), window.addEventListener("resize", J), () => window.removeEventListener("resize", J);
8141
8134
  }, [s]);
8142
- const T = Fe(() => Math.floor(k / _) * _, [k, _]), [$, Y] = Z(h), [P, V] = Z(null), [H, G] = Z(!1), [K, ae] = Z({}), ce = le(null), te = le(null), X = le(null), O = me(
8135
+ const T = Fe(() => Math.floor(k / _) * _, [k, _]), [$, Y] = Z(h), [P, V] = Z(null), [H, G] = Z(!1), [W, ae] = Z({}), ce = le(null), te = le(null), X = le(null), O = me(
8143
8136
  (J) => {
8144
8137
  const he = (/* @__PURE__ */ new Date()).getFullYear();
8145
8138
  if (N && J < he || m && J > he)
@@ -8162,7 +8155,7 @@ function ca({
8162
8155
  p,
8163
8156
  I
8164
8157
  ]
8165
- ), W = Fe(() => {
8158
+ ), K = Fe(() => {
8166
8159
  const J = [], he = T, ve = Math.min(T + _ - 1, i);
8167
8160
  for (let fe = he; fe <= ve; fe++)
8168
8161
  fe >= r && J.push(fe);
@@ -8311,7 +8304,7 @@ function ca({
8311
8304
  ie,
8312
8305
  H && "ina-year-picker__panel--right-aligned"
8313
8306
  ),
8314
- style: K,
8307
+ style: W,
8315
8308
  children: [
8316
8309
  /* @__PURE__ */ w("div", { className: "ina-year-picker__header", children: [
8317
8310
  /* @__PURE__ */ n(
@@ -8356,8 +8349,8 @@ function ca({
8356
8349
  }
8357
8350
  )
8358
8351
  ] }),
8359
- /* @__PURE__ */ n("div", { className: "ina-year-picker__grid", children: W.map((J, he) => {
8360
- const ve = J === k, fe = J === P, pe = O(J), Ce = ve || !W.includes(k) && he === 0;
8352
+ /* @__PURE__ */ n("div", { className: "ina-year-picker__grid", children: K.map((J, he) => {
8353
+ const ve = J === k, fe = J === P, pe = O(J), Ce = ve || !K.includes(k) && he === 0;
8361
8354
  return /* @__PURE__ */ n(
8362
8355
  "button",
8363
8356
  {
@@ -8461,7 +8454,7 @@ function da({
8461
8454
  ], [b]), C = Fe(() => {
8462
8455
  const q = e ?? a ?? (/* @__PURE__ */ new Date()).getMonth();
8463
8456
  return q == null || isNaN(q) ? (/* @__PURE__ */ new Date()).getMonth() : q;
8464
- }, [e, a]), [k, _] = Z(l), [f, T] = Z(null), [$, Y] = Z(!1), [P, V] = Z({}), H = le(null), G = le(null), K = le(null), ae = me(
8457
+ }, [e, a]), [k, _] = Z(l), [f, T] = Z(null), [$, Y] = Z(!1), [P, V] = Z({}), H = le(null), G = le(null), W = le(null), ae = me(
8465
8458
  (q) => {
8466
8459
  const j = (/* @__PURE__ */ new Date()).getMonth();
8467
8460
  return !!(h && q < j || u && q > j || N !== void 0 && q < N || m !== void 0 && q > m);
@@ -8492,8 +8485,8 @@ function da({
8492
8485
  oe(() => {
8493
8486
  if (k && G.current) {
8494
8487
  const q = () => {
8495
- if (!G.current || !K.current) return;
8496
- const Q = G.current.getBoundingClientRect(), ee = K.current.getBoundingClientRect(), de = window.innerWidth, _e = window.innerHeight, J = ee.width || 240, he = de - Q.right;
8488
+ if (!G.current || !W.current) return;
8489
+ const Q = G.current.getBoundingClientRect(), ee = W.current.getBoundingClientRect(), de = window.innerWidth, _e = window.innerHeight, J = ee.width || 240, he = de - Q.right;
8497
8490
  let ve, fe, pe = !1;
8498
8491
  pe = J > he, pe ? (fe = 0, ve = void 0) : (ve = 0, fe = void 0);
8499
8492
  const Ce = _e - Q.bottom, be = Q.top;
@@ -8516,7 +8509,7 @@ function da({
8516
8509
  setTimeout(q, 0);
8517
8510
  });
8518
8511
  const j = () => {
8519
- G.current && K.current && q();
8512
+ G.current && W.current && q();
8520
8513
  };
8521
8514
  return window.addEventListener("resize", j), window.addEventListener("scroll", j, !0), () => {
8522
8515
  window.removeEventListener("resize", j), window.removeEventListener("scroll", j, !0);
@@ -8530,7 +8523,7 @@ function da({
8530
8523
  if (k)
8531
8524
  return document.addEventListener("mousedown", q), () => document.removeEventListener("mousedown", q);
8532
8525
  }, [k, X]);
8533
- const W = S("ina-month-picker", r), B = S(
8526
+ const K = S("ina-month-picker", r), B = S(
8534
8527
  "ina-month-picker__trigger",
8535
8528
  `ina-month-picker__trigger--size-${A}`,
8536
8529
  i && "ina-month-picker__trigger--disabled",
@@ -8541,7 +8534,7 @@ function da({
8541
8534
  );
8542
8535
  return oe(() => {
8543
8536
  _(l);
8544
- }, [l]), /* @__PURE__ */ w("div", { ref: H, className: W, children: [
8537
+ }, [l]), /* @__PURE__ */ w("div", { ref: H, className: K, children: [
8545
8538
  /* @__PURE__ */ w(
8546
8539
  "button",
8547
8540
  {
@@ -8599,7 +8592,7 @@ function da({
8599
8592
  k && /* @__PURE__ */ n(
8600
8593
  "div",
8601
8594
  {
8602
- ref: K,
8595
+ ref: W,
8603
8596
  className: S(
8604
8597
  se,
8605
8598
  $ && "ina-month-picker__panel--right-aligned"
@@ -8746,7 +8739,7 @@ function ks({
8746
8739
  const [f, T] = Z(!1), [$, Y] = Z(/* @__PURE__ */ new Date()), [P, V] = Z(() => {
8747
8740
  const d = /* @__PURE__ */ new Date();
8748
8741
  return d.setMonth(d.getMonth() + 1), d;
8749
- }), [H, G] = Z(null), [K, ae] = Z(!1), [ce, te] = Z(c), [X, O] = Z(null), W = le(`datepicker-${Math.random().toString(36).slice(2)}`), B = le(null), se = le(null), q = le(null), j = () => {
8742
+ }), [H, G] = Z(null), [W, ae] = Z(!1), [ce, te] = Z(c), [X, O] = Z(null), K = le(`datepicker-${Math.random().toString(36).slice(2)}`), B = le(null), se = le(null), q = le(null), j = () => {
8750
8743
  if (e === "single") {
8751
8744
  const d = ze(a, s);
8752
8745
  return d ? [d] : [];
@@ -9193,7 +9186,7 @@ function ks({
9193
9186
  ),
9194
9187
  style: { width: ce },
9195
9188
  children: [
9196
- !_ && C && /* @__PURE__ */ w("label", { className: "ina-date-picker__label", htmlFor: W.current, children: [
9189
+ !_ && C && /* @__PURE__ */ w("label", { className: "ina-date-picker__label", htmlFor: K.current, children: [
9197
9190
  C,
9198
9191
  k && /* @__PURE__ */ n("span", { className: "ina-date-picker__required", children: "*" })
9199
9192
  ] }),
@@ -9220,7 +9213,7 @@ function ks({
9220
9213
  A && "ina-date-picker__trigger--readonly",
9221
9214
  u
9222
9215
  ),
9223
- id: W.current,
9216
+ id: K.current,
9224
9217
  "aria-haspopup": "grid",
9225
9218
  "aria-expanded": f,
9226
9219
  style: { width: ce },
@@ -9263,7 +9256,7 @@ function ks({
9263
9256
  className: S(
9264
9257
  "ina-date-picker__panel",
9265
9258
  `ina-date-picker__panel--${i.split("-")[0]}`,
9266
- K && !i.includes("left") && !i.includes("right") && "ina-date-picker__panel--right-aligned",
9259
+ W && !i.includes("left") && !i.includes("right") && "ina-date-picker__panel--right-aligned",
9267
9260
  h
9268
9261
  ),
9269
9262
  style: {
@@ -9832,7 +9825,7 @@ function xs({
9832
9825
  className: P,
9833
9826
  onClick: () => A(f.value, f.disabled),
9834
9827
  onKeyDown: (V) => {
9835
- var G, K;
9828
+ var G, W;
9836
9829
  if (Y) return;
9837
9830
  let H;
9838
9831
  if (V.key === "Enter" || V.key === " ")
@@ -9844,7 +9837,7 @@ function xs({
9844
9837
  } else if (V.key === "ArrowUp") {
9845
9838
  for (V.preventDefault(), H = (T - 1 + e.length) % e.length; e[H].disabled && H !== T; )
9846
9839
  H = (H - 1 + e.length) % e.length;
9847
- (K = E.current[H]) == null || K.focus();
9840
+ (W = E.current[H]) == null || W.focus();
9848
9841
  }
9849
9842
  },
9850
9843
  children: f.label