@tap-payments/os-micro-frontend-shared 0.3.131-test.1 → 0.3.132

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 (115) hide show
  1. package/build/_chunks/{chunk-JWG5IWOL.js → chunk-5KB7IA3L.js} +1 -1
  2. package/build/_chunks/{chunk-BX3XFO6N.js → chunk-5ROHV2I6.js} +1 -1
  3. package/build/_chunks/chunk-75TQTDVK.js +1 -0
  4. package/build/_chunks/{chunk-VTGUFAS2.js → chunk-7TR2MF6I.js} +1 -1
  5. package/build/_chunks/{chunk-MUVAYAPY.js → chunk-A4KPAUDX.js} +1 -1
  6. package/build/_chunks/chunk-GYJIUZ4U.js +2 -0
  7. package/build/_chunks/chunk-JW4M53EU.js +2 -0
  8. package/build/_chunks/{chunk-6YBUPJMW.js → chunk-K4ASYA5P.js} +1 -1
  9. package/build/_chunks/chunk-MKGIB6QH.js +1 -0
  10. package/build/_chunks/chunk-PN7TZAFC.js +2 -0
  11. package/build/_chunks/{chunk-65H4APSM.js → chunk-SKY4LBEF.js} +1 -1
  12. package/build/_chunks/chunk-WON7ZGHE.js +1 -0
  13. package/build/_chunks/chunk-WTFTW2MN.js +15 -0
  14. package/build/_chunks/chunk-XEA2GLQG.js +1 -0
  15. package/build/_chunks/chunk-YFU5YNAY.js +1 -0
  16. package/build/_chunks/chunk-ZH3CEA6Q.js +1 -0
  17. package/build/_chunks/chunk-ZONDSLTR.js +1 -0
  18. package/build/components/Accordion/Accordion.d.ts +8 -0
  19. package/build/components/Accordion/AccordionExpandIcon.d.ts +16 -0
  20. package/build/components/Accordion/index.d.ts +4 -0
  21. package/build/components/Accordion/index.js +1 -0
  22. package/build/components/Accordion/style.d.ts +21 -0
  23. package/build/components/Accordion/types.d.ts +25 -0
  24. package/build/components/ActiveFilterChip/index.js +1 -1
  25. package/build/components/Amount/index.js +1 -1
  26. package/build/components/AmountConversionFilter/index.js +1 -1
  27. package/build/components/AmountInput/index.js +1 -1
  28. package/build/components/AmountSlider/index.js +1 -1
  29. package/build/components/AnimatedSpinnerIcon/style.d.ts +1 -1
  30. package/build/components/AppServices/index.js +1 -1
  31. package/build/components/AppServicesBar/index.js +1 -1
  32. package/build/components/BrandLogo/index.js +1 -1
  33. package/build/components/Chip/index.js +1 -1
  34. package/build/components/ColumnViews/index.js +1 -1
  35. package/build/components/CopyImage/index.js +1 -1
  36. package/build/components/CountryFilter/index.js +1 -1
  37. package/build/components/CurrencyFilter/index.js +1 -1
  38. package/build/components/Customer/index.js +1 -1
  39. package/build/components/DateFilter/index.js +1 -1
  40. package/build/components/Discount/index.js +1 -1
  41. package/build/components/ExpandableSideBar/index.js +1 -1
  42. package/build/components/ExpandableSideBar/style.d.ts +0 -3
  43. package/build/components/FileInputPreview/index.js +1 -1
  44. package/build/components/FilterDropdown/index.js +1 -1
  45. package/build/components/Filters/index.js +1 -1
  46. package/build/components/HeatMap/index.js +1 -1
  47. package/build/components/ImageWrapper/ImageWrapper.d.ts +264 -0
  48. package/build/components/ImageWrapper/index.d.ts +1 -0
  49. package/build/components/ImageWrapper/index.js +1 -1
  50. package/build/components/JSONViewer/components/JSONSearchBar/styles.d.ts +2 -2
  51. package/build/components/LanguageDropdown/index.js +1 -1
  52. package/build/components/ListColumnFilter/index.js +1 -1
  53. package/build/components/ListHeader/index.js +1 -1
  54. package/build/components/MerchantCurrencyDropdown/index.js +1 -1
  55. package/build/components/MerchantLogo/index.js +1 -1
  56. package/build/components/MerchantsDropdown/index.js +1 -1
  57. package/build/components/MultiSelectDropdownButton/index.js +1 -1
  58. package/build/components/PartnersFilter/index.js +1 -1
  59. package/build/components/PaymentSourceFilter/index.js +1 -1
  60. package/build/components/PhoneFilter/index.js +1 -1
  61. package/build/components/RFH/Inputs/SelectWithAccordion/style.d.ts +0 -3
  62. package/build/components/RFH/index.js +1 -1
  63. package/build/components/RatingCount/RatingCount.d.ts +5 -0
  64. package/build/components/RatingCount/index.d.ts +1 -0
  65. package/build/components/RatingCount/index.js +1 -0
  66. package/build/components/RatingCount/style.d.ts +18 -0
  67. package/build/components/ReceiptsViewer/index.js +1 -1
  68. package/build/components/ReferenceTypeFilter/index.js +1 -1
  69. package/build/components/SalesChannelFilter/index.js +1 -1
  70. package/build/components/SearchButton/index.js +1 -1
  71. package/build/components/SearchButton/styles.d.ts +1 -1
  72. package/build/components/StatusBar/index.js +1 -1
  73. package/build/components/StatusButton/index.js +1 -1
  74. package/build/components/StatusFilter/index.js +1 -1
  75. package/build/components/StatusIcons/index.js +1 -1
  76. package/build/components/TableCells/CustomCells/ActionCell/constant.d.ts +2 -2
  77. package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -1
  78. package/build/components/TableCells/CustomCells/AgreementCell/style.d.ts +18 -0
  79. package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +18 -0
  80. package/build/components/TableCells/CustomCells/PayoutReportCell/style.d.ts +1 -1
  81. package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +1 -1
  82. package/build/components/TableCells/index.js +1 -1
  83. package/build/components/TableReports/index.js +1 -1
  84. package/build/components/TooltipChip/index.js +1 -1
  85. package/build/components/TreeDropdown/index.js +1 -1
  86. package/build/components/VAT/index.js +1 -1
  87. package/build/components/VerificationIcon/index.js +1 -1
  88. package/build/components/ViewColumnRadioFilter/index.js +1 -1
  89. package/build/components/VirtualTables/components/style.d.ts +1 -1
  90. package/build/components/WindowSideBar/index.js +1 -1
  91. package/build/components/index.d.ts +2 -2
  92. package/build/components/index.js +1 -1
  93. package/build/components/primitives/Accordion/style.d.ts +1 -1
  94. package/build/components/primitives/Input/style.d.ts +1 -1
  95. package/build/components/primitives/Textarea/style.d.ts +1 -1
  96. package/build/components/primitives/index.js +1 -1
  97. package/build/index.js +1 -1
  98. package/build/theme/index.js +1 -1
  99. package/package.json +3 -3
  100. package/build/_chunks/chunk-6FL6MBPG.js +0 -1
  101. package/build/_chunks/chunk-DOCBRZUL.js +0 -1
  102. package/build/_chunks/chunk-FEBPVWE2.js +0 -2
  103. package/build/_chunks/chunk-HVNALS2A.js +0 -2
  104. package/build/_chunks/chunk-L3FO2HGB.js +0 -1
  105. package/build/_chunks/chunk-LSQN3X62.js +0 -1
  106. package/build/_chunks/chunk-UKAQCKZ5.js +0 -1
  107. package/build/_chunks/chunk-WBDS6UC4.js +0 -1
  108. package/build/_chunks/chunk-WN5DXLHY.js +0 -1
  109. package/build/_chunks/chunk-ZO7E4JNL.js +0 -15
  110. package/build/components/CountBadge/CountBadge.d.ts +0 -6
  111. package/build/components/CountBadge/CountBadgeAnimated.d.ts +0 -5
  112. package/build/components/CountBadge/index.d.ts +0 -5
  113. package/build/components/CountBadge/index.js +0 -1
  114. package/build/components/CountBadge/style.d.ts +0 -284
  115. package/build/components/CountBadge/type.d.ts +0 -21
@@ -1,2 +1,2 @@
1
- import {kc,Zb,xa as xa$1,jc,ab}from'./chunk-PBMQM3P4.js';import {forwardRef,memo,createElement,useState,useCallback,useMemo,Children,useEffect,useRef}from'react';import J from'@mui/material/Box';import Ma,{circularProgressClasses}from'@mui/material/CircularProgress';import Ba from'@mui/material/ButtonBase';import {styled,useTheme,alpha}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import Aa from'@mui/material/Checkbox';import Da from'@mui/material/FormControlLabel';import Va from'@mui/material/Switch';import Ga from'@mui/material/Typography';import es from'@mui/material/Radio';import fs,{tooltipClasses}from'@mui/material/Tooltip';import Cs from'@mui/material/Skeleton';import ws from'@mui/material/Avatar';import Ms from'@mui/material/Divider';import As from'@mui/material/Collapse';import {createPortal}from'react-dom';import Ye from'@mui/material/SvgIcon';import Nn,{SliderThumb}from'@mui/material/Slider';import Mn from'@mui/material/FormControl';import $n from'@mui/material/InputLabel';import Ln from'@mui/material/Input';import En from'@mui/material/InputBase';import Zn from'@mui/material/Accordion';import Kn from'@mui/material/AccordionDetails';import jn from'@mui/material/AccordionSummary';import qn from'@mui/material/Popper';import li from'@mui/material/DialogActions';import mi from'@mui/material/DialogTitle';import ai from'@mui/material/Dialog';import si from'@mui/material/DialogContent';import {LazyLoadImage}from'react-lazy-load-image-component';import Wi from'@mui/material/Stack';var E="os-shared-Button",k={root:`${E}-root`,content:`${E}-content`,startIcon:`${E}-startIcon`,endIcon:`${E}-endIcon`,loading:`${E}-loading`,loadingSpinner:`${E}-loadingSpinner`},to={sm:{height:24,padding:"8px 16px",fontSize:"10px"},md:{height:32,minWidth:75,padding:"8px 18px",fontSize:"11px"},lg:{height:40,padding:"8px 32px",fontSize:"12px"}},ro={sm:12,md:12,lg:14};var ao=styled(Ba,{shouldForwardProp:e=>e!=="$variant"&&e!=="$size"&&e!=="$fullWidth"&&e!=="$isLoading"&&e!=="$hasIcon"})(({theme:e,$variant:o="primary",$size:t="md",$fullWidth:r,$isLoading:a,$hasIcon:s})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"8px",borderRadius:"4px",lineHeight:"100%",textTransform:"capitalize",whiteSpace:"nowrap",position:"relative",cursor:a?"not-allowed":"pointer",transition:"background-color 0.15s ease, opacity 0.15s ease",...to[t],fontWeight:t==="sm"?e.typography.fontWeightBold:e.typography.fontWeightBolder??700,...r&&{width:"100%"},...s&&!r&&{width:"auto",minWidth:0},...o==="primary"&&{background:e.palette.info.dark,color:e.palette.common.white,"&:hover:not(:disabled)":{backgroundColor:"#1a78bb"}},...o==="secondary"&&{backgroundColor:e.palette.common.white,color:e.palette.grey[700],border:`1px solid ${e.palette.divider}`,"&:hover:not(:disabled)":{backgroundColor:e.palette.grey[100]}},...o==="ghost"&&{backgroundColor:"transparent",color:e.palette.info.dark,"&:hover:not(:disabled)":{backgroundColor:e.palette.info.light}},...o==="danger"&&{backgroundColor:e.palette.error.main,color:e.palette.common.white,"&:hover:not(:disabled)":{backgroundColor:e.palette.error.light}},"&.Mui-disabled":{opacity:.5}}));var no=forwardRef(({children:e,variant:o="primary",size:t="md",isLoading:r=false,startIcon:a,endIcon:s,fullWidth:p=false,disabled:i,className:l,sx:m,...d},c)=>jsxs(ao,{ref:c,className:kc(k.root,l),$variant:o,$size:t,$fullWidth:p,$isLoading:r,$hasIcon:!!a||!!s||r,disabled:i||r,"data-testid":"Button",sx:m,...d,children:[jsxs(J,{component:"span",className:k.content,sx:{display:"inline-flex",alignItems:"center",gap:"inherit",visibility:r?"hidden":"visible"},children:[a&&jsx(J,{component:"span",className:k.startIcon,sx:{display:"inline-flex",alignItems:"center"},children:a}),e,s&&jsx(J,{component:"span",className:k.endIcon,sx:{display:"inline-flex",alignItems:"center"},children:s})]}),r&&jsx(J,{component:"span",className:k.loading,sx:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center"},children:jsx(Ma,{className:k.loadingSpinner,size:ro[t],color:"inherit"})})]}));no.displayName="Button";var io=memo(no);var $a="os-shared-Icon",ee={root:`${$a}-root`};var po=styled("img")(({theme:e})=>({width:e.spacing(2),height:e.spacing(2),verticalAlign:"middle",flexShrink:0}));var lo=forwardRef(({className:e,sx:o,...t},r)=>jsx(po,{className:kc(ee.root,e),sx:o,"data-testid":"Icon",...t,ref:r}));lo.displayName="Icon";var mo=memo(lo);var Te="os-shared-Checkbox",$={root:`${Te}-root`,control:`${Te}-control`,label:`${Te}-label`};var co=({disabled:e})=>{let{palette:o}=useTheme();return jsxs("svg",{width:"11",height:"11",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e?jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:"#FAFBFB",stroke:"#D2D5D8",strokeWidth:"1.2"}):jsx("rect",{width:"12",height:"12",rx:"2.4",fill:o.info.dark}),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:e?"#D2D5D8":o.common.white})]})},fo=({disabled:e})=>{let{palette:o}=useTheme();return jsx("svg",{width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("rect",{x:"0.6",y:"0.6",width:"9.6",height:"9.6",rx:"1.8",fill:e?"#FAFBFB":o.common.white,stroke:e?"#D2D5D8":o.grey[500],strokeWidth:"1.2"})})},yo=({disabled:e})=>{let{palette:o}=useTheme();return jsxs("svg",{width:"11",height:"11",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e?jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:"#FAFBFB",stroke:"#D2D5D8",strokeWidth:"1.2"}):jsx("rect",{width:"12",height:"12",rx:"2.4",fill:o.info.dark}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:e?"#D2D5D8":"#FAFBFB"})]})};var go=styled(Aa)(({theme:e})=>({padding:e.spacing(.5),"&:hover":{backgroundColor:"transparent"}})),Co=styled(Da)(({theme:e})=>({marginLeft:0,gap:e.spacing(.5),"& .MuiFormControlLabel-label":{fontSize:"11px",color:e.palette.text.primary},"& .MuiFormControlLabel-label.Mui-disabled":{color:e.palette.grey[700]}}));var ho=forwardRef(({label:e,labelPlacement:o="end",disabled:t,sx:r,className:a,...s},p)=>{let i=jsx(go,{ref:p,disableRipple:true,disabled:t,checkedIcon:jsx(co,{disabled:t}),icon:jsx(fo,{disabled:t}),indeterminateIcon:jsx(yo,{disabled:t}),"data-testid":"Checkbox",className:kc(e?$.control:$.root,e?void 0:a),sx:e?void 0:r,...s});return e?jsx(Co,{className:kc($.root,a),sx:r,control:i,label:e,labelPlacement:o,disabled:t,componentsProps:{typography:{className:$.label}}}):i});ho.displayName="Checkbox";var bo=memo(ho);var Ha="os-shared-Switch",oe={root:`${Ha}-root`};var So=styled(Va)(({theme:e})=>({width:32.903,height:20,borderRadius:"13px",padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(13px)",color:e.palette.common.white,"& + .MuiSwitch-track":{backgroundColor:e.palette.mode==="dark"?"#2ECA45":"#34C759",opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid",borderColor:e.palette.common.white},"&.Mui-disabled .MuiSwitch-thumb":{color:e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:e.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:16,height:16,filter:"drop-shadow(0px 1.9354851245880127px 0.6451616883277893px rgba(0, 0, 0, 0.06)) drop-shadow(0px 1.9354851245880127px 5.1612935066223145px rgba(0, 0, 0, 0.15))"},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:e.palette.mode==="light"?"#E9E9EA":"#39393D",opacity:1,transition:e.transitions.create(["background-color"],{duration:500})}}));var No=forwardRef(({className:e,sx:o,...t},r)=>jsx(So,{ref:r,className:kc(oe.root,e),sx:o,"data-testid":"Switch",focusVisibleClassName:".Mui-focusVisible",disableRipple:true,...t}));No.displayName="Switch";var ko=memo(No);var Ua="os-shared-Typography",te={root:`${Ua}-root`};var wo=styled(Ga)(({theme:e})=>({color:e.palette.text.primary}));var Io=forwardRef(({variant:e="body1",weight:o,isTruncated:t=false,isUppercase:r=false,className:a,sx:s,...p},i)=>{let l=useTheme(),m={regular:l.typography.fontWeightRegular,medium:l.typography.fontWeightMedium,semibold:l.typography.fontWeightBold,bold:l.typography.fontWeightBolder??700},d=o!==void 0?typeof o=="number"?o:m[o]:void 0,c=Array.isArray(s)?s:[s];return jsx(wo,{ref:i,className:kc(te.root,a),variant:e,sx:[d!==void 0&&{fontWeight:d},t&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r&&{textTransform:"uppercase"},...c],"data-testid":"Typography",...p})});Io.displayName="Typography";var Bo=memo(Io);var Qa="os-shared-RadioButton",re={root:`${Qa}-root`},vo={sm:{iconSize:15,maxWidth:"24px",muiSize:"small"},md:{iconSize:18,maxWidth:"28px",muiSize:"medium"},lg:{iconSize:20,maxWidth:"32px",muiSize:"medium"}};var os=styled("span")(()=>({borderRadius:"50%",width:"12px",height:"12px",boxSizing:"border-box",boxShadow:"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)"})),Po=styled(os)(({theme:e})=>({backgroundColor:e.palette.info.dark,"&::before":{display:"block",width:"12px",height:"12px",backgroundColor:e.palette.info.dark,borderRadius:"50%",backgroundImage:`radial-gradient(${e.palette.common.white},${e.palette.common.white} 28%,transparent 32%)`,content:'""'}})),To=styled(es,{shouldForwardProp:e=>e!=="$iconSize"&&e!=="$checkedColor"&&e!=="$disabledColor"&&e!=="$hoverColor"&&e!=="$maxWidth"})(({theme:e,$iconSize:o,$checkedColor:t,$disabledColor:r,$hoverColor:a,$maxWidth:s})=>({"& .MuiSvgIcon-root":{fontSize:o},maxWidth:s,cursor:"pointer",color:e.palette.grey[500],"&.Mui-checked":{color:t??e.palette.info.dark},...a&&{"&:hover":{backgroundColor:"transparent",color:a}},"&.Mui-disabled":{color:r??"#C7C7CC"}}));function Mo(e="sm"){return vo[e]}var Lo=forwardRef(({size:e="sm",checkedIcon:o,checkedColor:t,disabledColor:r,hoverColor:a,iconSize:s,className:p,sx:i,disableRipple:l=true,...m},d)=>{let c=Mo(e);return jsx(To,{ref:d,className:kc(re.root,p),"data-testid":"RadioButton",size:c.muiSize,disableRipple:l,checkedIcon:o??jsx(Po,{}),$iconSize:s??c.iconSize,$checkedColor:t,$disabledColor:r,$hoverColor:a,$maxWidth:c.maxWidth,sx:i,...m})});Lo.displayName="RadioButton";var Fo=memo(Lo);var ae="os-shared-CircularProgress",L={root:`${ae}-root`,progress:`${ae}-progress`,labelOverlay:`${ae}-labelOverlay`,labelText:`${ae}-labelText`};var Ro=styled(Ma)(({theme:e})=>({color:e.palette.common.blue??"#147DC5",background:alpha(e.palette.info.dark,.05),borderRadius:"50%",[`& .${circularProgressClasses.circle}`]:{strokeLinecap:"round"}})),Ao=styled(J)(()=>({position:"relative",display:"inline-flex"})),Do=styled(J)(()=>({top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"})),Eo=styled(Ga)(({theme:e})=>({fontSize:e.typography.fontSize,fontWeight:e.typography.fontWeightBolder??700,color:"#3B4152"}));var Wo=forwardRef(({variant:e="indeterminate",hasLabel:o=true,value:t,className:r,sx:a,...s},p)=>{let i=e==="determinate"&&o;return jsxs(Ao,{className:kc(L.root,r),sx:a,"data-testid":"CircularProgress",children:[jsx(Ro,{ref:p,variant:e,value:t,className:L.progress,...s}),i&&jsx(Do,{className:L.labelOverlay,children:jsx(Eo,{className:L.labelText,variant:"caption",color:"text.secondary",children:`${Math.round(t??0)}%`})})]})});Wo.displayName="CircularProgress";var Ho=memo(Wo);var ds="os-shared-Tooltip",ne={wrapper:`${ds}-wrapper`};var Zo=styled(({className:e,...o})=>createElement(fs,{...o,classes:{popper:e}}))(({theme:e})=>({zIndex:999999,[`& .${tooltipClasses.arrow}`]:{"&:before":{border:`0.97px solid ${alpha(e.palette.text.primary,.13)}`},color:e.palette.common.white},[`& .${tooltipClasses.tooltip}`]:{backgroundColor:e.palette.common.white,color:e.palette.text.secondary,boxShadow:e.shadows[1],fontSize:12,border:`0.97px solid ${alpha(e.palette.text.primary,.13)}`,marginBottom:"7px !important"}}));function jo({className:e,title:o,placement:t="top",children:r,wrapperProps:a,sx:s,...p}){return jsx(Zo,{className:e,title:o,placement:t,arrow:true,sx:s,...p,children:jsx(J,{display:"flex",alignItems:"center",className:ne.wrapper,...a,children:r})})}jo.displayName="Tooltip";var Uo=memo(jo);var gs="os-shared-Skeleton",ie={root:`${gs}-root`},Go="rounded",_o=16;var Xo=styled(Cs)(()=>({}));var Yo=forwardRef(({className:e,sx:o,variant:t=Go,height:r=_o,...a},s)=>jsx(Xo,{ref:s,className:kc(ie.root,e),sx:o,"data-testid":"Skeleton",variant:t,height:r,...a}));Yo.displayName="Skeleton";var qo=memo(Yo);var ks="os-shared-Avatar",pe={root:`${ks}-root`},Jo={xs:{dimension:20,fontSize:"9px"},sm:{dimension:28,fontSize:"11px"},md:{dimension:36,fontSize:"14px"},lg:{dimension:48,fontSize:"18px"},xl:{dimension:64,fontSize:"24px"}};var Qo=styled(ws,{shouldForwardProp:e=>e!=="$size"})(({theme:e,$size:o="md"})=>{let{dimension:t,fontSize:r}=Jo[o];return {width:t,height:t,fontSize:r,fontWeight:e.typography.fontWeightBold,backgroundColor:e.palette.info.dark,color:e.palette.common.white}});var et=forwardRef(({className:e,sx:o,size:t="md",shape:r="circular",...a},s)=>jsx(Qo,{ref:s,className:kc(pe.root,e),sx:o,"data-testid":"Avatar",$size:t,variant:r,...a}));et.displayName="Avatar";var ot=memo(et);var Ts="os-shared-Divider",le={root:`${Ts}-root`};var tt=styled(Ms)(()=>({}));var rt=forwardRef(({className:e,sx:o,orientation:t="horizontal",...r},a)=>jsx(tt,{ref:a,className:kc(le.root,e),sx:o,"data-testid":"Divider",orientation:t,...r}));rt.displayName="Divider";var at=memo(rt);var Rs="os-shared-Collapse",me={root:`${Rs}-root`},st=true,nt=300;var it=styled(As)(()=>({}));var pt=forwardRef(({className:e,sx:o,children:t,unmountOnExit:r=st,timeout:a=nt,...s},p)=>jsx(it,{ref:p,className:kc(me.root,e),sx:o,"data-testid":"Collapse",unmountOnExit:r,timeout:a,...s,children:t}));pt.displayName="Collapse";var lt=memo(pt);var Vs="os-shared-Badge",de={root:`${Vs}-root`},mt={primary:"#1976d2",secondary:"#f50057",neutral:"#656565",gray:"#CFCFCF",orange:"#FFD503"},dt=["primary","secondary","neutral","dark"];var Ks={default:e=>e.palette.info.main,inactive:e=>e.palette.grey[100],active:e=>alpha(e.palette.text.primary,.1),dark:e=>e.palette.info.dark,red:e=>e.palette.error.light},js={default:e=>e.palette.common.white,inactive:e=>e.palette.text.primary,active:e=>e.palette.common.white,dark:e=>e.palette.common.white};function Us(e,o){let t=mt[e];return t||(Ks[e]?.(o)??o.palette.common.white)}function Gs(e,o){return dt.includes(e)?o.palette.common.white:js[e]?.(o)??o.palette.common.white}var ct=styled("span",{shouldForwardProp:e=>!["$color","$compact","$round","$pointer"].includes(e)})(({theme:e,$color:o="default",$compact:t,$round:r,$pointer:a})=>({paddingLeft:t?"0.16056rem":r?"0.275rem":"8px",paddingRight:t?"0.16056rem":r?"0.275rem":"8px",borderRadius:t?e.spacing(.5):e.spacing(2),backgroundColor:Us(o,e),color:Gs(o,e),fontSize:"0.6rem",fontWeight:e.typography.fontWeightBold,overflow:"hidden",height:t?"12px":"16px",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:a?"pointer":"auto"}));var ft=forwardRef(({className:e,sx:o,color:t="default",compact:r,round:a,pointer:s,children:p,...i},l)=>jsx(ct,{ref:l,className:kc(de.root,e),sx:o,"data-testid":"Badge",$color:t,$compact:r,$round:a,$pointer:s,...i,children:p}));ft.displayName="Badge";var yt=memo(ft);var qs="os-shared-Backdrop",ce={root:`${qs}-root`};var ut=styled(J)(({theme:e})=>({position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:999,backgroundColor:alpha(e.palette.common.black,.3)}));var xt=forwardRef(({className:e,sx:o,open:t=true,onClose:r,onClick:a,...s},p)=>{if(!t)return null;let i=l=>{r?.(),a?.(l);};return createPortal(jsx(ut,{ref:p,className:kc(ce.root,e),sx:o,"data-testid":"Backdrop",onClick:i,...s}),document.body)});xt.displayName="Backdrop";var gt=memo(xt);var fe="os-shared-CopyButton",B={root:`${fe}-root`,icon:`${fe}-icon`,copyIcon:`${fe}-copyIcon`,copiedIcon:`${fe}-copiedIcon`},Ct=2e3,ht=200;var Nt=e=>{let{palette:o}=useTheme();return jsx(Ye,{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:o.text.primary,stroke:o.common.white,strokeWidth:"0.15"})})})},kt=e=>{let{palette:o}=useTheme();return jsx(Ye,{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:o.success.main}),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:o.common.white})]})})};var It=styled("span")({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:16,height:16,flexShrink:0,cursor:"pointer",verticalAlign:"middle"}),Fe=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 ${ht}ms ease`}));var Bt=forwardRef(({className:e,sx:o,text:t,feedbackMs:r=Ct,onClick:a,...s},p)=>{let[i,l]=useState(false),m=d=>{d.stopPropagation(),ab(t),l(true),setTimeout(()=>l(false),r),a?.(d);};return jsxs(It,{ref:p,className:kc(B.root,e),sx:o,role:"button",tabIndex:0,"data-testid":"CopyButton",onClick:m,...s,children:[jsx(Fe,{className:kc(B.icon,B.copyIcon),$visible:!i,children:jsx(Nt,{})}),jsx(Fe,{className:kc(B.icon,B.copiedIcon),$visible:i,children:jsx(kt,{})})]})});Bt.displayName="CopyButton";var vt=memo(Bt);var ze="os-shared-ProgressBar",H={root:`${ze}-root`,fill:`${ze}-fill`,text:`${ze}-text`};var Tt=styled(J,{shouldForwardProp:e=>!["$value","$isDecimal"].includes(e)})(({theme:e,$value:o,$isDecimal:t})=>({width:`${o}%`,minWidth:o>=10?"28px":"24px",height:"18px",borderRadius:"50px",background:e.palette.background.gradient?.darkShadedBlue??"linear-gradient(256deg, #147DC5 0%, #3DA6E1 100%)",display:"flex",alignItems:"center",justifyContent:o>10?"flex-end":"center",paddingInlineEnd:o>10?"2px":"0px",...o===0&&{background:alpha(e.palette.text.primary,26/255)},...t&&{minWidth:o>=10?"40px":"36px"}})),Mt=styled(J,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:o})=>({height:"14px",maxWidth:"36px",minWidth:"20px",background:alpha(e.palette.text.primary,26/255),borderRadius:"50px",display:"flex",alignItems:"center",justifyContent:"center",padding:0,...o===0&&{background:alpha(e.palette.text.primary,0)}})),$t=styled(Ga,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:o})=>({fontSize:"8px",fontWeight:e.typography.fontWeightBolder??700,color:e.palette.common.white,padding:"2px 4px",...o===0&&{color:alpha(e.palette.grey.A100,.5)}}));var Ft=forwardRef(({className:e,sx:o,value:t},r)=>{let a=!Number.isInteger(t);return jsx(Tt,{ref:r,className:kc(H.root,e),sx:o,"data-testid":"ProgressBar",$value:t,$isDecimal:a,children:jsx(Mt,{className:H.fill,$value:t,children:jsxs($t,{className:H.text,$value:t,variant:"caption",children:[Number(t.toFixed(2)),"%"]})})})});Ft.displayName="ProgressBar";var zt=memo(Ft);var xe="os-shared-Chip",v={root:`${xe}-root`,text:`${xe}-text`,copyButton:`${xe}-copyButton`,icon:`${xe}-icon`},Rt=2e3,Ae=150;var Et=e=>{let{palette:o}=useTheme();return jsx(Ye,{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:o.text.primary,stroke:o.common.white,strokeWidth:"0.15"})})})},Wt=e=>{let{palette:o}=useTheme();return jsx(Ye,{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:o.success.main}),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:o.common.white})]})})};var Ce=styled(J,{shouldForwardProp:e=>!["$variant","$hasIcon","$isSelected","$disableAnimation"].includes(e)})(({theme:e,$variant:o="text",$hasIcon:t,$isSelected:r,$disableAnimation:a})=>({display:"inline-flex",alignItems:"center",justifyContent:t?"flex-start":"center",gap:t?e.spacing(1):void 0,lineHeight:"normal",borderRadius:"30px",whiteSpace:"nowrap",boxSizing:"border-box",border:`1px solid ${e.palette.divider}`,backgroundColor:e.palette.background.paper,...o==="text"&&{padding:`${e.spacing(.75)} ${e.spacing(1)}`,minHeight:"30px"},...o==="circular"&&{minHeight:24,minWidth:24,padding:e.spacing(.5),aspectRatio:"1 / 1"},...o==="pill-icon"&&{minHeight:24,minWidth:36,padding:`${e.spacing(.25)} ${e.spacing(.75)}`},...r&&{boxShadow:`${e.palette.common.white} 7px 0px 8px 2px`},...a&&{transition:"none !important",animation:"none !important",transform:"none !important","& *":{transition:"none !important",animation:"none !important",transform:"none !important"}}})),De=styled(J)({textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"1 1 auto"}),Vt=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 ${Ae}ms ease`,"&:hover":{opacity:1}})),Ee=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 ${Ae}ms ease`}));var Ot=forwardRef(({className:e,sx:o,children:t,icon:r,variant:a="text",disabled:s=false,isSelected:p=false,copyText:i,unknownText:l="Unknown",disableAnimation:m=false,...d},c)=>{let[y,u]=useState(false),g=x=>{x.stopPropagation(),i&&(ab(i),u(true),setTimeout(()=>u(false),Rt));},C={$variant:a,$hasIcon:r!=null,$isSelected:p,$disableAnimation:m},f=kc(v.root,e,`CustomVariant_${a}`),N=[s?{cursor:"not-allowed",opacity:.5}:{},...Array.isArray(o)?o:o?[o]:[]];return t?i?jsxs(Ce,{ref:c,className:f,sx:[{gap:"4px"},...N],"data-testid":"Chip",...C,...d,children:[jsx(De,{className:v.text,"data-is-arabic":typeof t=="string"&&Zb(t),children:t}),jsxs(Vt,{className:v.copyButton,role:"button",tabIndex:0,"aria-label":y?"copied":"copy","data-testid":"ChipCopyButton",$copied:y,onClick:g,children:[jsx(Ee,{$visible:!y,children:jsx(Et,{})}),jsx(Ee,{$visible:y,children:jsx(Wt,{})})]})]}):jsxs(Ce,{ref:c,className:f,sx:N,"data-testid":"Chip",...C,...d,children:[r!=null&&jsx("span",{className:v.icon,children:r}),jsx(De,{className:v.text,children:t})]}):jsx(Ce,{className:f,sx:N,"data-testid":"Chip",...C,...d,children:l})});Ot.displayName="Chip";var Zt=memo(Ot);var He="os-shared-Slider",T={root:`${He}-root`,thumb:`${He}-thumb`,thumbIcon:`${He}-thumbIcon`},Ve=["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(", ");var Kt=e=>{let{palette:o}=useTheme();return jsx(Ye,{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:o.grey[700],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M2.44531 0.460388L2.44531 6.59891",stroke:o.grey[700],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M4.4375 0.460388L4.4375 6.59891",stroke:o.grey[700],strokeWidth:"0.920779",strokeLinecap:"round"})]})})};var jt=styled(Nn)(({theme:e})=>({color:e.palette.info.dark,height:8,padding:0,"& .MuiSlider-rail":{backgroundColor:"#CFCFCF",opacity:1,left:0},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:e.palette.common.white,border:"none",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:Ve,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:Ve}},[`& .${T.thumbIcon}`]:{width:"5px",height:"8px",pointerEvents:"none"}}));function Pn({children:e,className:o,...t}){return jsxs(SliderThumb,{className:kc(T.thumb,o),...t,children:[e,jsx(Kt,{className:T.thumbIcon})]})}var Ut=forwardRef(({className:e,sx:o,value:t,min:r,max:a,step:s,disabled:p,onChange:i,slots:l,...m},d)=>{let c=useCallback((y,u)=>{i(u);},[i]);return jsx(jt,{ref:d,className:kc(T.root,e),sx:o,"data-testid":"Slider",value:t,min:r,max:a,step:s,disabled:p,onChange:c,...m,slots:{thumb:Pn,...l}})});Ut.displayName="Slider";var Gt=memo(Ut);var Oe="os-shared-Input",O={root:`${Oe}-root`,label:`${Oe}-label`,input:`${Oe}-input`},Xt={sm:28,md:32,labelled:40},Yt=["e","E","+","-"],qt=/^[0-9.]$/,Jt=xa$1();var Qt=(e,o)=>Xt[e?"labelled":o],er=styled(Ln,{shouldForwardProp:e=>!["$hasLabel","$hideArrows","$size"].includes(e)})(({theme:e,$hasLabel:o=false,$hideArrows:t=false,$size:r="md"})=>({height:Qt(o,r),padding:o?"8px":"0 8px",border:"none",borderRadius:"inherit",fontSize:"11px",fontWeight:e.typography.fontWeightMedium,color:e.palette.text.primary,backgroundColor:"transparent",display:"flex",alignItems:o?"stretch":"center","&.Mui-disabled":{color:e.palette.grey[700]},"& input":{paddingTop:"4px",paddingBottom:"4px"},"& input::placeholder":{color:e.palette.grey[700],fontWeight:e.typography.fontWeightRegular,opacity:o?0:1,...o&&{transition:"opacity 0.2s ease"}},"& input:-webkit-autofill, & input:-webkit-autofill:hover, & input:-webkit-autofill:focus":{WebkitTextFillColor:e.palette.text.primary,caretColor:e.palette.text.primary,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},...o&&{marginTop:0,"& input":{margin:"0px !important",padding:"0px !important",paddingTop:"10px !important",lineHeight:"130%"},"& input:focus::placeholder":{opacity:"1 !important"}},...t&&{"& 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}}})),or=styled($n)(({theme:e})=>({fontSize:"11px",color:`${e.palette.grey[700]} !important`})),tr=styled(Mn,{shouldForwardProp:e=>!["$hasLabel","$size"].includes(e)})(({theme:e,disabled:o,error:t,fullWidth:r,$hasLabel:a=false,$size:s="md"})=>({position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",height:Qt(a,s),margin:0,border:`1px solid ${t?e.palette.error.main:e.palette.divider}`,borderRadius:"4px",backgroundColor:o?e.palette.grey[100]:e.palette.common.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?e.palette.error.main:e.palette.grey[400]},"& .MuiFormLabel-asterisk":{color:e.palette.error.light},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:"8px",fontSize:"10px",fontWeight:e.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, -1.5px) scale(0.75) !important",color:`${e.palette.grey[700]} !important`},"& .MuiInput-root":{flex:1,marginTop:"0 !important"}}));var ar=forwardRef(({label:e,size:o="md",error:t=false,disabled:r=false,fullWidth:a=false,placeholder:s,hideArrows:p=false,type:i,id:l,className:m,sx:d,onKeyDown:c,onWheel:y,...u},g)=>{let C=!!e,f=i==="number",S=x=>{let D=x.metaKey||x.ctrlKey||x.altKey,Pe=x.key.length===1;(Yt.includes(x.key)||Jt&&Pe&&!D&&!qt.test(x.key))&&x.preventDefault(),c?.(x);},N=x=>{x.target instanceof HTMLElement&&x.target.blur(),y?.(x);};return jsxs(tr,{className:kc(O.root,m),sx:d,error:t,disabled:r,fullWidth:a,"data-testid":"Input",$hasLabel:C,$size:o,children:[C&&jsx(or,{className:O.label,htmlFor:l,children:e}),jsx(er,{id:l,inputRef:g,className:O.input,type:i,error:t,disabled:r,placeholder:s??void 0,"aria-invalid":t||void 0,disableUnderline:true,fullWidth:true,$hasLabel:C,$hideArrows:p,$size:o,onKeyDown:f?S:c,onWheel:f?N:y,...u})]})});ar.displayName="Input";var sr=memo(ar);var Ke="os-shared-Textarea",Z={root:`${Ke}-root`,label:`${Ke}-label`,textarea:`${Ke}-textarea`},je=20;var nr=styled(En,{shouldForwardProp:e=>!["$error","$hasLabel","$minRows"].includes(e)})(({theme:e,$hasLabel:o=false,$minRows:t=3})=>({border:"none",borderRadius:"inherit",padding:o?"8px":"8px 12px",fontSize:"11px",fontWeight:e.typography.fontWeightMedium,lineHeight:1.5,color:e.palette.text.primary,backgroundColor:"transparent",alignItems:"flex-start",width:"100%","&.Mui-disabled":{color:e.palette.grey[700]},"& textarea":{resize:"vertical",minHeight:`${Math.max(t*je,60)}px`,padding:0},"& textarea::placeholder":{color:e.palette.grey[700],fontWeight:e.typography.fontWeightRegular,opacity:o?0:1,...o&&{transition:"opacity 0.2s ease"}},"& textarea:-webkit-autofill, & textarea:-webkit-autofill:hover, & textarea:-webkit-autofill:focus":{WebkitTextFillColor:e.palette.text.primary,caretColor:e.palette.text.primary,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},...o&&{marginTop:0,"& textarea":{margin:"0px !important",padding:"0px !important",paddingTop:"10px !important",lineHeight:"130%"},"& textarea:focus::placeholder":{opacity:"1 !important"}}})),ir=styled($n)(({theme:e})=>({fontSize:"11px",color:`${e.palette.grey[700]} !important`})),pr=styled(Mn,{shouldForwardProp:e=>!["$hasLabel","$minRows"].includes(e)})(({theme:e,disabled:o,error:t,fullWidth:r,$hasLabel:a=false,$minRows:s=3})=>({position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",minHeight:a?40+s*je:void 0,margin:0,border:`1px solid ${t?e.palette.error.main:e.palette.divider}`,borderRadius:"4px",backgroundColor:o?e.palette.grey[100]:e.palette.common.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?e.palette.error.main:e.palette.grey[400]},"& .MuiFormLabel-asterisk":{color:e.palette.error.light},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:"8px",fontSize:"10px",fontWeight:e.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, -1.5px) scale(0.75) !important",color:`${e.palette.grey[700]} !important`},"& .MuiInputBase-root":{flex:1,marginTop:"0 !important"}}));var mr=forwardRef(({label:e,error:o=false,disabled:t=false,fullWidth:r=false,placeholder:a,minRows:s=3,maxRows:p,id:i,className:l,sx:m,...d},c)=>{let y=!!e;return jsxs(pr,{className:kc(Z.root,l),sx:m,error:o,disabled:t,fullWidth:r,"data-testid":"Textarea",$hasLabel:y,$minRows:s,children:[y&&jsx(ir,{className:Z.label,htmlFor:i,children:e}),jsx(nr,{id:i,inputRef:c,className:Z.textarea,multiline:true,minRows:s,maxRows:p,disabled:t,placeholder:a??void 0,"aria-invalid":o||void 0,fullWidth:true,$error:o,$hasLabel:y,$minRows:s,...d})]})});mr.displayName="Textarea";var dr=memo(mr);var F="os-shared-Accordion",b={root:`${F}-root`,summary:`${F}-summary`,content:`${F}-content`,labelStartAdornment:`${F}-labelStartAdornment`,labelContent:`${F}-labelContent`,labelEndAdornment:`${F}-labelEndAdornment`,expandIcon:`${F}-expandIcon`};var fr=()=>{let{palette:e}=useTheme();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:e.text.primary,stroke:e.text.primary,strokeWidth:"0.1"})})};var ur=styled(Zn)(({theme:e,square:o})=>({overflow:"hidden",border:`1px solid ${e.palette.divider}`,...!o&&{borderRadius:e.shape.borderRadius},margin:0,background:e.palette.background.paper,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0},"&.Mui-disabled":{opacity:.5,pointerEvents:"none"}})),xr=styled(jn)(({theme:e})=>({background:e.palette.grey.A50??"#fbfbfb",minHeight:"40px",height:"40px",padding:"10px","&.Mui-expanded":{minHeight:"40px",height:"40px"},"& .MuiAccordionSummary-content":{margin:0,display:"flex",flexDirection:"row",alignItems:"center",flexGrow:1,minWidth:0,gap:10},"& .MuiAccordionSummary-expandIconWrapper":{marginLeft:8}})),gr=styled(Kn)(({theme:e})=>({padding:0,borderTop:`1px solid ${e.palette.divider}`})),Cr=styled(J)({display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:"rotate(0deg)"}),hr=styled(J)({minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"});var Nr=forwardRef(({expanded:e,defaultExpanded:o=false,onChange:t,label:r,content:a,labelStartAdornment:s,labelEndAdornment:p,slotProps:i={},disabled:l=false,expandIcon:m,className:d,sx:c,...y},u)=>{let g=e!==void 0,[C,f]=useState(o),S=g?e:C,N=(ji,Qe)=>{g||f(Qe),t?.(Qe);},{showArrow:x=true,...D}=i.label??{},{className:Pe,sx:Na,...ka}=i.root??{},wa=m??(x?jsx(Cr,{component:"span",className:b.expandIcon,children:jsx(fr,{})}):null),Ia=jsxs(Fragment,{children:[s!=null&&jsx(J,{component:"span",className:b.labelStartAdornment,...i.labelStartAdornment,sx:jc({flexShrink:0},i.labelStartAdornment?.sx),children:s}),jsx(hr,{component:"span",className:b.labelContent,...i.labelContent,sx:i.labelContent?.sx,children:r}),p!=null&&jsx(J,{component:"span",className:b.labelEndAdornment,...i.labelEndAdornment,sx:jc({flexShrink:0,marginLeft:"auto"},i.labelEndAdornment?.sx),children:p})]});return jsxs(ur,{ref:u,"data-testid":"Accordion",disabled:l,expanded:S,onChange:N,className:kc(b.root,d,Pe),sx:jc(c??{},Na),...ka,...y,children:[jsx(xr,{className:b.summary,expandIcon:wa,"aria-expanded":S,...D,children:Ia}),jsx(gr,{className:b.content,...i.content,children:a})]})});Nr.displayName="Accordion";var kr=memo(Nr);var wr="os-shared-Menu",_={popper:`${wr}-popper`,panel:`${wr}-panel`},Ir=12;var vr=styled(qn)({}),Pr=styled(J,{shouldForwardProp:e=>e!=="$showShadow"})(({theme:e,$showShadow:o})=>({borderRadius:e.spacing(.5),background:e.palette.background.default,width:"max-content",cursor:"pointer",boxShadow:e.shadows[11],display:"flex",flexDirection:"column",overflowY:"auto",maxHeight:"432px","&:focus":{outline:"none"},".menu-item + .menu-item":{borderTop:`1px solid ${e.palette.divider}`},"&::after":{content:o?'""':"none",width:"100%",height:"34px",position:"sticky",bottom:0,pointerEvents:"none",background:`linear-gradient(180deg, rgba(255,255,255,0) 0%, ${e.palette.common.white} 100%)`}}));var Mr=forwardRef(({open:e,anchorEl:o,children:t,placement:r,popperSx:a,panelProps:s,className:p,sx:i,...l},m)=>{let[d,c]=useState(false),u=useMemo(()=>Children.count(t),[t])>Ir&&d,{onScroll:g,className:C,sx:f,...S}=s??{},N=useCallback(D=>{c((D.currentTarget.scrollTop??0)>0),g?.(D);},[g]),x=kc(_.panel,C,"MuiPopper-dropdown");return jsx(vr,{ref:m,className:kc(_.popper,p),"data-testid":"Menu",open:e,anchorEl:o,placement:r??"bottom-start",sx:a,...l,children:jsx(Pr,{$showShadow:u,onScroll:N,className:x,sx:jc(i??{},f),...S,children:t})})});Mr.displayName="Menu";var $r=memo(Mr);var be="os-shared-Dialog",R={root:`${be}-root`,title:`${be}-title`,content:`${be}-content`,actions:`${be}-actions`};var Fr=styled(ai)(({theme:e})=>({"& .MuiDialog-paper":{boxShadow:e.shadows[13],borderRadius:e.spacing(1)},"& .MuiModal-backdrop":{background:alpha(e.palette.common.black,.2)}})),zr=styled(si)(({theme:e})=>({padding:e.spacing(2)}));var Rr=forwardRef(({heading:e,actions:o,children:t,onClose:r,open:a,className:s,sx:p,...i},l)=>jsxs(Fr,{ref:l,"data-testid":"Dialog",open:a,onClose:r,className:kc(R.root,s),sx:p,...i,children:[e&&jsx(mi,{className:R.title,children:e}),jsx(zr,{className:R.content,children:t}),o&&jsx(li,{className:R.actions,children:o})]}));Rr.displayName="Dialog";var Ar=memo(Rr);var Se="os-shared-MenuItem",M={root:`${Se}-root`,indicator:`${Se}-indicator`,content:`${Se}-content`,disabled:`${Se}-disabled`},A={unchecked:"unchecked",checked:"checked",indeterminate:"indeterminate"};var Er=()=>{let{palette:e}=useTheme();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:e.info.dark}),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:e.common.white})]})},Wr=()=>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"})}),Hr=()=>{let{palette:e}=useTheme();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:e.info.dark,stroke:e.info.dark,strokeWidth:"1.2"}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:"#FAFBFB"})]})};var Zr=styled(J,{shouldForwardProp:e=>e!=="$isDisabled"})(({theme:e,$isDisabled:o=false})=>({padding:e.spacing(1),position:"relative",display:"flex",alignItems:"center",gap:"8px",textTransform:"capitalize",cursor:o?"not-allowed":"pointer",flex:1,fontSize:e.typography.subtitle1.fontSize,opacity:o?.5:1,color:e.palette.text.primary})),_e=styled("span")({width:14,height:14,flexShrink:0,pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center","& svg":{display:"block"}});function ui(e,o){return o?A.indeterminate:e?A.checked:A.unchecked}var xi={[A.unchecked]:Wr,[A.checked]:Er,[A.indeterminate]:Hr};function gi(e,o,t){if(e===null)return null;if(e!==void 0)return jsx(_e,{className:M.indicator,"aria-hidden":true,children:e});let r=ui(o,t),a=xi[r];return jsx(_e,{className:M.indicator,"aria-hidden":true,children:jsx(a,{})})}var Kr=forwardRef(({isSelected:e=false,isDisabled:o=false,isIndeterminate:t=false,startAdornment:r,onClick:a,children:s,className:p,sx:i,...l},m)=>{let d=kc(M.root,"menu-item",o&&M.disabled,p);return jsxs(Zr,{ref:m,"data-testid":"MenuItem",className:d,sx:i,onClick:o?void 0:a,$isDisabled:o,...l,children:[gi(r,e,t),jsx("span",{className:M.content,children:s})]})});Kr.displayName="MenuItem";var jr=memo(Kr);var Ur="os-shared-ToggleButtons",X={root:`${Ur}-root`,button:`${Ur}-button`};var Xr=styled(J)(({theme:e})=>({backgroundColor:e.palette.action.hover,display:"flex",alignItems:"center",gap:"0.5px",padding:"1.5px",borderRadius:"3px"})),bi=e=>({backgroundColor:e.palette.common.white,boxShadow:`0px 0px 3px 0px ${alpha(e.palette.common.black,.2)}`}),Yr=styled(J,{shouldForwardProp:e=>e!=="$isActive"})(({theme:e,$isActive:o=false})=>({fontSize:8,fontWeight:e.typography.fontWeightMedium,width:21,height:21,borderRadius:"1.5px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"background-color 0.2s ease, box-shadow 0.2s ease",...o?bi(e):{backgroundColor:"transparent",boxShadow:"none"}}));function Jr({options:e,activeKey:o,onChange:t,containerProps:r,buttonProps:a,id:s,className:p,sx:i},l){let{className:m,sx:d,...c}=r??{},y=kc(X.root,p,m);return jsx(Xr,{ref:l,id:s,"data-testid":"ToggleButtons",className:y,sx:jc(i??{},d),...c,children:e.map(u=>jsx(Yr,{className:X.button,$isActive:o===u.key,onClick:()=>t(u.key),...a,children:u.content},u.key))})}var ki=forwardRef(Jr);Jr.displayName="ToggleButtons";var Qr=memo(ki);var wi="os-shared-LazyImage",ke={root:`${wi}-root`},ea={display:"flex",justifyContent:"center",alignItems:"center"},we={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 oa=styled(J)({display:"inline-flex",justifyContent:"center",alignItems:"center"});function Ie(e){return e!=null&&e in we}var Li=LazyLoadImage,ra=forwardRef(({effect:e,wrapperProps:o,id:t,className:r,sx:a,placeholderSrc:s,...p},i)=>{let[l,m]=useState(Ie(e));if(useEffect(()=>{if(!Ie(e)){m(false);return}m(true),we[e]().finally(()=>{m(false);});},[e]),l)return null;let{className:d,sx:c,style:y,...u}=o??{},g=Ie(e)||!!s||y!=null;return jsx(oa,{component:"span",...u,className:kc(ke.root,d??r),sx:c!=null?jc(a??{},c):a,children:jsx(Li,{...p,ref:i,effect:e,placeholderSrc:s,id:t,"data-testid":"LazyImage",wrapperProps:g?{style:{...ea,...y}}:void 0})})});ra.displayName="LazyImage";var aa=memo(ra);var Xe="os-shared-FieldFeedback",j={root:`${Xe}-root`,icon:`${Xe}-icon`,message:`${Xe}-message`};var na=({severity:e="error",...o})=>{let{palette:t}=useTheme(),r=e==="warning"?t.custom?.[500]??"#FF7A00":t.error.light;return jsx(Ye,{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:r})})})},ia=e=>jsx(Ye,{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:"#39953E"})})}),pa=e=>{let{palette:o}=useTheme();return jsx(Ye,{sx:{width:12,height:12},...e,children:jsx("svg",{width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",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:o.text.primary,strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})})})};function la(e,o){let t=e.palette.custom?.[500]??"#FF7A00";return {warning:{backgroundColor:alpha(t,.15),textColor:t},success:{backgroundColor:alpha(e.palette.success.dark,.15),textColor:e.palette.success.dark},info:{backgroundColor:alpha(e.palette.info.dark,.12),textColor:e.palette.info.dark},error:{backgroundColor:alpha(e.palette.error.main,.15),textColor:e.palette.error.main}}[o]}var ma=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:o})=>{let{backgroundColor:t}=la(e,o);return {display:"flex",alignItems:"flex-start",gap:"4px",minHeight:"32px",padding:"8px 12px",background:t,borderRadius:"0 0 4px 4px"}}),da=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:o})=>{let{textColor:t}=la(e,o);return {fontSize:"10px",lineHeight:"16px",display:"block",color:t,wordBreak:"break-word"}}),ca=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 Ri(e){return e!=null&&e!==""}function Ai(e){switch(e){case "success":return jsx(ia,{});case "info":return jsx(pa,{});case "error":case "warning":return jsx(na,{severity:e})}}var fa=forwardRef(({type:e="error",message:o,icon:t,className:r,sx:a},s)=>{if(!Ri(o))return null;let p=e;return jsxs(ma,{ref:s,"data-testid":"FieldFeedback",className:kc(j.root,r),sx:a,$feedbackType:p,children:[t??jsx(ca,{className:j.icon,children:Ai(p)}),jsx(da,{className:j.message,$feedbackType:p,children:o})]})});fa.displayName="FieldFeedback";var ya=memo(fa);var Ei="os-shared-ScrollLoader",ve={root:`${Ei}-root`},ua=50;var xa=styled(Wi)({overflow:"auto",height:"100%",maxHeight:"100%"});function Je(e,o=ua){return e.scrollHeight-(e.scrollTop+e.clientHeight)<=o}var ba=forwardRef(({loadMoreItems:e,hasMore:o,isLoading:t=false,isFetchingNextPage:r,children:a,className:s,sx:p,id:i,...l},m)=>{let[d,c]=useState(false),y=useRef(e),u=useRef(null);y.current=e;let g=useCallback(()=>{o&&!r&&y.current();},[o,r]),C=useCallback(()=>{let f=u.current;f&&Je(f)&&g();},[g]);return useEffect(()=>{let f=u.current;if(f)return f.addEventListener("scroll",C),()=>f.removeEventListener("scroll",C)},[C]),useEffect(()=>{let f=u.current;if(!f||t||d)return;let S=window.setTimeout(()=>{c(true),Je(f)&&g();},1e3);return ()=>window.clearTimeout(S)},[t,g,d]),jsx(xa,{ref:f=>{u.current=f,typeof m=="function"?m(f):m&&(m.current=f);},id:i,"data-testid":"ScrollLoader",className:kc(ve.root,s),sx:p,...l,children:a})});ba.displayName="ScrollLoader";var Sa=memo(ba);
1
+ import {kc,Zb,xa as xa$1,jc,ab}from'./chunk-PBMQM3P4.js';import {forwardRef,memo,createElement,useState,useCallback,useMemo,Children,useEffect,useRef}from'react';import J from'@mui/material/Box';import Ma,{circularProgressClasses}from'@mui/material/CircularProgress';import Ba from'@mui/material/ButtonBase';import {styled,useTheme,alpha}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import Aa from'@mui/material/Checkbox';import Da from'@mui/material/FormControlLabel';import Va from'@mui/material/Switch';import Ga from'@mui/material/Typography';import es from'@mui/material/Radio';import fs,{tooltipClasses}from'@mui/material/Tooltip';import Cs from'@mui/material/Skeleton';import ws from'@mui/material/Avatar';import Ms from'@mui/material/Divider';import As from'@mui/material/Collapse';import {createPortal}from'react-dom';import Ye from'@mui/material/SvgIcon';import Nn,{SliderThumb}from'@mui/material/Slider';import Mn from'@mui/material/FormControl';import $n from'@mui/material/InputLabel';import Ln from'@mui/material/Input';import En from'@mui/material/InputBase';import Zn from'@mui/material/Accordion';import Kn from'@mui/material/AccordionDetails';import jn from'@mui/material/AccordionSummary';import qn from'@mui/material/Popper';import li from'@mui/material/DialogActions';import mi from'@mui/material/DialogTitle';import ai from'@mui/material/Dialog';import si from'@mui/material/DialogContent';import {LazyLoadImage}from'react-lazy-load-image-component';import Wi from'@mui/material/Stack';var E="os-shared-Button",k={root:`${E}-root`,content:`${E}-content`,startIcon:`${E}-startIcon`,endIcon:`${E}-endIcon`,loading:`${E}-loading`,loadingSpinner:`${E}-loadingSpinner`},to={sm:{height:24,padding:"8px 16px",fontSize:"10px"},md:{height:32,minWidth:75,padding:"8px 18px",fontSize:"11px"},lg:{height:40,padding:"8px 32px",fontSize:"12px"}},ro={sm:12,md:12,lg:14};var ao=styled(Ba,{shouldForwardProp:e=>e!=="$variant"&&e!=="$size"&&e!=="$fullWidth"&&e!=="$isLoading"&&e!=="$hasIcon"})(({theme:e,$variant:o="primary",$size:t="md",$fullWidth:r,$isLoading:a,$hasIcon:s})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"8px",borderRadius:"4px",lineHeight:"100%",textTransform:"capitalize",whiteSpace:"nowrap",position:"relative",cursor:a?"not-allowed":"pointer",transition:"background-color 0.15s ease, opacity 0.15s ease",...to[t],fontWeight:t==="sm"?e.typography.fontWeightBold:e.typography.fontWeightBolder??700,...r&&{width:"100%"},...s&&!r&&{width:"auto",minWidth:0},...o==="primary"&&{background:e.palette.info.dark,color:e.palette.common.white,"&:hover:not(:disabled)":{backgroundColor:"#1a78bb"}},...o==="secondary"&&{backgroundColor:e.palette.common.white,color:e.palette.grey[700],border:`1px solid ${e.palette.divider}`,"&:hover:not(:disabled)":{backgroundColor:e.palette.grey[100]}},...o==="ghost"&&{backgroundColor:"transparent",color:e.palette.info.dark,"&:hover:not(:disabled)":{backgroundColor:e.palette.info.light}},...o==="danger"&&{backgroundColor:e.palette.error.main,color:e.palette.common.white,"&:hover:not(:disabled)":{backgroundColor:e.palette.error.light}},"&.Mui-disabled":{opacity:.5}}));var no=forwardRef(({children:e,variant:o="primary",size:t="md",isLoading:r=false,startIcon:a,endIcon:s,fullWidth:p=false,disabled:i,className:l,sx:m,...d},c)=>jsxs(ao,{ref:c,className:kc(k.root,l),$variant:o,$size:t,$fullWidth:p,$isLoading:r,$hasIcon:!!a||!!s||r,disabled:i||r,"data-testid":"Button",sx:m,...d,children:[jsxs(J,{component:"span",className:k.content,sx:{display:"inline-flex",alignItems:"center",gap:"inherit",visibility:r?"hidden":"visible"},children:[a&&jsx(J,{component:"span",className:k.startIcon,sx:{display:"inline-flex",alignItems:"center"},children:a}),e,s&&jsx(J,{component:"span",className:k.endIcon,sx:{display:"inline-flex",alignItems:"center"},children:s})]}),r&&jsx(J,{component:"span",className:k.loading,sx:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center"},children:jsx(Ma,{className:k.loadingSpinner,size:ro[t],color:"inherit"})})]}));no.displayName="Button";var io=memo(no);var $a="os-shared-Icon",ee={root:`${$a}-root`};var po=styled("img")(({theme:e})=>({width:e.spacing(2),height:e.spacing(2),verticalAlign:"middle",flexShrink:0}));var lo=forwardRef(({className:e,sx:o,...t},r)=>jsx(po,{className:kc(ee.root,e),sx:o,"data-testid":"Icon",...t,ref:r}));lo.displayName="Icon";var mo=memo(lo);var Te="os-shared-Checkbox",$={root:`${Te}-root`,control:`${Te}-control`,label:`${Te}-label`};var co=({disabled:e})=>{let{palette:o}=useTheme();return jsxs("svg",{width:"11",height:"11",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e?jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:"#FAFBFB",stroke:"#D2D5D8",strokeWidth:"1.2"}):jsx("rect",{width:"12",height:"12",rx:"2.4",fill:o.info.dark}),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:e?"#D2D5D8":o.common.white})]})},fo=({disabled:e})=>{let{palette:o}=useTheme();return jsx("svg",{width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("rect",{x:"0.6",y:"0.6",width:"9.6",height:"9.6",rx:"1.8",fill:e?"#FAFBFB":o.common.white,stroke:e?"#D2D5D8":o.grey[500],strokeWidth:"1.2"})})},yo=({disabled:e})=>{let{palette:o}=useTheme();return jsxs("svg",{width:"11",height:"11",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e?jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:"#FAFBFB",stroke:"#D2D5D8",strokeWidth:"1.2"}):jsx("rect",{width:"12",height:"12",rx:"2.4",fill:o.info.dark}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:e?"#D2D5D8":"#FAFBFB"})]})};var go=styled(Aa)(({theme:e})=>({padding:e.spacing(.5),"&:hover":{backgroundColor:"transparent"}})),Co=styled(Da)(({theme:e})=>({marginLeft:0,gap:e.spacing(.5),"& .MuiFormControlLabel-label":{fontSize:"11px",color:e.palette.text.primary},"& .MuiFormControlLabel-label.Mui-disabled":{color:e.palette.grey[700]}}));var ho=forwardRef(({label:e,labelPlacement:o="end",disabled:t,sx:r,className:a,...s},p)=>{let i=jsx(go,{ref:p,disableRipple:true,disabled:t,checkedIcon:jsx(co,{disabled:t}),icon:jsx(fo,{disabled:t}),indeterminateIcon:jsx(yo,{disabled:t}),"data-testid":"Checkbox",className:kc(e?$.control:$.root,e?void 0:a),sx:e?void 0:r,...s});return e?jsx(Co,{className:kc($.root,a),sx:r,control:i,label:e,labelPlacement:o,disabled:t,componentsProps:{typography:{className:$.label}}}):i});ho.displayName="Checkbox";var bo=memo(ho);var Ha="os-shared-Switch",oe={root:`${Ha}-root`};var So=styled(Va)(({theme:e})=>({width:32.903,height:20,borderRadius:"13px",padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(13px)",color:e.palette.common.white,"& + .MuiSwitch-track":{backgroundColor:e.palette.mode==="dark"?"#2ECA45":"#34C759",opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid",borderColor:e.palette.common.white},"&.Mui-disabled .MuiSwitch-thumb":{color:e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:e.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:16,height:16,filter:"drop-shadow(0px 1.9354851245880127px 0.6451616883277893px rgba(0, 0, 0, 0.06)) drop-shadow(0px 1.9354851245880127px 5.1612935066223145px rgba(0, 0, 0, 0.15))"},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:e.palette.mode==="light"?"#E9E9EA":"#39393D",opacity:1,transition:e.transitions.create(["background-color"],{duration:500})}}));var No=forwardRef(({className:e,sx:o,...t},r)=>jsx(So,{ref:r,className:kc(oe.root,e),sx:o,"data-testid":"Switch",focusVisibleClassName:".Mui-focusVisible",disableRipple:true,...t}));No.displayName="Switch";var ko=memo(No);var Ua="os-shared-Typography",te={root:`${Ua}-root`};var wo=styled(Ga)(({theme:e})=>({color:e.palette.text.primary}));var Io=forwardRef(({variant:e="body1",weight:o,isTruncated:t=false,isUppercase:r=false,className:a,sx:s,...p},i)=>{let l=useTheme(),m={regular:l.typography.fontWeightRegular,medium:l.typography.fontWeightMedium,semibold:l.typography.fontWeightBold,bold:l.typography.fontWeightBolder??700},d=o!==void 0?typeof o=="number"?o:m[o]:void 0,c=Array.isArray(s)?s:[s];return jsx(wo,{ref:i,className:kc(te.root,a),variant:e,sx:[d!==void 0&&{fontWeight:d},t&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r&&{textTransform:"uppercase"},...c],"data-testid":"Typography",...p})});Io.displayName="Typography";var Bo=memo(Io);var Qa="os-shared-RadioButton",re={root:`${Qa}-root`},vo={sm:{iconSize:15,maxWidth:"24px",muiSize:"small"},md:{iconSize:18,maxWidth:"28px",muiSize:"medium"},lg:{iconSize:20,maxWidth:"32px",muiSize:"medium"}};var os=styled("span")(()=>({borderRadius:"50%",width:"12px",height:"12px",boxSizing:"border-box",boxShadow:"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)"})),Po=styled(os)(({theme:e})=>({backgroundColor:e.palette.info.dark,"&::before":{display:"block",width:"12px",height:"12px",backgroundColor:e.palette.info.dark,borderRadius:"50%",backgroundImage:`radial-gradient(${e.palette.common.white},${e.palette.common.white} 28%,transparent 32%)`,content:'""'}})),To=styled(es,{shouldForwardProp:e=>e!=="$iconSize"&&e!=="$checkedColor"&&e!=="$disabledColor"&&e!=="$hoverColor"&&e!=="$maxWidth"})(({theme:e,$iconSize:o,$checkedColor:t,$disabledColor:r,$hoverColor:a,$maxWidth:s})=>({"& .MuiSvgIcon-root":{fontSize:o},maxWidth:s,cursor:"pointer",color:e.palette.grey[500],"&.Mui-checked":{color:t??e.palette.info.dark},...a&&{"&:hover":{backgroundColor:"transparent",color:a}},"&.Mui-disabled":{color:r??"#C7C7CC"}}));function Mo(e="sm"){return vo[e]}var Lo=forwardRef(({size:e="sm",checkedIcon:o,checkedColor:t,disabledColor:r,hoverColor:a,iconSize:s,className:p,sx:i,disableRipple:l=true,...m},d)=>{let c=Mo(e);return jsx(To,{ref:d,className:kc(re.root,p),"data-testid":"RadioButton",size:c.muiSize,disableRipple:l,checkedIcon:o??jsx(Po,{}),$iconSize:s??c.iconSize,$checkedColor:t,$disabledColor:r,$hoverColor:a,$maxWidth:c.maxWidth,sx:i,...m})});Lo.displayName="RadioButton";var Fo=memo(Lo);var ae="os-shared-CircularProgress",L={root:`${ae}-root`,progress:`${ae}-progress`,labelOverlay:`${ae}-labelOverlay`,labelText:`${ae}-labelText`};var Ro=styled(Ma)(({theme:e})=>({color:e.palette.common.blue??"#147DC5",background:alpha(e.palette.info.dark,.05),borderRadius:"50%",[`& .${circularProgressClasses.circle}`]:{strokeLinecap:"round"}})),Ao=styled(J)(()=>({position:"relative",display:"inline-flex"})),Do=styled(J)(()=>({top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"})),Eo=styled(Ga)(({theme:e})=>({fontSize:e.typography.fontSize,fontWeight:e.typography.fontWeightBolder??700,color:"#3B4152"}));var Wo=forwardRef(({variant:e="indeterminate",hasLabel:o=true,value:t,className:r,sx:a,...s},p)=>{let i=e==="determinate"&&o;return jsxs(Ao,{className:kc(L.root,r),sx:a,"data-testid":"CircularProgress",children:[jsx(Ro,{ref:p,variant:e,value:t,className:L.progress,...s}),i&&jsx(Do,{className:L.labelOverlay,children:jsx(Eo,{className:L.labelText,variant:"caption",color:"text.secondary",children:`${Math.round(t??0)}%`})})]})});Wo.displayName="CircularProgress";var Ho=memo(Wo);var ds="os-shared-Tooltip",ne={wrapper:`${ds}-wrapper`};var Zo=styled(({className:e,...o})=>createElement(fs,{...o,classes:{popper:e}}))(({theme:e})=>({zIndex:999999,[`& .${tooltipClasses.arrow}`]:{"&:before":{border:`0.97px solid ${alpha(e.palette.text.primary,.13)}`},color:e.palette.common.white},[`& .${tooltipClasses.tooltip}`]:{backgroundColor:e.palette.common.white,color:e.palette.text.secondary,boxShadow:e.shadows[1],fontSize:12,border:`0.97px solid ${alpha(e.palette.text.primary,.13)}`,marginBottom:"7px !important"}}));function jo({className:e,title:o,placement:t="top",children:r,wrapperProps:a,sx:s,...p}){return jsx(Zo,{className:e,title:o,placement:t,arrow:true,sx:s,...p,children:jsx(J,{display:"flex",alignItems:"center",className:ne.wrapper,...a,children:r})})}jo.displayName="Tooltip";var Uo=memo(jo);var gs="os-shared-Skeleton",ie={root:`${gs}-root`},Go="rounded",_o=16;var Xo=styled(Cs)(()=>({}));var Yo=forwardRef(({className:e,sx:o,variant:t=Go,height:r=_o,...a},s)=>jsx(Xo,{ref:s,className:kc(ie.root,e),sx:o,"data-testid":"Skeleton",variant:t,height:r,...a}));Yo.displayName="Skeleton";var qo=memo(Yo);var ks="os-shared-Avatar",pe={root:`${ks}-root`},Jo={xs:{dimension:20,fontSize:"9px"},sm:{dimension:28,fontSize:"11px"},md:{dimension:36,fontSize:"14px"},lg:{dimension:48,fontSize:"18px"},xl:{dimension:64,fontSize:"24px"}};var Qo=styled(ws,{shouldForwardProp:e=>e!=="$size"})(({theme:e,$size:o="md"})=>{let{dimension:t,fontSize:r}=Jo[o];return {width:t,height:t,fontSize:r,fontWeight:e.typography.fontWeightBold,backgroundColor:e.palette.info.dark,color:e.palette.common.white}});var et=forwardRef(({className:e,sx:o,size:t="md",shape:r="circular",...a},s)=>jsx(Qo,{ref:s,className:kc(pe.root,e),sx:o,"data-testid":"Avatar",$size:t,variant:r,...a}));et.displayName="Avatar";var ot=memo(et);var Ts="os-shared-Divider",le={root:`${Ts}-root`};var tt=styled(Ms)(()=>({}));var rt=forwardRef(({className:e,sx:o,orientation:t="horizontal",...r},a)=>jsx(tt,{ref:a,className:kc(le.root,e),sx:o,"data-testid":"Divider",orientation:t,...r}));rt.displayName="Divider";var at=memo(rt);var Rs="os-shared-Collapse",me={root:`${Rs}-root`},st=true,nt=300;var it=styled(As)(()=>({}));var pt=forwardRef(({className:e,sx:o,children:t,unmountOnExit:r=st,timeout:a=nt,...s},p)=>jsx(it,{ref:p,className:kc(me.root,e),sx:o,"data-testid":"Collapse",unmountOnExit:r,timeout:a,...s,children:t}));pt.displayName="Collapse";var lt=memo(pt);var Vs="os-shared-Badge",de={root:`${Vs}-root`},mt={primary:"#1976d2",secondary:"#f50057",neutral:"#656565",gray:"#CFCFCF",orange:"#FFD503"},dt=["primary","secondary","neutral","dark"];var Ks={default:e=>e.palette.info.main,inactive:e=>e.palette.grey[100],active:e=>alpha(e.palette.text.primary,.1),dark:e=>e.palette.info.dark,red:e=>e.palette.error.light},js={default:e=>e.palette.common.white,inactive:e=>e.palette.text.primary,active:e=>e.palette.common.white,dark:e=>e.palette.common.white};function Us(e,o){let t=mt[e];return t||(Ks[e]?.(o)??o.palette.common.white)}function Gs(e,o){return dt.includes(e)?o.palette.common.white:js[e]?.(o)??o.palette.common.white}var ct=styled("span",{shouldForwardProp:e=>!["$color","$compact","$round","$pointer"].includes(e)})(({theme:e,$color:o="default",$compact:t,$round:r,$pointer:a})=>({paddingLeft:t?"0.16056rem":r?"0.275rem":"8px",paddingRight:t?"0.16056rem":r?"0.275rem":"8px",borderRadius:t?e.spacing(.5):e.spacing(2),backgroundColor:Us(o,e),color:Gs(o,e),fontSize:"0.6rem",fontWeight:e.typography.fontWeightBold,overflow:"hidden",height:t?"12px":"16px",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:a?"pointer":"auto"}));var ft=forwardRef(({className:e,sx:o,color:t="default",compact:r,round:a,pointer:s,children:p,...i},l)=>jsx(ct,{ref:l,className:kc(de.root,e),sx:o,"data-testid":"Badge",$color:t,$compact:r,$round:a,$pointer:s,...i,children:p}));ft.displayName="Badge";var yt=memo(ft);var qs="os-shared-Backdrop",ce={root:`${qs}-root`};var ut=styled(J)(({theme:e})=>({position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:999,backgroundColor:alpha(e.palette.common.black,.3)}));var xt=forwardRef(({className:e,sx:o,open:t=true,onClose:r,onClick:a,...s},p)=>{if(!t)return null;let i=l=>{r?.(),a?.(l);};return createPortal(jsx(ut,{ref:p,className:kc(ce.root,e),sx:o,"data-testid":"Backdrop",onClick:i,...s}),document.body)});xt.displayName="Backdrop";var gt=memo(xt);var fe="os-shared-CopyButton",B={root:`${fe}-root`,icon:`${fe}-icon`,copyIcon:`${fe}-copyIcon`,copiedIcon:`${fe}-copiedIcon`},Ct=2e3,ht=200;var Nt=e=>{let{palette:o}=useTheme();return jsx(Ye,{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:o.text.primary,stroke:o.common.white,strokeWidth:"0.15"})})})},kt=e=>{let{palette:o}=useTheme();return jsx(Ye,{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:o.success.main}),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:o.common.white})]})})};var It=styled("span")({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:16,height:16,flexShrink:0,cursor:"pointer",verticalAlign:"middle"}),Fe=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 ${ht}ms ease`}));var Bt=forwardRef(({className:e,sx:o,text:t,feedbackMs:r=Ct,onClick:a,...s},p)=>{let[i,l]=useState(false),m=d=>{d.stopPropagation(),ab(t),l(true),setTimeout(()=>l(false),r),a?.(d);};return jsxs(It,{ref:p,className:kc(B.root,e),sx:o,role:"button",tabIndex:0,"data-testid":"CopyButton",onClick:m,...s,children:[jsx(Fe,{className:kc(B.icon,B.copyIcon),$visible:!i,children:jsx(Nt,{})}),jsx(Fe,{className:kc(B.icon,B.copiedIcon),$visible:i,children:jsx(kt,{})})]})});Bt.displayName="CopyButton";var vt=memo(Bt);var ze="os-shared-ProgressBar",H={root:`${ze}-root`,fill:`${ze}-fill`,text:`${ze}-text`};var Tt=styled(J,{shouldForwardProp:e=>!["$value","$isDecimal"].includes(e)})(({theme:e,$value:o,$isDecimal:t})=>({width:`${o}%`,minWidth:o>=10?"28px":"24px",height:"18px",borderRadius:"50px",background:e.palette.background.gradient?.darkShadedBlue??"linear-gradient(256deg, #147DC5 0%, #3DA6E1 100%)",display:"flex",alignItems:"center",justifyContent:o>10?"flex-end":"center",paddingInlineEnd:o>10?"2px":"0px",...o===0&&{background:alpha(e.palette.text.primary,26/255)},...t&&{minWidth:o>=10?"40px":"36px"}})),Mt=styled(J,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:o})=>({height:"14px",maxWidth:"36px",minWidth:"20px",background:alpha(e.palette.text.primary,26/255),borderRadius:"50px",display:"flex",alignItems:"center",justifyContent:"center",padding:0,...o===0&&{background:alpha(e.palette.text.primary,0)}})),$t=styled(Ga,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:o})=>({fontSize:"8px",fontWeight:e.typography.fontWeightBolder??700,color:e.palette.common.white,padding:"2px 4px",...o===0&&{color:alpha(e.palette.grey.A100,.5)}}));var Ft=forwardRef(({className:e,sx:o,value:t},r)=>{let a=!Number.isInteger(t);return jsx(Tt,{ref:r,className:kc(H.root,e),sx:o,"data-testid":"ProgressBar",$value:t,$isDecimal:a,children:jsx(Mt,{className:H.fill,$value:t,children:jsxs($t,{className:H.text,$value:t,variant:"caption",children:[Number(t.toFixed(2)),"%"]})})})});Ft.displayName="ProgressBar";var zt=memo(Ft);var xe="os-shared-Chip",v={root:`${xe}-root`,text:`${xe}-text`,copyButton:`${xe}-copyButton`,icon:`${xe}-icon`},Rt=2e3,Ae=150;var Et=e=>{let{palette:o}=useTheme();return jsx(Ye,{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:o.text.primary,stroke:o.common.white,strokeWidth:"0.15"})})})},Wt=e=>{let{palette:o}=useTheme();return jsx(Ye,{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:o.success.main}),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:o.common.white})]})})};var Ce=styled(J,{shouldForwardProp:e=>!["$variant","$hasIcon","$isSelected","$disableAnimation"].includes(e)})(({theme:e,$variant:o="text",$hasIcon:t,$isSelected:r,$disableAnimation:a})=>({display:"inline-flex",alignItems:"center",justifyContent:t?"flex-start":"center",gap:t?e.spacing(1):void 0,lineHeight:"normal",borderRadius:"30px",whiteSpace:"nowrap",boxSizing:"border-box",border:`1px solid ${e.palette.divider}`,backgroundColor:e.palette.background.paper,...o==="text"&&{padding:`${e.spacing(.75)} ${e.spacing(1)}`,minHeight:"30px"},...o==="circular"&&{minHeight:24,minWidth:24,padding:e.spacing(.5),aspectRatio:"1 / 1"},...o==="pill-icon"&&{minHeight:24,minWidth:36,padding:`${e.spacing(.25)} ${e.spacing(.75)}`},...r&&{boxShadow:`${e.palette.common.white} 7px 0px 8px 2px`},...a&&{transition:"none !important",animation:"none !important",transform:"none !important","& *":{transition:"none !important",animation:"none !important",transform:"none !important"}}})),De=styled(J)({textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"1 1 auto"}),Vt=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 ${Ae}ms ease`,"&:hover":{opacity:1}})),Ee=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 ${Ae}ms ease`}));var Ot=forwardRef(({className:e,sx:o,children:t,icon:r,variant:a="text",disabled:s=false,isSelected:p=false,copyText:i,unknownText:l="Unknown",disableAnimation:m=false,...d},c)=>{let[y,u]=useState(false),g=x=>{x.stopPropagation(),i&&(ab(i),u(true),setTimeout(()=>u(false),Rt));},C={$variant:a,$hasIcon:r!=null,$isSelected:p,$disableAnimation:m},f=kc(v.root,e,`CustomVariant_${a}`),N=[s?{cursor:"not-allowed",opacity:.5}:{},...Array.isArray(o)?o:o?[o]:[]];return t?i?jsxs(Ce,{ref:c,className:f,sx:[{gap:"4px"},...N],"data-testid":"Chip",...C,...d,children:[jsx(De,{className:v.text,"data-is-arabic":typeof t=="string"&&Zb(t),children:t}),jsxs(Vt,{className:v.copyButton,role:"button",tabIndex:0,"aria-label":y?"copied":"copy","data-testid":"ChipCopyButton",$copied:y,onClick:g,children:[jsx(Ee,{$visible:!y,children:jsx(Et,{})}),jsx(Ee,{$visible:y,children:jsx(Wt,{})})]})]}):jsxs(Ce,{ref:c,className:f,sx:N,"data-testid":"Chip",...C,...d,children:[r!=null&&jsx("span",{className:v.icon,children:r}),jsx(De,{className:v.text,children:t})]}):jsx(Ce,{className:f,sx:N,"data-testid":"Chip",...C,...d,children:l})});Ot.displayName="Chip";var Zt=memo(Ot);var He="os-shared-Slider",T={root:`${He}-root`,thumb:`${He}-thumb`,thumbIcon:`${He}-thumbIcon`},Ve=["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(", ");var Kt=e=>{let{palette:o}=useTheme();return jsx(Ye,{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:o.grey[700],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M2.44531 0.460388L2.44531 6.59891",stroke:o.grey[700],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M4.4375 0.460388L4.4375 6.59891",stroke:o.grey[700],strokeWidth:"0.920779",strokeLinecap:"round"})]})})};var jt=styled(Nn)(({theme:e})=>({color:e.palette.info.dark,height:8,padding:0,"& .MuiSlider-rail":{backgroundColor:"#CFCFCF",opacity:1,left:0},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:e.palette.common.white,border:"none",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:Ve,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:Ve}},[`& .${T.thumbIcon}`]:{width:"5px",height:"8px",pointerEvents:"none"}}));function Pn({children:e,className:o,...t}){return jsxs(SliderThumb,{className:kc(T.thumb,o),...t,children:[e,jsx(Kt,{className:T.thumbIcon})]})}var Ut=forwardRef(({className:e,sx:o,value:t,min:r,max:a,step:s,disabled:p,onChange:i,slots:l,...m},d)=>{let c=useCallback((y,u)=>{i(u);},[i]);return jsx(jt,{ref:d,className:kc(T.root,e),sx:o,"data-testid":"Slider",value:t,min:r,max:a,step:s,disabled:p,onChange:c,...m,slots:{thumb:Pn,...l}})});Ut.displayName="Slider";var Gt=memo(Ut);var Oe="os-shared-Input",O={root:`${Oe}-root`,label:`${Oe}-label`,input:`${Oe}-input`},Xt={sm:28,md:32,labelled:40},Yt=["e","E","+","-"],qt=/^[0-9.]$/,Jt=xa$1();var Qt=(e,o)=>Xt[e?"labelled":o],er=styled(Ln,{shouldForwardProp:e=>!["$hasLabel","$hideArrows","$size"].includes(e)})(({theme:e,$hasLabel:o=false,$hideArrows:t=false,$size:r="md"})=>({height:Qt(o,r),padding:o?"8px":"0 8px",border:"none",borderRadius:"inherit",fontSize:"11px",fontWeight:e.typography.fontWeightMedium,color:e.palette.text.primary,backgroundColor:"transparent",display:"flex",alignItems:o?"stretch":"center","&.Mui-disabled":{color:e.palette.grey[700]},"& input":{paddingTop:"4px",paddingBottom:"4px"},"& input::placeholder":{color:e.palette.grey[700],fontWeight:e.typography.fontWeightRegular,opacity:o?0:1,...o&&{transition:"opacity 0.2s ease"}},"& input:-webkit-autofill, & input:-webkit-autofill:hover, & input:-webkit-autofill:focus":{WebkitTextFillColor:e.palette.text.primary,caretColor:e.palette.text.primary,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},...o&&{marginTop:0,"& input":{margin:"0px !important",padding:"0px !important",paddingTop:"10px !important",lineHeight:"130%"},"& input:focus::placeholder":{opacity:"1 !important"}},...t&&{"& 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}}})),or=styled($n)(({theme:e})=>({fontSize:"11px",color:`${e.palette.grey[700]} !important`})),tr=styled(Mn,{shouldForwardProp:e=>!["$hasLabel","$size"].includes(e)})(({theme:e,disabled:o,error:t,fullWidth:r,$hasLabel:a=false,$size:s="md"})=>({position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",height:Qt(a,s),margin:0,border:`1px solid ${t?e.palette.error.main:e.palette.divider}`,borderRadius:"4px",backgroundColor:o?e.palette.grey[100]:e.palette.common.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?e.palette.error.main:e.palette.grey[400]},"& .MuiFormLabel-asterisk":{color:e.palette.error.light},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:"8px",fontSize:"10px",fontWeight:e.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, -1.5px) scale(0.75) !important",color:`${e.palette.grey[700]} !important`},"& .MuiInput-root":{flex:1,marginTop:"0 !important"}}));var ar=forwardRef(({label:e,size:o="md",error:t=false,disabled:r=false,fullWidth:a=false,placeholder:s,hideArrows:p=false,type:i,id:l,className:m,sx:d,onKeyDown:c,onWheel:y,...u},g)=>{let C=!!e,f=i==="number",S=x=>{let D=x.metaKey||x.ctrlKey||x.altKey,Pe=x.key.length===1;(Yt.includes(x.key)||Jt&&Pe&&!D&&!qt.test(x.key))&&x.preventDefault(),c?.(x);},N=x=>{x.target instanceof HTMLElement&&x.target.blur(),y?.(x);};return jsxs(tr,{className:kc(O.root,m),sx:d,error:t,disabled:r,fullWidth:a,"data-testid":"Input",$hasLabel:C,$size:o,children:[C&&jsx(or,{className:O.label,htmlFor:l,children:e}),jsx(er,{id:l,inputRef:g,className:O.input,type:i,error:t,disabled:r,placeholder:s??void 0,"aria-invalid":t||void 0,disableUnderline:true,fullWidth:true,$hasLabel:C,$hideArrows:p,$size:o,onKeyDown:f?S:c,onWheel:f?N:y,...u})]})});ar.displayName="Input";var sr=memo(ar);var Ke="os-shared-Textarea",Z={root:`${Ke}-root`,label:`${Ke}-label`,textarea:`${Ke}-textarea`},je=20;var nr=styled(En,{shouldForwardProp:e=>!["$error","$hasLabel","$minRows"].includes(e)})(({theme:e,$hasLabel:o=false,$minRows:t=3})=>({border:"none",borderRadius:"inherit",padding:o?"8px":"8px 12px",fontSize:"11px",fontWeight:e.typography.fontWeightMedium,lineHeight:1.5,color:e.palette.text.primary,backgroundColor:"transparent",alignItems:"flex-start",width:"100%","&.Mui-disabled":{color:e.palette.grey[700]},"& textarea":{resize:"vertical",minHeight:`${Math.max(t*je,60)}px`,padding:0},"& textarea::placeholder":{color:e.palette.grey[700],fontWeight:e.typography.fontWeightRegular,opacity:o?0:1,...o&&{transition:"opacity 0.2s ease"}},"& textarea:-webkit-autofill, & textarea:-webkit-autofill:hover, & textarea:-webkit-autofill:focus":{WebkitTextFillColor:e.palette.text.primary,caretColor:e.palette.text.primary,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},...o&&{marginTop:0,"& textarea":{margin:"0px !important",padding:"0px !important",paddingTop:"10px !important",lineHeight:"130%"},"& textarea:focus::placeholder":{opacity:"1 !important"}}})),ir=styled($n)(({theme:e})=>({fontSize:"11px",color:`${e.palette.grey[700]} !important`})),pr=styled(Mn,{shouldForwardProp:e=>!["$hasLabel","$minRows"].includes(e)})(({theme:e,disabled:o,error:t,fullWidth:r,$hasLabel:a=false,$minRows:s=3})=>({position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",minHeight:a?40+s*je:void 0,margin:0,border:`1px solid ${t?e.palette.error.main:e.palette.divider}`,borderRadius:"4px",backgroundColor:o?e.palette.grey[100]:e.palette.common.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?e.palette.error.main:e.palette.grey[400]},"& .MuiFormLabel-asterisk":{color:e.palette.error.light},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:"8px",fontSize:"10px",fontWeight:e.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, -1.5px) scale(0.75) !important",color:`${e.palette.grey[700]} !important`},"& .MuiInputBase-root":{flex:1,marginTop:"0 !important"}}));var mr=forwardRef(({label:e,error:o=false,disabled:t=false,fullWidth:r=false,placeholder:a,minRows:s=3,maxRows:p,id:i,className:l,sx:m,...d},c)=>{let y=!!e;return jsxs(pr,{className:kc(Z.root,l),sx:m,error:o,disabled:t,fullWidth:r,"data-testid":"Textarea",$hasLabel:y,$minRows:s,children:[y&&jsx(ir,{className:Z.label,htmlFor:i,children:e}),jsx(nr,{id:i,inputRef:c,className:Z.textarea,multiline:true,minRows:s,maxRows:p,disabled:t,placeholder:a??void 0,"aria-invalid":o||void 0,fullWidth:true,$error:o,$hasLabel:y,$minRows:s,...d})]})});mr.displayName="Textarea";var dr=memo(mr);var F="os-shared-Accordion",b={root:`${F}-root`,summary:`${F}-summary`,content:`${F}-content`,labelStartAdornment:`${F}-labelStartAdornment`,labelContent:`${F}-labelContent`,labelEndAdornment:`${F}-labelEndAdornment`,expandIcon:`${F}-expandIcon`};var fr=()=>{let{palette:e}=useTheme();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:e.text.primary,stroke:e.text.primary,strokeWidth:"0.1"})})};var ur=styled(Zn)(({theme:e,square:o})=>({overflow:"hidden",border:`1px solid ${e.palette.divider}`,...!o&&{borderRadius:e.shape.borderRadius},margin:0,background:e.palette.background.paper,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0},"&.Mui-disabled":{opacity:.5,pointerEvents:"none"}})),xr=styled(jn)(({theme:e})=>({background:e.palette.grey[50],minHeight:"40px",height:"40px",padding:"10px","&.Mui-expanded":{minHeight:"40px",height:"40px"},"& .MuiAccordionSummary-content":{margin:0,display:"flex",flexDirection:"row",alignItems:"center",flexGrow:1,minWidth:0,gap:10},"& .MuiAccordionSummary-expandIconWrapper":{marginLeft:8}})),gr=styled(Kn)(({theme:e})=>({padding:0,borderTop:`1px solid ${e.palette.divider}`})),Cr=styled(J)({display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:"rotate(0deg)"}),hr=styled(J)({minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"});var Nr=forwardRef(({expanded:e,defaultExpanded:o=false,onChange:t,label:r,content:a,labelStartAdornment:s,labelEndAdornment:p,slotProps:i={},disabled:l=false,expandIcon:m,className:d,sx:c,...y},u)=>{let g=e!==void 0,[C,f]=useState(o),S=g?e:C,N=(ji,Qe)=>{g||f(Qe),t?.(Qe);},{showArrow:x=true,...D}=i.label??{},{className:Pe,sx:Na,...ka}=i.root??{},wa=m??(x?jsx(Cr,{component:"span",className:b.expandIcon,children:jsx(fr,{})}):null),Ia=jsxs(Fragment,{children:[s!=null&&jsx(J,{component:"span",className:b.labelStartAdornment,...i.labelStartAdornment,sx:jc({flexShrink:0},i.labelStartAdornment?.sx),children:s}),jsx(hr,{component:"span",className:b.labelContent,...i.labelContent,sx:i.labelContent?.sx,children:r}),p!=null&&jsx(J,{component:"span",className:b.labelEndAdornment,...i.labelEndAdornment,sx:jc({flexShrink:0,marginLeft:"auto"},i.labelEndAdornment?.sx),children:p})]});return jsxs(ur,{ref:u,"data-testid":"Accordion",disabled:l,expanded:S,onChange:N,className:kc(b.root,d,Pe),sx:jc(c??{},Na),...ka,...y,children:[jsx(xr,{className:b.summary,expandIcon:wa,"aria-expanded":S,...D,children:Ia}),jsx(gr,{className:b.content,...i.content,children:a})]})});Nr.displayName="Accordion";var kr=memo(Nr);var wr="os-shared-Menu",_={popper:`${wr}-popper`,panel:`${wr}-panel`},Ir=12;var vr=styled(qn)({}),Pr=styled(J,{shouldForwardProp:e=>e!=="$showShadow"})(({theme:e,$showShadow:o})=>({borderRadius:e.spacing(.5),background:e.palette.background.default,width:"max-content",cursor:"pointer",boxShadow:e.shadows[11],display:"flex",flexDirection:"column",overflowY:"auto",maxHeight:"432px","&:focus":{outline:"none"},".menu-item + .menu-item":{borderTop:`1px solid ${e.palette.divider}`},"&::after":{content:o?'""':"none",width:"100%",height:"34px",position:"sticky",bottom:0,pointerEvents:"none",background:`linear-gradient(180deg, rgba(255,255,255,0) 0%, ${e.palette.common.white} 100%)`}}));var Mr=forwardRef(({open:e,anchorEl:o,children:t,placement:r,popperSx:a,panelProps:s,className:p,sx:i,...l},m)=>{let[d,c]=useState(false),u=useMemo(()=>Children.count(t),[t])>Ir&&d,{onScroll:g,className:C,sx:f,...S}=s??{},N=useCallback(D=>{c((D.currentTarget.scrollTop??0)>0),g?.(D);},[g]),x=kc(_.panel,C,"MuiPopper-dropdown");return jsx(vr,{ref:m,className:kc(_.popper,p),"data-testid":"Menu",open:e,anchorEl:o,placement:r??"bottom-start",sx:a,...l,children:jsx(Pr,{$showShadow:u,onScroll:N,className:x,sx:jc(i??{},f),...S,children:t})})});Mr.displayName="Menu";var $r=memo(Mr);var be="os-shared-Dialog",R={root:`${be}-root`,title:`${be}-title`,content:`${be}-content`,actions:`${be}-actions`};var Fr=styled(ai)(({theme:e})=>({"& .MuiDialog-paper":{boxShadow:e.shadows[13],borderRadius:e.spacing(1)},"& .MuiModal-backdrop":{background:alpha(e.palette.common.black,.2)}})),zr=styled(si)(({theme:e})=>({padding:e.spacing(2)}));var Rr=forwardRef(({heading:e,actions:o,children:t,onClose:r,open:a,className:s,sx:p,...i},l)=>jsxs(Fr,{ref:l,"data-testid":"Dialog",open:a,onClose:r,className:kc(R.root,s),sx:p,...i,children:[e&&jsx(mi,{className:R.title,children:e}),jsx(zr,{className:R.content,children:t}),o&&jsx(li,{className:R.actions,children:o})]}));Rr.displayName="Dialog";var Ar=memo(Rr);var Se="os-shared-MenuItem",M={root:`${Se}-root`,indicator:`${Se}-indicator`,content:`${Se}-content`,disabled:`${Se}-disabled`},A={unchecked:"unchecked",checked:"checked",indeterminate:"indeterminate"};var Er=()=>{let{palette:e}=useTheme();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:e.info.dark}),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:e.common.white})]})},Wr=()=>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"})}),Hr=()=>{let{palette:e}=useTheme();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:e.info.dark,stroke:e.info.dark,strokeWidth:"1.2"}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:"#FAFBFB"})]})};var Zr=styled(J,{shouldForwardProp:e=>e!=="$isDisabled"})(({theme:e,$isDisabled:o=false})=>({padding:e.spacing(1),position:"relative",display:"flex",alignItems:"center",gap:"8px",textTransform:"capitalize",cursor:o?"not-allowed":"pointer",flex:1,fontSize:e.typography.subtitle1.fontSize,opacity:o?.5:1,color:e.palette.text.primary})),_e=styled("span")({width:14,height:14,flexShrink:0,pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center","& svg":{display:"block"}});function ui(e,o){return o?A.indeterminate:e?A.checked:A.unchecked}var xi={[A.unchecked]:Wr,[A.checked]:Er,[A.indeterminate]:Hr};function gi(e,o,t){if(e===null)return null;if(e!==void 0)return jsx(_e,{className:M.indicator,"aria-hidden":true,children:e});let r=ui(o,t),a=xi[r];return jsx(_e,{className:M.indicator,"aria-hidden":true,children:jsx(a,{})})}var Kr=forwardRef(({isSelected:e=false,isDisabled:o=false,isIndeterminate:t=false,startAdornment:r,onClick:a,children:s,className:p,sx:i,...l},m)=>{let d=kc(M.root,"menu-item",o&&M.disabled,p);return jsxs(Zr,{ref:m,"data-testid":"MenuItem",className:d,sx:i,onClick:o?void 0:a,$isDisabled:o,...l,children:[gi(r,e,t),jsx("span",{className:M.content,children:s})]})});Kr.displayName="MenuItem";var jr=memo(Kr);var Ur="os-shared-ToggleButtons",X={root:`${Ur}-root`,button:`${Ur}-button`};var Xr=styled(J)(({theme:e})=>({backgroundColor:e.palette.action.hover,display:"flex",alignItems:"center",gap:"0.5px",padding:"1.5px",borderRadius:"3px"})),bi=e=>({backgroundColor:e.palette.common.white,boxShadow:`0px 0px 3px 0px ${alpha(e.palette.common.black,.2)}`}),Yr=styled(J,{shouldForwardProp:e=>e!=="$isActive"})(({theme:e,$isActive:o=false})=>({fontSize:8,fontWeight:e.typography.fontWeightMedium,width:21,height:21,borderRadius:"1.5px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"background-color 0.2s ease, box-shadow 0.2s ease",...o?bi(e):{backgroundColor:"transparent",boxShadow:"none"}}));function Jr({options:e,activeKey:o,onChange:t,containerProps:r,buttonProps:a,id:s,className:p,sx:i},l){let{className:m,sx:d,...c}=r??{},y=kc(X.root,p,m);return jsx(Xr,{ref:l,id:s,"data-testid":"ToggleButtons",className:y,sx:jc(i??{},d),...c,children:e.map(u=>jsx(Yr,{className:X.button,$isActive:o===u.key,onClick:()=>t(u.key),...a,children:u.content},u.key))})}var ki=forwardRef(Jr);Jr.displayName="ToggleButtons";var Qr=memo(ki);var wi="os-shared-LazyImage",ke={root:`${wi}-root`},ea={display:"flex",justifyContent:"center",alignItems:"center"},we={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 oa=styled(J)({display:"inline-flex",justifyContent:"center",alignItems:"center"});function Ie(e){return e!=null&&e in we}var Li=LazyLoadImage,ra=forwardRef(({effect:e,wrapperProps:o,id:t,className:r,sx:a,placeholderSrc:s,...p},i)=>{let[l,m]=useState(Ie(e));if(useEffect(()=>{if(!Ie(e)){m(false);return}m(true),we[e]().finally(()=>{m(false);});},[e]),l)return null;let{className:d,sx:c,style:y,...u}=o??{},g=Ie(e)||!!s||y!=null;return jsx(oa,{component:"span",...u,className:kc(ke.root,d??r),sx:c!=null?jc(a??{},c):a,children:jsx(Li,{...p,ref:i,effect:e,placeholderSrc:s,id:t,"data-testid":"LazyImage",wrapperProps:g?{style:{...ea,...y}}:void 0})})});ra.displayName="LazyImage";var aa=memo(ra);var Xe="os-shared-FieldFeedback",j={root:`${Xe}-root`,icon:`${Xe}-icon`,message:`${Xe}-message`};var na=({severity:e="error",...o})=>{let{palette:t}=useTheme(),r=e==="warning"?t.custom?.[500]??"#FF7A00":t.error.light;return jsx(Ye,{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:r})})})},ia=e=>jsx(Ye,{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:"#39953E"})})}),pa=e=>{let{palette:o}=useTheme();return jsx(Ye,{sx:{width:12,height:12},...e,children:jsx("svg",{width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",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:o.text.primary,strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})})})};function la(e,o){let t=e.palette.custom?.[500]??"#FF7A00";return {warning:{backgroundColor:alpha(t,.15),textColor:t},success:{backgroundColor:alpha(e.palette.success.dark,.15),textColor:e.palette.success.dark},info:{backgroundColor:alpha(e.palette.info.dark,.12),textColor:e.palette.info.dark},error:{backgroundColor:alpha(e.palette.error.main,.15),textColor:e.palette.error.main}}[o]}var ma=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:o})=>{let{backgroundColor:t}=la(e,o);return {display:"flex",alignItems:"flex-start",gap:"4px",minHeight:"32px",padding:"8px 12px",background:t,borderRadius:"0 0 4px 4px"}}),da=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:o})=>{let{textColor:t}=la(e,o);return {fontSize:"10px",lineHeight:"16px",display:"block",color:t,wordBreak:"break-word"}}),ca=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 Ri(e){return e!=null&&e!==""}function Ai(e){switch(e){case "success":return jsx(ia,{});case "info":return jsx(pa,{});case "error":case "warning":return jsx(na,{severity:e})}}var fa=forwardRef(({type:e="error",message:o,icon:t,className:r,sx:a},s)=>{if(!Ri(o))return null;let p=e;return jsxs(ma,{ref:s,"data-testid":"FieldFeedback",className:kc(j.root,r),sx:a,$feedbackType:p,children:[t??jsx(ca,{className:j.icon,children:Ai(p)}),jsx(da,{className:j.message,$feedbackType:p,children:o})]})});fa.displayName="FieldFeedback";var ya=memo(fa);var Ei="os-shared-ScrollLoader",ve={root:`${Ei}-root`},ua=50;var xa=styled(Wi)({overflow:"auto",height:"100%",maxHeight:"100%"});function Je(e,o=ua){return e.scrollHeight-(e.scrollTop+e.clientHeight)<=o}var ba=forwardRef(({loadMoreItems:e,hasMore:o,isLoading:t=false,isFetchingNextPage:r,children:a,className:s,sx:p,id:i,...l},m)=>{let[d,c]=useState(false),y=useRef(e),u=useRef(null);y.current=e;let g=useCallback(()=>{o&&!r&&y.current();},[o,r]),C=useCallback(()=>{let f=u.current;f&&Je(f)&&g();},[g]);return useEffect(()=>{let f=u.current;if(f)return f.addEventListener("scroll",C),()=>f.removeEventListener("scroll",C)},[C]),useEffect(()=>{let f=u.current;if(!f||t||d)return;let S=window.setTimeout(()=>{c(true),Je(f)&&g();},1e3);return ()=>window.clearTimeout(S)},[t,g,d]),jsx(xa,{ref:f=>{u.current=f,typeof m=="function"?m(f):m&&(m.current=f);},id:i,"data-testid":"ScrollLoader",className:kc(ve.root,s),sx:p,...l,children:a})});ba.displayName="ScrollLoader";var Sa=memo(ba);
2
2
  export{ya as $,ce as A,gt as B,B as C,vt as D,H as E,zt as F,v as G,Zt as H,T as I,Gt as J,O as K,sr as L,Z as M,dr as N,b as O,kr as P,_ as Q,$r as R,R as S,Ar as T,M as U,jr as V,X as W,Qr as X,ke as Y,aa as Z,j as _,k as a,ve as aa,io as b,Sa as ba,ee as c,mo as d,$ as e,bo as f,oe as g,ko as h,te as i,Bo as j,re as k,Fo as l,L as m,Ho as n,ne as o,Uo as p,ie as q,qo as r,pe as s,ot as t,le as u,at as v,me as w,lt as x,de as y,yt as z};
@@ -1 +1 @@
1
- import {b}from'./chunk-FEBPVWE2.js';import {memo,useCallback,Fragment as Fragment$1,createElement}from'react';import {useTranslation}from'react-i18next';import {jsx,Fragment}from'react/jsx-runtime';function B({isActiveFilterVisible:f,availableStatuses:v,status:e,onStatusChange:i,buttonSx:l}){let{t:I}=useTranslation(),S=f??false,b$1=useCallback(s=>s===e&&!S?"active":"inActive",[e,S]),u=useCallback(s=>{i?.(s);},[i]);return jsx(Fragment,{children:v?.map(({render:s,...a},d)=>{if(s)return jsx(Fragment$1,{children:s({status:e,onChange:u},{...a,index:d})},`custom-status-slot-${d}`);if(!Array.isArray(a.status))return createElement(b,{...a,key:`status-button-array-${a.status}`,variant:b$1(a.status),onClick:()=>{Array.isArray(a.status)||u(a.status);},buttonSx:l});if(!a.status)return null;let o=a.status.filter(Boolean).map(t=>typeof t=="string"?{value:t}:t)||[],c=!!e&&o.some(t=>t?.value===e);return jsx("div",{children:jsx(b,{...a,selectedStatus:c?e:void 0,variant:c?"active":"inActive",onButtonBodyClick:t=>u(t),dropdownOptions:o.map(t=>({label:t?.label||I(t?.value||""),status:t?.value,icon:t.icon,onClick:()=>u(t.value)})),buttonSx:l})},o[0]?.value)})})}var p=memo(B);var M=p;export{M as a};
1
+ import {b}from'./chunk-JW4M53EU.js';import {memo,useCallback,Fragment as Fragment$1,createElement}from'react';import {useTranslation}from'react-i18next';import {jsx,Fragment}from'react/jsx-runtime';function B({isActiveFilterVisible:f,availableStatuses:v,status:e,onStatusChange:i,buttonSx:l}){let{t:I}=useTranslation(),S=f??false,b$1=useCallback(s=>s===e&&!S?"active":"inActive",[e,S]),u=useCallback(s=>{i?.(s);},[i]);return jsx(Fragment,{children:v?.map(({render:s,...a},d)=>{if(s)return jsx(Fragment$1,{children:s({status:e,onChange:u},{...a,index:d})},`custom-status-slot-${d}`);if(!Array.isArray(a.status))return createElement(b,{...a,key:`status-button-array-${a.status}`,variant:b$1(a.status),onClick:()=>{Array.isArray(a.status)||u(a.status);},buttonSx:l});if(!a.status)return null;let o=a.status.filter(Boolean).map(t=>typeof t=="string"?{value:t}:t)||[],c=!!e&&o.some(t=>t?.value===e);return jsx("div",{children:jsx(b,{...a,selectedStatus:c?e:void 0,variant:c?"active":"inActive",onButtonBodyClick:t=>u(t),dropdownOptions:o.map(t=>({label:t?.label||I(t?.value||""),status:t?.value,icon:t.icon,onClick:()=>u(t.value)})),buttonSx:l})},o[0]?.value)})})}var p=memo(B);var M=p;export{M as a};
@@ -0,0 +1 @@
1
+ import'./chunk-BYI3MI3T.js';import {b as b$1}from'./chunk-GYJIUZ4U.js';import {yc}from'./chunk-PBMQM3P4.js';import {memo,useId,useState,useEffect}from'react';import d from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsx,Fragment}from'react/jsx-runtime';var s="32px";var f=styled(d,{shouldForwardProp:e=>e!=="isMaximized"})(({theme:e,isMaximized:r})=>({background:alpha(e.palette.common.white,.7),backdropFilter:"blur(8px)",width:183,position:"sticky",padding:"16px 8px",paddingTop:r?s:"16px",height:"100%",overflow:"auto"})),b=styled(d)(()=>({display:"flex",flexDirection:"column",gap:"8px"})),g=styled(d,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:r})=>({background:r?"linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)":"transparent",borderRadius:"4px",padding:"4px 8px",color:r?e.palette.common.white:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer",fontWeight:600})),S=styled(d,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:r})=>({background:r?"#FFFFFF":"transparent",borderRadius:"4px",padding:"4px 8px",color:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer",fontWeight:600}));function H({sections:e,isMaximized:r,onClick:x,activeSection:h,activeSubSection:E}){let A=yc(useId(),"expandable-side-bar"),i=h||e?.[0]?.id,k=E||e?.[0]?.subSections?.[0]?.id,[I,c]=useState({});return useEffect(()=>{e?.length&&c(t=>{let o=false,a={...t};for(let l of e)l.id in a||(a[l.id]=i===l.id,o=true);return o?a:t});},[e,i]),useEffect(()=>{i&&c(t=>({...t,[i]:true}));},[i]),jsx(f,{isMaximized:r,id:A,"data-testid":"ExpandableSideBar",children:jsx(b,{children:e?.map(t=>jsx(b$1,{expanded:I[t.id]??false,onChange:o=>c(a=>({...a,[t.id]:o})),label:jsx(S,{onClick:()=>{x?.(t.id,t.subSections?.[0]?.id);},isActive:i===t.id,children:t.title}),content:jsx(Fragment,{children:t.subSections?.map(o=>jsx(g,{onClick:()=>{x?.(t.id,o.id);},isActive:k===o.id,children:o.title},`${t.id}-${o.id}`))}),slotProps:{root:{component:"section",sx:{background:"transparent",border:"none !important","&.MuiAccordion-root":{borderRadius:"4px !important"}}},label:{sx:{padding:0,paddingRight:1,minHeight:0,marginBottom:"4px",borderRadius:"4px !important","& .MuiAccordionSummary-content":{margin:"0 !important"}}},content:{sx:{borderTop:"none",padding:0}}}},`${t.id}`))})})}var B=memo(H);var K=B;export{K as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-6YBUPJMW.js';import {a as a$1}from'./chunk-KHM5KW53.js';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var i=styled(a)(({theme:t})=>({color:t.palette.text.primary,"&.CustomVariant_text":{height:24},display:"inline-flex"}));var n=({title:t,slotProps:e={},children:l})=>{let{chip:h={},tooltip:a={}}=e,{sx:s,...c}=h;return jsx(a$1,{...a,title:t,children:jsx(i,{...c,sx:{height:24,display:"inline-flex",color:"text.primary",...s},children:l})})},C=n;export{C as a};
1
+ import {a}from'./chunk-K4ASYA5P.js';import {a as a$1}from'./chunk-KHM5KW53.js';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var i=styled(a)(({theme:t})=>({color:t.palette.text.primary,"&.CustomVariant_text":{height:24},display:"inline-flex"}));var n=({title:t,slotProps:e={},children:l})=>{let{chip:h={},tooltip:a={}}=e,{sx:s,...c}=h;return jsx(a$1,{...a,title:t,children:jsx(i,{...c,sx:{height:24,display:"inline-flex",color:"text.primary",...s},children:l})})},C=n;export{C as a};
@@ -1 +1 @@
1
- import {b}from'./chunk-FEBPVWE2.js';import {yc}from'./chunk-PBMQM3P4.js';import {qi}from'./chunk-7567D5HA.js';import {memo,useId,useState,useRef,useEffect}from'react';import {useTheme}from'@mui/material';import {motion,AnimatePresence}from'framer-motion';import {useTranslation}from'react-i18next';import K from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var h=styled(motion.input)(({theme:t})=>({padding:"8px",paddingRight:"24px",borderRadius:"4px",height:32,color:t.palette.text.primary,fontSize:"11px",outline:0,zIndex:10,background:t.palette.common.white,display:"flex",minWidth:0,flexGrow:1,boxShadow:`0px 0px 4px 0px ${t.palette.info.dark}80`,border:`1px solid ${t.palette.info.dark}`,"::placeholder":{color:"#D5D5D5"}})),x=styled(motion.img)(()=>({position:"absolute",zIndex:11,cursor:"pointer"})),I=styled(b)(()=>({minWidth:"auto",borderRadius:"4px",paddingInline:"8px",position:"relative",zIndex:11})),g=styled(K)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"relative",zIndex:3,height:32,gap:8}));function j({onSearchChange:t,placeholder:v,...b}){let w=yc(useId(),"search-button"),[e,p]=useState(false),[C,i]=useState(false),[r,l]=useState(""),c=useRef(null);useEffect(()=>{e&&c.current?.focus();},[e]);let{t:B}=useTranslation(),E=useTheme(),T=()=>{i(true),p(false),t?.(""),l("");},k=()=>{i(false),p(true),P();},P=()=>{r&&t?.(r);},R=a=>{a.key==="Enter"&&t?.(r);},z=a=>{l(a.currentTarget.value);},D={duration:.18,ease:"easeInOut"},W={duration:.05,ease:"easeIn"},A=e||C;return jsxs(g,{id:w,"data-testid":"SearchButton",children:[jsx(AnimatePresence,{initial:false,onExitComplete:()=>i(false),children:e&&jsxs(Fragment,{children:[jsx(h,{ref:c,initial:{width:30},animate:{width:200},exit:{width:30,border:`1px solid ${E.palette.divider}`,boxShadow:"none"},transition:D,style:{willChange:"width"},placeholder:v??(B("search")||""),onKeyDown:R,onChange:z}),jsx(x,{style:{right:48},initial:{opacity:1},exit:{opacity:0},transition:W,src:qi,alt:"close",onClick:T})]})}),jsx(I,{...b,variant:A?"active":"inActive",icon:"search",onClick:k})]})}var y=memo(j);var pt=y;export{pt as a};
1
+ import {b}from'./chunk-JW4M53EU.js';import {yc}from'./chunk-PBMQM3P4.js';import {qi}from'./chunk-7567D5HA.js';import {memo,useId,useState,useRef,useEffect}from'react';import {useTheme}from'@mui/material';import {motion,AnimatePresence}from'framer-motion';import {useTranslation}from'react-i18next';import K from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var h=styled(motion.input)(({theme:t})=>({padding:"8px",paddingRight:"24px",borderRadius:"4px",height:32,color:t.palette.text.primary,fontSize:"11px",outline:0,zIndex:10,background:t.palette.common.white,display:"flex",minWidth:0,flexGrow:1,boxShadow:`0px 0px 4px 0px ${t.palette.info.dark}80`,border:`1px solid ${t.palette.info.dark}`,"::placeholder":{color:"#D5D5D5"}})),x=styled(motion.img)(()=>({position:"absolute",zIndex:11,cursor:"pointer"})),I=styled(b)(()=>({minWidth:"auto",borderRadius:"4px",paddingInline:"8px",position:"relative",zIndex:11})),g=styled(K)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"relative",zIndex:3,height:32,gap:8}));function j({onSearchChange:t,placeholder:v,...b}){let w=yc(useId(),"search-button"),[e,p]=useState(false),[C,i]=useState(false),[r,l]=useState(""),c=useRef(null);useEffect(()=>{e&&c.current?.focus();},[e]);let{t:B}=useTranslation(),E=useTheme(),T=()=>{i(true),p(false),t?.(""),l("");},k=()=>{i(false),p(true),P();},P=()=>{r&&t?.(r);},R=a=>{a.key==="Enter"&&t?.(r);},z=a=>{l(a.currentTarget.value);},D={duration:.18,ease:"easeInOut"},W={duration:.05,ease:"easeIn"},A=e||C;return jsxs(g,{id:w,"data-testid":"SearchButton",children:[jsx(AnimatePresence,{initial:false,onExitComplete:()=>i(false),children:e&&jsxs(Fragment,{children:[jsx(h,{ref:c,initial:{width:30},animate:{width:200},exit:{width:30,border:`1px solid ${E.palette.divider}`,boxShadow:"none"},transition:D,style:{willChange:"width"},placeholder:v??(B("search")||""),onKeyDown:R,onChange:z}),jsx(x,{style:{right:48},initial:{opacity:1},exit:{opacity:0},transition:W,src:qi,alt:"close",onClick:T})]})}),jsx(I,{...b,variant:A?"active":"inActive",icon:"search",onClick:k})]})}var y=memo(j);var pt=y;export{pt as a};
@@ -0,0 +1,2 @@
1
+ import {yc}from'./chunk-PBMQM3P4.js';import {memo,useId}from'react';import {Box}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import W from'@mui/material/Accordion';import $ from'@mui/material/AccordionDetails';import T from'@mui/material/AccordionSummary';import {styled}from'@mui/material/styles';function f({sx:o}){return jsx(Box,{component:"span",sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:"rotate(0deg)",...o},children: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:"#20232B",stroke:"#20232B",strokeWidth:"0.1"})})})}f.displayName="AccordionExpandIcon";var i=memo(f);var A="#f2f2f2",G="#fbfbfb",u=styled(W)(({theme:o})=>({overflow:"hidden",border:`1px solid ${A}`,borderWidth:1,borderRadius:o.shape.borderRadius,margin:0,background:o.palette.background.paper,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0}})),g=styled(T)(()=>({background:G,minHeight:"40px",height:"40px",padding:"10px","&.Mui-expanded":{minHeight:"40px",height:"40px"},"& .MuiAccordionSummary-content":{margin:0,display:"flex",flexDirection:"row",alignItems:"center",flexGrow:1,minWidth:0,gap:10},"& .MuiAccordionSummary-expandIconWrapper":{marginLeft:8}})),h=styled($)(()=>({padding:0,borderTop:`1px solid ${A}`}));function C({expanded:o,onChange:I,label:w,content:S,labelStartAdornment:a,labelEndAdornment:p,slotProps:r={},disabled:L=false,expandIcon:B}){let e=yc(useId()),E=`accordion-${e}`,l=`accordion-content-${e}`,s=`accordion-label-${e}`,{showArrow:m,...P}=r?.label??{},R=m===true||m===void 0,k=jsxs(Fragment,{children:[a!=null&&jsx(Box,{component:"span",sx:{flexShrink:0},children:a}),jsx(Box,{component:"span",sx:{minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},children:w}),p!=null&&jsx(Box,{component:"span",sx:{flexShrink:0,marginLeft:"auto"},children:p})]}),v=B??(R?jsx(i,{}):null);return jsxs(u,{id:E,"data-testid":"Accordion",disabled:L,expanded:o,onChange:()=>I(!o),...r.root,children:[jsx(g,{"aria-controls":l,"aria-expanded":o,expandIcon:v,id:s,...P,children:k}),jsx(h,{id:l,role:"region","aria-labelledby":s,...r.content,children:S})]})}C.displayName="Accordion";var b=memo(C);var io=b;
2
+ export{i as a,io as b};
@@ -0,0 +1,2 @@
1
+ import {h,g,a,f,e,d,c}from'./chunk-CVNAIZE7.js';import {z}from'./chunk-5KB7IA3L.js';import {yc,Ka,g as g$1}from'./chunk-PBMQM3P4.js';import {tl,ja,Ta,Jg,dl,Ya,Sa,Sg,Rg,Tg,Qg,Vg,zb,yb,vk,dk,gb,qk,B,w,A,D,Oh,ck,u,wk}from'./chunk-7567D5HA.js';import {memo,useId,useState,useRef,useEffect,useMemo,useCallback}from'react';import {useTranslation}from'react-i18next';import {useTheme}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';function L({isActive:p,disableHover:n}){let[c,C]=useState(false),s=useTheme(),e=()=>{n||C(true);},i=()=>{C(false);},h=p?s.palette.common.white:s.palette.grey[700],u=c?s.palette.common.black:"transparent";return jsx("svg",{width:"27",height:"30",viewBox:"0 0 27 32",xmlns:"http://www.w3.org/2000/svg",children:jsxs("g",{id:"Group 140343",children:[jsx("path",{id:"Active",d:"M0 0H11C19.8366 0 27 7.16344 27 16C27 24.8366 19.8366 32 11 32H0V0Z",fill:u,fillOpacity:"0.1",onMouseEnter:e,onMouseLeave:i}),jsx("path",{id:"Union",fillRule:"evenodd",clipRule:"evenodd",d:"M15.6941 15.0078C15.6494 15.0193 15.6083 15.043 15.5758 15.0769L12.5026 18.1501L12.5025 18.1501L15.5756 15.0769C15.6082 15.043 15.6493 15.0193 15.6941 15.0078ZM12.5619 18.7465C12.5426 18.7512 12.5227 18.7536 12.5026 18.7536C12.4363 18.7536 12.3727 18.7273 12.3258 18.6804L9.07581 15.4304C9.04012 15.3957 9.01559 15.3512 9.00535 15.3025C8.99511 15.2538 8.99963 15.2032 9.01833 15.1571C9.03703 15.111 9.06907 15.0715 9.11033 15.0437C9.13446 15.0275 9.16112 15.0156 9.18904 15.0086C9.16105 15.0156 9.13433 15.0275 9.11013 15.0438C9.06887 15.0716 9.03684 15.111 9.01814 15.1571C8.99944 15.2032 8.99492 15.2539 9.00516 15.3026C9.0154 15.3513 9.03993 15.3958 9.07562 15.4305L12.3256 18.6805C12.3725 18.7273 12.4361 18.7537 12.5024 18.7537C12.5226 18.7537 12.5426 18.7512 12.5619 18.7465ZM16.1965 15.342C16.1781 15.4301 16.1338 15.5105 16.0693 15.5731L12.8205 18.8219C12.7361 18.9063 12.6217 18.9537 12.5024 18.9537C12.3831 18.9537 12.2686 18.9062 12.1842 18.8219L8.93507 15.5728C8.87148 15.5105 8.82775 15.4308 8.80944 15.3437C8.79101 15.2561 8.79914 15.165 8.8328 15.082C8.86646 14.999 8.92412 14.9279 8.99839 14.8779C9.07266 14.8279 9.16022 14.8011 9.24978 14.8011C9.30998 14.8011 9.36958 14.8132 9.42503 14.8366C9.47997 14.8599 9.52973 14.8938 9.57144 14.9364L12.5024 17.8673L15.433 14.9368C15.5151 14.852 15.6273 14.803 15.7454 14.8002C15.836 14.798 15.9252 14.8233 16.0013 14.8728C16.0773 14.9222 16.1367 14.9935 16.1715 15.0772C16.2063 15.1609 16.2151 15.2533 16.1965 15.342Z",fill:h})]})})}var vt={inProgress:wk,initiated:wk,abandoned:u,cancelled:ck,reversed:Oh,reports:D,search:A,chevronDown:w,unAuthorized:B,unSettled:qk,unCaptured:gb,captured:dk,authorized:vk,openFlag:yb,closedFlag:zb,unauthenticated:Vg,authenticated:Qg,paidOut:Tg,scheduled:Rg,checked:Sg,dashedChecked:Sa,deactivated:Ya,destination:dl,destinationReversed:Jg,outstanding:Ta,active:ja,inactive:tl};var Nt=memo(p=>{let{variant:n="inActive",badgeCount:c$1,icon:C,label:s,dropdownOptions:e$1,selectedStatus:i,onButtonBodyClick:h$1,iconMapper:u=vt,buttonSx:Bt,...bt}=p,St=yc(useId(),"status-button"),[Lt,M]=useState(0),{t:y}=useTranslation(),E=useRef(null),[x,f$1]=useState(null),[o,H]=useState(i??e$1?.[0]?.status);useEffect(()=>{i!==void 0&&H(i);},[i]);let d$1=useMemo(()=>!!e$1?.length,[e$1]),I=!!x&&Lt>1,l=n==="active",P=useMemo(()=>l?"active":"inactive",[l]),m=useMemo(()=>o?e$1?.find(t=>t.status===o):null,[o,e$1]),kt=useMemo(()=>{if(m?.icon)return jsx(h,{variant:n,children:m.icon});let t=o&&u[o]?o:C;if(t&&u[t])return jsx(g,{icon:t,variant:n,src:u[t],alt:`${t}-icon`})},[m,o,u,C,n]),wt=useMemo(()=>!c$1||Number.isNaN(Ka(c$1))?null:jsx(z,{color:P,children:g$1(Number(c$1))}),[c$1,P]),T=useMemo(()=>d$1?jsx(L,{isActive:l}):null,[d$1,l]);useEffect(()=>{l||(M(0),f$1(null));},[l]);let g$2=useCallback(()=>{f$1(null);},[]),A=useCallback(()=>{d$1&&f$1(I?null:E.current);},[d$1,I]),Mt=useCallback(t=>{t.stopPropagation(),p?.onClick?.(t),h$1?.(o||e$1?.[0]?.status||"all"),A(),M(B=>B+1);},[p,h$1,o,e$1,A]),D=useCallback(t=>B=>{t?.onClick?.(B),H(t.status),g$2();},[g$2]),yt=useMemo(()=>e$1?.map(t=>({...t,onClick:D(t)}))||[],[e$1,D]),Et=a[n],xt=useMemo(()=>m?.label||(o?y(o):s),[m,o,y,s]);return jsxs(Fragment,{children:[jsx(Et,{id:St,"data-testid":"StatusButton",...bt,ref:E,onClick:Mt,statusVariant:n,sx:{...d$1&&{paddingInlineEnd:"27px"},...Bt},children:jsxs(f,{children:[jsxs(e,{variant:n,children:[kt,xt,wt]}),T&&jsx(d,{children:T})]})}),I&&d$1&&jsx(c,{open:I,onClose:g$2,anchorEl:x,menuItems:yt})]})}),gt=Nt;var oo=gt;
2
+ export{L as a,oo as b};
@@ -1 +1 @@
1
- import {a}from'./chunk-WN5DXLHY.js';import {yc}from'./chunk-PBMQM3P4.js';import c,{forwardRef,useId,useMemo,useState,useRef,useEffect}from'react';import {styled,Box,useTheme}from'@mui/material';import {motion}from'framer-motion';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var f=styled(forwardRef((t,o)=>{let{className:r,variant:n="text",...e}=t,i=`${r||""} CustomVariant_${n}`;return jsx(Box,{ref:o,...e,className:i})}),{shouldForwardProp:t=>t!=="icon"})(({theme:t,variant:o="text",icon:r})=>({border:`1px solid ${t.palette.divider}`,borderRadius:"30px",backgroundColor:t.palette.background.paper,display:"flex",alignItems:"center",justifyContent:"center",...r&&{justifyContent:"flex-start",gap:t.spacing(1)},...o==="text"&&{padding:`${t.spacing(.75)} ${t.spacing(1)}`,height:"30px",maxWidth:"150px"},...o==="circular"&&{height:24,width:24},...o==="pill-icon"&&{height:24,width:36}})),C=styled("span")(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(1)})),h=styled(motion.span,{shouldForwardProp:t=>t!=="sourcesCount"})(({sourcesCount:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minWidth:`${t*6+36}px `,minHeight:"24px",cursor:"pointer",backgroundColor:"transparent",borderRadius:"16px"})),x=t=>{let{index:o,xDelta:r=39,shadow:n,itemsCount:e=0,expandDirection:i="RIGHT"}=t,a=(e-1)*6;return {start:{x:o*6,transition:{duration:.3,type:"tween",ease:"easeIn"}},animate:{x:i==="RIGHT"?o*r:a+-1*((e-1-o)*r),transition:{duration:.3,type:"tween",ease:"easeOut"},boxShadow:n}}};var $=forwardRef(({children:t,...o},r)=>{let n=yc(useId(),"chip"),{icon:e}=o;return jsxs(f,{ref:r,id:n,"data-testid":"Chip",...o,children:[jsx(Fragment,{children:e}),t]})}),H=$;var F=({order:t,children:o,getSourceAnimation:r,sourceCount:n,expandDirection:e})=>{let i=r||x,a$1=useTheme(),p=useMemo(()=>i({index:t,shadow:a$1.shadows[4],itemsCount:n,expandDirection:e}),[t,a$1.shadows,i,n,e]);return jsx(a,{order:t,variants:p,children:o})},u=F;var g=({children:t,className:o,getSourceAnimation:r,expandDirection:n})=>{let e=c.Children.count(t),[i,a]=useState({width:0,height:0}),p=useRef(null);useEffect(()=>{if(!p.current)return;let s=p.current;a({width:s.clientWidth,height:s.clientHeight});},[]);let y=useMemo(()=>c.Children.map(t,s=>!c.isValidElement(s)||s.type!==u?(console.error(`\u26A0\uFE0F WARNING: "${g.name}" must contains only children of type "${u.name}"`),s):c.cloneElement(s,{...s.props,sourceCount:e,getSourceAnimation:r,expandDirection:n})),[t,r,e,n]);return jsx(C,{"data-testid":"styled-source-cell",sx:{...i},children:jsx(h,{ref:p,layout:true,className:o,whileHover:"animate",animate:"start",sourcesCount:e,variants:{animate:{width:e*38,zIndex:50}},style:{zIndex:29},children:y})})},L=g;export{H as a,u as b,L as c};
1
+ import {b}from'./chunk-ZONDSLTR.js';import {yc}from'./chunk-PBMQM3P4.js';import c,{forwardRef,useId,useMemo,useState,useRef,useEffect}from'react';import {styled,Box,useTheme}from'@mui/material';import {motion}from'framer-motion';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var f=styled(forwardRef((t,o)=>{let{className:r,variant:n="text",...e}=t,i=`${r||""} CustomVariant_${n}`;return jsx(Box,{ref:o,...e,className:i})}),{shouldForwardProp:t=>t!=="icon"})(({theme:t,variant:o="text",icon:r})=>({border:`1px solid ${t.palette.divider}`,borderRadius:"30px",backgroundColor:t.palette.background.paper,display:"flex",alignItems:"center",justifyContent:"center",...r&&{justifyContent:"flex-start",gap:t.spacing(1)},...o==="text"&&{padding:`${t.spacing(.75)} ${t.spacing(1)}`,height:"30px",maxWidth:"150px"},...o==="circular"&&{height:24,width:24},...o==="pill-icon"&&{height:24,width:36}})),C=styled("span")(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(1)})),h=styled(motion.span,{shouldForwardProp:t=>t!=="sourcesCount"})(({sourcesCount:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minWidth:`${t*6+36}px `,minHeight:"24px",cursor:"pointer",backgroundColor:"transparent",borderRadius:"16px"})),x=t=>{let{index:o,xDelta:r=39,shadow:n,itemsCount:e=0,expandDirection:i="RIGHT"}=t,a=(e-1)*6;return {start:{x:o*6,transition:{duration:.3,type:"tween",ease:"easeIn"}},animate:{x:i==="RIGHT"?o*r:a+-1*((e-1-o)*r),transition:{duration:.3,type:"tween",ease:"easeOut"},boxShadow:n}}};var $=forwardRef(({children:t,...o},r)=>{let n=yc(useId(),"chip"),{icon:e}=o;return jsxs(f,{ref:r,id:n,"data-testid":"Chip",...o,children:[jsx(Fragment,{children:e}),t]})}),H=$;var F=({order:t,children:o,getSourceAnimation:r,sourceCount:n,expandDirection:e})=>{let i=r||x,a=useTheme(),p=useMemo(()=>i({index:t,shadow:a.shadows[4],itemsCount:n,expandDirection:e}),[t,a.shadows,i,n,e]);return jsx(b,{order:t,variants:p,children:o})},u=F;var g=({children:t,className:o,getSourceAnimation:r,expandDirection:n})=>{let e=c.Children.count(t),[i,a]=useState({width:0,height:0}),p=useRef(null);useEffect(()=>{if(!p.current)return;let s=p.current;a({width:s.clientWidth,height:s.clientHeight});},[]);let y=useMemo(()=>c.Children.map(t,s=>!c.isValidElement(s)||s.type!==u?(console.error(`\u26A0\uFE0F WARNING: "${g.name}" must contains only children of type "${u.name}"`),s):c.cloneElement(s,{...s.props,sourceCount:e,getSourceAnimation:r,expandDirection:n})),[t,r,e,n]);return jsx(C,{"data-testid":"styled-source-cell",sx:{...i},children:jsx(h,{ref:p,layout:true,className:o,whileHover:"animate",animate:"start",sourcesCount:e,variants:{animate:{width:e*38,zIndex:50}},style:{zIndex:29},children:y})})},L=g;export{H as a,u as b,L as c};
@@ -0,0 +1 @@
1
+ import {a as a$1}from'./chunk-ZONDSLTR.js';import {a}from'./chunk-KHM5KW53.js';import {yc,f as f$1}from'./chunk-PBMQM3P4.js';import {mb}from'./chunk-7567D5HA.js';import {useId}from'react';import {useTranslation}from'react-i18next';import {jsx,jsxs}from'react/jsx-runtime';var m=t=>({start:{x:t*6,transition:{duration:.3,type:"tween",ease:"easeIn"}},animate:{x:t*39,transition:{duration:.3,type:"tween",ease:"easeOut"}}});var d=({children:t})=>jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2px"},children:t});function f({value:t,index:e}){let s=yc(useId(),"rating-count"),{t:u}=useTranslation();return jsx(a,{title:u("totalPaymentCount",{amount:f$1(t)}),wrapperProps:{display:"inline-flex"},children:jsx(a$1,{id:s,order:e,variants:m(e),"data-testid":"RatingCount",children:jsxs(d,{children:[jsx("img",{src:mb,alt:"star",style:{width:"10px",height:"10px"}})," ",(t||0)>1&&jsx("span",{style:{fontSize:"9.782px"},children:t})]})})})}export{f as a};