@vacano/ui 1.3.0 → 1.4.1

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.js CHANGED
@@ -3,7 +3,7 @@ import { css as hr, Global as br, withEmotionCache as gr, ThemeContext as fr, ke
3
3
  import * as Re from "react";
4
4
  import { useMemo as re, useRef as U, useImperativeHandle as xr, useState as V, useCallback as M, useLayoutEffect as lt, useEffect as je, cloneElement as $r, createContext as yr, useReducer as vr, useContext as wr } from "react";
5
5
  import { C as o, a as l, K as fe, g as mr, u as kr, B as Ie, m as Ne } from "./media-BR6nutcO.js";
6
- import { n as _ } from "./tooling-YDHxmiMT.js";
6
+ import { n as D } from "./tooling-YDHxmiMT.js";
7
7
  import { createPortal as ve } from "react-dom";
8
8
  function Tt() {
9
9
  return Tt = Object.assign ? Object.assign.bind() : function(e) {
@@ -157,7 +157,7 @@ const Sr = hr`
157
157
  :focus:not(:focus-visible) {
158
158
  outline: none;
159
159
  }
160
- `, Kl = () => /* @__PURE__ */ s(br, { styles: Sr });
160
+ `, ed = () => /* @__PURE__ */ s(br, { styles: Sr });
161
161
  var zr = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Pr = /* @__PURE__ */ nr(
162
162
  function(e) {
163
163
  return zr.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
@@ -209,14 +209,14 @@ var zr = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
209
209
  typeof y.className == "string" ? T = ar(x.registered, N, y.className) : y.className != null && (T = y.className + " ");
210
210
  var I = lr(f.concat(N), x.registered, L);
211
211
  T += x.key + "-" + I.name, c !== void 0 && (T += " " + c);
212
- var F = b && d === void 0 ? Yt(g) : u, D = {};
212
+ var F = b && d === void 0 ? Yt(g) : u, O = {};
213
213
  for (var z in y)
214
- b && z === "as" || F(z) && (D[z] = y[z]);
215
- return D.className = T, m && (D.ref = m), /* @__PURE__ */ Re.createElement(Re.Fragment, null, /* @__PURE__ */ Re.createElement(Tr, {
214
+ b && z === "as" || F(z) && (O[z] = y[z]);
215
+ return O.className = T, m && (O.ref = m), /* @__PURE__ */ Re.createElement(Re.Fragment, null, /* @__PURE__ */ Re.createElement(Tr, {
216
216
  cache: x,
217
217
  serialized: I,
218
218
  isStringTag: typeof g == "string"
219
- }), /* @__PURE__ */ Re.createElement(g, D));
219
+ }), /* @__PURE__ */ Re.createElement(g, O));
220
220
  });
221
221
  return v.displayName = a !== void 0 ? a : "Styled(" + (typeof n == "string" ? n : n.displayName || n.name || "Component") + ")", v.defaultProps = t.defaultProps, v.__emotion_real = v, v.__emotion_base = n, v.__emotion_styles = f, v.__emotion_forwardProp = d, Object.defineProperty(v, "toString", {
222
222
  value: function() {
@@ -560,11 +560,11 @@ const jt = {
560
560
  overflow: hidden;
561
561
  white-space: nowrap;
562
562
  text-overflow: ellipsis;
563
- `, _r = p(pr)`
563
+ `, Or = p(pr)`
564
564
  width: ${(e) => le(e.$size).iconSize};
565
565
  height: ${(e) => le(e.$size).iconSize};
566
566
  animation: ${fe.rotate} 0.8s linear infinite;
567
- `, Or = p.div`
567
+ `, _r = p.div`
568
568
  display: flex;
569
569
  gap: 3px;
570
570
  `, Mr = p.span`
@@ -580,13 +580,13 @@ const jt = {
580
580
  border-radius: 4px;
581
581
  width: fit-content;
582
582
  background-color: ${(e) => e.$variant === "light" ? l(o.white, 25) : l(o.black, 25)};
583
- `, Fr = _("key-symbol"), Br = ({
583
+ `, Fr = D("key-symbol"), Br = ({
584
584
  className: e,
585
585
  ref: t,
586
586
  symbol: r,
587
587
  variant: i = "light",
588
588
  ...n
589
- }) => r ? /* @__PURE__ */ s(Mr, { ...n, ref: t, className: Fr("container", e), $variant: i, children: r }) : null, Wt = _("key-bindings"), Yr = ({
589
+ }) => r ? /* @__PURE__ */ s(Mr, { ...n, ref: t, className: Fr("container", e), $variant: i, children: r }) : null, Wt = D("key-bindings"), Yr = ({
590
590
  className: e,
591
591
  classnames: t,
592
592
  keys: r,
@@ -595,7 +595,7 @@ const jt = {
595
595
  ...a
596
596
  }) => {
597
597
  const c = re(() => mr(r), [r]);
598
- return c.length === 0 ? null : /* @__PURE__ */ s(Or, { ...a, ref: i, className: Wt("container", e), children: c.map((d) => /* @__PURE__ */ s(
598
+ return c.length === 0 ? null : /* @__PURE__ */ s(_r, { ...a, ref: i, className: Wt("container", e), children: c.map((d) => /* @__PURE__ */ s(
599
599
  Br,
600
600
  {
601
601
  symbol: d,
@@ -604,7 +604,7 @@ const jt = {
604
604
  },
605
605
  d
606
606
  )) });
607
- }, Xt = _("button"), nt = ({
607
+ }, Xt = D("button"), nt = ({
608
608
  children: e,
609
609
  className: t,
610
610
  classnames: r,
@@ -647,7 +647,7 @@ const jt = {
647
647
  $fullWidth: !!n,
648
648
  $iconOnly: !!a && !(e || (b == null ? void 0 : b.length) > 0),
649
649
  children: [
650
- c && /* @__PURE__ */ s(_r, { $size: h }),
650
+ c && /* @__PURE__ */ s(Or, { $size: h }),
651
651
  a && !c && /* @__PURE__ */ s(Ar, { $size: h, children: a }),
652
652
  e && /* @__PURE__ */ s(Dr, { className: Xt("label", r == null ? void 0 : r.label), children: e }),
653
653
  /* @__PURE__ */ s(Yr, { keys: b, variant: $ === "system" ? "light" : "dark" })
@@ -659,7 +659,7 @@ const jt = {
659
659
  border-radius: 16px;
660
660
  border: ${(e) => e.$border ? `1px solid ${l(o["iron-grey"], 15)}` : "none"};
661
661
  box-shadow: ${(e) => e.$shadow ? `0 2px 8px ${l(o.black, 10)}` : "none"};
662
- `, jr = _("card"), Jl = ({
662
+ `, jr = D("card"), td = ({
663
663
  children: e,
664
664
  className: t,
665
665
  ref: r,
@@ -701,7 +701,7 @@ const jt = {
701
701
  }
702
702
  }, xe = (e) => Ut[e] ?? Ut.normal, Vr = p.label`
703
703
  display: inline-flex;
704
- align-items: center;
704
+ align-items: flex-start;
705
705
  gap: 8px;
706
706
  cursor: ${(e) => e.$disabled ? "not-allowed" : "pointer"};
707
707
  opacity: ${(e) => e.$disabled ? 0.5 : 1};
@@ -748,10 +748,20 @@ const jt = {
748
748
  `, qr = p.span`
749
749
  font-size: 14px;
750
750
  font-weight: 500;
751
- line-height: 1;
751
+ line-height: 1.4;
752
752
  color: ${(e) => xe(e.$variant).label};
753
753
  user-select: none;
754
- `, Le = _("checkbox"), _t = ({
754
+
755
+ a {
756
+ color: inherit;
757
+ text-decoration: underline;
758
+ cursor: pointer;
759
+
760
+ &:hover {
761
+ text-decoration: none;
762
+ }
763
+ }
764
+ `, Le = D("checkbox"), Ot = ({
755
765
  checked: e,
756
766
  className: t,
757
767
  classnames: r,
@@ -932,7 +942,7 @@ const jt = {
932
942
  label[data-disabled='true'] & {
933
943
  color: ${(e) => he(e.$variant).description.disabled};
934
944
  }
935
- `, qe = _("checkbox-card"), Ql = ({
945
+ `, qe = D("checkbox-card"), od = ({
936
946
  checked: e,
937
947
  className: t,
938
948
  classnames: r,
@@ -966,7 +976,7 @@ const jt = {
966
976
  }
967
977
  ),
968
978
  /* @__PURE__ */ s(
969
- _t,
979
+ Ot,
970
980
  {
971
981
  className: r == null ? void 0 : r.checkbox,
972
982
  checked: e,
@@ -1010,7 +1020,7 @@ const jt = {
1010
1020
  display: flex;
1011
1021
  flex-direction: column;
1012
1022
  gap: 12px;
1013
- `, ut = _("checkbox-group"), ed = ({
1023
+ `, ut = D("checkbox-group"), rd = ({
1014
1024
  className: e,
1015
1025
  classnames: t,
1016
1026
  disabled: r,
@@ -1027,7 +1037,7 @@ const jt = {
1027
1037
  return /* @__PURE__ */ P(ei, { ...u, ref: c, className: ut("container", e), children: [
1028
1038
  i && /* @__PURE__ */ s(ti, { className: ut("label", t == null ? void 0 : t.label), $disabled: r, children: i }),
1029
1039
  /* @__PURE__ */ s(oi, { className: ut("options", t == null ? void 0 : t.options), children: a.map((h) => /* @__PURE__ */ s(
1030
- _t,
1040
+ Ot,
1031
1041
  {
1032
1042
  className: t == null ? void 0 : t.checkbox,
1033
1043
  checked: d.includes(h.value),
@@ -1096,7 +1106,7 @@ const jt = {
1096
1106
  `, ni = p.span`
1097
1107
  flex: 1 0 auto;
1098
1108
  text-align: center;
1099
- `, ht = _("chip"), It = ({
1109
+ `, ht = D("chip"), It = ({
1100
1110
  children: e,
1101
1111
  className: t,
1102
1112
  classnames: r,
@@ -1171,7 +1181,7 @@ const jt = {
1171
1181
  display: flex;
1172
1182
  align-items: center;
1173
1183
  gap: 8px;
1174
- `, Ae = _("confirmation"), td = ({
1184
+ `, Ae = D("confirmation"), id = ({
1175
1185
  cancelBindings: e,
1176
1186
  cancelLabel: t = li,
1177
1187
  className: r,
@@ -1240,7 +1250,7 @@ const jt = {
1240
1250
  ${Ne("2xl")} {
1241
1251
  max-width: ${De["2xl"]};
1242
1252
  }
1243
- `, bi = _("container"), od = ({
1253
+ `, bi = D("container"), nd = ({
1244
1254
  children: e,
1245
1255
  className: t,
1246
1256
  ref: r,
@@ -1390,7 +1400,7 @@ const jt = {
1390
1400
  font-size: 12px;
1391
1401
  font-weight: 500;
1392
1402
  color: ${(e) => e.$variant === "normal" ? o.black : o.red};
1393
- `, Pi = _("field-label"), Pe = ({
1403
+ `, Pi = D("field-label"), Pe = ({
1394
1404
  children: e,
1395
1405
  className: t,
1396
1406
  ref: r,
@@ -1556,11 +1566,11 @@ const jt = {
1556
1566
  font-weight: 500;
1557
1567
  color: ${l(o.black, 50)};
1558
1568
  text-transform: uppercase;
1559
- `, _i = p.div`
1569
+ `, Oi = p.div`
1560
1570
  display: grid;
1561
1571
  grid-template-columns: repeat(7, ${ce}px);
1562
1572
  gap: ${dt}px;
1563
- `, Oi = p.button`
1573
+ `, _i = p.button`
1564
1574
  display: flex;
1565
1575
  align-items: center;
1566
1576
  justify-content: center;
@@ -1653,7 +1663,7 @@ const jt = {
1653
1663
  `, Hi = p.div`
1654
1664
  width: ${ce}px;
1655
1665
  height: ${ce}px;
1656
- `, ee = _("date-picker"), Ge = 4, ji = 300, rd = ({
1666
+ `, ee = D("date-picker"), Ge = 4, ji = 300, ad = ({
1657
1667
  value: e,
1658
1668
  onChange: t,
1659
1669
  mode: r = "date",
@@ -1677,16 +1687,16 @@ const jt = {
1677
1687
  ref: T,
1678
1688
  ...N
1679
1689
  }) => {
1680
- const L = re(() => /* @__PURE__ */ new Date(), []), [q, I] = V(!1), [F, D] = V({ top: 0, left: 0 }), [z, H] = V("bottom"), [k, A] = V(() => r === "year" ? "years" : r === "month" ? "months" : "days"), [E, B] = V(() => e ?? L), [W, Y] = V(() => ((e == null ? void 0 : e.getFullYear()) ?? L.getFullYear()) - 6), X = U(null), R = U(null), O = U(null), J = v !== void 0, Q = J ? v : q, we = i ?? Si(r), Ve = re(() => vi(a, c), [a, c]), ct = re(() => wi(a), [a]), Yo = re(
1690
+ const L = re(() => /* @__PURE__ */ new Date(), []), [q, I] = V(!1), [F, O] = V({ top: 0, left: 0 }), [z, H] = V("bottom"), [k, A] = V(() => r === "year" ? "years" : r === "month" ? "months" : "days"), [E, B] = V(() => e ?? L), [W, Y] = V(() => ((e == null ? void 0 : e.getFullYear()) ?? L.getFullYear()) - 6), X = U(null), R = U(null), _ = U(null), J = v !== void 0, Q = J ? v : q, we = i ?? Si(r), Ve = re(() => vi(a, c), [a, c]), ct = re(() => wi(a), [a]), Yo = re(
1681
1691
  () => yi(E.getFullYear(), E.getMonth(), c),
1682
1692
  [E, c]
1683
- ), We = re(() => ki(W + 6, 12), [W]), Ot = re(() => e ? fi(e, we, a) : null, [e, we, a]), Ho = n ?? we.replace(/2006|06|January|Jan|01|02/g, "__"), Ee = M(() => {
1693
+ ), We = re(() => ki(W + 6, 12), [W]), _t = re(() => e ? fi(e, we, a) : null, [e, we, a]), Ho = n ?? we.replace(/2006|06|January|Jan|01|02/g, "__"), Ee = M(() => {
1684
1694
  var Te;
1685
1695
  if (!R.current) return;
1686
- const S = R.current.getBoundingClientRect(), j = ((Te = O.current) == null ? void 0 : Te.offsetHeight) ?? ji, Ce = window.innerHeight - S.bottom - Ge, Xe = S.top - Ge, me = Ce < j && Xe > Ce ? "top" : "bottom";
1696
+ const S = R.current.getBoundingClientRect(), j = ((Te = _.current) == null ? void 0 : Te.offsetHeight) ?? ji, Ce = window.innerHeight - S.bottom - Ge, Xe = S.top - Ge, me = Ce < j && Xe > Ce ? "top" : "bottom";
1687
1697
  if (H(me), w) {
1688
1698
  const Ue = me === "bottom" ? S.bottom + Ge : S.top - j - Ge;
1689
- D({
1699
+ O({
1690
1700
  top: Ue,
1691
1701
  left: S.left
1692
1702
  });
@@ -1742,7 +1752,7 @@ const jt = {
1742
1752
  Q && Ee();
1743
1753
  }, [Q, Ee]), je(() => {
1744
1754
  const S = (me) => {
1745
- const Te = me.target, Ue = X.current && !X.current.contains(Te), ir = O.current && !O.current.contains(Te);
1755
+ const Te = me.target, Ue = X.current && !X.current.contains(Te), ir = _.current && !_.current.contains(Te);
1746
1756
  w ? Ue && ir && te() : Ue && te();
1747
1757
  }, j = (me) => {
1748
1758
  me.key === "Escape" && te();
@@ -1764,9 +1774,9 @@ const jt = {
1764
1774
  ] })
1765
1775
  ] }),
1766
1776
  /* @__PURE__ */ s(Ai, { children: Ve.map((S, j) => /* @__PURE__ */ s(Di, { children: S }, j)) }),
1767
- /* @__PURE__ */ s(_i, { className: ee("grid", g == null ? void 0 : g.grid), children: Yo.map(
1777
+ /* @__PURE__ */ s(Oi, { className: ee("grid", g == null ? void 0 : g.grid), children: Yo.map(
1768
1778
  (S, j) => S === null ? /* @__PURE__ */ s(Hi, {}, j) : /* @__PURE__ */ s(
1769
- Oi,
1779
+ _i,
1770
1780
  {
1771
1781
  type: "button",
1772
1782
  className: ee("cell", g == null ? void 0 : g.cell),
@@ -1853,7 +1863,7 @@ const jt = {
1853
1863
  /* @__PURE__ */ s(
1854
1864
  Li,
1855
1865
  {
1856
- ref: O,
1866
+ ref: _,
1857
1867
  $open: Q,
1858
1868
  $position: z,
1859
1869
  className: ee("calendar", g == null ? void 0 : g.calendar),
@@ -1865,7 +1875,7 @@ const jt = {
1865
1875
  ) : /* @__PURE__ */ s(
1866
1876
  Ni,
1867
1877
  {
1868
- ref: O,
1878
+ ref: _,
1869
1879
  $open: Q,
1870
1880
  $position: z,
1871
1881
  className: ee("calendar", g == null ? void 0 : g.calendar),
@@ -1892,10 +1902,10 @@ const jt = {
1892
1902
  $variant: h,
1893
1903
  $disabled: f,
1894
1904
  $open: Q,
1895
- $hasValue: !!Ot,
1905
+ $hasValue: !!_t,
1896
1906
  className: ee("trigger", g == null ? void 0 : g.trigger),
1897
1907
  children: [
1898
- /* @__PURE__ */ s(Ri, { children: Ot ?? Ho }),
1908
+ /* @__PURE__ */ s(Ri, { children: _t ?? Ho }),
1899
1909
  /* @__PURE__ */ s(Ii, { $open: Q, children: /* @__PURE__ */ s(Co, { size: Qo }) })
1900
1910
  ]
1901
1911
  }
@@ -1947,7 +1957,7 @@ const jt = {
1947
1957
  box-shadow: 0 4px 24px ${l(o.black, 20)};
1948
1958
  ${(e) => Wi(e.$position, e.$size)}
1949
1959
  animation: ${(e) => Vi[e.$position]} ${(e) => e.$animated ? "0.05s" : "0s"} ease-out forwards;
1950
- `, Ui = _("drawer"), id = ({
1960
+ `, Ui = D("drawer"), ld = ({
1951
1961
  animated: e,
1952
1962
  children: t,
1953
1963
  className: r,
@@ -2005,7 +2015,7 @@ const jt = {
2005
2015
  opacity 0.15s ease,
2006
2016
  transform 0.15s ease,
2007
2017
  visibility 0.15s;
2008
- `, Ze = _("dropdown"), Ke = 4, Ji = 100, nd = ({
2018
+ `, Ze = D("dropdown"), Ke = 4, Ji = 100, dd = ({
2009
2019
  align: e = "left",
2010
2020
  children: t,
2011
2021
  className: r,
@@ -2021,16 +2031,16 @@ const jt = {
2021
2031
  const [f, $] = V(!1), [C, w] = V({ top: 0, left: 0 }), [v, y] = V("bottom"), x = U(null), m = U(null), g = U(null), T = c !== void 0, N = T ? c : f, L = M(() => {
2022
2032
  var B, W;
2023
2033
  if (!m.current) return;
2024
- const D = m.current.getBoundingClientRect(), z = ((B = g.current) == null ? void 0 : B.offsetHeight) ?? Ji, H = ((W = g.current) == null ? void 0 : W.offsetWidth) ?? 160, k = window.innerHeight - D.bottom - Ke, A = D.top - Ke, E = k < z && A > k ? "top" : "bottom";
2034
+ const O = m.current.getBoundingClientRect(), z = ((B = g.current) == null ? void 0 : B.offsetHeight) ?? Ji, H = ((W = g.current) == null ? void 0 : W.offsetWidth) ?? 160, k = window.innerHeight - O.bottom - Ke, A = O.top - Ke, E = k < z && A > k ? "top" : "bottom";
2025
2035
  if (y(E), d) {
2026
2036
  let Y;
2027
- e === "left" ? Y = D.left : Y = D.right - H;
2028
- const X = E === "bottom" ? D.bottom + Ke : D.top - z - Ke;
2037
+ e === "left" ? Y = O.left : Y = O.right - H;
2038
+ const X = E === "bottom" ? O.bottom + Ke : O.top - z - Ke;
2029
2039
  w({ top: X, left: Y });
2030
2040
  }
2031
2041
  }, [e, d]), q = M(() => {
2032
- T ? N ? n == null || n() : a == null || a() : $((D) => {
2033
- const z = !D;
2042
+ T ? N ? n == null || n() : a == null || a() : $((O) => {
2043
+ const z = !O;
2034
2044
  return z ? a == null || a() : n == null || n(), z;
2035
2045
  });
2036
2046
  }, [T, N, n, a]), I = M(() => {
@@ -2039,7 +2049,7 @@ const jt = {
2039
2049
  lt(() => {
2040
2050
  N && L();
2041
2051
  }, [N, L]), je(() => {
2042
- const D = (A) => {
2052
+ const O = (A) => {
2043
2053
  const E = A.target, B = x.current && !x.current.contains(E), W = g.current && !g.current.contains(E);
2044
2054
  d ? B && W && I() : B && I();
2045
2055
  }, z = (A) => {
@@ -2049,8 +2059,8 @@ const jt = {
2049
2059
  }, k = () => {
2050
2060
  N && d && L();
2051
2061
  };
2052
- return N && (document.addEventListener("mousedown", D), document.addEventListener("keydown", z), d && (window.addEventListener("scroll", H, !0), window.addEventListener("resize", k))), () => {
2053
- document.removeEventListener("mousedown", D), document.removeEventListener("keydown", z), window.removeEventListener("scroll", H, !0), window.removeEventListener("resize", k);
2062
+ return N && (document.addEventListener("mousedown", O), document.addEventListener("keydown", z), d && (window.addEventListener("scroll", H, !0), window.addEventListener("resize", k))), () => {
2063
+ document.removeEventListener("mousedown", O), document.removeEventListener("keydown", z), window.removeEventListener("scroll", H, !0), window.removeEventListener("resize", k);
2054
2064
  };
2055
2065
  }, [N, I, d, L]);
2056
2066
  const F = d ? ve(
@@ -2089,11 +2099,37 @@ const jt = {
2089
2099
  ),
2090
2100
  F
2091
2101
  ] });
2092
- }, Qi = p.div`
2102
+ }, Qi = {
2103
+ normal: o["iron-grey"],
2104
+ error: o.red,
2105
+ success: o.green,
2106
+ warning: o.yellow
2107
+ }, en = p.span`
2108
+ display: block;
2109
+ font-size: 12px;
2110
+ font-weight: 500;
2111
+ line-height: 1.4;
2112
+ color: ${(e) => Qi[e.$variant]};
2113
+ `, tn = D("field-message"), cd = ({
2114
+ children: e,
2115
+ className: t,
2116
+ ref: r,
2117
+ variant: i = "normal",
2118
+ ...n
2119
+ }) => e ? /* @__PURE__ */ s(
2120
+ en,
2121
+ {
2122
+ ...n,
2123
+ ref: r,
2124
+ className: tn("container", t),
2125
+ $variant: i,
2126
+ children: e
2127
+ }
2128
+ ) : null, on = p.div`
2093
2129
  display: flex;
2094
2130
  flex-direction: column;
2095
2131
  gap: 12px;
2096
- `, en = p.div`
2132
+ `, rn = p.div`
2097
2133
  width: ${({ $size: e }) => e}px;
2098
2134
  height: ${({ $size: e }) => e}px;
2099
2135
  border-radius: 8px;
@@ -2109,10 +2145,10 @@ const jt = {
2109
2145
  height: 100%;
2110
2146
  object-fit: cover;
2111
2147
  }
2112
- `, tn = p.span`
2148
+ `, nn = p.span`
2113
2149
  font-size: 12px;
2114
2150
  color: ${o["iron-grey"]};
2115
- `, on = (e) => `
2151
+ `, an = (e) => `
2116
2152
  .${e} {
2117
2153
  padding: 7px 16px;
2118
2154
  font-size: 14px;
@@ -2130,7 +2166,7 @@ const jt = {
2130
2166
  .${e}:active {
2131
2167
  transform: translate(0, 1px);
2132
2168
  }
2133
- `, rn = (e) => `
2169
+ `, ln = (e) => `
2134
2170
  .${e} {
2135
2171
  display: flex;
2136
2172
  flex: 1 1 auto;
@@ -2154,7 +2190,7 @@ const jt = {
2154
2190
  max-height: 70vh;
2155
2191
  }
2156
2192
  }
2157
- `, nn = (e) => `
2193
+ `, dn = (e) => `
2158
2194
  .${e} {
2159
2195
  padding: 7px 16px;
2160
2196
  font-size: 14px;
@@ -2172,7 +2208,7 @@ const jt = {
2172
2208
  .${e}:active {
2173
2209
  transform: translate(0, 1px);
2174
2210
  }
2175
- `, an = (e) => `
2211
+ `, cn = (e) => `
2176
2212
  .${e} {
2177
2213
  display: flex;
2178
2214
  flex-direction: column;
@@ -2190,7 +2226,7 @@ const jt = {
2190
2226
  border-radius: 8px;
2191
2227
  }
2192
2228
  }
2193
- `, ln = (e) => `
2229
+ `, sn = (e) => `
2194
2230
  .${e} {
2195
2231
  display: flex;
2196
2232
  justify-content: flex-end;
@@ -2209,7 +2245,7 @@ const jt = {
2209
2245
  gap: 8px;
2210
2246
  }
2211
2247
  }
2212
- `, dn = (e) => `
2248
+ `, pn = (e) => `
2213
2249
  .${e} {
2214
2250
  display: flex;
2215
2251
  justify-content: flex-start;
@@ -2231,7 +2267,7 @@ const jt = {
2231
2267
  font-size: 14px;
2232
2268
  }
2233
2269
  }
2234
- `, cn = (e) => `
2270
+ `, un = (e) => `
2235
2271
  .${e} {
2236
2272
  display: block;
2237
2273
  z-index: 101;
@@ -2249,27 +2285,27 @@ const jt = {
2249
2285
  position: absolute;
2250
2286
  touch-action: none;
2251
2287
  }
2252
- `, sn = (e) => `
2288
+ `, hn = (e) => `
2253
2289
  .${e} {
2254
2290
  position: absolute;
2255
2291
  z-index: 2;
2256
2292
  background-color: rgba(0, 0, 0, 0.6);
2257
2293
  touch-action: none;
2258
2294
  }
2259
- `, pn = (e) => `
2295
+ `, bn = (e) => `
2260
2296
  .${e} {
2261
2297
  position: absolute;
2262
2298
  z-index: 3;
2263
2299
  touch-action: none;
2264
2300
  }
2265
- `, un = (e) => `
2301
+ `, gn = (e) => `
2266
2302
  .${e} {
2267
2303
  backface-visibility: hidden;
2268
2304
  perspective: 1000px;
2269
2305
  max-inline-size: unset !important;
2270
2306
  max-block-size: unset !important;
2271
2307
  }
2272
- `, hn = (e) => `
2308
+ `, fn = (e) => `
2273
2309
  .${e} {
2274
2310
  position: absolute;
2275
2311
  z-index: 100;
@@ -2280,18 +2316,18 @@ const jt = {
2280
2316
  overflow: hidden;
2281
2317
  border-radius: 50%;
2282
2318
  }
2283
- `, bn = {
2319
+ `, xn = {
2284
2320
  tl: "nw-resize",
2285
2321
  tr: "ne-resize",
2286
2322
  bl: "sw-resize",
2287
2323
  br: "se-resize"
2288
- }, gn = {
2324
+ }, $n = {
2289
2325
  tl: { h: "left", v: "top" },
2290
2326
  tr: { h: "right", v: "top" },
2291
2327
  bl: { h: "left", v: "bottom" },
2292
2328
  br: { h: "right", v: "bottom" }
2293
2329
  }, Je = (e, t) => {
2294
- const r = bn[t], { h: i, v: n } = gn[t];
2330
+ const r = xn[t], { h: i, v: n } = $n[t];
2295
2331
  return `
2296
2332
  .${e} {
2297
2333
  display: block;
@@ -2319,7 +2355,7 @@ const jt = {
2319
2355
  }
2320
2356
  }
2321
2357
  `;
2322
- }, fn = (e) => `
2358
+ }, yn = (e) => `
2323
2359
  .${e} {
2324
2360
  display: flex;
2325
2361
  align-items: center;
@@ -2345,7 +2381,7 @@ const jt = {
2345
2381
  padding-bottom: env(safe-area-inset-bottom, 8px);
2346
2382
  }
2347
2383
  }
2348
- `, xn = (e) => `
2384
+ `, vn = (e) => `
2349
2385
  .${e} {
2350
2386
  backface-visibility: hidden;
2351
2387
  user-select: none;
@@ -2358,16 +2394,16 @@ const jt = {
2358
2394
  position: absolute;
2359
2395
  z-index: 1;
2360
2396
  }
2361
- `, $n = (e) => {
2397
+ `, wn = (e) => {
2362
2398
  let t = 5381;
2363
2399
  for (let r = 0; r < e.length; r++)
2364
2400
  t = (t << 5) + t ^ e.charCodeAt(r);
2365
2401
  return Math.abs(t).toString(36);
2366
- }, G = (e) => `hq-cropper__${$n(e)}`, Z = (e) => e || [], K = (e, t) => {
2402
+ }, G = (e) => `hq-cropper__${wn(e)}`, Z = (e) => e || [], K = (e, t) => {
2367
2403
  if (t)
2368
2404
  for (const r of t)
2369
2405
  e.classList.add(r);
2370
- }, yn = (e) => {
2406
+ }, mn = (e) => {
2371
2407
  const t = {
2372
2408
  applyButton: [
2373
2409
  G("applyButton"),
@@ -2420,28 +2456,28 @@ const jt = {
2420
2456
  preview: [G("preview"), ...Z(e.preview)],
2421
2457
  root: [G("root"), ...Z(e.root)]
2422
2458
  }, r = `
2423
- ${on(t.applyButton[0])}
2424
- ${rn(t.body[0])}
2425
- ${nn(t.cancelButton[0])}
2426
- ${an(t.container[0])}
2427
- ${ln(t.footer[0])}
2428
- ${dn(t.header[0])}
2429
- ${cn(t.handlerMove[0])}
2430
- ${sn(t.portalArea[0])}
2431
- ${pn(t.portal[0])}
2432
- ${un(t.previewImage[0])}
2433
- ${hn(t.preview[0])}
2459
+ ${an(t.applyButton[0])}
2460
+ ${ln(t.body[0])}
2461
+ ${dn(t.cancelButton[0])}
2462
+ ${cn(t.container[0])}
2463
+ ${sn(t.footer[0])}
2464
+ ${pn(t.header[0])}
2465
+ ${un(t.handlerMove[0])}
2466
+ ${hn(t.portalArea[0])}
2467
+ ${bn(t.portal[0])}
2468
+ ${gn(t.previewImage[0])}
2469
+ ${fn(t.preview[0])}
2434
2470
  ${Je(t.handlerResizeBottomLeft[0], "bl")}
2435
2471
  ${Je(t.handlerResizeBottomRight[0], "br")}
2436
2472
  ${Je(t.handlerResizeTopLeft[0], "tl")}
2437
2473
  ${Je(t.handlerResizeTopRight[0], "tr")}
2438
- ${fn(t.root[0])}
2439
- ${xn(t.sourceImage[0])}
2474
+ ${yn(t.root[0])}
2475
+ ${vn(t.sourceImage[0])}
2440
2476
  `, i = document.createElement("style");
2441
2477
  return i.innerHTML = r, document.getElementsByTagName("head")[0].prepend(i), t;
2442
2478
  };
2443
- let vn = 0;
2444
- const wn = (e) => {
2479
+ let kn = 0;
2480
+ const Sn = (e) => {
2445
2481
  const t = /* @__PURE__ */ new Map(), r = new Proxy(
2446
2482
  { ...e },
2447
2483
  {
@@ -2460,7 +2496,7 @@ const wn = (e) => {
2460
2496
  a !== void 0 && (r[n] = a);
2461
2497
  }
2462
2498
  }, subscribe: (i, n) => {
2463
- const a = String(++vn), c = t.get(i) || [];
2499
+ const a = String(++kn), c = t.get(i) || [];
2464
2500
  return t.set(i, [
2465
2501
  ...c,
2466
2502
  {
@@ -2516,11 +2552,11 @@ const wn = (e) => {
2516
2552
  maxFileSize: 0,
2517
2553
  allowedTypes: ["image/jpeg", "image/png", "image/gif", "image/webp"]
2518
2554
  }
2519
- }, mn = (e = {}, t = {}) => wn({
2555
+ }, zn = (e = {}, t = {}) => Sn({
2520
2556
  ...Nt,
2521
2557
  config: { ...Nt.config, ...e },
2522
- css: yn(t)
2523
- }), kn = (e, t) => {
2558
+ css: mn(t)
2559
+ }), Pn = (e, t) => {
2524
2560
  var $;
2525
2561
  const r = e(), i = document.querySelector(
2526
2562
  `.${($ = r.css) == null ? void 0 : $.body[0]}`
@@ -2535,13 +2571,13 @@ const wn = (e) => {
2535
2571
  left: f,
2536
2572
  top: h
2537
2573
  };
2538
- }, Sn = (e, t, r) => {
2574
+ }, En = (e, t, r) => {
2539
2575
  const [i, n] = t, a = i + e > r.width ? (r.width - e) / 2 : i, c = n + e > r.height ? (r.height - e) / 2 : n;
2540
2576
  return [a, c];
2541
- }, zn = (e, t) => {
2577
+ }, Cn = (e, t) => {
2542
2578
  const { config: r } = e(), i = Math.min(t.width, t.height) - r.framePadding * 2, n = r.portalSize > i ? i : r.portalSize;
2543
2579
  if (Array.isArray(r.portalPosition) && r.portalPosition.length === 2) {
2544
- const [a, c] = Sn(
2580
+ const [a, c] = En(
2545
2581
  n,
2546
2582
  r.portalPosition,
2547
2583
  t
@@ -2563,78 +2599,78 @@ const wn = (e) => {
2563
2599
  };
2564
2600
  };
2565
2601
  var ae = /* @__PURE__ */ ((e) => (e.MOVE = "MOVE", e.RESIZE_TL = "RESIZE_TL", e.RESIZE_TR = "RESIZE_TR", e.RESIZE_BR = "RESIZE_BR", e.RESIZE_BL = "RESIZE_BL", e))(ae || {});
2566
- const Pn = (e) => {
2602
+ const Tn = (e) => {
2567
2603
  var i;
2568
2604
  const t = e(), r = document.createElement("span");
2569
2605
  return K(r, (i = t.css) == null ? void 0 : i.handlerMove), r.setAttribute("data-action", ae.MOVE), r;
2570
- }, En = (e) => {
2606
+ }, Rn = (e) => {
2571
2607
  var i;
2572
2608
  const t = e(), r = document.createElement("span");
2573
2609
  return K(r, (i = t.css) == null ? void 0 : i.handlerResizeBottomLeft), r.setAttribute("data-action", ae.RESIZE_BL), r;
2574
- }, Cn = (e) => {
2610
+ }, In = (e) => {
2575
2611
  var i;
2576
2612
  const t = e(), r = document.createElement("span");
2577
2613
  return K(r, (i = t.css) == null ? void 0 : i.handlerResizeBottomRight), r.setAttribute("data-action", ae.RESIZE_BR), r;
2578
- }, Tn = (e) => {
2614
+ }, Nn = (e) => {
2579
2615
  var i;
2580
2616
  const t = e(), r = document.createElement("span");
2581
2617
  return K(r, (i = t.css) == null ? void 0 : i.handlerResizeTopLeft), r.setAttribute("data-action", ae.RESIZE_TL), r;
2582
- }, Rn = (e) => {
2618
+ }, Ln = (e) => {
2583
2619
  var i;
2584
2620
  const t = e(), r = document.createElement("span");
2585
2621
  return K(r, (i = t.css) == null ? void 0 : i.handlerResizeTopRight), r.setAttribute("data-action", ae.RESIZE_TR), r;
2586
- }, In = (e) => {
2622
+ }, An = (e) => {
2587
2623
  var i;
2588
2624
  const t = e(), r = document.createElement("img");
2589
2625
  return K(r, (i = t.css) == null ? void 0 : i.previewImage), r;
2590
- }, Nn = (e) => {
2626
+ }, Dn = (e) => {
2591
2627
  var i;
2592
2628
  const t = e(), r = document.createElement("div");
2593
- return K(r, (i = t.css) == null ? void 0 : i.preview), r.appendChild(In(e)), r;
2594
- }, Ln = (e) => {
2629
+ return K(r, (i = t.css) == null ? void 0 : i.preview), r.appendChild(An(e)), r;
2630
+ }, On = (e) => {
2595
2631
  var i;
2596
2632
  const t = e(), r = document.createElement("div");
2597
- return K(r, (i = t.css) == null ? void 0 : i.portal), r.appendChild(Nn(e)), r.appendChild(Pn(e)), r.appendChild(Tn(e)), r.appendChild(Rn(e)), r.appendChild(En(e)), r.appendChild(Cn(e)), r;
2598
- }, An = (e) => {
2633
+ return K(r, (i = t.css) == null ? void 0 : i.portal), r.appendChild(Dn(e)), r.appendChild(Tn(e)), r.appendChild(Nn(e)), r.appendChild(Ln(e)), r.appendChild(Rn(e)), r.appendChild(In(e)), r;
2634
+ }, _n = (e) => {
2599
2635
  var i;
2600
2636
  const t = e(), r = document.createElement("div");
2601
- return K(r, (i = t.css) == null ? void 0 : i.portalArea), r.appendChild(Ln(e)), r;
2602
- }, Dn = (e) => {
2637
+ return K(r, (i = t.css) == null ? void 0 : i.portalArea), r.appendChild(On(e)), r;
2638
+ }, Mn = (e) => {
2603
2639
  var i;
2604
2640
  const t = e(), r = document.createElement("img");
2605
2641
  return K(r, (i = t.css) == null ? void 0 : i.sourceImage), r.setAttribute("alt", "source"), r.setAttribute("crossOrigin", "anonymous"), r.setAttribute("draggable", "false"), r.setAttribute("src", t.sourceBase64), r;
2606
- }, _n = (e) => {
2642
+ }, Fn = (e) => {
2607
2643
  var i;
2608
2644
  const t = e(), r = document.createElement("div");
2609
- return K(r, (i = t.css) == null ? void 0 : i.body), r.appendChild(Dn(e)), r.appendChild(An(e)), r;
2610
- }, On = (e, t) => {
2645
+ return K(r, (i = t.css) == null ? void 0 : i.body), r.appendChild(Mn(e)), r.appendChild(_n(e)), r;
2646
+ }, Bn = (e, t) => {
2611
2647
  var n;
2612
2648
  const r = e(), i = document.createElement("div");
2613
2649
  return K(i, (n = r.css) == null ? void 0 : n.applyButton), i.setAttribute("role", "button"), i.innerText = r.config.applyButtonLabel, i.addEventListener("click", t), i;
2614
- }, Mn = (e, t) => {
2650
+ }, Yn = (e, t) => {
2615
2651
  var n;
2616
2652
  const r = e(), i = document.createElement("div");
2617
2653
  return K(i, (n = r.css) == null ? void 0 : n.cancelButton), i.setAttribute("role", "button"), i.innerText = r.config.cancelButtonLabel, i.addEventListener("click", t), i;
2618
- }, Fn = (e, t, r) => {
2654
+ }, Hn = (e, t, r) => {
2619
2655
  var a;
2620
2656
  const i = e(), n = document.createElement("div");
2621
- return K(n, (a = i.css) == null ? void 0 : a.footer), n.appendChild(Mn(e, r)), n.appendChild(On(e, t)), n;
2622
- }, Bn = (e) => {
2657
+ return K(n, (a = i.css) == null ? void 0 : a.footer), n.appendChild(Yn(e, r)), n.appendChild(Bn(e, t)), n;
2658
+ }, jn = (e) => {
2623
2659
  var i;
2624
2660
  const t = e(), r = document.createElement("div");
2625
2661
  return K(r, (i = t.css) == null ? void 0 : i.header), r;
2626
- }, Yn = (e, t, r) => {
2662
+ }, Vn = (e, t, r) => {
2627
2663
  var a;
2628
2664
  const i = e(), n = document.createElement("div");
2629
- return K(n, (a = i.css) == null ? void 0 : a.container), n.appendChild(Bn(e)), n.appendChild(_n(e)), n.appendChild(Fn(e, t, r)), n;
2630
- }, Hn = (e, t, r) => {
2665
+ return K(n, (a = i.css) == null ? void 0 : a.container), n.appendChild(jn(e)), n.appendChild(Fn(e)), n.appendChild(Hn(e, t, r)), n;
2666
+ }, Wn = (e, t, r) => {
2631
2667
  var a;
2632
2668
  const i = e(), n = document.createElement("div");
2633
- K(n, (a = i.css) == null ? void 0 : a.root), n.appendChild(Yn(e, t, r)), document.body.appendChild(n);
2634
- }, jn = (e) => {
2669
+ K(n, (a = i.css) == null ? void 0 : a.root), n.appendChild(Vn(e, t, r)), document.body.appendChild(n);
2670
+ }, Xn = (e) => {
2635
2671
  const t = document.createElement("input");
2636
2672
  return t.style.display = "none", t.setAttribute("type", "file"), t.setAttribute("accept", "image/x-png,image/jpeg"), t.addEventListener("change", e, !1), document.body.appendChild(t), t;
2637
- }, Be = /* @__PURE__ */ new Map(), Vn = {
2673
+ }, Be = /* @__PURE__ */ new Map(), Un = {
2638
2674
  header: "header",
2639
2675
  sourceImage: "sourceImage",
2640
2676
  portalArea: "portalArea",
@@ -2645,18 +2681,18 @@ const Pn = (e) => {
2645
2681
  return Be.get(e);
2646
2682
  if (!t)
2647
2683
  return null;
2648
- const r = t[Vn[e]], i = document.querySelector(
2684
+ const r = t[Un[e]], i = document.querySelector(
2649
2685
  `.${r[0]}`
2650
2686
  );
2651
2687
  return Be.set(e, i), i;
2652
- }, Wn = () => {
2688
+ }, qn = () => {
2653
2689
  Be.clear();
2654
- }, Xn = () => {
2690
+ }, Gn = () => {
2655
2691
  Be.clear();
2656
- }, Un = (e, t) => {
2692
+ }, Zn = (e, t) => {
2657
2693
  const r = $e("header", t.css);
2658
2694
  r && (r.innerText = e);
2659
- }, qn = (e, t) => {
2695
+ }, Kn = (e, t) => {
2660
2696
  const r = $e("sourceImage", t.css);
2661
2697
  r && (r.setAttribute("src", e), r.style.height = `${t.frame.height}px`, r.style.width = `${t.frame.width}px`, r.style.left = `${t.frame.left}px`, r.style.top = `${t.frame.top}px`);
2662
2698
  const i = $e("portalArea", t.css);
@@ -2665,12 +2701,12 @@ const Pn = (e) => {
2665
2701
  n && (n.style.width = `${t.portal.size}px`, n.style.height = `${t.portal.size}px`, n.style.left = `${t.portal.left}px`, n.style.top = `${t.portal.top}px`);
2666
2702
  const a = $e("previewImage", t.css);
2667
2703
  a && (a.setAttribute("src", e), a.style.height = `${t.frame.height}px`, a.style.width = `${t.frame.width}px`, a.style.marginLeft = `-${t.portal.left}px`, a.style.marginTop = `-${t.portal.top}px`);
2668
- }, Gn = (e, t) => {
2704
+ }, Jn = (e, t) => {
2669
2705
  const r = $e("portal", t.css);
2670
2706
  r && (r.style.left = `${e.left}px`, r.style.top = `${e.top}px`, r.style.width = `${e.size}px`, r.style.height = `${e.size}px`);
2671
2707
  const i = $e("previewImage", t.css);
2672
2708
  i && (i.style.marginLeft = `-${e.left}px`, i.style.marginTop = `-${e.top}px`);
2673
- }, xt = 1, Zn = (e) => {
2709
+ }, xt = 1, Qn = (e) => {
2674
2710
  var C, w;
2675
2711
  const t = e(), r = document.createElement("canvas"), i = t.frame.width || xt, n = t.frame.height || xt, a = t.sourceWidth / i, c = t.sourceHeight / n, d = t.portal.left * a, u = t.portal.top * c, b = Math.max(
2676
2712
  t.portal.size * Math.min(a, c),
@@ -2716,7 +2752,7 @@ const Pn = (e) => {
2716
2752
  r.remove(), y(x);
2717
2753
  }
2718
2754
  });
2719
- }, Kn = (e, t, r) => {
2755
+ }, ea = (e, t, r) => {
2720
2756
  const { emitted: i, portal: n, frame: a, config: c } = t();
2721
2757
  let d = i.left - i.X + e.clientX, u = i.top - i.Y + e.clientY;
2722
2758
  const b = c.framePadding, h = a.width - c.framePadding - n.size, f = c.framePadding, $ = a.height - c.framePadding - n.size;
@@ -2727,7 +2763,7 @@ const Pn = (e) => {
2727
2763
  top: u
2728
2764
  }
2729
2765
  });
2730
- }, Jn = (e, t, r) => {
2766
+ }, ta = (e, t, r) => {
2731
2767
  const { action: i, emitted: n, portal: a, frame: c, config: d } = t(), u = e.pageX - n.X, b = e.pageY - n.Y;
2732
2768
  switch (i) {
2733
2769
  case ae.RESIZE_BR: {
@@ -2812,7 +2848,7 @@ const Pn = (e) => {
2812
2848
  pageX: t.pageX,
2813
2849
  pageY: t.pageY
2814
2850
  };
2815
- }, Qn = (e, t) => {
2851
+ }, oa = (e, t) => {
2816
2852
  var $, C, w;
2817
2853
  const r = e(), i = document.querySelector(
2818
2854
  `.${($ = r.css) == null ? void 0 : $.portal[0]}`
@@ -2852,10 +2888,10 @@ const Pn = (e) => {
2852
2888
  if (y)
2853
2889
  switch (y) {
2854
2890
  case ae.MOVE:
2855
- Kn(v, e, t);
2891
+ ea(v, e, t);
2856
2892
  break;
2857
2893
  default:
2858
- Jn(v, e, t);
2894
+ ta(v, e, t);
2859
2895
  }
2860
2896
  }, f = (v) => {
2861
2897
  const { action: y } = e();
@@ -2874,7 +2910,7 @@ const Pn = (e) => {
2874
2910
  f
2875
2911
  ));
2876
2912
  };
2877
- }, ro = 1024 * 1024, ea = (e, t) => {
2913
+ }, ro = 1024 * 1024, ra = (e, t) => {
2878
2914
  if (!t.allowedTypes.includes(e.type))
2879
2915
  return `Invalid file type "${e.type}". Allowed types: ${t.allowedTypes.join(", ")}`;
2880
2916
  if (t.maxFileSize > 0 && e.size > t.maxFileSize) {
@@ -2882,7 +2918,7 @@ const Pn = (e) => {
2882
2918
  return `File size (${(e.size / ro).toFixed(2)}MB) exceeds maximum allowed size (${r}MB)`;
2883
2919
  }
2884
2920
  return null;
2885
- }, ta = (e, t, r, i, n, a, c) => {
2921
+ }, ia = (e, t, r, i, n, a, c) => {
2886
2922
  const d = (x) => {
2887
2923
  c ? c(x) : console.error(`HqCropper: ${x}`);
2888
2924
  };
@@ -2890,7 +2926,7 @@ const Pn = (e) => {
2890
2926
  d("Can't read file input");
2891
2927
  return;
2892
2928
  }
2893
- const u = e.target.files[0], { config: b } = t(), h = ea(u, b);
2929
+ const u = e.target.files[0], { config: b } = t(), h = ra(u, b);
2894
2930
  if (h) {
2895
2931
  d(h), e.target.value = "";
2896
2932
  return;
@@ -2902,7 +2938,7 @@ const Pn = (e) => {
2902
2938
  const x = t(), m = document.querySelector(
2903
2939
  `.${(g = x.css) == null ? void 0 : g.root[0]}`
2904
2940
  );
2905
- m && (m.remove(), document.removeEventListener("keydown", w), $ == null || $(), Xn(), a(), r(Nt));
2941
+ m && (m.remove(), document.removeEventListener("keydown", w), $ == null || $(), Gn(), a(), r(Nt));
2906
2942
  }, w = (x) => {
2907
2943
  x.key === "Escape" && t().sourceBase64 && v(x);
2908
2944
  }, v = (x) => {
@@ -2910,7 +2946,7 @@ const Pn = (e) => {
2910
2946
  }, y = (x) => {
2911
2947
  x.preventDefault();
2912
2948
  const m = t();
2913
- Zn(t).then(([g, T]) => {
2949
+ Qn(t).then(([g, T]) => {
2914
2950
  i(g, T, m), v(x);
2915
2951
  }).catch((g) => {
2916
2952
  d(
@@ -2928,8 +2964,8 @@ const Pn = (e) => {
2928
2964
  d("Failed to load image");
2929
2965
  }, m.onload = () => {
2930
2966
  var N;
2931
- Hn(t, y, v), Wn(), n("fileName", Un), n("sourceBase64", qn), n("portal", Gn);
2932
- const g = kn(t, m), T = zn(t, g);
2967
+ Wn(t, y, v), qn(), n("fileName", Zn), n("sourceBase64", Kn), n("portal", Jn);
2968
+ const g = Pn(t, m), T = Cn(t, g);
2933
2969
  r({
2934
2970
  frame: g,
2935
2971
  portal: T,
@@ -2937,17 +2973,17 @@ const Pn = (e) => {
2937
2973
  sourceBase64: (N = x.target) == null ? void 0 : N.result,
2938
2974
  sourceHeight: m.height,
2939
2975
  sourceWidth: m.width
2940
- }), $ = Qn(t, r), document.addEventListener("keydown", w);
2976
+ }), $ = oa(t, r), document.addEventListener("keydown", w);
2941
2977
  };
2942
2978
  }, f.onerror = () => {
2943
2979
  d("Failed to read file");
2944
2980
  }, f.readAsDataURL(u), e.target.value = "";
2945
- }, oa = (e, t, r, i) => {
2946
- const { getState: n, setState: a, subscribe: c, unsubscribeAll: d } = mn(
2981
+ }, na = (e, t, r, i) => {
2982
+ const { getState: n, setState: a, subscribe: c, unsubscribeAll: d } = zn(
2947
2983
  t,
2948
2984
  r
2949
- ), u = jn(
2950
- (b) => ta(
2985
+ ), u = Xn(
2986
+ (b) => ia(
2951
2987
  b,
2952
2988
  n,
2953
2989
  a,
@@ -2970,7 +3006,7 @@ const Pn = (e) => {
2970
3006
  allowedTypes: ["image/jpeg", "image/png", "image/webp"],
2971
3007
  applyLabel: "Apply",
2972
3008
  cancelLabel: "Cancel"
2973
- }, io = "vacano-image-cropper-styles", ra = `
3009
+ }, io = "vacano-image-cropper-styles", aa = `
2974
3010
  .vacano-cropper-root {
2975
3011
  background-color: rgba(0, 0, 0, 0.5);
2976
3012
  backdrop-filter: blur(4px);
@@ -3018,11 +3054,11 @@ const Pn = (e) => {
3018
3054
  .vacano-cropper-apply-button:hover {
3019
3055
  background-color: ${o["iron-grey"]};
3020
3056
  }
3021
- `, ia = () => {
3057
+ `, la = () => {
3022
3058
  if (typeof document > "u" || document.getElementById(io)) return;
3023
3059
  const e = document.createElement("style");
3024
- e.id = io, e.textContent = ra, document.head.appendChild(e);
3025
- }, na = {
3060
+ e.id = io, e.textContent = aa, document.head.appendChild(e);
3061
+ }, da = {
3026
3062
  root: ["vacano-cropper-root"],
3027
3063
  container: ["vacano-cropper-container"],
3028
3064
  header: ["vacano-cropper-header"],
@@ -3031,7 +3067,7 @@ const Pn = (e) => {
3031
3067
  cancelButton: ["vacano-cropper-cancel-button"],
3032
3068
  applyButton: ["vacano-cropper-apply-button"],
3033
3069
  portal: ["vacano-cropper-portal"]
3034
- }, aa = (e = {}) => {
3070
+ }, ca = (e = {}) => {
3035
3071
  const {
3036
3072
  allowedTypes: t = se.allowedTypes,
3037
3073
  applyLabel: r = se.applyLabel,
@@ -3045,7 +3081,7 @@ const Pn = (e) => {
3045
3081
  type: h = se.type
3046
3082
  } = e, f = U(null);
3047
3083
  return { open: M(() => {
3048
- f.current || (ia(), f.current = oa(
3084
+ f.current || (la(), f.current = na(
3049
3085
  (C, w, v) => {
3050
3086
  w && (c == null || c({ base64: C, blob: w, state: v }));
3051
3087
  },
@@ -3059,7 +3095,7 @@ const Pn = (e) => {
3059
3095
  applyButtonLabel: r,
3060
3096
  cancelButtonLabel: i
3061
3097
  },
3062
- na,
3098
+ da,
3063
3099
  (C) => {
3064
3100
  d == null || d({ code: "CROPPER_ERROR", message: C });
3065
3101
  }
@@ -3076,7 +3112,7 @@ const Pn = (e) => {
3076
3112
  b,
3077
3113
  h
3078
3114
  ]) };
3079
- }, $t = _("image-cropper"), ad = ({
3115
+ }, $t = D("image-cropper"), sd = ({
3080
3116
  allowedTypes: e,
3081
3117
  applyLabel: t,
3082
3118
  buttonLabel: r = "Select Image",
@@ -3095,7 +3131,7 @@ const Pn = (e) => {
3095
3131
  value: v,
3096
3132
  ...y
3097
3133
  }) => {
3098
- const [x, m] = V(v ?? null), { open: g } = aa({
3134
+ const [x, m] = V(v ?? null), { open: g } = ca({
3099
3135
  allowedTypes: e,
3100
3136
  applyLabel: t,
3101
3137
  cancelLabel: i,
@@ -3109,8 +3145,8 @@ const Pn = (e) => {
3109
3145
  portalSize: f,
3110
3146
  type: w
3111
3147
  });
3112
- return /* @__PURE__ */ P(Qi, { ...y, ref: C, className: $t("container", n), children: [
3113
- /* @__PURE__ */ s(en, { $size: $, className: $t("preview", a == null ? void 0 : a.preview), children: x ? /* @__PURE__ */ s("img", { src: x, alt: "Preview" }) : /* @__PURE__ */ s(tn, { children: "No image" }) }),
3148
+ return /* @__PURE__ */ P(on, { ...y, ref: C, className: $t("container", n), children: [
3149
+ /* @__PURE__ */ s(rn, { $size: $, className: $t("preview", a == null ? void 0 : a.preview), children: x ? /* @__PURE__ */ s("img", { src: x, alt: "Preview" }) : /* @__PURE__ */ s(nn, { children: "No image" }) }),
3114
3150
  /* @__PURE__ */ s(
3115
3151
  nt,
3116
3152
  {
@@ -3174,14 +3210,14 @@ const Pn = (e) => {
3174
3210
  },
3175
3211
  focus: l(o.red, 30)
3176
3212
  }
3177
- }, de = (e) => ao[e] ?? ao.normal, yt = (e) => no[e] ?? no.default, la = p.div`
3213
+ }, de = (e) => ao[e] ?? ao.normal, yt = (e) => no[e] ?? no.default, sa = p.div`
3178
3214
  display: grid;
3179
3215
  flex-direction: column;
3180
3216
  gap: 2px;
3181
3217
  width: ${(e) => e.$fullWidth ? "100%" : "fit-content"};
3182
- `, da = p(Pe)`
3218
+ `, pa = p(Pe)`
3183
3219
  margin-left: 6px;
3184
- `, ca = p.input`
3220
+ `, ua = p.input`
3185
3221
  flex: 1;
3186
3222
  min-width: 0;
3187
3223
  outline: none;
@@ -3213,7 +3249,7 @@ const Pn = (e) => {
3213
3249
  &:focus-visible {
3214
3250
  outline: 2px solid ${(e) => de(e.$variant).focus};
3215
3251
  }
3216
- `, vt = _("input"), sa = ({
3252
+ `, vt = D("input"), ha = ({
3217
3253
  className: e,
3218
3254
  classnames: t,
3219
3255
  disabled: r,
@@ -3223,10 +3259,10 @@ const Pn = (e) => {
3223
3259
  size: c = "default",
3224
3260
  variant: d = "normal",
3225
3261
  ...u
3226
- }) => /* @__PURE__ */ P(la, { className: vt("container", e), $fullWidth: !!i, children: [
3227
- /* @__PURE__ */ s(da, { variant: d, className: vt("label", t == null ? void 0 : t.label), children: n }),
3262
+ }) => /* @__PURE__ */ P(sa, { className: vt("container", e), $fullWidth: !!i, children: [
3263
+ /* @__PURE__ */ s(pa, { variant: d, className: vt("label", t == null ? void 0 : t.label), children: n }),
3228
3264
  /* @__PURE__ */ s(
3229
- ca,
3265
+ ua,
3230
3266
  {
3231
3267
  ...u,
3232
3268
  ref: a,
@@ -3236,7 +3272,7 @@ const Pn = (e) => {
3236
3272
  className: vt("input", t == null ? void 0 : t.input)
3237
3273
  }
3238
3274
  )
3239
- ] }), pa = p.div`
3275
+ ] }), ba = p.div`
3240
3276
  position: fixed;
3241
3277
  inset: 0;
3242
3278
  z-index: 1000;
@@ -3245,7 +3281,7 @@ const Pn = (e) => {
3245
3281
  justify-content: center;
3246
3282
  background-color: ${l(o.black, 50)};
3247
3283
  animation: ${fe.fadeIn} ${(e) => e.$animated ? "0.15s" : "0s"} ease-out forwards;
3248
- `, ua = p.div`
3284
+ `, ga = p.div`
3249
3285
  position: relative;
3250
3286
  z-index: 1001;
3251
3287
  width: ${(e) => e.$width};
@@ -3256,7 +3292,7 @@ const Pn = (e) => {
3256
3292
  border-radius: 16px;
3257
3293
  box-shadow: 0 8px 32px ${l(o.black, 20)};
3258
3294
  animation: ${fe.scaleIn} ${(e) => e.$animated ? "0.15s" : "0s"} ease-out forwards;
3259
- `, lo = _("modal"), ha = ({
3295
+ `, lo = D("modal"), fa = ({
3260
3296
  animated: e,
3261
3297
  children: t,
3262
3298
  className: r,
@@ -3266,8 +3302,8 @@ const Pn = (e) => {
3266
3302
  width: c = "500px",
3267
3303
  ...d
3268
3304
  }) => n ? ve(
3269
- /* @__PURE__ */ s(pa, { className: lo("overlay", i == null ? void 0 : i.overlay), $animated: !!e, children: /* @__PURE__ */ s(
3270
- ua,
3305
+ /* @__PURE__ */ s(ba, { className: lo("overlay", i == null ? void 0 : i.overlay), $animated: !!e, children: /* @__PURE__ */ s(
3306
+ ga,
3271
3307
  {
3272
3308
  ...d,
3273
3309
  ref: a,
@@ -3287,14 +3323,14 @@ const Pn = (e) => {
3287
3323
  border: o.red,
3288
3324
  label: o.red
3289
3325
  }
3290
- }, ba = p.div`
3326
+ }, xa = p.div`
3291
3327
  display: flex;
3292
3328
  flex-direction: column;
3293
3329
  gap: 4px;
3294
- `, ga = p(Pe)`
3330
+ `, $a = p(Pe)`
3295
3331
  margin-left: 6px;
3296
3332
  color: ${(e) => Lo[e.$variant].label};
3297
- `, fa = p.button`
3333
+ `, ya = p.button`
3298
3334
  display: flex;
3299
3335
  flex-wrap: wrap;
3300
3336
  align-items: center;
@@ -3318,31 +3354,31 @@ const Pn = (e) => {
3318
3354
  ${(e) => e.$variant === "error" ? o.red : o["steel-blue"]};
3319
3355
  outline-offset: 2px;
3320
3356
  }
3321
- `, xa = p.span`
3357
+ `, va = p.span`
3322
3358
  color: ${o["iron-grey"]};
3323
3359
  font-size: 14px;
3324
- `, $a = p.div`
3360
+ `, wa = p.div`
3325
3361
  display: flex;
3326
3362
  flex-direction: column;
3327
3363
  padding: 20px;
3328
3364
  gap: 16px;
3329
- `, ya = p.div`
3365
+ `, ma = p.div`
3330
3366
  display: flex;
3331
3367
  align-items: center;
3332
3368
  justify-content: space-between;
3333
- `, va = p.h3`
3369
+ `, ka = p.h3`
3334
3370
  margin: 0;
3335
3371
  font-size: 18px;
3336
3372
  font-weight: 600;
3337
3373
  color: ${o.black};
3338
- `, wa = p.div`
3374
+ `, Sa = p.div`
3339
3375
  display: flex;
3340
3376
  flex-direction: column;
3341
3377
  gap: 4px;
3342
3378
  min-height: 200px;
3343
3379
  max-height: 300px;
3344
3380
  overflow-y: auto;
3345
- `, ma = p.label`
3381
+ `, za = p.label`
3346
3382
  display: flex;
3347
3383
  align-items: center;
3348
3384
  gap: 10px;
@@ -3355,10 +3391,10 @@ const Pn = (e) => {
3355
3391
  &:hover {
3356
3392
  background-color: ${(e) => e.$disabled ? "transparent" : o.gray};
3357
3393
  }
3358
- `, ka = p.span`
3394
+ `, Pa = p.span`
3359
3395
  font-size: 14px;
3360
3396
  color: ${o.black};
3361
- `, Sa = p.div`
3397
+ `, Ea = p.div`
3362
3398
  display: flex;
3363
3399
  align-items: center;
3364
3400
  justify-content: center;
@@ -3366,7 +3402,7 @@ const Pn = (e) => {
3366
3402
  color: ${o["iron-grey"]};
3367
3403
  font-size: 14px;
3368
3404
  text-align: center;
3369
- `, ie = _("multi-select"), ld = ({
3405
+ `, ie = D("multi-select"), pd = ({
3370
3406
  className: e,
3371
3407
  classnames: t,
3372
3408
  disabled: r = !1,
@@ -3393,13 +3429,13 @@ const Pn = (e) => {
3393
3429
  y(!1), m("");
3394
3430
  }, F = (z) => {
3395
3431
  $.includes(z) ? d($.filter((H) => H !== z)) : d([...$, z]);
3396
- }, D = (z) => {
3432
+ }, O = (z) => {
3397
3433
  d($.filter((H) => H !== z));
3398
3434
  };
3399
- return /* @__PURE__ */ P(ba, { ...w, ref: h, className: ie("container", e), children: [
3400
- n && /* @__PURE__ */ s(ga, { $variant: C, className: ie("label", t == null ? void 0 : t.trigger), children: n }),
3435
+ return /* @__PURE__ */ P(xa, { ...w, ref: h, className: ie("container", e), children: [
3436
+ n && /* @__PURE__ */ s($a, { $variant: C, className: ie("label", t == null ? void 0 : t.trigger), children: n }),
3401
3437
  /* @__PURE__ */ s(
3402
- fa,
3438
+ ya,
3403
3439
  {
3404
3440
  type: "button",
3405
3441
  $variant: C,
@@ -3407,12 +3443,12 @@ const Pn = (e) => {
3407
3443
  disabled: r,
3408
3444
  onClick: q,
3409
3445
  className: ie("trigger", t == null ? void 0 : t.trigger),
3410
- children: g.length === 0 ? /* @__PURE__ */ s(xa, { className: ie("placeholder", t == null ? void 0 : t.placeholder), children: b }) : /* @__PURE__ */ P(rt, { children: [
3446
+ children: g.length === 0 ? /* @__PURE__ */ s(va, { className: ie("placeholder", t == null ? void 0 : t.placeholder), children: b }) : /* @__PURE__ */ P(rt, { children: [
3411
3447
  N.map((z) => /* @__PURE__ */ s(
3412
3448
  It,
3413
3449
  {
3414
3450
  deletable: !0,
3415
- onDelete: () => D(z.value),
3451
+ onDelete: () => O(z.value),
3416
3452
  onClick: (H) => H.stopPropagation(),
3417
3453
  className: ie("chip", t == null ? void 0 : t.chip),
3418
3454
  children: z.label
@@ -3434,13 +3470,13 @@ const Pn = (e) => {
3434
3470
  ] })
3435
3471
  }
3436
3472
  ),
3437
- /* @__PURE__ */ s(ha, { open: v, width: "400px", animated: !0, className: ie("modal", t == null ? void 0 : t.modal), children: /* @__PURE__ */ P($a, { children: [
3438
- /* @__PURE__ */ P(ya, { children: [
3439
- /* @__PURE__ */ s(va, { children: c }),
3473
+ /* @__PURE__ */ s(fa, { open: v, width: "400px", animated: !0, className: ie("modal", t == null ? void 0 : t.modal), children: /* @__PURE__ */ P(wa, { children: [
3474
+ /* @__PURE__ */ P(ma, { children: [
3475
+ /* @__PURE__ */ s(ka, { children: c }),
3440
3476
  /* @__PURE__ */ s(nt, { variant: "transparent", size: "compact", icon: /* @__PURE__ */ s(Dt, {}), onClick: I })
3441
3477
  ] }),
3442
3478
  /* @__PURE__ */ s(
3443
- sa,
3479
+ ha,
3444
3480
  {
3445
3481
  type: "text",
3446
3482
  value: x,
@@ -3451,21 +3487,21 @@ const Pn = (e) => {
3451
3487
  className: ie("search", t == null ? void 0 : t.search)
3452
3488
  }
3453
3489
  ),
3454
- /* @__PURE__ */ s(wa, { className: ie("options", t == null ? void 0 : t.options), children: T.length === 0 ? /* @__PURE__ */ s(Sa, { className: ie("empty", t == null ? void 0 : t.empty), children: i }) : T.map((z) => /* @__PURE__ */ P(
3455
- ma,
3490
+ /* @__PURE__ */ s(Sa, { className: ie("options", t == null ? void 0 : t.options), children: T.length === 0 ? /* @__PURE__ */ s(Ea, { className: ie("empty", t == null ? void 0 : t.empty), children: i }) : T.map((z) => /* @__PURE__ */ P(
3491
+ za,
3456
3492
  {
3457
3493
  $disabled: !!z.disabled,
3458
3494
  className: ie("option", t == null ? void 0 : t.option),
3459
3495
  children: [
3460
3496
  /* @__PURE__ */ s(
3461
- _t,
3497
+ Ot,
3462
3498
  {
3463
3499
  checked: $.includes(z.value),
3464
3500
  disabled: z.disabled,
3465
3501
  onChange: () => F(z.value)
3466
3502
  }
3467
3503
  ),
3468
- /* @__PURE__ */ s(ka, { children: z.label })
3504
+ /* @__PURE__ */ s(Pa, { children: z.label })
3469
3505
  ]
3470
3506
  },
3471
3507
  z.value
@@ -3518,16 +3554,16 @@ const Pn = (e) => {
3518
3554
  },
3519
3555
  focus: l(o.red, 30)
3520
3556
  }
3521
- }, Fe = (e) => co[e] ?? co.default, ge = (e) => so[e] ?? so.normal, za = p.div`
3557
+ }, Fe = (e) => co[e] ?? co.default, ge = (e) => so[e] ?? so.normal, Ca = p.div`
3522
3558
  display: inline-flex;
3523
3559
  flex-direction: column;
3524
3560
  gap: 2px;
3525
- `, Pa = p(Pe)`
3561
+ `, Ta = p(Pe)`
3526
3562
  margin-left: 6px;
3527
- `, Ea = p.div`
3563
+ `, Ra = p.div`
3528
3564
  display: flex;
3529
3565
  gap: ${(e) => Fe(e.$size).gap};
3530
- `, Ca = p.input`
3566
+ `, Ia = p.input`
3531
3567
  width: ${(e) => Fe(e.$size).width};
3532
3568
  height: ${(e) => Fe(e.$size).height};
3533
3569
  border-radius: ${(e) => Fe(e.$size).radius};
@@ -3556,7 +3592,7 @@ const Pn = (e) => {
3556
3592
  &::selection {
3557
3593
  background-color: transparent;
3558
3594
  }
3559
- `, wt = _("otp-code"), dd = ({
3595
+ `, wt = D("otp-code"), ud = ({
3560
3596
  className: e,
3561
3597
  classnames: t,
3562
3598
  disabled: r,
@@ -3605,10 +3641,10 @@ const Pn = (e) => {
3605
3641
  },
3606
3642
  [n, a, $]
3607
3643
  );
3608
- return /* @__PURE__ */ P(za, { ref: c, className: wt("container", e), ...h, children: [
3609
- i && /* @__PURE__ */ s(Pa, { variant: b, className: wt("label", t == null ? void 0 : t.label), children: i }),
3610
- /* @__PURE__ */ s(Ea, { $size: d, children: Array.from({ length: n }).map((y, x) => /* @__PURE__ */ s(
3611
- Ca,
3644
+ return /* @__PURE__ */ P(Ca, { ref: c, className: wt("container", e), ...h, children: [
3645
+ i && /* @__PURE__ */ s(Ta, { variant: b, className: wt("label", t == null ? void 0 : t.label), children: i }),
3646
+ /* @__PURE__ */ s(Ra, { $size: d, children: Array.from({ length: n }).map((y, x) => /* @__PURE__ */ s(
3647
+ Ia,
3612
3648
  {
3613
3649
  ref: (m) => {
3614
3650
  f.current[x] = m;
@@ -3643,7 +3679,7 @@ const Pn = (e) => {
3643
3679
  title: o.white,
3644
3680
  description: "#9ca3af"
3645
3681
  }
3646
- }, at = (e) => po[e] ?? po.light, Ta = p.div`
3682
+ }, at = (e) => po[e] ?? po.light, Na = p.div`
3647
3683
  display: flex;
3648
3684
  flex-direction: column;
3649
3685
  gap: 16px;
@@ -3651,24 +3687,24 @@ const Pn = (e) => {
3651
3687
  border: 1px dashed ${({ $variant: e }) => at(e).border};
3652
3688
  border-radius: 16px;
3653
3689
  background-color: ${({ $variant: e }) => at(e).background};
3654
- `, Ra = p.div`
3690
+ `, La = p.div`
3655
3691
  display: flex;
3656
3692
  flex-direction: column;
3657
3693
  gap: 4px;
3658
- `, Ia = p.div`
3694
+ `, Aa = p.div`
3659
3695
  font-size: 18px;
3660
3696
  font-weight: 600;
3661
3697
  line-height: 1.4;
3662
3698
  color: ${({ $variant: e }) => at(e).title};
3663
- `, Na = p.div`
3699
+ `, Da = p.div`
3664
3700
  font-size: 14px;
3665
3701
  line-height: 1.5;
3666
3702
  color: ${({ $variant: e }) => at(e).description};
3667
- `, La = p.div`
3703
+ `, Oa = p.div`
3668
3704
  display: flex;
3669
3705
  flex-wrap: wrap;
3670
3706
  gap: 8px;
3671
- `, Qe = _("panel"), cd = ({
3707
+ `, Qe = D("panel"), hd = ({
3672
3708
  children: e,
3673
3709
  className: t,
3674
3710
  classnames: r,
@@ -3679,11 +3715,11 @@ const Pn = (e) => {
3679
3715
  ...d
3680
3716
  }) => {
3681
3717
  const u = a || i;
3682
- return /* @__PURE__ */ P(Ta, { ...d, ref: n, className: Qe("container", t), $variant: c, children: [
3683
- u && /* @__PURE__ */ P(Ra, { children: [
3684
- a && /* @__PURE__ */ s(Ia, { className: Qe("title", r == null ? void 0 : r.title), $variant: c, children: a }),
3718
+ return /* @__PURE__ */ P(Na, { ...d, ref: n, className: Qe("container", t), $variant: c, children: [
3719
+ u && /* @__PURE__ */ P(La, { children: [
3720
+ a && /* @__PURE__ */ s(Aa, { className: Qe("title", r == null ? void 0 : r.title), $variant: c, children: a }),
3685
3721
  i && /* @__PURE__ */ s(
3686
- Na,
3722
+ Da,
3687
3723
  {
3688
3724
  className: Qe("description", r == null ? void 0 : r.description),
3689
3725
  $variant: c,
@@ -3691,7 +3727,7 @@ const Pn = (e) => {
3691
3727
  }
3692
3728
  )
3693
3729
  ] }),
3694
- /* @__PURE__ */ s(La, { className: Qe("content", r == null ? void 0 : r.content), children: e })
3730
+ /* @__PURE__ */ s(Oa, { className: Qe("content", r == null ? void 0 : r.content), children: e })
3695
3731
  ] });
3696
3732
  }, Lt = {
3697
3733
  compact: {
@@ -3702,19 +3738,19 @@ const Pn = (e) => {
3702
3738
  height: 8,
3703
3739
  radius: 4
3704
3740
  }
3705
- }, Aa = p.div`
3741
+ }, _a = p.div`
3706
3742
  width: 100%;
3707
3743
  height: ${({ $size: e }) => Lt[e].height}px;
3708
3744
  border-radius: ${({ $size: e }) => Lt[e].radius}px;
3709
3745
  background-color: ${o.gray};
3710
3746
  overflow: hidden;
3711
- `, Da = p.div`
3747
+ `, Ma = p.div`
3712
3748
  height: 100%;
3713
3749
  width: ${({ $value: e }) => Math.min(100, Math.max(0, e))}%;
3714
3750
  border-radius: ${({ $size: e }) => Lt[e].radius}px;
3715
3751
  background-color: ${o.black};
3716
3752
  transition: width 0.2s ease;
3717
- `, uo = _("progress"), sd = ({
3753
+ `, uo = D("progress"), bd = ({
3718
3754
  value: e,
3719
3755
  size: t = "default",
3720
3756
  className: r,
@@ -3722,7 +3758,7 @@ const Pn = (e) => {
3722
3758
  ref: n,
3723
3759
  ...a
3724
3760
  }) => /* @__PURE__ */ s(
3725
- Aa,
3761
+ _a,
3726
3762
  {
3727
3763
  ...a,
3728
3764
  ref: n,
@@ -3732,7 +3768,7 @@ const Pn = (e) => {
3732
3768
  "aria-valuenow": e,
3733
3769
  "aria-valuemin": 0,
3734
3770
  "aria-valuemax": 100,
3735
- children: /* @__PURE__ */ s(Da, { $size: t, $value: e, className: uo("bar", i == null ? void 0 : i.bar) })
3771
+ children: /* @__PURE__ */ s(Ma, { $size: t, $value: e, className: uo("bar", i == null ? void 0 : i.bar) })
3736
3772
  }
3737
3773
  ), ho = {
3738
3774
  normal: {
@@ -3757,9 +3793,9 @@ const Pn = (e) => {
3757
3793
  dot: o.red,
3758
3794
  label: o.red
3759
3795
  }
3760
- }, ye = (e) => ho[e] ?? ho.normal, _a = p.label`
3796
+ }, ye = (e) => ho[e] ?? ho.normal, Fa = p.label`
3761
3797
  display: inline-flex;
3762
- align-items: center;
3798
+ align-items: flex-start;
3763
3799
  gap: 8px;
3764
3800
  cursor: ${(e) => e.$disabled ? "not-allowed" : "pointer"};
3765
3801
  opacity: ${(e) => e.$disabled ? 0.5 : 1};
@@ -3767,13 +3803,13 @@ const Pn = (e) => {
3767
3803
  &:has(input:focus-visible) > span:first-of-type {
3768
3804
  box-shadow: 0 0 0 2px ${(e) => ye(e.$variant).box.focusShadow};
3769
3805
  }
3770
- `, Oa = p.input`
3806
+ `, Ba = p.input`
3771
3807
  position: absolute;
3772
3808
  opacity: 0;
3773
3809
  width: 0;
3774
3810
  height: 0;
3775
3811
  pointer-events: none;
3776
- `, Ma = p.span`
3812
+ `, Ya = p.span`
3777
3813
  display: inline-flex;
3778
3814
  align-items: center;
3779
3815
  justify-content: center;
@@ -3788,7 +3824,7 @@ const Pn = (e) => {
3788
3824
  border-color 0.15s ease,
3789
3825
  background-color 0.15s ease,
3790
3826
  box-shadow 0.15s ease;
3791
- `, Fa = p.span`
3827
+ `, Ha = p.span`
3792
3828
  width: 8px;
3793
3829
  height: 8px;
3794
3830
  border-radius: 50%;
@@ -3798,13 +3834,23 @@ const Pn = (e) => {
3798
3834
  transition:
3799
3835
  opacity 0.15s ease,
3800
3836
  transform 0.15s ease;
3801
- `, Ba = p.span`
3837
+ `, ja = p.span`
3802
3838
  font-size: 14px;
3803
3839
  font-weight: 500;
3804
3840
  line-height: 1.5;
3805
3841
  color: ${(e) => ye(e.$variant).label};
3806
3842
  user-select: none;
3807
- `, _e = _("radio"), Ao = ({
3843
+
3844
+ a {
3845
+ color: inherit;
3846
+ text-decoration: underline;
3847
+ cursor: pointer;
3848
+
3849
+ &:hover {
3850
+ text-decoration: none;
3851
+ }
3852
+ }
3853
+ `, Oe = D("radio"), Ao = ({
3808
3854
  checked: e,
3809
3855
  className: t,
3810
3856
  classnames: r,
@@ -3815,26 +3861,26 @@ const Pn = (e) => {
3815
3861
  variant: d = "normal",
3816
3862
  ...u
3817
3863
  }) => /* @__PURE__ */ P(
3818
- _a,
3864
+ Fa,
3819
3865
  {
3820
- className: _e("container", t),
3866
+ className: Oe("container", t),
3821
3867
  $disabled: !!i,
3822
3868
  $variant: d,
3823
3869
  children: [
3824
3870
  /* @__PURE__ */ s(
3825
- Oa,
3871
+ Ba,
3826
3872
  {
3827
3873
  ...u,
3828
3874
  ref: c,
3829
3875
  type: "radio",
3830
- className: _e("input", r == null ? void 0 : r.input),
3876
+ className: Oe("input", r == null ? void 0 : r.input),
3831
3877
  checked: e,
3832
3878
  disabled: i,
3833
3879
  onChange: a
3834
3880
  }
3835
3881
  ),
3836
- /* @__PURE__ */ s(Ma, { className: _e("box", r == null ? void 0 : r.box), $checked: e, $variant: d, children: /* @__PURE__ */ s(Fa, { className: _e("dot", r == null ? void 0 : r.dot), $visible: e, $variant: d }) }),
3837
- n && /* @__PURE__ */ s(Ba, { className: _e("label", r == null ? void 0 : r.label), $variant: d, children: n })
3882
+ /* @__PURE__ */ s(Ya, { className: Oe("box", r == null ? void 0 : r.box), $checked: e, $variant: d, children: /* @__PURE__ */ s(Ha, { className: Oe("dot", r == null ? void 0 : r.dot), $visible: e, $variant: d }) }),
3883
+ n && /* @__PURE__ */ s(ja, { className: Oe("label", r == null ? void 0 : r.label), $variant: d, children: n })
3838
3884
  ]
3839
3885
  }
3840
3886
  ), bo = {
@@ -3896,7 +3942,7 @@ const Pn = (e) => {
3896
3942
  disabled: l(o.red, 40)
3897
3943
  }
3898
3944
  }
3899
- }, be = (e) => bo[e] ?? bo.normal, Ya = p.label`
3945
+ }, be = (e) => bo[e] ?? bo.normal, Va = p.label`
3900
3946
  display: grid;
3901
3947
  grid-template-columns: auto 1fr;
3902
3948
  align-items: start;
@@ -3934,7 +3980,7 @@ const Pn = (e) => {
3934
3980
  .vacano_radio_container {
3935
3981
  pointer-events: none;
3936
3982
  }
3937
- `, Ha = p.input`
3983
+ `, Wa = p.input`
3938
3984
  position: absolute;
3939
3985
  width: 1px;
3940
3986
  height: 1px;
@@ -3944,12 +3990,12 @@ const Pn = (e) => {
3944
3990
  clip: rect(0, 0, 0, 0);
3945
3991
  white-space: nowrap;
3946
3992
  border: 0;
3947
- `, ja = p.div`
3993
+ `, Xa = p.div`
3948
3994
  display: flex;
3949
3995
  flex-direction: column;
3950
3996
  gap: 2px;
3951
3997
  min-width: 0;
3952
- `, Va = p.span`
3998
+ `, Ua = p.span`
3953
3999
  font-size: 14px;
3954
4000
  font-weight: 500;
3955
4001
  line-height: 1.4;
@@ -3958,7 +4004,7 @@ const Pn = (e) => {
3958
4004
  label[data-disabled='true'] & {
3959
4005
  color: ${(e) => be(e.$variant).label.disabled};
3960
4006
  }
3961
- `, Wa = p.span`
4007
+ `, qa = p.span`
3962
4008
  font-size: 12px;
3963
4009
  font-weight: 400;
3964
4010
  line-height: 1.4;
@@ -3967,7 +4013,7 @@ const Pn = (e) => {
3967
4013
  label[data-disabled='true'] & {
3968
4014
  color: ${(e) => be(e.$variant).description.disabled};
3969
4015
  }
3970
- `, et = _("radio-card"), pd = ({
4016
+ `, et = D("radio-card"), gd = ({
3971
4017
  checked: e,
3972
4018
  className: t,
3973
4019
  classnames: r,
@@ -3980,7 +4026,7 @@ const Pn = (e) => {
3980
4026
  variant: b = "normal",
3981
4027
  ...h
3982
4028
  }) => /* @__PURE__ */ P(
3983
- Ya,
4029
+ Va,
3984
4030
  {
3985
4031
  className: et("container", t),
3986
4032
  $checked: e,
@@ -3990,7 +4036,7 @@ const Pn = (e) => {
3990
4036
  "data-disabled": n,
3991
4037
  children: [
3992
4038
  /* @__PURE__ */ s(
3993
- Ha,
4039
+ Wa,
3994
4040
  {
3995
4041
  ...h,
3996
4042
  ref: u,
@@ -4013,10 +4059,10 @@ const Pn = (e) => {
4013
4059
  "aria-hidden": !0
4014
4060
  }
4015
4061
  ),
4016
- /* @__PURE__ */ P(ja, { className: et("content", r == null ? void 0 : r.content), children: [
4017
- /* @__PURE__ */ s(Va, { className: et("label", r == null ? void 0 : r.label), $variant: b, children: c }),
4062
+ /* @__PURE__ */ P(Xa, { className: et("content", r == null ? void 0 : r.content), children: [
4063
+ /* @__PURE__ */ s(Ua, { className: et("label", r == null ? void 0 : r.label), $variant: b, children: c }),
4018
4064
  i && /* @__PURE__ */ s(
4019
- Wa,
4065
+ qa,
4020
4066
  {
4021
4067
  className: et("description", r == null ? void 0 : r.description),
4022
4068
  $variant: b,
@@ -4031,21 +4077,21 @@ const Pn = (e) => {
4031
4077
  color: o.black,
4032
4078
  disabledColor: l(o.black, 40)
4033
4079
  }
4034
- }, Xa = p.div`
4080
+ }, Ga = p.div`
4035
4081
  display: flex;
4036
4082
  flex-direction: column;
4037
4083
  gap: 8px;
4038
- `, Ua = p.span`
4084
+ `, Za = p.span`
4039
4085
  font-size: 13px;
4040
4086
  font-weight: 500;
4041
4087
  line-height: 1.5;
4042
4088
  color: ${(e) => e.$disabled ? go.label.disabledColor : go.label.color};
4043
4089
  margin-bottom: 4px;
4044
- `, qa = p.div`
4090
+ `, Ka = p.div`
4045
4091
  display: flex;
4046
4092
  flex-direction: column;
4047
4093
  gap: 12px;
4048
- `, mt = _("radio-group"), ud = ({
4094
+ `, mt = D("radio-group"), fd = ({
4049
4095
  className: e,
4050
4096
  classnames: t,
4051
4097
  disabled: r,
@@ -4056,9 +4102,9 @@ const Pn = (e) => {
4056
4102
  ref: d,
4057
4103
  value: u,
4058
4104
  ...b
4059
- }) => /* @__PURE__ */ P(Xa, { ...b, ref: d, className: mt("container", e), children: [
4060
- i && /* @__PURE__ */ s(Ua, { className: mt("label", t == null ? void 0 : t.label), $disabled: r, children: i }),
4061
- /* @__PURE__ */ s(qa, { className: mt("options", t == null ? void 0 : t.options), children: c.map((h) => /* @__PURE__ */ s(
4105
+ }) => /* @__PURE__ */ P(Ga, { ...b, ref: d, className: mt("container", e), children: [
4106
+ i && /* @__PURE__ */ s(Za, { className: mt("label", t == null ? void 0 : t.label), $disabled: r, children: i }),
4107
+ /* @__PURE__ */ s(Ka, { className: mt("options", t == null ? void 0 : t.options), children: c.map((h) => /* @__PURE__ */ s(
4062
4108
  Ao,
4063
4109
  {
4064
4110
  className: t == null ? void 0 : t.radio,
@@ -4070,7 +4116,7 @@ const Pn = (e) => {
4070
4116
  },
4071
4117
  h.value
4072
4118
  )) })
4073
- ] }), kt = 40, Oe = 4, fo = {
4119
+ ] }), kt = 40, _e = 4, fo = {
4074
4120
  compact: {
4075
4121
  height: "32px",
4076
4122
  padding: "0 10px",
@@ -4114,15 +4160,15 @@ const Pn = (e) => {
4114
4160
  placeholder: l(o.red, 40),
4115
4161
  focus: l(o.red, 30)
4116
4162
  }
4117
- }, St = (e) => fo[e] ?? fo.default, pe = (e) => xo[e] ?? xo.normal, Ga = p.div`
4163
+ }, St = (e) => fo[e] ?? fo.default, pe = (e) => xo[e] ?? xo.normal, Ja = p.div`
4118
4164
  position: relative;
4119
4165
  display: grid;
4120
4166
  gap: 2px;
4121
4167
  min-width: 180px;
4122
4168
  width: ${(e) => e.$fullWidth ? "100%" : "fit-content"};
4123
- `, Za = p(Pe)`
4169
+ `, Qa = p(Pe)`
4124
4170
  margin-left: 6px;
4125
- `, Ka = p.button`
4171
+ `, el = p.button`
4126
4172
  display: flex;
4127
4173
  align-items: center;
4128
4174
  justify-content: space-between;
@@ -4145,13 +4191,13 @@ const Pn = (e) => {
4145
4191
  &:focus-visible {
4146
4192
  outline: 2px solid ${(e) => pe(e.$variant).focus};
4147
4193
  }
4148
- `, Ja = p.span`
4194
+ `, tl = p.span`
4149
4195
  flex: 1;
4150
4196
  min-width: 0;
4151
4197
  overflow: hidden;
4152
4198
  text-overflow: ellipsis;
4153
4199
  white-space: nowrap;
4154
- `, Qa = p.span`
4200
+ `, ol = p.span`
4155
4201
  display: flex;
4156
4202
  align-items: center;
4157
4203
  justify-content: center;
@@ -4165,15 +4211,15 @@ const Pn = (e) => {
4165
4211
  border-radius: 16px;
4166
4212
  box-shadow: 0 4px 20px ${l(o.black, 15)};
4167
4213
  z-index: 1000;
4168
- `, el = p.div`
4214
+ `, rl = p.div`
4169
4215
  position: absolute;
4170
4216
  left: -4px;
4171
4217
  width: calc(100% + 8px);
4172
4218
  ${Do}
4173
- `, tl = p.div`
4219
+ `, il = p.div`
4174
4220
  position: fixed;
4175
4221
  ${Do}
4176
- `, ol = p.button`
4222
+ `, nl = p.button`
4177
4223
  display: flex;
4178
4224
  align-items: center;
4179
4225
  justify-content: space-between;
@@ -4199,13 +4245,13 @@ const Pn = (e) => {
4199
4245
  outline: none;
4200
4246
  background: ${l(o.black, 8)};
4201
4247
  }
4202
- `, rl = p.span`
4248
+ `, al = p.span`
4203
4249
  display: flex;
4204
4250
  align-items: center;
4205
4251
  justify-content: center;
4206
4252
  flex-shrink: 0;
4207
4253
  color: ${o.black};
4208
- `, ze = _("select"), hd = ({
4254
+ `, ze = D("select"), xd = ({
4209
4255
  className: e,
4210
4256
  classnames: t,
4211
4257
  disabled: r = !1,
@@ -4228,20 +4274,20 @@ const Pn = (e) => {
4228
4274
  }), m = U(null), g = U(null), T = U(null), N = c.find((k) => k.value === f), L = Math.max(
4229
4275
  0,
4230
4276
  c.findIndex((k) => k.value === f)
4231
- ), q = -(L * kt + Oe), I = () => {
4277
+ ), q = -(L * kt + _e), I = () => {
4232
4278
  if (!g.current || !u) return;
4233
- const k = g.current.getBoundingClientRect(), A = L * kt + Oe;
4279
+ const k = g.current.getBoundingClientRect(), A = L * kt + _e;
4234
4280
  let E = k.top - A;
4235
- const B = c.length * kt + Oe * 2, W = 8, Y = window.innerHeight - B - 8;
4281
+ const B = c.length * kt + _e * 2, W = 8, Y = window.innerHeight - B - 8;
4236
4282
  E < W && (E = W), E > Y && (E = Y), x({
4237
4283
  top: E,
4238
- left: k.left - Oe,
4239
- width: k.width + Oe * 2
4284
+ left: k.left - _e,
4285
+ width: k.width + _e * 2
4240
4286
  });
4241
4287
  }, F = (k) => {
4242
4288
  var A;
4243
4289
  a == null || a(k), v(!1), (A = g.current) == null || A.focus();
4244
- }, D = (k) => {
4290
+ }, O = (k) => {
4245
4291
  r || (k.key === "Enter" || k.key === " " ? (k.preventDefault(), v((A) => !A)) : k.key === "Escape" && w ? (k.preventDefault(), v(!1)) : k.key === "ArrowDown" && !w && (k.preventDefault(), v(!0)));
4246
4292
  };
4247
4293
  lt(() => {
@@ -4261,7 +4307,7 @@ const Pn = (e) => {
4261
4307
  };
4262
4308
  }, [w, u]);
4263
4309
  const z = () => c.map((k) => /* @__PURE__ */ P(
4264
- ol,
4310
+ nl,
4265
4311
  {
4266
4312
  type: "button",
4267
4313
  role: "option",
@@ -4273,13 +4319,13 @@ const Pn = (e) => {
4273
4319
  className: ze("option", t == null ? void 0 : t.option),
4274
4320
  children: [
4275
4321
  /* @__PURE__ */ s("span", { children: k.label }),
4276
- k.value === f && /* @__PURE__ */ s(rl, { children: /* @__PURE__ */ s(Eo, { size: 16 }) })
4322
+ k.value === f && /* @__PURE__ */ s(al, { children: /* @__PURE__ */ s(Eo, { size: 16 }) })
4277
4323
  ]
4278
4324
  },
4279
4325
  k.value
4280
4326
  )), H = u ? ve(
4281
4327
  /* @__PURE__ */ s(
4282
- tl,
4328
+ il,
4283
4329
  {
4284
4330
  ref: T,
4285
4331
  role: "listbox",
@@ -4294,7 +4340,7 @@ const Pn = (e) => {
4294
4340
  ),
4295
4341
  u
4296
4342
  ) : /* @__PURE__ */ s(
4297
- el,
4343
+ rl,
4298
4344
  {
4299
4345
  ref: T,
4300
4346
  role: "listbox",
@@ -4304,7 +4350,7 @@ const Pn = (e) => {
4304
4350
  }
4305
4351
  );
4306
4352
  return /* @__PURE__ */ P(
4307
- Ga,
4353
+ Ja,
4308
4354
  {
4309
4355
  ...C,
4310
4356
  ref: (k) => {
@@ -4313,9 +4359,9 @@ const Pn = (e) => {
4313
4359
  $fullWidth: i,
4314
4360
  className: ze("container", e),
4315
4361
  children: [
4316
- n && /* @__PURE__ */ s(Za, { className: ze("label", t == null ? void 0 : t.label), children: n }),
4362
+ n && /* @__PURE__ */ s(Qa, { className: ze("label", t == null ? void 0 : t.label), children: n }),
4317
4363
  /* @__PURE__ */ P(
4318
- Ka,
4364
+ el,
4319
4365
  {
4320
4366
  ref: g,
4321
4367
  type: "button",
@@ -4325,13 +4371,13 @@ const Pn = (e) => {
4325
4371
  $hasValue: !!N,
4326
4372
  disabled: r,
4327
4373
  onClick: () => !r && v((k) => !k),
4328
- onKeyDown: D,
4374
+ onKeyDown: O,
4329
4375
  "aria-haspopup": "listbox",
4330
4376
  "aria-expanded": w,
4331
4377
  className: ze("trigger", t == null ? void 0 : t.trigger),
4332
4378
  children: [
4333
- /* @__PURE__ */ s(Ja, { children: (N == null ? void 0 : N.label) ?? d }),
4334
- /* @__PURE__ */ s(Qa, { $open: w, children: /* @__PURE__ */ s(Co, { size: 16 }) })
4379
+ /* @__PURE__ */ s(tl, { children: (N == null ? void 0 : N.label) ?? d }),
4380
+ /* @__PURE__ */ s(ol, { $open: w, children: /* @__PURE__ */ s(Co, { size: 16 }) })
4335
4381
  ]
4336
4382
  }
4337
4383
  ),
@@ -4347,33 +4393,33 @@ const Pn = (e) => {
4347
4393
  }, yo = {
4348
4394
  track: l(o.black, 15),
4349
4395
  indicator: o.black
4350
- }, zt = (e) => $o[e] ?? $o.md, il = He`
4396
+ }, zt = (e) => $o[e] ?? $o.md, ll = He`
4351
4397
  0% {
4352
4398
  transform: rotate(0deg);
4353
4399
  }
4354
4400
  100% {
4355
4401
  transform: rotate(360deg);
4356
4402
  }
4357
- `, nl = p.div`
4403
+ `, dl = p.div`
4358
4404
  display: inline-block;
4359
4405
  width: ${(e) => zt(e.$size).size};
4360
4406
  height: ${(e) => zt(e.$size).size};
4361
4407
  border: ${(e) => zt(e.$size).borderWidth} solid ${yo.track};
4362
4408
  border-top-color: ${yo.indicator};
4363
4409
  border-radius: 50%;
4364
- animation: ${il} 0.8s linear infinite;
4365
- `, al = _("spinner"), bd = ({
4410
+ animation: ${ll} 0.8s linear infinite;
4411
+ `, cl = D("spinner"), $d = ({
4366
4412
  "aria-label": e = "Loading",
4367
4413
  className: t,
4368
4414
  ref: r,
4369
4415
  size: i = "md",
4370
4416
  ...n
4371
4417
  }) => /* @__PURE__ */ s(
4372
- nl,
4418
+ dl,
4373
4419
  {
4374
4420
  ...n,
4375
4421
  ref: r,
4376
- className: al("container", t),
4422
+ className: cl("container", t),
4377
4423
  role: "status",
4378
4424
  "aria-label": e,
4379
4425
  $size: i
@@ -4382,7 +4428,7 @@ const Pn = (e) => {
4382
4428
  positive: o.green,
4383
4429
  negative: o.red,
4384
4430
  neutral: o["iron-grey"]
4385
- }, ll = (e) => vo[e] ?? vo.neutral, dl = p.div`
4431
+ }, sl = (e) => vo[e] ?? vo.neutral, pl = p.div`
4386
4432
  display: flex;
4387
4433
  flex-direction: column;
4388
4434
  gap: 4px;
@@ -4391,16 +4437,16 @@ const Pn = (e) => {
4391
4437
  border-radius: 16px;
4392
4438
  border: ${({ $border: e }) => e ? "1px solid #e5e7eb" : "none"};
4393
4439
  box-shadow: ${({ $shadow: e }) => e ? "0 4px 6px -1px rgba(0, 0, 0, 0.1)" : "none"};
4394
- `, cl = p.div`
4440
+ `, ul = p.div`
4395
4441
  display: flex;
4396
4442
  align-items: center;
4397
4443
  justify-content: space-between;
4398
4444
  gap: 8px;
4399
- `, sl = p.p`
4445
+ `, hl = p.p`
4400
4446
  margin: 0;
4401
4447
  font-size: 13px;
4402
4448
  color: ${o["iron-grey"]};
4403
- `, pl = p.div`
4449
+ `, bl = p.div`
4404
4450
  display: flex;
4405
4451
  align-items: center;
4406
4452
  justify-content: center;
@@ -4414,17 +4460,17 @@ const Pn = (e) => {
4414
4460
  width: 18px;
4415
4461
  height: 18px;
4416
4462
  }
4417
- `, ul = p.h3`
4463
+ `, gl = p.h3`
4418
4464
  margin: 0;
4419
4465
  font-size: 28px;
4420
4466
  font-weight: 600;
4421
4467
  line-height: 1.2;
4422
4468
  color: ${o.black};
4423
- `, hl = p.p`
4469
+ `, fl = p.p`
4424
4470
  margin: 0;
4425
4471
  font-size: 12px;
4426
- color: ${({ $variant: e }) => ll(e)};
4427
- `, tt = _("status-card"), gd = ({
4472
+ color: ${({ $variant: e }) => sl(e)};
4473
+ `, tt = D("status-card"), yd = ({
4428
4474
  border: e = !1,
4429
4475
  className: t,
4430
4476
  classnames: r,
@@ -4437,7 +4483,7 @@ const Pn = (e) => {
4437
4483
  value: b,
4438
4484
  ...h
4439
4485
  }) => /* @__PURE__ */ P(
4440
- dl,
4486
+ pl,
4441
4487
  {
4442
4488
  ...h,
4443
4489
  ref: a,
@@ -4445,19 +4491,19 @@ const Pn = (e) => {
4445
4491
  $border: e,
4446
4492
  $shadow: c,
4447
4493
  children: [
4448
- /* @__PURE__ */ P(cl, { children: [
4449
- /* @__PURE__ */ s(sl, { className: tt("label", r == null ? void 0 : r.label), children: n }),
4450
- i && /* @__PURE__ */ s(pl, { children: i })
4494
+ /* @__PURE__ */ P(ul, { children: [
4495
+ /* @__PURE__ */ s(hl, { className: tt("label", r == null ? void 0 : r.label), children: n }),
4496
+ i && /* @__PURE__ */ s(bl, { children: i })
4451
4497
  ] }),
4452
- /* @__PURE__ */ s(ul, { className: tt("value", r == null ? void 0 : r.value), children: b }),
4453
- d && /* @__PURE__ */ s(hl, { className: tt("trend", r == null ? void 0 : r.trend), $variant: u, children: d })
4498
+ /* @__PURE__ */ s(gl, { className: tt("value", r == null ? void 0 : r.value), children: b }),
4499
+ d && /* @__PURE__ */ s(fl, { className: tt("trend", r == null ? void 0 : r.trend), $variant: u, children: d })
4454
4500
  ]
4455
4501
  }
4456
- ), bl = p.div`
4502
+ ), xl = p.div`
4457
4503
  display: flex;
4458
4504
  align-items: ${(e) => e.$orientation === "vertical" ? "flex-start" : "center"};
4459
4505
  flex-direction: ${(e) => e.$orientation === "vertical" ? "column" : "row"};
4460
- `, gl = p.div`
4506
+ `, $l = p.div`
4461
4507
  display: flex;
4462
4508
  align-items: ${(e) => e.$orientation === "vertical" ? "flex-start" : "center"};
4463
4509
  flex-direction: ${(e) => e.$orientation === "vertical" ? "column" : "row"};
@@ -4466,7 +4512,7 @@ const Pn = (e) => {
4466
4512
  &:last-child {
4467
4513
  flex: 0;
4468
4514
  }
4469
- `, fl = p.button`
4515
+ `, yl = p.button`
4470
4516
  display: flex;
4471
4517
  align-items: center;
4472
4518
  gap: 10px;
@@ -4484,7 +4530,7 @@ const Pn = (e) => {
4484
4530
  outline-offset: 2px;
4485
4531
  }
4486
4532
  }
4487
- `, xl = p.div`
4533
+ `, vl = p.div`
4488
4534
  display: flex;
4489
4535
  align-items: center;
4490
4536
  justify-content: center;
@@ -4508,13 +4554,13 @@ const Pn = (e) => {
4508
4554
  border: 2px solid ${o.gray};
4509
4555
  color: ${o["iron-grey"]};
4510
4556
  `}
4511
- `, $l = p.span`
4557
+ `, wl = p.span`
4512
4558
  font-size: 14px;
4513
4559
  font-weight: 500;
4514
4560
  white-space: nowrap;
4515
4561
  color: ${(e) => e.$active || e.$completed ? o.black : o["iron-grey"]};
4516
4562
  transition: color 0.2s ease;
4517
- `, yl = p.div`
4563
+ `, ml = p.div`
4518
4564
  background-color: ${(e) => e.$completed ? o.black : o.gray};
4519
4565
  transition: background-color 0.2s ease;
4520
4566
 
@@ -4528,7 +4574,7 @@ const Pn = (e) => {
4528
4574
  min-width: 16px;
4529
4575
  margin: 0 12px;
4530
4576
  `}
4531
- `, Me = _("stepper"), fd = ({
4577
+ `, Me = D("stepper"), vd = ({
4532
4578
  className: e,
4533
4579
  classnames: t,
4534
4580
  onChange: r,
@@ -4540,7 +4586,7 @@ const Pn = (e) => {
4540
4586
  }) => {
4541
4587
  const u = re(() => a.findIndex((b) => b.value === c), [a, c]);
4542
4588
  return /* @__PURE__ */ s(
4543
- bl,
4589
+ xl,
4544
4590
  {
4545
4591
  ...d,
4546
4592
  ref: n,
@@ -4548,9 +4594,9 @@ const Pn = (e) => {
4548
4594
  className: Me("container", e),
4549
4595
  children: a.map((b, h) => {
4550
4596
  const f = b.value === c, $ = h < u, C = h === a.length - 1;
4551
- return /* @__PURE__ */ P(gl, { $orientation: i, children: [
4597
+ return /* @__PURE__ */ P($l, { $orientation: i, children: [
4552
4598
  /* @__PURE__ */ P(
4553
- fl,
4599
+ yl,
4554
4600
  {
4555
4601
  type: "button",
4556
4602
  $active: f,
@@ -4560,7 +4606,7 @@ const Pn = (e) => {
4560
4606
  className: Me("step", t == null ? void 0 : t.step),
4561
4607
  children: [
4562
4608
  /* @__PURE__ */ s(
4563
- xl,
4609
+ vl,
4564
4610
  {
4565
4611
  $active: f,
4566
4612
  $completed: $,
@@ -4569,7 +4615,7 @@ const Pn = (e) => {
4569
4615
  }
4570
4616
  ),
4571
4617
  /* @__PURE__ */ s(
4572
- $l,
4618
+ wl,
4573
4619
  {
4574
4620
  $active: f,
4575
4621
  $completed: $,
@@ -4581,7 +4627,7 @@ const Pn = (e) => {
4581
4627
  }
4582
4628
  ),
4583
4629
  !C && /* @__PURE__ */ s(
4584
- yl,
4630
+ ml,
4585
4631
  {
4586
4632
  $completed: $,
4587
4633
  $orientation: i,
@@ -4601,15 +4647,15 @@ const Pn = (e) => {
4601
4647
  border: o.red,
4602
4648
  label: o.red
4603
4649
  }
4604
- }, vl = p.div`
4650
+ }, kl = p.div`
4605
4651
  position: relative;
4606
4652
  display: flex;
4607
4653
  flex-direction: column;
4608
4654
  gap: 4px;
4609
- `, wl = p(Pe)`
4655
+ `, Sl = p(Pe)`
4610
4656
  margin-left: 6px;
4611
4657
  color: ${(e) => At[e.$variant].label};
4612
- `, ml = p.div`
4658
+ `, zl = p.div`
4613
4659
  display: flex;
4614
4660
  flex-wrap: wrap;
4615
4661
  align-items: center;
@@ -4631,7 +4677,7 @@ const Pn = (e) => {
4631
4677
  outline: 2px solid ${e.$variant === "error" ? o.red : o["steel-blue"]};
4632
4678
  outline-offset: 2px;
4633
4679
  `}
4634
- `, kl = p.input`
4680
+ `, Pl = p.input`
4635
4681
  flex: 1;
4636
4682
  min-width: 80px;
4637
4683
  border: none;
@@ -4648,7 +4694,7 @@ const Pn = (e) => {
4648
4694
  &:disabled {
4649
4695
  cursor: not-allowed;
4650
4696
  }
4651
- `, _o = `
4697
+ `, Oo = `
4652
4698
  z-index: 100;
4653
4699
  background-color: ${o.white};
4654
4700
  border: 1px solid ${l(o.black, 15)};
@@ -4656,26 +4702,26 @@ const Pn = (e) => {
4656
4702
  box-shadow: 0 4px 16px ${l(o.black, 12)};
4657
4703
  max-height: 200px;
4658
4704
  overflow-y: auto;
4659
- `, Oo = (e, t) => e ? "translateY(0)" : t === "bottom" ? "translateY(-8px)" : "translateY(8px)", Mo = `
4705
+ `, _o = (e, t) => e ? "translateY(0)" : t === "bottom" ? "translateY(-8px)" : "translateY(8px)", Mo = `
4660
4706
  opacity 0.15s ease,
4661
4707
  transform 0.15s ease,
4662
4708
  visibility 0.15s;
4663
- `, Sl = p.div`
4709
+ `, El = p.div`
4664
4710
  position: absolute;
4665
4711
  left: 0;
4666
4712
  right: 0;
4667
4713
  ${(e) => e.$position === "bottom" ? "top: calc(100% + 4px);" : "bottom: calc(100% + 4px);"}
4668
- ${_o}
4714
+ ${Oo}
4669
4715
  opacity: ${(e) => e.$open ? 1 : 0};
4670
4716
  visibility: ${(e) => e.$open ? "visible" : "hidden"};
4671
- transform: ${(e) => Oo(e.$open, e.$position)};
4717
+ transform: ${(e) => _o(e.$open, e.$position)};
4672
4718
  transition: ${Mo};
4673
- `, zl = p.div`
4719
+ `, Cl = p.div`
4674
4720
  position: fixed;
4675
- ${_o}
4721
+ ${Oo}
4676
4722
  opacity: ${(e) => e.$open ? 1 : 0};
4677
4723
  visibility: ${(e) => e.$open ? "visible" : "hidden"};
4678
- transform: ${(e) => Oo(e.$open, e.$position)};
4724
+ transform: ${(e) => _o(e.$open, e.$position)};
4679
4725
  transition: ${Mo};
4680
4726
  `, wo = p.button`
4681
4727
  display: flex;
@@ -4713,7 +4759,7 @@ const Pn = (e) => {
4713
4759
  color: ${o["iron-grey"]};
4714
4760
  font-size: 14px;
4715
4761
  text-align: center;
4716
- `, ne = _("tags"), ot = 4, xd = ({
4762
+ `, ne = D("tags"), ot = 4, wd = ({
4717
4763
  className: e,
4718
4764
  classnames: t,
4719
4765
  createKey: r = "Tab",
@@ -4730,22 +4776,22 @@ const Pn = (e) => {
4730
4776
  variant: C = "normal",
4731
4777
  ...w
4732
4778
  }) => {
4733
- const v = U(null), y = U(null), x = U(null), m = U(null), [g, T] = V(""), [N, L] = V(!1), [q, I] = V("bottom"), [F, D] = V({
4779
+ const v = U(null), y = U(null), x = U(null), m = U(null), [g, T] = V(""), [N, L] = V(!1), [q, I] = V("bottom"), [F, O] = V({
4734
4780
  top: 0,
4735
4781
  left: 0,
4736
4782
  width: 0
4737
4783
  }), z = re(() => {
4738
4784
  const R = u.filter((J) => !$.includes(J.value));
4739
4785
  if (!g.trim()) return R;
4740
- const O = g.toLowerCase().trim();
4741
- return R.filter((J) => J.label.toLowerCase().includes(O));
4786
+ const _ = g.toLowerCase().trim();
4787
+ return R.filter((J) => J.label.toLowerCase().includes(_));
4742
4788
  }, [u, $, g]), H = N && u.length > 0, k = M(() => {
4743
4789
  var Ve;
4744
4790
  if (!y.current) return;
4745
- const R = y.current.getBoundingClientRect(), O = ((Ve = x.current) == null ? void 0 : Ve.offsetHeight) ?? 200, J = window.innerHeight - R.bottom - ot, Q = R.top - ot, we = J < O && Q > J ? "top" : "bottom";
4791
+ const R = y.current.getBoundingClientRect(), _ = ((Ve = x.current) == null ? void 0 : Ve.offsetHeight) ?? 200, J = window.innerHeight - R.bottom - ot, Q = R.top - ot, we = J < _ && Q > J ? "top" : "bottom";
4746
4792
  if (I(we), h) {
4747
- const ct = we === "bottom" ? R.bottom + ot : R.top - O - ot;
4748
- D({
4793
+ const ct = we === "bottom" ? R.bottom + ot : R.top - _ - ot;
4794
+ O({
4749
4795
  top: ct,
4750
4796
  left: R.left,
4751
4797
  width: R.width
@@ -4760,8 +4806,8 @@ const Pn = (e) => {
4760
4806
  }, [N, k]);
4761
4807
  const A = M(
4762
4808
  (R) => {
4763
- const O = R.trim();
4764
- return !O || $.includes(O) ? !1 : (d([...$, O]), T(""), !0);
4809
+ const _ = R.trim();
4810
+ return !_ || $.includes(_) ? !1 : (d([...$, _]), T(""), !0);
4765
4811
  },
4766
4812
  [$, d]
4767
4813
  ), E = (R) => {
@@ -4769,29 +4815,29 @@ const Pn = (e) => {
4769
4815
  if (R.preventDefault(), a)
4770
4816
  A(g);
4771
4817
  else {
4772
- const O = z.find(
4818
+ const _ = z.find(
4773
4819
  (J) => J.label.toLowerCase() === g.toLowerCase().trim()
4774
4820
  );
4775
- O && A(O.value);
4821
+ _ && A(_.value);
4776
4822
  }
4777
4823
  else R.key === "Backspace" && !g && $.length > 0 && d($.slice(0, -1));
4778
4824
  }, B = (R) => {
4779
- var O;
4780
- A(R), (O = m.current) == null || O.focus();
4825
+ var _;
4826
+ A(R), (_ = m.current) == null || _.focus();
4781
4827
  }, W = (R) => {
4782
- d($.filter((O) => O !== R));
4828
+ d($.filter((_) => _ !== R));
4783
4829
  }, Y = () => {
4784
4830
  var R;
4785
4831
  i || (R = m.current) == null || R.focus();
4786
4832
  }, X = (R) => {
4787
- const O = u.find((J) => J.value === R);
4788
- return (O == null ? void 0 : O.label) ?? R;
4833
+ const _ = u.find((J) => J.value === R);
4834
+ return (_ == null ? void 0 : _.label) ?? R;
4789
4835
  };
4790
- return /* @__PURE__ */ P(vl, { ...w, ref: f, className: ne("container", e), children: [
4791
- c && /* @__PURE__ */ s(wl, { $variant: C, className: ne("label"), children: c }),
4836
+ return /* @__PURE__ */ P(kl, { ...w, ref: f, className: ne("container", e), children: [
4837
+ c && /* @__PURE__ */ s(Sl, { $variant: C, className: ne("label"), children: c }),
4792
4838
  /* @__PURE__ */ P("div", { ref: v, style: { position: "relative" }, children: [
4793
4839
  /* @__PURE__ */ P(
4794
- ml,
4840
+ zl,
4795
4841
  {
4796
4842
  ref: y,
4797
4843
  $variant: C,
@@ -4811,7 +4857,7 @@ const Pn = (e) => {
4811
4857
  R
4812
4858
  )),
4813
4859
  /* @__PURE__ */ s(
4814
- kl,
4860
+ Pl,
4815
4861
  {
4816
4862
  ref: m,
4817
4863
  type: "text",
@@ -4831,7 +4877,7 @@ const Pn = (e) => {
4831
4877
  ),
4832
4878
  u.length > 0 && (h ? ve(
4833
4879
  /* @__PURE__ */ s(
4834
- zl,
4880
+ Cl,
4835
4881
  {
4836
4882
  ref: x,
4837
4883
  $open: H,
@@ -4846,7 +4892,7 @@ const Pn = (e) => {
4846
4892
  wo,
4847
4893
  {
4848
4894
  type: "button",
4849
- onMouseDown: (O) => O.preventDefault(),
4895
+ onMouseDown: (_) => _.preventDefault(),
4850
4896
  onClick: () => B(R.value),
4851
4897
  className: ne("option", t == null ? void 0 : t.option),
4852
4898
  children: R.label
@@ -4857,7 +4903,7 @@ const Pn = (e) => {
4857
4903
  ),
4858
4904
  h
4859
4905
  ) : /* @__PURE__ */ s(
4860
- Sl,
4906
+ El,
4861
4907
  {
4862
4908
  ref: x,
4863
4909
  $open: H,
@@ -4867,7 +4913,7 @@ const Pn = (e) => {
4867
4913
  wo,
4868
4914
  {
4869
4915
  type: "button",
4870
- onMouseDown: (O) => O.preventDefault(),
4916
+ onMouseDown: (_) => _.preventDefault(),
4871
4917
  onClick: () => B(R.value),
4872
4918
  className: ne("option", t == null ? void 0 : t.option),
4873
4919
  children: R.label
@@ -4878,11 +4924,11 @@ const Pn = (e) => {
4878
4924
  ))
4879
4925
  ] })
4880
4926
  ] });
4881
- }, Pl = p.div`
4927
+ }, Tl = p.div`
4882
4928
  display: flex;
4883
4929
  align-items: center;
4884
4930
  gap: 6px;
4885
- `, El = p.button`
4931
+ `, Rl = p.button`
4886
4932
  padding: 6px 16px;
4887
4933
  border: none;
4888
4934
  border-radius: 12px;
@@ -4905,8 +4951,8 @@ const Pn = (e) => {
4905
4951
  outline: 2px solid ${o["steel-blue"]};
4906
4952
  outline-offset: 2px;
4907
4953
  }
4908
- `, ko = _("tabs"), $d = ({ className: e, classnames: t, onChange: r, ref: i, tabs: n, value: a, ...c }) => /* @__PURE__ */ s(Pl, { ...c, ref: i, className: ko("container", e), role: "tablist", children: n.map((d) => /* @__PURE__ */ s(
4909
- El,
4954
+ `, ko = D("tabs"), md = ({ className: e, classnames: t, onChange: r, ref: i, tabs: n, value: a, ...c }) => /* @__PURE__ */ s(Tl, { ...c, ref: i, className: ko("container", e), role: "tablist", children: n.map((d) => /* @__PURE__ */ s(
4955
+ Rl,
4910
4956
  {
4911
4957
  type: "button",
4912
4958
  role: "tab",
@@ -4940,7 +4986,7 @@ const Pn = (e) => {
4940
4986
  text: o.white,
4941
4987
  border: o.red
4942
4988
  }
4943
- }, Cl = (e, t) => {
4989
+ }, Il = (e, t) => {
4944
4990
  switch (t.type) {
4945
4991
  case "ADD_TOAST": {
4946
4992
  const r = t.payload;
@@ -4972,10 +5018,10 @@ const Pn = (e) => {
4972
5018
  default:
4973
5019
  return e;
4974
5020
  }
4975
- }, Tl = {
5021
+ }, Nl = {
4976
5022
  toasts: [],
4977
5023
  queue: []
4978
- }, Et = (e) => So[e] ?? So.default, Rl = He`
5024
+ }, Et = (e) => So[e] ?? So.default, Ll = He`
4979
5025
  from {
4980
5026
  transform: translateY(100%);
4981
5027
  opacity: 0;
@@ -4984,7 +5030,7 @@ const Pn = (e) => {
4984
5030
  transform: translateY(0);
4985
5031
  opacity: 1;
4986
5032
  }
4987
- `, Il = He`
5033
+ `, Al = He`
4988
5034
  from {
4989
5035
  transform: translateY(0);
4990
5036
  opacity: 1;
@@ -4993,7 +5039,7 @@ const Pn = (e) => {
4993
5039
  transform: translateY(100%);
4994
5040
  opacity: 0;
4995
5041
  }
4996
- `, Nl = p.div`
5042
+ `, Dl = p.div`
4997
5043
  position: fixed;
4998
5044
  bottom: 24px;
4999
5045
  left: 24px;
@@ -5004,7 +5050,7 @@ const Pn = (e) => {
5004
5050
  pointer-events: none;
5005
5051
  width: auto;
5006
5052
  max-width: 90vw;
5007
- `, Ll = p.div`
5053
+ `, Ol = p.div`
5008
5054
  display: flex;
5009
5055
  align-items: center;
5010
5056
  justify-content: space-between;
@@ -5016,17 +5062,17 @@ const Pn = (e) => {
5016
5062
  border: 1px solid ${({ $variant: e }) => Et(e).border};
5017
5063
  border-radius: 96px;
5018
5064
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
5019
- animation: ${({ $isExiting: e }) => e ? Il : Rl} 0.3s ease-out;
5065
+ animation: ${({ $isExiting: e }) => e ? Al : Ll} 0.3s ease-out;
5020
5066
  pointer-events: auto;
5021
5067
  max-width: 500px;
5022
- `, Al = p.span`
5068
+ `, _l = p.span`
5023
5069
  font-size: 14px;
5024
5070
  font-weight: 500;
5025
5071
  line-height: 1.4;
5026
5072
  white-space: nowrap;
5027
5073
  overflow: hidden;
5028
5074
  text-overflow: ellipsis;
5029
- `, Dl = p.button`
5075
+ `, Ml = p.button`
5030
5076
  display: flex;
5031
5077
  align-items: center;
5032
5078
  justify-content: center;
@@ -5044,13 +5090,13 @@ const Pn = (e) => {
5044
5090
  &:hover {
5045
5091
  opacity: 1;
5046
5092
  }
5047
- `, _l = p.div`
5093
+ `, Fl = p.div`
5048
5094
  display: flex;
5049
5095
  align-items: center;
5050
5096
  justify-content: space-between;
5051
5097
  gap: 12px;
5052
5098
  width: 100%;
5053
- `, Ol = p.div`
5099
+ `, Bl = p.div`
5054
5100
  display: flex;
5055
5101
  align-items: center;
5056
5102
  justify-content: center;
@@ -5078,23 +5124,23 @@ const Pn = (e) => {
5078
5124
  }, e.duration);
5079
5125
  return () => clearTimeout(a);
5080
5126
  }
5081
- }, [e.duration, e.id]), /* @__PURE__ */ P(Ll, { $variant: e.variant, $isExiting: r, children: [
5082
- /* @__PURE__ */ s(Al, { children: e.message }),
5083
- /* @__PURE__ */ s(Dl, { onClick: n, children: /* @__PURE__ */ s(Dt, { style: { width: 16, height: 16 } }) })
5127
+ }, [e.duration, e.id]), /* @__PURE__ */ P(Ol, { $variant: e.variant, $isExiting: r, children: [
5128
+ /* @__PURE__ */ s(_l, { children: e.message }),
5129
+ /* @__PURE__ */ s(Ml, { onClick: n, children: /* @__PURE__ */ s(Dt, { style: { width: 16, height: 16 } }) })
5084
5130
  ] });
5085
- }, Ml = ({ toasts: e, queueCount: t, removeToast: r }) => {
5131
+ }, Yl = ({ toasts: e, queueCount: t, removeToast: r }) => {
5086
5132
  if (e.length === 0)
5087
5133
  return null;
5088
5134
  const i = e.length - 1;
5089
- return /* @__PURE__ */ s(Nl, { children: e.map((n, a) => a === i && t > 0 ? /* @__PURE__ */ P(_l, { children: [
5135
+ return /* @__PURE__ */ s(Dl, { children: e.map((n, a) => a === i && t > 0 ? /* @__PURE__ */ P(Fl, { children: [
5090
5136
  /* @__PURE__ */ s(zo, { toast: n, onRemove: r }),
5091
- /* @__PURE__ */ P(Ol, { children: [
5137
+ /* @__PURE__ */ P(Bl, { children: [
5092
5138
  "+",
5093
5139
  t
5094
5140
  ] })
5095
5141
  ] }, n.id) : /* @__PURE__ */ s(zo, { toast: n, onRemove: r }, n.id)) });
5096
- }, yd = ({ children: e }) => {
5097
- const [t, r] = vr(Cl, Tl), i = M(
5142
+ }, kd = ({ children: e }) => {
5143
+ const [t, r] = vr(Il, Nl), i = M(
5098
5144
  (a, c = "default", d) => {
5099
5145
  const u = `toast-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
5100
5146
  r({
@@ -5117,7 +5163,7 @@ const Pn = (e) => {
5117
5163
  return /* @__PURE__ */ P(Fo.Provider, { value: { addToast: i, removeToast: n }, children: [
5118
5164
  e,
5119
5165
  /* @__PURE__ */ s(
5120
- Ml,
5166
+ Yl,
5121
5167
  {
5122
5168
  toasts: t.toasts,
5123
5169
  queueCount: t.queue.length,
@@ -5125,7 +5171,7 @@ const Pn = (e) => {
5125
5171
  }
5126
5172
  )
5127
5173
  ] });
5128
- }, vd = () => {
5174
+ }, Sd = () => {
5129
5175
  const e = wr(Fo);
5130
5176
  if (!e)
5131
5177
  throw new Error("useToast must be used within ToastProvider");
@@ -5152,7 +5198,7 @@ const Pn = (e) => {
5152
5198
  background: o.red,
5153
5199
  text: o.white
5154
5200
  }
5155
- }, Ye = (e) => Po[e] ?? Po.dark, Fl = (e, t) => {
5201
+ }, Ye = (e) => Po[e] ?? Po.dark, Hl = (e, t) => {
5156
5202
  const r = Ye(t).background;
5157
5203
  switch (e) {
5158
5204
  case "top":
@@ -5186,7 +5232,7 @@ const Pn = (e) => {
5186
5232
  default:
5187
5233
  return "";
5188
5234
  }
5189
- }, Bl = (e, t) => {
5235
+ }, jl = (e, t) => {
5190
5236
  if (t !== "light") return "";
5191
5237
  const r = Ye(t).border;
5192
5238
  switch (e) {
@@ -5255,7 +5301,7 @@ const Pn = (e) => {
5255
5301
  width: 0;
5256
5302
  height: 0;
5257
5303
  border: 6px solid transparent;
5258
- ${Fl(e.$placement, e.$variant)}
5304
+ ${Hl(e.$placement, e.$variant)}
5259
5305
  }
5260
5306
 
5261
5307
  ${e.$variant === "light" ? `
@@ -5268,11 +5314,11 @@ const Pn = (e) => {
5268
5314
  }
5269
5315
  ` : ""}
5270
5316
 
5271
- ${Bl(e.$placement, e.$variant)}
5272
- `, Yl = p.div`
5317
+ ${jl(e.$placement, e.$variant)}
5318
+ `, Vl = p.div`
5273
5319
  position: relative;
5274
5320
  display: inline-block;
5275
- `, Hl = (e) => {
5321
+ `, Wl = (e) => {
5276
5322
  switch (e) {
5277
5323
  case "top":
5278
5324
  return `
@@ -5301,14 +5347,14 @@ const Pn = (e) => {
5301
5347
  default:
5302
5348
  return "";
5303
5349
  }
5304
- }, jl = p.div`
5350
+ }, Xl = p.div`
5305
5351
  position: absolute;
5306
5352
  ${(e) => Bo(e)}
5307
- ${({ $placement: e }) => Hl(e)}
5308
- `, Vl = p.div`
5353
+ ${({ $placement: e }) => Wl(e)}
5354
+ `, Ul = p.div`
5309
5355
  position: fixed;
5310
5356
  ${(e) => Bo(e)}
5311
- `, Ct = _("tooltip"), ue = 8, wd = ({
5357
+ `, Ct = D("tooltip"), ue = 8, zd = ({
5312
5358
  children: e,
5313
5359
  className: t,
5314
5360
  classnames: r,
@@ -5323,28 +5369,28 @@ const Pn = (e) => {
5323
5369
  const [h, f] = V(!1), [$, C] = V(null), [w, v] = V(a), [y, x] = V({ top: 0, left: 0 }), m = U(null), g = U(null), T = M(() => {
5324
5370
  var B, W;
5325
5371
  if (!m.current) return;
5326
- const I = m.current.getBoundingClientRect(), F = ((B = g.current) == null ? void 0 : B.offsetWidth) ?? 100, D = ((W = g.current) == null ? void 0 : W.offsetHeight) ?? 30, z = I.top - ue, H = window.innerHeight - I.bottom - ue, k = I.left - ue, A = window.innerWidth - I.right - ue;
5372
+ const I = m.current.getBoundingClientRect(), F = ((B = g.current) == null ? void 0 : B.offsetWidth) ?? 100, O = ((W = g.current) == null ? void 0 : W.offsetHeight) ?? 30, z = I.top - ue, H = window.innerHeight - I.bottom - ue, k = I.left - ue, A = window.innerWidth - I.right - ue;
5327
5373
  let E = a;
5328
- if (a === "top" && z < D && H > z ? E = "bottom" : a === "bottom" && H < D && z > H ? E = "top" : a === "left" && k < F && A > k ? E = "right" : a === "right" && A < F && k > A && (E = "left"), v(E), c) {
5374
+ if (a === "top" && z < O && H > z ? E = "bottom" : a === "bottom" && H < O && z > H ? E = "top" : a === "left" && k < F && A > k ? E = "right" : a === "right" && A < F && k > A && (E = "left"), v(E), c) {
5329
5375
  let Y, X;
5330
5376
  switch (E) {
5331
5377
  case "top":
5332
- Y = I.top - D - ue, X = I.left + I.width / 2 - F / 2;
5378
+ Y = I.top - O - ue, X = I.left + I.width / 2 - F / 2;
5333
5379
  break;
5334
5380
  case "bottom":
5335
5381
  Y = I.bottom + ue, X = I.left + I.width / 2 - F / 2;
5336
5382
  break;
5337
5383
  case "left":
5338
- Y = I.top + I.height / 2 - D / 2, X = I.left - F - ue;
5384
+ Y = I.top + I.height / 2 - O / 2, X = I.left - F - ue;
5339
5385
  break;
5340
5386
  case "right":
5341
- Y = I.top + I.height / 2 - D / 2, X = I.right + ue;
5387
+ Y = I.top + I.height / 2 - O / 2, X = I.right + ue;
5342
5388
  break;
5343
5389
  default:
5344
5390
  Y = 0, X = 0;
5345
5391
  }
5346
5392
  const R = 8;
5347
- X = Math.max(R, Math.min(X, window.innerWidth - F - R)), Y = Math.max(R, Math.min(Y, window.innerHeight - D - R)), x({ top: Y, left: X });
5393
+ X = Math.max(R, Math.min(X, window.innerWidth - F - R)), Y = Math.max(R, Math.min(Y, window.innerHeight - O - R)), x({ top: Y, left: X });
5348
5394
  }
5349
5395
  }, [a, c]);
5350
5396
  lt(() => {
@@ -5359,7 +5405,7 @@ const Pn = (e) => {
5359
5405
  $ && (clearTimeout($), C(null)), f(!1);
5360
5406
  }, q = c ? ve(
5361
5407
  /* @__PURE__ */ s(
5362
- Vl,
5408
+ Ul,
5363
5409
  {
5364
5410
  ref: g,
5365
5411
  className: Ct("content", r == null ? void 0 : r.content),
@@ -5372,7 +5418,7 @@ const Pn = (e) => {
5372
5418
  ),
5373
5419
  c
5374
5420
  ) : /* @__PURE__ */ s(
5375
- jl,
5421
+ Xl,
5376
5422
  {
5377
5423
  ref: g,
5378
5424
  className: Ct("content", r == null ? void 0 : r.content),
@@ -5383,7 +5429,7 @@ const Pn = (e) => {
5383
5429
  }
5384
5430
  );
5385
5431
  return /* @__PURE__ */ P(
5386
- Yl,
5432
+ Vl,
5387
5433
  {
5388
5434
  ...b,
5389
5435
  ref: (I) => {
@@ -5401,40 +5447,41 @@ const Pn = (e) => {
5401
5447
  };
5402
5448
  export {
5403
5449
  nt as Button,
5404
- Jl as Card,
5405
- _t as Checkbox,
5406
- Ql as CheckboxCard,
5407
- ed as CheckboxGroup,
5450
+ td as Card,
5451
+ Ot as Checkbox,
5452
+ od as CheckboxCard,
5453
+ rd as CheckboxGroup,
5408
5454
  It as Chip,
5409
- td as Confirmation,
5410
- od as Container,
5411
- rd as DatePicker,
5412
- id as Drawer,
5413
- nd as Dropdown,
5455
+ id as Confirmation,
5456
+ nd as Container,
5457
+ ad as DatePicker,
5458
+ ld as Drawer,
5459
+ dd as Dropdown,
5414
5460
  Pe as FieldLabel,
5415
- Kl as GlobalStyle,
5416
- ad as ImageCropper,
5417
- sa as Input,
5461
+ cd as FieldMessage,
5462
+ ed as GlobalStyle,
5463
+ sd as ImageCropper,
5464
+ ha as Input,
5418
5465
  Br as KeySymbol,
5419
5466
  Yr as KeysBindings,
5420
- ha as Modal,
5421
- ld as MultiSelect,
5422
- dd as OtpCode,
5423
- cd as Panel,
5424
- sd as Progress,
5467
+ fa as Modal,
5468
+ pd as MultiSelect,
5469
+ ud as OtpCode,
5470
+ hd as Panel,
5471
+ bd as Progress,
5425
5472
  Ao as Radio,
5426
- pd as RadioCard,
5427
- ud as RadioGroup,
5428
- hd as Select,
5429
- bd as Spinner,
5430
- gd as StatusCard,
5431
- fd as Stepper,
5432
- $d as Tabs,
5433
- xd as Tags,
5434
- yd as ToastProvider,
5435
- wd as Tooltip,
5473
+ gd as RadioCard,
5474
+ fd as RadioGroup,
5475
+ xd as Select,
5476
+ $d as Spinner,
5477
+ yd as StatusCard,
5478
+ vd as Stepper,
5479
+ md as Tabs,
5480
+ wd as Tags,
5481
+ kd as ToastProvider,
5482
+ zd as Tooltip,
5436
5483
  fi as formatDateGo,
5437
- aa as useImageCropper,
5438
- vd as useToast
5484
+ ca as useImageCropper,
5485
+ Sd as useToast
5439
5486
  };
5440
5487
  //# sourceMappingURL=index.js.map