@tap-payments/os-micro-frontend-shared 0.3.182-test.7 → 0.3.182-test.8
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.
- package/README.md +1 -1
- package/build/_chunks/{chunk-2QINQUHF.js → chunk-2ONCI26T.js} +1 -1
- package/build/_chunks/{chunk-YADUWKGM.js → chunk-32AFOARI.js} +1 -1
- package/build/_chunks/{chunk-OKDNE3LX.js → chunk-3DO2ZQNZ.js} +1 -1
- package/build/_chunks/{chunk-CQYXYYNC.js → chunk-3LZYOO6I.js} +1 -1
- package/build/_chunks/{chunk-4JXGA3OB.js → chunk-4UOPGO7F.js} +1 -1
- package/build/_chunks/{chunk-MW2U3CYT.js → chunk-BT64Z2AO.js} +1 -1
- package/build/_chunks/{chunk-HPF24DHY.js → chunk-DARANIJH.js} +1 -1
- package/build/_chunks/{chunk-HP62XFCT.js → chunk-DNK72EMP.js} +1 -1
- package/build/_chunks/{chunk-MGMUAGFX.js → chunk-EA5I4GJT.js} +1 -1
- package/build/_chunks/{chunk-CH2ZGJZI.js → chunk-EAMJDUHB.js} +1 -1
- package/build/_chunks/{chunk-HE6TUIYO.js → chunk-EETOOCZE.js} +1 -1
- package/build/_chunks/{chunk-VNWKMRWK.js → chunk-EOUGD47S.js} +1 -1
- package/build/_chunks/{chunk-PQPKKVY4.js → chunk-F2AZ34SU.js} +1 -1
- package/build/_chunks/{chunk-OBQNUC7M.js → chunk-F4NIDJ2K.js} +1 -1
- package/build/_chunks/{chunk-27CKE5LO.js → chunk-FXVHHO5E.js} +1 -1
- package/build/_chunks/{chunk-5CGUALYW.js → chunk-GEVH4GL4.js} +1 -1
- package/build/_chunks/{chunk-3ABGFDLW.js → chunk-GHY4YHDZ.js} +1 -1
- package/build/_chunks/{chunk-RYMSLURR.js → chunk-GLNJS5NQ.js} +1 -1
- package/build/_chunks/{chunk-IZENOXGO.js → chunk-HKXT4DFU.js} +1 -1
- package/build/_chunks/chunk-HPKLXMAE.js +1 -0
- package/build/_chunks/{chunk-NGBJM3TE.js → chunk-HWAYWBX5.js} +1 -1
- package/build/_chunks/chunk-I3MLD7Z2.js +1 -0
- package/build/_chunks/{chunk-3T2OR3KW.js → chunk-IXLHIONE.js} +1 -1
- package/build/_chunks/{chunk-DPRSHIL7.js → chunk-JB2AH23K.js} +1 -1
- package/build/_chunks/{chunk-OGWUMYMY.js → chunk-JGYEISZL.js} +1 -1
- package/build/_chunks/chunk-KLBED4FS.js +2 -0
- package/build/_chunks/{chunk-TLAOA7ZF.js → chunk-LBOKQUV4.js} +1 -1
- package/build/_chunks/{chunk-ZCJSYQSQ.js → chunk-LLNHJE36.js} +1 -1
- package/build/_chunks/{chunk-RKQEODRF.js → chunk-LT2KCIFI.js} +1 -1
- package/build/_chunks/{chunk-A2A6GTBC.js → chunk-M4BFRDK5.js} +1 -1
- package/build/_chunks/{chunk-2UVSOPTR.js → chunk-MGOYNHUJ.js} +1 -1
- package/build/_chunks/{chunk-PJ2BCCZI.js → chunk-MM2QUJID.js} +1 -1
- package/build/_chunks/{chunk-JSC3KW4C.js → chunk-MUJQMCOJ.js} +1 -1
- package/build/_chunks/{chunk-4Z2TQN2P.js → chunk-NTGPXCMA.js} +1 -1
- package/build/_chunks/{chunk-5QIO37S2.js → chunk-OEBWP7GG.js} +1 -1
- package/build/_chunks/{chunk-4CBQE3AB.js → chunk-ONMH6VRB.js} +1 -1
- package/build/_chunks/{chunk-WIQME66S.js → chunk-PHJDAOE7.js} +1 -1
- package/build/_chunks/{chunk-7NTYMXH4.js → chunk-PJCR234I.js} +1 -1
- package/build/_chunks/{chunk-ZMJUHXHX.js → chunk-PZUZT3HM.js} +1 -1
- package/build/_chunks/{chunk-HKJC6M7O.js → chunk-QLY4Z3AM.js} +1 -1
- package/build/_chunks/{chunk-WRR73LXR.js → chunk-QZWYJNR4.js} +1 -1
- package/build/_chunks/{chunk-POQMWUCD.js → chunk-RMZ7O2SQ.js} +1 -1
- package/build/_chunks/{chunk-WXDYNZIT.js → chunk-ROQQHG2Q.js} +1 -1
- package/build/_chunks/{chunk-2JH3DXZY.js → chunk-TOFRJSCP.js} +1 -1
- package/build/_chunks/{chunk-Y5HJUAMZ.js → chunk-UBX6SCSS.js} +1 -1
- package/build/_chunks/{chunk-7PJX5ZKM.js → chunk-WUPYXOEZ.js} +2 -2
- package/build/_chunks/{chunk-DEKIIMGN.js → chunk-XQF255ZT.js} +1 -1
- package/build/_chunks/chunk-Z4YLDJCQ.js +1 -0
- package/build/_chunks/{chunk-4C3JMCKP.js → chunk-Z7UCFDPX.js} +1 -1
- package/build/_chunks/{chunk-VJTGGGCJ.js → chunk-ZA5UKNQY.js} +1 -1
- package/build/_chunks/chunk-ZEF2G4DA.js +1 -0
- package/build/_chunks/{chunk-LLAU47BB.js → chunk-ZMN4XS3X.js} +1 -1
- package/build/_chunks/{chunk-56R3ADFJ.js → chunk-ZSUN3Q2B.js} +1 -1
- package/build/components/AccountDropdown/index.js +1 -1
- package/build/components/ActionMenu/index.js +1 -1
- package/build/components/ActiveFilterChip/index.js +1 -1
- package/build/components/AmountConversionFilter/index.js +1 -1
- package/build/components/AmountInput/index.js +1 -1
- package/build/components/AmountSlider/index.js +1 -1
- package/build/components/AppServices/index.js +1 -1
- package/build/components/AppServicesBar/index.js +1 -1
- package/build/components/AppWindowWrapper/index.js +1 -1
- package/build/components/BrandLogo/index.js +1 -1
- package/build/components/Button/Button.d.ts +16 -0
- package/build/components/Button/PlusButton/PlusButton.d.ts +10 -0
- package/build/components/Button/PlusButton/index.d.ts +2 -0
- package/build/components/Button/StyledButton/StyledButton.d.ts +11 -0
- package/build/components/Button/StyledButton/index.d.ts +2 -0
- package/build/components/Button/StyledButton/style.d.ts +5 -0
- package/build/components/Button/index.d.ts +4 -0
- package/build/components/Button/index.js +1 -0
- package/build/components/Button/style.d.ts +5 -0
- package/build/components/Calender/index.js +1 -1
- package/build/components/ChipStack/index.js +1 -1
- package/build/components/ColorPicker/index.js +1 -1
- package/build/components/ColumnViews/hooks/useViewsMenu.d.ts +2 -2
- package/build/components/ColumnViews/index.js +1 -1
- package/build/components/ConfirmDialog/index.js +1 -1
- package/build/components/CountryFilter/index.js +1 -1
- package/build/components/CurrencyFilter/index.js +1 -1
- package/build/components/Customer/index.js +1 -1
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/DateFilter/style.d.ts +6 -12
- package/build/components/DeviceIcon/index.js +1 -1
- package/build/components/Discount/index.js +1 -1
- package/build/components/Dropdown2/index.js +1 -1
- package/build/components/DropdownButton/index.js +1 -1
- package/build/components/DropdownMenu/index.js +1 -1
- package/build/components/ExpandableSideBar/index.js +1 -1
- package/build/components/FileInputPreview/index.js +1 -1
- package/build/components/FileUpload/index.js +1 -1
- package/build/components/FileUploader/index.js +1 -1
- package/build/components/FilterDropdown/index.js +1 -1
- package/build/components/Filters/index.js +1 -1
- package/build/components/HeatMap/index.js +1 -1
- package/build/components/IconWithBadge/index.js +1 -1
- package/build/components/InputBase/index.js +1 -1
- package/build/components/Inputs/index.js +1 -1
- package/build/components/JSONViewer/index.js +1 -1
- package/build/components/LanguageDropdown/index.js +1 -1
- package/build/components/ListColumnFilter/index.js +1 -1
- package/build/components/ListHeader/constants.d.ts +0 -9
- package/build/components/ListHeader/index.js +1 -1
- package/build/components/MenuItem/index.js +1 -1
- package/build/components/MerchantCurrencyDropdown/index.js +1 -1
- package/build/components/MerchantLogo/index.js +1 -1
- package/build/components/MerchantsDropdown/index.js +1 -1
- package/build/components/MultiSelectDropdownButton/index.js +1 -1
- package/build/components/MultiSelectWithSearch/index.js +1 -1
- package/build/components/NestedDropdown/index.js +1 -1
- package/build/components/PartnersFilter/index.js +1 -1
- package/build/components/PaymentSourceFilter/index.js +1 -1
- package/build/components/PhoneFilter/index.js +1 -1
- package/build/components/ProgressRing/index.js +1 -1
- package/build/components/RFH/index.js +1 -1
- package/build/components/RadioGroup/index.js +1 -1
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/RatingCount/index.js +1 -1
- package/build/components/ReceiptsViewer/index.js +1 -1
- package/build/components/ReferenceTypeFilter/index.js +1 -1
- package/build/components/SalesChannelFilter/index.js +1 -1
- package/build/components/SearchButton/index.js +1 -1
- package/build/components/SelectDropdown/index.js +1 -1
- package/build/components/SelectWithSearch/index.js +1 -1
- package/build/components/StatusBar/index.js +1 -1
- package/build/components/StatusButton/index.js +1 -1
- package/build/components/StatusFilter/index.js +1 -1
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/StatusLabel/index.js +1 -1
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TableReports/index.js +1 -1
- package/build/components/Timepicker/index.js +1 -1
- package/build/components/Toolbar/index.js +1 -1
- package/build/components/TooltipChip/index.js +1 -1
- package/build/components/TreeDropdown/index.js +1 -1
- package/build/components/VAT/index.js +1 -1
- package/build/components/VerificationIcon/index.js +1 -1
- package/build/components/ViewColumnRadioFilter/index.js +1 -1
- package/build/components/VirtualTables/index.js +1 -1
- package/build/components/Widget/index.js +1 -1
- package/build/components/WindowAppIcon/index.js +1 -1
- package/build/components/WindowSideBar/index.js +1 -1
- package/build/components/index.d.ts +2 -2
- package/build/components/index.js +1 -1
- package/build/components/primitives/Dialog/style.d.ts +3 -1
- package/build/components/primitives/Dialog/type.d.ts +2 -0
- package/build/components/primitives/index.js +1 -1
- package/build/index.js +1 -1
- package/package.json +2 -2
- package/build/_chunks/chunk-EN3RBDWB.js +0 -1
- package/build/_chunks/chunk-FOLYGHQ2.js +0 -1
- package/build/_chunks/chunk-LT4Z7V4F.js +0 -1
- package/build/_chunks/chunk-WJXVFIVW.js +0 -2
- package/build/components/Dialog/Dialog.d.ts +0 -14
- package/build/components/Dialog/components/DialogToolbar.d.ts +0 -9
- package/build/components/Dialog/constant.d.ts +0 -1
- package/build/components/Dialog/index.d.ts +0 -4
- package/build/components/Dialog/index.js +0 -1
- package/build/components/Dialog/style.d.ts +0 -272
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {kc,yc,ab,Zb,jc,zc,xa as xa$1}from'./chunk-2SKLD6QR.js';import {forwardRef,memo,useId,createElement,useState,useCallback,useMemo,Children,useEffect,useRef}from'react';import Je from'@mui/material/Box';import Va,{circularProgressClasses}from'@mui/material/CircularProgress';import Ra from'@mui/material/ButtonBase';import {styled,alpha,useTheme}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import Ko from'@mui/material/SvgIcon';import Xa from'@mui/material/Checkbox';import Ya from'@mui/material/FormControlLabel';import os from'@mui/material/Switch';import ns from'@mui/material/Typography';import gs from'@mui/material/Radio';import Ts from'@mui/material/Tooltip';import As from'@mui/material/Skeleton';import Zs from'@mui/material/Avatar';import _s from'@mui/material/Divider';import rn from'@mui/material/Collapse';import {createPortal}from'react-dom';import Cn from'@mui/material/Backdrop';import Zn,{SliderThumb}from'@mui/material/Slider';import qn from'@mui/material/FormControl';import Jn from'@mui/material/InputLabel';import Qn from'@mui/material/Input';import si from'@mui/material/InputBase';import di from'@mui/material/Accordion';import ci from'@mui/material/AccordionDetails';import mi from'@mui/material/AccordionSummary';import Ci from'@mui/material/Popper';import wi from'@mui/material/Dialog';import Ii from'@mui/material/DialogActions';import Bi from'@mui/material/DialogContent';import Ti from'@mui/material/DialogTitle';import {LazyLoadImage}from'react-lazy-load-image-component';import al from'@mui/material/Stack';var z="os-shared-Button",v={root:`${z}-root`,content:`${z}-content`,startIcon:`${z}-startIcon`,endIcon:`${z}-endIcon`,icon:`${z}-icon`,loading:`${z}-loading`,loadingSpinner:`${z}-loadingSpinner`},he={sm:{height:24,paddingY:8,paddingX:16,fontSize:"10px"},md:{height:32,minWidth:79,paddingY:8,paddingX:24,fontSize:"13px",lineHeight:"16px"},lg:{height:40,paddingY:8,paddingX:32,fontSize:"12px"}},be={sm:{width:24,minWidth:24,height:24,padding:0},md:{width:30,minWidth:30,height:30,padding:0},lg:{width:38,minWidth:38,height:38,padding:0}},Se={sm:12,md:12,lg:14};var ve=styled(Ra,{shouldForwardProp:o=>o!=="$variant"&&o!=="$size"&&o!=="$fullWidth"&&o!=="$isLoading"&&o!=="$hasIcon"&&o!=="$isIconOnly"})(({theme:o,$variant:e="primary",$size:t="md",$fullWidth:r,$isLoading:a,$hasIcon:s,$isIconOnly:i})=>{let n=o.v2.palette,{paddingX:p,paddingY:d,...c}=he[t],f=be[t];return {display:"inline-flex",alignItems:"center",justifyContent:"center",gap:o.v2.spacing(6),borderRadius:o.v2.radius(4),lineHeight:"100%",whiteSpace:"nowrap",position:"relative",cursor:a?"not-allowed":"pointer",transition:"background-color 0.15s ease, opacity 0.15s ease",...c,padding:`${o.v2.spacing(d)} ${o.v2.spacing(p)}`,fontWeight:o.typography.fontWeightMedium,...r&&!i&&{width:"100%"},...s&&!r&&!i&&{width:"auto",minWidth:0},...e==="primary"&&{background:n.brand[500],color:n.base.white,"&.Mui-disabled":{opacity:1,background:n.interactive.primary.disabled,color:n.base.white}},...e==="secondary"&&{backgroundColor:n.base.white,color:n.grey[900],border:`1px solid ${n.grey[100]}`,"&.Mui-disabled":{opacity:1,color:n.foreground.disabled}},...e==="ghost"&&{padding:0,minWidth:0,backgroundColor:"transparent",color:n.foreground.brand,"&.Mui-disabled":{opacity:.5}},...e==="danger"&&{backgroundColor:n.status.danger.default,color:n.base.white,"&.Mui-disabled":{opacity:1,backgroundColor:alpha(n.status.danger.default,.14),color:n.base.white}},...i&&{boxSizing:"border-box",...f}}}),Q=styled("span")(({theme:o})=>{let e=o.v2.spacing(16);return {display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,width:e,height:e}});var we=forwardRef(({children:o,variant:e="primary",size:t="md",isLoading:r=false,startIcon:a,endIcon:s,icon:i,fullWidth:n=false,disabled:p,className:d,sx:c,...f},y)=>{let m=i!=null;return jsxs(ve,{ref:y,className:kc(v.root,d),$variant:e,$size:t,$fullWidth:n,$isLoading:r,$hasIcon:m||!!a||!!s||r,$isIconOnly:m,disabled:p||r,"data-testid":"Button",sx:c,...f,children:[jsx(Je,{component:"span",className:v.content,sx:{display:"inline-flex",alignItems:"center",gap:"inherit",visibility:r?"hidden":"visible"},children:m?jsx(Q,{className:v.icon,children:i}):jsxs(Fragment,{children:[a&&jsx(Q,{className:v.startIcon,children:a}),o,s&&jsx(Q,{className:v.endIcon,children:s})]})}),r&&jsx(Q,{className:v.loading,sx:{position:"absolute"},children:jsx(Va,{className:v.loadingSpinner,size:Se[t],color:"inherit"})})]})});we.displayName="Button";var Ie=memo(we);var Za="os-shared-Icon",po={root:`${Za}-root`};var Be=styled("img")(({theme:o})=>({width:o.v2.spacing(16),height:o.v2.spacing(16),verticalAlign:"middle",flexShrink:0}));var Te=forwardRef(({className:o,sx:e,...t},r)=>jsx(Be,{className:kc(po.root,o),sx:e,"data-testid":"Icon",...t,ref:r}));Te.displayName="Icon";var Pe=memo(Te);var jo="os-shared-Checkbox",D={root:`${jo}-root`,control:`${jo}-control`,label:`${jo}-label`};var $e=({disabled:o,...e})=>{let{v2:t}=useTheme(),{brand:r,base:a,foreground:s}=t.palette;return jsxs(Ko,{viewBox:"0 0 12 12",sx:{width:12,height:12},...e,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:o?s.disabled:r[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74206C9.04243 3.9443 9.05652 4.28711 8.86537 4.50775L5.64586 8.22387C5.55146 8.33284 5.41909 8.39627 5.27942 8.39948C5.13975 8.40269 5.0049 8.3454 4.90612 8.24088L3.15002 6.38282C2.94999 6.17118 2.94999 5.82804 3.15002 5.61641C3.35004 5.40477 3.67435 5.40477 3.87437 5.61641L5.2522 7.07424L8.11024 3.77535C8.30138 3.55472 8.62538 3.53981 8.83391 3.74206Z",fill:a.white})]})},Me=({disabled:o,...e})=>{let{v2:t}=useTheme(),{base:r,grey:a}=t.palette;return jsx(Ko,{viewBox:"0 0 12 12",sx:{width:12,height:12},...e,children:jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"1.8",fill:o?a[50]:r.white,stroke:o?a[200]:a[500],strokeWidth:"1.2"})})},Fe=({disabled:o,...e})=>{let{v2:t}=useTheme(),{brand:r,base:a,foreground:s}=t.palette;return jsxs(Ko,{viewBox:"0 0 12 12",sx:{width:12,height:12},...e,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:o?s.disabled:r[500]}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:a.white})]})};var De=styled(Xa)(({theme:o})=>({padding:o.v2.spacing(2),"&:hover":{backgroundColor:"transparent"}})),Re=styled(Ya)(({theme:o})=>{let{base:e,grey:t}=o.v2.palette;return {marginLeft:0,gap:o.v2.spacing(4),"& .MuiFormControlLabel-label":{fontSize:"11px",color:e.black},"& .MuiFormControlLabel-label.Mui-disabled":{color:t[500]}}});var Ae=forwardRef(({label:o,labelPlacement:e="end",disabled:t,sx:r,className:a,...s},i)=>{let n=yc(useId(),"checkbox"),p=jsx(De,{id:n,ref:i,disableRipple:true,disabled:t,checkedIcon:jsx($e,{disabled:t}),icon:jsx(Me,{disabled:t}),indeterminateIcon:jsx(Fe,{disabled:t}),"data-testid":"Checkbox",className:kc(o?D.control:D.root,o?void 0:a),sx:o?void 0:r,...s});return o?jsx(Re,{className:kc(D.root,a),sx:r,control:p,label:o,labelPlacement:e,disabled:t,componentsProps:{typography:{className:D.label}}}):p});Ae.displayName="Checkbox";var We=memo(Ae);var Qa="os-shared-Switch",co={root:`${Qa}-root`};var Ee=styled(os)(({theme:o,disabled:e})=>{let{base:t,grey:r,success:a}=o.v2.palette;return {width:28,height:16,padding:0,borderRadius:o.v2.radius(8),opacity:e?.5:1,overflow:"visible","& .MuiSwitch-switchBase":{padding:0,margin:o.v2.spacing(1),color:t.white,transitionDuration:"300ms","&:hover":{backgroundColor:"transparent"},"&.Mui-focusVisible":{outline:`2px solid ${r[400]}`,outlineOffset:2},"&.Mui-checked":{transform:"translateX(12px)",color:t.white,"& + .MuiSwitch-track":{backgroundColor:a[500],opacity:1,border:0}},"&.Mui-disabled":{color:t.white,"& + .MuiSwitch-track":{opacity:1},"& .MuiSwitch-thumb":{filter:"none"}},"&.Mui-checked.Mui-disabled":{color:t.white}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:14,height:14,color:t.white,backgroundColor:t.white,boxShadow:"none",filter:e?"none":"drop-shadow(0px 3px 0.5px rgba(0, 0, 0, 0.04)) drop-shadow(0px 3px 4px rgba(0, 0, 0, 0.12))"},"& .MuiSwitch-track":{borderRadius:o.v2.radius(8),backgroundColor:"#D9D9D9",opacity:1,transition:o.transitions.create(["background-color"],{duration:300})}}});var He=forwardRef(({className:o,sx:e,...t},r)=>jsx(Ee,{ref:r,className:kc(co.root,o),sx:e,"data-testid":"Switch",disableRipple:true,...t}));He.displayName="Switch";var Ve=memo(He);var ss="os-shared-Typography",mo={root:`${ss}-root`},fo="body.default.regular";var ls=o=>o!=null&&typeof o=="object"&&"fontFamily"in o&&"fontSize"in o&&"fontWeight"in o;function ps(o,e){try{let t=e.split(".").reduce((r,a)=>{if(r==null||typeof r!="object")throw new TypeError(`Invalid typography textVariant: ${e}`);return r[a]},o);if(!ls(t))throw new TypeError(`Invalid typography textVariant: ${e}`);return t}catch(t){return console.warn(t),o.body.default.regular}}function ds(o,e,t){return e===void 0?t:typeof e=="number"?e:{light:o.fontWeightLight,regular:o.fontWeightRegular,medium:o.fontWeightMedium,semibold:o.fontWeightBold,bold:o.fontWeightBolder}[e]??t}var Oe=styled(ns,{shouldForwardProp:o=>o!=="$textVariant"&&o!=="$weight"})(({theme:o,$textVariant:e=fo,$weight:t})=>{let{base:r}=o.v2.palette,a=ps(o.v2.typography.textVariants,e);return {color:r.black,...a,fontWeight:ds(o.v2.typography,t,a.fontWeight)}});var Ze=forwardRef(({textVariant:o=fo,variant:e="subtitle2",weight:t,className:r,sx:a,...s},i)=>jsx(Oe,{ref:i,className:kc(mo.root,r),sx:a,"data-testid":"Typography",...s,variant:e,$textVariant:o,$weight:t}));Ze.displayName="Typography";var je=memo(Ze);var us="os-shared-RadioButton";var uo={root:`${us}-root`};var Ge=({disabled:o,...e})=>{let{v2:t}=useTheme(),{brand:r,base:a}=t.palette,s=o?"#BDC1CC":r[500];return jsxs(Ko,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...e,children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"4.8",fill:s,stroke:s,strokeWidth:"1.2",style:{fill:s,stroke:s}}),jsx("circle",{cx:"6",cy:"6",r:"2.25",fill:a.white,style:{fill:a.white}})]})},Xe=({disabled:o,...e})=>{let{v2:t}=useTheme(),{base:r,grey:a}=t.palette,s=o?a[50]:r.white,i=o?a[200]:a[500];return jsx(Ko,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...e,children:jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"4.8",fill:s,stroke:i,strokeWidth:"1.2",style:{fill:s,stroke:i}})})};var Ye=styled(gs)(({theme:o})=>({padding:o.v2.spacing(2),"&:hover":{backgroundColor:"transparent"},"& .MuiSvgIcon-root":{fontSize:12,width:12,height:12}}));var _e=forwardRef(({disabled:o,sx:e,className:t,...r},a)=>jsx(Ye,{ref:a,disableRipple:true,disabled:o,checkedIcon:jsx(Ge,{disabled:o}),icon:jsx(Xe,{disabled:o}),"data-testid":"RadioButton",className:kc(uo.root,t),sx:e,...r}));_e.displayName="RadioButton";var qe=memo(_e);var go="os-shared-CircularProgress",R={root:`${go}-root`,progress:`${go}-progress`,labelOverlay:`${go}-labelOverlay`,labelText:`${go}-labelText`};var Qe=styled(Va)(({theme:o})=>{let{brand:e}=o.v2.palette;return {color:"#147DC5",background:alpha(e[500],.05),borderRadius:"50%",[`& .${circularProgressClasses.circle}`]:{strokeLinecap:"round"}}}),ot=styled(Je)(()=>({position:"relative",display:"inline-flex"})),et=styled(Je)(()=>({top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"})),tt=styled(ns)(({theme:o})=>({fontSize:o.typography.fontSize,fontWeight:o.typography.fontWeightBolder??700,color:"#3B4152"}));var rt=forwardRef(({variant:o="indeterminate",hasLabel:e=true,value:t,className:r,sx:a,...s},i)=>{let n=o==="determinate"&&e;return jsxs(ot,{className:kc(R.root,r),sx:a,"data-testid":"CircularProgress",children:[jsx(Qe,{ref:i,variant:o,value:t,className:R.progress,...s}),n&&jsx(et,{className:R.labelOverlay,children:jsx(tt,{className:R.labelText,variant:"caption",color:"text.secondary",children:`${Math.round(t??0)}%`})})]})});rt.displayName="CircularProgress";var at=memo(rt);var A="os-shared-Tooltip",h={popper:`${A}-popper`,tooltip:`${A}-tooltip`,arrow:`${A}-arrow`,content:`${A}-content`,title:`${A}-title`,supportingText:`${A}-supportingText`,wrapper:`${A}-wrapper`};var st=styled(({className:o,...e})=>createElement(Ts,{...e,classes:{popper:kc(h.popper,o),tooltip:h.tooltip,arrow:h.arrow}}))(({theme:o})=>{let{base:e,grey:t}=o.v2.palette,r=e.white,a="var(--tooltip-border-width) solid var(--tooltip-border-color)";return {"--tooltip-border-color":"#3C373721","--tooltip-border-width":"1px",zIndex:999999,[`& .${h.arrow}`]:{color:r,"&:before":{backgroundColor:r,boxSizing:"border-box",border:a}},[`& .${h.tooltip}`]:{backgroundColor:r,color:t[700],boxShadow:o.v2.elevation[200],fontSize:12,fontWeight:400,lineHeight:1.2,padding:o.v2.spacing(6),borderRadius:o.v2.radius(8),border:a,maxWidth:320,wordBreak:"break-word"}}}),nt=styled("div")(({theme:o})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",gap:o.v2.spacing(6),maxWidth:296,width:"100%"})),it=styled("div",{shouldForwardProp:o=>o!=="$hasSupportingText"})(({theme:o,$hasSupportingText:e})=>{let{grey:t}=o.v2.palette;return {margin:0,fontSize:12,fontWeight:e?600:400,lineHeight:e?1:1.2,color:e?t[700]:alpha(t[700],.77),width:e?"100%":void 0}}),lt=styled("div")(({theme:o})=>{let{grey:e}=o.v2.palette;return {margin:0,fontSize:11,fontWeight:400,lineHeight:"normal",color:e[500],width:"100%",whiteSpace:"pre-wrap"}});function Fs(o){return o!=null&&o!==false&&o!==""}function Ls(o){return !!o||o===0}function zs(o,e){let t=Fs(e);if(!Ls(o)&&!t)return null;let r=jsx(it,{className:h.title,$hasSupportingText:t,children:o});return t?jsxs(nt,{className:h.content,children:[r,jsx(lt,{className:h.supportingText,children:e})]}):r}function pt({className:o,title:e,supportingText:t,placement:r="top",children:a,wrapperProps:s,sx:i,...n}){let{className:p,...d}=s??{};return jsx(st,{className:o,title:zs(e,t),placement:r,arrow:true,sx:i,...n,children:jsx(Je,{display:"flex",alignItems:"center","data-testid":"Tooltip",className:kc(h.wrapper,p),...d,children:a})})}pt.displayName="Tooltip";var dt=memo(pt);var Rs="os-shared-Skeleton",bo={root:`${Rs}-root`};var ct=styled(As)(()=>({}));var mt=forwardRef(({className:o,sx:e,variant:t="rounded",height:r=16,...a},s)=>jsx(ct,{ref:s,className:kc(bo.root,o),sx:e,"data-testid":"Skeleton",variant:t,height:r,...a}));mt.displayName="Skeleton";var ft=memo(mt);var Os="os-shared-Avatar",So={root:`${Os}-root`},No="xs",vo="teal",ut={teal:{from:"#31D5C8",to:"#1186C5"},green:{from:"#A2E9BD",to:"#44BB74"},cyan:{from:"#6BF6EB",to:"#32D6C9"},steel:{from:"#61AFC9",to:"#7FBFD4"},sage:{from:"#9DB7A4",to:"#7FBFD4"},gold:{from:"#D7B38C",to:"#FFE09F"},lime:{from:"#ADD6A2",to:"#FFDDB2"}},yt={xs:{dimension:24,fontSize:"9px"},sm:{dimension:32,fontSize:"12px"},md:{dimension:40,fontSize:"15px"},lg:{dimension:48,fontSize:"17px"},xl:{dimension:56,fontSize:"20px"}};function Ks(o){let{from:e,to:t}=ut[o];return `linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%), linear-gradient(135deg, ${e} 0%, ${t} 100%)`}var gt=styled(Zs,{shouldForwardProp:o=>!["$size","$color"].includes(o)})(({theme:o,$size:e=No,$color:t=vo})=>{let{dimension:r,fontSize:a}=yt[e],{base:s}=o.v2.palette,i=Ks(t);return {width:r,height:r,flexShrink:0,fontSize:a,fontWeight:o.typography.fontWeightMedium,lineHeight:"normal",color:s.white,background:i,backgroundColor:"transparent","&.MuiAvatar-colorDefault":{color:s.white,background:i,backgroundColor:"transparent"}}});var xt=forwardRef(({className:o,sx:e,size:t=No,color:r=vo,...a},s)=>jsx(gt,{ref:s,className:kc(So.root,o),sx:e,"data-testid":"Avatar",...a,$size:t,$color:r,variant:"circular"}));xt.displayName="Avatar";var Ct=memo(xt);var Ys="os-shared-Divider",ko={root:`${Ys}-root`};function Js(o,e){let{grey:t,border:r}=e.v2.palette;return o==="subtle"?r.subtle:t[100]}var ht=styled(_s,{shouldForwardProp:o=>o!=="$type"})(({theme:o,$type:e="default",orientation:t="horizontal"})=>({borderColor:Js(e,o),...t==="vertical"?{borderBottomWidth:0,borderRightWidth:1}:{borderBottomWidth:1}}));var bt=forwardRef(({className:o,sx:e,orientation:t="horizontal",type:r="default",...a},s)=>jsx(ht,{ref:s,className:kc(ko.root,o),sx:e,"data-testid":"Divider",orientation:t,$type:r,...a}));bt.displayName="Divider";var St=memo(bt);var tn="os-shared-Collapse",wo={root:`${tn}-root`};var Nt=styled(rn)(()=>({}));var vt=forwardRef(({className:o,sx:e,children:t,unmountOnExit:r=true,timeout:a=300,...s},i)=>jsx(Nt,{ref:i,className:kc(wo.root,o),sx:e,"data-testid":"Collapse",unmountOnExit:r,timeout:a,...s,children:t}));vt.displayName="Collapse";var kt=memo(vt);var pn="os-shared-Badge",Io={root:`${pn}-root`},Bo="default",wt={default:"#29b6f6",primary:"#1976d2",secondary:"#f50057",neutral:"#656565",gray:"#CFCFCF",orange:"#FFD503"};function mn(o,e){let{base:t,grey:r,brand:a,success:s,warning:i,error:n,gradient:p}=e.v2.palette;if(o==="highlight")return p.brand;let d=wt[o];return d||({inactive:r[100],active:alpha(t.black,.1),dark:a[500],red:n[500],success:s[500],warning:i[500],error:n[500]}[o]??t.white)}function fn(o,e){let{base:t}=e.v2.palette;return o==="inactive"?t.black:(t.white)}var Bt=styled("span",{shouldForwardProp:o=>!["$color","$compact","$round","$pointer"].includes(o)})(({theme:o,$color:e=Bo,$compact:t,$round:r,$pointer:a})=>{let s=mn(e,o);return {paddingBlock:o.v2.spacing(2),paddingInline:t?"0.16056rem":r?"0.275rem":o.v2.spacing(4),borderRadius:t?o.v2.radius(4):r?o.v2.radius(16):o.v2.radius(48),background:s,color:fn(e,o),fontSize:"8px",fontWeight:700,lineHeight:"10px",letterSpacing:0,overflow:"hidden",height:t?"12px":r?"16px":void 0,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",cursor:a?"pointer":"auto"}});var Tt=forwardRef(({className:o,sx:e,color:t,state:r,compact:a,round:s,pointer:i,children:n,...p},d)=>{let c=t??r??Bo;return jsx(Bt,{ref:d,className:kc(Io.root,o),sx:e,"data-testid":"Badge",...p,$color:c,$compact:a,$round:s,$pointer:i,children:n})});Tt.displayName="Badge";var Pt=memo(Tt);var xn="os-shared-Backdrop",To={root:`${xn}-root`};var $t=styled(Cn,{shouldForwardProp:o=>o!=="$hasBlur"})(({theme:o,$hasBlur:e=false})=>{let t=e?o.v2.blur[6]:"none";return {zIndex:1,backgroundColor:alpha("#000",.3),backdropFilter:t,WebkitBackdropFilter:t}});var Mt=forwardRef(({className:o,sx:e,open:t=true,hasBlur:r=false,onClose:a,onClick:s,...i},n)=>{if(!t)return null;let p=d=>{a?.(),s?.(d);};return createPortal(jsx($t,{open:t,$hasBlur:r,ref:n,className:kc(To.root,o),sx:e,"data-testid":"Backdrop",onClick:p,...i}),document.body)});Mt.displayName="Backdrop";var Ft=memo(Mt);var Po="os-shared-CopyButton",B={root:`${Po}-root`,icon:`${Po}-icon`,copyIcon:`${Po}-copyIcon`,copiedIcon:`${Po}-copiedIcon`};var Dt=o=>{let{v2:e}=useTheme(),{base:t}=e.palette;return jsx(Ko,{sx:{height:12.6,width:13},...o,children:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"13",viewBox:"2.67 1.67 10.66 12.66",fill:"none",children:jsx("path",{d:"M11.3333 13.6978L11.3332 13.6979C11.1002 14.0479 10.7072 14.2582 10.2863 14.2582H5.83317C4.12559 14.2582 2.7415 12.8741 2.7415 11.1665V4.71338C2.7415 4.29279 2.95172 3.89983 3.30186 3.66641L3.5915 3.47331V11.1665C3.5915 12.4046 4.59508 13.4082 5.83317 13.4082H11.5264L11.3333 13.6978ZM4.40817 3.49984C4.40817 2.53467 5.20133 1.7415 6.1665 1.7415H11.4998C12.465 1.7415 13.2582 2.53467 13.2582 3.49984V10.8332C13.2582 11.7983 12.465 12.5915 11.4998 12.5915H6.1665C5.20133 12.5915 4.40817 11.7983 4.40817 10.8332V3.49984ZM11.4998 2.5915H6.1665C5.65901 2.5915 5.25817 2.99234 5.25817 3.49984V10.8332C5.25817 11.3407 5.65901 11.7415 6.1665 11.7415H11.4998C12.0073 11.7415 12.4082 11.3407 12.4082 10.8332V3.49984C12.4082 2.99234 12.0073 2.5915 11.4998 2.5915Z",fill:t.black,stroke:t.white,strokeWidth:"0.15"})})})},Rt=o=>{let{v2:e}=useTheme(),{success:t,base:r}=e.palette;return jsx(Ko,{sx:{height:12.6,width:13},...o,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:t[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};var Wt=styled("span")({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:16,height:16,flexShrink:0,cursor:"pointer",verticalAlign:"middle"}),Yo=styled("span",{shouldForwardProp:o=>o!=="$visible"})(({$visible:o})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:o?1:0,transition:"opacity 200ms ease"}));var Et=forwardRef(({className:o,sx:e,text:t,feedbackMs:r=2e3,icon:a=jsx(Dt,{}),onClick:s,...i},n)=>{let[p,d]=useState(false),c=f=>{f.stopPropagation(),ab(t),d(true),setTimeout(()=>d(false),r),s?.(f);};return jsxs(Wt,{ref:n,className:kc(B.root,o),sx:e,role:"button",tabIndex:0,"data-testid":"CopyButton",onClick:c,...i,children:[jsx(Yo,{className:kc(B.icon,B.copyIcon),$visible:!p,children:a}),jsx(Yo,{className:kc(B.icon,B.copiedIcon),$visible:p,children:jsx(Rt,{})})]})});Et.displayName="CopyButton";var Ht=memo(Et);var _o="os-shared-ProgressBar",U={root:`${_o}-root`,fill:`${_o}-fill`,text:`${_o}-text`};var Ot=styled(Je,{shouldForwardProp:o=>!["$value","$isDecimal"].includes(o)})(({theme:o,$value:e,$isDecimal:t})=>{let{base:r}=o.v2.palette;return {width:`${e}%`,minWidth:e>=10?"28px":"24px",height:"18px",borderRadius:o.v2.radius(50),background:"linear-gradient(256deg, #147DC5 0%, #3DA6E1 100%)",display:"flex",alignItems:"center",justifyContent:e>10?"flex-end":"center",paddingInlineEnd:e>10?o.v2.spacing(2):o.v2.spacing(0),...e===0&&{background:alpha(r.black,26/255)},...t&&{minWidth:e>=10?"40px":"36px"}}}),Zt=styled(Je,{shouldForwardProp:o=>o!=="$value"})(({theme:o,$value:e})=>{let{base:t}=o.v2.palette;return {height:"14px",maxWidth:"36px",minWidth:"20px",background:alpha(t.black,26/255),borderRadius:o.v2.radius(50),display:"flex",alignItems:"center",justifyContent:"center",padding:0,...e===0&&{background:alpha(t.black,0)}}}),jt=styled(ns,{shouldForwardProp:o=>o!=="$value"})(({theme:o,$value:e})=>{let{base:t,grey:r}=o.v2.palette;return {fontSize:"8px",fontWeight:o.typography.fontWeightBolder??700,color:t.white,padding:`${o.v2.spacing(2)} ${o.v2.spacing(4)}`,...e===0&&{color:alpha(r[500],.5)}}});var Ut=forwardRef(({className:o,sx:e,value:t},r)=>{let a=!Number.isInteger(t);return jsx(Ot,{ref:r,className:kc(U.root,o),sx:e,"data-testid":"ProgressBar",$value:t,$isDecimal:a,children:jsx(Zt,{className:U.fill,$value:t,children:jsxs(jt,{className:U.text,$value:t,variant:"caption",children:[Number(t.toFixed(2)),"%"]})})})});Ut.displayName="ProgressBar";var Gt=memo(Ut);var Fo="os-shared-Chip",k={root:`${Fo}-root`,text:`${Fo}-text`,copyButton:`${Fo}-copyButton`,icon:`${Fo}-icon`},Xt={text:{height:24,paddingBlock:4,paddingInline:8,borderRadius:48},circular:{height:24,width:24,padding:4,borderRadius:12},"pill-icon":{height:24,width:36,paddingBlock:4,paddingInline:6,borderRadius:12}};var qt=o=>{let{v2:e}=useTheme(),{base:t}=e.palette;return jsx(Ko,{sx:{height:"10px"},...o,children:jsx("svg",{width:"11",height:"13",viewBox:"0 0 11 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.924805 9.5C0.924805 10.7381 1.9289 11.7412 3.16699 11.7412H8.86035L8.66699 12.0312C8.43398 12.3812 8.04094 12.5917 7.62012 12.5918H3.16699C1.45941 12.5918 0.0751953 11.2076 0.0751953 9.5V3.04688C0.0751953 2.62628 0.28561 2.23342 0.635742 2L0.924805 1.80664V9.5ZM3.5 0.0751953H8.83301C9.79807 0.0751953 10.5916 0.867985 10.5918 1.83301V9.16699C10.5916 10.132 9.79807 10.9248 8.83301 10.9248H3.5C2.53494 10.9248 1.74139 10.132 1.74121 9.16699V1.83301C1.74139 0.867985 2.53494 0.0751953 3.5 0.0751953ZM3.5 0.924805C2.99261 0.924805 2.59197 1.32567 2.5918 1.83301V9.16699C2.59197 9.67433 2.99261 10.0752 3.5 10.0752H8.83301C9.3404 10.0752 9.74104 9.67433 9.74121 9.16699V1.83301C9.74104 1.32567 9.3404 0.924805 8.83301 0.924805H3.5Z",fill:t.black,stroke:t.white,strokeWidth:"0.15"})})})},Jt=o=>{let{v2:e}=useTheme(),{success:t,base:r}=e.palette;return jsx(Ko,{sx:{height:"10px"},...o,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:t[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};function Dn(o,e){let t=Xt[o];return {height:t.height,..."width"in t&&{width:t.width,minWidth:t.width},..."padding"in t&&{padding:e.v2.spacing(t.padding)},..."paddingBlock"in t&&{paddingBlock:e.v2.spacing(t.paddingBlock)},..."paddingInline"in t&&{paddingInline:e.v2.spacing(t.paddingInline)},borderRadius:e.v2.radius(t.borderRadius)}}var or=styled(Je,{shouldForwardProp:o=>!["$variant","$hasIcon","$hasCopy","$isSelected","$disableAnimation"].includes(o)})(({theme:o,$variant:e="text",$hasIcon:t,$hasCopy:r,$isSelected:a,$disableAnimation:s})=>{let{grey:i,base:n}=o.v2.palette;return {display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,boxSizing:"border-box",lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",fontSize:11,fontWeight:o.typography.fontWeightRegular,color:n.black,border:`1px solid ${i[100]}`,backgroundColor:n.white,...Dn(e,o),...e==="text"&&t&&{gap:o.v2.spacing(6),paddingInlineStart:o.v2.spacing(5),paddingInlineEnd:o.v2.spacing(8)},...r&&{gap:o.v2.spacing(4)},[`& .${k.icon}`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:14,height:14,overflow:"hidden","& img, & svg":{width:14,height:14,display:"block"}},...a&&{boxShadow:`${n.white} 7px 0px 8px 2px`},...s&&{transition:"none !important",animation:"none !important",transform:"none !important","& *":{transition:"none !important",animation:"none !important",transform:"none !important"}}}}),Jo=styled(Je)({textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"0 1 auto"}),er=styled("span",{shouldForwardProp:o=>o!=="$copied"})(({$copied:o})=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:12,height:12,flexShrink:0,cursor:"pointer",opacity:o?1:.6,transition:"opacity 150ms ease","&:hover":{opacity:1}})),Qo=styled("span",{shouldForwardProp:o=>o!=="$visible"})(({$visible:o})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:o?1:0,transition:"opacity 150ms ease"}));var rr=forwardRef(({className:o,sx:e,children:t,icon:r,variant:a="text",disabled:s=false,isSelected:i=false,copyText:n,unknownText:p="Unknown",disableAnimation:d=false,...c},f)=>{let[y,m]=useState(false),u=!!(t&&n),C=r!=null&&!u,g=useCallback(N=>{N.stopPropagation(),n&&(ab(n),m(true),setTimeout(()=>m(false),2e3));},[n]),S=useMemo(()=>C?jsx("span",{className:k.icon,children:r}):null,[C,r]),L=useMemo(()=>{if(t){let N=u&&typeof t=="string"?Zb(t):void 0;return jsx(Jo,{className:k.text,"data-is-arabic":N,children:t})}return C?null:jsx(Jo,{className:k.text,children:p})},[t,u,C,p]),x=useMemo(()=>u?jsxs(er,{className:k.copyButton,role:"button",tabIndex:0,"aria-label":y?"copied":"copy","data-testid":"ChipCopyButton",$copied:y,onClick:g,children:[jsx(Qo,{$visible:!y,children:jsx(qt,{})}),jsx(Qo,{$visible:y,children:jsx(Jt,{})})]}):null,[u,y,g]);return jsxs(or,{ref:f,"data-testid":"Chip",className:kc(k.root,o,`CustomVariant_${a}`),sx:jc(s?{cursor:"not-allowed",opacity:.5}:{},e),$variant:a,$hasIcon:C,$hasCopy:u,$isSelected:i,$disableAnimation:d,...c,children:[S,L,x]})});rr.displayName="Chip";var ar=memo(rr);var ee="os-shared-Slider",T={root:`${ee}-root`,thumb:`${ee}-thumb`,thumbIcon:`${ee}-thumbIcon`};var sr=o=>{let{v2:e}=useTheme(),{grey:t}=e.palette;return jsx(Ko,{sx:{width:"5px",height:"8px",pointerEvents:"none"},...o,children:jsxs("svg",{width:"5",height:"8",viewBox:"0 0 5 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M0.459961 0.460449L0.459961 6.59897",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M2.44531 0.460388L2.44531 6.59891",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M4.4375 0.460388L4.4375 6.59891",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"})]})})};var nr=styled(Zn)(({theme:o})=>{let{brand:e,base:t}=o.v2.palette,r=["0px 0px 1.25px 0px rgba(0, 0, 0, 0.1)","0px 1.25px 1.25px 0px rgba(0, 0, 0, 0.09)","0px 3.75px 2.5px 0px rgba(0, 0, 0, 0.05)","0px 7.5px 2.5px 0px rgba(0, 0, 0, 0.01)","0px 11.25px 3.75px 0px rgba(0, 0, 0, 0)"].join(", ");return {color:e[500],height:8,padding:0,"& .MuiSlider-rail":{backgroundColor:"#CFCFCF",opacity:1,left:0},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:t.white,border:"none",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:r,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:r}},[`& .${T.thumbIcon}`]:{width:"5px",height:"8px",pointerEvents:"none"}}});function Yn({children:o,className:e,...t}){return jsxs(SliderThumb,{className:kc(T.thumb,e),...t,children:[o,jsx(sr,{className:T.thumbIcon})]})}var ir=forwardRef(({className:o,sx:e,value:t,min:r,max:a,step:s,disabled:i,onChange:n,slots:p,...d},c)=>{let f=useCallback((y,m)=>{n(m);},[n]);return jsx(nr,{ref:c,className:kc(T.root,o),sx:e,"data-testid":"Slider",value:t,min:r,max:a,step:s,disabled:i,onChange:f,...d,slots:{thumb:Yn,...p}})});ir.displayName="Slider";var lr=memo(ir);var te="os-shared-Input",X={root:`${te}-root`,label:`${te}-label`,input:`${te}-input`},dr={sm:28,md:32,labelled:40};var cr=(o,e)=>dr[o?"labelled":e],mr=styled(Qn,{shouldForwardProp:o=>!["$hasLabel","$hideArrows","$size"].includes(o)})(({theme:o,$hasLabel:e=false,$hideArrows:t=false,$size:r="md"})=>{let{base:a,grey:s}=o.v2.palette;return {height:cr(e,r),padding:e?o.v2.spacing(8):`0 ${o.v2.spacing(8)}`,border:"none",borderRadius:"inherit",fontSize:"11px",fontWeight:o.typography.fontWeightMedium,color:a.black,backgroundColor:"transparent",display:"flex",alignItems:e?"stretch":"center","&.Mui-disabled":{color:s[500]},"& input":{paddingTop:o.v2.spacing(4),paddingBottom:o.v2.spacing(4)},"& input::placeholder":{color:s[500],fontWeight:o.typography.fontWeightRegular,opacity:e?0:1,...e&&{transition:"opacity 0.2s ease"}},"& input:-webkit-autofill, & input:-webkit-autofill:hover, & input:-webkit-autofill:focus":{WebkitTextFillColor:a.black,caretColor:a.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},...e&&{marginTop:0,"& input":{margin:"0px !important",padding:"0px !important",paddingTop:`${o.v2.spacing(10)} !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}}}}),fr=styled(Jn)(({theme:o})=>{let{grey:e}=o.v2.palette;return {fontSize:"11px",color:`${e[500]} !important`}}),ur=styled(qn,{shouldForwardProp:o=>!["$hasLabel","$size"].includes(o)})(({theme:o,disabled:e,error:t,fullWidth:r,$hasLabel:a=false,$size:s="md"})=>{let{grey:i,base:n,error:p}=o.v2.palette;return {position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",height:cr(a,s),margin:0,border:`1px solid ${t?"#FF3D00":i[100]}`,borderRadius:o.v2.radius(4),backgroundColor:e?i[100]:n.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?"#FF3D00":i[50]},"& .MuiFormLabel-asterisk":{color:p[500]},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:o.v2.spacing(8),fontSize:"10px",fontWeight:o.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:`${i[500]} !important`},"& .MuiInput-root":{flex:1,marginTop:"0 !important"}}});var gr=forwardRef(({label:o,size:e="md",error:t=false,disabled:r=false,fullWidth:a=false,placeholder:s,hideArrows:i=false,type:n,id:p,className:d,sx:c,onKeyDown:f,onWheel:y,...m},u)=>{let C=!!o,g=n==="number",S=x=>{let N=x.metaKey||x.ctrlKey||x.altKey,Zo=x.key.length===1;(["e","E","+","-"].includes(x.key)||xa$1()&&Zo&&!N&&!/^[0-9.]$/.test(x.key))&&x.preventDefault(),f?.(x);},L=x=>{x.target instanceof HTMLElement&&x.target.blur(),y?.(x);};return jsxs(ur,{className:kc(X.root,d),sx:c,error:t,disabled:r,fullWidth:a,"data-testid":"Input",$hasLabel:C,$size:e,children:[C&&jsx(fr,{className:X.label,htmlFor:p,children:o}),jsx(mr,{id:p,inputRef:u,className:X.input,type:n,error:t,disabled:r,placeholder:s??void 0,"aria-invalid":t||void 0,disableUnderline:true,fullWidth:true,$hasLabel:C,$hideArrows:i,$size:e,onKeyDown:g?S:f,onWheel:g?L:y,...m})]})});gr.displayName="Input";var xr=memo(gr);var ae="os-shared-Textarea",Y={root:`${ae}-root`,label:`${ae}-label`,textarea:`${ae}-textarea`},_=3;var Cr=styled(si,{shouldForwardProp:o=>!["$error","$hasLabel","$minRows"].includes(o)})(({theme:o,$hasLabel:e=false,$minRows:t=_})=>{let{base:r,grey:a}=o.v2.palette;return {border:"none",borderRadius:"inherit",padding:e?`${o.v2.spacing(32)} ${o.v2.spacing(8)} ${o.v2.spacing(8)}`:`${o.v2.spacing(8)} ${o.v2.spacing(12)}`,fontSize:"11px",fontWeight:o.typography.fontWeightMedium,lineHeight:"normal",color:r.black,backgroundColor:"transparent",alignItems:"flex-start",width:"100%",...e&&{marginTop:0},"&.Mui-disabled":{color:a[500]},"& textarea":{resize:"vertical",minHeight:e?void 0:`${Math.max(t*20,60)}px`,padding:0,margin:0},"& textarea::placeholder":{color:a[500],fontWeight:o.typography.fontWeightMedium,opacity:1},"& textarea:-webkit-autofill, & textarea:-webkit-autofill:hover, & textarea:-webkit-autofill:focus":{WebkitTextFillColor:r.black,caretColor:r.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"}}}),hr=styled(Jn)(({theme:o})=>{let{grey:e}=o.v2.palette;return {fontSize:"10px",fontWeight:o.typography.fontWeightMedium,color:`${e[500]} !important`}}),br=styled(qn,{shouldForwardProp:o=>!["$hasLabel","$minRows"].includes(o)})(({theme:o,disabled:e,error:t,fullWidth:r,$hasLabel:a=false,$minRows:s=_})=>{let{grey:i,base:n,error:p}=o.v2.palette,d=t?p[500]:i[100];return {position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",minHeight:a?96+(s-_)*20:void 0,margin:0,border:`1px solid ${d}`,borderRadius:o.v2.radius(4),backgroundColor:e?i[100]:n.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?p[500]:i[50]},"& .MuiFormLabel-asterisk":{color:p[500]},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",display:"flex",alignItems:"flex-start",gap:o.v2.spacing(2),padding:o.v2.spacing(8),fontSize:"10px",fontWeight:o.typography.fontWeightMedium,lineHeight:"100%",transform:"none !important",transformOrigin:"top left",color:`${i[500]} !important`},"& .MuiInputBase-root":{flex:1,marginTop:"0 !important"}}});var Nr=forwardRef(({label:o,error:e=false,disabled:t=false,fullWidth:r=false,placeholder:a,minRows:s=_,maxRows:i,id:n,className:p,sx:d,required:c,...f},y)=>{let m=!!o;return jsxs(br,{className:kc(Y.root,p),sx:d,error:e,disabled:t,fullWidth:r,required:c,variant:"standard","data-testid":"Textarea",$hasLabel:m,$minRows:s,children:[m&&jsx(hr,{className:Y.label,htmlFor:n,shrink:true,disableAnimation:true,required:c,children:o}),jsx(Cr,{id:n,inputRef:y,className:Y.textarea,multiline:true,minRows:s,maxRows:i,disabled:t,required:c,placeholder:a??void 0,"aria-invalid":e||void 0,fullWidth:true,$error:e,$hasLabel:m,$minRows:s,...f})]})});Nr.displayName="Textarea";var vr=memo(Nr);var E="os-shared-Accordion",w={root:`${E}-root`,summary:`${E}-summary`,content:`${E}-content`,labelStartAdornment:`${E}-labelStartAdornment`,labelContent:`${E}-labelContent`,labelEndAdornment:`${E}-labelEndAdornment`,expandIcon:`${E}-expandIcon`};var wr=()=>{let{v2:o}=useTheme(),{base:e}=o.palette;return jsx("svg",{width:"9",height:"5",viewBox:"0 0 9 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.0501709 0.427246C0.0493864 0.478467 0.0592757 0.529176 0.0784912 0.57666C0.0976579 0.623937 0.125505 0.667471 0.161499 0.703613L3.82556 4.47803C3.86116 4.51465 3.90353 4.54403 3.95056 4.56396C3.99773 4.58391 4.04876 4.59422 4.09998 4.59424C4.15123 4.59424 4.20218 4.58392 4.24939 4.56396C4.29655 4.54401 4.33969 4.51476 4.37537 4.47803L8.03845 0.703613C8.07407 0.667816 8.10232 0.625348 8.12146 0.578613C8.14069 0.531638 8.15017 0.480932 8.14978 0.430176C8.14935 0.379519 8.13942 0.329298 8.11951 0.282715C8.09956 0.236042 8.06999 0.19405 8.03357 0.158691C7.99716 0.123349 7.95384 0.0952198 7.90662 0.0766602C7.8595 0.0582058 7.80878 0.0491929 7.75818 0.050293C7.70763 0.0514427 7.65792 0.0629948 7.61169 0.0834961C7.56537 0.104067 7.52346 0.13358 7.48865 0.17041L4.09998 3.65967L0.711304 0.17041C0.65912 0.115154 0.592066 0.0759001 0.517944 0.059082C0.443585 0.0422622 0.365385 0.0481013 0.294312 0.0756836C0.22324 0.103266 0.162075 0.15178 0.11853 0.214355C0.0750125 0.276905 0.05135 0.351058 0.0501709 0.427246Z",fill:e.black,stroke:e.black,strokeWidth:"0.1"})})};var Br=styled(di)(({theme:o,square:e})=>{let{grey:t,base:r}=o.v2.palette;return {overflow:"hidden",border:`1px solid ${t[100]}`,...!e&&{borderRadius:o.v2.radius(8)},margin:0,background:r.white,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0},"&.Mui-disabled":{opacity:.5,pointerEvents:"none"}}}),Tr=styled(mi)(({theme:o})=>({background:"#fbfbfb",minHeight:"40px",height:"40px",padding:o.v2.spacing(10),"&.Mui-expanded":{minHeight:"40px",height:"40px"},"& .MuiAccordionSummary-content":{margin:0,display:"flex",flexDirection:"row",alignItems:"center",flexGrow:1,minWidth:0,gap:o.v2.spacing(10)},"& .MuiAccordionSummary-expandIconWrapper":{marginLeft:o.v2.spacing(8)}})),Pr=styled(ci)(({theme:o})=>{let{grey:e}=o.v2.palette;return {padding:0,borderTop:`1px solid ${e[100]}`}}),$r=styled(Je)({display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:"rotate(0deg)"}),Mr=styled(Je)({minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"});var zr=forwardRef(({expanded:o,defaultExpanded:e=false,onChange:t,label:r,content:a,labelStartAdornment:s,labelEndAdornment:i,slotProps:n={},disabled:p=false,expandIcon:d,className:c,sx:f,...y},m)=>{let u=o!==void 0,[C,g]=useState(e),S=u?o:C,L=(dl,ue)=>{u||g(ue),t?.(ue);},{showArrow:x=true,...N}=n.label??{},{className:Zo,sx:Fa,...La}=n.root??{},za=d??(x?jsx($r,{component:"span",className:w.expandIcon,children:jsx(wr,{})}):null),Da=jsxs(Fragment,{children:[s!=null&&jsx(Je,{component:"span",className:w.labelStartAdornment,...n.labelStartAdornment,sx:jc({flexShrink:0},n.labelStartAdornment?.sx),children:s}),jsx(Mr,{component:"span",className:w.labelContent,...n.labelContent,sx:n.labelContent?.sx,children:r}),i!=null&&jsx(Je,{component:"span",className:w.labelEndAdornment,...n.labelEndAdornment,sx:jc({flexShrink:0,marginLeft:"auto"},n.labelEndAdornment?.sx),children:i})]});return jsxs(Br,{ref:m,"data-testid":"Accordion",disabled:p,expanded:S,onChange:L,className:kc(w.root,c,Zo),sx:jc(f??{},Fa),...La,...y,children:[jsx(Tr,{className:w.summary,expandIcon:za,"aria-expanded":S,...N,children:Da}),jsx(Pr,{className:w.content,...n.content,children:a})]})});zr.displayName="Accordion";var Dr=memo(zr);var Rr="os-shared-Menu",to={popper:`${Rr}-popper`,panel:`${Rr}-panel`};var Wr=styled(Ci)({}),Er=styled(Je,{shouldForwardProp:o=>o!=="$showShadow"})(({theme:o,$showShadow:e})=>{let{grey:t,base:r}=o.v2.palette;return {borderRadius:o.v2.radius(4),background:r.white,width:"max-content",cursor:"pointer",boxShadow:o.v2.elevation[200],display:"flex",flexDirection:"column",overflowY:"auto",maxHeight:"432px","&:focus":{outline:"none"},".menu-item + .menu-item":{borderTop:`1px solid ${t[100]}`},"&::after":{content:e?'""':"none",width:"100%",height:"34px",position:"sticky",bottom:0,pointerEvents:"none",background:`linear-gradient(180deg, rgba(255,255,255,0) 0%, ${r.white} 100%)`}}});var Vr=forwardRef(({open:o,anchorEl:e,children:t,placement:r,popperSx:a,panelProps:s,className:i,sx:n,...p},d)=>{let[c,f]=useState(false),m=useMemo(()=>Children.count(t),[t])>12&&c,{onScroll:u,className:C,sx:g,...S}=s??{},L=useCallback(N=>{f((N.currentTarget.scrollTop??0)>0),u?.(N);},[u]),x=kc(to.panel,C,"MuiPopper-dropdown");return jsx(Wr,{ref:d,className:kc(to.popper,i),"data-testid":"Menu",open:o,anchorEl:e,placement:r??"bottom-start",sx:a,...p,children:jsx(Er,{$showShadow:m,onScroll:L,className:x,sx:jc(n??{},g),...S,children:t})})});Vr.displayName="Menu";var Or=memo(Vr);var ro="os-shared-Dialog",P={root:`${ro}-root`,title:`${ro}-title`,divider:`${ro}-divider`,content:`${ro}-content`,actions:`${ro}-actions`};var Zr=styled(wi)(({theme:o})=>{let{base:e}=o.v2.palette;return {"& .MuiDialog-paper:not(.MuiDialog-paperFullWidth)":{width:394},"& .MuiDialog-paper":{backgroundColor:e.white,boxShadow:"0px 0px 16px 0px rgba(0, 0, 0, 0.11)",borderRadius:o.v2.radius(8)},"& .MuiModal-backdrop":{background:alpha("#000",.2)}}}),jr=styled(Ti)(({theme:o})=>{let{base:e}=o.v2.palette;return {padding:`${o.v2.spacing(16)} ${o.v2.spacing(16)} ${o.v2.spacing(12)}`,fontSize:"13px",fontWeight:o.typography.fontWeightBolder,lineHeight:"normal",color:e.black,whiteSpace:"nowrap"}}),Kr=styled("hr")(({theme:o})=>{let{grey:e}=o.v2.palette;return {display:"block",border:"none",borderTop:`1px solid ${e[100]}`,margin:0,width:"100%",flexShrink:0}}),Ur=styled(Bi,{shouldForwardProp:o=>o!=="$hasHeading"})(({theme:o,$hasHeading:e})=>{let{grey:t}=o.v2.palette;return {padding:`${e?o.v2.spacing(12):o.v2.spacing(16)} ${o.v2.spacing(16)} ${o.v2.spacing(16)}`,fontSize:"12px",fontWeight:o.typography.fontWeightMedium,lineHeight:"normal",color:t[500]}}),Gr=styled(Ii)(({theme:o})=>({padding:`0 ${o.v2.spacing(16)} ${o.v2.spacing(16)}`,gap:o.v2.spacing(8),justifyContent:"flex-end","& > :not(style) ~ :not(style)":{marginLeft:0}}));var Yr=forwardRef(({heading:o,actions:e,children:t,onClose:r,open:a,className:s,sx:i,...n},p)=>jsxs(Zr,{ref:p,"data-testid":"Dialog",open:a,onClose:r,className:kc(P.root,s),sx:i,...n,children:[o?jsxs(Fragment,{children:[jsx(jr,{className:P.title,children:o}),jsx(Kr,{"aria-hidden":true,className:P.divider})]}):null,t!=null?jsx(Ur,{className:P.content,$hasHeading:!!o,children:t}):null,e?jsx(Gr,{className:P.actions,children:e}):null]}));Yr.displayName="Dialog";var _r=memo(Yr);var Ro="os-shared-MenuItem",$={root:`${Ro}-root`,indicator:`${Ro}-indicator`,content:`${Ro}-content`,disabled:`${Ro}-disabled`},V={unchecked:"unchecked",checked:"checked",indeterminate:"indeterminate"};var Jr=()=>{let{v2:o}=useTheme(),{brand:e,base:t}=o.palette;return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:e[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74245C9.04243 3.94469 9.05652 4.2875 8.86537 4.50814L5.64586 8.22426C5.55146 8.33322 5.41909 8.39666 5.27942 8.39987C5.13975 8.40308 5.0049 8.34579 4.90612 8.24127L3.15002 6.38321C2.94999 6.17157 2.94999 5.82843 3.15002 5.61679C3.35004 5.40516 3.67435 5.40516 3.87437 5.61679L5.2522 7.07463L8.11024 3.77574C8.30138 3.55511 8.62538 3.5402 8.83391 3.74245Z",fill:t.white})]})},Qr=()=>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"})}),oa=()=>{let{v2:o}=useTheme(),{brand:e}=o.palette;return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"2.4",fill:e[500],stroke:e[500],strokeWidth:"1.2"}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:"#FAFBFB"})]})};var ra=styled(Je,{shouldForwardProp:o=>o!=="$isDisabled"})(({theme:o,$isDisabled:e=false})=>{let{base:t}=o.v2.palette;return {padding:o.v2.spacing(8),position:"relative",display:"flex",alignItems:"center",gap:o.v2.spacing(8),textTransform:"capitalize",cursor:e?"not-allowed":"pointer",flex:1,fontSize:o.typography.subtitle1.fontSize,opacity:e?.5:1,color:t.black}}),ne=styled("span")({width:14,height:14,flexShrink:0,pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center","& svg":{display:"block"}});function Ri(o,e){return e?V.indeterminate:o?V.checked:V.unchecked}var Ai={[V.unchecked]:Qr,[V.checked]:Jr,[V.indeterminate]:oa};function Wi(o,e,t){if(o===null)return null;if(o!==void 0)return jsx(ne,{className:$.indicator,"aria-hidden":true,children:o});let r=Ri(e,t),a=Ai[r];return jsx(ne,{className:$.indicator,"aria-hidden":true,children:jsx(a,{})})}var aa=forwardRef(({isSelected:o=false,isDisabled:e=false,isIndeterminate:t=false,startAdornment:r,onClick:a,children:s,className:i,sx:n,...p},d)=>{let c=kc($.root,"menu-item",e&&$.disabled,i);return jsxs(ra,{ref:d,"data-testid":"MenuItem",className:c,sx:n,onClick:e?void 0:a,$isDisabled:e,...p,children:[Wi(r,o,t),jsx("span",{className:$.content,children:s})]})});aa.displayName="MenuItem";var sa=memo(aa);var na="os-shared-ToggleButtons",so={root:`${na}-root`,button:`${na}-button`},ie={sm:"sm",md:"md"},no=ie.sm,le={sm:{buttonHeight:20,minWidth:20,fontSize:8,containerRadius:3,iconSlot:11},md:{buttonHeight:28,minWidth:28,fontSize:11,containerRadius:4,iconSlot:14}};function Hi(o,e){let{palette:t,elevation:r}=o.v2;return e?{backgroundColor:t.background.primary,boxShadow:r[100],color:t.foreground.primary}:{backgroundColor:"transparent",boxShadow:"none",color:t.foreground.secondary}}var pa=styled(Je,{shouldForwardProp:o=>o!=="$size"})(({theme:o,$size:e=no})=>{let t=le[e];return {backgroundColor:o.v2.palette.background.secondary,display:"inline-flex",alignItems:"center",padding:o.v2.spacing(2),borderRadius:o.v2.radius(t.containerRadius)}}),da=styled(Je,{shouldForwardProp:o=>o!=="$isActive"&&o!=="$size"})(({theme:o,$isActive:e=false,$size:t=no})=>{let r=le[t];return {boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,height:r.buttonHeight,width:"auto",minWidth:r.minWidth,borderRadius:o.v2.radius(2),fontSize:r.fontSize,fontWeight:o.typography.fontWeightMedium,lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",cursor:"pointer",transition:"background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease",...Hi(o,e),"& img, & svg":{width:r.iconSlot,height:r.iconSlot,display:"block"}}});function ma({options:o,activeKey:e,onChange:t,size:r=no,containerProps:a,buttonProps:s,id:i,className:n,sx:p},d){let{className:c,sx:f,...y}=a??{},m=kc(so.root,n,c);return jsx(pa,{ref:d,id:i,"data-testid":"ToggleButtons",className:m,$size:r,sx:jc(p??{},f),...y,children:o.map(u=>jsx(da,{className:so.button,$isActive:e===u.key,$size:r,onClick:()=>t(u.key),...s,children:u.content},u.key))})}var Zi=forwardRef(ma);ma.displayName="ToggleButtons";var fa=memo(Zi);var ji="os-shared-LazyImage",Wo={root:`${ji}-root`},Eo={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 ua=styled(Je)({display:"inline-flex",justifyContent:"center",alignItems:"center"});function Ho(o){return o!=null&&o in Eo}var Ji=LazyLoadImage,ga=forwardRef(({effect:o,wrapperProps:e,id:t,className:r,sx:a,placeholderSrc:s,...i},n)=>{let[p,d]=useState(Ho(o));if(useEffect(()=>{if(!Ho(o)){d(false);return}d(true),Eo[o]().finally(()=>{d(false);});},[o]),p)return null;let{className:c,sx:f,style:y,...m}=e??{},u=Ho(o)||!!s||y!=null;return jsx(ua,{component:"span",...m,className:kc(Wo.root,c??r),sx:f!=null?jc(a??{},f):a,children:jsx(Ji,{...i,ref:n,effect:o,placeholderSrc:s,id:t,"data-testid":"LazyImage",wrapperProps:u?{style:{display:"flex",justifyContent:"center",alignItems:"center",...y}}:void 0})})});ga.displayName="LazyImage";var xa=memo(ga);var M="#FF7A00",pe="os-shared-FieldFeedback",J={root:`${pe}-root`,icon:`${pe}-icon`,message:`${pe}-message`};var Ca=({severity:o="error",...e})=>{let t=useTheme(),{error:r}=t.v2.palette,a=o==="warning"?M:r[500];return jsx(Ko,{sx:{width:12,height:12},...e,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:a})})})},ha=o=>{let{v2:e}=useTheme(),{success:t}=e.palette;return jsx(Ko,{sx:{width:12,height:12},...o,children:jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:t[700]})})})},ba=o=>{let{v2:e}=useTheme(),{base:t}=e.palette;return jsx(Ko,{sx:{width:12,height:12},...o,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:t.black,strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})})})};function Vo(o,e){let t=e??"error",{brand:r}=o.v2.palette;switch(t){case "warning":return {borderColor:alpha(M,.15),backgroundColor:alpha(M,.15),textColor:M};case "success":return {borderColor:alpha("#76BB40",.15),backgroundColor:alpha("#76BB40",.15),textColor:"#76BB40"};case "info":return {borderColor:alpha(r[500],.12),backgroundColor:alpha(r[500],.12),textColor:r[500]};case "error":return {borderColor:alpha("#FF3D00",.15),backgroundColor:alpha("#FF3D00",.15),textColor:"#FF3D00"};default:return t}}var Sa=styled("div",{shouldForwardProp:o=>o!=="$feedbackType"})(({theme:o,$feedbackType:e})=>{let{backgroundColor:t}=Vo(o,e);return {display:"flex",alignItems:"flex-start",gap:o.v2.spacing(4),minHeight:"32px",padding:`${o.v2.spacing(8)} ${o.v2.spacing(12)}`,background:t,borderRadius:`0 0 ${o.v2.radius(4)} ${o.v2.radius(4)}`}}),Na=styled("div",{shouldForwardProp:o=>o!=="$feedbackType"})(({theme:o,$feedbackType:e})=>{let{textColor:t}=Vo(o,e);return {fontSize:"10px",lineHeight:"16px",display:"block",color:t,wordBreak:"break-word"}}),va=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 el(o){switch(o){case "success":return jsx(ha,{});case "info":return jsx(ba,{});case "error":case "warning":return jsx(Ca,{severity:o})}}var ka=forwardRef(({type:o="error",message:e,icon:t,className:r,sx:a},s)=>{if(!zc(e))return null;let i=o;return jsxs(Sa,{ref:s,"data-testid":"FieldFeedback",className:kc(J.root,r),sx:a,$feedbackType:i,children:[t??jsx(va,{className:J.icon,children:el(i)}),jsx(Na,{className:J.message,$feedbackType:i,children:e})]})});ka.displayName="FieldFeedback";var wa=memo(ka);var rl="os-shared-ScrollLoader",Oo={root:`${rl}-root`};var Ia=styled(al)({overflow:"auto",height:"100%",maxHeight:"100%"});function fe(o,e=50){return o.scrollHeight-(o.scrollTop+o.clientHeight)<=e}var $a=forwardRef(({loadMoreItems:o,hasMore:e,isLoading:t=false,isFetchingNextPage:r,children:a,className:s,sx:i,id:n,...p},d)=>{let[c,f]=useState(false),y=useRef(o),m=useRef(null);y.current=o;let u=useCallback(()=>{e&&!r&&y.current();},[e,r]),C=useCallback(()=>{let g=m.current;g&&fe(g)&&u();},[u]);return useEffect(()=>{let g=m.current;if(g)return g.addEventListener("scroll",C),()=>g.removeEventListener("scroll",C)},[C]),useEffect(()=>{let g=m.current;if(!g||t||c)return;let S=window.setTimeout(()=>{f(true),fe(g)&&u();},1e3);return ()=>window.clearTimeout(S)},[t,u,c]),jsx(Ia,{ref:g=>{m.current=g,typeof d=="function"?d(g):d&&(d.current=g);},id:n,"data-testid":"ScrollLoader",className:kc(Oo.root,s),sx:i,...p,children:a})});$a.displayName="ScrollLoader";var Ma=memo($a);
|
|
2
|
-
export{M as $,To as A,Ft as B,B as C,Ht as D,U as E,Gt as F,k as G,ar as H,T as I,lr as J,X as K,xr as L,Y as M,
|
|
1
|
+
import {kc,yc,ab,Zb,jc,zc,xa as xa$1}from'./chunk-2SKLD6QR.js';import {forwardRef,memo,useId,createElement,useState,useCallback,useMemo,Children,useEffect,useRef}from'react';import Je from'@mui/material/Box';import Va,{circularProgressClasses}from'@mui/material/CircularProgress';import Ra from'@mui/material/ButtonBase';import {styled,alpha,useTheme}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import Ko from'@mui/material/SvgIcon';import Xa from'@mui/material/Checkbox';import Ya from'@mui/material/FormControlLabel';import os from'@mui/material/Switch';import ns from'@mui/material/Typography';import gs from'@mui/material/Radio';import Ts from'@mui/material/Tooltip';import As from'@mui/material/Skeleton';import Zs from'@mui/material/Avatar';import _s from'@mui/material/Divider';import rn from'@mui/material/Collapse';import {createPortal}from'react-dom';import Cn from'@mui/material/Backdrop';import Zn,{SliderThumb}from'@mui/material/Slider';import qn from'@mui/material/FormControl';import Jn from'@mui/material/InputLabel';import Qn from'@mui/material/Input';import si from'@mui/material/InputBase';import di from'@mui/material/Accordion';import ci from'@mui/material/AccordionDetails';import mi from'@mui/material/AccordionSummary';import Ci from'@mui/material/Popper';import wi from'@mui/material/Dialog';import Ii from'@mui/material/DialogActions';import Bi from'@mui/material/DialogContent';import Ti from'@mui/material/DialogTitle';import {LazyLoadImage}from'react-lazy-load-image-component';import al from'@mui/material/Stack';var z="os-shared-Button",N={root:`${z}-root`,content:`${z}-content`,startIcon:`${z}-startIcon`,endIcon:`${z}-endIcon`,icon:`${z}-icon`,loading:`${z}-loading`,loadingSpinner:`${z}-loadingSpinner`},he={sm:{height:24,paddingY:8,paddingX:16,fontSize:"10px"},md:{height:32,minWidth:79,paddingY:8,paddingX:24,fontSize:"13px",lineHeight:"16px"},lg:{height:40,paddingY:8,paddingX:32,fontSize:"12px"}},be={sm:{width:24,minWidth:24,height:24,padding:0},md:{width:30,minWidth:30,height:30,padding:0},lg:{width:38,minWidth:38,height:38,padding:0}},Se={sm:12,md:12,lg:14};var Ne=styled(Ra,{shouldForwardProp:o=>o!=="$variant"&&o!=="$size"&&o!=="$fullWidth"&&o!=="$isLoading"&&o!=="$hasIcon"&&o!=="$isIconOnly"})(({theme:o,$variant:e="primary",$size:t="md",$fullWidth:r,$isLoading:a,$hasIcon:s,$isIconOnly:i})=>{let n=o.v2.palette,{paddingX:p,paddingY:d,...c}=he[t],f=be[t];return {display:"inline-flex",alignItems:"center",justifyContent:"center",gap:o.v2.spacing(6),borderRadius:o.v2.radius(4),lineHeight:"100%",whiteSpace:"nowrap",position:"relative",cursor:a?"not-allowed":"pointer",transition:"background-color 0.15s ease, opacity 0.15s ease",...c,padding:`${o.v2.spacing(d)} ${o.v2.spacing(p)}`,fontWeight:o.typography.fontWeightMedium,...r&&!i&&{width:"100%"},...s&&!r&&!i&&{width:"auto",minWidth:0},...e==="primary"&&{background:n.brand[500],color:n.base.white,"&.Mui-disabled":{opacity:1,background:n.interactive.primary.disabled,color:n.base.white}},...e==="secondary"&&{backgroundColor:n.base.white,color:n.grey[900],border:`1px solid ${n.grey[100]}`,"&.Mui-disabled":{opacity:1,color:n.foreground.disabled}},...e==="ghost"&&{padding:0,minWidth:0,backgroundColor:"transparent",color:n.foreground.brand,"&.Mui-disabled":{opacity:.5}},...e==="danger"&&{backgroundColor:n.status.danger.default,color:n.base.white,"&.Mui-disabled":{opacity:1,backgroundColor:alpha(n.status.danger.default,.14),color:n.base.white}},...i&&{boxSizing:"border-box",...f}}}),Q=styled("span")(({theme:o})=>{let e=o.v2.spacing(16);return {display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,width:e,height:e}});var we=forwardRef(({children:o,variant:e="primary",size:t="md",isLoading:r=false,startIcon:a,endIcon:s,icon:i,fullWidth:n=false,disabled:p,className:d,sx:c,...f},y)=>{let m=i!=null;return jsxs(Ne,{ref:y,className:kc(N.root,d),$variant:e,$size:t,$fullWidth:n,$isLoading:r,$hasIcon:m||!!a||!!s||r,$isIconOnly:m,disabled:p||r,"data-testid":"Button",sx:c,...f,children:[jsx(Je,{component:"span",className:N.content,sx:{display:"inline-flex",alignItems:"center",gap:"inherit",visibility:r?"hidden":"visible"},children:m?jsx(Q,{className:N.icon,children:i}):jsxs(Fragment,{children:[a&&jsx(Q,{className:N.startIcon,children:a}),o,s&&jsx(Q,{className:N.endIcon,children:s})]})}),r&&jsx(Q,{className:N.loading,sx:{position:"absolute"},children:jsx(Va,{className:N.loadingSpinner,size:Se[t],color:"inherit"})})]})});we.displayName="Button";var Ie=memo(we);var Za="os-shared-Icon",po={root:`${Za}-root`};var Be=styled("img")(({theme:o})=>({width:o.v2.spacing(16),height:o.v2.spacing(16),verticalAlign:"middle",flexShrink:0}));var Te=forwardRef(({className:o,sx:e,...t},r)=>jsx(Be,{className:kc(po.root,o),sx:e,"data-testid":"Icon",...t,ref:r}));Te.displayName="Icon";var Pe=memo(Te);var jo="os-shared-Checkbox",D={root:`${jo}-root`,control:`${jo}-control`,label:`${jo}-label`};var $e=({disabled:o,...e})=>{let{v2:t}=useTheme(),{brand:r,base:a,foreground:s}=t.palette;return jsxs(Ko,{viewBox:"0 0 12 12",sx:{width:12,height:12},...e,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:o?s.disabled:r[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74206C9.04243 3.9443 9.05652 4.28711 8.86537 4.50775L5.64586 8.22387C5.55146 8.33284 5.41909 8.39627 5.27942 8.39948C5.13975 8.40269 5.0049 8.3454 4.90612 8.24088L3.15002 6.38282C2.94999 6.17118 2.94999 5.82804 3.15002 5.61641C3.35004 5.40477 3.67435 5.40477 3.87437 5.61641L5.2522 7.07424L8.11024 3.77535C8.30138 3.55472 8.62538 3.53981 8.83391 3.74206Z",fill:a.white})]})},Me=({disabled:o,...e})=>{let{v2:t}=useTheme(),{base:r,grey:a}=t.palette;return jsx(Ko,{viewBox:"0 0 12 12",sx:{width:12,height:12},...e,children:jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"1.8",fill:o?a[50]:r.white,stroke:o?a[200]:a[500],strokeWidth:"1.2"})})},Fe=({disabled:o,...e})=>{let{v2:t}=useTheme(),{brand:r,base:a,foreground:s}=t.palette;return jsxs(Ko,{viewBox:"0 0 12 12",sx:{width:12,height:12},...e,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:o?s.disabled:r[500]}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:a.white})]})};var De=styled(Xa)(({theme:o})=>({padding:o.v2.spacing(2),"&:hover":{backgroundColor:"transparent"}})),Re=styled(Ya)(({theme:o})=>{let{base:e,grey:t}=o.v2.palette;return {marginLeft:0,gap:o.v2.spacing(4),"& .MuiFormControlLabel-label":{fontSize:"11px",color:e.black},"& .MuiFormControlLabel-label.Mui-disabled":{color:t[500]}}});var Ae=forwardRef(({label:o,labelPlacement:e="end",disabled:t,sx:r,className:a,...s},i)=>{let n=yc(useId(),"checkbox"),p=jsx(De,{id:n,ref:i,disableRipple:true,disabled:t,checkedIcon:jsx($e,{disabled:t}),icon:jsx(Me,{disabled:t}),indeterminateIcon:jsx(Fe,{disabled:t}),"data-testid":"Checkbox",className:kc(o?D.control:D.root,o?void 0:a),sx:o?void 0:r,...s});return o?jsx(Re,{className:kc(D.root,a),sx:r,control:p,label:o,labelPlacement:e,disabled:t,componentsProps:{typography:{className:D.label}}}):p});Ae.displayName="Checkbox";var We=memo(Ae);var Qa="os-shared-Switch",co={root:`${Qa}-root`};var Ee=styled(os)(({theme:o,disabled:e})=>{let{base:t,grey:r,success:a}=o.v2.palette;return {width:28,height:16,padding:0,borderRadius:o.v2.radius(8),opacity:e?.5:1,overflow:"visible","& .MuiSwitch-switchBase":{padding:0,margin:o.v2.spacing(1),color:t.white,transitionDuration:"300ms","&:hover":{backgroundColor:"transparent"},"&.Mui-focusVisible":{outline:`2px solid ${r[400]}`,outlineOffset:2},"&.Mui-checked":{transform:"translateX(12px)",color:t.white,"& + .MuiSwitch-track":{backgroundColor:a[500],opacity:1,border:0}},"&.Mui-disabled":{color:t.white,"& + .MuiSwitch-track":{opacity:1},"& .MuiSwitch-thumb":{filter:"none"}},"&.Mui-checked.Mui-disabled":{color:t.white}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:14,height:14,color:t.white,backgroundColor:t.white,boxShadow:"none",filter:e?"none":"drop-shadow(0px 3px 0.5px rgba(0, 0, 0, 0.04)) drop-shadow(0px 3px 4px rgba(0, 0, 0, 0.12))"},"& .MuiSwitch-track":{borderRadius:o.v2.radius(8),backgroundColor:"#D9D9D9",opacity:1,transition:o.transitions.create(["background-color"],{duration:300})}}});var He=forwardRef(({className:o,sx:e,...t},r)=>jsx(Ee,{ref:r,className:kc(co.root,o),sx:e,"data-testid":"Switch",disableRipple:true,...t}));He.displayName="Switch";var Ve=memo(He);var ss="os-shared-Typography",mo={root:`${ss}-root`},fo="body.default.regular";var ls=o=>o!=null&&typeof o=="object"&&"fontFamily"in o&&"fontSize"in o&&"fontWeight"in o;function ps(o,e){try{let t=e.split(".").reduce((r,a)=>{if(r==null||typeof r!="object")throw new TypeError(`Invalid typography textVariant: ${e}`);return r[a]},o);if(!ls(t))throw new TypeError(`Invalid typography textVariant: ${e}`);return t}catch(t){return console.warn(t),o.body.default.regular}}function ds(o,e,t){return e===void 0?t:typeof e=="number"?e:{light:o.fontWeightLight,regular:o.fontWeightRegular,medium:o.fontWeightMedium,semibold:o.fontWeightBold,bold:o.fontWeightBolder}[e]??t}var Oe=styled(ns,{shouldForwardProp:o=>o!=="$textVariant"&&o!=="$weight"})(({theme:o,$textVariant:e=fo,$weight:t})=>{let{base:r}=o.v2.palette,a=ps(o.v2.typography.textVariants,e);return {color:r.black,...a,fontWeight:ds(o.v2.typography,t,a.fontWeight)}});var Ze=forwardRef(({textVariant:o=fo,variant:e="subtitle2",weight:t,className:r,sx:a,...s},i)=>jsx(Oe,{ref:i,className:kc(mo.root,r),sx:a,"data-testid":"Typography",...s,variant:e,$textVariant:o,$weight:t}));Ze.displayName="Typography";var je=memo(Ze);var us="os-shared-RadioButton";var uo={root:`${us}-root`};var Ge=({disabled:o,...e})=>{let{v2:t}=useTheme(),{brand:r,base:a}=t.palette,s=o?"#BDC1CC":r[500];return jsxs(Ko,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...e,children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"4.8",fill:s,stroke:s,strokeWidth:"1.2",style:{fill:s,stroke:s}}),jsx("circle",{cx:"6",cy:"6",r:"2.25",fill:a.white,style:{fill:a.white}})]})},Xe=({disabled:o,...e})=>{let{v2:t}=useTheme(),{base:r,grey:a}=t.palette,s=o?a[50]:r.white,i=o?a[200]:a[500];return jsx(Ko,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...e,children:jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"4.8",fill:s,stroke:i,strokeWidth:"1.2",style:{fill:s,stroke:i}})})};var Ye=styled(gs)(({theme:o})=>({padding:o.v2.spacing(2),"&:hover":{backgroundColor:"transparent"},"& .MuiSvgIcon-root":{fontSize:12,width:12,height:12}}));var _e=forwardRef(({disabled:o,sx:e,className:t,...r},a)=>jsx(Ye,{ref:a,disableRipple:true,disabled:o,checkedIcon:jsx(Ge,{disabled:o}),icon:jsx(Xe,{disabled:o}),"data-testid":"RadioButton",className:kc(uo.root,t),sx:e,...r}));_e.displayName="RadioButton";var qe=memo(_e);var go="os-shared-CircularProgress",R={root:`${go}-root`,progress:`${go}-progress`,labelOverlay:`${go}-labelOverlay`,labelText:`${go}-labelText`};var Qe=styled(Va)(({theme:o})=>{let{brand:e}=o.v2.palette;return {color:"#147DC5",background:alpha(e[500],.05),borderRadius:"50%",[`& .${circularProgressClasses.circle}`]:{strokeLinecap:"round"}}}),ot=styled(Je)(()=>({position:"relative",display:"inline-flex"})),et=styled(Je)(()=>({top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"})),tt=styled(ns)(({theme:o})=>({fontSize:o.typography.fontSize,fontWeight:o.typography.fontWeightBolder??700,color:"#3B4152"}));var rt=forwardRef(({variant:o="indeterminate",hasLabel:e=true,value:t,className:r,sx:a,...s},i)=>{let n=o==="determinate"&&e;return jsxs(ot,{className:kc(R.root,r),sx:a,"data-testid":"CircularProgress",children:[jsx(Qe,{ref:i,variant:o,value:t,className:R.progress,...s}),n&&jsx(et,{className:R.labelOverlay,children:jsx(tt,{className:R.labelText,variant:"caption",color:"text.secondary",children:`${Math.round(t??0)}%`})})]})});rt.displayName="CircularProgress";var at=memo(rt);var A="os-shared-Tooltip",h={popper:`${A}-popper`,tooltip:`${A}-tooltip`,arrow:`${A}-arrow`,content:`${A}-content`,title:`${A}-title`,supportingText:`${A}-supportingText`,wrapper:`${A}-wrapper`};var st=styled(({className:o,...e})=>createElement(Ts,{...e,classes:{popper:kc(h.popper,o),tooltip:h.tooltip,arrow:h.arrow}}))(({theme:o})=>{let{base:e,grey:t}=o.v2.palette,r=e.white,a="var(--tooltip-border-width) solid var(--tooltip-border-color)";return {"--tooltip-border-color":"#3C373721","--tooltip-border-width":"1px",zIndex:999999,[`& .${h.arrow}`]:{color:r,"&:before":{backgroundColor:r,boxSizing:"border-box",border:a}},[`& .${h.tooltip}`]:{backgroundColor:r,color:t[700],boxShadow:o.v2.elevation[200],fontSize:12,fontWeight:400,lineHeight:1.2,padding:o.v2.spacing(6),borderRadius:o.v2.radius(8),border:a,maxWidth:320,wordBreak:"break-word"}}}),nt=styled("div")(({theme:o})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",gap:o.v2.spacing(6),maxWidth:296,width:"100%"})),it=styled("div",{shouldForwardProp:o=>o!=="$hasSupportingText"})(({theme:o,$hasSupportingText:e})=>{let{grey:t}=o.v2.palette;return {margin:0,fontSize:12,fontWeight:e?600:400,lineHeight:e?1:1.2,color:e?t[700]:alpha(t[700],.77),width:e?"100%":void 0}}),lt=styled("div")(({theme:o})=>{let{grey:e}=o.v2.palette;return {margin:0,fontSize:11,fontWeight:400,lineHeight:"normal",color:e[500],width:"100%",whiteSpace:"pre-wrap"}});function Fs(o){return o!=null&&o!==false&&o!==""}function Ls(o){return !!o||o===0}function zs(o,e){let t=Fs(e);if(!Ls(o)&&!t)return null;let r=jsx(it,{className:h.title,$hasSupportingText:t,children:o});return t?jsxs(nt,{className:h.content,children:[r,jsx(lt,{className:h.supportingText,children:e})]}):r}function pt({className:o,title:e,supportingText:t,placement:r="top",children:a,wrapperProps:s,sx:i,...n}){let{className:p,...d}=s??{};return jsx(st,{className:o,title:zs(e,t),placement:r,arrow:true,sx:i,...n,children:jsx(Je,{display:"flex",alignItems:"center","data-testid":"Tooltip",className:kc(h.wrapper,p),...d,children:a})})}pt.displayName="Tooltip";var dt=memo(pt);var Rs="os-shared-Skeleton",bo={root:`${Rs}-root`};var ct=styled(As)(()=>({}));var mt=forwardRef(({className:o,sx:e,variant:t="rounded",height:r=16,...a},s)=>jsx(ct,{ref:s,className:kc(bo.root,o),sx:e,"data-testid":"Skeleton",variant:t,height:r,...a}));mt.displayName="Skeleton";var ft=memo(mt);var Os="os-shared-Avatar",So={root:`${Os}-root`},vo="xs",No="teal",ut={teal:{from:"#31D5C8",to:"#1186C5"},green:{from:"#A2E9BD",to:"#44BB74"},cyan:{from:"#6BF6EB",to:"#32D6C9"},steel:{from:"#61AFC9",to:"#7FBFD4"},sage:{from:"#9DB7A4",to:"#7FBFD4"},gold:{from:"#D7B38C",to:"#FFE09F"},lime:{from:"#ADD6A2",to:"#FFDDB2"}},yt={xs:{dimension:24,fontSize:"9px"},sm:{dimension:32,fontSize:"12px"},md:{dimension:40,fontSize:"15px"},lg:{dimension:48,fontSize:"17px"},xl:{dimension:56,fontSize:"20px"}};function Ks(o){let{from:e,to:t}=ut[o];return `linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%), linear-gradient(135deg, ${e} 0%, ${t} 100%)`}var gt=styled(Zs,{shouldForwardProp:o=>!["$size","$color"].includes(o)})(({theme:o,$size:e=vo,$color:t=No})=>{let{dimension:r,fontSize:a}=yt[e],{base:s}=o.v2.palette,i=Ks(t);return {width:r,height:r,flexShrink:0,fontSize:a,fontWeight:o.typography.fontWeightMedium,lineHeight:"normal",color:s.white,background:i,backgroundColor:"transparent","&.MuiAvatar-colorDefault":{color:s.white,background:i,backgroundColor:"transparent"}}});var xt=forwardRef(({className:o,sx:e,size:t=vo,color:r=No,...a},s)=>jsx(gt,{ref:s,className:kc(So.root,o),sx:e,"data-testid":"Avatar",...a,$size:t,$color:r,variant:"circular"}));xt.displayName="Avatar";var Ct=memo(xt);var Ys="os-shared-Divider",ko={root:`${Ys}-root`};function Js(o,e){let{grey:t,border:r}=e.v2.palette;return o==="subtle"?r.subtle:t[100]}var ht=styled(_s,{shouldForwardProp:o=>o!=="$type"})(({theme:o,$type:e="default",orientation:t="horizontal"})=>({borderColor:Js(e,o),...t==="vertical"?{borderBottomWidth:0,borderRightWidth:1}:{borderBottomWidth:1}}));var bt=forwardRef(({className:o,sx:e,orientation:t="horizontal",type:r="default",...a},s)=>jsx(ht,{ref:s,className:kc(ko.root,o),sx:e,"data-testid":"Divider",orientation:t,$type:r,...a}));bt.displayName="Divider";var St=memo(bt);var tn="os-shared-Collapse",wo={root:`${tn}-root`};var vt=styled(rn)(()=>({}));var Nt=forwardRef(({className:o,sx:e,children:t,unmountOnExit:r=true,timeout:a=300,...s},i)=>jsx(vt,{ref:i,className:kc(wo.root,o),sx:e,"data-testid":"Collapse",unmountOnExit:r,timeout:a,...s,children:t}));Nt.displayName="Collapse";var kt=memo(Nt);var pn="os-shared-Badge",Io={root:`${pn}-root`},Bo="default",wt={default:"#29b6f6",primary:"#1976d2",secondary:"#f50057",neutral:"#656565",gray:"#CFCFCF",orange:"#FFD503"};function mn(o,e){let{base:t,grey:r,brand:a,success:s,warning:i,error:n,gradient:p}=e.v2.palette;if(o==="highlight")return p.brand;let d=wt[o];return d||({inactive:r[100],active:alpha(t.black,.1),dark:a[500],red:n[500],success:s[500],warning:i[500],error:n[500]}[o]??t.white)}function fn(o,e){let{base:t}=e.v2.palette;return o==="inactive"?t.black:(t.white)}var Bt=styled("span",{shouldForwardProp:o=>!["$color","$compact","$round","$pointer"].includes(o)})(({theme:o,$color:e=Bo,$compact:t,$round:r,$pointer:a})=>{let s=mn(e,o);return {paddingBlock:o.v2.spacing(2),paddingInline:t?"0.16056rem":r?"0.275rem":o.v2.spacing(4),borderRadius:t?o.v2.radius(4):r?o.v2.radius(16):o.v2.radius(48),background:s,color:fn(e,o),fontSize:"8px",fontWeight:700,lineHeight:"10px",letterSpacing:0,overflow:"hidden",height:t?"12px":r?"16px":void 0,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",cursor:a?"pointer":"auto"}});var Tt=forwardRef(({className:o,sx:e,color:t,state:r,compact:a,round:s,pointer:i,children:n,...p},d)=>{let c=t??r??Bo;return jsx(Bt,{ref:d,className:kc(Io.root,o),sx:e,"data-testid":"Badge",...p,$color:c,$compact:a,$round:s,$pointer:i,children:n})});Tt.displayName="Badge";var Pt=memo(Tt);var xn="os-shared-Backdrop",To={root:`${xn}-root`};var $t=styled(Cn,{shouldForwardProp:o=>o!=="$hasBlur"})(({theme:o,$hasBlur:e=false})=>{let t=e?o.v2.blur[6]:"none";return {zIndex:1,backgroundColor:alpha("#000",.3),backdropFilter:t,WebkitBackdropFilter:t}});var Mt=forwardRef(({className:o,sx:e,open:t=true,hasBlur:r=false,onClose:a,onClick:s,...i},n)=>{if(!t)return null;let p=d=>{a?.(),s?.(d);};return createPortal(jsx($t,{open:t,$hasBlur:r,ref:n,className:kc(To.root,o),sx:e,"data-testid":"Backdrop",onClick:p,...i}),document.body)});Mt.displayName="Backdrop";var Ft=memo(Mt);var Po="os-shared-CopyButton",B={root:`${Po}-root`,icon:`${Po}-icon`,copyIcon:`${Po}-copyIcon`,copiedIcon:`${Po}-copiedIcon`};var Dt=o=>{let{v2:e}=useTheme(),{base:t}=e.palette;return jsx(Ko,{sx:{height:12.6,width:13},...o,children:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"13",viewBox:"2.67 1.67 10.66 12.66",fill:"none",children:jsx("path",{d:"M11.3333 13.6978L11.3332 13.6979C11.1002 14.0479 10.7072 14.2582 10.2863 14.2582H5.83317C4.12559 14.2582 2.7415 12.8741 2.7415 11.1665V4.71338C2.7415 4.29279 2.95172 3.89983 3.30186 3.66641L3.5915 3.47331V11.1665C3.5915 12.4046 4.59508 13.4082 5.83317 13.4082H11.5264L11.3333 13.6978ZM4.40817 3.49984C4.40817 2.53467 5.20133 1.7415 6.1665 1.7415H11.4998C12.465 1.7415 13.2582 2.53467 13.2582 3.49984V10.8332C13.2582 11.7983 12.465 12.5915 11.4998 12.5915H6.1665C5.20133 12.5915 4.40817 11.7983 4.40817 10.8332V3.49984ZM11.4998 2.5915H6.1665C5.65901 2.5915 5.25817 2.99234 5.25817 3.49984V10.8332C5.25817 11.3407 5.65901 11.7415 6.1665 11.7415H11.4998C12.0073 11.7415 12.4082 11.3407 12.4082 10.8332V3.49984C12.4082 2.99234 12.0073 2.5915 11.4998 2.5915Z",fill:t.black,stroke:t.white,strokeWidth:"0.15"})})})},Rt=o=>{let{v2:e}=useTheme(),{success:t,base:r}=e.palette;return jsx(Ko,{sx:{height:12.6,width:13},...o,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:t[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};var Wt=styled("span")({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:16,height:16,flexShrink:0,cursor:"pointer",verticalAlign:"middle"}),Yo=styled("span",{shouldForwardProp:o=>o!=="$visible"})(({$visible:o})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:o?1:0,transition:"opacity 200ms ease"}));var Et=forwardRef(({className:o,sx:e,text:t,feedbackMs:r=2e3,icon:a=jsx(Dt,{}),onClick:s,...i},n)=>{let[p,d]=useState(false),c=f=>{f.stopPropagation(),ab(t),d(true),setTimeout(()=>d(false),r),s?.(f);};return jsxs(Wt,{ref:n,className:kc(B.root,o),sx:e,role:"button",tabIndex:0,"data-testid":"CopyButton",onClick:c,...i,children:[jsx(Yo,{className:kc(B.icon,B.copyIcon),$visible:!p,children:a}),jsx(Yo,{className:kc(B.icon,B.copiedIcon),$visible:p,children:jsx(Rt,{})})]})});Et.displayName="CopyButton";var Ht=memo(Et);var _o="os-shared-ProgressBar",U={root:`${_o}-root`,fill:`${_o}-fill`,text:`${_o}-text`};var Ot=styled(Je,{shouldForwardProp:o=>!["$value","$isDecimal"].includes(o)})(({theme:o,$value:e,$isDecimal:t})=>{let{base:r}=o.v2.palette;return {width:`${e}%`,minWidth:e>=10?"28px":"24px",height:"18px",borderRadius:o.v2.radius(50),background:"linear-gradient(256deg, #147DC5 0%, #3DA6E1 100%)",display:"flex",alignItems:"center",justifyContent:e>10?"flex-end":"center",paddingInlineEnd:e>10?o.v2.spacing(2):o.v2.spacing(0),...e===0&&{background:alpha(r.black,26/255)},...t&&{minWidth:e>=10?"40px":"36px"}}}),Zt=styled(Je,{shouldForwardProp:o=>o!=="$value"})(({theme:o,$value:e})=>{let{base:t}=o.v2.palette;return {height:"14px",maxWidth:"36px",minWidth:"20px",background:alpha(t.black,26/255),borderRadius:o.v2.radius(50),display:"flex",alignItems:"center",justifyContent:"center",padding:0,...e===0&&{background:alpha(t.black,0)}}}),jt=styled(ns,{shouldForwardProp:o=>o!=="$value"})(({theme:o,$value:e})=>{let{base:t,grey:r}=o.v2.palette;return {fontSize:"8px",fontWeight:o.typography.fontWeightBolder??700,color:t.white,padding:`${o.v2.spacing(2)} ${o.v2.spacing(4)}`,...e===0&&{color:alpha(r[500],.5)}}});var Ut=forwardRef(({className:o,sx:e,value:t},r)=>{let a=!Number.isInteger(t);return jsx(Ot,{ref:r,className:kc(U.root,o),sx:e,"data-testid":"ProgressBar",$value:t,$isDecimal:a,children:jsx(Zt,{className:U.fill,$value:t,children:jsxs(jt,{className:U.text,$value:t,variant:"caption",children:[Number(t.toFixed(2)),"%"]})})})});Ut.displayName="ProgressBar";var Gt=memo(Ut);var Fo="os-shared-Chip",k={root:`${Fo}-root`,text:`${Fo}-text`,copyButton:`${Fo}-copyButton`,icon:`${Fo}-icon`},Xt={text:{height:24,paddingBlock:4,paddingInline:8,borderRadius:48},circular:{height:24,width:24,padding:4,borderRadius:12},"pill-icon":{height:24,width:36,paddingBlock:4,paddingInline:6,borderRadius:12}};var qt=o=>{let{v2:e}=useTheme(),{base:t}=e.palette;return jsx(Ko,{sx:{height:"10px"},...o,children:jsx("svg",{width:"11",height:"13",viewBox:"0 0 11 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.924805 9.5C0.924805 10.7381 1.9289 11.7412 3.16699 11.7412H8.86035L8.66699 12.0312C8.43398 12.3812 8.04094 12.5917 7.62012 12.5918H3.16699C1.45941 12.5918 0.0751953 11.2076 0.0751953 9.5V3.04688C0.0751953 2.62628 0.28561 2.23342 0.635742 2L0.924805 1.80664V9.5ZM3.5 0.0751953H8.83301C9.79807 0.0751953 10.5916 0.867985 10.5918 1.83301V9.16699C10.5916 10.132 9.79807 10.9248 8.83301 10.9248H3.5C2.53494 10.9248 1.74139 10.132 1.74121 9.16699V1.83301C1.74139 0.867985 2.53494 0.0751953 3.5 0.0751953ZM3.5 0.924805C2.99261 0.924805 2.59197 1.32567 2.5918 1.83301V9.16699C2.59197 9.67433 2.99261 10.0752 3.5 10.0752H8.83301C9.3404 10.0752 9.74104 9.67433 9.74121 9.16699V1.83301C9.74104 1.32567 9.3404 0.924805 8.83301 0.924805H3.5Z",fill:t.black,stroke:t.white,strokeWidth:"0.15"})})})},Jt=o=>{let{v2:e}=useTheme(),{success:t,base:r}=e.palette;return jsx(Ko,{sx:{height:"10px"},...o,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:t[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};function Dn(o,e){let t=Xt[o];return {height:t.height,..."width"in t&&{width:t.width,minWidth:t.width},..."padding"in t&&{padding:e.v2.spacing(t.padding)},..."paddingBlock"in t&&{paddingBlock:e.v2.spacing(t.paddingBlock)},..."paddingInline"in t&&{paddingInline:e.v2.spacing(t.paddingInline)},borderRadius:e.v2.radius(t.borderRadius)}}var or=styled(Je,{shouldForwardProp:o=>!["$variant","$hasIcon","$hasCopy","$isSelected","$disableAnimation"].includes(o)})(({theme:o,$variant:e="text",$hasIcon:t,$hasCopy:r,$isSelected:a,$disableAnimation:s})=>{let{grey:i,base:n}=o.v2.palette;return {display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,boxSizing:"border-box",lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",fontSize:11,fontWeight:o.typography.fontWeightRegular,color:n.black,border:`1px solid ${i[100]}`,backgroundColor:n.white,...Dn(e,o),...e==="text"&&t&&{gap:o.v2.spacing(6),paddingInlineStart:o.v2.spacing(5),paddingInlineEnd:o.v2.spacing(8)},...r&&{gap:o.v2.spacing(4)},[`& .${k.icon}`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:14,height:14,overflow:"hidden","& img, & svg":{width:14,height:14,display:"block"}},...a&&{boxShadow:`${n.white} 7px 0px 8px 2px`},...s&&{transition:"none !important",animation:"none !important",transform:"none !important","& *":{transition:"none !important",animation:"none !important",transform:"none !important"}}}}),Jo=styled(Je)({textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"0 1 auto"}),er=styled("span",{shouldForwardProp:o=>o!=="$copied"})(({$copied:o})=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:12,height:12,flexShrink:0,cursor:"pointer",opacity:o?1:.6,transition:"opacity 150ms ease","&:hover":{opacity:1}})),Qo=styled("span",{shouldForwardProp:o=>o!=="$visible"})(({$visible:o})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:o?1:0,transition:"opacity 150ms ease"}));var rr=forwardRef(({className:o,sx:e,children:t,icon:r,variant:a="text",disabled:s=false,isSelected:i=false,copyText:n,unknownText:p="Unknown",disableAnimation:d=false,...c},f)=>{let[y,m]=useState(false),u=!!(t&&n),C=r!=null&&!u,g=useCallback(v=>{v.stopPropagation(),n&&(ab(n),m(true),setTimeout(()=>m(false),2e3));},[n]),S=useMemo(()=>C?jsx("span",{className:k.icon,children:r}):null,[C,r]),L=useMemo(()=>{if(t){let v=u&&typeof t=="string"?Zb(t):void 0;return jsx(Jo,{className:k.text,"data-is-arabic":v,children:t})}return C?null:jsx(Jo,{className:k.text,children:p})},[t,u,C,p]),x=useMemo(()=>u?jsxs(er,{className:k.copyButton,role:"button",tabIndex:0,"aria-label":y?"copied":"copy","data-testid":"ChipCopyButton",$copied:y,onClick:g,children:[jsx(Qo,{$visible:!y,children:jsx(qt,{})}),jsx(Qo,{$visible:y,children:jsx(Jt,{})})]}):null,[u,y,g]);return jsxs(or,{ref:f,"data-testid":"Chip",className:kc(k.root,o,`CustomVariant_${a}`),sx:jc(s?{cursor:"not-allowed",opacity:.5}:{},e),$variant:a,$hasIcon:C,$hasCopy:u,$isSelected:i,$disableAnimation:d,...c,children:[S,L,x]})});rr.displayName="Chip";var ar=memo(rr);var ee="os-shared-Slider",T={root:`${ee}-root`,thumb:`${ee}-thumb`,thumbIcon:`${ee}-thumbIcon`};var sr=o=>{let{v2:e}=useTheme(),{grey:t}=e.palette;return jsx(Ko,{sx:{width:"5px",height:"8px",pointerEvents:"none"},...o,children:jsxs("svg",{width:"5",height:"8",viewBox:"0 0 5 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M0.459961 0.460449L0.459961 6.59897",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M2.44531 0.460388L2.44531 6.59891",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M4.4375 0.460388L4.4375 6.59891",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"})]})})};var nr=styled(Zn)(({theme:o})=>{let{brand:e,base:t}=o.v2.palette,r=["0px 0px 1.25px 0px rgba(0, 0, 0, 0.1)","0px 1.25px 1.25px 0px rgba(0, 0, 0, 0.09)","0px 3.75px 2.5px 0px rgba(0, 0, 0, 0.05)","0px 7.5px 2.5px 0px rgba(0, 0, 0, 0.01)","0px 11.25px 3.75px 0px rgba(0, 0, 0, 0)"].join(", ");return {color:e[500],height:8,padding:0,"& .MuiSlider-rail":{backgroundColor:"#CFCFCF",opacity:1,left:0},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:t.white,border:"none",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:r,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:r}},[`& .${T.thumbIcon}`]:{width:"5px",height:"8px",pointerEvents:"none"}}});function Yn({children:o,className:e,...t}){return jsxs(SliderThumb,{className:kc(T.thumb,e),...t,children:[o,jsx(sr,{className:T.thumbIcon})]})}var ir=forwardRef(({className:o,sx:e,value:t,min:r,max:a,step:s,disabled:i,onChange:n,slots:p,...d},c)=>{let f=useCallback((y,m)=>{n(m);},[n]);return jsx(nr,{ref:c,className:kc(T.root,o),sx:e,"data-testid":"Slider",value:t,min:r,max:a,step:s,disabled:i,onChange:f,...d,slots:{thumb:Yn,...p}})});ir.displayName="Slider";var lr=memo(ir);var te="os-shared-Input",X={root:`${te}-root`,label:`${te}-label`,input:`${te}-input`},dr={sm:28,md:32,labelled:40};var cr=(o,e)=>dr[o?"labelled":e],mr=styled(Qn,{shouldForwardProp:o=>!["$hasLabel","$hideArrows","$size"].includes(o)})(({theme:o,$hasLabel:e=false,$hideArrows:t=false,$size:r="md"})=>{let{base:a,grey:s}=o.v2.palette;return {height:cr(e,r),padding:e?o.v2.spacing(8):`0 ${o.v2.spacing(8)}`,border:"none",borderRadius:"inherit",fontSize:"11px",fontWeight:o.typography.fontWeightMedium,color:a.black,backgroundColor:"transparent",display:"flex",alignItems:e?"stretch":"center","&.Mui-disabled":{color:s[500]},"& input":{paddingTop:o.v2.spacing(4),paddingBottom:o.v2.spacing(4)},"& input::placeholder":{color:s[500],fontWeight:o.typography.fontWeightRegular,opacity:e?0:1,...e&&{transition:"opacity 0.2s ease"}},"& input:-webkit-autofill, & input:-webkit-autofill:hover, & input:-webkit-autofill:focus":{WebkitTextFillColor:a.black,caretColor:a.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},...e&&{marginTop:0,"& input":{margin:"0px !important",padding:"0px !important",paddingTop:`${o.v2.spacing(10)} !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}}}}),fr=styled(Jn)(({theme:o})=>{let{grey:e}=o.v2.palette;return {fontSize:"11px",color:`${e[500]} !important`}}),ur=styled(qn,{shouldForwardProp:o=>!["$hasLabel","$size"].includes(o)})(({theme:o,disabled:e,error:t,fullWidth:r,$hasLabel:a=false,$size:s="md"})=>{let{grey:i,base:n,error:p}=o.v2.palette;return {position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",height:cr(a,s),margin:0,border:`1px solid ${t?"#FF3D00":i[100]}`,borderRadius:o.v2.radius(4),backgroundColor:e?i[100]:n.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?"#FF3D00":i[50]},"& .MuiFormLabel-asterisk":{color:p[500]},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:o.v2.spacing(8),fontSize:"10px",fontWeight:o.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:`${i[500]} !important`},"& .MuiInput-root":{flex:1,marginTop:"0 !important"}}});var gr=forwardRef(({label:o,size:e="md",error:t=false,disabled:r=false,fullWidth:a=false,placeholder:s,hideArrows:i=false,type:n,id:p,className:d,sx:c,onKeyDown:f,onWheel:y,...m},u)=>{let C=!!o,g=n==="number",S=x=>{let v=x.metaKey||x.ctrlKey||x.altKey,Zo=x.key.length===1;(["e","E","+","-"].includes(x.key)||xa$1()&&Zo&&!v&&!/^[0-9.]$/.test(x.key))&&x.preventDefault(),f?.(x);},L=x=>{x.target instanceof HTMLElement&&x.target.blur(),y?.(x);};return jsxs(ur,{className:kc(X.root,d),sx:c,error:t,disabled:r,fullWidth:a,"data-testid":"Input",$hasLabel:C,$size:e,children:[C&&jsx(fr,{className:X.label,htmlFor:p,children:o}),jsx(mr,{id:p,inputRef:u,className:X.input,type:n,error:t,disabled:r,placeholder:s??void 0,"aria-invalid":t||void 0,disableUnderline:true,fullWidth:true,$hasLabel:C,$hideArrows:i,$size:e,onKeyDown:g?S:f,onWheel:g?L:y,...m})]})});gr.displayName="Input";var xr=memo(gr);var ae="os-shared-Textarea",Y={root:`${ae}-root`,label:`${ae}-label`,textarea:`${ae}-textarea`},_=3;var Cr=styled(si,{shouldForwardProp:o=>!["$error","$hasLabel","$minRows"].includes(o)})(({theme:o,$hasLabel:e=false,$minRows:t=_})=>{let{base:r,grey:a}=o.v2.palette;return {border:"none",borderRadius:"inherit",padding:e?`${o.v2.spacing(32)} ${o.v2.spacing(8)} ${o.v2.spacing(8)}`:`${o.v2.spacing(8)} ${o.v2.spacing(12)}`,fontSize:"11px",fontWeight:o.typography.fontWeightMedium,lineHeight:"normal",color:r.black,backgroundColor:"transparent",alignItems:"flex-start",width:"100%",...e&&{marginTop:0},"&.Mui-disabled":{color:a[500]},"& textarea":{resize:"vertical",minHeight:e?void 0:`${Math.max(t*20,60)}px`,padding:0,margin:0},"& textarea::placeholder":{color:a[500],fontWeight:o.typography.fontWeightMedium,opacity:1},"& textarea:-webkit-autofill, & textarea:-webkit-autofill:hover, & textarea:-webkit-autofill:focus":{WebkitTextFillColor:r.black,caretColor:r.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"}}}),hr=styled(Jn)(({theme:o})=>{let{grey:e}=o.v2.palette;return {fontSize:"10px",fontWeight:o.typography.fontWeightMedium,color:`${e[500]} !important`}}),br=styled(qn,{shouldForwardProp:o=>!["$hasLabel","$minRows"].includes(o)})(({theme:o,disabled:e,error:t,fullWidth:r,$hasLabel:a=false,$minRows:s=_})=>{let{grey:i,base:n,error:p}=o.v2.palette,d=t?p[500]:i[100];return {position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",minHeight:a?96+(s-_)*20:void 0,margin:0,border:`1px solid ${d}`,borderRadius:o.v2.radius(4),backgroundColor:e?i[100]:n.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?p[500]:i[50]},"& .MuiFormLabel-asterisk":{color:p[500]},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",display:"flex",alignItems:"flex-start",gap:o.v2.spacing(2),padding:o.v2.spacing(8),fontSize:"10px",fontWeight:o.typography.fontWeightMedium,lineHeight:"100%",transform:"none !important",transformOrigin:"top left",color:`${i[500]} !important`},"& .MuiInputBase-root":{flex:1,marginTop:"0 !important"}}});var vr=forwardRef(({label:o,error:e=false,disabled:t=false,fullWidth:r=false,placeholder:a,minRows:s=_,maxRows:i,id:n,className:p,sx:d,required:c,...f},y)=>{let m=!!o;return jsxs(br,{className:kc(Y.root,p),sx:d,error:e,disabled:t,fullWidth:r,required:c,variant:"standard","data-testid":"Textarea",$hasLabel:m,$minRows:s,children:[m&&jsx(hr,{className:Y.label,htmlFor:n,shrink:true,disableAnimation:true,required:c,children:o}),jsx(Cr,{id:n,inputRef:y,className:Y.textarea,multiline:true,minRows:s,maxRows:i,disabled:t,required:c,placeholder:a??void 0,"aria-invalid":e||void 0,fullWidth:true,$error:e,$hasLabel:m,$minRows:s,...f})]})});vr.displayName="Textarea";var Nr=memo(vr);var E="os-shared-Accordion",w={root:`${E}-root`,summary:`${E}-summary`,content:`${E}-content`,labelStartAdornment:`${E}-labelStartAdornment`,labelContent:`${E}-labelContent`,labelEndAdornment:`${E}-labelEndAdornment`,expandIcon:`${E}-expandIcon`};var wr=()=>{let{v2:o}=useTheme(),{base:e}=o.palette;return jsx("svg",{width:"9",height:"5",viewBox:"0 0 9 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.0501709 0.427246C0.0493864 0.478467 0.0592757 0.529176 0.0784912 0.57666C0.0976579 0.623937 0.125505 0.667471 0.161499 0.703613L3.82556 4.47803C3.86116 4.51465 3.90353 4.54403 3.95056 4.56396C3.99773 4.58391 4.04876 4.59422 4.09998 4.59424C4.15123 4.59424 4.20218 4.58392 4.24939 4.56396C4.29655 4.54401 4.33969 4.51476 4.37537 4.47803L8.03845 0.703613C8.07407 0.667816 8.10232 0.625348 8.12146 0.578613C8.14069 0.531638 8.15017 0.480932 8.14978 0.430176C8.14935 0.379519 8.13942 0.329298 8.11951 0.282715C8.09956 0.236042 8.06999 0.19405 8.03357 0.158691C7.99716 0.123349 7.95384 0.0952198 7.90662 0.0766602C7.8595 0.0582058 7.80878 0.0491929 7.75818 0.050293C7.70763 0.0514427 7.65792 0.0629948 7.61169 0.0834961C7.56537 0.104067 7.52346 0.13358 7.48865 0.17041L4.09998 3.65967L0.711304 0.17041C0.65912 0.115154 0.592066 0.0759001 0.517944 0.059082C0.443585 0.0422622 0.365385 0.0481013 0.294312 0.0756836C0.22324 0.103266 0.162075 0.15178 0.11853 0.214355C0.0750125 0.276905 0.05135 0.351058 0.0501709 0.427246Z",fill:e.black,stroke:e.black,strokeWidth:"0.1"})})};var Br=styled(di)(({theme:o,square:e})=>{let{grey:t,base:r}=o.v2.palette;return {overflow:"hidden",border:`1px solid ${t[100]}`,...!e&&{borderRadius:o.v2.radius(8)},margin:0,background:r.white,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0},"&.Mui-disabled":{opacity:.5,pointerEvents:"none"}}}),Tr=styled(mi)(({theme:o})=>({background:"#fbfbfb",minHeight:"40px",height:"40px",padding:o.v2.spacing(10),"&.Mui-expanded":{minHeight:"40px",height:"40px"},"& .MuiAccordionSummary-content":{margin:0,display:"flex",flexDirection:"row",alignItems:"center",flexGrow:1,minWidth:0,gap:o.v2.spacing(10)},"& .MuiAccordionSummary-expandIconWrapper":{marginLeft:o.v2.spacing(8)}})),Pr=styled(ci)(({theme:o})=>{let{grey:e}=o.v2.palette;return {padding:0,borderTop:`1px solid ${e[100]}`}}),$r=styled(Je)({display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:"rotate(0deg)"}),Mr=styled(Je)({minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"});var zr=forwardRef(({expanded:o,defaultExpanded:e=false,onChange:t,label:r,content:a,labelStartAdornment:s,labelEndAdornment:i,slotProps:n={},disabled:p=false,expandIcon:d,className:c,sx:f,...y},m)=>{let u=o!==void 0,[C,g]=useState(e),S=u?o:C,L=(dl,ue)=>{u||g(ue),t?.(ue);},{showArrow:x=true,...v}=n.label??{},{className:Zo,sx:Fa,...La}=n.root??{},za=d??(x?jsx($r,{component:"span",className:w.expandIcon,children:jsx(wr,{})}):null),Da=jsxs(Fragment,{children:[s!=null&&jsx(Je,{component:"span",className:w.labelStartAdornment,...n.labelStartAdornment,sx:jc({flexShrink:0},n.labelStartAdornment?.sx),children:s}),jsx(Mr,{component:"span",className:w.labelContent,...n.labelContent,sx:n.labelContent?.sx,children:r}),i!=null&&jsx(Je,{component:"span",className:w.labelEndAdornment,...n.labelEndAdornment,sx:jc({flexShrink:0,marginLeft:"auto"},n.labelEndAdornment?.sx),children:i})]});return jsxs(Br,{ref:m,"data-testid":"Accordion",disabled:p,expanded:S,onChange:L,className:kc(w.root,c,Zo),sx:jc(f??{},Fa),...La,...y,children:[jsx(Tr,{className:w.summary,expandIcon:za,"aria-expanded":S,...v,children:Da}),jsx(Pr,{className:w.content,...n.content,children:a})]})});zr.displayName="Accordion";var Dr=memo(zr);var Rr="os-shared-Menu",to={popper:`${Rr}-popper`,panel:`${Rr}-panel`};var Wr=styled(Ci)({}),Er=styled(Je,{shouldForwardProp:o=>o!=="$showShadow"})(({theme:o,$showShadow:e})=>{let{grey:t,base:r}=o.v2.palette;return {borderRadius:o.v2.radius(4),background:r.white,width:"max-content",cursor:"pointer",boxShadow:o.v2.elevation[200],display:"flex",flexDirection:"column",overflowY:"auto",maxHeight:"432px","&:focus":{outline:"none"},".menu-item + .menu-item":{borderTop:`1px solid ${t[100]}`},"&::after":{content:e?'""':"none",width:"100%",height:"34px",position:"sticky",bottom:0,pointerEvents:"none",background:`linear-gradient(180deg, rgba(255,255,255,0) 0%, ${r.white} 100%)`}}});var Vr=forwardRef(({open:o,anchorEl:e,children:t,placement:r,popperSx:a,panelProps:s,className:i,sx:n,...p},d)=>{let[c,f]=useState(false),m=useMemo(()=>Children.count(t),[t])>12&&c,{onScroll:u,className:C,sx:g,...S}=s??{},L=useCallback(v=>{f((v.currentTarget.scrollTop??0)>0),u?.(v);},[u]),x=kc(to.panel,C,"MuiPopper-dropdown");return jsx(Wr,{ref:d,className:kc(to.popper,i),"data-testid":"Menu",open:o,anchorEl:e,placement:r??"bottom-start",sx:a,...p,children:jsx(Er,{$showShadow:m,onScroll:L,className:x,sx:jc(n??{},g),...S,children:t})})});Vr.displayName="Menu";var Or=memo(Vr);var ro="os-shared-Dialog",P={root:`${ro}-root`,title:`${ro}-title`,divider:`${ro}-divider`,content:`${ro}-content`,actions:`${ro}-actions`};var Zr=styled(wi,{shouldForwardProp:o=>o!=="$hasBlurBackdrop"})(({theme:o,$hasBlurBackdrop:e})=>{let{base:t}=o.v2.palette,r=e?o.v2.blur[6]:"none";return {"& .MuiDialog-paper":{backgroundColor:t.white,boxShadow:"0px 0px 16px 0px rgba(0, 0, 0, 0.11)",borderRadius:o.v2.radius(8)},"& .MuiModal-backdrop":{background:alpha("#000",.2),...e&&{backdropFilter:r,WebkitBackdropFilter:r}}}}),jr=styled(Ti)(({theme:o})=>{let{base:e}=o.v2.palette;return {padding:`${o.v2.spacing(16)} ${o.v2.spacing(16)} ${o.v2.spacing(12)}`,fontSize:"13px",fontWeight:o.typography.fontWeightBolder,lineHeight:"normal",color:e.black,whiteSpace:"nowrap"}}),Kr=styled("hr")(({theme:o})=>{let{grey:e}=o.v2.palette;return {display:"block",border:"none",borderTop:`1px solid ${e[100]}`,margin:0,width:"100%",flexShrink:0}}),Ur=styled(Bi,{shouldForwardProp:o=>o!=="$hasHeading"})(({theme:o,$hasHeading:e})=>{let{grey:t}=o.v2.palette;return {padding:`${e?o.v2.spacing(12):o.v2.spacing(16)} ${o.v2.spacing(16)} ${o.v2.spacing(16)}`,fontSize:"12px",fontWeight:o.typography.fontWeightMedium,lineHeight:"normal",color:t[500]}}),Gr=styled(Ii)(({theme:o})=>({padding:`0 ${o.v2.spacing(16)} ${o.v2.spacing(16)}`,gap:o.v2.spacing(8),justifyContent:"flex-end","& > :not(style) ~ :not(style)":{marginLeft:0}}));var Yr=forwardRef(({heading:o,actions:e,children:t,onClose:r,open:a,hasBlurBackdrop:s,className:i,sx:n,...p},d)=>jsxs(Zr,{ref:d,"data-testid":"Dialog",open:a,onClose:r,$hasBlurBackdrop:s,className:kc(P.root,i),sx:n,...p,children:[o?jsxs(Fragment,{children:[jsx(jr,{className:P.title,children:o}),jsx(Kr,{"aria-hidden":true,className:P.divider})]}):null,t!=null?jsx(Ur,{className:P.content,$hasHeading:!!o,children:t}):null,e?jsx(Gr,{className:P.actions,children:e}):null]}));Yr.displayName="Dialog";var _r=memo(Yr);var Ro="os-shared-MenuItem",$={root:`${Ro}-root`,indicator:`${Ro}-indicator`,content:`${Ro}-content`,disabled:`${Ro}-disabled`},V={unchecked:"unchecked",checked:"checked",indeterminate:"indeterminate"};var Jr=()=>{let{v2:o}=useTheme(),{brand:e,base:t}=o.palette;return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:e[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74245C9.04243 3.94469 9.05652 4.2875 8.86537 4.50814L5.64586 8.22426C5.55146 8.33322 5.41909 8.39666 5.27942 8.39987C5.13975 8.40308 5.0049 8.34579 4.90612 8.24127L3.15002 6.38321C2.94999 6.17157 2.94999 5.82843 3.15002 5.61679C3.35004 5.40516 3.67435 5.40516 3.87437 5.61679L5.2522 7.07463L8.11024 3.77574C8.30138 3.55511 8.62538 3.5402 8.83391 3.74245Z",fill:t.white})]})},Qr=()=>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"})}),oa=()=>{let{v2:o}=useTheme(),{brand:e}=o.palette;return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"2.4",fill:e[500],stroke:e[500],strokeWidth:"1.2"}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:"#FAFBFB"})]})};var ra=styled(Je,{shouldForwardProp:o=>o!=="$isDisabled"})(({theme:o,$isDisabled:e=false})=>{let{base:t}=o.v2.palette;return {padding:o.v2.spacing(8),position:"relative",display:"flex",alignItems:"center",gap:o.v2.spacing(8),textTransform:"capitalize",cursor:e?"not-allowed":"pointer",flex:1,fontSize:o.typography.subtitle1.fontSize,opacity:e?.5:1,color:t.black}}),ne=styled("span")({width:14,height:14,flexShrink:0,pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center","& svg":{display:"block"}});function Ri(o,e){return e?V.indeterminate:o?V.checked:V.unchecked}var Ai={[V.unchecked]:Qr,[V.checked]:Jr,[V.indeterminate]:oa};function Wi(o,e,t){if(o===null)return null;if(o!==void 0)return jsx(ne,{className:$.indicator,"aria-hidden":true,children:o});let r=Ri(e,t),a=Ai[r];return jsx(ne,{className:$.indicator,"aria-hidden":true,children:jsx(a,{})})}var aa=forwardRef(({isSelected:o=false,isDisabled:e=false,isIndeterminate:t=false,startAdornment:r,onClick:a,children:s,className:i,sx:n,...p},d)=>{let c=kc($.root,"menu-item",e&&$.disabled,i);return jsxs(ra,{ref:d,"data-testid":"MenuItem",className:c,sx:n,onClick:e?void 0:a,$isDisabled:e,...p,children:[Wi(r,o,t),jsx("span",{className:$.content,children:s})]})});aa.displayName="MenuItem";var sa=memo(aa);var na="os-shared-ToggleButtons",so={root:`${na}-root`,button:`${na}-button`},ie={sm:"sm",md:"md"},no=ie.sm,le={sm:{buttonHeight:20,minWidth:20,fontSize:8,containerRadius:3,iconSlot:11},md:{buttonHeight:28,minWidth:28,fontSize:11,containerRadius:4,iconSlot:14}};function Hi(o,e){let{palette:t,elevation:r}=o.v2;return e?{backgroundColor:t.background.primary,boxShadow:r[100],color:t.foreground.primary}:{backgroundColor:"transparent",boxShadow:"none",color:t.foreground.secondary}}var pa=styled(Je,{shouldForwardProp:o=>o!=="$size"})(({theme:o,$size:e=no})=>{let t=le[e];return {backgroundColor:o.v2.palette.background.secondary,display:"inline-flex",alignItems:"center",padding:o.v2.spacing(2),borderRadius:o.v2.radius(t.containerRadius)}}),da=styled(Je,{shouldForwardProp:o=>o!=="$isActive"&&o!=="$size"})(({theme:o,$isActive:e=false,$size:t=no})=>{let r=le[t];return {boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,height:r.buttonHeight,width:"auto",minWidth:r.minWidth,borderRadius:o.v2.radius(2),fontSize:r.fontSize,fontWeight:o.typography.fontWeightMedium,lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",cursor:"pointer",transition:"background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease",...Hi(o,e),"& img, & svg":{width:r.iconSlot,height:r.iconSlot,display:"block"}}});function ma({options:o,activeKey:e,onChange:t,size:r=no,containerProps:a,buttonProps:s,id:i,className:n,sx:p},d){let{className:c,sx:f,...y}=a??{},m=kc(so.root,n,c);return jsx(pa,{ref:d,id:i,"data-testid":"ToggleButtons",className:m,$size:r,sx:jc(p??{},f),...y,children:o.map(u=>jsx(da,{className:so.button,$isActive:e===u.key,$size:r,onClick:()=>t(u.key),...s,children:u.content},u.key))})}var Zi=forwardRef(ma);ma.displayName="ToggleButtons";var fa=memo(Zi);var ji="os-shared-LazyImage",Wo={root:`${ji}-root`},Eo={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 ua=styled(Je)({display:"inline-flex",justifyContent:"center",alignItems:"center"});function Ho(o){return o!=null&&o in Eo}var Ji=LazyLoadImage,ga=forwardRef(({effect:o,wrapperProps:e,id:t,className:r,sx:a,placeholderSrc:s,...i},n)=>{let[p,d]=useState(Ho(o));if(useEffect(()=>{if(!Ho(o)){d(false);return}d(true),Eo[o]().finally(()=>{d(false);});},[o]),p)return null;let{className:c,sx:f,style:y,...m}=e??{},u=Ho(o)||!!s||y!=null;return jsx(ua,{component:"span",...m,className:kc(Wo.root,c??r),sx:f!=null?jc(a??{},f):a,children:jsx(Ji,{...i,ref:n,effect:o,placeholderSrc:s,id:t,"data-testid":"LazyImage",wrapperProps:u?{style:{display:"flex",justifyContent:"center",alignItems:"center",...y}}:void 0})})});ga.displayName="LazyImage";var xa=memo(ga);var M="#FF7A00",pe="os-shared-FieldFeedback",J={root:`${pe}-root`,icon:`${pe}-icon`,message:`${pe}-message`};var Ca=({severity:o="error",...e})=>{let t=useTheme(),{error:r}=t.v2.palette,a=o==="warning"?M:r[500];return jsx(Ko,{sx:{width:12,height:12},...e,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:a})})})},ha=o=>{let{v2:e}=useTheme(),{success:t}=e.palette;return jsx(Ko,{sx:{width:12,height:12},...o,children:jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:t[700]})})})},ba=o=>{let{v2:e}=useTheme(),{base:t}=e.palette;return jsx(Ko,{sx:{width:12,height:12},...o,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:t.black,strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})})})};function Vo(o,e){let t=e??"error",{brand:r}=o.v2.palette;switch(t){case "warning":return {borderColor:alpha(M,.15),backgroundColor:alpha(M,.15),textColor:M};case "success":return {borderColor:alpha("#76BB40",.15),backgroundColor:alpha("#76BB40",.15),textColor:"#76BB40"};case "info":return {borderColor:alpha(r[500],.12),backgroundColor:alpha(r[500],.12),textColor:r[500]};case "error":return {borderColor:alpha("#FF3D00",.15),backgroundColor:alpha("#FF3D00",.15),textColor:"#FF3D00"};default:return t}}var Sa=styled("div",{shouldForwardProp:o=>o!=="$feedbackType"})(({theme:o,$feedbackType:e})=>{let{backgroundColor:t}=Vo(o,e);return {display:"flex",alignItems:"flex-start",gap:o.v2.spacing(4),minHeight:"32px",padding:`${o.v2.spacing(8)} ${o.v2.spacing(12)}`,background:t,borderRadius:`0 0 ${o.v2.radius(4)} ${o.v2.radius(4)}`}}),va=styled("div",{shouldForwardProp:o=>o!=="$feedbackType"})(({theme:o,$feedbackType:e})=>{let{textColor:t}=Vo(o,e);return {fontSize:"10px",lineHeight:"16px",display:"block",color:t,wordBreak:"break-word"}}),Na=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 el(o){switch(o){case "success":return jsx(ha,{});case "info":return jsx(ba,{});case "error":case "warning":return jsx(Ca,{severity:o})}}var ka=forwardRef(({type:o="error",message:e,icon:t,className:r,sx:a},s)=>{if(!zc(e))return null;let i=o;return jsxs(Sa,{ref:s,"data-testid":"FieldFeedback",className:kc(J.root,r),sx:a,$feedbackType:i,children:[t??jsx(Na,{className:J.icon,children:el(i)}),jsx(va,{className:J.message,$feedbackType:i,children:e})]})});ka.displayName="FieldFeedback";var wa=memo(ka);var rl="os-shared-ScrollLoader",Oo={root:`${rl}-root`};var Ia=styled(al)({overflow:"auto",height:"100%",maxHeight:"100%"});function fe(o,e=50){return o.scrollHeight-(o.scrollTop+o.clientHeight)<=e}var $a=forwardRef(({loadMoreItems:o,hasMore:e,isLoading:t=false,isFetchingNextPage:r,children:a,className:s,sx:i,id:n,...p},d)=>{let[c,f]=useState(false),y=useRef(o),m=useRef(null);y.current=o;let u=useCallback(()=>{e&&!r&&y.current();},[e,r]),C=useCallback(()=>{let g=m.current;g&&fe(g)&&u();},[u]);return useEffect(()=>{let g=m.current;if(g)return g.addEventListener("scroll",C),()=>g.removeEventListener("scroll",C)},[C]),useEffect(()=>{let g=m.current;if(!g||t||c)return;let S=window.setTimeout(()=>{f(true),fe(g)&&u();},1e3);return ()=>window.clearTimeout(S)},[t,u,c]),jsx(Ia,{ref:g=>{m.current=g,typeof d=="function"?d(g):d&&(d.current=g);},id:n,"data-testid":"ScrollLoader",className:kc(Oo.root,s),sx:i,...p,children:a})});$a.displayName="ScrollLoader";var Ma=memo($a);
|
|
2
|
+
export{M as $,To as A,Ft as B,B as C,Ht as D,U as E,Gt as F,k as G,ar as H,T as I,lr as J,X as K,xr as L,Y as M,Nr as N,w as O,Dr as P,to as Q,Or as R,P as S,_r as T,$ as U,sa as V,so as W,ie as X,fa as Y,Wo as Z,xa as _,N as a,J as aa,Ie as b,Vo as ba,po as c,wa as ca,Pe as d,Oo as da,D as e,Ma as ea,We as f,co as g,Ve as h,mo as i,je as j,uo as k,qe as l,R as m,at as n,h as o,dt as p,bo as q,ft as r,So as s,Ct as t,ko as u,St as v,wo as w,kt as x,Io as y,Pt as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {j as j$1}from'./chunk-
|
|
1
|
+
import {j as j$1}from'./chunk-WUPYXOEZ.js';import {yc}from'./chunk-2SKLD6QR.js';import {memo,useId,useRef,useMemo}from'react';import v from'@mui/material/Box';import ro from'@mui/material/Popover';import {styled}from'@mui/material/styles';import L from'@mui/material/SvgIcon';import {jsx,jsxs}from'react/jsx-runtime';var P=styled(v,{shouldForwardProp:o=>o!=="open"&&o!=="disabled"})(({theme:o,open:r,disabled:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",borderRadius:"4px",background:"#ffffff",cursor:"pointer",position:"relative",maxWidth:"100%",...r&&{borderColor:o.palette.info.dark,background:o.palette.common.white},"& .SelectDropdown_trailing-icon":{color:o.palette.text.primary},"&.SelectDropdown-open":{"& .SelectDropdown_trailing-arrow":{color:o.palette.info.dark}},"&.SelectDropdown-disabled":{"& .SelectDropdown_trailing-icon":{color:o.palette.text.disabled}},...e&&{cursor:"not-allowed"}})),I=styled(v)(({theme:o})=>({padding:"4px",borderRadius:"4px",boxShadow:"-26px 156px 44px 0px rgba(0, 0, 0, 0.00), -17px 100px 41px 0px rgba(0, 0, 0, 0.01), -9px 56px 34px 0px rgba(0, 0, 0, 0.05), -4px 25px 25px 0px rgba(0, 0, 0, 0.09), -1px 6px 14px 0px rgba(0, 0, 0, 0.10), 0px 0px 0px 0px rgba(0, 0, 0, 0.10)",backgroundColor:o.palette.common.white,maxHeight:400,marginTop:"4px",width:"auto",overflow:"auto"}));styled(j$1)(({selected:o})=>({display:"flex",gap:"8px",alignItems:"center",fontSize:"10px",fontWeight:500,color:"#000",cursor:"pointer",padding:8,justifyContent:"space-between",...o&&{backgroundColor:"#F8F8F8"}}));var D=jsx("path",{d:"M7.30267 0.117188C7.38054 0.115307 7.45644 0.138248 7.52045 0.182617C7.58449 0.227088 7.63367 0.290458 7.66205 0.363281C7.6904 0.436073 7.69755 0.516047 7.68256 0.592773C7.66771 0.668745 7.63063 0.738375 7.57709 0.793945L4.17279 4.43164C4.10249 4.50662 4.00517 4.55078 3.90228 4.55078C3.79958 4.55064 3.70294 4.5065 3.63275 4.43164L0.227478 0.794922L0.228455 0.793945C0.175738 0.738766 0.139787 0.669812 0.124939 0.594727C0.110049 0.519097 0.116214 0.440194 0.143494 0.368164C0.170896 0.296002 0.218691 0.232474 0.281189 0.1875C0.343697 0.14262 0.418101 0.11821 0.495056 0.118164C0.54684 0.118166 0.598245 0.12907 0.645447 0.150391C0.691771 0.171346 0.733033 0.201824 0.767517 0.239258L3.90228 3.58691L7.03705 0.239258C7.10541 0.164191 7.20102 0.119752 7.30267 0.117188Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"0.233333"}),y={down:0,up:180,left:90,right:-90},Z=["down","up"],j="cubic-bezier(0.4, 0, 0.2, 1)";function q({direction:o="down",size:r=8,transitionEffect:e="rotation",transitionDurationMs:t=200,sx:n,className:p,...d}){let i=typeof r=="number"?r*5/8:"auto",m=e==="none"?"none":`opacity ${t}ms ease-in-out`,g=e==="none"?"none":`transform ${t}ms ${j}`,a=`${p??""} MUISvgIcon__trailing-arrow-icon`;return e==="fade"?jsx(L,{viewBox:"0 0 8 5",inheritViewBox:true,sx:{width:r,height:i,color:"inherit",position:"relative",overflow:"visible",...n},className:a,...d,children:Z.map(s=>jsx("g",{transform:`rotate(${y[s]} 4 2.5)`,style:{opacity:o===s?1:0,transition:m,pointerEvents:"none"},children:D},s))}):jsx(L,{viewBox:"0 0 8 5",inheritViewBox:true,sx:{width:r,height:i,color:"text.primary",transform:`rotate(${y[o]}deg)`,transformOrigin:"50% 50%",transition:g,...n},className:a,...d,children:D})}var T=q;var K="M0.110352 0.700684C0.107667 0.584484 0.13977 0.470009 0.203125 0.372559C0.266534 0.275041 0.358424 0.199466 0.46582 0.154785C0.573201 0.110137 0.691824 0.0987907 0.805664 0.122559C0.919306 0.146383 1.02308 0.203847 1.10352 0.287598L1.10547 0.289551L3.59766 2.78076L3.6748 2.85889L3.75293 2.78076L6.24512 0.289551L6.24609 0.287598C6.29924 0.23225 6.36317 0.188178 6.43359 0.157715C6.50408 0.12725 6.58044 0.110644 6.65723 0.109863C6.73385 0.109132 6.80991 0.123886 6.88086 0.152832C6.95193 0.18185 7.017 0.22453 7.07129 0.278809C7.12559 0.333107 7.16824 0.398144 7.19727 0.469238C7.22623 0.540187 7.24095 0.616243 7.24023 0.692871C7.23945 0.769659 7.22285 0.846017 7.19238 0.916504C7.1771 0.951852 7.1586 0.985627 7.13672 1.01709L7.0625 1.104L7.06055 1.10498L4.56934 3.59717L4.49121 3.67529L7.0625 6.24658C7.11787 6.29976 7.16193 6.36362 7.19238 6.43408C7.22278 6.50446 7.23942 6.58008 7.24023 6.65674C7.24101 6.73353 7.22629 6.81025 7.19727 6.88135C7.16829 6.95222 7.12539 7.01662 7.07129 7.0708C7.01702 7.12507 6.95191 7.16775 6.88086 7.19678C6.80988 7.22576 6.73389 7.24048 6.65723 7.23975C6.58044 7.23897 6.50408 7.22334 6.43359 7.19287C6.36315 7.16242 6.29925 7.11834 6.24609 7.06299L6.24512 7.06104L3.75293 4.56885L3.6748 4.4917L1.10449 7.06201L1.04004 7.11865C0.972059 7.17051 0.89296 7.20736 0.808594 7.2251C0.696438 7.24861 0.579855 7.23782 0.473633 7.19482C0.367223 7.15166 0.275113 7.07813 0.210938 6.98291C0.146759 6.88765 0.113309 6.77453 0.113281 6.65967C0.113345 6.5826 0.128185 6.50605 0.158203 6.43506C0.188279 6.36398 0.232716 6.29937 0.288086 6.24561L0.289063 6.24463L2.78125 3.75342L2.85938 3.67529L0.289063 1.10498L0.287109 1.104C0.17719 0.998435 0.11395 0.853049 0.110352 0.700684Z";function Q({size:o=8,strokeColor:r="white",strokeWidthSvg:e=.22006,sx:t,className:n,...p}){return jsx(L,{viewBox:"0 0 8 8",inheritViewBox:true,sx:{width:o,height:o,color:"inherit",...t},className:`${n??""} MUISvgIcon__trailing-close-icon`,...p,children:jsx("path",{d:K,fill:"currentColor",stroke:r,strokeWidth:e})})}var N=Q;function to(o){let{onClose:r,open:e,anchorEl:t,trigger:n,onOpen:p,children:d,disabled:i,listWrapperSx:m,hideArrow:g,onClear:a,hasValue:s,className:u,slotProps:A,...R}=o,E=yc(useId(),"select-dropdown"),f=a&&s,w=useRef(void 0);e&&t&&t.clientWidth>0&&(w.current=t.clientWidth);let M=w.current,{listWrapper:O,popover:H}=A??{},{slotProps:$,...V}=H??{},{paper:F,...z}=$??{},l=F,G={...l,sx:[{width:M??t?.clientWidth,maxWidth:"unset",boxSizing:"border-box"},...l?.sx?Array.isArray(l.sx)?l.sx:[l.sx]:[]]},U=useMemo(()=>["SelectDropdown",e&&"SelectDropdown-open",i&&"SelectDropdown-disabled",u].filter(Boolean).join(" "),[u,e,i]);return jsxs(P,{id:E,open:e,onClick:p,"data-testid":"SelectDropdown",disabled:i,className:U,...R,children:[jsx(v,{className:"SelectDropdown_trigger",sx:{flex:1,cursor:"pointer"},children:n}),jsxs(v,{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",right:8,className:"SelectDropdown_trailing-icon",role:"button",...f&&{sx:{cursor:"pointer"},onClick:h=>{h.stopPropagation(),h.preventDefault(),a();}},children:[!g&&!f&&jsx(T,{className:"SelectDropdown_trailing-arrow",direction:e?"up":"down",transitionEffect:"fade"}),f&&jsx(N,{className:"SelectDropdown_trailing-close"})]}),jsx(ro,{open:e,anchorEl:t,onClose:r,anchorOrigin:{vertical:"bottom",horizontal:"left"},...V,slotProps:{...z,paper:G},children:jsx(I,{className:"SelectDropdown_list-wrapper",sx:m,...O,children:d})})]})}var _=memo(to);var _o=_;export{_o as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-SSBDL6XS.js';import {a}from'./chunk-I3MLD7Z2.js';import {j,n}from'./chunk-WUPYXOEZ.js';import {Vb,yc}from'./chunk-2SKLD6QR.js';import {Dj,Ej,Kj,Oe}from'./chunk-OK75VWGZ.js';import {forwardRef,useState,useImperativeHandle,useEffect,useMemo,memo,useId}from'react';import {Button}from'@mui/material';import p from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {useTranslation}from'react-i18next';import {useDropzone}from'react-dropzone';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var G=styled(p)(()=>({textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"32px"})),u=styled(p)(()=>({paddingInline:"40px"})),d=styled(j,{shouldForwardProp:e=>e!=="isError"})(({theme:e,isError:i})=>({color:i?"#FF2000":e.v2.palette.base.black,fontSize:"18px",fontWeight:600,lineHeight:"20px",marginBottom:"8px"})),J=styled(p)(({theme:e})=>({color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"20px",padding:"4px 12px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,cursor:"pointer"})),g=styled(j)(({theme:e})=>({color:alpha(e.v2.palette.base.black,.7),fontSize:"12px",fontWeight:500,lineHeight:"20px"})),F=styled(p,{shouldForwardProp:e=>e!=="width"})(({theme:e,width:i})=>({width:i||431,minHeight:176,border:`1px dashed ${e.palette.secondary.light}`,borderRadius:"8px",padding:"24px 0",display:"flex",alignItems:"center",justifyContent:"center"})),h=styled(p)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"24px",color:e.palette.text.primary,fontSize:"14px",lineHeight:"20px",cursor:"default"})),K=styled("span")(()=>({fontWeight:600,textDecorationLine:"underline",cursor:"pointer"})),T=styled(p)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",color:e.palette.text.primary})),z=styled(p)(({theme:e})=>({color:alpha(e.palette.text.primary,.7),fontSize:"12px",fontWeight:500,lineHeight:"20px"})),O=styled(Button)(({theme:e,disabled:i})=>({borderRadius:"4px",minWidth:"105px",background:i?alpha(e.palette.info.dark,.4):e.palette.info.dark,color:e.palette.common.white,padding:"4px 8px",fontSize:"9px",fontWeight:600,height:"32px",display:"flex",alignItems:"center",justifyContent:"center",textTransform:"none","&:hover":{background:e.palette.info.dark,opacity:.8},"&.Mui-disabled":{color:e.palette.common.white}})),Q=styled(p)(()=>({display:"flex",gap:"8px",justifyContent:"center",alignItems:"center",padding:"6px",boxShadow:"0px 4px 40px 0px rgba(0, 0, 0, 0.19)",borderRadius:"4px"}));var Y=forwardRef(({accept:e,footer:i,options:x,isCreateLoading:U,progress:oe,error:R,errorHint:te,subtitleComponent:S,isSuccess:P,onConfirm:re,isSendDisabled:ie,errorActionComponent:le,title:l,width:B,successFooter:pe,progressVariant:ae},ne)=>{let{t:a$2}=useTranslation(),[n$1,H]=useState([]),{getRootProps:de,getInputProps:se,open:f,acceptedFiles:v,isDragReject:j,fileRejections:s}=useDropzone(x);useImperativeHandle(ne,()=>({open:f}),[f]),useEffect(()=>{H(v);},[v]);let C=Vb(x?.maxSize||0,0).toUpperCase(),m=useMemo(()=>{let me=s.length&&s[0].errors.some(k=>k.code==="file-invalid-type"),ce=s.length&&s[0].errors.some(k=>k.code==="file-too-large");return j||me?a$2("invalidFileType"):ce?`File is larger than ${C}`:R},[j,R,s,C,a$2]),b=useMemo(()=>n$1.length?jsxs(T,{sx:{fontWeight:600},children:[jsx(p,{children:n$1[0].name}),jsx(z,{children:Vb(n$1[0].size)})]}):null,[n$1]);return P&&n$1.length&&!U?jsxs(Fragment,{children:[jsxs(u,{children:[typeof l=="string"?jsx(d,{children:l}):l??jsx(d,{children:"File uploaded"}),S]}),jsx(F,{width:B,children:jsxs(h,{children:[P&&jsx(p,{component:"img",src:Dj,width:56,height:56}),b]})}),pe??jsxs(Q,{children:[jsx(a,{onClick:()=>{H([]);},children:jsx(a$1,{src:Ej,alt:"delete",sx:{width:14,height:14}})}),jsx(O,{disabled:ie,onClick:()=>{re?.(n$1);},children:"Bulk Send"})]})]}):U&&n$1.length?jsxs(Fragment,{children:[jsxs(u,{children:[l&&typeof l!="string"?l:jsxs(Fragment,{children:[jsx(d,{children:l??a$2("uploading")}),jsx(g,{children:a$2("wait")})]}),S]}),jsx(F,{width:B,children:jsxs(h,{children:[U&&jsx(n,{size:56,value:oe,variant:ae??"determinate"}),b]})}),i]}):jsxs(Fragment,{children:[jsxs(u,{children:[m?jsx(d,{isError:true,children:m}):typeof l=="string"?jsx(d,{children:l}):l??jsx(d,{children:a$2("uploadBulkFile")}),S||!!m&&jsx(g,{children:"Supported formats: xls, xlxs"})]}),jsxs(F,{width:B,...de(),children:[jsx("input",{...se()}),jsxs(h,{"data-slot":"content",children:[jsx(p,{component:"img",src:m?Kj:Oe,width:56,height:56}),te,b,m?jsx(Fragment,{children:le||jsx(J,{onClick:f,children:a$2("uploadAgain")})}):jsxs(T,{children:[jsxs(p,{children:[jsx(K,{onClick:f,children:"Click to upload"})," or drag and drop"]}),jsxs(z,{children:["Maximum file size ",C]}),e&&jsx(g,{children:a$2("supportedFormats",{accept:e})})]})]})]}),i]})});Y.displayName="FileUploadBase";var Z=memo(Y);var L=forwardRef((e,i)=>{let x=yc(useId(),"file-upload");return jsx(G,{id:x,"data-testid":"FileUpload","data-slot":"file-upload-wrapper",children:jsx(Z,{...e,ref:i})})});L.displayName="FileUpload";var ee=memo(L);var Xe=ee;export{Xe as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {f}from'./chunk-
|
|
1
|
+
import {f}from'./chunk-LBOKQUV4.js';import {yc}from'./chunk-2SKLD6QR.js';import {memo,useId,useState,useRef,useMemo}from'react';import {useTheme}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import C from'@mui/material/Box';import v from'@mui/material/Button';import {styled,alpha}from'@mui/material/styles';function m({isActive:o}){let[t,r]=useState(false),a=useTheme(),s=()=>{r(true);},p=()=>{r(false);},l=o?a.palette.common.white:a.palette.grey[700],c=t?a.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:c,fillOpacity:"0.1",onMouseEnter:s,onMouseLeave:p}),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:l})]})})}var y=o=>({...o.typography.subtitle1,borderRadius:"50px",borderWidth:"1px",borderStyle:"solid",minWidth:"135.11px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",gap:"8px",textTransform:"none",transition:"none",paddingInline:o.spacing(2)}),B=styled(v)(({theme:o})=>({...y(o),background:o.palette.background.gradient.shadedBlue,color:o.palette.common.white,"&:hover":{background:o.palette.background.gradient.shadedBlue,opacity:.8}})),b=styled(v)(({theme:o})=>({...y(o),backgroundColor:o.palette.common.white,borderColor:o.palette.grey[100],color:o.palette.text.primary,"&:hover":{backgroundColor:o.palette.common.white,opacity:.7}}));styled(C)(({theme:o,variant:t})=>({borderRadius:"50px",backgroundColor:t==="active"?alpha(o.palette.text.primary,.1):o.palette.grey[100],display:"flex",justifyContent:"center",alignItems:"center",paddingInline:o.spacing(.5),paddingBlock:o.spacing(.25),color:t==="active"?o.palette.common.white:o.palette.text.primary,fontSize:"8px",fontWeight:700,lineHeight:"10px"}));styled("img")(({theme:o,variant:t})=>({fill:t==="active"?o.palette.common.white:o.palette.text.primary,color:t==="active"?o.palette.common.white:o.palette.text.primary,maxWidth:"14px",maxHeight:"14px"}));styled("p")(({theme:o})=>({fontSize:"0.6875rem",color:o.palette.background.default,fontStyle:"normal",margin:"auto",textTransform:"capitalize"}));var I=styled(f)(({theme:o})=>({backgroundColor:"white",boxShadow:o.shadows[21],borderRadius:"0.25rem","& .MuiPaper-root":{borderRadius:"0.25rem",width:"12.5rem"}})),D=styled("span")(()=>({width:"27px",height:"100%",maxHeight:"100%",position:"absolute",top:"0",right:"0",bottom:"0",overflow:"hidden"})),L=styled(C)(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"100%"})),k=styled(C)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.5rem"}));var M={active:B,inActive:b};function R({variant:o="inActive",label:t,dropdownOptions:r,...a}){let s=yc(useId(),"dropdown-button"),[p,l]=useState(null),c=useRef(null),f=!!p,g=()=>{l(null);},H=M[o],d=r&&r.length>0,h=d?jsx(m,{isActive:o==="active"}):null,T=n=>{n.stopPropagation(),n.preventDefault(),d&&l(c.current);},P=useMemo(()=>(r||[]).map(n=>({...n,onClick:A=>{n?.onClick?.(A),g();}})),[r]);return jsxs(Fragment,{children:[jsx(H,{id:s,"data-testid":"StatusButton",...a,ref:c,onClick:n=>{a?.onClick?.(n),T(n);},sx:{...d&&{paddingInlineEnd:"27px"}},children:jsxs(L,{children:[jsx(k,{children:t}),h&&jsx(D,{children:h})]})}),f&&jsx(I,{open:f,onClose:g,anchorEl:p,menuItems:P})]})}R.displayName="DropdownButton";var E=memo(R);var go=E;
|
|
2
2
|
export{m as a,go as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-2RTUHSFA.js';import {a as a$1}from'./chunk-P2VRYOKF.js';import {j as j$1}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-2RTUHSFA.js';import {a as a$1}from'./chunk-P2VRYOKF.js';import {j as j$1}from'./chunk-WUPYXOEZ.js';import {yc,Ka}from'./chunk-2SKLD6QR.js';import {dl,el}from'./chunk-OK75VWGZ.js';import {useId,useState,useEffect}from'react';import te from'@mui/material/ClickAwayListener';import g from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var S=styled(g)(()=>({width:157,padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"16px"})),z=styled(j$1,{shouldForwardProp:r=>r!=="open"&&r!=="size"})(({theme:r,open:o,size:i})=>{let{base:a,grey:p,brand:b}=r.v2.palette;return {fontSize:"11px",fontWeight:500,background:a.white,border:`1px solid ${p[100]}`,borderRadius:"19px",height:i==="large"?32:24,width:i==="large"?74:58,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{boxShadow:"0px 0px 4px 0px #1F88D080",borderColor:b[500]}}}),d=styled(g)(()=>({textAlign:"center",cursor:"pointer",userSelect:"none"})),$=styled(j$1,{shouldForwardProp:r=>r!=="selected"})(({theme:r,selected:o})=>{let{base:i,grey:a,brand:p}=r.v2.palette;return {fontSize:"11px",fontWeight:500,background:i.white,border:`1px solid ${a[100]}`,borderRadius:"4px",height:24,width:33,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{borderColor:"transparent",color:p[500],backgroundColor:alpha(p[500],.1)}}}),j=styled(g)(()=>({display:"flex",flexDirection:"column",gap:"4px"})),F=styled(g)(()=>({display:"flex",alignItems:"center",justifyContent:"center",gap:"4px"})),k=styled(g)(()=>({display:"flex",flexDirection:"column",justifyContent:"center",gap:"6px"})),H=styled(a)(()=>({".MuiInput-input":{fontWeight:"500",fontSize:"11px"},height:32,width:32}));var _=r=>r===0?12:r<=12?r:r-12,ue=r=>r>=12?"PM":"AM",N=()=>new Date().getMinutes(),R=()=>{let r=new Date().getHours();return _(r)},ce=(r,o)=>o==="AM"&&r===12?0:o==="PM"&&r!==12?r+12:r;var O=["AM","PM"],x=12,h=59;function U({onChange:r,defaultTime:o,enableRealTimeChange:i,size:a="large"}){let p=yc(useId(),"time-picker"),[b,I]=useState(null),[u,q]=useState(o?.period??(new Date().getHours()>=12?"PM":"AM")),[c,C]=useState(o?.hour??R()),[l,y]=useState(o?.minute??N()),v=!!b;useEffect(()=>{i&&r?.({hour:c,minute:l,period:u});},[c,l,u,i]);let G=e=>{I(e.currentTarget);},J=()=>{I(null),r?.({hour:c,minute:l,period:u});},K=e=>{q(e);},s=e=>e<10?`0${e}`:e.toString(),Q=e=>{let m=Ka(s(Number(e.target.value)));if(m>12){e.preventDefault();return}C(m);},D=()=>{C(e=>e===12?1:e+1);},E=()=>{C(e=>e===1?12:e-1);},V=e=>{let m=Ka(s(Number(e.target.value)));if(m>59){e.preventDefault();return}y(m);},X=()=>{y(e=>e===59?(D(),0):e+1);},Y=()=>{y(e=>e===0?(E(),59):e-1);};return jsx(te,{onClickAway:J,children:jsxs(g,{id:p,"data-testid":"TimePicker",children:[jsx(z,{size:a,open:v,onClick:G,children:`${s(c)}:${s(l)}${u.toLowerCase()}`}),jsx(a$1,{open:v,anchorEl:b,placement:"top-start",sx:{marginTop:"8px",marginBottom:"8px"},children:jsxs(S,{children:[jsxs(F,{children:[jsxs(k,{children:[jsx(d,{onClick:D,children:jsx("img",{src:dl,alt:"arrow"})}),jsx(H,{value:s(c),onChange:Q}),jsx(d,{onClick:E,children:jsx("img",{src:el,alt:"arrow"})})]}),jsx(j$1,{children:":"}),jsxs(k,{children:[jsx(d,{onClick:X,children:jsx("img",{src:dl,alt:"arrow"})}),jsx(H,{value:s(l),onChange:V}),jsx(d,{onClick:Y,children:jsx("img",{src:el,alt:"arrow"})})]})]}),jsx(j,{children:O.map(e=>jsx($,{onClick:()=>{K(e);},selected:u===e,children:e},e))})]})})]})})}var ve=U;export{_ as a,ue as b,N as c,R as d,ce as e,O as f,x as g,h,U as i,ve as j};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {yc}from'./chunk-2SKLD6QR.js';import {Cj}from'./chunk-OK75VWGZ.js';import {memo,useId}from'react';import f from'@mui/material/ButtonBase';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';import {Box}from'@mui/material';var d=styled(f,{shouldForwardProp:t=>t!=="variant"&&t!=="size"&&t!=="width"&&t!=="height"})(({theme:t,variant:o="confirm",size:e="default",width:n,height:r})=>({textTransform:"capitalize",borderRadius:"4px",lineHeight:"100%",gap:"8px","&.Mui-disabled":{opacity:.5},...o==="confirm"&&{color:t.palette.common.white,background:t.palette.info.dark},...o==="cancel"&&{color:t.palette.grey[700],border:`1px solid ${t.palette.divider}`},...e==="small"&&{height:24,width:"auto",padding:"8px 16px",fontWeight:600,fontSize:"10px"},...e==="default"&&{height:32,width:75,fontWeight:700,padding:"8px 24px",fontSize:"11px"},...n!==void 0&&{width:n},...r!==void 0&&{height:r}}));function u({children:t,sx:o,...e}){let n=yc(useId(),"button");return jsx(d,{id:n,"data-testid":"Button",sx:o,...e,children:t})}u.displayName="Button";var p=memo(u);function s({...t}){return jsx(Box,{component:"button","data-testid":"PlusButton",...t,sx:{cursor:"pointer",padding:0,margin:0,background:"transparent",border:"none",width:24,height:24,...t.sx},children:jsx("img",{src:Cj,alt:"Plus Button",width:24,height:24})})}s.displayName="PlusButton";var l=memo(s);var y=l;var q=p;export{y as a,q as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-2ONCI26T.js';import {z}from'./chunk-WUPYXOEZ.js';import {yc}from'./chunk-2SKLD6QR.js';import {Rh}from'./chunk-OK75VWGZ.js';import {memo,useId}from'react';import {styled,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var a=styled(Box,{shouldForwardProp:t=>t!=="isLongLabel"})(({theme:t,isLongLabel:e})=>({display:"flex",justifyContent:"center",alignItems:"center",padding:"6px 16px",height:"32px",background:t.palette.background.gradient.shadedBlue,color:t.palette.common.white,borderRadius:"50px",fontSize:"11px",gap:t.spacing(1),minWidth:e?"12rem":"8.4rem",marginRight:"auto",position:"relative"}));function u({ids:t,visible:e,label:o,onDismiss:c,dismissible:m=true}){let d=yc(useId(),"active-filter-chip");return e?jsxs(a,{id:d,"data-testid":"ActiveFilterChip",isLongLabel:(o?.length??0)>11,children:[o?jsx(b,{children:o}):jsx("span",{children:t?.join(",")}),m&&jsx(z,{pointer:true,round:true,onClick:c,color:"active",sx:{position:"absolute",right:"8px"},children:jsx("img",{src:Rh,alt:"close",style:{width:"8px",height:"7px"}})})]}):null}var s=memo(u);var S=s;export{S as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a
|
|
1
|
+
import {a}from'./chunk-HPKLXMAE.js';import {a as a$2}from'./chunk-SSBDL6XS.js';import {a as a$1}from'./chunk-P2VRYOKF.js';import {j as j$1,f}from'./chunk-WUPYXOEZ.js';import {vb,Eb,A,Cb,Pc}from'./chunk-OK75VWGZ.js';import me,{useState,useRef,useMemo}from'react';import {Box,CircularProgress,Typography}from'@mui/material';import xe from'@mui/material/ClickAwayListener';import h from'@mui/material/Box';import le from'@mui/material/Input';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';styled(j$1)(({theme:e})=>({fontSize:"10px",color:e.v2.palette.grey[500],fontWeight:600,lineHeight:"10px"}));styled(j$1)(({theme:e})=>({fontSize:"11px",color:e.v2.palette.base.black,fontWeight:600,lineHeight:"14.3px",width:200}));styled(h)(()=>({display:"flex",flexDirection:"column",maxHeight:400,overflow:"auto",gap:"8px"}));var H=styled(le)(({theme:e})=>({width:"inherit",height:32,padding:"11px 12px",fontSize:"10px",borderRadius:"5px",backgroundColor:"#F9F9F9",border:"1px solid transparent","&.Mui-focused":{borderColor:e.palette.info.dark}}));styled(f)({padding:0,width:12,height:12,".MuiSvgIcon-root, img":{width:12,height:12}});var D=styled(h)(()=>({display:"flex",flexDirection:"column",gap:"8px",padding:"4px"})),I=styled(h)(()=>({display:"flex",gap:"8px",padding:"4px",flexWrap:"wrap",paddingInlineEnd:"20px"})),M=styled(h)(({theme:e,maxWidth:o})=>({display:"flex",padding:"4px 8px 4px 6px",alignItems:"center",gap:"4px",borderRadius:"13px",backgroundColor:`${e.palette.info.dark}1a`,fontSize:"10px",fontWeight:500,cursor:"pointer",...o&&{maxWidth:`${o}%`}}));styled(j$1)(()=>({display:"flex",gap:"8px",alignItems:"center",fontSize:"10px",fontWeight:500,color:"#000",cursor:"pointer",padding:8}));var N=styled(h)(({theme:e})=>({width:"100%",flexDirection:"column",border:`1px solid ${e.palette.grey[100]}`,borderRadius:"4px",backgroundColor:e.palette.grey[400],minWidth:"89px",position:"relative"})),z=styled(h)(()=>({position:"absolute",right:8,bottom:13.5,width:15,height:15}));var R=e=>e.length===0?true:"value"in e[0],$=(e,o,p)=>o?e.filter(r=>p.some(a=>r?.[a]?.toLowerCase().includes(o.toLowerCase()))):e,G=(e,o,p)=>e.map(r=>{let a=r?.options.map(l=>{let S=l?.options?.filter(n=>p.some(d=>n?.[d]?.toLowerCase().includes(o.toLowerCase())));return {...l,options:S}}).filter(l=>l?.options?.length>0);return {...r,options:a}}).filter(r=>r?.options?.length>0);function X({childOption:e,selectedOptions:o,onChangeOptions:p}){let[r,a$2]=useState(null),l=n=>{p([...o||[],n]);},S=n=>{p(o?.filter(d=>d.value!==n.value)||[]);};return jsxs(a,{onMouseEnter:n=>{e.options?.length>0&&a$2(n.currentTarget);},onMouseLeave:()=>{r&&a$2(null);},children:[jsxs(Box,{sx:{display:"flex",gap:"12px",justifyContent:"space-between",flexGrow:1,alignItems:"center",maxWidth:"220px",minWidth:"89px"},children:[e.label,jsx("img",{src:vb,className:"arrow-icon",alt:"arrow"})]}),jsx(a$1,{sx:{maxHeight:"450px",overflow:"auto"},open:!!r,anchorEl:r,placement:"right-start",children:e.options?.map(n=>{let w=!!o?.find(s=>s.value===n.value);return jsx(a,{isSelected:w,onClick:s=>{s.stopPropagation(),s.preventDefault(),w?S(n):l(n);},children:jsx(Box,{sx:{flex:1,maxWidth:"220px",minWidth:"89px"},children:n.label})},n.value)})})]})}function J({parentOption:e,selectedOptions:o,onChangeOptions:p}){let[r,a$2]=useState(null);return jsxs(a,{onMouseEnter:l=>{e.options?.length>0&&a$2(l.currentTarget);},onMouseLeave:()=>{r&&a$2(null);},children:[jsxs(Box,{sx:{display:"flex",gap:"12px",justifyContent:"space-between",flexGrow:1,alignItems:"center",maxWidth:"340px",minWidth:"89px"},children:[e.label,jsx("img",{src:vb,className:"arrow-icon",alt:"arrow"})]}),jsx(a$1,{sx:{maxHeight:"450px",overflow:"auto"},open:!!r,anchorEl:r,placement:"right-start",children:e.options?.map(l=>jsx(X,{childOption:l,selectedOptions:o,onChangeOptions:p},l.label))})]})}function Q({option:e,selectedOptions:o,onChangeOptions:p}){let r=o?.some(a=>a.value===e.value)??false;return jsx(a,{isSelected:r,onClick:a=>{if(a.stopPropagation(),a.preventDefault(),r){p(o?.filter(l=>l.value!==e.value)||[]);return}p([...o||[],e]);},children:jsx(Box,{sx:{flex:1,maxWidth:"220px",minWidth:"89px"},children:e.label})})}function ge({options:e,onChangeOptions:o,selectedOptions:p,placeholder:r,isLoading:a,searchBy:l=["label"],disabled:S}){let n=R(e),[d,w]=useState(null),[s,E]=useState(""),ee=useRef(null),b=!!d,te=t=>{w(b?null:t.currentTarget);},oe=()=>{w(null);},re=()=>{s&&E("");},T=useMemo(()=>{if(n)return $(e,s,l)},[n,e,s,l]),F=useMemo(()=>{if(!n)return s?G(e,s,l):e},[n,e,s,l]),ne=!!(n?T:F)?.length,ie=a?jsx(CircularProgress,{size:16}):jsx(a$2,{src:s?Eb:A,alt:s?"close":"search",onClick:re,sx:{width:12,height:12}}),f=Number(p?.length??0);return jsx(xe,{onClickAway:()=>{b&&oe();},children:jsxs(N,{id:"TriggerWrapper","data-testid":"MultiSelectWithSearch",onClick:t=>!S&&te(t),ref:ee,children:[jsx(Typography,{color:"grey",sx:{cursor:"pointer",fontSize:"10px",padding:"4px"},component:"label",children:r}),f===0&&jsx(Typography,{sx:{fontWeight:500,fontSize:"11px",padding:"0px 4px 4px"},component:"p",children:"Please Select"}),jsx(z,{component:"img",src:Cb,alt:"down arrow",sx:{...b&&{transform:"rotate(180deg)"}}}),!!f&&jsx(I,{id:"SelectedBadgesWrapper",children:f>0&&f<=2?p?.map(t=>jsxs(M,{maxWidth:90,children:[jsx(a$2,{src:Pc,alt:"blue-check",sx:{width:10,height:7.5}}),jsx("span",{children:t.label})]},t.value)):f>2&&p?.slice(0,2)?.map((t,v)=>jsxs(me.Fragment,{children:[jsxs(M,{maxWidth:90,children:[jsx(a$2,{src:Pc,alt:"blue-check",sx:{width:10,height:7.5}}),jsx("span",{children:t.label})]}),v===1&&jsx(M,{maxWidth:90,children:jsxs("span",{children:["+",f-2]})})]},t.value))}),jsx(a$1,{open:b,anchorEl:d,sx:{margin:"8px 0",maxHeight:330,overflow:"auto",maxWidth:"340px"},children:jsxs(D,{children:[jsx(H,{placeholder:r||"Select",endAdornment:ie,onClick:t=>{t.stopPropagation();},value:s,onChange:t=>{E(t.target.value);},disableUnderline:true,sx:{cursor:"default",width:"100%",backgroundColor:"white",border:"1px solid #F2F2F2",...ne&&{marginBottom:"4px"},...s&&{cursor:"pointer"}}}),jsx(I,{children:p?.map(t=>jsxs(M,{sx:{maxWidth:"150px"},onClick:v=>{v.stopPropagation(),v.preventDefault(),o(p?.filter(pe=>pe.value!==t.value)||[]);},children:[jsx(a$2,{src:Pc,alt:"blue-check",sx:{width:10,height:7.5}}),jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t.label}),jsx(a$2,{src:Eb,alt:"close",sx:{width:9,height:9}})]},t.value))}),n?T?.map(t=>jsx(Q,{option:t,selectedOptions:p,onChangeOptions:o},t.value)):F?.map(t=>jsx(J,{parentOption:t,selectedOptions:p,onChangeOptions:o},t.label))]})})]})})}var j=ge;var at=j;export{X as a,J as b,Q as c,at as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as default}from'../../_chunks/chunk-
|
|
1
|
+
export{a as default}from'../../_chunks/chunk-M4BFRDK5.js';import'../../_chunks/chunk-WUPYXOEZ.js';import'../../_chunks/chunk-2SKLD6QR.js';import'../../_chunks/chunk-FH3OCBAM.js';import'../../_chunks/chunk-OK75VWGZ.js';import'../../_chunks/chunk-4GZ7XOYY.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as ActionMenuDropDown,b as ActionMenuItem,c as default}from'../../_chunks/chunk-
|
|
1
|
+
export{a as ActionMenuDropDown,b as ActionMenuItem,c as default}from'../../_chunks/chunk-GEVH4GL4.js';import'../../_chunks/chunk-KCDAETD2.js';import'../../_chunks/chunk-MQFXJL5S.js';import'../../_chunks/chunk-WUPYXOEZ.js';import'../../_chunks/chunk-2SKLD6QR.js';import'../../_chunks/chunk-FH3OCBAM.js';import'../../_chunks/chunk-OK75VWGZ.js';import'../../_chunks/chunk-4GZ7XOYY.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as default}from'../../_chunks/chunk-
|
|
1
|
+
export{a as default}from'../../_chunks/chunk-ZMN4XS3X.js';import'../../_chunks/chunk-2ONCI26T.js';import'../../_chunks/chunk-LBOKQUV4.js';import'../../_chunks/chunk-WUPYXOEZ.js';import'../../_chunks/chunk-2SKLD6QR.js';import'../../_chunks/chunk-FH3OCBAM.js';import'../../_chunks/chunk-OK75VWGZ.js';import'../../_chunks/chunk-4GZ7XOYY.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Yc as AmountConversionFilter}from'../../_chunks/chunk-
|
|
1
|
+
export{Yc as AmountConversionFilter}from'../../_chunks/chunk-KLBED4FS.js';import'../../_chunks/chunk-ROQQHG2Q.js';import'../../_chunks/chunk-7TTCD67C.js';import'../../_chunks/chunk-EETOOCZE.js';import'../../_chunks/chunk-CGK5VR6O.js';import'../../_chunks/chunk-QFRK7YWD.js';import'../../_chunks/chunk-52PIMKF7.js';import'../../_chunks/chunk-EOUGD47S.js';import'../../_chunks/chunk-YCUQR7YB.js';import'../../_chunks/chunk-MM2QUJID.js';import'../../_chunks/chunk-QLY4Z3AM.js';import'../../_chunks/chunk-SLPI5KKB.js';import'../../_chunks/chunk-4RSJXR6H.js';import'../../_chunks/chunk-DOP2R3ZL.js';import'../../_chunks/chunk-3LZYOO6I.js';import'../../_chunks/chunk-UBX6SCSS.js';import'../../_chunks/chunk-MUJQMCOJ.js';import'../../_chunks/chunk-4UOPGO7F.js';import'../../_chunks/chunk-BT64Z2AO.js';import'../../_chunks/chunk-HKXT4DFU.js';import'../../_chunks/chunk-32AFOARI.js';import'../../_chunks/chunk-XQF255ZT.js';import'../../_chunks/chunk-NTGPXCMA.js';import'../../_chunks/chunk-EAMJDUHB.js';import'../../_chunks/chunk-GLNJS5NQ.js';import'../../_chunks/chunk-BYLC2QEP.js';import'../../_chunks/chunk-ZSUN3Q2B.js';import'../../_chunks/chunk-U7NPENUM.js';import'../../_chunks/chunk-W34T76SE.js';import'../../_chunks/chunk-5L525COT.js';import'../../_chunks/chunk-6X2PNNXJ.js';import'../../_chunks/chunk-MAZVGT6F.js';import'../../_chunks/chunk-MGOYNHUJ.js';import'../../_chunks/chunk-LT2KCIFI.js';import'../../_chunks/chunk-HHUVMRYO.js';import'../../_chunks/chunk-TOFRJSCP.js';import'../../_chunks/chunk-OEBWP7GG.js';import'../../_chunks/chunk-PHJDAOE7.js';import'../../_chunks/chunk-MT6ZEU3R.js';import'../../_chunks/chunk-KQ4NYBTL.js';import'../../_chunks/chunk-W2KPPTZL.js';import'../../_chunks/chunk-FXVHHO5E.js';import'../../_chunks/chunk-GHY4YHDZ.js';import'../../_chunks/chunk-DARANIJH.js';import'../../_chunks/chunk-IXLHIONE.js';import'../../_chunks/chunk-N76FMC7D.js';import'../../_chunks/chunk-HWAYWBX5.js';import'../../_chunks/chunk-HPKLXMAE.js';import'../../_chunks/chunk-EA5I4GJT.js';import'../../_chunks/chunk-H23XSADS.js';import'../../_chunks/chunk-Z4YLDJCQ.js';import'../../_chunks/chunk-SSBDL6XS.js';import'../../_chunks/chunk-F4NIDJ2K.js';import'../../_chunks/chunk-2YK5VZJK.js';import'../../_chunks/chunk-ONMH6VRB.js';import'../../_chunks/chunk-JB2AH23K.js';import'../../_chunks/chunk-Z7UCFDPX.js';import'../../_chunks/chunk-XHZB7V3X.js';import'../../_chunks/chunk-F2AZ34SU.js';import'../../_chunks/chunk-BQGQQ2MC.js';import'../../_chunks/chunk-6BWCSYU4.js';import'../../_chunks/chunk-LLNHJE36.js';import'../../_chunks/chunk-VILJCT25.js';import'../../_chunks/chunk-JGYEISZL.js';import'../../_chunks/chunk-ZA5UKNQY.js';import'../../_chunks/chunk-2RTUHSFA.js';import'../../_chunks/chunk-P2VRYOKF.js';import'../../_chunks/chunk-BCZZ3EML.js';import'../../_chunks/chunk-7GHEIXXM.js';import'../../_chunks/chunk-ZONDSLTR.js';import'../../_chunks/chunk-ZEF2G4DA.js';import'../../_chunks/chunk-I3MLD7Z2.js';import'../../_chunks/chunk-PJCR234I.js';import'../../_chunks/chunk-PZUZT3HM.js';import'../../_chunks/chunk-RMZ7O2SQ.js';import'../../_chunks/chunk-WSRPEYVP.js';import'../../_chunks/chunk-3DO2ZQNZ.js';import'../../_chunks/chunk-DNK72EMP.js';import'../../_chunks/chunk-QZWYJNR4.js';import'../../_chunks/chunk-LOQ3FEOU.js';import'../../_chunks/chunk-OUV6WSMS.js';import'../../_chunks/chunk-FQ2VMVUY.js';import'../../_chunks/chunk-2OCEVAZN.js';import'../../_chunks/chunk-MUR4ILTY.js';import'../../_chunks/chunk-F7GGG3HH.js';import'../../_chunks/chunk-GEVH4GL4.js';import'../../_chunks/chunk-KCDAETD2.js';import'../../_chunks/chunk-OXCLLQO3.js';import'../../_chunks/chunk-MQFXJL5S.js';import'../../_chunks/chunk-MVUZCNEQ.js';import'../../_chunks/chunk-RIJFII4O.js';import'../../_chunks/chunk-ZMN4XS3X.js';import'../../_chunks/chunk-2ONCI26T.js';import'../../_chunks/chunk-LBOKQUV4.js';import'../../_chunks/chunk-CLI4IM4O.js';import'../../_chunks/chunk-4X43KBH2.js';import'../../_chunks/chunk-6S3EAYGY.js';import'../../_chunks/chunk-EDZWCPS2.js';import'../../_chunks/chunk-M4BFRDK5.js';import'../../_chunks/chunk-WUPYXOEZ.js';import'../../_chunks/chunk-2SKLD6QR.js';import'../../_chunks/chunk-FH3OCBAM.js';import'../../_chunks/chunk-OK75VWGZ.js';import'../../_chunks/chunk-4GZ7XOYY.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Yb as default}from'../../_chunks/chunk-
|
|
1
|
+
export{Yb as default}from'../../_chunks/chunk-KLBED4FS.js';import'../../_chunks/chunk-ROQQHG2Q.js';import'../../_chunks/chunk-7TTCD67C.js';import'../../_chunks/chunk-EETOOCZE.js';import'../../_chunks/chunk-CGK5VR6O.js';import'../../_chunks/chunk-QFRK7YWD.js';import'../../_chunks/chunk-52PIMKF7.js';import'../../_chunks/chunk-EOUGD47S.js';import'../../_chunks/chunk-YCUQR7YB.js';import'../../_chunks/chunk-MM2QUJID.js';import'../../_chunks/chunk-QLY4Z3AM.js';import'../../_chunks/chunk-SLPI5KKB.js';import'../../_chunks/chunk-4RSJXR6H.js';import'../../_chunks/chunk-DOP2R3ZL.js';import'../../_chunks/chunk-3LZYOO6I.js';import'../../_chunks/chunk-UBX6SCSS.js';import'../../_chunks/chunk-MUJQMCOJ.js';import'../../_chunks/chunk-4UOPGO7F.js';import'../../_chunks/chunk-BT64Z2AO.js';import'../../_chunks/chunk-HKXT4DFU.js';import'../../_chunks/chunk-32AFOARI.js';import'../../_chunks/chunk-XQF255ZT.js';import'../../_chunks/chunk-NTGPXCMA.js';import'../../_chunks/chunk-EAMJDUHB.js';import'../../_chunks/chunk-GLNJS5NQ.js';import'../../_chunks/chunk-BYLC2QEP.js';import'../../_chunks/chunk-ZSUN3Q2B.js';import'../../_chunks/chunk-U7NPENUM.js';import'../../_chunks/chunk-W34T76SE.js';import'../../_chunks/chunk-5L525COT.js';import'../../_chunks/chunk-6X2PNNXJ.js';import'../../_chunks/chunk-MAZVGT6F.js';import'../../_chunks/chunk-MGOYNHUJ.js';import'../../_chunks/chunk-LT2KCIFI.js';import'../../_chunks/chunk-HHUVMRYO.js';import'../../_chunks/chunk-TOFRJSCP.js';import'../../_chunks/chunk-OEBWP7GG.js';import'../../_chunks/chunk-PHJDAOE7.js';import'../../_chunks/chunk-MT6ZEU3R.js';import'../../_chunks/chunk-KQ4NYBTL.js';import'../../_chunks/chunk-W2KPPTZL.js';import'../../_chunks/chunk-FXVHHO5E.js';import'../../_chunks/chunk-GHY4YHDZ.js';import'../../_chunks/chunk-DARANIJH.js';import'../../_chunks/chunk-IXLHIONE.js';import'../../_chunks/chunk-N76FMC7D.js';import'../../_chunks/chunk-HWAYWBX5.js';import'../../_chunks/chunk-HPKLXMAE.js';import'../../_chunks/chunk-EA5I4GJT.js';import'../../_chunks/chunk-H23XSADS.js';import'../../_chunks/chunk-Z4YLDJCQ.js';import'../../_chunks/chunk-SSBDL6XS.js';import'../../_chunks/chunk-F4NIDJ2K.js';import'../../_chunks/chunk-2YK5VZJK.js';import'../../_chunks/chunk-ONMH6VRB.js';import'../../_chunks/chunk-JB2AH23K.js';import'../../_chunks/chunk-Z7UCFDPX.js';import'../../_chunks/chunk-XHZB7V3X.js';import'../../_chunks/chunk-F2AZ34SU.js';import'../../_chunks/chunk-BQGQQ2MC.js';import'../../_chunks/chunk-6BWCSYU4.js';import'../../_chunks/chunk-LLNHJE36.js';import'../../_chunks/chunk-VILJCT25.js';import'../../_chunks/chunk-JGYEISZL.js';import'../../_chunks/chunk-ZA5UKNQY.js';import'../../_chunks/chunk-2RTUHSFA.js';import'../../_chunks/chunk-P2VRYOKF.js';import'../../_chunks/chunk-BCZZ3EML.js';import'../../_chunks/chunk-7GHEIXXM.js';import'../../_chunks/chunk-ZONDSLTR.js';import'../../_chunks/chunk-ZEF2G4DA.js';import'../../_chunks/chunk-I3MLD7Z2.js';import'../../_chunks/chunk-PJCR234I.js';import'../../_chunks/chunk-PZUZT3HM.js';import'../../_chunks/chunk-RMZ7O2SQ.js';import'../../_chunks/chunk-WSRPEYVP.js';import'../../_chunks/chunk-3DO2ZQNZ.js';import'../../_chunks/chunk-DNK72EMP.js';import'../../_chunks/chunk-QZWYJNR4.js';import'../../_chunks/chunk-LOQ3FEOU.js';import'../../_chunks/chunk-OUV6WSMS.js';import'../../_chunks/chunk-FQ2VMVUY.js';import'../../_chunks/chunk-2OCEVAZN.js';import'../../_chunks/chunk-MUR4ILTY.js';import'../../_chunks/chunk-F7GGG3HH.js';import'../../_chunks/chunk-GEVH4GL4.js';import'../../_chunks/chunk-KCDAETD2.js';import'../../_chunks/chunk-OXCLLQO3.js';import'../../_chunks/chunk-MQFXJL5S.js';import'../../_chunks/chunk-MVUZCNEQ.js';import'../../_chunks/chunk-RIJFII4O.js';import'../../_chunks/chunk-ZMN4XS3X.js';import'../../_chunks/chunk-2ONCI26T.js';import'../../_chunks/chunk-LBOKQUV4.js';import'../../_chunks/chunk-CLI4IM4O.js';import'../../_chunks/chunk-4X43KBH2.js';import'../../_chunks/chunk-6S3EAYGY.js';import'../../_chunks/chunk-EDZWCPS2.js';import'../../_chunks/chunk-M4BFRDK5.js';import'../../_chunks/chunk-WUPYXOEZ.js';import'../../_chunks/chunk-2SKLD6QR.js';import'../../_chunks/chunk-FH3OCBAM.js';import'../../_chunks/chunk-OK75VWGZ.js';import'../../_chunks/chunk-4GZ7XOYY.js';
|