@tap-payments/os-micro-frontend-shared 0.3.287 → 0.3.289-test.1794846477

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 (191) hide show
  1. package/build/_chunks/{chunk-2IOTEGXO.js → chunk-2M6UER6N.js} +1 -1
  2. package/build/_chunks/{chunk-XYMZXP5A.js → chunk-47BHPSSP.js} +1 -1
  3. package/build/_chunks/{chunk-6GZFEPN6.js → chunk-4NLQZJVN.js} +1 -1
  4. package/build/_chunks/{chunk-VBB5WMVK.js → chunk-5KGT5D5O.js} +1 -1
  5. package/build/_chunks/{chunk-CZZIV6U2.js → chunk-64OLTOQM.js} +1 -1
  6. package/build/_chunks/{chunk-NNMPGGZY.js → chunk-6WI5CW2I.js} +1 -1
  7. package/build/_chunks/{chunk-OR22XGAD.js → chunk-6YAUL2OM.js} +1 -1
  8. package/build/_chunks/{chunk-7LVGFAVY.js → chunk-72FD3NW2.js} +1 -1
  9. package/build/_chunks/{chunk-RI3HCTED.js → chunk-7GJ5PPIY.js} +1 -1
  10. package/build/_chunks/{chunk-N2WU3HEH.js → chunk-7UCD3KUZ.js} +1 -1
  11. package/build/_chunks/{chunk-DO5LOF3O.js → chunk-7VUU5WEU.js} +1 -1
  12. package/build/_chunks/{chunk-YHRFQZCJ.js → chunk-A2SC5BOB.js} +1 -1
  13. package/build/_chunks/{chunk-RSIJKVO6.js → chunk-AE4JYS7U.js} +1 -1
  14. package/build/_chunks/{chunk-NQGK2Q5L.js → chunk-AMOFAS7L.js} +1 -1
  15. package/build/_chunks/{chunk-FYZLPKZJ.js → chunk-AXJZMO7Q.js} +1 -1
  16. package/build/_chunks/{chunk-3HYMTOAJ.js → chunk-BQ46OLDY.js} +1 -1
  17. package/build/_chunks/{chunk-J5Y23R6K.js → chunk-C2RHW4FN.js} +1 -1
  18. package/build/_chunks/{chunk-ZERM22LM.js → chunk-CIB4WTBC.js} +1 -1
  19. package/build/_chunks/{chunk-B7SIZBZ4.js → chunk-CNYQ4OI5.js} +1 -1
  20. package/build/_chunks/{chunk-PPHYI47H.js → chunk-D52IZHFQ.js} +1 -1
  21. package/build/_chunks/{chunk-JK5C4QAJ.js → chunk-DKBPLNEE.js} +1 -1
  22. package/build/_chunks/{chunk-AI4TRR5F.js → chunk-DN33IHNY.js} +1 -1
  23. package/build/_chunks/chunk-EP5VELEJ.js +1 -0
  24. package/build/_chunks/{chunk-MZBS2I4P.js → chunk-GVXTYXRO.js} +1 -1
  25. package/build/_chunks/{chunk-U2D7PCC4.js → chunk-HPDPFVUQ.js} +1 -1
  26. package/build/_chunks/{chunk-2SZKMLBQ.js → chunk-HRQGL7NO.js} +1 -1
  27. package/build/_chunks/{chunk-D7SCPBNH.js → chunk-HZYY6NMO.js} +1 -1
  28. package/build/_chunks/{chunk-LDCRZFUN.js → chunk-JMPFZOV3.js} +1 -1
  29. package/build/_chunks/{chunk-LR6FBC7S.js → chunk-JUEXC7Z2.js} +1 -1
  30. package/build/_chunks/{chunk-UY75PFQ7.js → chunk-KFBXVUQ5.js} +1 -1
  31. package/build/_chunks/{chunk-JRADYN3S.js → chunk-L42ISYQY.js} +1 -1
  32. package/build/_chunks/{chunk-3M7YAX7A.js → chunk-LECTWR74.js} +1 -1
  33. package/build/_chunks/{chunk-UENR5XJD.js → chunk-MLZ63M2D.js} +1 -1
  34. package/build/_chunks/{chunk-JDSJDVQK.js → chunk-MSEBSRXG.js} +1 -1
  35. package/build/_chunks/{chunk-YI5J4DCB.js → chunk-MTACYUU3.js} +1 -1
  36. package/build/_chunks/{chunk-IBVECU2A.js → chunk-NDRHRXAO.js} +2 -2
  37. package/build/_chunks/{chunk-4UPB4XII.js → chunk-NHAXRGPW.js} +1 -1
  38. package/build/_chunks/{chunk-WRJLCKDU.js → chunk-OCHPXIEK.js} +1 -1
  39. package/build/_chunks/{chunk-MLJHEMAE.js → chunk-OHN7F4WA.js} +1 -1
  40. package/build/_chunks/{chunk-JKW2LY7R.js → chunk-OSXKJYUX.js} +1 -1
  41. package/build/_chunks/{chunk-XYGYT5QV.js → chunk-PL5M3LK2.js} +1 -1
  42. package/build/_chunks/{chunk-MGKZHRIG.js → chunk-PNRVZNL7.js} +1 -1
  43. package/build/_chunks/{chunk-7K7NRYXI.js → chunk-PUI6B7OY.js} +1 -1
  44. package/build/_chunks/chunk-PYE5IO3O.js +1 -0
  45. package/build/_chunks/{chunk-ONSPUGYN.js → chunk-RFA33XQQ.js} +1 -1
  46. package/build/_chunks/chunk-RK4UGNRY.js +1 -0
  47. package/build/_chunks/{chunk-ARPUXMV4.js → chunk-RTKA6K5L.js} +1 -1
  48. package/build/_chunks/{chunk-XSMIOEMD.js → chunk-RYHHS7S3.js} +1 -1
  49. package/build/_chunks/{chunk-IPYIRN2R.js → chunk-SO6E7CJM.js} +1 -1
  50. package/build/_chunks/{chunk-S6DUWS2C.js → chunk-TCI6NIBC.js} +1 -1
  51. package/build/_chunks/{chunk-PG6JHNLH.js → chunk-TQIWHM5B.js} +1 -1
  52. package/build/_chunks/{chunk-KZIIULI3.js → chunk-TXLFAI3O.js} +1 -1
  53. package/build/_chunks/{chunk-HFZFV3IA.js → chunk-U5M6TIFS.js} +1 -1
  54. package/build/_chunks/{chunk-32GIDLTK.js → chunk-UGX2ZY27.js} +1 -1
  55. package/build/_chunks/{chunk-VIBNNV7I.js → chunk-UVU4YIMS.js} +1 -1
  56. package/build/_chunks/{chunk-R367WWTC.js → chunk-V5NBU5TE.js} +1 -1
  57. package/build/_chunks/{chunk-6PCVGKSW.js → chunk-W3DEOBBE.js} +1 -1
  58. package/build/_chunks/{chunk-OL4HUADY.js → chunk-WNQ3ONG2.js} +1 -1
  59. package/build/_chunks/{chunk-BT4FYCLB.js → chunk-XEYCTDD3.js} +1 -1
  60. package/build/_chunks/{chunk-ZYP2H2JO.js → chunk-XHFDGV2F.js} +1 -1
  61. package/build/_chunks/chunk-XL3OK5YJ.js +2 -0
  62. package/build/_chunks/{chunk-QVH3AVGY.js → chunk-XLFVCH5I.js} +1 -1
  63. package/build/_chunks/chunk-XTJZTHR6.js +2 -0
  64. package/build/_chunks/{chunk-2DZTKOWC.js → chunk-ZGY3RIKJ.js} +1 -1
  65. package/build/components/ActionMenu/ActionMenu.d.ts +4 -0
  66. package/build/components/ActionMenu/ActionMenuFlyoutRow.d.ts +4 -0
  67. package/build/components/ActionMenu/ActionMenuLeafRow.d.ts +10 -0
  68. package/build/components/ActionMenu/ActionMenuPanelContext.d.ts +4 -0
  69. package/build/components/ActionMenu/ActionMenuRow.d.ts +7 -0
  70. package/build/components/ActionMenu/ActionMenuRowLeading.d.ts +4 -0
  71. package/build/components/ActionMenu/ActionMenuRowTrailing.d.ts +6 -0
  72. package/build/components/ActionMenu/constants.d.ts +47 -0
  73. package/build/components/ActionMenu/index.d.ts +4 -0
  74. package/build/components/ActionMenu/index.js +1 -0
  75. package/build/components/ActionMenu/style.d.ts +48 -0
  76. package/build/components/ActionMenu/type.d.ts +141 -0
  77. package/build/components/ActionMenu/utils.d.ts +27 -0
  78. package/build/components/Alert/index.js +1 -1
  79. package/build/components/AreaChart/index.js +1 -1
  80. package/build/components/Autocomplete/index.js +1 -1
  81. package/build/components/AvatarStack/index.js +1 -1
  82. package/build/components/Calender/index.js +1 -1
  83. package/build/components/Card/index.js +1 -1
  84. package/build/components/CardList/index.js +1 -1
  85. package/build/components/ColorPicker/index.js +1 -1
  86. package/build/components/ColumnViews/index.js +1 -1
  87. package/build/components/ConfirmDialog/index.js +1 -1
  88. package/build/components/CountryFilter/index.js +1 -1
  89. package/build/components/CountryFlag/index.js +1 -1
  90. package/build/components/CurrenciesMenu/index.js +1 -1
  91. package/build/components/CurrencyAmount/index.js +1 -1
  92. package/build/components/CurrencyAmountInput/index.js +1 -1
  93. package/build/components/CurrencySymbol/index.js +1 -1
  94. package/build/components/DateFilter/index.js +1 -1
  95. package/build/components/DateInput/index.js +1 -1
  96. package/build/components/DeviceIcon/index.js +1 -1
  97. package/build/components/EmptyState/index.js +1 -1
  98. package/build/components/ErrorToast/index.js +1 -1
  99. package/build/components/ExpandableChip/index.js +1 -1
  100. package/build/components/ExportReportButton/ExportReportButton.d.ts +4 -0
  101. package/build/components/ExportReportButton/ReportFileRow.d.ts +10 -0
  102. package/build/components/ExportReportButton/ReportLoadingRow.d.ts +8 -0
  103. package/build/components/ExportReportButton/ReportRequestRow.d.ts +11 -0
  104. package/build/components/ExportReportButton/constants.d.ts +51 -0
  105. package/build/components/ExportReportButton/hooks/useReportDownload.d.ts +21 -0
  106. package/build/components/ExportReportButton/index.d.ts +6 -0
  107. package/build/components/ExportReportButton/index.js +1 -0
  108. package/build/components/ExportReportButton/style.d.ts +67 -0
  109. package/build/components/ExportReportButton/type.d.ts +147 -0
  110. package/build/components/ExportReportButton/utils.d.ts +10 -0
  111. package/build/components/FileDropbox/index.js +1 -1
  112. package/build/components/FilePreview/index.js +1 -1
  113. package/build/components/FileUploader/index.js +1 -1
  114. package/build/components/FilterBar/index.js +1 -1
  115. package/build/components/FilterChip/index.js +1 -1
  116. package/build/components/FilterDropdown/index.js +1 -1
  117. package/build/components/Filters/index.js +1 -1
  118. package/build/components/FlipCard/index.js +1 -1
  119. package/build/components/GroupedSelect/index.js +1 -1
  120. package/build/components/HeatMap/index.js +1 -1
  121. package/build/components/ListColumnFilter/index.js +1 -1
  122. package/build/components/ListHeader/index.js +1 -1
  123. package/build/components/ListLayout/index.js +1 -1
  124. package/build/components/Loader/index.js +1 -1
  125. package/build/components/Logo/index.js +1 -1
  126. package/build/components/MaskedText/index.js +1 -1
  127. package/build/components/MultiLevelMenu/index.js +1 -1
  128. package/build/components/MultiLevelSelect/index.js +1 -1
  129. package/build/components/PhoneFilter/index.js +1 -1
  130. package/build/components/PhoneInput/index.js +1 -1
  131. package/build/components/ProgressRing/index.js +1 -1
  132. package/build/components/RadioGroup/index.js +1 -1
  133. package/build/components/RangeCalender/index.js +1 -1
  134. package/build/components/RatingCount/index.js +1 -1
  135. package/build/components/SearchButton/index.js +1 -1
  136. package/build/components/SearchInput/index.js +1 -1
  137. package/build/components/Select/index.js +1 -1
  138. package/build/components/SheetViewChip/index.js +1 -1
  139. package/build/components/Sidebar/index.js +1 -1
  140. package/build/components/StatusFilter/index.js +1 -1
  141. package/build/components/StatusIcons/index.js +1 -1
  142. package/build/components/TableCells/index.js +1 -1
  143. package/build/components/TextInput/index.js +1 -1
  144. package/build/components/Timeline/index.js +1 -1
  145. package/build/components/Timepicker/index.js +1 -1
  146. package/build/components/VerificationIcon/index.js +1 -1
  147. package/build/components/VirtualTables/index.js +1 -1
  148. package/build/components/Window/index.js +1 -1
  149. package/build/components/WindowServices/index.js +1 -1
  150. package/build/components/WindowToolbar/index.js +1 -1
  151. package/build/components/index.d.ts +2 -3
  152. package/build/components/index.js +1 -1
  153. package/build/components/modules/JSONViewWindow/index.js +1 -1
  154. package/build/components/modules/RangeCalender/index.js +1 -1
  155. package/build/components/modules/VirtualTables/index.js +1 -1
  156. package/build/components/modules/WindowShell/index.js +1 -1
  157. package/build/components/modules/index.js +1 -1
  158. package/build/components/primitives/index.js +1 -1
  159. package/build/constants/assets.d.ts +1 -0
  160. package/build/constants/index.js +1 -1
  161. package/build/datetime/components/index.js +1 -1
  162. package/build/hooks/index.js +1 -1
  163. package/build/index.js +1 -1
  164. package/build/utils/index.js +1 -1
  165. package/package.json +1 -1
  166. package/build/_chunks/chunk-3M2GZVQW.js +0 -2
  167. package/build/_chunks/chunk-7EIZDPRX.js +0 -1
  168. package/build/_chunks/chunk-AYDZ5BY7.js +0 -1
  169. package/build/_chunks/chunk-QT55YVEL.js +0 -2
  170. package/build/_chunks/chunk-Z2DUFVI5.js +0 -1
  171. package/build/components/ActionsDropdownMenu/ActionsDropdownMenu.d.ts +0 -3
  172. package/build/components/ActionsDropdownMenu/AppMenuItem.d.ts +0 -15
  173. package/build/components/ActionsDropdownMenu/constants.d.ts +0 -1
  174. package/build/components/ActionsDropdownMenu/index.d.ts +0 -3
  175. package/build/components/ActionsDropdownMenu/index.js +0 -1
  176. package/build/components/ActionsDropdownMenu/style.d.ts +0 -16
  177. package/build/components/ActionsDropdownMenu/types.d.ts +0 -42
  178. package/build/components/TableReports/DownloadIconButton.d.ts +0 -7
  179. package/build/components/TableReports/Downloads.d.ts +0 -10
  180. package/build/components/TableReports/RecordLoading.d.ts +0 -2
  181. package/build/components/TableReports/TableReports.d.ts +0 -5
  182. package/build/components/TableReports/components/DownloadButton/DownloadButton.d.ts +0 -8
  183. package/build/components/TableReports/components/DownloadButton/index.d.ts +0 -2
  184. package/build/components/TableReports/components/DownloadButton/style.d.ts +0 -263
  185. package/build/components/TableReports/hooks/index.d.ts +0 -1
  186. package/build/components/TableReports/hooks/useDownloadReport.d.ts +0 -11
  187. package/build/components/TableReports/index.d.ts +0 -7
  188. package/build/components/TableReports/index.js +0 -1
  189. package/build/components/TableReports/style.d.ts +0 -324
  190. package/build/components/TableReports/type.d.ts +0 -37
  191. package/build/components/TableReports/utils.d.ts +0 -2
@@ -1,2 +1,2 @@
1
- import {V,f,l,R,n,v,L as L$1,da,Q}from'./chunk-6GZFEPN6.js';import {nc}from'./chunk-Z2DUFVI5.js';import {createContext,memo,forwardRef,useId,useRef,useState,useCallback,useMemo,useEffect,useImperativeHandle,useContext}from'react';import In from'@mui/material/ClickAwayListener';import un from'lodash/debounce';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import G from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';var L="os-shared-MultiLevelMenu",a={root:`${L}-root`,panel:`${L}-panel`,submenu:`${L}-submenu`,header:`${L}-header`,footer:`${L}-footer`,search:`${L}-search`,searchButton:`${L}-searchButton`,list:`${L}-list`,item:`${L}-item`,itemActive:`${L}-itemActive`,itemAction:`${L}-itemAction`,itemOpen:`${L}-itemOpen`,itemFlipped:`${L}-itemFlipped`,startAdornment:`${L}-startAdornment`,content:`${L}-content`,label:`${L}-label`,hint:`${L}-hint`,count:`${L}-count`,chevron:`${L}-chevron`,endAdornment:`${L}-endAdornment`,empty:`${L}-empty`,loader:`${L}-loader`},me="data-multi-level-submenu",Me="data-multi-level-submenu-anchor",pe="data-multi-level-item",Ze=80,qe=100,Ue=300,fe=300,Qe={strategy:"fixed"},Ye={ArrowDown:1,ArrowUp:-1,Home:"first",End:"last"},Ge=["searchText","label"],Ne="Search",Je="No results found";var ke=createContext(null),Jt=()=>{let e=useContext(ke);if(!e)throw new Error("MultiLevelMenu parts must render inside MultiLevelMenu.");return e},Xe=Jt;var Y=e=>Array.isArray(e.options),_=e=>e.kind==="action",et=e=>(e.options??[]).filter(t=>!_(t)),tt=e=>Y(e)?et(e).length:null;function nt(e,t,n,l){if(_(l)||t==="none")return false;if(l.isSelectable!==void 0)return l.isSelectable;let o=t==="multiple"?true:!Y(l);return e===void 0?o:typeof e=="boolean"?e:typeof e=="function"?e(n,l):(e[n]??o)}function lt(e){let t=new Map,n=[],l=(o,u,c)=>{for(let s of o)t.set(s.id,{node:s,parentId:u,depth:c}),n.push(s.id),s.options&&l(s.options,s.id,c+1);};return l(e,null,0),{entries:t,order:n}}function ot(e,t){let n=[],l=t?e.entries.get(t):void 0;for(;l;)n.unshift(l.node),l=l.parentId?e.entries.get(l.parentId):void 0;return n}var it=(e,t=[])=>{for(let n of e.options??[])t.push(n.id),it(n,t);return t},rt=(e,t,n)=>!_(e)&&!e.isDisabled&&n(e,t);function Ie(e,t,n,l){let o=new Set(e),u=new Set,c=new Set;if(n)for(let i of Array.from(o)){let r=t.entries.get(i);if(!r||!Y(r.node))continue;let M=(p,S)=>{for(let y of p.options??[])(rt(y,S+1,l)||Y(y))&&o.add(y.id),M(y,S+1);};M(r.node,r.depth);}let s=(i,r)=>{let M=et(i).filter(v=>!v.isDisabled),p=(i.options??[]).map(v=>s(v,r+1)),S,y=p.some(v=>v!=="unchecked");if(n&&M.length>0){if(S=M.every(T=>u.has(T.id))?"checked":y?"indeterminate":"unchecked",S==="checked"&&!l(i,r))return u.add(i.id),o.delete(i.id),S;S==="checked"?o.add(i.id):o.delete(i.id);}else S=o.has(i.id)?"checked":y?"indeterminate":"unchecked";return S==="checked"&&u.add(i.id),S==="indeterminate"&&c.add(i.id),S};for(let i of t.order){let r=t.entries.get(i);r&&r.parentId===null&&s(r.node,0);}let d=t.order.filter(i=>o.has(i)),C=Array.from(o).filter(i=>!t.entries.has(i));return {value:[...d,...C],checked:u,indeterminate:c}}function ut(e,t,n,l,o,u,c){if(l==="none")return e;if(l==="single")return n?[t]:e.filter(i=>i!==t);let s=new Set(e),d=u.entries.get(t);if(!o||!d)return n?s.add(t):s.delete(t),Array.from(s);let C=[t,...it(d.node)];if(n)for(let i of C){let r=u.entries.get(i);r&&(i===t||rt(r.node,r.depth,c)||Y(r.node))&&s.add(i);}else {for(let r of C)s.delete(r);let i=d.parentId;for(;i;)s.delete(i),i=u.entries.get(i)?.parentId??null;}return Array.from(s)}var st=(e,t)=>e.order.filter(n=>{let l=e.entries.get(n);return !!(l&&!l.node.isDisabled&&!_(l.node)&&t(l.node,l.depth))});function Ee(e,t,n){return e.reduce((l,o)=>{let u=o.options?Ee(o.options,t,n):void 0;return (t.has(o.id)||n.has(o.id)||u&&u.length>0)&&l.push({...o,...o.options?{options:u}:{}}),l},[])}var Xt=(e,t)=>{let n=e[t],l=e.data&&typeof e.data=="object"?e.data[t]:void 0,o=n??l;return typeof o=="string"||typeof o=="number"?String(o):""},_t=(e,t,n)=>n.some(l=>Xt(e,l).toLowerCase().includes(t));function Te(e,t,n,l){return !t||n.isServerSide?e:n.filterNode?e.reduce((o,u)=>{let c=n.filterNode?.(u,t);return c&&o.push(c),o},[]):e.reduce((o,u)=>{if(_t(u,t,l))return o.push(u),o;if(u.options){let c=Te(u.options,t,n,l);c.length>0&&o.push({...u,options:c});}return o},[])}var ve=e=>e?.length===1&&Y(e[0])&&!_(e[0])?e[0]:null,at=e=>{let t=e.options?{...e,options:e.options.map(at)}:e,n=ve(t.options);for(;n;)t={...t,options:n.options,submenu:{...t.submenu,...n.submenu}},n=ve(t.options);return t};function ct(e,t){let n=e.map(at),l=t,o=ve(n);for(;o;)l={...l,...o.submenu},n=o.options??[],o=ve(n);return {options:n,level:l}}var en=(e,t="right")=>{let n=e?.closest(`.${Q.panel}`);if(!e||!n)return 0;let l=e.getBoundingClientRect(),o=n.getBoundingClientRect(),u=t.startsWith("left")?l.left-o.left:o.right-l.right;return Math.max(0,u)},dt=(e,t)=>[{name:"flip",enabled:true,options:{rootBoundary:"viewport",padding:8,fallbackPlacements:["left-start","right-end","left-end"]}},{name:"preventOverflow",enabled:true,options:{rootBoundary:"viewport",altAxis:true,padding:8}},{name:"offset",options:{offset:({placement:n})=>[0,en(e.current,n)]}},{name:"multiLevelMenuPlacementTracker",enabled:true,phase:"afterWrite",fn:({state:n})=>t(n.placement)}],_e=(e,t)=>t instanceof Node&&!!e?.contains(t),mt=(e,t,n)=>{if(_e(t,e)||_e(n,e))return true;if(!(e instanceof Element)||!n)return false;let l=e.closest(`[${me}]`)?.getAttribute(Me),o=l?document.getElementById(l):null;return !!(o&&n.contains(o))},he=e=>Array.from(e?.querySelectorAll(`[${pe}]:not([aria-disabled="true"])`)??[]);function ge(e,t,n){let l=he(e);if(l.length===0)return;if(n==="first")return l[0].focus();if(n==="last")return l[l.length-1].focus();let o=l.findIndex(c=>c===t),u=o===-1?n===1?0:l.length-1:(o+n+l.length)%l.length;l[u].focus();}function Re(e,t=20){window.setTimeout(()=>{let n=e();if(he(n).length>0){ge(n,null,"first");return}t>1&&Re(e,t-1);},16);}var ln=({options:e,selectionMode:t,isCascading:n,isSelectable:l,value:o,defaultValue:u,onChange:c})=>{let[s,d]=useState(u??[]),C=o!==void 0,i=C?o:s,r=useMemo(()=>lt(e),[e]),M=t==="multiple"&&n,p=useCallback((h,g)=>nt(l,t,g,h),[l,t]),S=useCallback((h,g)=>{let D=r.entries.get(h.id);return D?p(D.node,D.depth):p(h,g)},[r,p]),y=useMemo(()=>Ie(i,r,M,p),[i,r,M,p]),v=useRef(y);v.current=y;let T=useCallback(h=>h.map(g=>r.entries.get(g)?.node).filter(g=>!!g),[r]),k=useCallback((h,g,D)=>{let O=Ie(h,r,M,p);C||d(O.value),c?.(O.value,{node:g,isSelected:D,selectedNodes:T(O.value)});},[r,M,p,C,c,T]),K=useCallback((h,g)=>{k(ut(v.current.value,h.id,g,t,M,r,p),h,g);},[k,t,M,r,p]),R=useCallback(()=>{t==="multiple"&&k(st(r,p),null,true);},[k,t,r,p]),H=useCallback(()=>k([],null,false),[k]),V=useCallback(()=>T(v.current.value),[T]),J=useCallback(()=>Ee(e,v.current.checked,v.current.indeterminate),[e]);return {index:r,canSelectRow:S,snapshot:y,toggle:K,selectAll:R,clear:H,getSelectedNodes:V,getSelectedTree:J}},pt=ln;var sn=(e,t)=>{let[n,l]=useState(""),[o,u]=useState(""),c=useRef(t?.onSearch);c.current=t?.onSearch;let s=t?.debounceMs??Ue,d=useMemo(()=>un(p=>{u(p.toLowerCase()),c.current?.(p);},s),[s]);useEffect(()=>()=>d.cancel(),[d]);let C=useCallback(p=>{l(p),d(p.trim());},[d]),i=useCallback(()=>{d.cancel(),l(""),u(""),c.current?.("");},[d]),r=t?.searchBy??Ge,M=useMemo(()=>t?Te(e,o,t,r):e,[e,o,t,r]);return {inputValue:n,query:o,filteredOptions:M,isSearching:!!(t&&o),handleChange:C,handleClear:i}},gt=sn;var Lt=()=>jsx("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":true,focusable:"false",children:jsx("path",{d:"M0.40999 4.88245e-05C0.327141 0.00131442 0.246554 0.0272714 0.178541 0.0745982C0.110529 0.121925 0.0581841 0.188469 0.0282057 0.265715C-0.00177272 0.34296 -0.00802105 0.427394 0.01026 0.508211C0.0285411 0.589028 0.0705201 0.662552 0.130825 0.719375L4.54108 5.0001L0.130825 9.28083C0.0907115 9.3187 0.0585239 9.36416 0.0361329 9.41458C0.0137419 9.465 0.00159394 9.51937 0.00039481 9.57452C-0.000804325 9.62967 0.00896913 9.68452 0.0291477 9.73586C0.0493262 9.7872 0.0795072 9.83403 0.117937 9.87361C0.156367 9.91319 0.202279 9.94473 0.253007 9.96641C0.303734 9.9881 0.358264 9.99948 0.413429 9.99991C0.468594 10.0003 0.523294 9.98979 0.57435 9.9689C0.625406 9.948 0.6718 9.91717 0.710837 9.87819L5.42899 5.29878C5.46895 5.25997 5.50071 5.21354 5.52241 5.16224C5.5441 5.11094 5.55527 5.0558 5.55527 5.0001C5.55527 4.9444 5.5441 4.88926 5.52241 4.83796C5.50071 4.78666 5.46895 4.74023 5.42899 4.70142L0.710837 0.122015C0.671414 0.0825733 0.62447 0.0514536 0.572791 0.0305023C0.521111 0.00955091 0.465749 -0.00080514 0.40999 4.88245e-05Z",fill:"currentColor"})}),St=()=>jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":true,focusable:"false",children:jsx("path",{d:"M7.68817 8.21429L7.6463 8.17242L7.60036 8.20978C6.88378 8.79249 5.97154 9.14299 4.97917 9.14299C2.68489 9.14299 0.815625 7.27372 0.815625 4.97943C0.815625 2.68514 2.68489 0.815869 4.97917 0.815869C7.27345 0.815869 9.14271 2.68514 9.14271 4.97943C9.14271 5.9718 8.79221 6.88405 8.2095 7.60064L8.17215 7.64657L8.21401 7.68844L11.0754 10.5499L11.0754 10.5499L11.0764 10.5508C11.1121 10.5851 11.1406 10.6261 11.1602 10.6715C11.1798 10.7169 11.1902 10.7658 11.1907 10.8153C11.1912 10.8648 11.1818 10.9139 11.1631 10.9597C11.1444 11.0055 11.1168 11.0471 11.0818 11.0821C11.0468 11.1171 11.0052 11.1447 10.9594 11.1634C10.9136 11.1821 10.8645 11.1915 10.815 11.191C10.7655 11.1905 10.7167 11.1801 10.6712 11.1605C10.6258 11.1409 10.5848 11.1124 10.5505 11.0767L10.5496 11.0757L7.68817 8.21429ZM7.43625 7.35711L7.43682 7.35789L7.44469 7.34971C8.03496 6.73571 8.39896 5.90202 8.39896 4.97943C8.39896 3.08554 6.87305 1.55962 4.97917 1.55962C3.08528 1.55962 1.55937 3.08554 1.55937 4.97943C1.55937 6.87332 3.08528 8.39924 4.97917 8.39924C5.90175 8.39924 6.73544 8.03524 7.34944 7.44496L7.35011 7.44566L7.35683 7.43652C7.37913 7.40618 7.40591 7.37941 7.43625 7.35711Z",fill:"#20232B",stroke:"white",strokeWidth:.13125})}),yt=()=>jsxs("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":true,focusable:"false",children:[jsx("rect",{width:"13",height:"13",rx:"6.5",fill:"#F2F2F2"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.69808 4.16259C8.78018 4.16065 8.86095 4.18356 8.92981 4.22833C8.99866 4.27309 9.05239 4.33762 9.08393 4.41344C9.11548 4.48927 9.12338 4.57286 9.10659 4.65325C9.08981 4.73365 9.04911 4.80708 8.98986 4.86395L7.07755 6.77626L8.98839 8.68713L8.98986 8.68854C9.02896 8.72608 9.06018 8.77105 9.08169 8.82081C9.1032 8.87057 9.11456 8.92413 9.11511 8.97833C9.11566 9.03254 9.10539 9.08631 9.0849 9.1365C9.06441 9.18669 9.03411 9.23229 8.99578 9.27062C8.95745 9.30895 8.91185 9.33925 8.86166 9.35974C8.81147 9.38023 8.7577 9.3905 8.70349 9.38995C8.64928 9.3894 8.59573 9.37804 8.54597 9.35653C8.49621 9.33502 8.45125 9.30379 8.41371 9.26469L6.50141 7.35239L4.59054 9.26323L4.58913 9.2647C4.55159 9.30381 4.50662 9.33502 4.45685 9.35653C4.40709 9.37804 4.35354 9.3894 4.29933 9.38995C4.24513 9.3905 4.19135 9.38023 4.14116 9.35974C4.09098 9.33925 4.04538 9.30895 4.00705 9.27062C3.96872 9.23229 3.93842 9.18669 3.91793 9.1365C3.89744 9.08631 3.88717 9.03254 3.88772 8.97833C3.88827 8.92413 3.89963 8.87057 3.92114 8.82081C3.94264 8.77105 3.97388 8.7261 4.01298 8.68855L5.92528 6.77626L4.01443 4.86539L4.01339 4.86438C3.95522 4.80788 3.91524 4.73531 3.89855 4.65596C3.88186 4.5766 3.88923 4.49407 3.91971 4.41893C3.95019 4.34379 4.00239 4.27945 4.06964 4.23414C4.13689 4.18884 4.21615 4.16462 4.29722 4.1646C4.30093 4.1646 4.30464 4.16465 4.30835 4.16475C4.35906 4.16614 4.4091 4.17699 4.45589 4.19678C4.5061 4.21801 4.55154 4.24911 4.58952 4.28822L6.50141 6.20012L8.41228 4.28928L8.4137 4.2878C8.43812 4.26236 8.4655 4.24043 8.49507 4.22235C8.55578 4.18521 8.62571 4.1643 8.69808 4.16259Z",fill:"#8D8D94"})]});var Mn=()=>{let[e,t]=useState(null),n=useRef(null),l=useCallback(()=>{n.current!==null&&(window.clearTimeout(n.current),n.current=null);},[]),o=useCallback(s=>{l(),t(s);},[l]),u=useCallback(s=>{l(),t(d=>s===void 0||d===s?null:d);},[l]),c=useCallback((s,d,C,i)=>{mt(d,C,i)||(l(),n.current=window.setTimeout(()=>{n.current=null,t(r=>r===s?null:r);},Ze));},[l]);return useEffect(()=>l,[l]),{openId:e,open:o,close:u,scheduleClose:c,cancelClose:l}},bt=Mn;var Ct=styled(G)({display:"flex",flexDirection:"column",maxWidth:340}),Ae={flexShrink:0},wt=styled(G)(({theme:e})=>({...Ae,...e.v2.typography.textVariants.body.small.medium,display:"flex",alignItems:"center",minHeight:36,padding:`0 ${e.v2.spacing(8)}`,color:e.v2.palette.grey[500],cursor:"default"})),Nt=styled(G)(({theme:e})=>({...Ae,...e.v2.typography.textVariants.body.small.medium,display:"flex",alignItems:"center",minHeight:36,padding:`0 ${e.v2.spacing(8)}`,color:e.v2.palette.grey[500],cursor:"default"})),kt=styled(G)(({theme:e})=>({...Ae,padding:e.v2.spacing(8)})),It=styled(G)({display:"flex",flexDirection:"column",maxHeight:fe,overflowY:"auto",overscrollBehavior:"contain"}),re=styled(G)(({theme:e})=>({...e.v2.typography.textVariants.body.small.medium,fontSize:10,display:"flex",alignItems:"center",justifyContent:"center",minHeight:36,padding:`${e.v2.spacing(4)} ${e.v2.spacing(12)}`,color:alpha(e.v2.palette.base.black,.4),cursor:"default",textAlign:"center"})),Et=styled(V)(({theme:e})=>{let{brand:t,base:n}=e.v2.palette,l={boxShadow:e.v2.elevation[200],zIndex:1};return {minWidth:120,minHeight:36,maxHeight:36,paddingTop:0,paddingBottom:0,textTransform:"none",backgroundColor:n.white,outline:"none","&:hover":l,[`&.${a.itemOpen}`]:l,[`&.${a.itemActive}`]:l,"&:focus-visible":{boxShadow:`inset 0 0 0 1px ${t[500]}, ${e.v2.elevation[200]}`,zIndex:1},[`&.${a.itemAction}`]:{color:t[500]}}}),Tt=styled("span")({display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,"& img, & svg":{display:"block",maxWidth:20,maxHeight:20}}),De=styled(G)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(8),flex:1,minWidth:0})),Rt=styled(G)({display:"flex",flexDirection:"column",flex:1,minWidth:0}),At={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Dt=styled("span")(({theme:e})=>({...e.v2.typography.textVariants.body.small.regular,...At,lineHeight:"normal",color:"inherit"})),Pt=styled("span")(({theme:e})=>({...e.v2.typography.textVariants.caption.regular,...At,fontSize:8,lineHeight:"normal",color:alpha(e.v2.palette.base.black,.5)})),Ht=styled("span",{shouldForwardProp:e=>e!=="$isOneDigit"})(({theme:e,$isOneDigit:t=true})=>({...e.v2.typography.textVariants.caption.semibold,fontSize:8,fontWeight:700,lineHeight:"10px",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,height:14,boxSizing:"border-box",...t?{width:13,borderRadius:"50%"}:{padding:`0 ${e.v2.spacing(3)}`,borderRadius:e.v2.radius(4)},backgroundColor:e.v2.palette.grey[100],color:e.v2.palette.grey[900]})),$t=styled("span")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(4),flexShrink:0})),Bt=styled("span")({display:"flex",alignItems:"center",flexShrink:0}),Ot=styled("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",width:8,flexShrink:0,color:e.v2.palette.grey[900],transition:"transform 120ms ease",[`.${a.itemFlipped} &`]:{transform:"rotate(180deg)"}})),Ft=styled(f)({padding:0,paddingRight:"4px",width:"14px !important",".MuiSvgIcon-root, svg":{width:"12px !important",height:"12px !important"}}),Kt=styled(l)({padding:0}),Pe=styled("button")({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,boxSizing:"border-box",width:16,height:16,padding:0,margin:"1px 0 0 8px",border:0,borderRadius:"50%",background:"transparent",cursor:"pointer","&:disabled":{cursor:"default"},"& svg":{display:"block"}});function gn({node:e,depth:t,path:n,isSubmenuOpen:l,isHoverDisabled:o,isTabStop:u,onSubmenuOpen:c,onSubmenuClose:s,onSubmenuScheduleClose:d,onSubmenuCancelClose:C}){let i=Xe(),{selectionMode:r,submenuTrigger:M,checked:p,indeterminate:S,activePath:y,canSelectRow:v,getItemCount:T,renderItem:k}=i,K=useId(),R$1=useRef(null),[H,V]=useState(null),J=useCallback(f=>{R$1.current=f,V(f);},[]),h=useRef(null),[g,D]=useState(false),O=useMemo(()=>dt(R$1,f=>D(f.startsWith("left"))),[]),b=Y(e),W=_(e),A=!!e.isDisabled,I=v(e,t),E=p.has(e.id),z=!E&&S.has(e.id),q=y.has(e.id),w=b&&l&&!A,F=b?T(e):null,j=useRef(i.onSubmenuOpen);j.current=i.onSubmenuOpen,useEffect(()=>{w&&j.current?.(e);},[w]);let U=useCallback(()=>{A||(I&&i.toggle(e,r==="single"?true:!E),b&&(M==="click"||!I)&&(w&&M==="click"?s(e.id):c(e.id)),e.onClick?.(e,n),i.onNodeClick?.(e,n),!b&&i.isClosingOnSelect&&(I||r==="none"||W)&&i.requestClose("select"));},[i,b,W,A,w,I,E,e,s,c,n,r,M]),m=f=>{f.stopPropagation(),U();},$=()=>{M!=="hover"||o||A||!b||c(e.id);},ue=f=>{M!=="hover"||!b||d(e.id,f.relatedTarget,R$1.current,h.current);},le=()=>Re(()=>h.current?.querySelector(`.${a.list}`)??null),se=f=>{if(!(f.target===R$1.current)){w&&(f.key==="ArrowLeft"||f.key==="Escape")&&(f.preventDefault(),f.stopPropagation(),s(e.id),R$1.current?.focus());return}if(f.key==="Enter"||f.key===" "){f.preventDefault(),f.stopPropagation(),U(),b&&!I&&le();return}f.key==="ArrowRight"&&b&&!A&&(f.preventDefault(),f.stopPropagation(),c(e.id),le());},ae={depth:t,path:n,isSelected:E,isIndeterminate:z,isActive:q,isDisabled:A,isSelectable:I,hasOptions:b,isSubmenuOpen:w,isSubmenuFlipped:g,itemCount:F},ee=null;I&&r==="multiple"&&(ee=jsx(Ft,{size:"small",checked:E,indeterminate:z,tabIndex:-1})),I&&r==="single"&&(ee=jsx(Kt,{checked:E,tabIndex:-1}));let Q=null;e.endAdornment!==void 0?Q=e.endAdornment===null?null:jsx(Bt,{className:a.endAdornment,children:e.endAdornment}):(b||W)&&(Q=jsx(Ot,{className:a.chevron,"aria-hidden":true,children:jsx(Lt,{})}));let X="menuitem";return I&&r==="multiple"&&(X="menuitemcheckbox"),I&&r==="single"&&(X="menuitemradio"),jsxs(Et,{ref:J,id:K,role:X,tabIndex:u?0:-1,"aria-checked":I?z?"mixed":E:void 0,"aria-haspopup":b?"menu":void 0,"aria-expanded":b?w:void 0,"aria-disabled":A||void 0,"aria-current":q||void 0,"data-testid":"MultiLevelMenuItem","data-node-id":e.id,[pe]:"",className:nc(a.item,q&&a.itemActive,W&&a.itemAction,w&&a.itemOpen,w&&g&&a.itemFlipped),isSelected:E,isIndeterminate:z,isDisabled:A,startAdornment:ee,onClick:m,onMouseEnter:$,onMouseLeave:ue,onKeyDown:se,children:[k?jsx(De,{className:a.content,children:k(e,ae)}):jsxs(De,{className:a.content,children:[e.startAdornment?jsx(Tt,{className:a.startAdornment,children:e.startAdornment}):null,jsxs(Rt,{children:[jsx(Dt,{className:a.label,title:typeof e.label=="string"?e.label:void 0,children:e.label}),e.hint?jsx(Pt,{className:a.hint,title:typeof e.hint=="string"?e.hint:void 0,children:e.hint}):null]})]}),F&&!k||Q!==null?jsxs($t,{children:[F&&!k?jsx(Ht,{className:a.count,$isOneDigit:F<10,children:F}):null,Q]}):null,b?jsx(R,{ref:h,[me]:"",[Me]:K,open:w&&H!==null,anchorEl:H,placement:"right-start",modifiers:O,popperOptions:Qe,sx:i.submenuSx,panelProps:{role:"menu",className:nc(a.panel,a.submenu,i.className),"data-depth":t+1,"data-level-key":e.submenu?.levelKey},onClick:f=>f.stopPropagation(),onMouseEnter:C,onMouseLeave:f=>d(e.id,f.relatedTarget,R$1.current,h.current),children:jsx(ye,{options:e.options??[],level:e.submenu??{},depth:t+1,path:n})}):null]})}var zt=memo(gn);function bn({options:e,level:t,depth:n$1,path:l}){let{header:o,footer:u,search:c,emptyState:s,isLoading:d,hasMore:C,isLoadingMore:i,onLoadMore:r}=t,M=useRef(null),p=useRef(null),[S,y]=useState(void 0),v$1=useRef(null),[T,k]=useState(false),{openId:K,open:R,close:H,scheduleClose:V,cancelClose:J}=bt(),{inputValue:h,filteredOptions:g,isSearching:D,handleChange:O,handleClear:b}=gt(e,c),W=m=>{m&&!h&&y(p.current?.getBoundingClientRect().width),m||y(void 0),O(m);},A=()=>{y(void 0),b();};useEffect(()=>()=>{v$1.current!==null&&window.clearTimeout(v$1.current);},[]);let I=useCallback(()=>{k(true),H(),v$1.current!==null&&window.clearTimeout(v$1.current),v$1.current=window.setTimeout(()=>{v$1.current=null,k(false);},qe);},[H]),E=m=>{let $=Ye[m.key];$===void 0||!he(M.current).includes(m.target)||(m.preventDefault(),m.stopPropagation(),ge(M.current,m.target,$));},z=m=>{m.key==="ArrowDown"&&(m.preventDefault(),ge(M.current,null,"first"));},q=g.find(m=>!m.isDisabled)?.id,w=g.map(m=>jsx(zt,{node:m,depth:n$1,path:[...l,m],isSubmenuOpen:K===m.id,isHoverDisabled:T,isTabStop:m.id===q,onSubmenuOpen:R,onSubmenuClose:H,onSubmenuScheduleClose:V,onSubmenuCancelClose:J},m.id)),F=!d&&g.length===0&&D,j=null;d?j=jsx(re,{className:a.loader,role:"status","aria-live":"polite",children:jsx(n,{size:14})}):F?j=jsx(re,{className:a.empty,role:"status",children:c?.noResults??Je}):g.length===0&&s&&(j=jsx(re,{className:a.empty,role:"status",children:s}));let U=i?jsx(re,{className:a.loader,role:"status","aria-live":"polite",children:jsx(n,{size:14})}):null;return jsxs(Ct,{ref:p,"data-depth":n$1,sx:S?{minWidth:S}:void 0,children:[o?jsxs(Fragment,{children:[jsx(wt,{className:a.header,children:o}),jsx(v,{flexItem:true})]}):null,c?jsxs(Fragment,{children:[jsx(kt,{className:a.search,children:jsx(L$1,{fullWidth:true,size:"md",placeholder:c.placeholder??Ne,value:h,onChange:m=>W(m.target.value),onKeyDown:z,inputProps:{autoComplete:"off","aria-label":c.placeholder??Ne},endAdornment:h?jsx(Pe,{type:"button",className:a.searchButton,"aria-label":"Clear search",onMouseDown:m=>m.preventDefault(),onClick:m=>{m.stopPropagation(),A();},children:jsx(yt,{})}):jsx(Pe,{type:"button",className:a.searchButton,"aria-label":"Search",tabIndex:-1,disabled:true,children:jsx(St,{})})})}),jsx(v,{flexItem:true})]}):null,j??(r?jsxs(da,{ref:M,className:a.list,loadMoreItems:async()=>r(),hasMore:C,isFetchingNextPage:!!i,onScroll:I,onKeyDown:E,sx:{maxHeight:fe,overflowY:"auto",overscrollBehavior:"contain"},children:[w,U]}):jsxs(It,{ref:M,className:a.list,onScroll:I,onKeyDown:E,children:[w,U]})),u?jsxs(Fragment,{children:[jsx(v,{flexItem:true}),jsx(Nt,{className:a.footer,children:u})]}):null]})}var ye=memo(bn);function En(e,t){let{id:n,options:l,anchorEl:o,open:u,placement:c="bottom-start",onClose:s,selectionMode:d="multiple",isCascading:C=true,isSelectable:i,value:r,defaultValue:M,onChange:p,activeId:S,onNodeClick:y,onSubmenuOpen:v,isClosingOnSelect:T=d!=="multiple",submenuTrigger:k="hover",shouldPromoteSingleChild:K=false,getItemCount:R$1=tt,renderItem:H,className:V,sx:J,submenuSx:h,popperProps:g,header:D,footer:O,search:b,emptyState:W,isLoading:A,hasMore:I,isLoadingMore:E,onLoadMore:z,levelKey:q}=e,w=u??!!o,F=useRef(null),j=pt({options:l,selectionMode:d,isCascading:C,isSelectable:i,value:r,defaultValue:M,onChange:p}),{index:U,canSelectRow:m,snapshot:$,toggle:ue,selectAll:le,clear:se,getSelectedNodes:ae,getSelectedTree:ee}=j,Q=useMemo(()=>({header:D,footer:O,search:b,emptyState:W,isLoading:A,hasMore:I,isLoadingMore:E,onLoadMore:z,levelKey:q}),[D,O,b,W,A,I,E,z,q]),X=useMemo(()=>K?ct(l,Q):{options:l,level:Q},[K,l,Q]),f=useMemo(()=>new Set(ot(U,S).map(B=>B.id)),[U,S]),Ce=useRef(s);Ce.current=s;let oe=useCallback(B=>Ce.current?.(B),[]);useEffect(()=>{if(!w)return;let B=Oe=>{Oe.key==="Escape"&&!Oe.defaultPrevented&&oe("escape");};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[w,oe]),useImperativeHandle(t,()=>({get element(){return F.current},getValue:()=>$.value,getSelectedNodes:ae,getSelectedTree:ee,selectAll:le,clear:se}),[$.value,ae,ee,le,se]);let Ut=useMemo(()=>({selectionMode:d,submenuTrigger:k,isClosingOnSelect:T,checked:$.checked,indeterminate:$.indeterminate,activePath:f,className:V,submenuSx:h,canSelectRow:m,getItemCount:R$1,toggle:ue,requestClose:oe,onNodeClick:y,onSubmenuOpen:v,renderItem:H}),[d,k,T,$.checked,$.indeterminate,f,V,h,m,R$1,ue,oe,y,v,H]),Qt=B=>{w&&(o&&B.target instanceof Node&&o.contains(B.target)||oe("clickAway"));};return jsx(ke.Provider,{value:Ut,children:jsx(In,{onClickAway:Qt,children:jsx(R,{...g,ref:F,id:n,"data-testid":n??"MultiLevelMenu",open:w,anchorEl:o,placement:c,sx:J,onClick:B=>B.stopPropagation(),panelProps:{role:"menu",className:nc(a.root,a.panel,V),"aria-multiselectable":d==="multiple"||void 0,"data-depth":0,"data-level-key":X.level.levelKey},children:jsx(ye,{options:X.options,level:X.level,depth:0,path:[]})})})})}var qt=memo(forwardRef(En));qt.displayName="MultiLevelMenu";var Tn=qt;
1
+ import {V,f,l,R,n,v,L as L$1,da,Q}from'./chunk-4NLQZJVN.js';import {nc}from'./chunk-EP5VELEJ.js';import {createContext,memo,forwardRef,useId,useRef,useState,useCallback,useMemo,useEffect,useImperativeHandle,useContext}from'react';import In from'@mui/material/ClickAwayListener';import un from'lodash/debounce';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import G from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';var L="os-shared-MultiLevelMenu",a={root:`${L}-root`,panel:`${L}-panel`,submenu:`${L}-submenu`,header:`${L}-header`,footer:`${L}-footer`,search:`${L}-search`,searchButton:`${L}-searchButton`,list:`${L}-list`,item:`${L}-item`,itemActive:`${L}-itemActive`,itemAction:`${L}-itemAction`,itemOpen:`${L}-itemOpen`,itemFlipped:`${L}-itemFlipped`,startAdornment:`${L}-startAdornment`,content:`${L}-content`,label:`${L}-label`,hint:`${L}-hint`,count:`${L}-count`,chevron:`${L}-chevron`,endAdornment:`${L}-endAdornment`,empty:`${L}-empty`,loader:`${L}-loader`},me="data-multi-level-submenu",Me="data-multi-level-submenu-anchor",pe="data-multi-level-item",Ze=80,qe=100,Ue=300,fe=300,Qe={strategy:"fixed"},Ye={ArrowDown:1,ArrowUp:-1,Home:"first",End:"last"},Ge=["searchText","label"],Ne="Search",Je="No results found";var ke=createContext(null),Jt=()=>{let e=useContext(ke);if(!e)throw new Error("MultiLevelMenu parts must render inside MultiLevelMenu.");return e},Xe=Jt;var Y=e=>Array.isArray(e.options),_=e=>e.kind==="action",et=e=>(e.options??[]).filter(t=>!_(t)),tt=e=>Y(e)?et(e).length:null;function nt(e,t,n,l){if(_(l)||t==="none")return false;if(l.isSelectable!==void 0)return l.isSelectable;let o=t==="multiple"?true:!Y(l);return e===void 0?o:typeof e=="boolean"?e:typeof e=="function"?e(n,l):(e[n]??o)}function lt(e){let t=new Map,n=[],l=(o,u,c)=>{for(let s of o)t.set(s.id,{node:s,parentId:u,depth:c}),n.push(s.id),s.options&&l(s.options,s.id,c+1);};return l(e,null,0),{entries:t,order:n}}function ot(e,t){let n=[],l=t?e.entries.get(t):void 0;for(;l;)n.unshift(l.node),l=l.parentId?e.entries.get(l.parentId):void 0;return n}var it=(e,t=[])=>{for(let n of e.options??[])t.push(n.id),it(n,t);return t},rt=(e,t,n)=>!_(e)&&!e.isDisabled&&n(e,t);function Ie(e,t,n,l){let o=new Set(e),u=new Set,c=new Set;if(n)for(let i of Array.from(o)){let r=t.entries.get(i);if(!r||!Y(r.node))continue;let M=(p,S)=>{for(let y of p.options??[])(rt(y,S+1,l)||Y(y))&&o.add(y.id),M(y,S+1);};M(r.node,r.depth);}let s=(i,r)=>{let M=et(i).filter(v=>!v.isDisabled),p=(i.options??[]).map(v=>s(v,r+1)),S,y=p.some(v=>v!=="unchecked");if(n&&M.length>0){if(S=M.every(T=>u.has(T.id))?"checked":y?"indeterminate":"unchecked",S==="checked"&&!l(i,r))return u.add(i.id),o.delete(i.id),S;S==="checked"?o.add(i.id):o.delete(i.id);}else S=o.has(i.id)?"checked":y?"indeterminate":"unchecked";return S==="checked"&&u.add(i.id),S==="indeterminate"&&c.add(i.id),S};for(let i of t.order){let r=t.entries.get(i);r&&r.parentId===null&&s(r.node,0);}let d=t.order.filter(i=>o.has(i)),C=Array.from(o).filter(i=>!t.entries.has(i));return {value:[...d,...C],checked:u,indeterminate:c}}function ut(e,t,n,l,o,u,c){if(l==="none")return e;if(l==="single")return n?[t]:e.filter(i=>i!==t);let s=new Set(e),d=u.entries.get(t);if(!o||!d)return n?s.add(t):s.delete(t),Array.from(s);let C=[t,...it(d.node)];if(n)for(let i of C){let r=u.entries.get(i);r&&(i===t||rt(r.node,r.depth,c)||Y(r.node))&&s.add(i);}else {for(let r of C)s.delete(r);let i=d.parentId;for(;i;)s.delete(i),i=u.entries.get(i)?.parentId??null;}return Array.from(s)}var st=(e,t)=>e.order.filter(n=>{let l=e.entries.get(n);return !!(l&&!l.node.isDisabled&&!_(l.node)&&t(l.node,l.depth))});function Ee(e,t,n){return e.reduce((l,o)=>{let u=o.options?Ee(o.options,t,n):void 0;return (t.has(o.id)||n.has(o.id)||u&&u.length>0)&&l.push({...o,...o.options?{options:u}:{}}),l},[])}var Xt=(e,t)=>{let n=e[t],l=e.data&&typeof e.data=="object"?e.data[t]:void 0,o=n??l;return typeof o=="string"||typeof o=="number"?String(o):""},_t=(e,t,n)=>n.some(l=>Xt(e,l).toLowerCase().includes(t));function Te(e,t,n,l){return !t||n.isServerSide?e:n.filterNode?e.reduce((o,u)=>{let c=n.filterNode?.(u,t);return c&&o.push(c),o},[]):e.reduce((o,u)=>{if(_t(u,t,l))return o.push(u),o;if(u.options){let c=Te(u.options,t,n,l);c.length>0&&o.push({...u,options:c});}return o},[])}var ve=e=>e?.length===1&&Y(e[0])&&!_(e[0])?e[0]:null,at=e=>{let t=e.options?{...e,options:e.options.map(at)}:e,n=ve(t.options);for(;n;)t={...t,options:n.options,submenu:{...t.submenu,...n.submenu}},n=ve(t.options);return t};function ct(e,t){let n=e.map(at),l=t,o=ve(n);for(;o;)l={...l,...o.submenu},n=o.options??[],o=ve(n);return {options:n,level:l}}var en=(e,t="right")=>{let n=e?.closest(`.${Q.panel}`);if(!e||!n)return 0;let l=e.getBoundingClientRect(),o=n.getBoundingClientRect(),u=t.startsWith("left")?l.left-o.left:o.right-l.right;return Math.max(0,u)},dt=(e,t)=>[{name:"flip",enabled:true,options:{rootBoundary:"viewport",padding:8,fallbackPlacements:["left-start","right-end","left-end"]}},{name:"preventOverflow",enabled:true,options:{rootBoundary:"viewport",altAxis:true,padding:8}},{name:"offset",options:{offset:({placement:n})=>[0,en(e.current,n)]}},{name:"multiLevelMenuPlacementTracker",enabled:true,phase:"afterWrite",fn:({state:n})=>t(n.placement)}],_e=(e,t)=>t instanceof Node&&!!e?.contains(t),mt=(e,t,n)=>{if(_e(t,e)||_e(n,e))return true;if(!(e instanceof Element)||!n)return false;let l=e.closest(`[${me}]`)?.getAttribute(Me),o=l?document.getElementById(l):null;return !!(o&&n.contains(o))},he=e=>Array.from(e?.querySelectorAll(`[${pe}]:not([aria-disabled="true"])`)??[]);function ge(e,t,n){let l=he(e);if(l.length===0)return;if(n==="first")return l[0].focus();if(n==="last")return l[l.length-1].focus();let o=l.findIndex(c=>c===t),u=o===-1?n===1?0:l.length-1:(o+n+l.length)%l.length;l[u].focus();}function Re(e,t=20){window.setTimeout(()=>{let n=e();if(he(n).length>0){ge(n,null,"first");return}t>1&&Re(e,t-1);},16);}var ln=({options:e,selectionMode:t,isCascading:n,isSelectable:l,value:o,defaultValue:u,onChange:c})=>{let[s,d]=useState(u??[]),C=o!==void 0,i=C?o:s,r=useMemo(()=>lt(e),[e]),M=t==="multiple"&&n,p=useCallback((h,g)=>nt(l,t,g,h),[l,t]),S=useCallback((h,g)=>{let D=r.entries.get(h.id);return D?p(D.node,D.depth):p(h,g)},[r,p]),y=useMemo(()=>Ie(i,r,M,p),[i,r,M,p]),v=useRef(y);v.current=y;let T=useCallback(h=>h.map(g=>r.entries.get(g)?.node).filter(g=>!!g),[r]),k=useCallback((h,g,D)=>{let O=Ie(h,r,M,p);C||d(O.value),c?.(O.value,{node:g,isSelected:D,selectedNodes:T(O.value)});},[r,M,p,C,c,T]),K=useCallback((h,g)=>{k(ut(v.current.value,h.id,g,t,M,r,p),h,g);},[k,t,M,r,p]),R=useCallback(()=>{t==="multiple"&&k(st(r,p),null,true);},[k,t,r,p]),H=useCallback(()=>k([],null,false),[k]),V=useCallback(()=>T(v.current.value),[T]),J=useCallback(()=>Ee(e,v.current.checked,v.current.indeterminate),[e]);return {index:r,canSelectRow:S,snapshot:y,toggle:K,selectAll:R,clear:H,getSelectedNodes:V,getSelectedTree:J}},pt=ln;var sn=(e,t)=>{let[n,l]=useState(""),[o,u]=useState(""),c=useRef(t?.onSearch);c.current=t?.onSearch;let s=t?.debounceMs??Ue,d=useMemo(()=>un(p=>{u(p.toLowerCase()),c.current?.(p);},s),[s]);useEffect(()=>()=>d.cancel(),[d]);let C=useCallback(p=>{l(p),d(p.trim());},[d]),i=useCallback(()=>{d.cancel(),l(""),u(""),c.current?.("");},[d]),r=t?.searchBy??Ge,M=useMemo(()=>t?Te(e,o,t,r):e,[e,o,t,r]);return {inputValue:n,query:o,filteredOptions:M,isSearching:!!(t&&o),handleChange:C,handleClear:i}},gt=sn;var Lt=()=>jsx("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":true,focusable:"false",children:jsx("path",{d:"M0.40999 4.88245e-05C0.327141 0.00131442 0.246554 0.0272714 0.178541 0.0745982C0.110529 0.121925 0.0581841 0.188469 0.0282057 0.265715C-0.00177272 0.34296 -0.00802105 0.427394 0.01026 0.508211C0.0285411 0.589028 0.0705201 0.662552 0.130825 0.719375L4.54108 5.0001L0.130825 9.28083C0.0907115 9.3187 0.0585239 9.36416 0.0361329 9.41458C0.0137419 9.465 0.00159394 9.51937 0.00039481 9.57452C-0.000804325 9.62967 0.00896913 9.68452 0.0291477 9.73586C0.0493262 9.7872 0.0795072 9.83403 0.117937 9.87361C0.156367 9.91319 0.202279 9.94473 0.253007 9.96641C0.303734 9.9881 0.358264 9.99948 0.413429 9.99991C0.468594 10.0003 0.523294 9.98979 0.57435 9.9689C0.625406 9.948 0.6718 9.91717 0.710837 9.87819L5.42899 5.29878C5.46895 5.25997 5.50071 5.21354 5.52241 5.16224C5.5441 5.11094 5.55527 5.0558 5.55527 5.0001C5.55527 4.9444 5.5441 4.88926 5.52241 4.83796C5.50071 4.78666 5.46895 4.74023 5.42899 4.70142L0.710837 0.122015C0.671414 0.0825733 0.62447 0.0514536 0.572791 0.0305023C0.521111 0.00955091 0.465749 -0.00080514 0.40999 4.88245e-05Z",fill:"currentColor"})}),St=()=>jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":true,focusable:"false",children:jsx("path",{d:"M7.68817 8.21429L7.6463 8.17242L7.60036 8.20978C6.88378 8.79249 5.97154 9.14299 4.97917 9.14299C2.68489 9.14299 0.815625 7.27372 0.815625 4.97943C0.815625 2.68514 2.68489 0.815869 4.97917 0.815869C7.27345 0.815869 9.14271 2.68514 9.14271 4.97943C9.14271 5.9718 8.79221 6.88405 8.2095 7.60064L8.17215 7.64657L8.21401 7.68844L11.0754 10.5499L11.0754 10.5499L11.0764 10.5508C11.1121 10.5851 11.1406 10.6261 11.1602 10.6715C11.1798 10.7169 11.1902 10.7658 11.1907 10.8153C11.1912 10.8648 11.1818 10.9139 11.1631 10.9597C11.1444 11.0055 11.1168 11.0471 11.0818 11.0821C11.0468 11.1171 11.0052 11.1447 10.9594 11.1634C10.9136 11.1821 10.8645 11.1915 10.815 11.191C10.7655 11.1905 10.7167 11.1801 10.6712 11.1605C10.6258 11.1409 10.5848 11.1124 10.5505 11.0767L10.5496 11.0757L7.68817 8.21429ZM7.43625 7.35711L7.43682 7.35789L7.44469 7.34971C8.03496 6.73571 8.39896 5.90202 8.39896 4.97943C8.39896 3.08554 6.87305 1.55962 4.97917 1.55962C3.08528 1.55962 1.55937 3.08554 1.55937 4.97943C1.55937 6.87332 3.08528 8.39924 4.97917 8.39924C5.90175 8.39924 6.73544 8.03524 7.34944 7.44496L7.35011 7.44566L7.35683 7.43652C7.37913 7.40618 7.40591 7.37941 7.43625 7.35711Z",fill:"#20232B",stroke:"white",strokeWidth:.13125})}),yt=()=>jsxs("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":true,focusable:"false",children:[jsx("rect",{width:"13",height:"13",rx:"6.5",fill:"#F2F2F2"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.69808 4.16259C8.78018 4.16065 8.86095 4.18356 8.92981 4.22833C8.99866 4.27309 9.05239 4.33762 9.08393 4.41344C9.11548 4.48927 9.12338 4.57286 9.10659 4.65325C9.08981 4.73365 9.04911 4.80708 8.98986 4.86395L7.07755 6.77626L8.98839 8.68713L8.98986 8.68854C9.02896 8.72608 9.06018 8.77105 9.08169 8.82081C9.1032 8.87057 9.11456 8.92413 9.11511 8.97833C9.11566 9.03254 9.10539 9.08631 9.0849 9.1365C9.06441 9.18669 9.03411 9.23229 8.99578 9.27062C8.95745 9.30895 8.91185 9.33925 8.86166 9.35974C8.81147 9.38023 8.7577 9.3905 8.70349 9.38995C8.64928 9.3894 8.59573 9.37804 8.54597 9.35653C8.49621 9.33502 8.45125 9.30379 8.41371 9.26469L6.50141 7.35239L4.59054 9.26323L4.58913 9.2647C4.55159 9.30381 4.50662 9.33502 4.45685 9.35653C4.40709 9.37804 4.35354 9.3894 4.29933 9.38995C4.24513 9.3905 4.19135 9.38023 4.14116 9.35974C4.09098 9.33925 4.04538 9.30895 4.00705 9.27062C3.96872 9.23229 3.93842 9.18669 3.91793 9.1365C3.89744 9.08631 3.88717 9.03254 3.88772 8.97833C3.88827 8.92413 3.89963 8.87057 3.92114 8.82081C3.94264 8.77105 3.97388 8.7261 4.01298 8.68855L5.92528 6.77626L4.01443 4.86539L4.01339 4.86438C3.95522 4.80788 3.91524 4.73531 3.89855 4.65596C3.88186 4.5766 3.88923 4.49407 3.91971 4.41893C3.95019 4.34379 4.00239 4.27945 4.06964 4.23414C4.13689 4.18884 4.21615 4.16462 4.29722 4.1646C4.30093 4.1646 4.30464 4.16465 4.30835 4.16475C4.35906 4.16614 4.4091 4.17699 4.45589 4.19678C4.5061 4.21801 4.55154 4.24911 4.58952 4.28822L6.50141 6.20012L8.41228 4.28928L8.4137 4.2878C8.43812 4.26236 8.4655 4.24043 8.49507 4.22235C8.55578 4.18521 8.62571 4.1643 8.69808 4.16259Z",fill:"#8D8D94"})]});var Mn=()=>{let[e,t]=useState(null),n=useRef(null),l=useCallback(()=>{n.current!==null&&(window.clearTimeout(n.current),n.current=null);},[]),o=useCallback(s=>{l(),t(s);},[l]),u=useCallback(s=>{l(),t(d=>s===void 0||d===s?null:d);},[l]),c=useCallback((s,d,C,i)=>{mt(d,C,i)||(l(),n.current=window.setTimeout(()=>{n.current=null,t(r=>r===s?null:r);},Ze));},[l]);return useEffect(()=>l,[l]),{openId:e,open:o,close:u,scheduleClose:c,cancelClose:l}},bt=Mn;var Ct=styled(G)({display:"flex",flexDirection:"column",maxWidth:340}),Ae={flexShrink:0},wt=styled(G)(({theme:e})=>({...Ae,...e.v2.typography.textVariants.body.small.medium,display:"flex",alignItems:"center",minHeight:36,padding:`0 ${e.v2.spacing(8)}`,color:e.v2.palette.grey[500],cursor:"default"})),Nt=styled(G)(({theme:e})=>({...Ae,...e.v2.typography.textVariants.body.small.medium,display:"flex",alignItems:"center",minHeight:36,padding:`0 ${e.v2.spacing(8)}`,color:e.v2.palette.grey[500],cursor:"default"})),kt=styled(G)(({theme:e})=>({...Ae,padding:e.v2.spacing(8)})),It=styled(G)({display:"flex",flexDirection:"column",maxHeight:fe,overflowY:"auto",overscrollBehavior:"contain"}),re=styled(G)(({theme:e})=>({...e.v2.typography.textVariants.body.small.medium,fontSize:10,display:"flex",alignItems:"center",justifyContent:"center",minHeight:36,padding:`${e.v2.spacing(4)} ${e.v2.spacing(12)}`,color:alpha(e.v2.palette.base.black,.4),cursor:"default",textAlign:"center"})),Et=styled(V)(({theme:e})=>{let{brand:t,base:n}=e.v2.palette,l={boxShadow:e.v2.elevation[200],zIndex:1};return {minWidth:120,minHeight:36,maxHeight:36,paddingTop:0,paddingBottom:0,textTransform:"none",backgroundColor:n.white,outline:"none","&:hover":l,[`&.${a.itemOpen}`]:l,[`&.${a.itemActive}`]:l,"&:focus-visible":{boxShadow:`inset 0 0 0 1px ${t[500]}, ${e.v2.elevation[200]}`,zIndex:1},[`&.${a.itemAction}`]:{color:t[500]}}}),Tt=styled("span")({display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,"& img, & svg":{display:"block",maxWidth:20,maxHeight:20}}),De=styled(G)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(8),flex:1,minWidth:0})),Rt=styled(G)({display:"flex",flexDirection:"column",flex:1,minWidth:0}),At={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Dt=styled("span")(({theme:e})=>({...e.v2.typography.textVariants.body.small.regular,...At,lineHeight:"normal",color:"inherit"})),Pt=styled("span")(({theme:e})=>({...e.v2.typography.textVariants.caption.regular,...At,fontSize:8,lineHeight:"normal",color:alpha(e.v2.palette.base.black,.5)})),Ht=styled("span",{shouldForwardProp:e=>e!=="$isOneDigit"})(({theme:e,$isOneDigit:t=true})=>({...e.v2.typography.textVariants.caption.semibold,fontSize:8,fontWeight:700,lineHeight:"10px",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,height:14,boxSizing:"border-box",...t?{width:13,borderRadius:"50%"}:{padding:`0 ${e.v2.spacing(3)}`,borderRadius:e.v2.radius(4)},backgroundColor:e.v2.palette.grey[100],color:e.v2.palette.grey[900]})),$t=styled("span")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(4),flexShrink:0})),Bt=styled("span")({display:"flex",alignItems:"center",flexShrink:0}),Ot=styled("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",width:8,flexShrink:0,color:e.v2.palette.grey[900],transition:"transform 120ms ease",[`.${a.itemFlipped} &`]:{transform:"rotate(180deg)"}})),Ft=styled(f)({padding:0,paddingRight:"4px",width:"14px !important",".MuiSvgIcon-root, svg":{width:"12px !important",height:"12px !important"}}),Kt=styled(l)({padding:0}),Pe=styled("button")({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,boxSizing:"border-box",width:16,height:16,padding:0,margin:"1px 0 0 8px",border:0,borderRadius:"50%",background:"transparent",cursor:"pointer","&:disabled":{cursor:"default"},"& svg":{display:"block"}});function gn({node:e,depth:t,path:n,isSubmenuOpen:l,isHoverDisabled:o,isTabStop:u,onSubmenuOpen:c,onSubmenuClose:s,onSubmenuScheduleClose:d,onSubmenuCancelClose:C}){let i=Xe(),{selectionMode:r,submenuTrigger:M,checked:p,indeterminate:S,activePath:y,canSelectRow:v,getItemCount:T,renderItem:k}=i,K=useId(),R$1=useRef(null),[H,V]=useState(null),J=useCallback(f=>{R$1.current=f,V(f);},[]),h=useRef(null),[g,D]=useState(false),O=useMemo(()=>dt(R$1,f=>D(f.startsWith("left"))),[]),b=Y(e),W=_(e),A=!!e.isDisabled,I=v(e,t),E=p.has(e.id),z=!E&&S.has(e.id),q=y.has(e.id),w=b&&l&&!A,F=b?T(e):null,j=useRef(i.onSubmenuOpen);j.current=i.onSubmenuOpen,useEffect(()=>{w&&j.current?.(e);},[w]);let U=useCallback(()=>{A||(I&&i.toggle(e,r==="single"?true:!E),b&&(M==="click"||!I)&&(w&&M==="click"?s(e.id):c(e.id)),e.onClick?.(e,n),i.onNodeClick?.(e,n),!b&&i.isClosingOnSelect&&(I||r==="none"||W)&&i.requestClose("select"));},[i,b,W,A,w,I,E,e,s,c,n,r,M]),m=f=>{f.stopPropagation(),U();},$=()=>{M!=="hover"||o||A||!b||c(e.id);},ue=f=>{M!=="hover"||!b||d(e.id,f.relatedTarget,R$1.current,h.current);},le=()=>Re(()=>h.current?.querySelector(`.${a.list}`)??null),se=f=>{if(!(f.target===R$1.current)){w&&(f.key==="ArrowLeft"||f.key==="Escape")&&(f.preventDefault(),f.stopPropagation(),s(e.id),R$1.current?.focus());return}if(f.key==="Enter"||f.key===" "){f.preventDefault(),f.stopPropagation(),U(),b&&!I&&le();return}f.key==="ArrowRight"&&b&&!A&&(f.preventDefault(),f.stopPropagation(),c(e.id),le());},ae={depth:t,path:n,isSelected:E,isIndeterminate:z,isActive:q,isDisabled:A,isSelectable:I,hasOptions:b,isSubmenuOpen:w,isSubmenuFlipped:g,itemCount:F},ee=null;I&&r==="multiple"&&(ee=jsx(Ft,{size:"small",checked:E,indeterminate:z,tabIndex:-1})),I&&r==="single"&&(ee=jsx(Kt,{checked:E,tabIndex:-1}));let Q=null;e.endAdornment!==void 0?Q=e.endAdornment===null?null:jsx(Bt,{className:a.endAdornment,children:e.endAdornment}):(b||W)&&(Q=jsx(Ot,{className:a.chevron,"aria-hidden":true,children:jsx(Lt,{})}));let X="menuitem";return I&&r==="multiple"&&(X="menuitemcheckbox"),I&&r==="single"&&(X="menuitemradio"),jsxs(Et,{ref:J,id:K,role:X,tabIndex:u?0:-1,"aria-checked":I?z?"mixed":E:void 0,"aria-haspopup":b?"menu":void 0,"aria-expanded":b?w:void 0,"aria-disabled":A||void 0,"aria-current":q||void 0,"data-testid":"MultiLevelMenuItem","data-node-id":e.id,[pe]:"",className:nc(a.item,q&&a.itemActive,W&&a.itemAction,w&&a.itemOpen,w&&g&&a.itemFlipped),isSelected:E,isIndeterminate:z,isDisabled:A,startAdornment:ee,onClick:m,onMouseEnter:$,onMouseLeave:ue,onKeyDown:se,children:[k?jsx(De,{className:a.content,children:k(e,ae)}):jsxs(De,{className:a.content,children:[e.startAdornment?jsx(Tt,{className:a.startAdornment,children:e.startAdornment}):null,jsxs(Rt,{children:[jsx(Dt,{className:a.label,title:typeof e.label=="string"?e.label:void 0,children:e.label}),e.hint?jsx(Pt,{className:a.hint,title:typeof e.hint=="string"?e.hint:void 0,children:e.hint}):null]})]}),F&&!k||Q!==null?jsxs($t,{children:[F&&!k?jsx(Ht,{className:a.count,$isOneDigit:F<10,children:F}):null,Q]}):null,b?jsx(R,{ref:h,[me]:"",[Me]:K,open:w&&H!==null,anchorEl:H,placement:"right-start",modifiers:O,popperOptions:Qe,sx:i.submenuSx,panelProps:{role:"menu",className:nc(a.panel,a.submenu,i.className),"data-depth":t+1,"data-level-key":e.submenu?.levelKey},onClick:f=>f.stopPropagation(),onMouseEnter:C,onMouseLeave:f=>d(e.id,f.relatedTarget,R$1.current,h.current),children:jsx(ye,{options:e.options??[],level:e.submenu??{},depth:t+1,path:n})}):null]})}var zt=memo(gn);function bn({options:e,level:t,depth:n$1,path:l}){let{header:o,footer:u,search:c,emptyState:s,isLoading:d,hasMore:C,isLoadingMore:i,onLoadMore:r}=t,M=useRef(null),p=useRef(null),[S,y]=useState(void 0),v$1=useRef(null),[T,k]=useState(false),{openId:K,open:R,close:H,scheduleClose:V,cancelClose:J}=bt(),{inputValue:h,filteredOptions:g,isSearching:D,handleChange:O,handleClear:b}=gt(e,c),W=m=>{m&&!h&&y(p.current?.getBoundingClientRect().width),m||y(void 0),O(m);},A=()=>{y(void 0),b();};useEffect(()=>()=>{v$1.current!==null&&window.clearTimeout(v$1.current);},[]);let I=useCallback(()=>{k(true),H(),v$1.current!==null&&window.clearTimeout(v$1.current),v$1.current=window.setTimeout(()=>{v$1.current=null,k(false);},qe);},[H]),E=m=>{let $=Ye[m.key];$===void 0||!he(M.current).includes(m.target)||(m.preventDefault(),m.stopPropagation(),ge(M.current,m.target,$));},z=m=>{m.key==="ArrowDown"&&(m.preventDefault(),ge(M.current,null,"first"));},q=g.find(m=>!m.isDisabled)?.id,w=g.map(m=>jsx(zt,{node:m,depth:n$1,path:[...l,m],isSubmenuOpen:K===m.id,isHoverDisabled:T,isTabStop:m.id===q,onSubmenuOpen:R,onSubmenuClose:H,onSubmenuScheduleClose:V,onSubmenuCancelClose:J},m.id)),F=!d&&g.length===0&&D,j=null;d?j=jsx(re,{className:a.loader,role:"status","aria-live":"polite",children:jsx(n,{size:14})}):F?j=jsx(re,{className:a.empty,role:"status",children:c?.noResults??Je}):g.length===0&&s&&(j=jsx(re,{className:a.empty,role:"status",children:s}));let U=i?jsx(re,{className:a.loader,role:"status","aria-live":"polite",children:jsx(n,{size:14})}):null;return jsxs(Ct,{ref:p,"data-depth":n$1,sx:S?{minWidth:S}:void 0,children:[o?jsxs(Fragment,{children:[jsx(wt,{className:a.header,children:o}),jsx(v,{flexItem:true})]}):null,c?jsxs(Fragment,{children:[jsx(kt,{className:a.search,children:jsx(L$1,{fullWidth:true,size:"md",placeholder:c.placeholder??Ne,value:h,onChange:m=>W(m.target.value),onKeyDown:z,inputProps:{autoComplete:"off","aria-label":c.placeholder??Ne},endAdornment:h?jsx(Pe,{type:"button",className:a.searchButton,"aria-label":"Clear search",onMouseDown:m=>m.preventDefault(),onClick:m=>{m.stopPropagation(),A();},children:jsx(yt,{})}):jsx(Pe,{type:"button",className:a.searchButton,"aria-label":"Search",tabIndex:-1,disabled:true,children:jsx(St,{})})})}),jsx(v,{flexItem:true})]}):null,j??(r?jsxs(da,{ref:M,className:a.list,loadMoreItems:async()=>r(),hasMore:C,isFetchingNextPage:!!i,onScroll:I,onKeyDown:E,sx:{maxHeight:fe,overflowY:"auto",overscrollBehavior:"contain"},children:[w,U]}):jsxs(It,{ref:M,className:a.list,onScroll:I,onKeyDown:E,children:[w,U]})),u?jsxs(Fragment,{children:[jsx(v,{flexItem:true}),jsx(Nt,{className:a.footer,children:u})]}):null]})}var ye=memo(bn);function En(e,t){let{id:n,options:l,anchorEl:o,open:u,placement:c="bottom-start",onClose:s,selectionMode:d="multiple",isCascading:C=true,isSelectable:i,value:r,defaultValue:M,onChange:p,activeId:S,onNodeClick:y,onSubmenuOpen:v,isClosingOnSelect:T=d!=="multiple",submenuTrigger:k="hover",shouldPromoteSingleChild:K=false,getItemCount:R$1=tt,renderItem:H,className:V,sx:J,submenuSx:h,popperProps:g,header:D,footer:O,search:b,emptyState:W,isLoading:A,hasMore:I,isLoadingMore:E,onLoadMore:z,levelKey:q}=e,w=u??!!o,F=useRef(null),j=pt({options:l,selectionMode:d,isCascading:C,isSelectable:i,value:r,defaultValue:M,onChange:p}),{index:U,canSelectRow:m,snapshot:$,toggle:ue,selectAll:le,clear:se,getSelectedNodes:ae,getSelectedTree:ee}=j,Q=useMemo(()=>({header:D,footer:O,search:b,emptyState:W,isLoading:A,hasMore:I,isLoadingMore:E,onLoadMore:z,levelKey:q}),[D,O,b,W,A,I,E,z,q]),X=useMemo(()=>K?ct(l,Q):{options:l,level:Q},[K,l,Q]),f=useMemo(()=>new Set(ot(U,S).map(B=>B.id)),[U,S]),Ce=useRef(s);Ce.current=s;let oe=useCallback(B=>Ce.current?.(B),[]);useEffect(()=>{if(!w)return;let B=Oe=>{Oe.key==="Escape"&&!Oe.defaultPrevented&&oe("escape");};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[w,oe]),useImperativeHandle(t,()=>({get element(){return F.current},getValue:()=>$.value,getSelectedNodes:ae,getSelectedTree:ee,selectAll:le,clear:se}),[$.value,ae,ee,le,se]);let Ut=useMemo(()=>({selectionMode:d,submenuTrigger:k,isClosingOnSelect:T,checked:$.checked,indeterminate:$.indeterminate,activePath:f,className:V,submenuSx:h,canSelectRow:m,getItemCount:R$1,toggle:ue,requestClose:oe,onNodeClick:y,onSubmenuOpen:v,renderItem:H}),[d,k,T,$.checked,$.indeterminate,f,V,h,m,R$1,ue,oe,y,v,H]),Qt=B=>{w&&(o&&B.target instanceof Node&&o.contains(B.target)||oe("clickAway"));};return jsx(ke.Provider,{value:Ut,children:jsx(In,{onClickAway:Qt,children:jsx(R,{...g,ref:F,id:n,"data-testid":n??"MultiLevelMenu",open:w,anchorEl:o,placement:c,sx:J,onClick:B=>B.stopPropagation(),panelProps:{role:"menu",className:nc(a.root,a.panel,V),"aria-multiselectable":d==="multiple"||void 0,"data-depth":0,"data-level-key":X.level.levelKey},children:jsx(ye,{options:X.options,level:X.level,depth:0,path:[]})})})})}var qt=memo(forwardRef(En));qt.displayName="MultiLevelMenu";var Tn=qt;
2
2
  export{a,Tn as b};
@@ -1 +1 @@
1
- import {j}from'./chunk-6GZFEPN6.js';import {nc}from'./chunk-Z2DUFVI5.js';import {jf}from'./chunk-3M2GZVQW.js';import {forwardRef,memo}from'react';import {styled,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var a="os-shared-ErrorToast",t={root:`${a}-root`,message:`${a}-message`,icon:`${a}-icon`};var i=styled(Box,{shouldForwardProp:o=>o!=="toastPosition"})(({theme:o,toastPosition:r})=>({width:160,position:"absolute",bottom:12,zIndex:1e3,display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:o.v2.palette.background.primary,height:31,gap:o.v2.spacing(8),borderRadius:o.v2.radius(8),borderWidth:1,padding:o.v2.spacing(8),border:`1px solid ${o.v2.palette.border.default}`,boxShadow:"0px 0px 16px 0px #00000014",animation:"slideIn 0.5s ease-out",...r==="bottom-center"&&{left:"50%",transform:"translateX(-50%)"},...r==="bottom-right"&&{right:12,transform:"none"},...r==="bottom-left"&&{left:12,transform:"none"},"@keyframes slideIn":{"0%":{opacity:0,transform:r==="bottom-center"?"translate(-50%, 100%)":r==="bottom-right"?"translateX(100%)":"translateX(-100%)"},"100%":{opacity:1,transform:r==="bottom-center"?"translate(-50%, 0)":"translateX(0)"}}})),l=styled("img")({cursor:"pointer"});var c=forwardRef(({message:o="Something went wrong",onRetry:r,position:f="bottom-center",id:e,className:T,sx:y,...g},x)=>jsxs(i,{ref:x,...g,className:nc(t.root,T),sx:y,id:e,"data-testid":e??"ErrorToast",toastPosition:f,children:[jsx(j,{component:"p",textVariant:"body.small.medium",noWrap:true,className:t.message,children:o}),jsx(l,{className:t.icon,onClick:b=>r?.(b),src:jf,alt:"toast-icon"})]}));c.displayName="ErrorToast";var N=memo(c);export{t as a,N as b};
1
+ import {j}from'./chunk-4NLQZJVN.js';import {nc}from'./chunk-EP5VELEJ.js';import {kf}from'./chunk-XTJZTHR6.js';import {forwardRef,memo}from'react';import {styled,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var a="os-shared-ErrorToast",t={root:`${a}-root`,message:`${a}-message`,icon:`${a}-icon`};var i=styled(Box,{shouldForwardProp:o=>o!=="toastPosition"})(({theme:o,toastPosition:r})=>({width:160,position:"absolute",bottom:12,zIndex:1e3,display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:o.v2.palette.background.primary,height:31,gap:o.v2.spacing(8),borderRadius:o.v2.radius(8),borderWidth:1,padding:o.v2.spacing(8),border:`1px solid ${o.v2.palette.border.default}`,boxShadow:"0px 0px 16px 0px #00000014",animation:"slideIn 0.5s ease-out",...r==="bottom-center"&&{left:"50%",transform:"translateX(-50%)"},...r==="bottom-right"&&{right:12,transform:"none"},...r==="bottom-left"&&{left:12,transform:"none"},"@keyframes slideIn":{"0%":{opacity:0,transform:r==="bottom-center"?"translate(-50%, 100%)":r==="bottom-right"?"translateX(100%)":"translateX(-100%)"},"100%":{opacity:1,transform:r==="bottom-center"?"translate(-50%, 0)":"translateX(0)"}}})),l=styled("img")({cursor:"pointer"});var c=forwardRef(({message:o="Something went wrong",onRetry:r,position:f="bottom-center",id:e,className:T,sx:y,...g},x)=>jsxs(i,{ref:x,...g,className:nc(t.root,T),sx:y,id:e,"data-testid":e??"ErrorToast",toastPosition:f,children:[jsx(j,{component:"p",textVariant:"body.small.medium",noWrap:true,className:t.message,children:o}),jsx(l,{className:t.icon,onClick:b=>r?.(b),src:kf,alt:"toast-icon"})]}));c.displayName="ErrorToast";var N=memo(c);export{t as a,N as b};
@@ -1,2 +1,2 @@
1
- import {nc,Bc,mc,db,ac,Cc,za as za$1}from'./chunk-Z2DUFVI5.js';import {forwardRef,memo,useId,createElement,useState,useCallback,useMemo,Children,useEffect,useRef,useLayoutEffect}from'react';import vo from'@mui/material/Box';import ns,{circularProgressClasses}from'@mui/material/CircularProgress';import os from'@mui/material/ButtonBase';import {styled,alpha,useTheme}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import ro from'@mui/material/SvgIcon';import fs from'@mui/material/Checkbox';import us from'@mui/material/FormControlLabel';import Cs from'@mui/material/Switch';import ks from'@mui/material/Typography';import Rs from'@mui/material/Radio';import Gs from'@mui/material/Tooltip';import tn from'@mui/material/Skeleton';import pn from'@mui/material/Avatar';import gn from'@mui/material/Divider';import Nn from'@mui/material/Collapse';import {createPortal}from'react-dom';import An from'@mui/material/Backdrop';import li,{SliderThumb}from'@mui/material/Slider';import vi,{inputClasses}from'@mui/material/Input';import bi from'@mui/material/FormControl';import Si from'@mui/material/InputLabel';import Fi from'@mui/material/InputBase';import Ei from'@mui/material/Accordion';import Wi from'@mui/material/AccordionDetails';import Hi from'@mui/material/AccordionSummary';import _i from'@mui/material/Popper';import Qi from'@mui/material/Dialog';import el from'@mui/material/DialogActions';import ol from'@mui/material/DialogContent';import tl from'@mui/material/DialogTitle';import {LazyLoadImage}from'react-lazy-load-image-component';import Al from'@mui/material/Stack';var H="os-shared-Button",T={root:`${H}-root`,content:`${H}-content`,startIcon:`${H}-startIcon`,endIcon:`${H}-endIcon`,icon:`${H}-icon`,loading:`${H}-loading`,loadingSpinner:`${H}-loadingSpinner`},Mo={sm:{height:24,paddingY:8,paddingX:16,fontSize:"10px"},md:{height:32,minWidth:79,paddingY:8,paddingX:24,fontSize:"13px",lineHeight:"16px"},lg:{height:40,paddingY:8,paddingX:32,fontSize:"12px"}},Lo={sm:{width:24,minWidth:24,height:24,padding:0},md:{width:32,minWidth:32,height:32,padding:0},lg:{width:38,minWidth:38,height:38,padding:0}},Fo={sm:12,md:12,lg:14};var Ro=styled(os,{shouldForwardProp:e=>e!=="$variant"&&e!=="$size"&&e!=="$fullWidth"&&e!=="$isLoading"&&e!=="$hasIcon"&&e!=="$isIconOnly"})(({theme:e,$variant:o="primary",$size:t="md",$fullWidth:r,$isLoading:a,$hasIcon:s,$isIconOnly:i})=>{let n=e.v2.palette,{paddingX:p,paddingY:d,...c}=Mo[t],f=Lo[t];return {display:"inline-flex",alignItems:"center",justifyContent:"center",gap:e.v2.spacing(6),borderRadius:e.v2.radius(4),lineHeight:"100%",whiteSpace:"nowrap",position:"relative",cursor:a?"not-allowed":"pointer",transition:"background-color 0.15s ease, opacity 0.15s ease",...c,padding:`${e.v2.spacing(d)} ${e.v2.spacing(p)}`,fontWeight:e.typography.fontWeightMedium,...r&&!i&&{width:"100%"},...s&&!r&&!i&&{width:"auto",minWidth:0},...o==="primary"&&{background:n.brand[500],color:n.base.white,"&.Mui-disabled":{opacity:1,background:n.interactive.primary.disabled,color:n.base.white}},...o==="secondary"&&{backgroundColor:n.base.white,color:n.grey[900],border:`1px solid ${n.grey[100]}`,"&.Mui-disabled":{opacity:1,color:n.foreground.disabled}},...o==="ghost"&&{padding:0,minWidth:0,backgroundColor:"transparent",color:n.foreground.brand,"&.Mui-disabled":{opacity:.5}},...o==="danger"&&{backgroundColor:n.status.danger.default,color:n.base.white,"&.Mui-disabled":{opacity:1,backgroundColor:alpha(n.status.danger.default,.14),color:n.base.white}},...i&&{boxSizing:"border-box",...f}}}),de=styled("span")(({theme:e})=>{let o=e.v2.spacing(16);return {display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,width:o,height:o}});var Ao=forwardRef(({children:e,variant:o="primary",size:t="md",isLoading:r=false,startIcon:a,endIcon:s,icon:i,fullWidth:n=false,disabled:p,className:d,sx:c,disableRipple:f=true,...u},y)=>{let m=i!=null;return jsxs(Ro,{ref:y,className:nc(T.root,d),$variant:o,$size:t,$fullWidth:n,$isLoading:r,$hasIcon:m||!!a||!!s||r,$isIconOnly:m,disabled:p||r,disableRipple:f,"data-testid":"Button",sx:c,...u,children:[jsx(vo,{component:"span",className:T.content,sx:{display:"inline-flex",alignItems:"center",gap:"inherit",visibility:r?"hidden":"visible"},children:m?jsx(de,{className:T.icon,children:i}):jsxs(Fragment,{children:[a&&jsx(de,{className:T.startIcon,children:a}),e,s&&jsx(de,{className:T.endIcon,children:s})]})}),r&&jsx(de,{className:T.loading,sx:{position:"absolute"},children:jsx(ns,{className:T.loadingSpinner,size:Fo[t],color:"inherit"})})]})});Ao.displayName="Button";var Eo=memo(Ao);var ls="os-shared-Icon",Ne={root:`${ls}-root`};var Wo=styled("img")(({theme:e})=>({width:e.v2.spacing(16),height:e.v2.spacing(16),verticalAlign:"middle",flexShrink:0}));var Ho=forwardRef(({className:e,sx:o,...t},r)=>jsx(Wo,{className:nc(Ne.root,e),sx:o,"data-testid":"Icon",...t,ref:r}));Ho.displayName="Icon";var Vo=memo(Ho);var to="os-shared-Checkbox",V={root:`${to}-root`,control:`${to}-control`,label:`${to}-label`};var Oo=({disabled:e,...o})=>{let{v2:t}=useTheme(),{brand:r,base:a,foreground:s}=t.palette;return jsxs(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12},...o,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:e?s.disabled:r[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74206C9.04243 3.9443 9.05652 4.28711 8.86537 4.50775L5.64586 8.22387C5.55146 8.33284 5.41909 8.39627 5.27942 8.39948C5.13975 8.40269 5.0049 8.3454 4.90612 8.24088L3.15002 6.38282C2.94999 6.17118 2.94999 5.82804 3.15002 5.61641C3.35004 5.40477 3.67435 5.40477 3.87437 5.61641L5.2522 7.07424L8.11024 3.77535C8.30138 3.55472 8.62538 3.53981 8.83391 3.74206Z",fill:a.white})]})},Zo=({disabled:e,...o})=>{let{v2:t}=useTheme(),{base:r,grey:a}=t.palette;return jsx(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12},...o,children:jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"1.8",fill:e?a[50]:r.white,stroke:e?a[200]:a[500],strokeWidth:"1.2"})})},jo=({disabled:e,...o})=>{let{v2:t}=useTheme(),{brand:r,base:a,foreground:s}=t.palette;return jsxs(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12},...o,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:e?s.disabled:r[500]}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:a.white})]})};var Go=styled(fs)(({theme:e})=>({padding:e.v2.spacing(2),"&:hover":{backgroundColor:"transparent"}})),Ko=styled(us)(({theme:e})=>{let{base:o,grey:t}=e.v2.palette;return {marginLeft:0,gap:e.v2.spacing(4),"& .MuiFormControlLabel-label":{fontSize:"11px",color:o.black},"& .MuiFormControlLabel-label.Mui-disabled":{color:t[500]}}});var Yo=forwardRef(({label:e,labelPlacement:o="end",disabled:t,sx:r,className:a,...s},i)=>{let n=Bc(useId(),"checkbox"),p=jsx(Go,{id:n,ref:i,disableRipple:true,disabled:t,checkedIcon:jsx(Oo,{disabled:t}),icon:jsx(Zo,{disabled:t}),indeterminateIcon:jsx(jo,{disabled:t}),"data-testid":"Checkbox",className:nc(e?V.control:V.root,e?void 0:a),sx:e?void 0:r,...s});return e?jsx(Ko,{className:nc(V.root,a),sx:r,control:p,label:e,labelPlacement:o,disabled:t,componentsProps:{typography:{className:V.label}}}):p});Yo.displayName="Checkbox";var Xo=memo(Yo);var hs="os-shared-Switch",we={root:`${hs}-root`};var qo=styled(Cs)(({theme:e,disabled:o})=>{let{base:t,grey:r,success:a}=e.v2.palette;return {width:28,height:16,padding:0,borderRadius:e.v2.radius(8),opacity:o?.5:1,overflow:"visible","& .MuiSwitch-switchBase":{padding:0,margin:e.v2.spacing(1),color:t.white,transitionDuration:"300ms","&:hover":{backgroundColor:"transparent"},"&.Mui-focusVisible":{outline:`2px solid ${r[400]}`,outlineOffset:2},"&.Mui-checked":{transform:"translateX(12px)",color:t.white,"& + .MuiSwitch-track":{backgroundColor:a[500],opacity:1,border:0}},"&.Mui-disabled":{color:t.white,"& + .MuiSwitch-track":{opacity:1},"& .MuiSwitch-thumb":{filter:"none"}},"&.Mui-checked.Mui-disabled":{color:t.white}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:14,height:14,color:t.white,backgroundColor:t.white,boxShadow:"none",filter:o?"none":"drop-shadow(0px 3px 0.5px rgba(0, 0, 0, 0.04)) drop-shadow(0px 3px 4px rgba(0, 0, 0, 0.12))"},"& .MuiSwitch-track":{borderRadius:e.v2.radius(8),backgroundColor:"#D9D9D9",opacity:1,transition:e.transitions.create(["background-color"],{duration:300})}}});var Jo=forwardRef(({className:e,sx:o,...t},r)=>jsx(qo,{ref:r,className:nc(we.root,e),sx:o,"data-testid":"Switch",disableRipple:true,...t}));Jo.displayName="Switch";var Qo=memo(Jo);var ws="os-shared-Typography",ke={root:`${ws}-root`},Ie="body.default.regular";var Bs=e=>e!=null&&typeof e=="object"&&"fontFamily"in e&&"fontSize"in e&&"fontWeight"in e;function Ts(e,o){try{let t=o.split(".").reduce((r,a)=>{if(r==null||typeof r!="object")throw new TypeError(`Invalid typography textVariant: ${o}`);return r[a]},e);if(!Bs(t))throw new TypeError(`Invalid typography textVariant: ${o}`);return t}catch(t){return console.warn(t),e.body.default.regular}}function $s(e,o,t){return o===void 0?t:typeof o=="number"?o:{light:e.fontWeightLight,regular:e.fontWeightRegular,medium:e.fontWeightMedium,semibold:e.fontWeightBold,bold:e.fontWeightBolder}[o]??t}var et=styled(ks,{shouldForwardProp:e=>e!=="$textVariant"&&e!=="$weight"})(({theme:e,$textVariant:o=Ie,$weight:t})=>{let{base:r}=e.v2.palette,a=Ts(e.v2.typography.textVariants,o);return {color:r.black,...a,fontWeight:$s(e.v2.typography,t,a.fontWeight)}});var ot=forwardRef(({textVariant:e=Ie,variant:o="subtitle2",weight:t,className:r,sx:a,...s},i)=>jsx(et,{ref:i,className:nc(ke.root,r),sx:a,"data-testid":"Typography",...s,variant:o,$textVariant:e,$weight:t}));ot.displayName="Typography";var tt=memo(ot);var Fs="os-shared-RadioButton";var Be={root:`${Fs}-root`};var st=({disabled:e,...o})=>{let{v2:t}=useTheme(),{brand:r,base:a}=t.palette,s=e?"#BDC1CC":r[500];return jsxs(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...o,children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"4.8",fill:s,stroke:s,strokeWidth:"1.2",style:{fill:s,stroke:s}}),jsx("circle",{cx:"6",cy:"6",r:"2.25",fill:a.white,style:{fill:a.white}})]})},nt=({disabled:e,...o})=>{let{v2:t}=useTheme(),{base:r,grey:a}=t.palette,s=e?a[50]:r.white,i=e?a[200]:a[500];return jsx(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...o,children:jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"4.8",fill:s,stroke:i,strokeWidth:"1.2",style:{fill:s,stroke:i}})})};var it=styled(Rs)(({theme:e})=>({padding:e.v2.spacing(2),"&:hover":{backgroundColor:"transparent"},"& .MuiSvgIcon-root":{fontSize:12,width:12,height:12}}));var lt=forwardRef(({disabled:e,sx:o,className:t,...r},a)=>jsx(it,{ref:a,disableRipple:true,disabled:e,checkedIcon:jsx(st,{disabled:e}),icon:jsx(nt,{disabled:e}),"data-testid":"RadioButton",className:nc(Be.root,t),sx:o,...r}));lt.displayName="RadioButton";var pt=memo(lt);var $e="os-shared-CircularProgress",O={root:`${$e}-root`,progress:`${$e}-progress`,labelOverlay:`${$e}-labelOverlay`,labelText:`${$e}-labelText`};var ct=styled(ns)(({theme:e})=>{let{brand:o}=e.v2.palette;return {color:"#147DC5",background:alpha(o[500],.05),borderRadius:"50%",[`& .${circularProgressClasses.circle}`]:{strokeLinecap:"round"}}}),mt=styled(vo)(()=>({position:"relative",display:"inline-flex"})),ft=styled(vo)(()=>({top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"})),ut=styled(ks)(({theme:e})=>({fontSize:e.typography.fontSize,fontWeight:e.typography.fontWeightBolder??700,color:"#3B4152"}));var yt=forwardRef(({variant:e="indeterminate",hasLabel:o=true,value:t,className:r,sx:a,...s},i)=>{let n=e==="determinate"&&o;return jsxs(mt,{className:nc(O.root,r),sx:a,"data-testid":"CircularProgress",children:[jsx(ct,{ref:i,variant:e,value:t,className:O.progress,...s}),n&&jsx(ft,{className:O.labelOverlay,children:jsx(ut,{className:O.labelText,variant:"caption",color:"text.secondary",children:`${Math.round(t??0)}%`})})]})});yt.displayName="CircularProgress";var gt=memo(yt);var Z="os-shared-Tooltip",w={popper:`${Z}-popper`,tooltip:`${Z}-tooltip`,arrow:`${Z}-arrow`,content:`${Z}-content`,title:`${Z}-title`,supportingText:`${Z}-supportingText`,wrapper:`${Z}-wrapper`};var xt=styled(({className:e,...o})=>createElement(Gs,{...o,classes:{popper:nc(w.popper,e),tooltip:w.tooltip,arrow:w.arrow}}))(({theme:e})=>{let{base:o,grey:t}=e.v2.palette,r=o.white,a="var(--tooltip-border-width) solid var(--tooltip-border-color)";return {"--tooltip-border-color":"#3C373721","--tooltip-border-width":"1px",zIndex:999999,[`& .${w.arrow}`]:{color:r,"&:before":{backgroundColor:r,boxSizing:"border-box",border:a}},[`& .${w.tooltip}`]:{backgroundColor:r,color:t[700],boxShadow:e.v2.elevation[200],fontSize:12,fontWeight:400,lineHeight:1.2,padding:e.v2.spacing(6),borderRadius:e.v2.radius(8),border:a,maxWidth:320,wordBreak:"break-word"}}}),ht=styled("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",gap:e.v2.spacing(6),maxWidth:296,width:"100%"})),Ct=styled("div",{shouldForwardProp:e=>e!=="$hasSupportingText"})(({theme:e,$hasSupportingText:o})=>{let{grey:t}=e.v2.palette;return {margin:0,fontSize:12,fontWeight:o?600:400,lineHeight:o?1:1.2,color:o?t[700]:alpha(t[700],.77),width:o?"100%":void 0}}),bt=styled("div")(({theme:e})=>{let{grey:o}=e.v2.palette;return {margin:0,fontSize:11,fontWeight:400,lineHeight:"normal",color:o[500],width:"100%",whiteSpace:"pre-wrap"}});function qs(e){return e!=null&&e!==false&&e!==""}function Js(e){return !!e||e===0}function Qs(e,o){let t=qs(o);if(!Js(e)&&!t)return null;let r=jsx(Ct,{className:w.title,$hasSupportingText:t,children:e});return t?jsxs(ht,{className:w.content,children:[r,jsx(bt,{className:w.supportingText,children:o})]}):r}function St({className:e,title:o,supportingText:t,placement:r="top",children:a,wrapperProps:s,sx:i,...n}){let{className:p,...d}=s??{};return jsx(xt,{className:e,title:Qs(o,t),placement:r,arrow:true,sx:i,...n,children:jsx(vo,{display:"flex",alignItems:"center","data-testid":"Tooltip",className:nc(w.wrapper,p),...d,children:a})})}St.displayName="Tooltip";var vt=memo(St);var on="os-shared-Skeleton",Fe={root:`${on}-root`};var Nt=styled(tn)(()=>({}));var wt=forwardRef(({className:e,sx:o,variant:t="rounded",...r},a)=>jsx(Nt,{ref:a,className:nc(Fe.root,e),sx:mc({height:16},o),"data-testid":"Skeleton",variant:t,...r}));wt.displayName="Skeleton";var kt=memo(wt);var ln="os-shared-Avatar",ze={root:`${ln}-root`},Re="xs",De="teal",It={teal:{from:"#31D5C8",to:"#1186C5"},green:{from:"#A2E9BD",to:"#44BB74"},cyan:{from:"#6BF6EB",to:"#32D6C9"},steel:{from:"#61AFC9",to:"#7FBFD4"},sage:{from:"#9DB7A4",to:"#7FBFD4"},gold:{from:"#D7B38C",to:"#FFE09F"},lime:{from:"#ADD6A2",to:"#FFDDB2"}},Bt={xs:{dimension:24,fontSize:"9px"},sm:{dimension:32,fontSize:"12px"},md:{dimension:40,fontSize:"15px"},lg:{dimension:48,fontSize:"17px"},xl:{dimension:56,fontSize:"20px"}};function cn(e){let{from:o,to:t}=It[e];return `linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%), linear-gradient(135deg, ${o} 0%, ${t} 100%)`}var Tt=styled(pn,{shouldForwardProp:e=>!["$size","$color"].includes(e)})(({theme:e,$size:o=Re,$color:t=De})=>{let{dimension:r,fontSize:a}=Bt[o],{base:s}=e.v2.palette,i=cn(t);return {width:r,height:r,flexShrink:0,fontSize:a,fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:s.white,background:i,backgroundColor:"transparent","&.MuiAvatar-colorDefault":{color:s.white,background:i,backgroundColor:"transparent"}}});var $t=forwardRef(({className:e,sx:o,size:t=Re,color:r=De,...a},s)=>jsx(Tt,{ref:s,className:nc(ze.root,e),sx:o,"data-testid":"Avatar",...a,$size:t,$color:r,variant:"circular"}));$t.displayName="Avatar";var Pt=memo($t);var yn="os-shared-Divider",Ae={root:`${yn}-root`};function hn(e,o){let{grey:t,border:r}=o.v2.palette;return e==="subtle"?r.subtle:t[100]}var Mt=styled(gn,{shouldForwardProp:e=>e!=="$type"})(({theme:e,$type:o="default",orientation:t="horizontal"})=>({borderColor:hn(o,e),...t==="vertical"?{borderBottomWidth:0,borderRightWidth:1}:{borderBottomWidth:1}}));var Lt=forwardRef(({className:e,sx:o,orientation:t="horizontal",type:r="default",...a},s)=>jsx(Mt,{ref:s,className:nc(Ae.root,e),sx:o,"data-testid":"Divider",orientation:t,$type:r,...a}));Lt.displayName="Divider";var Ft=memo(Lt);var vn="os-shared-Collapse",Ee={root:`${vn}-root`};var zt=styled(Nn)(()=>({}));var Rt=forwardRef(({className:e,sx:o,children:t,unmountOnExit:r=true,timeout:a=300,...s},i)=>jsx(zt,{ref:i,className:nc(Ee.root,e),sx:o,"data-testid":"Collapse",unmountOnExit:r,timeout:a,...s,children:t}));Rt.displayName="Collapse";var Dt=memo(Rt);var Tn="os-shared-Badge",We={root:`${Tn}-root`},He="default",At={default:"#29b6f6",primary:"#1976d2",secondary:"#f50057",neutral:"#656565",gray:"#CFCFCF",orange:"#FFD503"};function Mn(e,o){let{base:t,grey:r,brand:a,success:s,warning:i,error:n,gradient:p}=o.v2.palette;if(e==="highlight")return p.brand;let d=At[e];return d||({inactive:r[100],active:alpha(t.black,.1),dark:a[500],red:n[500],success:s[500],warning:i[500],error:n[500]}[e]??t.white)}function Ln(e,o){let{base:t}=o.v2.palette;return e==="inactive"?t.black:(t.white)}var Wt=styled("span",{shouldForwardProp:e=>!["$color","$compact","$round","$pointer"].includes(e)})(({theme:e,$color:o=He,$compact:t,$round:r,$pointer:a})=>{let s=Mn(o,e);return {paddingBlock:e.v2.spacing(2),paddingInline:t?"0.16056rem":r?"0.275rem":e.v2.spacing(4),borderRadius:t?e.v2.radius(4):r?e.v2.radius(16):e.v2.radius(48),background:s,color:Ln(o,e),fontSize:"8px",fontWeight:700,lineHeight:"10px",letterSpacing:0,overflow:"hidden",height:t?"12px":r?"16px":void 0,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",cursor:a?"pointer":"auto"}});var Ht=forwardRef(({className:e,sx:o,color:t,state:r,compact:a,round:s,pointer:i,children:n,...p},d)=>{let c=t??r??He;return jsx(Wt,{ref:d,className:nc(We.root,e),sx:o,"data-testid":"Badge",...p,$color:c,$compact:a,$round:s,$pointer:i,children:n})});Ht.displayName="Badge";var Vt=memo(Ht);var Dn="os-shared-Backdrop",Ve={root:`${Dn}-root`};var Ot=styled(An,{shouldForwardProp:e=>e!=="$hasBlur"})(({theme:e,$hasBlur:o=false,invisible:t=true})=>{let r=o&&!t?e.v2.blur[6]:"none";return {zIndex:t?999:1,backgroundColor:t?"transparent":alpha("#000",.3),backdropFilter:r,WebkitBackdropFilter:r}});var Zt=forwardRef(({className:e,sx:o,open:t=true,invisible:r=true,hasBlur:a=false,onClose:s,onClick:i,...n},p)=>{if(!t)return null;let d=c=>{s?.(),i?.(c);};return createPortal(jsx(Ot,{open:t,invisible:r,$hasBlur:a,ref:p,className:nc(Ve.root,e),sx:o,"data-testid":"Backdrop",onClick:d,...n}),document.body)});Zt.displayName="Backdrop";var jt=memo(Zt);var Oe="os-shared-CopyButton",R={root:`${Oe}-root`,icon:`${Oe}-icon`,copyIcon:`${Oe}-copyIcon`,copiedIcon:`${Oe}-copiedIcon`};var Gt=e=>{let{v2:o}=useTheme(),{base:t}=o.palette;return jsx(ro,{sx:{height:12.6,width:13},...e,children:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"13",viewBox:"2.67 1.67 10.66 12.66",fill:"none",children:jsx("path",{d:"M11.3333 13.6978L11.3332 13.6979C11.1002 14.0479 10.7072 14.2582 10.2863 14.2582H5.83317C4.12559 14.2582 2.7415 12.8741 2.7415 11.1665V4.71338C2.7415 4.29279 2.95172 3.89983 3.30186 3.66641L3.5915 3.47331V11.1665C3.5915 12.4046 4.59508 13.4082 5.83317 13.4082H11.5264L11.3333 13.6978ZM4.40817 3.49984C4.40817 2.53467 5.20133 1.7415 6.1665 1.7415H11.4998C12.465 1.7415 13.2582 2.53467 13.2582 3.49984V10.8332C13.2582 11.7983 12.465 12.5915 11.4998 12.5915H6.1665C5.20133 12.5915 4.40817 11.7983 4.40817 10.8332V3.49984ZM11.4998 2.5915H6.1665C5.65901 2.5915 5.25817 2.99234 5.25817 3.49984V10.8332C5.25817 11.3407 5.65901 11.7415 6.1665 11.7415H11.4998C12.0073 11.7415 12.4082 11.3407 12.4082 10.8332V3.49984C12.4082 2.99234 12.0073 2.5915 11.4998 2.5915Z",fill:t.black,stroke:t.white,strokeWidth:"0.15"})})})},Kt=e=>{let{v2:o}=useTheme(),{success:t,base:r}=o.palette;return jsx(ro,{sx:{height:12.6,width:13},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:t[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};var Xt=styled("span")({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:16,height:16,flexShrink:0,cursor:"pointer",verticalAlign:"middle"}),io=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:"opacity 200ms ease"}));var qt=forwardRef(({className:e,sx:o,text:t,feedbackMs:r=2e3,icon:a=jsx(Gt,{}),onClick:s,...i},n)=>{let[p,d]=useState(false),c=f=>{f.stopPropagation(),db(t),d(true),setTimeout(()=>d(false),r),s?.(f);};return jsxs(Xt,{ref:n,className:nc(R.root,e),sx:o,role:"button",tabIndex:0,"data-testid":"CopyButton",onClick:c,...i,children:[jsx(io,{className:nc(R.icon,R.copyIcon),$visible:!p,children:a}),jsx(io,{className:nc(R.icon,R.copiedIcon),$visible:p,children:jsx(Kt,{})})]})});qt.displayName="CopyButton";var Jt=memo(qt);var lo="os-shared-ProgressBar",Q={root:`${lo}-root`,fill:`${lo}-fill`,text:`${lo}-text`};var er=styled(vo,{shouldForwardProp:e=>!["$value","$isDecimal"].includes(e)})(({theme:e,$value:o,$isDecimal:t})=>{let{base:r}=e.v2.palette;return {width:`${o}%`,minWidth:o>=10?"28px":"24px",height:"18px",borderRadius:e.v2.radius(50),background:"linear-gradient(256deg, #147DC5 0%, #3DA6E1 100%)",display:"flex",alignItems:"center",justifyContent:o>10?"flex-end":"center",paddingInlineEnd:o>10?e.v2.spacing(2):e.v2.spacing(0),...o===0&&{background:alpha(r.black,26/255)},...t&&{minWidth:o>=10?"40px":"36px"}}}),or=styled(vo,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:o})=>{let{base:t}=e.v2.palette;return {height:"14px",maxWidth:"36px",minWidth:"20px",background:alpha(t.black,26/255),borderRadius:e.v2.radius(50),display:"flex",alignItems:"center",justifyContent:"center",padding:0,...o===0&&{background:alpha(t.black,0)}}}),tr=styled(ks,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:o})=>{let{base:t,grey:r}=e.v2.palette;return {fontSize:"8px",fontWeight:e.typography.fontWeightBolder??700,color:t.white,padding:`${e.v2.spacing(2)} ${e.v2.spacing(4)}`,...o===0&&{color:alpha(r[500],.5)}}});var ar=forwardRef(({className:e,sx:o,value:t},r)=>{let a=!Number.isInteger(t);return jsx(er,{ref:r,className:nc(Q.root,e),sx:o,"data-testid":"ProgressBar",$value:t,$isDecimal:a,children:jsx(or,{className:Q.fill,$value:t,children:jsxs(tr,{className:Q.text,$value:t,variant:"caption",children:[Number(t.toFixed(2)),"%"]})})})});ar.displayName="ProgressBar";var sr=memo(ar);var Ue="os-shared-Chip",$={root:`${Ue}-root`,text:`${Ue}-text`,copyButton:`${Ue}-copyButton`,icon:`${Ue}-icon`},nr={text:{height:24,paddingBlock:4,paddingInline:8,borderRadius:48},circular:{height:24,width:24,padding:4,borderRadius:12},"pill-icon":{height:24,width:36,paddingBlock:4,paddingInline:6,borderRadius:12}};var pr=e=>{let{v2:o}=useTheme(),{base:t}=o.palette;return jsx(ro,{sx:{height:"10px"},...e,children:jsx("svg",{width:"11",height:"13",viewBox:"0 0 11 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.924805 9.5C0.924805 10.7381 1.9289 11.7412 3.16699 11.7412H8.86035L8.66699 12.0312C8.43398 12.3812 8.04094 12.5917 7.62012 12.5918H3.16699C1.45941 12.5918 0.0751953 11.2076 0.0751953 9.5V3.04688C0.0751953 2.62628 0.28561 2.23342 0.635742 2L0.924805 1.80664V9.5ZM3.5 0.0751953H8.83301C9.79807 0.0751953 10.5916 0.867985 10.5918 1.83301V9.16699C10.5916 10.132 9.79807 10.9248 8.83301 10.9248H3.5C2.53494 10.9248 1.74139 10.132 1.74121 9.16699V1.83301C1.74139 0.867985 2.53494 0.0751953 3.5 0.0751953ZM3.5 0.924805C2.99261 0.924805 2.59197 1.32567 2.5918 1.83301V9.16699C2.59197 9.67433 2.99261 10.0752 3.5 10.0752H8.83301C9.3404 10.0752 9.74104 9.67433 9.74121 9.16699V1.83301C9.74104 1.32567 9.3404 0.924805 8.83301 0.924805H3.5Z",fill:t.black,stroke:t.white,strokeWidth:"0.15"})})})},dr=e=>{let{v2:o}=useTheme(),{success:t,base:r}=o.palette;return jsx(ro,{sx:{height:"10px"},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:t[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};function ei(e,o){let t=nr[e];return {height:t.height,..."width"in t&&{width:t.width,minWidth:t.width},..."padding"in t&&{padding:o.v2.spacing(t.padding)},..."paddingBlock"in t&&{paddingBlock:o.v2.spacing(t.paddingBlock)},..."paddingInline"in t&&{paddingInline:o.v2.spacing(t.paddingInline)},borderRadius:o.v2.radius(t.borderRadius)}}var mr=styled(vo,{shouldForwardProp:e=>!["$variant","$hasIcon","$hasCopy","$isSelected","$disableAnimation"].includes(e)})(({theme:e,$variant:o="text",$hasIcon:t,$hasCopy:r,$isSelected:a,$disableAnimation:s})=>{let{grey:i,base:n}=e.v2.palette;return {display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,boxSizing:"border-box",lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",fontSize:11,fontWeight:e.typography.fontWeightRegular,color:n.black,border:`1px solid ${i[100]}`,backgroundColor:n.white,...ei(o,e),...o==="text"&&t&&{gap:e.v2.spacing(6),paddingInlineStart:e.v2.spacing(5),paddingInlineEnd:e.v2.spacing(8)},...r&&{gap:e.v2.spacing(4)},[`& .${$.icon}`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:14,height:14,overflow:"hidden","& img, & svg":{width:14,height:14,display:"block"}},...a&&{boxShadow:`${n.white} 7px 0px 8px 2px`},...s&&{transition:"none !important",animation:"none !important",transform:"none !important","& *":{transition:"none !important",animation:"none !important",transform:"none !important"}}}}),co=styled(vo)({textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"0 1 auto"}),fr=styled("span",{shouldForwardProp:e=>e!=="$copied"})(({$copied:e})=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:12,height:12,flexShrink:0,cursor:"pointer",opacity:e?1:.6,transition:"opacity 150ms ease","&:hover":{opacity:1}})),mo=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:"opacity 150ms ease"}));var yr=forwardRef(({className:e,sx:o,children:t,icon:r,variant:a="text",disabled:s=false,isSelected:i=false,copyText:n,unknownText:p="Unknown",disableAnimation:d=false,...c},f)=>{let[u,y]=useState(false),m=!!(t&&n),h=r!=null&&!m,g=useCallback(b=>{b.stopPropagation(),n&&(db(n),y(true),setTimeout(()=>y(false),2e3));},[n]),k=useMemo(()=>h?jsx("span",{className:$.icon,children:r}):null,[h,r]),M=useMemo(()=>{if(t){let b=m&&typeof t=="string"?ac(t):void 0;return jsx(co,{className:$.text,"data-is-arabic":b,children:t})}return h?null:jsx(co,{className:$.text,children:p})},[t,m,h,p]),L=useMemo(()=>m?jsxs(fr,{className:$.copyButton,role:"button",tabIndex:0,"aria-label":u?"copied":"copy","data-testid":"ChipCopyButton",$copied:u,onClick:g,children:[jsx(mo,{$visible:!u,children:jsx(pr,{})}),jsx(mo,{$visible:u,children:jsx(dr,{})})]}):null,[m,u,g]);return jsxs(mr,{ref:f,"data-testid":"Chip",className:nc($.root,e,`CustomVariant_${a}`),sx:mc(s?{cursor:"not-allowed",opacity:.5}:{},o),$variant:a,$hasIcon:h,$hasCopy:m,$isSelected:i,$disableAnimation:d,...c,children:[k,M,L]})});yr.displayName="Chip";var gr=memo(yr);var uo="os-shared-Slider",D={root:`${uo}-root`,thumb:`${uo}-thumb`,thumbIcon:`${uo}-thumbIcon`};var xr=e=>{let{v2:o}=useTheme(),{grey:t}=o.palette;return jsx(ro,{sx:{width:"5px",height:"8px",pointerEvents:"none"},...e,children:jsxs("svg",{width:"5",height:"8",viewBox:"0 0 5 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M0.459961 0.460449L0.459961 6.59897",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M2.44531 0.460388L2.44531 6.59891",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M4.4375 0.460388L4.4375 6.59891",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"})]})})};var hr=styled(li)(({theme:e})=>{let{brand:o,base:t}=e.v2.palette,r=["0px 0px 1.25px 0px rgba(0, 0, 0, 0.1)","0px 1.25px 1.25px 0px rgba(0, 0, 0, 0.09)","0px 3.75px 2.5px 0px rgba(0, 0, 0, 0.05)","0px 7.5px 2.5px 0px rgba(0, 0, 0, 0.01)","0px 11.25px 3.75px 0px rgba(0, 0, 0, 0)"].join(", ");return {color:o[500],height:8,padding:0,"& .MuiSlider-rail":{backgroundColor:"#CFCFCF",opacity:1,left:0},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:t.white,border:"none",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:r,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:r}},[`& .${D.thumbIcon}`]:{width:"5px",height:"8px",pointerEvents:"none"}}});function ui({children:e,className:o,...t}){return jsxs(SliderThumb,{className:nc(D.thumb,o),...t,children:[e,jsx(xr,{className:D.thumbIcon})]})}var Cr=forwardRef(({className:e,sx:o,value:t,min:r,max:a,step:s,disabled:i,onChange:n,slots:p,...d},c)=>{let f=useCallback((u,y)=>{n(y);},[n]);return jsx(hr,{ref:c,className:nc(D.root,e),sx:o,"data-testid":"Slider",value:t,min:r,max:a,step:s,disabled:i,onChange:f,...d,slots:{thumb:ui,...p}})});Cr.displayName="Slider";var br=memo(Cr);var B="os-shared-Input",x={root:`${B}-root`,label:`${B}-label`,input:`${B}-input`,loadingIcon:`${B}-loadingIcon`,validatedIcon:`${B}-validatedIcon`,hasLabel:`${B}-hasLabel`,sizeSm:`${B}-sizeSm`,sizeMd:`${B}-sizeMd`,disableFocusRing:`${B}-disableFocusRing`,hideArrows:`${B}-hideArrows`,hasTrailingIcon:`${B}-hasTrailingIcon`},F={sm:28,md:32,labelled:40};var Nr=e=>{let{v2:o}=useTheme(),{success:t}=o.palette;return jsx(ro,{viewBox:"0 0 10 8",sx:{width:10,height:8},...e,children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:t[700]})})};var wr=styled(vi)(({theme:e,endAdornment:o})=>{let{base:t,grey:r}=e.v2.palette,a=!!o;return {height:F.md,padding:`0 ${e.v2.spacing(6)}`,paddingLeft:e.v2.spacing(8),...!a&&{paddingRight:e.v2.spacing(12)},border:"none",borderRadius:"inherit",fontSize:"11px",lineHeight:"1.3em",fontWeight:e.v2.typography.fontWeightMedium,color:t.black,backgroundColor:"transparent",display:"flex",alignItems:"center",minWidth:0,"&.Mui-disabled":{color:alpha(t.black,.6)},"& input":{padding:0,minWidth:0,width:"100%",display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& input::placeholder":{color:r[500],fontWeight:e.v2.typography.fontWeightRegular,opacity:1},"& input:-webkit-autofill, & input:-webkit-autofill:hover, & input:-webkit-autofill:focus":{WebkitTextFillColor:t.black,caretColor:t.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},[`&:where(.${x.sizeSm})`]:{height:F.sm},[`&:where(.${x.sizeMd})`]:{height:F.md},[`&:where(.${x.hasTrailingIcon})`]:{paddingRight:e.v2.spacing(28)},[`&:where(.${x.hasLabel})`]:{height:F.labelled,padding:e.v2.spacing(6),paddingLeft:e.v2.spacing(8),paddingTop:e.v2.spacing(18),alignItems:"stretch",marginTop:0,"& input":{margin:"0px !important",padding:"0px !important",lineHeight:"130%"},"& input:focus::placeholder":{opacity:"1 !important"}},[`&:where(.${x.hideArrows})`]:{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}}}),kr=styled(Si)(({theme:e})=>{let{grey:o}=e.v2.palette;return {fontSize:"10px",lineHeight:"1em",color:`${o[500]} !important`,"&.Mui-disabled":{opacity:.7}}}),Ir=styled(ns)(({theme:e})=>({position:"absolute",top:"30%",right:e.v2.spacing(8),color:e.v2.palette.grey[500]})),Br=styled(vo)(({theme:e})=>({position:"absolute",top:"50%",right:e.v2.spacing(8),transform:"translateY(-50%)",display:"flex",alignItems:"center",justifyContent:"center"})),Ni=`&:focus-within:where(:not(.${x.disableFocusRing})), &:where(.Mui-focused):where(:not(.${x.disableFocusRing}))`,wi="&:where(.Mui-warning):focus-within, &:where(.Mui-warning):where(.Mui-focused)",ki="&:where(.Mui-error):focus-within, &:where(.Mui-error):where(.Mui-focused)",Tr=styled(bi)(({theme:e,disabled:o,fullWidth:t})=>{let{grey:r,base:a,brand:s,error:i,warning:n}=e.v2.palette;return {position:"relative",display:"flex",flexDirection:"column",width:t?"100%":"auto",height:F.md,margin:0,border:`1px solid ${o?"#FAFBFB":r[100]}`,borderRadius:e.v2.radius(4),...o&&{backgroundColor:"#FAFBFB"},transition:"border-color 0.15s ease, box-shadow 0.15s ease",[`&:where(.${x.sizeSm})`]:{height:F.sm},[`&:where(.${x.sizeMd})`]:{height:F.md},[`&:where(.${x.hasLabel})`]:{height:F.labelled},"&:where(.Mui-warning)":{borderColor:alpha(n[500],.15)},"&:where(.Mui-error)":{borderColor:alpha(i[500],.15)},"&:where(.Mui-disabled)":{borderColor:"#FAFBFB"},[Ni]:{borderColor:s[500],boxShadow:`0px 0px 4px 0px ${alpha(s[500],.5)}`},[wi]:{borderColor:alpha(n[500],.15),boxShadow:"none"},[ki]:{borderColor:alpha(i[500],.15),boxShadow:"none"},"& .MuiFormLabel-asterisk":{color:i[500],fontSize:"10px",lineHeight:"1em",marginLeft:2},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:e.v2.spacing(8),fontSize:"10px",fontWeight:e.v2.typography.fontWeightMedium,lineHeight:"100%",transform:"translate(0, 6px) scale(1) !important",transformOrigin:"top left"},"& .MuiInputLabel-root.MuiInputLabel-shrink, & .MuiInputLabel-root.MuiFormLabel-filled, & .MuiInputLabel-root.Mui-focused":{transform:"translate(0, -2px) scale(0.95) !important",color:`${r[500]} !important`},"& .MuiInput-root":{flex:1,marginTop:"0 !important"}}});var Pr=forwardRef(({label:e,size:o="md",error:t=false,warning:r=false,disabled:a=false,fullWidth:s=false,placeholder:i,hideArrows:n=false,required:p,loading:d=false,validated:c=false,disableFocusRing:f=false,focused:u,type:y,id:m="Input",className:h,sx:g,value:k,defaultValue:M,onChange:L,endAdornment:b,onKeyDown:v,onWheel:N,...I},W)=>{let z=!!e,Ce=y==="number",be=z&&d&&!a,oo=c&&!d&&!a,pe=be||oo,Se=o==="sm"?x.sizeSm:x.sizeMd,Ka=useCallback(C=>{typeof W=="function"?W(C):W&&(W.current=C);},[W]),Ya=useMemo(()=>nc(x.root,t&&"Mui-error",r&&"Mui-warning",a&&"Mui-disabled",z&&x.hasLabel,Se,f&&x.disableFocusRing,u&&inputClasses.focused,h),[t,r,a,z,Se,f,u,h]),Xa=useMemo(()=>nc(x.input,z&&x.hasLabel,Se,n&&x.hideArrows,pe&&x.hasTrailingIcon),[z,Se,n,pe]),qa=C=>{let Qa=C.metaKey||C.ctrlKey||C.altKey,es=C.key.length===1;(["e","E","+","-"].includes(C.key)||za$1()&&es&&!Qa&&!/^[0-9.]$/.test(C.key))&&C.preventDefault(),v?.(C);},Ja=C=>{C.target instanceof HTMLElement&&C.target.blur(),N?.(C);};return jsxs(Tr,{className:Ya,sx:g,error:t,disabled:a,fullWidth:s,required:p,"data-testid":"Input",focused:u||void 0,children:[z&&jsx(kr,{className:x.label,htmlFor:m??void 0,required:p,shrink:u||void 0,children:e}),jsx(wr,{id:m??void 0,inputRef:Ka,className:Xa,type:y,error:t,disabled:a,required:p,placeholder:i??void 0,"aria-invalid":t||void 0,disableUnderline:true,fullWidth:true,value:k,defaultValue:M,onChange:L,endAdornment:b,onKeyDown:Ce?qa:v,onWheel:Ce?Ja:N,...I}),be&&jsx(Ir,{className:x.loadingIcon,id:m?`${m}-loading-icon`:void 0,size:14.7,thickness:5}),oo&&jsx(Br,{className:x.validatedIcon,id:m?`${m}-validated-icon`:void 0,children:jsx(Nr,{})})]})});Pr.displayName="Input";var Mr=memo(Pr);var yo="os-shared-Textarea",te={root:`${yo}-root`,label:`${yo}-label`,textarea:`${yo}-textarea`},re=3;var Lr=styled(Fi,{shouldForwardProp:e=>!["$error","$hasLabel","$minRows"].includes(e)})(({theme:e,$hasLabel:o=false,$minRows:t=re})=>{let{base:r,grey:a}=e.v2.palette;return {border:"none",borderRadius:"inherit",padding:o?`${e.v2.spacing(32)} ${e.v2.spacing(8)} ${e.v2.spacing(8)}`:`${e.v2.spacing(8)} ${e.v2.spacing(12)}`,fontSize:"11px",fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:r.black,backgroundColor:"transparent",alignItems:"flex-start",width:"100%",...o&&{marginTop:0},"&.Mui-disabled":{color:a[500]},"& textarea":{resize:"vertical",minHeight:o?void 0:`${Math.max(t*20,60)}px`,padding:0,margin:0},"& textarea::placeholder":{color:a[500],fontWeight:e.typography.fontWeightMedium,opacity:1},"& textarea:-webkit-autofill, & textarea:-webkit-autofill:hover, & textarea:-webkit-autofill:focus":{WebkitTextFillColor:r.black,caretColor:r.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"}}}),Fr=styled(Si)(({theme:e})=>{let{grey:o}=e.v2.palette;return {fontSize:"10px",fontWeight:e.typography.fontWeightMedium,color:`${o[500]} !important`}}),zr=styled(bi,{shouldForwardProp:e=>!["$hasLabel","$minRows"].includes(e)})(({theme:e,disabled:o,error:t,fullWidth:r,$hasLabel:a=false,$minRows:s=re})=>{let{grey:i,base:n,error:p}=e.v2.palette,d=t?p[500]:i[100];return {position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",minHeight:a?96+(s-re)*20:void 0,margin:0,border:`1px solid ${d}`,borderRadius:e.v2.radius(4),backgroundColor:o?i[100]:n.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?p[500]:i[50]},"& .MuiFormLabel-asterisk":{color:p[500]},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",display:"flex",alignItems:"flex-start",gap:e.v2.spacing(2),padding:e.v2.spacing(8),fontSize:"10px",fontWeight:e.typography.fontWeightMedium,lineHeight:"100%",transform:"none !important",transformOrigin:"top left",color:`${i[500]} !important`},"& .MuiInputBase-root":{flex:1,marginTop:"0 !important"}}});var Dr=forwardRef(({label:e,error:o=false,disabled:t=false,fullWidth:r=false,placeholder:a,minRows:s=re,maxRows:i,id:n,className:p,sx:d,required:c,...f},u)=>{let y=!!e;return jsxs(zr,{className:nc(te.root,p),sx:d,error:o,disabled:t,fullWidth:r,required:c,variant:"standard","data-testid":"Textarea",$hasLabel:y,$minRows:s,children:[y&&jsx(Fr,{className:te.label,htmlFor:n,shrink:true,disableAnimation:true,required:c,children:e}),jsx(Lr,{id:n,inputRef:u,className:te.textarea,multiline:true,minRows:s,maxRows:i,disabled:t,required:c,placeholder:a??void 0,"aria-invalid":o||void 0,fullWidth:true,$error:o,$hasLabel:y,$minRows:s,...f})]})});Dr.displayName="Textarea";var Ar=memo(Dr);var U="os-shared-Accordion",P={root:`${U}-root`,summary:`${U}-summary`,content:`${U}-content`,labelStartAdornment:`${U}-labelStartAdornment`,labelContent:`${U}-labelContent`,labelEndAdornment:`${U}-labelEndAdornment`,expandIcon:`${U}-expandIcon`};var Wr=()=>{let{v2:e}=useTheme(),{base:o}=e.palette;return jsx("svg",{width:"9",height:"5",viewBox:"0 0 9 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.0501709 0.427246C0.0493864 0.478467 0.0592757 0.529176 0.0784912 0.57666C0.0976579 0.623937 0.125505 0.667471 0.161499 0.703613L3.82556 4.47803C3.86116 4.51465 3.90353 4.54403 3.95056 4.56396C3.99773 4.58391 4.04876 4.59422 4.09998 4.59424C4.15123 4.59424 4.20218 4.58392 4.24939 4.56396C4.29655 4.54401 4.33969 4.51476 4.37537 4.47803L8.03845 0.703613C8.07407 0.667816 8.10232 0.625348 8.12146 0.578613C8.14069 0.531638 8.15017 0.480932 8.14978 0.430176C8.14935 0.379519 8.13942 0.329298 8.11951 0.282715C8.09956 0.236042 8.06999 0.19405 8.03357 0.158691C7.99716 0.123349 7.95384 0.0952198 7.90662 0.0766602C7.8595 0.0582058 7.80878 0.0491929 7.75818 0.050293C7.70763 0.0514427 7.65792 0.0629948 7.61169 0.0834961C7.56537 0.104067 7.52346 0.13358 7.48865 0.17041L4.09998 3.65967L0.711304 0.17041C0.65912 0.115154 0.592066 0.0759001 0.517944 0.059082C0.443585 0.0422622 0.365385 0.0481013 0.294312 0.0756836C0.22324 0.103266 0.162075 0.15178 0.11853 0.214355C0.0750125 0.276905 0.05135 0.351058 0.0501709 0.427246Z",fill:o.black,stroke:o.black,strokeWidth:"0.1"})})};var Vr=styled(Ei)(({theme:e,square:o})=>{let{grey:t,base:r}=e.v2.palette;return {overflow:"hidden",border:`1px solid ${t[100]}`,...!o&&{borderRadius:e.v2.radius(8)},margin:0,background:r.white,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0},"&.Mui-disabled":{opacity:.5,pointerEvents:"none"}}}),Or=styled(Hi)(({theme:e})=>({background:"#fbfbfb",minHeight:"40px",height:"40px",padding:e.v2.spacing(10),"&.Mui-expanded":{minHeight:"40px",height:"40px"},"& .MuiAccordionSummary-content":{margin:0,display:"flex",flexDirection:"row",alignItems:"center",flexGrow:1,minWidth:0,gap:e.v2.spacing(10)},"& .MuiAccordionSummary-expandIconWrapper":{marginLeft:e.v2.spacing(8)}})),Zr=styled(Wi)(({theme:e})=>{let{grey:o}=e.v2.palette;return {padding:0,borderTop:`1px solid ${o[100]}`}}),jr=styled(vo)({display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:"rotate(0deg)"}),Ur=styled(vo)({minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"});var Kr=forwardRef(({expanded:e,defaultExpanded:o=false,onChange:t,label:r,content:a,labelStartAdornment:s,labelEndAdornment:i,slotProps:n={},disabled:p=false,expandIcon:d,className:c,sx:f,...u},y)=>{let m=e!==void 0,[h,g]=useState(o),k=m?e:h,M=(oo,pe)=>{m||g(pe),t?.(pe);},{showArrow:L=true,...b}=n.label??{},{className:v,sx:N,...I}=n.root??{},{className:W,sx:z}=n.summary??{},Ce=d??(L?jsx(jr,{component:"span",className:P.expandIcon,children:jsx(Wr,{})}):null),be=jsxs(Fragment,{children:[s!=null&&jsx(vo,{component:"span",className:P.labelStartAdornment,...n.labelStartAdornment,sx:mc({flexShrink:0},n.labelStartAdornment?.sx),children:s},"label-start-adornment"),jsx(Ur,{component:"span",className:P.labelContent,...n.labelContent,sx:n.labelContent?.sx,children:r},"label-content"),i!=null&&jsx(vo,{component:"span",className:P.labelEndAdornment,...n.labelEndAdornment,sx:mc({flexShrink:0,marginLeft:"auto"},n.labelEndAdornment?.sx),children:i},"label-end-adornment")]});return jsxs(Vr,{ref:y,"data-testid":"Accordion",disabled:p,expanded:k,onChange:M,className:nc(P.root,c,v),sx:mc(f??{},N),...I,...u,children:[jsx(Or,{className:nc(P.summary,W),sx:mc({},z),expandIcon:Ce,"aria-expanded":k,...b,children:be}),jsx(Zr,{className:P.content,...n.content,children:a})]})});Kr.displayName="Accordion";var Yr=memo(Kr);var Xr="os-shared-Menu",ye={popper:`${Xr}-popper`,panel:`${Xr}-panel`};var Jr=styled(_i)({}),Qr=styled(vo,{shouldForwardProp:e=>e!=="$showShadow"})(({theme:e,$showShadow:o})=>{let{grey:t,base:r}=e.v2.palette;return {borderRadius:e.v2.radius(4),background:r.white,width:"max-content",cursor:"pointer",boxShadow:e.v2.elevation[200],display:"flex",flexDirection:"column",overflowY:"auto",maxHeight:"432px","&:focus":{outline:"none"},".menu-item + .menu-item":{borderTop:`1px solid ${t[100]}`},"&::after":{content:o?'""':"none",width:"100%",height:"34px",position:"sticky",bottom:0,pointerEvents:"none",background:`linear-gradient(180deg, rgba(255,255,255,0) 0%, ${r.white} 100%)`}}});var oa=forwardRef(({open:e,anchorEl:o,children:t,placement:r,popperSx:a,panelProps:s,className:i,sx:n,...p},d)=>{let[c,f]=useState(false),y=useMemo(()=>Children.count(t),[t])>12&&c,{onScroll:m,className:h,sx:g,...k}=s??{},M=useCallback(b=>{f((b.currentTarget.scrollTop??0)>0),m?.(b);},[m]),L=nc(ye.panel,h,"MuiPopper-dropdown");return jsx(Jr,{ref:d,className:nc(ye.popper,i),"data-testid":"Menu",open:e,anchorEl:o,placement:r??"bottom-start",sx:a,...p,children:jsx(Qr,{$showShadow:y,onScroll:M,className:L,sx:mc(n??{},g),...k,children:t})})});oa.displayName="Menu";var ta=memo(oa);var ge="os-shared-Dialog",A={root:`${ge}-root`,title:`${ge}-title`,divider:`${ge}-divider`,content:`${ge}-content`,actions:`${ge}-actions`};var ra=styled(Qi,{shouldForwardProp:e=>e!=="$hasBlurBackdrop"})(({theme:e,$hasBlurBackdrop:o})=>{let{base:t}=e.v2.palette,r=o?e.v2.blur[6]:"none";return {"& .MuiDialog-paper":{backgroundColor:t.white,boxShadow:"0px 0px 16px 0px rgba(0, 0, 0, 0.11)",borderRadius:e.v2.radius(8)},"& .MuiModal-backdrop":{background:alpha("#000",.2),...o&&{backdropFilter:r,WebkitBackdropFilter:r}}}}),aa=styled(tl)(({theme:e})=>{let{base:o}=e.v2.palette;return {padding:`${e.v2.spacing(16)} ${e.v2.spacing(16)} ${e.v2.spacing(12)}`,fontSize:"13px",fontWeight:e.typography.fontWeightBolder,lineHeight:"normal",color:o.black,whiteSpace:"nowrap"}}),sa=styled("hr")(({theme:e})=>{let{grey:o}=e.v2.palette;return {display:"block",border:"none",borderTop:`1px solid ${o[100]}`,margin:0,width:"100%",flexShrink:0}}),na=styled(ol,{shouldForwardProp:e=>e!=="$hasHeading"})(({theme:e,$hasHeading:o})=>{let{grey:t}=e.v2.palette;return {padding:`${o?e.v2.spacing(12):e.v2.spacing(16)} ${e.v2.spacing(16)} ${e.v2.spacing(16)}`,fontSize:"12px",fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:t[500]}}),ia=styled(el)(({theme:e})=>({padding:`0 ${e.v2.spacing(16)} ${e.v2.spacing(16)}`,gap:e.v2.spacing(8),justifyContent:"flex-end","& > :not(style) ~ :not(style)":{marginLeft:0}}));var pa=forwardRef(({heading:e,actions:o,children:t,onClose:r,open:a,hasBlurBackdrop:s,className:i,sx:n,...p},d)=>jsxs(ra,{ref:d,"data-testid":"Dialog",open:a,onClose:r,$hasBlurBackdrop:s,className:nc(A.root,i),sx:n,...p,children:[e?jsxs(Fragment,{children:[jsx(aa,{className:A.title,children:e}),jsx(sa,{"aria-hidden":true,className:A.divider})]}):null,t!=null?jsx(na,{className:A.content,$hasHeading:!!e,children:t}):null,o?jsx(ia,{className:A.actions,children:o}):null]}));pa.displayName="Dialog";var da=memo(pa);var xo="os-shared-MenuItem",G={root:`${xo}-root`,indicator:`${xo}-indicator`,disabled:`${xo}-disabled`},K={unchecked:"unchecked",checked:"checked",indeterminate:"indeterminate"};var ma=()=>{let{v2:e}=useTheme(),{brand:o,base:t}=e.palette;return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:o[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74245C9.04243 3.94469 9.05652 4.2875 8.86537 4.50814L5.64586 8.22426C5.55146 8.33322 5.41909 8.39666 5.27942 8.39987C5.13975 8.40308 5.0049 8.34579 4.90612 8.24127L3.15002 6.38321C2.94999 6.17157 2.94999 5.82843 3.15002 5.61679C3.35004 5.40516 3.67435 5.40516 3.87437 5.61679L5.2522 7.07463L8.11024 3.77574C8.30138 3.55511 8.62538 3.5402 8.83391 3.74245Z",fill:t.white})]})},fa=()=>jsx("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("rect",{x:"1.19998",y:"1.19998",width:"9.6",height:"9.6",rx:"1.8",fill:"#FAFBFB",stroke:"#D2D5D8",strokeWidth:"1.2"})}),ua=()=>{let{v2:e}=useTheme(),{brand:o}=e.palette;return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"2.4",fill:o[500],stroke:o[500],strokeWidth:"1.2"}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:"#FAFBFB"})]})};var xa=styled(vo,{shouldForwardProp:e=>e!=="$isDisabled"})(({theme:e,$isDisabled:o=false})=>{let{base:t}=e.v2.palette;return {padding:e.v2.spacing(8),position:"relative",display:"flex",alignItems:"center",gap:e.v2.spacing(8),textTransform:"capitalize",cursor:o?"not-allowed":"pointer",flex:1,fontSize:e.typography.subtitle1.fontSize,opacity:o?.5:1,color:t.black}}),ho=styled("span")({width:14,height:14,flexShrink:0,pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center","& svg":{display:"block"}});function dl(e,o){return o?K.indeterminate:e?K.checked:K.unchecked}var cl={[K.unchecked]:fa,[K.checked]:ma,[K.indeterminate]:ua};function ml(e,o,t){if(e===null)return null;if(e!==void 0)return jsx(ho,{className:G.indicator,"aria-hidden":true,children:e});let r=dl(o,t),a=cl[r];return jsx(ho,{className:G.indicator,"aria-hidden":true,children:jsx(a,{})})}var ha=forwardRef(({isSelected:e=false,isDisabled:o=false,isIndeterminate:t=false,startAdornment:r,onClick:a,children:s,className:i,sx:n,...p},d)=>{let c=nc(G.root,"menu-item",o&&G.disabled,i);return jsxs(xa,{ref:d,"data-testid":"MenuItem",className:c,sx:n,onClick:o?void 0:a,$isDisabled:o,...p,children:[ml(r,e,t),s]})});ha.displayName="MenuItem";var Ca=memo(ha);var bo="os-shared-ToggleButtons",se={root:`${bo}-root`,button:`${bo}-button`,overlay:`${bo}-overlay`},So={sm:"sm",md:"md"},ne=So.sm,Ye={sm:{buttonHeight:20,minWidth:20,fontSize:8,containerRadius:3,iconSlot:11},md:{buttonHeight:28,minWidth:28,fontSize:11,containerRadius:4,iconSlot:14}},ba="left 0.25s ease-in-out, width 0.25s ease-in-out";function ul(e,o){let{palette:t}=e.v2;return {backgroundColor:"transparent",boxShadow:"none",color:o?t.foreground.primary:t.foreground.secondary,opacity:o?1:.5}}var Sa=styled(vo,{shouldForwardProp:e=>e!=="$size"})(({theme:e,$size:o=ne})=>{let t=Ye[o];return {position:"relative",backgroundColor:e.v2.palette.background.secondary,display:"inline-flex",alignItems:"center",padding:e.v2.spacing(2),borderRadius:e.v2.radius(t.containerRadius)}}),va=styled(vo,{shouldForwardProp:e=>e!=="$left"&&e!=="$width"&&e!=="$size"&&e!=="$ready"})(({theme:e,$left:o,$width:t,$size:r=ne,$ready:a})=>{let s=Ye[r];return {position:"absolute",top:e.v2.spacing(2),left:o,width:t,height:s.buttonHeight,borderRadius:e.v2.radius(2),backgroundColor:e.v2.palette.background.primary,boxShadow:e.v2.elevation[100],transition:a?ba:"none",pointerEvents:"none",zIndex:1}}),Na=styled(vo,{shouldForwardProp:e=>e!=="$isActive"&&e!=="$size"})(({theme:e,$isActive:o=false,$size:t=ne})=>{let r=Ye[t];return {boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,position:"relative",zIndex:2,height:r.buttonHeight,width:"auto",minWidth:r.minWidth,borderRadius:e.v2.radius(2),fontSize:r.fontSize,fontWeight:e.typography.fontWeightMedium,lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",cursor:"pointer",transition:"opacity 0.25s ease-in-out, color 0.25s ease-in-out",...ul(e,o),"& img, & svg":{width:r.iconSlot,height:r.iconSlot,display:"block"}}});function Ia({options:e,activeKey:o,onChange:t,size:r=ne,containerProps:a,buttonProps:s,id:i,className:n,sx:p,"data-testid":d},c){let{className:f,sx:u,...y}=a??{},m=nc(se.root,n,f),h=useRef([]),[g,k]=useState({left:0,width:0}),[M,L]=useState(false),b=useCallback(()=>{let v=e.findIndex(I=>I.key===o),N=h.current[v];N&&k({left:N.offsetLeft,width:N.offsetWidth});},[o,e]);return useLayoutEffect(()=>{b(),L(true);},[b]),useEffect(()=>{let v=h.current.filter(I=>I!=null);if(v.length===0||typeof ResizeObserver>"u")return;let N=new ResizeObserver(()=>{b();});return v.forEach(I=>N.observe(I)),()=>N.disconnect()},[e,b]),jsxs(Sa,{ref:c,id:i,"data-testid":d??i??"ToggleButtons",className:m,$size:r,sx:mc(p??{},u),...y,children:[g.width>0?jsx(va,{className:se.overlay,$left:g.left,$width:g.width,$size:r,$ready:M,"aria-hidden":true}):null,e.map((v,N)=>jsx(Na,{className:se.button,$isActive:o===v.key,$size:r,onClick:()=>t(v.key),...s,ref:I=>{h.current[N]=I;},children:v.content},v.key))]})}var Sl=forwardRef(Ia);Ia.displayName="ToggleButtons";var Ba=memo(Sl);var Nl="os-shared-LazyImage",Xe={root:`${Nl}-root`},qe={opacity:()=>import('react-lazy-load-image-component/src/effects/opacity.css'),blur:()=>import('react-lazy-load-image-component/src/effects/blur.css'),"black-and-white":()=>import('react-lazy-load-image-component/src/effects/black-and-white.css')};var Ta=styled(vo)({display:"inline-flex",justifyContent:"center",alignItems:"center"});function Je(e){return e!=null&&e in qe}var Ml=LazyLoadImage,Pa=forwardRef(({effect:e,wrapperProps:o,id:t,className:r,sx:a,placeholderSrc:s,...i},n)=>{let[p,d]=useState(Je(e));if(useEffect(()=>{if(!Je(e)){d(false);return}d(true),qe[e]().finally(()=>{d(false);});},[e]),p)return null;let{className:c,sx:f,style:u,...y}=o??{},m=Je(e)||!!s||u!=null;return jsx(Ta,{component:"span",...y,className:nc(Xe.root,c??r),sx:f!=null?mc(a??{},f):a,children:jsx(Ml,{...i,ref:n,effect:e,placeholderSrc:s,id:t,"data-testid":"LazyImage",wrapperProps:m?{style:{display:"flex",justifyContent:"center",alignItems:"center",...u}}:void 0})})});Pa.displayName="LazyImage";var Ma=memo(Pa);var wo="os-shared-FieldFeedback",ie={root:`${wo}-root`,icon:`${wo}-icon`,message:`${wo}-message`};var za=({severity:e="error",...o})=>{let t=useTheme(),{warning:r,error:a}=t.v2.palette,s=e==="warning"?r[500]:a[500];return jsx(ro,{sx:{width:12,height:12},...o,children:jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M6 12C9.30838 12 12 9.30838 12 6C12 2.69162 9.30838 -2.35309e-07 6 -5.24537e-07C2.69162 -8.13764e-07 8.13764e-07 2.69162 5.24537e-07 6C2.35309e-07 9.30838 2.69162 12 6 12ZM6 11.1C3.17801 11.1 0.9 8.82198 0.9 6C0.9 3.17802 3.17802 0.899999 6 0.899999C8.82199 0.899999 11.1 3.17802 11.1 6C11.1 8.82198 8.82198 11.1 6 11.1ZM6 9C6.15913 9 6.31174 8.93679 6.42426 8.82426C6.53679 8.71174 6.6 8.55913 6.6 8.4C6.6 8.24087 6.53679 8.08826 6.42426 7.97574C6.31174 7.86321 6.15913 7.8 6 7.8C5.84087 7.8 5.68826 7.86321 5.57574 7.97574C5.46321 8.08826 5.4 8.24087 5.4 8.4C5.4 8.55913 5.46321 8.71174 5.57574 8.82426C5.68826 8.93679 5.84087 9 6 9ZM6.00703 6.90644C6.12628 6.90458 6.23991 6.85546 6.32296 6.76988C6.40602 6.6843 6.45171 6.56925 6.45 6.45L6.45 3.15C6.45084 3.09037 6.43983 3.03116 6.41759 2.97583C6.39535 2.92049 6.36234 2.87013 6.32047 2.82766C6.2786 2.7852 6.22871 2.75148 6.17369 2.72846C6.11868 2.70544 6.05964 2.69359 6 2.69359C5.94036 2.69359 5.88132 2.70544 5.82631 2.72846C5.77129 2.75148 5.7214 2.7852 5.67953 2.82766C5.63766 2.87013 5.60465 2.92049 5.58241 2.97583C5.56017 3.03116 5.54916 3.09037 5.55 3.15L5.55 6.45C5.54914 6.51023 5.56037 6.57002 5.58304 6.62583C5.60571 6.68163 5.63935 6.73232 5.68197 6.77489C5.72459 6.81745 5.77533 6.85103 5.83116 6.87363C5.887 6.89623 5.9468 6.90739 6.00703 6.90644Z",fill:s})})})},Ra=e=>{let{v2:o}=useTheme(),{success:t}=o.palette;return jsx(ro,{sx:{width:12,height:12},...e,children:jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:t[700]})})})},Da=()=>jsx("svg",{width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:jsx("path",{d:"M6 7.5V5.5M6 3.5H6.005M11 5.5C11 8.26142 8.76142 10.5 6 10.5C3.23858 10.5 1 8.26142 1 5.5C1 2.73858 3.23858 0.5 6 0.5C8.76142 0.5 11 2.73858 11 5.5Z",stroke:"currentColor",strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})});function Qe(e,o){let t=o??"error",{brand:r,success:a,error:s,status:i}=e.v2.palette;switch(t){case "warning":return {borderColor:i.warning.subtle,backgroundColor:i.warning.subtle,textColor:i.warning.default};case "success":return {borderColor:alpha(a[700],.15),backgroundColor:alpha(a[700],.15),textColor:a[700]};case "info":return {borderColor:alpha(r[500],.12),backgroundColor:alpha(r[500],.12),textColor:r[500]};case "error":return {borderColor:alpha(s[500],.15),backgroundColor:alpha(s[500],.15),textColor:s[500]};default:return t}}var Aa=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:o})=>{let{backgroundColor:t,textColor:r}=Qe(e,o);return {display:"flex",alignItems:"flex-start",gap:e.v2.spacing(4),minHeight:"32px",padding:`${e.v2.spacing(8)} ${e.v2.spacing(12)}`,background:t,color:r,borderRadius:`0 0 ${e.v2.radius(4)} ${e.v2.radius(4)}`}}),Ea=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:o})=>{let{textColor:t}=Qe(e,o);return {fontSize:"10px",lineHeight:"16px",display:"block",color:t,wordBreak:"break-word"}}),Wa=styled("span")({width:12,height:12,flexShrink:0,marginTop:"2px",display:"inline-flex",alignItems:"center",justifyContent:"center","& svg":{width:12,height:12,display:"block"}});function zl(e){switch(e){case "success":return jsx(Ra,{});case "info":return jsx(Da,{});case "error":case "warning":return jsx(za,{severity:e})}}var Ha=forwardRef(({type:e="error",message:o,icon:t,className:r,sx:a},s)=>{if(!Cc(o))return null;let i=e;return jsxs(Aa,{ref:s,"data-testid":"FieldFeedback",className:nc(ie.root,r),sx:a,$feedbackType:i,children:[t??jsx(Wa,{className:ie.icon,children:zl(i)}),jsx(Ea,{className:ie.message,$feedbackType:i,children:o})]})});Ha.displayName="FieldFeedback";var Va=memo(Ha);var Dl="os-shared-ScrollLoader",eo={root:`${Dl}-root`};var Oa=styled(Al)({overflow:"auto",height:"100%",maxHeight:"100%"});function Io(e,o=50){return e.scrollHeight-(e.scrollTop+e.clientHeight)<=o}var _a=forwardRef(({loadMoreItems:e,hasMore:o,isLoading:t=false,isFetchingNextPage:r,children:a,className:s,sx:i,id:n,...p},d)=>{let[c,f]=useState(false),u=useRef(e),y=useRef(null);u.current=e;let m=useCallback(()=>{o&&!r&&u.current();},[o,r]),h=useCallback(()=>{let g=y.current;g&&Io(g)&&m();},[m]);return useEffect(()=>{let g=y.current;if(g)return g.addEventListener("scroll",h),()=>g.removeEventListener("scroll",h)},[h]),useEffect(()=>{let g=y.current;if(!g||t||c)return;let k=window.setTimeout(()=>{f(true),Io(g)&&m();},1e3);return ()=>window.clearTimeout(k)},[t,m,c]),jsx(Oa,{ref:g=>{y.current=g,typeof d=="function"?d(g):d&&(d.current=g);},id:n,"data-testid":"ScrollLoader",className:nc(eo.root,s),sx:i,...p,children:a})});_a.displayName="ScrollLoader";var Ga=memo(_a);
1
+ import {nc,Bc,mc,db,ac,Cc,za as za$1}from'./chunk-EP5VELEJ.js';import {forwardRef,memo,useId,createElement,useState,useCallback,useMemo,Children,useEffect,useRef,useLayoutEffect}from'react';import vo from'@mui/material/Box';import ns,{circularProgressClasses}from'@mui/material/CircularProgress';import os from'@mui/material/ButtonBase';import {styled,alpha,useTheme}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import ro from'@mui/material/SvgIcon';import fs from'@mui/material/Checkbox';import us from'@mui/material/FormControlLabel';import Cs from'@mui/material/Switch';import ks from'@mui/material/Typography';import Rs from'@mui/material/Radio';import Gs from'@mui/material/Tooltip';import tn from'@mui/material/Skeleton';import pn from'@mui/material/Avatar';import gn from'@mui/material/Divider';import Nn from'@mui/material/Collapse';import {createPortal}from'react-dom';import An from'@mui/material/Backdrop';import li,{SliderThumb}from'@mui/material/Slider';import vi,{inputClasses}from'@mui/material/Input';import bi from'@mui/material/FormControl';import Si from'@mui/material/InputLabel';import Fi from'@mui/material/InputBase';import Ei from'@mui/material/Accordion';import Wi from'@mui/material/AccordionDetails';import Hi from'@mui/material/AccordionSummary';import _i from'@mui/material/Popper';import Qi from'@mui/material/Dialog';import el from'@mui/material/DialogActions';import ol from'@mui/material/DialogContent';import tl from'@mui/material/DialogTitle';import {LazyLoadImage}from'react-lazy-load-image-component';import Al from'@mui/material/Stack';var H="os-shared-Button",T={root:`${H}-root`,content:`${H}-content`,startIcon:`${H}-startIcon`,endIcon:`${H}-endIcon`,icon:`${H}-icon`,loading:`${H}-loading`,loadingSpinner:`${H}-loadingSpinner`},Mo={sm:{height:24,paddingY:8,paddingX:16,fontSize:"10px"},md:{height:32,minWidth:79,paddingY:8,paddingX:24,fontSize:"13px",lineHeight:"16px"},lg:{height:40,paddingY:8,paddingX:32,fontSize:"12px"}},Lo={sm:{width:24,minWidth:24,height:24,padding:0},md:{width:32,minWidth:32,height:32,padding:0},lg:{width:38,minWidth:38,height:38,padding:0}},Fo={sm:12,md:12,lg:14};var Ro=styled(os,{shouldForwardProp:e=>e!=="$variant"&&e!=="$size"&&e!=="$fullWidth"&&e!=="$isLoading"&&e!=="$hasIcon"&&e!=="$isIconOnly"})(({theme:e,$variant:o="primary",$size:t="md",$fullWidth:r,$isLoading:a,$hasIcon:s,$isIconOnly:i})=>{let n=e.v2.palette,{paddingX:p,paddingY:d,...c}=Mo[t],f=Lo[t];return {display:"inline-flex",alignItems:"center",justifyContent:"center",gap:e.v2.spacing(6),borderRadius:e.v2.radius(4),lineHeight:"100%",whiteSpace:"nowrap",position:"relative",cursor:a?"not-allowed":"pointer",transition:"background-color 0.15s ease, opacity 0.15s ease",...c,padding:`${e.v2.spacing(d)} ${e.v2.spacing(p)}`,fontWeight:e.typography.fontWeightMedium,...r&&!i&&{width:"100%"},...s&&!r&&!i&&{width:"auto",minWidth:0},...o==="primary"&&{background:n.brand[500],color:n.base.white,"&.Mui-disabled":{opacity:1,background:n.interactive.primary.disabled,color:n.base.white}},...o==="secondary"&&{backgroundColor:n.base.white,color:n.grey[900],border:`1px solid ${n.grey[100]}`,"&.Mui-disabled":{opacity:1,color:n.foreground.disabled}},...o==="ghost"&&{padding:0,minWidth:0,backgroundColor:"transparent",color:n.foreground.brand,"&.Mui-disabled":{opacity:.5}},...o==="danger"&&{backgroundColor:n.status.danger.default,color:n.base.white,"&.Mui-disabled":{opacity:1,backgroundColor:alpha(n.status.danger.default,.14),color:n.base.white}},...i&&{boxSizing:"border-box",...f}}}),de=styled("span")(({theme:e})=>{let o=e.v2.spacing(16);return {display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,width:o,height:o}});var Ao=forwardRef(({children:e,variant:o="primary",size:t="md",isLoading:r=false,startIcon:a,endIcon:s,icon:i,fullWidth:n=false,disabled:p,className:d,sx:c,disableRipple:f=true,...u},y)=>{let m=i!=null;return jsxs(Ro,{ref:y,className:nc(T.root,d),$variant:o,$size:t,$fullWidth:n,$isLoading:r,$hasIcon:m||!!a||!!s||r,$isIconOnly:m,disabled:p||r,disableRipple:f,"data-testid":"Button",sx:c,...u,children:[jsx(vo,{component:"span",className:T.content,sx:{display:"inline-flex",alignItems:"center",gap:"inherit",visibility:r?"hidden":"visible"},children:m?jsx(de,{className:T.icon,children:i}):jsxs(Fragment,{children:[a&&jsx(de,{className:T.startIcon,children:a}),e,s&&jsx(de,{className:T.endIcon,children:s})]})}),r&&jsx(de,{className:T.loading,sx:{position:"absolute"},children:jsx(ns,{className:T.loadingSpinner,size:Fo[t],color:"inherit"})})]})});Ao.displayName="Button";var Eo=memo(Ao);var ls="os-shared-Icon",Ne={root:`${ls}-root`};var Wo=styled("img")(({theme:e})=>({width:e.v2.spacing(16),height:e.v2.spacing(16),verticalAlign:"middle",flexShrink:0}));var Ho=forwardRef(({className:e,sx:o,...t},r)=>jsx(Wo,{className:nc(Ne.root,e),sx:o,"data-testid":"Icon",...t,ref:r}));Ho.displayName="Icon";var Vo=memo(Ho);var to="os-shared-Checkbox",V={root:`${to}-root`,control:`${to}-control`,label:`${to}-label`};var Oo=({disabled:e,...o})=>{let{v2:t}=useTheme(),{brand:r,base:a,foreground:s}=t.palette;return jsxs(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12},...o,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:e?s.disabled:r[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74206C9.04243 3.9443 9.05652 4.28711 8.86537 4.50775L5.64586 8.22387C5.55146 8.33284 5.41909 8.39627 5.27942 8.39948C5.13975 8.40269 5.0049 8.3454 4.90612 8.24088L3.15002 6.38282C2.94999 6.17118 2.94999 5.82804 3.15002 5.61641C3.35004 5.40477 3.67435 5.40477 3.87437 5.61641L5.2522 7.07424L8.11024 3.77535C8.30138 3.55472 8.62538 3.53981 8.83391 3.74206Z",fill:a.white})]})},Zo=({disabled:e,...o})=>{let{v2:t}=useTheme(),{base:r,grey:a}=t.palette;return jsx(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12},...o,children:jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"1.8",fill:e?a[50]:r.white,stroke:e?a[200]:a[500],strokeWidth:"1.2"})})},jo=({disabled:e,...o})=>{let{v2:t}=useTheme(),{brand:r,base:a,foreground:s}=t.palette;return jsxs(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12},...o,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:e?s.disabled:r[500]}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:a.white})]})};var Go=styled(fs)(({theme:e})=>({padding:e.v2.spacing(2),"&:hover":{backgroundColor:"transparent"}})),Ko=styled(us)(({theme:e})=>{let{base:o,grey:t}=e.v2.palette;return {marginLeft:0,gap:e.v2.spacing(4),"& .MuiFormControlLabel-label":{fontSize:"11px",color:o.black},"& .MuiFormControlLabel-label.Mui-disabled":{color:t[500]}}});var Yo=forwardRef(({label:e,labelPlacement:o="end",disabled:t,sx:r,className:a,...s},i)=>{let n=Bc(useId(),"checkbox"),p=jsx(Go,{id:n,ref:i,disableRipple:true,disabled:t,checkedIcon:jsx(Oo,{disabled:t}),icon:jsx(Zo,{disabled:t}),indeterminateIcon:jsx(jo,{disabled:t}),"data-testid":"Checkbox",className:nc(e?V.control:V.root,e?void 0:a),sx:e?void 0:r,...s});return e?jsx(Ko,{className:nc(V.root,a),sx:r,control:p,label:e,labelPlacement:o,disabled:t,componentsProps:{typography:{className:V.label}}}):p});Yo.displayName="Checkbox";var Xo=memo(Yo);var hs="os-shared-Switch",we={root:`${hs}-root`};var qo=styled(Cs)(({theme:e,disabled:o})=>{let{base:t,grey:r,success:a}=e.v2.palette;return {width:28,height:16,padding:0,borderRadius:e.v2.radius(8),opacity:o?.5:1,overflow:"visible","& .MuiSwitch-switchBase":{padding:0,margin:e.v2.spacing(1),color:t.white,transitionDuration:"300ms","&:hover":{backgroundColor:"transparent"},"&.Mui-focusVisible":{outline:`2px solid ${r[400]}`,outlineOffset:2},"&.Mui-checked":{transform:"translateX(12px)",color:t.white,"& + .MuiSwitch-track":{backgroundColor:a[500],opacity:1,border:0}},"&.Mui-disabled":{color:t.white,"& + .MuiSwitch-track":{opacity:1},"& .MuiSwitch-thumb":{filter:"none"}},"&.Mui-checked.Mui-disabled":{color:t.white}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:14,height:14,color:t.white,backgroundColor:t.white,boxShadow:"none",filter:o?"none":"drop-shadow(0px 3px 0.5px rgba(0, 0, 0, 0.04)) drop-shadow(0px 3px 4px rgba(0, 0, 0, 0.12))"},"& .MuiSwitch-track":{borderRadius:e.v2.radius(8),backgroundColor:"#D9D9D9",opacity:1,transition:e.transitions.create(["background-color"],{duration:300})}}});var Jo=forwardRef(({className:e,sx:o,...t},r)=>jsx(qo,{ref:r,className:nc(we.root,e),sx:o,"data-testid":"Switch",disableRipple:true,...t}));Jo.displayName="Switch";var Qo=memo(Jo);var ws="os-shared-Typography",ke={root:`${ws}-root`},Ie="body.default.regular";var Bs=e=>e!=null&&typeof e=="object"&&"fontFamily"in e&&"fontSize"in e&&"fontWeight"in e;function Ts(e,o){try{let t=o.split(".").reduce((r,a)=>{if(r==null||typeof r!="object")throw new TypeError(`Invalid typography textVariant: ${o}`);return r[a]},e);if(!Bs(t))throw new TypeError(`Invalid typography textVariant: ${o}`);return t}catch(t){return console.warn(t),e.body.default.regular}}function $s(e,o,t){return o===void 0?t:typeof o=="number"?o:{light:e.fontWeightLight,regular:e.fontWeightRegular,medium:e.fontWeightMedium,semibold:e.fontWeightBold,bold:e.fontWeightBolder}[o]??t}var et=styled(ks,{shouldForwardProp:e=>e!=="$textVariant"&&e!=="$weight"})(({theme:e,$textVariant:o=Ie,$weight:t})=>{let{base:r}=e.v2.palette,a=Ts(e.v2.typography.textVariants,o);return {color:r.black,...a,fontWeight:$s(e.v2.typography,t,a.fontWeight)}});var ot=forwardRef(({textVariant:e=Ie,variant:o="subtitle2",weight:t,className:r,sx:a,...s},i)=>jsx(et,{ref:i,className:nc(ke.root,r),sx:a,"data-testid":"Typography",...s,variant:o,$textVariant:e,$weight:t}));ot.displayName="Typography";var tt=memo(ot);var Fs="os-shared-RadioButton";var Be={root:`${Fs}-root`};var st=({disabled:e,...o})=>{let{v2:t}=useTheme(),{brand:r,base:a}=t.palette,s=e?"#BDC1CC":r[500];return jsxs(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...o,children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"4.8",fill:s,stroke:s,strokeWidth:"1.2",style:{fill:s,stroke:s}}),jsx("circle",{cx:"6",cy:"6",r:"2.25",fill:a.white,style:{fill:a.white}})]})},nt=({disabled:e,...o})=>{let{v2:t}=useTheme(),{base:r,grey:a}=t.palette,s=e?a[50]:r.white,i=e?a[200]:a[500];return jsx(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...o,children:jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"4.8",fill:s,stroke:i,strokeWidth:"1.2",style:{fill:s,stroke:i}})})};var it=styled(Rs)(({theme:e})=>({padding:e.v2.spacing(2),"&:hover":{backgroundColor:"transparent"},"& .MuiSvgIcon-root":{fontSize:12,width:12,height:12}}));var lt=forwardRef(({disabled:e,sx:o,className:t,...r},a)=>jsx(it,{ref:a,disableRipple:true,disabled:e,checkedIcon:jsx(st,{disabled:e}),icon:jsx(nt,{disabled:e}),"data-testid":"RadioButton",className:nc(Be.root,t),sx:o,...r}));lt.displayName="RadioButton";var pt=memo(lt);var $e="os-shared-CircularProgress",O={root:`${$e}-root`,progress:`${$e}-progress`,labelOverlay:`${$e}-labelOverlay`,labelText:`${$e}-labelText`};var ct=styled(ns)(({theme:e})=>{let{brand:o}=e.v2.palette;return {color:"#147DC5",background:alpha(o[500],.05),borderRadius:"50%",[`& .${circularProgressClasses.circle}`]:{strokeLinecap:"round"}}}),mt=styled(vo)(()=>({position:"relative",display:"inline-flex"})),ft=styled(vo)(()=>({top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"})),ut=styled(ks)(({theme:e})=>({fontSize:e.typography.fontSize,fontWeight:e.typography.fontWeightBolder??700,color:"#3B4152"}));var yt=forwardRef(({variant:e="indeterminate",hasLabel:o=true,value:t,className:r,sx:a,...s},i)=>{let n=e==="determinate"&&o;return jsxs(mt,{className:nc(O.root,r),sx:a,"data-testid":"CircularProgress",children:[jsx(ct,{ref:i,variant:e,value:t,className:O.progress,...s}),n&&jsx(ft,{className:O.labelOverlay,children:jsx(ut,{className:O.labelText,variant:"caption",color:"text.secondary",children:`${Math.round(t??0)}%`})})]})});yt.displayName="CircularProgress";var gt=memo(yt);var Z="os-shared-Tooltip",w={popper:`${Z}-popper`,tooltip:`${Z}-tooltip`,arrow:`${Z}-arrow`,content:`${Z}-content`,title:`${Z}-title`,supportingText:`${Z}-supportingText`,wrapper:`${Z}-wrapper`};var xt=styled(({className:e,...o})=>createElement(Gs,{...o,classes:{popper:nc(w.popper,e),tooltip:w.tooltip,arrow:w.arrow}}))(({theme:e})=>{let{base:o,grey:t}=e.v2.palette,r=o.white,a="var(--tooltip-border-width) solid var(--tooltip-border-color)";return {"--tooltip-border-color":"#3C373721","--tooltip-border-width":"1px",zIndex:999999,[`& .${w.arrow}`]:{color:r,"&:before":{backgroundColor:r,boxSizing:"border-box",border:a}},[`& .${w.tooltip}`]:{backgroundColor:r,color:t[700],boxShadow:e.v2.elevation[200],fontSize:12,fontWeight:400,lineHeight:1.2,padding:e.v2.spacing(6),borderRadius:e.v2.radius(8),border:a,maxWidth:320,wordBreak:"break-word"}}}),ht=styled("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",gap:e.v2.spacing(6),maxWidth:296,width:"100%"})),Ct=styled("div",{shouldForwardProp:e=>e!=="$hasSupportingText"})(({theme:e,$hasSupportingText:o})=>{let{grey:t}=e.v2.palette;return {margin:0,fontSize:12,fontWeight:o?600:400,lineHeight:o?1:1.2,color:o?t[700]:alpha(t[700],.77),width:o?"100%":void 0}}),bt=styled("div")(({theme:e})=>{let{grey:o}=e.v2.palette;return {margin:0,fontSize:11,fontWeight:400,lineHeight:"normal",color:o[500],width:"100%",whiteSpace:"pre-wrap"}});function qs(e){return e!=null&&e!==false&&e!==""}function Js(e){return !!e||e===0}function Qs(e,o){let t=qs(o);if(!Js(e)&&!t)return null;let r=jsx(Ct,{className:w.title,$hasSupportingText:t,children:e});return t?jsxs(ht,{className:w.content,children:[r,jsx(bt,{className:w.supportingText,children:o})]}):r}function St({className:e,title:o,supportingText:t,placement:r="top",children:a,wrapperProps:s,sx:i,...n}){let{className:p,...d}=s??{};return jsx(xt,{className:e,title:Qs(o,t),placement:r,arrow:true,sx:i,...n,children:jsx(vo,{display:"flex",alignItems:"center","data-testid":"Tooltip",className:nc(w.wrapper,p),...d,children:a})})}St.displayName="Tooltip";var vt=memo(St);var on="os-shared-Skeleton",Fe={root:`${on}-root`};var Nt=styled(tn)(()=>({}));var wt=forwardRef(({className:e,sx:o,variant:t="rounded",...r},a)=>jsx(Nt,{ref:a,className:nc(Fe.root,e),sx:mc({height:16},o),"data-testid":"Skeleton",variant:t,...r}));wt.displayName="Skeleton";var kt=memo(wt);var ln="os-shared-Avatar",ze={root:`${ln}-root`},Re="xs",De="teal",It={teal:{from:"#31D5C8",to:"#1186C5"},green:{from:"#A2E9BD",to:"#44BB74"},cyan:{from:"#6BF6EB",to:"#32D6C9"},steel:{from:"#61AFC9",to:"#7FBFD4"},sage:{from:"#9DB7A4",to:"#7FBFD4"},gold:{from:"#D7B38C",to:"#FFE09F"},lime:{from:"#ADD6A2",to:"#FFDDB2"}},Bt={xs:{dimension:24,fontSize:"9px"},sm:{dimension:32,fontSize:"12px"},md:{dimension:40,fontSize:"15px"},lg:{dimension:48,fontSize:"17px"},xl:{dimension:56,fontSize:"20px"}};function cn(e){let{from:o,to:t}=It[e];return `linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%), linear-gradient(135deg, ${o} 0%, ${t} 100%)`}var Tt=styled(pn,{shouldForwardProp:e=>!["$size","$color"].includes(e)})(({theme:e,$size:o=Re,$color:t=De})=>{let{dimension:r,fontSize:a}=Bt[o],{base:s}=e.v2.palette,i=cn(t);return {width:r,height:r,flexShrink:0,fontSize:a,fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:s.white,background:i,backgroundColor:"transparent","&.MuiAvatar-colorDefault":{color:s.white,background:i,backgroundColor:"transparent"}}});var $t=forwardRef(({className:e,sx:o,size:t=Re,color:r=De,...a},s)=>jsx(Tt,{ref:s,className:nc(ze.root,e),sx:o,"data-testid":"Avatar",...a,$size:t,$color:r,variant:"circular"}));$t.displayName="Avatar";var Pt=memo($t);var yn="os-shared-Divider",Ae={root:`${yn}-root`};function hn(e,o){let{grey:t,border:r}=o.v2.palette;return e==="subtle"?r.subtle:t[100]}var Mt=styled(gn,{shouldForwardProp:e=>e!=="$type"})(({theme:e,$type:o="default",orientation:t="horizontal"})=>({borderColor:hn(o,e),...t==="vertical"?{borderBottomWidth:0,borderRightWidth:1}:{borderBottomWidth:1}}));var Lt=forwardRef(({className:e,sx:o,orientation:t="horizontal",type:r="default",...a},s)=>jsx(Mt,{ref:s,className:nc(Ae.root,e),sx:o,"data-testid":"Divider",orientation:t,$type:r,...a}));Lt.displayName="Divider";var Ft=memo(Lt);var vn="os-shared-Collapse",Ee={root:`${vn}-root`};var zt=styled(Nn)(()=>({}));var Rt=forwardRef(({className:e,sx:o,children:t,unmountOnExit:r=true,timeout:a=300,...s},i)=>jsx(zt,{ref:i,className:nc(Ee.root,e),sx:o,"data-testid":"Collapse",unmountOnExit:r,timeout:a,...s,children:t}));Rt.displayName="Collapse";var Dt=memo(Rt);var Tn="os-shared-Badge",We={root:`${Tn}-root`},He="default",At={default:"#29b6f6",primary:"#1976d2",secondary:"#f50057",neutral:"#656565",gray:"#CFCFCF",orange:"#FFD503"};function Mn(e,o){let{base:t,grey:r,brand:a,success:s,warning:i,error:n,gradient:p}=o.v2.palette;if(e==="highlight")return p.brand;let d=At[e];return d||({inactive:r[100],active:alpha(t.black,.1),dark:a[500],red:n[500],success:s[500],warning:i[500],error:n[500]}[e]??t.white)}function Ln(e,o){let{base:t}=o.v2.palette;return e==="inactive"?t.black:(t.white)}var Wt=styled("span",{shouldForwardProp:e=>!["$color","$compact","$round","$pointer"].includes(e)})(({theme:e,$color:o=He,$compact:t,$round:r,$pointer:a})=>{let s=Mn(o,e);return {paddingBlock:e.v2.spacing(2),paddingInline:t?"0.16056rem":r?"0.275rem":e.v2.spacing(4),borderRadius:t?e.v2.radius(4):r?e.v2.radius(16):e.v2.radius(48),background:s,color:Ln(o,e),fontSize:"8px",fontWeight:700,lineHeight:"10px",letterSpacing:0,overflow:"hidden",height:t?"12px":r?"16px":void 0,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",cursor:a?"pointer":"auto"}});var Ht=forwardRef(({className:e,sx:o,color:t,state:r,compact:a,round:s,pointer:i,children:n,...p},d)=>{let c=t??r??He;return jsx(Wt,{ref:d,className:nc(We.root,e),sx:o,"data-testid":"Badge",...p,$color:c,$compact:a,$round:s,$pointer:i,children:n})});Ht.displayName="Badge";var Vt=memo(Ht);var Dn="os-shared-Backdrop",Ve={root:`${Dn}-root`};var Ot=styled(An,{shouldForwardProp:e=>e!=="$hasBlur"})(({theme:e,$hasBlur:o=false,invisible:t=true})=>{let r=o&&!t?e.v2.blur[6]:"none";return {zIndex:t?999:1,backgroundColor:t?"transparent":alpha("#000",.3),backdropFilter:r,WebkitBackdropFilter:r}});var Zt=forwardRef(({className:e,sx:o,open:t=true,invisible:r=true,hasBlur:a=false,onClose:s,onClick:i,...n},p)=>{if(!t)return null;let d=c=>{s?.(),i?.(c);};return createPortal(jsx(Ot,{open:t,invisible:r,$hasBlur:a,ref:p,className:nc(Ve.root,e),sx:o,"data-testid":"Backdrop",onClick:d,...n}),document.body)});Zt.displayName="Backdrop";var jt=memo(Zt);var Oe="os-shared-CopyButton",R={root:`${Oe}-root`,icon:`${Oe}-icon`,copyIcon:`${Oe}-copyIcon`,copiedIcon:`${Oe}-copiedIcon`};var Gt=e=>{let{v2:o}=useTheme(),{base:t}=o.palette;return jsx(ro,{sx:{height:12.6,width:13},...e,children:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"13",viewBox:"2.67 1.67 10.66 12.66",fill:"none",children:jsx("path",{d:"M11.3333 13.6978L11.3332 13.6979C11.1002 14.0479 10.7072 14.2582 10.2863 14.2582H5.83317C4.12559 14.2582 2.7415 12.8741 2.7415 11.1665V4.71338C2.7415 4.29279 2.95172 3.89983 3.30186 3.66641L3.5915 3.47331V11.1665C3.5915 12.4046 4.59508 13.4082 5.83317 13.4082H11.5264L11.3333 13.6978ZM4.40817 3.49984C4.40817 2.53467 5.20133 1.7415 6.1665 1.7415H11.4998C12.465 1.7415 13.2582 2.53467 13.2582 3.49984V10.8332C13.2582 11.7983 12.465 12.5915 11.4998 12.5915H6.1665C5.20133 12.5915 4.40817 11.7983 4.40817 10.8332V3.49984ZM11.4998 2.5915H6.1665C5.65901 2.5915 5.25817 2.99234 5.25817 3.49984V10.8332C5.25817 11.3407 5.65901 11.7415 6.1665 11.7415H11.4998C12.0073 11.7415 12.4082 11.3407 12.4082 10.8332V3.49984C12.4082 2.99234 12.0073 2.5915 11.4998 2.5915Z",fill:t.black,stroke:t.white,strokeWidth:"0.15"})})})},Kt=e=>{let{v2:o}=useTheme(),{success:t,base:r}=o.palette;return jsx(ro,{sx:{height:12.6,width:13},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:t[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};var Xt=styled("span")({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:16,height:16,flexShrink:0,cursor:"pointer",verticalAlign:"middle"}),io=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:"opacity 200ms ease"}));var qt=forwardRef(({className:e,sx:o,text:t,feedbackMs:r=2e3,icon:a=jsx(Gt,{}),onClick:s,...i},n)=>{let[p,d]=useState(false),c=f=>{f.stopPropagation(),db(t),d(true),setTimeout(()=>d(false),r),s?.(f);};return jsxs(Xt,{ref:n,className:nc(R.root,e),sx:o,role:"button",tabIndex:0,"data-testid":"CopyButton",onClick:c,...i,children:[jsx(io,{className:nc(R.icon,R.copyIcon),$visible:!p,children:a}),jsx(io,{className:nc(R.icon,R.copiedIcon),$visible:p,children:jsx(Kt,{})})]})});qt.displayName="CopyButton";var Jt=memo(qt);var lo="os-shared-ProgressBar",Q={root:`${lo}-root`,fill:`${lo}-fill`,text:`${lo}-text`};var er=styled(vo,{shouldForwardProp:e=>!["$value","$isDecimal"].includes(e)})(({theme:e,$value:o,$isDecimal:t})=>{let{base:r}=e.v2.palette;return {width:`${o}%`,minWidth:o>=10?"28px":"24px",height:"18px",borderRadius:e.v2.radius(50),background:"linear-gradient(256deg, #147DC5 0%, #3DA6E1 100%)",display:"flex",alignItems:"center",justifyContent:o>10?"flex-end":"center",paddingInlineEnd:o>10?e.v2.spacing(2):e.v2.spacing(0),...o===0&&{background:alpha(r.black,26/255)},...t&&{minWidth:o>=10?"40px":"36px"}}}),or=styled(vo,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:o})=>{let{base:t}=e.v2.palette;return {height:"14px",maxWidth:"36px",minWidth:"20px",background:alpha(t.black,26/255),borderRadius:e.v2.radius(50),display:"flex",alignItems:"center",justifyContent:"center",padding:0,...o===0&&{background:alpha(t.black,0)}}}),tr=styled(ks,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:o})=>{let{base:t,grey:r}=e.v2.palette;return {fontSize:"8px",fontWeight:e.typography.fontWeightBolder??700,color:t.white,padding:`${e.v2.spacing(2)} ${e.v2.spacing(4)}`,...o===0&&{color:alpha(r[500],.5)}}});var ar=forwardRef(({className:e,sx:o,value:t},r)=>{let a=!Number.isInteger(t);return jsx(er,{ref:r,className:nc(Q.root,e),sx:o,"data-testid":"ProgressBar",$value:t,$isDecimal:a,children:jsx(or,{className:Q.fill,$value:t,children:jsxs(tr,{className:Q.text,$value:t,variant:"caption",children:[Number(t.toFixed(2)),"%"]})})})});ar.displayName="ProgressBar";var sr=memo(ar);var Ue="os-shared-Chip",$={root:`${Ue}-root`,text:`${Ue}-text`,copyButton:`${Ue}-copyButton`,icon:`${Ue}-icon`},nr={text:{height:24,paddingBlock:4,paddingInline:8,borderRadius:48},circular:{height:24,width:24,padding:4,borderRadius:12},"pill-icon":{height:24,width:36,paddingBlock:4,paddingInline:6,borderRadius:12}};var pr=e=>{let{v2:o}=useTheme(),{base:t}=o.palette;return jsx(ro,{sx:{height:"10px"},...e,children:jsx("svg",{width:"11",height:"13",viewBox:"0 0 11 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.924805 9.5C0.924805 10.7381 1.9289 11.7412 3.16699 11.7412H8.86035L8.66699 12.0312C8.43398 12.3812 8.04094 12.5917 7.62012 12.5918H3.16699C1.45941 12.5918 0.0751953 11.2076 0.0751953 9.5V3.04688C0.0751953 2.62628 0.28561 2.23342 0.635742 2L0.924805 1.80664V9.5ZM3.5 0.0751953H8.83301C9.79807 0.0751953 10.5916 0.867985 10.5918 1.83301V9.16699C10.5916 10.132 9.79807 10.9248 8.83301 10.9248H3.5C2.53494 10.9248 1.74139 10.132 1.74121 9.16699V1.83301C1.74139 0.867985 2.53494 0.0751953 3.5 0.0751953ZM3.5 0.924805C2.99261 0.924805 2.59197 1.32567 2.5918 1.83301V9.16699C2.59197 9.67433 2.99261 10.0752 3.5 10.0752H8.83301C9.3404 10.0752 9.74104 9.67433 9.74121 9.16699V1.83301C9.74104 1.32567 9.3404 0.924805 8.83301 0.924805H3.5Z",fill:t.black,stroke:t.white,strokeWidth:"0.15"})})})},dr=e=>{let{v2:o}=useTheme(),{success:t,base:r}=o.palette;return jsx(ro,{sx:{height:"10px"},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:t[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};function ei(e,o){let t=nr[e];return {height:t.height,..."width"in t&&{width:t.width,minWidth:t.width},..."padding"in t&&{padding:o.v2.spacing(t.padding)},..."paddingBlock"in t&&{paddingBlock:o.v2.spacing(t.paddingBlock)},..."paddingInline"in t&&{paddingInline:o.v2.spacing(t.paddingInline)},borderRadius:o.v2.radius(t.borderRadius)}}var mr=styled(vo,{shouldForwardProp:e=>!["$variant","$hasIcon","$hasCopy","$isSelected","$disableAnimation"].includes(e)})(({theme:e,$variant:o="text",$hasIcon:t,$hasCopy:r,$isSelected:a,$disableAnimation:s})=>{let{grey:i,base:n}=e.v2.palette;return {display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,boxSizing:"border-box",lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",fontSize:11,fontWeight:e.typography.fontWeightRegular,color:n.black,border:`1px solid ${i[100]}`,backgroundColor:n.white,...ei(o,e),...o==="text"&&t&&{gap:e.v2.spacing(6),paddingInlineStart:e.v2.spacing(5),paddingInlineEnd:e.v2.spacing(8)},...r&&{gap:e.v2.spacing(4)},[`& .${$.icon}`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:14,height:14,overflow:"hidden","& img, & svg":{width:14,height:14,display:"block"}},...a&&{boxShadow:`${n.white} 7px 0px 8px 2px`},...s&&{transition:"none !important",animation:"none !important",transform:"none !important","& *":{transition:"none !important",animation:"none !important",transform:"none !important"}}}}),co=styled(vo)({textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"0 1 auto"}),fr=styled("span",{shouldForwardProp:e=>e!=="$copied"})(({$copied:e})=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:12,height:12,flexShrink:0,cursor:"pointer",opacity:e?1:.6,transition:"opacity 150ms ease","&:hover":{opacity:1}})),mo=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:"opacity 150ms ease"}));var yr=forwardRef(({className:e,sx:o,children:t,icon:r,variant:a="text",disabled:s=false,isSelected:i=false,copyText:n,unknownText:p="Unknown",disableAnimation:d=false,...c},f)=>{let[u,y]=useState(false),m=!!(t&&n),h=r!=null&&!m,g=useCallback(b=>{b.stopPropagation(),n&&(db(n),y(true),setTimeout(()=>y(false),2e3));},[n]),k=useMemo(()=>h?jsx("span",{className:$.icon,children:r}):null,[h,r]),M=useMemo(()=>{if(t){let b=m&&typeof t=="string"?ac(t):void 0;return jsx(co,{className:$.text,"data-is-arabic":b,children:t})}return h?null:jsx(co,{className:$.text,children:p})},[t,m,h,p]),L=useMemo(()=>m?jsxs(fr,{className:$.copyButton,role:"button",tabIndex:0,"aria-label":u?"copied":"copy","data-testid":"ChipCopyButton",$copied:u,onClick:g,children:[jsx(mo,{$visible:!u,children:jsx(pr,{})}),jsx(mo,{$visible:u,children:jsx(dr,{})})]}):null,[m,u,g]);return jsxs(mr,{ref:f,"data-testid":"Chip",className:nc($.root,e,`CustomVariant_${a}`),sx:mc(s?{cursor:"not-allowed",opacity:.5}:{},o),$variant:a,$hasIcon:h,$hasCopy:m,$isSelected:i,$disableAnimation:d,...c,children:[k,M,L]})});yr.displayName="Chip";var gr=memo(yr);var uo="os-shared-Slider",D={root:`${uo}-root`,thumb:`${uo}-thumb`,thumbIcon:`${uo}-thumbIcon`};var xr=e=>{let{v2:o}=useTheme(),{grey:t}=o.palette;return jsx(ro,{sx:{width:"5px",height:"8px",pointerEvents:"none"},...e,children:jsxs("svg",{width:"5",height:"8",viewBox:"0 0 5 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M0.459961 0.460449L0.459961 6.59897",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M2.44531 0.460388L2.44531 6.59891",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M4.4375 0.460388L4.4375 6.59891",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"})]})})};var hr=styled(li)(({theme:e})=>{let{brand:o,base:t}=e.v2.palette,r=["0px 0px 1.25px 0px rgba(0, 0, 0, 0.1)","0px 1.25px 1.25px 0px rgba(0, 0, 0, 0.09)","0px 3.75px 2.5px 0px rgba(0, 0, 0, 0.05)","0px 7.5px 2.5px 0px rgba(0, 0, 0, 0.01)","0px 11.25px 3.75px 0px rgba(0, 0, 0, 0)"].join(", ");return {color:o[500],height:8,padding:0,"& .MuiSlider-rail":{backgroundColor:"#CFCFCF",opacity:1,left:0},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:t.white,border:"none",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:r,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:r}},[`& .${D.thumbIcon}`]:{width:"5px",height:"8px",pointerEvents:"none"}}});function ui({children:e,className:o,...t}){return jsxs(SliderThumb,{className:nc(D.thumb,o),...t,children:[e,jsx(xr,{className:D.thumbIcon})]})}var Cr=forwardRef(({className:e,sx:o,value:t,min:r,max:a,step:s,disabled:i,onChange:n,slots:p,...d},c)=>{let f=useCallback((u,y)=>{n(y);},[n]);return jsx(hr,{ref:c,className:nc(D.root,e),sx:o,"data-testid":"Slider",value:t,min:r,max:a,step:s,disabled:i,onChange:f,...d,slots:{thumb:ui,...p}})});Cr.displayName="Slider";var br=memo(Cr);var B="os-shared-Input",x={root:`${B}-root`,label:`${B}-label`,input:`${B}-input`,loadingIcon:`${B}-loadingIcon`,validatedIcon:`${B}-validatedIcon`,hasLabel:`${B}-hasLabel`,sizeSm:`${B}-sizeSm`,sizeMd:`${B}-sizeMd`,disableFocusRing:`${B}-disableFocusRing`,hideArrows:`${B}-hideArrows`,hasTrailingIcon:`${B}-hasTrailingIcon`},F={sm:28,md:32,labelled:40};var Nr=e=>{let{v2:o}=useTheme(),{success:t}=o.palette;return jsx(ro,{viewBox:"0 0 10 8",sx:{width:10,height:8},...e,children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:t[700]})})};var wr=styled(vi)(({theme:e,endAdornment:o})=>{let{base:t,grey:r}=e.v2.palette,a=!!o;return {height:F.md,padding:`0 ${e.v2.spacing(6)}`,paddingLeft:e.v2.spacing(8),...!a&&{paddingRight:e.v2.spacing(12)},border:"none",borderRadius:"inherit",fontSize:"11px",lineHeight:"1.3em",fontWeight:e.v2.typography.fontWeightMedium,color:t.black,backgroundColor:"transparent",display:"flex",alignItems:"center",minWidth:0,"&.Mui-disabled":{color:alpha(t.black,.6)},"& input":{padding:0,minWidth:0,width:"100%",display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& input::placeholder":{color:r[500],fontWeight:e.v2.typography.fontWeightRegular,opacity:1},"& input:-webkit-autofill, & input:-webkit-autofill:hover, & input:-webkit-autofill:focus":{WebkitTextFillColor:t.black,caretColor:t.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},[`&:where(.${x.sizeSm})`]:{height:F.sm},[`&:where(.${x.sizeMd})`]:{height:F.md},[`&:where(.${x.hasTrailingIcon})`]:{paddingRight:e.v2.spacing(28)},[`&:where(.${x.hasLabel})`]:{height:F.labelled,padding:e.v2.spacing(6),paddingLeft:e.v2.spacing(8),paddingTop:e.v2.spacing(18),alignItems:"stretch",marginTop:0,"& input":{margin:"0px !important",padding:"0px !important",lineHeight:"130%"},"& input:focus::placeholder":{opacity:"1 !important"}},[`&:where(.${x.hideArrows})`]:{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}}}),kr=styled(Si)(({theme:e})=>{let{grey:o}=e.v2.palette;return {fontSize:"10px",lineHeight:"1em",color:`${o[500]} !important`,"&.Mui-disabled":{opacity:.7}}}),Ir=styled(ns)(({theme:e})=>({position:"absolute",top:"30%",right:e.v2.spacing(8),color:e.v2.palette.grey[500]})),Br=styled(vo)(({theme:e})=>({position:"absolute",top:"50%",right:e.v2.spacing(8),transform:"translateY(-50%)",display:"flex",alignItems:"center",justifyContent:"center"})),Ni=`&:focus-within:where(:not(.${x.disableFocusRing})), &:where(.Mui-focused):where(:not(.${x.disableFocusRing}))`,wi="&:where(.Mui-warning):focus-within, &:where(.Mui-warning):where(.Mui-focused)",ki="&:where(.Mui-error):focus-within, &:where(.Mui-error):where(.Mui-focused)",Tr=styled(bi)(({theme:e,disabled:o,fullWidth:t})=>{let{grey:r,base:a,brand:s,error:i,warning:n}=e.v2.palette;return {position:"relative",display:"flex",flexDirection:"column",width:t?"100%":"auto",height:F.md,margin:0,border:`1px solid ${o?"#FAFBFB":r[100]}`,borderRadius:e.v2.radius(4),...o&&{backgroundColor:"#FAFBFB"},transition:"border-color 0.15s ease, box-shadow 0.15s ease",[`&:where(.${x.sizeSm})`]:{height:F.sm},[`&:where(.${x.sizeMd})`]:{height:F.md},[`&:where(.${x.hasLabel})`]:{height:F.labelled},"&:where(.Mui-warning)":{borderColor:alpha(n[500],.15)},"&:where(.Mui-error)":{borderColor:alpha(i[500],.15)},"&:where(.Mui-disabled)":{borderColor:"#FAFBFB"},[Ni]:{borderColor:s[500],boxShadow:`0px 0px 4px 0px ${alpha(s[500],.5)}`},[wi]:{borderColor:alpha(n[500],.15),boxShadow:"none"},[ki]:{borderColor:alpha(i[500],.15),boxShadow:"none"},"& .MuiFormLabel-asterisk":{color:i[500],fontSize:"10px",lineHeight:"1em",marginLeft:2},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:e.v2.spacing(8),fontSize:"10px",fontWeight:e.v2.typography.fontWeightMedium,lineHeight:"100%",transform:"translate(0, 6px) scale(1) !important",transformOrigin:"top left"},"& .MuiInputLabel-root.MuiInputLabel-shrink, & .MuiInputLabel-root.MuiFormLabel-filled, & .MuiInputLabel-root.Mui-focused":{transform:"translate(0, -2px) scale(0.95) !important",color:`${r[500]} !important`},"& .MuiInput-root":{flex:1,marginTop:"0 !important"}}});var Pr=forwardRef(({label:e,size:o="md",error:t=false,warning:r=false,disabled:a=false,fullWidth:s=false,placeholder:i,hideArrows:n=false,required:p,loading:d=false,validated:c=false,disableFocusRing:f=false,focused:u,type:y,id:m="Input",className:h,sx:g,value:k,defaultValue:M,onChange:L,endAdornment:b,onKeyDown:v,onWheel:N,...I},W)=>{let z=!!e,Ce=y==="number",be=z&&d&&!a,oo=c&&!d&&!a,pe=be||oo,Se=o==="sm"?x.sizeSm:x.sizeMd,Ka=useCallback(C=>{typeof W=="function"?W(C):W&&(W.current=C);},[W]),Ya=useMemo(()=>nc(x.root,t&&"Mui-error",r&&"Mui-warning",a&&"Mui-disabled",z&&x.hasLabel,Se,f&&x.disableFocusRing,u&&inputClasses.focused,h),[t,r,a,z,Se,f,u,h]),Xa=useMemo(()=>nc(x.input,z&&x.hasLabel,Se,n&&x.hideArrows,pe&&x.hasTrailingIcon),[z,Se,n,pe]),qa=C=>{let Qa=C.metaKey||C.ctrlKey||C.altKey,es=C.key.length===1;(["e","E","+","-"].includes(C.key)||za$1()&&es&&!Qa&&!/^[0-9.]$/.test(C.key))&&C.preventDefault(),v?.(C);},Ja=C=>{C.target instanceof HTMLElement&&C.target.blur(),N?.(C);};return jsxs(Tr,{className:Ya,sx:g,error:t,disabled:a,fullWidth:s,required:p,"data-testid":"Input",focused:u||void 0,children:[z&&jsx(kr,{className:x.label,htmlFor:m??void 0,required:p,shrink:u||void 0,children:e}),jsx(wr,{id:m??void 0,inputRef:Ka,className:Xa,type:y,error:t,disabled:a,required:p,placeholder:i??void 0,"aria-invalid":t||void 0,disableUnderline:true,fullWidth:true,value:k,defaultValue:M,onChange:L,endAdornment:b,onKeyDown:Ce?qa:v,onWheel:Ce?Ja:N,...I}),be&&jsx(Ir,{className:x.loadingIcon,id:m?`${m}-loading-icon`:void 0,size:14.7,thickness:5}),oo&&jsx(Br,{className:x.validatedIcon,id:m?`${m}-validated-icon`:void 0,children:jsx(Nr,{})})]})});Pr.displayName="Input";var Mr=memo(Pr);var yo="os-shared-Textarea",te={root:`${yo}-root`,label:`${yo}-label`,textarea:`${yo}-textarea`},re=3;var Lr=styled(Fi,{shouldForwardProp:e=>!["$error","$hasLabel","$minRows"].includes(e)})(({theme:e,$hasLabel:o=false,$minRows:t=re})=>{let{base:r,grey:a}=e.v2.palette;return {border:"none",borderRadius:"inherit",padding:o?`${e.v2.spacing(32)} ${e.v2.spacing(8)} ${e.v2.spacing(8)}`:`${e.v2.spacing(8)} ${e.v2.spacing(12)}`,fontSize:"11px",fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:r.black,backgroundColor:"transparent",alignItems:"flex-start",width:"100%",...o&&{marginTop:0},"&.Mui-disabled":{color:a[500]},"& textarea":{resize:"vertical",minHeight:o?void 0:`${Math.max(t*20,60)}px`,padding:0,margin:0},"& textarea::placeholder":{color:a[500],fontWeight:e.typography.fontWeightMedium,opacity:1},"& textarea:-webkit-autofill, & textarea:-webkit-autofill:hover, & textarea:-webkit-autofill:focus":{WebkitTextFillColor:r.black,caretColor:r.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"}}}),Fr=styled(Si)(({theme:e})=>{let{grey:o}=e.v2.palette;return {fontSize:"10px",fontWeight:e.typography.fontWeightMedium,color:`${o[500]} !important`}}),zr=styled(bi,{shouldForwardProp:e=>!["$hasLabel","$minRows"].includes(e)})(({theme:e,disabled:o,error:t,fullWidth:r,$hasLabel:a=false,$minRows:s=re})=>{let{grey:i,base:n,error:p}=e.v2.palette,d=t?p[500]:i[100];return {position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",minHeight:a?96+(s-re)*20:void 0,margin:0,border:`1px solid ${d}`,borderRadius:e.v2.radius(4),backgroundColor:o?i[100]:n.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?p[500]:i[50]},"& .MuiFormLabel-asterisk":{color:p[500]},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",display:"flex",alignItems:"flex-start",gap:e.v2.spacing(2),padding:e.v2.spacing(8),fontSize:"10px",fontWeight:e.typography.fontWeightMedium,lineHeight:"100%",transform:"none !important",transformOrigin:"top left",color:`${i[500]} !important`},"& .MuiInputBase-root":{flex:1,marginTop:"0 !important"}}});var Dr=forwardRef(({label:e,error:o=false,disabled:t=false,fullWidth:r=false,placeholder:a,minRows:s=re,maxRows:i,id:n,className:p,sx:d,required:c,...f},u)=>{let y=!!e;return jsxs(zr,{className:nc(te.root,p),sx:d,error:o,disabled:t,fullWidth:r,required:c,variant:"standard","data-testid":"Textarea",$hasLabel:y,$minRows:s,children:[y&&jsx(Fr,{className:te.label,htmlFor:n,shrink:true,disableAnimation:true,required:c,children:e}),jsx(Lr,{id:n,inputRef:u,className:te.textarea,multiline:true,minRows:s,maxRows:i,disabled:t,required:c,placeholder:a??void 0,"aria-invalid":o||void 0,fullWidth:true,$error:o,$hasLabel:y,$minRows:s,...f})]})});Dr.displayName="Textarea";var Ar=memo(Dr);var U="os-shared-Accordion",P={root:`${U}-root`,summary:`${U}-summary`,content:`${U}-content`,labelStartAdornment:`${U}-labelStartAdornment`,labelContent:`${U}-labelContent`,labelEndAdornment:`${U}-labelEndAdornment`,expandIcon:`${U}-expandIcon`};var Wr=()=>{let{v2:e}=useTheme(),{base:o}=e.palette;return jsx("svg",{width:"9",height:"5",viewBox:"0 0 9 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.0501709 0.427246C0.0493864 0.478467 0.0592757 0.529176 0.0784912 0.57666C0.0976579 0.623937 0.125505 0.667471 0.161499 0.703613L3.82556 4.47803C3.86116 4.51465 3.90353 4.54403 3.95056 4.56396C3.99773 4.58391 4.04876 4.59422 4.09998 4.59424C4.15123 4.59424 4.20218 4.58392 4.24939 4.56396C4.29655 4.54401 4.33969 4.51476 4.37537 4.47803L8.03845 0.703613C8.07407 0.667816 8.10232 0.625348 8.12146 0.578613C8.14069 0.531638 8.15017 0.480932 8.14978 0.430176C8.14935 0.379519 8.13942 0.329298 8.11951 0.282715C8.09956 0.236042 8.06999 0.19405 8.03357 0.158691C7.99716 0.123349 7.95384 0.0952198 7.90662 0.0766602C7.8595 0.0582058 7.80878 0.0491929 7.75818 0.050293C7.70763 0.0514427 7.65792 0.0629948 7.61169 0.0834961C7.56537 0.104067 7.52346 0.13358 7.48865 0.17041L4.09998 3.65967L0.711304 0.17041C0.65912 0.115154 0.592066 0.0759001 0.517944 0.059082C0.443585 0.0422622 0.365385 0.0481013 0.294312 0.0756836C0.22324 0.103266 0.162075 0.15178 0.11853 0.214355C0.0750125 0.276905 0.05135 0.351058 0.0501709 0.427246Z",fill:o.black,stroke:o.black,strokeWidth:"0.1"})})};var Vr=styled(Ei)(({theme:e,square:o})=>{let{grey:t,base:r}=e.v2.palette;return {overflow:"hidden",border:`1px solid ${t[100]}`,...!o&&{borderRadius:e.v2.radius(8)},margin:0,background:r.white,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0},"&.Mui-disabled":{opacity:.5,pointerEvents:"none"}}}),Or=styled(Hi)(({theme:e})=>({background:"#fbfbfb",minHeight:"40px",height:"40px",padding:e.v2.spacing(10),"&.Mui-expanded":{minHeight:"40px",height:"40px"},"& .MuiAccordionSummary-content":{margin:0,display:"flex",flexDirection:"row",alignItems:"center",flexGrow:1,minWidth:0,gap:e.v2.spacing(10)},"& .MuiAccordionSummary-expandIconWrapper":{marginLeft:e.v2.spacing(8)}})),Zr=styled(Wi)(({theme:e})=>{let{grey:o}=e.v2.palette;return {padding:0,borderTop:`1px solid ${o[100]}`}}),jr=styled(vo)({display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:"rotate(0deg)"}),Ur=styled(vo)({minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"});var Kr=forwardRef(({expanded:e,defaultExpanded:o=false,onChange:t,label:r,content:a,labelStartAdornment:s,labelEndAdornment:i,slotProps:n={},disabled:p=false,expandIcon:d,className:c,sx:f,...u},y)=>{let m=e!==void 0,[h,g]=useState(o),k=m?e:h,M=(oo,pe)=>{m||g(pe),t?.(pe);},{showArrow:L=true,...b}=n.label??{},{className:v,sx:N,...I}=n.root??{},{className:W,sx:z}=n.summary??{},Ce=d??(L?jsx(jr,{component:"span",className:P.expandIcon,children:jsx(Wr,{})}):null),be=jsxs(Fragment,{children:[s!=null&&jsx(vo,{component:"span",className:P.labelStartAdornment,...n.labelStartAdornment,sx:mc({flexShrink:0},n.labelStartAdornment?.sx),children:s},"label-start-adornment"),jsx(Ur,{component:"span",className:P.labelContent,...n.labelContent,sx:n.labelContent?.sx,children:r},"label-content"),i!=null&&jsx(vo,{component:"span",className:P.labelEndAdornment,...n.labelEndAdornment,sx:mc({flexShrink:0,marginLeft:"auto"},n.labelEndAdornment?.sx),children:i},"label-end-adornment")]});return jsxs(Vr,{ref:y,"data-testid":"Accordion",disabled:p,expanded:k,onChange:M,className:nc(P.root,c,v),sx:mc(f??{},N),...I,...u,children:[jsx(Or,{className:nc(P.summary,W),sx:mc({},z),expandIcon:Ce,"aria-expanded":k,...b,children:be}),jsx(Zr,{className:P.content,...n.content,children:a})]})});Kr.displayName="Accordion";var Yr=memo(Kr);var Xr="os-shared-Menu",ye={popper:`${Xr}-popper`,panel:`${Xr}-panel`};var Jr=styled(_i)({}),Qr=styled(vo,{shouldForwardProp:e=>e!=="$showShadow"})(({theme:e,$showShadow:o})=>{let{grey:t,base:r}=e.v2.palette;return {borderRadius:e.v2.radius(4),background:r.white,width:"max-content",cursor:"pointer",boxShadow:e.v2.elevation[200],display:"flex",flexDirection:"column",overflowY:"auto",maxHeight:"432px","&:focus":{outline:"none"},".menu-item + .menu-item":{borderTop:`1px solid ${t[100]}`},"&::after":{content:o?'""':"none",width:"100%",height:"34px",position:"sticky",bottom:0,pointerEvents:"none",background:`linear-gradient(180deg, rgba(255,255,255,0) 0%, ${r.white} 100%)`}}});var oa=forwardRef(({open:e,anchorEl:o,children:t,placement:r,popperSx:a,panelProps:s,className:i,sx:n,...p},d)=>{let[c,f]=useState(false),y=useMemo(()=>Children.count(t),[t])>12&&c,{onScroll:m,className:h,sx:g,...k}=s??{},M=useCallback(b=>{f((b.currentTarget.scrollTop??0)>0),m?.(b);},[m]),L=nc(ye.panel,h,"MuiPopper-dropdown");return jsx(Jr,{ref:d,className:nc(ye.popper,i),"data-testid":"Menu",open:e,anchorEl:o,placement:r??"bottom-start",sx:a,...p,children:jsx(Qr,{$showShadow:y,onScroll:M,className:L,sx:mc(n??{},g),...k,children:t})})});oa.displayName="Menu";var ta=memo(oa);var ge="os-shared-Dialog",A={root:`${ge}-root`,title:`${ge}-title`,divider:`${ge}-divider`,content:`${ge}-content`,actions:`${ge}-actions`};var ra=styled(Qi,{shouldForwardProp:e=>e!=="$hasBlurBackdrop"})(({theme:e,$hasBlurBackdrop:o})=>{let{base:t}=e.v2.palette,r=o?e.v2.blur[6]:"none";return {"& .MuiDialog-paper":{backgroundColor:t.white,boxShadow:"0px 0px 16px 0px rgba(0, 0, 0, 0.11)",borderRadius:e.v2.radius(8)},"& .MuiModal-backdrop":{background:alpha("#000",.2),...o&&{backdropFilter:r,WebkitBackdropFilter:r}}}}),aa=styled(tl)(({theme:e})=>{let{base:o}=e.v2.palette;return {padding:`${e.v2.spacing(16)} ${e.v2.spacing(16)} ${e.v2.spacing(12)}`,fontSize:"13px",fontWeight:e.typography.fontWeightBolder,lineHeight:"normal",color:o.black,whiteSpace:"nowrap"}}),sa=styled("hr")(({theme:e})=>{let{grey:o}=e.v2.palette;return {display:"block",border:"none",borderTop:`1px solid ${o[100]}`,margin:0,width:"100%",flexShrink:0}}),na=styled(ol,{shouldForwardProp:e=>e!=="$hasHeading"})(({theme:e,$hasHeading:o})=>{let{grey:t}=e.v2.palette;return {padding:`${o?e.v2.spacing(12):e.v2.spacing(16)} ${e.v2.spacing(16)} ${e.v2.spacing(16)}`,fontSize:"12px",fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:t[500]}}),ia=styled(el)(({theme:e})=>({padding:`0 ${e.v2.spacing(16)} ${e.v2.spacing(16)}`,gap:e.v2.spacing(8),justifyContent:"flex-end","& > :not(style) ~ :not(style)":{marginLeft:0}}));var pa=forwardRef(({heading:e,actions:o,children:t,onClose:r,open:a,hasBlurBackdrop:s,className:i,sx:n,...p},d)=>jsxs(ra,{ref:d,"data-testid":"Dialog",open:a,onClose:r,$hasBlurBackdrop:s,className:nc(A.root,i),sx:n,...p,children:[e?jsxs(Fragment,{children:[jsx(aa,{className:A.title,children:e}),jsx(sa,{"aria-hidden":true,className:A.divider})]}):null,t!=null?jsx(na,{className:A.content,$hasHeading:!!e,children:t}):null,o?jsx(ia,{className:A.actions,children:o}):null]}));pa.displayName="Dialog";var da=memo(pa);var xo="os-shared-MenuItem",G={root:`${xo}-root`,indicator:`${xo}-indicator`,disabled:`${xo}-disabled`},K={unchecked:"unchecked",checked:"checked",indeterminate:"indeterminate"};var ma=()=>{let{v2:e}=useTheme(),{brand:o,base:t}=e.palette;return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:o[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74245C9.04243 3.94469 9.05652 4.2875 8.86537 4.50814L5.64586 8.22426C5.55146 8.33322 5.41909 8.39666 5.27942 8.39987C5.13975 8.40308 5.0049 8.34579 4.90612 8.24127L3.15002 6.38321C2.94999 6.17157 2.94999 5.82843 3.15002 5.61679C3.35004 5.40516 3.67435 5.40516 3.87437 5.61679L5.2522 7.07463L8.11024 3.77574C8.30138 3.55511 8.62538 3.5402 8.83391 3.74245Z",fill:t.white})]})},fa=()=>jsx("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("rect",{x:"1.19998",y:"1.19998",width:"9.6",height:"9.6",rx:"1.8",fill:"#FAFBFB",stroke:"#D2D5D8",strokeWidth:"1.2"})}),ua=()=>{let{v2:e}=useTheme(),{brand:o}=e.palette;return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"2.4",fill:o[500],stroke:o[500],strokeWidth:"1.2"}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:"#FAFBFB"})]})};var xa=styled(vo,{shouldForwardProp:e=>e!=="$isDisabled"})(({theme:e,$isDisabled:o=false})=>{let{base:t}=e.v2.palette;return {padding:e.v2.spacing(8),position:"relative",display:"flex",alignItems:"center",gap:e.v2.spacing(8),textTransform:"capitalize",cursor:o?"not-allowed":"pointer",flex:1,fontSize:e.typography.subtitle1.fontSize,opacity:o?.5:1,color:t.black}}),ho=styled("span")({width:14,height:14,flexShrink:0,pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center","& svg":{display:"block"}});function dl(e,o){return o?K.indeterminate:e?K.checked:K.unchecked}var cl={[K.unchecked]:fa,[K.checked]:ma,[K.indeterminate]:ua};function ml(e,o,t){if(e===null)return null;if(e!==void 0)return jsx(ho,{className:G.indicator,"aria-hidden":true,children:e});let r=dl(o,t),a=cl[r];return jsx(ho,{className:G.indicator,"aria-hidden":true,children:jsx(a,{})})}var ha=forwardRef(({isSelected:e=false,isDisabled:o=false,isIndeterminate:t=false,startAdornment:r,onClick:a,children:s,className:i,sx:n,...p},d)=>{let c=nc(G.root,"menu-item",o&&G.disabled,i);return jsxs(xa,{ref:d,"data-testid":"MenuItem",className:c,sx:n,onClick:o?void 0:a,$isDisabled:o,...p,children:[ml(r,e,t),s]})});ha.displayName="MenuItem";var Ca=memo(ha);var bo="os-shared-ToggleButtons",se={root:`${bo}-root`,button:`${bo}-button`,overlay:`${bo}-overlay`},So={sm:"sm",md:"md"},ne=So.sm,Ye={sm:{buttonHeight:20,minWidth:20,fontSize:8,containerRadius:3,iconSlot:11},md:{buttonHeight:28,minWidth:28,fontSize:11,containerRadius:4,iconSlot:14}},ba="left 0.25s ease-in-out, width 0.25s ease-in-out";function ul(e,o){let{palette:t}=e.v2;return {backgroundColor:"transparent",boxShadow:"none",color:o?t.foreground.primary:t.foreground.secondary,opacity:o?1:.5}}var Sa=styled(vo,{shouldForwardProp:e=>e!=="$size"})(({theme:e,$size:o=ne})=>{let t=Ye[o];return {position:"relative",backgroundColor:e.v2.palette.background.secondary,display:"inline-flex",alignItems:"center",padding:e.v2.spacing(2),borderRadius:e.v2.radius(t.containerRadius)}}),va=styled(vo,{shouldForwardProp:e=>e!=="$left"&&e!=="$width"&&e!=="$size"&&e!=="$ready"})(({theme:e,$left:o,$width:t,$size:r=ne,$ready:a})=>{let s=Ye[r];return {position:"absolute",top:e.v2.spacing(2),left:o,width:t,height:s.buttonHeight,borderRadius:e.v2.radius(2),backgroundColor:e.v2.palette.background.primary,boxShadow:e.v2.elevation[100],transition:a?ba:"none",pointerEvents:"none",zIndex:1}}),Na=styled(vo,{shouldForwardProp:e=>e!=="$isActive"&&e!=="$size"})(({theme:e,$isActive:o=false,$size:t=ne})=>{let r=Ye[t];return {boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,position:"relative",zIndex:2,height:r.buttonHeight,width:"auto",minWidth:r.minWidth,borderRadius:e.v2.radius(2),fontSize:r.fontSize,fontWeight:e.typography.fontWeightMedium,lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",cursor:"pointer",transition:"opacity 0.25s ease-in-out, color 0.25s ease-in-out",...ul(e,o),"& img, & svg":{width:r.iconSlot,height:r.iconSlot,display:"block"}}});function Ia({options:e,activeKey:o,onChange:t,size:r=ne,containerProps:a,buttonProps:s,id:i,className:n,sx:p,"data-testid":d},c){let{className:f,sx:u,...y}=a??{},m=nc(se.root,n,f),h=useRef([]),[g,k]=useState({left:0,width:0}),[M,L]=useState(false),b=useCallback(()=>{let v=e.findIndex(I=>I.key===o),N=h.current[v];N&&k({left:N.offsetLeft,width:N.offsetWidth});},[o,e]);return useLayoutEffect(()=>{b(),L(true);},[b]),useEffect(()=>{let v=h.current.filter(I=>I!=null);if(v.length===0||typeof ResizeObserver>"u")return;let N=new ResizeObserver(()=>{b();});return v.forEach(I=>N.observe(I)),()=>N.disconnect()},[e,b]),jsxs(Sa,{ref:c,id:i,"data-testid":d??i??"ToggleButtons",className:m,$size:r,sx:mc(p??{},u),...y,children:[g.width>0?jsx(va,{className:se.overlay,$left:g.left,$width:g.width,$size:r,$ready:M,"aria-hidden":true}):null,e.map((v,N)=>jsx(Na,{className:se.button,$isActive:o===v.key,$size:r,onClick:()=>t(v.key),...s,ref:I=>{h.current[N]=I;},children:v.content},v.key))]})}var Sl=forwardRef(Ia);Ia.displayName="ToggleButtons";var Ba=memo(Sl);var Nl="os-shared-LazyImage",Xe={root:`${Nl}-root`},qe={opacity:()=>import('react-lazy-load-image-component/src/effects/opacity.css'),blur:()=>import('react-lazy-load-image-component/src/effects/blur.css'),"black-and-white":()=>import('react-lazy-load-image-component/src/effects/black-and-white.css')};var Ta=styled(vo)({display:"inline-flex",justifyContent:"center",alignItems:"center"});function Je(e){return e!=null&&e in qe}var Ml=LazyLoadImage,Pa=forwardRef(({effect:e,wrapperProps:o,id:t,className:r,sx:a,placeholderSrc:s,...i},n)=>{let[p,d]=useState(Je(e));if(useEffect(()=>{if(!Je(e)){d(false);return}d(true),qe[e]().finally(()=>{d(false);});},[e]),p)return null;let{className:c,sx:f,style:u,...y}=o??{},m=Je(e)||!!s||u!=null;return jsx(Ta,{component:"span",...y,className:nc(Xe.root,c??r),sx:f!=null?mc(a??{},f):a,children:jsx(Ml,{...i,ref:n,effect:e,placeholderSrc:s,id:t,"data-testid":"LazyImage",wrapperProps:m?{style:{display:"flex",justifyContent:"center",alignItems:"center",...u}}:void 0})})});Pa.displayName="LazyImage";var Ma=memo(Pa);var wo="os-shared-FieldFeedback",ie={root:`${wo}-root`,icon:`${wo}-icon`,message:`${wo}-message`};var za=({severity:e="error",...o})=>{let t=useTheme(),{warning:r,error:a}=t.v2.palette,s=e==="warning"?r[500]:a[500];return jsx(ro,{sx:{width:12,height:12},...o,children:jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M6 12C9.30838 12 12 9.30838 12 6C12 2.69162 9.30838 -2.35309e-07 6 -5.24537e-07C2.69162 -8.13764e-07 8.13764e-07 2.69162 5.24537e-07 6C2.35309e-07 9.30838 2.69162 12 6 12ZM6 11.1C3.17801 11.1 0.9 8.82198 0.9 6C0.9 3.17802 3.17802 0.899999 6 0.899999C8.82199 0.899999 11.1 3.17802 11.1 6C11.1 8.82198 8.82198 11.1 6 11.1ZM6 9C6.15913 9 6.31174 8.93679 6.42426 8.82426C6.53679 8.71174 6.6 8.55913 6.6 8.4C6.6 8.24087 6.53679 8.08826 6.42426 7.97574C6.31174 7.86321 6.15913 7.8 6 7.8C5.84087 7.8 5.68826 7.86321 5.57574 7.97574C5.46321 8.08826 5.4 8.24087 5.4 8.4C5.4 8.55913 5.46321 8.71174 5.57574 8.82426C5.68826 8.93679 5.84087 9 6 9ZM6.00703 6.90644C6.12628 6.90458 6.23991 6.85546 6.32296 6.76988C6.40602 6.6843 6.45171 6.56925 6.45 6.45L6.45 3.15C6.45084 3.09037 6.43983 3.03116 6.41759 2.97583C6.39535 2.92049 6.36234 2.87013 6.32047 2.82766C6.2786 2.7852 6.22871 2.75148 6.17369 2.72846C6.11868 2.70544 6.05964 2.69359 6 2.69359C5.94036 2.69359 5.88132 2.70544 5.82631 2.72846C5.77129 2.75148 5.7214 2.7852 5.67953 2.82766C5.63766 2.87013 5.60465 2.92049 5.58241 2.97583C5.56017 3.03116 5.54916 3.09037 5.55 3.15L5.55 6.45C5.54914 6.51023 5.56037 6.57002 5.58304 6.62583C5.60571 6.68163 5.63935 6.73232 5.68197 6.77489C5.72459 6.81745 5.77533 6.85103 5.83116 6.87363C5.887 6.89623 5.9468 6.90739 6.00703 6.90644Z",fill:s})})})},Ra=e=>{let{v2:o}=useTheme(),{success:t}=o.palette;return jsx(ro,{sx:{width:12,height:12},...e,children:jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:t[700]})})})},Da=()=>jsx("svg",{width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:jsx("path",{d:"M6 7.5V5.5M6 3.5H6.005M11 5.5C11 8.26142 8.76142 10.5 6 10.5C3.23858 10.5 1 8.26142 1 5.5C1 2.73858 3.23858 0.5 6 0.5C8.76142 0.5 11 2.73858 11 5.5Z",stroke:"currentColor",strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})});function Qe(e,o){let t=o??"error",{brand:r,success:a,error:s,status:i}=e.v2.palette;switch(t){case "warning":return {borderColor:i.warning.subtle,backgroundColor:i.warning.subtle,textColor:i.warning.default};case "success":return {borderColor:alpha(a[700],.15),backgroundColor:alpha(a[700],.15),textColor:a[700]};case "info":return {borderColor:alpha(r[500],.12),backgroundColor:alpha(r[500],.12),textColor:r[500]};case "error":return {borderColor:alpha(s[500],.15),backgroundColor:alpha(s[500],.15),textColor:s[500]};default:return t}}var Aa=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:o})=>{let{backgroundColor:t,textColor:r}=Qe(e,o);return {display:"flex",alignItems:"flex-start",gap:e.v2.spacing(4),minHeight:"32px",padding:`${e.v2.spacing(8)} ${e.v2.spacing(12)}`,background:t,color:r,borderRadius:`0 0 ${e.v2.radius(4)} ${e.v2.radius(4)}`}}),Ea=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:o})=>{let{textColor:t}=Qe(e,o);return {fontSize:"10px",lineHeight:"16px",display:"block",color:t,wordBreak:"break-word"}}),Wa=styled("span")({width:12,height:12,flexShrink:0,marginTop:"2px",display:"inline-flex",alignItems:"center",justifyContent:"center","& svg":{width:12,height:12,display:"block"}});function zl(e){switch(e){case "success":return jsx(Ra,{});case "info":return jsx(Da,{});case "error":case "warning":return jsx(za,{severity:e})}}var Ha=forwardRef(({type:e="error",message:o,icon:t,className:r,sx:a},s)=>{if(!Cc(o))return null;let i=e;return jsxs(Aa,{ref:s,"data-testid":"FieldFeedback",className:nc(ie.root,r),sx:a,$feedbackType:i,children:[t??jsx(Wa,{className:ie.icon,children:zl(i)}),jsx(Ea,{className:ie.message,$feedbackType:i,children:o})]})});Ha.displayName="FieldFeedback";var Va=memo(Ha);var Dl="os-shared-ScrollLoader",eo={root:`${Dl}-root`};var Oa=styled(Al)({overflow:"auto",height:"100%",maxHeight:"100%"});function Io(e,o=50){return e.scrollHeight-(e.scrollTop+e.clientHeight)<=o}var _a=forwardRef(({loadMoreItems:e,hasMore:o,isLoading:t=false,isFetchingNextPage:r,children:a,className:s,sx:i,id:n,...p},d)=>{let[c,f]=useState(false),u=useRef(e),y=useRef(null);u.current=e;let m=useCallback(()=>{o&&!r&&u.current();},[o,r]),h=useCallback(()=>{let g=y.current;g&&Io(g)&&m();},[m]);return useEffect(()=>{let g=y.current;if(g)return g.addEventListener("scroll",h),()=>g.removeEventListener("scroll",h)},[h]),useEffect(()=>{let g=y.current;if(!g||t||c)return;let k=window.setTimeout(()=>{f(true),Io(g)&&m();},1e3);return ()=>window.clearTimeout(k)},[t,m,c]),jsx(Oa,{ref:g=>{y.current=g,typeof d=="function"?d(g):d&&(d.current=g);},id:n,"data-testid":"ScrollLoader",className:nc(eo.root,s),sx:i,...p,children:a})});_a.displayName="ScrollLoader";var Ga=memo(_a);
2
2
  export{ie as $,Ve as A,jt as B,R as C,Jt as D,Q as E,sr as F,$ as G,gr as H,D as I,br as J,x as K,Mr as L,te as M,Ar as N,P as O,Yr as P,ye as Q,ta as R,A as S,da as T,G as U,Ca as V,se as W,So as X,Ba as Y,Xe as Z,Ma as _,T as a,Qe as aa,Eo as b,Va as ba,Ne as c,eo as ca,Vo as d,Ga as da,V as e,Xo as f,we as g,Qo as h,ke as i,tt as j,Be as k,pt as l,O as m,gt as n,w as o,vt as p,Fe as q,kt as r,ze as s,Pt as t,Ae as u,Ft as v,Ee as w,Dt as x,We as y,Vt as z};
@@ -1 +1 @@
1
- import {k,j as j$1,g as g$1}from'./chunk-ISC5KT5E.js';import {j as j$2,r as r$1,R as R$1,V}from'./chunk-6GZFEPN6.js';import {r}from'./chunk-JKW2LY7R.js';import {ya,nc,cc}from'./chunk-Z2DUFVI5.js';import {Yc,Xc,jb,Bn}from'./chunk-3M2GZVQW.js';import {memo,forwardRef,useState,useRef,useMemo,useEffect,useCallback}from'react';import m from'@mui/material/Box';import Ge from'@mui/material/MenuItem';import je from'@mui/material/Select';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';import eo from'@mui/material/ClickAwayListener';var c="os-shared-WindowServices",s={root:`${c}-root`,bar:`${c}-bar`,tabsBar:`${c}-tabsBar`,tabs:`${c}-tabs`,tab:`${c}-tab`,trigger:`${c}-trigger`,triggerLabel:`${c}-triggerLabel`,triggerArrow:`${c}-triggerArrow`,menuItem:`${c}-menuItem`,contextMenu:`${c}-contextMenu`},D="os-shared-WindowSkeleton",g={root:`${D}-root`,bar:`${D}-bar`,body:`${D}-body`,rows:`${D}-rows`,row:`${D}-row`},re="Open in a new window",R="en",ie=51,ae=8,se=3,de=10,le=64,pe=4;var ce=styled(m,{shouldForwardProp:e=>e!=="$isDragging"})(({$isDragging:e=false})=>({cursor:e?"move":"default",position:"relative",zIndex:1,margin:0,backgroundColor:j$1,backdropFilter:k})),me=styled(m)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(8),overflow:"hidden",height:"4.1875rem",paddingBottom:"1.2rem",paddingInline:e.v2.spacing(32),paddingTop:e.v2.spacing(4),backgroundColor:"transparent",'[data-window-maximized="true"] &':{height:e.v2.spacing(44),paddingBottom:e.v2.spacing(10),paddingTop:0}})),we=styled(m)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(8),userSelect:"none",width:"max-content",maxWidth:"100%"})),Ke=ya(),ue=styled(j$2,{shouldForwardProp:e=>e!=="$title"})(({theme:e,$title:n})=>{let{base:o}=e.v2.palette;return {position:"relative",fontWeight:e.typography.fontWeightMedium,padding:e.spacing(1),color:o.black,fontSize:"11px",lineHeight:"15px",borderRadius:e.shape.borderRadius,transition:e.transitions.create(["backgroundColor","boxShadow"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.complex}),whiteSpace:"nowrap",textTransform:"capitalize","&:hover, &.active":{backgroundColor:o.white,boxShadow:e.shadows[2],cursor:"pointer",position:"relative",color:"transparent","&:after":{...n&&{content:`"${n}"`},color:o.black,fontWeight:e.v2.typography.fontWeightBold,overflow:"hidden",position:"absolute",top:0,bottom:0,right:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",letterSpacing:Ke==="safari"?"-1px":"",padding:8,borderRadius:e.shape.borderRadius}}}}),ge=styled(je)(({theme:e})=>({padding:"0.25rem 0.34rem 0.25rem 0.5rem",display:"flex",justifyContent:"center",alignItems:"center",gap:"0.19rem",width:"auto",flexShrink:0,borderRadius:"0.5rem",boxShadow:e.shadows[5],cursor:"pointer",outline:e.palette.background.default,border:"none",backgroundColor:e.palette.background.default,"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"& .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"& .MuiMenuList-root":{padding:"0px !important",margin:0},"& .MuiSelect-outlined":{padding:"0px !important"}})),fe=styled("p")(({theme:e})=>({color:e.palette.text.primary,fontSize:"0.68rem",fontWeight:600,textAlign:"center",padding:"0 !important",margin:"0 !important",textTransform:"capitalize",".MuiOutlinedInput-input":{paddingRight:0},"MuiInputBase-input":{paddingRight:0},".MuiSelect-select":{paddingRight:0}})),Se=styled(Ge)(({theme:e})=>({display:"flex",height:"2.5rem",width:"10.43rem",alignItems:"center",gap:"0.5",alignSelf:"stretch",transition:"boxShadow 0.2s ease-in-out",backgroundColor:"inherit !important",margin:0,padding:0,paddingTop:"0px !important",paddingBottom:"0px !important","&:hover":{boxSizing:"border-box",boxShadow:`${e.shadows[3]}`}})),xe=styled("p")(({theme:e})=>({fontSize:"0.75rem",fontWeight:500,color:e.palette.text.primary,paddingLeft:"1rem !important",transition:"boxShadow 0.2s ease-in-out"})),ye=styled("img")(()=>({width:"0.75rem",height:"auto",padding:0,paddingBottom:.5,margin:0,verticalAlign:"middle",boxSizing:"border-box"})),G=styled(m)(()=>({display:"flex",flexDirection:"column",height:"100%",overflow:"hidden",borderRadius:"inherit",backgroundColor:"transparent"})),be=styled(m)(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"flex-start",gap:e.v2.spacing(8),height:"4.1875rem",flexShrink:0,paddingTop:e.v2.spacing(10),paddingInline:e.v2.spacing(32),paddingBottom:"1.2rem",backgroundColor:j$1,backdropFilter:k})),he=styled(m)(({theme:e})=>({flex:1,minHeight:0,backgroundColor:e.v2.palette.base.white})),ve=styled(m)(({theme:e})=>({height:"100%",overflow:"hidden",backgroundColor:e.v2.palette.base.white,padding:`${e.v2.spacing(8)} ${e.v2.spacing(32)}`})),Ce=styled(m)(({theme:e})=>({display:"flex",flexDirection:"row",gap:e.v2.spacing(8),alignItems:"center",paddingTop:e.v2.spacing(8),paddingBottom:e.v2.spacing(8),height:56,borderTop:`1px solid ${e.v2.palette.border.default}`})),Le=styled(m)(()=>({display:"flex",flexDirection:"column",gap:"4px"})),ke=styled(m)(()=>({display:"flex",gap:"4px"}));function Ye({className:e}){return jsx(ye,{src:(e??"").includes("MuiSelect-iconOpen")?Yc:Xc,alt:"dropdown",className:nc(s.triggerArrow)})}var We=memo(Ye);function oo({name:e,code:n,isActive:o,openInNewWindowLabel:l,onOpenService:u,onOpenServiceInNewWindow:d,className:f}){let[p,v]=useState(null),C=!!p,L=useRef(null),b=useCallback(()=>{v(null);},[]),B=useCallback(r=>{L.current={x:r.clientX,y:r.clientY};},[]),$=useCallback(r=>{let S=L.current;if(L.current=null,S&&Math.hypot(r.clientX-S.x,r.clientY-S.y)>5){r.preventDefault(),r.stopPropagation();return}r.preventDefault(),r.stopPropagation(),u(n);},[n,u]),k=useCallback(r=>{r.preventDefault(),r.stopPropagation(),v(r.currentTarget);},[]),W=useCallback(r=>{r.preventDefault(),r.stopPropagation(),d?.(n),b();},[n,b,d]);return jsx(eo,{onClickAway:b,children:jsxs(m,{component:"span",sx:{display:"contents"},children:[jsx(ue,{$title:e,onClick:$,onPointerDown:B,onContextMenu:k,className:nc(s.tab,o&&"active",f),children:e}),jsx(R$1,{open:C,anchorEl:p,placement:"bottom-start",className:nc(s.contextMenu),children:jsx(V,{startAdornment:null,onClick:W,className:nc(s.menuItem),children:jsxs(m,{component:"span",sx:{display:"inline-flex",alignItems:"center",gap:"4px"},children:[jsx("img",{src:jb,alt:"new-window-icon"}),l]})})})]})})}var Re=memo(oo);function Ne(e){return e===Bn.reports.code||e===Bn.upload.code}function P(e){if(!e)return "";try{return decodeURIComponent(e)}catch{return e}}function Me(e,n,o){let l=P(n).toLowerCase(),u=(e??[]).filter(d=>P(d.code).toLowerCase()===l)?.[0];return cc(u?.name??[],o??R)||""}function j(e,n){return cc(e.name,n??R)||""}function Te(e,n){return P(e).toLowerCase()===P(n).toLowerCase()}var Oe=forwardRef(function({serviceCode:n="",services:o,onOpenService:l,onOpenServiceInNewWindow:u,language:d=R,openInNewWindowLabel:f=re,id:p,className:v,sx:C,"data-testid":L,"data-id":b},B){let[$,k]=useState(false),[W,r$1]=useState(0),[S,$e]=useState(false),[Ae,K]=useState(false),[Ee,{width:A}]=r(),X=useRef(null),E=useMemo(()=>Me(o,n,d),[o,n,d]);useEffect(()=>{S||r$1(X.current?.offsetWidth??0);},[S,o,d]),useEffect(()=>{if(A<=0||W<=0)return;let i=W+le+ie+ae+se+de;$e(A<i);},[A,W]);let He=useCallback(()=>{k(true);},[]),ze=useCallback(()=>{k(false);},[]),_e=useCallback(()=>{k(false);},[]),Fe=useCallback(()=>{K(i=>!i);},[]),Ue=useCallback(i=>{l?.(i),K(false);},[l]),Ve=useCallback(i=>{l?.(i);},[l]);return o.length?jsx(ce,{ref:B,id:p,"data-testid":L??p??"WindowServices",...(b??p)!=null?{"data-id":b??p}:null,$isDragging:$,onPointerDown:He,onPointerUp:ze,onPointerCancel:_e,className:nc(s.root,s.bar,g$1,v),sx:C,children:jsxs(me,{ref:Ee,className:nc(s.tabsBar),children:[!S&&jsx(we,{ref:X,className:nc(s.tabs),children:o.map((i,H)=>jsx(Re,{name:j(i,d),code:i.code,isActive:Te(n,i.code),openInNewWindowLabel:f,onOpenService:Ve,onOpenServiceInNewWindow:u},`service-item-${i.code}-${H}`))}),S&&jsx(ge,{open:Ae,onClick:Fe,displayEmpty:true,inputProps:{"aria-label":E||"Window services"},MenuProps:{anchorOrigin:{vertical:40,horizontal:83},PaperProps:{style:{borderRadius:"0.25rem",width:"10.43rem",padding:0}},MenuListProps:{disablePadding:true}},value:E,IconComponent:We,renderValue:i=>jsx(fe,{className:nc(s.triggerLabel),children:i}),sx:{"& .MuiOutlinedInput-root.MuiList-root-MuiMenu-list":{paddingTop:"0px !important",paddingBottom:"0px !important"}},className:nc(s.trigger),children:o.map((i,H)=>{let z=j(i,d);return z.toLowerCase()===E?.toLowerCase()?null:jsx(Se,{value:z,onClick:Y=>{Y.preventDefault(),Y.stopPropagation(),Ue(i.code);},className:nc(s.menuItem),children:jsx(xe,{children:z})},`option-${i.code}-${H}`)})})]})}):null});Oe.displayName="WindowServices";var ao=memo(Oe);var Be=forwardRef(function({appCode:n,id:o,className:l,sx:u,"data-testid":d,"data-id":f},p){return Ne(n)?jsx(G,{ref:p,id:o,"data-testid":d??o??"WindowSkeleton",...(f??o)!=null?{"data-id":f??o}:null,className:nc(g.root,g$1,l),sx:u,children:jsx(ve,{className:nc(g.rows,g.body),children:Array.from({length:pe}).map((v,C)=>jsxs(Ce,{className:nc(g.row),children:[jsx(r$1,{variant:"rounded",width:32,height:32}),jsxs(Le,{children:[jsx(r$1,{width:80,height:12.29}),jsxs(ke,{children:[jsx(r$1,{width:50,height:12.29}),jsx(r$1,{width:125,height:12.29})]})]})]},C))})}):jsxs(G,{ref:p,id:o,"data-testid":d??o??"WindowSkeleton",...(f??o)!=null?{"data-id":f??o}:null,className:nc(g.root,g$1,l),sx:u,children:[jsxs(be,{className:nc(g.bar),children:[jsx(r$1,{variant:"rounded",width:60,height:31}),jsx(r$1,{variant:"rounded",width:60,height:31}),jsx(r$1,{variant:"rounded",width:60,height:31})]}),jsx(he,{className:nc(g.body)})]})});Be.displayName="WindowSkeleton";var co=memo(Be);export{s as a,g as b,ao as c,co as d};
1
+ import {k,j as j$1,g as g$1}from'./chunk-ISC5KT5E.js';import {j as j$2,r as r$1,R as R$1,V}from'./chunk-4NLQZJVN.js';import {r}from'./chunk-OSXKJYUX.js';import {ya,nc,cc}from'./chunk-EP5VELEJ.js';import {Zc,Yc,jb,Cn}from'./chunk-XTJZTHR6.js';import {memo,forwardRef,useState,useRef,useMemo,useEffect,useCallback}from'react';import m from'@mui/material/Box';import Ge from'@mui/material/MenuItem';import je from'@mui/material/Select';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';import eo from'@mui/material/ClickAwayListener';var c="os-shared-WindowServices",s={root:`${c}-root`,bar:`${c}-bar`,tabsBar:`${c}-tabsBar`,tabs:`${c}-tabs`,tab:`${c}-tab`,trigger:`${c}-trigger`,triggerLabel:`${c}-triggerLabel`,triggerArrow:`${c}-triggerArrow`,menuItem:`${c}-menuItem`,contextMenu:`${c}-contextMenu`},D="os-shared-WindowSkeleton",g={root:`${D}-root`,bar:`${D}-bar`,body:`${D}-body`,rows:`${D}-rows`,row:`${D}-row`},re="Open in a new window",R="en",ie=51,ae=8,se=3,de=10,le=64,pe=4;var ce=styled(m,{shouldForwardProp:e=>e!=="$isDragging"})(({$isDragging:e=false})=>({cursor:e?"move":"default",position:"relative",zIndex:1,margin:0,backgroundColor:j$1,backdropFilter:k})),me=styled(m)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(8),overflow:"hidden",height:"4.1875rem",paddingBottom:"1.2rem",paddingInline:e.v2.spacing(32),paddingTop:e.v2.spacing(4),backgroundColor:"transparent",'[data-window-maximized="true"] &':{height:e.v2.spacing(44),paddingBottom:e.v2.spacing(10),paddingTop:0}})),we=styled(m)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(8),userSelect:"none",width:"max-content",maxWidth:"100%"})),Ke=ya(),ue=styled(j$2,{shouldForwardProp:e=>e!=="$title"})(({theme:e,$title:n})=>{let{base:o}=e.v2.palette;return {position:"relative",fontWeight:e.typography.fontWeightMedium,padding:e.spacing(1),color:o.black,fontSize:"11px",lineHeight:"15px",borderRadius:e.shape.borderRadius,transition:e.transitions.create(["backgroundColor","boxShadow"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.complex}),whiteSpace:"nowrap",textTransform:"capitalize","&:hover, &.active":{backgroundColor:o.white,boxShadow:e.shadows[2],cursor:"pointer",position:"relative",color:"transparent","&:after":{...n&&{content:`"${n}"`},color:o.black,fontWeight:e.v2.typography.fontWeightBold,overflow:"hidden",position:"absolute",top:0,bottom:0,right:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",letterSpacing:Ke==="safari"?"-1px":"",padding:8,borderRadius:e.shape.borderRadius}}}}),ge=styled(je)(({theme:e})=>({padding:"0.25rem 0.34rem 0.25rem 0.5rem",display:"flex",justifyContent:"center",alignItems:"center",gap:"0.19rem",width:"auto",flexShrink:0,borderRadius:"0.5rem",boxShadow:e.shadows[5],cursor:"pointer",outline:e.palette.background.default,border:"none",backgroundColor:e.palette.background.default,"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"& .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"& .MuiMenuList-root":{padding:"0px !important",margin:0},"& .MuiSelect-outlined":{padding:"0px !important"}})),fe=styled("p")(({theme:e})=>({color:e.palette.text.primary,fontSize:"0.68rem",fontWeight:600,textAlign:"center",padding:"0 !important",margin:"0 !important",textTransform:"capitalize",".MuiOutlinedInput-input":{paddingRight:0},"MuiInputBase-input":{paddingRight:0},".MuiSelect-select":{paddingRight:0}})),Se=styled(Ge)(({theme:e})=>({display:"flex",height:"2.5rem",width:"10.43rem",alignItems:"center",gap:"0.5",alignSelf:"stretch",transition:"boxShadow 0.2s ease-in-out",backgroundColor:"inherit !important",margin:0,padding:0,paddingTop:"0px !important",paddingBottom:"0px !important","&:hover":{boxSizing:"border-box",boxShadow:`${e.shadows[3]}`}})),xe=styled("p")(({theme:e})=>({fontSize:"0.75rem",fontWeight:500,color:e.palette.text.primary,paddingLeft:"1rem !important",transition:"boxShadow 0.2s ease-in-out"})),ye=styled("img")(()=>({width:"0.75rem",height:"auto",padding:0,paddingBottom:.5,margin:0,verticalAlign:"middle",boxSizing:"border-box"})),G=styled(m)(()=>({display:"flex",flexDirection:"column",height:"100%",overflow:"hidden",borderRadius:"inherit",backgroundColor:"transparent"})),be=styled(m)(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"flex-start",gap:e.v2.spacing(8),height:"4.1875rem",flexShrink:0,paddingTop:e.v2.spacing(10),paddingInline:e.v2.spacing(32),paddingBottom:"1.2rem",backgroundColor:j$1,backdropFilter:k})),he=styled(m)(({theme:e})=>({flex:1,minHeight:0,backgroundColor:e.v2.palette.base.white})),ve=styled(m)(({theme:e})=>({height:"100%",overflow:"hidden",backgroundColor:e.v2.palette.base.white,padding:`${e.v2.spacing(8)} ${e.v2.spacing(32)}`})),Ce=styled(m)(({theme:e})=>({display:"flex",flexDirection:"row",gap:e.v2.spacing(8),alignItems:"center",paddingTop:e.v2.spacing(8),paddingBottom:e.v2.spacing(8),height:56,borderTop:`1px solid ${e.v2.palette.border.default}`})),Le=styled(m)(()=>({display:"flex",flexDirection:"column",gap:"4px"})),ke=styled(m)(()=>({display:"flex",gap:"4px"}));function Ye({className:e}){return jsx(ye,{src:(e??"").includes("MuiSelect-iconOpen")?Zc:Yc,alt:"dropdown",className:nc(s.triggerArrow)})}var We=memo(Ye);function oo({name:e,code:n,isActive:o,openInNewWindowLabel:l,onOpenService:u,onOpenServiceInNewWindow:d,className:f}){let[p,v]=useState(null),C=!!p,L=useRef(null),b=useCallback(()=>{v(null);},[]),B=useCallback(r=>{L.current={x:r.clientX,y:r.clientY};},[]),$=useCallback(r=>{let S=L.current;if(L.current=null,S&&Math.hypot(r.clientX-S.x,r.clientY-S.y)>5){r.preventDefault(),r.stopPropagation();return}r.preventDefault(),r.stopPropagation(),u(n);},[n,u]),k=useCallback(r=>{r.preventDefault(),r.stopPropagation(),v(r.currentTarget);},[]),W=useCallback(r=>{r.preventDefault(),r.stopPropagation(),d?.(n),b();},[n,b,d]);return jsx(eo,{onClickAway:b,children:jsxs(m,{component:"span",sx:{display:"contents"},children:[jsx(ue,{$title:e,onClick:$,onPointerDown:B,onContextMenu:k,className:nc(s.tab,o&&"active",f),children:e}),jsx(R$1,{open:C,anchorEl:p,placement:"bottom-start",className:nc(s.contextMenu),children:jsx(V,{startAdornment:null,onClick:W,className:nc(s.menuItem),children:jsxs(m,{component:"span",sx:{display:"inline-flex",alignItems:"center",gap:"4px"},children:[jsx("img",{src:jb,alt:"new-window-icon"}),l]})})})]})})}var Re=memo(oo);function Ne(e){return e===Cn.reports.code||e===Cn.upload.code}function P(e){if(!e)return "";try{return decodeURIComponent(e)}catch{return e}}function Me(e,n,o){let l=P(n).toLowerCase(),u=(e??[]).filter(d=>P(d.code).toLowerCase()===l)?.[0];return cc(u?.name??[],o??R)||""}function j(e,n){return cc(e.name,n??R)||""}function Te(e,n){return P(e).toLowerCase()===P(n).toLowerCase()}var Oe=forwardRef(function({serviceCode:n="",services:o,onOpenService:l,onOpenServiceInNewWindow:u,language:d=R,openInNewWindowLabel:f=re,id:p,className:v,sx:C,"data-testid":L,"data-id":b},B){let[$,k]=useState(false),[W,r$1]=useState(0),[S,$e]=useState(false),[Ae,K]=useState(false),[Ee,{width:A}]=r(),X=useRef(null),E=useMemo(()=>Me(o,n,d),[o,n,d]);useEffect(()=>{S||r$1(X.current?.offsetWidth??0);},[S,o,d]),useEffect(()=>{if(A<=0||W<=0)return;let i=W+le+ie+ae+se+de;$e(A<i);},[A,W]);let He=useCallback(()=>{k(true);},[]),ze=useCallback(()=>{k(false);},[]),_e=useCallback(()=>{k(false);},[]),Fe=useCallback(()=>{K(i=>!i);},[]),Ue=useCallback(i=>{l?.(i),K(false);},[l]),Ve=useCallback(i=>{l?.(i);},[l]);return o.length?jsx(ce,{ref:B,id:p,"data-testid":L??p??"WindowServices",...(b??p)!=null?{"data-id":b??p}:null,$isDragging:$,onPointerDown:He,onPointerUp:ze,onPointerCancel:_e,className:nc(s.root,s.bar,g$1,v),sx:C,children:jsxs(me,{ref:Ee,className:nc(s.tabsBar),children:[!S&&jsx(we,{ref:X,className:nc(s.tabs),children:o.map((i,H)=>jsx(Re,{name:j(i,d),code:i.code,isActive:Te(n,i.code),openInNewWindowLabel:f,onOpenService:Ve,onOpenServiceInNewWindow:u},`service-item-${i.code}-${H}`))}),S&&jsx(ge,{open:Ae,onClick:Fe,displayEmpty:true,inputProps:{"aria-label":E||"Window services"},MenuProps:{anchorOrigin:{vertical:40,horizontal:83},PaperProps:{style:{borderRadius:"0.25rem",width:"10.43rem",padding:0}},MenuListProps:{disablePadding:true}},value:E,IconComponent:We,renderValue:i=>jsx(fe,{className:nc(s.triggerLabel),children:i}),sx:{"& .MuiOutlinedInput-root.MuiList-root-MuiMenu-list":{paddingTop:"0px !important",paddingBottom:"0px !important"}},className:nc(s.trigger),children:o.map((i,H)=>{let z=j(i,d);return z.toLowerCase()===E?.toLowerCase()?null:jsx(Se,{value:z,onClick:Y=>{Y.preventDefault(),Y.stopPropagation(),Ue(i.code);},className:nc(s.menuItem),children:jsx(xe,{children:z})},`option-${i.code}-${H}`)})})]})}):null});Oe.displayName="WindowServices";var ao=memo(Oe);var Be=forwardRef(function({appCode:n,id:o,className:l,sx:u,"data-testid":d,"data-id":f},p){return Ne(n)?jsx(G,{ref:p,id:o,"data-testid":d??o??"WindowSkeleton",...(f??o)!=null?{"data-id":f??o}:null,className:nc(g.root,g$1,l),sx:u,children:jsx(ve,{className:nc(g.rows,g.body),children:Array.from({length:pe}).map((v,C)=>jsxs(Ce,{className:nc(g.row),children:[jsx(r$1,{variant:"rounded",width:32,height:32}),jsxs(Le,{children:[jsx(r$1,{width:80,height:12.29}),jsxs(ke,{children:[jsx(r$1,{width:50,height:12.29}),jsx(r$1,{width:125,height:12.29})]})]})]},C))})}):jsxs(G,{ref:p,id:o,"data-testid":d??o??"WindowSkeleton",...(f??o)!=null?{"data-id":f??o}:null,className:nc(g.root,g$1,l),sx:u,children:[jsxs(be,{className:nc(g.bar),children:[jsx(r$1,{variant:"rounded",width:60,height:31}),jsx(r$1,{variant:"rounded",width:60,height:31}),jsx(r$1,{variant:"rounded",width:60,height:31})]}),jsx(he,{className:nc(g.body)})]})});Be.displayName="WindowSkeleton";var co=memo(Be);export{s as a,g as b,ao as c,co as d};