@idds/react 1.5.48 → 1.5.49

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
@@ -602,30 +602,30 @@ function Ms(e) {
602
602
  ), [M, h] = K(0), u = ae(m);
603
603
  u.current = m;
604
604
  const V = de(
605
- (b, y) => {
606
- const w = _.current.size;
607
- return _.current.set(b, w), y && p((R) => c ? R.includes(w) ? R : [...R, w] : R.length === 0 ? [w] : R), w;
605
+ (w, y) => {
606
+ const b = _.current.size;
607
+ return _.current.set(w, b), y && p((R) => c ? R.includes(b) ? R : [...R, b] : R.length === 0 ? [b] : R), b;
608
608
  },
609
609
  [c]
610
- ), S = de((b) => {
611
- const y = _.current.get(b);
610
+ ), S = de((w) => {
611
+ const y = _.current.get(w);
612
612
  if (y !== void 0) {
613
- _.current.delete(b), p((H) => H.filter((q) => q !== y).map((q) => q > y ? q - 1 : q));
614
- const w = /* @__PURE__ */ new Map();
613
+ _.current.delete(w), p((H) => H.filter((q) => q !== y).map((q) => q > y ? q - 1 : q));
614
+ const b = /* @__PURE__ */ new Map();
615
615
  let R = 0;
616
616
  _.current.forEach((H, U) => {
617
- w.set(U, R), R++;
618
- }), _.current = w;
617
+ b.set(U, R), R++;
618
+ }), _.current = b;
619
619
  }
620
620
  }, []), D = de(
621
- (b, y) => {
622
- p((w) => {
621
+ (w, y) => {
622
+ p((b) => {
623
623
  let R;
624
- return c ? y ? w.includes(b) ? R = w : R = [...w, b] : R = w.filter((H) => H !== b) : y ? R = [b] : R = [], h((H) => H + 1), r == null || r(R), R;
624
+ return c ? y ? b.includes(w) ? R = b : R = [...b, w] : R = b.filter((H) => H !== w) : y ? R = [w] : R = [], h((H) => H + 1), r == null || r(R), R;
625
625
  });
626
626
  },
627
627
  [c, r]
628
- ), L = de((b) => u.current.includes(b), []), k = Fe(
628
+ ), L = de((w) => u.current.includes(w), []), k = Fe(
629
629
  () => ({
630
630
  multiple: c,
631
631
  multipleOpen: c,
@@ -668,10 +668,10 @@ function xs(e) {
668
668
  L && (L(h.current), V(-1));
669
669
  };
670
670
  }, [D, L]);
671
- const k = p !== null, b = r !== void 0 || k, y = Fe(() => k && u >= 0 && p ? p.isItemOpen(u) : r !== void 0 ? r : _, [k, u, p, r, _]), w = Fe(() => `accordion-header-${h.current}`, []), R = Fe(() => `accordion-content-${h.current}`, []), H = () => {
671
+ const k = p !== null, w = r !== void 0 || k, y = Fe(() => k && u >= 0 && p ? p.isItemOpen(u) : r !== void 0 ? r : _, [k, u, p, r, _]), b = Fe(() => `accordion-header-${h.current}`, []), R = Fe(() => `accordion-content-${h.current}`, []), H = () => {
672
672
  if (l) return;
673
673
  const q = !y;
674
- k && u >= 0 && p ? p.handleItemToggle(u, q) : b || m(q), i == null || i(q);
674
+ k && u >= 0 && p ? p.handleItemToggle(u, q) : w || m(q), i == null || i(q);
675
675
  }, U = I("ina-accordion", c, {
676
676
  "ina-accordion--disabled": l,
677
677
  "ina-accordion--open": y
@@ -681,7 +681,7 @@ function xs(e) {
681
681
  "button",
682
682
  {
683
683
  type: "button",
684
- id: w,
684
+ id: b,
685
685
  onClick: H,
686
686
  className: "ina-accordion__toggle",
687
687
  "aria-expanded": y,
@@ -720,7 +720,7 @@ function xs(e) {
720
720
  className: I("ina-accordion__content", {
721
721
  "ina-accordion__content--open": y
722
722
  }),
723
- "aria-labelledby": w,
723
+ "aria-labelledby": b,
724
724
  children: /* @__PURE__ */ n("div", { className: "ina-accordion__body", children: t })
725
725
  }
726
726
  )
@@ -818,8 +818,8 @@ const ja = fa(
818
818
  close: () => M(!1),
819
819
  toggle: () => M((k) => !k)
820
820
  })), te(() => {
821
- const k = (b) => {
822
- h.current && !h.current.contains(b.target) && u.current && !u.current.contains(b.target) && M(!1);
821
+ const k = (w) => {
822
+ h.current && !h.current.contains(w.target) && u.current && !u.current.contains(w.target) && M(!1);
823
823
  };
824
824
  return document.addEventListener("mousedown", k), () => {
825
825
  document.removeEventListener("mousedown", k);
@@ -839,8 +839,8 @@ const ja = fa(
839
839
  p && "ina-action-dropdown__menu--visible",
840
840
  i
841
841
  ), L = (k) => {
842
- var b;
843
- k.disabled || ((b = k.onClick) == null || b.call(k), M(!1));
842
+ var w;
843
+ k.disabled || ((w = k.onClick) == null || w.call(k), M(!1));
844
844
  };
845
845
  return /* @__PURE__ */ N(
846
846
  "div",
@@ -862,7 +862,7 @@ const ja = fa(
862
862
  ]
863
863
  }
864
864
  ),
865
- /* @__PURE__ */ n("div", { className: D, children: /* @__PURE__ */ n("ul", { className: "ina-action-dropdown__list", children: a.map((k, b) => /* @__PURE__ */ n("li", { children: /* @__PURE__ */ N(
865
+ /* @__PURE__ */ n("div", { className: D, children: /* @__PURE__ */ n("ul", { className: "ina-action-dropdown__list", children: a.map((k, w) => /* @__PURE__ */ n("li", { children: /* @__PURE__ */ N(
866
866
  "button",
867
867
  {
868
868
  type: "button",
@@ -878,7 +878,7 @@ const ja = fa(
878
878
  k.label
879
879
  ]
880
880
  }
881
- ) }, b)) }) })
881
+ ) }, w)) }) })
882
882
  ]
883
883
  }
884
884
  );
@@ -1210,11 +1210,11 @@ function Ls({
1210
1210
  "ina-card--with-header": h
1211
1211
  },
1212
1212
  S
1213
- ), b = () => /* @__PURE__ */ n("div", { className: "ina-card__media", children: l ? /* @__PURE__ */ n("img", { src: l, alt: c || "Card media" }) : null });
1213
+ ), w = () => /* @__PURE__ */ n("div", { className: "ina-card__media", children: l ? /* @__PURE__ */ n("img", { src: l, alt: c || "Card media" }) : null });
1214
1214
  return /* @__PURE__ */ N("div", { className: k, children: [
1215
- e === "basic" && L === "top" && b(),
1216
- e === "overlay" && b(),
1217
- e === "horizontal" && L === "left" && b(),
1215
+ e === "basic" && L === "top" && w(),
1216
+ e === "overlay" && w(),
1217
+ e === "horizontal" && L === "left" && w(),
1218
1218
  /* @__PURE__ */ N("div", { className: "ina-card__content", children: [
1219
1219
  t && /* @__PURE__ */ n("div", { className: "ina-card__avatar", children: /* @__PURE__ */ n("img", { src: t, alt: s || "Avatar" }) }),
1220
1220
  /* @__PURE__ */ N("div", { children: [
@@ -1231,8 +1231,8 @@ function Ls({
1231
1231
  }
1232
1232
  ) })
1233
1233
  ] }),
1234
- e === "basic" && L === "bottom" && b(),
1235
- e === "horizontal" && L === "right" && b()
1234
+ e === "basic" && L === "bottom" && w(),
1235
+ e === "horizontal" && L === "right" && w()
1236
1236
  ] });
1237
1237
  }
1238
1238
  const st = ({ size: e = 24, stroke: a = 2, ...t }) => /* @__PURE__ */ N(
@@ -1535,7 +1535,7 @@ function Ja(e, a, t, s) {
1535
1535
  var D = typeof window < "u", L = !a && a !== 0 && D;
1536
1536
  if (typeof e != "function") throw new TypeError("Expected a function");
1537
1537
  a = +a || 0;
1538
- var k = !!(t = t || {}).leading, b = !("trailing" in t) || !!t.trailing, y = !!t.flushOnExit && b, w = "maxWait" in t, R = "debounceOnServer" in t && !!t.debounceOnServer, H = w ? Math.max(+t.maxWait || 0, a) : null, U = Fe(function() {
1538
+ var k = !!(t = t || {}).leading, w = !("trailing" in t) || !!t.trailing, y = !!t.flushOnExit && w, b = "maxWait" in t, R = "debounceOnServer" in t && !!t.debounceOnServer, H = b ? Math.max(+t.maxWait || 0, a) : null, U = Fe(function() {
1539
1539
  var q = function(Q) {
1540
1540
  var j = m.current, $ = p.current;
1541
1541
  return m.current = p.current = null, l.current = Q, c.current = c.current || Q, M.current = h.current.apply($, j);
@@ -1544,14 +1544,14 @@ function Ja(e, a, t, s) {
1544
1544
  }, le = function(Q) {
1545
1545
  if (!u.current) return !1;
1546
1546
  var j = Q - i.current;
1547
- return !i.current || j >= a || j < 0 || w && Q - l.current >= H;
1547
+ return !i.current || j >= a || j < 0 || b && Q - l.current >= H;
1548
1548
  }, G = function(Q) {
1549
- return _.current = null, b && m.current ? q(Q) : (m.current = p.current = null, M.current);
1549
+ return _.current = null, w && m.current ? q(Q) : (m.current = p.current = null, M.current);
1550
1550
  }, Z = function Q() {
1551
1551
  var j = Date.now();
1552
1552
  if (k && c.current === l.current && re(), le(j)) return G(j);
1553
1553
  if (u.current) {
1554
- var $ = a - (j - i.current), W = w ? Math.min($, H - (j - l.current)) : $;
1554
+ var $ = a - (j - i.current), W = b ? Math.min($, H - (j - l.current)) : $;
1555
1555
  O(Q, W);
1556
1556
  }
1557
1557
  }, re = function() {
@@ -1564,7 +1564,7 @@ function Ja(e, a, t, s) {
1564
1564
  ((W = global.document) == null ? void 0 : W.visibilityState) === "hidden" && S.current.flush();
1565
1565
  }, (Q = global.document) == null || Q.addEventListener == null || Q.addEventListener("visibilitychange", V.current)), $) {
1566
1566
  if (!_.current && u.current) return l.current = i.current, O(Z, a), k ? q(i.current) : M.current;
1567
- if (w) return O(Z, a), q(i.current);
1567
+ if (b) return O(Z, a), q(i.current);
1568
1568
  }
1569
1569
  return _.current || O(Z, a), M.current;
1570
1570
  }
@@ -1577,7 +1577,7 @@ function Ja(e, a, t, s) {
1577
1577
  }, ie.flush = function() {
1578
1578
  return _.current ? G(Date.now()) : M.current;
1579
1579
  }, ie;
1580
- }, [k, w, a, H, b, y, L, D, R, s]);
1580
+ }, [k, b, a, H, w, y, L, D, R, s]);
1581
1581
  return S.current = U, te(function() {
1582
1582
  return u.current = !0, function() {
1583
1583
  var q;
@@ -1789,30 +1789,30 @@ function Na({
1789
1789
  placeholder: D,
1790
1790
  disabled: L = !1,
1791
1791
  className: k = "",
1792
- securityConfig: b = ka,
1792
+ securityConfig: w = ka,
1793
1793
  onBlur: y,
1794
- ...w
1794
+ ...b
1795
1795
  }) {
1796
- const R = () => b != null && b.enableXssProtection ? Xe(e).sanitized : e, [H, U] = K(R()), [q] = pt(H, s), O = ae(!0);
1796
+ const R = () => w != null && w.enableXssProtection ? Xe(e).sanitized : e, [H, U] = K(R()), [q] = pt(H, s), O = ae(!0);
1797
1797
  te(() => {
1798
1798
  let j = e;
1799
- if (b != null && b.enableXssProtection) {
1799
+ if (w != null && w.enableXssProtection) {
1800
1800
  const $ = Xe(e);
1801
- $.isValid || (b.logViolations && console.warn(
1801
+ $.isValid || (w.logViolations && console.warn(
1802
1802
  "TextField security violation on value change:",
1803
1803
  $.threats
1804
- ), b.onSecurityViolation && b.onSecurityViolation($.threats, e), j = $.sanitized);
1804
+ ), w.onSecurityViolation && w.onSecurityViolation($.threats, e), j = $.sanitized);
1805
1805
  }
1806
1806
  U(j);
1807
- }, [e, b]), te(() => {
1807
+ }, [e, w]), te(() => {
1808
1808
  O.current ? O.current = !1 : s > 0 && r && r(q);
1809
1809
  }, [q, s, r]);
1810
1810
  const le = (j) => {
1811
1811
  let $ = j.target.value;
1812
1812
  if (!(h != null && $.length > h)) {
1813
- if (b != null && b.enableXssProtection) {
1813
+ if (w != null && w.enableXssProtection) {
1814
1814
  const W = Xe($);
1815
- W.isValid || (b.logViolations && console.warn("TextField security violation:", W.threats), b.onSecurityViolation && b.onSecurityViolation(W.threats, $), $ = W.sanitized);
1815
+ W.isValid || (w.logViolations && console.warn("TextField security violation:", W.threats), w.onSecurityViolation && w.onSecurityViolation(W.threats, $), $ = W.sanitized);
1816
1816
  }
1817
1817
  U($), a($), t == null || t(j);
1818
1818
  }
@@ -1830,12 +1830,15 @@ function Na({
1830
1830
  `ina-text-field__helper-text--${m}`
1831
1831
  ), Q = m !== "neutral" && p != null ? p : _;
1832
1832
  return /* @__PURE__ */ N("div", { className: "ina-text-field", children: [
1833
- c && /* @__PURE__ */ n(
1833
+ c && /* @__PURE__ */ N(
1834
1834
  "label",
1835
1835
  {
1836
1836
  className: "ina-text-field__label",
1837
- htmlFor: w != null && w.id || w != null && w.name ? String((w == null ? void 0 : w.id) || (w == null ? void 0 : w.name)) : String(c).toLowerCase(),
1838
- children: c
1837
+ htmlFor: b != null && b.id || b != null && b.name ? String((b == null ? void 0 : b.id) || (b == null ? void 0 : b.name)) : String(c).toLowerCase(),
1838
+ children: [
1839
+ c,
1840
+ b.required && /* @__PURE__ */ n("span", { className: "ina-text-field__required", children: "*" })
1841
+ ]
1839
1842
  }
1840
1843
  ),
1841
1844
  /* @__PURE__ */ N("div", { className: re, children: [
@@ -1843,9 +1846,9 @@ function Na({
1843
1846
  /* @__PURE__ */ n(
1844
1847
  "input",
1845
1848
  {
1846
- ...w,
1847
- id: w != null && w.id || w != null && w.name ? String((w == null ? void 0 : w.id) || (w == null ? void 0 : w.name)) : String(c).toLowerCase(),
1848
- type: w.type ?? "text",
1849
+ ...b,
1850
+ id: b != null && b.id || b != null && b.name ? String((b == null ? void 0 : b.id) || (b == null ? void 0 : b.name)) : String(c).toLowerCase(),
1851
+ type: b.type ?? "text",
1849
1852
  className: I("ina-text-field__input", k),
1850
1853
  value: H,
1851
1854
  onChange: le,
@@ -1895,7 +1898,7 @@ function zs({
1895
1898
  const V = i ? [...e, { label: l, value: l }] : e, S = I("ina-chip", _);
1896
1899
  return /* @__PURE__ */ N("div", { className: S, children: [
1897
1900
  /* @__PURE__ */ n("div", { className: "ina-chip__list", children: V.map((D, L) => {
1898
- const k = i && D.label === l, b = k ? m : a === D.value;
1901
+ const k = i && D.label === l, w = k ? m : a === D.value;
1899
1902
  return /* @__PURE__ */ n(
1900
1903
  "button",
1901
1904
  {
@@ -1907,7 +1910,7 @@ function zs({
1907
1910
  "ina-chip__item",
1908
1911
  `ina-chip__item--size-${t}`,
1909
1912
  `ina-chip__item--variant-${s}`,
1910
- b && "ina-chip__item--selected"
1913
+ w && "ina-chip__item--selected"
1911
1914
  ),
1912
1915
  children: D.label
1913
1916
  },
@@ -2003,21 +2006,21 @@ function Hs({
2003
2006
  triggerClassName: _ = "",
2004
2007
  disabled: m = !1
2005
2008
  }) {
2006
- const [p, M] = K(s), h = t !== void 0, u = h ? t : p, V = ae(null), S = ae(null), D = ae(null), L = (w) => {
2007
- h || M(w), r == null || r(w);
2008
- }, k = (w) => {
2009
- w.stopPropagation(), !m && L(!u);
2010
- }, b = (w) => {
2011
- m || (w.key === "Enter" || w.key === " ") && (w.preventDefault(), L(!u));
2009
+ const [p, M] = K(s), h = t !== void 0, u = h ? t : p, V = ae(null), S = ae(null), D = ae(null), L = (b) => {
2010
+ h || M(b), r == null || r(b);
2011
+ }, k = (b) => {
2012
+ b.stopPropagation(), !m && L(!u);
2013
+ }, w = (b) => {
2014
+ m || (b.key === "Enter" || b.key === " ") && (b.preventDefault(), L(!u));
2012
2015
  };
2013
2016
  te(() => {
2014
- const w = (H) => {
2017
+ const b = (H) => {
2015
2018
  V.current && !V.current.contains(H.target) && u && L(!1);
2016
2019
  }, R = (H) => {
2017
2020
  H.key === "Escape" && u && L(!1);
2018
2021
  };
2019
- return document.addEventListener("mousedown", w), document.addEventListener("touchstart", w), document.addEventListener("keydown", R), () => {
2020
- document.removeEventListener("mousedown", w), document.removeEventListener("touchstart", w), document.removeEventListener("keydown", R);
2022
+ return document.addEventListener("mousedown", b), document.addEventListener("touchstart", b), document.addEventListener("keydown", R), () => {
2023
+ document.removeEventListener("mousedown", b), document.removeEventListener("touchstart", b), document.removeEventListener("keydown", R);
2021
2024
  };
2022
2025
  }, [u, r]);
2023
2026
  const y = typeof e == "string" || typeof e == "number";
@@ -2032,7 +2035,7 @@ function Hs({
2032
2035
  role: y ? void 0 : "button",
2033
2036
  "aria-haspopup": y ? void 0 : "true",
2034
2037
  "aria-expanded": y ? void 0 : u,
2035
- onKeyDown: y ? void 0 : b,
2038
+ onKeyDown: y ? void 0 : w,
2036
2039
  children: y ? /* @__PURE__ */ N(
2037
2040
  "button",
2038
2041
  {
@@ -2067,7 +2070,7 @@ function Hs({
2067
2070
  `ina-basic-dropdown__panel--${i}`,
2068
2071
  c
2069
2072
  ),
2070
- onClick: (w) => w.stopPropagation(),
2073
+ onClick: (b) => b.stopPropagation(),
2071
2074
  children: a
2072
2075
  }
2073
2076
  )
@@ -2384,7 +2387,7 @@ function Os({
2384
2387
  onRemove: u,
2385
2388
  ...V
2386
2389
  }) {
2387
- const S = ae(null), [D, L] = K([]), [k, b] = K(!1), [y, w] = K([]), [R, H] = K(!1), U = de(() => {
2390
+ const S = ae(null), [D, L] = K([]), [k, w] = K(!1), [y, b] = K([]), [R, H] = K(!1), U = de(() => {
2388
2391
  var $;
2389
2392
  p || ($ = S.current) == null || $.click();
2390
2393
  }, [p]), q = de(
@@ -2399,7 +2402,7 @@ function Os({
2399
2402
  isValid: !1,
2400
2403
  error: `Maksimal ${c} file yang dapat diupload`,
2401
2404
  file: $[0]
2402
- }), w(X), h == null || h([], X);
2405
+ }), b(X), h == null || h([], X);
2403
2406
  return;
2404
2407
  }
2405
2408
  $ = $.slice(0, se);
@@ -2412,7 +2415,7 @@ function Os({
2412
2415
  isValid: !1,
2413
2416
  error: `Ukuran total file maksimal ${_} MB`,
2414
2417
  file: $[0]
2415
- }), w(X), h == null || h([], X);
2418
+ }), b(X), h == null || h([], X);
2416
2419
  return;
2417
2420
  }
2418
2421
  }
@@ -2467,7 +2470,7 @@ function Os({
2467
2470
  file: T
2468
2471
  });
2469
2472
  }
2470
- L(r ? (T) => [...T, ...B] : B.slice(0, 1)), w(X);
2473
+ L(r ? (T) => [...T, ...B] : B.slice(0, 1)), b(X);
2471
2474
  const z = r ? [...D, ...B].map((T) => T.file) : B.map((T) => T.file);
2472
2475
  h == null || h(z, X);
2473
2476
  },
@@ -2490,15 +2493,15 @@ function Os({
2490
2493
  [q]
2491
2494
  ), le = de(
2492
2495
  ($) => {
2493
- $.preventDefault(), $.stopPropagation(), p || b(!0);
2496
+ $.preventDefault(), $.stopPropagation(), p || w(!0);
2494
2497
  },
2495
2498
  [p]
2496
2499
  ), G = de(($) => {
2497
- $.preventDefault(), $.stopPropagation(), b(!1);
2500
+ $.preventDefault(), $.stopPropagation(), w(!1);
2498
2501
  }, []), Z = de(
2499
2502
  async ($) => {
2500
2503
  var B;
2501
- if ($.preventDefault(), $.stopPropagation(), b(!1), p) return;
2504
+ if ($.preventDefault(), $.stopPropagation(), w(!1), p) return;
2502
2505
  const W = Array.from(((B = $.dataTransfer) == null ? void 0 : B.files) || []);
2503
2506
  await q(W);
2504
2507
  },
@@ -2787,7 +2790,7 @@ function Gs({
2787
2790
  onRemove: M,
2788
2791
  ...h
2789
2792
  }) {
2790
- const u = ae(null), [V, S] = K(null), [D, L] = K(0), [k, b] = K("idle"), [y, w] = K(!1), R = _ !== void 0 ? _ : D, H = m !== void 0 ? m : k, U = de(() => {
2793
+ const u = ae(null), [V, S] = K(null), [D, L] = K(0), [k, w] = K("idle"), [y, b] = K(!1), R = _ !== void 0 ? _ : D, H = m !== void 0 ? m : k, U = de(() => {
2791
2794
  var W;
2792
2795
  l || V || (W = u.current) == null || W.click();
2793
2796
  }, [l, V]), q = de(
@@ -2801,7 +2804,7 @@ function Gs({
2801
2804
  error: "Nama file mengandung karakter yang tidak diizinkan",
2802
2805
  file: B
2803
2806
  };
2804
- S(null), b("error"), p == null || p(null, se), u.current && (u.current.value = "");
2807
+ S(null), w("error"), p == null || p(null, se), u.current && (u.current.value = "");
2805
2808
  return;
2806
2809
  }
2807
2810
  if (r && r.length > 0) {
@@ -2812,7 +2815,7 @@ function Gs({
2812
2815
  error: `Ekstensi file harus: ${r.join(", ")}`,
2813
2816
  file: B
2814
2817
  };
2815
- S(null), b("error"), p == null || p(null, ce), u.current && (u.current.value = "");
2818
+ S(null), w("error"), p == null || p(null, ce), u.current && (u.current.value = "");
2816
2819
  return;
2817
2820
  }
2818
2821
  }
@@ -2822,7 +2825,7 @@ function Gs({
2822
2825
  validateExtension: !0
2823
2826
  });
2824
2827
  if (!z.isValid) {
2825
- S(null), b("error"), p == null || p(null, z), u.current && (u.current.value = "");
2828
+ S(null), w("error"), p == null || p(null, z), u.current && (u.current.value = "");
2826
2829
  return;
2827
2830
  }
2828
2831
  if (i && B.type) {
@@ -2836,35 +2839,35 @@ function Gs({
2836
2839
  error: se.error || "File signature tidak valid",
2837
2840
  file: B
2838
2841
  };
2839
- S(null), b("error"), p == null || p(null, pe), u.current && (u.current.value = "");
2842
+ S(null), w("error"), p == null || p(null, pe), u.current && (u.current.value = "");
2840
2843
  return;
2841
2844
  }
2842
2845
  }
2843
- S(B), b("success"), p == null || p(B, null), u.current && (u.current.value = "");
2846
+ S(B), w("success"), p == null || p(B, null), u.current && (u.current.value = "");
2844
2847
  },
2845
2848
  [t, s, r, i, p]
2846
2849
  ), O = de(() => {
2847
- S(null), L(0), b("idle"), w(!1), u.current && (u.current.value = ""), M == null || M(), p == null || p(null, null);
2850
+ S(null), L(0), w("idle"), b(!1), u.current && (u.current.value = ""), M == null || M(), p == null || p(null, null);
2848
2851
  }, [M, p]), le = de(() => {
2849
2852
  l || V || U();
2850
2853
  }, [l, V, U]), G = de(() => {
2851
- l || V || w(!0);
2854
+ l || V || b(!0);
2852
2855
  }, [l, V]), Z = de(() => {
2853
- w(!1);
2856
+ b(!1);
2854
2857
  }, []), re = de(
2855
2858
  (W) => {
2856
- l || V || (W.preventDefault(), W.stopPropagation(), w(!0));
2859
+ l || V || (W.preventDefault(), W.stopPropagation(), b(!0));
2857
2860
  },
2858
2861
  [l, V]
2859
2862
  ), ie = de(
2860
2863
  (W) => {
2861
- l || V || (W.preventDefault(), W.stopPropagation(), w(!1));
2864
+ l || V || (W.preventDefault(), W.stopPropagation(), b(!1));
2862
2865
  },
2863
2866
  [l, V]
2864
2867
  ), Q = de(
2865
2868
  async (W) => {
2866
2869
  if (l || V) return;
2867
- W.preventDefault(), W.stopPropagation(), w(!1);
2870
+ W.preventDefault(), W.stopPropagation(), b(!1);
2868
2871
  const B = W.dataTransfer.files[0];
2869
2872
  if (!B) return;
2870
2873
  if (ot(B.name) !== B.name) {
@@ -2873,7 +2876,7 @@ function Gs({
2873
2876
  error: "Nama file mengandung karakter yang tidak diizinkan",
2874
2877
  file: B
2875
2878
  };
2876
- S(null), b("error"), p == null || p(null, T);
2879
+ S(null), w("error"), p == null || p(null, T);
2877
2880
  return;
2878
2881
  }
2879
2882
  if (r && r.length > 0) {
@@ -2884,7 +2887,7 @@ function Gs({
2884
2887
  error: `Ekstensi file harus: ${r.join(", ")}`,
2885
2888
  file: B
2886
2889
  };
2887
- S(null), b("error"), p == null || p(null, pe);
2890
+ S(null), w("error"), p == null || p(null, pe);
2888
2891
  return;
2889
2892
  }
2890
2893
  }
@@ -2894,7 +2897,7 @@ function Gs({
2894
2897
  validateExtension: !0
2895
2898
  });
2896
2899
  if (!z.isValid) {
2897
- S(null), b("error"), p == null || p(null, z);
2900
+ S(null), w("error"), p == null || p(null, z);
2898
2901
  return;
2899
2902
  }
2900
2903
  if (i && B.type) {
@@ -2908,11 +2911,11 @@ function Gs({
2908
2911
  error: T.error || "File signature tidak valid",
2909
2912
  file: B
2910
2913
  };
2911
- S(null), b("error"), p == null || p(null, se);
2914
+ S(null), w("error"), p == null || p(null, se);
2912
2915
  return;
2913
2916
  }
2914
2917
  }
2915
- S(B), b("success"), p == null || p(B, null);
2918
+ S(B), w("success"), p == null || p(B, null);
2916
2919
  },
2917
2920
  [
2918
2921
  l,
@@ -3155,8 +3158,8 @@ function Js({
3155
3158
  disabled: m = !1
3156
3159
  }) {
3157
3160
  const [p, M] = K(t), [h] = pt(p, _), u = (k) => {
3158
- const { value: b } = k.target;
3159
- mn(b) || b === "" ? M(b) : k.preventDefault();
3161
+ const { value: w } = k.target;
3162
+ mn(w) || w === "" ? M(w) : k.preventDefault();
3160
3163
  };
3161
3164
  te(() => {
3162
3165
  r && r(h);
@@ -3274,20 +3277,20 @@ function hn({
3274
3277
  };
3275
3278
  return document.addEventListener("keydown", H), () => document.removeEventListener("keydown", H);
3276
3279
  }, [M, u, m, a]), !M || !m) return null;
3277
- const k = i ?? document.body, b = I(
3280
+ const k = i ?? document.body, w = I(
3278
3281
  "ina-modal",
3279
3282
  u ? "ina-modal--enter-active" : "ina-modal--enter"
3280
3283
  ), y = I(
3281
3284
  "ina-modal__dialog",
3282
3285
  c && `ina-modal__dialog--size-${c}`,
3283
3286
  l
3284
- ), w = I(
3287
+ ), b = I(
3285
3288
  "ina-modal__header",
3286
3289
  t ? "ina-modal__header--with-title" : "ina-modal__header--no-border"
3287
3290
  ), R = /* @__PURE__ */ N(
3288
3291
  "div",
3289
3292
  {
3290
- className: b,
3293
+ className: w,
3291
3294
  role: "dialog",
3292
3295
  "aria-modal": "true",
3293
3296
  "aria-labelledby": t && typeof t == "string" ? D.current : void 0,
@@ -3302,7 +3305,7 @@ function hn({
3302
3305
  }
3303
3306
  ),
3304
3307
  /* @__PURE__ */ n("div", { className: "ina-modal__container", children: /* @__PURE__ */ N("div", { className: y, onClick: (H) => H.stopPropagation(), children: [
3305
- /* @__PURE__ */ N("div", { className: w, children: [
3308
+ /* @__PURE__ */ N("div", { className: b, children: [
3306
3309
  t && /* @__PURE__ */ n("div", { className: "ina-modal__title", children: typeof t == "string" ? /* @__PURE__ */ n("h2", { id: D.current, children: t }) : t }),
3307
3310
  /* @__PURE__ */ n(
3308
3311
  "button",
@@ -3394,14 +3397,14 @@ function _n({
3394
3397
  if (a <= 0) return null;
3395
3398
  function p() {
3396
3399
  const k = [];
3397
- let b, y;
3398
- e === 1 ? (b = 1, y = Math.min(3, a)) : e === a ? (b = Math.max(1, a - 2), y = a) : (b = e - 1, y = e + 1);
3399
- for (let w = b; w <= y; w++)
3400
- k.push(M(w));
3400
+ let w, y;
3401
+ e === 1 ? (w = 1, y = Math.min(3, a)) : e === a ? (w = Math.max(1, a - 2), y = a) : (w = e - 1, y = e + 1);
3402
+ for (let b = w; b <= y; b++)
3403
+ k.push(M(b));
3401
3404
  return k;
3402
3405
  }
3403
3406
  const M = (k) => {
3404
- const b = k === e;
3407
+ const w = k === e;
3405
3408
  return /* @__PURE__ */ n(
3406
3409
  "button",
3407
3410
  {
@@ -3411,8 +3414,8 @@ function _n({
3411
3414
  disabled: l,
3412
3415
  className: I(
3413
3416
  "ina-pagination__page-button",
3414
- b && "ina-pagination__page-button--active",
3415
- !l && !b && "ina-pagination__page-button--enabled",
3417
+ w && "ina-pagination__page-button--active",
3418
+ !l && !w && "ina-pagination__page-button--enabled",
3416
3419
  l && "ina-pagination__page-button--disabled"
3417
3420
  ),
3418
3421
  children: k
@@ -3428,8 +3431,8 @@ function _n({
3428
3431
  }, S = (k) => {
3429
3432
  k.preventDefault(), !l && e < a && r(a);
3430
3433
  }, D = (k) => {
3431
- const b = parseInt(k.target.value, 10);
3432
- l || i(b);
3434
+ const w = parseInt(k.target.value, 10);
3435
+ l || i(w);
3433
3436
  }, L = I(
3434
3437
  "ina-pagination",
3435
3438
  c && "ina-pagination--full-width"
@@ -3510,7 +3513,7 @@ function _n({
3510
3513
  "ina-pagination__page-size-select",
3511
3514
  l && "ina-pagination__page-size-select--disabled"
3512
3515
  ),
3513
- children: s.map((k, b) => /* @__PURE__ */ n("option", { value: k, children: k }, `${k}-${b}`))
3516
+ children: s.map((k, w) => /* @__PURE__ */ n("option", { value: k, children: k }, `${k}-${w}`))
3514
3517
  }
3515
3518
  )
3516
3519
  ] })
@@ -3679,12 +3682,12 @@ function Xs({
3679
3682
  onBlur: S,
3680
3683
  ...D
3681
3684
  }) {
3682
- const [L, k] = K(e), [b, y] = K(!1), [w] = pt(L, t), R = ae(!0);
3685
+ const [L, k] = K(e), [w, y] = K(!1), [b] = pt(L, t), R = ae(!0);
3683
3686
  te(() => {
3684
3687
  k(e);
3685
3688
  }, [e]), te(() => {
3686
- R.current ? R.current = !1 : t > 0 && s && s(w);
3687
- }, [w, t, s]);
3689
+ R.current ? R.current = !1 : t > 0 && s && s(b);
3690
+ }, [b, t, s]);
3688
3691
  const H = (le) => {
3689
3692
  const G = le.target.value;
3690
3693
  p != null && G.length > p || (k(G), a(G));
@@ -3694,12 +3697,15 @@ function Xs({
3694
3697
  k(""), a(""), s && s("");
3695
3698
  }, O = c !== "neutral" && _ != null ? _ : l;
3696
3699
  return /* @__PURE__ */ N("div", { className: I("ina-password-input", V), children: [
3697
- i && /* @__PURE__ */ n(
3700
+ i && /* @__PURE__ */ N(
3698
3701
  "label",
3699
3702
  {
3700
3703
  className: "ina-password-input__label",
3701
3704
  htmlFor: D != null && D.id || D != null && D.name ? String((D == null ? void 0 : D.id) || (D == null ? void 0 : D.name)) : String(i).toLowerCase(),
3702
- children: i
3705
+ children: [
3706
+ i,
3707
+ D.required && /* @__PURE__ */ n("span", { className: "ina-text-field__required", children: "*" })
3708
+ ]
3703
3709
  }
3704
3710
  ),
3705
3711
  /* @__PURE__ */ N(
@@ -3717,7 +3723,7 @@ function Xs({
3717
3723
  "input",
3718
3724
  {
3719
3725
  ...D,
3720
- type: b ? "text" : "password",
3726
+ type: w ? "text" : "password",
3721
3727
  className: "ina-password-input__input",
3722
3728
  value: L,
3723
3729
  onChange: H,
@@ -3743,8 +3749,8 @@ function Xs({
3743
3749
  type: "button",
3744
3750
  className: "ina-password-input__toggle-button",
3745
3751
  onClick: () => y((le) => !le),
3746
- "aria-label": b ? "Hide password" : "Show password",
3747
- children: b ? /* @__PURE__ */ n(kn, { size: 20 }) : /* @__PURE__ */ n(wn, { size: 20 })
3752
+ "aria-label": w ? "Hide password" : "Show password",
3753
+ children: w ? /* @__PURE__ */ n(kn, { size: 20 }) : /* @__PURE__ */ n(wn, { size: 20 })
3748
3754
  }
3749
3755
  )
3750
3756
  ]
@@ -4344,7 +4350,7 @@ function Qs({
4344
4350
  id: S,
4345
4351
  ...D
4346
4352
  }) {
4347
- const L = Fe(() => S || `phone-input-${Math.random().toString(36).substr(2, 9)}`, [S]), [k, b] = K(a), [y, w] = K(!1), [R, H] = K(""), [U, q] = K(
4353
+ const L = Fe(() => S || `phone-input-${Math.random().toString(36).substr(2, 9)}`, [S]), [k, w] = K(a), [y, b] = K(!1), [R, H] = K(""), [U, q] = K(
4348
4354
  u.find((z) => z.code === h) || u[0]
4349
4355
  ), O = ae(null), le = ae(null), G = ae(null), Z = (z) => {
4350
4356
  const T = z.replace(/\D/g, "");
@@ -4352,15 +4358,15 @@ function Qs({
4352
4358
  };
4353
4359
  te(() => {
4354
4360
  if (!a) {
4355
- b("");
4361
+ w("");
4356
4362
  return;
4357
4363
  }
4358
4364
  const z = U.dialCode;
4359
4365
  let T = a;
4360
- a.startsWith(z) && (T = a.substring(z.length)), b(Z(T));
4366
+ a.startsWith(z) && (T = a.substring(z.length)), w(Z(T));
4361
4367
  }, [a, U.dialCode]), te(() => {
4362
4368
  const z = (T) => {
4363
- G.current && !G.current.contains(T.target) && w(!1);
4369
+ G.current && !G.current.contains(T.target) && b(!1);
4364
4370
  };
4365
4371
  return document.addEventListener("mousedown", z), () => {
4366
4372
  document.removeEventListener("mousedown", z);
@@ -4373,7 +4379,7 @@ function Qs({
4373
4379
  (T) => T.name.toLowerCase().includes(z) || T.dialCode.includes(z) || T.code.toLowerCase().includes(z)
4374
4380
  );
4375
4381
  }, [u, R]), ie = () => {
4376
- m || p || w((z) => {
4382
+ m || p || b((z) => {
4377
4383
  const T = !z;
4378
4384
  return T && (H(""), setTimeout(() => {
4379
4385
  var se;
@@ -4381,7 +4387,7 @@ function Qs({
4381
4387
  }, 0)), T;
4382
4388
  });
4383
4389
  }, Q = (z) => {
4384
- if (q(z), w(!1), k) {
4390
+ if (q(z), b(!1), k) {
4385
4391
  const T = k.replace(/\D/g, ""), se = T.startsWith("0") ? T.substring(1) : T;
4386
4392
  t == null || t(`${z.dialCode}${se}`);
4387
4393
  }
@@ -4391,7 +4397,7 @@ function Qs({
4391
4397
  }, 0);
4392
4398
  }, j = (z) => {
4393
4399
  const se = z.target.value.replace(/\D/g, ""), pe = Z(se);
4394
- b(pe);
4400
+ w(pe);
4395
4401
  let ce = se;
4396
4402
  ce.startsWith("0") && (ce = ce.substring(1)), t == null || t(`${U.dialCode}${ce}`), s == null || s(z);
4397
4403
  }, $ = I(
@@ -4411,7 +4417,7 @@ function Qs({
4411
4417
  return /* @__PURE__ */ N("div", { className: $, children: [
4412
4418
  e && /* @__PURE__ */ N("label", { htmlFor: L, className: "ina-phone-input__label", children: [
4413
4419
  e,
4414
- M && /* @__PURE__ */ n("span", { className: "ina-phone-input__asterisk", children: "*" })
4420
+ M && /* @__PURE__ */ n("span", { className: "ina-text-field__required", children: "*" })
4415
4421
  ] }),
4416
4422
  /* @__PURE__ */ N("div", { className: W, children: [
4417
4423
  /* @__PURE__ */ N("div", { className: "ina-phone-input__country-selector", ref: G, children: [
@@ -4622,9 +4628,9 @@ const tr = ({
4622
4628
  hasMore: D = !1,
4623
4629
  loading: L = !1,
4624
4630
  currentPage: k = 1,
4625
- onLoadMore: b,
4631
+ onLoadMore: w,
4626
4632
  onSearch: y,
4627
- searchDebounceMs: w = 300,
4633
+ searchDebounceMs: b = 300,
4628
4634
  renderSelectedPreview: R,
4629
4635
  onRemoveSelected: H,
4630
4636
  searchValue: U,
@@ -4641,9 +4647,9 @@ const tr = ({
4641
4647
  const [j, $] = K(!1), [W, B] = K(""), [X, z] = K(-1), T = ae(null), se = ae(null), pe = ae([]), ce = ae(null), Y = ae(/* @__PURE__ */ new Map()), ne = U !== void 0, me = ne ? U : W;
4642
4648
  te(() => (ce.current && clearTimeout(ce.current), y && me !== "" ? ce.current = setTimeout(() => {
4643
4649
  y(me);
4644
- }, w) : y && me === "" && y(""), () => {
4650
+ }, b) : y && me === "" && y(""), () => {
4645
4651
  ce.current && clearTimeout(ce.current);
4646
- }), [me, y, w]), te(() => {
4652
+ }), [me, y, b]), te(() => {
4647
4653
  ne && U !== W && B(U);
4648
4654
  }, [U, ne, W]), te(() => {
4649
4655
  const f = (C) => {
@@ -4908,7 +4914,7 @@ const tr = ({
4908
4914
  className: "ina-select-dropdown__options",
4909
4915
  onScroll: (f) => {
4910
4916
  const C = f.currentTarget;
4911
- C.scrollHeight - C.scrollTop - C.clientHeight < 50 && !L && D && b && !O && b(k + 1);
4917
+ C.scrollHeight - C.scrollTop - C.clientHeight < 50 && !L && D && w && !O && w(k + 1);
4912
4918
  },
4913
4919
  children: [
4914
4920
  Q && /* @__PURE__ */ n("div", { className: "ina-select-dropdown__selection-title", children: Q }),
@@ -5223,9 +5229,9 @@ function rr({
5223
5229
  showSearch: D = !1,
5224
5230
  rowClickable: L = !1,
5225
5231
  onRowClick: k,
5226
- lastColumnSticky: b = !1,
5232
+ lastColumnSticky: w = !1,
5227
5233
  renderSortIndicator: y,
5228
- emptyState: w = "No data found"
5234
+ emptyState: b = "No data found"
5229
5235
  }) {
5230
5236
  const [R, H] = K([]), [U, q] = K(0), [O, le] = K(!1), G = ae(null), Z = ua(), [re, ie] = K(t), [Q, j] = K(s), [$, W] = K(i), [B, X] = K(
5231
5237
  l
@@ -5300,7 +5306,7 @@ function rr({
5300
5306
  };
5301
5307
  }, []);
5302
5308
  const A = I("ina-table", p, {
5303
- "ina-table--sticky-last-column": b
5309
+ "ina-table--sticky-last-column": w
5304
5310
  }), d = I(
5305
5311
  "ina-table__search",
5306
5312
  !D && "ina-table__search--hidden"
@@ -5408,7 +5414,7 @@ function rr({
5408
5414
  {
5409
5415
  colSpan: M ? e.length + 1 : e.length,
5410
5416
  className: "ina-table__empty-cell",
5411
- children: w
5417
+ children: b
5412
5418
  }
5413
5419
  ) }) : R.map((C, P) => {
5414
5420
  const ee = String(C[S]);
@@ -5521,10 +5527,10 @@ function ir({
5521
5527
  disabled: D = !1,
5522
5528
  className: L = "",
5523
5529
  securityConfig: k = ka,
5524
- onBlur: b,
5530
+ onBlur: w,
5525
5531
  ...y
5526
5532
  }) {
5527
- const w = () => k != null && k.enableXssProtection ? Xe(e).sanitized : e, [R, H] = K(w()), [U] = pt(R, t), q = ae(!0), O = ae(null), [le, G] = K(u);
5533
+ const b = () => k != null && k.enableXssProtection ? Xe(e).sanitized : e, [R, H] = K(b()), [U] = pt(R, t), q = ae(!0), O = ae(null), [le, G] = K(u);
5528
5534
  te(() => {
5529
5535
  let B = e;
5530
5536
  if (k != null && k.enableXssProtection) {
@@ -5555,7 +5561,7 @@ function ir({
5555
5561
  H(X), a(X);
5556
5562
  }
5557
5563
  }, re = (B) => {
5558
- b == null || b(B);
5564
+ w == null || w(B);
5559
5565
  }, ie = () => {
5560
5566
  H(""), a(""), s && s("");
5561
5567
  }, Q = I("ina-text-area", L), j = I(
@@ -5567,12 +5573,15 @@ function ir({
5567
5573
  `ina-text-area__helper-text--${_}`
5568
5574
  ), W = _ !== "neutral" && m != null ? m : c;
5569
5575
  return /* @__PURE__ */ N("div", { className: Q, children: [
5570
- l && /* @__PURE__ */ n(
5576
+ l && /* @__PURE__ */ N(
5571
5577
  "label",
5572
5578
  {
5573
5579
  className: "ina-text-area__label",
5574
5580
  htmlFor: y != null && y.id || y != null && y.name ? String((y == null ? void 0 : y.id) || (y == null ? void 0 : y.name)) : String(l).toLowerCase(),
5575
- children: l
5581
+ children: [
5582
+ l,
5583
+ y.required && /* @__PURE__ */ n("span", { className: "ina-text-field__required", children: "*" })
5584
+ ]
5576
5585
  }
5577
5586
  ),
5578
5587
  /* @__PURE__ */ N("div", { className: j, children: [
@@ -5635,26 +5644,26 @@ function lr({
5635
5644
  }, [M, c, _]), te(() => {
5636
5645
  const k = e || "";
5637
5646
  if (k.length < t && k.length > 0) {
5638
- const b = k.length;
5639
- h.current[b] && !c && !_ && h.current[b].focus();
5647
+ const w = k.length;
5648
+ h.current[w] && !c && !_ && h.current[w].focus();
5640
5649
  }
5641
5650
  }, [e, t, c, _]), te(() => {
5642
5651
  e && e.length === t && p && p(e);
5643
5652
  }, [e, t, p]);
5644
- const u = (k, b) => {
5645
- const y = b.target.value;
5653
+ const u = (k, w) => {
5654
+ const y = w.target.value;
5646
5655
  if (y && !/^\d$/.test(y))
5647
5656
  return;
5648
- const w = e.split("");
5649
- w[k] = y;
5650
- const R = w.join("").slice(0, t);
5657
+ const b = e.split("");
5658
+ b[k] = y;
5659
+ const R = b.join("").slice(0, t);
5651
5660
  if (a(R), y && k < t - 1) {
5652
5661
  const H = k + 1;
5653
5662
  h.current[H] && h.current[H].focus();
5654
5663
  }
5655
- }, V = (k, b) => {
5656
- var y, w;
5657
- if (b.key === "Backspace")
5664
+ }, V = (k, w) => {
5665
+ var y, b;
5666
+ if (w.key === "Backspace")
5658
5667
  if (!(e || "")[k] && k > 0) {
5659
5668
  const H = k - 1;
5660
5669
  if (h.current[H]) {
@@ -5666,7 +5675,7 @@ function lr({
5666
5675
  const H = e.split("");
5667
5676
  H[k] = "", a(H.join(""));
5668
5677
  }
5669
- b.key === "ArrowLeft" && k > 0 && (b.preventDefault(), (y = h.current[k - 1]) == null || y.focus()), b.key === "ArrowRight" && k < t - 1 && (b.preventDefault(), (w = h.current[k + 1]) == null || w.focus()), (b.ctrlKey || b.metaKey) && b.key === "v" && (b.preventDefault(), navigator.clipboard.readText().then((R) => {
5678
+ w.key === "ArrowLeft" && k > 0 && (w.preventDefault(), (y = h.current[k - 1]) == null || y.focus()), w.key === "ArrowRight" && k < t - 1 && (w.preventDefault(), (b = h.current[k + 1]) == null || b.focus()), (w.ctrlKey || w.metaKey) && w.key === "v" && (w.preventDefault(), navigator.clipboard.readText().then((R) => {
5670
5679
  const H = R.replace(/\D/g, "").slice(0, t);
5671
5680
  if (H) {
5672
5681
  a(H);
@@ -5682,30 +5691,30 @@ function lr({
5682
5691
  const y = k.clipboardData.getData("text").replace(/\D/g, "").slice(0, t);
5683
5692
  if (y) {
5684
5693
  a(y);
5685
- const w = Math.min(y.length - 1, t - 1);
5694
+ const b = Math.min(y.length - 1, t - 1);
5686
5695
  setTimeout(() => {
5687
- h.current[w] && h.current[w].focus();
5696
+ h.current[b] && h.current[b].focus();
5688
5697
  }, 0);
5689
5698
  }
5690
5699
  };
5691
5700
  return /* @__PURE__ */ N("div", { className: I("ina-one-time-password", m), children: [
5692
5701
  s && /* @__PURE__ */ n("div", { className: "ina-one-time-password__title", children: s }),
5693
5702
  r && /* @__PURE__ */ n("div", { className: "ina-one-time-password__description", children: r }),
5694
- /* @__PURE__ */ n("div", { className: "ina-one-time-password__container", children: Array.from({ length: t }).map((k, b) => {
5695
- const y = e[b] || "";
5703
+ /* @__PURE__ */ n("div", { className: "ina-one-time-password__container", children: Array.from({ length: t }).map((k, w) => {
5704
+ const y = e[w] || "";
5696
5705
  return /* @__PURE__ */ n(
5697
5706
  "input",
5698
5707
  {
5699
- ref: (w) => {
5700
- h.current[b] = w;
5708
+ ref: (b) => {
5709
+ h.current[w] = b;
5701
5710
  },
5702
5711
  type: "text",
5703
5712
  inputMode: "numeric",
5704
5713
  maxLength: 1,
5705
5714
  value: y,
5706
- onChange: (w) => u(b, w),
5707
- onKeyDown: (w) => V(b, w),
5708
- onFocus: () => S(b),
5715
+ onChange: (b) => u(w, b),
5716
+ onKeyDown: (b) => V(w, b),
5717
+ onFocus: () => S(w),
5709
5718
  onBlur: D,
5710
5719
  onPaste: L,
5711
5720
  disabled: c,
@@ -5714,9 +5723,9 @@ function lr({
5714
5723
  "ina-one-time-password__input",
5715
5724
  l && "ina-one-time-password__input--error"
5716
5725
  ),
5717
- "aria-label": `Digit ${b + 1} of ${t}`
5726
+ "aria-label": `Digit ${w + 1} of ${t}`
5718
5727
  },
5719
- b
5728
+ w
5720
5729
  );
5721
5730
  }) }),
5722
5731
  i && /* @__PURE__ */ n(
@@ -5771,9 +5780,9 @@ const Vn = ({ size: e = 24, stroke: a = 2, ...t }) => /* @__PURE__ */ N(
5771
5780
  prefixIcon: D,
5772
5781
  suffixIcon: L,
5773
5782
  disabledBackTime: k = !1,
5774
- disabledTimeBefore: b,
5783
+ disabledTimeBefore: w,
5775
5784
  disabledTimeAfter: y,
5776
- showNowButton: w = !1,
5785
+ showNowButton: b = !1,
5777
5786
  label: R,
5778
5787
  required: H,
5779
5788
  ...U
@@ -5824,8 +5833,8 @@ const Vn = ({ size: e = 24, stroke: a = 2, ...t }) => /* @__PURE__ */ N(
5824
5833
  if (g < f)
5825
5834
  return !0;
5826
5835
  }
5827
- if (b && !A.ignoreBefore) {
5828
- const E = pe(b);
5836
+ if (w && !A.ignoreBefore) {
5837
+ const E = pe(w);
5829
5838
  if (g < E)
5830
5839
  return !0;
5831
5840
  }
@@ -6095,7 +6104,7 @@ const Vn = ({ size: e = 24, stroke: a = 2, ...t }) => /* @__PURE__ */ N(
6095
6104
  )
6096
6105
  ] }),
6097
6106
  /* @__PURE__ */ N("div", { className: "ina-time-picker__actions", children: [
6098
- w && /* @__PURE__ */ n(
6107
+ b && /* @__PURE__ */ n(
6099
6108
  "button",
6100
6109
  {
6101
6110
  type: "button",
@@ -6173,9 +6182,9 @@ function Ln({
6173
6182
  };
6174
6183
  }, [p, _]), te(() => {
6175
6184
  if (p)
6176
- return e && (u(!0), requestAnimationFrame(() => S(!0)), D.current = setTimeout(() => b(), c)), () => clearTimeout(D.current);
6185
+ return e && (u(!0), requestAnimationFrame(() => S(!0)), D.current = setTimeout(() => w(), c)), () => clearTimeout(D.current);
6177
6186
  }, [e, c, p]);
6178
- function b() {
6187
+ function w() {
6179
6188
  S(!1), setTimeout(() => {
6180
6189
  u(!1), a(), L.current && Yt(L.current);
6181
6190
  }, 300);
@@ -6200,7 +6209,7 @@ function Ln({
6200
6209
  /* @__PURE__ */ n(
6201
6210
  "button",
6202
6211
  {
6203
- onClick: b,
6212
+ onClick: w,
6204
6213
  className: "ina-toast__close-button",
6205
6214
  "aria-label": "Tutup notifikasi",
6206
6215
  children: /* @__PURE__ */ n(Le, { size: 16, strokeWidth: 2, className: "ina-toast__close-icon" })
@@ -6618,16 +6627,16 @@ function Bn(e) {
6618
6627
  const y = t._getWatch(s, _.current);
6619
6628
  return m.current ? m.current(y) : y;
6620
6629
  }), S = ue.useCallback((y) => {
6621
- const w = xt(s, t._names, y || t._formValues, !1, _.current);
6622
- return m.current ? m.current(w) : w;
6630
+ const b = xt(s, t._names, y || t._formValues, !1, _.current);
6631
+ return m.current ? m.current(b) : b;
6623
6632
  }, [t._formValues, t._names, s]), D = ue.useCallback((y) => {
6624
6633
  if (!i) {
6625
- const w = xt(s, t._names, y || t._formValues, !1, _.current);
6634
+ const b = xt(s, t._names, y || t._formValues, !1, _.current);
6626
6635
  if (m.current) {
6627
- const R = m.current(w);
6636
+ const R = m.current(b);
6628
6637
  Oe(R, p.current) || (V(R), p.current = R);
6629
6638
  } else
6630
- V(w);
6639
+ V(b);
6631
6640
  }
6632
6641
  }, [t._formValues, t._names, i, s]);
6633
6642
  Rt(() => ((M.current !== t || !Oe(h.current, s)) && (M.current = t, h.current = s, D()), t._subscribe({
@@ -6640,13 +6649,13 @@ function Bn(e) {
6640
6649
  D(y.values);
6641
6650
  }
6642
6651
  })), [t, l, s, D]), ue.useEffect(() => t._removeUnmounted());
6643
- const L = M.current !== t, k = h.current, b = ue.useMemo(() => {
6652
+ const L = M.current !== t, k = h.current, w = ue.useMemo(() => {
6644
6653
  if (i)
6645
6654
  return null;
6646
6655
  const y = !L && !Oe(k, s);
6647
6656
  return L || y ? S() : null;
6648
6657
  }, [i, L, s, k, S]);
6649
- return b !== null ? b : u;
6658
+ return w !== null ? w : u;
6650
6659
  }
6651
6660
  function Pn(e) {
6652
6661
  const a = $t(), { name: t, disabled: s, control: r = a, shouldUnregister: i, defaultValue: l, exact: c = !0 } = e, _ = Sa(r._names.array, t), m = ue.useMemo(() => J(r._formValues, t, J(r._defaultValues, t, l)), [r, t, l]), p = Bn({
@@ -6698,14 +6707,14 @@ function Pn(e) {
6698
6707
  },
6699
6708
  type: dt.BLUR
6700
6709
  }), [t, r._formValues]), k = ue.useCallback((y) => {
6701
- const w = J(r._fields, t);
6702
- w && w._f && y && (w._f.ref = {
6710
+ const b = J(r._fields, t);
6711
+ b && b._f && y && (b._f.ref = {
6703
6712
  focus: () => Te(y.focus) && y.focus(),
6704
6713
  select: () => Te(y.select) && y.select(),
6705
6714
  setCustomValidity: (R) => Te(y.setCustomValidity) && y.setCustomValidity(R),
6706
6715
  reportValidity: () => Te(y.reportValidity) && y.reportValidity()
6707
6716
  });
6708
- }, [r._fields, t]), b = ue.useMemo(() => ({
6717
+ }, [r._fields, t]), w = ue.useMemo(() => ({
6709
6718
  name: t,
6710
6719
  value: p,
6711
6720
  ...Be(s) || M.disabled ? { disabled: M.disabled || s } : {},
@@ -6714,8 +6723,8 @@ function Pn(e) {
6714
6723
  ref: k
6715
6724
  }), [t, s, M.disabled, D, L, k, p]);
6716
6725
  return ue.useEffect(() => {
6717
- const y = r._options.shouldUnregister || i, w = u.current;
6718
- w && w !== t && !_ && r.unregister(w), r.register(t, {
6726
+ const y = r._options.shouldUnregister || i, b = u.current;
6727
+ b && b !== t && !_ && r.unregister(b), r.register(t, {
6719
6728
  ...h.current.rules,
6720
6729
  ...Be(h.current.disabled) ? { disabled: h.current.disabled } : {}
6721
6730
  });
@@ -6736,10 +6745,10 @@ function Pn(e) {
6736
6745
  name: t
6737
6746
  });
6738
6747
  }, [s, t, r]), ue.useMemo(() => ({
6739
- field: b,
6748
+ field: w,
6740
6749
  formState: M,
6741
6750
  fieldState: S
6742
- }), [b, M, S]);
6751
+ }), [w, M, S]);
6743
6752
  }
6744
6753
  const Hn = (e) => e.render(Pn(e)), Aa = ue.createContext(null);
6745
6754
  Aa.displayName = "HookFormContext";
@@ -6993,11 +7002,11 @@ var Je = (e) => Ee(e) && !ft(e) ? e : {
6993
7002
  const { ref: l, refs: c, required: _, maxLength: m, minLength: p, min: M, max: h, pattern: u, validate: V, name: S, valueAsNumber: D, mount: L } = e._f, k = J(t, S);
6994
7003
  if (!L || a.has(S))
6995
7004
  return {};
6996
- const b = c ? c[0] : l, y = (G) => {
6997
- r && b.reportValidity && (b.setCustomValidity(Be(G) ? "" : G || ""), b.reportValidity());
6998
- }, w = {}, R = Bt(l), H = rt(l), U = R || H, q = (D || zt(l)) && ke(l.value) && ke(k) || ut(l) && l.value === "" || k === "" || Array.isArray(k) && !k.length, O = Gn.bind(null, S, s, w), le = (G, Z, re, ie = We.maxLength, Q = We.minLength) => {
7005
+ const w = c ? c[0] : l, y = (G) => {
7006
+ r && w.reportValidity && (w.setCustomValidity(Be(G) ? "" : G || ""), w.reportValidity());
7007
+ }, b = {}, R = Bt(l), H = rt(l), U = R || H, q = (D || zt(l)) && ke(l.value) && ke(k) || ut(l) && l.value === "" || k === "" || Array.isArray(k) && !k.length, O = Gn.bind(null, S, s, b), le = (G, Z, re, ie = We.maxLength, Q = We.minLength) => {
6999
7008
  const j = G ? Z : re;
7000
- w[S] = {
7009
+ b[S] = {
7001
7010
  type: G ? ie : Q,
7002
7011
  message: j,
7003
7012
  ref: l,
@@ -7006,13 +7015,13 @@ var Je = (e) => Ee(e) && !ft(e) ? e : {
7006
7015
  };
7007
7016
  if (i ? !Array.isArray(k) || !k.length : _ && (!U && (q || ze(k)) || Be(k) && !k || H && !Ra(c).isValid || R && !Ba(c).isValid)) {
7008
7017
  const { value: G, message: Z } = Pe(_) ? { value: !!_, message: _ } : Je(_);
7009
- if (G && (w[S] = {
7018
+ if (G && (b[S] = {
7010
7019
  type: We.required,
7011
7020
  message: Z,
7012
- ref: b,
7021
+ ref: w,
7013
7022
  ...O(We.required, Z)
7014
7023
  }, !s))
7015
- return y(Z), w;
7024
+ return y(Z), b;
7016
7025
  }
7017
7026
  if (!q && (!ze(M) || !ze(h))) {
7018
7027
  let G, Z;
@@ -7025,50 +7034,50 @@ var Je = (e) => Ee(e) && !ft(e) ? e : {
7025
7034
  Pe(re.value) && k && (G = $ ? j(k) > j(re.value) : W ? k > re.value : Q > new Date(re.value)), Pe(ie.value) && k && (Z = $ ? j(k) < j(ie.value) : W ? k < ie.value : Q < new Date(ie.value));
7026
7035
  }
7027
7036
  if ((G || Z) && (le(!!G, re.message, ie.message, We.max, We.min), !s))
7028
- return y(w[S].message), w;
7037
+ return y(b[S].message), b;
7029
7038
  }
7030
7039
  if ((m || p) && !q && (Pe(k) || i && Array.isArray(k))) {
7031
7040
  const G = Je(m), Z = Je(p), re = !ze(G.value) && k.length > +G.value, ie = !ze(Z.value) && k.length < +Z.value;
7032
7041
  if ((re || ie) && (le(re, G.message, Z.message), !s))
7033
- return y(w[S].message), w;
7042
+ return y(b[S].message), b;
7034
7043
  }
7035
7044
  if (u && !q && Pe(k)) {
7036
7045
  const { value: G, message: Z } = Je(u);
7037
- if (ft(G) && !k.match(G) && (w[S] = {
7046
+ if (ft(G) && !k.match(G) && (b[S] = {
7038
7047
  type: We.pattern,
7039
7048
  message: Z,
7040
7049
  ref: l,
7041
7050
  ...O(We.pattern, Z)
7042
7051
  }, !s))
7043
- return y(Z), w;
7052
+ return y(Z), b;
7044
7053
  }
7045
7054
  if (V) {
7046
7055
  if (Te(V)) {
7047
- const G = await V(k, t), Z = sa(G, b);
7048
- if (Z && (w[S] = {
7056
+ const G = await V(k, t), Z = sa(G, w);
7057
+ if (Z && (b[S] = {
7049
7058
  ...Z,
7050
7059
  ...O(We.validate, Z.message)
7051
7060
  }, !s))
7052
- return y(Z.message), w;
7061
+ return y(Z.message), b;
7053
7062
  } else if (Ee(V)) {
7054
7063
  let G = {};
7055
7064
  for (const Z in V) {
7056
7065
  if (!Ae(G) && !s)
7057
7066
  break;
7058
- const re = sa(await V[Z](k, t), b, Z);
7067
+ const re = sa(await V[Z](k, t), w, Z);
7059
7068
  re && (G = {
7060
7069
  ...re,
7061
7070
  ...O(Z, re.message)
7062
- }, y(re.message), s && (w[S] = G));
7071
+ }, y(re.message), s && (b[S] = G));
7063
7072
  }
7064
- if (!Ae(G) && (w[S] = {
7065
- ref: b,
7073
+ if (!Ae(G) && (b[S] = {
7074
+ ref: w,
7066
7075
  ...G
7067
7076
  }, !s))
7068
- return w;
7077
+ return b;
7069
7078
  }
7070
7079
  }
7071
- return y(!0), w;
7080
+ return y(!0), b;
7072
7081
  };
7073
7082
  const as = {
7074
7083
  mode: He.onSubmit,
@@ -7162,7 +7171,7 @@ function ns(e = {}) {
7162
7171
  });
7163
7172
  } else
7164
7173
  ye(i, o, v);
7165
- }, b = (o, v) => {
7174
+ }, w = (o, v) => {
7166
7175
  ye(t.errors, o, v), u.state.next({
7167
7176
  errors: t.errors
7168
7177
  });
@@ -7171,7 +7180,7 @@ function ns(e = {}) {
7171
7180
  errors: t.errors,
7172
7181
  isValid: !1
7173
7182
  });
7174
- }, w = (o, v, x, F) => {
7183
+ }, b = (o, v, x, F) => {
7175
7184
  const A = J(s, o);
7176
7185
  if (A) {
7177
7186
  const d = J(i, o, ke(x) ? J(r, o) : x);
@@ -7197,7 +7206,7 @@ function ns(e = {}) {
7197
7206
  return d ? E : {};
7198
7207
  }, H = (o, v, x, F) => {
7199
7208
  const A = J(t.errors, o), d = (M.isValid || h.isValid) && Be(v) && t.isValid !== v;
7200
- if (a.delayError && x ? (_ = S(() => b(o, x)), _(a.delayError)) : (clearTimeout(m), _ = null, x ? ye(t.errors, o, x) : Ve(t.errors, o)), (x ? !Oe(A, x) : A) || !Ae(F) || d) {
7209
+ if (a.delayError && x ? (_ = S(() => w(o, x)), _(a.delayError)) : (clearTimeout(m), _ = null, x ? ye(t.errors, o, x) : Ve(t.errors, o)), (x ? !Oe(A, x) : A) || !Ae(F) || d) {
7201
7210
  const g = {
7202
7211
  ...F,
7203
7212
  ...d && Be(v) ? { isValid: v } : {},
@@ -7403,7 +7412,7 @@ function ns(e = {}) {
7403
7412
  }), c.mount.add(o), x ? me({
7404
7413
  disabled: Be(v.disabled) ? v.disabled : a.disabled,
7405
7414
  name: o
7406
- }) : w(o, !0, v.value), {
7415
+ }) : b(o, !0, v.value), {
7407
7416
  ...F ? { disabled: v.disabled || a.disabled } : {},
7408
7417
  ...a.progressive ? {
7409
7418
  required: !!v.required,
@@ -7434,7 +7443,7 @@ function ns(e = {}) {
7434
7443
  ref: { type: d.type, name: o }
7435
7444
  } : { ref: d }
7436
7445
  }
7437
- }), w(o, !1, void 0, d);
7446
+ }), b(o, !1, void 0, d);
7438
7447
  } else
7439
7448
  x = J(s, o, {}), x._f && (x._f.mount = !1), (a.shouldUnregister || v.shouldUnregister) && !(Sa(c.array, o) && l.action) && c.unMount.add(o);
7440
7449
  }
@@ -7764,13 +7773,13 @@ function ia({
7764
7773
  onClear: L,
7765
7774
  size: k = "md"
7766
7775
  }) {
7767
- const b = Fe(() => {
7776
+ const w = Fe(() => {
7768
7777
  const Y = e ?? a ?? (/* @__PURE__ */ new Date()).getFullYear();
7769
7778
  if (Y === "" || Y === null || Y === void 0)
7770
7779
  return (/* @__PURE__ */ new Date()).getFullYear();
7771
7780
  const ne = typeof Y == "string" ? parseInt(Y, 10) : Y;
7772
7781
  return isNaN(ne) ? (/* @__PURE__ */ new Date()).getFullYear() : ne;
7773
- }, [e, a]), y = Fe(() => Math.floor(b / i) * i, [b, i]), [w, R] = K(m), [H, U] = K(null), [q, O] = K(!1), [le, G] = K({}), Z = ae(null), re = ae(null), ie = ae(null), Q = de(
7782
+ }, [e, a]), y = Fe(() => Math.floor(w / i) * i, [w, i]), [b, R] = K(m), [H, U] = K(null), [q, O] = K(!1), [le, G] = K({}), Z = ae(null), re = ae(null), ie = ae(null), Q = de(
7774
7783
  (Y) => {
7775
7784
  const ne = (/* @__PURE__ */ new Date()).getFullYear();
7776
7785
  if (M && Y < ne || h && Y > ne)
@@ -7811,9 +7820,9 @@ function ia({
7811
7820
  [t, p]
7812
7821
  ), B = de(() => {
7813
7822
  if (c) return;
7814
- const Y = !w;
7823
+ const Y = !b;
7815
7824
  R(Y), p == null || p(Y);
7816
- }, [c, w, p]), X = de(() => {
7825
+ }, [c, b, p]), X = de(() => {
7817
7826
  R(!1), p == null || p(!1);
7818
7827
  }, [p]), z = de(
7819
7828
  (Y) => {
@@ -7822,7 +7831,7 @@ function ia({
7822
7831
  [L, t]
7823
7832
  );
7824
7833
  te(() => {
7825
- if (w && re.current) {
7834
+ if (b && re.current) {
7826
7835
  const Y = () => {
7827
7836
  var d;
7828
7837
  if (!re.current || !ie.current) return;
@@ -7864,13 +7873,13 @@ function ia({
7864
7873
  };
7865
7874
  } else
7866
7875
  O(!1), G({});
7867
- }, [w]), te(() => {
7876
+ }, [b]), te(() => {
7868
7877
  const Y = (ne) => {
7869
7878
  Z.current && !Z.current.contains(ne.target) && X();
7870
7879
  };
7871
- if (w)
7880
+ if (b)
7872
7881
  return document.addEventListener("mousedown", Y), () => document.removeEventListener("mousedown", Y);
7873
- }, [w, X]);
7882
+ }, [b, X]);
7874
7883
  const T = `${y} - ${Math.min(
7875
7884
  y + i - 1,
7876
7885
  r
@@ -7881,7 +7890,7 @@ function ia({
7881
7890
  _ && "ina-year-picker__trigger--readonly"
7882
7891
  ), ce = I(
7883
7892
  "ina-year-picker__panel",
7884
- w && "ina-year-picker__panel--open"
7893
+ b && "ina-year-picker__panel--open"
7885
7894
  );
7886
7895
  return te(() => {
7887
7896
  R(m);
@@ -7894,14 +7903,14 @@ function ia({
7894
7903
  onClick: B,
7895
7904
  className: pe,
7896
7905
  disabled: c,
7897
- "aria-expanded": w,
7906
+ "aria-expanded": b,
7898
7907
  "aria-haspopup": "listbox",
7899
7908
  onKeyDown: (Y) => {
7900
- Y.key === "Enter" || Y.key === " " ? (Y.preventDefault(), B()) : Y.key === "Escape" && w && (Y.preventDefault(), X());
7909
+ Y.key === "Enter" || Y.key === " " ? (Y.preventDefault(), B()) : Y.key === "Escape" && b && (Y.preventDefault(), X());
7901
7910
  },
7902
7911
  children: [
7903
7912
  S && /* @__PURE__ */ n(Pt, { size: 16, className: "ina-year-picker__icon" }),
7904
- /* @__PURE__ */ n("span", { className: "ina-year-picker__trigger-text", children: b }),
7913
+ /* @__PURE__ */ n("span", { className: "ina-year-picker__trigger-text", children: w }),
7905
7914
  D && (e !== void 0 || a !== void 0) && /* @__PURE__ */ n(
7906
7915
  "button",
7907
7916
  {
@@ -7916,7 +7925,7 @@ function ia({
7916
7925
  ]
7917
7926
  }
7918
7927
  ),
7919
- w && /* @__PURE__ */ N(
7928
+ b && /* @__PURE__ */ N(
7920
7929
  "div",
7921
7930
  {
7922
7931
  ref: ie,
@@ -7952,7 +7961,7 @@ function ia({
7952
7961
  )
7953
7962
  ] }),
7954
7963
  /* @__PURE__ */ n("div", { className: "ina-year-picker__grid", children: j.map((Y) => {
7955
- const ne = Y === b, me = Y === H, _e = Q(Y);
7964
+ const ne = Y === w, me = Y === H, _e = Q(Y);
7956
7965
  return /* @__PURE__ */ n(
7957
7966
  "button",
7958
7967
  {
@@ -8025,7 +8034,7 @@ function la({
8025
8034
  ], [_]), k = Fe(() => {
8026
8035
  const z = e ?? a ?? (/* @__PURE__ */ new Date()).getMonth();
8027
8036
  return z == null || isNaN(z) ? (/* @__PURE__ */ new Date()).getMonth() : z;
8028
- }, [e, a]), [b, y] = K(l), [w, R] = K(null), [H, U] = K(!1), [q, O] = K({}), le = ae(null), G = ae(null), Z = ae(null), re = de(
8037
+ }, [e, a]), [w, y] = K(l), [b, R] = K(null), [H, U] = K(!1), [q, O] = K({}), le = ae(null), G = ae(null), Z = ae(null), re = de(
8029
8038
  (z) => {
8030
8039
  const T = (/* @__PURE__ */ new Date()).getMonth();
8031
8040
  return !!(m && z < T || p && z > T || M !== void 0 && z < M || h !== void 0 && z > h);
@@ -8043,9 +8052,9 @@ function la({
8043
8052
  [t, c]
8044
8053
  ), Q = de(() => {
8045
8054
  if (r) return;
8046
- const z = !b;
8055
+ const z = !w;
8047
8056
  y(z), c == null || c(z);
8048
- }, [r, b, c]), j = de(() => {
8057
+ }, [r, w, c]), j = de(() => {
8049
8058
  y(!1), c == null || c(!1);
8050
8059
  }, [c]), $ = de(
8051
8060
  (z) => {
@@ -8054,7 +8063,7 @@ function la({
8054
8063
  [S, t]
8055
8064
  );
8056
8065
  te(() => {
8057
- if (b && G.current) {
8066
+ if (w && G.current) {
8058
8067
  const z = () => {
8059
8068
  var o;
8060
8069
  if (!G.current || !Z.current) return;
@@ -8096,13 +8105,13 @@ function la({
8096
8105
  };
8097
8106
  } else
8098
8107
  U(!1), O({});
8099
- }, [b]), te(() => {
8108
+ }, [w]), te(() => {
8100
8109
  const z = (T) => {
8101
8110
  le.current && !le.current.contains(T.target) && j();
8102
8111
  };
8103
- if (b)
8112
+ if (w)
8104
8113
  return document.addEventListener("mousedown", z), () => document.removeEventListener("mousedown", z);
8105
- }, [b, j]);
8114
+ }, [w, j]);
8106
8115
  const W = I("ina-month-picker", s), B = I(
8107
8116
  "ina-month-picker__trigger",
8108
8117
  `ina-month-picker__trigger--size-${D}`,
@@ -8110,7 +8119,7 @@ function la({
8110
8119
  i && "ina-month-picker__trigger--readonly"
8111
8120
  ), X = I(
8112
8121
  "ina-month-picker__panel",
8113
- b && "ina-month-picker__panel--open"
8122
+ w && "ina-month-picker__panel--open"
8114
8123
  );
8115
8124
  return te(() => {
8116
8125
  y(l);
@@ -8123,10 +8132,10 @@ function la({
8123
8132
  onClick: Q,
8124
8133
  className: B,
8125
8134
  disabled: r,
8126
- "aria-expanded": b,
8135
+ "aria-expanded": w,
8127
8136
  "aria-haspopup": "listbox",
8128
8137
  onKeyDown: (z) => {
8129
- z.key === "Enter" || z.key === " " ? (z.preventDefault(), Q()) : z.key === "Escape" && b && (z.preventDefault(), j());
8138
+ z.key === "Enter" || z.key === " " ? (z.preventDefault(), Q()) : z.key === "Escape" && w && (z.preventDefault(), j());
8130
8139
  },
8131
8140
  children: [
8132
8141
  u && /* @__PURE__ */ n(Pt, { size: 16, className: "ina-month-picker__icon" }),
@@ -8145,7 +8154,7 @@ function la({
8145
8154
  ]
8146
8155
  }
8147
8156
  ),
8148
- b && /* @__PURE__ */ n(
8157
+ w && /* @__PURE__ */ n(
8149
8158
  "div",
8150
8159
  {
8151
8160
  ref: Z,
@@ -8155,7 +8164,7 @@ function la({
8155
8164
  ),
8156
8165
  style: q,
8157
8166
  children: /* @__PURE__ */ n("div", { className: "ina-month-picker__grid", children: L.map((z, T) => {
8158
- const se = T === k, pe = T === w, ce = re(T);
8167
+ const se = T === k, pe = T === b, ce = re(T);
8159
8168
  return /* @__PURE__ */ n(
8160
8169
  "button",
8161
8170
  {
@@ -8224,8 +8233,8 @@ const Pa = [
8224
8233
  if (i.forEach((D, L) => {
8225
8234
  D.includes("dd") || D.includes("DD") ? l = L : D.includes("MM") && !D.includes("MMM") ? c = L : D.includes("yyyy") || D.includes("YYYY") ? _ = L : (D.includes("MMMM") || D.includes("MMM")) && (c = L);
8226
8235
  }), l === -1 || c === -1 || _ === -1) {
8227
- const D = parseInt(s[0], 10), L = parseInt(s[1], 10) - 1, k = parseInt(s[2], 10), b = new Date(k, L, D);
8228
- return isNaN(b.getTime()) ? null : b;
8236
+ const D = parseInt(s[0], 10), L = parseInt(s[1], 10) - 1, k = parseInt(s[2], 10), w = new Date(k, L, D);
8237
+ return isNaN(w.getTime()) ? null : w;
8229
8238
  }
8230
8239
  const m = parseInt(s[l], 10), p = parseInt(s[_], 10);
8231
8240
  let M;
@@ -8258,10 +8267,10 @@ function gr({
8258
8267
  readonly: D = !1,
8259
8268
  size: L = "md",
8260
8269
  label: k,
8261
- required: b,
8270
+ required: w,
8262
8271
  panelOnly: y = !1
8263
8272
  }) {
8264
- const [w, R] = K(!1), [H, U] = K(/* @__PURE__ */ new Date()), [q, O] = K(() => {
8273
+ const [b, R] = K(!1), [H, U] = K(/* @__PURE__ */ new Date()), [q, O] = K(() => {
8265
8274
  const d = /* @__PURE__ */ new Date();
8266
8275
  return d.setMonth(d.getMonth() + 1), d;
8267
8276
  }), [le, G] = K(null), [Z, re] = K(!1), [ie, Q] = K(c), [j, $] = K(null), W = ae(null), B = ae(null), X = ae(null), z = () => {
@@ -8277,7 +8286,7 @@ function gr({
8277
8286
  te(() => {
8278
8287
  const d = (g) => {
8279
8288
  var E;
8280
- ((E = g.detail) == null ? void 0 : E.exclude) !== W.current && w && (R(!1), G(null), $(null));
8289
+ ((E = g.detail) == null ? void 0 : E.exclude) !== W.current && b && (R(!1), G(null), $(null));
8281
8290
  };
8282
8291
  return document.addEventListener(
8283
8292
  "closeDatePicker",
@@ -8288,15 +8297,15 @@ function gr({
8288
8297
  d
8289
8298
  );
8290
8299
  };
8291
- }, [w]), te(() => {
8300
+ }, [b]), te(() => {
8292
8301
  const d = (g) => {
8293
8302
  const E = g.target;
8294
8303
  W.current && W.current.contains(E) || (R(!1), G(null), $(null), $(null));
8295
8304
  };
8296
- if (w && !y)
8305
+ if (b && !y)
8297
8306
  return document.addEventListener("mousedown", d, !0), () => document.removeEventListener("mousedown", d, !0);
8298
- }, [w, y]), te(() => {
8299
- w && document.querySelectorAll(".ina-date-picker").forEach((g) => {
8307
+ }, [b, y]), te(() => {
8308
+ b && document.querySelectorAll(".ina-date-picker").forEach((g) => {
8300
8309
  if (g !== W.current && g.querySelector(".ina-date-picker__panel")) {
8301
8310
  const f = new CustomEvent("closeDatePicker", {
8302
8311
  detail: { exclude: W.current }
@@ -8304,7 +8313,7 @@ function gr({
8304
8313
  document.dispatchEvent(f);
8305
8314
  }
8306
8315
  });
8307
- }, [w]), te(() => {
8316
+ }, [b]), te(() => {
8308
8317
  const d = () => {
8309
8318
  if (typeof window > "u" || !B.current) return;
8310
8319
  const g = window.innerWidth;
@@ -8365,7 +8374,7 @@ function gr({
8365
8374
  i
8366
8375
  ]), pe = ae(!1);
8367
8376
  te(() => {
8368
- if ((w || y) && !pe.current) {
8377
+ if ((b || y) && !pe.current) {
8369
8378
  const d = z();
8370
8379
  let g = null, E = null;
8371
8380
  if (e === "range" && d.length >= 2) {
@@ -8409,9 +8418,9 @@ function gr({
8409
8418
  }
8410
8419
  }
8411
8420
  pe.current = !0;
8412
- } else w || (pe.current = !1);
8413
- }, [w, e, se]), te(() => {
8414
- if (w && B.current && !y) {
8421
+ } else b || (pe.current = !1);
8422
+ }, [b, e, se]), te(() => {
8423
+ if (b && B.current && !y) {
8415
8424
  const d = () => {
8416
8425
  if (!B.current) return;
8417
8426
  const E = B.current.getBoundingClientRect();
@@ -8436,7 +8445,7 @@ function gr({
8436
8445
  };
8437
8446
  } else
8438
8447
  re(!1);
8439
- }, [w]);
8448
+ }, [b]);
8440
8449
  const ce = de((d) => {
8441
8450
  const g = /* @__PURE__ */ new Date();
8442
8451
  return d.toDateString() === g.toDateString();
@@ -8713,7 +8722,7 @@ function gr({
8713
8722
  children: [
8714
8723
  !y && k && /* @__PURE__ */ N("label", { className: "ina-date-picker__label", children: [
8715
8724
  k,
8716
- b && /* @__PURE__ */ n("span", { className: "ina-date-picker__required", children: "*" })
8725
+ w && /* @__PURE__ */ n("span", { className: "ina-date-picker__required", children: "*" })
8717
8726
  ] }),
8718
8727
  !y && /* @__PURE__ */ N(
8719
8728
  "button",
@@ -8721,14 +8730,14 @@ function gr({
8721
8730
  ref: B,
8722
8731
  type: "button",
8723
8732
  onClick: () => {
8724
- S || D || (w || document.querySelectorAll(".ina-date-picker").forEach((g) => {
8733
+ S || D || (b || document.querySelectorAll(".ina-date-picker").forEach((g) => {
8725
8734
  if (g !== W.current) {
8726
8735
  const E = new CustomEvent("closeDatePicker", {
8727
8736
  detail: { exclude: W.current }
8728
8737
  });
8729
8738
  document.dispatchEvent(E);
8730
8739
  }
8731
- }), R(!w));
8740
+ }), R(!b));
8732
8741
  },
8733
8742
  className: I(
8734
8743
  "ina-date-picker__trigger",
@@ -8765,7 +8774,7 @@ function gr({
8765
8774
  ]
8766
8775
  }
8767
8776
  ),
8768
- (w || y) && !S && !D && /* @__PURE__ */ n(
8777
+ (b || y) && !S && !D && /* @__PURE__ */ n(
8769
8778
  "div",
8770
8779
  {
8771
8780
  ref: X,
@@ -9087,7 +9096,7 @@ function yr({
9087
9096
  "ina-toggle--disabled": t
9088
9097
  },
9089
9098
  i
9090
- ), b = I(
9099
+ ), w = I(
9091
9100
  "ina-toggle__track",
9092
9101
  `ina-toggle__track--size-${s}`,
9093
9102
  {
@@ -9101,7 +9110,7 @@ function yr({
9101
9110
  "ina-toggle__thumb--checked": D,
9102
9111
  "ina-toggle__thumb--disabled": t
9103
9112
  }
9104
- ), w = D && M && !t ? { backgroundColor: M, borderColor: M } : {};
9113
+ ), b = D && M && !t ? { backgroundColor: M, borderColor: M } : {};
9105
9114
  return /* @__PURE__ */ N("div", { className: k, children: [
9106
9115
  /* @__PURE__ */ n(
9107
9116
  "input",
@@ -9122,8 +9131,8 @@ function yr({
9122
9131
  /* @__PURE__ */ n(
9123
9132
  "div",
9124
9133
  {
9125
- className: b,
9126
- style: { pointerEvents: "none", ...w },
9134
+ className: w,
9135
+ style: { pointerEvents: "none", ...b },
9127
9136
  children: /* @__PURE__ */ n("div", { className: y })
9128
9137
  }
9129
9138
  )
@@ -9147,8 +9156,8 @@ function br({
9147
9156
  const [h, u] = K(
9148
9157
  t || ((k = e[0]) == null ? void 0 : k.value) || ""
9149
9158
  ), V = a !== void 0 ? a : h, S = de(
9150
- (b, y) => {
9151
- _ || y || (a === void 0 && u(b), s == null || s(b));
9159
+ (w, y) => {
9160
+ _ || y || (a === void 0 && u(w), s == null || s(w));
9152
9161
  },
9153
9162
  [_, a, s]
9154
9163
  ), D = I(
@@ -9164,13 +9173,13 @@ function br({
9164
9173
  l && "ina-tab-horizontal__container--full-width",
9165
9174
  p
9166
9175
  );
9167
- return /* @__PURE__ */ n("div", { className: D, children: /* @__PURE__ */ n("div", { className: L, role: "tablist", children: e.map((b) => {
9168
- const y = V === b.value, w = _ || b.disabled, R = I(
9176
+ return /* @__PURE__ */ n("div", { className: D, children: /* @__PURE__ */ n("div", { className: L, role: "tablist", children: e.map((w) => {
9177
+ const y = V === w.value, b = _ || w.disabled, R = I(
9169
9178
  "ina-tab-horizontal__tab",
9170
9179
  `ina-tab-horizontal__tab--size-${r}`,
9171
9180
  `ina-tab-horizontal__tab--variant-${i}`,
9172
9181
  y && "ina-tab-horizontal__tab--selected",
9173
- w && "ina-tab-horizontal__tab--disabled",
9182
+ b && "ina-tab-horizontal__tab--disabled",
9174
9183
  l && "ina-tab-horizontal__tab--full-width",
9175
9184
  M
9176
9185
  );
@@ -9180,16 +9189,16 @@ function br({
9180
9189
  type: "button",
9181
9190
  role: "tab",
9182
9191
  "aria-selected": y,
9183
- "aria-disabled": w,
9184
- disabled: w,
9192
+ "aria-disabled": b,
9193
+ disabled: b,
9185
9194
  className: R,
9186
- onClick: () => S(b.value, b.disabled),
9195
+ onClick: () => S(w.value, w.disabled),
9187
9196
  onKeyDown: (H) => {
9188
- (H.key === "Enter" || H.key === " ") && (H.preventDefault(), S(b.value, b.disabled));
9197
+ (H.key === "Enter" || H.key === " ") && (H.preventDefault(), S(w.value, w.disabled));
9189
9198
  },
9190
- children: b.label
9199
+ children: w.label
9191
9200
  },
9192
- b.value
9201
+ w.value
9193
9202
  );
9194
9203
  }) }) });
9195
9204
  }
@@ -9207,12 +9216,12 @@ function wr({
9207
9216
  tabClassName: p = "",
9208
9217
  width: M = "200px"
9209
9218
  }) {
9210
- var b;
9219
+ var w;
9211
9220
  const [h, u] = K(
9212
- t || ((b = e[0]) == null ? void 0 : b.value) || ""
9221
+ t || ((w = e[0]) == null ? void 0 : w.value) || ""
9213
9222
  ), V = a !== void 0 ? a : h, S = de(
9214
- (y, w) => {
9215
- c || w || (a === void 0 && u(y), s == null || s(y));
9223
+ (y, b) => {
9224
+ c || b || (a === void 0 && u(y), s == null || s(y));
9216
9225
  },
9217
9226
  [c, a, s]
9218
9227
  ), D = I(
@@ -9229,11 +9238,11 @@ function wr({
9229
9238
  width: typeof M == "number" ? `${M}px` : M
9230
9239
  };
9231
9240
  return /* @__PURE__ */ n("div", { className: D, style: k, children: /* @__PURE__ */ n("div", { className: L, role: "tablist", children: e.map((y) => {
9232
- const w = V === y.value, R = c || y.disabled, H = I(
9241
+ const b = V === y.value, R = c || y.disabled, H = I(
9233
9242
  "ina-tab-vertical__tab",
9234
9243
  `ina-tab-vertical__tab--size-${r}`,
9235
9244
  `ina-tab-vertical__tab--variant-${i}`,
9236
- w && "ina-tab-vertical__tab--selected",
9245
+ b && "ina-tab-vertical__tab--selected",
9237
9246
  R && "ina-tab-vertical__tab--disabled",
9238
9247
  p
9239
9248
  );
@@ -9242,7 +9251,7 @@ function wr({
9242
9251
  {
9243
9252
  type: "button",
9244
9253
  role: "tab",
9245
- "aria-selected": w,
9254
+ "aria-selected": b,
9246
9255
  "aria-disabled": R,
9247
9256
  disabled: R,
9248
9257
  className: H,