@xola/ui-kit 2.1.38 → 2.1.39

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/build/ui-kit.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import { Transition as ye, Dialog as Ke, Switch as Tn } from "@headlessui/react";
1
+ import { Transition as Ie, Dialog as Ke, Switch as Tn } from "@headlessui/react";
2
2
  import c from "prop-types";
3
3
  import * as W from "react";
4
- import n, { useState as re, useEffect as Se, cloneElement as bt, Fragment as be, Children as Fe, createContext as wt, useRef as he, useCallback as ue, useMemo as Me, useContext as He, useLayoutEffect as f1, forwardRef as Rn, createElement as je, Component as pa } from "react";
4
+ import n, { useState as re, useEffect as Se, cloneElement as bt, Fragment as be, Children as Fe, createContext as wt, useRef as he, useCallback as ue, useMemo as Ee, useContext as He, useLayoutEffect as f1, forwardRef as Rn, createElement as je, Component as pa } from "react";
5
5
  import E from "clsx";
6
6
  import { range as ha, round as ot, isNumber as ga, isString as vr, isEmpty as br, isFunction as fn, isArray as vn, merge as _e } from "lodash";
7
7
  import Gn from "@tippyjs/react";
@@ -27,7 +27,7 @@ const Ca = ({
27
27
  children: s,
28
28
  ...u
29
29
  }) => /* @__PURE__ */ n.createElement(
30
- ye,
30
+ Ie,
31
31
  {
32
32
  show: e,
33
33
  appear: t,
@@ -51,7 +51,7 @@ Ca.propTypes = {
51
51
  children: c.node
52
52
  };
53
53
  const xa = ({ isOpen: e, children: t }) => /* @__PURE__ */ n.createElement("div", { className: "overflow-hidden" }, /* @__PURE__ */ n.createElement(
54
- ye,
54
+ Ie,
55
55
  {
56
56
  show: e,
57
57
  appear: e,
@@ -228,7 +228,7 @@ const ka = {
228
228
  )
229
229
  },
230
230
  m && /* @__PURE__ */ n.createElement(
231
- ye,
231
+ Ie,
232
232
  {
233
233
  appear: !0,
234
234
  as: "span",
@@ -471,7 +471,7 @@ const Ha = {
471
471
  onClose: r,
472
472
  classNames: i = {},
473
473
  position: l = "right"
474
- }) => /* @__PURE__ */ n.createElement(ye.Root, { show: e, as: be }, /* @__PURE__ */ n.createElement(
474
+ }) => /* @__PURE__ */ n.createElement(Ie.Root, { show: e, as: be }, /* @__PURE__ */ n.createElement(
475
475
  Ke,
476
476
  {
477
477
  as: "div",
@@ -480,7 +480,7 @@ const Ha = {
480
480
  onClose: r
481
481
  },
482
482
  /* @__PURE__ */ n.createElement("div", { className: "flex h-screen w-full" }, /* @__PURE__ */ n.createElement(
483
- ye.Child,
483
+ Ie.Child,
484
484
  {
485
485
  as: be,
486
486
  enter: "ease-in-out duration-500",
@@ -501,7 +501,7 @@ const Ha = {
501
501
  )
502
502
  },
503
503
  /* @__PURE__ */ n.createElement(
504
- ye.Child,
504
+ Ie.Child,
505
505
  {
506
506
  as: be,
507
507
  enter: "transform transition ease-in-out duration-500 sm:duration-700",
@@ -819,8 +819,8 @@ mt.propTypes = {
819
819
  };
820
820
  const ja = (e, t) => Fe.toArray(e).filter((o) => o.type === t), Wa = "_main_jm0tk_1", Za = {
821
821
  main: Wa
822
- }, F1 = {}, ke = ({ className: e, children: t, skidding: o = 0, distance: a = 10, ...r }) => {
823
- const i = ja(t, ke.Content), l = Fe.toArray(t).filter((s) => s.type !== ke.Content);
822
+ }, F1 = {}, Le = ({ className: e, children: t, skidding: o = 0, distance: a = 10, ...r }) => {
823
+ const i = ja(t, Le.Content), l = Fe.toArray(t).filter((s) => s.type !== Le.Content);
824
824
  return /* @__PURE__ */ n.createElement(
825
825
  Gn,
826
826
  {
@@ -841,7 +841,7 @@ const ja = (e, t) => Fe.toArray(e).filter((o) => o.type === t), Wa = "_main_jm0t
841
841
  /* @__PURE__ */ n.createElement("span", null, l)
842
842
  );
843
843
  };
844
- ke.propTypes = {
844
+ Le.propTypes = {
845
845
  className: c.string,
846
846
  skidding: c.number,
847
847
  distance: c.number,
@@ -853,17 +853,17 @@ Xn.propTypes = {
853
853
  className: c.string,
854
854
  children: c.node.isRequired
855
855
  };
856
- ke.Content = Xn;
856
+ Le.Content = Xn;
857
857
  const St = ({ placement: e = "bottom", className: t, children: o, ...a }) => {
858
858
  const r = Fe.toArray(o), i = r.filter((d) => d.type !== St.Item), l = r.length - i.length, s = r.map((d, m) => d.type === St.Item ? n.cloneElement(d, { position: m, total: l }) : null), u = /* @__PURE__ */ n.createElement(
859
- ke.Content,
859
+ Le.Content,
860
860
  {
861
861
  className: E(F1, "ui-popover-list-content divide-y divide-solid divide-gray-lighter p-0 ")
862
862
  },
863
863
  s
864
864
  );
865
865
  return /* @__PURE__ */ n.createElement(
866
- ke,
866
+ Le,
867
867
  {
868
868
  content: u,
869
869
  placement: e,
@@ -964,8 +964,8 @@ const S1 = {
964
964
  const s = () => {
965
965
  a && r();
966
966
  };
967
- return /* @__PURE__ */ n.createElement(ye, { appear: !0, show: o, as: be }, /* @__PURE__ */ n.createElement(Ke, { as: "div", className: "ui-modal fixed inset-0 z-30 overflow-y-auto", onClose: s }, /* @__PURE__ */ n.createElement("div", { className: "min-h-screen px-4 text-center" }, /* @__PURE__ */ n.createElement(
968
- ye.Child,
967
+ return /* @__PURE__ */ n.createElement(Ie, { appear: !0, show: o, as: be }, /* @__PURE__ */ n.createElement(Ke, { as: "div", className: "ui-modal fixed inset-0 z-30 overflow-y-auto", onClose: s }, /* @__PURE__ */ n.createElement("div", { className: "min-h-screen px-4 text-center" }, /* @__PURE__ */ n.createElement(
968
+ Ie.Child,
969
969
  {
970
970
  as: be,
971
971
  enter: "ease-out duration-300",
@@ -977,7 +977,7 @@ const S1 = {
977
977
  },
978
978
  /* @__PURE__ */ n.createElement(Ke.Overlay, { className: "ui-modal-overlay fixed inset-0 bg-gray-dark bg-opacity-75 transition-opacity" })
979
979
  ), t === "center" && /* @__PURE__ */ n.createElement("span", { className: "inline-block h-screen align-middle", "aria-hidden": "true" }, "\u200B"), /* @__PURE__ */ n.createElement(
980
- ye.Child,
980
+ Ie.Child,
981
981
  {
982
982
  as: be,
983
983
  enter: E("ease-out duration-300"),
@@ -1255,7 +1255,7 @@ const j1 = wt({
1255
1255
  "Please wrap your app with `<Provider />` component from `@xola/ui-kit`. Otherwise your app will not work with SSR frameworks."
1256
1256
  ), Z0++)
1257
1257
  }), $3 = ({ children: e }) => {
1258
- const t = he(1), o = ue(() => t.current++, [t]), a = Me(() => ({ generateId: o }), [o]);
1258
+ const t = he(1), o = ue(() => t.current++, [t]), a = Ee(() => ({ generateId: o }), [o]);
1259
1259
  return /* @__PURE__ */ n.createElement(j1.Provider, { value: a }, e);
1260
1260
  }, En = (e) => {
1261
1261
  const { generateId: t } = He(j1), [o] = re(() => `${e}-${t()}`);
@@ -1500,15 +1500,19 @@ const Kt = {
1500
1500
  success: "text-success",
1501
1501
  danger: "text-danger",
1502
1502
  caution: "text-caution"
1503
- }, er = wt(), Pe = ({ children: e, className: t, currency: o, ...a }) => /* @__PURE__ */ n.createElement(er.Provider, { value: o }, /* @__PURE__ */ n.createElement("table", { className: E("ui-breakdown", "w-full", t), ...a }, /* @__PURE__ */ n.createElement("tbody", null, e)));
1503
+ }, er = wt(), Pe = ({ children: e, className: t, currency: o, locale: a, ...r }) => {
1504
+ const i = Ee(() => ({ currency: o, locale: a }), [o, a]);
1505
+ return /* @__PURE__ */ n.createElement(er.Provider, { value: i }, /* @__PURE__ */ n.createElement("table", { className: E("ui-breakdown", "w-full", t), ...r }, /* @__PURE__ */ n.createElement("tbody", null, e)));
1506
+ };
1504
1507
  Pe.propTypes = {
1505
1508
  children: c.node,
1506
1509
  className: c.string,
1507
- currency: c.string.isRequired
1510
+ currency: c.string.isRequired,
1511
+ locale: c.string
1508
1512
  };
1509
1513
  const U1 = ({ children: e, info: t, methodIcon: o, secondary: a, value: r, className: i, color: l = "default", ...s }) => {
1510
- const u = He(er);
1511
- return /* @__PURE__ */ n.createElement("tr", { className: E("ui-breakdown-item", Kt[l], i), ...s }, /* @__PURE__ */ n.createElement("td", { colSpan: 2, className: "break-all text-left leading-none" }, /* @__PURE__ */ n.createElement("span", { className: "mr-0.5" }, o), /* @__PURE__ */ n.createElement("span", null, e), /* @__PURE__ */ n.createElement("span", { className: "ml-1 text-sm" }, t && /* @__PURE__ */ n.createElement("span", { className: "mr-2 rounded bg-white p-1 uppercase text-black empty:hidden" }, t), a && /* @__PURE__ */ n.createElement("span", { className: "empty:hidden" }, a))), /* @__PURE__ */ n.createElement("td", { className: "w-[1%] whitespace-nowrap pl-4 text-right" }, ga(r) ? /* @__PURE__ */ n.createElement(Ze, { shouldRemoveTrailingZeroes: !1, currency: u }, r) : /* @__PURE__ */ n.createElement("span", null, r)));
1514
+ const { currency: u, locale: d } = He(er);
1515
+ return /* @__PURE__ */ n.createElement("tr", { className: E("ui-breakdown-item", Kt[l], i), ...s }, /* @__PURE__ */ n.createElement("td", { colSpan: 2, className: "break-all text-left leading-none" }, /* @__PURE__ */ n.createElement("span", { className: "mr-0.5" }, o), /* @__PURE__ */ n.createElement("span", null, e), /* @__PURE__ */ n.createElement("span", { className: "ml-1 text-sm" }, t && /* @__PURE__ */ n.createElement("span", { className: "mr-2 rounded bg-white p-1 uppercase text-black empty:hidden" }, t), a && /* @__PURE__ */ n.createElement("span", { className: "empty:hidden" }, a))), /* @__PURE__ */ n.createElement("td", { className: "w-[1%] whitespace-nowrap pl-4 text-right" }, ga(r) ? /* @__PURE__ */ n.createElement(Ze, { shouldRemoveTrailingZeroes: !1, currency: u, locale: d }, r) : /* @__PURE__ */ n.createElement("span", null, r)));
1512
1516
  };
1513
1517
  U1.propTypes = {
1514
1518
  children: c.node,
@@ -1522,8 +1526,8 @@ U1.propTypes = {
1522
1526
  Pe.Item = U1;
1523
1527
  Pe.Item.displayName = "Breakdown.Item";
1524
1528
  const Q1 = ({ children: e, info: t, value: o, className: a, color: r = "black", ...i }) => {
1525
- const l = He(er);
1526
- return /* @__PURE__ */ n.createElement("tr", { className: E("ui-breakdown-subtotal-item", "font-bold", Kt[r], a), ...i }, /* @__PURE__ */ n.createElement("td", { className: "pt-1 pb-4 text-left" }, e), /* @__PURE__ */ n.createElement("td", { className: "whitespace-nowrap pt-1 pb-4 text-right" }, t), /* @__PURE__ */ n.createElement("td", { className: "w-[1%] whitespace-nowrap pt-1 pb-4 pl-4 text-right" }, /* @__PURE__ */ n.createElement(Ze, { shouldRemoveTrailingZeroes: !1, currency: l }, o)));
1529
+ const { currency: l, locale: s } = He(er);
1530
+ return /* @__PURE__ */ n.createElement("tr", { className: E("ui-breakdown-subtotal-item", "font-bold", Kt[r], a), ...i }, /* @__PURE__ */ n.createElement("td", { className: "pt-1 pb-4 text-left" }, e), /* @__PURE__ */ n.createElement("td", { className: "whitespace-nowrap pt-1 pb-4 text-right" }, t), /* @__PURE__ */ n.createElement("td", { className: "w-[1%] whitespace-nowrap pt-1 pb-4 pl-4 text-right" }, /* @__PURE__ */ n.createElement(Ze, { shouldRemoveTrailingZeroes: !1, currency: l, locale: s }, o)));
1527
1531
  };
1528
1532
  Q1.propTypes = {
1529
1533
  children: c.node,
@@ -1832,7 +1836,7 @@ function wi() {
1832
1836
  function fe() {
1833
1837
  return se = ge < to ? ce(nt, ge++) : 0, et++, se === 10 && (et = 1, en++), se;
1834
1838
  }
1835
- function Ie() {
1839
+ function ke() {
1836
1840
  return ce(nt, ge);
1837
1841
  }
1838
1842
  function Mt() {
@@ -1883,14 +1887,14 @@ function Bt(e) {
1883
1887
  return eo(xt(ge - 1, An(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
1884
1888
  }
1885
1889
  function Ci(e) {
1886
- for (; (se = Ie()) && se < 33; )
1890
+ for (; (se = ke()) && se < 33; )
1887
1891
  fe();
1888
1892
  return ht(e) > 2 || ht(se) > 3 ? "" : " ";
1889
1893
  }
1890
1894
  function xi(e, t) {
1891
1895
  for (; --t && fe() && !(se < 48 || se > 102 || se > 57 && se < 65 || se > 70 && se < 97); )
1892
1896
  ;
1893
- return xt(e, Mt() + (t < 6 && Ie() == 32 && fe() == 32));
1897
+ return xt(e, Mt() + (t < 6 && ke() == 32 && fe() == 32));
1894
1898
  }
1895
1899
  function An(e) {
1896
1900
  for (; fe(); )
@@ -1912,12 +1916,12 @@ function An(e) {
1912
1916
  }
1913
1917
  function Ei(e, t) {
1914
1918
  for (; fe() && e + se !== 47 + 10; )
1915
- if (e + se === 42 + 42 && Ie() === 47)
1919
+ if (e + se === 42 + 42 && ke() === 47)
1916
1920
  break;
1917
1921
  return "/*" + xt(t, ge - 1) + "*" + $t(e === 47 ? e : fe());
1918
1922
  }
1919
1923
  function yi(e) {
1920
- for (; !ht(Ie()); )
1924
+ for (; !ht(ke()); )
1921
1925
  fe();
1922
1926
  return xt(e, ge);
1923
1927
  }
@@ -1947,7 +1951,7 @@ function Nt(e, t, o, a, r, i, l, s, u) {
1947
1951
  I += xi(Mt() - 1, 7);
1948
1952
  continue;
1949
1953
  case 47:
1950
- switch (Ie()) {
1954
+ switch (ke()) {
1951
1955
  case 42:
1952
1956
  case 47:
1953
1957
  yt(ki(Ei(fe(), Mt()), t, o), u);
@@ -2004,7 +2008,7 @@ function Nt(e, t, o, a, r, i, l, s, u) {
2004
2008
  s[d++] = (xe(I) - 1) * v, v = 1;
2005
2009
  break;
2006
2010
  case 64:
2007
- Ie() === 45 && (I += Bt(fe())), b = Ie(), m = g = xe(A = I += yi(Mt())), L++;
2011
+ ke() === 45 && (I += Bt(fe())), b = ke(), m = g = xe(A = I += yi(Mt())), L++;
2008
2012
  break;
2009
2013
  case 45:
2010
2014
  w === 45 && xe(I) == 2 && (h = 0);
@@ -2063,7 +2067,7 @@ function Bi(e) {
2063
2067
  };
2064
2068
  }
2065
2069
  var Ni = function(t, o, a) {
2066
- for (var r = 0, i = 0; r = i, i = Ie(), r === 38 && i === 12 && (o[a] = 1), !ht(i); )
2070
+ for (var r = 0, i = 0; r = i, i = ke(), r === 38 && i === 12 && (o[a] = 1), !ht(i); )
2067
2071
  fe();
2068
2072
  return xt(t, ge);
2069
2073
  }, Vi = function(t, o) {
@@ -2071,14 +2075,14 @@ var Ni = function(t, o, a) {
2071
2075
  do
2072
2076
  switch (ht(r)) {
2073
2077
  case 0:
2074
- r === 38 && Ie() === 12 && (o[a] = 1), t[a] += Ni(ge - 1, o, a);
2078
+ r === 38 && ke() === 12 && (o[a] = 1), t[a] += Ni(ge - 1, o, a);
2075
2079
  break;
2076
2080
  case 2:
2077
2081
  t[a] += Bt(r);
2078
2082
  break;
2079
2083
  case 4:
2080
2084
  if (r === 44) {
2081
- t[++a] = Ie() === 58 ? "&\f" : "", o[a] = t[a].length;
2085
+ t[++a] = ke() === 58 ? "&\f" : "", o[a] = t[a].length;
2082
2086
  break;
2083
2087
  }
2084
2088
  default:
@@ -2441,8 +2445,8 @@ function Pi() {
2441
2445
  }
2442
2446
  function k(B) {
2443
2447
  if (typeof B == "object" && B !== null) {
2444
- var Ae = B.$$typeof;
2445
- switch (Ae) {
2448
+ var Me = B.$$typeof;
2449
+ switch (Me) {
2446
2450
  case t:
2447
2451
  var we = B.type;
2448
2452
  switch (we) {
@@ -2463,11 +2467,11 @@ function Pi() {
2463
2467
  case l:
2464
2468
  return Ve;
2465
2469
  default:
2466
- return Ae;
2470
+ return Me;
2467
2471
  }
2468
2472
  }
2469
2473
  case o:
2470
- return Ae;
2474
+ return Me;
2471
2475
  }
2472
2476
  }
2473
2477
  }
@@ -2508,10 +2512,10 @@ function Pi() {
2508
2512
  function Re(B) {
2509
2513
  return k(B) === r;
2510
2514
  }
2511
- function Le(B) {
2515
+ function Ae(B) {
2512
2516
  return k(B) === g;
2513
2517
  }
2514
- Y.AsyncMode = x, Y.ConcurrentMode = C, Y.ContextConsumer = I, Y.ContextProvider = M, Y.Element = S, Y.ForwardRef = Z, Y.Fragment = O, Y.Lazy = R, Y.Memo = U, Y.Portal = G, Y.Profiler = z, Y.StrictMode = K, Y.Suspense = $, Y.isAsyncMode = q, Y.isConcurrentMode = te, Y.isContextConsumer = ie, Y.isContextProvider = _, Y.isElement = D, Y.isForwardRef = oe, Y.isFragment = T, Y.isLazy = j, Y.isMemo = ne, Y.isPortal = le, Y.isProfiler = ve, Y.isStrictMode = Re, Y.isSuspense = Le, Y.isValidElementType = A, Y.typeOf = k;
2518
+ Y.AsyncMode = x, Y.ConcurrentMode = C, Y.ContextConsumer = I, Y.ContextProvider = M, Y.Element = S, Y.ForwardRef = Z, Y.Fragment = O, Y.Lazy = R, Y.Memo = U, Y.Portal = G, Y.Profiler = z, Y.StrictMode = K, Y.Suspense = $, Y.isAsyncMode = q, Y.isConcurrentMode = te, Y.isContextConsumer = ie, Y.isContextProvider = _, Y.isElement = D, Y.isForwardRef = oe, Y.isFragment = T, Y.isLazy = j, Y.isMemo = ne, Y.isPortal = le, Y.isProfiler = ve, Y.isStrictMode = Re, Y.isSuspense = Ae, Y.isValidElementType = A, Y.typeOf = k;
2515
2519
  }()), Y;
2516
2520
  }
2517
2521
  (function(e) {
@@ -3580,7 +3584,7 @@ var Ks = function(t) {
3580
3584
  zIndex: 1
3581
3585
  };
3582
3586
  }, $s = function(t) {
3583
- var o = t.appendTo, a = t.children, r = t.controlElement, i = t.innerProps, l = t.menuPlacement, s = t.menuPosition, u = he(null), d = he(null), m = re(Lo(l)), g = Be(m, 2), b = g[0], y = g[1], w = Me(function() {
3587
+ var o = t.appendTo, a = t.children, r = t.controlElement, i = t.innerProps, l = t.menuPlacement, s = t.menuPosition, u = he(null), d = he(null), m = re(Lo(l)), g = Be(m, 2), b = g[0], y = g[1], w = Ee(function() {
3584
3588
  return {
3585
3589
  setPortalPlacement: y
3586
3590
  };
@@ -4181,9 +4185,9 @@ var U2 = process.env.NODE_ENV === "production" ? {
4181
4185
  return "".concat(a).concat(o ? " for search term " + o : "", ".");
4182
4186
  }
4183
4187
  }, _2 = function(t) {
4184
- var o = t.ariaSelection, a = t.focusedOption, r = t.focusedValue, i = t.focusableOptions, l = t.isFocused, s = t.selectValue, u = t.selectProps, d = t.id, m = u.ariaLiveMessages, g = u.getOptionLabel, b = u.inputValue, y = u.isMulti, w = u.isOptionDisabled, h = u.isSearchable, f = u.menuIsOpen, v = u.options, L = u.screenReaderStatus, A = u.tabSelectsValue, k = u["aria-label"], x = u["aria-live"], C = Me(function() {
4188
+ var o = t.ariaSelection, a = t.focusedOption, r = t.focusedValue, i = t.focusableOptions, l = t.isFocused, s = t.selectValue, u = t.selectProps, d = t.id, m = u.ariaLiveMessages, g = u.getOptionLabel, b = u.inputValue, y = u.isMulti, w = u.isOptionDisabled, h = u.isSearchable, f = u.menuIsOpen, v = u.options, L = u.screenReaderStatus, A = u.tabSelectsValue, k = u["aria-label"], x = u["aria-live"], C = Ee(function() {
4185
4189
  return H(H({}, Q2), m || {});
4186
- }, [m]), I = Me(function() {
4190
+ }, [m]), I = Ee(function() {
4187
4191
  var G = "";
4188
4192
  if (o && C.onChange) {
4189
4193
  var z = o.option, K = o.options, $ = o.removedValue, ee = o.removedValues, q = o.value, te = function(ne) {
@@ -4196,7 +4200,7 @@ var U2 = process.env.NODE_ENV === "production" ? {
4196
4200
  G = C.onChange(T);
4197
4201
  }
4198
4202
  return G;
4199
- }, [o, C, w, s, g]), M = Me(function() {
4203
+ }, [o, C, w, s, g]), M = Ee(function() {
4200
4204
  var G = "", z = a || r, K = !!(a && s && s.includes(a));
4201
4205
  if (z && C.onFocus) {
4202
4206
  var $ = {
@@ -4211,7 +4215,7 @@ var U2 = process.env.NODE_ENV === "production" ? {
4211
4215
  G = C.onFocus($);
4212
4216
  }
4213
4217
  return G;
4214
- }, [a, r, g, w, C, i, s]), S = Me(function() {
4218
+ }, [a, r, g, w, C, i, s]), S = Ee(function() {
4215
4219
  var G = "";
4216
4220
  if (f && v.length && C.onFilter) {
4217
4221
  var z = L({
@@ -4223,7 +4227,7 @@ var U2 = process.env.NODE_ENV === "production" ? {
4223
4227
  });
4224
4228
  }
4225
4229
  return G;
4226
- }, [i, b, f, C, v, L]), Z = Me(function() {
4230
+ }, [i, b, f, C, v, L]), Z = Ee(function() {
4227
4231
  var G = "";
4228
4232
  if (C.guidance) {
4229
4233
  var z = r ? "value" : f ? "menu" : "input";
@@ -5548,13 +5552,13 @@ var Uo = function(t) {
5548
5552
  if (!I)
5549
5553
  return null;
5550
5554
  var K = function(D, oe) {
5551
- var T = D.type, j = D.data, ne = D.isDisabled, le = D.isSelected, ve = D.label, Re = D.value, Le = h === j, B = ne ? void 0 : function() {
5555
+ var T = D.type, j = D.data, ne = D.isDisabled, le = D.isSelected, ve = D.label, Re = D.value, Ae = h === j, B = ne ? void 0 : function() {
5552
5556
  return r.onOptionHover(j);
5553
- }, Ae = ne ? void 0 : function() {
5557
+ }, Me = ne ? void 0 : function() {
5554
5558
  return r.selectOption(j);
5555
5559
  }, we = "".concat(r.getElementId("option"), "-").concat(oe), Ve = {
5556
5560
  id: we,
5557
- onClick: Ae,
5561
+ onClick: Me,
5558
5562
  onMouseMove: B,
5559
5563
  onMouseOver: B,
5560
5564
  tabIndex: -1
@@ -5568,8 +5572,8 @@ var Uo = function(t) {
5568
5572
  label: ve,
5569
5573
  type: T,
5570
5574
  value: Re,
5571
- isFocused: Le,
5572
- innerRef: Le ? r.getFocusedOptionRef : void 0
5575
+ isFocused: Ae,
5576
+ innerRef: Ae ? r.getFocusedOptionRef : void 0
5573
5577
  }), r.formatOptionLabel(D.data, "menu"));
5574
5578
  }, $;
5575
5579
  if (this.hasOptions())
@@ -5808,12 +5812,12 @@ var Ml = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel"
5808
5812
  }
5809
5813
  };
5810
5814
  function Bl(e) {
5811
- var t = e.allowCreateWhileLoading, o = t === void 0 ? !1 : t, a = e.createOptionPosition, r = a === void 0 ? "last" : a, i = e.formatCreateLabel, l = i === void 0 ? pn.formatCreateLabel : i, s = e.isValidNewOption, u = s === void 0 ? pn.isValidNewOption : s, d = e.getNewOptionData, m = d === void 0 ? pn.getNewOptionData : d, g = e.onCreateOption, b = e.options, y = b === void 0 ? [] : b, w = e.onChange, h = Ye(e, Ml), f = h.getOptionValue, v = f === void 0 ? Oo : f, L = h.getOptionLabel, A = L === void 0 ? Do : L, k = h.inputValue, x = h.isLoading, C = h.isMulti, I = h.value, M = h.name, S = Me(function() {
5815
+ var t = e.allowCreateWhileLoading, o = t === void 0 ? !1 : t, a = e.createOptionPosition, r = a === void 0 ? "last" : a, i = e.formatCreateLabel, l = i === void 0 ? pn.formatCreateLabel : i, s = e.isValidNewOption, u = s === void 0 ? pn.isValidNewOption : s, d = e.getNewOptionData, m = d === void 0 ? pn.getNewOptionData : d, g = e.onCreateOption, b = e.options, y = b === void 0 ? [] : b, w = e.onChange, h = Ye(e, Ml), f = h.getOptionValue, v = f === void 0 ? Oo : f, L = h.getOptionLabel, A = L === void 0 ? Do : L, k = h.inputValue, x = h.isLoading, C = h.isMulti, I = h.value, M = h.name, S = Ee(function() {
5812
5816
  return u(k, Wt(I), y, {
5813
5817
  getOptionValue: v,
5814
5818
  getOptionLabel: A
5815
5819
  }) ? m(k, l(k)) : void 0;
5816
- }, [l, m, A, v, k, u, y, I]), Z = Me(function() {
5820
+ }, [l, m, A, v, k, u, y, I]), Z = Ee(function() {
5817
5821
  return (o || !x) && S ? r === "first" ? [S].concat(ut(y)) : [].concat(ut(y), [S]) : y;
5818
5822
  }, [o, r, x, S, y]), O = ue(function(R, U) {
5819
5823
  if (U.action !== "select-option")
@@ -6936,10 +6940,10 @@ var aa = { exports: {} };
6936
6940
  try {
6937
6941
  if (["x", "X"].indexOf($) > -1)
6938
6942
  return new Date(($ === "X" ? 1e3 : 1) * K);
6939
- var q = w($)(K), te = q.year, ie = q.month, _ = q.day, D = q.hours, oe = q.minutes, T = q.seconds, j = q.milliseconds, ne = q.zone, le = new Date(), ve = _ || (te || ie ? 1 : le.getDate()), Re = te || le.getFullYear(), Le = 0;
6940
- te && !ie || (Le = ie > 0 ? ie - 1 : le.getMonth());
6941
- var B = D || 0, Ae = oe || 0, we = T || 0, Ve = j || 0;
6942
- return ne ? new Date(Date.UTC(Re, Le, ve, B, Ae, we, Ve + 60 * ne.offset * 1e3)) : ee ? new Date(Date.UTC(Re, Le, ve, B, Ae, we, Ve)) : new Date(Re, Le, ve, B, Ae, we, Ve);
6943
+ var q = w($)(K), te = q.year, ie = q.month, _ = q.day, D = q.hours, oe = q.minutes, T = q.seconds, j = q.milliseconds, ne = q.zone, le = new Date(), ve = _ || (te || ie ? 1 : le.getDate()), Re = te || le.getFullYear(), Ae = 0;
6944
+ te && !ie || (Ae = ie > 0 ? ie - 1 : le.getMonth());
6945
+ var B = D || 0, Me = oe || 0, we = T || 0, Ve = j || 0;
6946
+ return ne ? new Date(Date.UTC(Re, Ae, ve, B, Me, we, Ve + 60 * ne.offset * 1e3)) : ee ? new Date(Date.UTC(Re, Ae, ve, B, Me, we, Ve)) : new Date(Re, Ae, ve, B, Me, we, Ve);
6943
6947
  } catch {
6944
6948
  return new Date("");
6945
6949
  }
@@ -7020,7 +7024,7 @@ const Xl = (e, t = "YYYY-MM-DD") => N(e).format(t), e5 = (e, t = "h:mm a") => {
7020
7024
  return Se(() => {
7021
7025
  y(e);
7022
7026
  }, [e]), /* @__PURE__ */ n.createElement(
7023
- ke,
7027
+ Le,
7024
7028
  {
7025
7029
  visible: w,
7026
7030
  maxWidth: 900,
@@ -7041,7 +7045,7 @@ const Xl = (e, t = "YYYY-MM-DD") => N(e).format(t), e5 = (e, t = "h:mm a") => {
7041
7045
  onClick: f
7042
7046
  }
7043
7047
  ),
7044
- /* @__PURE__ */ n.createElement(ke.Content, { className: "pr-1" }, w && /* @__PURE__ */ n.createElement(
7048
+ /* @__PURE__ */ n.createElement(Le.Content, { className: "pr-1" }, w && /* @__PURE__ */ n.createElement(
7045
7049
  gr,
7046
7050
  {
7047
7051
  variant: t,
@@ -7083,7 +7087,7 @@ const Jl = ({ value: e, error: t }) => /* @__PURE__ */ n.createElement("span", n
7083
7087
  (b = d == null ? void 0 : d.current.querySelector("select,textarea,input")) == null || b.focus();
7084
7088
  }, 0), a == null || a(g);
7085
7089
  };
7086
- return /* @__PURE__ */ n.createElement(ke, { visible: t, onClickOutside: r, ...u }, /* @__PURE__ */ n.createElement(
7090
+ return /* @__PURE__ */ n.createElement(Le, { visible: t, onClickOutside: r, ...u }, /* @__PURE__ */ n.createElement(
7087
7091
  "span",
7088
7092
  {
7089
7093
  className: E(
@@ -7095,7 +7099,7 @@ const Jl = ({ value: e, error: t }) => /* @__PURE__ */ n.createElement("span", n
7095
7099
  },
7096
7100
  /* @__PURE__ */ n.createElement("span", { className: E("border-b border-b-black font-bold text-black", i == null ? void 0 : i.textField) }, /* @__PURE__ */ n.createElement(Jl, { value: e, error: s })),
7097
7101
  o && /* @__PURE__ */ n.createElement(fr, { size: "medium" })
7098
- ), /* @__PURE__ */ n.createElement(ke.Content, null, /* @__PURE__ */ n.createElement("div", { ref: d, className: E("p-2", i == null ? void 0 : i.children) }, l)));
7102
+ ), /* @__PURE__ */ n.createElement(Le.Content, null, /* @__PURE__ */ n.createElement("div", { ref: d, className: E("p-2", i == null ? void 0 : i.children) }, l)));
7099
7103
  }, Ul = ({
7100
7104
  src: e,
7101
7105
  size: t = "large",
@@ -7470,7 +7474,7 @@ const r5 = (e) => /* @__PURE__ */ n.createElement("svg", { xmlns: "http://www.w3
7470
7474
  container(e, t, o, a) {
7471
7475
  const r = (i) => o(i, a);
7472
7476
  return /* @__PURE__ */ n.createElement(
7473
- ye,
7477
+ Ie,
7474
7478
  {
7475
7479
  appear: !0,
7476
7480
  as: be,
@@ -7495,7 +7499,7 @@ const r5 = (e) => /* @__PURE__ */ n.createElement("svg", { xmlns: "http://www.w3
7495
7499
  dismiss(e) {
7496
7500
  Cr.dismiss(e);
7497
7501
  }
7498
- }, Ee = {
7502
+ }, ye = {
7499
7503
  colors: {
7500
7504
  transparent: "transparent",
7501
7505
  current: "currentColor",
@@ -7850,13 +7854,13 @@ const r5 = (e) => /* @__PURE__ */ n.createElement("svg", { xmlns: "http://www.w3
7850
7854
  "7.5": "30px"
7851
7855
  }
7852
7856
  }
7853
- }, { colors: me } = Ee, Ge = {
7857
+ }, { colors: me } = ye, Ge = {
7854
7858
  color: me.gray.darker,
7855
- fontSize: Ee.fontSize.sm,
7859
+ fontSize: ye.fontSize.sm,
7856
7860
  fontWeight: 400,
7857
7861
  cursor: "pointer",
7858
7862
  textOverflow: "ellipsis",
7859
- fontFamily: Ee.extend.fontFamily.sans
7863
+ fontFamily: ye.extend.fontFamily.sans
7860
7864
  }, la = {
7861
7865
  global: {
7862
7866
  useUTC: !1
@@ -7941,14 +7945,14 @@ const r5 = (e) => /* @__PURE__ */ n.createElement("svg", { xmlns: "http://www.w3
7941
7945
  type: "datetime",
7942
7946
  step: 1,
7943
7947
  minTickInterval: 24 * 3600 * 1e3,
7944
- lineColor: Ee.colors.gray.darker,
7948
+ lineColor: ye.colors.gray.darker,
7945
7949
  lineWidth: 1,
7946
7950
  gridLineWidth: "1",
7947
7951
  gridLineColor: "#DEDEDE",
7948
7952
  gridLineDashStyle: "dot"
7949
7953
  },
7950
7954
  yAxis: {
7951
- lineColor: Ee.colors.gray.darker,
7955
+ lineColor: ye.colors.gray.darker,
7952
7956
  lineWidth: 1,
7953
7957
  gridLineWidth: "1",
7954
7958
  gridLineColor: "#DEDEDE",
@@ -7976,7 +7980,7 @@ const r5 = (e) => /* @__PURE__ */ n.createElement("svg", { xmlns: "http://www.w3
7976
7980
  fontSize: "14px",
7977
7981
  color: "#666666",
7978
7982
  textTransform: "capitalize",
7979
- fontFamily: Ee.extend.fontFamily.sans
7983
+ fontFamily: ye.extend.fontFamily.sans
7980
7984
  },
7981
7985
  itemMarginBottom: 5,
7982
7986
  align: "center",
@@ -8008,15 +8012,15 @@ const r5 = (e) => /* @__PURE__ */ n.createElement("svg", { xmlns: "http://www.w3
8008
8012
  maxHeight: 120,
8009
8013
  width: 220,
8010
8014
  navigation: {
8011
- activeColor: Ee.colors.gray.darker,
8015
+ activeColor: ye.colors.gray.darker,
8012
8016
  animation: "true",
8013
- style: Ee.extend.fontFamily.sans
8017
+ style: ye.extend.fontFamily.sans
8014
8018
  },
8015
8019
  padding: 5,
8016
- backgroundColor: Ee.colors.white,
8020
+ backgroundColor: ye.colors.white,
8017
8021
  itemMarginTop: 1,
8018
8022
  itemMarginBottom: 3,
8019
- itemStyle: Ee.extend.fontFamily.sans,
8023
+ itemStyle: ye.extend.fontFamily.sans,
8020
8024
  style: { overflow: "hidden" },
8021
8025
  align: "left",
8022
8026
  layout: "horizontal",
@@ -11517,7 +11521,7 @@ export {
11517
11521
  Q5 as PlayMarketBadge,
11518
11522
  P4 as PlusIcon,
11519
11523
  X4 as PolicyIcon,
11520
- ke as Popover,
11524
+ Le as Popover,
11521
11525
  St as PopoverList,
11522
11526
  _5 as PrintIcon,
11523
11527
  Y4 as ProductsIcon,
@@ -11612,5 +11616,5 @@ export {
11612
11616
  Kn as isZeroDecimal,
11613
11617
  $n as numberFormat,
11614
11618
  Y1 as roundNumber,
11615
- Ee as theme
11619
+ ye as theme
11616
11620
  };