@midas-ds/components 12.1.0 → 13.0.0

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 (202) hide show
  1. package/AccordionItem-Bq8nUKg4.cjs +1 -0
  2. package/{AccordionItem-C9dBt-tQ.js → AccordionItem-D2Y0gJZB.js} +109 -109
  3. package/{Breadcrumbs-DUcHHI_2.cjs → Breadcrumbs-BQLxFZVm.cjs} +1 -1
  4. package/{Breadcrumbs-BAHJMPsu.js → Breadcrumbs-C6B4fyk3.js} +1 -1
  5. package/{Button-DYcmg49Z.js → Button-CUMHt7MG.js} +1 -1
  6. package/{Button-DrL5Jv-s.cjs → Button-D_tRdPW9.cjs} +1 -1
  7. package/Button.module-BT9wZenr.cjs +1 -0
  8. package/Button.module-CGIVvzVm.js +14 -0
  9. package/{ButtonGroup-WZZDPu9Z.js → ButtonGroup-DC8925jD.js} +1 -1
  10. package/{ButtonGroup-ClYTgaRc.cjs → ButtonGroup-zx-9mxbJ.cjs} +1 -1
  11. package/CHANGELOG.md +59 -0
  12. package/Card-D2UbrhDW.js +131 -0
  13. package/Card-UolcSL5O.cjs +1 -0
  14. package/{Checkbox-BtM2rFh9.js → Checkbox-DTuryJdM.js} +14 -14
  15. package/{Checkbox-CvdIG43J.cjs → Checkbox-dtZfsSfx.cjs} +1 -1
  16. package/{CheckboxGroup-CjcDYBRk.js → CheckboxGroup-BmCK0XG9.js} +2 -2
  17. package/{CheckboxGroup-C94as9Xt.cjs → CheckboxGroup-DbmYdQEv.cjs} +1 -1
  18. package/{ColorSchemeSwitch-C4PMYeD5.js → ColorSchemeSwitch-CgZfgCG4.js} +1 -1
  19. package/{ColorSchemeSwitch-CKcoGZM1.cjs → ColorSchemeSwitch-D5juAHPc.cjs} +1 -1
  20. package/{ComboBox-BWXJZyOR.js → ComboBox-Cl6jBB-8.js} +85 -85
  21. package/{ComboBox-B2EmfOyr.cjs → ComboBox-CvD0t2T2.cjs} +1 -1
  22. package/{DateField-CcQJYDLD.js → DateField-D2IqGDL5.js} +2 -2
  23. package/{DateField-IpCiF81R.cjs → DateField-DJAQH95Q.cjs} +1 -1
  24. package/{DateInputDivider-Cf5GZHlM.cjs → DateInputDivider-BnSo_Aox.cjs} +1 -1
  25. package/{DateInputDivider-CXkUdlzc.js → DateInputDivider-LxS0Kw1H.js} +2 -2
  26. package/{DateRangePicker-B2BJO1KC.js → DateRangePicker-CNPXbRqx.js} +4 -4
  27. package/{DateRangePicker-Dfwe9RhJ.cjs → DateRangePicker-CljQy8oD.cjs} +2 -2
  28. package/{Dialog-P3frHOdq.js → Dialog-COpVrq8B.js} +21 -21
  29. package/{Dialog-DgJobm71.cjs → Dialog-doGnVsJJ.cjs} +1 -1
  30. package/{Dropdown-DJ2vWAqk.cjs → Dropdown-C_W6Sizy.cjs} +1 -1
  31. package/{Dropdown-CIvWpN3v.js → Dropdown-DbeUiGYo.js} +1 -1
  32. package/{Grid-s8ovKDi8.js → Grid-BmX6arAO.js} +1 -1
  33. package/{Grid-WbEkSCGh.cjs → Grid-Bn1bCTH8.cjs} +1 -1
  34. package/GridItem-BtO9kCX9.js +237 -0
  35. package/GridItem-luVsL9lu.cjs +1 -0
  36. package/InfoBanner-C82hcpzj.cjs +1 -0
  37. package/InfoBanner-Dz_0wVSa.js +83 -0
  38. package/{Label-BG7G0iyG.js → Label-C5TNJ0Ku.js} +1 -1
  39. package/{Label-C00qz3kQ.cjs → Label-Dp85Vue3.cjs} +1 -1
  40. package/{Layout-CG-Qxr_1.js → Layout-B-A-s7B0.js} +156 -156
  41. package/Layout-DlE30BHE.cjs +16 -0
  42. package/Link-ePZ3nrAW.cjs +6 -0
  43. package/{Link-BtxKZ0h3.js → Link-lO-Ke97K.js} +20 -20
  44. package/{LinkButton-D3EnZ65v.js → LinkButton-CJyZh3BS.js} +26 -26
  45. package/LinkButton-Cw73pOM2.cjs +6 -0
  46. package/{ListBoxLoadMoreItem-Ceo73a2q.cjs → ListBoxLoadMoreItem-3jGpi90m.cjs} +1 -1
  47. package/{ListBoxLoadMoreItem-W11V-Lef.js → ListBoxLoadMoreItem-CIFJ3liN.js} +2 -2
  48. package/{ListBoxSection-BCPv9H50.js → ListBoxSection-BBY8-t3_.js} +11 -11
  49. package/{ListBoxSection-Dx75ZinL.cjs → ListBoxSection-BeDwnVZx.cjs} +1 -1
  50. package/{ProgressBar-CdXHEJh6.js → ProgressBar-BYb9d2kC.js} +1 -1
  51. package/{ProgressBar-CjuHokVZ.cjs → ProgressBar-CgbE08QT.cjs} +1 -1
  52. package/{Radio-Bll-7H8O.cjs → Radio-BagVPvJX.cjs} +1 -1
  53. package/{Radio-DoWx2AE1.js → Radio-C98ly9yx.js} +14 -14
  54. package/{RangeCalendar-D7eFVAPP.js → RangeCalendar-Bi9jc61A.js} +61 -61
  55. package/{RangeCalendar-A4WQIG7P.cjs → RangeCalendar-KcJooXYf.cjs} +2 -2
  56. package/{SearchField-BbrUZpQm.cjs → SearchField-BA-X9dzb.cjs} +2 -2
  57. package/{SearchField-F2FKgYds.js → SearchField-BevjTbcW.js} +46 -46
  58. package/{Select-Dpi3LhbI.js → Select-BECa8IyZ.js} +112 -112
  59. package/Select-xBp51JSl.cjs +1 -0
  60. package/Skeleton-Iovq135_.js +35 -0
  61. package/Skeleton-MaBUPqhT.cjs +1 -0
  62. package/{Spinner-DTKb_LAA.js → Spinner-BZ7i01Kt.js} +13 -13
  63. package/Spinner-DxWDMW6e.cjs +6 -0
  64. package/TabList-3fErCDyP.cjs +1 -0
  65. package/{TabList-D9tl2s85.js → TabList-CXaxruLg.js} +54 -54
  66. package/{Table-CkN3y69S.js → Table-BzJktg2G.js} +2 -2
  67. package/{Table-C6k3PiiC.cjs → Table-Dyqa6_rE.cjs} +2 -2
  68. package/{Tag-BUJ20HHw.js → Tag-BYUPXbhG.js} +1 -1
  69. package/{Tag-7dHEMQum.cjs → Tag-BweDKw1v.cjs} +1 -1
  70. package/{TextArea-BCikUXaD.cjs → TextArea-BTmzOUZd.cjs} +1 -1
  71. package/{TextArea-h5_oBQH1.js → TextArea-CSNrZCEO.js} +22 -23
  72. package/TextField.module-CH39P8ZE.js +13 -0
  73. package/TextField.module-gJ-ruFra.cjs +1 -0
  74. package/{Toast-BBkWczCk.js → Toast-B74PMVL9.js} +170 -172
  75. package/{Toast-DclaxvZM.cjs → Toast-Cs0CEbRr.cjs} +1 -1
  76. package/{ToggleButtonGroup-BGG64PK1.js → ToggleButtonGroup-CwHPu7w5.js} +1 -1
  77. package/{ToggleButtonGroup-Da330GRT.cjs → ToggleButtonGroup-DY9S3USc.cjs} +1 -1
  78. package/accordion/index.cjs +1 -1
  79. package/accordion/index.js +1 -1
  80. package/assets/AccordionItem.css +1 -1
  81. package/assets/Button.css +1 -1
  82. package/assets/ButtonGroup.css +1 -1
  83. package/assets/Card.css +1 -1
  84. package/assets/Checkbox.css +1 -1
  85. package/assets/ComboBox.css +1 -1
  86. package/assets/DateInputDivider.css +1 -1
  87. package/assets/DateRangePicker.css +1 -1
  88. package/assets/Dialog.css +1 -1
  89. package/assets/GridItem.css +1 -1
  90. package/assets/InfoBanner.css +1 -1
  91. package/assets/Layout.css +1 -1
  92. package/assets/Link.css +1 -1
  93. package/assets/LinkButton.css +1 -1
  94. package/assets/ListBoxSection.css +1 -1
  95. package/assets/Radio.css +1 -1
  96. package/assets/RangeCalendar.css +1 -1
  97. package/assets/SearchField.css +1 -1
  98. package/assets/Select.css +1 -1
  99. package/assets/Skeleton.css +1 -1
  100. package/assets/Spinner.css +1 -1
  101. package/assets/TabList.css +1 -1
  102. package/assets/Table.css +1 -1
  103. package/assets/TextField.css +1 -1
  104. package/assets/Toast.css +1 -1
  105. package/assets/default.css +1 -0
  106. package/breadcrumbs/index.cjs +1 -1
  107. package/breadcrumbs/index.js +1 -1
  108. package/button/index.cjs +1 -1
  109. package/button/index.js +2 -2
  110. package/calendar/index.cjs +1 -1
  111. package/calendar/index.js +1 -1
  112. package/card/index.cjs +1 -1
  113. package/card/index.js +1 -1
  114. package/checkbox/index.cjs +1 -1
  115. package/checkbox/index.js +2 -2
  116. package/color-scheme-switch/index.cjs +1 -1
  117. package/color-scheme-switch/index.js +1 -1
  118. package/combobox/index.cjs +1 -1
  119. package/combobox/index.js +1 -1
  120. package/date-field/index.cjs +1 -1
  121. package/date-field/index.js +2 -2
  122. package/date-picker/index.cjs +1 -1
  123. package/date-picker/index.js +1 -1
  124. package/dropdown/index.cjs +1 -1
  125. package/dropdown/index.js +1 -1
  126. package/grid/index.cjs +1 -1
  127. package/grid/index.js +2 -2
  128. package/index.cjs +1 -1
  129. package/index.js +143 -144
  130. package/info-banner/index.cjs +1 -1
  131. package/info-banner/index.js +1 -1
  132. package/label/index.cjs +1 -1
  133. package/label/index.js +1 -1
  134. package/layout/index.cjs +1 -1
  135. package/layout/index.js +1 -1
  136. package/link/index.cjs +1 -1
  137. package/link/index.js +1 -1
  138. package/link-button/index.cjs +1 -1
  139. package/link-button/index.js +1 -1
  140. package/list-box/index.cjs +1 -1
  141. package/list-box/index.js +2 -2
  142. package/modal/index.cjs +1 -1
  143. package/modal/index.js +1 -1
  144. package/package.json +4 -14
  145. package/progress-bar/index.cjs +1 -1
  146. package/progress-bar/index.js +1 -1
  147. package/radio/index.cjs +1 -1
  148. package/radio/index.js +1 -1
  149. package/search-field/index.cjs +1 -1
  150. package/search-field/index.js +1 -1
  151. package/select/index.cjs +1 -1
  152. package/select/index.js +1 -1
  153. package/skeleton/index.cjs +1 -1
  154. package/skeleton/index.js +1 -1
  155. package/spinner/index.cjs +1 -1
  156. package/spinner/index.js +1 -1
  157. package/table/index.cjs +1 -1
  158. package/table/index.js +1 -1
  159. package/tabs/index.cjs +1 -1
  160. package/tabs/index.js +1 -1
  161. package/tag/index.cjs +1 -1
  162. package/tag/index.js +1 -1
  163. package/textfield/TextArea.d.ts +2 -7
  164. package/textfield/TextField.d.ts +2 -6
  165. package/textfield/index.cjs +1 -1
  166. package/textfield/index.js +1 -1
  167. package/toast/index.cjs +1 -1
  168. package/toast/index.js +1 -1
  169. package/toggle-button/index.cjs +1 -1
  170. package/toggle-button/index.js +1 -1
  171. package/variables-B3KEYyhW.cjs +1 -0
  172. package/variables-DzXcMW2k.js +5 -0
  173. package/AccordionItem-SOfjXh3V.cjs +0 -1
  174. package/Button.module-BNLcvARn.cjs +0 -1
  175. package/Button.module-Bax2YU6N.js +0 -14
  176. package/Card-BDDyGAMA.js +0 -131
  177. package/Card-mj5lCIR4.cjs +0 -1
  178. package/GridItem-CIVF1fRW.cjs +0 -1
  179. package/GridItem-D3FZyyO-.js +0 -243
  180. package/InfoBanner-CqjnTYaa.cjs +0 -1
  181. package/InfoBanner-CrA8MS3v.js +0 -83
  182. package/Layout-Bta_Cpq_.cjs +0 -16
  183. package/Link-Bx6avHVl.cjs +0 -6
  184. package/LinkButton-BvXu6vAH.cjs +0 -6
  185. package/Select-BnbDXwgD.cjs +0 -1
  186. package/Skeleton-BpYj25p8.js +0 -37
  187. package/Skeleton-DMOxEwnd.cjs +0 -1
  188. package/Spinner-D1UBuLy4.cjs +0 -6
  189. package/TabList-D4WwgQY3.cjs +0 -1
  190. package/TextField.module-C9Zm9unF.js +0 -13
  191. package/TextField.module-GTQtNO0r.cjs +0 -1
  192. package/assets/global.css +0 -1
  193. package/assets/theme.css +0 -1
  194. package/assets/variables.css +0 -1
  195. package/theme/generated-object.d.ts +0 -384
  196. package/theme/generated-tokens.d.ts +0 -334
  197. package/theme/index.cjs +0 -1
  198. package/theme/index.d.ts +0 -267
  199. package/theme/index.js +0 -4039
  200. package/theme/tokens.d.ts +0 -290
  201. package/tokens-B3FfJ-rY.cjs +0 -1
  202. package/tokens-B9ooUP4g.js +0 -327
@@ -1,24 +1,24 @@
1
1
  import { jsx as o, jsxs as p, Fragment as h } from "react/jsx-runtime";
2
- import { $ as w } from "./Link-CbFSuEI1.js";
3
- import { c as u } from "./clsx-OuTLNxxd.js";
4
- import { c as k } from "./createLucideIcon-XRdN60yz.js";
5
- import { S as x } from "./square-arrow-out-up-right-ok0A3Ovo.js";
6
- import { A as y } from "./arrow-right-uemUGIg8.js";
2
+ import { $ as u } from "./Link-CbFSuEI1.js";
3
+ import { c as k } from "./clsx-OuTLNxxd.js";
4
+ import { c as y } from "./createLucideIcon-XRdN60yz.js";
5
+ import { S as w } from "./square-arrow-out-up-right-ok0A3Ovo.js";
6
+ import { A as x } from "./arrow-right-uemUGIg8.js";
7
7
  import './assets/Link.css';/**
8
8
  * @license lucide-react v0.525.0 - ISC
9
9
  *
10
10
  * This source code is licensed under the ISC license.
11
11
  * See the LICENSE file in the root directory of this source tree.
12
12
  */
13
- const A = [
13
+ const b = [
14
14
  ["path", { d: "M12 17V3", key: "1cwfxf" }],
15
15
  ["path", { d: "m6 11 6 6 6-6", key: "12ii2o" }],
16
16
  ["path", { d: "M19 21H5", key: "150jfl" }]
17
- ], L = k("arrow-down-to-line", A), $ = "_link_1177w_4", j = "_icon_1177w_50", N = "_standalone_1177w_54", g = "_stretched_1177w_71", t = {
18
- link: $,
19
- icon: j,
20
- standalone: N,
21
- stretched: g
17
+ ], A = y("arrow-down-to-line", b), L = "_link_1byfm_1", $ = "_icon_1byfm_47", j = "_standalone_1byfm_51", N = "_stretched_1byfm_68", t = {
18
+ link: L,
19
+ icon: $,
20
+ standalone: j,
21
+ stretched: N
22
22
  }, D = ({
23
23
  children: i,
24
24
  standalone: r,
@@ -26,26 +26,26 @@ const A = [
26
26
  stretched: s,
27
27
  download: a,
28
28
  icon: e,
29
- className: d,
30
- as: l,
31
- ...m
29
+ className: m,
30
+ as: d,
31
+ ...f
32
32
  }) => {
33
- const _ = l || w, f = ({ ...n }) => e ? /* @__PURE__ */ o(e, { ...n }) : a ? /* @__PURE__ */ o(L, { ...n }) : c === "_blank" ? /* @__PURE__ */ o(x, { ...n }) : r ? /* @__PURE__ */ o(y, { ...n }) : null;
33
+ const l = d || u, _ = ({ ...n }) => e ? /* @__PURE__ */ o(e, { ...n }) : a ? /* @__PURE__ */ o(A, { ...n }) : c === "_blank" ? /* @__PURE__ */ o(w, { ...n }) : r ? /* @__PURE__ */ o(x, { ...n }) : null;
34
34
  return /* @__PURE__ */ o(
35
- _,
35
+ l,
36
36
  {
37
- className: u(
37
+ className: k(
38
38
  t.link,
39
39
  r && t.standalone,
40
40
  s && t.stretched,
41
- d
41
+ m
42
42
  ),
43
- ...m,
43
+ ...f,
44
44
  target: c,
45
45
  children: /* @__PURE__ */ p(h, { children: [
46
46
  i,
47
47
  /* @__PURE__ */ o(
48
- f,
48
+ _,
49
49
  {
50
50
  size: 16,
51
51
  className: t.icon
@@ -1,8 +1,8 @@
1
- import { jsxs as u, jsx as c } from "react/jsx-runtime";
2
- import { $ as w } from "./Link-CbFSuEI1.js";
1
+ import { jsxs as f, jsx as e } from "react/jsx-runtime";
2
+ import { $ as g } from "./Link-CbFSuEI1.js";
3
3
  import { c as y } from "./clsx-OuTLNxxd.js";
4
4
  import { S as p } from "./square-arrow-out-up-right-ok0A3Ovo.js";
5
- import { c as g } from "./createLucideIcon-XRdN60yz.js";
5
+ import { c as q } from "./createLucideIcon-XRdN60yz.js";
6
6
  import { A as h } from "./arrow-right-uemUGIg8.js";
7
7
  import './assets/LinkButton.css';/**
8
8
  * @license lucide-react v0.525.0 - ISC
@@ -13,30 +13,30 @@ import './assets/LinkButton.css';/**
13
13
  const B = [
14
14
  ["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
15
15
  ["path", { d: "M19 12H5", key: "x3x0zl" }]
16
- ], k = g("arrow-left", B), L = "_linkButton_11cmw_4", x = "_secondary_11cmw_55", A = "_icon_11cmw_60", $ = "_tertiary_11cmw_85", N = "_danger_11cmw_102", j = "_iconBtn_11cmw_119", z = "_medium_11cmw_141", R = "_iconLeft_11cmw_146", S = "_fullwidth_11cmw_150", t = {
17
- linkButton: L,
18
- secondary: x,
19
- icon: A,
20
- tertiary: $,
21
- danger: N,
22
- iconBtn: j,
23
- medium: z,
24
- iconLeft: R,
25
- fullwidth: S
16
+ ], k = q("arrow-left", B), w = "_linkButton_u9egq_1", L = "_secondary_u9egq_52", x = "_icon_u9egq_57", A = "_tertiary_u9egq_82", $ = "_danger_u9egq_99", N = "_iconBtn_u9egq_116", j = "_medium_u9egq_138", z = "_iconLeft_u9egq_143", R = "_fullwidth_u9egq_147", t = {
17
+ linkButton: w,
18
+ secondary: L,
19
+ icon: x,
20
+ tertiary: A,
21
+ danger: $,
22
+ iconBtn: N,
23
+ medium: j,
24
+ iconLeft: z,
25
+ fullwidth: R
26
26
  }, U = ({
27
- children: e,
27
+ children: i,
28
28
  variant: o,
29
- fullwidth: m,
29
+ fullwidth: s,
30
30
  icon: r,
31
- iconPlacement: i,
32
- className: s,
31
+ iconPlacement: c,
32
+ className: u,
33
33
  as: _,
34
34
  size: a = "large",
35
35
  ...d
36
36
  }) => {
37
- const l = _ || w, f = ({ ...n }) => r ? /* @__PURE__ */ c(r, { ...n }) : n.target === "_blank" ? /* @__PURE__ */ c(p, { ...n }) : i === "left" ? /* @__PURE__ */ c(k, { ...n }) : /* @__PURE__ */ c(h, { ...n });
38
- return /* @__PURE__ */ u(
39
- l,
37
+ const m = _ || g, l = ({ ...n }) => r ? /* @__PURE__ */ e(r, { ...n }) : n.target === "_blank" ? /* @__PURE__ */ e(p, { ...n }) : c === "left" ? /* @__PURE__ */ e(k, { ...n }) : /* @__PURE__ */ e(h, { ...n });
38
+ return /* @__PURE__ */ f(
39
+ m,
40
40
  {
41
41
  className: y(
42
42
  t.linkButton,
@@ -46,15 +46,15 @@ const B = [
46
46
  o === "danger" && t.danger,
47
47
  o === "icon" && t.iconBtn,
48
48
  a === "medium" && t.medium,
49
- m && t.fullwidth,
50
- i === "left" && t.iconLeft,
51
- s
49
+ s && t.fullwidth,
50
+ c === "left" && t.iconLeft,
51
+ u
52
52
  ),
53
53
  ...d,
54
54
  children: [
55
- e,
56
- /* @__PURE__ */ c(
57
- f,
55
+ i,
56
+ /* @__PURE__ */ e(
57
+ l,
58
58
  {
59
59
  size: 20,
60
60
  className: t.icon
@@ -0,0 +1,6 @@
1
+ "use strict";require('./assets/LinkButton.css');const e=require("react/jsx-runtime"),q=require("./Link-wM7cVPlS.cjs"),f=require("./clsx-C11secjj.cjs"),m=require("./square-arrow-out-up-right-xCFdJTzY.cjs"),y=require("./createLucideIcon-CTVXwe6i.cjs"),x=require("./arrow-right-BGd86zzR.cjs");/**
2
+ * @license lucide-react v0.525.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const h=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],k=y.createLucideIcon("arrow-left",h),w="_linkButton_u9egq_1",B="_secondary_u9egq_52",L="_icon_u9egq_57",j="_tertiary_u9egq_82",p="_danger_u9egq_99",R="_iconBtn_u9egq_116",A="_medium_u9egq_138",N="_iconLeft_u9egq_143",$="_fullwidth_u9egq_147",t={linkButton:w,secondary:B,icon:L,tertiary:j,danger:p,iconBtn:R,medium:A,iconLeft:N,fullwidth:$},z=({children:i,variant:n,fullwidth:u,icon:o,iconPlacement:c,className:s,as:_,size:d="large",...a})=>{const l=_||q.$4f118338184dc1d9$export$a6c7ac8248d6e38a,g=({...r})=>o?e.jsx(o,{...r}):r.target==="_blank"?e.jsx(m.SquareArrowOutUpRight,{...r}):c==="left"?e.jsx(k,{...r}):e.jsx(x.ArrowRight,{...r});return e.jsxs(l,{className:f.clsx(t.linkButton,n==="primary"&&t.primary,n==="secondary"&&t.secondary,n==="tertiary"&&t.tertiary,n==="danger"&&t.danger,n==="icon"&&t.iconBtn,d==="medium"&&t.medium,u&&t.fullwidth,c==="left"&&t.iconLeft,s),...a,children:[i,e.jsx(g,{size:20,className:t.icon})]})};exports.LinkButton=z;
@@ -1 +1 @@
1
- "use strict";const t=require("react/jsx-runtime"),r=require("./clsx-C11secjj.cjs"),n=require("./ListBoxSection-Dx75ZinL.cjs"),c=require("./ListBox-ICZKGluC.cjs"),l=require("./Spinner-D1UBuLy4.cjs"),d=require("./useLocalizedStringFormatter-BO2iZEL0.cjs"),x=({className:s,children:e,...o})=>t.jsx("button",{type:"button",className:r.clsx(n.styles.listBoxItem,n.styles.listBoxButton,s),...o,children:e}),u={"loading...":"Loading..."},m={"loading...":"Laddar..."},L={en:u,sv:m},B=({className:s,children:e,isLoading:o,...i})=>{const a=d.useLocalizedStringFormatter(L);return t.jsx(c.$eed445e0843c11d0$export$8e6d031a08cf56a1,{className:r.clsx(n.styles.listBoxLoadMoreItem,s),isLoading:o,...i,children:e||t.jsxs(t.Fragment,{children:[t.jsx(l.Spinner,{small:!0}),t.jsx("span",{"aria-hidden":!0,children:a.format("loading...")})]})})};exports.ListBoxButton=x;exports.ListBoxLoadMoreItem=B;
1
+ "use strict";const t=require("react/jsx-runtime"),r=require("./clsx-C11secjj.cjs"),n=require("./ListBoxSection-BeDwnVZx.cjs"),c=require("./ListBox-ICZKGluC.cjs"),l=require("./Spinner-DxWDMW6e.cjs"),d=require("./useLocalizedStringFormatter-BO2iZEL0.cjs"),x=({className:s,children:e,...o})=>t.jsx("button",{type:"button",className:r.clsx(n.styles.listBoxItem,n.styles.listBoxButton,s),...o,children:e}),u={"loading...":"Loading..."},m={"loading...":"Laddar..."},L={en:u,sv:m},B=({className:s,children:e,isLoading:o,...i})=>{const a=d.useLocalizedStringFormatter(L);return t.jsx(c.$eed445e0843c11d0$export$8e6d031a08cf56a1,{className:r.clsx(n.styles.listBoxLoadMoreItem,s),isLoading:o,...i,children:e||t.jsxs(t.Fragment,{children:[t.jsx(l.Spinner,{small:!0}),t.jsx("span",{"aria-hidden":!0,children:a.format("loading...")})]})})};exports.ListBoxButton=x;exports.ListBoxLoadMoreItem=B;
@@ -1,8 +1,8 @@
1
1
  import { jsx as t, jsxs as m, Fragment as d } from "react/jsx-runtime";
2
2
  import { c as e } from "./clsx-OuTLNxxd.js";
3
- import { s as a } from "./ListBoxSection-BCPv9H50.js";
3
+ import { s as a } from "./ListBoxSection-BBY8-t3_.js";
4
4
  import { $ as c } from "./ListBox-LncMQt6I.js";
5
- import { S as l } from "./Spinner-DTKb_LAA.js";
5
+ import { S as l } from "./Spinner-BZ7i01Kt.js";
6
6
  import { u as p } from "./useLocalizedStringFormatter-N0AyjzbM.js";
7
7
  const S = ({ className: o, children: s, ...r }) => /* @__PURE__ */ t(
8
8
  "button",
@@ -1,7 +1,7 @@
1
1
  import { jsx as k, jsxs as ne } from "react/jsx-runtime";
2
2
  import { a as se, b as re, c as ae } from "./ListBox-LncMQt6I.js";
3
3
  import { g as he, m as de } from "./Collection-B0_WAieZ.js";
4
- import w, { useState as $, useRef as C, useMemo as L, useCallback as z, useEffect as ce, createContext as F, useContext as j } from "react";
4
+ import w, { useState as $, useRef as C, useMemo as L, useCallback as z, useEffect as ce, createContext as A, useContext as F } from "react";
5
5
  import { $ as V, d as ue } from "./mergeProps-BSsN7Bgk.js";
6
6
  import { $ as U } from "./context-CGNJ3grH.js";
7
7
  import { flushSync as B } from "react-dom";
@@ -871,9 +871,9 @@ function J(n) {
871
871
  }
872
872
  }, s);
873
873
  }
874
- let X = /* @__PURE__ */ new WeakMap();
874
+ let j = /* @__PURE__ */ new WeakMap();
875
875
  function ke(n, e, t) {
876
- let i = e === "rtl" ? "right" : "left", l = X.get(n);
876
+ let i = e === "rtl" ? "right" : "left", l = j.get(n);
877
877
  if (l && l[i] != null) {
878
878
  if (!t) return l;
879
879
  let h = n.rect.y - t.rect.y, r = n.rect.x - t.rect.x;
@@ -904,9 +904,9 @@ function ke(n, e, t) {
904
904
  contain: "size layout style",
905
905
  ...o
906
906
  };
907
- return X.set(n, a), a;
907
+ return j.set(n, a), a;
908
908
  }
909
- const Q = /* @__PURE__ */ F(null), Z = /* @__PURE__ */ F(null);
909
+ const Q = /* @__PURE__ */ A(null), Z = /* @__PURE__ */ A(null);
910
910
  function Le(n) {
911
911
  let { children: e, layout: t, layoutOptions: i } = n, l = L(() => typeof t == "function" ? new t() : t, [
912
912
  t
@@ -930,7 +930,7 @@ function Le(n) {
930
930
  }
931
931
  function Ne({ collection: n, persistedKeys: e, scrollRef: t, renderDropIndicator: i }) {
932
932
  var l;
933
- let { layout: o, layoutOptions: s } = j(Z), a = (l = o.useLayoutOptions) === null || l === void 0 ? void 0 : l.call(o), h = Re({
933
+ let { layout: o, layoutOptions: s } = F(Z), a = (l = o.useLayoutOptions) === null || l === void 0 ? void 0 : l.call(o), h = Re({
934
934
  layout: o,
935
935
  collection: n,
936
936
  renderView: (d, c) => {
@@ -960,7 +960,7 @@ function Ne({ collection: n, persistedKeys: e, scrollRef: t, renderDropIndicator
960
960
  }, ee(null, h.visibleViews, i)));
961
961
  }
962
962
  function Te({ parent: n, renderDropIndicator: e }) {
963
- let i = j(Q).virtualizer.getVisibleView(n.key);
963
+ let i = F(Q).virtualizer.getVisibleView(n.key);
964
964
  return ee(i, Array.from(i.children), e);
965
965
  }
966
966
  function ee(n, e, t) {
@@ -975,13 +975,13 @@ function Ee(n, e, t) {
975
975
  }, e.rendered), { collection: l, layout: o } = e.virtualizer, s = e.content;
976
976
  return (s == null ? void 0 : s.type) === "item" && t && o.getDropTargetLayoutInfo && (i = /* @__PURE__ */ w.createElement(w.Fragment, {
977
977
  key: e.key
978
- }, A(n, e, {
978
+ }, X(n, e, {
979
979
  type: "item",
980
980
  key: e.content.key,
981
981
  dropPosition: "before"
982
- }, t), i, de(l, s, (a) => A(n, e, a, t)))), i;
982
+ }, t), i, de(l, s, (a) => X(n, e, a, t)))), i;
983
983
  }
984
- function A(n, e, t, i) {
984
+ function X(n, e, t, i) {
985
985
  let l = i(t);
986
986
  if (l) {
987
987
  let o = e.virtualizer.layout.getDropTargetLayoutInfo(t);
@@ -1018,7 +1018,7 @@ class Ve extends Se {
1018
1018
  }), this.contentSize;
1019
1019
  }
1020
1020
  }
1021
- const Me = "_listBox_1ns4v_7", Oe = "_listBoxPopover_1ns4v_19", Pe = "_listBoxSectionHeading_1ns4v_34", Be = "_listBoxButton_1ns4v_44", Ke = "_listBoxItem_1ns4v_56", qe = "_listBoxLoadMoreItem_1ns4v_101", M = {
1021
+ const Me = "_listBox_ep33j_4", Oe = "_listBoxPopover_ep33j_16", Pe = "_listBoxSectionHeading_ep33j_31", Be = "_listBoxButton_ep33j_41", Ke = "_listBoxItem_ep33j_53", qe = "_listBoxLoadMoreItem_ep33j_98", M = {
1022
1022
  listBox: Me,
1023
1023
  listBoxPopover: Oe,
1024
1024
  listBoxSectionHeading: Pe,
@@ -1 +1 @@
1
- "use strict";require('./assets/ListBoxSection.css');const S=require("react/jsx-runtime"),V=require("./ListBox-ICZKGluC.cjs"),W=require("./Collection-BvWp2xBd.cjs"),c=require("react"),C=require("./mergeProps-JhcJ7uJL.cjs"),X=require("./context-Df3XbgBG.cjs"),M=require("react-dom"),te=require("./OverlayArrow-ByH6lM-H.cjs"),B=require("./useEvent-3ZO5TPSH.cjs"),O=require("./clsx-C11secjj.cjs"),K=require("./SelectionManager-BtbHoHpA.cjs"),ie=require("./Dialog-DR6nEqMT.cjs"),le=require("./Separator-Dgin8BNW.cjs");class oe{shouldInvalidate(e,t){return e.width!==t.width||e.height!==t.height}shouldInvalidateLayoutOptions(e,t){return e!==t}update(e){}getItemRect(e){var t,i;return(i=(t=this.getLayoutInfo(e))===null||t===void 0?void 0:t.rect)!==null&&i!==void 0?i:null}getVisibleRect(){return this.virtualizer.visibleRect}constructor(){this.virtualizer=null}}class b{copy(){let e=new b(this.type,this.key,this.rect.copy());return e.estimatedSize=this.estimatedSize,e.opacity=this.opacity,e.transform=this.transform,e.parentKey=this.parentKey,e.content=this.content,e.isSticky=this.isSticky,e.zIndex=this.zIndex,e.allowOverflow=this.allowOverflow,e}constructor(e,t,i){this.type=e,this.key=t,this.parentKey=null,this.content=null,this.rect=i,this.estimatedSize=!1,this.isSticky=!1,this.opacity=1,this.transform=null,this.zIndex=0,this.allowOverflow=!1}}class x{copy(){return new x(this.x,this.y)}equals(e){return this.x===e.x&&this.y===e.y}isOrigin(){return this.x===0&&this.y===0}constructor(e=0,t=0){this.x=e,this.y=t}}class g{get maxX(){return this.x+this.width}get maxY(){return this.y+this.height}get area(){return this.width*this.height}get topLeft(){return new x(this.x,this.y)}get topRight(){return new x(this.maxX,this.y)}get bottomLeft(){return new x(this.x,this.maxY)}get bottomRight(){return new x(this.maxX,this.maxY)}intersects(e){return(process.env.NODE_ENV==="test"&&!process.env.VIRT_ON||this.area>0&&e.area>0)&&this.x<=e.x+e.width&&e.x<=this.x+this.width&&this.y<=e.y+e.height&&e.y<=this.y+this.height}containsRect(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.maxX&&this.maxY>=e.maxY}containsPoint(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.x&&this.maxY>=e.y}getCornerInRect(e){for(let t of["topLeft","topRight","bottomLeft","bottomRight"])if(e.containsPoint(this[t]))return t;return null}equals(e){return e.x===this.x&&e.y===this.y&&e.width===this.width&&e.height===this.height}pointEquals(e){return this.x===e.x&&this.y===e.y}sizeEquals(e){return this.width===e.width&&this.height===e.height}union(e){let t=Math.min(this.x,e.x),i=Math.min(this.y,e.y),l=Math.max(this.maxX,e.maxX)-t,o=Math.max(this.maxY,e.maxY)-i;return new g(t,i,l,o)}intersection(e){if(!this.intersects(e))return new g(0,0,0,0);let t=Math.max(this.x,e.x),i=Math.max(this.y,e.y);return new g(t,i,Math.min(this.maxX,e.maxX)-t,Math.min(this.maxY,e.maxY)-i)}copy(){return new g(this.x,this.y,this.width,this.height)}constructor(e=0,t=0,i=0,l=0){this.x=e,this.y=t,this.width=i,this.height=l}}class z{copy(){return new z(this.width,this.height)}equals(e){return this.width===e.width&&this.height===e.height}get area(){return this.width*this.height}constructor(e=0,t=0){this.width=Math.max(e,0),this.height=Math.max(t,0)}}let ne=0;class j{prepareForReuse(){this.content=null,this.rendered=null,this.layoutInfo=null}getReusableView(e){let t=this.reusableViews.get(e);return t&&t.length>0?t.shift():new re(this.virtualizer,this,e)}reuseChild(e){e.prepareForReuse();let t=this.reusableViews.get(e.viewType);t||(t=[],this.reusableViews.set(e.viewType,t)),t.push(e)}constructor(e,t){this.virtualizer=e,this.key=++ne,this.viewType=t,this.children=new Set,this.reusableViews=new Map,this.layoutInfo=null,this.content=null,this.rendered=null}}class se extends j{constructor(e){super(e,"root")}}class re extends j{constructor(e,t,i){super(e,i),this.parent=t}}function ae(n,e){if(n===e)return!0;if(n.size!==e.size)return!1;for(let t of n)if(!e.has(t))return!1;return!0}class he{setVisibleRect(e){let t=performance.now()-this.startTime;t<500&&(e.x!==this.visibleRect.x&&t>0&&(this.velocity.x=(e.x-this.visibleRect.x)/t),e.y!==this.visibleRect.y&&t>0&&(this.velocity.y=(e.y-this.visibleRect.y)/t)),this.startTime=performance.now(),this.visibleRect=e}getOverscannedRect(){let e=this.visibleRect.copy(),t=this.visibleRect.height/3;if(e.height+=t,this.velocity.y<0&&(e.y-=t),this.velocity.x!==0){let i=this.visibleRect.width/3;e.width+=i,this.velocity.x<0&&(e.x-=i)}return e}constructor(){this.startTime=0,this.velocity=new x(0,0),this.visibleRect=new g}}class de{isPersistedKey(e){if(this.persistedKeys.has(e))return!0;for(let t of this.persistedKeys)for(;t!=null;){let i=this.layout.getLayoutInfo(t);if(!i||i.parentKey==null)break;if(t=i.parentKey,t===e)return!0}return!1}getParentView(e){return e.parentKey!=null?this._visibleViews.get(e.parentKey):this._rootView}getReusableView(e){let i=this.getParentView(e).getReusableView(e.type);return i.layoutInfo=e,this._renderView(i),i}_renderView(e){if(e.layoutInfo){let{type:t,key:i,content:l}=e.layoutInfo;e.content=l||this.collection.getItem(i),e.rendered=this._renderContent(t,e.content)}}_renderContent(e,t){let i=t!=null?this._renderedContent.get(t):null;if(i!=null)return i;let l=this.delegate.renderView(e,t);return t&&this._renderedContent.set(t,l),l}keyAtPoint(e){let t=new g(e.x,e.y,1,1),i=t.area===0?[]:this.layout.getVisibleLayoutInfos(t);for(let l of i)if(l.rect.intersects(t))return l.key;return null}relayout(e={}){this.layout.update(e),this.contentSize=this.layout.getContentSize();let t=this.visibleRect,i=e.contentChanged?0:t.x,l=e.contentChanged?0:t.y;if(i=Math.max(0,Math.min(this.contentSize.width-t.width,i)),l=Math.max(0,Math.min(this.contentSize.height-t.height,l)),i!==t.x||l!==t.y){let o=new g(i,l,t.width,t.height);this.delegate.setVisibleRect(o)}else this.updateSubviews()}getVisibleLayoutInfos(){let e=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,t=e&&typeof HTMLElement<"u"&&Object.getOwnPropertyNames(HTMLElement.prototype).includes("clientWidth"),i=e&&typeof HTMLElement<"u"&&Object.getOwnPropertyNames(HTMLElement.prototype).includes("clientHeight"),l;e&&!(t&&i)?l=new g(0,0,this.contentSize.width,this.contentSize.height):l=this._overscanManager.getOverscannedRect();let o=this.layout.getVisibleLayoutInfos(l),s=new Map;for(let a of o)s.set(a.key,a);return s}updateSubviews(){let e=this.getVisibleLayoutInfos(),t=new Set;for(let[i,l]of this._visibleViews){let o=e.get(i);(!o||l.parent!==this.getParentView(o))&&(this._visibleViews.delete(i),l.parent.reuseChild(l),t.add(l))}for(let[i,l]of e){let o=this._visibleViews.get(i);if(!o)o=this.getReusableView(l),o.parent.children.add(o),this._visibleViews.set(i,o),t.delete(o);else{o.layoutInfo=l;let s=this.collection.getItem(l.key);o.content!==s&&(o.content!=null&&this._renderedContent.delete(o.content),this._renderView(o))}}for(let i of t)i.parent.children.delete(i),i.parent.reusableViews.clear();if(!this._isScrolling)for(let i of e.keys()){let l=this._visibleViews.get(i);l.parent.children.delete(l),l.parent.children.add(l)}}render(e){let t=this,i=!1,l=!1,o=!1,s=!1,a=!1,h=!1;return e.collection!==this.collection&&(t.collection=e.collection,i=!0),(e.layout!==this.layout||this.layout.virtualizer!==this)&&(this.layout&&(this.layout.virtualizer=null),e.layout.virtualizer=this,t.layout=e.layout,i=!0),e.persistedKeys&&!ae(e.persistedKeys,this.persistedKeys)&&(t.persistedKeys=e.persistedKeys,h=!0),this.visibleRect.equals(e.visibleRect)||(this._overscanManager.setVisibleRect(e.visibleRect),this.layout.shouldInvalidate(e.visibleRect,this.visibleRect)?(l=!e.visibleRect.pointEquals(this.visibleRect),o=!e.visibleRect.sizeEquals(this.visibleRect),i=!0):h=!0,t.visibleRect=e.visibleRect),e.invalidationContext!==this._invalidationContext&&(e.invalidationContext&&(o||(o=e.invalidationContext.sizeChanged||!1),l||(l=e.invalidationContext.offsetChanged||!1),s||(s=e.invalidationContext.itemSizeChanged||!1),a||(a=e.invalidationContext.layoutOptions!=null&&this._invalidationContext.layoutOptions!=null&&e.invalidationContext.layoutOptions!==this._invalidationContext.layoutOptions&&this.layout.shouldInvalidateLayoutOptions(e.invalidationContext.layoutOptions,this._invalidationContext.layoutOptions)),i||(i=s||o||l||a)),this._invalidationContext=e.invalidationContext),e.isScrolling!==this._isScrolling&&(this._isScrolling=e.isScrolling,e.isScrolling||(h=!0)),i?this.relayout({offsetChanged:l,sizeChanged:o,itemSizeChanged:s,layoutOptionsChanged:a,layoutOptions:this._invalidationContext.layoutOptions}):h&&this.updateSubviews(),Array.from(this._rootView.children)}getVisibleView(e){return this._visibleViews.get(e)}invalidate(e){this.delegate.invalidate(e)}updateItemSize(e,t){if(!this.layout.updateItemSize)return;this.layout.updateItemSize(e,t)&&this.invalidate({itemSizeChanged:!0})}constructor(e){this.delegate=e.delegate,this.collection=e.collection,this.layout=e.layout,this.contentSize=new z,this.visibleRect=new g,this.persistedKeys=new Set,this._visibleViews=new Map,this._renderedContent=new WeakMap,this._rootView=new se(this),this._isScrolling=!1,this._invalidationContext={},this._overscanManager=new he}}function ce(n){let[e,t]=c.useState(new g(0,0,0,0)),[i,l]=c.useState(!1),[o,s]=c.useState({}),a=c.useRef(!1),[h]=c.useState(()=>new de({collection:n.collection,layout:n.layout,delegate:{setVisibleRect(p){t(p),a.current=!0},renderView:n.renderView,invalidate:s}}));C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{a.current&&(a.current=!1,n.onVisibleRectChange(e))});let r=c.useMemo(()=>n.layoutOptions!=null?{...o,layoutOptions:n.layoutOptions}:o,[o,n.layoutOptions]),d=h.render({layout:n.layout,collection:n.collection,persistedKeys:n.persistedKeys,layoutOptions:n.layoutOptions,visibleRect:e,invalidationContext:r,isScrolling:i}),u=h.contentSize,f=c.useCallback(()=>{l(!0)},[]),y=c.useCallback(()=>{l(!1)},[]);return c.useMemo(()=>({virtualizer:h,visibleViews:d,setVisibleRect:t,contentSize:u,isScrolling:i,startScrolling:f,endScrolling:y}),[h,d,t,u,i,f,y])}const $=48;class ue extends oe{get collection(){return this.virtualizer.collection}getLayoutInfo(e){var t;return this.ensureLayoutInfo(e),((t=this.layoutNodes.get(e))===null||t===void 0?void 0:t.layoutInfo)||null}getVisibleLayoutInfos(e){if(e.height>1){var t,i;let s=((i=(t=this.rowHeight)!==null&&t!==void 0?t:this.estimatedRowHeight)!==null&&i!==void 0?i:$)+this.gap;e.y=Math.floor(e.y/s)*s,e.height=Math.ceil(e.height/s)*s}this.layoutIfNeeded(e);let l=[],o=s=>{for(let a of s)this.isVisible(a,e)&&(l.push(a.layoutInfo),a.children&&o(a.children))};return o(this.rootNodes),l}layoutIfNeeded(e){if(this.lastCollection){this.requestedRect.containsRect(e)||(this.requestedRect=this.requestedRect.union(e),this.rootNodes=this.buildCollection());for(let t of this.virtualizer.persistedKeys)if(this.ensureLayoutInfo(t))return}}ensureLayoutInfo(e){return!this.layoutNodes.has(e)&&this.requestedRect.area<this.contentSize.area&&this.lastCollection?(this.requestedRect=new g(0,0,1/0,1/0),this.rootNodes=this.buildCollection(),this.requestedRect=new g(0,0,this.contentSize.width,this.contentSize.height),!0):!1}isVisible(e,t){return e.layoutInfo.rect.intersects(t)||e.layoutInfo.isSticky||e.layoutInfo.type==="header"||e.layoutInfo.type==="loader"||this.virtualizer.isPersistedKey(e.layoutInfo.key)}shouldInvalidateEverything(e){let t=e.layoutOptions;var i,l,o,s,a;return e.sizeChanged||this.rowHeight!==((i=t==null?void 0:t.rowHeight)!==null&&i!==void 0?i:this.rowHeight)||this.headingHeight!==((l=t==null?void 0:t.headingHeight)!==null&&l!==void 0?l:this.headingHeight)||this.loaderHeight!==((o=t==null?void 0:t.loaderHeight)!==null&&o!==void 0?o:this.loaderHeight)||this.gap!==((s=t==null?void 0:t.gap)!==null&&s!==void 0?s:this.gap)||this.padding!==((a=t==null?void 0:t.padding)!==null&&a!==void 0?a:this.padding)}shouldInvalidateLayoutOptions(e,t){return e.rowHeight!==t.rowHeight||e.estimatedRowHeight!==t.estimatedRowHeight||e.headingHeight!==t.headingHeight||e.estimatedHeadingHeight!==t.estimatedHeadingHeight||e.loaderHeight!==t.loaderHeight||e.dropIndicatorThickness!==t.dropIndicatorThickness||e.gap!==t.gap||e.padding!==t.padding}update(e){let t=this.virtualizer.collection;this.invalidateEverything=this.shouldInvalidateEverything(e),this.invalidateEverything&&(this.requestedRect=this.virtualizer.visibleRect.copy(),this.layoutNodes.clear());let i=e.layoutOptions;var l;this.rowHeight=(l=i==null?void 0:i.rowHeight)!==null&&l!==void 0?l:this.rowHeight;var o;this.estimatedRowHeight=(o=i==null?void 0:i.estimatedRowHeight)!==null&&o!==void 0?o:this.estimatedRowHeight;var s;this.headingHeight=(s=i==null?void 0:i.headingHeight)!==null&&s!==void 0?s:this.headingHeight;var a;this.estimatedHeadingHeight=(a=i==null?void 0:i.estimatedHeadingHeight)!==null&&a!==void 0?a:this.estimatedHeadingHeight;var h;this.loaderHeight=(h=i==null?void 0:i.loaderHeight)!==null&&h!==void 0?h:this.loaderHeight;var r;this.dropIndicatorThickness=(r=i==null?void 0:i.dropIndicatorThickness)!==null&&r!==void 0?r:this.dropIndicatorThickness;var d;this.gap=(d=i==null?void 0:i.gap)!==null&&d!==void 0?d:this.gap;var u;if(this.padding=(u=i==null?void 0:i.padding)!==null&&u!==void 0?u:this.padding,this.rootNodes=this.buildCollection(),this.lastCollection&&t!==this.lastCollection)for(let f of this.lastCollection.getKeys())t.getItem(f)||this.layoutNodes.get(f)&&this.layoutNodes.delete(f);this.lastCollection=t,this.invalidateEverything=!1,this.validRect=this.requestedRect.copy()}buildCollection(e=this.padding){let t=this.virtualizer.collection,i=[...t],l=i.filter(r=>r.type==="loader"),o=[],s=(t==null?void 0:t.size)===0;s&&(e=0);for(let r of i){var a,h;let d=((h=(a=this.rowHeight)!==null&&a!==void 0?a:this.estimatedRowHeight)!==null&&h!==void 0?h:$)+this.gap;if(r.type==="item"&&e+d<this.requestedRect.y&&!this.isValid(r,e)){e+=d;continue}let u=this.buildChild(r,this.padding,e,null);if(e=u.layoutInfo.rect.maxY+this.gap,o.push(u),r.type==="loader"){let f=l.indexOf(r);l.splice(f,1)}if((r.type==="item"||r.type==="loader")&&e>this.requestedRect.maxY){let f=i.indexOf(r);for(let y of l){let v=i.indexOf(y);e+=(v-f-1)*d;let p=this.buildChild(y,this.padding,e,null);o.push(p),e=p.layoutInfo.rect.maxY,f=v}e+=(i.length-f-1)*d;break}}return e-=this.gap,e+=s?0:this.padding,this.contentSize=new z(this.virtualizer.visibleRect.width,e),o}isValid(e,t){let i=this.layoutNodes.get(e.key);return!this.invalidateEverything&&!!i&&i.node===e&&t===i.layoutInfo.rect.y&&i.layoutInfo.rect.intersects(this.validRect)&&i.validRect.containsRect(i.layoutInfo.rect.intersection(this.requestedRect))}buildChild(e,t,i,l){if(this.isValid(e,i))return this.layoutNodes.get(e.key);let o=this.buildNode(e,t,i);return o.layoutInfo.parentKey=l??null,o.layoutInfo.allowOverflow=!0,this.layoutNodes.set(e.key,o),o}buildNode(e,t,i){switch(e.type){case"section":return this.buildSection(e,t,i);case"item":return this.buildItem(e,t,i);case"header":return this.buildSectionHeader(e,t,i);case"loader":return this.buildLoader(e,t,i);case"separator":return this.buildItem(e,t,i);default:throw new Error("Unsupported node type: "+e.type)}}buildLoader(e,t,i){let l=new g(t,i,this.padding,0),o=new b("loader",e.key,l);l.width=this.virtualizer.contentSize.width-this.padding-t;var s,a,h;return l.height=e.props.isLoading?(h=(a=(s=this.loaderHeight)!==null&&s!==void 0?s:this.rowHeight)!==null&&a!==void 0?a:this.estimatedRowHeight)!==null&&h!==void 0?h:$:0,{layoutInfo:o,validRect:l.intersection(this.requestedRect)}}buildSection(e,t,i){let l=this.virtualizer.collection,o=this.virtualizer.visibleRect.width-this.padding,s=new g(t,i,o-t,0),a=new b(e.type,e.key,s),h=i,r=0,d=[];for(let y of K.$c5a24bc478652b5f$export$1005530eda016c13(e,l)){var u,f;let v=((f=(u=this.rowHeight)!==null&&u!==void 0?u:this.estimatedRowHeight)!==null&&f!==void 0?f:$)+this.gap;if(i+v<this.requestedRect.y&&!this.isValid(e,i)){i+=v,r++;continue}let p=this.buildChild(y,t,i,a.key);if(i=p.layoutInfo.rect.maxY+this.gap,d.push(p),i>this.requestedRect.maxY){i+=([...K.$c5a24bc478652b5f$export$1005530eda016c13(e,l)].length-(d.length+r))*v;break}}return i-=this.gap,s.height=i-h,{layoutInfo:a,children:d,validRect:a.rect.intersection(this.requestedRect),node:e}}buildSectionHeader(e,t,i){let l=this.virtualizer.visibleRect.width-this.padding,o=this.headingHeight,s=!1;if(o==null){let r=this.layoutNodes.get(e.key),d=r==null?void 0:r.layoutInfo;if(d){let u=this.virtualizer.collection.getItem(e.key),f=this.lastCollection?this.lastCollection.getItem(e.key):null;o=d.rect.height,s=l!==d.rect.width||u!==f||d.estimatedSize}else o=e.rendered?this.estimatedHeadingHeight:0,s=!0}o==null&&(o=$);let a=new g(t,i,l-t,o),h=new b("header",e.key,a);return h.estimatedSize=s,{layoutInfo:h,children:[],validRect:h.rect.intersection(this.requestedRect),node:e}}buildItem(e,t,i){let l=this.virtualizer.visibleRect.width-this.padding-t,o=this.rowHeight,s=!1;if(o==null){let r=this.layoutNodes.get(e.key);r?(o=r.layoutInfo.rect.height,s=l!==r.layoutInfo.rect.width||e!==r.node||r.layoutInfo.estimatedSize):(o=this.estimatedRowHeight,s=!0)}o==null&&(o=$);let a=new g(t,i,l,o),h=new b(e.type,e.key,a);return h.estimatedSize=s,{layoutInfo:h,children:[],validRect:h.rect,node:e}}updateItemSize(e,t){let i=this.layoutNodes.get(e);if(!i)return!1;let l=this.virtualizer.collection,o=i.layoutInfo;if(o.estimatedSize=!1,o.rect.height!==t.height){let s=o.copy();s.rect.height=t.height,i.layoutInfo=s,this.validRect.height=Math.min(this.validRect.height,o.rect.y-this.validRect.y),this.requestedRect.height+=s.rect.height-o.rect.height,this.updateLayoutNode(e,o,s);let a=o.parentKey!=null?l.getItem(o.parentKey):null;for(;a;)this.updateLayoutNode(a.key,o,s),a=a.parentKey!=null?l.getItem(a.parentKey):null;return!0}return!1}updateLayoutNode(e,t,i){let l=this.layoutNodes.get(e);l&&(l.validRect=l.validRect.intersection(this.validRect),l.layoutInfo===t&&(l.layoutInfo=i))}getContentSize(){return this.contentSize}getDropTargetFromPoint(e,t,i){e+=this.virtualizer.visibleRect.x,t+=this.virtualizer.visibleRect.y;let l=new g(e,Math.max(0,t-this.gap),1,Math.max(1,this.gap*2)),o=this.getVisibleLayoutInfos(l),s=null,a=1/0;for(let u of o){if(!u.rect.intersects(l))continue;let f=Math.abs(u.rect.y-t),y=Math.abs(u.rect.maxY-t),v=Math.min(f,y);v<a&&(a=v,s=u.key)}if(s==null||this.virtualizer.collection.size===0)return{type:"root"};let h=this.getLayoutInfo(s);if(!h)return null;let r=h.rect,d={type:"item",key:h.key,dropPosition:"on"};return i(d)?t<=r.y+10&&i({...d,dropPosition:"before"})?d.dropPosition="before":t>=r.maxY-10&&i({...d,dropPosition:"after"})&&(d.dropPosition="after"):t<=r.y+r.height/2&&i({...d,dropPosition:"before"})?d.dropPosition="before":i({...d,dropPosition:"after"})&&(d.dropPosition="after"),d}getDropTargetLayoutInfo(e){let t=this.getLayoutInfo(e.key),i;if(e.dropPosition==="before")i=new g(t.rect.x,Math.max(0,t.rect.y-this.dropIndicatorThickness/2),t.rect.width,this.dropIndicatorThickness);else if(e.dropPosition==="after"){let o=this.collection.getItem(e.key);if(o){var l;let s=(l=o.level)!==null&&l!==void 0?l:0,a=this.collection.getKeyAfter(e.key);for(;a!=null;){let h=this.collection.getItem(a);if(!h||h.level<=s)break;t=this.getLayoutInfo(a)||t,a=this.collection.getKeyAfter(a)}}i=new g(t.rect.x,t.rect.maxY-this.dropIndicatorThickness/2,t.rect.width,this.dropIndicatorThickness)}else i=t.rect;return new b("dropIndicator",e.key+":"+e.dropPosition,i)}constructor(e={}){super();var t;this.rowHeight=(t=e.rowHeight)!==null&&t!==void 0?t:null;var i;this.estimatedRowHeight=(i=e.estimatedRowHeight)!==null&&i!==void 0?i:null;var l;this.headingHeight=(l=e.headingHeight)!==null&&l!==void 0?l:null;var o;this.estimatedHeadingHeight=(o=e.estimatedHeadingHeight)!==null&&o!==void 0?o:null;var s;this.loaderHeight=(s=e.loaderHeight)!==null&&s!==void 0?s:null,this.dropIndicatorThickness=e.dropIndicatorThickness||2,this.gap=e.gap||0,this.padding=e.padding||0,this.layoutNodes=new Map,this.rootNodes=[],this.lastCollection=null,this.invalidateEverything=!1,this.validRect=new g,this.requestedRect=new g,this.contentSize=new z}}let R=null;function fe(n=!1){if(R===null||n){const e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";const i=document.createElement("div"),l=i.style;return l.width="100px",l.height="100px",e.appendChild(i),document.body.appendChild(e),e.scrollLeft>0?R="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?R="negative":R="positive-ascending"),document.body.removeChild(e),R}return R}function ge(n,e){let{scrollLeft:t}=n;if(e==="rtl"){let{scrollWidth:i,clientWidth:l}=n;switch(fe()){case"negative":t=-t;break;case"positive-descending":t=i-l-t;break}}return t}function ye(n,e){let{contentSize:t,onVisibleRectChange:i,innerStyle:l,onScrollStart:o,onScrollEnd:s,scrollDirection:a="both",...h}=n,r=c.useRef({scrollTop:0,scrollLeft:0,scrollEndTime:0,scrollTimeout:null,width:0,height:0,isScrolling:!1}).current,{direction:d}=X.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),[u,f]=c.useState(!1),y=c.useCallback(()=>{r.isScrolling=!1,f(!1),r.scrollTimeout=null,window.dispatchEvent(new Event("tk.connect-observer")),s==null||s()},[r,s]),v=c.useCallback(w=>{w.target===w.currentTarget&&(n.onScroll&&n.onScroll(w),M.flushSync(()=>{let m=w.currentTarget.scrollTop,H=ge(w.currentTarget,d);r.scrollTop=Math.max(0,Math.min(m,t.height-r.height)),r.scrollLeft=Math.max(0,Math.min(H,t.width-r.width)),i(new g(r.scrollLeft,r.scrollTop,r.width,r.height)),r.isScrolling||(r.isScrolling=!0,f(!0),window.dispatchEvent(new Event("tk.disconnect-observer")),o&&o());let N=Date.now();!("onscrollend"in window)&&r.scrollEndTime<=N+50&&(r.scrollEndTime=N+300,r.scrollTimeout!=null&&clearTimeout(r.scrollTimeout),r.scrollTimeout=setTimeout(y,300))}))},[n,d,r,t,i,o,y]);B.$e9faafb641e167db$export$90fc3a17d93f704c(e,"scroll",v),B.$e9faafb641e167db$export$90fc3a17d93f704c(e,"scrollend",y),c.useEffect(()=>()=>{r.scrollTimeout!=null&&clearTimeout(r.scrollTimeout),r.isScrolling&&window.dispatchEvent(new Event("tk.connect-observer"))},[]);let p=c.useRef(!1),_=C.$8ae05eaa5c114e9c$export$7f54fc3180508a52(w=>{let m=e.current;if(!m||p.current)return;p.current=!0;let H=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,N=Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientWidth"),ee=Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientHeight"),P=m.clientWidth,q=m.clientHeight,E=H&&!N?1/0:P,T=H&&!ee?1/0:q;(r.width!==E||r.height!==T)&&(r.width=E,r.height=T,w(()=>{i(new g(r.scrollLeft,r.scrollTop,E,T))}),(!H&&P!==m.clientWidth||q!==m.clientHeight)&&(r.width=m.clientWidth,r.height=m.clientHeight,w(()=>{i(new g(r.scrollLeft,r.scrollTop,r.width,r.height))}))),p.current=!1}),L=c.useRef(null),[J,Q]=c.useState({});C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(!p.current&&(L.current==null||!t.equals(L.current)))if(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u"){Q({}),L.current=t;return}else queueMicrotask(()=>_(M.flushSync));L.current=t}),C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{_(w=>w())},[J]);let Z=c.useCallback(()=>{_(M.flushSync)},[_]);te.$9daab02d461809db$export$683480f191c0e3ea({ref:e,box:"border-box",onResize:Z});let I={padding:0,...h.style};return a==="horizontal"?(I.overflowX="auto",I.overflowY="hidden"):a==="vertical"||t.width===r.width?(I.overflowY="auto",I.overflowX="hidden"):I.overflow="auto",l={width:Number.isFinite(t.width)?t.width:void 0,height:Number.isFinite(t.height)?t.height:void 0,pointerEvents:u?"none":"auto",position:"relative",...l},{isScrolling:u,scrollViewProps:{...h,style:I},contentProps:{role:"presentation",style:l}}}function ve(n){let{layoutInfo:e,virtualizer:t,ref:i}=n,l=e==null?void 0:e.key,o=c.useCallback(()=>{if(l!=null&&i.current){let s=pe(i.current);t.updateItemSize(l,s)}},[t,l,i]);return C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{e!=null&&e.estimatedSize&&o()}),{updateSize:o}}function pe(n){let e=n.style.height;n.style.height="";let t=new z(n.scrollWidth,n.scrollHeight);return n.style.height=e,t}function A(n){let{style:e,className:t,layoutInfo:i,virtualizer:l,parent:o,children:s}=n,{direction:a}=X.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),h=c.useRef(null);return ve({layoutInfo:i,virtualizer:l,ref:h}),c.createElement("div",{role:"presentation",ref:h,className:t,style:{...we(i,a,o),...e}},s)}let Y=new WeakMap;function we(n,e,t){let i=e==="rtl"?"right":"left",l=Y.get(n);if(l&&l[i]!=null){if(!t)return l;let h=n.rect.y-t.rect.y,r=n.rect.x-t.rect.x;if(l.top===h&&l[i]===r)return l}let o={top:n.rect.y-(t&&!(t.allowOverflow&&n.isSticky)?t.rect.y:0),[i]:n.rect.x-(t&&!(t.allowOverflow&&n.isSticky)?t.rect.x:0),width:n.rect.width,height:n.rect.height};Object.entries(o).forEach(([h,r])=>{Number.isFinite(r)||(o[h]=void 0)});var s;let a={position:n.isSticky?"sticky":"absolute",display:n.isSticky?"inline-block":void 0,overflow:n.allowOverflow?"visible":"hidden",opacity:n.opacity,zIndex:n.zIndex,transform:(s=n.transform)!==null&&s!==void 0?s:void 0,contain:"size layout style",...o};return Y.set(n,a),a}const F=c.createContext(null),U=c.createContext(null);function me(n){let{children:e,layout:t,layoutOptions:i}=n,l=c.useMemo(()=>typeof t=="function"?new t:t,[t]),o=c.useMemo(()=>({isVirtualized:!0,layoutDelegate:l,dropTargetDelegate:l.getDropTargetFromPoint?l:void 0,CollectionRoot:be,CollectionBranch:xe}),[l]);return c.createElement(W.$7135fc7d473fd974$export$4feb769f8ddf26c5.Provider,{value:o},c.createElement(U.Provider,{value:{layout:l,layoutOptions:i}},e))}function be({collection:n,persistedKeys:e,scrollRef:t,renderDropIndicator:i}){var l;let{layout:o,layoutOptions:s}=c.useContext(U),a=(l=o.useLayoutOptions)===null||l===void 0?void 0:l.call(o),h=ce({layout:o,collection:n,renderView:(d,u)=>{var f;return u==null||(f=u.render)===null||f===void 0?void 0:f.call(u,u)},onVisibleRectChange(d){let u=t==null?void 0:t.current;u&&(u.scrollLeft=d.x,u.scrollTop=d.y)},persistedKeys:e,layoutOptions:c.useMemo(()=>s&&a?{...s,...a}:s||a,[s,a])}),{contentProps:r}=ye({onVisibleRectChange:h.setVisibleRect,contentSize:h.contentSize,onScrollStart:h.startScrolling,onScrollEnd:h.endScrolling},t);return c.createElement("div",r,c.createElement(F.Provider,{value:h},G(null,h.visibleViews,i)))}function xe({parent:n,renderDropIndicator:e}){let i=c.useContext(F).virtualizer.getVisibleView(n.key);return G(i,Array.from(i.children),e)}function G(n,e,t){return e.map(i=>Ie(n,i,t))}function Ie(n,e,t){let i=c.createElement(A,{key:e.key,layoutInfo:e.layoutInfo,virtualizer:e.virtualizer,parent:n==null?void 0:n.layoutInfo},e.rendered),{collection:l,layout:o}=e.virtualizer,s=e.content;return(s==null?void 0:s.type)==="item"&&t&&o.getDropTargetLayoutInfo&&(i=c.createElement(c.Fragment,{key:e.key},D(n,e,{type:"item",key:e.content.key,dropPosition:"before"},t),i,W.$7135fc7d473fd974$export$2dbbd341daed716d(l,s,a=>D(n,e,a,t)))),i}function D(n,e,t,i){let l=i(t);if(l){let o=e.virtualizer.layout.getDropTargetLayoutInfo(t);l=c.createElement(A,{layoutInfo:o,virtualizer:e.virtualizer,parent:n==null?void 0:n.layoutInfo},l)}return l}class $e extends ue{getContentSize(){var t;const e=(t=this==null?void 0:this.virtualizer)==null?void 0:t.collection.getKeys();return Array.from(e||[]).forEach(i=>{this.getLayoutInfo(i)}),this.contentSize}}const Re="_listBox_1ns4v_7",Se="_listBoxPopover_1ns4v_19",ze="_listBoxSectionHeading_1ns4v_34",He="_listBoxButton_1ns4v_44",Ce="_listBoxItem_1ns4v_56",ke="_listBoxLoadMoreItem_1ns4v_101",k={listBox:Re,listBoxPopover:Se,listBoxSectionHeading:ze,listBoxButton:He,listBoxItem:Ce,listBoxLoadMoreItem:ke},_e=({className:n,children:e,...t})=>S.jsx(me,{layout:$e,layoutOptions:{headingHeight:44},children:S.jsx(V.$eed445e0843c11d0$export$41f133550aa26f48,{className:O.clsx(k.listBox,n),...t,children:e})}),Le=({children:n,className:e,...t})=>S.jsx(V.$eed445e0843c11d0$export$a11e76429ed99b4,{className:O.clsx(k.listBoxItem,e),...t,children:n}),Ne=({className:n,children:e,...t})=>S.jsx(ie.$07b14b47974efb58$export$5b6b19405a83ff9d,{className:O.clsx(n,k.listBoxPopover),offset:0,...t,children:e}),Ee=({children:n,name:e,...t})=>S.jsxs(V.$eed445e0843c11d0$export$dca12b0bb56e4fc,{...t,children:[S.jsx(le.$72a5793c14baf454$export$8b251419efc915eb,{className:k.listBoxSectionHeading,children:e}),n]});exports.ListBox=_e;exports.ListBoxItem=Le;exports.ListBoxPopover=Ne;exports.ListBoxSection=Ee;exports.styles=k;
1
+ "use strict";require('./assets/ListBoxSection.css');const S=require("react/jsx-runtime"),V=require("./ListBox-ICZKGluC.cjs"),D=require("./Collection-BvWp2xBd.cjs"),c=require("react"),C=require("./mergeProps-JhcJ7uJL.cjs"),W=require("./context-Df3XbgBG.cjs"),M=require("react-dom"),te=require("./OverlayArrow-ByH6lM-H.cjs"),B=require("./useEvent-3ZO5TPSH.cjs"),O=require("./clsx-C11secjj.cjs"),K=require("./SelectionManager-BtbHoHpA.cjs"),ie=require("./Dialog-DR6nEqMT.cjs"),le=require("./Separator-Dgin8BNW.cjs");class oe{shouldInvalidate(e,t){return e.width!==t.width||e.height!==t.height}shouldInvalidateLayoutOptions(e,t){return e!==t}update(e){}getItemRect(e){var t,i;return(i=(t=this.getLayoutInfo(e))===null||t===void 0?void 0:t.rect)!==null&&i!==void 0?i:null}getVisibleRect(){return this.virtualizer.visibleRect}constructor(){this.virtualizer=null}}class b{copy(){let e=new b(this.type,this.key,this.rect.copy());return e.estimatedSize=this.estimatedSize,e.opacity=this.opacity,e.transform=this.transform,e.parentKey=this.parentKey,e.content=this.content,e.isSticky=this.isSticky,e.zIndex=this.zIndex,e.allowOverflow=this.allowOverflow,e}constructor(e,t,i){this.type=e,this.key=t,this.parentKey=null,this.content=null,this.rect=i,this.estimatedSize=!1,this.isSticky=!1,this.opacity=1,this.transform=null,this.zIndex=0,this.allowOverflow=!1}}class x{copy(){return new x(this.x,this.y)}equals(e){return this.x===e.x&&this.y===e.y}isOrigin(){return this.x===0&&this.y===0}constructor(e=0,t=0){this.x=e,this.y=t}}class g{get maxX(){return this.x+this.width}get maxY(){return this.y+this.height}get area(){return this.width*this.height}get topLeft(){return new x(this.x,this.y)}get topRight(){return new x(this.maxX,this.y)}get bottomLeft(){return new x(this.x,this.maxY)}get bottomRight(){return new x(this.maxX,this.maxY)}intersects(e){return(process.env.NODE_ENV==="test"&&!process.env.VIRT_ON||this.area>0&&e.area>0)&&this.x<=e.x+e.width&&e.x<=this.x+this.width&&this.y<=e.y+e.height&&e.y<=this.y+this.height}containsRect(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.maxX&&this.maxY>=e.maxY}containsPoint(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.x&&this.maxY>=e.y}getCornerInRect(e){for(let t of["topLeft","topRight","bottomLeft","bottomRight"])if(e.containsPoint(this[t]))return t;return null}equals(e){return e.x===this.x&&e.y===this.y&&e.width===this.width&&e.height===this.height}pointEquals(e){return this.x===e.x&&this.y===e.y}sizeEquals(e){return this.width===e.width&&this.height===e.height}union(e){let t=Math.min(this.x,e.x),i=Math.min(this.y,e.y),l=Math.max(this.maxX,e.maxX)-t,o=Math.max(this.maxY,e.maxY)-i;return new g(t,i,l,o)}intersection(e){if(!this.intersects(e))return new g(0,0,0,0);let t=Math.max(this.x,e.x),i=Math.max(this.y,e.y);return new g(t,i,Math.min(this.maxX,e.maxX)-t,Math.min(this.maxY,e.maxY)-i)}copy(){return new g(this.x,this.y,this.width,this.height)}constructor(e=0,t=0,i=0,l=0){this.x=e,this.y=t,this.width=i,this.height=l}}class z{copy(){return new z(this.width,this.height)}equals(e){return this.width===e.width&&this.height===e.height}get area(){return this.width*this.height}constructor(e=0,t=0){this.width=Math.max(e,0),this.height=Math.max(t,0)}}let ne=0;class X{prepareForReuse(){this.content=null,this.rendered=null,this.layoutInfo=null}getReusableView(e){let t=this.reusableViews.get(e);return t&&t.length>0?t.shift():new re(this.virtualizer,this,e)}reuseChild(e){e.prepareForReuse();let t=this.reusableViews.get(e.viewType);t||(t=[],this.reusableViews.set(e.viewType,t)),t.push(e)}constructor(e,t){this.virtualizer=e,this.key=++ne,this.viewType=t,this.children=new Set,this.reusableViews=new Map,this.layoutInfo=null,this.content=null,this.rendered=null}}class se extends X{constructor(e){super(e,"root")}}class re extends X{constructor(e,t,i){super(e,i),this.parent=t}}function ae(n,e){if(n===e)return!0;if(n.size!==e.size)return!1;for(let t of n)if(!e.has(t))return!1;return!0}class he{setVisibleRect(e){let t=performance.now()-this.startTime;t<500&&(e.x!==this.visibleRect.x&&t>0&&(this.velocity.x=(e.x-this.visibleRect.x)/t),e.y!==this.visibleRect.y&&t>0&&(this.velocity.y=(e.y-this.visibleRect.y)/t)),this.startTime=performance.now(),this.visibleRect=e}getOverscannedRect(){let e=this.visibleRect.copy(),t=this.visibleRect.height/3;if(e.height+=t,this.velocity.y<0&&(e.y-=t),this.velocity.x!==0){let i=this.visibleRect.width/3;e.width+=i,this.velocity.x<0&&(e.x-=i)}return e}constructor(){this.startTime=0,this.velocity=new x(0,0),this.visibleRect=new g}}class de{isPersistedKey(e){if(this.persistedKeys.has(e))return!0;for(let t of this.persistedKeys)for(;t!=null;){let i=this.layout.getLayoutInfo(t);if(!i||i.parentKey==null)break;if(t=i.parentKey,t===e)return!0}return!1}getParentView(e){return e.parentKey!=null?this._visibleViews.get(e.parentKey):this._rootView}getReusableView(e){let i=this.getParentView(e).getReusableView(e.type);return i.layoutInfo=e,this._renderView(i),i}_renderView(e){if(e.layoutInfo){let{type:t,key:i,content:l}=e.layoutInfo;e.content=l||this.collection.getItem(i),e.rendered=this._renderContent(t,e.content)}}_renderContent(e,t){let i=t!=null?this._renderedContent.get(t):null;if(i!=null)return i;let l=this.delegate.renderView(e,t);return t&&this._renderedContent.set(t,l),l}keyAtPoint(e){let t=new g(e.x,e.y,1,1),i=t.area===0?[]:this.layout.getVisibleLayoutInfos(t);for(let l of i)if(l.rect.intersects(t))return l.key;return null}relayout(e={}){this.layout.update(e),this.contentSize=this.layout.getContentSize();let t=this.visibleRect,i=e.contentChanged?0:t.x,l=e.contentChanged?0:t.y;if(i=Math.max(0,Math.min(this.contentSize.width-t.width,i)),l=Math.max(0,Math.min(this.contentSize.height-t.height,l)),i!==t.x||l!==t.y){let o=new g(i,l,t.width,t.height);this.delegate.setVisibleRect(o)}else this.updateSubviews()}getVisibleLayoutInfos(){let e=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,t=e&&typeof HTMLElement<"u"&&Object.getOwnPropertyNames(HTMLElement.prototype).includes("clientWidth"),i=e&&typeof HTMLElement<"u"&&Object.getOwnPropertyNames(HTMLElement.prototype).includes("clientHeight"),l;e&&!(t&&i)?l=new g(0,0,this.contentSize.width,this.contentSize.height):l=this._overscanManager.getOverscannedRect();let o=this.layout.getVisibleLayoutInfos(l),s=new Map;for(let a of o)s.set(a.key,a);return s}updateSubviews(){let e=this.getVisibleLayoutInfos(),t=new Set;for(let[i,l]of this._visibleViews){let o=e.get(i);(!o||l.parent!==this.getParentView(o))&&(this._visibleViews.delete(i),l.parent.reuseChild(l),t.add(l))}for(let[i,l]of e){let o=this._visibleViews.get(i);if(!o)o=this.getReusableView(l),o.parent.children.add(o),this._visibleViews.set(i,o),t.delete(o);else{o.layoutInfo=l;let s=this.collection.getItem(l.key);o.content!==s&&(o.content!=null&&this._renderedContent.delete(o.content),this._renderView(o))}}for(let i of t)i.parent.children.delete(i),i.parent.reusableViews.clear();if(!this._isScrolling)for(let i of e.keys()){let l=this._visibleViews.get(i);l.parent.children.delete(l),l.parent.children.add(l)}}render(e){let t=this,i=!1,l=!1,o=!1,s=!1,a=!1,h=!1;return e.collection!==this.collection&&(t.collection=e.collection,i=!0),(e.layout!==this.layout||this.layout.virtualizer!==this)&&(this.layout&&(this.layout.virtualizer=null),e.layout.virtualizer=this,t.layout=e.layout,i=!0),e.persistedKeys&&!ae(e.persistedKeys,this.persistedKeys)&&(t.persistedKeys=e.persistedKeys,h=!0),this.visibleRect.equals(e.visibleRect)||(this._overscanManager.setVisibleRect(e.visibleRect),this.layout.shouldInvalidate(e.visibleRect,this.visibleRect)?(l=!e.visibleRect.pointEquals(this.visibleRect),o=!e.visibleRect.sizeEquals(this.visibleRect),i=!0):h=!0,t.visibleRect=e.visibleRect),e.invalidationContext!==this._invalidationContext&&(e.invalidationContext&&(o||(o=e.invalidationContext.sizeChanged||!1),l||(l=e.invalidationContext.offsetChanged||!1),s||(s=e.invalidationContext.itemSizeChanged||!1),a||(a=e.invalidationContext.layoutOptions!=null&&this._invalidationContext.layoutOptions!=null&&e.invalidationContext.layoutOptions!==this._invalidationContext.layoutOptions&&this.layout.shouldInvalidateLayoutOptions(e.invalidationContext.layoutOptions,this._invalidationContext.layoutOptions)),i||(i=s||o||l||a)),this._invalidationContext=e.invalidationContext),e.isScrolling!==this._isScrolling&&(this._isScrolling=e.isScrolling,e.isScrolling||(h=!0)),i?this.relayout({offsetChanged:l,sizeChanged:o,itemSizeChanged:s,layoutOptionsChanged:a,layoutOptions:this._invalidationContext.layoutOptions}):h&&this.updateSubviews(),Array.from(this._rootView.children)}getVisibleView(e){return this._visibleViews.get(e)}invalidate(e){this.delegate.invalidate(e)}updateItemSize(e,t){if(!this.layout.updateItemSize)return;this.layout.updateItemSize(e,t)&&this.invalidate({itemSizeChanged:!0})}constructor(e){this.delegate=e.delegate,this.collection=e.collection,this.layout=e.layout,this.contentSize=new z,this.visibleRect=new g,this.persistedKeys=new Set,this._visibleViews=new Map,this._renderedContent=new WeakMap,this._rootView=new se(this),this._isScrolling=!1,this._invalidationContext={},this._overscanManager=new he}}function ce(n){let[e,t]=c.useState(new g(0,0,0,0)),[i,l]=c.useState(!1),[o,s]=c.useState({}),a=c.useRef(!1),[h]=c.useState(()=>new de({collection:n.collection,layout:n.layout,delegate:{setVisibleRect(p){t(p),a.current=!0},renderView:n.renderView,invalidate:s}}));C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{a.current&&(a.current=!1,n.onVisibleRectChange(e))});let r=c.useMemo(()=>n.layoutOptions!=null?{...o,layoutOptions:n.layoutOptions}:o,[o,n.layoutOptions]),d=h.render({layout:n.layout,collection:n.collection,persistedKeys:n.persistedKeys,layoutOptions:n.layoutOptions,visibleRect:e,invalidationContext:r,isScrolling:i}),u=h.contentSize,f=c.useCallback(()=>{l(!0)},[]),y=c.useCallback(()=>{l(!1)},[]);return c.useMemo(()=>({virtualizer:h,visibleViews:d,setVisibleRect:t,contentSize:u,isScrolling:i,startScrolling:f,endScrolling:y}),[h,d,t,u,i,f,y])}const $=48;class ue extends oe{get collection(){return this.virtualizer.collection}getLayoutInfo(e){var t;return this.ensureLayoutInfo(e),((t=this.layoutNodes.get(e))===null||t===void 0?void 0:t.layoutInfo)||null}getVisibleLayoutInfos(e){if(e.height>1){var t,i;let s=((i=(t=this.rowHeight)!==null&&t!==void 0?t:this.estimatedRowHeight)!==null&&i!==void 0?i:$)+this.gap;e.y=Math.floor(e.y/s)*s,e.height=Math.ceil(e.height/s)*s}this.layoutIfNeeded(e);let l=[],o=s=>{for(let a of s)this.isVisible(a,e)&&(l.push(a.layoutInfo),a.children&&o(a.children))};return o(this.rootNodes),l}layoutIfNeeded(e){if(this.lastCollection){this.requestedRect.containsRect(e)||(this.requestedRect=this.requestedRect.union(e),this.rootNodes=this.buildCollection());for(let t of this.virtualizer.persistedKeys)if(this.ensureLayoutInfo(t))return}}ensureLayoutInfo(e){return!this.layoutNodes.has(e)&&this.requestedRect.area<this.contentSize.area&&this.lastCollection?(this.requestedRect=new g(0,0,1/0,1/0),this.rootNodes=this.buildCollection(),this.requestedRect=new g(0,0,this.contentSize.width,this.contentSize.height),!0):!1}isVisible(e,t){return e.layoutInfo.rect.intersects(t)||e.layoutInfo.isSticky||e.layoutInfo.type==="header"||e.layoutInfo.type==="loader"||this.virtualizer.isPersistedKey(e.layoutInfo.key)}shouldInvalidateEverything(e){let t=e.layoutOptions;var i,l,o,s,a;return e.sizeChanged||this.rowHeight!==((i=t==null?void 0:t.rowHeight)!==null&&i!==void 0?i:this.rowHeight)||this.headingHeight!==((l=t==null?void 0:t.headingHeight)!==null&&l!==void 0?l:this.headingHeight)||this.loaderHeight!==((o=t==null?void 0:t.loaderHeight)!==null&&o!==void 0?o:this.loaderHeight)||this.gap!==((s=t==null?void 0:t.gap)!==null&&s!==void 0?s:this.gap)||this.padding!==((a=t==null?void 0:t.padding)!==null&&a!==void 0?a:this.padding)}shouldInvalidateLayoutOptions(e,t){return e.rowHeight!==t.rowHeight||e.estimatedRowHeight!==t.estimatedRowHeight||e.headingHeight!==t.headingHeight||e.estimatedHeadingHeight!==t.estimatedHeadingHeight||e.loaderHeight!==t.loaderHeight||e.dropIndicatorThickness!==t.dropIndicatorThickness||e.gap!==t.gap||e.padding!==t.padding}update(e){let t=this.virtualizer.collection;this.invalidateEverything=this.shouldInvalidateEverything(e),this.invalidateEverything&&(this.requestedRect=this.virtualizer.visibleRect.copy(),this.layoutNodes.clear());let i=e.layoutOptions;var l;this.rowHeight=(l=i==null?void 0:i.rowHeight)!==null&&l!==void 0?l:this.rowHeight;var o;this.estimatedRowHeight=(o=i==null?void 0:i.estimatedRowHeight)!==null&&o!==void 0?o:this.estimatedRowHeight;var s;this.headingHeight=(s=i==null?void 0:i.headingHeight)!==null&&s!==void 0?s:this.headingHeight;var a;this.estimatedHeadingHeight=(a=i==null?void 0:i.estimatedHeadingHeight)!==null&&a!==void 0?a:this.estimatedHeadingHeight;var h;this.loaderHeight=(h=i==null?void 0:i.loaderHeight)!==null&&h!==void 0?h:this.loaderHeight;var r;this.dropIndicatorThickness=(r=i==null?void 0:i.dropIndicatorThickness)!==null&&r!==void 0?r:this.dropIndicatorThickness;var d;this.gap=(d=i==null?void 0:i.gap)!==null&&d!==void 0?d:this.gap;var u;if(this.padding=(u=i==null?void 0:i.padding)!==null&&u!==void 0?u:this.padding,this.rootNodes=this.buildCollection(),this.lastCollection&&t!==this.lastCollection)for(let f of this.lastCollection.getKeys())t.getItem(f)||this.layoutNodes.get(f)&&this.layoutNodes.delete(f);this.lastCollection=t,this.invalidateEverything=!1,this.validRect=this.requestedRect.copy()}buildCollection(e=this.padding){let t=this.virtualizer.collection,i=[...t],l=i.filter(r=>r.type==="loader"),o=[],s=(t==null?void 0:t.size)===0;s&&(e=0);for(let r of i){var a,h;let d=((h=(a=this.rowHeight)!==null&&a!==void 0?a:this.estimatedRowHeight)!==null&&h!==void 0?h:$)+this.gap;if(r.type==="item"&&e+d<this.requestedRect.y&&!this.isValid(r,e)){e+=d;continue}let u=this.buildChild(r,this.padding,e,null);if(e=u.layoutInfo.rect.maxY+this.gap,o.push(u),r.type==="loader"){let f=l.indexOf(r);l.splice(f,1)}if((r.type==="item"||r.type==="loader")&&e>this.requestedRect.maxY){let f=i.indexOf(r);for(let y of l){let v=i.indexOf(y);e+=(v-f-1)*d;let p=this.buildChild(y,this.padding,e,null);o.push(p),e=p.layoutInfo.rect.maxY,f=v}e+=(i.length-f-1)*d;break}}return e-=this.gap,e+=s?0:this.padding,this.contentSize=new z(this.virtualizer.visibleRect.width,e),o}isValid(e,t){let i=this.layoutNodes.get(e.key);return!this.invalidateEverything&&!!i&&i.node===e&&t===i.layoutInfo.rect.y&&i.layoutInfo.rect.intersects(this.validRect)&&i.validRect.containsRect(i.layoutInfo.rect.intersection(this.requestedRect))}buildChild(e,t,i,l){if(this.isValid(e,i))return this.layoutNodes.get(e.key);let o=this.buildNode(e,t,i);return o.layoutInfo.parentKey=l??null,o.layoutInfo.allowOverflow=!0,this.layoutNodes.set(e.key,o),o}buildNode(e,t,i){switch(e.type){case"section":return this.buildSection(e,t,i);case"item":return this.buildItem(e,t,i);case"header":return this.buildSectionHeader(e,t,i);case"loader":return this.buildLoader(e,t,i);case"separator":return this.buildItem(e,t,i);default:throw new Error("Unsupported node type: "+e.type)}}buildLoader(e,t,i){let l=new g(t,i,this.padding,0),o=new b("loader",e.key,l);l.width=this.virtualizer.contentSize.width-this.padding-t;var s,a,h;return l.height=e.props.isLoading?(h=(a=(s=this.loaderHeight)!==null&&s!==void 0?s:this.rowHeight)!==null&&a!==void 0?a:this.estimatedRowHeight)!==null&&h!==void 0?h:$:0,{layoutInfo:o,validRect:l.intersection(this.requestedRect)}}buildSection(e,t,i){let l=this.virtualizer.collection,o=this.virtualizer.visibleRect.width-this.padding,s=new g(t,i,o-t,0),a=new b(e.type,e.key,s),h=i,r=0,d=[];for(let y of K.$c5a24bc478652b5f$export$1005530eda016c13(e,l)){var u,f;let v=((f=(u=this.rowHeight)!==null&&u!==void 0?u:this.estimatedRowHeight)!==null&&f!==void 0?f:$)+this.gap;if(i+v<this.requestedRect.y&&!this.isValid(e,i)){i+=v,r++;continue}let p=this.buildChild(y,t,i,a.key);if(i=p.layoutInfo.rect.maxY+this.gap,d.push(p),i>this.requestedRect.maxY){i+=([...K.$c5a24bc478652b5f$export$1005530eda016c13(e,l)].length-(d.length+r))*v;break}}return i-=this.gap,s.height=i-h,{layoutInfo:a,children:d,validRect:a.rect.intersection(this.requestedRect),node:e}}buildSectionHeader(e,t,i){let l=this.virtualizer.visibleRect.width-this.padding,o=this.headingHeight,s=!1;if(o==null){let r=this.layoutNodes.get(e.key),d=r==null?void 0:r.layoutInfo;if(d){let u=this.virtualizer.collection.getItem(e.key),f=this.lastCollection?this.lastCollection.getItem(e.key):null;o=d.rect.height,s=l!==d.rect.width||u!==f||d.estimatedSize}else o=e.rendered?this.estimatedHeadingHeight:0,s=!0}o==null&&(o=$);let a=new g(t,i,l-t,o),h=new b("header",e.key,a);return h.estimatedSize=s,{layoutInfo:h,children:[],validRect:h.rect.intersection(this.requestedRect),node:e}}buildItem(e,t,i){let l=this.virtualizer.visibleRect.width-this.padding-t,o=this.rowHeight,s=!1;if(o==null){let r=this.layoutNodes.get(e.key);r?(o=r.layoutInfo.rect.height,s=l!==r.layoutInfo.rect.width||e!==r.node||r.layoutInfo.estimatedSize):(o=this.estimatedRowHeight,s=!0)}o==null&&(o=$);let a=new g(t,i,l,o),h=new b(e.type,e.key,a);return h.estimatedSize=s,{layoutInfo:h,children:[],validRect:h.rect,node:e}}updateItemSize(e,t){let i=this.layoutNodes.get(e);if(!i)return!1;let l=this.virtualizer.collection,o=i.layoutInfo;if(o.estimatedSize=!1,o.rect.height!==t.height){let s=o.copy();s.rect.height=t.height,i.layoutInfo=s,this.validRect.height=Math.min(this.validRect.height,o.rect.y-this.validRect.y),this.requestedRect.height+=s.rect.height-o.rect.height,this.updateLayoutNode(e,o,s);let a=o.parentKey!=null?l.getItem(o.parentKey):null;for(;a;)this.updateLayoutNode(a.key,o,s),a=a.parentKey!=null?l.getItem(a.parentKey):null;return!0}return!1}updateLayoutNode(e,t,i){let l=this.layoutNodes.get(e);l&&(l.validRect=l.validRect.intersection(this.validRect),l.layoutInfo===t&&(l.layoutInfo=i))}getContentSize(){return this.contentSize}getDropTargetFromPoint(e,t,i){e+=this.virtualizer.visibleRect.x,t+=this.virtualizer.visibleRect.y;let l=new g(e,Math.max(0,t-this.gap),1,Math.max(1,this.gap*2)),o=this.getVisibleLayoutInfos(l),s=null,a=1/0;for(let u of o){if(!u.rect.intersects(l))continue;let f=Math.abs(u.rect.y-t),y=Math.abs(u.rect.maxY-t),v=Math.min(f,y);v<a&&(a=v,s=u.key)}if(s==null||this.virtualizer.collection.size===0)return{type:"root"};let h=this.getLayoutInfo(s);if(!h)return null;let r=h.rect,d={type:"item",key:h.key,dropPosition:"on"};return i(d)?t<=r.y+10&&i({...d,dropPosition:"before"})?d.dropPosition="before":t>=r.maxY-10&&i({...d,dropPosition:"after"})&&(d.dropPosition="after"):t<=r.y+r.height/2&&i({...d,dropPosition:"before"})?d.dropPosition="before":i({...d,dropPosition:"after"})&&(d.dropPosition="after"),d}getDropTargetLayoutInfo(e){let t=this.getLayoutInfo(e.key),i;if(e.dropPosition==="before")i=new g(t.rect.x,Math.max(0,t.rect.y-this.dropIndicatorThickness/2),t.rect.width,this.dropIndicatorThickness);else if(e.dropPosition==="after"){let o=this.collection.getItem(e.key);if(o){var l;let s=(l=o.level)!==null&&l!==void 0?l:0,a=this.collection.getKeyAfter(e.key);for(;a!=null;){let h=this.collection.getItem(a);if(!h||h.level<=s)break;t=this.getLayoutInfo(a)||t,a=this.collection.getKeyAfter(a)}}i=new g(t.rect.x,t.rect.maxY-this.dropIndicatorThickness/2,t.rect.width,this.dropIndicatorThickness)}else i=t.rect;return new b("dropIndicator",e.key+":"+e.dropPosition,i)}constructor(e={}){super();var t;this.rowHeight=(t=e.rowHeight)!==null&&t!==void 0?t:null;var i;this.estimatedRowHeight=(i=e.estimatedRowHeight)!==null&&i!==void 0?i:null;var l;this.headingHeight=(l=e.headingHeight)!==null&&l!==void 0?l:null;var o;this.estimatedHeadingHeight=(o=e.estimatedHeadingHeight)!==null&&o!==void 0?o:null;var s;this.loaderHeight=(s=e.loaderHeight)!==null&&s!==void 0?s:null,this.dropIndicatorThickness=e.dropIndicatorThickness||2,this.gap=e.gap||0,this.padding=e.padding||0,this.layoutNodes=new Map,this.rootNodes=[],this.lastCollection=null,this.invalidateEverything=!1,this.validRect=new g,this.requestedRect=new g,this.contentSize=new z}}let R=null;function fe(n=!1){if(R===null||n){const e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";const i=document.createElement("div"),l=i.style;return l.width="100px",l.height="100px",e.appendChild(i),document.body.appendChild(e),e.scrollLeft>0?R="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?R="negative":R="positive-ascending"),document.body.removeChild(e),R}return R}function ge(n,e){let{scrollLeft:t}=n;if(e==="rtl"){let{scrollWidth:i,clientWidth:l}=n;switch(fe()){case"negative":t=-t;break;case"positive-descending":t=i-l-t;break}}return t}function ye(n,e){let{contentSize:t,onVisibleRectChange:i,innerStyle:l,onScrollStart:o,onScrollEnd:s,scrollDirection:a="both",...h}=n,r=c.useRef({scrollTop:0,scrollLeft:0,scrollEndTime:0,scrollTimeout:null,width:0,height:0,isScrolling:!1}).current,{direction:d}=W.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),[u,f]=c.useState(!1),y=c.useCallback(()=>{r.isScrolling=!1,f(!1),r.scrollTimeout=null,window.dispatchEvent(new Event("tk.connect-observer")),s==null||s()},[r,s]),v=c.useCallback(w=>{w.target===w.currentTarget&&(n.onScroll&&n.onScroll(w),M.flushSync(()=>{let m=w.currentTarget.scrollTop,H=ge(w.currentTarget,d);r.scrollTop=Math.max(0,Math.min(m,t.height-r.height)),r.scrollLeft=Math.max(0,Math.min(H,t.width-r.width)),i(new g(r.scrollLeft,r.scrollTop,r.width,r.height)),r.isScrolling||(r.isScrolling=!0,f(!0),window.dispatchEvent(new Event("tk.disconnect-observer")),o&&o());let N=Date.now();!("onscrollend"in window)&&r.scrollEndTime<=N+50&&(r.scrollEndTime=N+300,r.scrollTimeout!=null&&clearTimeout(r.scrollTimeout),r.scrollTimeout=setTimeout(y,300))}))},[n,d,r,t,i,o,y]);B.$e9faafb641e167db$export$90fc3a17d93f704c(e,"scroll",v),B.$e9faafb641e167db$export$90fc3a17d93f704c(e,"scrollend",y),c.useEffect(()=>()=>{r.scrollTimeout!=null&&clearTimeout(r.scrollTimeout),r.isScrolling&&window.dispatchEvent(new Event("tk.connect-observer"))},[]);let p=c.useRef(!1),_=C.$8ae05eaa5c114e9c$export$7f54fc3180508a52(w=>{let m=e.current;if(!m||p.current)return;p.current=!0;let H=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,N=Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientWidth"),ee=Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientHeight"),P=m.clientWidth,q=m.clientHeight,E=H&&!N?1/0:P,T=H&&!ee?1/0:q;(r.width!==E||r.height!==T)&&(r.width=E,r.height=T,w(()=>{i(new g(r.scrollLeft,r.scrollTop,E,T))}),(!H&&P!==m.clientWidth||q!==m.clientHeight)&&(r.width=m.clientWidth,r.height=m.clientHeight,w(()=>{i(new g(r.scrollLeft,r.scrollTop,r.width,r.height))}))),p.current=!1}),L=c.useRef(null),[J,Q]=c.useState({});C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(!p.current&&(L.current==null||!t.equals(L.current)))if(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u"){Q({}),L.current=t;return}else queueMicrotask(()=>_(M.flushSync));L.current=t}),C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{_(w=>w())},[J]);let Z=c.useCallback(()=>{_(M.flushSync)},[_]);te.$9daab02d461809db$export$683480f191c0e3ea({ref:e,box:"border-box",onResize:Z});let I={padding:0,...h.style};return a==="horizontal"?(I.overflowX="auto",I.overflowY="hidden"):a==="vertical"||t.width===r.width?(I.overflowY="auto",I.overflowX="hidden"):I.overflow="auto",l={width:Number.isFinite(t.width)?t.width:void 0,height:Number.isFinite(t.height)?t.height:void 0,pointerEvents:u?"none":"auto",position:"relative",...l},{isScrolling:u,scrollViewProps:{...h,style:I},contentProps:{role:"presentation",style:l}}}function ve(n){let{layoutInfo:e,virtualizer:t,ref:i}=n,l=e==null?void 0:e.key,o=c.useCallback(()=>{if(l!=null&&i.current){let s=pe(i.current);t.updateItemSize(l,s)}},[t,l,i]);return C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{e!=null&&e.estimatedSize&&o()}),{updateSize:o}}function pe(n){let e=n.style.height;n.style.height="";let t=new z(n.scrollWidth,n.scrollHeight);return n.style.height=e,t}function A(n){let{style:e,className:t,layoutInfo:i,virtualizer:l,parent:o,children:s}=n,{direction:a}=W.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),h=c.useRef(null);return ve({layoutInfo:i,virtualizer:l,ref:h}),c.createElement("div",{role:"presentation",ref:h,className:t,style:{...we(i,a,o),...e}},s)}let Y=new WeakMap;function we(n,e,t){let i=e==="rtl"?"right":"left",l=Y.get(n);if(l&&l[i]!=null){if(!t)return l;let h=n.rect.y-t.rect.y,r=n.rect.x-t.rect.x;if(l.top===h&&l[i]===r)return l}let o={top:n.rect.y-(t&&!(t.allowOverflow&&n.isSticky)?t.rect.y:0),[i]:n.rect.x-(t&&!(t.allowOverflow&&n.isSticky)?t.rect.x:0),width:n.rect.width,height:n.rect.height};Object.entries(o).forEach(([h,r])=>{Number.isFinite(r)||(o[h]=void 0)});var s;let a={position:n.isSticky?"sticky":"absolute",display:n.isSticky?"inline-block":void 0,overflow:n.allowOverflow?"visible":"hidden",opacity:n.opacity,zIndex:n.zIndex,transform:(s=n.transform)!==null&&s!==void 0?s:void 0,contain:"size layout style",...o};return Y.set(n,a),a}const F=c.createContext(null),U=c.createContext(null);function me(n){let{children:e,layout:t,layoutOptions:i}=n,l=c.useMemo(()=>typeof t=="function"?new t:t,[t]),o=c.useMemo(()=>({isVirtualized:!0,layoutDelegate:l,dropTargetDelegate:l.getDropTargetFromPoint?l:void 0,CollectionRoot:be,CollectionBranch:xe}),[l]);return c.createElement(D.$7135fc7d473fd974$export$4feb769f8ddf26c5.Provider,{value:o},c.createElement(U.Provider,{value:{layout:l,layoutOptions:i}},e))}function be({collection:n,persistedKeys:e,scrollRef:t,renderDropIndicator:i}){var l;let{layout:o,layoutOptions:s}=c.useContext(U),a=(l=o.useLayoutOptions)===null||l===void 0?void 0:l.call(o),h=ce({layout:o,collection:n,renderView:(d,u)=>{var f;return u==null||(f=u.render)===null||f===void 0?void 0:f.call(u,u)},onVisibleRectChange(d){let u=t==null?void 0:t.current;u&&(u.scrollLeft=d.x,u.scrollTop=d.y)},persistedKeys:e,layoutOptions:c.useMemo(()=>s&&a?{...s,...a}:s||a,[s,a])}),{contentProps:r}=ye({onVisibleRectChange:h.setVisibleRect,contentSize:h.contentSize,onScrollStart:h.startScrolling,onScrollEnd:h.endScrolling},t);return c.createElement("div",r,c.createElement(F.Provider,{value:h},G(null,h.visibleViews,i)))}function xe({parent:n,renderDropIndicator:e}){let i=c.useContext(F).virtualizer.getVisibleView(n.key);return G(i,Array.from(i.children),e)}function G(n,e,t){return e.map(i=>Ie(n,i,t))}function Ie(n,e,t){let i=c.createElement(A,{key:e.key,layoutInfo:e.layoutInfo,virtualizer:e.virtualizer,parent:n==null?void 0:n.layoutInfo},e.rendered),{collection:l,layout:o}=e.virtualizer,s=e.content;return(s==null?void 0:s.type)==="item"&&t&&o.getDropTargetLayoutInfo&&(i=c.createElement(c.Fragment,{key:e.key},j(n,e,{type:"item",key:e.content.key,dropPosition:"before"},t),i,D.$7135fc7d473fd974$export$2dbbd341daed716d(l,s,a=>j(n,e,a,t)))),i}function j(n,e,t,i){let l=i(t);if(l){let o=e.virtualizer.layout.getDropTargetLayoutInfo(t);l=c.createElement(A,{layoutInfo:o,virtualizer:e.virtualizer,parent:n==null?void 0:n.layoutInfo},l)}return l}class $e extends ue{getContentSize(){var t;const e=(t=this==null?void 0:this.virtualizer)==null?void 0:t.collection.getKeys();return Array.from(e||[]).forEach(i=>{this.getLayoutInfo(i)}),this.contentSize}}const Re="_listBox_ep33j_4",Se="_listBoxPopover_ep33j_16",ze="_listBoxSectionHeading_ep33j_31",He="_listBoxButton_ep33j_41",Ce="_listBoxItem_ep33j_53",ke="_listBoxLoadMoreItem_ep33j_98",k={listBox:Re,listBoxPopover:Se,listBoxSectionHeading:ze,listBoxButton:He,listBoxItem:Ce,listBoxLoadMoreItem:ke},_e=({className:n,children:e,...t})=>S.jsx(me,{layout:$e,layoutOptions:{headingHeight:44},children:S.jsx(V.$eed445e0843c11d0$export$41f133550aa26f48,{className:O.clsx(k.listBox,n),...t,children:e})}),Le=({children:n,className:e,...t})=>S.jsx(V.$eed445e0843c11d0$export$a11e76429ed99b4,{className:O.clsx(k.listBoxItem,e),...t,children:n}),Ne=({className:n,children:e,...t})=>S.jsx(ie.$07b14b47974efb58$export$5b6b19405a83ff9d,{className:O.clsx(n,k.listBoxPopover),offset:0,...t,children:e}),Ee=({children:n,name:e,...t})=>S.jsxs(V.$eed445e0843c11d0$export$dca12b0bb56e4fc,{...t,children:[S.jsx(le.$72a5793c14baf454$export$8b251419efc915eb,{className:k.listBoxSectionHeading,children:e}),n]});exports.ListBox=_e;exports.ListBoxItem=Le;exports.ListBoxPopover=Ne;exports.ListBoxSection=Ee;exports.styles=k;
@@ -1,6 +1,6 @@
1
1
  import { jsx as s, jsxs as d, Fragment as f } from "react/jsx-runtime";
2
2
  import { c as o } from "./Button-DD5_S-tD.js";
3
- import { L as t } from "./Label-BG7G0iyG.js";
3
+ import { L as t } from "./Label-C5TNJ0Ku.js";
4
4
  import { c } from "./clsx-OuTLNxxd.js";
5
5
  import './assets/ProgressBar.css';const N = "_progressBar_1ia8w_1", v = "_label_1ia8w_9", h = "_value_1ia8w_14", u = "_bar_1ia8w_19", w = "_fill_1ia8w_25", e = {
6
6
  progressBar: N,
@@ -1 +1 @@
1
- "use strict";require('./assets/ProgressBar.css');const e=require("react/jsx-runtime"),x=require("./Button-CMIbSc4-.cjs"),i=require("./Label-C00qz3kQ.cjs"),c=require("./clsx-C11secjj.cjs"),m="_progressBar_1ia8w_1",d="_label_1ia8w_9",N="_value_1ia8w_14",f="_bar_1ia8w_19",j="_fill_1ia8w_25",a={progressBar:m,label:d,value:N,bar:f,fill:j},v=({label:r,labelProps:s,showValueLabel:n=!1,...t})=>e.jsx(x.$0393f8ab869a0f1a$export$c17561cb55d4db30,{...t,className:c.clsx(a.progressBar,t.className),children:({percentage:l,valueText:_,isIndeterminate:u})=>e.jsxs(e.Fragment,{children:[r&&e.jsx(i.Label,{elementType:"span",...s,className:c.clsx(s==null?void 0:s.className,a.label),children:r}),n&&e.jsx(i.Label,{elementType:"span",...s,id:"",className:c.clsx(s==null?void 0:s.className,a.value),children:_}),e.jsx("div",{className:a.bar,children:e.jsx("div",{className:a.fill,style:{width:`${u?50:l}%`}})})]})});exports.ProgressBar=v;
1
+ "use strict";require('./assets/ProgressBar.css');const e=require("react/jsx-runtime"),x=require("./Button-CMIbSc4-.cjs"),i=require("./Label-Dp85Vue3.cjs"),c=require("./clsx-C11secjj.cjs"),m="_progressBar_1ia8w_1",d="_label_1ia8w_9",N="_value_1ia8w_14",f="_bar_1ia8w_19",j="_fill_1ia8w_25",a={progressBar:m,label:d,value:N,bar:f,fill:j},v=({label:r,labelProps:s,showValueLabel:n=!1,...t})=>e.jsx(x.$0393f8ab869a0f1a$export$c17561cb55d4db30,{...t,className:c.clsx(a.progressBar,t.className),children:({percentage:l,valueText:_,isIndeterminate:u})=>e.jsxs(e.Fragment,{children:[r&&e.jsx(i.Label,{elementType:"span",...s,className:c.clsx(s==null?void 0:s.className,a.label),children:r}),n&&e.jsx(i.Label,{elementType:"span",...s,id:"",className:c.clsx(s==null?void 0:s.className,a.value),children:_}),e.jsx("div",{className:a.bar,children:e.jsx("div",{className:a.fill,style:{width:`${u?50:l}%`}})})]})});exports.ProgressBar=v;
@@ -1 +1 @@
1
- "use strict";require('./assets/Radio.css');const V=require("react/jsx-runtime"),U=require("./Group-BKYGeOBr.cjs"),P=require("./utils-CMHKYKlz.cjs"),M=require("./FieldError-Cornph2A.cjs"),K=require("./Form-BuOomA4T.cjs"),z=require("./Button-CMIbSc4-.cjs"),J=require("./Text-BtPiT2P1.cjs"),R=require("./mergeProps-JhcJ7uJL.cjs"),S=require("./filterDOMProps-RRlKPKX0.cjs"),o=require("react"),B=require("./useFormValidation-BQIRxgbU.cjs"),k=require("./usePress-CicXV7UO.cjs"),Q=require("./useFocusable-CsG-IPuC.cjs"),X=require("./utils-__vrf9VZ.cjs"),Y=require("./FocusScope-Uy3DiY0-.cjs"),Z=require("./useFocusWithin-DTnk0e8a.cjs"),ee=require("./useField-DyeD7MLj.cjs"),ae=require("./context-Df3XbgBG.cjs"),ie=require("./useFocusRing-BcbYske2.cjs"),de=require("./useHover-DGAmG7jt.cjs"),re=require("./VisuallyHidden-EjrqodVh.cjs"),le=require("./useControlledState-D0L6S_5r.cjs"),G=require("./clsx-C11secjj.cjs"),L=require("./Label-C00qz3kQ.cjs"),te=require("./Text-BAFsaON-.cjs"),N=new WeakMap;function oe(a,e,d){let{value:l,children:n,"aria-label":r,"aria-labelledby":c,onPressStart:i,onPressEnd:f,onPressChange:$,onPress:t,onPressUp:s,onClick:v}=a;const b=a.isDisabled||e.isDisabled;let g=n!=null,h=r!=null||c!=null;!g&&!h&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let m=e.selectedValue===l,F=C=>{C.stopPropagation(),e.setSelectedValue(l)},{pressProps:I,isPressed:D}=k.$f6c31cce2adf654f$export$45712eceda6fad21({onPressStart:i,onPressEnd:f,onPressChange:$,onPress:t,onPressUp:s,onClick:v,isDisabled:b}),{pressProps:E,isPressed:x}=k.$f6c31cce2adf654f$export$45712eceda6fad21({onPressStart:i,onPressEnd:f,onPressChange:$,onPressUp:s,onClick:v,isDisabled:b,onPress(C){var _;t==null||t(C),e.setSelectedValue(l),(_=d.current)===null||_===void 0||_.focus()}}),{focusableProps:u}=Q.$f645667febf57a63$export$4c014de7c8940b4c(R.$3ef42575df84b30b$export$9d1611c77c2fe928(a,{onFocus:()=>e.setLastFocusedValue(l)}),d),q=R.$3ef42575df84b30b$export$9d1611c77c2fe928(I,u),p=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a,{labelable:!0}),y=-1;e.selectedValue!=null?e.selectedValue===l&&(y=0):(e.lastFocusedValue===l||e.lastFocusedValue==null)&&(y=0),b&&(y=void 0);let{name:T,form:W,descriptionId:H,errorMessageId:A,validationBehavior:O}=N.get(e);return B.$99facab73266f662$export$5add1d006293d136(d,e.defaultSelectedValue,e.setSelectedValue),B.$e93e671b31057976$export$b8473d3665f3a75a({validationBehavior:O},e,d),{labelProps:R.$3ef42575df84b30b$export$9d1611c77c2fe928(E,{onClick:C=>C.preventDefault()}),inputProps:R.$3ef42575df84b30b$export$9d1611c77c2fe928(p,{...q,type:"radio",name:T,form:W,tabIndex:y,disabled:b,required:e.isRequired&&O==="native",checked:m,value:l,onChange:F,"aria-describedby":[a["aria-describedby"],e.isInvalid?A:null,H].filter(Boolean).join(" ")||void 0}),isDisabled:b,isSelected:m,isPressed:D||x}}function se(a,e){let{name:d,form:l,isReadOnly:n,isRequired:r,isDisabled:c,orientation:i="vertical",validationBehavior:f="aria"}=a,{direction:$}=ae.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{isInvalid:t,validationErrors:s,validationDetails:v}=e.displayValidation,{labelProps:b,fieldProps:g,descriptionProps:h,errorMessageProps:m}=ee.$2baaea4c71418dea$export$294aa081a6c6f55d({...a,labelElementType:"span",isInvalid:e.isInvalid,errorMessage:a.errorMessage||s}),F=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a,{labelable:!0}),{focusWithinProps:I}=Z.$9ab94262bd0047c7$export$420e68273165f4ec({onBlurWithin(x){var u;(u=a.onBlur)===null||u===void 0||u.call(a,x),e.selectedValue||e.setLastFocusedValue(null)},onFocusWithin:a.onFocus,onFocusWithinChange:a.onFocusChange}),D=x=>{let u;switch(x.key){case"ArrowRight":$==="rtl"&&i!=="vertical"?u="prev":u="next";break;case"ArrowLeft":$==="rtl"&&i!=="vertical"?u="next":u="prev";break;case"ArrowDown":u="next";break;case"ArrowUp":u="prev";break;default:return}x.preventDefault();let q=Y.$9bf71ea28793e738$export$2d6ec8fc375ceafa(x.currentTarget,{from:x.target,accept:y=>y instanceof X.$431fbd86ca7dc216$export$f21a1ffae260145a(y).HTMLInputElement&&y.type==="radio"}),p;u==="next"?(p=q.nextNode(),p||(q.currentNode=x.currentTarget,p=q.firstChild())):(p=q.previousNode(),p||(q.currentNode=x.currentTarget,p=q.lastChild())),p&&(p.focus(),e.setSelectedValue(p.value))},E=R.$bdb11010cef70236$export$f680877a34711e37(d);return N.set(e,{name:E,form:l,descriptionId:h.id,errorMessageId:m.id,validationBehavior:f}),{radioGroupProps:R.$3ef42575df84b30b$export$9d1611c77c2fe928(F,{role:"radiogroup",onKeyDown:D,"aria-invalid":e.isInvalid||void 0,"aria-errormessage":a["aria-errormessage"],"aria-readonly":n||void 0,"aria-required":r||void 0,"aria-disabled":c||void 0,"aria-orientation":i,...g,...I}),labelProps:b,descriptionProps:h,errorMessageProps:m,isInvalid:t,validationErrors:s,validationDetails:v}}let ne=Math.round(Math.random()*1e10),ce=0;function ue(a){let e=o.useMemo(()=>a.name||`radio-group-${ne}-${++ce}`,[a.name]);var d;let[l,n]=le.$458b0a5536c1a7cf$export$40bfa8c7b0832715(a.value,(d=a.defaultValue)!==null&&d!==void 0?d:null,a.onChange),[r]=o.useState(l),[c,i]=o.useState(null),f=B.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...a,value:l}),$=v=>{!a.isReadOnly&&!a.isDisabled&&(n(v),f.commitValidation())},t=f.displayValidation.isInvalid;var s;return{...f,name:e,selectedValue:l,defaultSelectedValue:a.value!==void 0?r:(s=a.defaultValue)!==null&&s!==void 0?s:null,setSelectedValue:$,lastFocusedValue:c,setLastFocusedValue:i,isDisabled:a.isDisabled||!1,isReadOnly:a.isReadOnly||!1,isRequired:a.isRequired||!1,validationState:a.validationState||(t?"invalid":null),isInvalid:t}}const fe=o.createContext(null),$e=o.createContext(null),j=o.createContext(null),be=o.forwardRef(function(e,d){[e,d]=P.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,fe);let{validationBehavior:l}=P.$64fa3d84918910a7$export$fabf2dc03a41866e(K.$d3e0e05bdfcf66bd$export$c24727297075ec6a)||{};var n,r;let c=(r=(n=e.validationBehavior)!==null&&n!==void 0?n:l)!==null&&r!==void 0?r:"native",i=ue({...e,validationBehavior:c}),[f,$]=P.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!e["aria-label"]&&!e["aria-labelledby"]),{radioGroupProps:t,labelProps:s,descriptionProps:v,errorMessageProps:b,...g}=se({...e,label:$,validationBehavior:c},i),h=P.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,values:{orientation:e.orientation||"vertical",isDisabled:i.isDisabled,isReadOnly:i.isReadOnly,isRequired:i.isRequired,isInvalid:i.isInvalid,state:i},defaultClassName:"react-aria-RadioGroup"}),m=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return o.createElement("div",{...R.$3ef42575df84b30b$export$9d1611c77c2fe928(m,h,t),ref:d,slot:e.slot||void 0,"data-orientation":e.orientation||"vertical","data-invalid":i.isInvalid||void 0,"data-disabled":i.isDisabled||void 0,"data-readonly":i.isReadOnly||void 0,"data-required":i.isRequired||void 0},o.createElement(P.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[j,i],[z.$01b77f81d0f07f68$export$75b6ee27786ba447,{...s,ref:f,elementType:"span"}],[J.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{description:v,errorMessage:b}}],[M.$ee014567cb39d3f0$export$ff05c3ac10437e03,g]]},h.children))}),ve=o.forwardRef(function(e,d){let{inputRef:l=null,...n}=e;[e,d]=P.$64fa3d84918910a7$export$29f1550f4b0d4415(n,d,$e);let r=o.useContext(j),c=P.$df56164dff5785e2$export$4338b53315abf666(o.useMemo(()=>P.$5dc95899b306f630$export$c9058316764c140e(l,e.inputRef!==void 0?e.inputRef:null),[l,e.inputRef])),{labelProps:i,inputProps:f,isSelected:$,isDisabled:t,isPressed:s}=oe({...P.$64fa3d84918910a7$export$ef03459518577ad4(e),children:typeof e.children=="function"?!0:e.children},r,c),{isFocused:v,isFocusVisible:b,focusProps:g}=ie.$f7dceffc5ad7768b$export$4e328f61c538687f(),h=t||r.isReadOnly,{hoverProps:m,isHovered:F}=de.$6179b936705e76d3$export$ae780daf29e6d456({...e,isDisabled:h}),I=P.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-Radio",values:{isSelected:$,isPressed:s,isHovered:F,isFocused:v,isFocusVisible:b,isDisabled:t,isReadOnly:r.isReadOnly,isInvalid:r.isInvalid,isRequired:r.isRequired}}),D=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return delete D.id,delete D.onClick,o.createElement("label",{...R.$3ef42575df84b30b$export$9d1611c77c2fe928(D,i,m,I),ref:d,"data-selected":$||void 0,"data-pressed":s||void 0,"data-hovered":F||void 0,"data-focused":v||void 0,"data-focus-visible":b||void 0,"data-disabled":t||void 0,"data-readonly":r.isReadOnly||void 0,"data-invalid":r.isInvalid||void 0,"data-required":r.isRequired||void 0},o.createElement(re.$5c3e21d68f1c4674$export$439d29a4e110a164,{elementType:"span"},o.createElement("input",{...R.$3ef42575df84b30b$export$9d1611c77c2fe928(f,g),ref:c})),I.children)}),pe="_radioGroup_if66i_4",xe="_wrap_if66i_15",Pe="_radio_if66i_4",w={radioGroup:pe,wrap:xe,radio:Pe},he=({label:a,description:e,errorMessage:d,children:l,className:n,errorPosition:r="top",popover:c,...i})=>V.jsxs(be,{...i,className:G.clsx(w.radioGroup,n),children:[V.jsx(L.LabelWrapper,{popover:c,children:a&&V.jsx(L.Label,{children:a})}),e&&V.jsx(te.Text,{slot:"description",children:e}),r==="top"&&V.jsx(M.FieldError,{"data-testid":"fieldError",children:d}),V.jsx(U.$a049562f99e7db0e$export$eb2fcfdbd7ba97d4,{className:w.wrap,children:l}),r==="bottom"&&V.jsx(M.FieldError,{"data-testid":"fieldError",children:d})]}),me=({className:a,...e})=>V.jsx(ve,{className:G.clsx(w.radio,a),...e});exports.Radio=me;exports.RadioGroup=he;
1
+ "use strict";require('./assets/Radio.css');const V=require("react/jsx-runtime"),U=require("./Group-BKYGeOBr.cjs"),P=require("./utils-CMHKYKlz.cjs"),w=require("./FieldError-Cornph2A.cjs"),K=require("./Form-BuOomA4T.cjs"),z=require("./Button-CMIbSc4-.cjs"),J=require("./Text-BtPiT2P1.cjs"),R=require("./mergeProps-JhcJ7uJL.cjs"),S=require("./filterDOMProps-RRlKPKX0.cjs"),o=require("react"),M=require("./useFormValidation-BQIRxgbU.cjs"),k=require("./usePress-CicXV7UO.cjs"),Q=require("./useFocusable-CsG-IPuC.cjs"),X=require("./utils-__vrf9VZ.cjs"),Y=require("./FocusScope-Uy3DiY0-.cjs"),Z=require("./useFocusWithin-DTnk0e8a.cjs"),ee=require("./useField-DyeD7MLj.cjs"),ae=require("./context-Df3XbgBG.cjs"),ie=require("./useFocusRing-BcbYske2.cjs"),de=require("./useHover-DGAmG7jt.cjs"),re=require("./VisuallyHidden-EjrqodVh.cjs"),le=require("./useControlledState-D0L6S_5r.cjs"),G=require("./clsx-C11secjj.cjs"),L=require("./Label-Dp85Vue3.cjs"),te=require("./Text-BAFsaON-.cjs"),N=new WeakMap;function oe(a,e,d){let{value:l,children:n,"aria-label":r,"aria-labelledby":c,onPressStart:i,onPressEnd:f,onPressChange:$,onPress:t,onPressUp:s,onClick:v}=a;const b=a.isDisabled||e.isDisabled;let g=n!=null,h=r!=null||c!=null;!g&&!h&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let m=e.selectedValue===l,F=C=>{C.stopPropagation(),e.setSelectedValue(l)},{pressProps:I,isPressed:D}=k.$f6c31cce2adf654f$export$45712eceda6fad21({onPressStart:i,onPressEnd:f,onPressChange:$,onPress:t,onPressUp:s,onClick:v,isDisabled:b}),{pressProps:E,isPressed:x}=k.$f6c31cce2adf654f$export$45712eceda6fad21({onPressStart:i,onPressEnd:f,onPressChange:$,onPressUp:s,onClick:v,isDisabled:b,onPress(C){var _;t==null||t(C),e.setSelectedValue(l),(_=d.current)===null||_===void 0||_.focus()}}),{focusableProps:u}=Q.$f645667febf57a63$export$4c014de7c8940b4c(R.$3ef42575df84b30b$export$9d1611c77c2fe928(a,{onFocus:()=>e.setLastFocusedValue(l)}),d),q=R.$3ef42575df84b30b$export$9d1611c77c2fe928(I,u),p=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a,{labelable:!0}),y=-1;e.selectedValue!=null?e.selectedValue===l&&(y=0):(e.lastFocusedValue===l||e.lastFocusedValue==null)&&(y=0),b&&(y=void 0);let{name:T,form:W,descriptionId:H,errorMessageId:A,validationBehavior:O}=N.get(e);return M.$99facab73266f662$export$5add1d006293d136(d,e.defaultSelectedValue,e.setSelectedValue),M.$e93e671b31057976$export$b8473d3665f3a75a({validationBehavior:O},e,d),{labelProps:R.$3ef42575df84b30b$export$9d1611c77c2fe928(E,{onClick:C=>C.preventDefault()}),inputProps:R.$3ef42575df84b30b$export$9d1611c77c2fe928(p,{...q,type:"radio",name:T,form:W,tabIndex:y,disabled:b,required:e.isRequired&&O==="native",checked:m,value:l,onChange:F,"aria-describedby":[a["aria-describedby"],e.isInvalid?A:null,H].filter(Boolean).join(" ")||void 0}),isDisabled:b,isSelected:m,isPressed:D||x}}function se(a,e){let{name:d,form:l,isReadOnly:n,isRequired:r,isDisabled:c,orientation:i="vertical",validationBehavior:f="aria"}=a,{direction:$}=ae.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{isInvalid:t,validationErrors:s,validationDetails:v}=e.displayValidation,{labelProps:b,fieldProps:g,descriptionProps:h,errorMessageProps:m}=ee.$2baaea4c71418dea$export$294aa081a6c6f55d({...a,labelElementType:"span",isInvalid:e.isInvalid,errorMessage:a.errorMessage||s}),F=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a,{labelable:!0}),{focusWithinProps:I}=Z.$9ab94262bd0047c7$export$420e68273165f4ec({onBlurWithin(x){var u;(u=a.onBlur)===null||u===void 0||u.call(a,x),e.selectedValue||e.setLastFocusedValue(null)},onFocusWithin:a.onFocus,onFocusWithinChange:a.onFocusChange}),D=x=>{let u;switch(x.key){case"ArrowRight":$==="rtl"&&i!=="vertical"?u="prev":u="next";break;case"ArrowLeft":$==="rtl"&&i!=="vertical"?u="next":u="prev";break;case"ArrowDown":u="next";break;case"ArrowUp":u="prev";break;default:return}x.preventDefault();let q=Y.$9bf71ea28793e738$export$2d6ec8fc375ceafa(x.currentTarget,{from:x.target,accept:y=>y instanceof X.$431fbd86ca7dc216$export$f21a1ffae260145a(y).HTMLInputElement&&y.type==="radio"}),p;u==="next"?(p=q.nextNode(),p||(q.currentNode=x.currentTarget,p=q.firstChild())):(p=q.previousNode(),p||(q.currentNode=x.currentTarget,p=q.lastChild())),p&&(p.focus(),e.setSelectedValue(p.value))},E=R.$bdb11010cef70236$export$f680877a34711e37(d);return N.set(e,{name:E,form:l,descriptionId:h.id,errorMessageId:m.id,validationBehavior:f}),{radioGroupProps:R.$3ef42575df84b30b$export$9d1611c77c2fe928(F,{role:"radiogroup",onKeyDown:D,"aria-invalid":e.isInvalid||void 0,"aria-errormessage":a["aria-errormessage"],"aria-readonly":n||void 0,"aria-required":r||void 0,"aria-disabled":c||void 0,"aria-orientation":i,...g,...I}),labelProps:b,descriptionProps:h,errorMessageProps:m,isInvalid:t,validationErrors:s,validationDetails:v}}let ne=Math.round(Math.random()*1e10),ce=0;function ue(a){let e=o.useMemo(()=>a.name||`radio-group-${ne}-${++ce}`,[a.name]);var d;let[l,n]=le.$458b0a5536c1a7cf$export$40bfa8c7b0832715(a.value,(d=a.defaultValue)!==null&&d!==void 0?d:null,a.onChange),[r]=o.useState(l),[c,i]=o.useState(null),f=M.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...a,value:l}),$=v=>{!a.isReadOnly&&!a.isDisabled&&(n(v),f.commitValidation())},t=f.displayValidation.isInvalid;var s;return{...f,name:e,selectedValue:l,defaultSelectedValue:a.value!==void 0?r:(s=a.defaultValue)!==null&&s!==void 0?s:null,setSelectedValue:$,lastFocusedValue:c,setLastFocusedValue:i,isDisabled:a.isDisabled||!1,isReadOnly:a.isReadOnly||!1,isRequired:a.isRequired||!1,validationState:a.validationState||(t?"invalid":null),isInvalid:t}}const fe=o.createContext(null),$e=o.createContext(null),j=o.createContext(null),be=o.forwardRef(function(e,d){[e,d]=P.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,fe);let{validationBehavior:l}=P.$64fa3d84918910a7$export$fabf2dc03a41866e(K.$d3e0e05bdfcf66bd$export$c24727297075ec6a)||{};var n,r;let c=(r=(n=e.validationBehavior)!==null&&n!==void 0?n:l)!==null&&r!==void 0?r:"native",i=ue({...e,validationBehavior:c}),[f,$]=P.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!e["aria-label"]&&!e["aria-labelledby"]),{radioGroupProps:t,labelProps:s,descriptionProps:v,errorMessageProps:b,...g}=se({...e,label:$,validationBehavior:c},i),h=P.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,values:{orientation:e.orientation||"vertical",isDisabled:i.isDisabled,isReadOnly:i.isReadOnly,isRequired:i.isRequired,isInvalid:i.isInvalid,state:i},defaultClassName:"react-aria-RadioGroup"}),m=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return o.createElement("div",{...R.$3ef42575df84b30b$export$9d1611c77c2fe928(m,h,t),ref:d,slot:e.slot||void 0,"data-orientation":e.orientation||"vertical","data-invalid":i.isInvalid||void 0,"data-disabled":i.isDisabled||void 0,"data-readonly":i.isReadOnly||void 0,"data-required":i.isRequired||void 0},o.createElement(P.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[j,i],[z.$01b77f81d0f07f68$export$75b6ee27786ba447,{...s,ref:f,elementType:"span"}],[J.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{description:v,errorMessage:b}}],[w.$ee014567cb39d3f0$export$ff05c3ac10437e03,g]]},h.children))}),ve=o.forwardRef(function(e,d){let{inputRef:l=null,...n}=e;[e,d]=P.$64fa3d84918910a7$export$29f1550f4b0d4415(n,d,$e);let r=o.useContext(j),c=P.$df56164dff5785e2$export$4338b53315abf666(o.useMemo(()=>P.$5dc95899b306f630$export$c9058316764c140e(l,e.inputRef!==void 0?e.inputRef:null),[l,e.inputRef])),{labelProps:i,inputProps:f,isSelected:$,isDisabled:t,isPressed:s}=oe({...P.$64fa3d84918910a7$export$ef03459518577ad4(e),children:typeof e.children=="function"?!0:e.children},r,c),{isFocused:v,isFocusVisible:b,focusProps:g}=ie.$f7dceffc5ad7768b$export$4e328f61c538687f(),h=t||r.isReadOnly,{hoverProps:m,isHovered:F}=de.$6179b936705e76d3$export$ae780daf29e6d456({...e,isDisabled:h}),I=P.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-Radio",values:{isSelected:$,isPressed:s,isHovered:F,isFocused:v,isFocusVisible:b,isDisabled:t,isReadOnly:r.isReadOnly,isInvalid:r.isInvalid,isRequired:r.isRequired}}),D=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return delete D.id,delete D.onClick,o.createElement("label",{...R.$3ef42575df84b30b$export$9d1611c77c2fe928(D,i,m,I),ref:d,"data-selected":$||void 0,"data-pressed":s||void 0,"data-hovered":F||void 0,"data-focused":v||void 0,"data-focus-visible":b||void 0,"data-disabled":t||void 0,"data-readonly":r.isReadOnly||void 0,"data-invalid":r.isInvalid||void 0,"data-required":r.isRequired||void 0},o.createElement(re.$5c3e21d68f1c4674$export$439d29a4e110a164,{elementType:"span"},o.createElement("input",{...R.$3ef42575df84b30b$export$9d1611c77c2fe928(f,g),ref:c})),I.children)}),pe="_radioGroup_1hwrt_1",xe="_wrap_1hwrt_12",Pe="_radio_1hwrt_1",B={radioGroup:pe,wrap:xe,radio:Pe},he=({label:a,description:e,errorMessage:d,children:l,className:n,errorPosition:r="top",popover:c,...i})=>V.jsxs(be,{...i,className:G.clsx(B.radioGroup,n),children:[V.jsx(L.LabelWrapper,{popover:c,children:a&&V.jsx(L.Label,{children:a})}),e&&V.jsx(te.Text,{slot:"description",children:e}),r==="top"&&V.jsx(w.FieldError,{"data-testid":"fieldError",children:d}),V.jsx(U.$a049562f99e7db0e$export$eb2fcfdbd7ba97d4,{className:B.wrap,children:l}),r==="bottom"&&V.jsx(w.FieldError,{"data-testid":"fieldError",children:d})]}),me=({className:a,...e})=>V.jsx(ve,{className:G.clsx(B.radio,a),...e});exports.Radio=me;exports.RadioGroup=he;
@@ -7,7 +7,7 @@ import { b as le } from "./Button-DD5_S-tD.js";
7
7
  import { $ as oe } from "./Text-Be7WIOwv.js";
8
8
  import { a as R, c as se } from "./mergeProps-BSsN7Bgk.js";
9
9
  import { $ as F } from "./filterDOMProps-wsa9OcNI.js";
10
- import _, { useMemo as G, useState as q, forwardRef as T, createContext as M } from "react";
10
+ import _, { useMemo as G, useState as q, forwardRef as T, createContext as B } from "react";
11
11
  import { a as te, b as ne, $ as ce } from "./useFormValidation-L0UHvOsP.js";
12
12
  import { b as O } from "./usePress-DMUpU0GU.js";
13
13
  import { a as fe } from "./useFocusable-DXlMChFC.js";
@@ -21,7 +21,7 @@ import { $ as Pe } from "./useHover-D6bNIkU0.js";
21
21
  import { $ as he } from "./VisuallyHidden-CGEtjAP7.js";
22
22
  import { $ as xe } from "./useControlledState-u436Wbp1.js";
23
23
  import { c as W } from "./clsx-OuTLNxxd.js";
24
- import { a as Re, L as ye } from "./Label-BG7G0iyG.js";
24
+ import { a as Re, L as ye } from "./Label-C5TNJ0Ku.js";
25
25
  import { T as Ve } from "./Text-CmlsaWMA.js";
26
26
  import './assets/Radio.css';const A = /* @__PURE__ */ new WeakMap();
27
27
  function ge(a, e, r) {
@@ -56,9 +56,9 @@ function ge(a, e, r) {
56
56
  labelable: !0
57
57
  }), x = -1;
58
58
  e.selectedValue != null ? e.selectedValue === l && (x = 0) : (e.lastFocusedValue === l || e.lastFocusedValue == null) && (x = 0), b && (x = void 0);
59
- let { name: H, form: j, descriptionId: K, errorMessageId: z, validationBehavior: w } = A.get(e);
59
+ let { name: H, form: j, descriptionId: K, errorMessageId: z, validationBehavior: M } = A.get(e);
60
60
  return te(r, e.defaultSelectedValue, e.setSelectedValue), ne({
61
- validationBehavior: w
61
+ validationBehavior: M
62
62
  }, e, r), {
63
63
  labelProps: R(E, {
64
64
  onClick: (C) => C.preventDefault()
@@ -70,7 +70,7 @@ function ge(a, e, r) {
70
70
  form: j,
71
71
  tabIndex: x,
72
72
  disabled: b,
73
- required: e.isRequired && w === "native",
73
+ required: e.isRequired && M === "native",
74
74
  checked: P,
75
75
  value: l,
76
76
  onChange: D,
@@ -183,7 +183,7 @@ function Ce(a) {
183
183
  isInvalid: o
184
184
  };
185
185
  }
186
- const Fe = /* @__PURE__ */ M(null), Ee = /* @__PURE__ */ M(null), U = /* @__PURE__ */ M(null), Se = /* @__PURE__ */ T(function(e, r) {
186
+ const Fe = /* @__PURE__ */ B(null), Ee = /* @__PURE__ */ B(null), U = /* @__PURE__ */ B(null), Se = /* @__PURE__ */ T(function(e, r) {
187
187
  [e, r] = L(e, r, Fe);
188
188
  let { validationBehavior: l } = ee(de) || {};
189
189
  var t, d;
@@ -246,7 +246,7 @@ const Fe = /* @__PURE__ */ M(null), Ee = /* @__PURE__ */ M(null), U = /* @__PURE
246
246
  ]
247
247
  ]
248
248
  }, m.children));
249
- }), Be = /* @__PURE__ */ T(function(e, r) {
249
+ }), we = /* @__PURE__ */ T(function(e, r) {
250
250
  let { inputRef: l = null, ...t } = e;
251
251
  [e, r] = L(t, r, Ee);
252
252
  let d = _.useContext(U), n = X(G(() => Y(l, e.inputRef !== void 0 ? e.inputRef : null), [
@@ -294,9 +294,9 @@ const Fe = /* @__PURE__ */ M(null), Ee = /* @__PURE__ */ M(null), U = /* @__PURE
294
294
  ...R(f, y),
295
295
  ref: n
296
296
  })), I.children);
297
- }), Me = "_radioGroup_if66i_4", we = "_wrap_if66i_15", ke = "_radio_if66i_4", B = {
298
- radioGroup: Me,
299
- wrap: we,
297
+ }), Be = "_radioGroup_1hwrt_1", Me = "_wrap_1hwrt_12", ke = "_radio_1hwrt_1", w = {
298
+ radioGroup: Be,
299
+ wrap: Me,
300
300
  radio: ke
301
301
  }, sa = ({
302
302
  label: a,
@@ -311,19 +311,19 @@ const Fe = /* @__PURE__ */ M(null), Ee = /* @__PURE__ */ M(null), U = /* @__PURE
311
311
  Se,
312
312
  {
313
313
  ...i,
314
- className: W(B.radioGroup, t),
314
+ className: W(w.radioGroup, t),
315
315
  children: [
316
316
  /* @__PURE__ */ g(Re, { popover: n, children: a && /* @__PURE__ */ g(ye, { children: a }) }),
317
317
  e && /* @__PURE__ */ g(Ve, { slot: "description", children: e }),
318
318
  d === "top" && /* @__PURE__ */ g(k, { "data-testid": "fieldError", children: r }),
319
- /* @__PURE__ */ g(Q, { className: B.wrap, children: l }),
319
+ /* @__PURE__ */ g(Q, { className: w.wrap, children: l }),
320
320
  d === "bottom" && /* @__PURE__ */ g(k, { "data-testid": "fieldError", children: r })
321
321
  ]
322
322
  }
323
323
  ), ta = ({ className: a, ...e }) => /* @__PURE__ */ g(
324
- Be,
324
+ we,
325
325
  {
326
- className: W(B.radio, a),
326
+ className: W(w.radio, a),
327
327
  ...e
328
328
  }
329
329
  );