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

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 (207) hide show
  1. package/build/_chunks/{chunk-MPXLNM5H.js → chunk-26OK5BYP.js} +1 -1
  2. package/build/_chunks/{chunk-E4LADATG.js → chunk-35RUQ6MX.js} +1 -1
  3. package/build/_chunks/{chunk-ZWEVMVLG.js → chunk-4EOSR5FI.js} +1 -1
  4. package/build/_chunks/{chunk-I5DP4JJP.js → chunk-4IQ3J4LF.js} +1 -1
  5. package/build/_chunks/{chunk-ON73ZZC4.js → chunk-4NHNAJKD.js} +1 -1
  6. package/build/_chunks/{chunk-WO7POLIC.js → chunk-57D57K75.js} +1 -1
  7. package/build/_chunks/chunk-5OC2QXZL.js +1 -0
  8. package/build/_chunks/{chunk-JRXEVVE6.js → chunk-5YOH2ITP.js} +1 -1
  9. package/build/_chunks/{chunk-RRCCQYTR.js → chunk-6LO7PI3V.js} +1 -1
  10. package/build/_chunks/{chunk-CUKFER4H.js → chunk-6UMTGWFW.js} +1 -1
  11. package/build/_chunks/{chunk-LLM6NHYM.js → chunk-6ZPNLCMN.js} +1 -1
  12. package/build/_chunks/{chunk-XGCSZNS4.js → chunk-76GQ37UR.js} +1 -1
  13. package/build/_chunks/{chunk-IFP6SF7C.js → chunk-7S2LHLZC.js} +1 -1
  14. package/build/_chunks/{chunk-CFSPFRLR.js → chunk-AN56DE5R.js} +1 -1
  15. package/build/_chunks/{chunk-G6PIEK53.js → chunk-BFBJOTG2.js} +1 -1
  16. package/build/_chunks/{chunk-LON5JVKL.js → chunk-BNKBYTQ3.js} +1 -1
  17. package/build/_chunks/{chunk-2HMREFM4.js → chunk-CFZR2VK2.js} +1 -1
  18. package/build/_chunks/{chunk-IBZBQ24S.js → chunk-D7JDLT2O.js} +1 -1
  19. package/build/_chunks/{chunk-JECD3SUJ.js → chunk-DFN7XD7P.js} +1 -1
  20. package/build/_chunks/{chunk-K53Y4LIP.js → chunk-GDIPXZTC.js} +1 -1
  21. package/build/_chunks/{chunk-WFI7MJL2.js → chunk-GFEQDSYL.js} +1 -1
  22. package/build/_chunks/{chunk-MZ6XDK2C.js → chunk-HIGHKQAD.js} +1 -1
  23. package/build/_chunks/{chunk-VI3D56OM.js → chunk-HXJSH3G2.js} +1 -1
  24. package/build/_chunks/{chunk-VGYJZKKP.js → chunk-IHXFOGTQ.js} +1 -1
  25. package/build/_chunks/{chunk-DCMZFHWU.js → chunk-IM4LTXAH.js} +1 -1
  26. package/build/_chunks/chunk-JSTCL624.js +1 -0
  27. package/build/_chunks/{chunk-O2DVDEYE.js → chunk-JY4U45C5.js} +1 -1
  28. package/build/_chunks/{chunk-IPAS7KUG.js → chunk-K6633DSY.js} +1 -1
  29. package/build/_chunks/{chunk-TQTPWNPP.js → chunk-L2GLBT5H.js} +1 -1
  30. package/build/_chunks/{chunk-TIRLOG6N.js → chunk-LJWTINBT.js} +1 -1
  31. package/build/_chunks/{chunk-2OJIEX5A.js → chunk-LVK5VG43.js} +1 -1
  32. package/build/_chunks/{chunk-E5IKW34T.js → chunk-LZKPVI6B.js} +1 -1
  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-PVQ32HFD.js +2 -0
  45. package/build/_chunks/{chunk-H7V3RMFL.js → chunk-QLASTW76.js} +1 -1
  46. package/build/_chunks/chunk-RD4DGYOQ.js +1 -0
  47. package/build/_chunks/{chunk-O4DC2S3X.js → chunk-RL2HFGDQ.js} +1 -1
  48. package/build/_chunks/{chunk-IKGDJDP5.js → chunk-RXCJF7BB.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-3DVDHBR2.js → chunk-YFVDAPEB.js} +1 -1
  64. package/build/_chunks/{chunk-FREJYXH4.js → chunk-ZGVTCYRV.js} +1 -1
  65. package/build/components/ActionsDropdownMenu/index.js +1 -1
  66. package/build/components/Alert/index.js +1 -1
  67. package/build/components/AreaChart/index.js +1 -1
  68. package/build/components/Autocomplete/index.js +1 -1
  69. package/build/components/AvatarStack/index.js +1 -1
  70. package/build/components/Calender/index.js +1 -1
  71. package/build/components/Card/index.js +1 -1
  72. package/build/components/CardList/index.js +1 -1
  73. package/build/components/ColorPicker/index.js +1 -1
  74. package/build/components/ColumnViews/index.js +1 -1
  75. package/build/components/ConfirmDialog/index.js +1 -1
  76. package/build/components/CountryFlag/index.js +1 -1
  77. package/build/components/CurrenciesMenu/index.js +1 -1
  78. package/build/components/CurrencyAmount/index.js +1 -1
  79. package/build/components/CurrencyAmountInput/index.js +1 -1
  80. package/build/components/CurrencySymbol/index.js +1 -1
  81. package/build/components/DateFilter/index.js +1 -1
  82. package/build/components/DateInput/index.js +1 -1
  83. package/build/components/DeviceIcon/index.js +1 -1
  84. package/build/components/EmptyState/index.js +1 -1
  85. package/build/components/ErrorToast/index.js +1 -1
  86. package/build/components/ExpandableChip/index.js +1 -1
  87. package/build/components/ExportReportButton/index.js +1 -1
  88. package/build/components/FileDropbox/index.js +1 -1
  89. package/build/components/FilePreview/index.js +1 -1
  90. package/build/components/FileUploader/index.js +1 -1
  91. package/build/components/FilterBar/index.js +1 -1
  92. package/build/components/FilterButton/FilterButton.d.ts +4 -0
  93. package/build/components/FilterButton/constants.d.ts +22 -0
  94. package/build/components/FilterButton/icons.d.ts +3 -0
  95. package/build/components/FilterButton/index.d.ts +3 -0
  96. package/build/components/FilterButton/index.js +1 -0
  97. package/build/components/FilterButton/style.d.ts +10 -0
  98. package/build/components/FilterButton/type.d.ts +44 -0
  99. package/build/components/FilterChip/index.js +1 -1
  100. package/build/components/FilterPopover/FilterPopover.d.ts +4 -0
  101. package/build/components/FilterPopover/constants.d.ts +21 -0
  102. package/build/components/FilterPopover/hooks/useFilterPopover.d.ts +9 -0
  103. package/build/components/FilterPopover/index.d.ts +5 -0
  104. package/build/components/FilterPopover/index.js +1 -0
  105. package/build/components/FilterPopover/style.d.ts +26 -0
  106. package/build/components/FilterPopover/type.d.ts +64 -0
  107. package/build/components/FlipCard/index.js +1 -1
  108. package/build/components/GroupedSelect/index.js +1 -1
  109. package/build/components/HeatMap/index.js +1 -1
  110. package/build/components/ListHeader/components/index.d.ts +0 -1
  111. package/build/components/ListHeader/index.js +1 -1
  112. package/build/components/ListLayout/index.js +1 -1
  113. package/build/components/Loader/index.js +1 -1
  114. package/build/components/Logo/index.js +1 -1
  115. package/build/components/MaskedText/index.js +1 -1
  116. package/build/components/MultiLevelMenu/index.js +1 -1
  117. package/build/components/MultiLevelSelect/index.js +1 -1
  118. package/build/components/PhoneInput/index.js +1 -1
  119. package/build/components/ProgressRing/index.js +1 -1
  120. package/build/components/RadioGroup/index.js +1 -1
  121. package/build/components/RangeCalender/index.js +1 -1
  122. package/build/components/RatingCount/index.js +1 -1
  123. package/build/components/SearchButton/index.js +1 -1
  124. package/build/components/SearchInput/index.js +1 -1
  125. package/build/components/Select/index.js +1 -1
  126. package/build/components/SheetViewChip/index.js +1 -1
  127. package/build/components/Sidebar/index.js +1 -1
  128. package/build/components/StatusIcons/index.js +1 -1
  129. package/build/components/TableCells/index.js +1 -1
  130. package/build/components/TableViewToggleButton/TableViewToggleButton.d.ts +4 -0
  131. package/build/components/TableViewToggleButton/constants.d.ts +24 -0
  132. package/build/components/TableViewToggleButton/icons.d.ts +3 -0
  133. package/build/components/TableViewToggleButton/index.d.ts +3 -0
  134. package/build/components/TableViewToggleButton/index.js +1 -0
  135. package/build/components/TableViewToggleButton/style.d.ts +7 -0
  136. package/build/components/TableViewToggleButton/type.d.ts +26 -0
  137. package/build/components/TextInput/index.js +1 -1
  138. package/build/components/Timeline/index.js +1 -1
  139. package/build/components/Timepicker/index.js +1 -1
  140. package/build/components/VerificationIcon/index.js +1 -1
  141. package/build/components/VirtualTables/index.js +1 -1
  142. package/build/components/Window/index.js +1 -1
  143. package/build/components/WindowServices/index.js +1 -1
  144. package/build/components/WindowToolbar/index.js +1 -1
  145. package/build/components/index.d.ts +6 -6
  146. package/build/components/index.js +1 -1
  147. package/build/components/modules/JSONViewWindow/index.js +1 -1
  148. package/build/components/modules/RangeCalender/index.js +1 -1
  149. package/build/components/modules/VirtualTables/index.js +1 -1
  150. package/build/components/modules/WindowShell/index.js +1 -1
  151. package/build/components/modules/index.js +1 -1
  152. package/build/components/primitives/index.js +1 -1
  153. package/build/datetime/components/index.js +1 -1
  154. package/build/hooks/index.js +1 -1
  155. package/build/index.js +1 -1
  156. package/build/utils/index.js +1 -1
  157. package/build/utils/style.d.ts +3 -1
  158. package/package.json +1 -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/PhoneFilter/PhoneFilter.d.ts +0 -10
  202. package/build/components/PhoneFilter/index.d.ts +0 -1
  203. package/build/components/PhoneFilter/index.js +0 -1
  204. package/build/components/StatusFilter/StatusFilter.d.ts +0 -15
  205. package/build/components/StatusFilter/index.d.ts +0 -1
  206. package/build/components/StatusFilter/index.js +0 -1
  207. package/build/components/StatusFilter/utils.d.ts +0 -4
@@ -1,2 +1,2 @@
1
- import {Hb,Vb,Gb,xa as xa$1,ub,Wb,T as T$1}from'./chunk-6HNOCQKM.js';import {forwardRef,memo,useId,createElement,useState,useCallback,useMemo,Children,useEffect,useRef,useLayoutEffect}from'react';import vo from'@mui/material/Box';import ns,{circularProgressClasses}from'@mui/material/CircularProgress';import os from'@mui/material/ButtonBase';import {styled,alpha,useTheme}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import ro from'@mui/material/SvgIcon';import fs from'@mui/material/Checkbox';import us from'@mui/material/FormControlLabel';import Cs from'@mui/material/Switch';import ks from'@mui/material/Typography';import Rs from'@mui/material/Radio';import Gs from'@mui/material/Tooltip';import tn from'@mui/material/Skeleton';import pn from'@mui/material/Avatar';import gn from'@mui/material/Divider';import Nn from'@mui/material/Collapse';import {createPortal}from'react-dom';import An from'@mui/material/Backdrop';import li,{SliderThumb}from'@mui/material/Slider';import vi,{inputClasses}from'@mui/material/Input';import bi from'@mui/material/FormControl';import Si from'@mui/material/InputLabel';import Fi from'@mui/material/InputBase';import Ei from'@mui/material/Accordion';import Wi from'@mui/material/AccordionDetails';import Hi from'@mui/material/AccordionSummary';import _i from'@mui/material/Popper';import Qi from'@mui/material/Dialog';import el from'@mui/material/DialogActions';import ol from'@mui/material/DialogContent';import tl from'@mui/material/DialogTitle';import {LazyLoadImage}from'react-lazy-load-image-component';import Al from'@mui/material/Stack';var H="os-shared-Button",T={root:`${H}-root`,content:`${H}-content`,startIcon:`${H}-startIcon`,endIcon:`${H}-endIcon`,icon:`${H}-icon`,loading:`${H}-loading`,loadingSpinner:`${H}-loadingSpinner`},Mo={sm:{height:24,paddingY:8,paddingX:16,fontSize:"10px"},md:{height:32,minWidth:79,paddingY:8,paddingX:24,fontSize:"13px",lineHeight:"16px"},lg:{height:40,paddingY:8,paddingX:32,fontSize:"12px"}},Lo={sm:{width:24,minWidth:24,height:24,padding:0},md:{width:32,minWidth:32,height:32,padding:0},lg:{width:38,minWidth:38,height:38,padding:0}},Fo={sm:12,md:12,lg:14};var Ro=styled(os,{shouldForwardProp:e=>e!=="$variant"&&e!=="$size"&&e!=="$fullWidth"&&e!=="$isLoading"&&e!=="$hasIcon"&&e!=="$isIconOnly"})(({theme:e,$variant:o="primary",$size:t="md",$fullWidth:r,$isLoading:a,$hasIcon:s,$isIconOnly:i})=>{let n=e.v2.palette,{paddingX:p,paddingY:d,...c}=Mo[t],f=Lo[t];return {display:"inline-flex",alignItems:"center",justifyContent:"center",gap:e.v2.spacing(6),borderRadius:e.v2.radius(4),lineHeight:"100%",whiteSpace:"nowrap",position:"relative",cursor:a?"not-allowed":"pointer",transition:"background-color 0.15s ease, opacity 0.15s ease",...c,padding:`${e.v2.spacing(d)} ${e.v2.spacing(p)}`,fontWeight:e.typography.fontWeightMedium,...r&&!i&&{width:"100%"},...s&&!r&&!i&&{width:"auto",minWidth:0},...o==="primary"&&{background:n.brand[500],color:n.base.white,"&.Mui-disabled":{opacity:1,background:n.interactive.primary.disabled,color:n.base.white}},...o==="secondary"&&{backgroundColor:n.base.white,color:n.grey[900],border:`1px solid ${n.grey[100]}`,"&.Mui-disabled":{opacity:1,color:n.foreground.disabled}},...o==="ghost"&&{padding:0,minWidth:0,backgroundColor:"transparent",color:n.foreground.brand,"&.Mui-disabled":{opacity:.5}},...o==="danger"&&{backgroundColor:n.status.danger.default,color:n.base.white,"&.Mui-disabled":{opacity:1,backgroundColor:alpha(n.status.danger.default,.14),color:n.base.white}},...i&&{boxSizing:"border-box",...f}}}),de=styled("span")(({theme:e})=>{let o=e.v2.spacing(16);return {display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,width:o,height:o}});var Ao=forwardRef(({children:e,variant:o="primary",size:t="md",isLoading:r=false,startIcon:a,endIcon:s,icon:i,fullWidth:n=false,disabled:p,className:d,sx:c,disableRipple:f=true,...u},y)=>{let m=i!=null;return jsxs(Ro,{ref:y,className:Hb(T.root,d),$variant:o,$size:t,$fullWidth:n,$isLoading:r,$hasIcon:m||!!a||!!s||r,$isIconOnly:m,disabled:p||r,disableRipple:f,"data-testid":"Button",sx:c,...u,children:[jsx(vo,{component:"span",className:T.content,sx:{display:"inline-flex",alignItems:"center",gap:"inherit",visibility:r?"hidden":"visible"},children:m?jsx(de,{className:T.icon,children:i}):jsxs(Fragment,{children:[a&&jsx(de,{className:T.startIcon,children:a}),e,s&&jsx(de,{className:T.endIcon,children:s})]})}),r&&jsx(de,{className:T.loading,sx:{position:"absolute"},children:jsx(ns,{className:T.loadingSpinner,size:Fo[t],color:"inherit"})})]})});Ao.displayName="Button";var Eo=memo(Ao);var ls="os-shared-Icon",Ne={root:`${ls}-root`};var Wo=styled("img")(({theme:e})=>({width:e.v2.spacing(16),height:e.v2.spacing(16),verticalAlign:"middle",flexShrink:0}));var Ho=forwardRef(({className:e,sx:o,...t},r)=>jsx(Wo,{className:Hb(Ne.root,e),sx:o,"data-testid":"Icon",...t,ref:r}));Ho.displayName="Icon";var Vo=memo(Ho);var to="os-shared-Checkbox",V={root:`${to}-root`,control:`${to}-control`,label:`${to}-label`};var Oo=({disabled:e,...o})=>{let{v2:t}=useTheme(),{brand:r,base:a,foreground:s}=t.palette;return jsxs(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12},...o,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:e?s.disabled:r[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74206C9.04243 3.9443 9.05652 4.28711 8.86537 4.50775L5.64586 8.22387C5.55146 8.33284 5.41909 8.39627 5.27942 8.39948C5.13975 8.40269 5.0049 8.3454 4.90612 8.24088L3.15002 6.38282C2.94999 6.17118 2.94999 5.82804 3.15002 5.61641C3.35004 5.40477 3.67435 5.40477 3.87437 5.61641L5.2522 7.07424L8.11024 3.77535C8.30138 3.55472 8.62538 3.53981 8.83391 3.74206Z",fill:a.white})]})},Zo=({disabled:e,...o})=>{let{v2:t}=useTheme(),{base:r,grey:a}=t.palette;return jsx(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12},...o,children:jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"1.8",fill:e?a[50]:r.white,stroke:e?a[200]:a[500],strokeWidth:"1.2"})})},jo=({disabled:e,...o})=>{let{v2:t}=useTheme(),{brand:r,base:a,foreground:s}=t.palette;return jsxs(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12},...o,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:e?s.disabled:r[500]}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:a.white})]})};var Go=styled(fs)(({theme:e})=>({padding:e.v2.spacing(2),"&:hover":{backgroundColor:"transparent"}})),Ko=styled(us)(({theme:e})=>{let{base:o,grey:t}=e.v2.palette;return {marginLeft:0,gap:e.v2.spacing(4),"& .MuiFormControlLabel-label":{fontSize:"11px",color:o.black},"& .MuiFormControlLabel-label.Mui-disabled":{color:t[500]}}});var Yo=forwardRef(({label:e,labelPlacement:o="end",disabled:t,sx:r,className:a,...s},i)=>{let n=Vb(useId(),"checkbox"),p=jsx(Go,{id:n,ref:i,disableRipple:true,disabled:t,checkedIcon:jsx(Oo,{disabled:t}),icon:jsx(Zo,{disabled:t}),indeterminateIcon:jsx(jo,{disabled:t}),"data-testid":"Checkbox",className:Hb(e?V.control:V.root,e?void 0:a),sx:e?void 0:r,...s});return e?jsx(Ko,{className:Hb(V.root,a),sx:r,control:p,label:e,labelPlacement:o,disabled:t,componentsProps:{typography:{className:V.label}}}):p});Yo.displayName="Checkbox";var Xo=memo(Yo);var hs="os-shared-Switch",we={root:`${hs}-root`};var qo=styled(Cs)(({theme:e,disabled:o})=>{let{base:t,grey:r,success:a}=e.v2.palette;return {width:28,height:16,padding:0,borderRadius:e.v2.radius(8),opacity:o?.5:1,overflow:"visible","& .MuiSwitch-switchBase":{padding:0,margin:e.v2.spacing(1),color:t.white,transitionDuration:"300ms","&:hover":{backgroundColor:"transparent"},"&.Mui-focusVisible":{outline:`2px solid ${r[400]}`,outlineOffset:2},"&.Mui-checked":{transform:"translateX(12px)",color:t.white,"& + .MuiSwitch-track":{backgroundColor:a[500],opacity:1,border:0}},"&.Mui-disabled":{color:t.white,"& + .MuiSwitch-track":{opacity:1},"& .MuiSwitch-thumb":{filter:"none"}},"&.Mui-checked.Mui-disabled":{color:t.white}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:14,height:14,color:t.white,backgroundColor:t.white,boxShadow:"none",filter:o?"none":"drop-shadow(0px 3px 0.5px rgba(0, 0, 0, 0.04)) drop-shadow(0px 3px 4px rgba(0, 0, 0, 0.12))"},"& .MuiSwitch-track":{borderRadius:e.v2.radius(8),backgroundColor:"#D9D9D9",opacity:1,transition:e.transitions.create(["background-color"],{duration:300})}}});var Jo=forwardRef(({className:e,sx:o,...t},r)=>jsx(qo,{ref:r,className:Hb(we.root,e),sx:o,"data-testid":"Switch",disableRipple:true,...t}));Jo.displayName="Switch";var Qo=memo(Jo);var ws="os-shared-Typography",ke={root:`${ws}-root`},Ie="body.default.regular";var Bs=e=>e!=null&&typeof e=="object"&&"fontFamily"in e&&"fontSize"in e&&"fontWeight"in e;function Ts(e,o){try{let t=o.split(".").reduce((r,a)=>{if(r==null||typeof r!="object")throw new TypeError(`Invalid typography textVariant: ${o}`);return r[a]},e);if(!Bs(t))throw new TypeError(`Invalid typography textVariant: ${o}`);return t}catch(t){return console.warn(t),e.body.default.regular}}function $s(e,o,t){return o===void 0?t:typeof o=="number"?o:{light:e.fontWeightLight,regular:e.fontWeightRegular,medium:e.fontWeightMedium,semibold:e.fontWeightBold,bold:e.fontWeightBolder}[o]??t}var et=styled(ks,{shouldForwardProp:e=>e!=="$textVariant"&&e!=="$weight"})(({theme:e,$textVariant:o=Ie,$weight:t})=>{let{base:r}=e.v2.palette,a=Ts(e.v2.typography.textVariants,o);return {color:r.black,...a,fontWeight:$s(e.v2.typography,t,a.fontWeight)}});var ot=forwardRef(({textVariant:e=Ie,variant:o="subtitle2",weight:t,className:r,sx:a,...s},i)=>jsx(et,{ref:i,className:Hb(ke.root,r),sx:a,"data-testid":"Typography",...s,variant:o,$textVariant:e,$weight:t}));ot.displayName="Typography";var tt=memo(ot);var Fs="os-shared-RadioButton";var Be={root:`${Fs}-root`};var st=({disabled:e,...o})=>{let{v2:t}=useTheme(),{brand:r,base:a}=t.palette,s=e?"#BDC1CC":r[500];return jsxs(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...o,children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"4.8",fill:s,stroke:s,strokeWidth:"1.2",style:{fill:s,stroke:s}}),jsx("circle",{cx:"6",cy:"6",r:"2.25",fill:a.white,style:{fill:a.white}})]})},nt=({disabled:e,...o})=>{let{v2:t}=useTheme(),{base:r,grey:a}=t.palette,s=e?a[50]:r.white,i=e?a[200]:a[500];return jsx(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...o,children:jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"4.8",fill:s,stroke:i,strokeWidth:"1.2",style:{fill:s,stroke:i}})})};var it=styled(Rs)(({theme:e})=>({padding:e.v2.spacing(2),"&:hover":{backgroundColor:"transparent"},"& .MuiSvgIcon-root":{fontSize:12,width:12,height:12}}));var lt=forwardRef(({disabled:e,sx:o,className:t,...r},a)=>jsx(it,{ref:a,disableRipple:true,disabled:e,checkedIcon:jsx(st,{disabled:e}),icon:jsx(nt,{disabled:e}),"data-testid":"RadioButton",className:Hb(Be.root,t),sx:o,...r}));lt.displayName="RadioButton";var pt=memo(lt);var $e="os-shared-CircularProgress",O={root:`${$e}-root`,progress:`${$e}-progress`,labelOverlay:`${$e}-labelOverlay`,labelText:`${$e}-labelText`};var ct=styled(ns)(({theme:e})=>{let{brand:o}=e.v2.palette;return {color:"#147DC5",background:alpha(o[500],.05),borderRadius:"50%",[`& .${circularProgressClasses.circle}`]:{strokeLinecap:"round"}}}),mt=styled(vo)(()=>({position:"relative",display:"inline-flex"})),ft=styled(vo)(()=>({top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"})),ut=styled(ks)(({theme:e})=>({fontSize:e.typography.fontSize,fontWeight:e.typography.fontWeightBolder??700,color:"#3B4152"}));var yt=forwardRef(({variant:e="indeterminate",hasLabel:o=true,value:t,className:r,sx:a,...s},i)=>{let n=e==="determinate"&&o;return jsxs(mt,{className:Hb(O.root,r),sx:a,"data-testid":"CircularProgress",children:[jsx(ct,{ref:i,variant:e,value:t,className:O.progress,...s}),n&&jsx(ft,{className:O.labelOverlay,children:jsx(ut,{className:O.labelText,variant:"caption",color:"text.secondary",children:`${Math.round(t??0)}%`})})]})});yt.displayName="CircularProgress";var gt=memo(yt);var Z="os-shared-Tooltip",w={popper:`${Z}-popper`,tooltip:`${Z}-tooltip`,arrow:`${Z}-arrow`,content:`${Z}-content`,title:`${Z}-title`,supportingText:`${Z}-supportingText`,wrapper:`${Z}-wrapper`};var xt=styled(({className:e,...o})=>createElement(Gs,{...o,classes:{popper:Hb(w.popper,e),tooltip:w.tooltip,arrow:w.arrow}}))(({theme:e})=>{let{base:o,grey:t}=e.v2.palette,r=o.white,a="var(--tooltip-border-width) solid var(--tooltip-border-color)";return {"--tooltip-border-color":"#3C373721","--tooltip-border-width":"1px",zIndex:999999,[`& .${w.arrow}`]:{color:r,"&:before":{backgroundColor:r,boxSizing:"border-box",border:a}},[`& .${w.tooltip}`]:{backgroundColor:r,color:t[700],boxShadow:e.v2.elevation[200],fontSize:12,fontWeight:400,lineHeight:1.2,padding:e.v2.spacing(6),borderRadius:e.v2.radius(8),border:a,maxWidth:320,wordBreak:"break-word"}}}),ht=styled("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",gap:e.v2.spacing(6),maxWidth:296,width:"100%"})),Ct=styled("div",{shouldForwardProp:e=>e!=="$hasSupportingText"})(({theme:e,$hasSupportingText:o})=>{let{grey:t}=e.v2.palette;return {margin:0,fontSize:12,fontWeight:o?600:400,lineHeight:o?1:1.2,color:o?t[700]:alpha(t[700],.77),width:o?"100%":void 0}}),bt=styled("div")(({theme:e})=>{let{grey:o}=e.v2.palette;return {margin:0,fontSize:11,fontWeight:400,lineHeight:"normal",color:o[500],width:"100%",whiteSpace:"pre-wrap"}});function qs(e){return e!=null&&e!==false&&e!==""}function Js(e){return !!e||e===0}function Qs(e,o){let t=qs(o);if(!Js(e)&&!t)return null;let r=jsx(Ct,{className:w.title,$hasSupportingText:t,children:e});return t?jsxs(ht,{className:w.content,children:[r,jsx(bt,{className:w.supportingText,children:o})]}):r}function St({className:e,title:o,supportingText:t,placement:r="top",children:a,wrapperProps:s,sx:i,...n}){let{className:p,...d}=s??{};return jsx(xt,{className:e,title:Qs(o,t),placement:r,arrow:true,sx:i,...n,children:jsx(vo,{display:"flex",alignItems:"center","data-testid":"Tooltip",className:Hb(w.wrapper,p),...d,children:a})})}St.displayName="Tooltip";var vt=memo(St);var on="os-shared-Skeleton",Fe={root:`${on}-root`};var Nt=styled(tn)(()=>({}));var wt=forwardRef(({className:e,sx:o,variant:t="rounded",...r},a)=>jsx(Nt,{ref:a,className:Hb(Fe.root,e),sx:Gb({height:16},o),"data-testid":"Skeleton",variant:t,...r}));wt.displayName="Skeleton";var kt=memo(wt);var ln="os-shared-Avatar",ze={root:`${ln}-root`},Re="xs",De="teal",It={teal:{from:"#31D5C8",to:"#1186C5"},green:{from:"#A2E9BD",to:"#44BB74"},cyan:{from:"#6BF6EB",to:"#32D6C9"},steel:{from:"#61AFC9",to:"#7FBFD4"},sage:{from:"#9DB7A4",to:"#7FBFD4"},gold:{from:"#D7B38C",to:"#FFE09F"},lime:{from:"#ADD6A2",to:"#FFDDB2"}},Bt={xs:{dimension:24,fontSize:"9px"},sm:{dimension:32,fontSize:"12px"},md:{dimension:40,fontSize:"15px"},lg:{dimension:48,fontSize:"17px"},xl:{dimension:56,fontSize:"20px"}};function cn(e){let{from:o,to:t}=It[e];return `linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%), linear-gradient(135deg, ${o} 0%, ${t} 100%)`}var Tt=styled(pn,{shouldForwardProp:e=>!["$size","$color"].includes(e)})(({theme:e,$size:o=Re,$color:t=De})=>{let{dimension:r,fontSize:a}=Bt[o],{base:s}=e.v2.palette,i=cn(t);return {width:r,height:r,flexShrink:0,fontSize:a,fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:s.white,background:i,backgroundColor:"transparent","&.MuiAvatar-colorDefault":{color:s.white,background:i,backgroundColor:"transparent"}}});var $t=forwardRef(({className:e,sx:o,size:t=Re,color:r=De,...a},s)=>jsx(Tt,{ref:s,className:Hb(ze.root,e),sx:o,"data-testid":"Avatar",...a,$size:t,$color:r,variant:"circular"}));$t.displayName="Avatar";var Pt=memo($t);var yn="os-shared-Divider",Ae={root:`${yn}-root`};function hn(e,o){let{grey:t,border:r}=o.v2.palette;return e==="subtle"?r.subtle:t[100]}var Mt=styled(gn,{shouldForwardProp:e=>e!=="$type"})(({theme:e,$type:o="default",orientation:t="horizontal"})=>({borderColor:hn(o,e),...t==="vertical"?{borderBottomWidth:0,borderRightWidth:1}:{borderBottomWidth:1}}));var Lt=forwardRef(({className:e,sx:o,orientation:t="horizontal",type:r="default",...a},s)=>jsx(Mt,{ref:s,className:Hb(Ae.root,e),sx:o,"data-testid":"Divider",orientation:t,$type:r,...a}));Lt.displayName="Divider";var Ft=memo(Lt);var vn="os-shared-Collapse",Ee={root:`${vn}-root`};var zt=styled(Nn)(()=>({}));var Rt=forwardRef(({className:e,sx:o,children:t,unmountOnExit:r=true,timeout:a=300,...s},i)=>jsx(zt,{ref:i,className:Hb(Ee.root,e),sx:o,"data-testid":"Collapse",unmountOnExit:r,timeout:a,...s,children:t}));Rt.displayName="Collapse";var Dt=memo(Rt);var Tn="os-shared-Badge",We={root:`${Tn}-root`},He="default",At={default:"#29b6f6",primary:"#1976d2",secondary:"#f50057",neutral:"#656565",gray:"#CFCFCF",orange:"#FFD503"};function Mn(e,o){let{base:t,grey:r,brand:a,success:s,warning:i,error:n,gradient:p}=o.v2.palette;if(e==="highlight")return p.brand;let d=At[e];return d||({inactive:r[100],active:alpha(t.black,.1),dark:a[500],red:n[500],success:s[500],warning:i[500],error:n[500]}[e]??t.white)}function Ln(e,o){let{base:t}=o.v2.palette;return e==="inactive"?t.black:(t.white)}var Wt=styled("span",{shouldForwardProp:e=>!["$color","$compact","$round","$pointer"].includes(e)})(({theme:e,$color:o=He,$compact:t,$round:r,$pointer:a})=>{let s=Mn(o,e);return {paddingBlock:e.v2.spacing(2),paddingInline:t?"0.16056rem":r?"0.275rem":e.v2.spacing(4),borderRadius:t?e.v2.radius(4):r?e.v2.radius(16):e.v2.radius(48),background:s,color:Ln(o,e),fontSize:"8px",fontWeight:700,lineHeight:"10px",letterSpacing:0,overflow:"hidden",height:t?"12px":r?"16px":void 0,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",cursor:a?"pointer":"auto"}});var Ht=forwardRef(({className:e,sx:o,color:t,state:r,compact:a,round:s,pointer:i,children:n,...p},d)=>{let c=t??r??He;return jsx(Wt,{ref:d,className:Hb(We.root,e),sx:o,"data-testid":"Badge",...p,$color:c,$compact:a,$round:s,$pointer:i,children:n})});Ht.displayName="Badge";var Vt=memo(Ht);var Dn="os-shared-Backdrop",Ve={root:`${Dn}-root`};var Ot=styled(An,{shouldForwardProp:e=>e!=="$hasBlur"})(({theme:e,$hasBlur:o=false,invisible:t=true})=>{let r=o&&!t?e.v2.blur[6]:"none";return {zIndex:t?999:1,backgroundColor:t?"transparent":alpha("#000",.3),backdropFilter:r,WebkitBackdropFilter:r}});var Zt=forwardRef(({className:e,sx:o,open:t=true,invisible:r=true,hasBlur:a=false,onClose:s,onClick:i,...n},p)=>{if(!t)return null;let d=c=>{s?.(),i?.(c);};return createPortal(jsx(Ot,{open:t,invisible:r,$hasBlur:a,ref:p,className:Hb(Ve.root,e),sx:o,"data-testid":"Backdrop",onClick:d,...n}),document.body)});Zt.displayName="Backdrop";var jt=memo(Zt);var Oe="os-shared-CopyButton",R={root:`${Oe}-root`,icon:`${Oe}-icon`,copyIcon:`${Oe}-copyIcon`,copiedIcon:`${Oe}-copiedIcon`};var Gt=e=>{let{v2:o}=useTheme(),{base:t}=o.palette;return jsx(ro,{sx:{height:12.6,width:13},...e,children:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"13",viewBox:"2.67 1.67 10.66 12.66",fill:"none",children:jsx("path",{d:"M11.3333 13.6978L11.3332 13.6979C11.1002 14.0479 10.7072 14.2582 10.2863 14.2582H5.83317C4.12559 14.2582 2.7415 12.8741 2.7415 11.1665V4.71338C2.7415 4.29279 2.95172 3.89983 3.30186 3.66641L3.5915 3.47331V11.1665C3.5915 12.4046 4.59508 13.4082 5.83317 13.4082H11.5264L11.3333 13.6978ZM4.40817 3.49984C4.40817 2.53467 5.20133 1.7415 6.1665 1.7415H11.4998C12.465 1.7415 13.2582 2.53467 13.2582 3.49984V10.8332C13.2582 11.7983 12.465 12.5915 11.4998 12.5915H6.1665C5.20133 12.5915 4.40817 11.7983 4.40817 10.8332V3.49984ZM11.4998 2.5915H6.1665C5.65901 2.5915 5.25817 2.99234 5.25817 3.49984V10.8332C5.25817 11.3407 5.65901 11.7415 6.1665 11.7415H11.4998C12.0073 11.7415 12.4082 11.3407 12.4082 10.8332V3.49984C12.4082 2.99234 12.0073 2.5915 11.4998 2.5915Z",fill:t.black,stroke:t.white,strokeWidth:"0.15"})})})},Kt=e=>{let{v2:o}=useTheme(),{success:t,base:r}=o.palette;return jsx(ro,{sx:{height:12.6,width:13},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:t[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};var Xt=styled("span")({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:16,height:16,flexShrink:0,cursor:"pointer",verticalAlign:"middle"}),io=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:"opacity 200ms ease"}));var qt=forwardRef(({className:e,sx:o,text:t,feedbackMs:r=2e3,icon:a=jsx(Gt,{}),onClick:s,...i},n)=>{let[p,d]=useState(false),c=f=>{f.stopPropagation(),xa$1(t),d(true),setTimeout(()=>d(false),r),s?.(f);};return jsxs(Xt,{ref:n,className:Hb(R.root,e),sx:o,role:"button",tabIndex:0,"data-testid":"CopyButton",onClick:c,...i,children:[jsx(io,{className:Hb(R.icon,R.copyIcon),$visible:!p,children:a}),jsx(io,{className:Hb(R.icon,R.copiedIcon),$visible:p,children:jsx(Kt,{})})]})});qt.displayName="CopyButton";var Jt=memo(qt);var lo="os-shared-ProgressBar",Q={root:`${lo}-root`,fill:`${lo}-fill`,text:`${lo}-text`};var er=styled(vo,{shouldForwardProp:e=>!["$value","$isDecimal"].includes(e)})(({theme:e,$value:o,$isDecimal:t})=>{let{base:r}=e.v2.palette;return {width:`${o}%`,minWidth:o>=10?"28px":"24px",height:"18px",borderRadius:e.v2.radius(50),background:"linear-gradient(256deg, #147DC5 0%, #3DA6E1 100%)",display:"flex",alignItems:"center",justifyContent:o>10?"flex-end":"center",paddingInlineEnd:o>10?e.v2.spacing(2):e.v2.spacing(0),...o===0&&{background:alpha(r.black,26/255)},...t&&{minWidth:o>=10?"40px":"36px"}}}),or=styled(vo,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:o})=>{let{base:t}=e.v2.palette;return {height:"14px",maxWidth:"36px",minWidth:"20px",background:alpha(t.black,26/255),borderRadius:e.v2.radius(50),display:"flex",alignItems:"center",justifyContent:"center",padding:0,...o===0&&{background:alpha(t.black,0)}}}),tr=styled(ks,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:o})=>{let{base:t,grey:r}=e.v2.palette;return {fontSize:"8px",fontWeight:e.typography.fontWeightBolder??700,color:t.white,padding:`${e.v2.spacing(2)} ${e.v2.spacing(4)}`,...o===0&&{color:alpha(r[500],.5)}}});var ar=forwardRef(({className:e,sx:o,value:t},r)=>{let a=!Number.isInteger(t);return jsx(er,{ref:r,className:Hb(Q.root,e),sx:o,"data-testid":"ProgressBar",$value:t,$isDecimal:a,children:jsx(or,{className:Q.fill,$value:t,children:jsxs(tr,{className:Q.text,$value:t,variant:"caption",children:[Number(t.toFixed(2)),"%"]})})})});ar.displayName="ProgressBar";var sr=memo(ar);var Ue="os-shared-Chip",$={root:`${Ue}-root`,text:`${Ue}-text`,copyButton:`${Ue}-copyButton`,icon:`${Ue}-icon`},nr={text:{height:24,paddingBlock:4,paddingInline:8,borderRadius:48},circular:{height:24,width:24,padding:4,borderRadius:12},"pill-icon":{height:24,width:36,paddingBlock:4,paddingInline:6,borderRadius:12}};var pr=e=>{let{v2:o}=useTheme(),{base:t}=o.palette;return jsx(ro,{sx:{height:"10px"},...e,children:jsx("svg",{width:"11",height:"13",viewBox:"0 0 11 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.924805 9.5C0.924805 10.7381 1.9289 11.7412 3.16699 11.7412H8.86035L8.66699 12.0312C8.43398 12.3812 8.04094 12.5917 7.62012 12.5918H3.16699C1.45941 12.5918 0.0751953 11.2076 0.0751953 9.5V3.04688C0.0751953 2.62628 0.28561 2.23342 0.635742 2L0.924805 1.80664V9.5ZM3.5 0.0751953H8.83301C9.79807 0.0751953 10.5916 0.867985 10.5918 1.83301V9.16699C10.5916 10.132 9.79807 10.9248 8.83301 10.9248H3.5C2.53494 10.9248 1.74139 10.132 1.74121 9.16699V1.83301C1.74139 0.867985 2.53494 0.0751953 3.5 0.0751953ZM3.5 0.924805C2.99261 0.924805 2.59197 1.32567 2.5918 1.83301V9.16699C2.59197 9.67433 2.99261 10.0752 3.5 10.0752H8.83301C9.3404 10.0752 9.74104 9.67433 9.74121 9.16699V1.83301C9.74104 1.32567 9.3404 0.924805 8.83301 0.924805H3.5Z",fill:t.black,stroke:t.white,strokeWidth:"0.15"})})})},dr=e=>{let{v2:o}=useTheme(),{success:t,base:r}=o.palette;return jsx(ro,{sx:{height:"10px"},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:t[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};function ei(e,o){let t=nr[e];return {height:t.height,..."width"in t&&{width:t.width,minWidth:t.width},..."padding"in t&&{padding:o.v2.spacing(t.padding)},..."paddingBlock"in t&&{paddingBlock:o.v2.spacing(t.paddingBlock)},..."paddingInline"in t&&{paddingInline:o.v2.spacing(t.paddingInline)},borderRadius:o.v2.radius(t.borderRadius)}}var mr=styled(vo,{shouldForwardProp:e=>!["$variant","$hasIcon","$hasCopy","$isSelected","$disableAnimation"].includes(e)})(({theme:e,$variant:o="text",$hasIcon:t,$hasCopy:r,$isSelected:a,$disableAnimation:s})=>{let{grey:i,base:n}=e.v2.palette;return {display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,boxSizing:"border-box",lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",fontSize:11,fontWeight:e.typography.fontWeightRegular,color:n.black,border:`1px solid ${i[100]}`,backgroundColor:n.white,...ei(o,e),...o==="text"&&t&&{gap:e.v2.spacing(6),paddingInlineStart:e.v2.spacing(5),paddingInlineEnd:e.v2.spacing(8)},...r&&{gap:e.v2.spacing(4)},[`& .${$.icon}`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:14,height:14,overflow:"hidden","& img, & svg":{width:14,height:14,display:"block"}},...a&&{boxShadow:`${n.white} 7px 0px 8px 2px`},...s&&{transition:"none !important",animation:"none !important",transform:"none !important","& *":{transition:"none !important",animation:"none !important",transform:"none !important"}}}}),co=styled(vo)({textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"0 1 auto"}),fr=styled("span",{shouldForwardProp:e=>e!=="$copied"})(({$copied:e})=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:12,height:12,flexShrink:0,cursor:"pointer",opacity:e?1:.6,transition:"opacity 150ms ease","&:hover":{opacity:1}})),mo=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:"opacity 150ms ease"}));var yr=forwardRef(({className:e,sx:o,children:t,icon:r,variant:a="text",disabled:s=false,isSelected:i=false,copyText:n,unknownText:p="Unknown",disableAnimation:d=false,...c},f)=>{let[u,y]=useState(false),m=!!(t&&n),h=r!=null&&!m,g=useCallback(b=>{b.stopPropagation(),n&&(xa$1(n),y(true),setTimeout(()=>y(false),2e3));},[n]),k=useMemo(()=>h?jsx("span",{className:$.icon,children:r}):null,[h,r]),M=useMemo(()=>{if(t){let b=m&&typeof t=="string"?ub(t):void 0;return jsx(co,{className:$.text,"data-is-arabic":b,children:t})}return h?null:jsx(co,{className:$.text,children:p})},[t,m,h,p]),L=useMemo(()=>m?jsxs(fr,{className:$.copyButton,role:"button",tabIndex:0,"aria-label":u?"copied":"copy","data-testid":"ChipCopyButton",$copied:u,onClick:g,children:[jsx(mo,{$visible:!u,children:jsx(pr,{})}),jsx(mo,{$visible:u,children:jsx(dr,{})})]}):null,[m,u,g]);return jsxs(mr,{ref:f,"data-testid":"Chip",className:Hb($.root,e,`CustomVariant_${a}`),sx:Gb(s?{cursor:"not-allowed",opacity:.5}:{},o),$variant:a,$hasIcon:h,$hasCopy:m,$isSelected:i,$disableAnimation:d,...c,children:[k,M,L]})});yr.displayName="Chip";var gr=memo(yr);var uo="os-shared-Slider",D={root:`${uo}-root`,thumb:`${uo}-thumb`,thumbIcon:`${uo}-thumbIcon`};var xr=e=>{let{v2:o}=useTheme(),{grey:t}=o.palette;return jsx(ro,{sx:{width:"5px",height:"8px",pointerEvents:"none"},...e,children:jsxs("svg",{width:"5",height:"8",viewBox:"0 0 5 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M0.459961 0.460449L0.459961 6.59897",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M2.44531 0.460388L2.44531 6.59891",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M4.4375 0.460388L4.4375 6.59891",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"})]})})};var hr=styled(li)(({theme:e})=>{let{brand:o,base:t}=e.v2.palette,r=["0px 0px 1.25px 0px rgba(0, 0, 0, 0.1)","0px 1.25px 1.25px 0px rgba(0, 0, 0, 0.09)","0px 3.75px 2.5px 0px rgba(0, 0, 0, 0.05)","0px 7.5px 2.5px 0px rgba(0, 0, 0, 0.01)","0px 11.25px 3.75px 0px rgba(0, 0, 0, 0)"].join(", ");return {color:o[500],height:8,padding:0,"& .MuiSlider-rail":{backgroundColor:"#CFCFCF",opacity:1,left:0},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:t.white,border:"none",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:r,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:r}},[`& .${D.thumbIcon}`]:{width:"5px",height:"8px",pointerEvents:"none"}}});function ui({children:e,className:o,...t}){return jsxs(SliderThumb,{className:Hb(D.thumb,o),...t,children:[e,jsx(xr,{className:D.thumbIcon})]})}var Cr=forwardRef(({className:e,sx:o,value:t,min:r,max:a,step:s,disabled:i,onChange:n,slots:p,...d},c)=>{let f=useCallback((u,y)=>{n(y);},[n]);return jsx(hr,{ref:c,className:Hb(D.root,e),sx:o,"data-testid":"Slider",value:t,min:r,max:a,step:s,disabled:i,onChange:f,...d,slots:{thumb:ui,...p}})});Cr.displayName="Slider";var br=memo(Cr);var B="os-shared-Input",x={root:`${B}-root`,label:`${B}-label`,input:`${B}-input`,loadingIcon:`${B}-loadingIcon`,validatedIcon:`${B}-validatedIcon`,hasLabel:`${B}-hasLabel`,sizeSm:`${B}-sizeSm`,sizeMd:`${B}-sizeMd`,disableFocusRing:`${B}-disableFocusRing`,hideArrows:`${B}-hideArrows`,hasTrailingIcon:`${B}-hasTrailingIcon`},F={sm:28,md:32,labelled:40};var Nr=e=>{let{v2:o}=useTheme(),{success:t}=o.palette;return jsx(ro,{viewBox:"0 0 10 8",sx:{width:10,height:8},...e,children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:t[700]})})};var wr=styled(vi)(({theme:e,endAdornment:o})=>{let{base:t,grey:r}=e.v2.palette,a=!!o;return {height:F.md,padding:`0 ${e.v2.spacing(6)}`,paddingLeft:e.v2.spacing(8),...!a&&{paddingRight:e.v2.spacing(12)},border:"none",borderRadius:"inherit",fontSize:"11px",lineHeight:"1.3em",fontWeight:e.v2.typography.fontWeightMedium,color:t.black,backgroundColor:"transparent",display:"flex",alignItems:"center",minWidth:0,"&.Mui-disabled":{color:alpha(t.black,.6)},"& input":{padding:0,minWidth:0,width:"100%",display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& input::placeholder":{color:r[500],fontWeight:e.v2.typography.fontWeightRegular,opacity:1},"& input:-webkit-autofill, & input:-webkit-autofill:hover, & input:-webkit-autofill:focus":{WebkitTextFillColor:t.black,caretColor:t.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},[`&:where(.${x.sizeSm})`]:{height:F.sm},[`&:where(.${x.sizeMd})`]:{height:F.md},[`&:where(.${x.hasTrailingIcon})`]:{paddingRight:e.v2.spacing(28)},[`&:where(.${x.hasLabel})`]:{height:F.labelled,padding:e.v2.spacing(6),paddingLeft:e.v2.spacing(8),paddingTop:e.v2.spacing(18),alignItems:"stretch",marginTop:0,"& input":{margin:"0px !important",padding:"0px !important",lineHeight:"130%"},"& input:focus::placeholder":{opacity:"1 !important"}},[`&:where(.${x.hideArrows})`]:{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}}}),kr=styled(Si)(({theme:e})=>{let{grey:o}=e.v2.palette;return {fontSize:"10px",lineHeight:"1em",color:`${o[500]} !important`,"&.Mui-disabled":{opacity:.7}}}),Ir=styled(ns)(({theme:e})=>({position:"absolute",top:"30%",right:e.v2.spacing(8),color:e.v2.palette.grey[500]})),Br=styled(vo)(({theme:e})=>({position:"absolute",top:"50%",right:e.v2.spacing(8),transform:"translateY(-50%)",display:"flex",alignItems:"center",justifyContent:"center"})),Ni=`&:focus-within:where(:not(.${x.disableFocusRing})), &:where(.Mui-focused):where(:not(.${x.disableFocusRing}))`,wi="&:where(.Mui-warning):focus-within, &:where(.Mui-warning):where(.Mui-focused)",ki="&:where(.Mui-error):focus-within, &:where(.Mui-error):where(.Mui-focused)",Tr=styled(bi)(({theme:e,disabled:o,fullWidth:t})=>{let{grey:r,base:a,brand:s,error:i,warning:n}=e.v2.palette;return {position:"relative",display:"flex",flexDirection:"column",width:t?"100%":"auto",height:F.md,margin:0,border:`1px solid ${o?"#FAFBFB":r[100]}`,borderRadius:e.v2.radius(4),...o&&{backgroundColor:"#FAFBFB"},transition:"border-color 0.15s ease, box-shadow 0.15s ease",[`&:where(.${x.sizeSm})`]:{height:F.sm},[`&:where(.${x.sizeMd})`]:{height:F.md},[`&:where(.${x.hasLabel})`]:{height:F.labelled},"&:where(.Mui-warning)":{borderColor:alpha(n[500],.15)},"&:where(.Mui-error)":{borderColor:alpha(i[500],.15)},"&:where(.Mui-disabled)":{borderColor:"#FAFBFB"},[Ni]:{borderColor:s[500],boxShadow:`0px 0px 4px 0px ${alpha(s[500],.5)}`},[wi]:{borderColor:alpha(n[500],.15),boxShadow:"none"},[ki]:{borderColor:alpha(i[500],.15),boxShadow:"none"},"& .MuiFormLabel-asterisk":{color:i[500],fontSize:"10px",lineHeight:"1em",marginLeft:2},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:e.v2.spacing(8),fontSize:"10px",fontWeight:e.v2.typography.fontWeightMedium,lineHeight:"100%",transform:"translate(0, 6px) scale(1) !important",transformOrigin:"top left"},"& .MuiInputLabel-root.MuiInputLabel-shrink, & .MuiInputLabel-root.MuiFormLabel-filled, & .MuiInputLabel-root.Mui-focused":{transform:"translate(0, -2px) scale(0.95) !important",color:`${r[500]} !important`},"& .MuiInput-root":{flex:1,marginTop:"0 !important"}}});var Pr=forwardRef(({label:e,size:o="md",error:t=false,warning:r=false,disabled:a=false,fullWidth:s=false,placeholder:i,hideArrows:n=false,required:p,loading:d=false,validated:c=false,disableFocusRing:f=false,focused:u,type:y,id:m="Input",className:h,sx:g,value:k,defaultValue:M,onChange:L,endAdornment:b,onKeyDown:v,onWheel:N,...I},W)=>{let z=!!e,Ce=y==="number",be=z&&d&&!a,oo=c&&!d&&!a,pe=be||oo,Se=o==="sm"?x.sizeSm:x.sizeMd,Ka=useCallback(C=>{typeof W=="function"?W(C):W&&(W.current=C);},[W]),Ya=useMemo(()=>Hb(x.root,t&&"Mui-error",r&&"Mui-warning",a&&"Mui-disabled",z&&x.hasLabel,Se,f&&x.disableFocusRing,u&&inputClasses.focused,h),[t,r,a,z,Se,f,u,h]),Xa=useMemo(()=>Hb(x.input,z&&x.hasLabel,Se,n&&x.hideArrows,pe&&x.hasTrailingIcon),[z,Se,n,pe]),qa=C=>{let Qa=C.metaKey||C.ctrlKey||C.altKey,es=C.key.length===1;(["e","E","+","-"].includes(C.key)||T$1()&&es&&!Qa&&!/^[0-9.]$/.test(C.key))&&C.preventDefault(),v?.(C);},Ja=C=>{C.target instanceof HTMLElement&&C.target.blur(),N?.(C);};return jsxs(Tr,{className:Ya,sx:g,error:t,disabled:a,fullWidth:s,required:p,"data-testid":"Input",focused:u||void 0,children:[z&&jsx(kr,{className:x.label,htmlFor:m??void 0,required:p,shrink:u||void 0,children:e}),jsx(wr,{id:m??void 0,inputRef:Ka,className:Xa,type:y,error:t,disabled:a,required:p,placeholder:i??void 0,"aria-invalid":t||void 0,disableUnderline:true,fullWidth:true,value:k,defaultValue:M,onChange:L,endAdornment:b,onKeyDown:Ce?qa:v,onWheel:Ce?Ja:N,...I}),be&&jsx(Ir,{className:x.loadingIcon,id:m?`${m}-loading-icon`:void 0,size:14.7,thickness:5}),oo&&jsx(Br,{className:x.validatedIcon,id:m?`${m}-validated-icon`:void 0,children:jsx(Nr,{})})]})});Pr.displayName="Input";var Mr=memo(Pr);var yo="os-shared-Textarea",te={root:`${yo}-root`,label:`${yo}-label`,textarea:`${yo}-textarea`},re=3;var Lr=styled(Fi,{shouldForwardProp:e=>!["$error","$hasLabel","$minRows"].includes(e)})(({theme:e,$hasLabel:o=false,$minRows:t=re})=>{let{base:r,grey:a}=e.v2.palette;return {border:"none",borderRadius:"inherit",padding:o?`${e.v2.spacing(32)} ${e.v2.spacing(8)} ${e.v2.spacing(8)}`:`${e.v2.spacing(8)} ${e.v2.spacing(12)}`,fontSize:"11px",fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:r.black,backgroundColor:"transparent",alignItems:"flex-start",width:"100%",...o&&{marginTop:0},"&.Mui-disabled":{color:a[500]},"& textarea":{resize:"vertical",minHeight:o?void 0:`${Math.max(t*20,60)}px`,padding:0,margin:0},"& textarea::placeholder":{color:a[500],fontWeight:e.typography.fontWeightMedium,opacity:1},"& textarea:-webkit-autofill, & textarea:-webkit-autofill:hover, & textarea:-webkit-autofill:focus":{WebkitTextFillColor:r.black,caretColor:r.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"}}}),Fr=styled(Si)(({theme:e})=>{let{grey:o}=e.v2.palette;return {fontSize:"10px",fontWeight:e.typography.fontWeightMedium,color:`${o[500]} !important`}}),zr=styled(bi,{shouldForwardProp:e=>!["$hasLabel","$minRows"].includes(e)})(({theme:e,disabled:o,error:t,fullWidth:r,$hasLabel:a=false,$minRows:s=re})=>{let{grey:i,base:n,error:p}=e.v2.palette,d=t?p[500]:i[100];return {position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",minHeight:a?96+(s-re)*20:void 0,margin:0,border:`1px solid ${d}`,borderRadius:e.v2.radius(4),backgroundColor:o?i[100]:n.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?p[500]:i[50]},"& .MuiFormLabel-asterisk":{color:p[500]},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",display:"flex",alignItems:"flex-start",gap:e.v2.spacing(2),padding:e.v2.spacing(8),fontSize:"10px",fontWeight:e.typography.fontWeightMedium,lineHeight:"100%",transform:"none !important",transformOrigin:"top left",color:`${i[500]} !important`},"& .MuiInputBase-root":{flex:1,marginTop:"0 !important"}}});var Dr=forwardRef(({label:e,error:o=false,disabled:t=false,fullWidth:r=false,placeholder:a,minRows:s=re,maxRows:i,id:n,className:p,sx:d,required:c,...f},u)=>{let y=!!e;return jsxs(zr,{className:Hb(te.root,p),sx:d,error:o,disabled:t,fullWidth:r,required:c,variant:"standard","data-testid":"Textarea",$hasLabel:y,$minRows:s,children:[y&&jsx(Fr,{className:te.label,htmlFor:n,shrink:true,disableAnimation:true,required:c,children:e}),jsx(Lr,{id:n,inputRef:u,className:te.textarea,multiline:true,minRows:s,maxRows:i,disabled:t,required:c,placeholder:a??void 0,"aria-invalid":o||void 0,fullWidth:true,$error:o,$hasLabel:y,$minRows:s,...f})]})});Dr.displayName="Textarea";var Ar=memo(Dr);var U="os-shared-Accordion",P={root:`${U}-root`,summary:`${U}-summary`,content:`${U}-content`,labelStartAdornment:`${U}-labelStartAdornment`,labelContent:`${U}-labelContent`,labelEndAdornment:`${U}-labelEndAdornment`,expandIcon:`${U}-expandIcon`};var Wr=()=>{let{v2:e}=useTheme(),{base:o}=e.palette;return jsx("svg",{width:"9",height:"5",viewBox:"0 0 9 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.0501709 0.427246C0.0493864 0.478467 0.0592757 0.529176 0.0784912 0.57666C0.0976579 0.623937 0.125505 0.667471 0.161499 0.703613L3.82556 4.47803C3.86116 4.51465 3.90353 4.54403 3.95056 4.56396C3.99773 4.58391 4.04876 4.59422 4.09998 4.59424C4.15123 4.59424 4.20218 4.58392 4.24939 4.56396C4.29655 4.54401 4.33969 4.51476 4.37537 4.47803L8.03845 0.703613C8.07407 0.667816 8.10232 0.625348 8.12146 0.578613C8.14069 0.531638 8.15017 0.480932 8.14978 0.430176C8.14935 0.379519 8.13942 0.329298 8.11951 0.282715C8.09956 0.236042 8.06999 0.19405 8.03357 0.158691C7.99716 0.123349 7.95384 0.0952198 7.90662 0.0766602C7.8595 0.0582058 7.80878 0.0491929 7.75818 0.050293C7.70763 0.0514427 7.65792 0.0629948 7.61169 0.0834961C7.56537 0.104067 7.52346 0.13358 7.48865 0.17041L4.09998 3.65967L0.711304 0.17041C0.65912 0.115154 0.592066 0.0759001 0.517944 0.059082C0.443585 0.0422622 0.365385 0.0481013 0.294312 0.0756836C0.22324 0.103266 0.162075 0.15178 0.11853 0.214355C0.0750125 0.276905 0.05135 0.351058 0.0501709 0.427246Z",fill:o.black,stroke:o.black,strokeWidth:"0.1"})})};var Vr=styled(Ei)(({theme:e,square:o})=>{let{grey:t,base:r}=e.v2.palette;return {overflow:"hidden",border:`1px solid ${t[100]}`,...!o&&{borderRadius:e.v2.radius(8)},margin:0,background:r.white,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0},"&.Mui-disabled":{opacity:.5,pointerEvents:"none"}}}),Or=styled(Hi)(({theme:e})=>({background:"#fbfbfb",minHeight:"40px",height:"40px",padding:e.v2.spacing(10),"&.Mui-expanded":{minHeight:"40px",height:"40px"},"& .MuiAccordionSummary-content":{margin:0,display:"flex",flexDirection:"row",alignItems:"center",flexGrow:1,minWidth:0,gap:e.v2.spacing(10)},"& .MuiAccordionSummary-expandIconWrapper":{marginLeft:e.v2.spacing(8)}})),Zr=styled(Wi)(({theme:e})=>{let{grey:o}=e.v2.palette;return {padding:0,borderTop:`1px solid ${o[100]}`}}),jr=styled(vo)({display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:"rotate(0deg)"}),Ur=styled(vo)({minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"});var Kr=forwardRef(({expanded:e,defaultExpanded:o=false,onChange:t,label:r,content:a,labelStartAdornment:s,labelEndAdornment:i,slotProps:n={},disabled:p=false,expandIcon:d,className:c,sx:f,...u},y)=>{let m=e!==void 0,[h,g]=useState(o),k=m?e:h,M=(oo,pe)=>{m||g(pe),t?.(pe);},{showArrow:L=true,...b}=n.label??{},{className:v,sx:N,...I}=n.root??{},{className:W,sx:z}=n.summary??{},Ce=d??(L?jsx(jr,{component:"span",className:P.expandIcon,children:jsx(Wr,{})}):null),be=jsxs(Fragment,{children:[s!=null&&jsx(vo,{component:"span",className:P.labelStartAdornment,...n.labelStartAdornment,sx:Gb({flexShrink:0},n.labelStartAdornment?.sx),children:s},"label-start-adornment"),jsx(Ur,{component:"span",className:P.labelContent,...n.labelContent,sx:n.labelContent?.sx,children:r},"label-content"),i!=null&&jsx(vo,{component:"span",className:P.labelEndAdornment,...n.labelEndAdornment,sx:Gb({flexShrink:0,marginLeft:"auto"},n.labelEndAdornment?.sx),children:i},"label-end-adornment")]});return jsxs(Vr,{ref:y,"data-testid":"Accordion",disabled:p,expanded:k,onChange:M,className:Hb(P.root,c,v),sx:Gb(f??{},N),...I,...u,children:[jsx(Or,{className:Hb(P.summary,W),sx:Gb({},z),expandIcon:Ce,"aria-expanded":k,...b,children:be}),jsx(Zr,{className:P.content,...n.content,children:a})]})});Kr.displayName="Accordion";var Yr=memo(Kr);var Xr="os-shared-Menu",ye={popper:`${Xr}-popper`,panel:`${Xr}-panel`};var Jr=styled(_i)({}),Qr=styled(vo,{shouldForwardProp:e=>e!=="$showShadow"})(({theme:e,$showShadow:o})=>{let{grey:t,base:r}=e.v2.palette;return {borderRadius:e.v2.radius(4),background:r.white,width:"max-content",cursor:"pointer",boxShadow:e.v2.elevation[200],display:"flex",flexDirection:"column",overflowY:"auto",maxHeight:"432px","&:focus":{outline:"none"},".menu-item + .menu-item":{borderTop:`1px solid ${t[100]}`},"&::after":{content:o?'""':"none",width:"100%",height:"34px",position:"sticky",bottom:0,pointerEvents:"none",background:`linear-gradient(180deg, rgba(255,255,255,0) 0%, ${r.white} 100%)`}}});var oa=forwardRef(({open:e,anchorEl:o,children:t,placement:r,popperSx:a,panelProps:s,className:i,sx:n,...p},d)=>{let[c,f]=useState(false),y=useMemo(()=>Children.count(t),[t])>12&&c,{onScroll:m,className:h,sx:g,...k}=s??{},M=useCallback(b=>{f((b.currentTarget.scrollTop??0)>0),m?.(b);},[m]),L=Hb(ye.panel,h,"MuiPopper-dropdown");return jsx(Jr,{ref:d,className:Hb(ye.popper,i),"data-testid":"Menu",open:e,anchorEl:o,placement:r??"bottom-start",sx:a,...p,children:jsx(Qr,{$showShadow:y,onScroll:M,className:L,sx:Gb(n??{},g),...k,children:t})})});oa.displayName="Menu";var ta=memo(oa);var ge="os-shared-Dialog",A={root:`${ge}-root`,title:`${ge}-title`,divider:`${ge}-divider`,content:`${ge}-content`,actions:`${ge}-actions`};var ra=styled(Qi,{shouldForwardProp:e=>e!=="$hasBlurBackdrop"})(({theme:e,$hasBlurBackdrop:o})=>{let{base:t}=e.v2.palette,r=o?e.v2.blur[6]:"none";return {"& .MuiDialog-paper":{backgroundColor:t.white,boxShadow:"0px 0px 16px 0px rgba(0, 0, 0, 0.11)",borderRadius:e.v2.radius(8)},"& .MuiModal-backdrop":{background:alpha("#000",.2),...o&&{backdropFilter:r,WebkitBackdropFilter:r}}}}),aa=styled(tl)(({theme:e})=>{let{base:o}=e.v2.palette;return {padding:`${e.v2.spacing(16)} ${e.v2.spacing(16)} ${e.v2.spacing(12)}`,fontSize:"13px",fontWeight:e.typography.fontWeightBolder,lineHeight:"normal",color:o.black,whiteSpace:"nowrap"}}),sa=styled("hr")(({theme:e})=>{let{grey:o}=e.v2.palette;return {display:"block",border:"none",borderTop:`1px solid ${o[100]}`,margin:0,width:"100%",flexShrink:0}}),na=styled(ol,{shouldForwardProp:e=>e!=="$hasHeading"})(({theme:e,$hasHeading:o})=>{let{grey:t}=e.v2.palette;return {padding:`${o?e.v2.spacing(12):e.v2.spacing(16)} ${e.v2.spacing(16)} ${e.v2.spacing(16)}`,fontSize:"12px",fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:t[500]}}),ia=styled(el)(({theme:e})=>({padding:`0 ${e.v2.spacing(16)} ${e.v2.spacing(16)}`,gap:e.v2.spacing(8),justifyContent:"flex-end","& > :not(style) ~ :not(style)":{marginLeft:0}}));var pa=forwardRef(({heading:e,actions:o,children:t,onClose:r,open:a,hasBlurBackdrop:s,className:i,sx:n,...p},d)=>jsxs(ra,{ref:d,"data-testid":"Dialog",open:a,onClose:r,$hasBlurBackdrop:s,className:Hb(A.root,i),sx:n,...p,children:[e?jsxs(Fragment,{children:[jsx(aa,{className:A.title,children:e}),jsx(sa,{"aria-hidden":true,className:A.divider})]}):null,t!=null?jsx(na,{className:A.content,$hasHeading:!!e,children:t}):null,o?jsx(ia,{className:A.actions,children:o}):null]}));pa.displayName="Dialog";var da=memo(pa);var xo="os-shared-MenuItem",G={root:`${xo}-root`,indicator:`${xo}-indicator`,disabled:`${xo}-disabled`},K={unchecked:"unchecked",checked:"checked",indeterminate:"indeterminate"};var ma=()=>{let{v2:e}=useTheme(),{brand:o,base:t}=e.palette;return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:o[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74245C9.04243 3.94469 9.05652 4.2875 8.86537 4.50814L5.64586 8.22426C5.55146 8.33322 5.41909 8.39666 5.27942 8.39987C5.13975 8.40308 5.0049 8.34579 4.90612 8.24127L3.15002 6.38321C2.94999 6.17157 2.94999 5.82843 3.15002 5.61679C3.35004 5.40516 3.67435 5.40516 3.87437 5.61679L5.2522 7.07463L8.11024 3.77574C8.30138 3.55511 8.62538 3.5402 8.83391 3.74245Z",fill:t.white})]})},fa=()=>jsx("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("rect",{x:"1.19998",y:"1.19998",width:"9.6",height:"9.6",rx:"1.8",fill:"#FAFBFB",stroke:"#D2D5D8",strokeWidth:"1.2"})}),ua=()=>{let{v2:e}=useTheme(),{brand:o}=e.palette;return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"2.4",fill:o[500],stroke:o[500],strokeWidth:"1.2"}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:"#FAFBFB"})]})};var xa=styled(vo,{shouldForwardProp:e=>e!=="$isDisabled"})(({theme:e,$isDisabled:o=false})=>{let{base:t}=e.v2.palette;return {padding:e.v2.spacing(8),position:"relative",display:"flex",alignItems:"center",gap:e.v2.spacing(8),textTransform:"capitalize",cursor:o?"not-allowed":"pointer",flex:1,fontSize:e.typography.subtitle1.fontSize,opacity:o?.5:1,color:t.black}}),ho=styled("span")({width:14,height:14,flexShrink:0,pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center","& svg":{display:"block"}});function dl(e,o){return o?K.indeterminate:e?K.checked:K.unchecked}var cl={[K.unchecked]:fa,[K.checked]:ma,[K.indeterminate]:ua};function ml(e,o,t){if(e===null)return null;if(e!==void 0)return jsx(ho,{className:G.indicator,"aria-hidden":true,children:e});let r=dl(o,t),a=cl[r];return jsx(ho,{className:G.indicator,"aria-hidden":true,children:jsx(a,{})})}var ha=forwardRef(({isSelected:e=false,isDisabled:o=false,isIndeterminate:t=false,startAdornment:r,onClick:a,children:s,className:i,sx:n,...p},d)=>{let c=Hb(G.root,"menu-item",o&&G.disabled,i);return jsxs(xa,{ref:d,"data-testid":"MenuItem",className:c,sx:n,onClick:o?void 0:a,$isDisabled:o,...p,children:[ml(r,e,t),s]})});ha.displayName="MenuItem";var Ca=memo(ha);var bo="os-shared-ToggleButtons",se={root:`${bo}-root`,button:`${bo}-button`,overlay:`${bo}-overlay`},So={sm:"sm",md:"md"},ne=So.sm,Ye={sm:{buttonHeight:20,minWidth:20,fontSize:8,containerRadius:3,iconSlot:11},md:{buttonHeight:28,minWidth:28,fontSize:11,containerRadius:4,iconSlot:14}},ba="left 0.25s ease-in-out, width 0.25s ease-in-out";function ul(e,o){let{palette:t}=e.v2;return {backgroundColor:"transparent",boxShadow:"none",color:o?t.foreground.primary:t.foreground.secondary,opacity:o?1:.5}}var Sa=styled(vo,{shouldForwardProp:e=>e!=="$size"})(({theme:e,$size:o=ne})=>{let t=Ye[o];return {position:"relative",backgroundColor:e.v2.palette.background.secondary,display:"inline-flex",alignItems:"center",padding:e.v2.spacing(2),borderRadius:e.v2.radius(t.containerRadius)}}),va=styled(vo,{shouldForwardProp:e=>e!=="$left"&&e!=="$width"&&e!=="$size"&&e!=="$ready"})(({theme:e,$left:o,$width:t,$size:r=ne,$ready:a})=>{let s=Ye[r];return {position:"absolute",top:e.v2.spacing(2),left:o,width:t,height:s.buttonHeight,borderRadius:e.v2.radius(2),backgroundColor:e.v2.palette.background.primary,boxShadow:e.v2.elevation[100],transition:a?ba:"none",pointerEvents:"none",zIndex:1}}),Na=styled(vo,{shouldForwardProp:e=>e!=="$isActive"&&e!=="$size"})(({theme:e,$isActive:o=false,$size:t=ne})=>{let r=Ye[t];return {boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,position:"relative",zIndex:2,height:r.buttonHeight,width:"auto",minWidth:r.minWidth,borderRadius:e.v2.radius(2),fontSize:r.fontSize,fontWeight:e.typography.fontWeightMedium,lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",cursor:"pointer",transition:"opacity 0.25s ease-in-out, color 0.25s ease-in-out",...ul(e,o),"& img, & svg":{width:r.iconSlot,height:r.iconSlot,display:"block"}}});function Ia({options:e,activeKey:o,onChange:t,size:r=ne,containerProps:a,buttonProps:s,id:i,className:n,sx:p,"data-testid":d},c){let{className:f,sx:u,...y}=a??{},m=Hb(se.root,n,f),h=useRef([]),[g,k]=useState({left:0,width:0}),[M,L]=useState(false),b=useCallback(()=>{let v=e.findIndex(I=>I.key===o),N=h.current[v];N&&k({left:N.offsetLeft,width:N.offsetWidth});},[o,e]);return useLayoutEffect(()=>{b(),L(true);},[b]),useEffect(()=>{let v=h.current.filter(I=>I!=null);if(v.length===0||typeof ResizeObserver>"u")return;let N=new ResizeObserver(()=>{b();});return v.forEach(I=>N.observe(I)),()=>N.disconnect()},[e,b]),jsxs(Sa,{ref:c,id:i,"data-testid":d??i??"ToggleButtons",className:m,$size:r,sx:Gb(p??{},u),...y,children:[g.width>0?jsx(va,{className:se.overlay,$left:g.left,$width:g.width,$size:r,$ready:M,"aria-hidden":true}):null,e.map((v,N)=>jsx(Na,{className:se.button,$isActive:o===v.key,$size:r,onClick:()=>t(v.key),...s,ref:I=>{h.current[N]=I;},children:v.content},v.key))]})}var Sl=forwardRef(Ia);Ia.displayName="ToggleButtons";var Ba=memo(Sl);var Nl="os-shared-LazyImage",Xe={root:`${Nl}-root`},qe={opacity:()=>import('react-lazy-load-image-component/src/effects/opacity.css'),blur:()=>import('react-lazy-load-image-component/src/effects/blur.css'),"black-and-white":()=>import('react-lazy-load-image-component/src/effects/black-and-white.css')};var Ta=styled(vo)({display:"inline-flex",justifyContent:"center",alignItems:"center"});function Je(e){return e!=null&&e in qe}var Ml=LazyLoadImage,Pa=forwardRef(({effect:e,wrapperProps:o,id:t,className:r,sx:a,placeholderSrc:s,...i},n)=>{let[p,d]=useState(Je(e));if(useEffect(()=>{if(!Je(e)){d(false);return}d(true),qe[e]().finally(()=>{d(false);});},[e]),p)return null;let{className:c,sx:f,style:u,...y}=o??{},m=Je(e)||!!s||u!=null;return jsx(Ta,{component:"span",...y,className:Hb(Xe.root,c??r),sx:f!=null?Gb(a??{},f):a,children:jsx(Ml,{...i,ref:n,effect:e,placeholderSrc:s,id:t,"data-testid":"LazyImage",wrapperProps:m?{style:{display:"flex",justifyContent:"center",alignItems:"center",...u}}:void 0})})});Pa.displayName="LazyImage";var Ma=memo(Pa);var wo="os-shared-FieldFeedback",ie={root:`${wo}-root`,icon:`${wo}-icon`,message:`${wo}-message`};var za=({severity:e="error",...o})=>{let t=useTheme(),{warning:r,error:a}=t.v2.palette,s=e==="warning"?r[500]:a[500];return jsx(ro,{sx:{width:12,height:12},...o,children:jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M6 12C9.30838 12 12 9.30838 12 6C12 2.69162 9.30838 -2.35309e-07 6 -5.24537e-07C2.69162 -8.13764e-07 8.13764e-07 2.69162 5.24537e-07 6C2.35309e-07 9.30838 2.69162 12 6 12ZM6 11.1C3.17801 11.1 0.9 8.82198 0.9 6C0.9 3.17802 3.17802 0.899999 6 0.899999C8.82199 0.899999 11.1 3.17802 11.1 6C11.1 8.82198 8.82198 11.1 6 11.1ZM6 9C6.15913 9 6.31174 8.93679 6.42426 8.82426C6.53679 8.71174 6.6 8.55913 6.6 8.4C6.6 8.24087 6.53679 8.08826 6.42426 7.97574C6.31174 7.86321 6.15913 7.8 6 7.8C5.84087 7.8 5.68826 7.86321 5.57574 7.97574C5.46321 8.08826 5.4 8.24087 5.4 8.4C5.4 8.55913 5.46321 8.71174 5.57574 8.82426C5.68826 8.93679 5.84087 9 6 9ZM6.00703 6.90644C6.12628 6.90458 6.23991 6.85546 6.32296 6.76988C6.40602 6.6843 6.45171 6.56925 6.45 6.45L6.45 3.15C6.45084 3.09037 6.43983 3.03116 6.41759 2.97583C6.39535 2.92049 6.36234 2.87013 6.32047 2.82766C6.2786 2.7852 6.22871 2.75148 6.17369 2.72846C6.11868 2.70544 6.05964 2.69359 6 2.69359C5.94036 2.69359 5.88132 2.70544 5.82631 2.72846C5.77129 2.75148 5.7214 2.7852 5.67953 2.82766C5.63766 2.87013 5.60465 2.92049 5.58241 2.97583C5.56017 3.03116 5.54916 3.09037 5.55 3.15L5.55 6.45C5.54914 6.51023 5.56037 6.57002 5.58304 6.62583C5.60571 6.68163 5.63935 6.73232 5.68197 6.77489C5.72459 6.81745 5.77533 6.85103 5.83116 6.87363C5.887 6.89623 5.9468 6.90739 6.00703 6.90644Z",fill:s})})})},Ra=e=>{let{v2:o}=useTheme(),{success:t}=o.palette;return jsx(ro,{sx:{width:12,height:12},...e,children:jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:t[700]})})})},Da=()=>jsx("svg",{width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:jsx("path",{d:"M6 7.5V5.5M6 3.5H6.005M11 5.5C11 8.26142 8.76142 10.5 6 10.5C3.23858 10.5 1 8.26142 1 5.5C1 2.73858 3.23858 0.5 6 0.5C8.76142 0.5 11 2.73858 11 5.5Z",stroke:"currentColor",strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})});function Qe(e,o){let t=o??"error",{brand:r,success:a,error:s,status:i}=e.v2.palette;switch(t){case "warning":return {borderColor:i.warning.subtle,backgroundColor:i.warning.subtle,textColor:i.warning.default};case "success":return {borderColor:alpha(a[700],.15),backgroundColor:alpha(a[700],.15),textColor:a[700]};case "info":return {borderColor:alpha(r[500],.12),backgroundColor:alpha(r[500],.12),textColor:r[500]};case "error":return {borderColor:alpha(s[500],.15),backgroundColor:alpha(s[500],.15),textColor:s[500]};default:return t}}var Aa=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:o})=>{let{backgroundColor:t,textColor:r}=Qe(e,o);return {display:"flex",alignItems:"flex-start",gap:e.v2.spacing(4),minHeight:"32px",padding:`${e.v2.spacing(8)} ${e.v2.spacing(12)}`,background:t,color:r,borderRadius:`0 0 ${e.v2.radius(4)} ${e.v2.radius(4)}`}}),Ea=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:o})=>{let{textColor:t}=Qe(e,o);return {fontSize:"10px",lineHeight:"16px",display:"block",color:t,wordBreak:"break-word"}}),Wa=styled("span")({width:12,height:12,flexShrink:0,marginTop:"2px",display:"inline-flex",alignItems:"center",justifyContent:"center","& svg":{width:12,height:12,display:"block"}});function zl(e){switch(e){case "success":return jsx(Ra,{});case "info":return jsx(Da,{});case "error":case "warning":return jsx(za,{severity:e})}}var Ha=forwardRef(({type:e="error",message:o,icon:t,className:r,sx:a},s)=>{if(!Wb(o))return null;let i=e;return jsxs(Aa,{ref:s,"data-testid":"FieldFeedback",className:Hb(ie.root,r),sx:a,$feedbackType:i,children:[t??jsx(Wa,{className:ie.icon,children:zl(i)}),jsx(Ea,{className:ie.message,$feedbackType:i,children:o})]})});Ha.displayName="FieldFeedback";var Va=memo(Ha);var Dl="os-shared-ScrollLoader",eo={root:`${Dl}-root`};var Oa=styled(Al)({overflow:"auto",height:"100%",maxHeight:"100%"});function Io(e,o=50){return e.scrollHeight-(e.scrollTop+e.clientHeight)<=o}var _a=forwardRef(({loadMoreItems:e,hasMore:o,isLoading:t=false,isFetchingNextPage:r,children:a,className:s,sx:i,id:n,...p},d)=>{let[c,f]=useState(false),u=useRef(e),y=useRef(null);u.current=e;let m=useCallback(()=>{o&&!r&&u.current();},[o,r]),h=useCallback(()=>{let g=y.current;g&&Io(g)&&m();},[m]);return useEffect(()=>{let g=y.current;if(g)return g.addEventListener("scroll",h),()=>g.removeEventListener("scroll",h)},[h]),useEffect(()=>{let g=y.current;if(!g||t||c)return;let k=window.setTimeout(()=>{f(true),Io(g)&&m();},1e3);return ()=>window.clearTimeout(k)},[t,m,c]),jsx(Oa,{ref:g=>{y.current=g,typeof d=="function"?d(g):d&&(d.current=g);},id:n,"data-testid":"ScrollLoader",className:Hb(eo.root,s),sx:i,...p,children:a})});_a.displayName="ScrollLoader";var Ga=memo(_a);
1
+ import {Hb,Vb,Gb,xa as xa$1,ub,Wb,T as T$1}from'./chunk-MMXWSV6V.js';import {forwardRef,memo,useId,createElement,useState,useCallback,useMemo,Children,useEffect,useRef,useLayoutEffect}from'react';import vo from'@mui/material/Box';import ns,{circularProgressClasses}from'@mui/material/CircularProgress';import os from'@mui/material/ButtonBase';import {styled,alpha,useTheme}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import ro from'@mui/material/SvgIcon';import fs from'@mui/material/Checkbox';import us from'@mui/material/FormControlLabel';import Cs from'@mui/material/Switch';import ks from'@mui/material/Typography';import Rs from'@mui/material/Radio';import Gs from'@mui/material/Tooltip';import tn from'@mui/material/Skeleton';import pn from'@mui/material/Avatar';import gn from'@mui/material/Divider';import Nn from'@mui/material/Collapse';import {createPortal}from'react-dom';import An from'@mui/material/Backdrop';import li,{SliderThumb}from'@mui/material/Slider';import vi,{inputClasses}from'@mui/material/Input';import bi from'@mui/material/FormControl';import Si from'@mui/material/InputLabel';import Fi from'@mui/material/InputBase';import Ei from'@mui/material/Accordion';import Wi from'@mui/material/AccordionDetails';import Hi from'@mui/material/AccordionSummary';import _i from'@mui/material/Popper';import Qi from'@mui/material/Dialog';import el from'@mui/material/DialogActions';import ol from'@mui/material/DialogContent';import tl from'@mui/material/DialogTitle';import {LazyLoadImage}from'react-lazy-load-image-component';import Al from'@mui/material/Stack';var H="os-shared-Button",T={root:`${H}-root`,content:`${H}-content`,startIcon:`${H}-startIcon`,endIcon:`${H}-endIcon`,icon:`${H}-icon`,loading:`${H}-loading`,loadingSpinner:`${H}-loadingSpinner`},Mo={sm:{height:24,paddingY:8,paddingX:16,fontSize:"10px"},md:{height:32,minWidth:79,paddingY:8,paddingX:24,fontSize:"13px",lineHeight:"16px"},lg:{height:40,paddingY:8,paddingX:32,fontSize:"12px"}},Lo={sm:{width:24,minWidth:24,height:24,padding:0},md:{width:32,minWidth:32,height:32,padding:0},lg:{width:38,minWidth:38,height:38,padding:0}},Fo={sm:12,md:12,lg:14};var Ro=styled(os,{shouldForwardProp:e=>e!=="$variant"&&e!=="$size"&&e!=="$fullWidth"&&e!=="$isLoading"&&e!=="$hasIcon"&&e!=="$isIconOnly"})(({theme:e,$variant:o="primary",$size:t="md",$fullWidth:r,$isLoading:a,$hasIcon:s,$isIconOnly:i})=>{let n=e.v2.palette,{paddingX:p,paddingY:d,...c}=Mo[t],f=Lo[t];return {display:"inline-flex",alignItems:"center",justifyContent:"center",gap:e.v2.spacing(6),borderRadius:e.v2.radius(4),lineHeight:"100%",whiteSpace:"nowrap",position:"relative",cursor:a?"not-allowed":"pointer",transition:"background-color 0.15s ease, opacity 0.15s ease",...c,padding:`${e.v2.spacing(d)} ${e.v2.spacing(p)}`,fontWeight:e.typography.fontWeightMedium,...r&&!i&&{width:"100%"},...s&&!r&&!i&&{width:"auto",minWidth:0},...o==="primary"&&{background:n.brand[500],color:n.base.white,"&.Mui-disabled":{opacity:1,background:n.interactive.primary.disabled,color:n.base.white}},...o==="secondary"&&{backgroundColor:n.base.white,color:n.grey[900],border:`1px solid ${n.grey[100]}`,"&.Mui-disabled":{opacity:1,color:n.foreground.disabled}},...o==="ghost"&&{padding:0,minWidth:0,backgroundColor:"transparent",color:n.foreground.brand,"&.Mui-disabled":{opacity:.5}},...o==="danger"&&{backgroundColor:n.status.danger.default,color:n.base.white,"&.Mui-disabled":{opacity:1,backgroundColor:alpha(n.status.danger.default,.14),color:n.base.white}},...i&&{boxSizing:"border-box",...f}}}),de=styled("span")(({theme:e})=>{let o=e.v2.spacing(16);return {display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,width:o,height:o}});var Ao=forwardRef(({children:e,variant:o="primary",size:t="md",isLoading:r=false,startIcon:a,endIcon:s,icon:i,fullWidth:n=false,disabled:p,className:d,sx:c,disableRipple:f=true,...u},y)=>{let m=i!=null;return jsxs(Ro,{ref:y,className:Hb(T.root,d),$variant:o,$size:t,$fullWidth:n,$isLoading:r,$hasIcon:m||!!a||!!s||r,$isIconOnly:m,disabled:p||r,disableRipple:f,"data-testid":"Button",sx:c,...u,children:[jsx(vo,{component:"span",className:T.content,sx:{display:"inline-flex",alignItems:"center",gap:"inherit",visibility:r?"hidden":"visible"},children:m?jsx(de,{className:T.icon,children:i}):jsxs(Fragment,{children:[a&&jsx(de,{className:T.startIcon,children:a}),e,s&&jsx(de,{className:T.endIcon,children:s})]})}),r&&jsx(de,{className:T.loading,sx:{position:"absolute"},children:jsx(ns,{className:T.loadingSpinner,size:Fo[t],color:"inherit"})})]})});Ao.displayName="Button";var Eo=memo(Ao);var ls="os-shared-Icon",Ne={root:`${ls}-root`};var Wo=styled("img")(({theme:e})=>({width:e.v2.spacing(16),height:e.v2.spacing(16),verticalAlign:"middle",flexShrink:0}));var Ho=forwardRef(({className:e,sx:o,...t},r)=>jsx(Wo,{className:Hb(Ne.root,e),sx:o,"data-testid":"Icon",...t,ref:r}));Ho.displayName="Icon";var Vo=memo(Ho);var to="os-shared-Checkbox",V={root:`${to}-root`,control:`${to}-control`,label:`${to}-label`};var Oo=({disabled:e,...o})=>{let{v2:t}=useTheme(),{brand:r,base:a,foreground:s}=t.palette;return jsxs(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12},...o,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:e?s.disabled:r[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74206C9.04243 3.9443 9.05652 4.28711 8.86537 4.50775L5.64586 8.22387C5.55146 8.33284 5.41909 8.39627 5.27942 8.39948C5.13975 8.40269 5.0049 8.3454 4.90612 8.24088L3.15002 6.38282C2.94999 6.17118 2.94999 5.82804 3.15002 5.61641C3.35004 5.40477 3.67435 5.40477 3.87437 5.61641L5.2522 7.07424L8.11024 3.77535C8.30138 3.55472 8.62538 3.53981 8.83391 3.74206Z",fill:a.white})]})},Zo=({disabled:e,...o})=>{let{v2:t}=useTheme(),{base:r,grey:a}=t.palette;return jsx(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12},...o,children:jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"1.8",fill:e?a[50]:r.white,stroke:e?a[200]:a[500],strokeWidth:"1.2"})})},jo=({disabled:e,...o})=>{let{v2:t}=useTheme(),{brand:r,base:a,foreground:s}=t.palette;return jsxs(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12},...o,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:e?s.disabled:r[500]}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:a.white})]})};var Go=styled(fs)(({theme:e})=>({padding:e.v2.spacing(2),"&:hover":{backgroundColor:"transparent"}})),Ko=styled(us)(({theme:e})=>{let{base:o,grey:t}=e.v2.palette;return {marginLeft:0,gap:e.v2.spacing(4),"& .MuiFormControlLabel-label":{fontSize:"11px",color:o.black},"& .MuiFormControlLabel-label.Mui-disabled":{color:t[500]}}});var Yo=forwardRef(({label:e,labelPlacement:o="end",disabled:t,sx:r,className:a,...s},i)=>{let n=Vb(useId(),"checkbox"),p=jsx(Go,{id:n,ref:i,disableRipple:true,disabled:t,checkedIcon:jsx(Oo,{disabled:t}),icon:jsx(Zo,{disabled:t}),indeterminateIcon:jsx(jo,{disabled:t}),"data-testid":"Checkbox",className:Hb(e?V.control:V.root,e?void 0:a),sx:e?void 0:r,...s});return e?jsx(Ko,{className:Hb(V.root,a),sx:r,control:p,label:e,labelPlacement:o,disabled:t,componentsProps:{typography:{className:V.label}}}):p});Yo.displayName="Checkbox";var Xo=memo(Yo);var hs="os-shared-Switch",we={root:`${hs}-root`};var qo=styled(Cs)(({theme:e,disabled:o})=>{let{base:t,grey:r,success:a}=e.v2.palette;return {width:28,height:16,padding:0,borderRadius:e.v2.radius(8),opacity:o?.5:1,overflow:"visible","& .MuiSwitch-switchBase":{padding:0,margin:e.v2.spacing(1),color:t.white,transitionDuration:"300ms","&:hover":{backgroundColor:"transparent"},"&.Mui-focusVisible":{outline:`2px solid ${r[400]}`,outlineOffset:2},"&.Mui-checked":{transform:"translateX(12px)",color:t.white,"& + .MuiSwitch-track":{backgroundColor:a[500],opacity:1,border:0}},"&.Mui-disabled":{color:t.white,"& + .MuiSwitch-track":{opacity:1},"& .MuiSwitch-thumb":{filter:"none"}},"&.Mui-checked.Mui-disabled":{color:t.white}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:14,height:14,color:t.white,backgroundColor:t.white,boxShadow:"none",filter:o?"none":"drop-shadow(0px 3px 0.5px rgba(0, 0, 0, 0.04)) drop-shadow(0px 3px 4px rgba(0, 0, 0, 0.12))"},"& .MuiSwitch-track":{borderRadius:e.v2.radius(8),backgroundColor:"#D9D9D9",opacity:1,transition:e.transitions.create(["background-color"],{duration:300})}}});var Jo=forwardRef(({className:e,sx:o,...t},r)=>jsx(qo,{ref:r,className:Hb(we.root,e),sx:o,"data-testid":"Switch",disableRipple:true,...t}));Jo.displayName="Switch";var Qo=memo(Jo);var ws="os-shared-Typography",ke={root:`${ws}-root`},Ie="body.default.regular";var Bs=e=>e!=null&&typeof e=="object"&&"fontFamily"in e&&"fontSize"in e&&"fontWeight"in e;function Ts(e,o){try{let t=o.split(".").reduce((r,a)=>{if(r==null||typeof r!="object")throw new TypeError(`Invalid typography textVariant: ${o}`);return r[a]},e);if(!Bs(t))throw new TypeError(`Invalid typography textVariant: ${o}`);return t}catch(t){return console.warn(t),e.body.default.regular}}function $s(e,o,t){return o===void 0?t:typeof o=="number"?o:{light:e.fontWeightLight,regular:e.fontWeightRegular,medium:e.fontWeightMedium,semibold:e.fontWeightBold,bold:e.fontWeightBolder}[o]??t}var et=styled(ks,{shouldForwardProp:e=>e!=="$textVariant"&&e!=="$weight"})(({theme:e,$textVariant:o=Ie,$weight:t})=>{let{base:r}=e.v2.palette,a=Ts(e.v2.typography.textVariants,o);return {color:r.black,...a,fontWeight:$s(e.v2.typography,t,a.fontWeight)}});var ot=forwardRef(({textVariant:e=Ie,variant:o="subtitle2",weight:t,className:r,sx:a,...s},i)=>jsx(et,{ref:i,className:Hb(ke.root,r),sx:a,"data-testid":"Typography",...s,variant:o,$textVariant:e,$weight:t}));ot.displayName="Typography";var tt=memo(ot);var Fs="os-shared-RadioButton";var Be={root:`${Fs}-root`};var st=({disabled:e,...o})=>{let{v2:t}=useTheme(),{brand:r,base:a}=t.palette,s=e?"#BDC1CC":r[500];return jsxs(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...o,children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"4.8",fill:s,stroke:s,strokeWidth:"1.2",style:{fill:s,stroke:s}}),jsx("circle",{cx:"6",cy:"6",r:"2.25",fill:a.white,style:{fill:a.white}})]})},nt=({disabled:e,...o})=>{let{v2:t}=useTheme(),{base:r,grey:a}=t.palette,s=e?a[50]:r.white,i=e?a[200]:a[500];return jsx(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...o,children:jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"4.8",fill:s,stroke:i,strokeWidth:"1.2",style:{fill:s,stroke:i}})})};var it=styled(Rs)(({theme:e})=>({padding:e.v2.spacing(2),"&:hover":{backgroundColor:"transparent"},"& .MuiSvgIcon-root":{fontSize:12,width:12,height:12}}));var lt=forwardRef(({disabled:e,sx:o,className:t,...r},a)=>jsx(it,{ref:a,disableRipple:true,disabled:e,checkedIcon:jsx(st,{disabled:e}),icon:jsx(nt,{disabled:e}),"data-testid":"RadioButton",className:Hb(Be.root,t),sx:o,...r}));lt.displayName="RadioButton";var pt=memo(lt);var $e="os-shared-CircularProgress",O={root:`${$e}-root`,progress:`${$e}-progress`,labelOverlay:`${$e}-labelOverlay`,labelText:`${$e}-labelText`};var ct=styled(ns)(({theme:e})=>{let{brand:o}=e.v2.palette;return {color:"#147DC5",background:alpha(o[500],.05),borderRadius:"50%",[`& .${circularProgressClasses.circle}`]:{strokeLinecap:"round"}}}),mt=styled(vo)(()=>({position:"relative",display:"inline-flex"})),ft=styled(vo)(()=>({top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"})),ut=styled(ks)(({theme:e})=>({fontSize:e.typography.fontSize,fontWeight:e.typography.fontWeightBolder??700,color:"#3B4152"}));var yt=forwardRef(({variant:e="indeterminate",hasLabel:o=true,value:t,className:r,sx:a,...s},i)=>{let n=e==="determinate"&&o;return jsxs(mt,{className:Hb(O.root,r),sx:a,"data-testid":"CircularProgress",children:[jsx(ct,{ref:i,variant:e,value:t,className:O.progress,...s}),n&&jsx(ft,{className:O.labelOverlay,children:jsx(ut,{className:O.labelText,variant:"caption",color:"text.secondary",children:`${Math.round(t??0)}%`})})]})});yt.displayName="CircularProgress";var gt=memo(yt);var Z="os-shared-Tooltip",w={popper:`${Z}-popper`,tooltip:`${Z}-tooltip`,arrow:`${Z}-arrow`,content:`${Z}-content`,title:`${Z}-title`,supportingText:`${Z}-supportingText`,wrapper:`${Z}-wrapper`};var xt=styled(({className:e,...o})=>createElement(Gs,{...o,classes:{popper:Hb(w.popper,e),tooltip:w.tooltip,arrow:w.arrow}}))(({theme:e})=>{let{base:o,grey:t}=e.v2.palette,r=o.white,a="var(--tooltip-border-width) solid var(--tooltip-border-color)";return {"--tooltip-border-color":"#3C373721","--tooltip-border-width":"1px",zIndex:999999,[`& .${w.arrow}`]:{color:r,"&:before":{backgroundColor:r,boxSizing:"border-box",border:a}},[`& .${w.tooltip}`]:{backgroundColor:r,color:t[700],boxShadow:e.v2.elevation[200],fontSize:12,fontWeight:400,lineHeight:1.2,padding:e.v2.spacing(6),borderRadius:e.v2.radius(8),border:a,maxWidth:320,wordBreak:"break-word"}}}),ht=styled("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",gap:e.v2.spacing(6),maxWidth:296,width:"100%"})),Ct=styled("div",{shouldForwardProp:e=>e!=="$hasSupportingText"})(({theme:e,$hasSupportingText:o})=>{let{grey:t}=e.v2.palette;return {margin:0,fontSize:12,fontWeight:o?600:400,lineHeight:o?1:1.2,color:o?t[700]:alpha(t[700],.77),width:o?"100%":void 0}}),bt=styled("div")(({theme:e})=>{let{grey:o}=e.v2.palette;return {margin:0,fontSize:11,fontWeight:400,lineHeight:"normal",color:o[500],width:"100%",whiteSpace:"pre-wrap"}});function qs(e){return e!=null&&e!==false&&e!==""}function Js(e){return !!e||e===0}function Qs(e,o){let t=qs(o);if(!Js(e)&&!t)return null;let r=jsx(Ct,{className:w.title,$hasSupportingText:t,children:e});return t?jsxs(ht,{className:w.content,children:[r,jsx(bt,{className:w.supportingText,children:o})]}):r}function St({className:e,title:o,supportingText:t,placement:r="top",children:a,wrapperProps:s,sx:i,...n}){let{className:p,...d}=s??{};return jsx(xt,{className:e,title:Qs(o,t),placement:r,arrow:true,sx:i,...n,children:jsx(vo,{display:"flex",alignItems:"center","data-testid":"Tooltip",className:Hb(w.wrapper,p),...d,children:a})})}St.displayName="Tooltip";var vt=memo(St);var on="os-shared-Skeleton",Fe={root:`${on}-root`};var Nt=styled(tn)(()=>({}));var wt=forwardRef(({className:e,sx:o,variant:t="rounded",...r},a)=>jsx(Nt,{ref:a,className:Hb(Fe.root,e),sx:Gb({height:16},o),"data-testid":"Skeleton",variant:t,...r}));wt.displayName="Skeleton";var kt=memo(wt);var ln="os-shared-Avatar",ze={root:`${ln}-root`},Re="xs",De="teal",It={teal:{from:"#31D5C8",to:"#1186C5"},green:{from:"#A2E9BD",to:"#44BB74"},cyan:{from:"#6BF6EB",to:"#32D6C9"},steel:{from:"#61AFC9",to:"#7FBFD4"},sage:{from:"#9DB7A4",to:"#7FBFD4"},gold:{from:"#D7B38C",to:"#FFE09F"},lime:{from:"#ADD6A2",to:"#FFDDB2"}},Bt={xs:{dimension:24,fontSize:"9px"},sm:{dimension:32,fontSize:"12px"},md:{dimension:40,fontSize:"15px"},lg:{dimension:48,fontSize:"17px"},xl:{dimension:56,fontSize:"20px"}};function cn(e){let{from:o,to:t}=It[e];return `linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%), linear-gradient(135deg, ${o} 0%, ${t} 100%)`}var Tt=styled(pn,{shouldForwardProp:e=>!["$size","$color"].includes(e)})(({theme:e,$size:o=Re,$color:t=De})=>{let{dimension:r,fontSize:a}=Bt[o],{base:s}=e.v2.palette,i=cn(t);return {width:r,height:r,flexShrink:0,fontSize:a,fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:s.white,background:i,backgroundColor:"transparent","&.MuiAvatar-colorDefault":{color:s.white,background:i,backgroundColor:"transparent"}}});var $t=forwardRef(({className:e,sx:o,size:t=Re,color:r=De,...a},s)=>jsx(Tt,{ref:s,className:Hb(ze.root,e),sx:o,"data-testid":"Avatar",...a,$size:t,$color:r,variant:"circular"}));$t.displayName="Avatar";var Pt=memo($t);var yn="os-shared-Divider",Ae={root:`${yn}-root`};function hn(e,o){let{grey:t,border:r}=o.v2.palette;return e==="subtle"?r.subtle:t[100]}var Mt=styled(gn,{shouldForwardProp:e=>e!=="$type"})(({theme:e,$type:o="default",orientation:t="horizontal"})=>({borderColor:hn(o,e),...t==="vertical"?{borderBottomWidth:0,borderRightWidth:1}:{borderBottomWidth:1}}));var Lt=forwardRef(({className:e,sx:o,orientation:t="horizontal",type:r="default",...a},s)=>jsx(Mt,{ref:s,className:Hb(Ae.root,e),sx:o,"data-testid":"Divider",orientation:t,$type:r,...a}));Lt.displayName="Divider";var Ft=memo(Lt);var vn="os-shared-Collapse",Ee={root:`${vn}-root`};var zt=styled(Nn)(()=>({}));var Rt=forwardRef(({className:e,sx:o,children:t,unmountOnExit:r=true,timeout:a=300,...s},i)=>jsx(zt,{ref:i,className:Hb(Ee.root,e),sx:o,"data-testid":"Collapse",unmountOnExit:r,timeout:a,...s,children:t}));Rt.displayName="Collapse";var Dt=memo(Rt);var Tn="os-shared-Badge",We={root:`${Tn}-root`},He="default",At={default:"#29b6f6",primary:"#1976d2",secondary:"#f50057",neutral:"#656565",gray:"#CFCFCF",orange:"#FFD503"};function Mn(e,o){let{base:t,grey:r,brand:a,success:s,warning:i,error:n,gradient:p}=o.v2.palette;if(e==="highlight")return p.brand;let d=At[e];return d||({inactive:r[100],active:alpha(t.black,.1),dark:a[500],red:n[500],success:s[500],warning:i[500],error:n[500]}[e]??t.white)}function Ln(e,o){let{base:t}=o.v2.palette;return e==="inactive"?t.black:(t.white)}var Wt=styled("span",{shouldForwardProp:e=>!["$color","$compact","$round","$pointer"].includes(e)})(({theme:e,$color:o=He,$compact:t,$round:r,$pointer:a})=>{let s=Mn(o,e);return {paddingBlock:e.v2.spacing(2),paddingInline:t?"0.16056rem":r?"0.275rem":e.v2.spacing(4),borderRadius:t?e.v2.radius(4):r?e.v2.radius(16):e.v2.radius(48),background:s,color:Ln(o,e),fontSize:"8px",fontWeight:700,lineHeight:"10px",letterSpacing:0,overflow:"hidden",height:t?"12px":r?"16px":void 0,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",cursor:a?"pointer":"auto"}});var Ht=forwardRef(({className:e,sx:o,color:t,state:r,compact:a,round:s,pointer:i,children:n,...p},d)=>{let c=t??r??He;return jsx(Wt,{ref:d,className:Hb(We.root,e),sx:o,"data-testid":"Badge",...p,$color:c,$compact:a,$round:s,$pointer:i,children:n})});Ht.displayName="Badge";var Vt=memo(Ht);var Dn="os-shared-Backdrop",Ve={root:`${Dn}-root`};var Ot=styled(An,{shouldForwardProp:e=>e!=="$hasBlur"})(({theme:e,$hasBlur:o=false,invisible:t=true})=>{let r=o&&!t?e.v2.blur[6]:"none";return {zIndex:t?999:1,backgroundColor:t?"transparent":alpha("#000",.3),backdropFilter:r,WebkitBackdropFilter:r}});var Zt=forwardRef(({className:e,sx:o,open:t=true,invisible:r=true,hasBlur:a=false,onClose:s,onClick:i,...n},p)=>{if(!t)return null;let d=c=>{s?.(),i?.(c);};return createPortal(jsx(Ot,{open:t,invisible:r,$hasBlur:a,ref:p,className:Hb(Ve.root,e),sx:o,"data-testid":"Backdrop",onClick:d,...n}),document.body)});Zt.displayName="Backdrop";var jt=memo(Zt);var Oe="os-shared-CopyButton",R={root:`${Oe}-root`,icon:`${Oe}-icon`,copyIcon:`${Oe}-copyIcon`,copiedIcon:`${Oe}-copiedIcon`};var Gt=e=>{let{v2:o}=useTheme(),{base:t}=o.palette;return jsx(ro,{sx:{height:12.6,width:13},...e,children:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"13",viewBox:"2.67 1.67 10.66 12.66",fill:"none",children:jsx("path",{d:"M11.3333 13.6978L11.3332 13.6979C11.1002 14.0479 10.7072 14.2582 10.2863 14.2582H5.83317C4.12559 14.2582 2.7415 12.8741 2.7415 11.1665V4.71338C2.7415 4.29279 2.95172 3.89983 3.30186 3.66641L3.5915 3.47331V11.1665C3.5915 12.4046 4.59508 13.4082 5.83317 13.4082H11.5264L11.3333 13.6978ZM4.40817 3.49984C4.40817 2.53467 5.20133 1.7415 6.1665 1.7415H11.4998C12.465 1.7415 13.2582 2.53467 13.2582 3.49984V10.8332C13.2582 11.7983 12.465 12.5915 11.4998 12.5915H6.1665C5.20133 12.5915 4.40817 11.7983 4.40817 10.8332V3.49984ZM11.4998 2.5915H6.1665C5.65901 2.5915 5.25817 2.99234 5.25817 3.49984V10.8332C5.25817 11.3407 5.65901 11.7415 6.1665 11.7415H11.4998C12.0073 11.7415 12.4082 11.3407 12.4082 10.8332V3.49984C12.4082 2.99234 12.0073 2.5915 11.4998 2.5915Z",fill:t.black,stroke:t.white,strokeWidth:"0.15"})})})},Kt=e=>{let{v2:o}=useTheme(),{success:t,base:r}=o.palette;return jsx(ro,{sx:{height:12.6,width:13},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:t[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};var Xt=styled("span")({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:16,height:16,flexShrink:0,cursor:"pointer",verticalAlign:"middle"}),io=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:"opacity 200ms ease"}));var qt=forwardRef(({className:e,sx:o,text:t,feedbackMs:r=2e3,icon:a=jsx(Gt,{}),onClick:s,...i},n)=>{let[p,d]=useState(false),c=f=>{f.stopPropagation(),xa$1(t),d(true),setTimeout(()=>d(false),r),s?.(f);};return jsxs(Xt,{ref:n,className:Hb(R.root,e),sx:o,role:"button",tabIndex:0,"data-testid":"CopyButton",onClick:c,...i,children:[jsx(io,{className:Hb(R.icon,R.copyIcon),$visible:!p,children:a}),jsx(io,{className:Hb(R.icon,R.copiedIcon),$visible:p,children:jsx(Kt,{})})]})});qt.displayName="CopyButton";var Jt=memo(qt);var lo="os-shared-ProgressBar",Q={root:`${lo}-root`,fill:`${lo}-fill`,text:`${lo}-text`};var er=styled(vo,{shouldForwardProp:e=>!["$value","$isDecimal"].includes(e)})(({theme:e,$value:o,$isDecimal:t})=>{let{base:r}=e.v2.palette;return {width:`${o}%`,minWidth:o>=10?"28px":"24px",height:"18px",borderRadius:e.v2.radius(50),background:"linear-gradient(256deg, #147DC5 0%, #3DA6E1 100%)",display:"flex",alignItems:"center",justifyContent:o>10?"flex-end":"center",paddingInlineEnd:o>10?e.v2.spacing(2):e.v2.spacing(0),...o===0&&{background:alpha(r.black,26/255)},...t&&{minWidth:o>=10?"40px":"36px"}}}),or=styled(vo,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:o})=>{let{base:t}=e.v2.palette;return {height:"14px",maxWidth:"36px",minWidth:"20px",background:alpha(t.black,26/255),borderRadius:e.v2.radius(50),display:"flex",alignItems:"center",justifyContent:"center",padding:0,...o===0&&{background:alpha(t.black,0)}}}),tr=styled(ks,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:o})=>{let{base:t,grey:r}=e.v2.palette;return {fontSize:"8px",fontWeight:e.typography.fontWeightBolder??700,color:t.white,padding:`${e.v2.spacing(2)} ${e.v2.spacing(4)}`,...o===0&&{color:alpha(r[500],.5)}}});var ar=forwardRef(({className:e,sx:o,value:t},r)=>{let a=!Number.isInteger(t);return jsx(er,{ref:r,className:Hb(Q.root,e),sx:o,"data-testid":"ProgressBar",$value:t,$isDecimal:a,children:jsx(or,{className:Q.fill,$value:t,children:jsxs(tr,{className:Q.text,$value:t,variant:"caption",children:[Number(t.toFixed(2)),"%"]})})})});ar.displayName="ProgressBar";var sr=memo(ar);var Ue="os-shared-Chip",$={root:`${Ue}-root`,text:`${Ue}-text`,copyButton:`${Ue}-copyButton`,icon:`${Ue}-icon`},nr={text:{height:24,paddingBlock:4,paddingInline:8,borderRadius:48},circular:{height:24,width:24,padding:4,borderRadius:12},"pill-icon":{height:24,width:36,paddingBlock:4,paddingInline:6,borderRadius:12}};var pr=e=>{let{v2:o}=useTheme(),{base:t}=o.palette;return jsx(ro,{sx:{height:"10px"},...e,children:jsx("svg",{width:"11",height:"13",viewBox:"0 0 11 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.924805 9.5C0.924805 10.7381 1.9289 11.7412 3.16699 11.7412H8.86035L8.66699 12.0312C8.43398 12.3812 8.04094 12.5917 7.62012 12.5918H3.16699C1.45941 12.5918 0.0751953 11.2076 0.0751953 9.5V3.04688C0.0751953 2.62628 0.28561 2.23342 0.635742 2L0.924805 1.80664V9.5ZM3.5 0.0751953H8.83301C9.79807 0.0751953 10.5916 0.867985 10.5918 1.83301V9.16699C10.5916 10.132 9.79807 10.9248 8.83301 10.9248H3.5C2.53494 10.9248 1.74139 10.132 1.74121 9.16699V1.83301C1.74139 0.867985 2.53494 0.0751953 3.5 0.0751953ZM3.5 0.924805C2.99261 0.924805 2.59197 1.32567 2.5918 1.83301V9.16699C2.59197 9.67433 2.99261 10.0752 3.5 10.0752H8.83301C9.3404 10.0752 9.74104 9.67433 9.74121 9.16699V1.83301C9.74104 1.32567 9.3404 0.924805 8.83301 0.924805H3.5Z",fill:t.black,stroke:t.white,strokeWidth:"0.15"})})})},dr=e=>{let{v2:o}=useTheme(),{success:t,base:r}=o.palette;return jsx(ro,{sx:{height:"10px"},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:t[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};function ei(e,o){let t=nr[e];return {height:t.height,..."width"in t&&{width:t.width,minWidth:t.width},..."padding"in t&&{padding:o.v2.spacing(t.padding)},..."paddingBlock"in t&&{paddingBlock:o.v2.spacing(t.paddingBlock)},..."paddingInline"in t&&{paddingInline:o.v2.spacing(t.paddingInline)},borderRadius:o.v2.radius(t.borderRadius)}}var mr=styled(vo,{shouldForwardProp:e=>!["$variant","$hasIcon","$hasCopy","$isSelected","$disableAnimation"].includes(e)})(({theme:e,$variant:o="text",$hasIcon:t,$hasCopy:r,$isSelected:a,$disableAnimation:s})=>{let{grey:i,base:n}=e.v2.palette;return {display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,boxSizing:"border-box",lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",fontSize:11,fontWeight:e.typography.fontWeightRegular,color:n.black,border:`1px solid ${i[100]}`,backgroundColor:n.white,...ei(o,e),...o==="text"&&t&&{gap:e.v2.spacing(6),paddingInlineStart:e.v2.spacing(5),paddingInlineEnd:e.v2.spacing(8)},...r&&{gap:e.v2.spacing(4)},[`& .${$.icon}`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:14,height:14,overflow:"hidden","& img, & svg":{width:14,height:14,display:"block"}},...a&&{boxShadow:`${n.white} 7px 0px 8px 2px`},...s&&{transition:"none !important",animation:"none !important",transform:"none !important","& *":{transition:"none !important",animation:"none !important",transform:"none !important"}}}}),co=styled(vo)({textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"0 1 auto"}),fr=styled("span",{shouldForwardProp:e=>e!=="$copied"})(({$copied:e})=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:12,height:12,flexShrink:0,cursor:"pointer",opacity:e?1:.6,transition:"opacity 150ms ease","&:hover":{opacity:1}})),mo=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:"opacity 150ms ease"}));var yr=forwardRef(({className:e,sx:o,children:t,icon:r,variant:a="text",disabled:s=false,isSelected:i=false,copyText:n,unknownText:p="Unknown",disableAnimation:d=false,...c},f)=>{let[u,y]=useState(false),m=!!(t&&n),h=r!=null&&!m,g=useCallback(b=>{b.stopPropagation(),n&&(xa$1(n),y(true),setTimeout(()=>y(false),2e3));},[n]),k=useMemo(()=>h?jsx("span",{className:$.icon,children:r}):null,[h,r]),M=useMemo(()=>{if(t){let b=m&&typeof t=="string"?ub(t):void 0;return jsx(co,{className:$.text,"data-is-arabic":b,children:t})}return h?null:jsx(co,{className:$.text,children:p})},[t,m,h,p]),L=useMemo(()=>m?jsxs(fr,{className:$.copyButton,role:"button",tabIndex:0,"aria-label":u?"copied":"copy","data-testid":"ChipCopyButton",$copied:u,onClick:g,children:[jsx(mo,{$visible:!u,children:jsx(pr,{})}),jsx(mo,{$visible:u,children:jsx(dr,{})})]}):null,[m,u,g]);return jsxs(mr,{ref:f,"data-testid":"Chip",className:Hb($.root,e,`CustomVariant_${a}`),sx:Gb(s?{cursor:"not-allowed",opacity:.5}:{},o),$variant:a,$hasIcon:h,$hasCopy:m,$isSelected:i,$disableAnimation:d,...c,children:[k,M,L]})});yr.displayName="Chip";var gr=memo(yr);var uo="os-shared-Slider",D={root:`${uo}-root`,thumb:`${uo}-thumb`,thumbIcon:`${uo}-thumbIcon`};var xr=e=>{let{v2:o}=useTheme(),{grey:t}=o.palette;return jsx(ro,{sx:{width:"5px",height:"8px",pointerEvents:"none"},...e,children:jsxs("svg",{width:"5",height:"8",viewBox:"0 0 5 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M0.459961 0.460449L0.459961 6.59897",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M2.44531 0.460388L2.44531 6.59891",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M4.4375 0.460388L4.4375 6.59891",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"})]})})};var hr=styled(li)(({theme:e})=>{let{brand:o,base:t}=e.v2.palette,r=["0px 0px 1.25px 0px rgba(0, 0, 0, 0.1)","0px 1.25px 1.25px 0px rgba(0, 0, 0, 0.09)","0px 3.75px 2.5px 0px rgba(0, 0, 0, 0.05)","0px 7.5px 2.5px 0px rgba(0, 0, 0, 0.01)","0px 11.25px 3.75px 0px rgba(0, 0, 0, 0)"].join(", ");return {color:o[500],height:8,padding:0,"& .MuiSlider-rail":{backgroundColor:"#CFCFCF",opacity:1,left:0},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:t.white,border:"none",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:r,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:r}},[`& .${D.thumbIcon}`]:{width:"5px",height:"8px",pointerEvents:"none"}}});function ui({children:e,className:o,...t}){return jsxs(SliderThumb,{className:Hb(D.thumb,o),...t,children:[e,jsx(xr,{className:D.thumbIcon})]})}var Cr=forwardRef(({className:e,sx:o,value:t,min:r,max:a,step:s,disabled:i,onChange:n,slots:p,...d},c)=>{let f=useCallback((u,y)=>{n(y);},[n]);return jsx(hr,{ref:c,className:Hb(D.root,e),sx:o,"data-testid":"Slider",value:t,min:r,max:a,step:s,disabled:i,onChange:f,...d,slots:{thumb:ui,...p}})});Cr.displayName="Slider";var br=memo(Cr);var B="os-shared-Input",x={root:`${B}-root`,label:`${B}-label`,input:`${B}-input`,loadingIcon:`${B}-loadingIcon`,validatedIcon:`${B}-validatedIcon`,hasLabel:`${B}-hasLabel`,sizeSm:`${B}-sizeSm`,sizeMd:`${B}-sizeMd`,disableFocusRing:`${B}-disableFocusRing`,hideArrows:`${B}-hideArrows`,hasTrailingIcon:`${B}-hasTrailingIcon`},F={sm:28,md:32,labelled:40};var Nr=e=>{let{v2:o}=useTheme(),{success:t}=o.palette;return jsx(ro,{viewBox:"0 0 10 8",sx:{width:10,height:8},...e,children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:t[700]})})};var wr=styled(vi)(({theme:e,endAdornment:o})=>{let{base:t,grey:r}=e.v2.palette,a=!!o;return {height:F.md,padding:`0 ${e.v2.spacing(6)}`,paddingLeft:e.v2.spacing(8),...!a&&{paddingRight:e.v2.spacing(12)},border:"none",borderRadius:"inherit",fontSize:"11px",lineHeight:"1.3em",fontWeight:e.v2.typography.fontWeightMedium,color:t.black,backgroundColor:"transparent",display:"flex",alignItems:"center",minWidth:0,"&.Mui-disabled":{color:alpha(t.black,.6)},"& input":{padding:0,minWidth:0,width:"100%",display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& input::placeholder":{color:r[500],fontWeight:e.v2.typography.fontWeightRegular,opacity:1},"& input:-webkit-autofill, & input:-webkit-autofill:hover, & input:-webkit-autofill:focus":{WebkitTextFillColor:t.black,caretColor:t.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},[`&:where(.${x.sizeSm})`]:{height:F.sm},[`&:where(.${x.sizeMd})`]:{height:F.md},[`&:where(.${x.hasTrailingIcon})`]:{paddingRight:e.v2.spacing(28)},[`&:where(.${x.hasLabel})`]:{height:F.labelled,padding:e.v2.spacing(6),paddingLeft:e.v2.spacing(8),paddingTop:e.v2.spacing(18),alignItems:"stretch",marginTop:0,"& input":{margin:"0px !important",padding:"0px !important",lineHeight:"130%"},"& input:focus::placeholder":{opacity:"1 !important"}},[`&:where(.${x.hideArrows})`]:{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}}}),kr=styled(Si)(({theme:e})=>{let{grey:o}=e.v2.palette;return {fontSize:"10px",lineHeight:"1em",color:`${o[500]} !important`,"&.Mui-disabled":{opacity:.7}}}),Ir=styled(ns)(({theme:e})=>({position:"absolute",top:"30%",right:e.v2.spacing(8),color:e.v2.palette.grey[500]})),Br=styled(vo)(({theme:e})=>({position:"absolute",top:"50%",right:e.v2.spacing(8),transform:"translateY(-50%)",display:"flex",alignItems:"center",justifyContent:"center"})),Ni=`&:focus-within:where(:not(.${x.disableFocusRing})), &:where(.Mui-focused):where(:not(.${x.disableFocusRing}))`,wi="&:where(.Mui-warning):focus-within, &:where(.Mui-warning):where(.Mui-focused)",ki="&:where(.Mui-error):focus-within, &:where(.Mui-error):where(.Mui-focused)",Tr=styled(bi)(({theme:e,disabled:o,fullWidth:t})=>{let{grey:r,base:a,brand:s,error:i,warning:n}=e.v2.palette;return {position:"relative",display:"flex",flexDirection:"column",width:t?"100%":"auto",height:F.md,margin:0,border:`1px solid ${o?"#FAFBFB":r[100]}`,borderRadius:e.v2.radius(4),...o&&{backgroundColor:"#FAFBFB"},transition:"border-color 0.15s ease, box-shadow 0.15s ease",[`&:where(.${x.sizeSm})`]:{height:F.sm},[`&:where(.${x.sizeMd})`]:{height:F.md},[`&:where(.${x.hasLabel})`]:{height:F.labelled},"&:where(.Mui-warning)":{borderColor:alpha(n[500],.15)},"&:where(.Mui-error)":{borderColor:alpha(i[500],.15)},"&:where(.Mui-disabled)":{borderColor:"#FAFBFB"},[Ni]:{borderColor:s[500],boxShadow:`0px 0px 4px 0px ${alpha(s[500],.5)}`},[wi]:{borderColor:alpha(n[500],.15),boxShadow:"none"},[ki]:{borderColor:alpha(i[500],.15),boxShadow:"none"},"& .MuiFormLabel-asterisk":{color:i[500],fontSize:"10px",lineHeight:"1em",marginLeft:2},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:e.v2.spacing(8),fontSize:"10px",fontWeight:e.v2.typography.fontWeightMedium,lineHeight:"100%",transform:"translate(0, 6px) scale(1) !important",transformOrigin:"top left"},"& .MuiInputLabel-root.MuiInputLabel-shrink, & .MuiInputLabel-root.MuiFormLabel-filled, & .MuiInputLabel-root.Mui-focused":{transform:"translate(0, -2px) scale(0.95) !important",color:`${r[500]} !important`},"& .MuiInput-root":{flex:1,marginTop:"0 !important"}}});var Pr=forwardRef(({label:e,size:o="md",error:t=false,warning:r=false,disabled:a=false,fullWidth:s=false,placeholder:i,hideArrows:n=false,required:p,loading:d=false,validated:c=false,disableFocusRing:f=false,focused:u,type:y,id:m="Input",className:h,sx:g,value:k,defaultValue:M,onChange:L,endAdornment:b,onKeyDown:v,onWheel:N,...I},W)=>{let z=!!e,Ce=y==="number",be=z&&d&&!a,oo=c&&!d&&!a,pe=be||oo,Se=o==="sm"?x.sizeSm:x.sizeMd,Ka=useCallback(C=>{typeof W=="function"?W(C):W&&(W.current=C);},[W]),Ya=useMemo(()=>Hb(x.root,t&&"Mui-error",r&&"Mui-warning",a&&"Mui-disabled",z&&x.hasLabel,Se,f&&x.disableFocusRing,u&&inputClasses.focused,h),[t,r,a,z,Se,f,u,h]),Xa=useMemo(()=>Hb(x.input,z&&x.hasLabel,Se,n&&x.hideArrows,pe&&x.hasTrailingIcon),[z,Se,n,pe]),qa=C=>{let Qa=C.metaKey||C.ctrlKey||C.altKey,es=C.key.length===1;(["e","E","+","-"].includes(C.key)||T$1()&&es&&!Qa&&!/^[0-9.]$/.test(C.key))&&C.preventDefault(),v?.(C);},Ja=C=>{C.target instanceof HTMLElement&&C.target.blur(),N?.(C);};return jsxs(Tr,{className:Ya,sx:g,error:t,disabled:a,fullWidth:s,required:p,"data-testid":"Input",focused:u||void 0,children:[z&&jsx(kr,{className:x.label,htmlFor:m??void 0,required:p,shrink:u||void 0,children:e}),jsx(wr,{id:m??void 0,inputRef:Ka,className:Xa,type:y,error:t,disabled:a,required:p,placeholder:i??void 0,"aria-invalid":t||void 0,disableUnderline:true,fullWidth:true,value:k,defaultValue:M,onChange:L,endAdornment:b,onKeyDown:Ce?qa:v,onWheel:Ce?Ja:N,...I}),be&&jsx(Ir,{className:x.loadingIcon,id:m?`${m}-loading-icon`:void 0,size:14.7,thickness:5}),oo&&jsx(Br,{className:x.validatedIcon,id:m?`${m}-validated-icon`:void 0,children:jsx(Nr,{})})]})});Pr.displayName="Input";var Mr=memo(Pr);var yo="os-shared-Textarea",te={root:`${yo}-root`,label:`${yo}-label`,textarea:`${yo}-textarea`},re=3;var Lr=styled(Fi,{shouldForwardProp:e=>!["$error","$hasLabel","$minRows"].includes(e)})(({theme:e,$hasLabel:o=false,$minRows:t=re})=>{let{base:r,grey:a}=e.v2.palette;return {border:"none",borderRadius:"inherit",padding:o?`${e.v2.spacing(32)} ${e.v2.spacing(8)} ${e.v2.spacing(8)}`:`${e.v2.spacing(8)} ${e.v2.spacing(12)}`,fontSize:"11px",fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:r.black,backgroundColor:"transparent",alignItems:"flex-start",width:"100%",...o&&{marginTop:0},"&.Mui-disabled":{color:a[500]},"& textarea":{resize:"vertical",minHeight:o?void 0:`${Math.max(t*20,60)}px`,padding:0,margin:0},"& textarea::placeholder":{color:a[500],fontWeight:e.typography.fontWeightMedium,opacity:1},"& textarea:-webkit-autofill, & textarea:-webkit-autofill:hover, & textarea:-webkit-autofill:focus":{WebkitTextFillColor:r.black,caretColor:r.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"}}}),Fr=styled(Si)(({theme:e})=>{let{grey:o}=e.v2.palette;return {fontSize:"10px",fontWeight:e.typography.fontWeightMedium,color:`${o[500]} !important`}}),zr=styled(bi,{shouldForwardProp:e=>!["$hasLabel","$minRows"].includes(e)})(({theme:e,disabled:o,error:t,fullWidth:r,$hasLabel:a=false,$minRows:s=re})=>{let{grey:i,base:n,error:p}=e.v2.palette,d=t?p[500]:i[100];return {position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",minHeight:a?96+(s-re)*20:void 0,margin:0,border:`1px solid ${d}`,borderRadius:e.v2.radius(4),backgroundColor:o?i[100]:n.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?p[500]:i[50]},"& .MuiFormLabel-asterisk":{color:p[500]},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",display:"flex",alignItems:"flex-start",gap:e.v2.spacing(2),padding:e.v2.spacing(8),fontSize:"10px",fontWeight:e.typography.fontWeightMedium,lineHeight:"100%",transform:"none !important",transformOrigin:"top left",color:`${i[500]} !important`},"& .MuiInputBase-root":{flex:1,marginTop:"0 !important"}}});var Dr=forwardRef(({label:e,error:o=false,disabled:t=false,fullWidth:r=false,placeholder:a,minRows:s=re,maxRows:i,id:n,className:p,sx:d,required:c,...f},u)=>{let y=!!e;return jsxs(zr,{className:Hb(te.root,p),sx:d,error:o,disabled:t,fullWidth:r,required:c,variant:"standard","data-testid":"Textarea",$hasLabel:y,$minRows:s,children:[y&&jsx(Fr,{className:te.label,htmlFor:n,shrink:true,disableAnimation:true,required:c,children:e}),jsx(Lr,{id:n,inputRef:u,className:te.textarea,multiline:true,minRows:s,maxRows:i,disabled:t,required:c,placeholder:a??void 0,"aria-invalid":o||void 0,fullWidth:true,$error:o,$hasLabel:y,$minRows:s,...f})]})});Dr.displayName="Textarea";var Ar=memo(Dr);var U="os-shared-Accordion",P={root:`${U}-root`,summary:`${U}-summary`,content:`${U}-content`,labelStartAdornment:`${U}-labelStartAdornment`,labelContent:`${U}-labelContent`,labelEndAdornment:`${U}-labelEndAdornment`,expandIcon:`${U}-expandIcon`};var Wr=()=>{let{v2:e}=useTheme(),{base:o}=e.palette;return jsx("svg",{width:"9",height:"5",viewBox:"0 0 9 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.0501709 0.427246C0.0493864 0.478467 0.0592757 0.529176 0.0784912 0.57666C0.0976579 0.623937 0.125505 0.667471 0.161499 0.703613L3.82556 4.47803C3.86116 4.51465 3.90353 4.54403 3.95056 4.56396C3.99773 4.58391 4.04876 4.59422 4.09998 4.59424C4.15123 4.59424 4.20218 4.58392 4.24939 4.56396C4.29655 4.54401 4.33969 4.51476 4.37537 4.47803L8.03845 0.703613C8.07407 0.667816 8.10232 0.625348 8.12146 0.578613C8.14069 0.531638 8.15017 0.480932 8.14978 0.430176C8.14935 0.379519 8.13942 0.329298 8.11951 0.282715C8.09956 0.236042 8.06999 0.19405 8.03357 0.158691C7.99716 0.123349 7.95384 0.0952198 7.90662 0.0766602C7.8595 0.0582058 7.80878 0.0491929 7.75818 0.050293C7.70763 0.0514427 7.65792 0.0629948 7.61169 0.0834961C7.56537 0.104067 7.52346 0.13358 7.48865 0.17041L4.09998 3.65967L0.711304 0.17041C0.65912 0.115154 0.592066 0.0759001 0.517944 0.059082C0.443585 0.0422622 0.365385 0.0481013 0.294312 0.0756836C0.22324 0.103266 0.162075 0.15178 0.11853 0.214355C0.0750125 0.276905 0.05135 0.351058 0.0501709 0.427246Z",fill:o.black,stroke:o.black,strokeWidth:"0.1"})})};var Vr=styled(Ei)(({theme:e,square:o})=>{let{grey:t,base:r}=e.v2.palette;return {overflow:"hidden",border:`1px solid ${t[100]}`,...!o&&{borderRadius:e.v2.radius(8)},margin:0,background:r.white,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0},"&.Mui-disabled":{opacity:.5,pointerEvents:"none"}}}),Or=styled(Hi)(({theme:e})=>({background:"#fbfbfb",minHeight:"40px",height:"40px",padding:e.v2.spacing(10),"&.Mui-expanded":{minHeight:"40px",height:"40px"},"& .MuiAccordionSummary-content":{margin:0,display:"flex",flexDirection:"row",alignItems:"center",flexGrow:1,minWidth:0,gap:e.v2.spacing(10)},"& .MuiAccordionSummary-expandIconWrapper":{marginLeft:e.v2.spacing(8)}})),Zr=styled(Wi)(({theme:e})=>{let{grey:o}=e.v2.palette;return {padding:0,borderTop:`1px solid ${o[100]}`}}),jr=styled(vo)({display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:"rotate(0deg)"}),Ur=styled(vo)({minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"});var Kr=forwardRef(({expanded:e,defaultExpanded:o=false,onChange:t,label:r,content:a,labelStartAdornment:s,labelEndAdornment:i,slotProps:n={},disabled:p=false,expandIcon:d,className:c,sx:f,...u},y)=>{let m=e!==void 0,[h,g]=useState(o),k=m?e:h,M=(oo,pe)=>{m||g(pe),t?.(pe);},{showArrow:L=true,...b}=n.label??{},{className:v,sx:N,...I}=n.root??{},{className:W,sx:z}=n.summary??{},Ce=d??(L?jsx(jr,{component:"span",className:P.expandIcon,children:jsx(Wr,{})}):null),be=jsxs(Fragment,{children:[s!=null&&jsx(vo,{component:"span",className:P.labelStartAdornment,...n.labelStartAdornment,sx:Gb({flexShrink:0},n.labelStartAdornment?.sx),children:s},"label-start-adornment"),jsx(Ur,{component:"span",className:P.labelContent,...n.labelContent,sx:n.labelContent?.sx,children:r},"label-content"),i!=null&&jsx(vo,{component:"span",className:P.labelEndAdornment,...n.labelEndAdornment,sx:Gb({flexShrink:0,marginLeft:"auto"},n.labelEndAdornment?.sx),children:i},"label-end-adornment")]});return jsxs(Vr,{ref:y,"data-testid":"Accordion",disabled:p,expanded:k,onChange:M,className:Hb(P.root,c,v),sx:Gb(f??{},N),...I,...u,children:[jsx(Or,{className:Hb(P.summary,W),sx:Gb({},z),expandIcon:Ce,"aria-expanded":k,...b,children:be}),jsx(Zr,{className:P.content,...n.content,children:a})]})});Kr.displayName="Accordion";var Yr=memo(Kr);var Xr="os-shared-Menu",ye={popper:`${Xr}-popper`,panel:`${Xr}-panel`};var Jr=styled(_i)({}),Qr=styled(vo,{shouldForwardProp:e=>e!=="$showShadow"})(({theme:e,$showShadow:o})=>{let{grey:t,base:r}=e.v2.palette;return {borderRadius:e.v2.radius(4),background:r.white,width:"max-content",cursor:"pointer",boxShadow:e.v2.elevation[200],display:"flex",flexDirection:"column",overflowY:"auto",maxHeight:"432px","&:focus":{outline:"none"},".menu-item + .menu-item":{borderTop:`1px solid ${t[100]}`},"&::after":{content:o?'""':"none",width:"100%",height:"34px",position:"sticky",bottom:0,pointerEvents:"none",background:`linear-gradient(180deg, rgba(255,255,255,0) 0%, ${r.white} 100%)`}}});var oa=forwardRef(({open:e,anchorEl:o,children:t,placement:r,popperSx:a,panelProps:s,className:i,sx:n,...p},d)=>{let[c,f]=useState(false),y=useMemo(()=>Children.count(t),[t])>12&&c,{onScroll:m,className:h,sx:g,...k}=s??{},M=useCallback(b=>{f((b.currentTarget.scrollTop??0)>0),m?.(b);},[m]),L=Hb(ye.panel,h,"MuiPopper-dropdown");return jsx(Jr,{ref:d,className:Hb(ye.popper,i),"data-testid":"Menu",open:e,anchorEl:o,placement:r??"bottom-start",sx:a,...p,children:jsx(Qr,{$showShadow:y,onScroll:M,className:L,sx:Gb(n??{},g),...k,children:t})})});oa.displayName="Menu";var ta=memo(oa);var ge="os-shared-Dialog",A={root:`${ge}-root`,title:`${ge}-title`,divider:`${ge}-divider`,content:`${ge}-content`,actions:`${ge}-actions`};var ra=styled(Qi,{shouldForwardProp:e=>e!=="$hasBlurBackdrop"})(({theme:e,$hasBlurBackdrop:o})=>{let{base:t}=e.v2.palette,r=o?e.v2.blur[6]:"none";return {"& .MuiDialog-paper":{backgroundColor:t.white,boxShadow:"0px 0px 16px 0px rgba(0, 0, 0, 0.11)",borderRadius:e.v2.radius(8)},"& .MuiModal-backdrop":{background:alpha("#000",.2),...o&&{backdropFilter:r,WebkitBackdropFilter:r}}}}),aa=styled(tl)(({theme:e})=>{let{base:o}=e.v2.palette;return {padding:`${e.v2.spacing(16)} ${e.v2.spacing(16)} ${e.v2.spacing(12)}`,fontSize:"13px",fontWeight:e.typography.fontWeightBolder,lineHeight:"normal",color:o.black,whiteSpace:"nowrap"}}),sa=styled("hr")(({theme:e})=>{let{grey:o}=e.v2.palette;return {display:"block",border:"none",borderTop:`1px solid ${o[100]}`,margin:0,width:"100%",flexShrink:0}}),na=styled(ol,{shouldForwardProp:e=>e!=="$hasHeading"})(({theme:e,$hasHeading:o})=>{let{grey:t}=e.v2.palette;return {padding:`${o?e.v2.spacing(12):e.v2.spacing(16)} ${e.v2.spacing(16)} ${e.v2.spacing(16)}`,fontSize:"12px",fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:t[500]}}),ia=styled(el)(({theme:e})=>({padding:`0 ${e.v2.spacing(16)} ${e.v2.spacing(16)}`,gap:e.v2.spacing(8),justifyContent:"flex-end","& > :not(style) ~ :not(style)":{marginLeft:0}}));var pa=forwardRef(({heading:e,actions:o,children:t,onClose:r,open:a,hasBlurBackdrop:s,className:i,sx:n,...p},d)=>jsxs(ra,{ref:d,"data-testid":"Dialog",open:a,onClose:r,$hasBlurBackdrop:s,className:Hb(A.root,i),sx:n,...p,children:[e?jsxs(Fragment,{children:[jsx(aa,{className:A.title,children:e}),jsx(sa,{"aria-hidden":true,className:A.divider})]}):null,t!=null?jsx(na,{className:A.content,$hasHeading:!!e,children:t}):null,o?jsx(ia,{className:A.actions,children:o}):null]}));pa.displayName="Dialog";var da=memo(pa);var xo="os-shared-MenuItem",G={root:`${xo}-root`,indicator:`${xo}-indicator`,disabled:`${xo}-disabled`},K={unchecked:"unchecked",checked:"checked",indeterminate:"indeterminate"};var ma=()=>{let{v2:e}=useTheme(),{brand:o,base:t}=e.palette;return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:o[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74245C9.04243 3.94469 9.05652 4.2875 8.86537 4.50814L5.64586 8.22426C5.55146 8.33322 5.41909 8.39666 5.27942 8.39987C5.13975 8.40308 5.0049 8.34579 4.90612 8.24127L3.15002 6.38321C2.94999 6.17157 2.94999 5.82843 3.15002 5.61679C3.35004 5.40516 3.67435 5.40516 3.87437 5.61679L5.2522 7.07463L8.11024 3.77574C8.30138 3.55511 8.62538 3.5402 8.83391 3.74245Z",fill:t.white})]})},fa=()=>jsx("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("rect",{x:"1.19998",y:"1.19998",width:"9.6",height:"9.6",rx:"1.8",fill:"#FAFBFB",stroke:"#D2D5D8",strokeWidth:"1.2"})}),ua=()=>{let{v2:e}=useTheme(),{brand:o}=e.palette;return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"2.4",fill:o[500],stroke:o[500],strokeWidth:"1.2"}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:"#FAFBFB"})]})};var xa=styled(vo,{shouldForwardProp:e=>e!=="$isDisabled"})(({theme:e,$isDisabled:o=false})=>{let{base:t}=e.v2.palette;return {padding:e.v2.spacing(8),position:"relative",display:"flex",alignItems:"center",gap:e.v2.spacing(8),textTransform:"capitalize",cursor:o?"not-allowed":"pointer",flex:1,fontSize:e.typography.subtitle1.fontSize,opacity:o?.5:1,color:t.black}}),ho=styled("span")({width:14,height:14,flexShrink:0,pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center","& svg":{display:"block"}});function dl(e,o){return o?K.indeterminate:e?K.checked:K.unchecked}var cl={[K.unchecked]:fa,[K.checked]:ma,[K.indeterminate]:ua};function ml(e,o,t){if(e===null)return null;if(e!==void 0)return jsx(ho,{className:G.indicator,"aria-hidden":true,children:e});let r=dl(o,t),a=cl[r];return jsx(ho,{className:G.indicator,"aria-hidden":true,children:jsx(a,{})})}var ha=forwardRef(({isSelected:e=false,isDisabled:o=false,isIndeterminate:t=false,startAdornment:r,onClick:a,children:s,className:i,sx:n,...p},d)=>{let c=Hb(G.root,"menu-item",o&&G.disabled,i);return jsxs(xa,{ref:d,"data-testid":"MenuItem",className:c,sx:n,onClick:o?void 0:a,$isDisabled:o,...p,children:[ml(r,e,t),s]})});ha.displayName="MenuItem";var Ca=memo(ha);var bo="os-shared-ToggleButtons",se={root:`${bo}-root`,button:`${bo}-button`,overlay:`${bo}-overlay`},So={sm:"sm",md:"md"},ne=So.sm,Ye={sm:{buttonHeight:20,minWidth:20,fontSize:8,containerRadius:3,iconSlot:11},md:{buttonHeight:28,minWidth:28,fontSize:11,containerRadius:4,iconSlot:14}},ba="left 0.25s ease-in-out, width 0.25s ease-in-out";function ul(e,o){let{palette:t}=e.v2;return {backgroundColor:"transparent",boxShadow:"none",color:o?t.foreground.primary:t.foreground.secondary,opacity:o?1:.5}}var Sa=styled(vo,{shouldForwardProp:e=>e!=="$size"})(({theme:e,$size:o=ne})=>{let t=Ye[o];return {position:"relative",backgroundColor:e.v2.palette.background.secondary,display:"inline-flex",alignItems:"center",padding:e.v2.spacing(2),borderRadius:e.v2.radius(t.containerRadius)}}),va=styled(vo,{shouldForwardProp:e=>e!=="$left"&&e!=="$width"&&e!=="$size"&&e!=="$ready"})(({theme:e,$left:o,$width:t,$size:r=ne,$ready:a})=>{let s=Ye[r];return {position:"absolute",top:e.v2.spacing(2),left:o,width:t,height:s.buttonHeight,borderRadius:e.v2.radius(2),backgroundColor:e.v2.palette.background.primary,boxShadow:e.v2.elevation[100],transition:a?ba:"none",pointerEvents:"none",zIndex:1}}),Na=styled(vo,{shouldForwardProp:e=>e!=="$isActive"&&e!=="$size"})(({theme:e,$isActive:o=false,$size:t=ne})=>{let r=Ye[t];return {boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,position:"relative",zIndex:2,height:r.buttonHeight,width:"auto",minWidth:r.minWidth,borderRadius:e.v2.radius(2),fontSize:r.fontSize,fontWeight:e.typography.fontWeightMedium,lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",cursor:"pointer",transition:"opacity 0.25s ease-in-out, color 0.25s ease-in-out",...ul(e,o),"& img, & svg":{width:r.iconSlot,height:r.iconSlot,display:"block"}}});function Ia({options:e,activeKey:o,onChange:t,size:r=ne,containerProps:a,buttonProps:s,id:i,className:n,sx:p,"data-testid":d},c){let{className:f,sx:u,...y}=a??{},m=Hb(se.root,n,f),h=useRef([]),[g,k]=useState({left:0,width:0}),[M,L]=useState(false),b=useCallback(()=>{let v=e.findIndex(I=>I.key===o),N=h.current[v];N&&k({left:N.offsetLeft,width:N.offsetWidth});},[o,e]);return useLayoutEffect(()=>{b(),L(true);},[b]),useEffect(()=>{let v=h.current.filter(I=>I!=null);if(v.length===0||typeof ResizeObserver>"u")return;let N=new ResizeObserver(()=>{b();});return v.forEach(I=>N.observe(I)),()=>N.disconnect()},[e,b]),jsxs(Sa,{ref:c,id:i,"data-testid":d??i??"ToggleButtons",className:m,$size:r,sx:Gb(p??{},u),...y,children:[g.width>0?jsx(va,{className:se.overlay,$left:g.left,$width:g.width,$size:r,$ready:M,"aria-hidden":true}):null,e.map((v,N)=>jsx(Na,{className:se.button,$isActive:o===v.key,$size:r,onClick:()=>t(v.key),...s,ref:I=>{h.current[N]=I;},children:v.content},v.key))]})}var Sl=forwardRef(Ia);Ia.displayName="ToggleButtons";var Ba=memo(Sl);var Nl="os-shared-LazyImage",Xe={root:`${Nl}-root`},qe={opacity:()=>import('react-lazy-load-image-component/src/effects/opacity.css'),blur:()=>import('react-lazy-load-image-component/src/effects/blur.css'),"black-and-white":()=>import('react-lazy-load-image-component/src/effects/black-and-white.css')};var Ta=styled(vo)({display:"inline-flex",justifyContent:"center",alignItems:"center"});function Je(e){return e!=null&&e in qe}var Ml=LazyLoadImage,Pa=forwardRef(({effect:e,wrapperProps:o,id:t,className:r,sx:a,placeholderSrc:s,...i},n)=>{let[p,d]=useState(Je(e));if(useEffect(()=>{if(!Je(e)){d(false);return}d(true),qe[e]().finally(()=>{d(false);});},[e]),p)return null;let{className:c,sx:f,style:u,...y}=o??{},m=Je(e)||!!s||u!=null;return jsx(Ta,{component:"span",...y,className:Hb(Xe.root,c??r),sx:f!=null?Gb(a??{},f):a,children:jsx(Ml,{...i,ref:n,effect:e,placeholderSrc:s,id:t,"data-testid":"LazyImage",wrapperProps:m?{style:{display:"flex",justifyContent:"center",alignItems:"center",...u}}:void 0})})});Pa.displayName="LazyImage";var Ma=memo(Pa);var wo="os-shared-FieldFeedback",ie={root:`${wo}-root`,icon:`${wo}-icon`,message:`${wo}-message`};var za=({severity:e="error",...o})=>{let t=useTheme(),{warning:r,error:a}=t.v2.palette,s=e==="warning"?r[500]:a[500];return jsx(ro,{sx:{width:12,height:12},...o,children:jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M6 12C9.30838 12 12 9.30838 12 6C12 2.69162 9.30838 -2.35309e-07 6 -5.24537e-07C2.69162 -8.13764e-07 8.13764e-07 2.69162 5.24537e-07 6C2.35309e-07 9.30838 2.69162 12 6 12ZM6 11.1C3.17801 11.1 0.9 8.82198 0.9 6C0.9 3.17802 3.17802 0.899999 6 0.899999C8.82199 0.899999 11.1 3.17802 11.1 6C11.1 8.82198 8.82198 11.1 6 11.1ZM6 9C6.15913 9 6.31174 8.93679 6.42426 8.82426C6.53679 8.71174 6.6 8.55913 6.6 8.4C6.6 8.24087 6.53679 8.08826 6.42426 7.97574C6.31174 7.86321 6.15913 7.8 6 7.8C5.84087 7.8 5.68826 7.86321 5.57574 7.97574C5.46321 8.08826 5.4 8.24087 5.4 8.4C5.4 8.55913 5.46321 8.71174 5.57574 8.82426C5.68826 8.93679 5.84087 9 6 9ZM6.00703 6.90644C6.12628 6.90458 6.23991 6.85546 6.32296 6.76988C6.40602 6.6843 6.45171 6.56925 6.45 6.45L6.45 3.15C6.45084 3.09037 6.43983 3.03116 6.41759 2.97583C6.39535 2.92049 6.36234 2.87013 6.32047 2.82766C6.2786 2.7852 6.22871 2.75148 6.17369 2.72846C6.11868 2.70544 6.05964 2.69359 6 2.69359C5.94036 2.69359 5.88132 2.70544 5.82631 2.72846C5.77129 2.75148 5.7214 2.7852 5.67953 2.82766C5.63766 2.87013 5.60465 2.92049 5.58241 2.97583C5.56017 3.03116 5.54916 3.09037 5.55 3.15L5.55 6.45C5.54914 6.51023 5.56037 6.57002 5.58304 6.62583C5.60571 6.68163 5.63935 6.73232 5.68197 6.77489C5.72459 6.81745 5.77533 6.85103 5.83116 6.87363C5.887 6.89623 5.9468 6.90739 6.00703 6.90644Z",fill:s})})})},Ra=e=>{let{v2:o}=useTheme(),{success:t}=o.palette;return jsx(ro,{sx:{width:12,height:12},...e,children:jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:t[700]})})})},Da=()=>jsx("svg",{width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:jsx("path",{d:"M6 7.5V5.5M6 3.5H6.005M11 5.5C11 8.26142 8.76142 10.5 6 10.5C3.23858 10.5 1 8.26142 1 5.5C1 2.73858 3.23858 0.5 6 0.5C8.76142 0.5 11 2.73858 11 5.5Z",stroke:"currentColor",strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})});function Qe(e,o){let t=o??"error",{brand:r,success:a,error:s,status:i}=e.v2.palette;switch(t){case "warning":return {borderColor:i.warning.subtle,backgroundColor:i.warning.subtle,textColor:i.warning.default};case "success":return {borderColor:alpha(a[700],.15),backgroundColor:alpha(a[700],.15),textColor:a[700]};case "info":return {borderColor:alpha(r[500],.12),backgroundColor:alpha(r[500],.12),textColor:r[500]};case "error":return {borderColor:alpha(s[500],.15),backgroundColor:alpha(s[500],.15),textColor:s[500]};default:return t}}var Aa=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:o})=>{let{backgroundColor:t,textColor:r}=Qe(e,o);return {display:"flex",alignItems:"flex-start",gap:e.v2.spacing(4),minHeight:"32px",padding:`${e.v2.spacing(8)} ${e.v2.spacing(12)}`,background:t,color:r,borderRadius:`0 0 ${e.v2.radius(4)} ${e.v2.radius(4)}`}}),Ea=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:o})=>{let{textColor:t}=Qe(e,o);return {fontSize:"10px",lineHeight:"16px",display:"block",color:t,wordBreak:"break-word"}}),Wa=styled("span")({width:12,height:12,flexShrink:0,marginTop:"2px",display:"inline-flex",alignItems:"center",justifyContent:"center","& svg":{width:12,height:12,display:"block"}});function zl(e){switch(e){case "success":return jsx(Ra,{});case "info":return jsx(Da,{});case "error":case "warning":return jsx(za,{severity:e})}}var Ha=forwardRef(({type:e="error",message:o,icon:t,className:r,sx:a},s)=>{if(!Wb(o))return null;let i=e;return jsxs(Aa,{ref:s,"data-testid":"FieldFeedback",className:Hb(ie.root,r),sx:a,$feedbackType:i,children:[t??jsx(Wa,{className:ie.icon,children:zl(i)}),jsx(Ea,{className:ie.message,$feedbackType:i,children:o})]})});Ha.displayName="FieldFeedback";var Va=memo(Ha);var Dl="os-shared-ScrollLoader",eo={root:`${Dl}-root`};var Oa=styled(Al)({overflow:"auto",height:"100%",maxHeight:"100%"});function Io(e,o=50){return e.scrollHeight-(e.scrollTop+e.clientHeight)<=o}var _a=forwardRef(({loadMoreItems:e,hasMore:o,isLoading:t=false,isFetchingNextPage:r,children:a,className:s,sx:i,id:n,...p},d)=>{let[c,f]=useState(false),u=useRef(e),y=useRef(null);u.current=e;let m=useCallback(()=>{o&&!r&&u.current();},[o,r]),h=useCallback(()=>{let g=y.current;g&&Io(g)&&m();},[m]);return useEffect(()=>{let g=y.current;if(g)return g.addEventListener("scroll",h),()=>g.removeEventListener("scroll",h)},[h]),useEffect(()=>{let g=y.current;if(!g||t||c)return;let k=window.setTimeout(()=>{f(true),Io(g)&&m();},1e3);return ()=>window.clearTimeout(k)},[t,m,c]),jsx(Oa,{ref:g=>{y.current=g,typeof d=="function"?d(g):d&&(d.current=g);},id:n,"data-testid":"ScrollLoader",className:Hb(eo.root,s),sx:i,...p,children:a})});_a.displayName="ScrollLoader";var Ga=memo(_a);
2
2
  export{ie as $,Ve as A,jt as B,R as C,Jt as D,Q as E,sr as F,$ as G,gr as H,D as I,br as J,x as K,Mr as L,te as M,Ar as N,P as O,Yr as P,ye as Q,ta as R,A as S,da as T,G as U,Ca as V,se as W,So as X,Ba as Y,Xe as Z,Ma as _,T as a,Qe as aa,Eo as b,Va as ba,Ne as c,eo as ca,Vo as d,Ga as da,V as e,Xo as f,we as g,Qo as h,ke as i,tt as j,Be as k,pt as l,O as m,gt as n,w as o,vt as p,Fe as q,kt as r,ze as s,Pt as t,Ae as u,Ft as v,Ee as w,Dt as x,We as y,Vt as z};
@@ -1 +1 @@
1
- import {f as f$1,aa}from'./chunk-LLM6NHYM.js';import {Sc,A as A$1}from'./chunk-VRGBJY4Q.js';import {forwardRef}from'react';import r from'@mui/material/Box';import oe from'@mui/material/CircularProgress';import ne from'@mui/material/SvgIcon';import J from'@mui/material/Button';import K from'@mui/material/FormControl';import Q from'@mui/material/Input';import v from'@mui/material/ListSubheader';import U from'@mui/material/MenuItem';import X from'@mui/material/Select';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var n="os-shared-Select",u={root:`${n}-root`,field:`${n}-field`,menu:`${n}-menu`,option:`${n}-option`,clear:`${n}-clear`,feedback:`${n}-feedback`,values:`${n}-values`,value:`${n}-value`,valueOverflow:`${n}-valueOverflow`,search:`${n}-search`,summary:`${n}-summary`},le="Search",ae=8,de=8,l=28,a=36,o=17,se=4,z=256,W=272,B=293,pe=8,E={bottom:"bottom",top:"top"},ce=E.bottom,h={start:"start",end:"end"},xe=h.start,R=48,O=1,G=R-2*O,D=8,ge=10,j=13,N=D+j,Z=4,q=6,ue=G-N-Z-q,S=8,f=4,b=f,c=8,x=16,y=8,g=4,he=g+x+y,me=g+c+b;var Fe={maxHeight:z,[`&:has(.${u.search})`]:{maxHeight:`${W}px !important`},[`&:has(.${u.search}):has(.${u.summary})`]:{maxHeight:`${B}px !important`}},ke=styled(r)({width:"100%",display:"flex",flexDirection:"column"}),$e=styled(r)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1),width:"100%",minWidth:0})),Le=styled(f$1,{shouldForwardProp:e=>e!=="$mutedRect"})(({$mutedRect:e})=>({padding:0,pointerEvents:"none",...e&&{opacity:.5}})),A="#F8F8F8",ze=styled(U,{shouldForwardProp:e=>e!=="$selected"&&e!=="$hidden"})(({theme:e,$selected:i,$hidden:s})=>({fontSize:"12px",fontWeight:500,lineHeight:"16px",display:"flex",alignItems:"center",justifyContent:"space-between",gap:e.spacing(1),minHeight:l,height:"auto",flexShrink:0,padding:"6px 8px",overflow:"hidden",[e.breakpoints.up("sm")]:{minHeight:l},boxSizing:"border-box",borderRadius:4,backgroundColor:i?A:e.palette.common.white,"&.Mui-selected, &.Mui-focusVisible, &:hover, &.Mui-selected:hover":{backgroundColor:A},"&.Mui-disabled":{opacity:.38},...s&&{display:"none !important"}})),We=styled(r,{shouldForwardProp:e=>e!=="$customLayout"})(({$customLayout:e})=>({flex:1,minWidth:0,display:"flex",alignItems:e?"flex-start":"center",alignSelf:e?"stretch":void 0,height:e?"auto":void 0,overflow:e?"visible":"hidden",lineHeight:"16px"})),Be=styled("span")({display:"block",minWidth:0,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"12px",fontWeight:500,lineHeight:"16px"}),Ae=styled(r,{shouldForwardProp:e=>e!=="$valueAlignment"})(({$valueAlignment:e})=>{let i=e===h.end;return {display:"flex",flexWrap:"nowrap",alignItems:"center",justifyContent:i?"flex-end":"flex-start",width:"100%",minWidth:0,maxWidth:"100%",overflow:"hidden",boxSizing:"border-box",pointerEvents:"none",textAlign:i?"end":"start"}}),Te=styled(r)(({theme:e})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"0 1 auto",maxWidth:"100%",fontWeight:500,fontSize:11,lineHeight:"130%",letterSpacing:0,color:e.v2.palette.base.black,textAlign:"start"})),Ve=styled(r)({flex:"0 0 auto",whiteSpace:"nowrap",marginLeft:4,fontWeight:500,fontSize:11,lineHeight:"130%",letterSpacing:0,color:"var(--fg-brand, rgba(31, 136, 208, 1))"}),Y=styled(v)(({theme:e})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",height:a,minHeight:a,maxHeight:a,padding:0,lineHeight:1,overflow:"hidden",flexShrink:0,position:"sticky",top:0,zIndex:1,"&.MuiListSubheader-root":{height:a,minHeight:a,padding:0,lineHeight:1}}));Y.muiSkipListHighlight=true;var _=styled(v)(({theme:e})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",height:l,minHeight:l,padding:0,display:"flex",alignItems:"center",fontSize:12,fontWeight:500,lineHeight:"14px",color:e.v2.palette.grey[500],flexShrink:0,"&.MuiListSubheader-root":{height:l,minHeight:l,padding:0,lineHeight:"14px"}}));_.muiSkipListHighlight=true;var Ee=styled(Q)(({theme:e})=>({width:"100%",height:a,padding:"8px 8px 8px 12px",borderRadius:4,backgroundColor:e.palette.common.white,border:`1px solid ${e.v2.palette.grey[100]}`,boxSizing:"border-box","&:hover":{borderColor:e.v2.palette.grey[100]},"&.Mui-focused":{borderColor:e.v2.palette.brand[500],boxShadow:`0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`,backgroundColor:e.palette.common.white},"&:before, &:after":{display:"none"},"& input":{padding:0,fontSize:10},"& .MuiInputBase-input":{paddingRight:4}})),T=styled("img")({width:14,height:14,flexShrink:0,display:"block"}),Re=styled(v)(({theme:e})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",display:"flex",alignItems:"center",height:o,minHeight:o,maxHeight:o,padding:0,lineHeight:`${o}px`,overflow:"hidden",flexShrink:0,"&.MuiListSubheader-root":{height:o,minHeight:o,padding:0,lineHeight:`${o}px`}})),Oe=styled(r)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box",width:"100%",height:o,minHeight:o,gap:e.spacing(1)})),Ge=styled("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontWeight:500,fontSize:11,lineHeight:`${o}px`,letterSpacing:0,color:e.v2.palette.grey[500]})),De=styled(J)(({theme:e})=>({minWidth:0,minHeight:0,height:o,padding:0,fontFamily:e.typography.fontFamily,fontWeight:500,fontStyle:"normal",fontSize:11,lineHeight:`${o}px`,letterSpacing:0,textTransform:"none",verticalAlign:"middle",color:e.v2.palette.brand[500],"&.MuiButton-root":{minWidth:0,minHeight:0,height:o,padding:0,lineHeight:`${o}px`}})),je=styled(K)(({theme:e})=>({minWidth:52,height:"40px !important",maxHeight:"40px !important",backgroundColor:"transparent",width:"100%",cursor:"pointer","& .MuiInputBase-root":{cursor:"pointer"},"& .MuiInputBase-root.Mui-disabled":{cursor:"default"},"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)",color:`${e.palette.grey[700]} !important`,height:"100%",pointerEvents:"none"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}})),Ne=styled(X,{shouldForwardProp:e=>!["feedbackType","hasFeedback","valueAlignment","hasLabel"].includes(e)})(({theme:e,error:i,feedbackType:s,hasFeedback:p,valueAlignment:V,hasLabel:w})=>{let{borderColor:I}=aa(e,s),C=p?"4px 4px 0 0":"4px",m=V===h.end,P=m?g:f,H=w?`18px ${P}px 6px ${S}px !important`:`0 ${P}px 0 ${S}px !important`;return {width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:C,overflow:"hidden",backgroundColor:e.palette.grey[400],border:"1px solid transparent",boxSizing:"border-box",transition:e.transitions.create(["border-color","box-shadow"],{duration:e.transitions.duration.shorter}),"&.Mui-focused":{border:p?`1px solid ${s?I:"transparent"}`:`1px solid ${e.v2.palette.brand[500]}`,borderBottom:p?"none":void 0,boxShadow:p?"none":`0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`,backgroundColor:e.palette.grey[400]},"&.Mui-disabled":{backgroundColor:e.palette.grey[400],boxShadow:"none",borderColor:"transparent"},".MuiSelect-select":{padding:H,height:"40px !important",maxHeight:"40px !important",display:"flex !important",alignItems:w?"flex-end !important":"center !important",justifyContent:m?"flex-end !important":"flex-start !important",textAlign:m?"end !important":"start !important",boxSizing:"border-box",overflow:"hidden",backgroundColor:`${e.palette.grey[400]} !important`,borderRadius:C,fontSize:"11px",lineHeight:"11px",cursor:"pointer",position:"relative",zIndex:0,"&:focus":{backgroundColor:`${e.palette.grey[400]} !important`}},"&.Mui-disabled .MuiSelect-select":{cursor:"default"},".MuiSelect-filled":{padding:H},"&.MuiInputBase-adornedEnd":{display:"inline-flex",alignItems:"center",backgroundColor:e.palette.grey[400],gap:0},"&&.MuiInputBase-adornedEnd .MuiInputBase-input":{flex:"1 1 0%",minWidth:0,width:"auto",maxWidth:"100%"},"& .Select-endAdornmentRoot":{display:"flex",alignItems:"center",flexShrink:0,marginRight:b,gap:g,position:"relative",zIndex:2,pointerEvents:"auto","&.Select-endAdornmentRoot--loading":{marginRight:y}},"& .Select-clearIconButton":{display:"inline-flex",alignItems:"center",justifyContent:"center",width:12,height:12,padding:0,border:"none",appearance:"none",background:"transparent",color:e.v2.palette.base.black,cursor:"pointer",flexShrink:0,lineHeight:0,position:"relative",zIndex:2,pointerEvents:"auto","& svg":{display:"block",width:8,height:8,fontSize:8},"&:focus-visible":{outline:`2px solid ${e.palette.primary.main}`,outlineOffset:1}},"&.Mui-disabled .Select-clearIconButton":{opacity:"0 !important",pointerEvents:"none"},"& .Select-menuTriggerIcon":{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:c,minWidth:c,height:c,cursor:"pointer",color:e.v2.palette.base.black,lineHeight:0,"& svg, & .MuiSvgIcon-root":{transition:e.transitions.create(["transform","color"],{duration:e.transitions.duration.shorter})},"&.Select-menuTriggerIcon--loading":{width:x,minWidth:x,height:x,cursor:"default"}},"&.Mui-focused .Select-menuTriggerIcon, & .Select-menuTriggerIcon-open":{color:e.v2.palette.brand[500]},"& .Select-menuTriggerIcon-open svg, & .Select-menuTriggerIcon-open .MuiSvgIcon-root":{transform:"rotate(180deg)"},"&.Mui-disabled .MuiSelect-icon":{color:"rgba(0, 0, 0, 0.38)"},"&.Mui-disabled .Select-menuTriggerIcon":{cursor:"default",color:"rgba(0, 0, 0, 0.38)","& svg path":{fill:"rgba(0, 0, 0, 0.38)",stroke:"rgba(0, 0, 0, 0.38)"}},...s&&{border:`1px solid ${I}`},...p&&{borderBottom:"none"},...i&&{border:`1px solid ${e.palette.error.main}`,boxShadow:"none"}}}),Ze=styled(r,{shouldForwardProp:e=>e!=="$hasFeedback"})(({theme:e,$hasFeedback:i})=>({display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1,width:"100%",cursor:"pointer",borderRadius:4,overflow:"visible",textAlign:"start",...i&&{"&:has(.MuiInputBase-root.Mui-focused)":{boxShadow:`0px 0px 0px 1px ${e.v2.palette.brand[500]}, 0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`}},"&:has(.MuiInputBase-root.Mui-disabled)":{cursor:"default"}})),qe=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block",width:"100%",textAlign:"start"}));function et(){return jsx(r,{component:"img",src:Sc,alt:"",sx:{width:10,height:7.5,flexShrink:0}})}function tt(){return jsx(T,{src:A$1,alt:""})}function ot(){return jsxs("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none","aria-hidden":true,children:[jsx("path",{d:"M1.795 1.739L6.316 6.26",stroke:"currentColor",strokeWidth:"0.875",strokeLinecap:"round"}),jsx("path",{d:"M6.316 1.739L1.795 6.26",stroke:"currentColor",strokeWidth:"0.875",strokeLinecap:"round"})]})}var ie=forwardRef((e,i)=>jsx(ne,{ref:i,viewBox:"0 0 8 5",fill:"none",fontSize:"small",sx:{width:8,height:5},...e,children:jsx("path",{d:"M7.30273 0.117188C7.3806 0.115307 7.4565 0.138248 7.52051 0.182617C7.58455 0.227088 7.63373 0.290458 7.66211 0.363281C7.69046 0.436073 7.69761 0.516047 7.68262 0.592773C7.66777 0.668745 7.63069 0.738375 7.57715 0.793945L4.17285 4.43164C4.10255 4.50662 4.00523 4.55078 3.90234 4.55078C3.79964 4.55064 3.703 4.5065 3.63281 4.43164L0.227539 0.794922L0.228516 0.793945C0.175799 0.738766 0.139848 0.669812 0.125 0.594727C0.11011 0.519097 0.116275 0.440194 0.143555 0.368164C0.170957 0.296002 0.218752 0.232474 0.28125 0.1875C0.343758 0.14262 0.418162 0.11821 0.495117 0.118164C0.546901 0.118166 0.598306 0.12907 0.645508 0.150391C0.691832 0.171346 0.733094 0.201824 0.767578 0.239258L3.90234 3.58691L7.03711 0.239258C7.10547 0.164191 7.20108 0.119752 7.30273 0.117188Z",fill:"currentColor",stroke:"currentColor",strokeWidth:.233333})}));ie.displayName="SelectChevronIcon";function nt(){return jsx(oe,{size:14,sx:{color:"text.secondary"}})}export{ot as $,y as A,g as B,he as C,me as D,Fe as E,ke as F,$e as G,Le as H,ze as I,We as J,Be as K,Ae as L,Te as M,Ve as N,Y as O,_ as P,Ee as Q,Re as R,Oe as S,Ge as T,De as U,je as V,Ne as W,Ze as X,qe as Y,et as Z,tt as _,u as a,ie as aa,le as b,nt as ba,ae as c,de as d,se as e,z as f,W as g,B as h,pe as i,E as j,ce as k,h as l,xe as m,R as n,O as o,D as p,ge as q,j as r,N as s,Z as t,q as u,ue as v,S as w,b as x,c as y,x as z};
1
+ import {f as f$1,aa}from'./chunk-6ZPNLCMN.js';import {Sc,A as A$1}from'./chunk-VRGBJY4Q.js';import {forwardRef}from'react';import r from'@mui/material/Box';import oe from'@mui/material/CircularProgress';import ne from'@mui/material/SvgIcon';import J from'@mui/material/Button';import K from'@mui/material/FormControl';import Q from'@mui/material/Input';import v from'@mui/material/ListSubheader';import U from'@mui/material/MenuItem';import X from'@mui/material/Select';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var n="os-shared-Select",u={root:`${n}-root`,field:`${n}-field`,menu:`${n}-menu`,option:`${n}-option`,clear:`${n}-clear`,feedback:`${n}-feedback`,values:`${n}-values`,value:`${n}-value`,valueOverflow:`${n}-valueOverflow`,search:`${n}-search`,summary:`${n}-summary`},le="Search",ae=8,de=8,l=28,a=36,o=17,se=4,z=256,W=272,B=293,pe=8,E={bottom:"bottom",top:"top"},ce=E.bottom,h={start:"start",end:"end"},xe=h.start,R=48,O=1,G=R-2*O,D=8,ge=10,j=13,N=D+j,Z=4,q=6,ue=G-N-Z-q,S=8,f=4,b=f,c=8,x=16,y=8,g=4,he=g+x+y,me=g+c+b;var Fe={maxHeight:z,[`&:has(.${u.search})`]:{maxHeight:`${W}px !important`},[`&:has(.${u.search}):has(.${u.summary})`]:{maxHeight:`${B}px !important`}},ke=styled(r)({width:"100%",display:"flex",flexDirection:"column"}),$e=styled(r)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1),width:"100%",minWidth:0})),Le=styled(f$1,{shouldForwardProp:e=>e!=="$mutedRect"})(({$mutedRect:e})=>({padding:0,pointerEvents:"none",...e&&{opacity:.5}})),A="#F8F8F8",ze=styled(U,{shouldForwardProp:e=>e!=="$selected"&&e!=="$hidden"})(({theme:e,$selected:i,$hidden:s})=>({fontSize:"12px",fontWeight:500,lineHeight:"16px",display:"flex",alignItems:"center",justifyContent:"space-between",gap:e.spacing(1),minHeight:l,height:"auto",flexShrink:0,padding:"6px 8px",overflow:"hidden",[e.breakpoints.up("sm")]:{minHeight:l},boxSizing:"border-box",borderRadius:4,backgroundColor:i?A:e.palette.common.white,"&.Mui-selected, &.Mui-focusVisible, &:hover, &.Mui-selected:hover":{backgroundColor:A},"&.Mui-disabled":{opacity:.38},...s&&{display:"none !important"}})),We=styled(r,{shouldForwardProp:e=>e!=="$customLayout"})(({$customLayout:e})=>({flex:1,minWidth:0,display:"flex",alignItems:e?"flex-start":"center",alignSelf:e?"stretch":void 0,height:e?"auto":void 0,overflow:e?"visible":"hidden",lineHeight:"16px"})),Be=styled("span")({display:"block",minWidth:0,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"12px",fontWeight:500,lineHeight:"16px"}),Ae=styled(r,{shouldForwardProp:e=>e!=="$valueAlignment"})(({$valueAlignment:e})=>{let i=e===h.end;return {display:"flex",flexWrap:"nowrap",alignItems:"center",justifyContent:i?"flex-end":"flex-start",width:"100%",minWidth:0,maxWidth:"100%",overflow:"hidden",boxSizing:"border-box",pointerEvents:"none",textAlign:i?"end":"start"}}),Te=styled(r)(({theme:e})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"0 1 auto",maxWidth:"100%",fontWeight:500,fontSize:11,lineHeight:"130%",letterSpacing:0,color:e.v2.palette.base.black,textAlign:"start"})),Ve=styled(r)({flex:"0 0 auto",whiteSpace:"nowrap",marginLeft:4,fontWeight:500,fontSize:11,lineHeight:"130%",letterSpacing:0,color:"var(--fg-brand, rgba(31, 136, 208, 1))"}),Y=styled(v)(({theme:e})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",height:a,minHeight:a,maxHeight:a,padding:0,lineHeight:1,overflow:"hidden",flexShrink:0,position:"sticky",top:0,zIndex:1,"&.MuiListSubheader-root":{height:a,minHeight:a,padding:0,lineHeight:1}}));Y.muiSkipListHighlight=true;var _=styled(v)(({theme:e})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",height:l,minHeight:l,padding:0,display:"flex",alignItems:"center",fontSize:12,fontWeight:500,lineHeight:"14px",color:e.v2.palette.grey[500],flexShrink:0,"&.MuiListSubheader-root":{height:l,minHeight:l,padding:0,lineHeight:"14px"}}));_.muiSkipListHighlight=true;var Ee=styled(Q)(({theme:e})=>({width:"100%",height:a,padding:"8px 8px 8px 12px",borderRadius:4,backgroundColor:e.palette.common.white,border:`1px solid ${e.v2.palette.grey[100]}`,boxSizing:"border-box","&:hover":{borderColor:e.v2.palette.grey[100]},"&.Mui-focused":{borderColor:e.v2.palette.brand[500],boxShadow:`0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`,backgroundColor:e.palette.common.white},"&:before, &:after":{display:"none"},"& input":{padding:0,fontSize:10},"& .MuiInputBase-input":{paddingRight:4}})),T=styled("img")({width:14,height:14,flexShrink:0,display:"block"}),Re=styled(v)(({theme:e})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",display:"flex",alignItems:"center",height:o,minHeight:o,maxHeight:o,padding:0,lineHeight:`${o}px`,overflow:"hidden",flexShrink:0,"&.MuiListSubheader-root":{height:o,minHeight:o,padding:0,lineHeight:`${o}px`}})),Oe=styled(r)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box",width:"100%",height:o,minHeight:o,gap:e.spacing(1)})),Ge=styled("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontWeight:500,fontSize:11,lineHeight:`${o}px`,letterSpacing:0,color:e.v2.palette.grey[500]})),De=styled(J)(({theme:e})=>({minWidth:0,minHeight:0,height:o,padding:0,fontFamily:e.typography.fontFamily,fontWeight:500,fontStyle:"normal",fontSize:11,lineHeight:`${o}px`,letterSpacing:0,textTransform:"none",verticalAlign:"middle",color:e.v2.palette.brand[500],"&.MuiButton-root":{minWidth:0,minHeight:0,height:o,padding:0,lineHeight:`${o}px`}})),je=styled(K)(({theme:e})=>({minWidth:52,height:"40px !important",maxHeight:"40px !important",backgroundColor:"transparent",width:"100%",cursor:"pointer","& .MuiInputBase-root":{cursor:"pointer"},"& .MuiInputBase-root.Mui-disabled":{cursor:"default"},"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)",color:`${e.palette.grey[700]} !important`,height:"100%",pointerEvents:"none"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}})),Ne=styled(X,{shouldForwardProp:e=>!["feedbackType","hasFeedback","valueAlignment","hasLabel"].includes(e)})(({theme:e,error:i,feedbackType:s,hasFeedback:p,valueAlignment:V,hasLabel:w})=>{let{borderColor:I}=aa(e,s),C=p?"4px 4px 0 0":"4px",m=V===h.end,P=m?g:f,H=w?`18px ${P}px 6px ${S}px !important`:`0 ${P}px 0 ${S}px !important`;return {width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:C,overflow:"hidden",backgroundColor:e.palette.grey[400],border:"1px solid transparent",boxSizing:"border-box",transition:e.transitions.create(["border-color","box-shadow"],{duration:e.transitions.duration.shorter}),"&.Mui-focused":{border:p?`1px solid ${s?I:"transparent"}`:`1px solid ${e.v2.palette.brand[500]}`,borderBottom:p?"none":void 0,boxShadow:p?"none":`0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`,backgroundColor:e.palette.grey[400]},"&.Mui-disabled":{backgroundColor:e.palette.grey[400],boxShadow:"none",borderColor:"transparent"},".MuiSelect-select":{padding:H,height:"40px !important",maxHeight:"40px !important",display:"flex !important",alignItems:w?"flex-end !important":"center !important",justifyContent:m?"flex-end !important":"flex-start !important",textAlign:m?"end !important":"start !important",boxSizing:"border-box",overflow:"hidden",backgroundColor:`${e.palette.grey[400]} !important`,borderRadius:C,fontSize:"11px",lineHeight:"11px",cursor:"pointer",position:"relative",zIndex:0,"&:focus":{backgroundColor:`${e.palette.grey[400]} !important`}},"&.Mui-disabled .MuiSelect-select":{cursor:"default"},".MuiSelect-filled":{padding:H},"&.MuiInputBase-adornedEnd":{display:"inline-flex",alignItems:"center",backgroundColor:e.palette.grey[400],gap:0},"&&.MuiInputBase-adornedEnd .MuiInputBase-input":{flex:"1 1 0%",minWidth:0,width:"auto",maxWidth:"100%"},"& .Select-endAdornmentRoot":{display:"flex",alignItems:"center",flexShrink:0,marginRight:b,gap:g,position:"relative",zIndex:2,pointerEvents:"auto","&.Select-endAdornmentRoot--loading":{marginRight:y}},"& .Select-clearIconButton":{display:"inline-flex",alignItems:"center",justifyContent:"center",width:12,height:12,padding:0,border:"none",appearance:"none",background:"transparent",color:e.v2.palette.base.black,cursor:"pointer",flexShrink:0,lineHeight:0,position:"relative",zIndex:2,pointerEvents:"auto","& svg":{display:"block",width:8,height:8,fontSize:8},"&:focus-visible":{outline:`2px solid ${e.palette.primary.main}`,outlineOffset:1}},"&.Mui-disabled .Select-clearIconButton":{opacity:"0 !important",pointerEvents:"none"},"& .Select-menuTriggerIcon":{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:c,minWidth:c,height:c,cursor:"pointer",color:e.v2.palette.base.black,lineHeight:0,"& svg, & .MuiSvgIcon-root":{transition:e.transitions.create(["transform","color"],{duration:e.transitions.duration.shorter})},"&.Select-menuTriggerIcon--loading":{width:x,minWidth:x,height:x,cursor:"default"}},"&.Mui-focused .Select-menuTriggerIcon, & .Select-menuTriggerIcon-open":{color:e.v2.palette.brand[500]},"& .Select-menuTriggerIcon-open svg, & .Select-menuTriggerIcon-open .MuiSvgIcon-root":{transform:"rotate(180deg)"},"&.Mui-disabled .MuiSelect-icon":{color:"rgba(0, 0, 0, 0.38)"},"&.Mui-disabled .Select-menuTriggerIcon":{cursor:"default",color:"rgba(0, 0, 0, 0.38)","& svg path":{fill:"rgba(0, 0, 0, 0.38)",stroke:"rgba(0, 0, 0, 0.38)"}},...s&&{border:`1px solid ${I}`},...p&&{borderBottom:"none"},...i&&{border:`1px solid ${e.palette.error.main}`,boxShadow:"none"}}}),Ze=styled(r,{shouldForwardProp:e=>e!=="$hasFeedback"})(({theme:e,$hasFeedback:i})=>({display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1,width:"100%",cursor:"pointer",borderRadius:4,overflow:"visible",textAlign:"start",...i&&{"&:has(.MuiInputBase-root.Mui-focused)":{boxShadow:`0px 0px 0px 1px ${e.v2.palette.brand[500]}, 0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`}},"&:has(.MuiInputBase-root.Mui-disabled)":{cursor:"default"}})),qe=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block",width:"100%",textAlign:"start"}));function et(){return jsx(r,{component:"img",src:Sc,alt:"",sx:{width:10,height:7.5,flexShrink:0}})}function tt(){return jsx(T,{src:A$1,alt:""})}function ot(){return jsxs("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none","aria-hidden":true,children:[jsx("path",{d:"M1.795 1.739L6.316 6.26",stroke:"currentColor",strokeWidth:"0.875",strokeLinecap:"round"}),jsx("path",{d:"M6.316 1.739L1.795 6.26",stroke:"currentColor",strokeWidth:"0.875",strokeLinecap:"round"})]})}var ie=forwardRef((e,i)=>jsx(ne,{ref:i,viewBox:"0 0 8 5",fill:"none",fontSize:"small",sx:{width:8,height:5},...e,children:jsx("path",{d:"M7.30273 0.117188C7.3806 0.115307 7.4565 0.138248 7.52051 0.182617C7.58455 0.227088 7.63373 0.290458 7.66211 0.363281C7.69046 0.436073 7.69761 0.516047 7.68262 0.592773C7.66777 0.668745 7.63069 0.738375 7.57715 0.793945L4.17285 4.43164C4.10255 4.50662 4.00523 4.55078 3.90234 4.55078C3.79964 4.55064 3.703 4.5065 3.63281 4.43164L0.227539 0.794922L0.228516 0.793945C0.175799 0.738766 0.139848 0.669812 0.125 0.594727C0.11011 0.519097 0.116275 0.440194 0.143555 0.368164C0.170957 0.296002 0.218752 0.232474 0.28125 0.1875C0.343758 0.14262 0.418162 0.11821 0.495117 0.118164C0.546901 0.118166 0.598306 0.12907 0.645508 0.150391C0.691832 0.171346 0.733094 0.201824 0.767578 0.239258L3.90234 3.58691L7.03711 0.239258C7.10547 0.164191 7.20108 0.119752 7.30273 0.117188Z",fill:"currentColor",stroke:"currentColor",strokeWidth:.233333})}));ie.displayName="SelectChevronIcon";function nt(){return jsx(oe,{size:14,sx:{color:"text.secondary"}})}export{ot as $,y as A,g as B,he as C,me as D,Fe as E,ke as F,$e as G,Le as H,ze as I,We as J,Be as K,Ae as L,Te as M,Ve as N,Y as O,_ as P,Ee as Q,Re as R,Oe as S,Ge as T,De as U,je as V,Ne as W,Ze as X,qe as Y,et as Z,tt as _,u as a,ie as aa,le as b,nt as ba,ae as c,de as d,se as e,z as f,W as g,B as h,pe as i,E as j,ce as k,h as l,xe as m,R as n,O as o,D as p,ge as q,j as r,N as s,Z as t,q as u,ue as v,S as w,b as x,c as y,x as z};
@@ -1 +1 @@
1
- import {Hb}from'./chunk-6HNOCQKM.js';import {forwardRef,useState,useCallback,memo}from'react';import m from'@mui/material/Box';import {styled}from'@mui/material/styles';import {motion}from'framer-motion';import {jsx,jsxs}from'react/jsx-runtime';var o="os-shared-FlipCard",t={root:`${o}-root`,container:`${o}-container`,inner:`${o}-inner`,front:`${o}-front`,back:`${o}-back`,faceContent:`${o}-faceContent`},h=.3;var D=styled(m,{shouldForwardProp:e=>e!=="$interactive"})(({$interactive:e})=>({width:"100%",height:"100%",cursor:e?"pointer":void 0})),I=styled(m)(()=>({width:"inherit",height:"inherit",perspective:"1000px"})),b=styled(motion.div)(()=>({width:"100%",height:"100%",position:"relative",transformStyle:"preserve-3d"})),u=styled(m,{shouldForwardProp:e=>e!=="$side"&&e!=="$direction"})(({$side:e,$direction:y})=>({position:"absolute",backfaceVisibility:"hidden",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",...e==="back"&&{transform:y==="vertical"?"rotateX(180deg)":"rotateY(180deg)"}})),v=styled(m)(()=>({width:"100%",height:"100%"}));var T=forwardRef(function({front:y,back:w,isFlipped:S,defaultFlipped:L=false,onFlip:N,direction:s="horizontal",trigger:P,duration:A=h,disabled:a=false,id:k,className:R,sx:l,"data-testid":M,...c},U){let p=S!==void 0,r=P??(p?void 0:"click"),[_,K]=useState(L),C=p?S:_,f=useCallback(i=>{a||(p||K(i),N?.(i));},[a,p,N]),$=useCallback(()=>{f(!C);},[C,f]),O=()=>{r==="click"&&$();},H=()=>{r==="hover"&&f(true);},X=()=>{r==="hover"&&f(false);},F=!a&&r==="click",Y=i=>{F&&(i.key!=="Enter"&&i.key!==" "||(i.preventDefault(),$()));},g=C?180:0,j=s==="vertical"?{rotateX:g}:{rotateY:g},z=!a&&(r==="click"||r==="hover"),B=a?[{pointerEvents:"none",opacity:.6},...Array.isArray(l)?l:l?[l]:[]]:l;return jsx(D,{...c,ref:U,id:k,"data-testid":M??k??"FlipCard","data-direction":s,className:Hb(t.root,R),$interactive:z,role:F?"button":c.role,tabIndex:F?a?-1:0:c.tabIndex,"aria-pressed":F?C:c["aria-pressed"],onClick:O,onKeyDown:Y,onMouseEnter:r==="hover"?H:void 0,onMouseLeave:r==="hover"?X:void 0,sx:B,children:jsx(I,{className:t.container,children:jsxs(b,{className:t.inner,animate:j,transition:{duration:A},children:[jsx(u,{className:t.front,$side:"front",$direction:s,children:jsx(v,{className:t.faceContent,children:y})}),jsx(u,{className:t.back,$side:"back",$direction:s,children:jsx(v,{className:t.faceContent,children:w})})]})})})});T.displayName="FlipCard";var Q=memo(T);export{o as a,t as b,h as c,Q as d};
1
+ import {Hb}from'./chunk-MMXWSV6V.js';import {forwardRef,useState,useCallback,memo}from'react';import m from'@mui/material/Box';import {styled}from'@mui/material/styles';import {motion}from'framer-motion';import {jsx,jsxs}from'react/jsx-runtime';var o="os-shared-FlipCard",t={root:`${o}-root`,container:`${o}-container`,inner:`${o}-inner`,front:`${o}-front`,back:`${o}-back`,faceContent:`${o}-faceContent`},h=.3;var D=styled(m,{shouldForwardProp:e=>e!=="$interactive"})(({$interactive:e})=>({width:"100%",height:"100%",cursor:e?"pointer":void 0})),I=styled(m)(()=>({width:"inherit",height:"inherit",perspective:"1000px"})),b=styled(motion.div)(()=>({width:"100%",height:"100%",position:"relative",transformStyle:"preserve-3d"})),u=styled(m,{shouldForwardProp:e=>e!=="$side"&&e!=="$direction"})(({$side:e,$direction:y})=>({position:"absolute",backfaceVisibility:"hidden",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",...e==="back"&&{transform:y==="vertical"?"rotateX(180deg)":"rotateY(180deg)"}})),v=styled(m)(()=>({width:"100%",height:"100%"}));var T=forwardRef(function({front:y,back:w,isFlipped:S,defaultFlipped:L=false,onFlip:N,direction:s="horizontal",trigger:P,duration:A=h,disabled:a=false,id:k,className:R,sx:l,"data-testid":M,...c},U){let p=S!==void 0,r=P??(p?void 0:"click"),[_,K]=useState(L),C=p?S:_,f=useCallback(i=>{a||(p||K(i),N?.(i));},[a,p,N]),$=useCallback(()=>{f(!C);},[C,f]),O=()=>{r==="click"&&$();},H=()=>{r==="hover"&&f(true);},X=()=>{r==="hover"&&f(false);},F=!a&&r==="click",Y=i=>{F&&(i.key!=="Enter"&&i.key!==" "||(i.preventDefault(),$()));},g=C?180:0,j=s==="vertical"?{rotateX:g}:{rotateY:g},z=!a&&(r==="click"||r==="hover"),B=a?[{pointerEvents:"none",opacity:.6},...Array.isArray(l)?l:l?[l]:[]]:l;return jsx(D,{...c,ref:U,id:k,"data-testid":M??k??"FlipCard","data-direction":s,className:Hb(t.root,R),$interactive:z,role:F?"button":c.role,tabIndex:F?a?-1:0:c.tabIndex,"aria-pressed":F?C:c["aria-pressed"],onClick:O,onKeyDown:Y,onMouseEnter:r==="hover"?H:void 0,onMouseLeave:r==="hover"?X:void 0,sx:B,children:jsx(I,{className:t.container,children:jsxs(b,{className:t.inner,animate:j,transition:{duration:A},children:[jsx(u,{className:t.front,$side:"front",$direction:s,children:jsx(v,{className:t.faceContent,children:y})}),jsx(u,{className:t.back,$side:"back",$direction:s,children:jsx(v,{className:t.faceContent,children:w})})]})})})});T.displayName="FlipCard";var Q=memo(T);export{o as a,t as b,h as c,Q as d};
@@ -1 +1 @@
1
- import {j}from'./chunk-LLM6NHYM.js';import {Hb}from'./chunk-6HNOCQKM.js';import {forwardRef,memo}from'react';import C from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var p="os-shared-Card",o={root:`${p}-root`,header:`${p}-header`,title:`${p}-title`},n=233,f=39;var c=styled(C)(({theme:r})=>{let{grey:e}=r.v2.palette;return {display:"flex",flexDirection:"column",height:n,border:`1px solid ${e[100]}`,borderRadius:r.v2.radius(8),backgroundColor:"#FBFBFB",fontSize:r.v2.typography.textVariants.body.small.regular.fontSize,transform:"scale(1)"}}),y=styled(C,{shouldForwardProp:r=>r!=="$hasStartAdornment"})(({theme:r,$hasStartAdornment:e})=>({display:"flex",alignItems:"center",...e&&{gap:r.v2.spacing(8)},height:f,flexShrink:0,overflow:"visible",padding:`${r.v2.spacing(8)} ${r.v2.spacing(12)}`,borderBottom:`1px solid ${r.v2.palette.grey[100]}`})),x=styled(j)(({theme:r})=>({flexGrow:1,minWidth:0,color:r.v2.palette.grey[900],textTransform:"capitalize"}));var H=forwardRef(({id:r,className:e,sx:d,children:s,...a},l)=>jsx(c,{ref:l,component:"article",id:r,"data-testid":r??"Card",...a,className:Hb(o.root,e),sx:d,children:s}));H.displayName="Card";var v=memo(H);var g=forwardRef(({id:r,className:e,sx:d,children:s,startAdornment:a,endAdornment:l,...S},N)=>jsxs(y,{ref:N,component:"header",id:r,"data-testid":r??"CardHeader",...S,$hasStartAdornment:a!=null,className:Hb(o.header,e),sx:d,children:[a,jsx(x,{component:"div",textVariant:"body.small.semibold",className:o.title,children:s}),l]}));g.displayName="CardHeader";var T=memo(g);export{o as a,v as b,T as c};
1
+ import {j}from'./chunk-6ZPNLCMN.js';import {Hb}from'./chunk-MMXWSV6V.js';import {forwardRef,memo}from'react';import C from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var p="os-shared-Card",o={root:`${p}-root`,header:`${p}-header`,title:`${p}-title`},n=233,f=39;var c=styled(C)(({theme:r})=>{let{grey:e}=r.v2.palette;return {display:"flex",flexDirection:"column",height:n,border:`1px solid ${e[100]}`,borderRadius:r.v2.radius(8),backgroundColor:"#FBFBFB",fontSize:r.v2.typography.textVariants.body.small.regular.fontSize,transform:"scale(1)"}}),y=styled(C,{shouldForwardProp:r=>r!=="$hasStartAdornment"})(({theme:r,$hasStartAdornment:e})=>({display:"flex",alignItems:"center",...e&&{gap:r.v2.spacing(8)},height:f,flexShrink:0,overflow:"visible",padding:`${r.v2.spacing(8)} ${r.v2.spacing(12)}`,borderBottom:`1px solid ${r.v2.palette.grey[100]}`})),x=styled(j)(({theme:r})=>({flexGrow:1,minWidth:0,color:r.v2.palette.grey[900],textTransform:"capitalize"}));var H=forwardRef(({id:r,className:e,sx:d,children:s,...a},l)=>jsx(c,{ref:l,component:"article",id:r,"data-testid":r??"Card",...a,className:Hb(o.root,e),sx:d,children:s}));H.displayName="Card";var v=memo(H);var g=forwardRef(({id:r,className:e,sx:d,children:s,startAdornment:a,endAdornment:l,...S},N)=>jsxs(y,{ref:N,component:"header",id:r,"data-testid":r??"CardHeader",...S,$hasStartAdornment:a!=null,className:Hb(o.header,e),sx:d,children:[a,jsx(x,{component:"div",textVariant:"body.small.semibold",className:o.title,children:s}),l]}));g.displayName="CardHeader";var T=memo(g);export{o as a,v as b,T as c};
@@ -1 +1 @@
1
- import {b}from'./chunk-2JVB4CBT.js';import {b as b$1}from'./chunk-I5DP4JJP.js';import {j,a}from'./chunk-IKGDJDP5.js';import {R,B as B$1,x,h}from'./chunk-LLM6NHYM.js';import {Ib,Jb,Vb}from'./chunk-6HNOCQKM.js';import {m}from'./chunk-53X3U5WT.js';import {Xc,Yc,Wj,Xj,Yj,fc,gc,Zj,ec}from'./chunk-VRGBJY4Q.js';import {memo,forwardRef,useState,useMemo,useRef,useId,useEffect,useCallback}from'react';import S from'@mui/material/Box';import bt from'@mui/material/Popper';import It from'dayjs';import {useTranslation}from'react-i18next';import {Calendar,DateObject}from'react-multi-date-picker';import Ko from'@mui/material/ClickAwayListener';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';import he from'@mui/material/Button';import q from'react-date-object';import ot from'react-date-object/calendars/arabic';import tt from'react-date-object/calendars/gregorian';import rt from'react-date-object/locales/arabic_ar';import nt from'react-date-object/locales/arabic_en';import it from'react-date-object/locales/gregorian_ar';import at from'react-date-object/locales/gregorian_en';var Ne=styled(S)(({theme:e})=>({color:e.palette.grey[700],fontSize:"9px",fontWeight:500,marginBottom:"6px"})),Ke=styled(S,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:o})=>({borderRadius:"4px",border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,height:32,padding:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",...o&&{border:`1px solid ${e.palette.info.dark}`,background:e.palette.common.white,boxShadow:e.shadows[7]}})),_e=styled(S)(({theme:e})=>({borderRadius:"8px",background:e.palette.common.white,boxShadow:"0px 8px 36px 0px rgba(0, 0, 0, 0.15)",textAlign:"center",color:e.palette.grey[900],fontSize:"12px",fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px",padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"12px",flexDirection:"column"})),qe=styled(S)(({theme:e})=>({width:71,padding:"4px 0",cursor:"pointer","&:hover, &.active":{borderRadius:"100px",background:e.palette.info.light}}));var Xe={day:"Day",month:"Month",quarter:"Quarter",year:"Year"};function qo({sx:e,groupBy:o,isCalenderOpen:i,onUpdate:t}){let[n,p]=useState(null),m=!!n&&i,{t:s}=useTranslation(),c=()=>{p(null);},u=d=>{p(d.currentTarget);},l=d=>{t?.(d),c();};return jsx(Ko,{onClickAway:c,children:jsxs(S,{sx:e,children:[jsx(Ne,{children:s("groupedBy")}),jsxs(Ke,{onClick:u,open:m,children:[jsx("span",{children:Xe[o]}),jsx(S,{component:"img",src:Yc,alt:"arrow",sx:{...m&&{transform:"rotate(180deg)"}}})]}),jsx(R,{open:m,anchorEl:n,children:jsx(_e,{sx:{width:n?.clientWidth},children:Object.entries(Xe).map(([d,a])=>jsx(qe,{onClick:()=>{l(d);},className:o===d?"active":"",children:a},`${d}-groupedBy`))})})]})})}var Ve=memo(qo);var eo=Ve;var oo=styled(S)(({theme:e})=>({border:"1px solid",borderColor:e.palette.divider,borderRadius:"50px",paddingInline:"6px 12px",color:e.palette.text.primary,fontSize:"11px",display:"flex",gap:"8px",alignItems:"center",justifyContent:"space-between",height:32,marginTop:"8px",img:{width:16,height:16},"& > div":{display:"flex",alignItems:"center",gap:"2px"}}));function se({isHijri:e,onCalendarModeSwitch:o}){let{t:i}=useTranslation(),t=()=>{o?.(e?"gregorian":"hijri");};return jsx(S,{children:jsxs(oo,{children:[jsxs(S,{children:[jsx("img",{src:ec,alt:"hijri"}),jsx("span",{children:i("hijri")})]}),jsx(h,{checked:e,onChange:t})]})})}var no=se;var ao=styled(he)(({theme:e})=>({cursor:"pointer",borderRadius:"50px",border:"1px solid",borderColor:e.palette.divider,background:e.palette.common.white,color:e.palette.text.primary,fontSize:"11px",fontWeight:e.typography.fontWeightRegular,paddingInline:"12px",height:32,width:"max-content",textTransform:"unset","&:hover":{boxShadow:e.shadows[7],border:"1px solid",borderColor:e.palette.info.dark}})),po=styled(S)(()=>({display:"flex",flexDirection:"column",gap:"8px"}));var J=({isHijri:e,isAr:o=false})=>e?o?rt:nt:o?it:at,X=e=>e?ot:tt,M=e=>e.setHour(0).setMinute(0).setSecond(0).setMillisecond(0),B=e=>e.setHour(23).setMinute(59).setSecond(59).setMillisecond(999),Z=e=>{if(!(e?.[0]instanceof Date)||!(e?.[1]instanceof Date)){let[o,i]=m();return [new q(o),new q(i)]}return [new q(e?.[0]),new q(e?.[1])]};function ce({onChange:e,isHijri:o,isAr:i=false}){let t={locale:J({isHijri:o,isAr:i}),calendar:X(o)},n=useMemo(()=>[{id:"today",value:[new DateObject(t),new DateObject(t)]},{id:"lastWeek",value:[new DateObject(t).subtract(6,"day"),new DateObject(t)]},{id:"lastMonth",value:[new DateObject(t).subtract(30,"day"),new DateObject(t)]},{id:new DateObject(t).subtract(1,"month").toFirstOfMonth().format("MMMM YYYY"),value:[new DateObject(t).subtract(1,"month").toFirstOfMonth(),new DateObject(t).subtract(1,"month").toLastOfMonth()]},{id:new DateObject(t).subtract(2,"month").toFirstOfMonth().format("MMMM YYYY"),value:[new DateObject(t).subtract(2,"month").toFirstOfMonth(),new DateObject(t).subtract(2,"month").toLastOfMonth()]},{id:new DateObject(t).subtract(3,"month").toFirstOfMonth().format("MMMM YYYY"),value:[new DateObject(t).subtract(3,"month").toFirstOfMonth(),new DateObject(t).subtract(3,"month").toLastOfMonth()]}],[o,i]),{t:p}=useTranslation();return jsx(S,{"data-testid":"RangeCalender_QuickFilters",children:jsx(po,{children:n.map(m=>jsx(ao,{onClick:s=>{s.preventDefault(),e(m.value);},children:p(m.id)},m.id))})})}var lo=ce;var so=styled(he)(()=>({minWidth:"auto",padding:0,"& > img":{cursor:"pointer"}}));var ft=["Su","Mo","Tu","We","Th","Fr","Sa"];function gt({isAr:e=false,isHijri:o,values:i,onChange:t,numberOfMonths:n=2,...p},m){let s=c=>c==="right"?e?fc:gc:e?gc:fc;return jsx(Calendar,{ref:m,numberOfMonths:n,value:i,onChange:t,calendar:X(o),locale:J({isHijri:o,isAr:e}),range:true,format:"MMM DD",monthYearSeparator:" ",renderButton:(c,u)=>jsx(so,{onClick:u,children:jsx("img",{src:s(c),alt:"arrow"})}),weekDays:e?void 0:ft,maxDate:new Date,...p})}var mo=forwardRef(gt);var co=mo;var uo=styled(S)(()=>({'[class$="-IndicatorsContainer2"]':{display:"none"},"#react-select-2-listbox":{width:300}})),V=styled(S)(({theme:e})=>({borderRadius:e.spacing(.5),border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,boxShadow:e.shadows[10],minWidth:200,width:"max-content",overflow:"auto"})),fo=styled(S,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:o})=>({width:156,fontSize:"11px",color:e.palette.text.primary,border:"1px solid",borderColor:e.palette.divider,minHeight:32,borderRadius:"4px",padding:e.spacing(1),whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",cursor:"pointer",display:"flex",alignItems:"center",gap:e.spacing(1),fontWeight:500,...o&&{borderRadius:"4px",boxShadow:e.shadows[7],border:"1px solid",borderColor:e.palette.info.dark,background:e.palette.common.white},span:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}})),L=styled(S)(({theme:e})=>({padding:e.spacing(1),color:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",gap:e.spacing(1),height:33,cursor:"pointer","&:hover":{boxShadow:"0px 0px 16px 0px #00000021"},"&+&":{borderTop:"1px solid",borderColor:e.palette.divider},"&.active span":{fontWeight:500},span:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}})),A=styled(S)(()=>({width:12,height:12})),F=styled(S)(({theme:e})=>({fontSize:"11px",color:e.palette.text.secondary,lineHeight:"15.03px","&.selected":{color:e.palette.info.dark}}));function ge({selectedTimezone:e,onChange:o,timezoneCountriesCodes:i,defaultCountryTimezone:t}){let[n,p]=useState(null),m=a=>{n||p(a.currentTarget);},s=()=>{n&&p(null);},c=(a,D)=>{a.stopPropagation(),o(D);},u=useMemo(()=>i?.map(a=>Ib(a)),[i]),l=useMemo(()=>u?.some(a=>e?.timezone===a?.timezone),[u,e]),d=useMemo(()=>e&&l?e:t,[e,t,l]);return jsxs(L,{onMouseEnter:m,onMouseLeave:s,onClick:()=>{e&&o(d);},children:[l?jsx("img",{src:Zj,alt:"icon"}):jsx(A,{}),jsx("img",{src:Xj,alt:"entity-timezone"}),jsx(b,{countryCode:d?.countryCode}),jsx(F,{className:l?"selected":"",children:l?e?.label:t?.label}),jsx(bt,{open:!!n,anchorEl:n,placement:"right-start",sx:{zIndex:3},disablePortal:true,children:jsx(V,{sx:{maxHeight:300},children:u?.map((a,D)=>{let j=a?.timezone===e?.timezone;return jsxs(L,{onClick:te=>{c(te,a);},sx:{gap:"4px"},children:[j?jsx("img",{src:Zj,alt:"icon"}):jsx(A,{}),jsx(b,{countryCode:a?.countryCode}),jsx(F,{className:j?"selected":"",children:a?.label})]},`timezone-item-${D}`)})})})]})}function xe({onChange:e,selectedTimezone:o,browserTimezone:i}){let t=useMemo(()=>i?Jb(i):void 0,[i]),n=()=>{t&&e(t);},p=t?.timezone===o?.timezone;return jsxs(L,{onClick:n,children:[p?jsx("img",{src:Zj,alt:"icon"}):jsx(A,{}),jsx("img",{src:Wj,alt:"user-timezone"}),jsx(b,{countryCode:t?.countryCode}),jsx(F,{className:p?"selected":"",children:t?.label})]})}function St({onChange:e,selectedTimezone:o,browserTimezone:i,defaultCountryTimezone:t,timezoneCountriesCodes:n}){let[p,m]=useState(null),s=!!p,c=()=>{m(null);},u=a=>{e(a),c();},l=a=>{m(a.currentTarget);},d=useMemo(()=>i===o?.timezone?Wj:o?.timezone===t.timezone?Xj:Yj,[i,t.timezone,o?.timezone]);return jsx(Ko,{onClickAway:c,children:jsxs(uo,{"data-testid":"CustomTimezone",children:[jsxs(fo,{open:s,onClick:l,children:[jsx("img",{src:d,alt:"timezone-icon"}),jsx(b,{countryCode:o?.countryCode}),jsx("span",{children:o?.label})]}),jsx(bt,{open:s,anchorEl:p,placement:"top-start",sx:{zIndex:1400},children:jsxs(V,{"data-testid":"CustomTimezone_dropdown",children:[jsx(ge,{onChange:u,selectedTimezone:o,defaultCountryTimezone:t,timezoneCountriesCodes:n}),jsx(xe,{onChange:u,selectedTimezone:o,browserTimezone:i})]})})]})})}var xo=memo(St);var bo=xo;var ho=styled(S,{shouldForwardProp:e=>e!=="$isSingleMonth"})(({theme:e,$isSingleMonth:o})=>({display:"flex",marginTop:"8px",background:e.palette.common.white,boxShadow:e.shadows[9],borderRadius:e.spacing(1),color:e.palette.text.primary,fontSize:"11px",".rmdp-calendar":{padding:"8px 16px 16px"},".rmdp-rtl *":{fontFamily:"Tajawal"},".rmdp-rtl .sd":{paddingTop:"4px"},".rmdp-wrapper":{position:"relative",borderRadius:"8px",boxShadow:"none",...o&&{width:"100%"}},".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,...o&&{display:"block !important"}},".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"},".rmdp-day.rmdp-disabled":{color:"#ccc",cursor:"not-allowed"}})),yo=styled(he)(({theme:e})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",background:"transparent",color:e.palette.text.primary,border:"1px solid",borderColor:e.palette.divider,fontWeight:500,borderRadius:"4px","&:hover":{background:"transparent",color:e.palette.text.primary}})),wo=styled(he)(({theme:e})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",borderRadius:"4px",fontWeight:700,background:e.palette.info.dark,"&:hover":{background:e.palette.info.dark}})),Co=styled(S)(()=>({display:"flex",gap:8,marginLeft:"auto",flexShrink:0})),To=styled(he,{shouldForwardProp:e=>e!=="open"})(({open:e,theme:o})=>({color:o.palette.text.primary,fontSize:"11px",fontWeight:500,padding:o.spacing(1),borderRadius:"4px",border:"1px solid",borderColor:o.palette.divider,background:o.palette.common.white,textTransform:"none",height:32,...e&&{border:"1px solid",borderColor:o.palette.info.dark,boxShadow:o.shadows[7]}})),ko=styled(S)(({theme:e})=>({background:e.palette.common.white,display:"flex",justifyContent:"space-between",alignItems:"center",gap:10,padding:"16px",borderTop:"1px solid",borderColor:e.palette.divider,borderBottomRightRadius:"8px"})),zo=styled(S)(({theme:e})=>({padding:16,paddingInlineEnd:"23px",borderRight:"1px solid",borderColor:e.palette.divider,background:e.palette.common.white,width:"max-content",borderTopLeftRadius:"8px",borderBottomLeftRadius:"8px",display:"flex",flexDirection:"column",gap:10,justifyContent:"space-between"})),So=styled(S)(()=>({display:"flex",alignItems:"center",gap:"10px"})),vo=styled(S)(()=>({position:"relative"})),Do=styled(S)(()=>({display:"flex",flexDirection:"column",gap:"24px"}));var Mo=styled(S,{shouldForwardProp:e=>e!=="isAllDay"})(({theme:e,isAllDay:o})=>({display:"flex",alignItems:"center",gap:e.spacing(1),position:"relative",paddingInline:"5px",".label":{width:"max-content"},...!o&&{paddingRight:e.spacing(1),"&:after":{content:'""',position:"absolute",width:"1px",background:e.palette.divider,right:0,height:17}}})),Bo=styled(S)(()=>({width:235})),Eo=styled(S)(({theme:e})=>({display:"flex",gap:"4px",".rmdp-input":{width:"64px",borderRadius:"19px",border:"1px solid",borderColor:e.palette.divider,color:e.palette.text.primary,fontSize:"11px",fontWeight:500,background:"transparent",cursor:"pointer"},".rmdp-input:focus":{boxShadow:e.shadows[7],border:`1px solid ${e.palette.info.dark}`,borderRadius:"19px"},".rmdp-time-picker":{boxShadow:e.shadows[5],borderRadius:e.spacing(1),padding:e.spacing(2),minWidth:"auto !important",div:{marginTop:0,display:"block"},"> div":{width:32,height:64},".rmdp-arrow":{borderColor:`${e.palette.background.transparent[1]} !important`},".rmdp-arrow-container":{justifyContent:"center","&:hover":{backgroundColor:"transparent",boxShadow:"unset"}},input:{borderRadius:"4px",border:`1px solid ${e.palette.divider}`,padding:0,width:32,height:32,fontSize:"11px",color:e.palette.text.primary,fontWeight:500,"&:focus, &:focus-visible":{border:`1px solid ${e.palette.info.dark}`,outline:"unset"}},".dvdr":{margin:"7px 4px 0"},".rmdp-am, .rmdp-pm":{margin:0,width:32,height:32,flex:"auto",justifyContent:"center",fontSize:"11px",color:e.palette.text.primary,fontWeight:500,display:"flex",cursor:"default"},"> div:last-child":{marginInlineStart:"4px",display:"block !important"},".rmdp-down, .rmdp-up":{position:"relative",i:{display:"none"},"&:before":{content:'""',position:"absolute",top:"5px",width:"10px",height:"10px",backgroundImage:`url(${Xc})`}},".rmdp-down:before":{transform:"rotate(180deg)"}},".rmdp-container":{position:"relative","> div":{top:"unset !important",bottom:"28px",transform:"unset !important"}}})),Oo=styled(S)(({theme:e})=>({display:"flex",gap:"8px",alignItems:"center",borderRadius:"50px",border:"1px solid",borderColor:e.palette.divider,paddingInline:"5px",width:"fit-content",height:32}));function Mt({values:e,setValues:o}){let{t:i}=useTranslation(),t=new DateObject(e[0]),n=new DateObject(e[1]),[p,m]=useState(t.dayOfYear===n.dayOfYear&&t.hour===0&&t.minute===0&&n.hour===23&&n.minute===59),s=({period:l,hour:d})=>l==="PM"&&d!==12?d+12:l==="AM"&&d===12?0:d,c=({hour:l,minute:d,period:a})=>{o([t.setHour(s({hour:l,period:a})).setMinute(d).setSecond(0),n]);},u=({hour:l,minute:d,period:a})=>{o([t,n.setHour(s({hour:l,period:a})).setMinute(d).setSecond(59)]);};return jsx(Bo,{children:jsxs(Oo,{children:[jsxs(Mo,{isAllDay:p,children:[jsx("span",{className:"label",children:i("allDay")}),jsx(h,{checked:p,onChange:l=>{m(!p),l.target.checked?o([M(e[0]),B(e[1])]):o(e);}})]}),!p&&jsxs(Eo,{children:[jsx(j,{defaultTime:{hour:a(t.hour),minute:t.minute,period:t.hour>=12?"PM":"AM"},size:"small",onChange:c,enableRealTimeChange:true},`${e[0]?.toString()}-start`),jsx(j,{defaultTime:{hour:a(n.hour),minute:n.minute,period:n.hour>=12?"PM":"AM"},size:"small",onChange:u,enableRealTimeChange:true},`${e[1]?.toString()}-end`)]})]})})}var Po=Mt;var Io=Po;function At({defaultDate:e,onDateChange:o,mode:i="gregorian",onCalendarModeSwitch:t,numberOfMonths:n,noTimezone:p,noQuickFilter:m,maxDateRange:s,onCalendarGroupChange:c,groupBy:u,timezone:l,onChangeTimezone:d,browserTimezone:a,renderCalendarButton:D,mainSx:j,popperProps:te,rangeDatePickerProps:Fo,defaultCountryTimezone:Ce,timezoneCountriesCodes:Te}){let[w,ke]=useState(Z(e)),[x$1,C]=useState(w),[ze,Se]=useState(l??null),[ve,Wo]=useState(u||"day"),[De,Me]=useState(null),y=!!De,[Be,Ee]=useState(false),{t:re}=useTranslation(),P=useRef(null),Ho=Vb(useId(),"range-calender"),ne=i==="hijri",Y=()=>{Me(null);},Oe=r=>{Me(r.currentTarget);};useEffect(()=>{if(!y){if(n===1)return;C(Z(e));}},[y]),useEffect(()=>{if(e){let r=Z(e);ke(r),C(r),P.current&&P.current.set("date",r[0]);}},[e]),useEffect(()=>{Se(l??null);},[l,y]);let Re=()=>{ke(x$1),Y();let r;x$1[0].dayOfYear===x$1[1].dayOfYear?r=[x$1[0],x$1[1]]:r=[M(x$1[0]),B(x$1[1])],o([r[0].toDate(),r[1].toDate()]),c?.(ve||"day"),d?.(ze);},jo=useCallback(()=>{let r=w[0].format("MMM D"),$=w[1]?w[1].format("MMM D"):w[0].format("MMM D");return r===$&&!p?r:`${r} - ${$}`},[w,p]),Yo=r=>{if(r.length<2||!s){C(r);return}let $=M(r[0]).toDate(),Qo=B(r[1]).toDate(),Pe=It(Qo).diff($,"day");if(Pe<=s){C(r);return}Ee(true),C([r[0],r[1].subtract(Pe-s,"d")]),setTimeout(()=>{Ee(false);},3e3);},$o=r=>{C([M(r[0]),B(r[1])]),P.current&&P.current.set("date",r[0]);},Go=r=>{r.key==="Enter"&&x$1[1]&&!Be?(r.stopPropagation(),Re()):r.key==="Escape"&&(r.stopPropagation(),Y());};return jsxs(vo,{id:Ho,"data-testid":"RangeCalender",sx:j,children:[D?D(y,Oe):jsx(To,{onClick:Oe,open:y,children:(w[0]||w[1])&&jo()}),y&&jsx(B$1,{onClick:r=>{r.stopPropagation(),Y();}}),jsx(bt,{open:y,anchorEl:De,placement:"bottom-end",...te,children:jsxs(ho,{onKeyDown:Go,$isSingleMonth:n===1,children:[!m&&jsxs(zo,{children:[jsx(lo,{onChange:$o,isHijri:ne}),jsxs(Do,{children:[u&&jsx(eo,{groupBy:ve,isCalenderOpen:y,onUpdate:r=>{Wo(r);}}),jsx(no,{isHijri:ne,onCalendarModeSwitch:t})]})]}),jsxs(S,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[jsx(co,{values:x$1,onChange:Yo,isHijri:ne,ref:P,numberOfMonths:n,...Fo}),jsx(x,{in:Be&&!!s,children:jsx(b$1,{severity:"error",message:re("dateRangeError",{number:s}),sx:{marginInline:"16px",marginBottom:"16px"}})}),jsxs(ko,{sx:{borderBottomLeftRadius:"8px"},children:[!p&&Ce&&a&&Te&&jsx(So,{children:jsx(bo,{onChange:Se,selectedTimezone:ze,browserTimezone:a,defaultCountryTimezone:Ce,timezoneCountriesCodes:Te},String(y))}),new DateObject(x$1[0]).dayOfYear===new DateObject(x$1[1]).dayOfYear&&jsx(Io,{values:x$1,setValues:C}),jsxs(Co,{children:[jsx(yo,{variant:"contained",onClick:Y,children:re("cancel")}),jsx(wo,{variant:"contained",onClick:Re,disabled:!x$1[1],children:re("okay")})]})]})]})]})})]})}var Ao=At;var bi=Ao;export{bi as a};
1
+ import {b}from'./chunk-OHT5KJVT.js';import {b as b$1}from'./chunk-4IQ3J4LF.js';import {j,a}from'./chunk-RXCJF7BB.js';import {R,B as B$1,x,h}from'./chunk-6ZPNLCMN.js';import {Ib,Jb,Vb}from'./chunk-MMXWSV6V.js';import {m}from'./chunk-53X3U5WT.js';import {Xc,Yc,Wj,Xj,Yj,fc,gc,Zj,ec}from'./chunk-VRGBJY4Q.js';import {memo,forwardRef,useState,useMemo,useRef,useId,useEffect,useCallback}from'react';import S from'@mui/material/Box';import bt from'@mui/material/Popper';import It from'dayjs';import {useTranslation}from'react-i18next';import {Calendar,DateObject}from'react-multi-date-picker';import Ko from'@mui/material/ClickAwayListener';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';import he from'@mui/material/Button';import q from'react-date-object';import ot from'react-date-object/calendars/arabic';import tt from'react-date-object/calendars/gregorian';import rt from'react-date-object/locales/arabic_ar';import nt from'react-date-object/locales/arabic_en';import it from'react-date-object/locales/gregorian_ar';import at from'react-date-object/locales/gregorian_en';var Ne=styled(S)(({theme:e})=>({color:e.palette.grey[700],fontSize:"9px",fontWeight:500,marginBottom:"6px"})),Ke=styled(S,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:o})=>({borderRadius:"4px",border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,height:32,padding:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",...o&&{border:`1px solid ${e.palette.info.dark}`,background:e.palette.common.white,boxShadow:e.shadows[7]}})),_e=styled(S)(({theme:e})=>({borderRadius:"8px",background:e.palette.common.white,boxShadow:"0px 8px 36px 0px rgba(0, 0, 0, 0.15)",textAlign:"center",color:e.palette.grey[900],fontSize:"12px",fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px",padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"12px",flexDirection:"column"})),qe=styled(S)(({theme:e})=>({width:71,padding:"4px 0",cursor:"pointer","&:hover, &.active":{borderRadius:"100px",background:e.palette.info.light}}));var Xe={day:"Day",month:"Month",quarter:"Quarter",year:"Year"};function qo({sx:e,groupBy:o,isCalenderOpen:i,onUpdate:t}){let[n,p]=useState(null),m=!!n&&i,{t:s}=useTranslation(),c=()=>{p(null);},u=d=>{p(d.currentTarget);},l=d=>{t?.(d),c();};return jsx(Ko,{onClickAway:c,children:jsxs(S,{sx:e,children:[jsx(Ne,{children:s("groupedBy")}),jsxs(Ke,{onClick:u,open:m,children:[jsx("span",{children:Xe[o]}),jsx(S,{component:"img",src:Yc,alt:"arrow",sx:{...m&&{transform:"rotate(180deg)"}}})]}),jsx(R,{open:m,anchorEl:n,children:jsx(_e,{sx:{width:n?.clientWidth},children:Object.entries(Xe).map(([d,a])=>jsx(qe,{onClick:()=>{l(d);},className:o===d?"active":"",children:a},`${d}-groupedBy`))})})]})})}var Ve=memo(qo);var eo=Ve;var oo=styled(S)(({theme:e})=>({border:"1px solid",borderColor:e.palette.divider,borderRadius:"50px",paddingInline:"6px 12px",color:e.palette.text.primary,fontSize:"11px",display:"flex",gap:"8px",alignItems:"center",justifyContent:"space-between",height:32,marginTop:"8px",img:{width:16,height:16},"& > div":{display:"flex",alignItems:"center",gap:"2px"}}));function se({isHijri:e,onCalendarModeSwitch:o}){let{t:i}=useTranslation(),t=()=>{o?.(e?"gregorian":"hijri");};return jsx(S,{children:jsxs(oo,{children:[jsxs(S,{children:[jsx("img",{src:ec,alt:"hijri"}),jsx("span",{children:i("hijri")})]}),jsx(h,{checked:e,onChange:t})]})})}var no=se;var ao=styled(he)(({theme:e})=>({cursor:"pointer",borderRadius:"50px",border:"1px solid",borderColor:e.palette.divider,background:e.palette.common.white,color:e.palette.text.primary,fontSize:"11px",fontWeight:e.typography.fontWeightRegular,paddingInline:"12px",height:32,width:"max-content",textTransform:"unset","&:hover":{boxShadow:e.shadows[7],border:"1px solid",borderColor:e.palette.info.dark}})),po=styled(S)(()=>({display:"flex",flexDirection:"column",gap:"8px"}));var J=({isHijri:e,isAr:o=false})=>e?o?rt:nt:o?it:at,X=e=>e?ot:tt,M=e=>e.setHour(0).setMinute(0).setSecond(0).setMillisecond(0),B=e=>e.setHour(23).setMinute(59).setSecond(59).setMillisecond(999),Z=e=>{if(!(e?.[0]instanceof Date)||!(e?.[1]instanceof Date)){let[o,i]=m();return [new q(o),new q(i)]}return [new q(e?.[0]),new q(e?.[1])]};function ce({onChange:e,isHijri:o,isAr:i=false}){let t={locale:J({isHijri:o,isAr:i}),calendar:X(o)},n=useMemo(()=>[{id:"today",value:[new DateObject(t),new DateObject(t)]},{id:"lastWeek",value:[new DateObject(t).subtract(6,"day"),new DateObject(t)]},{id:"lastMonth",value:[new DateObject(t).subtract(30,"day"),new DateObject(t)]},{id:new DateObject(t).subtract(1,"month").toFirstOfMonth().format("MMMM YYYY"),value:[new DateObject(t).subtract(1,"month").toFirstOfMonth(),new DateObject(t).subtract(1,"month").toLastOfMonth()]},{id:new DateObject(t).subtract(2,"month").toFirstOfMonth().format("MMMM YYYY"),value:[new DateObject(t).subtract(2,"month").toFirstOfMonth(),new DateObject(t).subtract(2,"month").toLastOfMonth()]},{id:new DateObject(t).subtract(3,"month").toFirstOfMonth().format("MMMM YYYY"),value:[new DateObject(t).subtract(3,"month").toFirstOfMonth(),new DateObject(t).subtract(3,"month").toLastOfMonth()]}],[o,i]),{t:p}=useTranslation();return jsx(S,{"data-testid":"RangeCalender_QuickFilters",children:jsx(po,{children:n.map(m=>jsx(ao,{onClick:s=>{s.preventDefault(),e(m.value);},children:p(m.id)},m.id))})})}var lo=ce;var so=styled(he)(()=>({minWidth:"auto",padding:0,"& > img":{cursor:"pointer"}}));var ft=["Su","Mo","Tu","We","Th","Fr","Sa"];function gt({isAr:e=false,isHijri:o,values:i,onChange:t,numberOfMonths:n=2,...p},m){let s=c=>c==="right"?e?fc:gc:e?gc:fc;return jsx(Calendar,{ref:m,numberOfMonths:n,value:i,onChange:t,calendar:X(o),locale:J({isHijri:o,isAr:e}),range:true,format:"MMM DD",monthYearSeparator:" ",renderButton:(c,u)=>jsx(so,{onClick:u,children:jsx("img",{src:s(c),alt:"arrow"})}),weekDays:e?void 0:ft,maxDate:new Date,...p})}var mo=forwardRef(gt);var co=mo;var uo=styled(S)(()=>({'[class$="-IndicatorsContainer2"]':{display:"none"},"#react-select-2-listbox":{width:300}})),V=styled(S)(({theme:e})=>({borderRadius:e.spacing(.5),border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,boxShadow:e.shadows[10],minWidth:200,width:"max-content",overflow:"auto"})),fo=styled(S,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:o})=>({width:156,fontSize:"11px",color:e.palette.text.primary,border:"1px solid",borderColor:e.palette.divider,minHeight:32,borderRadius:"4px",padding:e.spacing(1),whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",cursor:"pointer",display:"flex",alignItems:"center",gap:e.spacing(1),fontWeight:500,...o&&{borderRadius:"4px",boxShadow:e.shadows[7],border:"1px solid",borderColor:e.palette.info.dark,background:e.palette.common.white},span:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}})),L=styled(S)(({theme:e})=>({padding:e.spacing(1),color:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",gap:e.spacing(1),height:33,cursor:"pointer","&:hover":{boxShadow:"0px 0px 16px 0px #00000021"},"&+&":{borderTop:"1px solid",borderColor:e.palette.divider},"&.active span":{fontWeight:500},span:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}})),A=styled(S)(()=>({width:12,height:12})),F=styled(S)(({theme:e})=>({fontSize:"11px",color:e.palette.text.secondary,lineHeight:"15.03px","&.selected":{color:e.palette.info.dark}}));function ge({selectedTimezone:e,onChange:o,timezoneCountriesCodes:i,defaultCountryTimezone:t}){let[n,p]=useState(null),m=a=>{n||p(a.currentTarget);},s=()=>{n&&p(null);},c=(a,D)=>{a.stopPropagation(),o(D);},u=useMemo(()=>i?.map(a=>Ib(a)),[i]),l=useMemo(()=>u?.some(a=>e?.timezone===a?.timezone),[u,e]),d=useMemo(()=>e&&l?e:t,[e,t,l]);return jsxs(L,{onMouseEnter:m,onMouseLeave:s,onClick:()=>{e&&o(d);},children:[l?jsx("img",{src:Zj,alt:"icon"}):jsx(A,{}),jsx("img",{src:Xj,alt:"entity-timezone"}),jsx(b,{countryCode:d?.countryCode}),jsx(F,{className:l?"selected":"",children:l?e?.label:t?.label}),jsx(bt,{open:!!n,anchorEl:n,placement:"right-start",sx:{zIndex:3},disablePortal:true,children:jsx(V,{sx:{maxHeight:300},children:u?.map((a,D)=>{let j=a?.timezone===e?.timezone;return jsxs(L,{onClick:te=>{c(te,a);},sx:{gap:"4px"},children:[j?jsx("img",{src:Zj,alt:"icon"}):jsx(A,{}),jsx(b,{countryCode:a?.countryCode}),jsx(F,{className:j?"selected":"",children:a?.label})]},`timezone-item-${D}`)})})})]})}function xe({onChange:e,selectedTimezone:o,browserTimezone:i}){let t=useMemo(()=>i?Jb(i):void 0,[i]),n=()=>{t&&e(t);},p=t?.timezone===o?.timezone;return jsxs(L,{onClick:n,children:[p?jsx("img",{src:Zj,alt:"icon"}):jsx(A,{}),jsx("img",{src:Wj,alt:"user-timezone"}),jsx(b,{countryCode:t?.countryCode}),jsx(F,{className:p?"selected":"",children:t?.label})]})}function St({onChange:e,selectedTimezone:o,browserTimezone:i,defaultCountryTimezone:t,timezoneCountriesCodes:n}){let[p,m]=useState(null),s=!!p,c=()=>{m(null);},u=a=>{e(a),c();},l=a=>{m(a.currentTarget);},d=useMemo(()=>i===o?.timezone?Wj:o?.timezone===t.timezone?Xj:Yj,[i,t.timezone,o?.timezone]);return jsx(Ko,{onClickAway:c,children:jsxs(uo,{"data-testid":"CustomTimezone",children:[jsxs(fo,{open:s,onClick:l,children:[jsx("img",{src:d,alt:"timezone-icon"}),jsx(b,{countryCode:o?.countryCode}),jsx("span",{children:o?.label})]}),jsx(bt,{open:s,anchorEl:p,placement:"top-start",sx:{zIndex:1400},children:jsxs(V,{"data-testid":"CustomTimezone_dropdown",children:[jsx(ge,{onChange:u,selectedTimezone:o,defaultCountryTimezone:t,timezoneCountriesCodes:n}),jsx(xe,{onChange:u,selectedTimezone:o,browserTimezone:i})]})})]})})}var xo=memo(St);var bo=xo;var ho=styled(S,{shouldForwardProp:e=>e!=="$isSingleMonth"})(({theme:e,$isSingleMonth:o})=>({display:"flex",marginTop:"8px",background:e.palette.common.white,boxShadow:e.shadows[9],borderRadius:e.spacing(1),color:e.palette.text.primary,fontSize:"11px",".rmdp-calendar":{padding:"8px 16px 16px"},".rmdp-rtl *":{fontFamily:"Tajawal"},".rmdp-rtl .sd":{paddingTop:"4px"},".rmdp-wrapper":{position:"relative",borderRadius:"8px",boxShadow:"none",...o&&{width:"100%"}},".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,...o&&{display:"block !important"}},".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"},".rmdp-day.rmdp-disabled":{color:"#ccc",cursor:"not-allowed"}})),yo=styled(he)(({theme:e})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",background:"transparent",color:e.palette.text.primary,border:"1px solid",borderColor:e.palette.divider,fontWeight:500,borderRadius:"4px","&:hover":{background:"transparent",color:e.palette.text.primary}})),wo=styled(he)(({theme:e})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",borderRadius:"4px",fontWeight:700,background:e.palette.info.dark,"&:hover":{background:e.palette.info.dark}})),Co=styled(S)(()=>({display:"flex",gap:8,marginLeft:"auto",flexShrink:0})),To=styled(he,{shouldForwardProp:e=>e!=="open"})(({open:e,theme:o})=>({color:o.palette.text.primary,fontSize:"11px",fontWeight:500,padding:o.spacing(1),borderRadius:"4px",border:"1px solid",borderColor:o.palette.divider,background:o.palette.common.white,textTransform:"none",height:32,...e&&{border:"1px solid",borderColor:o.palette.info.dark,boxShadow:o.shadows[7]}})),ko=styled(S)(({theme:e})=>({background:e.palette.common.white,display:"flex",justifyContent:"space-between",alignItems:"center",gap:10,padding:"16px",borderTop:"1px solid",borderColor:e.palette.divider,borderBottomRightRadius:"8px"})),zo=styled(S)(({theme:e})=>({padding:16,paddingInlineEnd:"23px",borderRight:"1px solid",borderColor:e.palette.divider,background:e.palette.common.white,width:"max-content",borderTopLeftRadius:"8px",borderBottomLeftRadius:"8px",display:"flex",flexDirection:"column",gap:10,justifyContent:"space-between"})),So=styled(S)(()=>({display:"flex",alignItems:"center",gap:"10px"})),vo=styled(S)(()=>({position:"relative"})),Do=styled(S)(()=>({display:"flex",flexDirection:"column",gap:"24px"}));var Mo=styled(S,{shouldForwardProp:e=>e!=="isAllDay"})(({theme:e,isAllDay:o})=>({display:"flex",alignItems:"center",gap:e.spacing(1),position:"relative",paddingInline:"5px",".label":{width:"max-content"},...!o&&{paddingRight:e.spacing(1),"&:after":{content:'""',position:"absolute",width:"1px",background:e.palette.divider,right:0,height:17}}})),Bo=styled(S)(()=>({width:235})),Eo=styled(S)(({theme:e})=>({display:"flex",gap:"4px",".rmdp-input":{width:"64px",borderRadius:"19px",border:"1px solid",borderColor:e.palette.divider,color:e.palette.text.primary,fontSize:"11px",fontWeight:500,background:"transparent",cursor:"pointer"},".rmdp-input:focus":{boxShadow:e.shadows[7],border:`1px solid ${e.palette.info.dark}`,borderRadius:"19px"},".rmdp-time-picker":{boxShadow:e.shadows[5],borderRadius:e.spacing(1),padding:e.spacing(2),minWidth:"auto !important",div:{marginTop:0,display:"block"},"> div":{width:32,height:64},".rmdp-arrow":{borderColor:`${e.palette.background.transparent[1]} !important`},".rmdp-arrow-container":{justifyContent:"center","&:hover":{backgroundColor:"transparent",boxShadow:"unset"}},input:{borderRadius:"4px",border:`1px solid ${e.palette.divider}`,padding:0,width:32,height:32,fontSize:"11px",color:e.palette.text.primary,fontWeight:500,"&:focus, &:focus-visible":{border:`1px solid ${e.palette.info.dark}`,outline:"unset"}},".dvdr":{margin:"7px 4px 0"},".rmdp-am, .rmdp-pm":{margin:0,width:32,height:32,flex:"auto",justifyContent:"center",fontSize:"11px",color:e.palette.text.primary,fontWeight:500,display:"flex",cursor:"default"},"> div:last-child":{marginInlineStart:"4px",display:"block !important"},".rmdp-down, .rmdp-up":{position:"relative",i:{display:"none"},"&:before":{content:'""',position:"absolute",top:"5px",width:"10px",height:"10px",backgroundImage:`url(${Xc})`}},".rmdp-down:before":{transform:"rotate(180deg)"}},".rmdp-container":{position:"relative","> div":{top:"unset !important",bottom:"28px",transform:"unset !important"}}})),Oo=styled(S)(({theme:e})=>({display:"flex",gap:"8px",alignItems:"center",borderRadius:"50px",border:"1px solid",borderColor:e.palette.divider,paddingInline:"5px",width:"fit-content",height:32}));function Mt({values:e,setValues:o}){let{t:i}=useTranslation(),t=new DateObject(e[0]),n=new DateObject(e[1]),[p,m]=useState(t.dayOfYear===n.dayOfYear&&t.hour===0&&t.minute===0&&n.hour===23&&n.minute===59),s=({period:l,hour:d})=>l==="PM"&&d!==12?d+12:l==="AM"&&d===12?0:d,c=({hour:l,minute:d,period:a})=>{o([t.setHour(s({hour:l,period:a})).setMinute(d).setSecond(0),n]);},u=({hour:l,minute:d,period:a})=>{o([t,n.setHour(s({hour:l,period:a})).setMinute(d).setSecond(59)]);};return jsx(Bo,{children:jsxs(Oo,{children:[jsxs(Mo,{isAllDay:p,children:[jsx("span",{className:"label",children:i("allDay")}),jsx(h,{checked:p,onChange:l=>{m(!p),l.target.checked?o([M(e[0]),B(e[1])]):o(e);}})]}),!p&&jsxs(Eo,{children:[jsx(j,{defaultTime:{hour:a(t.hour),minute:t.minute,period:t.hour>=12?"PM":"AM"},size:"small",onChange:c,enableRealTimeChange:true},`${e[0]?.toString()}-start`),jsx(j,{defaultTime:{hour:a(n.hour),minute:n.minute,period:n.hour>=12?"PM":"AM"},size:"small",onChange:u,enableRealTimeChange:true},`${e[1]?.toString()}-end`)]})]})})}var Po=Mt;var Io=Po;function At({defaultDate:e,onDateChange:o,mode:i="gregorian",onCalendarModeSwitch:t,numberOfMonths:n,noTimezone:p,noQuickFilter:m,maxDateRange:s,onCalendarGroupChange:c,groupBy:u,timezone:l,onChangeTimezone:d,browserTimezone:a,renderCalendarButton:D,mainSx:j,popperProps:te,rangeDatePickerProps:Fo,defaultCountryTimezone:Ce,timezoneCountriesCodes:Te}){let[w,ke]=useState(Z(e)),[x$1,C]=useState(w),[ze,Se]=useState(l??null),[ve,Wo]=useState(u||"day"),[De,Me]=useState(null),y=!!De,[Be,Ee]=useState(false),{t:re}=useTranslation(),P=useRef(null),Ho=Vb(useId(),"range-calender"),ne=i==="hijri",Y=()=>{Me(null);},Oe=r=>{Me(r.currentTarget);};useEffect(()=>{if(!y){if(n===1)return;C(Z(e));}},[y]),useEffect(()=>{if(e){let r=Z(e);ke(r),C(r),P.current&&P.current.set("date",r[0]);}},[e]),useEffect(()=>{Se(l??null);},[l,y]);let Re=()=>{ke(x$1),Y();let r;x$1[0].dayOfYear===x$1[1].dayOfYear?r=[x$1[0],x$1[1]]:r=[M(x$1[0]),B(x$1[1])],o([r[0].toDate(),r[1].toDate()]),c?.(ve||"day"),d?.(ze);},jo=useCallback(()=>{let r=w[0].format("MMM D"),$=w[1]?w[1].format("MMM D"):w[0].format("MMM D");return r===$&&!p?r:`${r} - ${$}`},[w,p]),Yo=r=>{if(r.length<2||!s){C(r);return}let $=M(r[0]).toDate(),Qo=B(r[1]).toDate(),Pe=It(Qo).diff($,"day");if(Pe<=s){C(r);return}Ee(true),C([r[0],r[1].subtract(Pe-s,"d")]),setTimeout(()=>{Ee(false);},3e3);},$o=r=>{C([M(r[0]),B(r[1])]),P.current&&P.current.set("date",r[0]);},Go=r=>{r.key==="Enter"&&x$1[1]&&!Be?(r.stopPropagation(),Re()):r.key==="Escape"&&(r.stopPropagation(),Y());};return jsxs(vo,{id:Ho,"data-testid":"RangeCalender",sx:j,children:[D?D(y,Oe):jsx(To,{onClick:Oe,open:y,children:(w[0]||w[1])&&jo()}),y&&jsx(B$1,{onClick:r=>{r.stopPropagation(),Y();}}),jsx(bt,{open:y,anchorEl:De,placement:"bottom-end",...te,children:jsxs(ho,{onKeyDown:Go,$isSingleMonth:n===1,children:[!m&&jsxs(zo,{children:[jsx(lo,{onChange:$o,isHijri:ne}),jsxs(Do,{children:[u&&jsx(eo,{groupBy:ve,isCalenderOpen:y,onUpdate:r=>{Wo(r);}}),jsx(no,{isHijri:ne,onCalendarModeSwitch:t})]})]}),jsxs(S,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[jsx(co,{values:x$1,onChange:Yo,isHijri:ne,ref:P,numberOfMonths:n,...Fo}),jsx(x,{in:Be&&!!s,children:jsx(b$1,{severity:"error",message:re("dateRangeError",{number:s}),sx:{marginInline:"16px",marginBottom:"16px"}})}),jsxs(ko,{sx:{borderBottomLeftRadius:"8px"},children:[!p&&Ce&&a&&Te&&jsx(So,{children:jsx(bo,{onChange:Se,selectedTimezone:ze,browserTimezone:a,defaultCountryTimezone:Ce,timezoneCountriesCodes:Te},String(y))}),new DateObject(x$1[0]).dayOfYear===new DateObject(x$1[1]).dayOfYear&&jsx(Io,{values:x$1,setValues:C}),jsxs(Co,{children:[jsx(yo,{variant:"contained",onClick:Y,children:re("cancel")}),jsx(wo,{variant:"contained",onClick:Re,disabled:!x$1[1],children:re("okay")})]})]})]})]})})]})}var Ao=At;var bi=Ao;export{bi as a};
@@ -1 +1 @@
1
- import {r}from'./chunk-LLM6NHYM.js';import {Vb,za}from'./chunk-6HNOCQKM.js';import {useId}from'react';import {motion}from'framer-motion';import {Box,Typography}from'@mui/material';import {styled}from'@mui/material/styles';import I from'@mui/material/Box';import {jsxs,jsx}from'react/jsx-runtime';var u=styled(Box)(({size:t})=>({display:"flex",flexDirection:"column",alignItems:"center",width:t,height:t,position:"relative"})),y=styled(Box)({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",textAlign:"center"}),b=styled(Typography,{shouldForwardProp:t=>t!=="isEmpty"})(({isEmpty:t})=>({fontSize:"17px",fontWeight:700,color:t?"#CFD0D2":"#000"})),D=styled(Typography,{shouldForwardProp:t=>t!=="isEmpty"})(({isEmpty:t})=>({whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:t?"#CFD0D2":"#8D8D94",fontSize:"11px",fontWeight:500,letterSpacing:"0%",textAlign:"right",verticalAlign:"middle"}));var C=()=>jsxs(I,{component:"span",sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:"6px"},children:[jsx(r,{width:51,height:16}),jsx(r,{width:84,height:8})]});var v=({value:t,label:k,size:o=172,strokeWidth:p=22,isLoading:l=false})=>{let E=Vb(useId(),"progress-ring"),m=t==null||t==="",F=za(t||"0"),s=Math.min(Math.max(F??0,0),100),c=(o-p)/2,n=2*Math.PI*c,r=o/2;return jsxs(u,{id:E,"data-testid":"ProgressRing",size:o,children:[jsxs("svg",{width:o,height:o,viewBox:`0 0 ${o} ${o}`,style:{position:"absolute",top:0,left:0},children:[jsx("defs",{children:jsxs("linearGradient",{id:"progressGradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[jsx("stop",{offset:"0.67%",stopColor:"#3DA6E1"}),jsx("stop",{offset:"98.91%",stopColor:"#147DC5"})]})}),jsx("circle",{cx:r,cy:r,r:c,stroke:"#F3F3F3",strokeWidth:p,fill:"transparent"}),jsx(motion.circle,{cx:r,cy:r,r:c,stroke:"url(#progressGradient)",strokeWidth:p,fill:"transparent",strokeLinecap:"round",strokeDasharray:n,strokeDashoffset:n,transform:`rotate(-90 ${r} ${r})`,animate:{strokeDashoffset:l?n:n-n*s/100},transition:{duration:1,ease:"easeOut"}})]}),jsxs(y,{children:[jsx(b,{isEmpty:m,children:l?jsx(C,{}):m?"----":jsxs(motion.span,{initial:{opacity:0},animate:{opacity:1},transition:{ease:"easeOut",duration:.5},children:[Number.isInteger(s)?s:s.toFixed(1),"%"]})}),!l&&jsx(D,{isEmpty:m,children:k})]})]})},T=v;var U=T;export{U as a};
1
+ import {r}from'./chunk-6ZPNLCMN.js';import {Vb,za}from'./chunk-MMXWSV6V.js';import {useId}from'react';import {motion}from'framer-motion';import {Box,Typography}from'@mui/material';import {styled}from'@mui/material/styles';import I from'@mui/material/Box';import {jsxs,jsx}from'react/jsx-runtime';var u=styled(Box)(({size:t})=>({display:"flex",flexDirection:"column",alignItems:"center",width:t,height:t,position:"relative"})),y=styled(Box)({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",textAlign:"center"}),b=styled(Typography,{shouldForwardProp:t=>t!=="isEmpty"})(({isEmpty:t})=>({fontSize:"17px",fontWeight:700,color:t?"#CFD0D2":"#000"})),D=styled(Typography,{shouldForwardProp:t=>t!=="isEmpty"})(({isEmpty:t})=>({whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:t?"#CFD0D2":"#8D8D94",fontSize:"11px",fontWeight:500,letterSpacing:"0%",textAlign:"right",verticalAlign:"middle"}));var C=()=>jsxs(I,{component:"span",sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:"6px"},children:[jsx(r,{width:51,height:16}),jsx(r,{width:84,height:8})]});var v=({value:t,label:k,size:o=172,strokeWidth:p=22,isLoading:l=false})=>{let E=Vb(useId(),"progress-ring"),m=t==null||t==="",F=za(t||"0"),s=Math.min(Math.max(F??0,0),100),c=(o-p)/2,n=2*Math.PI*c,r=o/2;return jsxs(u,{id:E,"data-testid":"ProgressRing",size:o,children:[jsxs("svg",{width:o,height:o,viewBox:`0 0 ${o} ${o}`,style:{position:"absolute",top:0,left:0},children:[jsx("defs",{children:jsxs("linearGradient",{id:"progressGradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[jsx("stop",{offset:"0.67%",stopColor:"#3DA6E1"}),jsx("stop",{offset:"98.91%",stopColor:"#147DC5"})]})}),jsx("circle",{cx:r,cy:r,r:c,stroke:"#F3F3F3",strokeWidth:p,fill:"transparent"}),jsx(motion.circle,{cx:r,cy:r,r:c,stroke:"url(#progressGradient)",strokeWidth:p,fill:"transparent",strokeLinecap:"round",strokeDasharray:n,strokeDashoffset:n,transform:`rotate(-90 ${r} ${r})`,animate:{strokeDashoffset:l?n:n-n*s/100},transition:{duration:1,ease:"easeOut"}})]}),jsxs(y,{children:[jsx(b,{isEmpty:m,children:l?jsx(C,{}):m?"----":jsxs(motion.span,{initial:{opacity:0},animate:{opacity:1},transition:{ease:"easeOut",duration:.5},children:[Number.isInteger(s)?s:s.toFixed(1),"%"]})}),!l&&jsx(D,{isEmpty:m,children:k})]})]})},T=v;var U=T;export{U as a};