@tap-payments/os-micro-frontend-shared 0.3.299 → 0.3.301

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 (213) hide show
  1. package/build/_chunks/{chunk-MPXLNM5H.js → chunk-26OK5BYP.js} +1 -1
  2. package/build/_chunks/{chunk-ZWEVMVLG.js → chunk-4EOSR5FI.js} +1 -1
  3. package/build/_chunks/{chunk-I5DP4JJP.js → chunk-4IQ3J4LF.js} +1 -1
  4. package/build/_chunks/{chunk-ON73ZZC4.js → chunk-4NHNAJKD.js} +1 -1
  5. package/build/_chunks/{chunk-WO7POLIC.js → chunk-57D57K75.js} +1 -1
  6. package/build/_chunks/chunk-5OC2QXZL.js +1 -0
  7. package/build/_chunks/{chunk-RRCCQYTR.js → chunk-6LO7PI3V.js} +1 -1
  8. package/build/_chunks/{chunk-CUKFER4H.js → chunk-6UMTGWFW.js} +1 -1
  9. package/build/_chunks/{chunk-LLM6NHYM.js → chunk-6ZPNLCMN.js} +1 -1
  10. package/build/_chunks/{chunk-XGCSZNS4.js → chunk-76GQ37UR.js} +1 -1
  11. package/build/_chunks/{chunk-IFP6SF7C.js → chunk-7S2LHLZC.js} +1 -1
  12. package/build/_chunks/{chunk-CFSPFRLR.js → chunk-AN56DE5R.js} +1 -1
  13. package/build/_chunks/{chunk-G6PIEK53.js → chunk-BFBJOTG2.js} +1 -1
  14. package/build/_chunks/{chunk-LON5JVKL.js → chunk-BNKBYTQ3.js} +1 -1
  15. package/build/_chunks/{chunk-2HMREFM4.js → chunk-CFZR2VK2.js} +1 -1
  16. package/build/_chunks/{chunk-IBZBQ24S.js → chunk-D7JDLT2O.js} +1 -1
  17. package/build/_chunks/{chunk-JECD3SUJ.js → chunk-DFN7XD7P.js} +1 -1
  18. package/build/_chunks/{chunk-E4LADATG.js → chunk-DOK4RXSY.js} +1 -1
  19. package/build/_chunks/{chunk-K53Y4LIP.js → chunk-GDIPXZTC.js} +1 -1
  20. package/build/_chunks/{chunk-WFI7MJL2.js → chunk-GFEQDSYL.js} +1 -1
  21. package/build/_chunks/{chunk-MZ6XDK2C.js → chunk-HIGHKQAD.js} +1 -1
  22. package/build/_chunks/{chunk-VI3D56OM.js → chunk-HXJSH3G2.js} +1 -1
  23. package/build/_chunks/{chunk-VGYJZKKP.js → chunk-IHXFOGTQ.js} +1 -1
  24. package/build/_chunks/{chunk-DCMZFHWU.js → chunk-IM4LTXAH.js} +1 -1
  25. package/build/_chunks/chunk-JSTCL624.js +1 -0
  26. package/build/_chunks/{chunk-O2DVDEYE.js → chunk-JY4U45C5.js} +1 -1
  27. package/build/_chunks/{chunk-IPAS7KUG.js → chunk-K6633DSY.js} +1 -1
  28. package/build/_chunks/{chunk-TQTPWNPP.js → chunk-L2GLBT5H.js} +1 -1
  29. package/build/_chunks/{chunk-TIRLOG6N.js → chunk-LJWTINBT.js} +1 -1
  30. package/build/_chunks/{chunk-2OJIEX5A.js → chunk-LVK5VG43.js} +1 -1
  31. package/build/_chunks/{chunk-E5IKW34T.js → chunk-LZKPVI6B.js} +1 -1
  32. package/build/_chunks/chunk-MDHPSQZO.js +2 -0
  33. package/build/_chunks/{chunk-6HNOCQKM.js → chunk-MMXWSV6V.js} +1 -1
  34. package/build/_chunks/{chunk-XSKYIV6B.js → chunk-N57Z6DIM.js} +1 -1
  35. package/build/_chunks/{chunk-CJ3XF5H7.js → chunk-NOLYKMU3.js} +1 -1
  36. package/build/_chunks/{chunk-GZT6TVCH.js → chunk-NR5II44J.js} +1 -1
  37. package/build/_chunks/{chunk-2GYKNKWP.js → chunk-OBELDQWE.js} +1 -1
  38. package/build/_chunks/{chunk-2JVB4CBT.js → chunk-OHT5KJVT.js} +1 -1
  39. package/build/_chunks/{chunk-4WGNULKV.js → chunk-OJS6C6S6.js} +1 -1
  40. package/build/_chunks/{chunk-YUT3GEP2.js → chunk-P4S7PQWK.js} +1 -1
  41. package/build/_chunks/{chunk-TYSOX6NR.js → chunk-PEOYN7GO.js} +1 -1
  42. package/build/_chunks/{chunk-NK2VZN5J.js → chunk-PNLHCTCW.js} +1 -1
  43. package/build/_chunks/{chunk-ZBMJOLJG.js → chunk-PPO3PSE7.js} +1 -1
  44. package/build/_chunks/{chunk-H7V3RMFL.js → chunk-QLASTW76.js} +1 -1
  45. package/build/_chunks/chunk-RD4DGYOQ.js +1 -0
  46. package/build/_chunks/{chunk-O4DC2S3X.js → chunk-RL2HFGDQ.js} +1 -1
  47. package/build/_chunks/{chunk-IKGDJDP5.js → chunk-RXCJF7BB.js} +1 -1
  48. package/build/_chunks/{chunk-JRXEVVE6.js → chunk-S3EORDGB.js} +1 -1
  49. package/build/_chunks/{chunk-XS7CI5J5.js → chunk-SHUOO4XL.js} +1 -1
  50. package/build/_chunks/{chunk-4TI3DO2I.js → chunk-SXXIPX35.js} +1 -1
  51. package/build/_chunks/{chunk-WDPW2DRV.js → chunk-THSE46VC.js} +1 -1
  52. package/build/_chunks/{chunk-MXFH4OXG.js → chunk-TZZV6XFT.js} +1 -1
  53. package/build/_chunks/{chunk-Y4RJCNYA.js → chunk-UF4J7JEY.js} +1 -1
  54. package/build/_chunks/{chunk-DE3IY3MT.js → chunk-VBGXGFX5.js} +1 -1
  55. package/build/_chunks/{chunk-ZFPXHFBW.js → chunk-VDGOANGT.js} +1 -1
  56. package/build/_chunks/chunk-VYVRCIYJ.js +1 -0
  57. package/build/_chunks/{chunk-PIQOM3XU.js → chunk-W77B5KVI.js} +1 -1
  58. package/build/_chunks/{chunk-X5C35MQV.js → chunk-WE7OB4CG.js} +1 -1
  59. package/build/_chunks/{chunk-UPMCMJEB.js → chunk-WM3AFXCW.js} +1 -1
  60. package/build/_chunks/{chunk-KS662THD.js → chunk-WXWRA4VU.js} +1 -1
  61. package/build/_chunks/{chunk-YZFTHJHW.js → chunk-WYH4IUDI.js} +1 -1
  62. package/build/_chunks/{chunk-R36BQKUP.js → chunk-XFEWBGH5.js} +1 -1
  63. package/build/_chunks/{chunk-FREJYXH4.js → chunk-ZGVTCYRV.js} +1 -1
  64. package/build/components/ActionsDropdownMenu/index.js +1 -1
  65. package/build/components/Alert/index.js +1 -1
  66. package/build/components/AreaChart/index.js +1 -1
  67. package/build/components/Autocomplete/index.js +1 -1
  68. package/build/components/AvatarStack/index.js +1 -1
  69. package/build/components/Calender/index.js +1 -1
  70. package/build/components/Card/index.js +1 -1
  71. package/build/components/CardList/index.js +1 -1
  72. package/build/components/ColorPicker/index.js +1 -1
  73. package/build/components/ColumnViews/index.js +1 -1
  74. package/build/components/ConfirmDialog/index.js +1 -1
  75. package/build/components/CountryFlag/index.js +1 -1
  76. package/build/components/CurrenciesMenu/index.js +1 -1
  77. package/build/components/CurrencyAmount/index.js +1 -1
  78. package/build/components/CurrencyAmountInput/index.js +1 -1
  79. package/build/components/CurrencySymbol/index.js +1 -1
  80. package/build/components/DateFilter/index.js +1 -1
  81. package/build/components/DateInput/index.js +1 -1
  82. package/build/components/DeviceIcon/index.js +1 -1
  83. package/build/components/EmptyState/index.js +1 -1
  84. package/build/components/ErrorToast/index.js +1 -1
  85. package/build/components/ExpandableChip/index.js +1 -1
  86. package/build/components/ExportReportButton/index.js +1 -1
  87. package/build/components/FileDropbox/index.js +1 -1
  88. package/build/components/FilePreview/index.js +1 -1
  89. package/build/components/FileUploader/index.js +1 -1
  90. package/build/components/FilterBar/index.js +1 -1
  91. package/build/components/FilterButton/FilterButton.d.ts +4 -0
  92. package/build/components/FilterButton/constants.d.ts +22 -0
  93. package/build/components/FilterButton/icons.d.ts +3 -0
  94. package/build/components/FilterButton/index.d.ts +3 -0
  95. package/build/components/FilterButton/index.js +1 -0
  96. package/build/components/FilterButton/style.d.ts +10 -0
  97. package/build/components/FilterButton/type.d.ts +44 -0
  98. package/build/components/FilterChip/index.js +1 -1
  99. package/build/components/FilterPopover/FilterPopover.d.ts +4 -0
  100. package/build/components/FilterPopover/constants.d.ts +21 -0
  101. package/build/components/FilterPopover/hooks/useFilterPopover.d.ts +9 -0
  102. package/build/components/FilterPopover/index.d.ts +5 -0
  103. package/build/components/FilterPopover/index.js +1 -0
  104. package/build/components/FilterPopover/style.d.ts +26 -0
  105. package/build/components/FilterPopover/type.d.ts +64 -0
  106. package/build/components/FlipCard/index.js +1 -1
  107. package/build/components/GroupedSelect/index.js +1 -1
  108. package/build/components/HeatMap/index.js +1 -1
  109. package/build/components/ListHeader/components/index.d.ts +0 -1
  110. package/build/components/ListHeader/index.js +1 -1
  111. package/build/components/Loader/index.js +1 -1
  112. package/build/components/Logo/index.js +1 -1
  113. package/build/components/MaskedText/index.js +1 -1
  114. package/build/components/MultiLevelMenu/index.js +1 -1
  115. package/build/components/MultiLevelSelect/index.js +1 -1
  116. package/build/components/PhoneInput/index.js +1 -1
  117. package/build/components/ProgressRing/index.js +1 -1
  118. package/build/components/RadioGroup/index.js +1 -1
  119. package/build/components/RangeCalender/index.js +1 -1
  120. package/build/components/RatingCount/index.js +1 -1
  121. package/build/components/SearchButton/index.js +1 -1
  122. package/build/components/SearchInput/index.js +1 -1
  123. package/build/components/Select/index.js +1 -1
  124. package/build/components/SheetViewChip/index.js +1 -1
  125. package/build/components/Sidebar/index.js +1 -1
  126. package/build/components/StatusIcons/index.js +1 -1
  127. package/build/components/TableCells/index.js +1 -1
  128. package/build/components/TableViewToggleButton/TableViewToggleButton.d.ts +4 -0
  129. package/build/components/TableViewToggleButton/constants.d.ts +24 -0
  130. package/build/components/TableViewToggleButton/icons.d.ts +3 -0
  131. package/build/components/TableViewToggleButton/index.d.ts +3 -0
  132. package/build/components/TableViewToggleButton/index.js +1 -0
  133. package/build/components/TableViewToggleButton/style.d.ts +7 -0
  134. package/build/components/TableViewToggleButton/type.d.ts +26 -0
  135. package/build/components/TextInput/index.js +1 -1
  136. package/build/components/Timeline/index.js +1 -1
  137. package/build/components/Timepicker/index.js +1 -1
  138. package/build/components/VerificationIcon/index.js +1 -1
  139. package/build/components/VirtualTables/index.js +1 -1
  140. package/build/components/Window/index.js +1 -1
  141. package/build/components/WindowServices/index.js +1 -1
  142. package/build/components/WindowToolbar/index.js +1 -1
  143. package/build/components/index.d.ts +6 -7
  144. package/build/components/index.js +1 -1
  145. package/build/components/modules/JSONViewWindow/index.js +1 -1
  146. package/build/components/modules/RangeCalender/index.js +1 -1
  147. package/build/components/modules/VirtualTables/index.js +1 -1
  148. package/build/components/modules/WindowShell/index.js +1 -1
  149. package/build/components/modules/WindowShell/type.d.ts +1 -1
  150. package/build/components/modules/index.js +1 -1
  151. package/build/components/primitives/index.js +1 -1
  152. package/build/datetime/components/index.js +1 -1
  153. package/build/hooks/index.js +1 -1
  154. package/build/index.js +1 -1
  155. package/build/utils/index.js +1 -1
  156. package/build/utils/style.d.ts +3 -1
  157. package/package.json +1 -1
  158. package/build/_chunks/chunk-3DVDHBR2.js +0 -1
  159. package/build/_chunks/chunk-FZV63FZF.js +0 -1
  160. package/build/_chunks/chunk-LDGSDPQG.js +0 -1
  161. package/build/_chunks/chunk-S5UJ7YPE.js +0 -2
  162. package/build/_chunks/chunk-UIPXZKRC.js +0 -1
  163. package/build/components/CountryFilter/CountryFilter.d.ts +0 -14
  164. package/build/components/CountryFilter/index.d.ts +0 -3
  165. package/build/components/CountryFilter/index.js +0 -1
  166. package/build/components/CountryFilter/style.d.ts +0 -16
  167. package/build/components/FilterDropdown/FilterDropdown.d.ts +0 -22
  168. package/build/components/FilterDropdown/FilterDropdownContext.d.ts +0 -9
  169. package/build/components/FilterDropdown/components/BrandItem/BrandItem.d.ts +0 -12
  170. package/build/components/FilterDropdown/components/BrandItem/index.d.ts +0 -2
  171. package/build/components/FilterDropdown/components/BrandItem/style.d.ts +0 -4
  172. package/build/components/FilterDropdown/components/CountriesItem/CountriesItem.d.ts +0 -12
  173. package/build/components/FilterDropdown/components/CountriesItem/index.d.ts +0 -1
  174. package/build/components/FilterDropdown/components/CurrenciesItem/CurrenciesItem.d.ts +0 -12
  175. package/build/components/FilterDropdown/components/CurrenciesItem/index.d.ts +0 -1
  176. package/build/components/FilterDropdown/components/FlatMerchantsListMenu/FlatMerchantsListMenu.d.ts +0 -12
  177. package/build/components/FilterDropdown/components/FlatMerchantsListMenu/index.d.ts +0 -2
  178. package/build/components/FilterDropdown/components/FlatMerchantsListMenu/style.d.ts +0 -14
  179. package/build/components/FilterDropdown/components/MerchantItem/MerchantItem.d.ts +0 -13
  180. package/build/components/FilterDropdown/components/MerchantItem/index.d.ts +0 -2
  181. package/build/components/FilterDropdown/components/MerchantsFilterItem/MerchantsFilterItem.d.ts +0 -4
  182. package/build/components/FilterDropdown/components/MerchantsFilterItem/index.d.ts +0 -4
  183. package/build/components/FilterDropdown/components/MerchantsFilterItem/type.d.ts +0 -24
  184. package/build/components/FilterDropdown/components/MerchantsFilterItem/utils.d.ts +0 -20
  185. package/build/components/FilterDropdown/components/RetailersItem/RetailersItem.d.ts +0 -14
  186. package/build/components/FilterDropdown/components/RetailersItem/index.d.ts +0 -1
  187. package/build/components/FilterDropdown/components/RetailersItem/style.d.ts +0 -4
  188. package/build/components/FilterDropdown/components/index.d.ts +0 -6
  189. package/build/components/FilterDropdown/index.d.ts +0 -5
  190. package/build/components/FilterDropdown/index.js +0 -1
  191. package/build/components/FilterDropdown/style.d.ts +0 -25
  192. package/build/components/FilterDropdown/type.d.ts +0 -4
  193. package/build/components/Filters/index.d.ts +0 -1
  194. package/build/components/Filters/index.js +0 -1
  195. package/build/components/Filters/style.d.ts +0 -13
  196. package/build/components/ListColumnFilter/ListColumnFilter.d.ts +0 -17
  197. package/build/components/ListColumnFilter/index.d.ts +0 -1
  198. package/build/components/ListColumnFilter/index.js +0 -1
  199. package/build/components/ListColumnFilter/style.d.ts +0 -19
  200. package/build/components/ListHeader/components/ListHeaderSheetToggle.d.ts +0 -9
  201. package/build/components/ListLayout/ListLayout.d.ts +0 -4
  202. package/build/components/ListLayout/constants.d.ts +0 -4
  203. package/build/components/ListLayout/index.d.ts +0 -3
  204. package/build/components/ListLayout/index.js +0 -1
  205. package/build/components/ListLayout/style.d.ts +0 -4
  206. package/build/components/ListLayout/type.d.ts +0 -14
  207. package/build/components/PhoneFilter/PhoneFilter.d.ts +0 -10
  208. package/build/components/PhoneFilter/index.d.ts +0 -1
  209. package/build/components/PhoneFilter/index.js +0 -1
  210. package/build/components/StatusFilter/StatusFilter.d.ts +0 -15
  211. package/build/components/StatusFilter/index.d.ts +0 -1
  212. package/build/components/StatusFilter/index.js +0 -1
  213. package/build/components/StatusFilter/utils.d.ts +0 -4
@@ -1,2 +1,2 @@
1
- import {b,a,R,Q,V,U as U$1,z,B}from'./chunk-LLM6NHYM.js';import {Hb,Gb}from'./chunk-6HNOCQKM.js';import {c as c$1}from'./chunk-53X3U5WT.js';import {memo,forwardRef,useState,useEffect,useMemo,useCallback,Fragment as Fragment$1}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {styled,alpha}from'@mui/material/styles';var c="os-shared-FilterBar";var U={name:"offset",options:{offset:[0,4]}},o={root:`${c}-root`,button:`${c}-button`,labelWrapper:`${c}-labelWrapper`,label:`${c}-label`,icon:`${c}-icon`,badge:`${c}-badge`,chevronSlot:`${c}-chevronSlot`,menu:`${c}-menu`,menuItem:`${c}-menuItem`};var Y=jsx("svg",{width:"27",height:"32",viewBox:"0 0 27 32",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6941 15.0078C15.6494 15.0193 15.6083 15.043 15.5758 15.0769L12.5026 18.1501L12.5025 18.1501L15.5756 15.0769C15.6082 15.043 15.6493 15.0193 15.6941 15.0078ZM12.5619 18.7465C12.5426 18.7512 12.5227 18.7536 12.5026 18.7536C12.4363 18.7536 12.3727 18.7273 12.3258 18.6804L9.07581 15.4304C9.04012 15.3957 9.01559 15.3512 9.00535 15.3025C8.99511 15.2538 8.99963 15.2032 9.01833 15.1571C9.03703 15.111 9.06907 15.0715 9.11033 15.0437C9.13446 15.0275 9.16112 15.0156 9.18904 15.0086C9.16105 15.0156 9.13433 15.0275 9.11013 15.0438C9.06887 15.0716 9.03684 15.111 9.01814 15.1571C8.99944 15.2032 8.99492 15.2539 9.00516 15.3026C9.0154 15.3513 9.03993 15.3958 9.07562 15.4305L12.3256 18.6805C12.3725 18.7273 12.4361 18.7537 12.5024 18.7537C12.5226 18.7537 12.5426 18.7512 12.5619 18.7465ZM16.1965 15.342C16.1781 15.4301 16.1338 15.5105 16.0693 15.5731L12.8205 18.8219C12.7361 18.9063 12.6217 18.9537 12.5024 18.9537C12.3831 18.9537 12.2686 18.9062 12.1842 18.8219L8.93507 15.5728C8.87148 15.5105 8.82775 15.4308 8.80944 15.3437C8.79101 15.2561 8.79914 15.165 8.8328 15.082C8.86646 14.999 8.92412 14.9279 8.99839 14.8779C9.07266 14.8279 9.16022 14.8011 9.24978 14.8011C9.30998 14.8011 9.36958 14.8132 9.42503 14.8366C9.47997 14.8599 9.52973 14.8938 9.57144 14.9364L12.5024 17.8673L15.433 14.9368C15.5151 14.852 15.6273 14.803 15.7454 14.8002C15.836 14.798 15.9252 14.8233 16.0013 14.8728C16.0773 14.9222 16.1367 14.9935 16.1715 15.0772C16.2063 15.1609 16.2151 15.2533 16.1965 15.342Z",fill:"currentColor"})});var _=styled("div")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(8)})),ee=styled(b,{shouldForwardProp:e=>e!=="$isActive"&&e!=="$hasMenu"})(({theme:e,$isActive:l=false,$hasMenu:r=false})=>{let{base:d,grey:i,foreground:f}=e.v2.palette,s=e.palette.background.gradient.shadedBlue;return {fontSize:e.typography.subtitle1.fontSize,lineHeight:e.typography.subtitle1.lineHeight,fontWeight:e.v2.typography.fontWeightRegular,boxSizing:"border-box",borderRadius:e.v2.radius(50),borderWidth:e.v2.spacing(1),borderStyle:"solid",minWidth:"135.11px",height:e.v2.spacing(32),minHeight:e.v2.spacing(32),display:"flex",justifyContent:"center",alignItems:"center",gap:e.v2.spacing(8),textTransform:"none",transition:"none",WebkitTapHighlightColor:"transparent",padding:0,paddingInline:e.v2.spacing(16),[`& .${a.content}`]:{width:"100%",minWidth:0},...r&&{paddingInlineEnd:e.v2.spacing(27),overflow:"hidden",[`& .${o.labelWrapper}`]:{paddingInlineEnd:e.v2.spacing(8)}},...l?{background:s,color:d.white,"&:hover":{background:s,opacity:.8}}:{backgroundColor:d.white,borderColor:i[100],color:f.primary,"&:hover":{backgroundColor:d.white,opacity:.7}}}}),te=styled("span")(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"100%"})),ne=styled("span",{shouldForwardProp:e=>e!=="$isActive"})(({theme:e,$isActive:l=false})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",gap:e.v2.spacing(4),fontWeight:l?e.v2.typography.fontWeightBolder:e.v2.typography.fontWeightRegular})),re=styled("span",{shouldForwardProp:e=>e!=="$isActive"})(({theme:e,$isActive:l=false})=>({display:"flex",alignItems:"center",width:e.v2.spacing(14),height:e.v2.spacing(14),"& img":{width:e.v2.spacing(14),height:e.v2.spacing(14),filter:l?"brightness(0) invert(1)":"brightness(0) invert(0)"}})),ae=styled("span",{shouldForwardProp:e=>e!=="$isActive"})(({theme:e,$isActive:l=false})=>{let{base:r,grey:d,foreground:i}=e.v2.palette;return {position:"absolute",top:0,right:0,bottom:0,width:e.v2.spacing(27),boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",...!l&&{boxShadow:`inset 1px 0 0 ${d[100]}`},color:l?r.white:i.secondary,transition:"background-color 0.15s ease","& svg":{display:"block",width:e.v2.spacing(27),height:e.v2.spacing(32),flexShrink:0,pointerEvents:"none"},"&:hover":{backgroundColor:alpha(r.black,.1)}}}),oe=styled(R)({[`& .${Q.panel} .menu-item+.menu-item`]:{borderTop:"none"}}),le=styled(V)(({theme:e})=>({minHeight:"36px",height:"36px",gap:e.v2.spacing(4),WebkitTapHighlightColor:"transparent",[`& .${U$1.indicator} img`]:{maxWidth:"100%",maxHeight:"100%",width:"auto",height:"auto",objectFit:"contain",display:"block"},[`& .${U$1.indicator} svg`]:{display:"block",maxWidth:"100%",maxHeight:"100%"},"&:hover":{boxShadow:"rgba(0, 0, 0, 0.15) 0px 0px 16px 0px"}}));function Ce(e,l){let{isActive:r=false,label:d,startIcon:i,badgeCount:f,onValueChange:s,id:w,className:L,sx:W,disabled:v,disableRipple:t=false}=e,a="items"in e?e.items:void 0,y="items"in e?e.defaultValue:void 0,h="items"in e?e.selectedValue:void 0,C="items"in e?void 0:e.value,[m,u]=useState(null),[$,x]=useState(void 0);useEffect(()=>{r||u(null);},[r]);let B$1=!!a?.length,T=r||h!==void 0,F=!!m,D=h??$,S=useMemo(()=>a?.find(n=>n.value===D),[D,a]),R=useMemo(()=>{if(!a?.length)return;let n=a.find(g=>g.value===y);return S?.value??n?.value??a[0].value},[y,a,S]),V=useMemo(()=>{if(i!=null)return typeof i=="function"?i(r):i;let n=S?.icon;return typeof n=="function"?n(r,true):n},[r,S,i]),de=useMemo(()=>V?jsx(re,{$isActive:r,className:o.icon,children:V}):null,[V,r]),ue=useMemo(()=>f?jsx(z,{color:r?"active":"inactive",className:o.badge,children:c$1(f)}):null,[f,r]),ce=useCallback(n=>{if(!a){s?.(C);return}if(!T){R!==void 0&&s?.(R),u(null);return}u(F?null:n.currentTarget);},[R,T,F,a,s,C]),A=useCallback(n=>{s?.(n),x(n),u(null);},[s]),pe=useCallback(()=>u(null),[]),fe=useCallback(n=>{n.key==="Escape"&&(n.stopPropagation(),u(null),m?.focus());},[m]),me=useCallback((n,g)=>{n.key!=="Enter"&&n.key!==" "||(n.preventDefault(),A(g));},[A]);return a&&!B$1?null:jsxs(Fragment,{children:[jsx(ee,{ref:l,id:w,"data-testid":w??"FilterBarButton",className:Hb(o.button,L),sx:W,variant:r?"primary":"secondary",$isActive:r,$hasMenu:B$1,disabled:v,disableRipple:t,"aria-pressed":r,"aria-haspopup":B$1?"menu":void 0,"aria-expanded":B$1?F:void 0,onClick:ce,children:jsxs(te,{className:o.labelWrapper,children:[jsxs(ne,{$isActive:r,className:o.label,children:[de,S?.label??d,ue]}),B$1&&jsx(ae,{$isActive:r,className:o.chevronSlot,children:Y})]})}),B$1&&jsxs(Fragment,{children:[jsx(B,{open:F,onClick:pe}),jsx(oe,{open:F,anchorEl:m,className:o.menu,placement:"bottom-start",modifiers:[U],panelProps:{role:"menu",onKeyDown:fe,sx:{minWidth:m?.clientWidth??133}},children:a?.map(n=>{let g=n.icon,ge=typeof g=="function"?g(r,false):g;return jsx(le,{role:"menuitem",tabIndex:0,className:o.menuItem,startAdornment:ge??null,onClick:()=>A(n.value),onKeyDown:be=>me(be,n.value),children:n.label??n.value},n.value)})})]})]})}var H=memo(forwardRef(Ce));function Me({value:e,items:l,onValueChange:r,keepInactive:d=false,renderItem:i,itemSx:f,id:s,sx:w,className:L},W){let v=useCallback(t=>r?.(t),[r]);return jsx(_,{ref:W,id:s,"data-testid":s??"FilterBar",className:Hb(o.root,L),sx:w,children:l?.map((t,a)=>{let y="items"in t?e!=null&&t.items.some(x=>x.value===e):t.value===e,h=y&&!d,C="items"in t&&y?e:void 0,m=Gb(f??{},t.itemSx),u=i?.({isActive:h,selectedValue:C,onActivate:()=>v("items"in t?t.items.find(x=>x.value===t.defaultValue)?.value??t.items[0]?.value:t.value),onDeactivate:()=>v(void 0),onSelect:v},t,a);if(u!=null)return jsx(Fragment$1,{children:u},`filter-bar-custom-${a}`);let $={isActive:h,label:t.label,startIcon:t.startIcon,badgeCount:t.badgeCount,disabled:t.disabled,disableRipple:t.disableRipple,sx:m,onValueChange:v};return "items"in t?jsx(H,{items:t.items,defaultValue:t.defaultValue,selectedValue:C,...$},`filter-bar-nested-${t.items[0]?.value??a}`):jsx(H,{value:t.value,...$},`filter-bar-single-${t.value}`)})})}var we=memo(forwardRef(Me));
1
+ import {b,a,R,Q,V,U as U$1,z,B}from'./chunk-6ZPNLCMN.js';import {Hb,Gb}from'./chunk-MMXWSV6V.js';import {c as c$1}from'./chunk-53X3U5WT.js';import {memo,forwardRef,useState,useEffect,useMemo,useCallback,Fragment as Fragment$1}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {styled,alpha}from'@mui/material/styles';var c="os-shared-FilterBar";var U={name:"offset",options:{offset:[0,4]}},o={root:`${c}-root`,button:`${c}-button`,labelWrapper:`${c}-labelWrapper`,label:`${c}-label`,icon:`${c}-icon`,badge:`${c}-badge`,chevronSlot:`${c}-chevronSlot`,menu:`${c}-menu`,menuItem:`${c}-menuItem`};var Y=jsx("svg",{width:"27",height:"32",viewBox:"0 0 27 32",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6941 15.0078C15.6494 15.0193 15.6083 15.043 15.5758 15.0769L12.5026 18.1501L12.5025 18.1501L15.5756 15.0769C15.6082 15.043 15.6493 15.0193 15.6941 15.0078ZM12.5619 18.7465C12.5426 18.7512 12.5227 18.7536 12.5026 18.7536C12.4363 18.7536 12.3727 18.7273 12.3258 18.6804L9.07581 15.4304C9.04012 15.3957 9.01559 15.3512 9.00535 15.3025C8.99511 15.2538 8.99963 15.2032 9.01833 15.1571C9.03703 15.111 9.06907 15.0715 9.11033 15.0437C9.13446 15.0275 9.16112 15.0156 9.18904 15.0086C9.16105 15.0156 9.13433 15.0275 9.11013 15.0438C9.06887 15.0716 9.03684 15.111 9.01814 15.1571C8.99944 15.2032 8.99492 15.2539 9.00516 15.3026C9.0154 15.3513 9.03993 15.3958 9.07562 15.4305L12.3256 18.6805C12.3725 18.7273 12.4361 18.7537 12.5024 18.7537C12.5226 18.7537 12.5426 18.7512 12.5619 18.7465ZM16.1965 15.342C16.1781 15.4301 16.1338 15.5105 16.0693 15.5731L12.8205 18.8219C12.7361 18.9063 12.6217 18.9537 12.5024 18.9537C12.3831 18.9537 12.2686 18.9062 12.1842 18.8219L8.93507 15.5728C8.87148 15.5105 8.82775 15.4308 8.80944 15.3437C8.79101 15.2561 8.79914 15.165 8.8328 15.082C8.86646 14.999 8.92412 14.9279 8.99839 14.8779C9.07266 14.8279 9.16022 14.8011 9.24978 14.8011C9.30998 14.8011 9.36958 14.8132 9.42503 14.8366C9.47997 14.8599 9.52973 14.8938 9.57144 14.9364L12.5024 17.8673L15.433 14.9368C15.5151 14.852 15.6273 14.803 15.7454 14.8002C15.836 14.798 15.9252 14.8233 16.0013 14.8728C16.0773 14.9222 16.1367 14.9935 16.1715 15.0772C16.2063 15.1609 16.2151 15.2533 16.1965 15.342Z",fill:"currentColor"})});var _=styled("div")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(8)})),ee=styled(b,{shouldForwardProp:e=>e!=="$isActive"&&e!=="$hasMenu"})(({theme:e,$isActive:l=false,$hasMenu:r=false})=>{let{base:d,grey:i,foreground:f}=e.v2.palette,s=e.palette.background.gradient.shadedBlue;return {fontSize:e.typography.subtitle1.fontSize,lineHeight:e.typography.subtitle1.lineHeight,fontWeight:e.v2.typography.fontWeightRegular,boxSizing:"border-box",borderRadius:e.v2.radius(50),borderWidth:e.v2.spacing(1),borderStyle:"solid",minWidth:"135.11px",height:e.v2.spacing(32),minHeight:e.v2.spacing(32),display:"flex",justifyContent:"center",alignItems:"center",gap:e.v2.spacing(8),textTransform:"none",transition:"none",WebkitTapHighlightColor:"transparent",padding:0,paddingInline:e.v2.spacing(16),[`& .${a.content}`]:{width:"100%",minWidth:0},...r&&{paddingInlineEnd:e.v2.spacing(27),overflow:"hidden",[`& .${o.labelWrapper}`]:{paddingInlineEnd:e.v2.spacing(8)}},...l?{background:s,color:d.white,"&:hover":{background:s,opacity:.8}}:{backgroundColor:d.white,borderColor:i[100],color:f.primary,"&:hover":{backgroundColor:d.white,opacity:.7}}}}),te=styled("span")(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"100%"})),ne=styled("span",{shouldForwardProp:e=>e!=="$isActive"})(({theme:e,$isActive:l=false})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",gap:e.v2.spacing(4),fontWeight:l?e.v2.typography.fontWeightBolder:e.v2.typography.fontWeightRegular})),re=styled("span",{shouldForwardProp:e=>e!=="$isActive"})(({theme:e,$isActive:l=false})=>({display:"flex",alignItems:"center",width:e.v2.spacing(14),height:e.v2.spacing(14),"& img":{width:e.v2.spacing(14),height:e.v2.spacing(14),filter:l?"brightness(0) invert(1)":"brightness(0) invert(0)"}})),ae=styled("span",{shouldForwardProp:e=>e!=="$isActive"})(({theme:e,$isActive:l=false})=>{let{base:r,grey:d,foreground:i}=e.v2.palette;return {position:"absolute",top:0,right:0,bottom:0,width:e.v2.spacing(27),boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",...!l&&{boxShadow:`inset 1px 0 0 ${d[100]}`},color:l?r.white:i.secondary,transition:"background-color 0.15s ease","& svg":{display:"block",width:e.v2.spacing(27),height:e.v2.spacing(32),flexShrink:0,pointerEvents:"none"},"&:hover":{backgroundColor:alpha(r.black,.1)}}}),oe=styled(R)({[`& .${Q.panel} .menu-item+.menu-item`]:{borderTop:"none"}}),le=styled(V)(({theme:e})=>({minHeight:"36px",height:"36px",gap:e.v2.spacing(4),WebkitTapHighlightColor:"transparent",[`& .${U$1.indicator} img`]:{maxWidth:"100%",maxHeight:"100%",width:"auto",height:"auto",objectFit:"contain",display:"block"},[`& .${U$1.indicator} svg`]:{display:"block",maxWidth:"100%",maxHeight:"100%"},"&:hover":{boxShadow:"rgba(0, 0, 0, 0.15) 0px 0px 16px 0px"}}));function Ce(e,l){let{isActive:r=false,label:d,startIcon:i,badgeCount:f,onValueChange:s,id:w,className:L,sx:W,disabled:v,disableRipple:t=false}=e,a="items"in e?e.items:void 0,y="items"in e?e.defaultValue:void 0,h="items"in e?e.selectedValue:void 0,C="items"in e?void 0:e.value,[m,u]=useState(null),[$,x]=useState(void 0);useEffect(()=>{r||u(null);},[r]);let B$1=!!a?.length,T=r||h!==void 0,F=!!m,D=h??$,S=useMemo(()=>a?.find(n=>n.value===D),[D,a]),R=useMemo(()=>{if(!a?.length)return;let n=a.find(g=>g.value===y);return S?.value??n?.value??a[0].value},[y,a,S]),V=useMemo(()=>{if(i!=null)return typeof i=="function"?i(r):i;let n=S?.icon;return typeof n=="function"?n(r,true):n},[r,S,i]),de=useMemo(()=>V?jsx(re,{$isActive:r,className:o.icon,children:V}):null,[V,r]),ue=useMemo(()=>f?jsx(z,{color:r?"active":"inactive",className:o.badge,children:c$1(f)}):null,[f,r]),ce=useCallback(n=>{if(!a){s?.(C);return}if(!T){R!==void 0&&s?.(R),u(null);return}u(F?null:n.currentTarget);},[R,T,F,a,s,C]),A=useCallback(n=>{s?.(n),x(n),u(null);},[s]),pe=useCallback(()=>u(null),[]),fe=useCallback(n=>{n.key==="Escape"&&(n.stopPropagation(),u(null),m?.focus());},[m]),me=useCallback((n,g)=>{n.key!=="Enter"&&n.key!==" "||(n.preventDefault(),A(g));},[A]);return a&&!B$1?null:jsxs(Fragment,{children:[jsx(ee,{ref:l,id:w,"data-testid":w??"FilterBarButton",className:Hb(o.button,L),sx:W,variant:r?"primary":"secondary",$isActive:r,$hasMenu:B$1,disabled:v,disableRipple:t,"aria-pressed":r,"aria-haspopup":B$1?"menu":void 0,"aria-expanded":B$1?F:void 0,onClick:ce,children:jsxs(te,{className:o.labelWrapper,children:[jsxs(ne,{$isActive:r,className:o.label,children:[de,S?.label??d,ue]}),B$1&&jsx(ae,{$isActive:r,className:o.chevronSlot,children:Y})]})}),B$1&&jsxs(Fragment,{children:[jsx(B,{open:F,onClick:pe}),jsx(oe,{open:F,anchorEl:m,className:o.menu,placement:"bottom-start",modifiers:[U],panelProps:{role:"menu",onKeyDown:fe,sx:{minWidth:m?.clientWidth??133}},children:a?.map(n=>{let g=n.icon,ge=typeof g=="function"?g(r,false):g;return jsx(le,{role:"menuitem",tabIndex:0,className:o.menuItem,startAdornment:ge??null,onClick:()=>A(n.value),onKeyDown:be=>me(be,n.value),children:n.label??n.value},n.value)})})]})]})}var H=memo(forwardRef(Ce));function Me({value:e,items:l,onValueChange:r,keepInactive:d=false,renderItem:i,itemSx:f,id:s,sx:w,className:L},W){let v=useCallback(t=>r?.(t),[r]);return jsx(_,{ref:W,id:s,"data-testid":s??"FilterBar",className:Hb(o.root,L),sx:w,children:l?.map((t,a)=>{let y="items"in t?e!=null&&t.items.some(x=>x.value===e):t.value===e,h=y&&!d,C="items"in t&&y?e:void 0,m=Gb(f??{},t.itemSx),u=i?.({isActive:h,selectedValue:C,onActivate:()=>v("items"in t?t.items.find(x=>x.value===t.defaultValue)?.value??t.items[0]?.value:t.value),onDeactivate:()=>v(void 0),onSelect:v},t,a);if(u!=null)return jsx(Fragment$1,{children:u},`filter-bar-custom-${a}`);let $={isActive:h,label:t.label,startIcon:t.startIcon,badgeCount:t.badgeCount,disabled:t.disabled,disableRipple:t.disableRipple,sx:m,onValueChange:v};return "items"in t?jsx(H,{items:t.items,defaultValue:t.defaultValue,selectedValue:C,...$},`filter-bar-nested-${t.items[0]?.value??a}`):jsx(H,{value:t.value,...$},`filter-bar-single-${t.value}`)})})}var we=memo(forwardRef(Me));
2
2
  export{o as a,we as b};
@@ -1 +1 @@
1
- import {t,p}from'./chunk-LLM6NHYM.js';import {Hb}from'./chunk-6HNOCQKM.js';import {forwardRef,memo,useMemo,Fragment,useState,useRef,useCallback,useEffect,useLayoutEffect}from'react';import Tt from'@mui/material/Box';import {styled}from'@mui/material/styles';import {motion}from'framer-motion';import {jsx,jsxs}from'react/jsx-runtime';var N="os-shared-AvatarStack",s={root:`${N}-root`,track:`${N}-track`,slot:`${N}-slot`,overlapSlot:`${N}-overlapSlot`,overlapItem:`${N}-overlapItem`,overflow:`${N}-overflow`},Xt="chip-stack-overlap-slot",E=`${s.overlapSlot} ${Xt}`,h=24,z=.22,et={duration:z,ease:"easeOut"},rt=1e3,at=120,Ut=["static","fanout-right","fanout-left","fanout-center"],K="static";function nt({items:t,getItemKey:e,renderItem:r}){return t?.length&&e&&r?{items:t,getItemKey:e,renderItem:r}:null}function it(t){return t==="fanout-left"?"left":t==="fanout-center"?"center":"right"}function lt(t,e){return e===void 0||e<1||t.length<e?{visibleItems:t,hiddenItems:[]}:{visibleItems:t.slice(0,e-1),hiddenItems:t.slice(e-1)}}function st(t,e){return lt(t,e).hiddenItems.length>0}function W({source:{items:t,getItemKey:e,renderItem:r},maxItems:a,slotSize:i,renderOverflow:o}){let{visibleItems:n,hiddenItems:c}=lt(t,a),d={slotSize:i},m=n.map((S,A)=>({key:e(S,A),render:()=>r(S,A,d)}));return c.length>0&&m.push({key:`avatar-stack-overflow-${c.length}-${n.length}`,render:()=>o({items:t,overflowItems:c,size:i})}),m}var jt=3,ot=60;function ct(t){let e=t.size??h,r=a=>Math.round(e*a/h);return {size:e,stackStep:t.stackStep??Math.round(e/2),gap:t.gap??Math.max(1,r(jt)),minTrackWidth:t.minTrackWidth??Math.max(ot,r(ot))}}function mt(t,e){return t<=0||e==="right"?0:e==="left"?t-1:Math.floor((t-1)/2)}function ut(t,e,r){return t<=0?0:(t-1)*e+r}function dt({slotCount:t,anchorIndex:e,slotWidths:r,gap:a,stackStep:i}){if(t===0)return [];let o=new Array(t);o[e]=e*i;for(let n=e-1;n>=0;n-=1)o[n]=o[n+1]-r[n]-a;for(let n=e+1;n<t;n+=1)o[n]=o[n-1]+r[n-1]+a;return o}function ft(t,e,r,a){return Array.from({length:t},(i,o)=>t<=1||!e?0:r[o]-o*a)}function St(t,e,r){if(t.length===0)return 0;let a=Math.min(...t),i=Math.max(...t.map((o,n)=>o+e[n]));return Math.max(r,i-a)}function At(t,e,r){return Array.from({length:t},(a,i)=>e.current[i]?.offsetWidth??r)}function pt(t,e){return t.length===e.length&&t.every((r,a)=>r===e[a])}function H(t){return t==null?[]:Array.isArray(t)?t:[t]}function X(t,e){return Array.from({length:t},()=>e)}function C(t){t.current&&clearTimeout(t.current);}function ht({slotCount:t,anchorIndex:e,size:r,stackStep:a,gap:i,isFanOutEnabled:o,compact:n}){let[c,d]=useState(false),m=useRef(null),S=useCallback(()=>{o&&(C(m),d(true));},[o]),A=useCallback(()=>{o&&(C(m),m.current=setTimeout(()=>d(false),at));},[o]);useEffect(()=>()=>C(m),[]),useEffect(()=>{o||d(false);},[o]);let u=useRef([]),l=useRef(null),[p,I]=useState(()=>X(t,r)),f=useCallback(()=>{let v=At(t,u,r);I(T=>pt(T,v)?T:v);},[t,r]);useLayoutEffect(()=>{I(X(t,r));},[t,r]),useLayoutEffect(()=>{f();},[t,r,f]),useEffect(()=>{let v=()=>{l.current&&cancelAnimationFrame(l.current),l.current=requestAnimationFrame(f);};return v(),window.addEventListener("resize",v),()=>{window.removeEventListener("resize",v),l.current&&cancelAnimationFrame(l.current);}},[f]);let y=o&&c,R=useMemo(()=>Array.from({length:t},(v,T)=>p[T]??r),[t,p,r]),_=useMemo(()=>dt({slotCount:t,anchorIndex:e,slotWidths:R,gap:i,stackStep:a}),[t,e,R,i,a]),M=useMemo(()=>ft(t,y,_,a),[t,y,_,a]),k=ut(t,a,r),D=useMemo(()=>St(_,R,k),[_,R,k]),V=y?D:n?r:k,L=useMemo(()=>Array.from({length:t},(v,T)=>!n||c||T===e?1:0),[t,n,c,e]);return {slotRefs:u,handleMouseEnter:S,handleMouseLeave:A,isExpanded:y,collapsedWidth:k,trackWidth:V,translateX:M,slotOpacity:L}}var x=t=>typeof t=="string"&&!t.startsWith("$")&&t!=="sx"&&t!=="theme"&&t!=="ownerState"&&t!=="as";function q(){return `var(--avatar-stack-slot-size, ${h}px)`}function qt(t){return `${Math.max(8,8.5*t/h)}px`}function yt(t){let{base:e,grey:r}=t.v2.palette,a=e.white;return {display:"flex",alignItems:"center",justifyContent:"center",width:q(),height:q(),borderRadius:"50%",border:`1px solid ${r[100]}`,background:a,backgroundColor:a,flexShrink:0,"&.MuiAvatar-colorDefault":{background:a,backgroundColor:a,color:"inherit"}}}var gt=styled(Tt,{shouldForwardProp:x})(({theme:t,$slotSize:e})=>({"--avatar-stack-slot-size":`${e}px`,display:"flex",alignItems:"center",paddingRight:t.v2.spacing(8),[`& .${s.overlapSlot}`]:{marginRight:`-${t.v2.spacing(8)}`,position:"relative",zIndex:1},[`& .${s.overlapSlot}:hover`]:{zIndex:2}})),bt=styled(t,{shouldForwardProp:x})(({theme:t})=>({...yt(t),overflow:"hidden",lineHeight:0,boxSizing:"border-box",padding:0,fontSize:"inherit","& > *":{width:"100%",height:"100%",minWidth:0,minHeight:0},"& img":{display:"block",width:"100%",height:"100%",objectFit:"contain"}})),xt=styled(t,{shouldForwardProp:x})(({theme:t})=>({...yt(t),fontSize:`max(8px, calc(${q()} * 8.5 / ${h}))`,fontWeight:t.v2.typography.fontWeightMedium,color:"rgba(0, 0, 0, 0.38)","&.MuiAvatar-colorDefault":{background:t.v2.palette.base.white,backgroundColor:t.v2.palette.base.white,color:"rgba(0, 0, 0, 0.38)"}})),Rt=styled(Tt,{shouldForwardProp:x})(({theme:t,$isFullWidth:e})=>({display:"flex",justifyContent:"flex-start",gap:t.v2.spacing(8),overflow:"visible",...e?{width:"100%"}:{}})),_t=styled("div",{shouldForwardProp:x})(({$width:t,$minWidth:e,$height:r,$zIndex:a})=>({position:"relative",overflow:"visible",width:t,minWidth:e,height:r,transition:`width ${z}s ease-out`,...a!==void 0?{zIndex:a}:{}})),wt=styled(motion.div,{shouldForwardProp:x})(({$index:t,$left:e,$size:r,$isHidden:a})=>({position:"absolute",top:0,left:e,zIndex:t,width:r,height:r,pointerEvents:a?"none":"auto"})),Nt=styled(t,{shouldForwardProp:x})(({theme:t,$size:e})=>({width:e,height:e,borderRadius:"50%",border:`1px solid ${t.v2.palette.grey[100]}`,display:"flex",alignItems:"center",justifyContent:"center",fontSize:qt(e),fontWeight:t.v2.typography.fontWeightBold,background:"#F5F5F5",backgroundColor:"#F5F5F5",flexShrink:0,"&.MuiAvatar-colorDefault":{background:"#F5F5F5",backgroundColor:"#F5F5F5",color:"inherit"}}));function Bt({overflowItems:t,size:e}){return jsxs(Nt,{className:s.overflow,$size:e,children:["+",t.length]})}function J({source:t,maxItems:e,renderOverflow:r,fanOutDirection:a,compact:i,slotProps:o,rootRef:n,id:c,"data-testid":d,className:m,sx:S}){let{zIndex:A=rt,size:u,stackStep:l,gap:p,minTrackWidth:I}=o?.layout??{},{size:f,stackStep:y,gap:R,minTrackWidth:_}=useMemo(()=>ct({size:u,stackStep:l,gap:p,minTrackWidth:I}),[u,l,p,I]),M=i||!st(t.items,e),k=useMemo(()=>W({source:t,maxItems:e,slotSize:f,renderOverflow:r??Bt}),[t,e,f,r]),D=mt(k.length,a),{slotRefs:Q,handleMouseEnter:V,handleMouseLeave:L,isExpanded:v,collapsedWidth:T,trackWidth:$t,translateX:Ft,slotOpacity:tt}=ht({slotCount:k.length,anchorIndex:D,size:f,stackStep:y,gap:R,isFanOutEnabled:M,compact:i});if(k.length===0)return null;let{className:Wt,sx:Ct,...Dt}=o?.shell??{},{className:Vt,...Lt}=o?.track??{};return jsx(Rt,{ref:n,...Dt,className:Hb(s.root,m,Wt),sx:[...H(S),...H(Ct)],$isFullWidth:M,children:jsx(_t,{id:c,"data-testid":d,...Lt,className:Hb(s.track,Vt),onMouseEnter:V,onMouseLeave:L,$width:$t,$minWidth:i?f:Math.max(_,T),$height:f,$zIndex:v?A:void 0,children:k.map(({key:zt,render:Kt},w)=>jsx(wt,{ref:Ht=>{Q.current[w]=Ht;},className:s.slot,initial:false,animate:{x:Ft[w]??0,opacity:tt[w]??1},transition:et,$index:w,$left:w*y,$size:f,$isHidden:tt[w]===0,children:Kt()},zt))})})}var Pt=forwardRef(({title:t,id:e,className:r,...a},i)=>{let o=t!=null&&t!=="",n=jsx(bt,{ref:i,id:e,"data-testid":e??"AvatarStackItem",className:Hb(s.overlapItem,!o&&E,r),...a});return o?jsx(p,{title:t,wrapperProps:{className:E},children:n}):n});Pt.displayName="AvatarStackItem";var Y=memo(Pt);function te(t){return jsx(p,{title:`${t} more`,wrapperProps:{className:E},children:jsx(xt,{className:s.overflow,children:jsxs("span",{children:["+",t]})})})}function G({source:t,maxItems:e,renderOverflow:r,slotProps:a,rootRef:i,id:o,"data-testid":n,className:c,sx:d}){let m=a?.layout?.size??h,{renderItem:S}=t,A=W({source:{...t,renderItem:(u,l,p)=>jsx(Y,{children:S(u,l,p)})},maxItems:e,slotSize:m,renderOverflow:u=>r?.(u)??te(u.overflowItems.length)});return jsx(gt,{ref:i,id:o,"data-testid":n,className:Hb(s.root,c),sx:d,$slotSize:m,children:A.map(({key:u,render:l})=>jsx(Fragment,{children:l()},u))})}function ne({variant:t=K,items:e,getItemKey:r,renderItem:a,maxItems:i,renderOverflow:o,compact:n=false,id:c,"data-testid":d,slotProps:m,sx:S,className:A},u){let l=useMemo(()=>nt({items:e,getItemKey:r,renderItem:a}),[e,r,a]);if(!l)return null;let p={source:l,maxItems:i,renderOverflow:o,slotProps:m,rootRef:u,id:c,"data-testid":d??c??"AvatarStack",className:A,sx:S};return t==="static"?jsx(G,{...p}):jsx(J,{...p,fanOutDirection:it(t),compact:n})}var Mt=forwardRef(ne);Mt.displayName="AvatarStack";var ie=memo(Mt),le=ie;export{s as a,Ut as b,K as c,Y as d,le as e};
1
+ import {t,p}from'./chunk-6ZPNLCMN.js';import {Hb}from'./chunk-MMXWSV6V.js';import {forwardRef,memo,useMemo,Fragment,useState,useRef,useCallback,useEffect,useLayoutEffect}from'react';import Tt from'@mui/material/Box';import {styled}from'@mui/material/styles';import {motion}from'framer-motion';import {jsx,jsxs}from'react/jsx-runtime';var N="os-shared-AvatarStack",s={root:`${N}-root`,track:`${N}-track`,slot:`${N}-slot`,overlapSlot:`${N}-overlapSlot`,overlapItem:`${N}-overlapItem`,overflow:`${N}-overflow`},Xt="chip-stack-overlap-slot",E=`${s.overlapSlot} ${Xt}`,h=24,z=.22,et={duration:z,ease:"easeOut"},rt=1e3,at=120,Ut=["static","fanout-right","fanout-left","fanout-center"],K="static";function nt({items:t,getItemKey:e,renderItem:r}){return t?.length&&e&&r?{items:t,getItemKey:e,renderItem:r}:null}function it(t){return t==="fanout-left"?"left":t==="fanout-center"?"center":"right"}function lt(t,e){return e===void 0||e<1||t.length<e?{visibleItems:t,hiddenItems:[]}:{visibleItems:t.slice(0,e-1),hiddenItems:t.slice(e-1)}}function st(t,e){return lt(t,e).hiddenItems.length>0}function W({source:{items:t,getItemKey:e,renderItem:r},maxItems:a,slotSize:i,renderOverflow:o}){let{visibleItems:n,hiddenItems:c}=lt(t,a),d={slotSize:i},m=n.map((S,A)=>({key:e(S,A),render:()=>r(S,A,d)}));return c.length>0&&m.push({key:`avatar-stack-overflow-${c.length}-${n.length}`,render:()=>o({items:t,overflowItems:c,size:i})}),m}var jt=3,ot=60;function ct(t){let e=t.size??h,r=a=>Math.round(e*a/h);return {size:e,stackStep:t.stackStep??Math.round(e/2),gap:t.gap??Math.max(1,r(jt)),minTrackWidth:t.minTrackWidth??Math.max(ot,r(ot))}}function mt(t,e){return t<=0||e==="right"?0:e==="left"?t-1:Math.floor((t-1)/2)}function ut(t,e,r){return t<=0?0:(t-1)*e+r}function dt({slotCount:t,anchorIndex:e,slotWidths:r,gap:a,stackStep:i}){if(t===0)return [];let o=new Array(t);o[e]=e*i;for(let n=e-1;n>=0;n-=1)o[n]=o[n+1]-r[n]-a;for(let n=e+1;n<t;n+=1)o[n]=o[n-1]+r[n-1]+a;return o}function ft(t,e,r,a){return Array.from({length:t},(i,o)=>t<=1||!e?0:r[o]-o*a)}function St(t,e,r){if(t.length===0)return 0;let a=Math.min(...t),i=Math.max(...t.map((o,n)=>o+e[n]));return Math.max(r,i-a)}function At(t,e,r){return Array.from({length:t},(a,i)=>e.current[i]?.offsetWidth??r)}function pt(t,e){return t.length===e.length&&t.every((r,a)=>r===e[a])}function H(t){return t==null?[]:Array.isArray(t)?t:[t]}function X(t,e){return Array.from({length:t},()=>e)}function C(t){t.current&&clearTimeout(t.current);}function ht({slotCount:t,anchorIndex:e,size:r,stackStep:a,gap:i,isFanOutEnabled:o,compact:n}){let[c,d]=useState(false),m=useRef(null),S=useCallback(()=>{o&&(C(m),d(true));},[o]),A=useCallback(()=>{o&&(C(m),m.current=setTimeout(()=>d(false),at));},[o]);useEffect(()=>()=>C(m),[]),useEffect(()=>{o||d(false);},[o]);let u=useRef([]),l=useRef(null),[p,I]=useState(()=>X(t,r)),f=useCallback(()=>{let v=At(t,u,r);I(T=>pt(T,v)?T:v);},[t,r]);useLayoutEffect(()=>{I(X(t,r));},[t,r]),useLayoutEffect(()=>{f();},[t,r,f]),useEffect(()=>{let v=()=>{l.current&&cancelAnimationFrame(l.current),l.current=requestAnimationFrame(f);};return v(),window.addEventListener("resize",v),()=>{window.removeEventListener("resize",v),l.current&&cancelAnimationFrame(l.current);}},[f]);let y=o&&c,R=useMemo(()=>Array.from({length:t},(v,T)=>p[T]??r),[t,p,r]),_=useMemo(()=>dt({slotCount:t,anchorIndex:e,slotWidths:R,gap:i,stackStep:a}),[t,e,R,i,a]),M=useMemo(()=>ft(t,y,_,a),[t,y,_,a]),k=ut(t,a,r),D=useMemo(()=>St(_,R,k),[_,R,k]),V=y?D:n?r:k,L=useMemo(()=>Array.from({length:t},(v,T)=>!n||c||T===e?1:0),[t,n,c,e]);return {slotRefs:u,handleMouseEnter:S,handleMouseLeave:A,isExpanded:y,collapsedWidth:k,trackWidth:V,translateX:M,slotOpacity:L}}var x=t=>typeof t=="string"&&!t.startsWith("$")&&t!=="sx"&&t!=="theme"&&t!=="ownerState"&&t!=="as";function q(){return `var(--avatar-stack-slot-size, ${h}px)`}function qt(t){return `${Math.max(8,8.5*t/h)}px`}function yt(t){let{base:e,grey:r}=t.v2.palette,a=e.white;return {display:"flex",alignItems:"center",justifyContent:"center",width:q(),height:q(),borderRadius:"50%",border:`1px solid ${r[100]}`,background:a,backgroundColor:a,flexShrink:0,"&.MuiAvatar-colorDefault":{background:a,backgroundColor:a,color:"inherit"}}}var gt=styled(Tt,{shouldForwardProp:x})(({theme:t,$slotSize:e})=>({"--avatar-stack-slot-size":`${e}px`,display:"flex",alignItems:"center",paddingRight:t.v2.spacing(8),[`& .${s.overlapSlot}`]:{marginRight:`-${t.v2.spacing(8)}`,position:"relative",zIndex:1},[`& .${s.overlapSlot}:hover`]:{zIndex:2}})),bt=styled(t,{shouldForwardProp:x})(({theme:t})=>({...yt(t),overflow:"hidden",lineHeight:0,boxSizing:"border-box",padding:0,fontSize:"inherit","& > *":{width:"100%",height:"100%",minWidth:0,minHeight:0},"& img":{display:"block",width:"100%",height:"100%",objectFit:"contain"}})),xt=styled(t,{shouldForwardProp:x})(({theme:t})=>({...yt(t),fontSize:`max(8px, calc(${q()} * 8.5 / ${h}))`,fontWeight:t.v2.typography.fontWeightMedium,color:"rgba(0, 0, 0, 0.38)","&.MuiAvatar-colorDefault":{background:t.v2.palette.base.white,backgroundColor:t.v2.palette.base.white,color:"rgba(0, 0, 0, 0.38)"}})),Rt=styled(Tt,{shouldForwardProp:x})(({theme:t,$isFullWidth:e})=>({display:"flex",justifyContent:"flex-start",gap:t.v2.spacing(8),overflow:"visible",...e?{width:"100%"}:{}})),_t=styled("div",{shouldForwardProp:x})(({$width:t,$minWidth:e,$height:r,$zIndex:a})=>({position:"relative",overflow:"visible",width:t,minWidth:e,height:r,transition:`width ${z}s ease-out`,...a!==void 0?{zIndex:a}:{}})),wt=styled(motion.div,{shouldForwardProp:x})(({$index:t,$left:e,$size:r,$isHidden:a})=>({position:"absolute",top:0,left:e,zIndex:t,width:r,height:r,pointerEvents:a?"none":"auto"})),Nt=styled(t,{shouldForwardProp:x})(({theme:t,$size:e})=>({width:e,height:e,borderRadius:"50%",border:`1px solid ${t.v2.palette.grey[100]}`,display:"flex",alignItems:"center",justifyContent:"center",fontSize:qt(e),fontWeight:t.v2.typography.fontWeightBold,background:"#F5F5F5",backgroundColor:"#F5F5F5",flexShrink:0,"&.MuiAvatar-colorDefault":{background:"#F5F5F5",backgroundColor:"#F5F5F5",color:"inherit"}}));function Bt({overflowItems:t,size:e}){return jsxs(Nt,{className:s.overflow,$size:e,children:["+",t.length]})}function J({source:t,maxItems:e,renderOverflow:r,fanOutDirection:a,compact:i,slotProps:o,rootRef:n,id:c,"data-testid":d,className:m,sx:S}){let{zIndex:A=rt,size:u,stackStep:l,gap:p,minTrackWidth:I}=o?.layout??{},{size:f,stackStep:y,gap:R,minTrackWidth:_}=useMemo(()=>ct({size:u,stackStep:l,gap:p,minTrackWidth:I}),[u,l,p,I]),M=i||!st(t.items,e),k=useMemo(()=>W({source:t,maxItems:e,slotSize:f,renderOverflow:r??Bt}),[t,e,f,r]),D=mt(k.length,a),{slotRefs:Q,handleMouseEnter:V,handleMouseLeave:L,isExpanded:v,collapsedWidth:T,trackWidth:$t,translateX:Ft,slotOpacity:tt}=ht({slotCount:k.length,anchorIndex:D,size:f,stackStep:y,gap:R,isFanOutEnabled:M,compact:i});if(k.length===0)return null;let{className:Wt,sx:Ct,...Dt}=o?.shell??{},{className:Vt,...Lt}=o?.track??{};return jsx(Rt,{ref:n,...Dt,className:Hb(s.root,m,Wt),sx:[...H(S),...H(Ct)],$isFullWidth:M,children:jsx(_t,{id:c,"data-testid":d,...Lt,className:Hb(s.track,Vt),onMouseEnter:V,onMouseLeave:L,$width:$t,$minWidth:i?f:Math.max(_,T),$height:f,$zIndex:v?A:void 0,children:k.map(({key:zt,render:Kt},w)=>jsx(wt,{ref:Ht=>{Q.current[w]=Ht;},className:s.slot,initial:false,animate:{x:Ft[w]??0,opacity:tt[w]??1},transition:et,$index:w,$left:w*y,$size:f,$isHidden:tt[w]===0,children:Kt()},zt))})})}var Pt=forwardRef(({title:t,id:e,className:r,...a},i)=>{let o=t!=null&&t!=="",n=jsx(bt,{ref:i,id:e,"data-testid":e??"AvatarStackItem",className:Hb(s.overlapItem,!o&&E,r),...a});return o?jsx(p,{title:t,wrapperProps:{className:E},children:n}):n});Pt.displayName="AvatarStackItem";var Y=memo(Pt);function te(t){return jsx(p,{title:`${t} more`,wrapperProps:{className:E},children:jsx(xt,{className:s.overflow,children:jsxs("span",{children:["+",t]})})})}function G({source:t,maxItems:e,renderOverflow:r,slotProps:a,rootRef:i,id:o,"data-testid":n,className:c,sx:d}){let m=a?.layout?.size??h,{renderItem:S}=t,A=W({source:{...t,renderItem:(u,l,p)=>jsx(Y,{children:S(u,l,p)})},maxItems:e,slotSize:m,renderOverflow:u=>r?.(u)??te(u.overflowItems.length)});return jsx(gt,{ref:i,id:o,"data-testid":n,className:Hb(s.root,c),sx:d,$slotSize:m,children:A.map(({key:u,render:l})=>jsx(Fragment,{children:l()},u))})}function ne({variant:t=K,items:e,getItemKey:r,renderItem:a,maxItems:i,renderOverflow:o,compact:n=false,id:c,"data-testid":d,slotProps:m,sx:S,className:A},u){let l=useMemo(()=>nt({items:e,getItemKey:r,renderItem:a}),[e,r,a]);if(!l)return null;let p={source:l,maxItems:i,renderOverflow:o,slotProps:m,rootRef:u,id:c,"data-testid":d??c??"AvatarStack",className:A,sx:S};return t==="static"?jsx(G,{...p}):jsx(J,{...p,fanOutDirection:it(t),compact:n})}var Mt=forwardRef(ne);Mt.displayName="AvatarStack";var ie=memo(Mt),le=ie;export{s as a,Ut as b,K as c,Y as d,le as e};
@@ -1,2 +1,2 @@
1
- import {j}from'./chunk-LLM6NHYM.js';import {Hb}from'./chunk-6HNOCQKM.js';import {forwardRef,memo}from'react';import {jsxs,jsx}from'react/jsx-runtime';import S from'@mui/material/Box';import {styled}from'@mui/material/styles';var l="os-shared-Alert",r={root:`${l}-root`,icon:`${l}-icon`,message:`${l}-message`},p={error:e=>({color:e.v2.palette.error[500],background:e.v2.palette.status.danger.subtle}),warning:e=>({color:e.v2.palette.warning[500],background:e.v2.palette.status.warning.subtle}),success:e=>({color:e.v2.palette.success[700],background:e.v2.palette.status.success.subtle}),info:e=>({color:e.v2.palette.brand[500],background:e.v2.palette.interactive.primary.subtle})};var C=()=>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:"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:"currentColor"})}),d=()=>jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",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:"currentColor"})}),m=()=>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"})});var g=styled(S,{shouldForwardProp:e=>e!=="$severity"})(({theme:e,$severity:s})=>({...p[s](e),display:"flex",alignItems:"center",gap:e.v2.spacing(4),minHeight:e.v2.spacing(32),padding:e.v2.spacing(8),borderRadius:e.v2.radius(4)})),f=styled("span")({width:12,height:12,flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center","& svg":{width:12,height:12,display:"block"}}),u=styled(j)({color:"inherit",wordBreak:"break-word"});function k(e){switch(e){case "success":return jsx(d,{});case "info":return jsx(m,{});case "error":case "warning":return jsx(C,{})}}var y=forwardRef(({severity:e="error",message:s,icon:v,className:h,sx:w,id:i,...A},x)=>jsxs(g,{ref:x,...A,$severity:e,className:Hb(r.root,h),sx:w,id:i,"data-testid":i??"Alert",children:[jsx(f,{className:r.icon,children:v??k(e)}),jsx(u,{component:"p",textVariant:"body.xsmall.regular",className:r.message,children:s})]}));y.displayName="Alert";var M=memo(y);
1
+ import {j}from'./chunk-6ZPNLCMN.js';import {Hb}from'./chunk-MMXWSV6V.js';import {forwardRef,memo}from'react';import {jsxs,jsx}from'react/jsx-runtime';import S from'@mui/material/Box';import {styled}from'@mui/material/styles';var l="os-shared-Alert",r={root:`${l}-root`,icon:`${l}-icon`,message:`${l}-message`},p={error:e=>({color:e.v2.palette.error[500],background:e.v2.palette.status.danger.subtle}),warning:e=>({color:e.v2.palette.warning[500],background:e.v2.palette.status.warning.subtle}),success:e=>({color:e.v2.palette.success[700],background:e.v2.palette.status.success.subtle}),info:e=>({color:e.v2.palette.brand[500],background:e.v2.palette.interactive.primary.subtle})};var C=()=>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:"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:"currentColor"})}),d=()=>jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",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:"currentColor"})}),m=()=>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"})});var g=styled(S,{shouldForwardProp:e=>e!=="$severity"})(({theme:e,$severity:s})=>({...p[s](e),display:"flex",alignItems:"center",gap:e.v2.spacing(4),minHeight:e.v2.spacing(32),padding:e.v2.spacing(8),borderRadius:e.v2.radius(4)})),f=styled("span")({width:12,height:12,flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center","& svg":{width:12,height:12,display:"block"}}),u=styled(j)({color:"inherit",wordBreak:"break-word"});function k(e){switch(e){case "success":return jsx(d,{});case "info":return jsx(m,{});case "error":case "warning":return jsx(C,{})}}var y=forwardRef(({severity:e="error",message:s,icon:v,className:h,sx:w,id:i,...A},x)=>jsxs(g,{ref:x,...A,$severity:e,className:Hb(r.root,h),sx:w,id:i,"data-testid":i??"Alert",children:[jsx(f,{className:r.icon,children:v??k(e)}),jsx(u,{component:"p",textVariant:"body.xsmall.regular",className:r.message,children:s})]}));y.displayName="Alert";var M=memo(y);
2
2
  export{r as a,M as b};
@@ -1 +1 @@
1
- import {L as L$1}from'./chunk-LLM6NHYM.js';import {Hb}from'./chunk-6HNOCQKM.js';import {forwardRef,useRef,useState,useEffect,useCallback,memo}from'react';import y from'@mui/material/SvgIcon';import {jsxs,Fragment,jsx}from'react/jsx-runtime';import E from'@mui/material/IconButton';import G from'@mui/material/InputAdornment';import {styled}from'@mui/material/styles';var o="os-shared-SearchInput",t={root:`${o}-root`,searchAdornment:`${o}-searchAdornment`,searchButton:`${o}-searchButton`,clearButton:`${o}-clearButton`,searchIcon:`${o}-searchIcon`,clearIcon:`${o}-clearIcon`};var L=n=>jsx(y,{viewBox:"0 0 12 12",sx:{width:12,height:12},...n,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})}),g=n=>jsxs(y,{viewBox:"0 0 13 13",sx:{width:13,height:13},...n,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 v=styled(G)(({theme:n})=>({display:"flex",alignItems:"center",gap:n.v2.spacing(4),flexShrink:0,paddingTop:1})),M={padding:2,borderRadius:"50%",flexShrink:0},B=styled(E)(()=>({...M,"&.Mui-disabled":{opacity:.5}})),x=styled(E)(()=>({...M}));var N=forwardRef(({clearable:n=true,onClear:P,disabled:p=false,value:a,defaultValue:d,onChange:T,endAdornment:H,id:s="SearchInput",className:k,onKeyDown:m,inputProps:A,onClick:D,...R},c)=>{let h=useRef(null),[$,C]=useState(()=>String(a??d??"").length>0),K=n&&$&&!p;useEffect(()=>{a!==void 0&&C(String(a??"").length>0);},[a]);let F=useCallback(e=>{h.current=e,typeof c=="function"?c(e):c&&(c.current=e);},[c]),Z=e=>{C(e.target.value.length>0),T?.(e);},O=e=>{e.stopPropagation(),D?.(e);},V=useCallback(e=>{e.stopPropagation(),m?.(e);},[m]),W=e=>{e.stopPropagation();let l=h.current;l&&(Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value")?.set?.call(l,""),l.dispatchEvent(new Event("input",{bubbles:true})),l.focus()),C(false),P?.();},j=e=>{e.stopPropagation(),h.current?.focus();},I=e=>{e.preventDefault();},q=jsxs(Fragment,{children:[jsx(v,{position:"end",className:t.searchAdornment,children:K?jsx(x,{className:t.clearButton,id:s?`${s}-clear-button`:void 0,type:"button","aria-label":"Clear search",disabled:p,disableRipple:true,onMouseDown:I,onClick:W,children:jsx(g,{className:t.clearIcon})}):jsx(B,{className:t.searchButton,id:s?`${s}-search-button`:void 0,type:"button","aria-label":"Search",disabled:p,disableRipple:true,onMouseDown:I,onClick:j,children:jsx(L,{className:t.searchIcon})})}),H]});return jsx(L$1,{...R,ref:F,id:s,type:"text",disabled:p,value:a,defaultValue:d,onChange:Z,onKeyDown:V,onClick:O,inputProps:{autoComplete:"off",...A},endAdornment:q,className:Hb(t.root,k),"data-testid":"SearchInput"})});N.displayName="SearchInput";var w=memo(N);export{t as a,w as b};
1
+ import {L as L$1}from'./chunk-6ZPNLCMN.js';import {Hb}from'./chunk-MMXWSV6V.js';import {forwardRef,useRef,useState,useEffect,useCallback,memo}from'react';import y from'@mui/material/SvgIcon';import {jsxs,Fragment,jsx}from'react/jsx-runtime';import v from'@mui/material/IconButton';import z from'@mui/material/InputAdornment';import {styled}from'@mui/material/styles';var o="os-shared-SearchInput",t={root:`${o}-root`,searchAdornment:`${o}-searchAdornment`,searchButton:`${o}-searchButton`,clearButton:`${o}-clearButton`,searchIcon:`${o}-searchIcon`,clearIcon:`${o}-clearIcon`};var L=n=>jsx(y,{viewBox:"0 0 12 12",sx:{width:12,height:12},...n,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})}),g=n=>jsxs(y,{viewBox:"0 0 13 13",sx:{width:13,height:13},...n,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 M=styled(z)(({theme:n})=>({display:"flex",alignItems:"center",gap:n.v2.spacing(4),flexShrink:0,paddingTop:1})),E=17,B={width:E,height:E,padding:0,borderRadius:"50%",flexShrink:0},x=styled(v)(()=>({...B,"&.Mui-disabled":{opacity:.5}})),N=styled(v)(()=>({...B}));var T=forwardRef(({clearable:n=true,onClear:P,disabled:p=false,value:a,defaultValue:d,onChange:H,endAdornment:A,id:s="SearchInput",className:k,onKeyDown:m,inputProps:R,onClick:D,...$},c)=>{let h=useRef(null),[K,C]=useState(()=>String(a??d??"").length>0),O=n&&K&&!p;useEffect(()=>{a!==void 0&&C(String(a??"").length>0);},[a]);let Z=useCallback(e=>{h.current=e,typeof c=="function"?c(e):c&&(c.current=e);},[c]),_=e=>{C(e.target.value.length>0),H?.(e);},F=e=>{e.stopPropagation(),D?.(e);},U=useCallback(e=>{e.stopPropagation(),m?.(e);},[m]),V=e=>{e.stopPropagation();let l=h.current;l&&(Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value")?.set?.call(l,""),l.dispatchEvent(new Event("input",{bubbles:true})),l.focus()),C(false),P?.();},W=e=>{e.stopPropagation(),h.current?.focus();},I=e=>{e.preventDefault();},j=jsxs(Fragment,{children:[jsx(M,{position:"end",className:t.searchAdornment,children:O?jsx(N,{className:t.clearButton,id:s?`${s}-clear-button`:void 0,type:"button","aria-label":"Clear search",disabled:p,disableRipple:true,onMouseDown:I,onClick:V,children:jsx(g,{className:t.clearIcon})}):jsx(x,{className:t.searchButton,id:s?`${s}-search-button`:void 0,type:"button","aria-label":"Search",disabled:p,disableRipple:true,onMouseDown:I,onClick:W,children:jsx(L,{className:t.searchIcon})})}),A]});return jsx(L$1,{...$,ref:Z,id:s,type:"text",disabled:p,value:a,defaultValue:d,onChange:_,onKeyDown:U,onClick:F,inputProps:{autoComplete:"off",...R},endAdornment:j,className:Hb(t.root,k),"data-testid":"SearchInput"})});T.displayName="SearchInput";var w=memo(T);export{t as a,w as b};
@@ -1 +1 @@
1
- import {Hb}from'./chunk-6HNOCQKM.js';import {forwardRef,useState,memo}from'react';import {ResponsiveContainer,AreaChart,CartesianGrid,XAxis,YAxis,Tooltip,Area}from'recharts';import {useTheme,alpha}from'@mui/material/styles';import {styled,Box,Typography}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var l="os-shared-AreaChart",o={root:`${l}-root`,tooltip:`${l}-tooltip`,tooltipTitle:`${l}-tooltipTitle`,tooltipValue:`${l}-tooltipValue`,loading:`${l}-loading`,legend:`${l}-legend`};var G=styled(Box)(()=>({width:"100%",height:"100%",display:"flex",flexDirection:"column"})),B=styled(Box)(({theme:t})=>({flex:1,minHeight:0,position:"relative","& svg:focus":{outline:"none"},"& svg:focus-visible":{outline:`2px solid ${t.v2.palette.interactive.primary.default}`}})),F=styled(Box)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"center",flexWrap:"wrap",gap:t.v2.spacing(12),paddingTop:t.v2.spacing(8)})),H=styled(Box)(({theme:t})=>({...t.v2.typography.textVariants.body.small.medium,display:"inline-flex",alignItems:"center",gap:t.v2.spacing(4),color:t.v2.palette.foreground.secondary,whiteSpace:"nowrap"})),m=styled("span")(({$color:t})=>({width:8,height:8,borderRadius:"50%",backgroundColor:t,flexShrink:0})),O=styled(Box)(({theme:t})=>({width:"auto",display:"inline-block",whiteSpace:"nowrap",backgroundColor:t.v2.palette.background.primary,padding:t.v2.spacing(6),border:`1.5px solid ${t.v2.palette.border.default}`,borderRadius:t.v2.radius(8),backdropFilter:t.v2.blur[24],boxShadow:t.v2.elevation[200]})),W=styled(Typography)(({theme:t})=>({...t.v2.typography.textVariants.caption.medium,width:"auto",marginBottom:t.v2.spacing(4),color:t.v2.palette.foreground.secondary,whiteSpace:"nowrap",overflow:"visible"})),M=styled(Typography)(({theme:t})=>({...t.v2.typography.textVariants.body.small.semibold,display:"flex",alignItems:"center",gap:t.v2.spacing(5),color:t.v2.palette.foreground.primary,whiteSpace:"nowrap",overflow:"visible",width:"auto"}));var pt=[{dataKey:30},{dataKey:32.9941},{dataKey:39.0471},{dataKey:56.3412},{dataKey:69.3118},{dataKey:87.4706},{dataKey:94.3882},{dataKey:110.406}],dt=()=>jsx(ResponsiveContainer,{className:o.loading,children:jsxs(AreaChart,{margin:{top:40},data:pt,children:[jsx("defs",{children:jsxs("linearGradient",{id:"areaChartLoadingGradient",x1:"0",y1:"0",x2:"0",y2:"1",gradientUnits:"objectBoundingBox",children:[jsx("stop",{offset:"0.54",stopColor:"rgba(67, 67, 67, 0.035)"}),jsx("stop",{offset:"1",stopColor:"rgba(255, 255, 255, 0)"})]})}),jsx(Area,{dataKey:"dataKey",type:"linear",fill:"url(#areaChartLoadingGradient)",fillOpacity:1,stroke:"#C2C2C2",strokeWidth:1,strokeLinecap:"round",strokeDasharray:"4 4",activeDot:false})]})}),b=dt;var ct=({active:t,payload:n,series:h,formatValue:f,formatTitle:x})=>{if(!t||!n?.length)return null;let y=n[0]?.payload??{};return jsxs(O,{className:o.tooltip,children:[jsx(W,{className:o.tooltipTitle,children:x(y)}),n.map((p,S)=>{let s=String(p.dataKey??""),C=h.find(v=>v.key===s);return jsxs(M,{className:o.tooltipValue,children:[jsx(m,{$color:C?.color??p.color}),jsx("span",{children:C?.label??s}),jsx("span",{children:f(p.value,s,y)})]},`${s}-${S}`)})]})},X=ct;var bt="areaChartStack",Tt=t=>t==null?"":typeof t=="number"?t.toLocaleString():String(t),Y=forwardRef((t,n)=>{let{data:h,xAxisKey:f,series:x,formatValue:y=Tt,formatTitle:p,isLoading:S=false,empty:s,showTooltip:C=true,showGrid:v=false,showXAxis:w=false,showYAxis:L=false,showLegend:j=false,xAxisLabel:g,yAxisLabel:k,yAxisDomain:U,yAxisTicks:_,curve:q="monotone",isStacked:J=false,tooltipContent:Q,id:D,className:Z,sx:tt}=t,et=useTheme(),[at,N]=useState(false),rt=h?.length===0,r=et.v2.palette,K=[r.status.success.emphasis,r.interactive.primary.default,r.status.warning.default,r.status.danger.emphasis],u=x.map((e,it)=>{let V=e.color??K[it%K.length];return {key:String(e.key),label:e.label??String(e.key),color:V,fill:e.fill??alpha(V,.1)}}),ot=p??(e=>String(e[f]??"")),R={fontSize:11,fill:r.foreground.tertiary},P={fontSize:11,fill:r.foreground.secondary};return jsx(G,{ref:n,id:D,"data-testid":D??"AreaChart",className:Hb(o.root,Z),sx:tt,children:S?jsx(b,{}):rt?s??jsx(b,{}):jsxs(Fragment,{children:[jsx(B,{children:jsx(ResponsiveContainer,{width:"100%",height:"100%",children:jsxs(AreaChart,{margin:{top:20,right:5,bottom:w&&g?28:5,left:L&&k?24:5},data:h,children:[v&&jsx(CartesianGrid,{strokeDasharray:"3 3",stroke:r.border.default,vertical:false}),w&&jsx(XAxis,{dataKey:f,height:g?"auto":void 0,tickLine:false,axisLine:false,tick:R,label:g?{value:g,position:"insideBottom",offset:8,...P}:void 0}),L&&jsx(YAxis,{domain:U,ticks:_,tickLine:false,axisLine:false,tick:R,label:k?{value:k,angle:-90,position:"insideLeft",offset:8,...P}:void 0}),C&&jsx(Tooltip,{content:Q??jsx(X,{series:u,formatValue:y,formatTitle:ot}),cursor:{fill:r.grey[400],stroke:r.grey[400],strokeWidth:1,strokeOpacity:1,stopOpacity:.3,strokeDasharray:"5 5",strokeLinecap:"round",strokeLinejoin:"round"}}),u.map(e=>jsx(Area,{dataKey:e.key,type:q,fill:e.fill,stroke:e.color,stackId:J?bt:void 0,activeDot:{r:5,fill:e.color,strokeWidth:2,stroke:r.base.white,cursor:at?"pointer":"default",onMouseOver:()=>N(true),onMouseLeave:()=>N(false)}},e.key))]})})}),j&&u.length>0&&jsx(F,{className:o.legend,children:u.map(e=>jsxs(H,{children:[jsx(m,{$color:e.color}),e.label]},e.key))})]})})});Y.displayName="AreaChart";var wt=memo(Y);export{o as a,wt as b};
1
+ import {Hb}from'./chunk-MMXWSV6V.js';import {forwardRef,useState,memo}from'react';import {ResponsiveContainer,AreaChart,CartesianGrid,XAxis,YAxis,Tooltip,Area}from'recharts';import {useTheme,alpha}from'@mui/material/styles';import {styled,Box,Typography}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var l="os-shared-AreaChart",o={root:`${l}-root`,tooltip:`${l}-tooltip`,tooltipTitle:`${l}-tooltipTitle`,tooltipValue:`${l}-tooltipValue`,loading:`${l}-loading`,legend:`${l}-legend`};var G=styled(Box)(()=>({width:"100%",height:"100%",display:"flex",flexDirection:"column"})),B=styled(Box)(({theme:t})=>({flex:1,minHeight:0,position:"relative","& svg:focus":{outline:"none"},"& svg:focus-visible":{outline:`2px solid ${t.v2.palette.interactive.primary.default}`}})),F=styled(Box)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"center",flexWrap:"wrap",gap:t.v2.spacing(12),paddingTop:t.v2.spacing(8)})),H=styled(Box)(({theme:t})=>({...t.v2.typography.textVariants.body.small.medium,display:"inline-flex",alignItems:"center",gap:t.v2.spacing(4),color:t.v2.palette.foreground.secondary,whiteSpace:"nowrap"})),m=styled("span")(({$color:t})=>({width:8,height:8,borderRadius:"50%",backgroundColor:t,flexShrink:0})),O=styled(Box)(({theme:t})=>({width:"auto",display:"inline-block",whiteSpace:"nowrap",backgroundColor:t.v2.palette.background.primary,padding:t.v2.spacing(6),border:`1.5px solid ${t.v2.palette.border.default}`,borderRadius:t.v2.radius(8),backdropFilter:t.v2.blur[24],boxShadow:t.v2.elevation[200]})),W=styled(Typography)(({theme:t})=>({...t.v2.typography.textVariants.caption.medium,width:"auto",marginBottom:t.v2.spacing(4),color:t.v2.palette.foreground.secondary,whiteSpace:"nowrap",overflow:"visible"})),M=styled(Typography)(({theme:t})=>({...t.v2.typography.textVariants.body.small.semibold,display:"flex",alignItems:"center",gap:t.v2.spacing(5),color:t.v2.palette.foreground.primary,whiteSpace:"nowrap",overflow:"visible",width:"auto"}));var pt=[{dataKey:30},{dataKey:32.9941},{dataKey:39.0471},{dataKey:56.3412},{dataKey:69.3118},{dataKey:87.4706},{dataKey:94.3882},{dataKey:110.406}],dt=()=>jsx(ResponsiveContainer,{className:o.loading,children:jsxs(AreaChart,{margin:{top:40},data:pt,children:[jsx("defs",{children:jsxs("linearGradient",{id:"areaChartLoadingGradient",x1:"0",y1:"0",x2:"0",y2:"1",gradientUnits:"objectBoundingBox",children:[jsx("stop",{offset:"0.54",stopColor:"rgba(67, 67, 67, 0.035)"}),jsx("stop",{offset:"1",stopColor:"rgba(255, 255, 255, 0)"})]})}),jsx(Area,{dataKey:"dataKey",type:"linear",fill:"url(#areaChartLoadingGradient)",fillOpacity:1,stroke:"#C2C2C2",strokeWidth:1,strokeLinecap:"round",strokeDasharray:"4 4",activeDot:false})]})}),b=dt;var ct=({active:t,payload:n,series:h,formatValue:f,formatTitle:x})=>{if(!t||!n?.length)return null;let y=n[0]?.payload??{};return jsxs(O,{className:o.tooltip,children:[jsx(W,{className:o.tooltipTitle,children:x(y)}),n.map((p,S)=>{let s=String(p.dataKey??""),C=h.find(v=>v.key===s);return jsxs(M,{className:o.tooltipValue,children:[jsx(m,{$color:C?.color??p.color}),jsx("span",{children:C?.label??s}),jsx("span",{children:f(p.value,s,y)})]},`${s}-${S}`)})]})},X=ct;var bt="areaChartStack",Tt=t=>t==null?"":typeof t=="number"?t.toLocaleString():String(t),Y=forwardRef((t,n)=>{let{data:h,xAxisKey:f,series:x,formatValue:y=Tt,formatTitle:p,isLoading:S=false,empty:s,showTooltip:C=true,showGrid:v=false,showXAxis:w=false,showYAxis:L=false,showLegend:j=false,xAxisLabel:g,yAxisLabel:k,yAxisDomain:U,yAxisTicks:_,curve:q="monotone",isStacked:J=false,tooltipContent:Q,id:D,className:Z,sx:tt}=t,et=useTheme(),[at,N]=useState(false),rt=h?.length===0,r=et.v2.palette,K=[r.status.success.emphasis,r.interactive.primary.default,r.status.warning.default,r.status.danger.emphasis],u=x.map((e,it)=>{let V=e.color??K[it%K.length];return {key:String(e.key),label:e.label??String(e.key),color:V,fill:e.fill??alpha(V,.1)}}),ot=p??(e=>String(e[f]??"")),R={fontSize:11,fill:r.foreground.tertiary},P={fontSize:11,fill:r.foreground.secondary};return jsx(G,{ref:n,id:D,"data-testid":D??"AreaChart",className:Hb(o.root,Z),sx:tt,children:S?jsx(b,{}):rt?s??jsx(b,{}):jsxs(Fragment,{children:[jsx(B,{children:jsx(ResponsiveContainer,{width:"100%",height:"100%",children:jsxs(AreaChart,{margin:{top:20,right:5,bottom:w&&g?28:5,left:L&&k?24:5},data:h,children:[v&&jsx(CartesianGrid,{strokeDasharray:"3 3",stroke:r.border.default,vertical:false}),w&&jsx(XAxis,{dataKey:f,height:g?"auto":void 0,tickLine:false,axisLine:false,tick:R,label:g?{value:g,position:"insideBottom",offset:8,...P}:void 0}),L&&jsx(YAxis,{domain:U,ticks:_,tickLine:false,axisLine:false,tick:R,label:k?{value:k,angle:-90,position:"insideLeft",offset:8,...P}:void 0}),C&&jsx(Tooltip,{content:Q??jsx(X,{series:u,formatValue:y,formatTitle:ot}),cursor:{fill:r.grey[400],stroke:r.grey[400],strokeWidth:1,strokeOpacity:1,stopOpacity:.3,strokeDasharray:"5 5",strokeLinecap:"round",strokeLinejoin:"round"}}),u.map(e=>jsx(Area,{dataKey:e.key,type:q,fill:e.fill,stroke:e.color,stackId:J?bt:void 0,activeDot:{r:5,fill:e.color,strokeWidth:2,stroke:r.base.white,cursor:at?"pointer":"default",onMouseOver:()=>N(true),onMouseLeave:()=>N(false)}},e.key))]})})}),j&&u.length>0&&jsx(F,{className:o.legend,children:u.map(e=>jsxs(H,{children:[jsx(m,{$color:e.color}),e.label]},e.key))})]})})});Y.displayName="AreaChart";var wt=memo(Y);export{o as a,wt as b};
@@ -0,0 +1 @@
1
+ import {Hb}from'./chunk-MMXWSV6V.js';import {forwardRef,memo}from'react';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {styled,alpha}from'@mui/material/styles';var r="os-shared-FilterButton",e={root:`${r}-root`,rootActive:`${r}-rootActive`,trigger:`${r}-trigger`,icon:`${r}-icon`,count:`${r}-count`,clear:`${r}-clear`,clearIcon:`${r}-clearIcon`},p=15,u=14,l=14,_=30,C=32,d=14;var N=t=>jsx("svg",{width:p,height:u,viewBox:"0 0 15 14",fill:"none","aria-hidden":"true",...t,children:jsx("path",{d:"M2.68347 2.00034C2.37927 2.00034 2.19057 2.331 2.3449 2.59326L6.61152 8.28564V12.6066C6.61152 12.8987 6.91881 13.0885 7.18004 12.9579L8.75119 12.1721C8.88421 12.1054 8.96808 11.9697 8.96808 11.8208V8.2853L13.2347 2.59292C13.3894 2.331 13.2007 2 12.8961 2L2.68347 2.00034ZM3.37194 2.78609H12.208L8.23698 7.97835C8.20123 8.03885 8.18233 8.10794 8.18267 8.17806V11.5782L7.39692 11.971V8.17806C7.39692 8.10759 7.37802 8.03885 7.34262 7.97835L3.37194 2.78609Z",fill:"currentColor"})}),b=t=>jsxs("svg",{width:l,height:l,viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",...t,children:[jsx("path",{d:"M2.44769 2.44766L9.55186 9.55183",stroke:"currentColor",strokeMiterlimit:"10",strokeLinecap:"round"}),jsx("path",{d:"M9.55186 2.44766L2.44769 9.55183",stroke:"currentColor",strokeMiterlimit:"10",strokeLinecap:"round"})]});var R=styled("div",{shouldForwardProp:t=>t!=="$isActive"&&t!=="$isDisabled"&&t!=="$hasFilters"})(({theme:t,$isActive:n,$isDisabled:g,$hasFilters:I})=>{let{base:o,brand:i,grey:f}=t.v2.palette;return {boxSizing:"border-box",display:"inline-flex",alignItems:"center",justifyContent:"center",width:t.v2.spacing(_),height:t.v2.spacing(C),minWidth:t.v2.spacing(_),minHeight:t.v2.spacing(C),borderRadius:t.v2.radius(4),border:`1px solid ${f[100]}`,backgroundColor:o.white,color:o.black,cursor:"pointer","&:hover":{opacity:.7},[`&:has(.${e.trigger}:focus-visible)`]:{outline:`2px solid ${i[500]}`,outlineOffset:0},...n&&{border:`1px solid ${i[500]}`,backgroundColor:alpha(i[500],.05),boxShadow:`0px 0px 4px 0px ${alpha(i[500],.5)}`},...I&&{width:"auto",gap:t.v2.spacing(6),padding:`0 ${t.v2.spacing(8)}`},...g&&{opacity:.5,pointerEvents:"none"}}}),S=styled("button")({display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"inherit",margin:0,padding:0,border:"none",background:"transparent",color:"inherit",cursor:"inherit",font:"inherit",minWidth:0,"&:focus-visible":{outline:"none"}}),L=styled("span")(({theme:t})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:t.v2.spacing(p),height:t.v2.spacing(u)})),O=styled("span")(({theme:t})=>{let{base:n}=t.v2.palette;return {...t.v2.typography.textVariants.micro.bold,display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,minWidth:t.v2.spacing(d),height:t.v2.spacing(d),borderRadius:"50%",background:t.v2.palette.gradient.brand,color:n.white,lineHeight:t.v2.spacing(d)}}),$=styled("button")(({theme:t})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,margin:0,padding:t.v2.spacing(2),border:"none",background:"transparent",color:"inherit",cursor:"pointer",[`& .${e.clearIcon}`]:{width:t.v2.spacing(l),height:t.v2.spacing(l)}}));var G=forwardRef(function({id:n,className:g,sx:I,isDisabled:o=false,isActive:i=false,isOpen:f,menuId:U,activeFiltersCount:B,"aria-label":m,clearLabel:w="Clear filters",icon:V,children:F,onClick:y,onClear:M},A){let c=typeof B=="number"&&B>0,E=i||c,P=x=>{o||!y||x.target?.closest(`.${e.clear}`)||y(x);};return jsxs(R,{ref:A,id:n,className:Hb(e.root,E&&e.rootActive,g),sx:I,$isActive:E,$hasFilters:c,$isDisabled:o,"data-testid":n??"FilterButton",onClick:P,children:[jsx(S,{type:"button",className:e.trigger,disabled:o,"aria-label":F?m:m??"Filter","aria-expanded":f,"aria-controls":U,"aria-haspopup":"dialog",children:F??jsxs(Fragment,{children:[jsx(L,{className:e.icon,children:V??jsx(N,{})}),c&&jsx(O,{className:e.count,children:B})]})}),!F&&c&&jsx($,{type:"button",className:e.clear,disabled:o,"aria-label":w,onClick:M,children:jsx(b,{className:e.clearIcon})})]})});G.displayName="FilterButton";var k=memo(G);export{e as a,k as b};
@@ -1 +1 @@
1
- import {Gb,Hb}from'./chunk-6HNOCQKM.js';import {forwardRef,useCallback,memo}from'react';import {jsxs,jsx}from'react/jsx-runtime';import {styled,alpha}from'@mui/material/styles';var u="os-shared-FilterChip",a={root:`${u}-root`,label:`${u}-label`,dismissButton:`${u}-dismissButton`,dismissIcon:`${u}-dismissIcon`},C=",",g="Dismiss filter";function L({className:t}){return jsxs("svg",{className:t,width:"8",height:"8",viewBox:"0 0 8 8",fill:"none","aria-hidden":"true",children:[jsx("path",{d:"M1.79488 1.73941L6.31572 6.26024",stroke:"currentColor",strokeWidth:"0.875",strokeMiterlimit:"10",strokeLinecap:"round"}),jsx("path",{d:"M6.31572 1.73941L1.79488 6.26024",stroke:"currentColor",strokeWidth:"0.875",strokeMiterlimit:"10",strokeLinecap:"round"})]})}var k=styled("div",{shouldForwardProp:t=>!["$disabled","$isActive"].includes(t)})(({theme:t,$disabled:e,$isActive:r=true})=>{let{base:o,grey:s,foreground:n}=t.v2.palette,p=t.v2.spacing(1),i=t.palette.background.gradient.shadedBlue;return {display:"inline-flex",position:"relative",alignItems:"center",justifyContent:"center",gap:t.v2.spacing(8),height:t.v2.spacing(32),minWidth:"135.11px",maxWidth:"16rem",boxSizing:"border-box",borderStyle:"solid",borderRadius:t.v2.radius(48),...t.v2.typography.textVariants.body.small.regular,whiteSpace:"nowrap",overflow:"hidden",cursor:"default",opacity:e?.6:1,...r?{borderWidth:0,paddingInline:`calc(${t.v2.spacing(16)} + ${p})`,background:i,color:o.white}:{borderWidth:p,borderColor:s[100],paddingInline:t.v2.spacing(16),backgroundColor:o.white,color:n.primary}}}),E=styled("span")(({theme:t})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"1 1 auto",textAlign:"center",fontWeight:t.v2.typography.fontWeightRegular})),_=styled("button",{shouldForwardProp:t=>t!=="$disabled"&&t!=="$isActive"})(({theme:t,$disabled:e,$isActive:r=true})=>{let{base:o,foreground:s}=t.v2.palette;return {display:"inline-flex",position:"relative",alignItems:"center",justifyContent:"center",flexShrink:0,width:"16px",height:"16px",padding:0,border:"none",borderRadius:"50%",backgroundColor:alpha(o.black,.1),color:r?o.white:s.secondary,cursor:e?"not-allowed":"pointer",opacity:e?.6:1,transition:"opacity 150ms ease, background-color 150ms ease","&:hover":e?void 0:{backgroundColor:alpha(o.black,.2)},"&:focus-visible":{outline:`2px solid ${r?o.white:s.secondary}`,outlineOffset:"1px"},"& svg":{display:"block"}}});var A=forwardRef(({label:t,value:e,separator:r=C,visible:o=true,dismissible:s=true,onDismiss:n,dismissLabel:p=g,disabled:i=false,isActive:x=true,children:F,id:S,sx:R,className:w,slotProps:P,"data-testid":T},$)=>{let{label:h,dismissButton:l}=P??{},B=useCallback(f=>{f.stopPropagation(),!i&&(l?.onClick?.(f),n?.(f));},[i,l,n]);if(!o)return null;let m=t??(typeof e=="string"?e:e&&e.length>0?e.join(r):void 0);if(!m&&!F)return null;let N=s&&n!=null;return jsxs(k,{ref:$,id:S,"data-testid":T??S??"FilterChip",className:Hb(a.root,w),sx:Gb({},R),$disabled:i,$isActive:x,role:"status",children:[m?jsx(E,{...h,className:Hb(a.label,h?.className),sx:Gb({},h?.sx),children:m}):F,N&&jsx(_,{...l,type:"button","aria-label":l?.["aria-label"]??p,disabled:i,onClick:B,className:Hb(a.dismissButton,l?.className),sx:Gb({},l?.sx),$disabled:i,$isActive:x,children:jsx(L,{className:a.dismissIcon})})]})});A.displayName="FilterChip";var U=memo(A);export{a,C as b,g as c,U as d};
1
+ import {Gb,Hb}from'./chunk-MMXWSV6V.js';import {forwardRef,useCallback,memo}from'react';import {jsxs,jsx}from'react/jsx-runtime';import {styled,alpha}from'@mui/material/styles';var u="os-shared-FilterChip",a={root:`${u}-root`,label:`${u}-label`,dismissButton:`${u}-dismissButton`,dismissIcon:`${u}-dismissIcon`},C=",",g="Dismiss filter";function L({className:t}){return jsxs("svg",{className:t,width:"8",height:"8",viewBox:"0 0 8 8",fill:"none","aria-hidden":"true",children:[jsx("path",{d:"M1.79488 1.73941L6.31572 6.26024",stroke:"currentColor",strokeWidth:"0.875",strokeMiterlimit:"10",strokeLinecap:"round"}),jsx("path",{d:"M6.31572 1.73941L1.79488 6.26024",stroke:"currentColor",strokeWidth:"0.875",strokeMiterlimit:"10",strokeLinecap:"round"})]})}var k=styled("div",{shouldForwardProp:t=>!["$disabled","$isActive"].includes(t)})(({theme:t,$disabled:e,$isActive:r=true})=>{let{base:o,grey:s,foreground:n}=t.v2.palette,p=t.v2.spacing(1),i=t.palette.background.gradient.shadedBlue;return {display:"inline-flex",position:"relative",alignItems:"center",justifyContent:"center",gap:t.v2.spacing(8),height:t.v2.spacing(32),minWidth:"135.11px",maxWidth:"16rem",boxSizing:"border-box",borderStyle:"solid",borderRadius:t.v2.radius(48),...t.v2.typography.textVariants.body.small.regular,whiteSpace:"nowrap",overflow:"hidden",cursor:"default",opacity:e?.6:1,...r?{borderWidth:0,paddingInline:`calc(${t.v2.spacing(16)} + ${p})`,background:i,color:o.white}:{borderWidth:p,borderColor:s[100],paddingInline:t.v2.spacing(16),backgroundColor:o.white,color:n.primary}}}),E=styled("span")(({theme:t})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"1 1 auto",textAlign:"center",fontWeight:t.v2.typography.fontWeightRegular})),_=styled("button",{shouldForwardProp:t=>t!=="$disabled"&&t!=="$isActive"})(({theme:t,$disabled:e,$isActive:r=true})=>{let{base:o,foreground:s}=t.v2.palette;return {display:"inline-flex",position:"relative",alignItems:"center",justifyContent:"center",flexShrink:0,width:"16px",height:"16px",padding:0,border:"none",borderRadius:"50%",backgroundColor:alpha(o.black,.1),color:r?o.white:s.secondary,cursor:e?"not-allowed":"pointer",opacity:e?.6:1,transition:"opacity 150ms ease, background-color 150ms ease","&:hover":e?void 0:{backgroundColor:alpha(o.black,.2)},"&:focus-visible":{outline:`2px solid ${r?o.white:s.secondary}`,outlineOffset:"1px"},"& svg":{display:"block"}}});var A=forwardRef(({label:t,value:e,separator:r=C,visible:o=true,dismissible:s=true,onDismiss:n,dismissLabel:p=g,disabled:i=false,isActive:x=true,children:F,id:S,sx:R,className:w,slotProps:P,"data-testid":T},$)=>{let{label:h,dismissButton:l}=P??{},B=useCallback(f=>{f.stopPropagation(),!i&&(l?.onClick?.(f),n?.(f));},[i,l,n]);if(!o)return null;let m=t??(typeof e=="string"?e:e&&e.length>0?e.join(r):void 0);if(!m&&!F)return null;let N=s&&n!=null;return jsxs(k,{ref:$,id:S,"data-testid":T??S??"FilterChip",className:Hb(a.root,w),sx:Gb({},R),$disabled:i,$isActive:x,role:"status",children:[m?jsx(E,{...h,className:Hb(a.label,h?.className),sx:Gb({},h?.sx),children:m}):F,N&&jsx(_,{...l,type:"button","aria-label":l?.["aria-label"]??p,disabled:i,onClick:B,className:Hb(a.dismissButton,l?.className),sx:Gb({},l?.sx),$disabled:i,$isActive:x,children:jsx(L,{className:a.dismissIcon})})]})});A.displayName="FilterChip";var U=memo(A);export{a,C as b,g as c,U as d};
@@ -1 +1 @@
1
- import {a,d,b,c,j as j$1,e}from'./chunk-IKGDJDP5.js';import {fc,gc}from'./chunk-VRGBJY4Q.js';import {memo,useState}from'react';import Z from'@mui/material/ClickAwayListener';import _ from'@mui/material/Popper';import {useTranslation}from'react-i18next';import {DateObject,Calendar}from'react-multi-date-picker';import l from'@mui/material/Box';import s from'@mui/material/Button';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var j=styled(s)(()=>({minWidth:"auto",padding:0,"& > img":{cursor:"pointer"}})),z=styled(l)(()=>({position:"relative"})),H=styled(l,{shouldForwardProp:t=>t!=="open"})(({open:t,theme:e})=>({display:t?"flex":"none",flexDirection:"column",background:e.palette.common.white,boxShadow:e.shadows[9],borderRadius:e.spacing(1),top:37,color:e.palette.text.primary,fontSize:"11px",margin:"8px 0",".rmdp-calendar":{padding:"8px 16px 16px"},".rmdp-rtl *":{fontFamily:"Tajawal"},".rmdp-rtl .sd":{paddingTop:"4px"},".rmdp-wrapper":{position:"relative",borderRadius:"8px",boxShadow:"none"},".rmdp-day span":{fontSize:"11px",fontWeight:500},".rmdp-day, .rmdp-week-day":{width:40,height:40,marginBottom:"2px",padding:"4px",fontSize:"11px",color:e.palette.grey[900]},".rmdp-day-picker":{padding:0},".rmdp-day.rmdp-today span":{backgroundColor:"transparent !important",color:e.palette.info.dark},".rmdp-day.rmdp-today.end span, .rmdp-day.rmdp-today.end span":{color:e.palette.common.white},".rmdp-range, .rmdp-day:not(.rmdp-disabled):not(.rmdp-day-hidden) span:hover":{background:e.palette.info.light,boxShadow:"none",color:e.palette.grey[900]},".rmdp-range-hover.start, .rmdp-range.start, .rmdp-range-hover.end, .rmdp-range.end, .rmdp-rtl .rmdp-range-hover.start, .rmdp-rtl .rmdp-range.start, .rmdp-rtl .rmdp-range-hover.end, .rmdp-rtl .rmdp-range.end":{borderRadius:"50%",background:e.palette.background.gradient.darkShadedBlue,color:e.palette.common.white},".rmdp-range.start:after":{content:'""',position:"absolute",background:e.palette.info.light,height:"100%",width:"50%",right:0,top:0,zIndex:-1},".rmdp-rtl .rmdp-range.start:after":{right:"unset",left:0},".rmdp-range.end:after":{content:'""',position:"absolute",background:e.palette.info.light,height:"100%",width:"50%",left:0,top:0,zIndex:-1},".rmdp-rtl .rmdp-range.end:after":{left:"unset",right:0},".rmdp-week-day":{color:e.palette.grey[700],marginBottom:"4px",fontSize:"11px",padding:"4px"},".rmdp-header-values":{color:e.palette.grey[900],fontSize:"12px",fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px"},".rmdp-header-values span:nth-of-type(2)":{display:"none"},".rmdp-header":{padding:"4px 0",margin:0,fontSize:"12px"},".rmdp-top-class":{display:"block !important"},".rmdp-day.rmdp-selected span:not(.highlight)":{background:e.palette.info.dark},".rmdp-day.start.end":{overflow:"hidden"}})),W=styled(s,{shouldForwardProp:t=>t!=="open"})(({open:t,theme:e})=>({color:e.palette.text.primary,fontSize:"11px",fontWeight:500,padding:e.spacing(1),borderRadius:"4px",border:"1px solid",borderColor:e.palette.divider,background:e.palette.common.white,textTransform:"none",height:32,...t&&{border:"1px solid",borderColor:e.palette.info.dark,boxShadow:e.shadows[7]}})),R=styled(l)(({theme:t})=>({display:"flex",justifyContent:"flex-end",alignItems:"center",gap:8,padding:"16px",borderTop:`1px solid ${t.palette.divider}`})),A=styled(s)(({theme:t})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",background:"transparent",color:t.palette.text.primary,border:"1px solid",borderColor:t.palette.divider,fontWeight:500,borderRadius:"4px","&:hover":{background:"transparent",color:t.palette.text.primary}})),E=styled(s)(({theme:t})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",borderRadius:"4px",fontWeight:700,background:t.palette.info.dark,"&:hover":{background:t.palette.info.dark}})),Y=styled(l)(()=>({display:"flex",gap:"8px"}));var re=["Su","Mo","Tu","We","Th","Fr","Sa"];function oe({id:t="date-picker",isAr:e$1=false,value:o,setValue:D,enableTimePicker:d$1,placement:L,sx:I,...N}){let[y,w]=useState(null),[P,V]=useState(o?new DateObject(new Date(o.toLocaleString())):new DateObject(new Date)),[T,u]=useState(o?new DateObject(new Date(o.toLocaleString())):new DateObject(new Date)),$=o?.hour?a(o.hour):d(),q=o?.hour?b(o.hour):b(new Date().getHours()),[p,G]=useState({hour:$,minute:o?.minute??c(),period:q}),{t:C}=useTranslation(),f=!!y,J=r=>r==="right"?e$1?fc:gc:e$1?gc:fc,K=r=>{w(r.currentTarget);},x=()=>{w(null);},Q=()=>{let r=p.hour;d$1&&(r=e(p.hour,p.period||"AM"));let i=d$1?T.setHour(r).setMinute(p.minute):T;V(i),D&&D(i),x();},U=r=>{G(r);};return jsx(Z,{onClickAway:x,children:jsxs(z,{sx:{...I},id:t,"data-testid":"DatePicker",children:[jsx(W,{onClick:K,open:f,className:"date-picker-button",children:P.format("MMM D, YYYY")}),jsx(_,{open:f,anchorEl:y,placement:L,children:jsxs(H,{className:"date-picker-popover",open:f,children:[jsx(Calendar,{numberOfMonths:1,format:"MMM DD YYYY",monthYearSeparator:" ",renderButton:(r,i)=>jsx(j,{onClick:i,children:jsx("img",{src:J(r),alt:"arrow"})}),onMonthChange:r=>{u(r);},onYearChange:r=>{u(r);},onChange:r=>{u(r);},weekDays:e$1?void 0:re,minDate:new Date,value:P,...N}),jsxs(R,{sx:{...d$1&&{justifyContent:"space-between"}},children:[d$1&&jsx(j$1,{enableRealTimeChange:true,onChange:U,defaultTime:p}),jsxs(Y,{children:[jsx(A,{variant:"contained",onClick:x,children:C("cancel")}),jsx(E,{variant:"contained",onClick:Q,children:C("okay")})]})]})]})})]})})}var F=memo(oe);var ae=F;export{F as a,ae as b};
1
+ import {a,d,b,c,j as j$1,e}from'./chunk-RXCJF7BB.js';import {fc,gc}from'./chunk-VRGBJY4Q.js';import {memo,useState}from'react';import Z from'@mui/material/ClickAwayListener';import _ from'@mui/material/Popper';import {useTranslation}from'react-i18next';import {DateObject,Calendar}from'react-multi-date-picker';import l from'@mui/material/Box';import s from'@mui/material/Button';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var j=styled(s)(()=>({minWidth:"auto",padding:0,"& > img":{cursor:"pointer"}})),z=styled(l)(()=>({position:"relative"})),H=styled(l,{shouldForwardProp:t=>t!=="open"})(({open:t,theme:e})=>({display:t?"flex":"none",flexDirection:"column",background:e.palette.common.white,boxShadow:e.shadows[9],borderRadius:e.spacing(1),top:37,color:e.palette.text.primary,fontSize:"11px",margin:"8px 0",".rmdp-calendar":{padding:"8px 16px 16px"},".rmdp-rtl *":{fontFamily:"Tajawal"},".rmdp-rtl .sd":{paddingTop:"4px"},".rmdp-wrapper":{position:"relative",borderRadius:"8px",boxShadow:"none"},".rmdp-day span":{fontSize:"11px",fontWeight:500},".rmdp-day, .rmdp-week-day":{width:40,height:40,marginBottom:"2px",padding:"4px",fontSize:"11px",color:e.palette.grey[900]},".rmdp-day-picker":{padding:0},".rmdp-day.rmdp-today span":{backgroundColor:"transparent !important",color:e.palette.info.dark},".rmdp-day.rmdp-today.end span, .rmdp-day.rmdp-today.end span":{color:e.palette.common.white},".rmdp-range, .rmdp-day:not(.rmdp-disabled):not(.rmdp-day-hidden) span:hover":{background:e.palette.info.light,boxShadow:"none",color:e.palette.grey[900]},".rmdp-range-hover.start, .rmdp-range.start, .rmdp-range-hover.end, .rmdp-range.end, .rmdp-rtl .rmdp-range-hover.start, .rmdp-rtl .rmdp-range.start, .rmdp-rtl .rmdp-range-hover.end, .rmdp-rtl .rmdp-range.end":{borderRadius:"50%",background:e.palette.background.gradient.darkShadedBlue,color:e.palette.common.white},".rmdp-range.start:after":{content:'""',position:"absolute",background:e.palette.info.light,height:"100%",width:"50%",right:0,top:0,zIndex:-1},".rmdp-rtl .rmdp-range.start:after":{right:"unset",left:0},".rmdp-range.end:after":{content:'""',position:"absolute",background:e.palette.info.light,height:"100%",width:"50%",left:0,top:0,zIndex:-1},".rmdp-rtl .rmdp-range.end:after":{left:"unset",right:0},".rmdp-week-day":{color:e.palette.grey[700],marginBottom:"4px",fontSize:"11px",padding:"4px"},".rmdp-header-values":{color:e.palette.grey[900],fontSize:"12px",fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px"},".rmdp-header-values span:nth-of-type(2)":{display:"none"},".rmdp-header":{padding:"4px 0",margin:0,fontSize:"12px"},".rmdp-top-class":{display:"block !important"},".rmdp-day.rmdp-selected span:not(.highlight)":{background:e.palette.info.dark},".rmdp-day.start.end":{overflow:"hidden"}})),W=styled(s,{shouldForwardProp:t=>t!=="open"})(({open:t,theme:e})=>({color:e.palette.text.primary,fontSize:"11px",fontWeight:500,padding:e.spacing(1),borderRadius:"4px",border:"1px solid",borderColor:e.palette.divider,background:e.palette.common.white,textTransform:"none",height:32,...t&&{border:"1px solid",borderColor:e.palette.info.dark,boxShadow:e.shadows[7]}})),R=styled(l)(({theme:t})=>({display:"flex",justifyContent:"flex-end",alignItems:"center",gap:8,padding:"16px",borderTop:`1px solid ${t.palette.divider}`})),A=styled(s)(({theme:t})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",background:"transparent",color:t.palette.text.primary,border:"1px solid",borderColor:t.palette.divider,fontWeight:500,borderRadius:"4px","&:hover":{background:"transparent",color:t.palette.text.primary}})),E=styled(s)(({theme:t})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",borderRadius:"4px",fontWeight:700,background:t.palette.info.dark,"&:hover":{background:t.palette.info.dark}})),Y=styled(l)(()=>({display:"flex",gap:"8px"}));var re=["Su","Mo","Tu","We","Th","Fr","Sa"];function oe({id:t="date-picker",isAr:e$1=false,value:o,setValue:D,enableTimePicker:d$1,placement:L,sx:I,...N}){let[y,w]=useState(null),[P,V]=useState(o?new DateObject(new Date(o.toLocaleString())):new DateObject(new Date)),[T,u]=useState(o?new DateObject(new Date(o.toLocaleString())):new DateObject(new Date)),$=o?.hour?a(o.hour):d(),q=o?.hour?b(o.hour):b(new Date().getHours()),[p,G]=useState({hour:$,minute:o?.minute??c(),period:q}),{t:C}=useTranslation(),f=!!y,J=r=>r==="right"?e$1?fc:gc:e$1?gc:fc,K=r=>{w(r.currentTarget);},x=()=>{w(null);},Q=()=>{let r=p.hour;d$1&&(r=e(p.hour,p.period||"AM"));let i=d$1?T.setHour(r).setMinute(p.minute):T;V(i),D&&D(i),x();},U=r=>{G(r);};return jsx(Z,{onClickAway:x,children:jsxs(z,{sx:{...I},id:t,"data-testid":"DatePicker",children:[jsx(W,{onClick:K,open:f,className:"date-picker-button",children:P.format("MMM D, YYYY")}),jsx(_,{open:f,anchorEl:y,placement:L,children:jsxs(H,{className:"date-picker-popover",open:f,children:[jsx(Calendar,{numberOfMonths:1,format:"MMM DD YYYY",monthYearSeparator:" ",renderButton:(r,i)=>jsx(j,{onClick:i,children:jsx("img",{src:J(r),alt:"arrow"})}),onMonthChange:r=>{u(r);},onYearChange:r=>{u(r);},onChange:r=>{u(r);},weekDays:e$1?void 0:re,minDate:new Date,value:P,...N}),jsxs(R,{sx:{...d$1&&{justifyContent:"space-between"}},children:[d$1&&jsx(j$1,{enableRealTimeChange:true,onChange:U,defaultTime:p}),jsxs(Y,{children:[jsx(A,{variant:"contained",onClick:x,children:C("cancel")}),jsx(E,{variant:"contained",onClick:Q,children:C("okay")})]})]})]})})]})})}var F=memo(oe);var ae=F;export{F as a,ae as b};