@midas-ds/components 15.1.3 → 15.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/{CharacterCounter-CTpQ12f7.cjs → CharacterCounter-BjOzWOoN.cjs} +1 -1
  3. package/{CharacterCounter-gbDGfize.js → CharacterCounter-b6RpXKDF.js} +5 -5
  4. package/Checkbox-D9X5vM4a.cjs +6 -0
  5. package/Checkbox-ujNi8mrO.js +288 -0
  6. package/{CheckboxGroup-BkzQi1FB.js → CheckboxGroup-BeBThHOu.js} +16 -13
  7. package/CheckboxGroup-BmEiqFKx.cjs +1 -0
  8. package/{ComboBox-t1RVXiiQ.js → ComboBox-BGXUTKrW.js} +138 -142
  9. package/{ComboBox-BISNYEw3.cjs → ComboBox-lteAZwCb.cjs} +1 -1
  10. package/DateField-ZPcapPji.cjs +1 -0
  11. package/DateField-snXaUoBR.js +45 -0
  12. package/{DateInputDivider-DOHpVaNE.js → DateInputDivider-BjVsNVEk.js} +1 -1
  13. package/{DateInputDivider-CCrXjsUB.cjs → DateInputDivider-YOvEmapQ.cjs} +1 -1
  14. package/{DateRangePicker-mlnh0C1A.cjs → DateRangePicker-Biwt-Q8X.cjs} +2 -2
  15. package/{DateRangePicker-ezrFzzrO.js → DateRangePicker-CgvPZfMd.js} +168 -165
  16. package/{FieldError-JWxR_EqN.cjs → FieldError-DHzrxRPt.cjs} +1 -1
  17. package/{FieldError-CIxlNQCM.js → FieldError-DtEDCIQK.js} +1 -1
  18. package/{Label-C3ZSrB04.cjs → Label-Cbp1q387.cjs} +1 -1
  19. package/{Label-BqvFQoEF.js → Label-DH4JI6a4.js} +5 -5
  20. package/Layout-DQiqgjqR.cjs +16 -0
  21. package/{Layout-Hd1e_MEA.js → Layout-FveYuBny.js} +59 -58
  22. package/{ListBox-Rke-lL0z.cjs → ListBox-CMM6O46x.cjs} +1 -1
  23. package/{ListBox-BP_jDOdE.js → ListBox-CfzKpJFW.js} +26 -26
  24. package/{ListBoxLoadMoreItem-8dHDWs3w.cjs → ListBoxLoadMoreItem-10BeO9ux.cjs} +1 -1
  25. package/{ListBoxLoadMoreItem-BE5zpVVP.js → ListBoxLoadMoreItem-k-uwDi4f.js} +1 -1
  26. package/ListBoxSection-B5l2LIMZ.cjs +1 -0
  27. package/ListBoxSection-XoMfdRLd.js +51 -0
  28. package/{ProgressBar-BrtaxoR8.cjs → ProgressBar-C6ExqGom.cjs} +1 -1
  29. package/{ProgressBar-DhVQOs4P.js → ProgressBar-CePyiuw1.js} +1 -1
  30. package/{Radio-DClH8mWz.js → Radio-CNO4IHkf.js} +28 -28
  31. package/{Radio-VFIiuJIR.cjs → Radio-bfeheQ39.cjs} +1 -1
  32. package/{RangeCalendar-CH0CyBui.cjs → RangeCalendar-D7xj3ObC.cjs} +2 -2
  33. package/{RangeCalendar-DT_KVd80.js → RangeCalendar-DKsuoiPF.js} +101 -92
  34. package/{SearchField-Cd6X2rY4.js → SearchField-3XoN9q0k.js} +2 -2
  35. package/{SearchField-Cz5Pb0XE.cjs → SearchField-ClK2IHpM.cjs} +1 -1
  36. package/{Select-DL5Mvadi.cjs → Select-C1rNC9sy.cjs} +1 -1
  37. package/Select-CCyvb02g.cjs +1 -0
  38. package/{Select-zDwMkzOI.js → Select-mz65sX1p.js} +7 -8
  39. package/{Select-D4xRL7l2.js → Select-oiNYST-S.js} +5 -5
  40. package/{Table-DxqKDp7N.js → Table-3x_iGkVe.js} +1 -1
  41. package/{Table-B1nxmW14.cjs → Table-BKbmV4Yp.cjs} +1 -1
  42. package/{Text-BBFWBNAH.js → Text-CnY7jiPS.js} +9 -9
  43. package/Text-DUIBTA3N.cjs +1 -0
  44. package/{TextArea-CcKY4TI2.js → TextArea-Bzgu6xU_.js} +6 -6
  45. package/{TextArea-D68vGjYJ.cjs → TextArea-DPeIoF7V.cjs} +1 -1
  46. package/{TextField-DtD9-arA.cjs → TextField-CdhdTYjC.cjs} +1 -1
  47. package/{TextField-DyR61bjZ.js → TextField-DFMRyd9V.js} +1 -1
  48. package/TextField.module-D9xjQoiS.js +13 -0
  49. package/TextField.module-gwQfMD2x.cjs +1 -0
  50. package/assets/CharacterCounter.css +1 -1
  51. package/assets/Checkbox.css +1 -1
  52. package/assets/ComboBox.css +1 -1
  53. package/assets/DateField.css +1 -1
  54. package/assets/DateRangePicker.css +1 -1
  55. package/assets/Label.css +1 -1
  56. package/assets/ListBox.css +1 -1
  57. package/assets/Radio.css +1 -1
  58. package/assets/RangeCalendar.css +1 -1
  59. package/assets/Text.css +1 -1
  60. package/assets/TextField.css +1 -1
  61. package/assets/default.css +1 -1
  62. package/calendar/CalendarGrid.d.ts +1 -0
  63. package/calendar/CalendarHeader.d.ts +3 -1
  64. package/calendar/index.cjs +1 -1
  65. package/calendar/index.js +1 -1
  66. package/character-counter/index.cjs +1 -1
  67. package/character-counter/index.js +1 -1
  68. package/checkbox/index.cjs +1 -1
  69. package/checkbox/index.js +2 -2
  70. package/combobox/ComboBox.d.ts +10 -3
  71. package/combobox/index.cjs +1 -1
  72. package/combobox/index.js +1 -1
  73. package/combobox/utils.d.ts +12 -3
  74. package/date-field/index.cjs +1 -1
  75. package/date-field/index.js +2 -2
  76. package/date-picker/DatePicker.d.ts +1 -2
  77. package/date-picker/DatePickerInputField.d.ts +2 -5
  78. package/date-picker/index.cjs +1 -1
  79. package/date-picker/index.js +1 -1
  80. package/field-error/index.cjs +1 -1
  81. package/field-error/index.js +1 -1
  82. package/index.cjs +1 -1
  83. package/index.js +22 -22
  84. package/label/index.cjs +1 -1
  85. package/label/index.js +1 -1
  86. package/layout/index.cjs +1 -1
  87. package/layout/index.js +1 -1
  88. package/legacy-select/Select.d.ts +1 -1
  89. package/legacy-select/index.cjs +1 -1
  90. package/legacy-select/index.js +1 -1
  91. package/legacy-select/types.d.ts +3 -0
  92. package/list-box/ListBoxItem.d.ts +3 -9
  93. package/list-box/ListBoxSection.d.ts +6 -3
  94. package/list-box/index.cjs +1 -1
  95. package/list-box/index.js +3 -3
  96. package/list-box/types.d.ts +6 -0
  97. package/package.json +2 -2
  98. package/progress-bar/index.cjs +1 -1
  99. package/progress-bar/index.js +1 -1
  100. package/radio/index.cjs +1 -1
  101. package/radio/index.js +1 -1
  102. package/search-field/index.cjs +1 -1
  103. package/search-field/index.js +1 -1
  104. package/select/index.cjs +1 -1
  105. package/select/index.js +1 -1
  106. package/table/index.cjs +1 -1
  107. package/table/index.js +1 -1
  108. package/text/index.cjs +1 -1
  109. package/text/index.js +1 -1
  110. package/textfield/index.cjs +1 -1
  111. package/textfield/index.js +1 -1
  112. package/variables-BkqZ2WGF.js +5 -0
  113. package/variables-CVumCR9l.cjs +1 -0
  114. package/Checkbox-BgrLxY6P.cjs +0 -1
  115. package/Checkbox-CdN1D5pD.js +0 -282
  116. package/CheckboxGroup-BdRG71EM.cjs +0 -1
  117. package/DateField-B9Yxknuy.cjs +0 -1
  118. package/DateField-BUZ7i9eS.js +0 -47
  119. package/Layout-BrEuHajQ.cjs +0 -16
  120. package/ListBoxSection-7Xzi-bqq.cjs +0 -1
  121. package/ListBoxSection-AIWxdu1v.js +0 -53
  122. package/Select-CHJefc5g.cjs +0 -1
  123. package/Text-D5OSv6Uv.cjs +0 -1
  124. package/TextField.module-BndKUn-7.js +0 -13
  125. package/TextField.module-Du0bmSGZ.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";require('./assets/FieldError.css');const a=require("react/jsx-runtime"),o=require("react"),d=require("./utils-CtICjCYt.cjs"),f=require("./Text-0wXj3J8E.cjs"),u=require("./filterDOMProps-RRlKPKX0.cjs"),$=require("./clsx-DKOfLqne.cjs"),b=require("./Text-D5OSv6Uv.cjs");function x(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,t.get?t:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const s=x(o),i=o.createContext(null),E=o.forwardRef(function(n,r){let t=o.useContext(i);return t!=null&&t.isInvalid?o.createElement(v,{...n,ref:r}):null}),v=o.forwardRef((e,n)=>{let r=o.useContext(i),t=u.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0}),l=d.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-FieldError",defaultChildren:r.validationErrors.length===0?void 0:r.validationErrors.join(" "),values:r});return l.children==null?null:o.createElement(f.$514c0188e459b4c0$export$5f1af8db9871e1d6,{slot:"errorMessage",...t,...l,ref:n})}),m="_fieldError_u3cks_1",p={fieldError:m},g=s.forwardRef((e,n)=>{const{children:r,isInvalid:t}=e,l=$.clsx(p.fieldError,e.className),c=s.useContext(i);return!c&&t&&typeof r!="function"?a.jsx(b.Text,{className:l,children:r}):c!=null&&c.isInvalid?a.jsx(E,{...e,ref:n,className:l}):null});exports.$ee014567cb39d3f0$export$ff05c3ac10437e03=i;exports.FieldError=g;
1
+ "use strict";require('./assets/FieldError.css');const a=require("react/jsx-runtime"),o=require("react"),d=require("./utils-CtICjCYt.cjs"),f=require("./Text-0wXj3J8E.cjs"),u=require("./filterDOMProps-RRlKPKX0.cjs"),$=require("./clsx-DKOfLqne.cjs"),b=require("./Text-DUIBTA3N.cjs");function x(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,t.get?t:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const s=x(o),i=o.createContext(null),E=o.forwardRef(function(n,r){let t=o.useContext(i);return t!=null&&t.isInvalid?o.createElement(v,{...n,ref:r}):null}),v=o.forwardRef((e,n)=>{let r=o.useContext(i),t=u.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0}),l=d.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-FieldError",defaultChildren:r.validationErrors.length===0?void 0:r.validationErrors.join(" "),values:r});return l.children==null?null:o.createElement(f.$514c0188e459b4c0$export$5f1af8db9871e1d6,{slot:"errorMessage",...t,...l,ref:n})}),m="_fieldError_u3cks_1",p={fieldError:m},g=s.forwardRef((e,n)=>{const{children:r,isInvalid:t}=e,l=$.clsx(p.fieldError,e.className),c=s.useContext(i);return!c&&t&&typeof r!="function"?a.jsx(b.Text,{className:l,children:r}):c!=null&&c.isInvalid?a.jsx(E,{...e,ref:n,className:l}):null});exports.$ee014567cb39d3f0$export$ff05c3ac10437e03=i;exports.FieldError=g;
@@ -5,7 +5,7 @@ import { a as $ } from "./utils-D2iKpxcZ.js";
5
5
  import { a as m } from "./Text-bqP9NeVg.js";
6
6
  import { $ as E } from "./filterDOMProps-wsa9OcNI.js";
7
7
  import { c as p } from "./clsx-jbLnTBqA.js";
8
- import { T as v } from "./Text-BBFWBNAH.js";
8
+ import { T as v } from "./Text-CnY7jiPS.js";
9
9
  import './assets/FieldError.css';const n = /* @__PURE__ */ u(null), x = /* @__PURE__ */ s(function(o, r) {
10
10
  let t = c(n);
11
11
  return t != null && t.isInvalid ? /* @__PURE__ */ f.createElement(b, {
@@ -1 +1 @@
1
- "use strict";require('./assets/Label.css');const t=require("react/jsx-runtime"),l=require("react"),u=require("./clsx-DKOfLqne.cjs"),p=require("./Button-1sEX8jKn.cjs"),f=require("./Popover-DpB0XDBp.cjs"),d=require("./Button-BEWKXjlP.cjs"),v=require("./Dialog-DycTLpdr.cjs"),g=require("./info-Dj6SyPex.cjs"),m=require("./useLocalizedStringFormatter-BSac43NO.cjs");function x(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const P=x(l),j="_labelBase_3izfx_1",_={labelBase:j},$="_labelPopover_1iatl_1",I="_labelPopoverTrigger_1iatl_7",b={labelPopover:$,labelPopoverTrigger:I},q={moreInfo:"More info"},L={moreInfo:"Mer information"},O={en:q,sv:L},T=({children:e,"aria-label":o})=>{const[r,s]=l.useState(!1),n=l.useContext(c),a=m.useLocalizedStringFormatter(O);return t.jsxs(v.$de32f1b87079253c$export$2e1e1122cf0cba88,{isOpen:r,onOpenChange:s,children:[t.jsx(d.Button,{variant:"icon",size:"medium",className:b.labelPopoverTrigger,"aria-label":o||a.format("moreInfo"),id:n==null?void 0:n.popoverId,children:t.jsx(g.Info,{size:20})}),t.jsx(f.Popover,{children:e})]})},c=l.createContext(void 0),y=({children:e,popover:o})=>{const r=l.useId();return o?t.jsx(c.Provider,{value:{popoverId:r},children:t.jsxs("div",{className:b.labelPopover,children:[e,t.jsx(T,{...o})]})}):e},i="label",B=({children:e,className:o,elementType:r=i,...s})=>{const n={className:u.clsx(_.labelBase,o),elementType:r||i,...s},a=P.useContext(c);return t.jsx(p.$01b77f81d0f07f68$export$b04be29aa201d4f5,{...n,"aria-describedby":a==null?void 0:a.popoverId,children:e})};exports.Label=B;exports.LabelWrapper=y;
1
+ "use strict";require('./assets/Label.css');const t=require("react/jsx-runtime"),l=require("react"),u=require("./clsx-DKOfLqne.cjs"),p=require("./Button-1sEX8jKn.cjs"),f=require("./Popover-DpB0XDBp.cjs"),d=require("./Button-BEWKXjlP.cjs"),v=require("./Dialog-DycTLpdr.cjs"),g=require("./info-Dj6SyPex.cjs"),m=require("./useLocalizedStringFormatter-BSac43NO.cjs");function x(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const P=x(l),j="_labelBase_f5wtf_1",_={labelBase:j},$="_labelPopover_1iatl_1",I="_labelPopoverTrigger_1iatl_7",b={labelPopover:$,labelPopoverTrigger:I},q={moreInfo:"More info"},L={moreInfo:"Mer information"},O={en:q,sv:L},T=({children:e,"aria-label":o})=>{const[r,s]=l.useState(!1),n=l.useContext(c),a=m.useLocalizedStringFormatter(O);return t.jsxs(v.$de32f1b87079253c$export$2e1e1122cf0cba88,{isOpen:r,onOpenChange:s,children:[t.jsx(d.Button,{variant:"icon",size:"medium",className:b.labelPopoverTrigger,"aria-label":o||a.format("moreInfo"),id:n==null?void 0:n.popoverId,children:t.jsx(g.Info,{size:20})}),t.jsx(f.Popover,{children:e})]})},c=l.createContext(void 0),y=({children:e,popover:o})=>{const r=l.useId();return o?t.jsx(c.Provider,{value:{popoverId:r},children:t.jsxs("div",{className:b.labelPopover,children:[e,t.jsx(T,{...o})]})}):e},i="label",B=({children:e,className:o,elementType:r=i,...s})=>{const n={className:u.clsx(_.labelBase,o),elementType:r||i,...s},a=P.useContext(c);return t.jsx(p.$01b77f81d0f07f68$export$b04be29aa201d4f5,{...n,"aria-describedby":a==null?void 0:a.popoverId,children:e})};exports.Label=B;exports.LabelWrapper=y;
@@ -1,14 +1,14 @@
1
1
  import { jsxs as c, jsx as r } from "react/jsx-runtime";
2
- import * as b from "react";
2
+ import * as f from "react";
3
3
  import l from "react";
4
- import { c as f } from "./clsx-jbLnTBqA.js";
4
+ import { c as b } from "./clsx-jbLnTBqA.js";
5
5
  import { d } from "./Button-BbfVT9Yl.js";
6
6
  import { P as v } from "./Popover-CS8Yyfrq.js";
7
7
  import { B as u } from "./Button-DdXFHfXw.js";
8
8
  import { $ as P } from "./Dialog-D4Py85wi.js";
9
9
  import { I as g } from "./info-CPK1vbOJ.js";
10
10
  import { u as _ } from "./useLocalizedStringFormatter-aOhh7wdl.js";
11
- import './assets/Label.css';const $ = "_labelBase_3izfx_1", I = {
11
+ import './assets/Label.css';const $ = "_labelBase_f5wtf_1", I = {
12
12
  labelBase: $
13
13
  }, x = "_labelPopover_1iatl_1", L = "_labelPopoverTrigger_1iatl_7", m = {
14
14
  labelPopover: x,
@@ -55,10 +55,10 @@ import './assets/Label.css';const $ = "_labelBase_3izfx_1", I = {
55
55
  ...n
56
56
  }) => {
57
57
  const s = {
58
- className: f(I.labelBase, o),
58
+ className: b(I.labelBase, o),
59
59
  elementType: a || p,
60
60
  ...n
61
- }, t = b.useContext(i);
61
+ }, t = f.useContext(i);
62
62
  return /* @__PURE__ */ r(
63
63
  d,
64
64
  {
@@ -0,0 +1,16 @@
1
+ "use strict";require('./assets/Layout.css');const e=require("react/jsx-runtime"),E=require("./GridItem-BZ8eOXMB.cjs"),O=require("react"),p=require("./clsx-DKOfLqne.cjs"),L=require("./Button-BEWKXjlP.cjs"),C=require("./Link-DRU6Qzia.cjs"),I=require("./Tooltip-D-ATlbIM.cjs"),j=require("./BadgeContainer-BZl6mSeb.cjs"),y=require("./createLucideIcon-CTVXwe6i.cjs"),T=require("./usePress-DmU79HEg.cjs"),N=require("./useLocalizedStringFormatter-BSac43NO.cjs"),H=require("./variables-CVumCR9l.cjs"),k=require("./Logo-4tRnV4Su.cjs"),G=require("./x-rV-nu490.cjs");function D(a){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const r in a)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(a,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>a[r]})}}return t.default=a,Object.freeze(t)}const b=D(O);/**
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 F=[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]],W=y.createLucideIcon("menu",F);/**
7
+ * @license lucide-react v0.525.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const R=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],A=y.createLucideIcon("panel-left-close",R);/**
12
+ * @license lucide-react v0.525.0 - ISC
13
+ *
14
+ * This source code is licensed under the ISC license.
15
+ * See the LICENSE file in the root directory of this source tree.
16
+ */const X=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],J=y.createLucideIcon("panel-left-open",X),K="_baseLayout_7ccl4_1",Q="_mainContent_7ccl4_10",U="_header_7ccl4_15",V="_headerExternal_7ccl4_26",Y="_headerContent_7ccl4_41",Z="_logo_7ccl4_60",ee="_headerItems_7ccl4_69",se="_toggleButton_7ccl4_75",ae="_sidebar_7ccl4_83",te="_main_7ccl4_10",ne="_app_7ccl4_116",re="_sidebarOpened_7ccl4_124",ie="_sidebarHeader_7ccl4_128",ce="_appName_7ccl4_140",oe="_collapseButton_7ccl4_147",le="_sidebarCollapsed_7ccl4_156",de="_userName_7ccl4_166",me="_userTitle_7ccl4_184",ue="_title_7ccl4_196",xe="_sidebarNav_7ccl4_207",pe="_list_7ccl4_213",_e="_listGroupTitle_7ccl4_219",he="_listItem_7ccl4_226",be="_listItemCollapsed_7ccl4_231",je="_listLink_7ccl4_235",ve="_listLinkCollapsed_7ccl4_298",fe="_active_7ccl4_303",Ne="_backdrop_7ccl4_330",ge="_backdropOpened_7ccl4_340",ke="_skipToContent_7ccl4_358",Ce="_navbar_7ccl4_372",Le="_navbarList_7ccl4_384",ye="_navbarItem_7ccl4_406",Se="_headerContentExternal_7ccl4_457",Me="_logoExternalContainer_7ccl4_465",Ee="_logoExternal_7ccl4_465",Ie="_logoExternalDesktop_7ccl4_477",Be="_navbarWrapper_7ccl4_486",s={baseLayout:K,mainContent:Q,header:U,headerExternal:V,headerContent:Y,logo:Z,headerItems:ee,toggleButton:se,sidebar:ae,main:te,app:ne,sidebarOpened:re,sidebarHeader:ie,appName:ce,collapseButton:oe,sidebarCollapsed:le,userName:de,userTitle:me,title:ue,sidebarNav:xe,list:pe,listGroupTitle:_e,listItem:he,listItemCollapsed:be,listLink:je,listLinkCollapsed:ve,active:fe,backdrop:Ne,backdropOpened:ge,skipToContent:ke,navbar:Ce,navbarList:Le,navbarItem:ye,headerContentExternal:Se,logoExternalContainer:Me,logoExternal:Ee,logoExternalDesktop:Ie,navbarWrapper:Be},$=b.createContext(void 0),ze=({items:a,title:t,user:r,app:n,children:i,clientSideRouter:o,clientSideHref:c,headerChildren:x,isCollapsed:u,setIsCollapsed:d,isOpened:_,setIsOpened:m,variant:h,id:v})=>e.jsx($.Provider,{value:{items:a,title:t,user:r,app:n,headerChildren:x,isCollapsed:u,setIsCollapsed:d,isOpened:_,setIsOpened:m,clientSideRouter:o,clientSideHref:c,variant:h,id:v},children:i}),f=()=>{const a=b.useContext($);if(!a)throw new Error("useLayoutContext must be used within a LayoutProvider");return a},S=({title:a,href:t,icon:r,active:n,hasBadge:i})=>{const{isCollapsed:o,setIsOpened:c,clientSideHref:x}=f(),u=x?x(t):t,[d,_]=b.useState(!1);return b.useEffect(()=>{typeof window<"u"&&_(n??window.location.pathname===u)},[n,u]),o?e.jsxs(I.TooltipTrigger,{children:[e.jsx(C.$4f118338184dc1d9$export$a6c7ac8248d6e38a,{href:t,"aria-label":a,className:p.clsx(s.listLink,s.listLinkCollapsed,d&&s.active),onPress:()=>c==null?void 0:c(!1),children:e.jsxs(j.BadgeContainer,{children:[e.jsx(r,{size:20,"aria-label":a}),i&&e.jsx(j.Badge,{})]})}),e.jsx(I.Tooltip,{placement:"right",children:a})]}):e.jsxs(C.$4f118338184dc1d9$export$a6c7ac8248d6e38a,{href:t,"aria-label":a,className:p.clsx(s.listLink,d&&s.active),onPress:()=>c==null?void 0:c(!1),children:[e.jsxs(j.BadgeContainer,{children:[e.jsx(r,{size:20}),i&&e.jsx(j.Badge,{})]}),a]})},Te={closeMenu:"Close menu",openMenu:"Open menu",maximizeMenu:"Maximize menu",minimizeMenu:"Minimize menu",sidebarMenu:"Sidebar menu",bottomMenu:"Bottom menu",skipToContent:"Skip to main content"},$e={closeMenu:"Stäng meny",openMenu:"Öppna meny",maximizeMenu:"Maximera meny",minimizeMenu:"Minimera meny",sidebarMenu:"Sidomeny",bottomMenu:"Bottenmeny",skipToContent:"Hoppa till huvudinnehåll"},g={en:Te,sv:$e},P=()=>{const{items:a,app:t,isOpened:r,isCollapsed:n,setIsCollapsed:i,setIsOpened:o,clientSideRouter:c,clientSideHref:x,id:u}=f(),d=N.useLocalizedStringFormatter(g),_=({group:m})=>e.jsx("ul",{className:s.list,children:m.items.map((h,v)=>e.jsx("li",{className:p.clsx(s.listItem,n&&s.listItemCollapsed),children:e.jsx(S,{...h})},"link_"+v))});return b.useEffect(()=>{const m=h=>{h.key==="Escape"&&o!==void 0&&o(!1)};return window.addEventListener("keydown",m),()=>{window.removeEventListener("keydown",m)}},[o]),e.jsxs("aside",{id:u,className:p.clsx(s.sidebar,n&&s.sidebarCollapsed,r&&s.sidebarOpened),children:[e.jsxs("div",{className:s.sidebarHeader,children:[!n&&e.jsx("p",{className:s.appName,children:t.name}),e.jsx(L.Button,{variant:"icon","aria-label":n?d.format("maximizeMenu"):d.format("minimizeMenu"),onPress:()=>i(!n),className:s.collapseButton,children:n?e.jsx(J,{size:20}):e.jsx(A,{size:20})})]}),e.jsx("nav",{className:s.sidebarNav,"aria-label":d.format("sidebarMenu"),children:e.jsx("ul",{className:s.list,children:a.map((m,h)=>e.jsxs("li",{children:[m.title&&!n&&e.jsx("p",{className:s.listGroupTitle,children:m.title}),c?e.jsx(T.$ea8dcbcb9ea1b556$export$323e4fc2fa4753fb,{navigate:c,useHref:x,children:e.jsx(_,{group:m})}):e.jsx(_,{group:m})]},"list_"+h))})})]})},q=()=>{const{title:a,user:t,app:r,isOpened:n,setIsOpened:i,setIsCollapsed:o,headerChildren:c,variant:x,id:u}=f(),d=N.useLocalizedStringFormatter(g);return x==="external"?e.jsx("header",{className:p.clsx(s.header,s.headerExternal),children:e.jsxs("div",{className:s.headerContentExternal,children:[e.jsxs("div",{className:s.logoExternalContainer,children:[e.jsx(k.Logo,{size:"x-small",padding:!1,className:s.logoExternal}),e.jsx(k.Logo,{size:"small",padding:!1,className:s.logoExternalDesktop}),e.jsxs("div",{children:[e.jsx("p",{className:s.userName,children:t.name}),e.jsx("p",{className:s.userTitle,children:t.title})]})]}),e.jsx("div",{className:s.headerItems,children:c})]})}):e.jsxs("header",{className:s.header,style:{borderTop:`solid 4px ${r.color?r.color:H.brandPrimary}`},children:[e.jsxs("div",{className:s.headerContent,children:[e.jsx("div",{className:s.logo,children:e.jsx(k.Logo,{size:"small",padding:!1})}),n!==void 0&&e.jsx(L.Button,{variant:"icon",className:s.toggleButton,"aria-label":n?d.format("closeMenu"):d.format("openMenu"),"aria-controls":u,onPressStart:()=>{o(!1),i==null||i(!0)},children:n?e.jsx(G.X,{size:20,"aria-hidden":"true"}):e.jsx(W,{size:20,"aria-hidden":"true"})}),e.jsxs("div",{children:[e.jsx("p",{className:s.userName,children:t.name}),e.jsx("p",{className:s.userTitle,children:t.title}),e.jsx("p",{className:s.title,children:a})]})]}),e.jsx("div",{className:s.headerItems,children:c})]})},B=({id:a="main:first-of-type"})=>{const t=()=>{const n=document.querySelector(a);n&&(n.tabIndex=-1,n.focus(),setTimeout(()=>n.removeAttribute("tabindex"),1e3))},r=N.useLocalizedStringFormatter(g);return e.jsx(L.Button,{onPress:t,className:s.skipToContent,children:r.format("skipToContent")})},Pe=()=>{const{isOpened:a,setIsOpened:t}=f();return a?e.jsx("div",{className:p.clsx(s.backdrop,s.backdropOpened),onClick:()=>{t==null||t(!1)},"aria-hidden":!0}):null},w=()=>{var o;const{items:a,clientSideRouter:t,clientSideHref:r}=f(),n=N.useLocalizedStringFormatter(g),i=(o=a.at(0))==null?void 0:o.items;return e.jsx("nav",{className:s.navbar,"aria-label":n.format("bottomMenu"),children:i&&e.jsx("ul",{className:p.clsx(s.navbarList),children:t?e.jsx(T.$ea8dcbcb9ea1b556$export$323e4fc2fa4753fb,{navigate:t,useHref:r,children:e.jsx(z,{items:i})}):e.jsx(z,{items:i})})})},z=({items:a})=>e.jsx(e.Fragment,{children:a.map(({href:t,active:r,icon:n,title:i,hasBadge:o},c)=>e.jsx("li",{children:e.jsxs(C.$4f118338184dc1d9$export$a6c7ac8248d6e38a,{href:t,className:p.clsx(s.navbarItem),"data-active":r,"aria-current":r&&"page",children:[e.jsxs(j.BadgeContainer,{children:[e.jsx(n,{size:20}),o&&e.jsx(j.Badge,{})]}),i]})},c))}),l=({items:a,title:t,user:r,app:n,children:i,headerChildren:o,clientSideRouter:c,clientSideHref:x,variant:u,className:d})=>{const[_,m]=b.useState(!1),[h,v]=b.useState(!1),M=b.useId();return u==="external"?e.jsx(l.Provider,{items:a,title:t,user:r,app:n,clientSideRouter:c,clientSideHref:x,headerChildren:o,isCollapsed:_,setIsCollapsed:m,variant:u,id:M,children:e.jsxs("div",{className:p.clsx(s.baseLayout,d),children:[e.jsx(B,{}),e.jsx(l.Header,{}),e.jsxs("div",{className:s.mainContent,children:[e.jsx(l.Sidebar,{}),e.jsx(E.GridItem,{children:e.jsx("main",{className:s.main,children:e.jsx("div",{className:s.app,children:i})})}),e.jsx(l.Backdrop,{})]}),e.jsx("div",{className:s.navbarWrapper,children:e.jsx(l.Navbar,{})})]})}):e.jsx(l.Provider,{items:a,title:t,user:r,app:n,clientSideRouter:c,clientSideHref:x,headerChildren:o,isCollapsed:_,setIsCollapsed:m,isOpened:h,setIsOpened:v,variant:u,id:M,children:e.jsxs("div",{className:p.clsx(s.baseLayout,d),children:[e.jsx(B,{}),e.jsx(l.Header,{}),e.jsxs("div",{className:s.mainContent,children:[e.jsx(l.Sidebar,{}),e.jsx(E.GridItem,{children:e.jsx("main",{className:s.main,children:e.jsx("div",{className:s.app,children:i})})}),e.jsx(l.Backdrop,{})]})]})})};l.Provider=ze;l.Header=q;l.Sidebar=P;l.SidebarLink=S;l.Navbar=w;l.Backdrop=Pe;exports.Header=q;exports.Layout=l;exports.Navbar=w;exports.Sidebar=P;exports.SidebarLink=S;
@@ -9,82 +9,83 @@ import { a as L, B as M } from "./BadgeContainer-DilMiV6u.js";
9
9
  import { c as T } from "./createLucideIcon-XRdN60yz.js";
10
10
  import { $ as w } from "./usePress-BqQIhkNY.js";
11
11
  import { u as C } from "./useLocalizedStringFormatter-aOhh7wdl.js";
12
+ import { b as W } from "./variables-BkqZ2WGF.js";
12
13
  import { L as g } from "./Logo-DLlt576_.js";
13
- import { X as W } from "./x-C2xUHAEl.js";
14
+ import { X as j } from "./x-C2xUHAEl.js";
14
15
  import './assets/Layout.css';/**
15
16
  * @license lucide-react v0.525.0 - ISC
16
17
  *
17
18
  * This source code is licensed under the ISC license.
18
19
  * See the LICENSE file in the root directory of this source tree.
19
20
  */
20
- const j = [
21
+ const D = [
21
22
  ["path", { d: "M4 12h16", key: "1lakjw" }],
22
23
  ["path", { d: "M4 18h16", key: "19g7jn" }],
23
24
  ["path", { d: "M4 6h16", key: "1o0s65" }]
24
- ], D = T("menu", j);
25
+ ], q = T("menu", D);
25
26
  /**
26
27
  * @license lucide-react v0.525.0 - ISC
27
28
  *
28
29
  * This source code is licensed under the ISC license.
29
30
  * See the LICENSE file in the root directory of this source tree.
30
31
  */
31
- const q = [
32
+ const A = [
32
33
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
33
34
  ["path", { d: "M9 3v18", key: "fh3hqa" }],
34
35
  ["path", { d: "m16 15-3-3 3-3", key: "14y99z" }]
35
- ], A = T("panel-left-close", q);
36
+ ], F = T("panel-left-close", A);
36
37
  /**
37
38
  * @license lucide-react v0.525.0 - ISC
38
39
  *
39
40
  * This source code is licensed under the ISC license.
40
41
  * See the LICENSE file in the root directory of this source tree.
41
42
  */
42
- const F = [
43
+ const R = [
43
44
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
44
45
  ["path", { d: "M9 3v18", key: "fh3hqa" }],
45
46
  ["path", { d: "m14 9 3 3-3 3", key: "8010ee" }]
46
- ], R = T("panel-left-open", F), X = "_baseLayout_7ccl4_1", J = "_mainContent_7ccl4_10", K = "_header_7ccl4_15", Q = "_headerExternal_7ccl4_26", U = "_headerContent_7ccl4_41", V = "_logo_7ccl4_60", Y = "_headerItems_7ccl4_69", Z = "_toggleButton_7ccl4_75", ee = "_sidebar_7ccl4_83", ae = "_main_7ccl4_10", te = "_app_7ccl4_116", ne = "_sidebarOpened_7ccl4_124", se = "_sidebarHeader_7ccl4_128", ie = "_appName_7ccl4_140", re = "_collapseButton_7ccl4_147", oe = "_sidebarCollapsed_7ccl4_156", le = "_userName_7ccl4_166", ce = "_userTitle_7ccl4_184", de = "_title_7ccl4_196", me = "_sidebarNav_7ccl4_207", pe = "_list_7ccl4_213", _e = "_listGroupTitle_7ccl4_219", ue = "_listItem_7ccl4_226", he = "_listItemCollapsed_7ccl4_231", be = "_listLink_7ccl4_235", ve = "_listLinkCollapsed_7ccl4_298", fe = "_active_7ccl4_303", Ne = "_backdrop_7ccl4_330", ke = "_backdropOpened_7ccl4_340", Ce = "_skipToContent_7ccl4_358", xe = "_navbar_7ccl4_372", ge = "_navbarList_7ccl4_384", ye = "_navbarItem_7ccl4_406", Le = "_headerContentExternal_7ccl4_457", Me = "_logoExternalContainer_7ccl4_465", Ee = "_logoExternal_7ccl4_465", Te = "_logoExternalDesktop_7ccl4_477", Se = "_navbarWrapper_7ccl4_486", a = {
47
- baseLayout: X,
48
- mainContent: J,
49
- header: K,
50
- headerExternal: Q,
51
- headerContent: U,
52
- logo: V,
53
- headerItems: Y,
54
- toggleButton: Z,
55
- sidebar: ee,
56
- main: ae,
57
- app: te,
58
- sidebarOpened: ne,
59
- sidebarHeader: se,
60
- appName: ie,
61
- collapseButton: re,
62
- sidebarCollapsed: oe,
63
- userName: le,
64
- userTitle: ce,
65
- title: de,
66
- sidebarNav: me,
67
- list: pe,
68
- listGroupTitle: _e,
69
- listItem: ue,
70
- listItemCollapsed: he,
71
- listLink: be,
72
- listLinkCollapsed: ve,
73
- active: fe,
74
- backdrop: Ne,
75
- backdropOpened: ke,
76
- skipToContent: Ce,
77
- navbar: xe,
78
- navbarList: ge,
79
- navbarItem: ye,
80
- headerContentExternal: Le,
81
- logoExternalContainer: Me,
82
- logoExternal: Ee,
83
- logoExternalDesktop: Te,
84
- navbarWrapper: Se
47
+ ], X = T("panel-left-open", R), J = "_baseLayout_7ccl4_1", K = "_mainContent_7ccl4_10", Q = "_header_7ccl4_15", U = "_headerExternal_7ccl4_26", V = "_headerContent_7ccl4_41", Y = "_logo_7ccl4_60", Z = "_headerItems_7ccl4_69", ee = "_toggleButton_7ccl4_75", ae = "_sidebar_7ccl4_83", te = "_main_7ccl4_10", ne = "_app_7ccl4_116", se = "_sidebarOpened_7ccl4_124", ie = "_sidebarHeader_7ccl4_128", re = "_appName_7ccl4_140", oe = "_collapseButton_7ccl4_147", le = "_sidebarCollapsed_7ccl4_156", ce = "_userName_7ccl4_166", de = "_userTitle_7ccl4_184", me = "_title_7ccl4_196", pe = "_sidebarNav_7ccl4_207", _e = "_list_7ccl4_213", ue = "_listGroupTitle_7ccl4_219", he = "_listItem_7ccl4_226", be = "_listItemCollapsed_7ccl4_231", ve = "_listLink_7ccl4_235", fe = "_listLinkCollapsed_7ccl4_298", Ne = "_active_7ccl4_303", ke = "_backdrop_7ccl4_330", Ce = "_backdropOpened_7ccl4_340", xe = "_skipToContent_7ccl4_358", ge = "_navbar_7ccl4_372", ye = "_navbarList_7ccl4_384", Le = "_navbarItem_7ccl4_406", Me = "_headerContentExternal_7ccl4_457", Ee = "_logoExternalContainer_7ccl4_465", Te = "_logoExternal_7ccl4_465", Se = "_logoExternalDesktop_7ccl4_477", Ie = "_navbarWrapper_7ccl4_486", a = {
48
+ baseLayout: J,
49
+ mainContent: K,
50
+ header: Q,
51
+ headerExternal: U,
52
+ headerContent: V,
53
+ logo: Y,
54
+ headerItems: Z,
55
+ toggleButton: ee,
56
+ sidebar: ae,
57
+ main: te,
58
+ app: ne,
59
+ sidebarOpened: se,
60
+ sidebarHeader: ie,
61
+ appName: re,
62
+ collapseButton: oe,
63
+ sidebarCollapsed: le,
64
+ userName: ce,
65
+ userTitle: de,
66
+ title: me,
67
+ sidebarNav: pe,
68
+ list: _e,
69
+ listGroupTitle: ue,
70
+ listItem: he,
71
+ listItemCollapsed: be,
72
+ listLink: ve,
73
+ listLinkCollapsed: fe,
74
+ active: Ne,
75
+ backdrop: ke,
76
+ backdropOpened: Ce,
77
+ skipToContent: xe,
78
+ navbar: ge,
79
+ navbarList: ye,
80
+ navbarItem: Le,
81
+ headerContentExternal: Me,
82
+ logoExternalContainer: Ee,
83
+ logoExternal: Te,
84
+ logoExternalDesktop: Se,
85
+ navbarWrapper: Ie
85
86
  }, P = f.createContext(
86
87
  void 0
87
- ), Ie = ({
88
+ ), ze = ({
88
89
  items: s,
89
90
  title: n,
90
91
  user: i,
@@ -175,10 +176,10 @@ const F = [
175
176
  ]
176
177
  }
177
178
  );
178
- }, ze = { closeMenu: "Close menu", openMenu: "Open menu", maximizeMenu: "Maximize menu", minimizeMenu: "Minimize menu", sidebarMenu: "Sidebar menu", bottomMenu: "Bottom menu", skipToContent: "Skip to main content" }, Be = { closeMenu: "Stäng meny", openMenu: "Öppna meny", maximizeMenu: "Maximera meny", minimizeMenu: "Minimera meny", sidebarMenu: "Sidomeny", bottomMenu: "Bottenmeny", skipToContent: "Hoppa till huvudinnehåll" }, x = {
179
- en: ze,
180
- sv: Be
181
- }, we = () => {
179
+ }, Be = { closeMenu: "Close menu", openMenu: "Open menu", maximizeMenu: "Maximize menu", minimizeMenu: "Minimize menu", sidebarMenu: "Sidebar menu", bottomMenu: "Bottom menu", skipToContent: "Skip to main content" }, we = { closeMenu: "Stäng meny", openMenu: "Öppna meny", maximizeMenu: "Maximera meny", minimizeMenu: "Minimera meny", sidebarMenu: "Sidomeny", bottomMenu: "Bottenmeny", skipToContent: "Hoppa till huvudinnehåll" }, x = {
180
+ en: Be,
181
+ sv: we
182
+ }, Pe = () => {
182
183
  const {
183
184
  items: s,
184
185
  app: n,
@@ -226,7 +227,7 @@ const F = [
226
227
  "aria-label": t ? m.format("maximizeMenu") : m.format("minimizeMenu"),
227
228
  onPress: () => r(!t),
228
229
  className: a.collapseButton,
229
- children: t ? /* @__PURE__ */ e(R, { size: 20 }) : /* @__PURE__ */ e(A, { size: 20 })
230
+ children: t ? /* @__PURE__ */ e(X, { size: 20 }) : /* @__PURE__ */ e(F, { size: 20 })
230
231
  }
231
232
  )
232
233
  ] }),
@@ -251,7 +252,7 @@ const F = [
251
252
  ]
252
253
  }
253
254
  );
254
- }, Pe = "light-dark(#b90835, #b90835)", He = () => {
255
+ }, He = () => {
255
256
  const {
256
257
  title: s,
257
258
  user: n,
@@ -292,7 +293,7 @@ const F = [
292
293
  {
293
294
  className: a.header,
294
295
  style: {
295
- borderTop: `solid 4px ${i.color ? i.color : Pe}`
296
+ borderTop: `solid 4px ${i.color ? i.color : W}`
296
297
  },
297
298
  children: [
298
299
  /* @__PURE__ */ l("div", { className: a.headerContent, children: [
@@ -314,13 +315,13 @@ const F = [
314
315
  c(!1), r == null || r(!0);
315
316
  },
316
317
  children: t ? /* @__PURE__ */ e(
317
- W,
318
+ j,
318
319
  {
319
320
  size: 20,
320
321
  "aria-hidden": "true"
321
322
  }
322
323
  ) : /* @__PURE__ */ e(
323
- D,
324
+ q,
324
325
  {
325
326
  size: 20,
326
327
  "aria-hidden": "true"
@@ -466,9 +467,9 @@ const F = [
466
467
  }
467
468
  );
468
469
  };
469
- d.Provider = Ie;
470
+ d.Provider = ze;
470
471
  d.Header = He;
471
- d.Sidebar = we;
472
+ d.Sidebar = Pe;
472
473
  d.SidebarLink = H;
473
474
  d.Navbar = Oe;
474
475
  d.Backdrop = $e;
@@ -476,6 +477,6 @@ export {
476
477
  He as H,
477
478
  d as L,
478
479
  Oe as N,
479
- we as S,
480
+ Pe as S,
480
481
  H as a
481
482
  };
@@ -1 +1 @@
1
- "use strict";require('./assets/ListBox.css');const M=require("react/jsx-runtime"),J=require("./ListBox-FD30iELk.cjs"),q=require("./Collection-vGO6v3_U.cjs"),c=require("react"),_=require("./mergeProps-Du5A8xi8.cjs"),K=require("./context-UOrD6Zxk.cjs"),E=require("react-dom"),Q=require("./OverlayArrow-bcrb_syE.cjs"),Z=require("./useEvent-C125NAue.cjs"),ee=require("./clsx-DKOfLqne.cjs"),V=require("./SelectionManager-CNJmHeCF.cjs");class te{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,n=Math.max(this.maxY,e.maxY)-i;return new g(t,i,l,n)}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 ${copy(){return new $(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 ie=0;class B{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 ne(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=++ie,this.viewType=t,this.children=new Set,this.reusableViews=new Map,this.layoutInfo=null,this.content=null,this.rendered=null}}class le extends B{constructor(e){super(e,"root")}}class ne extends B{constructor(e,t,i){super(e,i),this.parent=t}}function oe(s,e){if(s===e)return!0;if(s.size!==e.size)return!1;for(let t of s)if(!e.has(t))return!1;return!0}class se{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 re{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 n=new g(i,l,t.width,t.height);this.delegate.setVisibleRect(n)}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 n=this.layout.getVisibleLayoutInfos(l),o=new Map;for(let a of n)o.set(a.key,a);return o}updateSubviews(){let e=this.getVisibleLayoutInfos(),t=new Set;for(let[i,l]of this._visibleViews){let n=e.get(i);(!n||l.parent!==this.getParentView(n))&&(this._visibleViews.delete(i),l.parent.reuseChild(l),t.add(l))}for(let[i,l]of e){let n=this._visibleViews.get(i);if(!n)n=this.getReusableView(l),n.parent.children.add(n),this._visibleViews.set(i,n),t.delete(n);else{n.layoutInfo=l;let o=this.collection.getItem(l.key);n.content!==o&&(n.content!=null&&this._renderedContent.delete(n.content),this._renderView(n))}}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,n=!1,o=!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&&!oe(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),n=!e.visibleRect.sizeEquals(this.visibleRect),i=!0):h=!0,t.visibleRect=e.visibleRect),e.invalidationContext!==this._invalidationContext&&(e.invalidationContext&&(n||(n=e.invalidationContext.sizeChanged||!1),l||(l=e.invalidationContext.offsetChanged||!1),o||(o=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=o||n||l||a)),this._invalidationContext=e.invalidationContext),e.isScrolling!==this._isScrolling&&(this._isScrolling=e.isScrolling,e.isScrolling||(h=!0)),i?this.relayout({offsetChanged:l,sizeChanged:n,itemSizeChanged:o,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 $,this.visibleRect=new g,this.persistedKeys=new Set,this._visibleViews=new Map,this._renderedContent=new WeakMap,this._rootView=new le(this),this._isScrolling=!1,this._invalidationContext={},this._overscanManager=new se}}const ae=typeof document<"u"?c.useLayoutEffect:()=>{};function he(s){let[e,t]=c.useState(new g(0,0,0,0)),[i,l]=c.useState(!1),[n,o]=c.useState({}),a=c.useRef(!1),[h]=c.useState(()=>new re({collection:s.collection,layout:s.layout,delegate:{setVisibleRect(p){t(p),a.current=!0},renderView:s.renderView,invalidate:o}}));ae(()=>{a.current&&(a.current=!1,s.onVisibleRectChange(e))});let r=c.useMemo(()=>s.layoutOptions!=null?{...n,layoutOptions:s.layoutOptions}:n,[n,s.layoutOptions]),d=h.render({layout:s.layout,collection:s.collection,persistedKeys:s.persistedKeys,layoutOptions:s.layoutOptions,visibleRect:e,invalidationContext:r,isScrolling:i}),u=h.contentSize,f=c.useCallback(()=>{l(!0)},[]),v=c.useCallback(()=>{l(!1)},[]);return c.useMemo(()=>({virtualizer:h,visibleViews:d,setVisibleRect:t,contentSize:u,isScrolling:i,startScrolling:f,endScrolling:v}),[h,d,t,u,i,f,v])}const R=48;class de extends te{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 o=((i=(t=this.rowHeight)!==null&&t!==void 0?t:this.estimatedRowHeight)!==null&&i!==void 0?i:R)+this.gap;e.y=Math.floor(e.y/o)*o,e.height=Math.ceil(e.height/o)*o}this.layoutIfNeeded(e);let l=[],n=o=>{for(let a of o)this.isVisible(a,e)&&(l.push(a.layoutInfo),a.children&&n(a.children))};return n(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,n,o,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!==((n=t==null?void 0:t.loaderHeight)!==null&&n!==void 0?n:this.loaderHeight)||this.gap!==((o=t==null?void 0:t.gap)!==null&&o!==void 0?o: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 n;this.estimatedRowHeight=(n=i==null?void 0:i.estimatedRowHeight)!==null&&n!==void 0?n:this.estimatedRowHeight;var o;this.headingHeight=(o=i==null?void 0:i.headingHeight)!==null&&o!==void 0?o: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"),n=[],o=(t==null?void 0:t.size)===0;o&&(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:R)+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,n.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 v of l){let y=i.indexOf(v);e+=(y-f-1)*d;let p=this.buildChild(v,this.padding,e,null);n.push(p),e=p.layoutInfo.rect.maxY,f=y}e+=(i.length-f-1)*d;break}}return e-=this.gap,e+=o?0:this.padding,this.contentSize=new $(this.virtualizer.visibleRect.width,e),n}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 n=this.buildNode(e,t,i);return n.layoutInfo.parentKey=l??null,n.layoutInfo.allowOverflow=!0,this.layoutNodes.set(e.key,n),n}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),n=new b("loader",e.key,l);l.width=this.virtualizer.contentSize.width-this.padding-t;var o,a,h;return l.height=e.props.isLoading?(h=(a=(o=this.loaderHeight)!==null&&o!==void 0?o:this.rowHeight)!==null&&a!==void 0?a:this.estimatedRowHeight)!==null&&h!==void 0?h:R:0,{layoutInfo:n,validRect:l.intersection(this.requestedRect)}}buildSection(e,t,i){let l=this.virtualizer.collection,n=this.virtualizer.visibleRect.width-this.padding,o=new g(t,i,n-t,0),a=new b(e.type,e.key,o),h=i,r=0,d=[];for(let v of V.$c5a24bc478652b5f$export$1005530eda016c13(e,l)){var u,f;let y=((f=(u=this.rowHeight)!==null&&u!==void 0?u:this.estimatedRowHeight)!==null&&f!==void 0?f:R)+this.gap;if(i+y<this.requestedRect.y&&!this.isValid(e,i)){i+=y,r++;continue}let p=this.buildChild(v,t,i,a.key);if(i=p.layoutInfo.rect.maxY+this.gap,d.push(p),i>this.requestedRect.maxY){i+=([...V.$c5a24bc478652b5f$export$1005530eda016c13(e,l)].length-(d.length+r))*y;break}}return i-=this.gap,o.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,n=this.headingHeight,o=!1;if(n==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;n=d.rect.height,o=l!==d.rect.width||u!==f||d.estimatedSize}else n=e.rendered?this.estimatedHeadingHeight:0,o=!0}n==null&&(n=R);let a=new g(t,i,l-t,n),h=new b("header",e.key,a);return h.estimatedSize=o,{layoutInfo:h,children:[],validRect:h.rect.intersection(this.requestedRect),node:e}}buildItem(e,t,i){let l=this.virtualizer.visibleRect.width-this.padding-t,n=this.rowHeight,o=!1;if(n==null){let r=this.layoutNodes.get(e.key);r?(n=r.layoutInfo.rect.height,o=l!==r.layoutInfo.rect.width||e!==r.node||r.layoutInfo.estimatedSize):(n=this.estimatedRowHeight,o=!0)}n==null&&(n=R);let a=new g(t,i,l,n),h=new b(e.type,e.key,a);return h.estimatedSize=o,{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,n=i.layoutInfo;if(n.estimatedSize=!1,n.rect.height!==t.height){let o=n.copy();o.rect.height=t.height,i.layoutInfo=o,this.validRect.height=Math.min(this.validRect.height,n.rect.y-this.validRect.y),this.requestedRect.height+=o.rect.height-n.rect.height,this.updateLayoutNode(e,n,o);let a=n.parentKey!=null?l.getItem(n.parentKey):null;for(;a;)this.updateLayoutNode(a.key,n,o),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)),n=this.getVisibleLayoutInfos(l),o=null,a=1/0;for(let u of n){if(!u.rect.intersects(l))continue;let f=Math.abs(u.rect.y-t),v=Math.abs(u.rect.maxY-t),y=Math.min(f,v);y<a&&(a=y,o=u.key)}if(o==null||this.virtualizer.collection.size===0)return{type:"root"};let h=this.getLayoutInfo(o);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 n=this.collection.getItem(e.key);if(n){var l;let o=(l=n.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<=o)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 n;this.estimatedHeadingHeight=(n=e.estimatedHeadingHeight)!==null&&n!==void 0?n:null;var o;this.loaderHeight=(o=e.loaderHeight)!==null&&o!==void 0?o: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 $}}let S=null;function ce(s=!1){if(S===null||s){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?S="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?S="negative":S="positive-ascending"),document.body.removeChild(e),S}return S}function ue(s,e){let{scrollLeft:t}=s;if(e==="rtl"){let{scrollWidth:i,clientWidth:l}=s;switch(ce()){case"negative":t=-t;break;case"positive-descending":t=i-l-t;break}}return t}function fe(s,e){let{contentSize:t,onVisibleRectChange:i,innerStyle:l,onScrollStart:n,onScrollEnd:o,scrollDirection:a="both",...h}=s,r=c.useRef({scrollTop:0,scrollLeft:0,scrollEndTime:0,scrollTimeout:null,width:0,height:0,isScrolling:!1}).current,{direction:d}=K.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),[u,f]=c.useState(!1),v=c.useCallback(w=>{w.target===w.currentTarget&&(s.onScroll&&s.onScroll(w),E.flushSync(()=>{let m=w.currentTarget.scrollTop,z=ue(w.currentTarget,d);r.scrollTop=Math.max(0,Math.min(m,t.height-r.height)),r.scrollLeft=Math.max(0,Math.min(z,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")),n&&n());let C=Date.now();r.scrollEndTime<=C+50&&(r.scrollEndTime=C+300,r.scrollTimeout!=null&&clearTimeout(r.scrollTimeout),r.scrollTimeout=setTimeout(()=>{r.isScrolling=!1,f(!1),r.scrollTimeout=null,window.dispatchEvent(new Event("tk.connect-observer")),o&&o()},300))}))},[s,d,r,t,i,n,o]);Z.$e9faafb641e167db$export$90fc3a17d93f704c(e,"scroll",v),c.useEffect(()=>()=>{r.scrollTimeout!=null&&clearTimeout(r.scrollTimeout),r.isScrolling&&window.dispatchEvent(new Event("tk.connect-observer"))},[]);let y=c.useRef(!1),p=_.$8ae05eaa5c114e9c$export$7f54fc3180508a52(w=>{let m=e.current;if(!m||y.current)return;y.current=!0;let z=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,C=Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientWidth"),G=Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientHeight"),N=m.clientWidth,T=m.clientHeight,k=z&&!C?1/0:N,L=z&&!G?1/0:T;(r.width!==k||r.height!==L)&&(r.width=k,r.height=L,w(()=>{i(new g(r.scrollLeft,r.scrollTop,k,L))}),(!z&&N!==m.clientWidth||T!==m.clientHeight)&&(r.width=m.clientWidth,r.height=m.clientHeight,w(()=>{i(new g(r.scrollLeft,r.scrollTop,r.width,r.height))}))),y.current=!1}),H=c.useRef(null),[j,F]=c.useState({});_.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(!y.current&&(H.current==null||!t.equals(H.current)))if(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u"){F({}),H.current=t;return}else queueMicrotask(()=>p(E.flushSync));H.current=t}),_.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{p(w=>w())},[j]);let U=c.useCallback(()=>{p(E.flushSync)},[p]);Q.$9daab02d461809db$export$683480f191c0e3ea({ref:e,box:"border-box",onResize:U});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 ge(s){let{layoutInfo:e,virtualizer:t,ref:i}=s,l=e==null?void 0:e.key,n=c.useCallback(()=>{if(l!=null&&i.current){let o=ye(i.current);t.updateItemSize(l,o)}},[t,l,i]);return _.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{e!=null&&e.estimatedSize&&n()}),{updateSize:n}}function ye(s){let e=s.style.height;s.style.height="";let t=new $(s.scrollWidth,s.scrollHeight);return s.style.height=e,t}function Y(s){let{style:e,className:t,layoutInfo:i,virtualizer:l,parent:n,children:o}=s,{direction:a}=K.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),h=c.useRef(null);return ge({layoutInfo:i,virtualizer:l,ref:h}),c.createElement("div",{role:"presentation",ref:h,className:t,style:{...ve(i,a,n),...e}},o)}let O=new WeakMap;function ve(s,e,t){let i=e==="rtl"?"right":"left",l=O.get(s);if(l&&l[i]!=null){if(!t)return l;let h=s.rect.y-t.rect.y,r=s.rect.x-t.rect.x;if(l.top===h&&l[i]===r)return l}let n={top:s.rect.y-(t&&!(t.allowOverflow&&s.isSticky)?t.rect.y:0),[i]:s.rect.x-(t&&!(t.allowOverflow&&s.isSticky)?t.rect.x:0),width:s.rect.width,height:s.rect.height};Object.entries(n).forEach(([h,r])=>{Number.isFinite(r)||(n[h]=void 0)});var o;let a={position:s.isSticky?"sticky":"absolute",display:s.isSticky?"inline-block":void 0,overflow:s.allowOverflow?"visible":"hidden",opacity:s.opacity,zIndex:s.zIndex,transform:(o=s.transform)!==null&&o!==void 0?o:void 0,contain:"size layout style",...n};return O.set(s,a),a}const W=c.createContext(null),D=c.createContext(null);function pe(s){let{children:e,layout:t,layoutOptions:i}=s,l=c.useMemo(()=>typeof t=="function"?new t:t,[t]),n=c.useMemo(()=>({isVirtualized:!0,layoutDelegate:l,dropTargetDelegate:l.getDropTargetFromPoint?l:void 0,CollectionRoot:we,CollectionBranch:me}),[l]);return c.createElement(q.$7135fc7d473fd974$export$4feb769f8ddf26c5.Provider,{value:n},c.createElement(D.Provider,{value:{layout:l,layoutOptions:i}},e))}function we({collection:s,persistedKeys:e,scrollRef:t,renderDropIndicator:i}){var l;let{layout:n,layoutOptions:o}=c.useContext(D),a=(l=n.useLayoutOptions)===null||l===void 0?void 0:l.call(n),h=he({layout:n,collection:s,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(()=>o&&a?{...o,...a}:o||a,[o,a])}),{contentProps:r}=fe({onVisibleRectChange:h.setVisibleRect,contentSize:h.contentSize,onScrollStart:h.startScrolling,onScrollEnd:h.endScrolling},t);return c.createElement("div",r,c.createElement(W.Provider,{value:h},X(null,h.visibleViews,i)))}function me({parent:s,renderDropIndicator:e}){let i=c.useContext(W).virtualizer.getVisibleView(s.key);return X(i,Array.from(i.children),e)}function X(s,e,t){return e.map(i=>be(s,i,t))}function be(s,e,t){let i=c.createElement(Y,{key:e.key,layoutInfo:e.layoutInfo,virtualizer:e.virtualizer,parent:s==null?void 0:s.layoutInfo},e.rendered),{collection:l,layout:n}=e.virtualizer,o=e.content;return(o==null?void 0:o.type)==="item"&&t&&n.getDropTargetLayoutInfo&&(i=c.createElement(c.Fragment,{key:e.key},P(s,e,{type:"item",key:e.content.key,dropPosition:"before"},t),i,q.$7135fc7d473fd974$export$2dbbd341daed716d(l,o,a=>P(s,e,a,t)))),i}function P(s,e,t,i){let l=i(t);if(l){let n=e.virtualizer.layout.getDropTargetLayoutInfo(t);l=c.createElement(Y,{layoutInfo:n,virtualizer:e.virtualizer,parent:s==null?void 0:s.layoutInfo},l)}return l}class xe extends de{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 Ie="_listBox_6ghec_4",Re="_listBoxPopover_6ghec_16",Se="_listBoxSectionHeading_6ghec_31",$e="_listBoxButton_6ghec_43",ze="_listBoxItem_6ghec_55",He="_textContent_6ghec_68",Ce="_listBoxLoadMoreItem_6ghec_178",A={listBox:Ie,listBoxPopover:Re,listBoxSectionHeading:Se,listBoxButton:$e,listBoxItem:ze,textContent:He,listBoxLoadMoreItem:Ce},_e=({className:s,children:e,...t})=>M.jsx(pe,{layout:xe,layoutOptions:{headingHeight:38},children:M.jsx(J.$eed445e0843c11d0$export$41f133550aa26f48,{className:ee.clsx(A.listBox,s),...t,children:e})});exports.ListBox=_e;exports.styles=A;
1
+ "use strict";require('./assets/ListBox.css');const M=require("react/jsx-runtime"),J=require("./ListBox-FD30iELk.cjs"),q=require("./Collection-vGO6v3_U.cjs"),c=require("react"),k=require("./mergeProps-Du5A8xi8.cjs"),K=require("./context-UOrD6Zxk.cjs"),E=require("react-dom"),Q=require("./OverlayArrow-bcrb_syE.cjs"),Z=require("./useEvent-C125NAue.cjs"),ee=require("./clsx-DKOfLqne.cjs"),V=require("./SelectionManager-CNJmHeCF.cjs");class te{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 y{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,n=Math.max(this.maxY,e.maxY)-i;return new y(t,i,l,n)}intersection(e){if(!this.intersects(e))return new y(0,0,0,0);let t=Math.max(this.x,e.x),i=Math.max(this.y,e.y);return new y(t,i,Math.min(this.maxX,e.maxX)-t,Math.min(this.maxY,e.maxY)-i)}copy(){return new y(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 ${copy(){return new $(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 ie=0;class B{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 ne(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=++ie,this.viewType=t,this.children=new Set,this.reusableViews=new Map,this.layoutInfo=null,this.content=null,this.rendered=null}}class le extends B{constructor(e){super(e,"root")}}class ne extends B{constructor(e,t,i){super(e,i),this.parent=t}}function oe(s,e){if(s===e)return!0;if(s.size!==e.size)return!1;for(let t of s)if(!e.has(t))return!1;return!0}class se{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 y}}class re{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 y(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 n=new y(i,l,t.width,t.height);this.delegate.setVisibleRect(n)}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 y(0,0,this.contentSize.width,this.contentSize.height):l=this._overscanManager.getOverscannedRect();let n=this.layout.getVisibleLayoutInfos(l),o=new Map;for(let a of n)o.set(a.key,a);return o}updateSubviews(){let e=this.getVisibleLayoutInfos(),t=new Set;for(let[i,l]of this._visibleViews){let n=e.get(i);(!n||l.parent!==this.getParentView(n))&&(this._visibleViews.delete(i),l.parent.reuseChild(l),t.add(l))}for(let[i,l]of e){let n=this._visibleViews.get(i);if(!n)n=this.getReusableView(l),n.parent.children.add(n),this._visibleViews.set(i,n),t.delete(n);else{n.layoutInfo=l;let o=this.collection.getItem(l.key);n.content!==o&&(n.content!=null&&this._renderedContent.delete(n.content),this._renderView(n))}}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,n=!1,o=!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&&!oe(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),n=!e.visibleRect.sizeEquals(this.visibleRect),i=!0):h=!0,t.visibleRect=e.visibleRect),e.invalidationContext!==this._invalidationContext&&(e.invalidationContext&&(n||(n=e.invalidationContext.sizeChanged||!1),l||(l=e.invalidationContext.offsetChanged||!1),o||(o=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=o||n||l||a)),this._invalidationContext=e.invalidationContext),e.isScrolling!==this._isScrolling&&(this._isScrolling=e.isScrolling,e.isScrolling||(h=!0)),i?this.relayout({offsetChanged:l,sizeChanged:n,itemSizeChanged:o,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 $,this.visibleRect=new y,this.persistedKeys=new Set,this._visibleViews=new Map,this._renderedContent=new WeakMap,this._rootView=new le(this),this._isScrolling=!1,this._invalidationContext={},this._overscanManager=new se}}const ae=typeof document<"u"?c.useLayoutEffect:()=>{};function he(s){let[e,t]=c.useState(new y(0,0,0,0)),[i,l]=c.useState(!1),[n,o]=c.useState({}),a=c.useRef(!1),[h]=c.useState(()=>new re({collection:s.collection,layout:s.layout,delegate:{setVisibleRect(p){t(p),a.current=!0},renderView:s.renderView,invalidate:o}}));ae(()=>{a.current&&(a.current=!1,s.onVisibleRectChange(e))});let r=c.useMemo(()=>s.layoutOptions!=null?{...n,layoutOptions:s.layoutOptions}:n,[n,s.layoutOptions]),d=h.render({layout:s.layout,collection:s.collection,persistedKeys:s.persistedKeys,layoutOptions:s.layoutOptions,visibleRect:e,invalidationContext:r,isScrolling:i}),u=h.contentSize,f=c.useCallback(()=>{l(!0)},[]),v=c.useCallback(()=>{l(!1)},[]);return c.useMemo(()=>({virtualizer:h,visibleViews:d,setVisibleRect:t,contentSize:u,isScrolling:i,startScrolling:f,endScrolling:v}),[h,d,t,u,i,f,v])}const R=48;class de extends te{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 o=((i=(t=this.rowHeight)!==null&&t!==void 0?t:this.estimatedRowHeight)!==null&&i!==void 0?i:R)+this.gap;e.y=Math.floor(e.y/o)*o,e.height=Math.ceil(e.height/o)*o}this.layoutIfNeeded(e);let l=[],n=o=>{for(let a of o)this.isVisible(a,e)&&(l.push(a.layoutInfo),a.children&&n(a.children))};return n(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 y(0,0,1/0,1/0),this.rootNodes=this.buildCollection(),this.requestedRect=new y(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,n,o,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!==((n=t==null?void 0:t.loaderHeight)!==null&&n!==void 0?n:this.loaderHeight)||this.gap!==((o=t==null?void 0:t.gap)!==null&&o!==void 0?o: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 n;this.estimatedRowHeight=(n=i==null?void 0:i.estimatedRowHeight)!==null&&n!==void 0?n:this.estimatedRowHeight;var o;this.headingHeight=(o=i==null?void 0:i.headingHeight)!==null&&o!==void 0?o: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"),n=[],o=(t==null?void 0:t.size)===0;o&&(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:R)+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,n.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 v of l){let g=i.indexOf(v);e+=(g-f-1)*d;let p=this.buildChild(v,this.padding,e,null);n.push(p),e=p.layoutInfo.rect.maxY,f=g}e+=(i.length-f-1)*d;break}}return e-=this.gap,e+=o?0:this.padding,this.contentSize=new $(this.virtualizer.visibleRect.width,e),n}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 n=this.buildNode(e,t,i);return n.layoutInfo.parentKey=l??null,n.layoutInfo.allowOverflow=!0,this.layoutNodes.set(e.key,n),n}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 y(t,i,this.padding,0),n=new b("loader",e.key,l);l.width=this.virtualizer.contentSize.width-this.padding-t;var o,a,h;return l.height=e.props.isLoading?(h=(a=(o=this.loaderHeight)!==null&&o!==void 0?o:this.rowHeight)!==null&&a!==void 0?a:this.estimatedRowHeight)!==null&&h!==void 0?h:R:0,{layoutInfo:n,validRect:l.intersection(this.requestedRect)}}buildSection(e,t,i){let l=this.virtualizer.collection,n=this.virtualizer.visibleRect.width-this.padding,o=new y(t,i,n-t,0),a=new b(e.type,e.key,o),h=i,r=0,d=[];for(let v of V.$c5a24bc478652b5f$export$1005530eda016c13(e,l)){var u,f;let g=((f=(u=this.rowHeight)!==null&&u!==void 0?u:this.estimatedRowHeight)!==null&&f!==void 0?f:R)+this.gap;if(i+g<this.requestedRect.y&&!this.isValid(e,i)){i+=g,r++;continue}let p=this.buildChild(v,t,i,a.key);if(i=p.layoutInfo.rect.maxY+this.gap,d.push(p),i>this.requestedRect.maxY){i+=([...V.$c5a24bc478652b5f$export$1005530eda016c13(e,l)].length-(d.length+r))*g;break}}return i-=this.gap,o.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,n=this.headingHeight,o=!1;if(n==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;n=d.rect.height,o=l!==d.rect.width||u!==f||d.estimatedSize}else n=e.rendered?this.estimatedHeadingHeight:0,o=!0}n==null&&(n=R);let a=new y(t,i,l-t,n),h=new b("header",e.key,a);return h.estimatedSize=o,{layoutInfo:h,children:[],validRect:h.rect.intersection(this.requestedRect),node:e}}buildItem(e,t,i){let l=this.virtualizer.visibleRect.width-this.padding-t,n=this.rowHeight,o=!1;if(n==null){let r=this.layoutNodes.get(e.key);r?(n=r.layoutInfo.rect.height,o=l!==r.layoutInfo.rect.width||e!==r.node||r.layoutInfo.estimatedSize):(n=this.estimatedRowHeight,o=!0)}n==null&&(n=R);let a=new y(t,i,l,n),h=new b(e.type,e.key,a);return h.estimatedSize=o,{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,n=i.layoutInfo;if(n.estimatedSize=!1,n.rect.height!==t.height){let o=n.copy();o.rect.height=t.height,i.layoutInfo=o,this.validRect.height=Math.min(this.validRect.height,n.rect.y-this.validRect.y),this.requestedRect.height+=o.rect.height-n.rect.height,this.updateLayoutNode(e,n,o);let a=n.parentKey!=null?l.getItem(n.parentKey):null;for(;a;)this.updateLayoutNode(a.key,n,o),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 y(e,Math.max(0,t-this.gap),1,Math.max(1,this.gap*2)),n=this.getVisibleLayoutInfos(l),o=null,a=1/0;for(let u of n){if(!u.rect.intersects(l))continue;let f=Math.abs(u.rect.y-t),v=Math.abs(u.rect.maxY-t),g=Math.min(f,v);g<a&&(a=g,o=u.key)}if(o==null||this.virtualizer.collection.size===0)return{type:"root"};let h=this.getLayoutInfo(o);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 y(t.rect.x,Math.max(0,t.rect.y-this.dropIndicatorThickness/2),t.rect.width,this.dropIndicatorThickness);else if(e.dropPosition==="after"){let n=this.collection.getItem(e.key);if(n){var l;let o=(l=n.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<=o)break;t=this.getLayoutInfo(a)||t,a=this.collection.getKeyAfter(a)}}i=new y(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 n;this.estimatedHeadingHeight=(n=e.estimatedHeadingHeight)!==null&&n!==void 0?n:null;var o;this.loaderHeight=(o=e.loaderHeight)!==null&&o!==void 0?o: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 y,this.requestedRect=new y,this.contentSize=new $}}let S=null;function ce(s=!1){if(S===null||s){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?S="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?S="negative":S="positive-ascending"),document.body.removeChild(e),S}return S}function ue(s,e){let{scrollLeft:t}=s;if(e==="rtl"){let{scrollWidth:i,clientWidth:l}=s;switch(ce()){case"negative":t=-t;break;case"positive-descending":t=i-l-t;break}}return t}function fe(s,e){let{contentSize:t,onVisibleRectChange:i,innerStyle:l,onScrollStart:n,onScrollEnd:o,scrollDirection:a="both",...h}=s,r=c.useRef({scrollTop:0,scrollLeft:0,scrollEndTime:0,scrollTimeout:null,width:0,height:0,isScrolling:!1}).current,{direction:d}=K.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),[u,f]=c.useState(!1),v=c.useCallback(w=>{w.target===w.currentTarget&&(s.onScroll&&s.onScroll(w),E.flushSync(()=>{let m=w.currentTarget.scrollTop,z=ue(w.currentTarget,d);r.scrollTop=Math.max(0,Math.min(m,t.height-r.height)),r.scrollLeft=Math.max(0,Math.min(z,t.width-r.width)),i(new y(r.scrollLeft,r.scrollTop,r.width,r.height)),r.isScrolling||(r.isScrolling=!0,f(!0),window.dispatchEvent(new Event("tk.disconnect-observer")),n&&n());let C=Date.now();r.scrollEndTime<=C+50&&(r.scrollEndTime=C+300,r.scrollTimeout!=null&&clearTimeout(r.scrollTimeout),r.scrollTimeout=setTimeout(()=>{r.isScrolling=!1,f(!1),r.scrollTimeout=null,window.dispatchEvent(new Event("tk.connect-observer")),o&&o()},300))}))},[s,d,r,t,i,n,o]);Z.$e9faafb641e167db$export$90fc3a17d93f704c(e,"scroll",v),c.useEffect(()=>()=>{r.scrollTimeout!=null&&clearTimeout(r.scrollTimeout),r.isScrolling&&window.dispatchEvent(new Event("tk.connect-observer"))},[]);let g=c.useRef(!1),p=k.$8ae05eaa5c114e9c$export$7f54fc3180508a52(w=>{let m=e.current;if(!m||g.current)return;g.current=!0;let z=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,C=Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientWidth"),G=Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientHeight"),N=m.clientWidth,T=m.clientHeight,_=z&&!C?1/0:N,L=z&&!G?1/0:T;(r.width!==_||r.height!==L)&&(r.width=_,r.height=L,w(()=>{i(new y(r.scrollLeft,r.scrollTop,_,L))}),(!z&&N!==m.clientWidth||T!==m.clientHeight)&&(r.width=m.clientWidth,r.height=m.clientHeight,w(()=>{i(new y(r.scrollLeft,r.scrollTop,r.width,r.height))}))),g.current=!1}),H=c.useRef(null),[A,F]=c.useState({});k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(!g.current&&(H.current==null||!t.equals(H.current)))if(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u"){F({}),H.current=t;return}else queueMicrotask(()=>p(E.flushSync));H.current=t}),k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{p(w=>w())},[A]);let U=c.useCallback(()=>{p(E.flushSync)},[p]);Q.$9daab02d461809db$export$683480f191c0e3ea({ref:e,box:"border-box",onResize:U});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 ye(s){let{layoutInfo:e,virtualizer:t,ref:i}=s,l=e==null?void 0:e.key,n=c.useCallback(()=>{if(l!=null&&i.current){let o=ge(i.current);t.updateItemSize(l,o)}},[t,l,i]);return k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{e!=null&&e.estimatedSize&&n()}),{updateSize:n}}function ge(s){let e=s.style.height;s.style.height="";let t=new $(s.scrollWidth,s.scrollHeight);return s.style.height=e,t}function Y(s){let{style:e,className:t,layoutInfo:i,virtualizer:l,parent:n,children:o}=s,{direction:a}=K.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),h=c.useRef(null);return ye({layoutInfo:i,virtualizer:l,ref:h}),c.createElement("div",{role:"presentation",ref:h,className:t,style:{...ve(i,a,n),...e}},o)}let O=new WeakMap;function ve(s,e,t){let i=e==="rtl"?"right":"left",l=O.get(s);if(l&&l[i]!=null){if(!t)return l;let h=s.rect.y-t.rect.y,r=s.rect.x-t.rect.x;if(l.top===h&&l[i]===r)return l}let n={top:s.rect.y-(t&&!(t.allowOverflow&&s.isSticky)?t.rect.y:0),[i]:s.rect.x-(t&&!(t.allowOverflow&&s.isSticky)?t.rect.x:0),width:s.rect.width,height:s.rect.height};Object.entries(n).forEach(([h,r])=>{Number.isFinite(r)||(n[h]=void 0)});var o;let a={position:s.isSticky?"sticky":"absolute",display:s.isSticky?"inline-block":void 0,overflow:s.allowOverflow?"visible":"hidden",opacity:s.opacity,zIndex:s.zIndex,transform:(o=s.transform)!==null&&o!==void 0?o:void 0,contain:"size layout style",...n};return O.set(s,a),a}const W=c.createContext(null),j=c.createContext(null);function pe(s){let{children:e,layout:t,layoutOptions:i}=s,l=c.useMemo(()=>typeof t=="function"?new t:t,[t]),n=c.useMemo(()=>({isVirtualized:!0,layoutDelegate:l,dropTargetDelegate:l.getDropTargetFromPoint?l:void 0,CollectionRoot:we,CollectionBranch:me}),[l]);return c.createElement(q.$7135fc7d473fd974$export$4feb769f8ddf26c5.Provider,{value:n},c.createElement(j.Provider,{value:{layout:l,layoutOptions:i}},e))}function we({collection:s,persistedKeys:e,scrollRef:t,renderDropIndicator:i}){var l;let{layout:n,layoutOptions:o}=c.useContext(j),a=(l=n.useLayoutOptions)===null||l===void 0?void 0:l.call(n),h=he({layout:n,collection:s,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(()=>o&&a?{...o,...a}:o||a,[o,a])}),{contentProps:r}=fe({onVisibleRectChange:h.setVisibleRect,contentSize:h.contentSize,onScrollStart:h.startScrolling,onScrollEnd:h.endScrolling},t);return c.createElement("div",r,c.createElement(W.Provider,{value:h},D(null,h.visibleViews,i)))}function me({parent:s,renderDropIndicator:e}){let i=c.useContext(W).virtualizer.getVisibleView(s.key);return D(i,Array.from(i.children),e)}function D(s,e,t){return e.map(i=>be(s,i,t))}function be(s,e,t){let i=c.createElement(Y,{key:e.key,layoutInfo:e.layoutInfo,virtualizer:e.virtualizer,parent:s==null?void 0:s.layoutInfo},e.rendered),{collection:l,layout:n}=e.virtualizer,o=e.content;return(o==null?void 0:o.type)==="item"&&t&&n.getDropTargetLayoutInfo&&(i=c.createElement(c.Fragment,{key:e.key},P(s,e,{type:"item",key:e.content.key,dropPosition:"before"},t),i,q.$7135fc7d473fd974$export$2dbbd341daed716d(l,o,a=>P(s,e,a,t)))),i}function P(s,e,t,i){let l=i(t);if(l){let n=e.virtualizer.layout.getDropTargetLayoutInfo(t);l=c.createElement(Y,{layoutInfo:n,virtualizer:e.virtualizer,parent:s==null?void 0:s.layoutInfo},l)}return l}class xe extends de{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 Ie="_listBox_1kyjv_4",Re="_listBoxPopover_1kyjv_16",Se="_listBoxSectionHeading_1kyjv_31",$e="_listBoxButton_1kyjv_43",ze="_listBoxItem_1kyjv_55",He="_textContent_1kyjv_69",Ce="_listBoxLoadMoreItem_1kyjv_175",X={listBox:Ie,listBoxPopover:Re,listBoxSectionHeading:Se,listBoxButton:$e,listBoxItem:ze,textContent:He,listBoxLoadMoreItem:Ce},ke=({className:s,children:e,...t})=>M.jsx(pe,{layout:xe,layoutOptions:{headingHeight:38},children:M.jsx(J.$eed445e0843c11d0$export$41f133550aa26f48,{className:ee.clsx(X.listBox,s),...t,children:e})});exports.ListBox=ke;exports.styles=X;
@@ -1,9 +1,9 @@
1
1
  import { jsx as K } from "react/jsx-runtime";
2
2
  import { e as te } from "./ListBox-5GK4ZRj1.js";
3
3
  import { g as ie, m as le } from "./Collection-BkxwF21i.js";
4
- import m, { useState as z, useRef as _, useMemo as C, useCallback as k, useEffect as oe, createContext as W, useContext as D } from "react";
4
+ import m, { useState as z, useRef as _, useMemo as k, useCallback as C, useEffect as oe, createContext as W, useContext as D } from "react";
5
5
  import { d as ne, $ as M } from "./mergeProps-Ct8m5-xW.js";
6
- import { $ as X } from "./context-Dl_saGB6.js";
6
+ import { $ as j } from "./context-Dl_saGB6.js";
7
7
  import { flushSync as V } from "react-dom";
8
8
  import { g as se } from "./OverlayArrow-CjGslX2c.js";
9
9
  import { $ as re } from "./useEvent-smuTnX4G.js";
@@ -226,7 +226,7 @@ class $ {
226
226
  }
227
227
  }
228
228
  let de = 0;
229
- class A {
229
+ class X {
230
230
  /**
231
231
  * Prepares the view for reuse. Called just before the view is removed from the DOM.
232
232
  */
@@ -246,12 +246,12 @@ class A {
246
246
  this.virtualizer = e, this.key = ++de, this.viewType = t, this.children = /* @__PURE__ */ new Set(), this.reusableViews = /* @__PURE__ */ new Map(), this.layoutInfo = null, this.content = null, this.rendered = null;
247
247
  }
248
248
  }
249
- class ce extends A {
249
+ class ce extends X {
250
250
  constructor(e) {
251
251
  super(e, "root");
252
252
  }
253
253
  }
254
- class ue extends A {
254
+ class ue extends X {
255
255
  constructor(e, t, i) {
256
256
  super(e, i), this.parent = t;
257
257
  }
@@ -403,7 +403,7 @@ function pe(s) {
403
403
  ve(() => {
404
404
  a.current && (a.current = !1, s.onVisibleRectChange(e));
405
405
  });
406
- let r = C(() => s.layoutOptions != null ? {
406
+ let r = k(() => s.layoutOptions != null ? {
407
407
  ...o,
408
408
  layoutOptions: s.layoutOptions
409
409
  } : o, [
@@ -417,12 +417,12 @@ function pe(s) {
417
417
  visibleRect: e,
418
418
  invalidationContext: r,
419
419
  isScrolling: i
420
- }), c = h.contentSize, u = k(() => {
420
+ }), c = h.contentSize, u = C(() => {
421
421
  l(!0);
422
- }, []), y = k(() => {
422
+ }, []), y = C(() => {
423
423
  l(!1);
424
424
  }, []);
425
- return C(() => ({
425
+ return k(() => ({
426
426
  virtualizer: h,
427
427
  visibleViews: d,
428
428
  setVisibleRect: t,
@@ -752,7 +752,7 @@ function xe(s, e) {
752
752
  width: 0,
753
753
  height: 0,
754
754
  isScrolling: !1
755
- }).current, { direction: d } = X(), [c, u] = z(!1), y = k((p) => {
755
+ }).current, { direction: d } = j(), [c, u] = z(!1), y = C((p) => {
756
756
  p.target === p.currentTarget && (s.onScroll && s.onScroll(p), V(() => {
757
757
  let w = p.currentTarget.scrollTop, H = be(p.currentTarget, d);
758
758
  r.scrollTop = Math.max(0, Math.min(w, t.height - r.height)), r.scrollLeft = Math.max(0, Math.min(H, t.width - r.width)), i(new f(r.scrollLeft, r.scrollTop, r.width, r.height)), r.isScrolling || (r.isScrolling = !0, u(!0), window.dispatchEvent(new Event("tk.disconnect-observer")), o && o());
@@ -796,7 +796,7 @@ function xe(s, e) {
796
796
  }, [
797
797
  J
798
798
  ]);
799
- let Z = k(() => {
799
+ let Z = C(() => {
800
800
  v(V);
801
801
  }, [
802
802
  v
@@ -830,7 +830,7 @@ function xe(s, e) {
830
830
  };
831
831
  }
832
832
  function Ie(s) {
833
- let { layoutInfo: e, virtualizer: t, ref: i } = s, l = e == null ? void 0 : e.key, o = k(() => {
833
+ let { layoutInfo: e, virtualizer: t, ref: i } = s, l = e == null ? void 0 : e.key, o = C(() => {
834
834
  if (l != null && i.current) {
835
835
  let n = Re(i.current);
836
836
  t.updateItemSize(l, n);
@@ -852,8 +852,8 @@ function Re(s) {
852
852
  let t = new $(s.scrollWidth, s.scrollHeight);
853
853
  return s.style.height = e, t;
854
854
  }
855
- function F(s) {
856
- let { style: e, className: t, layoutInfo: i, virtualizer: l, parent: o, children: n } = s, { direction: a } = X(), h = _(null);
855
+ function A(s) {
856
+ let { style: e, className: t, layoutInfo: i, virtualizer: l, parent: o, children: n } = s, { direction: a } = j(), h = _(null);
857
857
  return Ie({
858
858
  layoutInfo: i,
859
859
  virtualizer: l,
@@ -903,11 +903,11 @@ function Se(s, e, t) {
903
903
  };
904
904
  return B.set(s, a), a;
905
905
  }
906
- const j = /* @__PURE__ */ W(null), U = /* @__PURE__ */ W(null);
906
+ const F = /* @__PURE__ */ W(null), U = /* @__PURE__ */ W(null);
907
907
  function ze(s) {
908
- let { children: e, layout: t, layoutOptions: i } = s, l = C(() => typeof t == "function" ? new t() : t, [
908
+ let { children: e, layout: t, layoutOptions: i } = s, l = k(() => typeof t == "function" ? new t() : t, [
909
909
  t
910
- ]), o = C(() => ({
910
+ ]), o = k(() => ({
911
911
  isVirtualized: !0,
912
912
  layoutDelegate: l,
913
913
  dropTargetDelegate: l.getDropTargetFromPoint ? l : void 0,
@@ -939,7 +939,7 @@ function $e({ collection: s, persistedKeys: e, scrollRef: t, renderDropIndicator
939
939
  c && (c.scrollLeft = d.x, c.scrollTop = d.y);
940
940
  },
941
941
  persistedKeys: e,
942
- layoutOptions: C(() => n && a ? {
942
+ layoutOptions: k(() => n && a ? {
943
943
  ...n,
944
944
  ...a
945
945
  } : n || a, [
@@ -952,19 +952,19 @@ function $e({ collection: s, persistedKeys: e, scrollRef: t, renderDropIndicator
952
952
  onScrollStart: h.startScrolling,
953
953
  onScrollEnd: h.endScrolling
954
954
  }, t);
955
- return /* @__PURE__ */ m.createElement("div", r, /* @__PURE__ */ m.createElement(j.Provider, {
955
+ return /* @__PURE__ */ m.createElement("div", r, /* @__PURE__ */ m.createElement(F.Provider, {
956
956
  value: h
957
957
  }, G(null, h.visibleViews, i)));
958
958
  }
959
959
  function He({ parent: s, renderDropIndicator: e }) {
960
- let i = D(j).virtualizer.getVisibleView(s.key);
960
+ let i = D(F).virtualizer.getVisibleView(s.key);
961
961
  return G(i, Array.from(i.children), e);
962
962
  }
963
963
  function G(s, e, t) {
964
964
  return e.map((i) => _e(s, i, t));
965
965
  }
966
966
  function _e(s, e, t) {
967
- let i = /* @__PURE__ */ m.createElement(F, {
967
+ let i = /* @__PURE__ */ m.createElement(A, {
968
968
  key: e.key,
969
969
  layoutInfo: e.layoutInfo,
970
970
  virtualizer: e.virtualizer,
@@ -982,7 +982,7 @@ function Y(s, e, t, i) {
982
982
  let l = i(t);
983
983
  if (l) {
984
984
  let o = e.virtualizer.layout.getDropTargetLayoutInfo(t);
985
- l = /* @__PURE__ */ m.createElement(F, {
985
+ l = /* @__PURE__ */ m.createElement(A, {
986
986
  layoutInfo: o,
987
987
  virtualizer: e.virtualizer,
988
988
  parent: s == null ? void 0 : s.layoutInfo
@@ -990,7 +990,7 @@ function Y(s, e, t, i) {
990
990
  }
991
991
  return l;
992
992
  }
993
- class Ce extends me {
993
+ class ke extends me {
994
994
  /**
995
995
  * When using the ListLayout our scroll container height is not calculated properly when the content is partially sectioned.
996
996
  * ```ts
@@ -1015,8 +1015,8 @@ class Ce extends me {
1015
1015
  }), this.contentSize;
1016
1016
  }
1017
1017
  }
1018
- const ke = "_listBox_6ghec_4", Le = "_listBoxPopover_6ghec_16", Ee = "_listBoxSectionHeading_6ghec_31", Ne = "_listBoxButton_6ghec_43", Te = "_listBoxItem_6ghec_55", Ve = "_textContent_6ghec_68", Me = "_listBoxLoadMoreItem_6ghec_178", Oe = {
1019
- listBox: ke,
1018
+ const Ce = "_listBox_1kyjv_4", Le = "_listBoxPopover_1kyjv_16", Ee = "_listBoxSectionHeading_1kyjv_31", Ne = "_listBoxButton_1kyjv_43", Te = "_listBoxItem_1kyjv_55", Ve = "_textContent_1kyjv_69", Me = "_listBoxLoadMoreItem_1kyjv_175", Oe = {
1019
+ listBox: Ce,
1020
1020
  listBoxPopover: Le,
1021
1021
  listBoxSectionHeading: Ee,
1022
1022
  listBoxButton: Ne,
@@ -1030,7 +1030,7 @@ const ke = "_listBox_6ghec_4", Le = "_listBoxPopover_6ghec_16", Ee = "_listBoxSe
1030
1030
  }) => /* @__PURE__ */ K(
1031
1031
  ze,
1032
1032
  {
1033
- layout: Ce,
1033
+ layout: ke,
1034
1034
  layoutOptions: {
1035
1035
  headingHeight: 38
1036
1036
  },