@binamik/components 0.2.2 → 0.2.3

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.
@@ -1,9 +1,9 @@
1
1
  import { jsx as M, jsxs as ue, Fragment as Pt } from "react/jsx-runtime";
2
- import { keyframes as Gn, css as ze, Global as zi } from "@emotion/react";
2
+ import { keyframes as Gn, css as Be, Global as zi } from "@emotion/react";
3
3
  import ae from "@emotion/styled";
4
4
  import * as m from "react";
5
- import D, { useMemo as he, useCallback as ie, useState as $e, useEffect as sn, createContext as go, Fragment as Yi, useContext as bo, forwardRef as yo, createElement as $n, useRef as Xt, useLayoutEffect as vo } from "react";
6
- import { motion as Ye, AnimatePresence as wo } from "framer-motion";
5
+ import D, { useMemo as he, useCallback as ie, useState as Xe, useEffect as sn, createContext as go, Fragment as Yi, useContext as bo, forwardRef as yo, createElement as $n, useRef as Xt, useLayoutEffect as vo } from "react";
6
+ import { motion as ze, AnimatePresence as wo } from "framer-motion";
7
7
  import * as xo from "react-dom";
8
8
  import Li from "react-dom";
9
9
  const ji = Gn`
@@ -137,7 +137,7 @@ const ji = Gn`
137
137
  .button__spinner_wrapper {
138
138
  margin: -0.5em 0;
139
139
  display: ${({ isLoading: e }) => e ? "block" : "none"};
140
- ${({ hasLoadingText: e }) => e && ze`
140
+ ${({ hasLoadingText: e }) => e && Be`
141
141
  top: calc(50% + 0.5em);
142
142
  transform: translateY(-50%);
143
143
  position: absolute;
@@ -166,7 +166,7 @@ const ji = Gn`
166
166
  /* @__PURE__ */ M("span", { className: "button__text_wrapper", children: t ? n || "" : a })
167
167
  ]
168
168
  }
169
- ), fg = ze`
169
+ ), fg = Be`
170
170
  :root {
171
171
  --clr-white: #ffffff;
172
172
  --clr-black: #000000;
@@ -266,7 +266,7 @@ const ji = Gn`
266
266
 
267
267
  --bp-tablet: 64rem; // 1024px
268
268
  }
269
- `, mg = ze`
269
+ `, mg = Be`
270
270
  html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p,
271
271
  blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em,
272
272
  img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u,
@@ -352,7 +352,7 @@ const ji = Gn`
352
352
  background-clip: text;
353
353
  -webkit-background-clip: text;
354
354
  }
355
- `, hg = ze`
355
+ `, hg = Be`
356
356
  body {
357
357
  line-height: 1;
358
358
  color: #444;
@@ -497,7 +497,7 @@ const ji = Gn`
497
497
  ${ns[e]} ${Ji(t)};`, pg = () => /* @__PURE__ */ M(
498
498
  zi,
499
499
  {
500
- styles: ze`
500
+ styles: Be`
501
501
  body {
502
502
  overflow: hidden;
503
503
  }
@@ -507,7 +507,7 @@ const ji = Gn`
507
507
  shouldForwardProp(e) {
508
508
  return !["columnTemplate", "mobileBreakpoint", "customCss"].includes(e);
509
509
  }
510
- }, is = ae(Ye.div, as)`
510
+ }, is = ae(ze.div, as)`
511
511
  --radius: 0.625rem;
512
512
  --column-template: ${(e) => e.columnTemplate};
513
513
  --table-padding: 1.875rem;
@@ -588,7 +588,7 @@ const ji = Gn`
588
588
  }
589
589
 
590
590
  ${(e) => e.customCss}
591
- `, ss = ae(Ye.div)`
591
+ `, ss = ae(ze.div)`
592
592
  width: auto;
593
593
  position: relative;
594
594
  border: var(--row-annex-border);
@@ -597,7 +597,7 @@ const ji = Gn`
597
597
  padding: var(--row-annex-padding);
598
598
  background-color: rgba(255, 255, 255, 0.6);
599
599
  transition: background-color var(--highlight-transition);
600
- `, ko = ze`
600
+ `, ko = Be`
601
601
  display: grid;
602
602
  width: 100%;
603
603
  grid-template-columns: var(--column-template);
@@ -608,7 +608,7 @@ const ji = Gn`
608
608
  color: var(--clr-gray3);
609
609
  min-height: 0;
610
610
  min-width: 0;
611
- `, ls = ae(Ye.li)`
611
+ `, ls = ae(ze.li)`
612
612
  margin: var(--row-margin);
613
613
  border: var(--row-border);
614
614
  border-radius: var(--radius);
@@ -631,7 +631,7 @@ const ji = Gn`
631
631
  &:not(.empty_row):hover {
632
632
  background-color: var(--row-hover-background);
633
633
  }
634
- `, cs = ae(Ye.div)`
634
+ `, cs = ae(ze.div)`
635
635
  ${ko}
636
636
 
637
637
  max-width: 100%;
@@ -643,7 +643,7 @@ const ji = Gn`
643
643
  &:last-of-type .TableCellWrapper:last-of-type .TableCellRef {
644
644
  border-radius: 0 0 0 var(--radius);
645
645
  }
646
- `, ds = ae(Ye.div)`
646
+ `, ds = ae(ze.div)`
647
647
  ${ko}
648
648
  min-height: 4.375rem;
649
649
  background-color: var(--label-background);
@@ -651,18 +651,18 @@ const ji = Gn`
651
651
  color: var(--clr-gray3);
652
652
  border-radius: var(--radius);
653
653
  display: var(--header-row-display);
654
- `, us = ae(Ye.ul)`
654
+ `, us = ae(ze.ul)`
655
655
  width: 100%;
656
656
  list-style: none;
657
657
  margin: 0;
658
658
  padding: 0;
659
- `, Un = ze`
659
+ `, Un = Be`
660
660
  padding: var(--cell-padding);
661
661
  height: 100%;
662
662
  display: flex;
663
663
  align-items: center;
664
664
  margin: 0;
665
- `, fs = ze`
665
+ `, fs = Be`
666
666
  position: relative;
667
667
 
668
668
  &::before {
@@ -722,7 +722,7 @@ const ji = Gn`
722
722
  background-color: var(--label-background);
723
723
  font-weight: bold;
724
724
  color: var(--clr-gray3);
725
- `, gs = ze`
725
+ `, gs = Be`
726
726
  &.sortable,
727
727
  &.sorted-asc,
728
728
  &.sorted-desc {
@@ -787,7 +787,7 @@ const ji = Gn`
787
787
  }
788
788
 
789
789
  ${gs}
790
- `, ys = ae(Ye.button)`
790
+ `, ys = ae(ze.button)`
791
791
  display: var(--mobile-sorting-display);
792
792
  align-items: center;
793
793
  color: var(--clr-gray3);
@@ -837,7 +837,7 @@ const ji = Gn`
837
837
  }
838
838
  }
839
839
  }
840
- `, vs = ae(Ye.div)`
840
+ `, vs = ae(ze.div)`
841
841
  position: absolute;
842
842
  top: 2.5rem;
843
843
  right: 0;
@@ -877,7 +877,7 @@ const ji = Gn`
877
877
  &:hover {
878
878
  background-color: var(--clr-gray8);
879
879
  }
880
- `, xs = ae(Ye.button)`
880
+ `, xs = ae(ze.button)`
881
881
  position: fixed;
882
882
  inset: 0;
883
883
  z-index: 10;
@@ -944,14 +944,14 @@ var Oo = {
944
944
  className: void 0,
945
945
  style: void 0,
946
946
  attr: void 0
947
- }, wr = D.createContext && D.createContext(Oo), Ue = function() {
948
- return Ue = Object.assign || function(e) {
947
+ }, wr = D.createContext && D.createContext(Oo), Ge = function() {
948
+ return Ge = Object.assign || function(e) {
949
949
  for (var t, n = 1, r = arguments.length; n < r; n++) {
950
950
  t = arguments[n];
951
951
  for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
952
952
  }
953
953
  return e;
954
- }, Ue.apply(this, arguments);
954
+ }, Ge.apply(this, arguments);
955
955
  }, Ms = function(e, t) {
956
956
  var n = {};
957
957
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
@@ -961,28 +961,28 @@ var Oo = {
961
961
  };
962
962
  function So(e) {
963
963
  return e && e.map(function(t, n) {
964
- return D.createElement(t.tag, Ue({
964
+ return D.createElement(t.tag, Ge({
965
965
  key: n
966
966
  }, t.attr), So(t.child));
967
967
  });
968
968
  }
969
969
  function Xn(e) {
970
970
  return function(t) {
971
- return D.createElement(Os, Ue({
972
- attr: Ue({}, e.attr)
971
+ return D.createElement(Os, Ge({
972
+ attr: Ge({}, e.attr)
973
973
  }, t), So(e.child));
974
974
  };
975
975
  }
976
976
  function Os(e) {
977
977
  var t = function(n) {
978
978
  var r = e.attr, o = e.size, a = e.title, i = Ms(e, ["attr", "size", "title"]), s = o || n.size || "1em", l;
979
- return n.className && (l = n.className), e.className && (l = (l ? l + " " : "") + e.className), D.createElement("svg", Ue({
979
+ return n.className && (l = n.className), e.className && (l = (l ? l + " " : "") + e.className), D.createElement("svg", Ge({
980
980
  stroke: "currentColor",
981
981
  fill: "currentColor",
982
982
  strokeWidth: "0"
983
983
  }, n.attr, r, i, {
984
984
  className: l,
985
- style: Ue(Ue({
985
+ style: Ge(Ge({
986
986
  color: e.color || n.color
987
987
  }, n.style), e.style),
988
988
  height: s,
@@ -1007,7 +1007,7 @@ const Ps = ({ onSortingChange: e }) => {
1007
1007
  const { columns: t = [], sortedOrder: n = "", sortedColumn: r = "" } = ln(), o = he(() => t.filter(({ sortable: d }) => d), [t]), a = he(() => t.find(({ name: d }) => d === r)?.label || "", [t, r]), i = he(
1008
1008
  () => o.length,
1009
1009
  [o]
1010
- ), [s, l] = $e(!1), c = ie(() => {
1010
+ ), [s, l] = Xe(!1), c = ie(() => {
1011
1011
  i && l((d) => !d);
1012
1012
  }, [i]);
1013
1013
  sn(() => {
@@ -1660,7 +1660,7 @@ const Or = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Sr = To, X
1660
1660
  }, bl = [], oe = (e) => {
1661
1661
  const t = (n) => n[e] || bl;
1662
1662
  return t.isThemeGetter = !0, t;
1663
- }, Io = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Bo = /^\((?:(\w[\w-]*):)?(.+)\)$/i, yl = /^\d+\/\d+$/, vl = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, wl = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, xl = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, kl = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Cl = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ct = (e) => yl.test(e), F = (e) => !!e && !Number.isNaN(Number(e)), He = (e) => !!e && Number.isInteger(Number(e)), kn = (e) => e.endsWith("%") && F(e.slice(0, -1)), Ae = (e) => vl.test(e), Ml = () => !0, Ol = (e) => (
1663
+ }, Io = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Bo = /^\((?:(\w[\w-]*):)?(.+)\)$/i, yl = /^\d+\/\d+$/, vl = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, wl = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, xl = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, kl = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Cl = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ct = (e) => yl.test(e), F = (e) => !!e && !Number.isNaN(Number(e)), je = (e) => !!e && Number.isInteger(Number(e)), kn = (e) => e.endsWith("%") && F(e.slice(0, -1)), Ae = (e) => vl.test(e), Ml = () => !0, Ol = (e) => (
1664
1664
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
1665
1665
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
1666
1666
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
@@ -1690,9 +1690,9 @@ const Or = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Sr = To, X
1690
1690
  "bottom-left",
1691
1691
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
1692
1692
  "left-bottom"
1693
- ], v = () => [...x(), N, E], k = () => ["auto", "hidden", "clip", "visible", "scroll"], O = () => ["auto", "contain", "none"], S = () => [N, E, l], A = () => [ct, "full", "auto", ...S()], T = () => [He, "none", "subgrid", N, E], I = () => ["auto", {
1694
- span: ["full", He, N, E]
1695
- }, He, N, E], L = () => [He, "auto", N, E], j = () => ["auto", "min", "max", "fr", N, E], $ = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], K = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], B = () => ["auto", ...S()], H = () => [ct, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...S()], P = () => [e, N, E], V = () => [...x(), Wr, Nr, {
1693
+ ], v = () => [...x(), N, E], k = () => ["auto", "hidden", "clip", "visible", "scroll"], O = () => ["auto", "contain", "none"], S = () => [N, E, l], A = () => [ct, "full", "auto", ...S()], T = () => [je, "none", "subgrid", N, E], I = () => ["auto", {
1694
+ span: ["full", je, N, E]
1695
+ }, je, N, E], L = () => [je, "auto", N, E], j = () => ["auto", "min", "max", "fr", N, E], $ = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], K = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], B = () => ["auto", ...S()], H = () => [ct, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...S()], P = () => [e, N, E], V = () => [...x(), Wr, Nr, {
1696
1696
  position: [N, E]
1697
1697
  }], Q = () => ["no-repeat", {
1698
1698
  repeat: ["", "x", "y", "space", "round"]
@@ -1713,7 +1713,7 @@ const Or = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Sr = To, X
1713
1713
  b,
1714
1714
  N,
1715
1715
  E
1716
- ], We = () => ["none", F, N, E], be = () => ["none", F, N, E], rt = () => [F, N, E], je = () => [ct, "full", ...S()];
1716
+ ], We = () => ["none", F, N, E], be = () => ["none", F, N, E], rt = () => [F, N, E], Le = () => [ct, "full", ...S()];
1717
1717
  return {
1718
1718
  cacheSize: 500,
1719
1719
  theme: {
@@ -1959,7 +1959,7 @@ const Or = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Sr = To, X
1959
1959
  * @see https://tailwindcss.com/docs/z-index
1960
1960
  */
1961
1961
  z: [{
1962
- z: [He, "auto", N, E]
1962
+ z: [je, "auto", N, E]
1963
1963
  }],
1964
1964
  // ------------------------
1965
1965
  // --- Flexbox and Grid ---
@@ -2011,7 +2011,7 @@ const Or = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Sr = To, X
2011
2011
  * @see https://tailwindcss.com/docs/order
2012
2012
  */
2013
2013
  order: [{
2014
- order: [He, "first", "last", "none", N, E]
2014
+ order: [je, "first", "last", "none", N, E]
2015
2015
  }],
2016
2016
  /**
2017
2017
  * Grid Template Columns
@@ -2689,9 +2689,9 @@ const Or = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Sr = To, X
2689
2689
  bg: ["none", {
2690
2690
  linear: [{
2691
2691
  to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
2692
- }, He, N, E],
2692
+ }, je, N, E],
2693
2693
  radial: ["", N, E],
2694
- conic: [He, N, E]
2694
+ conic: [je, N, E]
2695
2695
  }, Tl, Nl]
2696
2696
  }],
2697
2697
  /**
@@ -3763,28 +3763,28 @@ const Or = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Sr = To, X
3763
3763
  * @see https://tailwindcss.com/docs/translate
3764
3764
  */
3765
3765
  translate: [{
3766
- translate: je()
3766
+ translate: Le()
3767
3767
  }],
3768
3768
  /**
3769
3769
  * Translate X
3770
3770
  * @see https://tailwindcss.com/docs/translate
3771
3771
  */
3772
3772
  "translate-x": [{
3773
- "translate-x": je()
3773
+ "translate-x": Le()
3774
3774
  }],
3775
3775
  /**
3776
3776
  * Translate Y
3777
3777
  * @see https://tailwindcss.com/docs/translate
3778
3778
  */
3779
3779
  "translate-y": [{
3780
- "translate-y": je()
3780
+ "translate-y": Le()
3781
3781
  }],
3782
3782
  /**
3783
3783
  * Translate Z
3784
3784
  * @see https://tailwindcss.com/docs/translate
3785
3785
  */
3786
3786
  "translate-z": [{
3787
- "translate-z": je()
3787
+ "translate-z": Le()
3788
3788
  }],
3789
3789
  /**
3790
3790
  * Translate None
@@ -4964,7 +4964,7 @@ function U(e, t) {
4964
4964
  const n = e < 0 ? "-" : "", r = Math.abs(e).toString().padStart(t, "0");
4965
4965
  return n + r;
4966
4966
  }
4967
- const Ve = {
4967
+ const He = {
4968
4968
  // Year
4969
4969
  y(e, t) {
4970
4970
  const n = e.getFullYear(), r = n > 0 ? n : 1 - n;
@@ -5050,7 +5050,7 @@ const Ve = {
5050
5050
  const r = e.getFullYear(), o = r > 0 ? r : 1 - r;
5051
5051
  return n.ordinalNumber(o, { unit: "year" });
5052
5052
  }
5053
- return Ve.y(e, t);
5053
+ return He.y(e, t);
5054
5054
  },
5055
5055
  // Local week-numbering year
5056
5056
  Y: function(e, t, n, r) {
@@ -5153,7 +5153,7 @@ const Ve = {
5153
5153
  switch (t) {
5154
5154
  case "M":
5155
5155
  case "MM":
5156
- return Ve.M(e, t);
5156
+ return He.M(e, t);
5157
5157
  // 1st, 2nd, ..., 12th
5158
5158
  case "Mo":
5159
5159
  return n.ordinalNumber(r + 1, { unit: "month" });
@@ -5218,7 +5218,7 @@ const Ve = {
5218
5218
  },
5219
5219
  // Day of the month
5220
5220
  d: function(e, t, n) {
5221
- return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : Ve.d(e, t);
5221
+ return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : He.d(e, t);
5222
5222
  },
5223
5223
  // Day of year
5224
5224
  D: function(e, t, n) {
@@ -5464,11 +5464,11 @@ const Ve = {
5464
5464
  let r = e.getHours() % 12;
5465
5465
  return r === 0 && (r = 12), n.ordinalNumber(r, { unit: "hour" });
5466
5466
  }
5467
- return Ve.h(e, t);
5467
+ return He.h(e, t);
5468
5468
  },
5469
5469
  // Hour [0-23]
5470
5470
  H: function(e, t, n) {
5471
- return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : Ve.H(e, t);
5471
+ return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : He.H(e, t);
5472
5472
  },
5473
5473
  // Hour [0-11]
5474
5474
  K: function(e, t, n) {
@@ -5482,15 +5482,15 @@ const Ve = {
5482
5482
  },
5483
5483
  // Minute
5484
5484
  m: function(e, t, n) {
5485
- return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : Ve.m(e, t);
5485
+ return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : He.m(e, t);
5486
5486
  },
5487
5487
  // Second
5488
5488
  s: function(e, t, n) {
5489
- return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : Ve.s(e, t);
5489
+ return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : He.s(e, t);
5490
5490
  },
5491
5491
  // Fraction of second
5492
5492
  S: function(e, t) {
5493
- return Ve.S(e, t);
5493
+ return He.S(e, t);
5494
5494
  },
5495
5495
  // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
5496
5496
  X: function(e, t, n) {
@@ -7256,7 +7256,7 @@ function Sf(e) {
7256
7256
  return e.reduce((n, r) => n.concat(r.weeks.slice()), t.slice());
7257
7257
  }
7258
7258
  function un(e, t) {
7259
- const [n, r] = $e(e);
7259
+ const [n, r] = Xe(e);
7260
7260
  return [t === void 0 ? n : t, r];
7261
7261
  }
7262
7262
  function Pf(e, t) {
@@ -7354,7 +7354,7 @@ function ka(e, t, n, r, o, a, i, s = 0) {
7354
7354
  return !c && !u ? f : ka(e, t, f, r, o, a, i, s + 1);
7355
7355
  }
7356
7356
  function Nf(e, t, n, r, o) {
7357
- const { autoFocus: a } = e, [i, s] = $e(), l = Df(t.days, n, r || (() => !1), i), [c, u] = $e(a ? l : void 0);
7357
+ const { autoFocus: a } = e, [i, s] = Xe(), l = Df(t.days, n, r || (() => !1), i), [c, u] = Xe(a ? l : void 0);
7358
7358
  return {
7359
7359
  isFocusTarget: (p) => !!l?.isEqualTo(p),
7360
7360
  setFocused: u,
@@ -7552,7 +7552,7 @@ function If(e) {
7552
7552
  t.classNames
7553
7553
  ]);
7554
7554
  t.today || (t = { ...t, today: i.today() });
7555
- const { captionLayout: c, mode: u, navLayout: d, numberOfMonths: f = 1, onDayBlur: h, onDayClick: b, onDayFocus: p, onDayKeyDown: g, onDayMouseEnter: y, onDayMouseLeave: C, onNextClick: w, onPrevClick: x, showWeekNumber: v, styles: k } = t, { formatCaption: O, formatDay: S, formatMonthDropdown: A, formatWeekNumber: T, formatWeekNumberHeader: I, formatWeekdayName: L, formatYearDropdown: j } = o, $ = Pf(t, i), { days: K, months: B, navStart: H, navEnd: P, previousMonth: V, nextMonth: Q, goToMonth: le } = $, Ne = qu(K, t, H, P, i), { isSelected: ee, select: re, selected: ge } = $f(t, i) ?? {}, { blur: tt, focused: Z, isFocusTarget: nt, moveFocus: We, setFocused: be } = Nf(t, $, Ne, ee ?? (() => !1), i), { labelDayButton: rt, labelGridcell: je, labelGrid: lt, labelMonthDropdown: bi, labelNav: br, labelPrevious: yi, labelNext: vi, labelWeekday: wi, labelWeekNumber: xi, labelWeekNumberHeader: ki, labelYearDropdown: Ci } = a, Mi = he(() => mf(i, t.ISOWeek, t.broadcastCalendar, t.today), [i, t.ISOWeek, t.broadcastCalendar, t.today]), yr = u !== void 0 || b !== void 0, yn = ie(() => {
7555
+ const { captionLayout: c, mode: u, navLayout: d, numberOfMonths: f = 1, onDayBlur: h, onDayClick: b, onDayFocus: p, onDayKeyDown: g, onDayMouseEnter: y, onDayMouseLeave: C, onNextClick: w, onPrevClick: x, showWeekNumber: v, styles: k } = t, { formatCaption: O, formatDay: S, formatMonthDropdown: A, formatWeekNumber: T, formatWeekNumberHeader: I, formatWeekdayName: L, formatYearDropdown: j } = o, $ = Pf(t, i), { days: K, months: B, navStart: H, navEnd: P, previousMonth: V, nextMonth: Q, goToMonth: le } = $, Ne = qu(K, t, H, P, i), { isSelected: ee, select: re, selected: ge } = $f(t, i) ?? {}, { blur: tt, focused: Z, isFocusTarget: nt, moveFocus: We, setFocused: be } = Nf(t, $, Ne, ee ?? (() => !1), i), { labelDayButton: rt, labelGridcell: Le, labelGrid: lt, labelMonthDropdown: bi, labelNav: br, labelPrevious: yi, labelNext: vi, labelWeekday: wi, labelWeekNumber: xi, labelWeekNumberHeader: ki, labelYearDropdown: Ci } = a, Mi = he(() => mf(i, t.ISOWeek, t.broadcastCalendar, t.today), [i, t.ISOWeek, t.broadcastCalendar, t.today]), yr = u !== void 0 || b !== void 0, yn = ie(() => {
7556
7556
  V && (le(V), x?.(V));
7557
7557
  }, [V, le, x]), vn = ie(() => {
7558
7558
  Q && (le(Q), w?.(Q));
@@ -7694,7 +7694,7 @@ function If(e) {
7694
7694
  const { from: wn, to: xn } = ge;
7695
7695
  z[ve.range_start] = !!(wn && xn && i.isSameDay(ke, wn)), z[ve.range_end] = !!(wn && xn && i.isSameDay(ke, xn)), z[ve.range_middle] = Re(ge, ke, !0, i);
7696
7696
  }
7697
- const $i = ff(z, k, t.modifiersStyles), Ii = Gu(z, l, t.modifiersClassNames), Bi = !yr && !z.hidden ? je(ke, z, i.options, i) : void 0;
7697
+ const $i = ff(z, k, t.modifiersStyles), Ii = Gu(z, l, t.modifiersClassNames), Bi = !yr && !z.hidden ? Le(ke, z, i.options, i) : void 0;
7698
7698
  return D.createElement(r.Day, { key: `${G.isoDate}_${G.displayMonthId}`, day: G, modifiers: z, className: Ii.join(" "), style: $i, role: "gridcell", "aria-selected": z.selected || void 0, "aria-label": Bi, "data-day": G.isoDate, "data-month": G.outside ? G.dateMonthId : void 0, "data-selected": z.selected || void 0, "data-disabled": z.disabled || void 0, "data-hidden": z.hidden || void 0, "data-outside": G.outside || void 0, "data-focused": z.focused || void 0, "data-today": z.today || void 0 }, !z.hidden && yr ? D.createElement(r.DayButton, { className: l[W.DayButton], style: k?.[W.DayButton], type: "button", day: G, modifiers: z, disabled: !z.focused && z.disabled || void 0, "aria-disabled": z.focused && z.disabled || void 0, tabIndex: nt(G) ? 0 : -1, "aria-label": rt(ke, z, i.options, i), onClick: Oi(G, z), onBlur: Pi(G, z), onFocus: Si(G, z), onKeyDown: Di(G, z), onMouseEnter: Ei(G, z), onMouseLeave: Ni(G, z) }, S(ke, i.options, i)) : !z.hidden && S(G.date, i.options, i));
7699
7699
  })
7700
7700
  )))
@@ -7868,7 +7868,7 @@ function Vr({
7868
7868
  }
7869
7869
  );
7870
7870
  }
7871
- function Xe(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
7871
+ function Ue(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
7872
7872
  return function(o) {
7873
7873
  if (e?.(o), n === !1 || !o.defaultPrevented)
7874
7874
  return t?.(o);
@@ -7983,7 +7983,7 @@ var Gf = [
7983
7983
  "span",
7984
7984
  "svg",
7985
7985
  "ul"
7986
- ], Le = Gf.reduce((e, t) => {
7986
+ ], Ye = Gf.reduce((e, t) => {
7987
7987
  const n = /* @__PURE__ */ Yf(`Primitive.${t}`), r = m.forwardRef((o, a) => {
7988
7988
  const { asChild: i, ...s } = o, l = i ? n : t;
7989
7989
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ M(l, { ...s, ref: a });
@@ -8042,7 +8042,7 @@ var Kf = "DismissableLayer", Ln = "dismissableLayer.update", Zf = "dismissableLa
8042
8042
  const O = () => h({});
8043
8043
  return document.addEventListener(Ln, O), () => document.removeEventListener(Ln, O);
8044
8044
  }, []), /* @__PURE__ */ M(
8045
- Le.div,
8045
+ Ye.div,
8046
8046
  {
8047
8047
  ...l,
8048
8048
  ref: b,
@@ -8050,9 +8050,9 @@ var Kf = "DismissableLayer", Ln = "dismissableLayer.update", Zf = "dismissableLa
8050
8050
  pointerEvents: w ? x ? "auto" : "none" : void 0,
8051
8051
  ...e.style
8052
8052
  },
8053
- onFocusCapture: Xe(e.onFocusCapture, k.onFocusCapture),
8054
- onBlurCapture: Xe(e.onBlurCapture, k.onBlurCapture),
8055
- onPointerDownCapture: Xe(
8053
+ onFocusCapture: Ue(e.onFocusCapture, k.onFocusCapture),
8054
+ onBlurCapture: Ue(e.onBlurCapture, k.onBlurCapture),
8055
+ onPointerDownCapture: Ue(
8056
8056
  e.onPointerDownCapture,
8057
8057
  v.onPointerDownCapture
8058
8058
  )
@@ -8069,7 +8069,7 @@ var Jf = "DismissableLayerBranch", em = m.forwardRef((e, t) => {
8069
8069
  return n.branches.add(a), () => {
8070
8070
  n.branches.delete(a);
8071
8071
  };
8072
- }, [n.branches]), /* @__PURE__ */ M(Le.div, { ...e, ref: o });
8072
+ }, [n.branches]), /* @__PURE__ */ M(Ye.div, { ...e, ref: o });
8073
8073
  });
8074
8074
  em.displayName = Jf;
8075
8075
  function tm(e, t = globalThis?.document) {
@@ -8158,15 +8158,15 @@ var En = "focusScope.autoFocusOnMount", Nn = "focusScope.autoFocusOnUnmount", Xr
8158
8158
  let p = function(w) {
8159
8159
  if (h.paused || !s) return;
8160
8160
  const x = w.target;
8161
- s.contains(x) ? d.current = x : qe(d.current, { select: !0 });
8161
+ s.contains(x) ? d.current = x : Ve(d.current, { select: !0 });
8162
8162
  }, g = function(w) {
8163
8163
  if (h.paused || !s) return;
8164
8164
  const x = w.relatedTarget;
8165
- x !== null && (s.contains(x) || qe(d.current, { select: !0 }));
8165
+ x !== null && (s.contains(x) || Ve(d.current, { select: !0 }));
8166
8166
  }, y = function(w) {
8167
8167
  if (document.activeElement === document.body)
8168
8168
  for (const v of w)
8169
- v.removedNodes.length > 0 && qe(s);
8169
+ v.removedNodes.length > 0 && Ve(s);
8170
8170
  };
8171
8171
  document.addEventListener("focusin", p), document.addEventListener("focusout", g);
8172
8172
  const C = new MutationObserver(y);
@@ -8180,12 +8180,12 @@ var En = "focusScope.autoFocusOnMount", Nn = "focusScope.autoFocusOnUnmount", Xr
8180
8180
  const p = document.activeElement;
8181
8181
  if (!s.contains(p)) {
8182
8182
  const y = new CustomEvent(En, Xr);
8183
- s.addEventListener(En, c), s.dispatchEvent(y), y.defaultPrevented || (am(dm(Da(s)), { select: !0 }), document.activeElement === p && qe(s));
8183
+ s.addEventListener(En, c), s.dispatchEvent(y), y.defaultPrevented || (am(dm(Da(s)), { select: !0 }), document.activeElement === p && Ve(s));
8184
8184
  }
8185
8185
  return () => {
8186
8186
  s.removeEventListener(En, c), setTimeout(() => {
8187
8187
  const y = new CustomEvent(Nn, Xr);
8188
- s.addEventListener(Nn, u), s.dispatchEvent(y), y.defaultPrevented || qe(p ?? document.body, { select: !0 }), s.removeEventListener(Nn, u), Zr.remove(h);
8188
+ s.addEventListener(Nn, u), s.dispatchEvent(y), y.defaultPrevented || Ve(p ?? document.body, { select: !0 }), s.removeEventListener(Nn, u), Zr.remove(h);
8189
8189
  }, 0);
8190
8190
  };
8191
8191
  }
@@ -8196,18 +8196,18 @@ var En = "focusScope.autoFocusOnMount", Nn = "focusScope.autoFocusOnUnmount", Xr
8196
8196
  const g = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, y = document.activeElement;
8197
8197
  if (g && y) {
8198
8198
  const C = p.currentTarget, [w, x] = im(C);
8199
- w && x ? !p.shiftKey && y === x ? (p.preventDefault(), n && qe(w, { select: !0 })) : p.shiftKey && y === w && (p.preventDefault(), n && qe(x, { select: !0 })) : y === C && p.preventDefault();
8199
+ w && x ? !p.shiftKey && y === x ? (p.preventDefault(), n && Ve(w, { select: !0 })) : p.shiftKey && y === w && (p.preventDefault(), n && Ve(x, { select: !0 })) : y === C && p.preventDefault();
8200
8200
  }
8201
8201
  },
8202
8202
  [n, r, h.paused]
8203
8203
  );
8204
- return /* @__PURE__ */ M(Le.div, { tabIndex: -1, ...i, ref: f, onKeyDown: b });
8204
+ return /* @__PURE__ */ M(Ye.div, { tabIndex: -1, ...i, ref: f, onKeyDown: b });
8205
8205
  });
8206
8206
  Pa.displayName = om;
8207
8207
  function am(e, { select: t = !1 } = {}) {
8208
8208
  const n = document.activeElement;
8209
8209
  for (const r of e)
8210
- if (qe(r, { select: t }), document.activeElement !== n) return;
8210
+ if (Ve(r, { select: t }), document.activeElement !== n) return;
8211
8211
  }
8212
8212
  function im(e) {
8213
8213
  const t = Da(e), n = Kr(t, e), r = Kr(t.reverse(), e);
@@ -8239,7 +8239,7 @@ function sm(e, { upTo: t }) {
8239
8239
  function lm(e) {
8240
8240
  return e instanceof HTMLInputElement && "select" in e;
8241
8241
  }
8242
- function qe(e, { select: t = !1 } = {}) {
8242
+ function Ve(e, { select: t = !1 } = {}) {
8243
8243
  if (e && e.focus) {
8244
8244
  const n = document.activeElement;
8245
8245
  e.focus({ preventScroll: !0 }), e !== n && lm(e) && t && e.select();
@@ -8289,10 +8289,10 @@ const hm = ["top", "right", "bottom", "left"], Ze = Math.min, me = Math.max, tn
8289
8289
  function jn(e, t, n) {
8290
8290
  return me(e, Ze(t, n));
8291
8291
  }
8292
- function Ie(e, t) {
8292
+ function $e(e, t) {
8293
8293
  return typeof e == "function" ? e(t) : e;
8294
8294
  }
8295
- function Be(e) {
8295
+ function Ie(e) {
8296
8296
  return e.split("-")[0];
8297
8297
  }
8298
8298
  function Mt(e) {
@@ -8306,7 +8306,7 @@ function lr(e) {
8306
8306
  }
8307
8307
  const bm = /* @__PURE__ */ new Set(["top", "bottom"]);
8308
8308
  function Oe(e) {
8309
- return bm.has(Be(e)) ? "y" : "x";
8309
+ return bm.has(Ie(e)) ? "y" : "x";
8310
8310
  }
8311
8311
  function cr(e) {
8312
8312
  return sr(Oe(e));
@@ -8339,7 +8339,7 @@ function km(e, t, n) {
8339
8339
  }
8340
8340
  function Cm(e, t, n, r) {
8341
8341
  const o = Mt(e);
8342
- let a = km(Be(e), n === "start", r);
8342
+ let a = km(Ie(e), n === "start", r);
8343
8343
  return o && (a = a.map((i) => i + "-" + o), t && (a = a.concat(a.map(Hn)))), a;
8344
8344
  }
8345
8345
  function nn(e) {
@@ -8385,7 +8385,7 @@ function to(e, t, n) {
8385
8385
  reference: r,
8386
8386
  floating: o
8387
8387
  } = e;
8388
- const a = Oe(t), i = cr(t), s = lr(i), l = Be(t), c = a === "y", u = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2, f = r[s] / 2 - o[s] / 2;
8388
+ const a = Oe(t), i = cr(t), s = lr(i), l = Ie(t), c = a === "y", u = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2, f = r[s] / 2 - o[s] / 2;
8389
8389
  let h;
8390
8390
  switch (l) {
8391
8391
  case "top":
@@ -8505,7 +8505,7 @@ async function At(e, t) {
8505
8505
  elementContext: d = "floating",
8506
8506
  altBoundary: f = !1,
8507
8507
  padding: h = 0
8508
- } = Ie(t, e), b = Ea(h), g = s[f ? d === "floating" ? "reference" : "floating" : d], y = rn(await a.getClippingRect({
8508
+ } = $e(t, e), b = Ea(h), g = s[f ? d === "floating" ? "reference" : "floating" : d], y = rn(await a.getClippingRect({
8509
8509
  element: (n = await (a.isElement == null ? void 0 : a.isElement(g))) == null || n ? g : g.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(s.floating)),
8510
8510
  boundary: c,
8511
8511
  rootBoundary: u,
@@ -8549,7 +8549,7 @@ const Sm = (e) => ({
8549
8549
  } = t, {
8550
8550
  element: c,
8551
8551
  padding: u = 0
8552
- } = Ie(e, t) || {};
8552
+ } = $e(e, t) || {};
8553
8553
  if (c == null)
8554
8554
  return {};
8555
8555
  const d = Ea(u), f = {
@@ -8592,10 +8592,10 @@ const Sm = (e) => ({
8592
8592
  fallbackAxisSideDirection: b = "none",
8593
8593
  flipAlignment: p = !0,
8594
8594
  ...g
8595
- } = Ie(e, t);
8595
+ } = $e(e, t);
8596
8596
  if ((n = a.arrow) != null && n.alignmentOffset)
8597
8597
  return {};
8598
- const y = Be(o), C = Oe(s), w = Be(s) === s, x = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), v = f || (w || !p ? [nn(s)] : vm(s)), k = b !== "none";
8598
+ const y = Ie(o), C = Oe(s), w = Ie(s) === s, x = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), v = f || (w || !p ? [nn(s)] : vm(s)), k = b !== "none";
8599
8599
  !f && k && v.push(...Cm(s, p, b, x));
8600
8600
  const O = [s, ...v], S = await At(t, g), A = [];
8601
8601
  let T = ((r = a.flip) == null ? void 0 : r.overflows) || [];
@@ -8674,7 +8674,7 @@ const Dm = function(e) {
8674
8674
  } = t, {
8675
8675
  strategy: r = "referenceHidden",
8676
8676
  ...o
8677
- } = Ie(e, t);
8677
+ } = $e(e, t);
8678
8678
  switch (r) {
8679
8679
  case "referenceHidden": {
8680
8680
  const a = await At(t, {
@@ -8711,7 +8711,7 @@ async function Em(e, t) {
8711
8711
  placement: n,
8712
8712
  platform: r,
8713
8713
  elements: o
8714
- } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = Be(n), s = Mt(n), l = Oe(n) === "y", c = Na.has(i) ? -1 : 1, u = a && l ? -1 : 1, d = Ie(t, e);
8714
+ } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = Ie(n), s = Mt(n), l = Oe(n) === "y", c = Na.has(i) ? -1 : 1, u = a && l ? -1 : 1, d = $e(t, e);
8715
8715
  let {
8716
8716
  mainAxis: f,
8717
8717
  crossAxis: h,
@@ -8780,10 +8780,10 @@ const Nm = function(e) {
8780
8780
  }
8781
8781
  },
8782
8782
  ...l
8783
- } = Ie(e, t), c = {
8783
+ } = $e(e, t), c = {
8784
8784
  x: n,
8785
8785
  y: r
8786
- }, u = await At(t, l), d = Oe(Be(o)), f = sr(d);
8786
+ }, u = await At(t, l), d = Oe(Ie(o)), f = sr(d);
8787
8787
  let h = c[f], b = c[d];
8788
8788
  if (a) {
8789
8789
  const g = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", C = h + u[g], w = h - u[y];
@@ -8825,12 +8825,12 @@ const Nm = function(e) {
8825
8825
  offset: s = 0,
8826
8826
  mainAxis: l = !0,
8827
8827
  crossAxis: c = !0
8828
- } = Ie(e, t), u = {
8828
+ } = $e(e, t), u = {
8829
8829
  x: n,
8830
8830
  y: r
8831
8831
  }, d = Oe(o), f = sr(d);
8832
8832
  let h = u[f], b = u[d];
8833
- const p = Ie(s, t), g = typeof p == "number" ? {
8833
+ const p = $e(s, t), g = typeof p == "number" ? {
8834
8834
  mainAxis: p,
8835
8835
  crossAxis: 0
8836
8836
  } : {
@@ -8844,7 +8844,7 @@ const Nm = function(e) {
8844
8844
  }
8845
8845
  if (c) {
8846
8846
  var y, C;
8847
- const w = f === "y" ? "width" : "height", x = Na.has(Be(o)), v = a.reference[d] - a.floating[w] + (x && ((y = i.offset) == null ? void 0 : y[d]) || 0) + (x ? 0 : g.crossAxis), k = a.reference[d] + a.reference[w] + (x ? 0 : ((C = i.offset) == null ? void 0 : C[d]) || 0) - (x ? g.crossAxis : 0);
8847
+ const w = f === "y" ? "width" : "height", x = Na.has(Ie(o)), v = a.reference[d] - a.floating[w] + (x && ((y = i.offset) == null ? void 0 : y[d]) || 0) + (x ? 0 : g.crossAxis), k = a.reference[d] + a.reference[w] + (x ? 0 : ((C = i.offset) == null ? void 0 : C[d]) || 0) - (x ? g.crossAxis : 0);
8848
8848
  b < v ? b = v : b > k && (b = k);
8849
8849
  }
8850
8850
  return {
@@ -8868,7 +8868,7 @@ const Nm = function(e) {
8868
8868
  apply: l = () => {
8869
8869
  },
8870
8870
  ...c
8871
- } = Ie(e, t), u = await At(t, c), d = Be(o), f = Mt(o), h = Oe(o) === "y", {
8871
+ } = $e(e, t), u = await At(t, c), d = Ie(o), f = Mt(o), h = Oe(o) === "y", {
8872
8872
  width: b,
8873
8873
  height: p
8874
8874
  } = a.floating;
@@ -9587,7 +9587,7 @@ const gh = (e) => {
9587
9587
  var Mh = "Arrow", za = m.forwardRef((e, t) => {
9588
9588
  const { children: n, width: r = 10, height: o = 5, ...a } = e;
9589
9589
  return /* @__PURE__ */ M(
9590
- Le.svg,
9590
+ Ye.svg,
9591
9591
  {
9592
9592
  ...a,
9593
9593
  ref: t,
@@ -9634,7 +9634,7 @@ var Va = "PopperAnchor", qa = m.forwardRef(
9634
9634
  return m.useEffect(() => {
9635
9635
  const c = l.current;
9636
9636
  l.current = r?.current || i.current, c !== l.current && a.onAnchorChange(l.current);
9637
- }), r ? null : /* @__PURE__ */ M(Le.div, { ...o, ref: s });
9637
+ }), r ? null : /* @__PURE__ */ M(Ye.div, { ...o, ref: s });
9638
9638
  }
9639
9639
  );
9640
9640
  qa.displayName = Va;
@@ -9682,8 +9682,8 @@ var hr = "PopperContent", [Dh, Eh] = Ya(hr), Ga = m.forwardRef(
9682
9682
  xh({
9683
9683
  ...j,
9684
9684
  apply: ({ elements: Z, rects: nt, availableWidth: We, availableHeight: be }) => {
9685
- const { width: rt, height: je } = nt.reference, lt = Z.floating.style;
9686
- lt.setProperty("--radix-popper-available-width", `${We}px`), lt.setProperty("--radix-popper-available-height", `${be}px`), lt.setProperty("--radix-popper-anchor-width", `${rt}px`), lt.setProperty("--radix-popper-anchor-height", `${je}px`);
9685
+ const { width: rt, height: Le } = nt.reference, lt = Z.floating.style;
9686
+ lt.setProperty("--radix-popper-available-width", `${We}px`), lt.setProperty("--radix-popper-available-height", `${be}px`), lt.setProperty("--radix-popper-anchor-width", `${rt}px`), lt.setProperty("--radix-popper-anchor-height", `${Le}px`);
9687
9687
  }
9688
9688
  }),
9689
9689
  x && Ch({ element: x, padding: s }),
@@ -9731,7 +9731,7 @@ var hr = "PopperContent", [Dh, Eh] = Ya(hr), Ga = m.forwardRef(
9731
9731
  arrowY: ee,
9732
9732
  shouldHideArrow: re,
9733
9733
  children: /* @__PURE__ */ M(
9734
- Le.div,
9734
+ Ye.div,
9735
9735
  {
9736
9736
  "data-side": V,
9737
9737
  "data-align": Q,
@@ -9823,7 +9823,7 @@ var Th = Ha, Za = qa, Rh = Ga, _h = Xa, Fh = "Portal", Qa = m.forwardRef((e, t)
9823
9823
  const { container: n, ...r } = e, [o, a] = m.useState(!1);
9824
9824
  Ke(() => a(!0), []);
9825
9825
  const i = n || o && globalThis?.document?.body;
9826
- return i ? Li.createPortal(/* @__PURE__ */ M(Le.div, { ...r, ref: t }), i) : null;
9826
+ return i ? Li.createPortal(/* @__PURE__ */ M(Ye.div, { ...r, ref: t }), i) : null;
9827
9827
  });
9828
9828
  Qa.displayName = Fh;
9829
9829
  function $h(e, t) {
@@ -10028,14 +10028,14 @@ var Kh = function(e) {
10028
10028
  return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), Qh(r, o, n, "aria-hidden")) : function() {
10029
10029
  return null;
10030
10030
  };
10031
- }, Ge = function() {
10032
- return Ge = Object.assign || function(t) {
10031
+ }, qe = function() {
10032
+ return qe = Object.assign || function(t) {
10033
10033
  for (var n, r = 1, o = arguments.length; r < o; r++) {
10034
10034
  n = arguments[r];
10035
10035
  for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
10036
10036
  }
10037
10037
  return t;
10038
- }, Ge.apply(this, arguments);
10038
+ }, qe.apply(this, arguments);
10039
10039
  };
10040
10040
  function ep(e, t) {
10041
10041
  var n = {};
@@ -10055,7 +10055,7 @@ function Rn(e, t) {
10055
10055
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
10056
10056
  }
10057
10057
  function op(e, t) {
10058
- var n = $e(function() {
10058
+ var n = Xe(function() {
10059
10059
  return {
10060
10060
  // value
10061
10061
  value: e,
@@ -10194,12 +10194,12 @@ var ti = dp(), _n = function() {
10194
10194
  onScrollCapture: _n,
10195
10195
  onWheelCapture: _n,
10196
10196
  onTouchMoveCapture: _n
10197
- }), o = r[0], a = r[1], i = e.forwardProps, s = e.children, l = e.className, c = e.removeScrollBar, u = e.enabled, d = e.shards, f = e.sideCar, h = e.noRelative, b = e.noIsolation, p = e.inert, g = e.allowPinchZoom, y = e.as, C = y === void 0 ? "div" : y, w = e.gapMode, x = ep(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), v = f, k = ip([n, t]), O = Ge(Ge({}, x), o);
10197
+ }), o = r[0], a = r[1], i = e.forwardProps, s = e.children, l = e.className, c = e.removeScrollBar, u = e.enabled, d = e.shards, f = e.sideCar, h = e.noRelative, b = e.noIsolation, p = e.inert, g = e.allowPinchZoom, y = e.as, C = y === void 0 ? "div" : y, w = e.gapMode, x = ep(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), v = f, k = ip([n, t]), O = qe(qe({}, x), o);
10198
10198
  return m.createElement(
10199
10199
  m.Fragment,
10200
10200
  null,
10201
10201
  u && m.createElement(v, { sideCar: ti, removeScrollBar: c, shards: d, noRelative: h, noIsolation: b, inert: p, setCallbacks: a, allowPinchZoom: !!g, lockRef: n, gapMode: w }),
10202
- i ? m.cloneElement(m.Children.only(s), Ge(Ge({}, O), { ref: k })) : m.createElement(C, Ge({}, O, { className: l, ref: k }), s)
10202
+ i ? m.cloneElement(m.Children.only(s), qe(qe({}, O), { ref: k })) : m.createElement(C, qe({}, O, { className: l, ref: k }), s)
10203
10203
  );
10204
10204
  });
10205
10205
  gn.defaultProps = {
@@ -10516,7 +10516,7 @@ function Fp(e) {
10516
10516
  return t;
10517
10517
  }
10518
10518
  var $p = up(ti, _p), ii = m.forwardRef(function(e, t) {
10519
- return m.createElement(gn, Ge({}, e, { ref: t, sideCar: $p }));
10519
+ return m.createElement(gn, qe({}, e, { ref: t, sideCar: $p }));
10520
10520
  });
10521
10521
  ii.classNames = gn.classNames;
10522
10522
  var bn = "Popover", [si] = Ca(bn, [
@@ -10563,7 +10563,7 @@ Bp.displayName = ci;
10563
10563
  var di = "PopoverTrigger", ui = m.forwardRef(
10564
10564
  (e, t) => {
10565
10565
  const { __scopePopover: n, ...r } = e, o = et(di, n), a = It(n), i = Je(t, o.triggerRef), s = /* @__PURE__ */ M(
10566
- Le.button,
10566
+ Ye.button,
10567
10567
  {
10568
10568
  type: "button",
10569
10569
  "aria-haspopup": "dialog",
@@ -10572,7 +10572,7 @@ var di = "PopoverTrigger", ui = m.forwardRef(
10572
10572
  "data-state": gi(o.open),
10573
10573
  ...r,
10574
10574
  ref: i,
10575
- onClick: Xe(e.onClick, o.onOpenToggle)
10575
+ onClick: Ue(e.onClick, o.onOpenToggle)
10576
10576
  }
10577
10577
  );
10578
10578
  return o.hasCustomAnchor ? s : /* @__PURE__ */ M(Za, { asChild: !0, ...a, children: s });
@@ -10606,10 +10606,10 @@ var Lp = /* @__PURE__ */ zh("PopoverContent.RemoveScroll"), jp = m.forwardRef(
10606
10606
  ref: o,
10607
10607
  trapFocus: n.open,
10608
10608
  disableOutsidePointerEvents: !0,
10609
- onCloseAutoFocus: Xe(e.onCloseAutoFocus, (i) => {
10609
+ onCloseAutoFocus: Ue(e.onCloseAutoFocus, (i) => {
10610
10610
  i.preventDefault(), a.current || n.triggerRef.current?.focus();
10611
10611
  }),
10612
- onPointerDownOutside: Xe(
10612
+ onPointerDownOutside: Ue(
10613
10613
  e.onPointerDownOutside,
10614
10614
  (i) => {
10615
10615
  const s = i.detail.originalEvent, l = s.button === 0 && s.ctrlKey === !0, c = s.button === 2 || l;
@@ -10617,7 +10617,7 @@ var Lp = /* @__PURE__ */ zh("PopoverContent.RemoveScroll"), jp = m.forwardRef(
10617
10617
  },
10618
10618
  { checkForDefaultPrevented: !1 }
10619
10619
  ),
10620
- onFocusOutside: Xe(
10620
+ onFocusOutside: Ue(
10621
10621
  e.onFocusOutside,
10622
10622
  (i) => i.preventDefault(),
10623
10623
  { checkForDefaultPrevented: !1 }
@@ -10706,12 +10706,12 @@ var Lp = /* @__PURE__ */ zh("PopoverContent.RemoveScroll"), jp = m.forwardRef(
10706
10706
  (e, t) => {
10707
10707
  const { __scopePopover: n, ...r } = e, o = et(pi, n);
10708
10708
  return /* @__PURE__ */ M(
10709
- Le.button,
10709
+ Ye.button,
10710
10710
  {
10711
10711
  type: "button",
10712
10712
  ...r,
10713
10713
  ref: t,
10714
- onClick: Xe(e.onClick, () => o.onOpenChange(!1))
10714
+ onClick: Ue(e.onClick, () => o.onOpenChange(!1))
10715
10715
  }
10716
10716
  );
10717
10717
  }
@@ -10806,72 +10806,77 @@ const Ut = (e, t) => !e || isNaN(e.getTime()) ? "" : e.toLocaleDateString(t || "
10806
10806
  "es-ES": tg
10807
10807
  };
10808
10808
  function bg({
10809
- mode: e = "single",
10810
- onChange: t,
10811
- locale: n = "pt-BR",
10812
- placeholder: r = "Selecione uma data",
10813
- maxDate: o,
10814
- minDate: a,
10815
- customBtnClassName: i = ""
10809
+ onChange: e,
10810
+ onBlur: t = void 0,
10811
+ value: n = void 0,
10812
+ mode: r = "single",
10813
+ locale: o = "pt-BR",
10814
+ placeholder: a = "Selecione uma data",
10815
+ maxDate: i,
10816
+ minDate: s,
10817
+ customBtnClassName: l = "",
10818
+ disabled: c = !1
10816
10819
  }) {
10817
- const [s, l] = $e(!1), [c, u] = $e(void 0), d = rg[n], f = ie(
10818
- (g) => {
10819
- typeof t == "function" && t(g), u(g), e === "single" && l(!1);
10820
+ const [u, d] = Xe(!1), f = rg[o], h = ie(
10821
+ (y) => {
10822
+ typeof e == "function" && e(y), r === "single" && d(!1);
10820
10823
  },
10821
- [e, t]
10822
- ), h = he(() => {
10823
- if (!a && !o) return;
10824
- const g = [];
10825
- return a && g.push({ before: a }), o && g.push({ after: o }), g;
10826
- }, [a, o]), b = {
10824
+ [r, e]
10825
+ ), b = he(() => {
10826
+ if (!s && !i) return;
10827
+ const y = [];
10828
+ return s && y.push({ before: s }), i && y.push({ after: i }), y;
10829
+ }, [s, i]), p = {
10827
10830
  captionLayout: "dropdown",
10828
- locale: d,
10831
+ locale: f,
10829
10832
  toYear: (/* @__PURE__ */ new Date()).getFullYear() + 5
10830
- }, p = he(() => {
10831
- if (!c) return r;
10832
- if (c instanceof Date)
10833
- return Ut(c, d.code);
10834
- if ("from" in c) {
10835
- const { from: g, to: y } = c;
10836
- return g && y ? `${Ut(g, d.code)} - ${Ut(y, d.code)}` : Ut(g || y, d.code);
10833
+ }, g = he(() => {
10834
+ if (!n) return a;
10835
+ if (n instanceof Date)
10836
+ return Ut(n, f.code);
10837
+ if ("from" in n) {
10838
+ const { from: y, to: C } = n;
10839
+ return y && C ? `${Ut(y, f.code)} - ${Ut(C, f.code)}` : Ut(y || C, f.code);
10837
10840
  }
10838
- return r;
10839
- }, [d.code, r, c]);
10840
- return /* @__PURE__ */ M("div", { className: "flex flex-col gap-3", children: /* @__PURE__ */ ue(Qp, { open: s, onOpenChange: l, children: [
10841
+ return a;
10842
+ }, [f.code, a, n]);
10843
+ return /* @__PURE__ */ M("div", { className: "flex flex-col gap-3", children: /* @__PURE__ */ ue(Qp, { open: u, onOpenChange: d, children: [
10841
10844
  /* @__PURE__ */ M(Jp, { asChild: !0, children: /* @__PURE__ */ ue(
10842
10845
  Qn,
10843
10846
  {
10847
+ disabled: c,
10848
+ onBlur: t,
10844
10849
  variant: "outline",
10845
10850
  id: "date",
10846
10851
  className: Y(
10847
10852
  "w-48 justify-between font-normal !py-[10px] !px-[20px] !text-xs",
10848
- i
10853
+ l
10849
10854
  ),
10850
10855
  children: [
10851
- p,
10856
+ g,
10852
10857
  /* @__PURE__ */ M(No, {})
10853
10858
  ]
10854
10859
  }
10855
10860
  ) }),
10856
- /* @__PURE__ */ M(eg, { className: "w-auto overflow-hidden p-0", align: "start", children: e === "single" ? /* @__PURE__ */ M(
10861
+ /* @__PURE__ */ M(eg, { className: "w-auto overflow-hidden p-0", align: "start", children: r === "single" ? /* @__PURE__ */ M(
10857
10862
  Vr,
10858
10863
  {
10859
10864
  mode: "single",
10860
- selected: c,
10861
- onSelect: f,
10862
- disabled: h,
10863
- defaultMonth: c,
10864
- ...b
10865
+ selected: n,
10866
+ onSelect: h,
10867
+ disabled: b,
10868
+ defaultMonth: n,
10869
+ ...p
10865
10870
  }
10866
10871
  ) : /* @__PURE__ */ M(
10867
10872
  Vr,
10868
10873
  {
10869
10874
  mode: "range",
10870
- selected: c,
10871
- onSelect: f,
10872
- disabled: h,
10873
- defaultMonth: c?.from,
10874
- ...b
10875
+ selected: n,
10876
+ onSelect: h,
10877
+ disabled: b,
10878
+ defaultMonth: n?.from,
10879
+ ...p
10875
10880
  }
10876
10881
  ) })
10877
10882
  ] }) });
@@ -10890,7 +10895,7 @@ const og = ae.button`
10890
10895
  }
10891
10896
  `;
10892
10897
  function yg({ testParam: e }) {
10893
- const [t, n] = $e(!1), [r, o] = $e(0);
10898
+ const [t, n] = Xe(!1), [r, o] = Xe(0);
10894
10899
  return sn(() => {
10895
10900
  const a = setInterval(() => {
10896
10901
  o((i) => i + 1);