@midas-ds/components 15.1.1 → 15.1.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.
Files changed (67) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/{CheckboxGroup-thvsvOqD.cjs → CheckboxGroup-BdRG71EM.cjs} +1 -1
  3. package/{CheckboxGroup-CtJJqk_q.js → CheckboxGroup-BkzQi1FB.js} +1 -1
  4. package/{ComboBox-lQ8Gfsyj.cjs → ComboBox-BISNYEw3.cjs} +1 -1
  5. package/{ComboBox-BgqJgBYV.js → ComboBox-t1RVXiiQ.js} +69 -69
  6. package/{DateField-B92Cqf9K.cjs → DateField-B9Yxknuy.cjs} +1 -1
  7. package/{DateField-BPRWrVcu.js → DateField-BUZ7i9eS.js} +1 -1
  8. package/{DateRangePicker-Cmt9NC35.js → DateRangePicker-ezrFzzrO.js} +1 -1
  9. package/{DateRangePicker-COSTCOt8.cjs → DateRangePicker-mlnh0C1A.cjs} +1 -1
  10. package/{Label-FfEnd4ai.js → Label-BqvFQoEF.js} +1 -1
  11. package/{Label-DpY2SZdQ.cjs → Label-C3ZSrB04.cjs} +1 -1
  12. package/{ListBox-Der0Te-R.js → ListBox-BP_jDOdE.js} +28 -27
  13. package/{ListBox-2wZ6XOeD.cjs → ListBox-Rke-lL0z.cjs} +1 -1
  14. package/{ListBoxLoadMoreItem-CTldtPr1.cjs → ListBoxLoadMoreItem-8dHDWs3w.cjs} +1 -1
  15. package/{ListBoxLoadMoreItem-CzGGgav4.js → ListBoxLoadMoreItem-BE5zpVVP.js} +1 -1
  16. package/ListBoxSection-7Xzi-bqq.cjs +1 -0
  17. package/ListBoxSection-AIWxdu1v.js +53 -0
  18. package/{ProgressBar-BZqAQTV3.cjs → ProgressBar-BrtaxoR8.cjs} +1 -1
  19. package/{ProgressBar-BpsvPCKk.js → ProgressBar-DhVQOs4P.js} +1 -1
  20. package/{Radio-LevFYAg4.js → Radio-DClH8mWz.js} +1 -1
  21. package/{Radio-B3FBTn4F.cjs → Radio-VFIiuJIR.cjs} +1 -1
  22. package/{SearchField-C-TFzcJF.js → SearchField-Cd6X2rY4.js} +1 -1
  23. package/{SearchField-BX7P7BgV.cjs → SearchField-Cz5Pb0XE.cjs} +1 -1
  24. package/{Select-DUthwkvg.cjs → Select-CHJefc5g.cjs} +1 -1
  25. package/{Select-Dbfur2xF.js → Select-D4xRL7l2.js} +3 -3
  26. package/{Select-DWLD64cL.cjs → Select-DL5Mvadi.cjs} +1 -1
  27. package/{Select-D55aInrV.js → Select-zDwMkzOI.js} +3 -3
  28. package/{TextArea-CJPBvogq.js → TextArea-CcKY4TI2.js} +2 -2
  29. package/{TextArea-Bjf8CBp0.cjs → TextArea-D68vGjYJ.cjs} +1 -1
  30. package/TextField.module-BndKUn-7.js +13 -0
  31. package/TextField.module-Du0bmSGZ.cjs +1 -0
  32. package/assets/ComboBox.css +1 -1
  33. package/assets/Label.css +1 -1
  34. package/assets/ListBox.css +1 -1
  35. package/assets/TextField.css +1 -1
  36. package/checkbox/index.cjs +1 -1
  37. package/checkbox/index.js +1 -1
  38. package/combobox/index.cjs +1 -1
  39. package/combobox/index.js +1 -1
  40. package/date-field/index.cjs +1 -1
  41. package/date-field/index.js +1 -1
  42. package/date-picker/index.cjs +1 -1
  43. package/date-picker/index.js +1 -1
  44. package/index.cjs +1 -1
  45. package/index.js +14 -14
  46. package/label/index.cjs +1 -1
  47. package/label/index.js +1 -1
  48. package/legacy-select/index.cjs +1 -1
  49. package/legacy-select/index.js +1 -1
  50. package/list-box/ListBoxItem.d.ts +1 -1
  51. package/list-box/index.cjs +1 -1
  52. package/list-box/index.js +3 -3
  53. package/package.json +1 -1
  54. package/progress-bar/index.cjs +1 -1
  55. package/progress-bar/index.js +1 -1
  56. package/radio/index.cjs +1 -1
  57. package/radio/index.js +1 -1
  58. package/search-field/index.cjs +1 -1
  59. package/search-field/index.js +1 -1
  60. package/select/index.cjs +1 -1
  61. package/select/index.js +1 -1
  62. package/textfield/index.cjs +1 -1
  63. package/textfield/index.js +1 -1
  64. package/ListBoxSection-C_PqDyMP.cjs +0 -1
  65. package/ListBoxSection-D9EUOerv.js +0 -51
  66. package/TextField.module-C03d0VY9.js +0 -13
  67. package/TextField.module-DmRrFHra.cjs +0 -1
@@ -9,11 +9,11 @@ import { $ as Fe, a as Tu } from "./Input-CQzv-D9g.js";
9
9
  import { f as Du, g as yu, c as Se, d as Fu } from "./ListBox-5GK4ZRj1.js";
10
10
  import { p as Su, h as Lu, i as gu, n as ku } from "./Dialog-D4Py85wi.js";
11
11
  import { $ as Le } from "./Text-bqP9NeVg.js";
12
- import { b as Ku, c as Pu } from "./Collection-BkxwF21i.js";
13
- import { $ as Iu } from "./filterDOMProps-wsa9OcNI.js";
14
- import { a as Ou, g as Ru } from "./OverlayArrow-CjGslX2c.js";
15
- import { $ as Vu } from "./useFilter-Dn4vTT3G.js";
16
- import { d as ju, $ as wu } from "./useFormValidation-By7G-T7y.js";
12
+ import { b as Ku, c as ju } from "./Collection-BkxwF21i.js";
13
+ import { $ as Pu } from "./filterDOMProps-wsa9OcNI.js";
14
+ import { a as Iu, g as Ou } from "./OverlayArrow-CjGslX2c.js";
15
+ import { $ as Ru } from "./useFilter-Dn4vTT3G.js";
16
+ import { d as Vu, $ as wu } from "./useFormValidation-By7G-T7y.js";
17
17
  import { e as Gu, f as ge, i as Mu } from "./SelectionManager-DoNLJm8c.js";
18
18
  import { $ as zu } from "./useSingleSelectListState-GSY0f4qW.js";
19
19
  import { b as Nu } from "./useListState-CP7AKhOX.js";
@@ -30,10 +30,10 @@ import { a as Yu } from "./ListKeyboardDelegate-BBmpJ-2O.js";
30
30
  import { $ as Qu } from "./useLocalizedStringFormatter-CSEh15AZ.js";
31
31
  import { $ as en } from "./useTextField-I3QVGvyX.js";
32
32
  import { c as Ce } from "./clsx-jbLnTBqA.js";
33
- import { a as un, L as nn } from "./Label-FfEnd4ai.js";
33
+ import { a as un, L as nn } from "./Label-BqvFQoEF.js";
34
34
  import { T as Ae } from "./Text-BBFWBNAH.js";
35
- import { L as on } from "./ListBox-Der0Te-R.js";
36
- import { a as tn, L as ln, b as cn } from "./ListBoxSection-D9EUOerv.js";
35
+ import { L as on } from "./ListBox-BP_jDOdE.js";
36
+ import { a as tn, L as ln, b as cn } from "./ListBoxSection-AIWxdu1v.js";
37
37
  import { C as pn } from "./chevron-down-DmZMdOiC.js";
38
38
  import { u as dn } from "./useLocalizedStringFormatter-aOhh7wdl.js";
39
39
  import './assets/ComboBox.css';var ke = {};
@@ -76,8 +76,8 @@ Ke = {
76
76
  listboxLabel: "Предложения",
77
77
  selectedAnnouncement: (e) => `${e.optionText}, избрани`
78
78
  };
79
- var Pe = {};
80
- Pe = {
79
+ var je = {};
80
+ je = {
81
81
  buttonLabel: "Zobrazit doporučení",
82
82
  countAnnouncement: (e, u) => `K dispozici ${u.plural(e.optionCount, {
83
83
  one: () => `je ${u.number(e.optionCount)} možnost`,
@@ -96,8 +96,8 @@ Pe = {
96
96
  listboxLabel: "Návrhy",
97
97
  selectedAnnouncement: (e) => `${e.optionText}, vybráno`
98
98
  };
99
- var Ie = {};
100
- Ie = {
99
+ var Pe = {};
100
+ Pe = {
101
101
  buttonLabel: "Vis forslag",
102
102
  countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
103
103
  one: () => `${u.number(e.optionCount)} mulighed tilgængelig`,
@@ -116,8 +116,8 @@ Ie = {
116
116
  listboxLabel: "Forslag",
117
117
  selectedAnnouncement: (e) => `${e.optionText}, valgt`
118
118
  };
119
- var Oe = {};
120
- Oe = {
119
+ var Ie = {};
120
+ Ie = {
121
121
  buttonLabel: "Empfehlungen anzeigen",
122
122
  countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
123
123
  one: () => `${u.number(e.optionCount)} Option`,
@@ -136,8 +136,8 @@ Oe = {
136
136
  listboxLabel: "Empfehlungen",
137
137
  selectedAnnouncement: (e) => `${e.optionText}, ausgewählt`
138
138
  };
139
- var Re = {};
140
- Re = {
139
+ var Oe = {};
140
+ Oe = {
141
141
  buttonLabel: "Προβολή προτάσεων",
142
142
  countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
143
143
  one: () => `${u.number(e.optionCount)} επιλογή`,
@@ -156,8 +156,8 @@ Re = {
156
156
  listboxLabel: "Προτάσεις",
157
157
  selectedAnnouncement: (e) => `${e.optionText}, επιλέχθηκε`
158
158
  };
159
- var Ve = {};
160
- Ve = {
159
+ var Re = {};
160
+ Re = {
161
161
  focusAnnouncement: (e, u) => `${u.select({
162
162
  true: () => `Entered group ${e.groupTitle}, with ${u.plural(e.groupCount, {
163
163
  one: () => `${u.number(e.groupCount)} option`,
@@ -176,8 +176,8 @@ Ve = {
176
176
  buttonLabel: "Show suggestions",
177
177
  listboxLabel: "Suggestions"
178
178
  };
179
- var je = {};
180
- je = {
179
+ var Ve = {};
180
+ Ve = {
181
181
  buttonLabel: "Mostrar sugerencias",
182
182
  countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
183
183
  one: () => `${u.number(e.optionCount)} opción`,
@@ -720,12 +720,12 @@ var su = {};
720
720
  su = {
721
721
  "ar-AE": ke,
722
722
  "bg-BG": Ke,
723
- "cs-CZ": Pe,
724
- "da-DK": Ie,
725
- "de-DE": Oe,
726
- "el-GR": Re,
727
- "en-US": Ve,
728
- "es-ES": je,
723
+ "cs-CZ": je,
724
+ "da-DK": Pe,
725
+ "de-DE": Ie,
726
+ "el-GR": Oe,
727
+ "en-US": Re,
728
+ "es-ES": Ve,
729
729
  "et-EE": we,
730
730
  "fi-FI": Ge,
731
731
  "fr-FR": Me,
@@ -777,7 +777,7 @@ function sn(e, u) {
777
777
  f,
778
778
  S,
779
779
  d
780
- ]), { collectionProps: R } = Gu({
780
+ ]), { collectionProps: O } = Gu({
781
781
  selectionManager: u.selectionManager,
782
782
  keyboardDelegate: c,
783
783
  disallowTypeAhead: !0,
@@ -824,17 +824,17 @@ function sn(e, u) {
824
824
  r || G || (e.onBlur && e.onBlur(n), u.setFocused(!1));
825
825
  }, N = (n) => {
826
826
  u.isFocused || (e.onFocus && e.onFocus(n), u.setFocused(!0));
827
- }, { isInvalid: ee, validationErrors: P, validationDetails: k } = u.displayValidation, { labelProps: v, inputProps: X, descriptionProps: ue, errorMessageProps: U } = en({
827
+ }, { isInvalid: ee, validationErrors: j, validationDetails: k } = u.displayValidation, { labelProps: v, inputProps: X, descriptionProps: ue, errorMessageProps: U } = en({
828
828
  ...e,
829
829
  onChange: u.setInputValue,
830
- onKeyDown: F ? e.onKeyDown : qu(u.isOpen && R.onKeyDown, Q, e.onKeyDown),
830
+ onKeyDown: F ? e.onKeyDown : qu(u.isOpen && O.onKeyDown, Q, e.onKeyDown),
831
831
  onBlur: a,
832
832
  value: u.inputValue,
833
833
  defaultValue: u.defaultInputValue,
834
834
  onFocus: N,
835
835
  autoComplete: "off",
836
836
  validate: void 0,
837
- [ju]: u
837
+ [Vu]: u
838
838
  }, t), ne = (n) => {
839
839
  if (n.pointerType === "touch") {
840
840
  var o;
@@ -845,11 +845,11 @@ function sn(e, u) {
845
845
  var o;
846
846
  (o = t.current) === null || o === void 0 || o.focus(), u.toggle(n.pointerType === "keyboard" || n.pointerType === "virtual" ? "first" : null, "manual");
847
847
  }
848
- }, I = ve({
848
+ }, P = ve({
849
849
  id: T.id,
850
850
  "aria-label": E.format("buttonLabel"),
851
851
  "aria-labelledby": e["aria-labelledby"] || v.id
852
- }), V = ve({
852
+ }), R = ve({
853
853
  id: D.id,
854
854
  "aria-label": E.format("listboxLabel"),
855
855
  "aria-labelledby": e["aria-labelledby"] || v.id
@@ -869,10 +869,10 @@ function sn(e, u) {
869
869
  var q;
870
870
  let K = (q = C == null ? void 0 : C.parentKey) !== null && q !== void 0 ? q : null;
871
871
  var W;
872
- let O = (W = u.selectionManager.focusedKey) !== null && W !== void 0 ? W : null, Z = y(K), j = y(O);
872
+ let I = (W = u.selectionManager.focusedKey) !== null && W !== void 0 ? W : null, Z = y(K), V = y(I);
873
873
  ce(() => {
874
- if (be() && C != null && O != null && O !== j.current) {
875
- let o = u.selectionManager.isSelected(O), r = K != null ? u.collection.getItem(K) : null, G = (r == null ? void 0 : r["aria-label"]) || (typeof (r == null ? void 0 : r.rendered) == "string" ? r.rendered : "") || "";
874
+ if (be() && C != null && I != null && I !== V.current) {
875
+ let o = u.selectionManager.isSelected(I), r = K != null ? u.collection.getItem(K) : null, G = (r == null ? void 0 : r["aria-label"]) || (typeof (r == null ? void 0 : r.rendered) == "string" ? r.rendered : "") || "";
876
876
  var n;
877
877
  let H = E.format("focusAnnouncement", {
878
878
  isGroupChange: (n = r && K !== Z.current) !== null && n !== void 0 ? n : !1,
@@ -885,7 +885,7 @@ function sn(e, u) {
885
885
  });
886
886
  ae(H);
887
887
  }
888
- Z.current = K, j.current = O;
888
+ Z.current = K, V.current = I;
889
889
  });
890
890
  let w = Ju(u.collection), te = y(w), le = y(u.isOpen);
891
891
  ce(() => {
@@ -926,7 +926,7 @@ function sn(e, u) {
926
926
  labelProps: v,
927
927
  buttonProps: {
928
928
  ...T,
929
- ...I,
929
+ ...P,
930
930
  excludeFromTabOrder: !0,
931
931
  preventFocusOnPress: !0,
932
932
  onPress: ne,
@@ -946,7 +946,7 @@ function sn(e, u) {
946
946
  // This disable's the macOS Safari spell check auto corrections.
947
947
  spellCheck: "false"
948
948
  }),
949
- listBoxProps: fe(D, V, {
949
+ listBoxProps: fe(D, R, {
950
950
  autoFocus: u.focusStrategy || !0,
951
951
  shouldUseVirtualFocus: !0,
952
952
  shouldSelectOnPressUp: !0,
@@ -957,7 +957,7 @@ function sn(e, u) {
957
957
  descriptionProps: ue,
958
958
  errorMessageProps: U,
959
959
  isInvalid: ee,
960
- validationErrors: P,
960
+ validationErrors: j,
961
961
  validationDetails: k
962
962
  };
963
963
  }
@@ -967,11 +967,11 @@ function $n(e) {
967
967
  e.onSelectionChange && e.onSelectionChange(l), l === c && (W(), C());
968
968
  };
969
969
  var D;
970
- let { collection: f, selectionManager: S, selectedKey: c, setSelectedKey: R, selectedItem: Y, disabledKeys: Q } = zu({
970
+ let { collection: f, selectionManager: S, selectedKey: c, setSelectedKey: O, selectedItem: Y, disabledKeys: Q } = zu({
971
971
  ...e,
972
972
  onSelectionChange: T,
973
973
  items: (D = e.items) !== null && D !== void 0 ? D : e.defaultItems
974
- }), [a, N] = Uu(e.inputValue, Be(e.defaultInputValue, c, f) || "", e.onInputChange), [ee] = z(c), [P] = z(a), k = f, v = J(() => (
974
+ }), [a, N] = Uu(e.inputValue, Be(e.defaultInputValue, c, f) || "", e.onInputChange), [ee] = z(c), [j] = z(a), k = f, v = J(() => (
975
975
  // No default filter if items are controlled.
976
976
  e.items != null || !i ? f : an(f, a, i)
977
977
  ), [
@@ -979,17 +979,17 @@ function $n(e) {
979
979
  a,
980
980
  i,
981
981
  e.items
982
- ]), [X, ue] = z(v), U = y("focus"), s = Ou({
982
+ ]), [X, ue] = z(v), U = y("focus"), s = Iu({
983
983
  ...e,
984
984
  onOpenChange: (l) => {
985
985
  e.onOpenChange && e.onOpenChange(l, l ? U.current : void 0), S.setFocused(l), l || S.setFocusedKey(null);
986
986
  },
987
987
  isOpen: void 0,
988
988
  defaultOpen: void 0
989
- }), I = (l = null, $) => {
989
+ }), P = (l = null, $) => {
990
990
  let m = $ === "manual" || $ === "focus" && p === "focus";
991
991
  (t || v.size > 0 || m && k.size > 0 || e.items) && (m && !s.isOpen && e.items === void 0 && x(!0), U.current = $, E(l), s.open());
992
- }, V = (l = null, $) => {
992
+ }, R = (l = null, $) => {
993
993
  let m = $ === "manual" || $ === "focus" && p === "focus";
994
994
  !(t || v.size > 0 || m && k.size > 0 || e.items) && !s.isOpen || (m && !s.isOpen && e.items === void 0 && x(!0), s.isOpen || (U.current = $), oe(l));
995
995
  }, L = de(() => {
@@ -1013,16 +1013,16 @@ function $n(e) {
1013
1013
  let m = c != null && ($ = (l = f.getItem(c)) === null || l === void 0 ? void 0 : l.textValue) !== null && $ !== void 0 ? $ : "";
1014
1014
  K(m), N(m);
1015
1015
  };
1016
- var O, Z;
1017
- let j = y((Z = (O = e.selectedKey) !== null && O !== void 0 ? O : e.defaultSelectedKey) !== null && Z !== void 0 ? Z : null);
1016
+ var I, Z;
1017
+ let V = y((Z = (I = e.selectedKey) !== null && I !== void 0 ? I : e.defaultSelectedKey) !== null && Z !== void 0 ? Z : null);
1018
1018
  var w;
1019
1019
  let te = y(c != null && (w = (u = f.getItem(c)) === null || u === void 0 ? void 0 : u.textValue) !== null && w !== void 0 ? w : "");
1020
1020
  ce(() => {
1021
1021
  var l;
1022
- F && (v.size > 0 || t) && !s.isOpen && a !== q && p !== "manual" && I(null, "input"), !b && !t && s.isOpen && v.size === 0 && C(), c != null && c !== j.current && C(), a !== q && (S.setFocusedKey(null), x(!1), a === "" && (e.inputValue === void 0 || e.selectedKey === void 0) && R(null)), c !== j.current && (e.inputValue === void 0 || e.selectedKey === void 0) ? W() : q !== a && K(a);
1022
+ F && (v.size > 0 || t) && !s.isOpen && a !== q && p !== "manual" && P(null, "input"), !b && !t && s.isOpen && v.size === 0 && C(), c != null && c !== V.current && C(), a !== q && (S.setFocusedKey(null), x(!1), a === "" && (e.inputValue === void 0 || e.selectedKey === void 0) && O(null)), c !== V.current && (e.inputValue === void 0 || e.selectedKey === void 0) ? W() : q !== a && K(a);
1023
1023
  var $;
1024
1024
  let m = c != null && ($ = (l = f.getItem(c)) === null || l === void 0 ? void 0 : l.textValue) !== null && $ !== void 0 ? $ : "";
1025
- !F && c != null && e.inputValue === void 0 && c === j.current && te.current !== m && (K(m), N(m)), j.current = c, te.current = m;
1025
+ !F && c != null && e.inputValue === void 0 && c === V.current && te.current !== m && (K(m), N(m)), V.current = c, te.current = m;
1026
1026
  });
1027
1027
  let le = wu({
1028
1028
  ...e,
@@ -1036,7 +1036,7 @@ function $n(e) {
1036
1036
  }), pe = () => {
1037
1037
  d && c == null ? n() : o();
1038
1038
  }, n = () => {
1039
- j.current = null, R(null), C();
1039
+ V.current = null, O(null), C();
1040
1040
  }, o = () => {
1041
1041
  if (e.selectedKey !== void 0 && e.inputValue !== void 0) {
1042
1042
  var l, $;
@@ -1056,9 +1056,9 @@ function $n(e) {
1056
1056
  o();
1057
1057
  };
1058
1058
  let G = () => {
1059
- s.isOpen && S.focusedKey != null ? c === S.focusedKey ? o() : R(S.focusedKey) : r();
1059
+ s.isOpen && S.focusedKey != null ? c === S.focusedKey ? o() : O(S.focusedKey) : r();
1060
1060
  }, H = y(a), re = (l) => {
1061
- l ? (H.current = a, p === "focus" && !e.isReadOnly && I(null, "focus")) : (B && r(), a !== H.current && le.commitValidation()), g(l);
1061
+ l ? (H.current = a, p === "focus" && !e.isReadOnly && P(null, "focus")) : (B && r(), a !== H.current && le.commitValidation()), g(l);
1062
1062
  }, ie = J(() => s.isOpen ? b ? k : v : X, [
1063
1063
  s.isOpen,
1064
1064
  k,
@@ -1073,20 +1073,20 @@ function $n(e) {
1073
1073
  ...le,
1074
1074
  ...s,
1075
1075
  focusStrategy: h,
1076
- toggle: V,
1077
- open: I,
1076
+ toggle: R,
1077
+ open: P,
1078
1078
  close: r,
1079
1079
  selectionManager: S,
1080
1080
  selectedKey: c,
1081
1081
  defaultSelectedKey: me,
1082
- setSelectedKey: R,
1082
+ setSelectedKey: O,
1083
1083
  disabledKeys: Q,
1084
1084
  isFocused: F,
1085
1085
  setFocused: re,
1086
1086
  selectedItem: Y,
1087
1087
  collection: ie,
1088
1088
  inputValue: a,
1089
- defaultInputValue: ($e = Be(e.defaultInputValue, me, f)) !== null && $e !== void 0 ? $e : P,
1089
+ defaultInputValue: ($e = Be(e.defaultInputValue, me, f)) !== null && $e !== void 0 ? $e : j,
1090
1090
  setInputValue: N,
1091
1091
  commit: G,
1092
1092
  revert: pe
@@ -1162,7 +1162,7 @@ function hn({ props: e, collection: u, comboBoxRef: i }) {
1162
1162
  d && (t = "text");
1163
1163
  let { validationBehavior: B } = xu(Eu) || {};
1164
1164
  var b, x;
1165
- let F = (x = (b = e.validationBehavior) !== null && b !== void 0 ? b : B) !== null && x !== void 0 ? x : "native", { contains: g } = Vu({
1165
+ let F = (x = (b = e.validationBehavior) !== null && b !== void 0 ? b : B) !== null && x !== void 0 ? x : "native", { contains: g } = Ru({
1166
1166
  sensitivity: "base"
1167
1167
  }), h = $n({
1168
1168
  defaultFilter: e.defaultFilter || g,
@@ -1172,7 +1172,7 @@ function hn({ props: e, collection: u, comboBoxRef: i }) {
1172
1172
  children: void 0,
1173
1173
  collection: u,
1174
1174
  validationBehavior: F
1175
- }), E = y(null), T = y(null), D = y(null), f = y(null), [S, c] = hu(!e["aria-label"] && !e["aria-labelledby"]), { buttonProps: R, inputProps: Y, listBoxProps: Q, labelProps: a, descriptionProps: N, errorMessageProps: ee, ...P } = sn({
1175
+ }), E = y(null), T = y(null), D = y(null), f = y(null), [S, c] = hu(!e["aria-label"] && !e["aria-labelledby"]), { buttonProps: O, inputProps: Y, listBoxProps: Q, labelProps: a, descriptionProps: N, errorMessageProps: ee, ...j } = sn({
1176
1176
  ...fu(e),
1177
1177
  label: c,
1178
1178
  inputRef: T,
@@ -1183,8 +1183,8 @@ function hn({ props: e, collection: u, comboBoxRef: i }) {
1183
1183
  validationBehavior: F
1184
1184
  }, h), [k, v] = z(null), X = de(() => {
1185
1185
  if (T.current) {
1186
- var I;
1187
- let V = (I = E.current) === null || I === void 0 ? void 0 : I.getBoundingClientRect(), L = T.current.getBoundingClientRect(), oe = V ? Math.min(V.left, L.left) : L.left, C = V ? Math.max(V.right, L.right) : L.right;
1186
+ var P;
1187
+ let R = (P = E.current) === null || P === void 0 ? void 0 : P.getBoundingClientRect(), L = T.current.getBoundingClientRect(), oe = R ? Math.min(R.left, L.left) : L.left, C = R ? Math.max(R.right, L.right) : L.right;
1188
1188
  v(C - oe + "px");
1189
1189
  }
1190
1190
  }, [
@@ -1192,25 +1192,25 @@ function hn({ props: e, collection: u, comboBoxRef: i }) {
1192
1192
  T,
1193
1193
  v
1194
1194
  ]);
1195
- Ru({
1195
+ Ou({
1196
1196
  ref: T,
1197
1197
  onResize: X
1198
1198
  });
1199
1199
  let ue = J(() => ({
1200
1200
  isOpen: h.isOpen,
1201
1201
  isDisabled: e.isDisabled || !1,
1202
- isInvalid: P.isInvalid || !1,
1202
+ isInvalid: j.isInvalid || !1,
1203
1203
  isRequired: e.isRequired || !1
1204
1204
  }), [
1205
1205
  h.isOpen,
1206
1206
  e.isDisabled,
1207
- P.isInvalid,
1207
+ j.isInvalid,
1208
1208
  e.isRequired
1209
1209
  ]), U = vu({
1210
1210
  ...e,
1211
1211
  values: ue,
1212
1212
  defaultClassName: "react-aria-ComboBox"
1213
- }), ne = Iu(e, {
1213
+ }), ne = Pu(e, {
1214
1214
  global: !0
1215
1215
  });
1216
1216
  delete ne.id;
@@ -1231,7 +1231,7 @@ function hn({ props: e, collection: u, comboBoxRef: i }) {
1231
1231
  [
1232
1232
  De,
1233
1233
  {
1234
- ...R,
1234
+ ...O,
1235
1235
  ref: E,
1236
1236
  isPressed: h.isOpen
1237
1237
  }
@@ -1285,13 +1285,13 @@ function hn({ props: e, collection: u, comboBoxRef: i }) {
1285
1285
  [
1286
1286
  ye,
1287
1287
  {
1288
- isInvalid: P.isInvalid,
1288
+ isInvalid: j.isInvalid,
1289
1289
  isDisabled: e.isDisabled || !1
1290
1290
  }
1291
1291
  ],
1292
1292
  [
1293
1293
  Bu,
1294
- P
1294
+ j
1295
1295
  ]
1296
1296
  ]
1297
1297
  }, /* @__PURE__ */ _.createElement("div", {
@@ -1302,7 +1302,7 @@ function hn({ props: e, collection: u, comboBoxRef: i }) {
1302
1302
  "data-focused": h.isFocused || void 0,
1303
1303
  "data-open": h.isOpen || void 0,
1304
1304
  "data-disabled": e.isDisabled || void 0,
1305
- "data-invalid": P.isInvalid || void 0,
1305
+ "data-invalid": j.isInvalid || void 0,
1306
1306
  "data-required": e.isRequired || void 0
1307
1307
  }), p && t === "key" && /* @__PURE__ */ _.createElement("input", {
1308
1308
  type: "hidden",
@@ -1311,7 +1311,7 @@ function hn({ props: e, collection: u, comboBoxRef: i }) {
1311
1311
  value: (s = h.selectedKey) !== null && s !== void 0 ? s : ""
1312
1312
  }));
1313
1313
  }
1314
- const fn = "_combobox_j6di5_1", vn = "_inputField_j6di5_6", An = "_medium_j6di5_28", Bn = "_wrap_j6di5_68", En = "_button_j6di5_74", Tn = "_icon_j6di5_106", Dn = "_emptyState_j6di5_112", M = {
1314
+ const fn = "_combobox_jpjjo_1", vn = "_inputField_jpjjo_6", An = "_medium_jpjjo_28", Bn = "_wrap_jpjjo_69", En = "_button_jpjjo_75", Tn = "_icon_jpjjo_107", Dn = "_emptyState_jpjjo_113", M = {
1315
1315
  combobox: fn,
1316
1316
  inputField: vn,
1317
1317
  medium: An,
@@ -1406,7 +1406,7 @@ function Ln(e) {
1406
1406
  );
1407
1407
  }
1408
1408
  function mo(e) {
1409
- return /* @__PURE__ */ A(cn, { ...e, children: /* @__PURE__ */ A(Pu, { items: e.children, children: (u) => /* @__PURE__ */ A(Ln, { children: u.name }, u.id) }) });
1409
+ return /* @__PURE__ */ A(cn, { ...e, children: /* @__PURE__ */ A(ju, { items: e.children, children: (u) => /* @__PURE__ */ A(Ln, { children: u.name }, u.id) }) });
1410
1410
  }
1411
1411
  export {
1412
1412
  Co as C,
@@ -1 +1 @@
1
- "use strict";require('./assets/DateField.css');const e=require("react/jsx-runtime"),i=require("./DateInputDivider-CCrXjsUB.cjs"),c=require("./clsx-DKOfLqne.cjs"),n=require("./FieldError-JWxR_EqN.cjs"),a=require("./Label-DpY2SZdQ.cjs"),j=require("./Text-D5OSv6Uv.cjs"),_="_dateField_1f5eg_1",h="_inputField_1f5eg_8",f="_medium_1f5eg_23",t={dateField:_,inputField:h,medium:f},q=({className:u,description:d,errorMessage:l,errorPosition:s="top",isDisabled:o,label:r,size:x="large",popover:m,...F})=>e.jsxs(i.$40825cdb76e74f70$export$d9781c7894a82487,{...F,className:c.clsx(t.dateField,u),children:[e.jsx(a.LabelWrapper,{popover:m,children:r&&e.jsx(a.Label,{children:r})}),d&&e.jsx(j.Text,{slot:"description",children:d}),s==="top"&&e.jsx(n.FieldError,{children:l}),e.jsx("div",{className:c.clsx(t.inputField,{[t.medium]:x==="medium"}),"data-disabled":o||void 0,"data-testid":"date-field_input-field",children:e.jsx(i.DateInput,{children:p=>e.jsx(i.DateSegment,{segment:p})})}),s==="bottom"&&e.jsx(n.FieldError,{children:l})]});exports.DateField=q;
1
+ "use strict";require('./assets/DateField.css');const e=require("react/jsx-runtime"),i=require("./DateInputDivider-CCrXjsUB.cjs"),c=require("./clsx-DKOfLqne.cjs"),n=require("./FieldError-JWxR_EqN.cjs"),a=require("./Label-C3ZSrB04.cjs"),j=require("./Text-D5OSv6Uv.cjs"),_="_dateField_1f5eg_1",h="_inputField_1f5eg_8",f="_medium_1f5eg_23",t={dateField:_,inputField:h,medium:f},q=({className:u,description:d,errorMessage:l,errorPosition:s="top",isDisabled:o,label:r,size:x="large",popover:m,...F})=>e.jsxs(i.$40825cdb76e74f70$export$d9781c7894a82487,{...F,className:c.clsx(t.dateField,u),children:[e.jsx(a.LabelWrapper,{popover:m,children:r&&e.jsx(a.Label,{children:r})}),d&&e.jsx(j.Text,{slot:"description",children:d}),s==="top"&&e.jsx(n.FieldError,{children:l}),e.jsx("div",{className:c.clsx(t.inputField,{[t.medium]:x==="medium"}),"data-disabled":o||void 0,"data-testid":"date-field_input-field",children:e.jsx(i.DateInput,{children:p=>e.jsx(i.DateSegment,{segment:p})})}),s==="bottom"&&e.jsx(n.FieldError,{children:l})]});exports.DateField=q;
@@ -2,7 +2,7 @@ import { jsxs as u, jsx as e } from "react/jsx-runtime";
2
2
  import { $ as F, a as _, D as h } from "./DateInputDivider-DOHpVaNE.js";
3
3
  import { c as m } from "./clsx-jbLnTBqA.js";
4
4
  import { F as s } from "./FieldError-CIxlNQCM.js";
5
- import { a as x, L as D } from "./Label-FfEnd4ai.js";
5
+ import { a as x, L as D } from "./Label-BqvFQoEF.js";
6
6
  import { T as b } from "./Text-BBFWBNAH.js";
7
7
  import './assets/DateField.css';const g = "_dateField_1f5eg_1", $ = "_inputField_1f5eg_8", L = "_medium_1f5eg_23", d = {
8
8
  dateField: g,
@@ -3,7 +3,7 @@ import { c as ee } from "./clsx-OuTLNxxd.js";
3
3
  import { $ as na, a as ra, C as oa, R as sa } from "./RangeCalendar-DT_KVd80.js";
4
4
  import { c as Oe, d as Re, e as Fe, f as ua, g as Ce, h as ca, i as X, j as p, k as fa, l as Te, m as ba, a as se, D as ue, b as va } from "./DateInputDivider-DOHpVaNE.js";
5
5
  import { $ as Ie, F as ae } from "./FieldError-CIxlNQCM.js";
6
- import { a as Be, L as Ze } from "./Label-FfEnd4ai.js";
6
+ import { a as Be, L as Ze } from "./Label-BqvFQoEF.js";
7
7
  import { T as ke } from "./Text-BBFWBNAH.js";
8
8
  import { e as ve, c as me, $ as ma } from "./Button-BbfVT9Yl.js";
9
9
  import { $ as Me, c as _e, d as we, e as Ee, a as Se, f as We } from "./utils-D2iKpxcZ.js";
@@ -1,4 +1,4 @@
1
- "use strict";require('./assets/DateRangePicker.css');const c=require("react/jsx-runtime"),ee=require("./clsx-C11secjj.cjs"),le=require("./RangeCalendar-CH0CyBui.cjs"),s=require("./DateInputDivider-CCrXjsUB.cjs"),Y=require("./FieldError-JWxR_EqN.cjs"),ae=require("./Label-DpY2SZdQ.cjs"),ve=require("./Text-D5OSv6Uv.cjs"),H=require("./Button-1sEX8jKn.cjs"),j=require("./utils-CtICjCYt.cjs"),K=require("./Dialog-DycTLpdr.cjs"),me=require("./Form-BuOomA4T.cjs"),te=require("./Group-B0Wj9pI8.cjs"),ce=require("./Text-0wXj3J8E.cjs"),N=require("./mergeProps-Du5A8xi8.cjs"),ie=require("./filterDOMProps-RRlKPKX0.cjs"),de=require("./OverlayArrow-bcrb_syE.cjs"),o=require("react"),W=require("./useDateFormatter-BrrFo4nY.cjs"),L=require("./useFormValidation-DV2Ioblb.cjs"),xe=require("./useControlledState-D0L6S_5r.cjs"),he=require("./SelectionIndicator-ClG0GpJu.cjs"),ge=require("./useDescription-6BYtQxe6.cjs"),ye=require("./useFocusWithin-GBjoTL5o.cjs"),Ve=require("./useField-DvszkIMx.cjs"),Pe=require("./context-UOrD6Zxk.cjs"),De=require("./useLocalizedStringFormatter-CHAo1AyN.cjs"),Re=require("./useFocusRing-C-XVcAE5.cjs"),Te=require("./createLucideIcon-CTVXwe6i.cjs");function Ie(e){return e&&e.__esModule?e.default:e}function Me(e,a,i){let f=N.$bdb11010cef70236$export$f680877a34711e37(),b=N.$bdb11010cef70236$export$f680877a34711e37(),x=N.$bdb11010cef70236$export$f680877a34711e37(),u=De.$fca6afa0e843324b$export$f12b703ca79dfbb1(Ie(s.$dfb4eba373ed9493$exports),"@react-aria/datepicker"),{isInvalid:t,validationErrors:$,validationDetails:l}=a.displayValidation,{labelProps:O,fieldProps:C,descriptionProps:y,errorMessageProps:M}=Ve.$2baaea4c71418dea$export$294aa081a6c6f55d({...e,labelElementType:"span",isInvalid:t,errorMessage:e.errorMessage||$}),p=s.$3dfb0f96be0d6a08$export$4a931266a3838b86(a,i),k=C["aria-labelledby"]||C.id,{locale:T}=Pe.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),m=a.formatValue(T,{month:"long"}),B=m?u.format("selectedDateDescription",{date:m}):"",d=ge.$ef06256079686ba0$export$f8aeda7b10753fa1(B),I=[d["aria-describedby"],C["aria-describedby"]].filter(Boolean).join(" ")||void 0,_=ie.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e),Z=o.useMemo(()=>he.$9bf71ea28793e738$export$c5251b9e124bf29(i),[i]),D=o.useRef(!1),{focusWithinProps:S}=ye.$9ab94262bd0047c7$export$420e68273165f4ec({...e,isDisabled:a.isOpen,onBlurWithin:h=>{let V=document.getElementById(b);if(!(V!=null&&V.contains(h.relatedTarget))){var R,w;D.current=!1,(R=e.onBlur)===null||R===void 0||R.call(e,h),(w=e.onFocusChange)===null||w===void 0||w.call(e,!1)}},onFocusWithin:h=>{if(!D.current){var V,R;D.current=!0,(V=e.onFocus)===null||V===void 0||V.call(e,h),(R=e.onFocusChange)===null||R===void 0||R.call(e,!0)}}});return{groupProps:N.$3ef42575df84b30b$export$9d1611c77c2fe928(_,p,C,d,S,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":k,"aria-describedby":I,onKeyDown(h){a.isOpen||e.onKeyDown&&e.onKeyDown(h)},onKeyUp(h){a.isOpen||e.onKeyUp&&e.onKeyUp(h)}}),labelProps:{...O,onClick:()=>{Z.focusFirst()}},fieldProps:{...C,id:x,[s.$16f0b7bb276bc17e$export$300019f83c56d282]:"presentation","aria-describedby":I,value:a.value,defaultValue:a.defaultValue,onChange:a.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[L.$e5be200c675c3b3a$export$a763b9476acd3eb]:a,autoFocus:e.autoFocus,name:e.name,form:e.form},descriptionProps:y,errorMessageProps:M,buttonProps:{...d,id:f,"aria-haspopup":"dialog","aria-label":u.format("calendar"),"aria-labelledby":`${f} ${k}`,"aria-describedby":I,"aria-expanded":a.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>a.setOpen(!0)},dialogProps:{id:b,"aria-labelledby":`${f} ${k}`},calendarProps:{autoFocus:!0,value:a.dateValue,onChange:a.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:a.dateValue?void 0:e.placeholderValue,isInvalid:a.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(a.displayValidation):e.errorMessage||a.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:t,validationErrors:$,validationDetails:l}}function ke(e){return e&&e.__esModule?e.default:e}function Be(e,a,i){var f,b,x,u,t;let $=De.$fca6afa0e843324b$export$f12b703ca79dfbb1(ke(s.$dfb4eba373ed9493$exports),"@react-aria/datepicker"),{isInvalid:l,validationErrors:O,validationDetails:C}=a.displayValidation,{labelProps:y,fieldProps:M,descriptionProps:p,errorMessageProps:k}=Ve.$2baaea4c71418dea$export$294aa081a6c6f55d({...e,labelElementType:"span",isInvalid:l,errorMessage:e.errorMessage||O}),T=M["aria-labelledby"]||M.id,{locale:m}=Pe.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),B=a.formatValue(m,{month:"long"}),d=B?$.format("selectedRangeDescription",{startDate:B.start,endDate:B.end}):"",I=ge.$ef06256079686ba0$export$f8aeda7b10753fa1(d),_={"aria-label":$.format("startDate"),"aria-labelledby":T},Z={"aria-label":$.format("endDate"),"aria-labelledby":T},D=N.$bdb11010cef70236$export$f680877a34711e37(),S=N.$bdb11010cef70236$export$f680877a34711e37(),h=s.$3dfb0f96be0d6a08$export$4a931266a3838b86(a,i),V=[I["aria-describedby"],M["aria-describedby"]].filter(Boolean).join(" ")||void 0,R=o.useMemo(()=>he.$9bf71ea28793e738$export$c5251b9e124bf29(i,{accept:r=>r.id!==D}),[i,D]),w={[s.$16f0b7bb276bc17e$export$7b3062cd49e80452]:R,[s.$16f0b7bb276bc17e$export$300019f83c56d282]:"presentation","aria-describedby":V,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},P=ie.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e),F=o.useRef(!1),{focusWithinProps:U}=ye.$9ab94262bd0047c7$export$420e68273165f4ec({...e,isDisabled:a.isOpen,onBlurWithin:r=>{let g=document.getElementById(S);if(!(g!=null&&g.contains(r.relatedTarget))){var q,Q;F.current=!1,(q=e.onBlur)===null||q===void 0||q.call(e,r),(Q=e.onFocusChange)===null||Q===void 0||Q.call(e,!1)}},onFocusWithin:r=>{if(!F.current){var g,q;F.current=!0,(g=e.onFocus)===null||g===void 0||g.call(e,r),(q=e.onFocusChange)===null||q===void 0||q.call(e,!0)}}}),z=o.useRef(L.$e5be200c675c3b3a$export$dad6ae84456c676a),J=o.useRef(L.$e5be200c675c3b3a$export$dad6ae84456c676a);var n,v;return{groupProps:N.$3ef42575df84b30b$export$9d1611c77c2fe928(P,h,M,I,U,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":V,onKeyDown(r){a.isOpen||e.onKeyDown&&e.onKeyDown(r)},onKeyUp(r){a.isOpen||e.onKeyUp&&e.onKeyUp(r)}}),labelProps:{...y,onClick:()=>{R.focusFirst()}},buttonProps:{...I,id:D,"aria-haspopup":"dialog","aria-label":$.format("calendar"),"aria-labelledby":`${D} ${T}`,"aria-describedby":V,"aria-expanded":a.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>a.setOpen(!0)},dialogProps:{id:S,"aria-labelledby":`${D} ${T}`},startFieldProps:{..._,...w,value:(n=(f=a.value)===null||f===void 0?void 0:f.start)!==null&&n!==void 0?n:null,defaultValue:(b=a.defaultValue)===null||b===void 0?void 0:b.start,onChange:r=>a.setDateTime("start",r),autoFocus:e.autoFocus,name:e.startName,form:e.form,[L.$e5be200c675c3b3a$export$a763b9476acd3eb]:{realtimeValidation:a.realtimeValidation,displayValidation:a.displayValidation,updateValidation(r){z.current=r,a.updateValidation(L.$e5be200c675c3b3a$export$75ee7c75d68f5b0e(r,J.current))},resetValidation:a.resetValidation,commitValidation:a.commitValidation}},endFieldProps:{...Z,...w,value:(v=(x=a.value)===null||x===void 0?void 0:x.end)!==null&&v!==void 0?v:null,defaultValue:(u=a.defaultValue)===null||u===void 0?void 0:u.end,onChange:r=>a.setDateTime("end",r),name:e.endName,form:e.form,[L.$e5be200c675c3b3a$export$a763b9476acd3eb]:{realtimeValidation:a.realtimeValidation,displayValidation:a.displayValidation,updateValidation(r){J.current=r,a.updateValidation(L.$e5be200c675c3b3a$export$75ee7c75d68f5b0e(z.current,r))},resetValidation:a.resetValidation,commitValidation:a.commitValidation}},descriptionProps:p,errorMessageProps:k,calendarProps:{autoFocus:!0,value:!((t=a.dateRange)===null||t===void 0)&&t.start&&a.dateRange.end?a.dateRange:null,onChange:a.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:a.dateRange?void 0:e.placeholderValue,isInvalid:a.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(a.displayValidation):e.errorMessage||a.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:l,validationErrors:O,validationDetails:C}}function Ze(e){let a=de.$fc909762b330b746$export$61c6a8c84e605fb6(e),[i,f]=xe.$458b0a5536c1a7cf$export$40bfa8c7b0832715(e.value,e.defaultValue||null,e.onChange),[b]=o.useState(i),x=i||e.placeholderValue||null,[u,t]=s.$35a22f14a1f04b11$export$2440da353cedad43(x,e.granularity),$=i!=null?i.toDate(t??"UTC"):null,l=u==="hour"||u==="minute"||u==="second";var O;let C=(O=e.shouldCloseOnSelect)!==null&&O!==void 0?O:!0,[y,M]=o.useState(null),[p,k]=o.useState(null);if(i&&(y=i,"hour"in i&&(p=i)),x&&!(u in x))throw new Error("Invalid granularity "+u+" for value "+x.toString());let T=(i==null?void 0:i.calendar.identifier)==="gregory"&&i.era==="BC",m=o.useMemo(()=>({granularity:u,timeZone:t,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:T}),[u,e.hourCycle,e.shouldForceLeadingZeros,t,e.hideTimeZone,T]),{minValue:B,maxValue:d,isDateUnavailable:I}=e,_=o.useMemo(()=>s.$35a22f14a1f04b11$export$f18627323ab57ac0(i,B,d,I,m),[i,B,d,I,m]),Z=L.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:i,builtinValidation:_}),D=Z.displayValidation.isInvalid,S=e.validationState||(D?"invalid":null),h=(P,F)=>{f("timeZone"in F?F.set(W.$11d87f3f76e88657$export$93522d1a439f3617(P)):W.$11d87f3f76e88657$export$b21e0b124e224484(P,F)),M(null),k(null),Z.commitValidation()},V=P=>{let F=typeof C=="function"?C():C;l?p||F?h(P,p||s.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.defaultValue||e.placeholderValue)):M(P):(f(P),Z.commitValidation()),F&&a.setOpen(!1)},R=P=>{y&&P?h(y,P):k(P)};var w;return{...Z,value:i,defaultValue:(w=e.defaultValue)!==null&&w!==void 0?w:b,setValue:f,dateValue:y,timeValue:p,setDateValue:V,setTimeValue:R,granularity:u,hasTime:l,...a,setOpen(P){!P&&!i&&y&&l&&h(y,p||s.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.defaultValue||e.placeholderValue)),a.setOpen(P)},validationState:S,isInvalid:D,formatValue(P,F){if(!$)return"";let U=s.$35a22f14a1f04b11$export$7e319ea407e63bc0(F,m);return new W.$fb18d541ea1ad717$export$ad991b66133851cf(P,U).format($)},getDateFormatter(P,F){let U={...m,...F},z=s.$35a22f14a1f04b11$export$7e319ea407e63bc0({},U);return new W.$fb18d541ea1ad717$export$ad991b66133851cf(P,z)}}}function we(e){var a,i;let f=de.$fc909762b330b746$export$61c6a8c84e605fb6(e),[b,x]=xe.$458b0a5536c1a7cf$export$40bfa8c7b0832715(e.value,e.defaultValue||null,e.onChange),[u]=o.useState(b),[t,$]=o.useState(()=>b||{start:null,end:null});b==null&&t.start&&t.end&&(t={start:null,end:null},$(t));let l=b||t,O=n=>{l=n||{start:null,end:null},$(l),A(l)?x(l):x(null)},C=(l==null?void 0:l.start)||(l==null?void 0:l.end)||e.placeholderValue||null,[y,M]=s.$35a22f14a1f04b11$export$2440da353cedad43(C,e.granularity),p=y==="hour"||y==="minute"||y==="second";var k;let T=(k=e.shouldCloseOnSelect)!==null&&k!==void 0?k:!0,[m,B]=o.useState(null),[d,I]=o.useState(null);l&&A(l)&&(m=l,"hour"in l.start&&(d=l));let _=(n,v)=>{O({start:"timeZone"in v.start?v.start.set(W.$11d87f3f76e88657$export$93522d1a439f3617(n.start)):W.$11d87f3f76e88657$export$b21e0b124e224484(n.start,v.start),end:"timeZone"in v.end?v.end.set(W.$11d87f3f76e88657$export$93522d1a439f3617(n.end)):W.$11d87f3f76e88657$export$b21e0b124e224484(n.end,v.end)}),B(null),I(null),F.commitValidation()},Z=n=>{let v=typeof T=="function"?T():T;p?A(n)&&(v||d!=null&&d.start&&(d!=null&&d.end))?_(n,{start:(d==null?void 0:d.start)||s.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue),end:(d==null?void 0:d.end)||s.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue)}):B(n):A(n)?(O(n),F.commitValidation()):B(n),v&&f.setOpen(!1)},D=n=>{A(m)&&A(n)?_(m,n):I(n)},S=(l==null||(a=l.start)===null||a===void 0?void 0:a.calendar.identifier)==="gregory"&&l.start.era==="BC"||(l==null||(i=l.end)===null||i===void 0?void 0:i.calendar.identifier)==="gregory"&&l.end.era==="BC",h=o.useMemo(()=>({granularity:y,timeZone:M,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:S}),[y,e.hourCycle,e.shouldForceLeadingZeros,M,e.hideTimeZone,S]),{minValue:V,maxValue:R,isDateUnavailable:w}=e,P=o.useMemo(()=>s.$35a22f14a1f04b11$export$80ff8fc0ae339c13(l,V,R,w,h),[l,V,R,w,h]),F=L.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:b,name:o.useMemo(()=>[e.startName,e.endName].filter(n=>n!=null),[e.startName,e.endName]),builtinValidation:P}),U=F.displayValidation.isInvalid,z=e.validationState||(U?"invalid":null);var J;return{...F,value:l,defaultValue:(J=e.defaultValue)!==null&&J!==void 0?J:u,setValue:O,dateRange:m,timeRange:d,granularity:y,hasTime:p,setDate(n,v){var r,g;Z(n==="start"?{start:v,end:(r=m==null?void 0:m.end)!==null&&r!==void 0?r:null}:{start:(g=m==null?void 0:m.start)!==null&&g!==void 0?g:null,end:v})},setTime(n,v){var r,g;D(n==="start"?{start:v,end:(r=d==null?void 0:d.end)!==null&&r!==void 0?r:null}:{start:(g=d==null?void 0:d.start)!==null&&g!==void 0?g:null,end:v})},setDateTime(n,v){var r,g;O(n==="start"?{start:v,end:(r=l==null?void 0:l.end)!==null&&r!==void 0?r:null}:{start:(g=l==null?void 0:l.start)!==null&&g!==void 0?g:null,end:v})},setDateRange:Z,setTimeRange:D,...f,setOpen(n){!n&&!(l!=null&&l.start&&(l!=null&&l.end))&&A(m)&&p&&_(m,{start:(d==null?void 0:d.start)||s.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue),end:(d==null?void 0:d.end)||s.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue)}),f.setOpen(n)},validationState:z,isInvalid:U,formatValue(n,v){if(!l||!l.start||!l.end)return null;let r="timeZone"in l.start?l.start.timeZone:void 0,g=e.granularity||(l.start&&"minute"in l.start?"minute":"day"),q="timeZone"in l.end?l.end.timeZone:void 0,Q=e.granularity||(l.end&&"minute"in l.end?"minute":"day"),pe=s.$35a22f14a1f04b11$export$7e319ea407e63bc0(v,{granularity:g,timeZone:r,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:l.start.calendar.identifier==="gregory"&&l.start.era==="BC"||l.end.calendar.identifier==="gregory"&&l.end.era==="BC"}),ue=l.start.toDate(r||"UTC"),fe=l.end.toDate(q||"UTC"),re=new W.$fb18d541ea1ad717$export$ad991b66133851cf(n,pe),ne;if(r===q&&g===Q&&l.start.compare(l.end)!==0){try{let G=re.formatRangeToParts(ue,fe),oe=-1;for(let E=0;E<G.length;E++){let se=G[E];if(se.source==="shared"&&se.type==="literal")oe=E;else if(se.source==="endRange")break}let be="",$e="";for(let E=0;E<G.length;E++)E<oe?be+=G[E].value:E>oe&&($e+=G[E].value);return{start:be,end:$e}}catch{}ne=re}else{let G=s.$35a22f14a1f04b11$export$7e319ea407e63bc0(v,{granularity:Q,timeZone:q,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});ne=new W.$fb18d541ea1ad717$export$ad991b66133851cf(n,G)}return{start:re.format(ue),end:ne.format(fe)}},getDateFormatter(n,v){let r={...h,...v},g=s.$35a22f14a1f04b11$export$7e319ea407e63bc0({},r);return new W.$fb18d541ea1ad717$export$ad991b66133851cf(n,g)}}}function A(e){return(e==null?void 0:e.start)!=null&&e.end!=null}const Se=o.createContext(null),_e=o.createContext(null),je=o.createContext(null),qe=o.createContext(null),Fe=[te.$a049562f99e7db0e$export$f9c6924e160136d1,H.$d2b4bc8c273e7be6$export$24d547caef80ccd1,H.$01b77f81d0f07f68$export$75b6ee27786ba447,ce.$514c0188e459b4c0$export$9afb8bc826b033ea],Ee=o.forwardRef(function(a,i){[a,i]=j.$64fa3d84918910a7$export$29f1550f4b0d4415(a,i,Se);let{validationBehavior:f}=j.$64fa3d84918910a7$export$fabf2dc03a41866e(me.$d3e0e05bdfcf66bd$export$c24727297075ec6a)||{};var b,x;let u=(x=(b=a.validationBehavior)!==null&&b!==void 0?b:f)!==null&&x!==void 0?x:"native",t=Ze({...a,validationBehavior:u}),$=o.useRef(null),[l,O]=j.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!a["aria-label"]&&!a["aria-labelledby"]),{groupProps:C,labelProps:y,fieldProps:M,buttonProps:p,dialogProps:k,calendarProps:T,descriptionProps:m,errorMessageProps:B,...d}=Me({...j.$64fa3d84918910a7$export$ef03459518577ad4(a),label:O,validationBehavior:u},t,$),[I,_]=o.useState(null),Z=o.useCallback(()=>{$.current&&_($.current.offsetWidth+"px")},[]);de.$9daab02d461809db$export$683480f191c0e3ea({ref:$,onResize:Z});let{focusProps:D,isFocused:S,isFocusVisible:h}=Re.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),V=j.$64fa3d84918910a7$export$4d86445c2cf5e3({...a,values:{state:t,isFocusWithin:S,isFocusVisible:h,isDisabled:a.isDisabled||!1,isInvalid:t.isInvalid,isOpen:t.isOpen,isReadOnly:a.isReadOnly||!1},defaultClassName:"react-aria-DatePicker"}),R=ie.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a,{global:!0});return delete R.id,o.createElement(j.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[je,t],[te.$a049562f99e7db0e$export$f9c6924e160136d1,{...C,ref:$,isInvalid:t.isInvalid}],[s.$40825cdb76e74f70$export$7b3e670c86da5fe8,M],[H.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{...p,isPressed:t.isOpen}],[H.$01b77f81d0f07f68$export$75b6ee27786ba447,{...y,ref:l,elementType:"span"}],[le.$dfd62f934fc76fed$export$3b805cea1f178355,T],[K.$de32f1b87079253c$export$d2f961adcb0afbe,t],[K.$07b14b47974efb58$export$9b9a0cd73afb7ca4,{trigger:"DatePicker",triggerRef:$,placement:"bottom start",style:{"--trigger-width":I},clearContexts:Fe}],[K.$de32f1b87079253c$export$8b93a07348a7730c,k],[ce.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{description:m,errorMessage:B}}],[Y.$ee014567cb39d3f0$export$ff05c3ac10437e03,d]]},o.createElement("div",{...N.$3ef42575df84b30b$export$9d1611c77c2fe928(R,V,D),ref:i,slot:a.slot||void 0,"data-focus-within":S||void 0,"data-invalid":t.isInvalid||void 0,"data-focus-visible":h||void 0,"data-disabled":a.isDisabled||void 0,"data-readonly":a.isReadOnly||void 0,"data-open":t.isOpen||void 0}),o.createElement(s.$c699643d2073b351$export$eefa3e19139f00f3,{autoComplete:a.autoComplete,name:a.name,isDisabled:a.isDisabled,state:t}))}),We=o.forwardRef(function(a,i){[a,i]=j.$64fa3d84918910a7$export$29f1550f4b0d4415(a,i,_e);let{validationBehavior:f}=j.$64fa3d84918910a7$export$fabf2dc03a41866e(me.$d3e0e05bdfcf66bd$export$c24727297075ec6a)||{};var b,x;let u=(x=(b=a.validationBehavior)!==null&&b!==void 0?b:f)!==null&&x!==void 0?x:"native",t=we({...a,validationBehavior:u}),$=o.useRef(null),[l,O]=j.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!a["aria-label"]&&!a["aria-labelledby"]),{groupProps:C,labelProps:y,startFieldProps:M,endFieldProps:p,buttonProps:k,dialogProps:T,calendarProps:m,descriptionProps:B,errorMessageProps:d,...I}=Be({...j.$64fa3d84918910a7$export$ef03459518577ad4(a),label:O,validationBehavior:u},t,$),[_,Z]=o.useState(null),D=o.useCallback(()=>{$.current&&Z($.current.offsetWidth+"px")},[]);de.$9daab02d461809db$export$683480f191c0e3ea({ref:$,onResize:D});let{focusProps:S,isFocused:h,isFocusVisible:V}=Re.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),R=j.$64fa3d84918910a7$export$4d86445c2cf5e3({...a,values:{state:t,isFocusWithin:h,isFocusVisible:V,isDisabled:a.isDisabled||!1,isInvalid:t.isInvalid,isOpen:t.isOpen,isReadOnly:a.isReadOnly||!1},defaultClassName:"react-aria-DateRangePicker"}),w=ie.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a,{global:!0});return delete w.id,o.createElement(j.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[qe,t],[te.$a049562f99e7db0e$export$f9c6924e160136d1,{...C,ref:$,isInvalid:t.isInvalid}],[H.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{...k,isPressed:t.isOpen}],[H.$01b77f81d0f07f68$export$75b6ee27786ba447,{...y,ref:l,elementType:"span"}],[le.$dfd62f934fc76fed$export$233dd9682e1ad64b,m],[K.$de32f1b87079253c$export$d2f961adcb0afbe,t],[K.$07b14b47974efb58$export$9b9a0cd73afb7ca4,{trigger:"DateRangePicker",triggerRef:$,placement:"bottom start",style:{"--trigger-width":_},clearContexts:Fe}],[K.$de32f1b87079253c$export$8b93a07348a7730c,T],[s.$40825cdb76e74f70$export$7b3e670c86da5fe8,{slots:{start:M,end:p}}],[ce.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{description:B,errorMessage:d}}],[Y.$ee014567cb39d3f0$export$ff05c3ac10437e03,I]]},o.createElement("div",{...N.$3ef42575df84b30b$export$9d1611c77c2fe928(w,R,S),ref:i,slot:a.slot||void 0,"data-focus-within":h||void 0,"data-invalid":t.isInvalid||void 0,"data-focus-visible":V||void 0,"data-disabled":a.isDisabled||void 0,"data-readonly":a.isReadOnly||void 0,"data-open":t.isOpen||void 0}))});/**
1
+ "use strict";require('./assets/DateRangePicker.css');const c=require("react/jsx-runtime"),ee=require("./clsx-C11secjj.cjs"),le=require("./RangeCalendar-CH0CyBui.cjs"),s=require("./DateInputDivider-CCrXjsUB.cjs"),Y=require("./FieldError-JWxR_EqN.cjs"),ae=require("./Label-C3ZSrB04.cjs"),ve=require("./Text-D5OSv6Uv.cjs"),H=require("./Button-1sEX8jKn.cjs"),j=require("./utils-CtICjCYt.cjs"),K=require("./Dialog-DycTLpdr.cjs"),me=require("./Form-BuOomA4T.cjs"),te=require("./Group-B0Wj9pI8.cjs"),ce=require("./Text-0wXj3J8E.cjs"),N=require("./mergeProps-Du5A8xi8.cjs"),ie=require("./filterDOMProps-RRlKPKX0.cjs"),de=require("./OverlayArrow-bcrb_syE.cjs"),o=require("react"),W=require("./useDateFormatter-BrrFo4nY.cjs"),L=require("./useFormValidation-DV2Ioblb.cjs"),xe=require("./useControlledState-D0L6S_5r.cjs"),he=require("./SelectionIndicator-ClG0GpJu.cjs"),ge=require("./useDescription-6BYtQxe6.cjs"),ye=require("./useFocusWithin-GBjoTL5o.cjs"),Ve=require("./useField-DvszkIMx.cjs"),Pe=require("./context-UOrD6Zxk.cjs"),De=require("./useLocalizedStringFormatter-CHAo1AyN.cjs"),Re=require("./useFocusRing-C-XVcAE5.cjs"),Te=require("./createLucideIcon-CTVXwe6i.cjs");function Ie(e){return e&&e.__esModule?e.default:e}function Me(e,a,i){let f=N.$bdb11010cef70236$export$f680877a34711e37(),b=N.$bdb11010cef70236$export$f680877a34711e37(),x=N.$bdb11010cef70236$export$f680877a34711e37(),u=De.$fca6afa0e843324b$export$f12b703ca79dfbb1(Ie(s.$dfb4eba373ed9493$exports),"@react-aria/datepicker"),{isInvalid:t,validationErrors:$,validationDetails:l}=a.displayValidation,{labelProps:O,fieldProps:C,descriptionProps:y,errorMessageProps:M}=Ve.$2baaea4c71418dea$export$294aa081a6c6f55d({...e,labelElementType:"span",isInvalid:t,errorMessage:e.errorMessage||$}),p=s.$3dfb0f96be0d6a08$export$4a931266a3838b86(a,i),k=C["aria-labelledby"]||C.id,{locale:T}=Pe.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),m=a.formatValue(T,{month:"long"}),B=m?u.format("selectedDateDescription",{date:m}):"",d=ge.$ef06256079686ba0$export$f8aeda7b10753fa1(B),I=[d["aria-describedby"],C["aria-describedby"]].filter(Boolean).join(" ")||void 0,_=ie.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e),Z=o.useMemo(()=>he.$9bf71ea28793e738$export$c5251b9e124bf29(i),[i]),D=o.useRef(!1),{focusWithinProps:S}=ye.$9ab94262bd0047c7$export$420e68273165f4ec({...e,isDisabled:a.isOpen,onBlurWithin:h=>{let V=document.getElementById(b);if(!(V!=null&&V.contains(h.relatedTarget))){var R,w;D.current=!1,(R=e.onBlur)===null||R===void 0||R.call(e,h),(w=e.onFocusChange)===null||w===void 0||w.call(e,!1)}},onFocusWithin:h=>{if(!D.current){var V,R;D.current=!0,(V=e.onFocus)===null||V===void 0||V.call(e,h),(R=e.onFocusChange)===null||R===void 0||R.call(e,!0)}}});return{groupProps:N.$3ef42575df84b30b$export$9d1611c77c2fe928(_,p,C,d,S,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":k,"aria-describedby":I,onKeyDown(h){a.isOpen||e.onKeyDown&&e.onKeyDown(h)},onKeyUp(h){a.isOpen||e.onKeyUp&&e.onKeyUp(h)}}),labelProps:{...O,onClick:()=>{Z.focusFirst()}},fieldProps:{...C,id:x,[s.$16f0b7bb276bc17e$export$300019f83c56d282]:"presentation","aria-describedby":I,value:a.value,defaultValue:a.defaultValue,onChange:a.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[L.$e5be200c675c3b3a$export$a763b9476acd3eb]:a,autoFocus:e.autoFocus,name:e.name,form:e.form},descriptionProps:y,errorMessageProps:M,buttonProps:{...d,id:f,"aria-haspopup":"dialog","aria-label":u.format("calendar"),"aria-labelledby":`${f} ${k}`,"aria-describedby":I,"aria-expanded":a.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>a.setOpen(!0)},dialogProps:{id:b,"aria-labelledby":`${f} ${k}`},calendarProps:{autoFocus:!0,value:a.dateValue,onChange:a.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:a.dateValue?void 0:e.placeholderValue,isInvalid:a.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(a.displayValidation):e.errorMessage||a.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:t,validationErrors:$,validationDetails:l}}function ke(e){return e&&e.__esModule?e.default:e}function Be(e,a,i){var f,b,x,u,t;let $=De.$fca6afa0e843324b$export$f12b703ca79dfbb1(ke(s.$dfb4eba373ed9493$exports),"@react-aria/datepicker"),{isInvalid:l,validationErrors:O,validationDetails:C}=a.displayValidation,{labelProps:y,fieldProps:M,descriptionProps:p,errorMessageProps:k}=Ve.$2baaea4c71418dea$export$294aa081a6c6f55d({...e,labelElementType:"span",isInvalid:l,errorMessage:e.errorMessage||O}),T=M["aria-labelledby"]||M.id,{locale:m}=Pe.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),B=a.formatValue(m,{month:"long"}),d=B?$.format("selectedRangeDescription",{startDate:B.start,endDate:B.end}):"",I=ge.$ef06256079686ba0$export$f8aeda7b10753fa1(d),_={"aria-label":$.format("startDate"),"aria-labelledby":T},Z={"aria-label":$.format("endDate"),"aria-labelledby":T},D=N.$bdb11010cef70236$export$f680877a34711e37(),S=N.$bdb11010cef70236$export$f680877a34711e37(),h=s.$3dfb0f96be0d6a08$export$4a931266a3838b86(a,i),V=[I["aria-describedby"],M["aria-describedby"]].filter(Boolean).join(" ")||void 0,R=o.useMemo(()=>he.$9bf71ea28793e738$export$c5251b9e124bf29(i,{accept:r=>r.id!==D}),[i,D]),w={[s.$16f0b7bb276bc17e$export$7b3062cd49e80452]:R,[s.$16f0b7bb276bc17e$export$300019f83c56d282]:"presentation","aria-describedby":V,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},P=ie.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e),F=o.useRef(!1),{focusWithinProps:U}=ye.$9ab94262bd0047c7$export$420e68273165f4ec({...e,isDisabled:a.isOpen,onBlurWithin:r=>{let g=document.getElementById(S);if(!(g!=null&&g.contains(r.relatedTarget))){var q,Q;F.current=!1,(q=e.onBlur)===null||q===void 0||q.call(e,r),(Q=e.onFocusChange)===null||Q===void 0||Q.call(e,!1)}},onFocusWithin:r=>{if(!F.current){var g,q;F.current=!0,(g=e.onFocus)===null||g===void 0||g.call(e,r),(q=e.onFocusChange)===null||q===void 0||q.call(e,!0)}}}),z=o.useRef(L.$e5be200c675c3b3a$export$dad6ae84456c676a),J=o.useRef(L.$e5be200c675c3b3a$export$dad6ae84456c676a);var n,v;return{groupProps:N.$3ef42575df84b30b$export$9d1611c77c2fe928(P,h,M,I,U,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":V,onKeyDown(r){a.isOpen||e.onKeyDown&&e.onKeyDown(r)},onKeyUp(r){a.isOpen||e.onKeyUp&&e.onKeyUp(r)}}),labelProps:{...y,onClick:()=>{R.focusFirst()}},buttonProps:{...I,id:D,"aria-haspopup":"dialog","aria-label":$.format("calendar"),"aria-labelledby":`${D} ${T}`,"aria-describedby":V,"aria-expanded":a.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>a.setOpen(!0)},dialogProps:{id:S,"aria-labelledby":`${D} ${T}`},startFieldProps:{..._,...w,value:(n=(f=a.value)===null||f===void 0?void 0:f.start)!==null&&n!==void 0?n:null,defaultValue:(b=a.defaultValue)===null||b===void 0?void 0:b.start,onChange:r=>a.setDateTime("start",r),autoFocus:e.autoFocus,name:e.startName,form:e.form,[L.$e5be200c675c3b3a$export$a763b9476acd3eb]:{realtimeValidation:a.realtimeValidation,displayValidation:a.displayValidation,updateValidation(r){z.current=r,a.updateValidation(L.$e5be200c675c3b3a$export$75ee7c75d68f5b0e(r,J.current))},resetValidation:a.resetValidation,commitValidation:a.commitValidation}},endFieldProps:{...Z,...w,value:(v=(x=a.value)===null||x===void 0?void 0:x.end)!==null&&v!==void 0?v:null,defaultValue:(u=a.defaultValue)===null||u===void 0?void 0:u.end,onChange:r=>a.setDateTime("end",r),name:e.endName,form:e.form,[L.$e5be200c675c3b3a$export$a763b9476acd3eb]:{realtimeValidation:a.realtimeValidation,displayValidation:a.displayValidation,updateValidation(r){J.current=r,a.updateValidation(L.$e5be200c675c3b3a$export$75ee7c75d68f5b0e(z.current,r))},resetValidation:a.resetValidation,commitValidation:a.commitValidation}},descriptionProps:p,errorMessageProps:k,calendarProps:{autoFocus:!0,value:!((t=a.dateRange)===null||t===void 0)&&t.start&&a.dateRange.end?a.dateRange:null,onChange:a.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:a.dateRange?void 0:e.placeholderValue,isInvalid:a.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(a.displayValidation):e.errorMessage||a.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:l,validationErrors:O,validationDetails:C}}function Ze(e){let a=de.$fc909762b330b746$export$61c6a8c84e605fb6(e),[i,f]=xe.$458b0a5536c1a7cf$export$40bfa8c7b0832715(e.value,e.defaultValue||null,e.onChange),[b]=o.useState(i),x=i||e.placeholderValue||null,[u,t]=s.$35a22f14a1f04b11$export$2440da353cedad43(x,e.granularity),$=i!=null?i.toDate(t??"UTC"):null,l=u==="hour"||u==="minute"||u==="second";var O;let C=(O=e.shouldCloseOnSelect)!==null&&O!==void 0?O:!0,[y,M]=o.useState(null),[p,k]=o.useState(null);if(i&&(y=i,"hour"in i&&(p=i)),x&&!(u in x))throw new Error("Invalid granularity "+u+" for value "+x.toString());let T=(i==null?void 0:i.calendar.identifier)==="gregory"&&i.era==="BC",m=o.useMemo(()=>({granularity:u,timeZone:t,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:T}),[u,e.hourCycle,e.shouldForceLeadingZeros,t,e.hideTimeZone,T]),{minValue:B,maxValue:d,isDateUnavailable:I}=e,_=o.useMemo(()=>s.$35a22f14a1f04b11$export$f18627323ab57ac0(i,B,d,I,m),[i,B,d,I,m]),Z=L.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:i,builtinValidation:_}),D=Z.displayValidation.isInvalid,S=e.validationState||(D?"invalid":null),h=(P,F)=>{f("timeZone"in F?F.set(W.$11d87f3f76e88657$export$93522d1a439f3617(P)):W.$11d87f3f76e88657$export$b21e0b124e224484(P,F)),M(null),k(null),Z.commitValidation()},V=P=>{let F=typeof C=="function"?C():C;l?p||F?h(P,p||s.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.defaultValue||e.placeholderValue)):M(P):(f(P),Z.commitValidation()),F&&a.setOpen(!1)},R=P=>{y&&P?h(y,P):k(P)};var w;return{...Z,value:i,defaultValue:(w=e.defaultValue)!==null&&w!==void 0?w:b,setValue:f,dateValue:y,timeValue:p,setDateValue:V,setTimeValue:R,granularity:u,hasTime:l,...a,setOpen(P){!P&&!i&&y&&l&&h(y,p||s.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.defaultValue||e.placeholderValue)),a.setOpen(P)},validationState:S,isInvalid:D,formatValue(P,F){if(!$)return"";let U=s.$35a22f14a1f04b11$export$7e319ea407e63bc0(F,m);return new W.$fb18d541ea1ad717$export$ad991b66133851cf(P,U).format($)},getDateFormatter(P,F){let U={...m,...F},z=s.$35a22f14a1f04b11$export$7e319ea407e63bc0({},U);return new W.$fb18d541ea1ad717$export$ad991b66133851cf(P,z)}}}function we(e){var a,i;let f=de.$fc909762b330b746$export$61c6a8c84e605fb6(e),[b,x]=xe.$458b0a5536c1a7cf$export$40bfa8c7b0832715(e.value,e.defaultValue||null,e.onChange),[u]=o.useState(b),[t,$]=o.useState(()=>b||{start:null,end:null});b==null&&t.start&&t.end&&(t={start:null,end:null},$(t));let l=b||t,O=n=>{l=n||{start:null,end:null},$(l),A(l)?x(l):x(null)},C=(l==null?void 0:l.start)||(l==null?void 0:l.end)||e.placeholderValue||null,[y,M]=s.$35a22f14a1f04b11$export$2440da353cedad43(C,e.granularity),p=y==="hour"||y==="minute"||y==="second";var k;let T=(k=e.shouldCloseOnSelect)!==null&&k!==void 0?k:!0,[m,B]=o.useState(null),[d,I]=o.useState(null);l&&A(l)&&(m=l,"hour"in l.start&&(d=l));let _=(n,v)=>{O({start:"timeZone"in v.start?v.start.set(W.$11d87f3f76e88657$export$93522d1a439f3617(n.start)):W.$11d87f3f76e88657$export$b21e0b124e224484(n.start,v.start),end:"timeZone"in v.end?v.end.set(W.$11d87f3f76e88657$export$93522d1a439f3617(n.end)):W.$11d87f3f76e88657$export$b21e0b124e224484(n.end,v.end)}),B(null),I(null),F.commitValidation()},Z=n=>{let v=typeof T=="function"?T():T;p?A(n)&&(v||d!=null&&d.start&&(d!=null&&d.end))?_(n,{start:(d==null?void 0:d.start)||s.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue),end:(d==null?void 0:d.end)||s.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue)}):B(n):A(n)?(O(n),F.commitValidation()):B(n),v&&f.setOpen(!1)},D=n=>{A(m)&&A(n)?_(m,n):I(n)},S=(l==null||(a=l.start)===null||a===void 0?void 0:a.calendar.identifier)==="gregory"&&l.start.era==="BC"||(l==null||(i=l.end)===null||i===void 0?void 0:i.calendar.identifier)==="gregory"&&l.end.era==="BC",h=o.useMemo(()=>({granularity:y,timeZone:M,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:S}),[y,e.hourCycle,e.shouldForceLeadingZeros,M,e.hideTimeZone,S]),{minValue:V,maxValue:R,isDateUnavailable:w}=e,P=o.useMemo(()=>s.$35a22f14a1f04b11$export$80ff8fc0ae339c13(l,V,R,w,h),[l,V,R,w,h]),F=L.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:b,name:o.useMemo(()=>[e.startName,e.endName].filter(n=>n!=null),[e.startName,e.endName]),builtinValidation:P}),U=F.displayValidation.isInvalid,z=e.validationState||(U?"invalid":null);var J;return{...F,value:l,defaultValue:(J=e.defaultValue)!==null&&J!==void 0?J:u,setValue:O,dateRange:m,timeRange:d,granularity:y,hasTime:p,setDate(n,v){var r,g;Z(n==="start"?{start:v,end:(r=m==null?void 0:m.end)!==null&&r!==void 0?r:null}:{start:(g=m==null?void 0:m.start)!==null&&g!==void 0?g:null,end:v})},setTime(n,v){var r,g;D(n==="start"?{start:v,end:(r=d==null?void 0:d.end)!==null&&r!==void 0?r:null}:{start:(g=d==null?void 0:d.start)!==null&&g!==void 0?g:null,end:v})},setDateTime(n,v){var r,g;O(n==="start"?{start:v,end:(r=l==null?void 0:l.end)!==null&&r!==void 0?r:null}:{start:(g=l==null?void 0:l.start)!==null&&g!==void 0?g:null,end:v})},setDateRange:Z,setTimeRange:D,...f,setOpen(n){!n&&!(l!=null&&l.start&&(l!=null&&l.end))&&A(m)&&p&&_(m,{start:(d==null?void 0:d.start)||s.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue),end:(d==null?void 0:d.end)||s.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue)}),f.setOpen(n)},validationState:z,isInvalid:U,formatValue(n,v){if(!l||!l.start||!l.end)return null;let r="timeZone"in l.start?l.start.timeZone:void 0,g=e.granularity||(l.start&&"minute"in l.start?"minute":"day"),q="timeZone"in l.end?l.end.timeZone:void 0,Q=e.granularity||(l.end&&"minute"in l.end?"minute":"day"),pe=s.$35a22f14a1f04b11$export$7e319ea407e63bc0(v,{granularity:g,timeZone:r,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:l.start.calendar.identifier==="gregory"&&l.start.era==="BC"||l.end.calendar.identifier==="gregory"&&l.end.era==="BC"}),ue=l.start.toDate(r||"UTC"),fe=l.end.toDate(q||"UTC"),re=new W.$fb18d541ea1ad717$export$ad991b66133851cf(n,pe),ne;if(r===q&&g===Q&&l.start.compare(l.end)!==0){try{let G=re.formatRangeToParts(ue,fe),oe=-1;for(let E=0;E<G.length;E++){let se=G[E];if(se.source==="shared"&&se.type==="literal")oe=E;else if(se.source==="endRange")break}let be="",$e="";for(let E=0;E<G.length;E++)E<oe?be+=G[E].value:E>oe&&($e+=G[E].value);return{start:be,end:$e}}catch{}ne=re}else{let G=s.$35a22f14a1f04b11$export$7e319ea407e63bc0(v,{granularity:Q,timeZone:q,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});ne=new W.$fb18d541ea1ad717$export$ad991b66133851cf(n,G)}return{start:re.format(ue),end:ne.format(fe)}},getDateFormatter(n,v){let r={...h,...v},g=s.$35a22f14a1f04b11$export$7e319ea407e63bc0({},r);return new W.$fb18d541ea1ad717$export$ad991b66133851cf(n,g)}}}function A(e){return(e==null?void 0:e.start)!=null&&e.end!=null}const Se=o.createContext(null),_e=o.createContext(null),je=o.createContext(null),qe=o.createContext(null),Fe=[te.$a049562f99e7db0e$export$f9c6924e160136d1,H.$d2b4bc8c273e7be6$export$24d547caef80ccd1,H.$01b77f81d0f07f68$export$75b6ee27786ba447,ce.$514c0188e459b4c0$export$9afb8bc826b033ea],Ee=o.forwardRef(function(a,i){[a,i]=j.$64fa3d84918910a7$export$29f1550f4b0d4415(a,i,Se);let{validationBehavior:f}=j.$64fa3d84918910a7$export$fabf2dc03a41866e(me.$d3e0e05bdfcf66bd$export$c24727297075ec6a)||{};var b,x;let u=(x=(b=a.validationBehavior)!==null&&b!==void 0?b:f)!==null&&x!==void 0?x:"native",t=Ze({...a,validationBehavior:u}),$=o.useRef(null),[l,O]=j.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!a["aria-label"]&&!a["aria-labelledby"]),{groupProps:C,labelProps:y,fieldProps:M,buttonProps:p,dialogProps:k,calendarProps:T,descriptionProps:m,errorMessageProps:B,...d}=Me({...j.$64fa3d84918910a7$export$ef03459518577ad4(a),label:O,validationBehavior:u},t,$),[I,_]=o.useState(null),Z=o.useCallback(()=>{$.current&&_($.current.offsetWidth+"px")},[]);de.$9daab02d461809db$export$683480f191c0e3ea({ref:$,onResize:Z});let{focusProps:D,isFocused:S,isFocusVisible:h}=Re.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),V=j.$64fa3d84918910a7$export$4d86445c2cf5e3({...a,values:{state:t,isFocusWithin:S,isFocusVisible:h,isDisabled:a.isDisabled||!1,isInvalid:t.isInvalid,isOpen:t.isOpen,isReadOnly:a.isReadOnly||!1},defaultClassName:"react-aria-DatePicker"}),R=ie.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a,{global:!0});return delete R.id,o.createElement(j.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[je,t],[te.$a049562f99e7db0e$export$f9c6924e160136d1,{...C,ref:$,isInvalid:t.isInvalid}],[s.$40825cdb76e74f70$export$7b3e670c86da5fe8,M],[H.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{...p,isPressed:t.isOpen}],[H.$01b77f81d0f07f68$export$75b6ee27786ba447,{...y,ref:l,elementType:"span"}],[le.$dfd62f934fc76fed$export$3b805cea1f178355,T],[K.$de32f1b87079253c$export$d2f961adcb0afbe,t],[K.$07b14b47974efb58$export$9b9a0cd73afb7ca4,{trigger:"DatePicker",triggerRef:$,placement:"bottom start",style:{"--trigger-width":I},clearContexts:Fe}],[K.$de32f1b87079253c$export$8b93a07348a7730c,k],[ce.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{description:m,errorMessage:B}}],[Y.$ee014567cb39d3f0$export$ff05c3ac10437e03,d]]},o.createElement("div",{...N.$3ef42575df84b30b$export$9d1611c77c2fe928(R,V,D),ref:i,slot:a.slot||void 0,"data-focus-within":S||void 0,"data-invalid":t.isInvalid||void 0,"data-focus-visible":h||void 0,"data-disabled":a.isDisabled||void 0,"data-readonly":a.isReadOnly||void 0,"data-open":t.isOpen||void 0}),o.createElement(s.$c699643d2073b351$export$eefa3e19139f00f3,{autoComplete:a.autoComplete,name:a.name,isDisabled:a.isDisabled,state:t}))}),We=o.forwardRef(function(a,i){[a,i]=j.$64fa3d84918910a7$export$29f1550f4b0d4415(a,i,_e);let{validationBehavior:f}=j.$64fa3d84918910a7$export$fabf2dc03a41866e(me.$d3e0e05bdfcf66bd$export$c24727297075ec6a)||{};var b,x;let u=(x=(b=a.validationBehavior)!==null&&b!==void 0?b:f)!==null&&x!==void 0?x:"native",t=we({...a,validationBehavior:u}),$=o.useRef(null),[l,O]=j.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!a["aria-label"]&&!a["aria-labelledby"]),{groupProps:C,labelProps:y,startFieldProps:M,endFieldProps:p,buttonProps:k,dialogProps:T,calendarProps:m,descriptionProps:B,errorMessageProps:d,...I}=Be({...j.$64fa3d84918910a7$export$ef03459518577ad4(a),label:O,validationBehavior:u},t,$),[_,Z]=o.useState(null),D=o.useCallback(()=>{$.current&&Z($.current.offsetWidth+"px")},[]);de.$9daab02d461809db$export$683480f191c0e3ea({ref:$,onResize:D});let{focusProps:S,isFocused:h,isFocusVisible:V}=Re.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),R=j.$64fa3d84918910a7$export$4d86445c2cf5e3({...a,values:{state:t,isFocusWithin:h,isFocusVisible:V,isDisabled:a.isDisabled||!1,isInvalid:t.isInvalid,isOpen:t.isOpen,isReadOnly:a.isReadOnly||!1},defaultClassName:"react-aria-DateRangePicker"}),w=ie.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a,{global:!0});return delete w.id,o.createElement(j.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[qe,t],[te.$a049562f99e7db0e$export$f9c6924e160136d1,{...C,ref:$,isInvalid:t.isInvalid}],[H.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{...k,isPressed:t.isOpen}],[H.$01b77f81d0f07f68$export$75b6ee27786ba447,{...y,ref:l,elementType:"span"}],[le.$dfd62f934fc76fed$export$233dd9682e1ad64b,m],[K.$de32f1b87079253c$export$d2f961adcb0afbe,t],[K.$07b14b47974efb58$export$9b9a0cd73afb7ca4,{trigger:"DateRangePicker",triggerRef:$,placement:"bottom start",style:{"--trigger-width":_},clearContexts:Fe}],[K.$de32f1b87079253c$export$8b93a07348a7730c,T],[s.$40825cdb76e74f70$export$7b3e670c86da5fe8,{slots:{start:M,end:p}}],[ce.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{description:B,errorMessage:d}}],[Y.$ee014567cb39d3f0$export$ff05c3ac10437e03,I]]},o.createElement("div",{...N.$3ef42575df84b30b$export$9d1611c77c2fe928(w,R,S),ref:i,slot:a.slot||void 0,"data-focus-within":h||void 0,"data-invalid":t.isInvalid||void 0,"data-focus-visible":V||void 0,"data-disabled":a.isDisabled||void 0,"data-readonly":a.isReadOnly||void 0,"data-open":t.isOpen||void 0}))});/**
2
2
  * @license lucide-react v0.525.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -8,7 +8,7 @@ import { B as u } from "./Button-DdXFHfXw.js";
8
8
  import { $ as P } from "./Dialog-D4Py85wi.js";
9
9
  import { I as g } from "./info-CPK1vbOJ.js";
10
10
  import { u as _ } from "./useLocalizedStringFormatter-aOhh7wdl.js";
11
- import './assets/Label.css';const $ = "_labelBase_16cj3_1", I = {
11
+ import './assets/Label.css';const $ = "_labelBase_3izfx_1", I = {
12
12
  labelBase: $
13
13
  }, x = "_labelPopover_1iatl_1", L = "_labelPopoverTrigger_1iatl_7", m = {
14
14
  labelPopover: x,
@@ -1 +1 @@
1
- "use strict";require('./assets/Label.css');const t=require("react/jsx-runtime"),l=require("react"),u=require("./clsx-DKOfLqne.cjs"),p=require("./Button-1sEX8jKn.cjs"),d=require("./Popover-DpB0XDBp.cjs"),f=require("./Button-BEWKXjlP.cjs"),v=require("./Dialog-DycTLpdr.cjs"),g=require("./info-Dj6SyPex.cjs"),m=require("./useLocalizedStringFormatter-BSac43NO.cjs");function x(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const P=x(l),j="_labelBase_16cj3_1",_={labelBase:j},$="_labelPopover_1iatl_1",I="_labelPopoverTrigger_1iatl_7",b={labelPopover:$,labelPopoverTrigger:I},q={moreInfo:"More info"},L={moreInfo:"Mer information"},O={en:q,sv:L},T=({children:e,"aria-label":o})=>{const[r,s]=l.useState(!1),n=l.useContext(c),a=m.useLocalizedStringFormatter(O);return t.jsxs(v.$de32f1b87079253c$export$2e1e1122cf0cba88,{isOpen:r,onOpenChange:s,children:[t.jsx(f.Button,{variant:"icon",size:"medium",className:b.labelPopoverTrigger,"aria-label":o||a.format("moreInfo"),id:n==null?void 0:n.popoverId,children:t.jsx(g.Info,{size:20})}),t.jsx(d.Popover,{children:e})]})},c=l.createContext(void 0),y=({children:e,popover:o})=>{const r=l.useId();return o?t.jsx(c.Provider,{value:{popoverId:r},children:t.jsxs("div",{className:b.labelPopover,children:[e,t.jsx(T,{...o})]})}):e},i="label",B=({children:e,className:o,elementType:r=i,...s})=>{const n={className:u.clsx(_.labelBase,o),elementType:r||i,...s},a=P.useContext(c);return t.jsx(p.$01b77f81d0f07f68$export$b04be29aa201d4f5,{...n,"aria-describedby":a==null?void 0:a.popoverId,children:e})};exports.Label=B;exports.LabelWrapper=y;
1
+ "use strict";require('./assets/Label.css');const t=require("react/jsx-runtime"),l=require("react"),u=require("./clsx-DKOfLqne.cjs"),p=require("./Button-1sEX8jKn.cjs"),f=require("./Popover-DpB0XDBp.cjs"),d=require("./Button-BEWKXjlP.cjs"),v=require("./Dialog-DycTLpdr.cjs"),g=require("./info-Dj6SyPex.cjs"),m=require("./useLocalizedStringFormatter-BSac43NO.cjs");function x(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const P=x(l),j="_labelBase_3izfx_1",_={labelBase:j},$="_labelPopover_1iatl_1",I="_labelPopoverTrigger_1iatl_7",b={labelPopover:$,labelPopoverTrigger:I},q={moreInfo:"More info"},L={moreInfo:"Mer information"},O={en:q,sv:L},T=({children:e,"aria-label":o})=>{const[r,s]=l.useState(!1),n=l.useContext(c),a=m.useLocalizedStringFormatter(O);return t.jsxs(v.$de32f1b87079253c$export$2e1e1122cf0cba88,{isOpen:r,onOpenChange:s,children:[t.jsx(d.Button,{variant:"icon",size:"medium",className:b.labelPopoverTrigger,"aria-label":o||a.format("moreInfo"),id:n==null?void 0:n.popoverId,children:t.jsx(g.Info,{size:20})}),t.jsx(f.Popover,{children:e})]})},c=l.createContext(void 0),y=({children:e,popover:o})=>{const r=l.useId();return o?t.jsx(c.Provider,{value:{popoverId:r},children:t.jsxs("div",{className:b.labelPopover,children:[e,t.jsx(T,{...o})]})}):e},i="label",B=({children:e,className:o,elementType:r=i,...s})=>{const n={className:u.clsx(_.labelBase,o),elementType:r||i,...s},a=P.useContext(c);return t.jsx(p.$01b77f81d0f07f68$export$b04be29aa201d4f5,{...n,"aria-describedby":a==null?void 0:a.popoverId,children:e})};exports.Label=B;exports.LabelWrapper=y;