@tap-payments/os-micro-frontend-shared 0.3.219 → 0.3.220
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/build/_chunks/{chunk-ZHEAWCTY.js → chunk-2OTSLKKQ.js} +1 -1
- package/build/_chunks/{chunk-ERL2AD3X.js → chunk-3QLFEKLL.js} +1 -1
- package/build/_chunks/{chunk-I4MFMAUT.js → chunk-4DDBUSCP.js} +1 -1
- package/build/_chunks/{chunk-3FL6JKDE.js → chunk-4QYIGMQJ.js} +1 -1
- package/build/_chunks/{chunk-MW3S7RYL.js → chunk-4VFYFG3T.js} +1 -1
- package/build/_chunks/chunk-5AWXBQ34.js +1 -0
- package/build/_chunks/{chunk-CBQF2JOF.js → chunk-5DVGPGJM.js} +1 -1
- package/build/_chunks/{chunk-O7MIU67I.js → chunk-5NOCNTU2.js} +1 -1
- package/build/_chunks/{chunk-2K7FRRCP.js → chunk-5R6QHRGT.js} +1 -1
- package/build/_chunks/{chunk-CWNJS74Z.js → chunk-5SZCA7UT.js} +1 -1
- package/build/_chunks/{chunk-F4ONOXPC.js → chunk-6F3F5KWC.js} +1 -1
- package/build/_chunks/{chunk-CJBK6DV4.js → chunk-6JTFF3VW.js} +1 -1
- package/build/_chunks/chunk-7HAWTKHS.js +1 -0
- package/build/_chunks/{chunk-OQM5HYDJ.js → chunk-A422CNWA.js} +1 -1
- package/build/_chunks/{chunk-VKHUWB7W.js → chunk-ALEWQKNK.js} +1 -1
- package/build/_chunks/{chunk-LMQIQCKU.js → chunk-ARRLK626.js} +1 -1
- package/build/_chunks/{chunk-K3VCY2Z7.js → chunk-B7FSN6KR.js} +1 -1
- package/build/_chunks/{chunk-PVE26KKA.js → chunk-BFNBCZIC.js} +1 -1
- package/build/_chunks/{chunk-WWPYJOBT.js → chunk-C746JR2U.js} +1 -1
- package/build/_chunks/{chunk-CCNYVQRG.js → chunk-CHR75VEJ.js} +1 -1
- package/build/_chunks/{chunk-U5S2TDEO.js → chunk-DAYM6H2G.js} +2 -2
- package/build/_chunks/{chunk-MXC3TARS.js → chunk-DYMRORFM.js} +1 -1
- package/build/_chunks/{chunk-TYUXEDNW.js → chunk-EKVX2K2J.js} +1 -1
- package/build/_chunks/{chunk-UQVXIIIV.js → chunk-EU7CMG3N.js} +1 -1
- package/build/_chunks/{chunk-TCP65H54.js → chunk-FCPQ7FTN.js} +1 -1
- package/build/_chunks/{chunk-3XNXNKGA.js → chunk-FUHQHDFU.js} +1 -1
- package/build/_chunks/{chunk-VSI64YFN.js → chunk-FWVZQRRW.js} +1 -1
- package/build/_chunks/{chunk-YOFP6Q2H.js → chunk-HKH2SAJZ.js} +1 -1
- package/build/_chunks/{chunk-PDRNFDWB.js → chunk-IUQKBIXU.js} +1 -1
- package/build/_chunks/{chunk-67EIV5FM.js → chunk-IVDDMAXY.js} +1 -1
- package/build/_chunks/{chunk-OQXHFUUW.js → chunk-IY2CABAN.js} +1 -1
- package/build/_chunks/{chunk-P3UNUMRE.js → chunk-JGAKV56G.js} +1 -1
- package/build/_chunks/{chunk-LNXP6W5X.js → chunk-LK227QND.js} +1 -1
- package/build/_chunks/{chunk-VRGWLZGG.js → chunk-LORKYJPD.js} +1 -1
- package/build/_chunks/{chunk-3ZQC3MDU.js → chunk-LVMXAYG4.js} +1 -1
- package/build/_chunks/{chunk-TBK5B4PF.js → chunk-MAI6ZMUP.js} +1 -1
- package/build/_chunks/{chunk-VS4GPQTT.js → chunk-MIWTFNVW.js} +1 -1
- package/build/_chunks/{chunk-SLOXJ5HL.js → chunk-MOX5HIJO.js} +1 -1
- package/build/_chunks/{chunk-57COBHS2.js → chunk-MQ5E5PIS.js} +1 -1
- package/build/_chunks/{chunk-3TO7YUM5.js → chunk-NE4LXCYK.js} +1 -1
- package/build/_chunks/{chunk-EBHPTELD.js → chunk-NMENISJ3.js} +1 -1
- package/build/_chunks/{chunk-VR7ZRZKQ.js → chunk-O3YBDJOY.js} +1 -1
- package/build/_chunks/chunk-OEI2M73L.js +1 -0
- package/build/_chunks/{chunk-EOPHF3KG.js → chunk-OKG77XSE.js} +1 -1
- package/build/_chunks/{chunk-KGJKMOL6.js → chunk-OLWGUR2Y.js} +1 -1
- package/build/_chunks/{chunk-LEGFRHUY.js → chunk-PCOJKH4L.js} +1 -1
- package/build/_chunks/{chunk-TZJUIC5Q.js → chunk-PMZQWHUD.js} +1 -1
- package/build/_chunks/chunk-PP7J7PKR.js +1 -0
- package/build/_chunks/{chunk-RJGHAJAS.js → chunk-PTLDMQUB.js} +1 -1
- package/build/_chunks/{chunk-NLUIDNSG.js → chunk-PTMPSZ4A.js} +1 -1
- package/build/_chunks/{chunk-ZZJGMJCQ.js → chunk-PWQC7GH2.js} +1 -1
- package/build/_chunks/{chunk-UL4GWIQX.js → chunk-QKHBIWGZ.js} +1 -1
- package/build/_chunks/{chunk-RRNCLEPN.js → chunk-QOBRDOX3.js} +1 -1
- package/build/_chunks/{chunk-ZQ52HZBG.js → chunk-R2LHC6Z5.js} +1 -1
- package/build/_chunks/{chunk-5CQG3WDG.js → chunk-RH5G5WEQ.js} +1 -1
- package/build/_chunks/{chunk-CC3OHCAU.js → chunk-RPSV65AM.js} +1 -1
- package/build/_chunks/{chunk-PYBAY4RD.js → chunk-RWAHMAFU.js} +1 -1
- package/build/_chunks/{chunk-4WHJ7C3Y.js → chunk-RZQR6OKW.js} +1 -1
- package/build/_chunks/{chunk-TATV6PD5.js → chunk-SDNCK73U.js} +1 -1
- package/build/_chunks/chunk-SPVVVTD2.js +2 -0
- package/build/_chunks/{chunk-RQRTDUVJ.js → chunk-TFM77CT6.js} +1 -1
- package/build/_chunks/{chunk-W6OPWYPX.js → chunk-UR23DZC6.js} +1 -1
- package/build/_chunks/{chunk-DILHFFYM.js → chunk-UWRIO72X.js} +1 -1
- package/build/_chunks/{chunk-BFNXERA5.js → chunk-V62DA4NC.js} +1 -1
- package/build/_chunks/chunk-X5ABQMQQ.js +15 -0
- package/build/_chunks/chunk-XB7FBOZY.js +1 -0
- package/build/_chunks/{chunk-5K5Q4DZF.js → chunk-XGQF6ZKW.js} +1 -1
- package/build/_chunks/{chunk-GKSTVWG7.js → chunk-XJRUEHRU.js} +1 -1
- package/build/_chunks/{chunk-TRCRPJLO.js → chunk-Y4MBLN4R.js} +1 -1
- package/build/_chunks/{chunk-XWCBQTXR.js → chunk-ZKXJ2YUK.js} +1 -1
- package/build/_chunks/{chunk-4B2QTPTE.js → chunk-ZVC3PXJB.js} +1 -1
- package/build/components/ActionsDropdownMenu/index.js +1 -1
- package/build/components/ActiveFilterChip/index.js +1 -1
- package/build/components/AmountInput/index.js +1 -1
- package/build/components/AnimatedSpinnerIcon/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/AreaChart/index.js +1 -1
- package/build/components/Autocomplete/index.js +1 -1
- package/build/components/BrandLogo/index.js +1 -1
- 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/index.js +1 -1
- package/build/components/ConfirmDialog/index.js +1 -1
- package/build/components/CountryFilter/index.js +1 -1
- package/build/components/CountryFlag/index.js +1 -1
- package/build/components/CurrencyAmount/index.js +1 -1
- package/build/components/CurrencySymbol/index.js +1 -1
- package/build/components/CustomBackdrop/index.js +1 -1
- package/build/components/Customer/index.js +1 -1
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/DeviceIcon/index.js +1 -1
- package/build/components/Discount/index.js +1 -1
- package/build/components/DisplayAmount/index.js +1 -1
- package/build/components/DropdownMenu/index.js +1 -1
- package/build/components/EmptyState/index.js +1 -1
- package/build/components/Error/index.js +1 -1
- package/build/components/ErrorToast/index.js +1 -1
- package/build/components/ExpandableSideBar/index.js +1 -1
- package/build/components/FileInputPreview/index.js +1 -1
- package/build/components/FilePreview/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/FlippingCard/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/LeftPeekRightExpandingChip/index.js +1 -1
- package/build/components/ListColumnFilter/index.js +1 -1
- package/build/components/ListHeader/index.js +1 -1
- package/build/components/ListLayout/index.js +1 -1
- package/build/components/Loader/index.js +1 -1
- package/build/components/MFWidgetLoader/index.js +1 -1
- package/build/components/MaskedText/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/NestedDropdown/index.js +1 -1
- package/build/components/NestedMultiSelect/index.js +1 -1
- package/build/components/OpenFileInNewTab/index.js +1 -1
- package/build/components/PaymentSourceFilter/index.js +1 -1
- package/build/components/PhoneFilter/index.js +1 -1
- package/build/components/PhoneInput/index.js +1 -1
- package/build/components/ProgressRing/index.js +1 -1
- package/build/components/RFH/index.js +1 -1
- package/build/components/RHFInput/index.js +1 -1
- package/build/components/RHFPhoneInput/index.js +1 -1
- package/build/components/RHFSwitch/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/ReferenceTypeFilter/index.js +1 -1
- package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
- package/build/components/SearchButton/index.js +1 -1
- package/build/components/SearchInput/index.js +1 -1
- package/build/components/SelectDropdown/index.js +1 -1
- package/build/components/SheetViewChip/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/TextInput/index.js +1 -1
- package/build/components/Timeline/index.js +1 -1
- package/build/components/Timepicker/index.js +1 -1
- package/build/components/ToggleView/index.js +1 -1
- package/build/components/Toolbar/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/WindowSideBar/index.js +1 -1
- package/build/components/index.js +1 -1
- package/build/components/primitives/index.js +1 -1
- package/build/hooks/index.js +1 -1
- package/build/index.js +1 -1
- package/build/utils/index.d.ts +0 -1
- package/build/utils/index.js +1 -1
- package/package.json +1 -1
- package/build/_chunks/chunk-3D3WKTFY.js +0 -1
- package/build/_chunks/chunk-6Z6BI3UQ.js +0 -15
- package/build/_chunks/chunk-CB7QJIZT.js +0 -1
- package/build/_chunks/chunk-JDD6SWME.js +0 -1
- package/build/_chunks/chunk-RLUMXH63.js +0 -1
- package/build/_chunks/chunk-XJU7WNPR.js +0 -2
- package/build/_chunks/chunk-ZIL2SD2V.js +0 -1
- package/build/utils/reactKeys.d.ts +0 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$2}from'./chunk-VSI64YFN.js';import {j,a as a$3}from'./chunk-NLUIDNSG.js';import {a}from'./chunk-TYUXEDNW.js';import {R,x,h}from'./chunk-U5S2TDEO.js';import {a as a$1}from'./chunk-K3VCY2Z7.js';import {mc,nc,zc,o}from'./chunk-ZHEAWCTY.js';import {Uc,Vc,Uj,Vj,Wj,dc,ec,Xj,cc}from'./chunk-M5HS3EYQ.js';import {memo,forwardRef,useState,useMemo,useRef,useId,useEffect,useCallback}from'react';import S from'@mui/material/Box';import bt from'@mui/material/Popper';import It from'dayjs';import {useTranslation}from'react-i18next';import {Calendar,DateObject}from'react-multi-date-picker';import Ko from'@mui/material/ClickAwayListener';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';import he from'@mui/material/Button';import q from'react-date-object';import ot from'react-date-object/calendars/arabic';import tt from'react-date-object/calendars/gregorian';import rt from'react-date-object/locales/arabic_ar';import nt from'react-date-object/locales/arabic_en';import it from'react-date-object/locales/gregorian_ar';import at from'react-date-object/locales/gregorian_en';var Ne=styled(S)(({theme:e})=>({color:e.palette.grey[700],fontSize:"9px",fontWeight:500,marginBottom:"6px"})),Ke=styled(S,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:o})=>({borderRadius:"4px",border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,height:32,padding:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",...o&&{border:`1px solid ${e.palette.info.dark}`,background:e.palette.common.white,boxShadow:e.shadows[7]}})),_e=styled(S)(({theme:e})=>({borderRadius:"8px",background:e.palette.common.white,boxShadow:"0px 8px 36px 0px rgba(0, 0, 0, 0.15)",textAlign:"center",color:e.palette.grey[900],fontSize:"12px",fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px",padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"12px",flexDirection:"column"})),qe=styled(S)(({theme:e})=>({width:71,padding:"4px 0",cursor:"pointer","&:hover, &.active":{borderRadius:"100px",background:e.palette.info.light}}));var Xe={day:"Day",month:"Month",quarter:"Quarter",year:"Year"};function qo({sx:e,groupBy:o,isCalenderOpen:i,onUpdate:t}){let[n,p]=useState(null),m=!!n&&i,{t:s}=useTranslation(),c=()=>{p(null);},u=d=>{p(d.currentTarget);},l=d=>{t?.(d),c();};return jsx(Ko,{onClickAway:c,children:jsxs(S,{sx:e,children:[jsx(Ne,{children:s("groupedBy")}),jsxs(Ke,{onClick:u,open:m,children:[jsx("span",{children:Xe[o]}),jsx(S,{component:"img",src:Vc,alt:"arrow",sx:{...m&&{transform:"rotate(180deg)"}}})]}),jsx(R,{open:m,anchorEl:n,children:jsx(_e,{sx:{width:n?.clientWidth},children:Object.entries(Xe).map(([d,a])=>jsx(qe,{onClick:()=>{l(d);},className:o===d?"active":"",children:a},`${d}-groupedBy`))})})]})})}var Ve=memo(qo);var eo=Ve;var oo=styled(S)(({theme:e})=>({border:"1px solid",borderColor:e.palette.divider,borderRadius:"50px",paddingInline:"6px 12px",color:e.palette.text.primary,fontSize:"11px",display:"flex",gap:"8px",alignItems:"center",justifyContent:"space-between",height:32,marginTop:"8px",img:{width:16,height:16},"& > div":{display:"flex",alignItems:"center",gap:"2px"}}));function se({isHijri:e,onCalendarModeSwitch:o}){let{t:i}=useTranslation(),t=()=>{o?.(e?"gregorian":"hijri");};return jsx(S,{children:jsxs(oo,{children:[jsxs(S,{children:[jsx("img",{src:cc,alt:"hijri"}),jsx("span",{children:i("hijri")})]}),jsx(h,{checked:e,onChange:t})]})})}var no=se;var ao=styled(he)(({theme:e})=>({cursor:"pointer",borderRadius:"50px",border:"1px solid",borderColor:e.palette.divider,background:e.palette.common.white,color:e.palette.text.primary,fontSize:"11px",fontWeight:e.typography.fontWeightRegular,paddingInline:"12px",height:32,width:"max-content",textTransform:"unset","&:hover":{boxShadow:e.shadows[7],border:"1px solid",borderColor:e.palette.info.dark}})),po=styled(S)(()=>({display:"flex",flexDirection:"column",gap:"8px"}));var J=({isHijri:e,isAr:o=false})=>e?o?rt:nt:o?it:at,X=e=>e?ot:tt,M=e=>e.setHour(0).setMinute(0).setSecond(0).setMillisecond(0),B=e=>e.setHour(23).setMinute(59).setSecond(59).setMillisecond(999),Z=e=>{if(!(e?.[0]instanceof Date)||!(e?.[1]instanceof Date)){let[o$1,i]=o();return [new q(o$1),new q(i)]}return [new q(e?.[0]),new q(e?.[1])]};function ce({onChange:e,isHijri:o,isAr:i=false}){let t={locale:J({isHijri:o,isAr:i}),calendar:X(o)},n=useMemo(()=>[{id:"today",value:[new DateObject(t),new DateObject(t)]},{id:"lastWeek",value:[new DateObject(t).subtract(6,"day"),new DateObject(t)]},{id:"lastMonth",value:[new DateObject(t).subtract(30,"day"),new DateObject(t)]},{id:new DateObject(t).subtract(1,"month").toFirstOfMonth().format("MMMM YYYY"),value:[new DateObject(t).subtract(1,"month").toFirstOfMonth(),new DateObject(t).subtract(1,"month").toLastOfMonth()]},{id:new DateObject(t).subtract(2,"month").toFirstOfMonth().format("MMMM YYYY"),value:[new DateObject(t).subtract(2,"month").toFirstOfMonth(),new DateObject(t).subtract(2,"month").toLastOfMonth()]},{id:new DateObject(t).subtract(3,"month").toFirstOfMonth().format("MMMM YYYY"),value:[new DateObject(t).subtract(3,"month").toFirstOfMonth(),new DateObject(t).subtract(3,"month").toLastOfMonth()]}],[o,i]),{t:p}=useTranslation();return jsx(S,{"data-testid":"RangeCalender_QuickFilters",children:jsx(po,{children:n.map(m=>jsx(ao,{onClick:s=>{s.preventDefault(),e(m.value);},children:p(m.id)},m.id))})})}var lo=ce;var so=styled(he)(()=>({minWidth:"auto",padding:0,"& > img":{cursor:"pointer"}}));var ft=["Su","Mo","Tu","We","Th","Fr","Sa"];function gt({isAr:e=false,isHijri:o,values:i,onChange:t,numberOfMonths:n=2,...p},m){let s=c=>c==="right"?e?dc:ec:e?ec:dc;return jsx(Calendar,{ref:m,numberOfMonths:n,value:i,onChange:t,calendar:X(o),locale:J({isHijri:o,isAr:e}),range:true,format:"MMM DD",monthYearSeparator:" ",renderButton:(c,u)=>jsx(so,{onClick:u,children:jsx("img",{src:s(c),alt:"arrow"})}),weekDays:e?void 0:ft,maxDate:new Date,...p})}var mo=forwardRef(gt);var co=mo;var uo=styled(S)(()=>({'[class$="-IndicatorsContainer2"]':{display:"none"},"#react-select-2-listbox":{width:300}})),V=styled(S)(({theme:e})=>({borderRadius:e.spacing(.5),border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,boxShadow:e.shadows[10],minWidth:200,width:"max-content",overflow:"auto"})),fo=styled(S,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:o})=>({width:156,fontSize:"11px",color:e.palette.text.primary,border:"1px solid",borderColor:e.palette.divider,minHeight:32,borderRadius:"4px",padding:e.spacing(1),whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",cursor:"pointer",display:"flex",alignItems:"center",gap:e.spacing(1),fontWeight:500,...o&&{borderRadius:"4px",boxShadow:e.shadows[7],border:"1px solid",borderColor:e.palette.info.dark,background:e.palette.common.white},span:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}})),L=styled(S)(({theme:e})=>({padding:e.spacing(1),color:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",gap:e.spacing(1),height:33,cursor:"pointer","&:hover":{boxShadow:"0px 0px 16px 0px #00000021"},"&+&":{borderTop:"1px solid",borderColor:e.palette.divider},"&.active span":{fontWeight:500},span:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}})),A=styled(S)(()=>({width:12,height:12})),F=styled(S)(({theme:e})=>({fontSize:"11px",color:e.palette.text.secondary,lineHeight:"15.03px","&.selected":{color:e.palette.info.dark}}));function ge({selectedTimezone:e,onChange:o,timezoneCountriesCodes:i,defaultCountryTimezone:t}){let[n,p]=useState(null),m=a=>{n||p(a.currentTarget);},s=()=>{n&&p(null);},c=(a,D)=>{a.stopPropagation(),o(D);},u=useMemo(()=>i?.map(a=>mc(a)),[i]),l=useMemo(()=>u?.some(a=>e?.timezone===a?.timezone),[u,e]),d=useMemo(()=>e&&l?e:t,[e,t,l]);return jsxs(L,{onMouseEnter:m,onMouseLeave:s,onClick:()=>{e&&o(d);},children:[l?jsx("img",{src:Xj,alt:"icon"}):jsx(A,{}),jsx("img",{src:Vj,alt:"entity-timezone"}),jsx(a,{countryCode:d?.countryCode}),jsx(F,{className:l?"selected":"",children:l?e?.label:t?.label}),jsx(bt,{open:!!n,anchorEl:n,placement:"right-start",sx:{zIndex:3},disablePortal:true,children:jsx(V,{sx:{maxHeight:300},children:u?.map((a$1,D)=>{let j=a$1?.timezone===e?.timezone;return jsxs(L,{onClick:te=>{c(te,a$1);},sx:{gap:"4px"},children:[j?jsx("img",{src:Xj,alt:"icon"}):jsx(A,{}),jsx(a,{countryCode:a$1?.countryCode}),jsx(F,{className:j?"selected":"",children:a$1?.label})]},`timezone-item-${D}`)})})})]})}function xe({onChange:e,selectedTimezone:o,browserTimezone:i}){let t=useMemo(()=>i?nc(i):void 0,[i]),n=()=>{t&&e(t);},p=t?.timezone===o?.timezone;return jsxs(L,{onClick:n,children:[p?jsx("img",{src:Xj,alt:"icon"}):jsx(A,{}),jsx("img",{src:Uj,alt:"user-timezone"}),jsx(a,{countryCode:t?.countryCode}),jsx(F,{className:p?"selected":"",children:t?.label})]})}function St({onChange:e,selectedTimezone:o,browserTimezone:i,defaultCountryTimezone:t,timezoneCountriesCodes:n}){let[p,m]=useState(null),s=!!p,c=()=>{m(null);},u=a=>{e(a),c();},l=a=>{m(a.currentTarget);},d=useMemo(()=>i===o?.timezone?Uj:o?.timezone===t.timezone?Vj:Wj,[i,t.timezone,o?.timezone]);return jsx(Ko,{onClickAway:c,children:jsxs(uo,{"data-testid":"CustomTimezone",children:[jsxs(fo,{open:s,onClick:l,children:[jsx("img",{src:d,alt:"timezone-icon"}),jsx(a,{countryCode:o?.countryCode}),jsx("span",{children:o?.label})]}),jsx(bt,{open:s,anchorEl:p,placement:"top-start",sx:{zIndex:1400},children:jsxs(V,{"data-testid":"CustomTimezone_dropdown",children:[jsx(ge,{onChange:u,selectedTimezone:o,defaultCountryTimezone:t,timezoneCountriesCodes:n}),jsx(xe,{onChange:u,selectedTimezone:o,browserTimezone:i})]})})]})})}var xo=memo(St);var bo=xo;var ho=styled(S,{shouldForwardProp:e=>e!=="$isSingleMonth"})(({theme:e,$isSingleMonth:o})=>({display:"flex",marginTop:"8px",background:e.palette.common.white,boxShadow:e.shadows[9],borderRadius:e.spacing(1),color:e.palette.text.primary,fontSize:"11px",".rmdp-calendar":{padding:"8px 16px 16px"},".rmdp-rtl *":{fontFamily:"Tajawal"},".rmdp-rtl .sd":{paddingTop:"4px"},".rmdp-wrapper":{position:"relative",borderRadius:"8px",boxShadow:"none",...o&&{width:"100%"}},".rmdp-day span":{fontSize:"11px",fontWeight:500},".rmdp-day, .rmdp-week-day":{width:40,height:40,marginBottom:"2px",padding:"4px",fontSize:"11px",color:e.palette.grey[900]},".rmdp-day-picker":{padding:0,...o&&{display:"block !important"}},".rmdp-day.rmdp-today span":{backgroundColor:"transparent !important",color:e.palette.info.dark},".rmdp-day.rmdp-today.end span, .rmdp-day.rmdp-today.end span":{color:e.palette.common.white},".rmdp-range, .rmdp-day:not(.rmdp-disabled):not(.rmdp-day-hidden) span:hover":{background:e.palette.info.light,boxShadow:"none",color:e.palette.grey[900]},".rmdp-range-hover.start, .rmdp-range.start, .rmdp-range-hover.end, .rmdp-range.end, .rmdp-rtl .rmdp-range-hover.start, .rmdp-rtl .rmdp-range.start, .rmdp-rtl .rmdp-range-hover.end, .rmdp-rtl .rmdp-range.end":{borderRadius:"50%",background:e.palette.background.gradient.darkShadedBlue,color:e.palette.common.white},".rmdp-range.start:after":{content:'""',position:"absolute",background:e.palette.info.light,height:"100%",width:"50%",right:0,top:0,zIndex:-1},".rmdp-rtl .rmdp-range.start:after":{right:"unset",left:0},".rmdp-range.end:after":{content:'""',position:"absolute",background:e.palette.info.light,height:"100%",width:"50%",left:0,top:0,zIndex:-1},".rmdp-rtl .rmdp-range.end:after":{left:"unset",right:0},".rmdp-week-day":{color:e.palette.grey[700],marginBottom:"4px",fontSize:"11px",padding:"4px"},".rmdp-header-values":{color:e.palette.grey[900],fontSize:"12px",fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px"},".rmdp-header-values span:nth-of-type(2)":{display:"none"},".rmdp-header":{padding:"4px 0",margin:0,fontSize:"12px"},".rmdp-top-class":{display:"block !important"},".rmdp-day.rmdp-selected span:not(.highlight)":{background:e.palette.info.dark},".rmdp-day.start.end":{overflow:"hidden"},".rmdp-day.rmdp-disabled":{color:"#ccc",cursor:"not-allowed"}})),yo=styled(he)(({theme:e})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",background:"transparent",color:e.palette.text.primary,border:"1px solid",borderColor:e.palette.divider,fontWeight:500,borderRadius:"4px","&:hover":{background:"transparent",color:e.palette.text.primary}})),wo=styled(he)(({theme:e})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",borderRadius:"4px",fontWeight:700,background:e.palette.info.dark,"&:hover":{background:e.palette.info.dark}})),Co=styled(S)(()=>({display:"flex",gap:8,marginLeft:"auto",flexShrink:0})),To=styled(he,{shouldForwardProp:e=>e!=="open"})(({open:e,theme:o})=>({color:o.palette.text.primary,fontSize:"11px",fontWeight:500,padding:o.spacing(1),borderRadius:"4px",border:"1px solid",borderColor:o.palette.divider,background:o.palette.common.white,textTransform:"none",height:32,...e&&{border:"1px solid",borderColor:o.palette.info.dark,boxShadow:o.shadows[7]}})),ko=styled(S)(({theme:e})=>({background:e.palette.common.white,display:"flex",justifyContent:"space-between",alignItems:"center",gap:10,padding:"16px",borderTop:"1px solid",borderColor:e.palette.divider,borderBottomRightRadius:"8px"})),zo=styled(S)(({theme:e})=>({padding:16,paddingInlineEnd:"23px",borderRight:"1px solid",borderColor:e.palette.divider,background:e.palette.common.white,width:"max-content",borderTopLeftRadius:"8px",borderBottomLeftRadius:"8px",display:"flex",flexDirection:"column",gap:10,justifyContent:"space-between"})),So=styled(S)(()=>({display:"flex",alignItems:"center",gap:"10px"})),vo=styled(S)(()=>({position:"relative"})),Do=styled(S)(()=>({display:"flex",flexDirection:"column",gap:"24px"}));var Mo=styled(S,{shouldForwardProp:e=>e!=="isAllDay"})(({theme:e,isAllDay:o})=>({display:"flex",alignItems:"center",gap:e.spacing(1),position:"relative",paddingInline:"5px",".label":{width:"max-content"},...!o&&{paddingRight:e.spacing(1),"&:after":{content:'""',position:"absolute",width:"1px",background:e.palette.divider,right:0,height:17}}})),Bo=styled(S)(()=>({width:235})),Eo=styled(S)(({theme:e})=>({display:"flex",gap:"4px",".rmdp-input":{width:"64px",borderRadius:"19px",border:"1px solid",borderColor:e.palette.divider,color:e.palette.text.primary,fontSize:"11px",fontWeight:500,background:"transparent",cursor:"pointer"},".rmdp-input:focus":{boxShadow:e.shadows[7],border:`1px solid ${e.palette.info.dark}`,borderRadius:"19px"},".rmdp-time-picker":{boxShadow:e.shadows[5],borderRadius:e.spacing(1),padding:e.spacing(2),minWidth:"auto !important",div:{marginTop:0,display:"block"},"> div":{width:32,height:64},".rmdp-arrow":{borderColor:`${e.palette.background.transparent[1]} !important`},".rmdp-arrow-container":{justifyContent:"center","&:hover":{backgroundColor:"transparent",boxShadow:"unset"}},input:{borderRadius:"4px",border:`1px solid ${e.palette.divider}`,padding:0,width:32,height:32,fontSize:"11px",color:e.palette.text.primary,fontWeight:500,"&:focus, &:focus-visible":{border:`1px solid ${e.palette.info.dark}`,outline:"unset"}},".dvdr":{margin:"7px 4px 0"},".rmdp-am, .rmdp-pm":{margin:0,width:32,height:32,flex:"auto",justifyContent:"center",fontSize:"11px",color:e.palette.text.primary,fontWeight:500,display:"flex",cursor:"default"},"> div:last-child":{marginInlineStart:"4px",display:"block !important"},".rmdp-down, .rmdp-up":{position:"relative",i:{display:"none"},"&:before":{content:'""',position:"absolute",top:"5px",width:"10px",height:"10px",backgroundImage:`url(${Uc})`}},".rmdp-down:before":{transform:"rotate(180deg)"}},".rmdp-container":{position:"relative","> div":{top:"unset !important",bottom:"28px",transform:"unset !important"}}})),Oo=styled(S)(({theme:e})=>({display:"flex",gap:"8px",alignItems:"center",borderRadius:"50px",border:"1px solid",borderColor:e.palette.divider,paddingInline:"5px",width:"fit-content",height:32}));function Mt({values:e,setValues:o}){let{t:i}=useTranslation(),t=new DateObject(e[0]),n=new DateObject(e[1]),[p,m]=useState(t.dayOfYear===n.dayOfYear&&t.hour===0&&t.minute===0&&n.hour===23&&n.minute===59),s=({period:l,hour:d})=>l==="PM"&&d!==12?d+12:l==="AM"&&d===12?0:d,c=({hour:l,minute:d,period:a})=>{o([t.setHour(s({hour:l,period:a})).setMinute(d).setSecond(0),n]);},u=({hour:l,minute:d,period:a})=>{o([t,n.setHour(s({hour:l,period:a})).setMinute(d).setSecond(59)]);};return jsx(Bo,{children:jsxs(Oo,{children:[jsxs(Mo,{isAllDay:p,children:[jsx("span",{className:"label",children:i("allDay")}),jsx(h,{checked:p,onChange:l=>{m(!p),l.target.checked?o([M(e[0]),B(e[1])]):o(e);}})]}),!p&&jsxs(Eo,{children:[jsx(j,{defaultTime:{hour:a$3(t.hour),minute:t.minute,period:t.hour>=12?"PM":"AM"},size:"small",onChange:c,enableRealTimeChange:true},`${e[0]?.toString()}-start`),jsx(j,{defaultTime:{hour:a$3(n.hour),minute:n.minute,period:n.hour>=12?"PM":"AM"},size:"small",onChange:u,enableRealTimeChange:true},`${e[1]?.toString()}-end`)]})]})})}var Po=Mt;var Io=Po;function At({defaultDate:e,onDateChange:o,mode:i="gregorian",onCalendarModeSwitch:t,numberOfMonths:n,noTimezone:p,noQuickFilter:m,maxDateRange:s,onCalendarGroupChange:c,groupBy:u,timezone:l,onChangeTimezone:d,browserTimezone:a,renderCalendarButton:D,mainSx:j,popperProps:te,rangeDatePickerProps:Fo,defaultCountryTimezone:Ce,timezoneCountriesCodes:Te}){let[w,ke]=useState(Z(e)),[x$1,C]=useState(w),[ze,Se]=useState(l??null),[ve,Wo]=useState(u||"day"),[De,Me]=useState(null),y=!!De,[Be,Ee]=useState(false),{t:re}=useTranslation(),P=useRef(null),Ho=zc(useId(),"range-calender"),ne=i==="hijri",Y=()=>{Me(null);},Oe=r=>{Me(r.currentTarget);};useEffect(()=>{if(!y){if(n===1)return;C(Z(e));}},[y]),useEffect(()=>{if(e){let r=Z(e);ke(r),C(r),P.current&&P.current.set("date",r[0]);}},[e]),useEffect(()=>{Se(l??null);},[l,y]);let Re=()=>{ke(x$1),Y();let r;x$1[0].dayOfYear===x$1[1].dayOfYear?r=[x$1[0],x$1[1]]:r=[M(x$1[0]),B(x$1[1])],o([r[0].toDate(),r[1].toDate()]),c?.(ve||"day"),d?.(ze);},jo=useCallback(()=>{let r=w[0].format("MMM D"),$=w[1]?w[1].format("MMM D"):w[0].format("MMM D");return r===$&&!p?r:`${r} - ${$}`},[w,p]),Yo=r=>{if(r.length<2||!s){C(r);return}let $=M(r[0]).toDate(),Qo=B(r[1]).toDate(),Pe=It(Qo).diff($,"day");if(Pe<=s){C(r);return}Ee(true),C([r[0],r[1].subtract(Pe-s,"d")]),setTimeout(()=>{Ee(false);},3e3);},$o=r=>{C([M(r[0]),B(r[1])]),P.current&&P.current.set("date",r[0]);},Go=r=>{r.key==="Enter"&&x$1[1]&&!Be?(r.stopPropagation(),Re()):r.key==="Escape"&&(r.stopPropagation(),Y());};return jsxs(vo,{id:Ho,"data-testid":"RangeCalender",sx:j,children:[D?D(y,Oe):jsx(To,{onClick:Oe,open:y,children:(w[0]||w[1])&&jo()}),y&&jsx(a$1,{onClick:r=>{r.stopPropagation(),Y();}}),jsx(bt,{open:y,anchorEl:De,placement:"bottom-end",...te,children:jsxs(ho,{onKeyDown:Go,$isSingleMonth:n===1,children:[!m&&jsxs(zo,{children:[jsx(lo,{onChange:$o,isHijri:ne}),jsxs(Do,{children:[u&&jsx(eo,{groupBy:ve,isCalenderOpen:y,onUpdate:r=>{Wo(r);}}),jsx(no,{isHijri:ne,onCalendarModeSwitch:t})]})]}),jsxs(S,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[jsx(co,{values:x$1,onChange:Yo,isHijri:ne,ref:P,numberOfMonths:n,...Fo}),jsx(x,{in:Be&&!!s,children:jsx(a$2,{error:re("dateRangeError",{number:s}),sx:{marginInline:"16px",marginBottom:"16px"}})}),jsxs(ko,{sx:{borderBottomLeftRadius:"8px"},children:[!p&&Ce&&a&&Te&&jsx(So,{children:jsx(bo,{onChange:Se,selectedTimezone:ze,browserTimezone:a,defaultCountryTimezone:Ce,timezoneCountriesCodes:Te},String(y))}),new DateObject(x$1[0]).dayOfYear===new DateObject(x$1[1]).dayOfYear&&jsx(Io,{values:x$1,setValues:C}),jsxs(Co,{children:[jsx(yo,{variant:"contained",onClick:Y,children:re("cancel")}),jsx(wo,{variant:"contained",onClick:Re,disabled:!x$1[1],children:re("okay")})]})]})]})]})})]})}var Ao=At;var bi=Ao;export{bi as a};
|
|
1
|
+
import {a as a$2}from'./chunk-FWVZQRRW.js';import {j,a as a$3}from'./chunk-PTMPSZ4A.js';import {a}from'./chunk-EKVX2K2J.js';import {R,x,h}from'./chunk-DAYM6H2G.js';import {a as a$1}from'./chunk-B7FSN6KR.js';import {mc,nc,zc,o}from'./chunk-2OTSLKKQ.js';import {Uc,Vc,Uj,Vj,Wj,dc,ec,Xj,cc}from'./chunk-M5HS3EYQ.js';import {memo,forwardRef,useState,useMemo,useRef,useId,useEffect,useCallback}from'react';import S from'@mui/material/Box';import bt from'@mui/material/Popper';import It from'dayjs';import {useTranslation}from'react-i18next';import {Calendar,DateObject}from'react-multi-date-picker';import Ko from'@mui/material/ClickAwayListener';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';import he from'@mui/material/Button';import q from'react-date-object';import ot from'react-date-object/calendars/arabic';import tt from'react-date-object/calendars/gregorian';import rt from'react-date-object/locales/arabic_ar';import nt from'react-date-object/locales/arabic_en';import it from'react-date-object/locales/gregorian_ar';import at from'react-date-object/locales/gregorian_en';var Ne=styled(S)(({theme:e})=>({color:e.palette.grey[700],fontSize:"9px",fontWeight:500,marginBottom:"6px"})),Ke=styled(S,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:o})=>({borderRadius:"4px",border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,height:32,padding:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",...o&&{border:`1px solid ${e.palette.info.dark}`,background:e.palette.common.white,boxShadow:e.shadows[7]}})),_e=styled(S)(({theme:e})=>({borderRadius:"8px",background:e.palette.common.white,boxShadow:"0px 8px 36px 0px rgba(0, 0, 0, 0.15)",textAlign:"center",color:e.palette.grey[900],fontSize:"12px",fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px",padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"12px",flexDirection:"column"})),qe=styled(S)(({theme:e})=>({width:71,padding:"4px 0",cursor:"pointer","&:hover, &.active":{borderRadius:"100px",background:e.palette.info.light}}));var Xe={day:"Day",month:"Month",quarter:"Quarter",year:"Year"};function qo({sx:e,groupBy:o,isCalenderOpen:i,onUpdate:t}){let[n,p]=useState(null),m=!!n&&i,{t:s}=useTranslation(),c=()=>{p(null);},u=d=>{p(d.currentTarget);},l=d=>{t?.(d),c();};return jsx(Ko,{onClickAway:c,children:jsxs(S,{sx:e,children:[jsx(Ne,{children:s("groupedBy")}),jsxs(Ke,{onClick:u,open:m,children:[jsx("span",{children:Xe[o]}),jsx(S,{component:"img",src:Vc,alt:"arrow",sx:{...m&&{transform:"rotate(180deg)"}}})]}),jsx(R,{open:m,anchorEl:n,children:jsx(_e,{sx:{width:n?.clientWidth},children:Object.entries(Xe).map(([d,a])=>jsx(qe,{onClick:()=>{l(d);},className:o===d?"active":"",children:a},`${d}-groupedBy`))})})]})})}var Ve=memo(qo);var eo=Ve;var oo=styled(S)(({theme:e})=>({border:"1px solid",borderColor:e.palette.divider,borderRadius:"50px",paddingInline:"6px 12px",color:e.palette.text.primary,fontSize:"11px",display:"flex",gap:"8px",alignItems:"center",justifyContent:"space-between",height:32,marginTop:"8px",img:{width:16,height:16},"& > div":{display:"flex",alignItems:"center",gap:"2px"}}));function se({isHijri:e,onCalendarModeSwitch:o}){let{t:i}=useTranslation(),t=()=>{o?.(e?"gregorian":"hijri");};return jsx(S,{children:jsxs(oo,{children:[jsxs(S,{children:[jsx("img",{src:cc,alt:"hijri"}),jsx("span",{children:i("hijri")})]}),jsx(h,{checked:e,onChange:t})]})})}var no=se;var ao=styled(he)(({theme:e})=>({cursor:"pointer",borderRadius:"50px",border:"1px solid",borderColor:e.palette.divider,background:e.palette.common.white,color:e.palette.text.primary,fontSize:"11px",fontWeight:e.typography.fontWeightRegular,paddingInline:"12px",height:32,width:"max-content",textTransform:"unset","&:hover":{boxShadow:e.shadows[7],border:"1px solid",borderColor:e.palette.info.dark}})),po=styled(S)(()=>({display:"flex",flexDirection:"column",gap:"8px"}));var J=({isHijri:e,isAr:o=false})=>e?o?rt:nt:o?it:at,X=e=>e?ot:tt,M=e=>e.setHour(0).setMinute(0).setSecond(0).setMillisecond(0),B=e=>e.setHour(23).setMinute(59).setSecond(59).setMillisecond(999),Z=e=>{if(!(e?.[0]instanceof Date)||!(e?.[1]instanceof Date)){let[o$1,i]=o();return [new q(o$1),new q(i)]}return [new q(e?.[0]),new q(e?.[1])]};function ce({onChange:e,isHijri:o,isAr:i=false}){let t={locale:J({isHijri:o,isAr:i}),calendar:X(o)},n=useMemo(()=>[{id:"today",value:[new DateObject(t),new DateObject(t)]},{id:"lastWeek",value:[new DateObject(t).subtract(6,"day"),new DateObject(t)]},{id:"lastMonth",value:[new DateObject(t).subtract(30,"day"),new DateObject(t)]},{id:new DateObject(t).subtract(1,"month").toFirstOfMonth().format("MMMM YYYY"),value:[new DateObject(t).subtract(1,"month").toFirstOfMonth(),new DateObject(t).subtract(1,"month").toLastOfMonth()]},{id:new DateObject(t).subtract(2,"month").toFirstOfMonth().format("MMMM YYYY"),value:[new DateObject(t).subtract(2,"month").toFirstOfMonth(),new DateObject(t).subtract(2,"month").toLastOfMonth()]},{id:new DateObject(t).subtract(3,"month").toFirstOfMonth().format("MMMM YYYY"),value:[new DateObject(t).subtract(3,"month").toFirstOfMonth(),new DateObject(t).subtract(3,"month").toLastOfMonth()]}],[o,i]),{t:p}=useTranslation();return jsx(S,{"data-testid":"RangeCalender_QuickFilters",children:jsx(po,{children:n.map(m=>jsx(ao,{onClick:s=>{s.preventDefault(),e(m.value);},children:p(m.id)},m.id))})})}var lo=ce;var so=styled(he)(()=>({minWidth:"auto",padding:0,"& > img":{cursor:"pointer"}}));var ft=["Su","Mo","Tu","We","Th","Fr","Sa"];function gt({isAr:e=false,isHijri:o,values:i,onChange:t,numberOfMonths:n=2,...p},m){let s=c=>c==="right"?e?dc:ec:e?ec:dc;return jsx(Calendar,{ref:m,numberOfMonths:n,value:i,onChange:t,calendar:X(o),locale:J({isHijri:o,isAr:e}),range:true,format:"MMM DD",monthYearSeparator:" ",renderButton:(c,u)=>jsx(so,{onClick:u,children:jsx("img",{src:s(c),alt:"arrow"})}),weekDays:e?void 0:ft,maxDate:new Date,...p})}var mo=forwardRef(gt);var co=mo;var uo=styled(S)(()=>({'[class$="-IndicatorsContainer2"]':{display:"none"},"#react-select-2-listbox":{width:300}})),V=styled(S)(({theme:e})=>({borderRadius:e.spacing(.5),border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,boxShadow:e.shadows[10],minWidth:200,width:"max-content",overflow:"auto"})),fo=styled(S,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:o})=>({width:156,fontSize:"11px",color:e.palette.text.primary,border:"1px solid",borderColor:e.palette.divider,minHeight:32,borderRadius:"4px",padding:e.spacing(1),whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",cursor:"pointer",display:"flex",alignItems:"center",gap:e.spacing(1),fontWeight:500,...o&&{borderRadius:"4px",boxShadow:e.shadows[7],border:"1px solid",borderColor:e.palette.info.dark,background:e.palette.common.white},span:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}})),L=styled(S)(({theme:e})=>({padding:e.spacing(1),color:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",gap:e.spacing(1),height:33,cursor:"pointer","&:hover":{boxShadow:"0px 0px 16px 0px #00000021"},"&+&":{borderTop:"1px solid",borderColor:e.palette.divider},"&.active span":{fontWeight:500},span:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}})),A=styled(S)(()=>({width:12,height:12})),F=styled(S)(({theme:e})=>({fontSize:"11px",color:e.palette.text.secondary,lineHeight:"15.03px","&.selected":{color:e.palette.info.dark}}));function ge({selectedTimezone:e,onChange:o,timezoneCountriesCodes:i,defaultCountryTimezone:t}){let[n,p]=useState(null),m=a=>{n||p(a.currentTarget);},s=()=>{n&&p(null);},c=(a,D)=>{a.stopPropagation(),o(D);},u=useMemo(()=>i?.map(a=>mc(a)),[i]),l=useMemo(()=>u?.some(a=>e?.timezone===a?.timezone),[u,e]),d=useMemo(()=>e&&l?e:t,[e,t,l]);return jsxs(L,{onMouseEnter:m,onMouseLeave:s,onClick:()=>{e&&o(d);},children:[l?jsx("img",{src:Xj,alt:"icon"}):jsx(A,{}),jsx("img",{src:Vj,alt:"entity-timezone"}),jsx(a,{countryCode:d?.countryCode}),jsx(F,{className:l?"selected":"",children:l?e?.label:t?.label}),jsx(bt,{open:!!n,anchorEl:n,placement:"right-start",sx:{zIndex:3},disablePortal:true,children:jsx(V,{sx:{maxHeight:300},children:u?.map((a$1,D)=>{let j=a$1?.timezone===e?.timezone;return jsxs(L,{onClick:te=>{c(te,a$1);},sx:{gap:"4px"},children:[j?jsx("img",{src:Xj,alt:"icon"}):jsx(A,{}),jsx(a,{countryCode:a$1?.countryCode}),jsx(F,{className:j?"selected":"",children:a$1?.label})]},`timezone-item-${D}`)})})})]})}function xe({onChange:e,selectedTimezone:o,browserTimezone:i}){let t=useMemo(()=>i?nc(i):void 0,[i]),n=()=>{t&&e(t);},p=t?.timezone===o?.timezone;return jsxs(L,{onClick:n,children:[p?jsx("img",{src:Xj,alt:"icon"}):jsx(A,{}),jsx("img",{src:Uj,alt:"user-timezone"}),jsx(a,{countryCode:t?.countryCode}),jsx(F,{className:p?"selected":"",children:t?.label})]})}function St({onChange:e,selectedTimezone:o,browserTimezone:i,defaultCountryTimezone:t,timezoneCountriesCodes:n}){let[p,m]=useState(null),s=!!p,c=()=>{m(null);},u=a=>{e(a),c();},l=a=>{m(a.currentTarget);},d=useMemo(()=>i===o?.timezone?Uj:o?.timezone===t.timezone?Vj:Wj,[i,t.timezone,o?.timezone]);return jsx(Ko,{onClickAway:c,children:jsxs(uo,{"data-testid":"CustomTimezone",children:[jsxs(fo,{open:s,onClick:l,children:[jsx("img",{src:d,alt:"timezone-icon"}),jsx(a,{countryCode:o?.countryCode}),jsx("span",{children:o?.label})]}),jsx(bt,{open:s,anchorEl:p,placement:"top-start",sx:{zIndex:1400},children:jsxs(V,{"data-testid":"CustomTimezone_dropdown",children:[jsx(ge,{onChange:u,selectedTimezone:o,defaultCountryTimezone:t,timezoneCountriesCodes:n}),jsx(xe,{onChange:u,selectedTimezone:o,browserTimezone:i})]})})]})})}var xo=memo(St);var bo=xo;var ho=styled(S,{shouldForwardProp:e=>e!=="$isSingleMonth"})(({theme:e,$isSingleMonth:o})=>({display:"flex",marginTop:"8px",background:e.palette.common.white,boxShadow:e.shadows[9],borderRadius:e.spacing(1),color:e.palette.text.primary,fontSize:"11px",".rmdp-calendar":{padding:"8px 16px 16px"},".rmdp-rtl *":{fontFamily:"Tajawal"},".rmdp-rtl .sd":{paddingTop:"4px"},".rmdp-wrapper":{position:"relative",borderRadius:"8px",boxShadow:"none",...o&&{width:"100%"}},".rmdp-day span":{fontSize:"11px",fontWeight:500},".rmdp-day, .rmdp-week-day":{width:40,height:40,marginBottom:"2px",padding:"4px",fontSize:"11px",color:e.palette.grey[900]},".rmdp-day-picker":{padding:0,...o&&{display:"block !important"}},".rmdp-day.rmdp-today span":{backgroundColor:"transparent !important",color:e.palette.info.dark},".rmdp-day.rmdp-today.end span, .rmdp-day.rmdp-today.end span":{color:e.palette.common.white},".rmdp-range, .rmdp-day:not(.rmdp-disabled):not(.rmdp-day-hidden) span:hover":{background:e.palette.info.light,boxShadow:"none",color:e.palette.grey[900]},".rmdp-range-hover.start, .rmdp-range.start, .rmdp-range-hover.end, .rmdp-range.end, .rmdp-rtl .rmdp-range-hover.start, .rmdp-rtl .rmdp-range.start, .rmdp-rtl .rmdp-range-hover.end, .rmdp-rtl .rmdp-range.end":{borderRadius:"50%",background:e.palette.background.gradient.darkShadedBlue,color:e.palette.common.white},".rmdp-range.start:after":{content:'""',position:"absolute",background:e.palette.info.light,height:"100%",width:"50%",right:0,top:0,zIndex:-1},".rmdp-rtl .rmdp-range.start:after":{right:"unset",left:0},".rmdp-range.end:after":{content:'""',position:"absolute",background:e.palette.info.light,height:"100%",width:"50%",left:0,top:0,zIndex:-1},".rmdp-rtl .rmdp-range.end:after":{left:"unset",right:0},".rmdp-week-day":{color:e.palette.grey[700],marginBottom:"4px",fontSize:"11px",padding:"4px"},".rmdp-header-values":{color:e.palette.grey[900],fontSize:"12px",fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px"},".rmdp-header-values span:nth-of-type(2)":{display:"none"},".rmdp-header":{padding:"4px 0",margin:0,fontSize:"12px"},".rmdp-top-class":{display:"block !important"},".rmdp-day.rmdp-selected span:not(.highlight)":{background:e.palette.info.dark},".rmdp-day.start.end":{overflow:"hidden"},".rmdp-day.rmdp-disabled":{color:"#ccc",cursor:"not-allowed"}})),yo=styled(he)(({theme:e})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",background:"transparent",color:e.palette.text.primary,border:"1px solid",borderColor:e.palette.divider,fontWeight:500,borderRadius:"4px","&:hover":{background:"transparent",color:e.palette.text.primary}})),wo=styled(he)(({theme:e})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",borderRadius:"4px",fontWeight:700,background:e.palette.info.dark,"&:hover":{background:e.palette.info.dark}})),Co=styled(S)(()=>({display:"flex",gap:8,marginLeft:"auto",flexShrink:0})),To=styled(he,{shouldForwardProp:e=>e!=="open"})(({open:e,theme:o})=>({color:o.palette.text.primary,fontSize:"11px",fontWeight:500,padding:o.spacing(1),borderRadius:"4px",border:"1px solid",borderColor:o.palette.divider,background:o.palette.common.white,textTransform:"none",height:32,...e&&{border:"1px solid",borderColor:o.palette.info.dark,boxShadow:o.shadows[7]}})),ko=styled(S)(({theme:e})=>({background:e.palette.common.white,display:"flex",justifyContent:"space-between",alignItems:"center",gap:10,padding:"16px",borderTop:"1px solid",borderColor:e.palette.divider,borderBottomRightRadius:"8px"})),zo=styled(S)(({theme:e})=>({padding:16,paddingInlineEnd:"23px",borderRight:"1px solid",borderColor:e.palette.divider,background:e.palette.common.white,width:"max-content",borderTopLeftRadius:"8px",borderBottomLeftRadius:"8px",display:"flex",flexDirection:"column",gap:10,justifyContent:"space-between"})),So=styled(S)(()=>({display:"flex",alignItems:"center",gap:"10px"})),vo=styled(S)(()=>({position:"relative"})),Do=styled(S)(()=>({display:"flex",flexDirection:"column",gap:"24px"}));var Mo=styled(S,{shouldForwardProp:e=>e!=="isAllDay"})(({theme:e,isAllDay:o})=>({display:"flex",alignItems:"center",gap:e.spacing(1),position:"relative",paddingInline:"5px",".label":{width:"max-content"},...!o&&{paddingRight:e.spacing(1),"&:after":{content:'""',position:"absolute",width:"1px",background:e.palette.divider,right:0,height:17}}})),Bo=styled(S)(()=>({width:235})),Eo=styled(S)(({theme:e})=>({display:"flex",gap:"4px",".rmdp-input":{width:"64px",borderRadius:"19px",border:"1px solid",borderColor:e.palette.divider,color:e.palette.text.primary,fontSize:"11px",fontWeight:500,background:"transparent",cursor:"pointer"},".rmdp-input:focus":{boxShadow:e.shadows[7],border:`1px solid ${e.palette.info.dark}`,borderRadius:"19px"},".rmdp-time-picker":{boxShadow:e.shadows[5],borderRadius:e.spacing(1),padding:e.spacing(2),minWidth:"auto !important",div:{marginTop:0,display:"block"},"> div":{width:32,height:64},".rmdp-arrow":{borderColor:`${e.palette.background.transparent[1]} !important`},".rmdp-arrow-container":{justifyContent:"center","&:hover":{backgroundColor:"transparent",boxShadow:"unset"}},input:{borderRadius:"4px",border:`1px solid ${e.palette.divider}`,padding:0,width:32,height:32,fontSize:"11px",color:e.palette.text.primary,fontWeight:500,"&:focus, &:focus-visible":{border:`1px solid ${e.palette.info.dark}`,outline:"unset"}},".dvdr":{margin:"7px 4px 0"},".rmdp-am, .rmdp-pm":{margin:0,width:32,height:32,flex:"auto",justifyContent:"center",fontSize:"11px",color:e.palette.text.primary,fontWeight:500,display:"flex",cursor:"default"},"> div:last-child":{marginInlineStart:"4px",display:"block !important"},".rmdp-down, .rmdp-up":{position:"relative",i:{display:"none"},"&:before":{content:'""',position:"absolute",top:"5px",width:"10px",height:"10px",backgroundImage:`url(${Uc})`}},".rmdp-down:before":{transform:"rotate(180deg)"}},".rmdp-container":{position:"relative","> div":{top:"unset !important",bottom:"28px",transform:"unset !important"}}})),Oo=styled(S)(({theme:e})=>({display:"flex",gap:"8px",alignItems:"center",borderRadius:"50px",border:"1px solid",borderColor:e.palette.divider,paddingInline:"5px",width:"fit-content",height:32}));function Mt({values:e,setValues:o}){let{t:i}=useTranslation(),t=new DateObject(e[0]),n=new DateObject(e[1]),[p,m]=useState(t.dayOfYear===n.dayOfYear&&t.hour===0&&t.minute===0&&n.hour===23&&n.minute===59),s=({period:l,hour:d})=>l==="PM"&&d!==12?d+12:l==="AM"&&d===12?0:d,c=({hour:l,minute:d,period:a})=>{o([t.setHour(s({hour:l,period:a})).setMinute(d).setSecond(0),n]);},u=({hour:l,minute:d,period:a})=>{o([t,n.setHour(s({hour:l,period:a})).setMinute(d).setSecond(59)]);};return jsx(Bo,{children:jsxs(Oo,{children:[jsxs(Mo,{isAllDay:p,children:[jsx("span",{className:"label",children:i("allDay")}),jsx(h,{checked:p,onChange:l=>{m(!p),l.target.checked?o([M(e[0]),B(e[1])]):o(e);}})]}),!p&&jsxs(Eo,{children:[jsx(j,{defaultTime:{hour:a$3(t.hour),minute:t.minute,period:t.hour>=12?"PM":"AM"},size:"small",onChange:c,enableRealTimeChange:true},`${e[0]?.toString()}-start`),jsx(j,{defaultTime:{hour:a$3(n.hour),minute:n.minute,period:n.hour>=12?"PM":"AM"},size:"small",onChange:u,enableRealTimeChange:true},`${e[1]?.toString()}-end`)]})]})})}var Po=Mt;var Io=Po;function At({defaultDate:e,onDateChange:o,mode:i="gregorian",onCalendarModeSwitch:t,numberOfMonths:n,noTimezone:p,noQuickFilter:m,maxDateRange:s,onCalendarGroupChange:c,groupBy:u,timezone:l,onChangeTimezone:d,browserTimezone:a,renderCalendarButton:D,mainSx:j,popperProps:te,rangeDatePickerProps:Fo,defaultCountryTimezone:Ce,timezoneCountriesCodes:Te}){let[w,ke]=useState(Z(e)),[x$1,C]=useState(w),[ze,Se]=useState(l??null),[ve,Wo]=useState(u||"day"),[De,Me]=useState(null),y=!!De,[Be,Ee]=useState(false),{t:re}=useTranslation(),P=useRef(null),Ho=zc(useId(),"range-calender"),ne=i==="hijri",Y=()=>{Me(null);},Oe=r=>{Me(r.currentTarget);};useEffect(()=>{if(!y){if(n===1)return;C(Z(e));}},[y]),useEffect(()=>{if(e){let r=Z(e);ke(r),C(r),P.current&&P.current.set("date",r[0]);}},[e]),useEffect(()=>{Se(l??null);},[l,y]);let Re=()=>{ke(x$1),Y();let r;x$1[0].dayOfYear===x$1[1].dayOfYear?r=[x$1[0],x$1[1]]:r=[M(x$1[0]),B(x$1[1])],o([r[0].toDate(),r[1].toDate()]),c?.(ve||"day"),d?.(ze);},jo=useCallback(()=>{let r=w[0].format("MMM D"),$=w[1]?w[1].format("MMM D"):w[0].format("MMM D");return r===$&&!p?r:`${r} - ${$}`},[w,p]),Yo=r=>{if(r.length<2||!s){C(r);return}let $=M(r[0]).toDate(),Qo=B(r[1]).toDate(),Pe=It(Qo).diff($,"day");if(Pe<=s){C(r);return}Ee(true),C([r[0],r[1].subtract(Pe-s,"d")]),setTimeout(()=>{Ee(false);},3e3);},$o=r=>{C([M(r[0]),B(r[1])]),P.current&&P.current.set("date",r[0]);},Go=r=>{r.key==="Enter"&&x$1[1]&&!Be?(r.stopPropagation(),Re()):r.key==="Escape"&&(r.stopPropagation(),Y());};return jsxs(vo,{id:Ho,"data-testid":"RangeCalender",sx:j,children:[D?D(y,Oe):jsx(To,{onClick:Oe,open:y,children:(w[0]||w[1])&&jo()}),y&&jsx(a$1,{onClick:r=>{r.stopPropagation(),Y();}}),jsx(bt,{open:y,anchorEl:De,placement:"bottom-end",...te,children:jsxs(ho,{onKeyDown:Go,$isSingleMonth:n===1,children:[!m&&jsxs(zo,{children:[jsx(lo,{onChange:$o,isHijri:ne}),jsxs(Do,{children:[u&&jsx(eo,{groupBy:ve,isCalenderOpen:y,onUpdate:r=>{Wo(r);}}),jsx(no,{isHijri:ne,onCalendarModeSwitch:t})]})]}),jsxs(S,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[jsx(co,{values:x$1,onChange:Yo,isHijri:ne,ref:P,numberOfMonths:n,...Fo}),jsx(x,{in:Be&&!!s,children:jsx(a$2,{error:re("dateRangeError",{number:s}),sx:{marginInline:"16px",marginBottom:"16px"}})}),jsxs(ko,{sx:{borderBottomLeftRadius:"8px"},children:[!p&&Ce&&a&&Te&&jsx(So,{children:jsx(bo,{onChange:Se,selectedTimezone:ze,browserTimezone:a,defaultCountryTimezone:Ce,timezoneCountriesCodes:Te},String(y))}),new DateObject(x$1[0]).dayOfYear===new DateObject(x$1[1]).dayOfYear&&jsx(Io,{values:x$1,setValues:C}),jsxs(Co,{children:[jsx(yo,{variant:"contained",onClick:Y,children:re("cancel")}),jsx(wo,{variant:"contained",onClick:Re,disabled:!x$1[1],children:re("okay")})]})]})]})]})})]})}var Ao=At;var bi=Ao;export{bi as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {lc,zc,bb,_b,kc,Ac,xa as xa$1}from'./chunk-ZHEAWCTY.js';import {forwardRef,memo,useId,createElement,useState,useCallback,useMemo,Children,useEffect,useRef}from'react';import pt from'@mui/material/Box';import rs,{circularProgressClasses}from'@mui/material/CircularProgress';import Ja from'@mui/material/ButtonBase';import {styled,alpha,useTheme}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import eo from'@mui/material/SvgIcon';import ds from'@mui/material/Checkbox';import cs from'@mui/material/FormControlLabel';import ys from'@mui/material/Switch';import vs from'@mui/material/Typography';import Ls from'@mui/material/Radio';import js from'@mui/material/Tooltip';import Qs from'@mui/material/Skeleton';import sn from'@mui/material/Avatar';import fn from'@mui/material/Divider';import bn from'@mui/material/Collapse';import {createPortal}from'react-dom';import zn from'@mui/material/Backdrop';import si,{SliderThumb}from'@mui/material/Slider';import Ci,{inputClasses}from'@mui/material/Input';import xi from'@mui/material/FormControl';import hi from'@mui/material/InputLabel';import $i from'@mui/material/InputBase';import Ri from'@mui/material/Accordion';import Di from'@mui/material/AccordionDetails';import Ai from'@mui/material/AccordionSummary';import Zi from'@mui/material/Popper';import _i from'@mui/material/Dialog';import qi from'@mui/material/DialogActions';import Ji from'@mui/material/DialogContent';import Qi from'@mui/material/DialogTitle';import {LazyLoadImage}from'react-lazy-load-image-component';import Pl from'@mui/material/Stack';var A="os-shared-Button",k={root:`${A}-root`,content:`${A}-content`,startIcon:`${A}-startIcon`,endIcon:`${A}-endIcon`,icon:`${A}-icon`,loading:`${A}-loading`,loadingSpinner:`${A}-loadingSpinner`},$o={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"}},Mo={sm:{width:24,minWidth:24,height:24,padding:0},md:{width:32,minWidth:32,height:32,padding:0},lg:{width:38,minWidth:38,height:38,padding:0}},Lo={sm:12,md:12,lg:14};var zo=styled(Ja,{shouldForwardProp:e=>e!=="$variant"&&e!=="$size"&&e!=="$fullWidth"&&e!=="$isLoading"&&e!=="$hasIcon"&&e!=="$isIconOnly"})(({theme:e,$variant:t="primary",$size:o="md",$fullWidth:r,$isLoading:a,$hasIcon:s,$isIconOnly:i})=>{let n=e.v2.palette,{paddingX:p,paddingY:d,...c}=$o[o],u=Mo[o];return {display:"inline-flex",alignItems:"center",justifyContent:"center",gap:e.v2.spacing(6),borderRadius:e.v2.radius(4),lineHeight:"100%",whiteSpace:"nowrap",position:"relative",cursor:a?"not-allowed":"pointer",transition:"background-color 0.15s ease, opacity 0.15s ease",...c,padding:`${e.v2.spacing(d)} ${e.v2.spacing(p)}`,fontWeight:e.typography.fontWeightMedium,...r&&!i&&{width:"100%"},...s&&!r&&!i&&{width:"auto",minWidth:0},...t==="primary"&&{background:n.brand[500],color:n.base.white,"&.Mui-disabled":{opacity:1,background:n.interactive.primary.disabled,color:n.base.white}},...t==="secondary"&&{backgroundColor:n.base.white,color:n.grey[900],border:`1px solid ${n.grey[100]}`,"&.Mui-disabled":{opacity:1,color:n.foreground.disabled}},...t==="ghost"&&{padding:0,minWidth:0,backgroundColor:"transparent",color:n.foreground.brand,"&.Mui-disabled":{opacity:.5}},...t==="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",...u}}}),se=styled("span")(({theme:e})=>{let t=e.v2.spacing(16);return {display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,width:t,height:t}});var Do=forwardRef(({children:e,variant:t="primary",size:o="md",isLoading:r=false,startIcon:a,endIcon:s,icon:i,fullWidth:n=false,disabled:p,className:d,sx:c,...u},g)=>{let f=i!=null;return jsxs(zo,{ref:g,className:lc(k.root,d),$variant:t,$size:o,$fullWidth:n,$isLoading:r,$hasIcon:f||!!a||!!s||r,$isIconOnly:f,disabled:p||r,disableRipple:true,"data-testid":"Button",sx:c,...u,children:[jsx(pt,{component:"span",className:k.content,sx:{display:"inline-flex",alignItems:"center",gap:"inherit",visibility:r?"hidden":"visible"},children:f?jsx(se,{className:k.icon,children:i}):jsxs(Fragment,{children:[a&&jsx(se,{className:k.startIcon,children:a}),e,s&&jsx(se,{className:k.endIcon,children:s})]})}),r&&jsx(se,{className:k.loading,sx:{position:"absolute"},children:jsx(rs,{className:k.loadingSpinner,size:Lo[o],color:"inherit"})})]})});Do.displayName="Button";var Ao=memo(Do);var ss="os-shared-Icon",be={root:`${ss}-root`};var Eo=styled("img")(({theme:e})=>({width:e.v2.spacing(16),height:e.v2.spacing(16),verticalAlign:"middle",flexShrink:0}));var Wo=forwardRef(({className:e,sx:t,...o},r)=>jsx(Eo,{className:lc(be.root,e),sx:t,"data-testid":"Icon",...o,ref:r}));Wo.displayName="Icon";var Ho=memo(Wo);var Qe="os-shared-Checkbox",E={root:`${Qe}-root`,control:`${Qe}-control`,label:`${Qe}-label`};var Vo=({disabled:e,...t})=>{let{v2:o}=useTheme(),{brand:r,base:a,foreground:s}=o.palette;return jsxs(eo,{viewBox:"0 0 12 12",sx:{width:12,height:12},...t,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:e?s.disabled:r[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74206C9.04243 3.9443 9.05652 4.28711 8.86537 4.50775L5.64586 8.22387C5.55146 8.33284 5.41909 8.39627 5.27942 8.39948C5.13975 8.40269 5.0049 8.3454 4.90612 8.24088L3.15002 6.38282C2.94999 6.17118 2.94999 5.82804 3.15002 5.61641C3.35004 5.40477 3.67435 5.40477 3.87437 5.61641L5.2522 7.07424L8.11024 3.77535C8.30138 3.55472 8.62538 3.53981 8.83391 3.74206Z",fill:a.white})]})},Oo=({disabled:e,...t})=>{let{v2:o}=useTheme(),{base:r,grey:a}=o.palette;return jsx(eo,{viewBox:"0 0 12 12",sx:{width:12,height:12},...t,children:jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"1.8",fill:e?a[50]:r.white,stroke:e?a[200]:a[500],strokeWidth:"1.2"})})},Zo=({disabled:e,...t})=>{let{v2:o}=useTheme(),{brand:r,base:a,foreground:s}=o.palette;return jsxs(eo,{viewBox:"0 0 12 12",sx:{width:12,height:12},...t,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:e?s.disabled:r[500]}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:a.white})]})};var Uo=styled(ds)(({theme:e})=>({padding:e.v2.spacing(2),"&:hover":{backgroundColor:"transparent"}})),Yo=styled(cs)(({theme:e})=>{let{base:t,grey:o}=e.v2.palette;return {marginLeft:0,gap:e.v2.spacing(4),"& .MuiFormControlLabel-label":{fontSize:"11px",color:t.black},"& .MuiFormControlLabel-label.Mui-disabled":{color:o[500]}}});var Go=forwardRef(({label:e,labelPlacement:t="end",disabled:o,sx:r,className:a,...s},i)=>{let n=zc(useId(),"checkbox"),p=jsx(Uo,{id:n,ref:i,disableRipple:true,disabled:o,checkedIcon:jsx(Vo,{disabled:o}),icon:jsx(Oo,{disabled:o}),indeterminateIcon:jsx(Zo,{disabled:o}),"data-testid":"Checkbox",className:lc(e?E.control:E.root,e?void 0:a),sx:e?void 0:r,...s});return e?jsx(Yo,{className:lc(E.root,a),sx:r,control:p,label:e,labelPlacement:t,disabled:o,componentsProps:{typography:{className:E.label}}}):p});Go.displayName="Checkbox";var Xo=memo(Go);var gs="os-shared-Switch",Se={root:`${gs}-root`};var _o=styled(ys)(({theme:e,disabled:t})=>{let{base:o,grey:r,success:a}=e.v2.palette;return {width:28,height:16,padding:0,borderRadius:e.v2.radius(8),opacity:t?.5:1,overflow:"visible","& .MuiSwitch-switchBase":{padding:0,margin:e.v2.spacing(1),color:o.white,transitionDuration:"300ms","&:hover":{backgroundColor:"transparent"},"&.Mui-focusVisible":{outline:`2px solid ${r[400]}`,outlineOffset:2},"&.Mui-checked":{transform:"translateX(12px)",color:o.white,"& + .MuiSwitch-track":{backgroundColor:a[500],opacity:1,border:0}},"&.Mui-disabled":{color:o.white,"& + .MuiSwitch-track":{opacity:1},"& .MuiSwitch-thumb":{filter:"none"}},"&.Mui-checked.Mui-disabled":{color:o.white}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:14,height:14,color:o.white,backgroundColor:o.white,boxShadow:"none",filter:t?"none":"drop-shadow(0px 3px 0.5px rgba(0, 0, 0, 0.04)) drop-shadow(0px 3px 4px rgba(0, 0, 0, 0.12))"},"& .MuiSwitch-track":{borderRadius:e.v2.radius(8),backgroundColor:"#D9D9D9",opacity:1,transition:e.transitions.create(["background-color"],{duration:300})}}});var qo=forwardRef(({className:e,sx:t,...o},r)=>jsx(_o,{ref:r,className:lc(Se.root,e),sx:t,"data-testid":"Switch",disableRipple:true,...o}));qo.displayName="Switch";var Jo=memo(qo);var Ss="os-shared-Typography",ve={root:`${Ss}-root`},Ne="body.default.regular";var ws=e=>e!=null&&typeof e=="object"&&"fontFamily"in e&&"fontSize"in e&&"fontWeight"in e;function ks(e,t){try{let o=t.split(".").reduce((r,a)=>{if(r==null||typeof r!="object")throw new TypeError(`Invalid typography textVariant: ${t}`);return r[a]},e);if(!ws(o))throw new TypeError(`Invalid typography textVariant: ${t}`);return o}catch(o){return console.warn(o),e.body.default.regular}}function Is(e,t,o){return t===void 0?o:typeof t=="number"?t:{light:e.fontWeightLight,regular:e.fontWeightRegular,medium:e.fontWeightMedium,semibold:e.fontWeightBold,bold:e.fontWeightBolder}[t]??o}var Qo=styled(vs,{shouldForwardProp:e=>e!=="$textVariant"&&e!=="$weight"})(({theme:e,$textVariant:t=Ne,$weight:o})=>{let{base:r}=e.v2.palette,a=ks(e.v2.typography.textVariants,t);return {color:r.black,...a,fontWeight:Is(e.v2.typography,o,a.fontWeight)}});var et=forwardRef(({textVariant:e=Ne,variant:t="subtitle2",weight:o,className:r,sx:a,...s},i)=>jsx(Qo,{ref:i,className:lc(ve.root,r),sx:a,"data-testid":"Typography",...s,variant:t,$textVariant:e,$weight:o}));et.displayName="Typography";var ot=memo(et);var $s="os-shared-RadioButton";var we={root:`${$s}-root`};var at=({disabled:e,...t})=>{let{v2:o}=useTheme(),{brand:r,base:a}=o.palette,s=e?"#BDC1CC":r[500];return jsxs(eo,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...t,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}})]})},st=({disabled:e,...t})=>{let{v2:o}=useTheme(),{base:r,grey:a}=o.palette,s=e?a[50]:r.white,i=e?a[200]:a[500];return jsx(eo,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...t,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 nt=styled(Ls)(({theme:e})=>({padding:e.v2.spacing(2),"&:hover":{backgroundColor:"transparent"},"& .MuiSvgIcon-root":{fontSize:12,width:12,height:12}}));var it=forwardRef(({disabled:e,sx:t,className:o,...r},a)=>jsx(nt,{ref:a,disableRipple:true,disabled:e,checkedIcon:jsx(at,{disabled:e}),icon:jsx(st,{disabled:e}),"data-testid":"RadioButton",className:lc(we.root,o),sx:t,...r}));it.displayName="RadioButton";var lt=memo(it);var Ie="os-shared-CircularProgress",W={root:`${Ie}-root`,progress:`${Ie}-progress`,labelOverlay:`${Ie}-labelOverlay`,labelText:`${Ie}-labelText`};var dt=styled(rs)(({theme:e})=>{let{brand:t}=e.v2.palette;return {color:"#147DC5",background:alpha(t[500],.05),borderRadius:"50%",[`& .${circularProgressClasses.circle}`]:{strokeLinecap:"round"}}}),ct=styled(pt)(()=>({position:"relative",display:"inline-flex"})),mt=styled(pt)(()=>({top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"})),ft=styled(vs)(({theme:e})=>({fontSize:e.typography.fontSize,fontWeight:e.typography.fontWeightBolder??700,color:"#3B4152"}));var ut=forwardRef(({variant:e="indeterminate",hasLabel:t=true,value:o,className:r,sx:a,...s},i)=>{let n=e==="determinate"&&t;return jsxs(ct,{className:lc(W.root,r),sx:a,"data-testid":"CircularProgress",children:[jsx(dt,{ref:i,variant:e,value:o,className:W.progress,...s}),n&&jsx(mt,{className:W.labelOverlay,children:jsx(ft,{className:W.labelText,variant:"caption",color:"text.secondary",children:`${Math.round(o??0)}%`})})]})});ut.displayName="CircularProgress";var gt=memo(ut);var H="os-shared-Tooltip",b={popper:`${H}-popper`,tooltip:`${H}-tooltip`,arrow:`${H}-arrow`,content:`${H}-content`,title:`${H}-title`,supportingText:`${H}-supportingText`,wrapper:`${H}-wrapper`};var yt=styled(({className:e,...t})=>createElement(js,{...t,classes:{popper:lc(b.popper,e),tooltip:b.tooltip,arrow:b.arrow}}))(({theme:e})=>{let{base:t,grey:o}=e.v2.palette,r=t.white,a="var(--tooltip-border-width) solid var(--tooltip-border-color)";return {"--tooltip-border-color":"#3C373721","--tooltip-border-width":"1px",zIndex:999999,[`& .${b.arrow}`]:{color:r,"&:before":{backgroundColor:r,boxSizing:"border-box",border:a}},[`& .${b.tooltip}`]:{backgroundColor:r,color:o[700],boxShadow:e.v2.elevation[200],fontSize:12,fontWeight:400,lineHeight:1.2,padding:e.v2.spacing(6),borderRadius:e.v2.radius(8),border:a,maxWidth:320,wordBreak:"break-word"}}}),xt=styled("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",gap:e.v2.spacing(6),maxWidth:296,width:"100%"})),ht=styled("div",{shouldForwardProp:e=>e!=="$hasSupportingText"})(({theme:e,$hasSupportingText:t})=>{let{grey:o}=e.v2.palette;return {margin:0,fontSize:12,fontWeight:t?600:400,lineHeight:t?1:1.2,color:t?o[700]:alpha(o[700],.77),width:t?"100%":void 0}}),Ct=styled("div")(({theme:e})=>{let{grey:t}=e.v2.palette;return {margin:0,fontSize:11,fontWeight:400,lineHeight:"normal",color:t[500],width:"100%",whiteSpace:"pre-wrap"}});function Gs(e){return e!=null&&e!==false&&e!==""}function Xs(e){return !!e||e===0}function _s(e,t){let o=Gs(t);if(!Xs(e)&&!o)return null;let r=jsx(ht,{className:b.title,$hasSupportingText:o,children:e});return o?jsxs(xt,{className:b.content,children:[r,jsx(Ct,{className:b.supportingText,children:t})]}):r}function bt({className:e,title:t,supportingText:o,placement:r="top",children:a,wrapperProps:s,sx:i,...n}){let{className:p,...d}=s??{};return jsx(yt,{className:e,title:_s(t,o),placement:r,arrow:true,sx:i,...n,children:jsx(pt,{display:"flex",alignItems:"center","data-testid":"Tooltip",className:lc(b.wrapper,p),...d,children:a})})}bt.displayName="Tooltip";var St=memo(bt);var Js="os-shared-Skeleton",$e={root:`${Js}-root`};var vt=styled(Qs)(()=>({}));var Nt=forwardRef(({className:e,sx:t,variant:o="rounded",height:r=16,...a},s)=>jsx(vt,{ref:s,className:lc($e.root,e),sx:t,"data-testid":"Skeleton",variant:o,height:r,...a}));Nt.displayName="Skeleton";var wt=memo(Nt);var an="os-shared-Avatar",Me={root:`${an}-root`},Le="xs",Fe="teal",kt={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"}},It={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 ln(e){let{from:t,to:o}=kt[e];return `linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%), linear-gradient(135deg, ${t} 0%, ${o} 100%)`}var Bt=styled(sn,{shouldForwardProp:e=>!["$size","$color"].includes(e)})(({theme:e,$size:t=Le,$color:o=Fe})=>{let{dimension:r,fontSize:a}=It[t],{base:s}=e.v2.palette,i=ln(o);return {width:r,height:r,flexShrink:0,fontSize:a,fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:s.white,background:i,backgroundColor:"transparent","&.MuiAvatar-colorDefault":{color:s.white,background:i,backgroundColor:"transparent"}}});var Tt=forwardRef(({className:e,sx:t,size:o=Le,color:r=Fe,...a},s)=>jsx(Bt,{ref:s,className:lc(Me.root,e),sx:t,"data-testid":"Avatar",...a,$size:o,$color:r,variant:"circular"}));Tt.displayName="Avatar";var Pt=memo(Tt);var mn="os-shared-Divider",ze={root:`${mn}-root`};function gn(e,t){let{grey:o,border:r}=t.v2.palette;return e==="subtle"?r.subtle:o[100]}var $t=styled(fn,{shouldForwardProp:e=>e!=="$type"})(({theme:e,$type:t="default",orientation:o="horizontal"})=>({borderColor:gn(t,e),...o==="vertical"?{borderBottomWidth:0,borderRightWidth:1}:{borderBottomWidth:1}}));var Mt=forwardRef(({className:e,sx:t,orientation:o="horizontal",type:r="default",...a},s)=>jsx($t,{ref:s,className:lc(ze.root,e),sx:t,"data-testid":"Divider",orientation:o,$type:r,...a}));Mt.displayName="Divider";var Lt=memo(Mt);var Cn="os-shared-Collapse",Re={root:`${Cn}-root`};var Ft=styled(bn)(()=>({}));var zt=forwardRef(({className:e,sx:t,children:o,unmountOnExit:r=true,timeout:a=300,...s},i)=>jsx(Ft,{ref:i,className:lc(Re.root,e),sx:t,"data-testid":"Collapse",unmountOnExit:r,timeout:a,...s,children:o}));zt.displayName="Collapse";var Rt=memo(zt);var kn="os-shared-Badge",De={root:`${kn}-root`},Ae="default",Dt={default:"#29b6f6",primary:"#1976d2",secondary:"#f50057",neutral:"#656565",gray:"#CFCFCF",orange:"#FFD503"};function Tn(e,t){let{base:o,grey:r,brand:a,success:s,warning:i,error:n,gradient:p}=t.v2.palette;if(e==="highlight")return p.brand;let d=Dt[e];return d||({inactive:r[100],active:alpha(o.black,.1),dark:a[500],red:n[500],success:s[500],warning:i[500],error:n[500]}[e]??o.white)}function Pn(e,t){let{base:o}=t.v2.palette;return e==="inactive"?o.black:(o.white)}var Et=styled("span",{shouldForwardProp:e=>!["$color","$compact","$round","$pointer"].includes(e)})(({theme:e,$color:t=Ae,$compact:o,$round:r,$pointer:a})=>{let s=Tn(t,e);return {paddingBlock:e.v2.spacing(2),paddingInline:o?"0.16056rem":r?"0.275rem":e.v2.spacing(4),borderRadius:o?e.v2.radius(4):r?e.v2.radius(16):e.v2.radius(48),background:s,color:Pn(t,e),fontSize:"8px",fontWeight:700,lineHeight:"10px",letterSpacing:0,overflow:"hidden",height:o?"12px":r?"16px":void 0,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",cursor:a?"pointer":"auto"}});var Wt=forwardRef(({className:e,sx:t,color:o,state:r,compact:a,round:s,pointer:i,children:n,...p},d)=>{let c=o??r??Ae;return jsx(Et,{ref:d,className:lc(De.root,e),sx:t,"data-testid":"Badge",...p,$color:c,$compact:a,$round:s,$pointer:i,children:n})});Wt.displayName="Badge";var Ht=memo(Wt);var Fn="os-shared-Backdrop",Ee={root:`${Fn}-root`};var Vt=styled(zn,{shouldForwardProp:e=>e!=="$hasBlur"})(({theme:e,$hasBlur:t=false})=>{let o=t?e.v2.blur[6]:"none";return {zIndex:1,backgroundColor:alpha("#000",.3),backdropFilter:o,WebkitBackdropFilter:o}});var Ot=forwardRef(({className:e,sx:t,open:o=true,hasBlur:r=false,onClose:a,onClick:s,...i},n)=>{if(!o)return null;let p=d=>{a?.(),s?.(d);};return createPortal(jsx(Vt,{open:o,$hasBlur:r,ref:n,className:lc(Ee.root,e),sx:t,"data-testid":"Backdrop",onClick:p,...i}),document.body)});Ot.displayName="Backdrop";var Zt=memo(Ot);var We="os-shared-CopyButton",M={root:`${We}-root`,icon:`${We}-icon`,copyIcon:`${We}-copyIcon`,copiedIcon:`${We}-copiedIcon`};var Ut=e=>{let{v2:t}=useTheme(),{base:o}=t.palette;return jsx(eo,{sx:{height:12.6,width:13},...e,children:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"13",viewBox:"2.67 1.67 10.66 12.66",fill:"none",children:jsx("path",{d:"M11.3333 13.6978L11.3332 13.6979C11.1002 14.0479 10.7072 14.2582 10.2863 14.2582H5.83317C4.12559 14.2582 2.7415 12.8741 2.7415 11.1665V4.71338C2.7415 4.29279 2.95172 3.89983 3.30186 3.66641L3.5915 3.47331V11.1665C3.5915 12.4046 4.59508 13.4082 5.83317 13.4082H11.5264L11.3333 13.6978ZM4.40817 3.49984C4.40817 2.53467 5.20133 1.7415 6.1665 1.7415H11.4998C12.465 1.7415 13.2582 2.53467 13.2582 3.49984V10.8332C13.2582 11.7983 12.465 12.5915 11.4998 12.5915H6.1665C5.20133 12.5915 4.40817 11.7983 4.40817 10.8332V3.49984ZM11.4998 2.5915H6.1665C5.65901 2.5915 5.25817 2.99234 5.25817 3.49984V10.8332C5.25817 11.3407 5.65901 11.7415 6.1665 11.7415H11.4998C12.0073 11.7415 12.4082 11.3407 12.4082 10.8332V3.49984C12.4082 2.99234 12.0073 2.5915 11.4998 2.5915Z",fill:o.black,stroke:o.white,strokeWidth:"0.15"})})})},Yt=e=>{let{v2:t}=useTheme(),{success:o,base:r}=t.palette;return jsx(eo,{sx:{height:12.6,width:13},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:o[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};var Xt=styled("span")({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:16,height:16,flexShrink:0,cursor:"pointer",verticalAlign:"middle"}),ao=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:"opacity 200ms ease"}));var _t=forwardRef(({className:e,sx:t,text:o,feedbackMs:r=2e3,icon:a=jsx(Ut,{}),onClick:s,...i},n)=>{let[p,d]=useState(false),c=u=>{u.stopPropagation(),bb(o),d(true),setTimeout(()=>d(false),r),s?.(u);};return jsxs(Xt,{ref:n,className:lc(M.root,e),sx:t,role:"button",tabIndex:0,"data-testid":"CopyButton",onClick:c,...i,children:[jsx(ao,{className:lc(M.icon,M.copyIcon),$visible:!p,children:a}),jsx(ao,{className:lc(M.icon,M.copiedIcon),$visible:p,children:jsx(Yt,{})})]})});_t.displayName="CopyButton";var qt=memo(_t);var so="os-shared-ProgressBar",_={root:`${so}-root`,fill:`${so}-fill`,text:`${so}-text`};var Qt=styled(pt,{shouldForwardProp:e=>!["$value","$isDecimal"].includes(e)})(({theme:e,$value:t,$isDecimal:o})=>{let{base:r}=e.v2.palette;return {width:`${t}%`,minWidth:t>=10?"28px":"24px",height:"18px",borderRadius:e.v2.radius(50),background:"linear-gradient(256deg, #147DC5 0%, #3DA6E1 100%)",display:"flex",alignItems:"center",justifyContent:t>10?"flex-end":"center",paddingInlineEnd:t>10?e.v2.spacing(2):e.v2.spacing(0),...t===0&&{background:alpha(r.black,26/255)},...o&&{minWidth:t>=10?"40px":"36px"}}}),er=styled(pt,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:t})=>{let{base:o}=e.v2.palette;return {height:"14px",maxWidth:"36px",minWidth:"20px",background:alpha(o.black,26/255),borderRadius:e.v2.radius(50),display:"flex",alignItems:"center",justifyContent:"center",padding:0,...t===0&&{background:alpha(o.black,0)}}}),or=styled(vs,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:t})=>{let{base:o,grey:r}=e.v2.palette;return {fontSize:"8px",fontWeight:e.typography.fontWeightBolder??700,color:o.white,padding:`${e.v2.spacing(2)} ${e.v2.spacing(4)}`,...t===0&&{color:alpha(r[500],.5)}}});var rr=forwardRef(({className:e,sx:t,value:o},r)=>{let a=!Number.isInteger(o);return jsx(Qt,{ref:r,className:lc(_.root,e),sx:t,"data-testid":"ProgressBar",$value:o,$isDecimal:a,children:jsx(er,{className:_.fill,$value:o,children:jsxs(or,{className:_.text,$value:o,variant:"caption",children:[Number(o.toFixed(2)),"%"]})})})});rr.displayName="ProgressBar";var ar=memo(rr);var Oe="os-shared-Chip",I={root:`${Oe}-root`,text:`${Oe}-text`,copyButton:`${Oe}-copyButton`,icon:`${Oe}-icon`},sr={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 lr=e=>{let{v2:t}=useTheme(),{base:o}=t.palette;return jsx(eo,{sx:{height:"10px"},...e,children:jsx("svg",{width:"11",height:"13",viewBox:"0 0 11 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.924805 9.5C0.924805 10.7381 1.9289 11.7412 3.16699 11.7412H8.86035L8.66699 12.0312C8.43398 12.3812 8.04094 12.5917 7.62012 12.5918H3.16699C1.45941 12.5918 0.0751953 11.2076 0.0751953 9.5V3.04688C0.0751953 2.62628 0.28561 2.23342 0.635742 2L0.924805 1.80664V9.5ZM3.5 0.0751953H8.83301C9.79807 0.0751953 10.5916 0.867985 10.5918 1.83301V9.16699C10.5916 10.132 9.79807 10.9248 8.83301 10.9248H3.5C2.53494 10.9248 1.74139 10.132 1.74121 9.16699V1.83301C1.74139 0.867985 2.53494 0.0751953 3.5 0.0751953ZM3.5 0.924805C2.99261 0.924805 2.59197 1.32567 2.5918 1.83301V9.16699C2.59197 9.67433 2.99261 10.0752 3.5 10.0752H8.83301C9.3404 10.0752 9.74104 9.67433 9.74121 9.16699V1.83301C9.74104 1.32567 9.3404 0.924805 8.83301 0.924805H3.5Z",fill:o.black,stroke:o.white,strokeWidth:"0.15"})})})},pr=e=>{let{v2:t}=useTheme(),{success:o,base:r}=t.palette;return jsx(eo,{sx:{height:"10px"},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:o[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 qn(e,t){let o=sr[e];return {height:o.height,..."width"in o&&{width:o.width,minWidth:o.width},..."padding"in o&&{padding:t.v2.spacing(o.padding)},..."paddingBlock"in o&&{paddingBlock:t.v2.spacing(o.paddingBlock)},..."paddingInline"in o&&{paddingInline:t.v2.spacing(o.paddingInline)},borderRadius:t.v2.radius(o.borderRadius)}}var cr=styled(pt,{shouldForwardProp:e=>!["$variant","$hasIcon","$hasCopy","$isSelected","$disableAnimation"].includes(e)})(({theme:e,$variant:t="text",$hasIcon:o,$hasCopy:r,$isSelected:a,$disableAnimation:s})=>{let{grey:i,base:n}=e.v2.palette;return {display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,boxSizing:"border-box",lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",fontSize:11,fontWeight:e.typography.fontWeightRegular,color:n.black,border:`1px solid ${i[100]}`,backgroundColor:n.white,...qn(t,e),...t==="text"&&o&&{gap:e.v2.spacing(6),paddingInlineStart:e.v2.spacing(5),paddingInlineEnd:e.v2.spacing(8)},...r&&{gap:e.v2.spacing(4)},[`& .${I.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"}}}}),io=styled(pt)({textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"0 1 auto"}),mr=styled("span",{shouldForwardProp:e=>e!=="$copied"})(({$copied:e})=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:12,height:12,flexShrink:0,cursor:"pointer",opacity:e?1:.6,transition:"opacity 150ms ease","&:hover":{opacity:1}})),lo=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:"opacity 150ms ease"}));var ur=forwardRef(({className:e,sx:t,children:o,icon:r,variant:a="text",disabled:s=false,isSelected:i=false,copyText:n,unknownText:p="Unknown",disableAnimation:d=false,...c},u)=>{let[g,f]=useState(false),m=!!(o&&n),h=r!=null&&!m,x=useCallback(w=>{w.stopPropagation(),n&&(bb(n),f(true),setTimeout(()=>f(false),2e3));},[n]),N=useMemo(()=>h?jsx("span",{className:I.icon,children:r}):null,[h,r]),z=useMemo(()=>{if(o){let w=m&&typeof o=="string"?_b(o):void 0;return jsx(io,{className:I.text,"data-is-arabic":w,children:o})}return h?null:jsx(io,{className:I.text,children:p})},[o,m,h,p]),R=useMemo(()=>m?jsxs(mr,{className:I.copyButton,role:"button",tabIndex:0,"aria-label":g?"copied":"copy","data-testid":"ChipCopyButton",$copied:g,onClick:x,children:[jsx(lo,{$visible:!g,children:jsx(lr,{})}),jsx(lo,{$visible:g,children:jsx(pr,{})})]}):null,[m,g,x]);return jsxs(cr,{ref:u,"data-testid":"Chip",className:lc(I.root,e,`CustomVariant_${a}`),sx:kc(s?{cursor:"not-allowed",opacity:.5}:{},t),$variant:a,$hasIcon:h,$hasCopy:m,$isSelected:i,$disableAnimation:d,...c,children:[N,z,R]})});ur.displayName="Chip";var gr=memo(ur);var co="os-shared-Slider",L={root:`${co}-root`,thumb:`${co}-thumb`,thumbIcon:`${co}-thumbIcon`};var yr=e=>{let{v2:t}=useTheme(),{grey:o}=t.palette;return jsx(eo,{sx:{width:"5px",height:"8px",pointerEvents:"none"},...e,children:jsxs("svg",{width:"5",height:"8",viewBox:"0 0 5 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M0.459961 0.460449L0.459961 6.59897",stroke:o[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M2.44531 0.460388L2.44531 6.59891",stroke:o[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M4.4375 0.460388L4.4375 6.59891",stroke:o[500],strokeWidth:"0.920779",strokeLinecap:"round"})]})})};var xr=styled(si)(({theme:e})=>{let{brand:t,base:o}=e.v2.palette,r=["0px 0px 1.25px 0px rgba(0, 0, 0, 0.1)","0px 1.25px 1.25px 0px rgba(0, 0, 0, 0.09)","0px 3.75px 2.5px 0px rgba(0, 0, 0, 0.05)","0px 7.5px 2.5px 0px rgba(0, 0, 0, 0.01)","0px 11.25px 3.75px 0px rgba(0, 0, 0, 0)"].join(", ");return {color:t[500],height:8,padding:0,"& .MuiSlider-rail":{backgroundColor:"#CFCFCF",opacity:1,left:0},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:o.white,border:"none",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:r,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:r}},[`& .${L.thumbIcon}`]:{width:"5px",height:"8px",pointerEvents:"none"}}});function ci({children:e,className:t,...o}){return jsxs(SliderThumb,{className:lc(L.thumb,t),...o,children:[e,jsx(yr,{className:L.thumbIcon})]})}var hr=forwardRef(({className:e,sx:t,value:o,min:r,max:a,step:s,disabled:i,onChange:n,slots:p,...d},c)=>{let u=useCallback((g,f)=>{n(f);},[n]);return jsx(xr,{ref:c,className:lc(L.root,e),sx:t,"data-testid":"Slider",value:o,min:r,max:a,step:s,disabled:i,onChange:u,...d,slots:{thumb:ci,...p}})});hr.displayName="Slider";var Cr=memo(hr);var v="os-shared-Input",y={root:`${v}-root`,label:`${v}-label`,input:`${v}-input`,loadingIcon:`${v}-loadingIcon`,validatedIcon:`${v}-validatedIcon`,hasLabel:`${v}-hasLabel`,sizeSm:`${v}-sizeSm`,sizeMd:`${v}-sizeMd`,disableFocusRing:`${v}-disableFocusRing`,hideArrows:`${v}-hideArrows`,hasTrailingIcon:`${v}-hasTrailingIcon`},T={sm:28,md:32,labelled:40};var vr=e=>{let{v2:t}=useTheme(),{success:o}=t.palette;return jsx(eo,{viewBox:"0 0 10 8",sx:{width:10,height:8},...e,children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:o[700]})})};var Nr=styled(Ci)(({theme:e,endAdornment:t})=>{let{base:o,grey:r}=e.v2.palette,a=!!t;return {height:T.md,padding:`0 ${e.v2.spacing(6)}`,paddingLeft:e.v2.spacing(8),...!a&&{paddingRight:e.v2.spacing(12)},border:"none",borderRadius:"inherit",fontSize:"11px",lineHeight:"1.3em",fontWeight:e.v2.typography.fontWeightMedium,color:o.black,backgroundColor:"transparent",display:"flex",alignItems:"center",minWidth:0,"&.Mui-disabled":{color:alpha(o.black,.6)},"& input":{padding:0,minWidth:0,width:"100%",display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& input::placeholder":{color:r[500],fontWeight:e.v2.typography.fontWeightRegular,opacity:1},"& input:-webkit-autofill, & input:-webkit-autofill:hover, & input:-webkit-autofill:focus":{WebkitTextFillColor:o.black,caretColor:o.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},[`&:where(.${y.sizeSm})`]:{height:T.sm},[`&:where(.${y.sizeMd})`]:{height:T.md},[`&:where(.${y.hasTrailingIcon})`]:{paddingRight:e.v2.spacing(28)},[`&:where(.${y.hasLabel})`]:{height:T.labelled,padding:e.v2.spacing(6),paddingLeft:e.v2.spacing(8),paddingTop:e.v2.spacing(18),alignItems:"stretch",marginTop:0,"& input":{margin:"0px !important",padding:"0px !important",lineHeight:"130%"},"& input:focus::placeholder":{opacity:"1 !important"}},[`&:where(.${y.hideArrows})`]:{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}}}),wr=styled(hi)(({theme:e})=>{let{grey:t}=e.v2.palette;return {fontSize:"10px",lineHeight:"1em",color:`${t[500]} !important`,"&.Mui-disabled":{opacity:.7}}}),kr=styled(rs)(({theme:e})=>({position:"absolute",top:"30%",right:e.v2.spacing(8),color:e.v2.palette.grey[500]})),Ir=styled(pt)(({theme:e})=>({position:"absolute",top:"50%",right:e.v2.spacing(8),transform:"translateY(-50%)",display:"flex",alignItems:"center",justifyContent:"center"})),bi=`&:focus-within:where(:not(.${y.disableFocusRing})), &:where(.Mui-focused):where(:not(.${y.disableFocusRing}))`,Si="&:where(.Mui-warning):focus-within, &:where(.Mui-warning):where(.Mui-focused)",vi="&:where(.Mui-error):focus-within, &:where(.Mui-error):where(.Mui-focused)",Br=styled(xi)(({theme:e,disabled:t,fullWidth:o})=>{let{grey:r,base:a,brand:s,error:i,warning:n}=e.v2.palette;return {position:"relative",display:"flex",flexDirection:"column",width:o?"100%":"auto",height:T.md,margin:0,border:`1px solid ${t?"#FAFBFB":r[100]}`,borderRadius:e.v2.radius(4),...t&&{backgroundColor:"#FAFBFB"},transition:"border-color 0.15s ease, box-shadow 0.15s ease",[`&:where(.${y.sizeSm})`]:{height:T.sm},[`&:where(.${y.sizeMd})`]:{height:T.md},[`&:where(.${y.hasLabel})`]:{height:T.labelled},"&:where(.Mui-warning)":{borderColor:alpha(n[500],.15)},"&:where(.Mui-error)":{borderColor:alpha(i[500],.15)},"&:where(.Mui-disabled)":{borderColor:"#FAFBFB"},[bi]:{borderColor:s[500],boxShadow:`0px 0px 4px 0px ${alpha(s[500],.5)}`},[Si]:{borderColor:alpha(n[500],.15),boxShadow:"none"},[vi]:{borderColor:alpha(i[500],.15),boxShadow:"none"},"& .MuiFormLabel-asterisk":{color:i[500],fontSize:"10px",lineHeight:"1em",marginLeft:2},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:e.v2.spacing(8),fontSize:"10px",fontWeight:e.v2.typography.fontWeightMedium,lineHeight:"100%",transform:"translate(0, 6px) scale(1) !important",transformOrigin:"top left"},"& .MuiInputLabel-root.MuiInputLabel-shrink, & .MuiInputLabel-root.MuiFormLabel-filled, & .MuiInputLabel-root.Mui-focused":{transform:"translate(0, -2px) scale(0.95) !important",color:`${r[500]} !important`},"& .MuiInput-root":{flex:1,marginTop:"0 !important"}}});var Pr=forwardRef(({label:e,size:t="md",error:o=false,warning:r=false,disabled:a=false,fullWidth:s=false,placeholder:i,hideArrows:n=false,required:p,loading:d=false,validated:c=false,disableFocusRing:u=false,focused:g,type:f,id:m="Input",className:h,sx:x,value:N,defaultValue:z,onChange:R,endAdornment:w,onKeyDown:ye,onWheel:xe,...qe},D)=>{let $=!!e,Je=f==="number",ae=$&&d&&!a,wo=c&&!d&&!a,ko=ae||wo,he=t==="sm"?y.sizeSm:y.sizeMd,Ka=useCallback(C=>{typeof D=="function"?D(C):D&&(D.current=C);},[D]),Ua=useMemo(()=>lc(y.root,o&&"Mui-error",r&&"Mui-warning",a&&"Mui-disabled",$&&y.hasLabel,he,u&&y.disableFocusRing,g&&inputClasses.focused,h),[o,r,a,$,he,u,g,h]),Ya=useMemo(()=>lc(y.input,$&&y.hasLabel,he,n&&y.hideArrows,ko&&y.hasTrailingIcon),[$,he,n,ko]),Ga=C=>{let _a=C.metaKey||C.ctrlKey||C.altKey,qa=C.key.length===1;(["e","E","+","-"].includes(C.key)||xa$1()&&qa&&!_a&&!/^[0-9.]$/.test(C.key))&&C.preventDefault(),ye?.(C);},Xa=C=>{C.target instanceof HTMLElement&&C.target.blur(),xe?.(C);};return jsxs(Br,{className:Ua,sx:x,error:o,disabled:a,fullWidth:s,required:p,"data-testid":"Input",focused:g||void 0,children:[$&&jsx(wr,{className:y.label,htmlFor:m??void 0,required:p,shrink:g||void 0,children:e}),jsx(Nr,{id:m??void 0,inputRef:Ka,className:Ya,type:f,error:o,disabled:a,required:p,placeholder:i??void 0,"aria-invalid":o||void 0,disableUnderline:true,fullWidth:true,value:N,defaultValue:z,onChange:R,endAdornment:w,onKeyDown:Je?Ga:ye,onWheel:Je?Xa:xe,...qe}),ae&&jsx(kr,{className:y.loadingIcon,id:m?`${m}-loading-icon`:void 0,size:14.7,thickness:5}),wo&&jsx(Ir,{className:y.validatedIcon,id:m?`${m}-validated-icon`:void 0,children:jsx(vr,{})})]})});Pr.displayName="Input";var $r=memo(Pr);var mo="os-shared-Textarea",Q={root:`${mo}-root`,label:`${mo}-label`,textarea:`${mo}-textarea`},ee=3;var Mr=styled($i,{shouldForwardProp:e=>!["$error","$hasLabel","$minRows"].includes(e)})(({theme:e,$hasLabel:t=false,$minRows:o=ee})=>{let{base:r,grey:a}=e.v2.palette;return {border:"none",borderRadius:"inherit",padding:t?`${e.v2.spacing(32)} ${e.v2.spacing(8)} ${e.v2.spacing(8)}`:`${e.v2.spacing(8)} ${e.v2.spacing(12)}`,fontSize:"11px",fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:r.black,backgroundColor:"transparent",alignItems:"flex-start",width:"100%",...t&&{marginTop:0},"&.Mui-disabled":{color:a[500]},"& textarea":{resize:"vertical",minHeight:t?void 0:`${Math.max(o*20,60)}px`,padding:0,margin:0},"& textarea::placeholder":{color:a[500],fontWeight:e.typography.fontWeightMedium,opacity:1},"& textarea:-webkit-autofill, & textarea:-webkit-autofill:hover, & textarea:-webkit-autofill:focus":{WebkitTextFillColor:r.black,caretColor:r.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"}}}),Lr=styled(hi)(({theme:e})=>{let{grey:t}=e.v2.palette;return {fontSize:"10px",fontWeight:e.typography.fontWeightMedium,color:`${t[500]} !important`}}),Fr=styled(xi,{shouldForwardProp:e=>!["$hasLabel","$minRows"].includes(e)})(({theme:e,disabled:t,error:o,fullWidth:r,$hasLabel:a=false,$minRows:s=ee})=>{let{grey:i,base:n,error:p}=e.v2.palette,d=o?p[500]:i[100];return {position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",minHeight:a?96+(s-ee)*20:void 0,margin:0,border:`1px solid ${d}`,borderRadius:e.v2.radius(4),backgroundColor:t?i[100]:n.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:o?p[500]:i[50]},"& .MuiFormLabel-asterisk":{color:p[500]},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",display:"flex",alignItems:"flex-start",gap:e.v2.spacing(2),padding:e.v2.spacing(8),fontSize:"10px",fontWeight:e.typography.fontWeightMedium,lineHeight:"100%",transform:"none !important",transformOrigin:"top left",color:`${i[500]} !important`},"& .MuiInputBase-root":{flex:1,marginTop:"0 !important"}}});var Rr=forwardRef(({label:e,error:t=false,disabled:o=false,fullWidth:r=false,placeholder:a,minRows:s=ee,maxRows:i,id:n,className:p,sx:d,required:c,...u},g)=>{let f=!!e;return jsxs(Fr,{className:lc(Q.root,p),sx:d,error:t,disabled:o,fullWidth:r,required:c,variant:"standard","data-testid":"Textarea",$hasLabel:f,$minRows:s,children:[f&&jsx(Lr,{className:Q.label,htmlFor:n,shrink:true,disableAnimation:true,required:c,children:e}),jsx(Mr,{id:n,inputRef:g,className:Q.textarea,multiline:true,minRows:s,maxRows:i,disabled:o,required:c,placeholder:a??void 0,"aria-invalid":t||void 0,fullWidth:true,$error:t,$hasLabel:f,$minRows:s,...u})]})});Rr.displayName="Textarea";var Dr=memo(Rr);var O="os-shared-Accordion",B={root:`${O}-root`,summary:`${O}-summary`,content:`${O}-content`,labelStartAdornment:`${O}-labelStartAdornment`,labelContent:`${O}-labelContent`,labelEndAdornment:`${O}-labelEndAdornment`,expandIcon:`${O}-expandIcon`};var Er=()=>{let{v2:e}=useTheme(),{base:t}=e.palette;return jsx("svg",{width:"9",height:"5",viewBox:"0 0 9 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.0501709 0.427246C0.0493864 0.478467 0.0592757 0.529176 0.0784912 0.57666C0.0976579 0.623937 0.125505 0.667471 0.161499 0.703613L3.82556 4.47803C3.86116 4.51465 3.90353 4.54403 3.95056 4.56396C3.99773 4.58391 4.04876 4.59422 4.09998 4.59424C4.15123 4.59424 4.20218 4.58392 4.24939 4.56396C4.29655 4.54401 4.33969 4.51476 4.37537 4.47803L8.03845 0.703613C8.07407 0.667816 8.10232 0.625348 8.12146 0.578613C8.14069 0.531638 8.15017 0.480932 8.14978 0.430176C8.14935 0.379519 8.13942 0.329298 8.11951 0.282715C8.09956 0.236042 8.06999 0.19405 8.03357 0.158691C7.99716 0.123349 7.95384 0.0952198 7.90662 0.0766602C7.8595 0.0582058 7.80878 0.0491929 7.75818 0.050293C7.70763 0.0514427 7.65792 0.0629948 7.61169 0.0834961C7.56537 0.104067 7.52346 0.13358 7.48865 0.17041L4.09998 3.65967L0.711304 0.17041C0.65912 0.115154 0.592066 0.0759001 0.517944 0.059082C0.443585 0.0422622 0.365385 0.0481013 0.294312 0.0756836C0.22324 0.103266 0.162075 0.15178 0.11853 0.214355C0.0750125 0.276905 0.05135 0.351058 0.0501709 0.427246Z",fill:t.black,stroke:t.black,strokeWidth:"0.1"})})};var Hr=styled(Ri)(({theme:e,square:t})=>{let{grey:o,base:r}=e.v2.palette;return {overflow:"hidden",border:`1px solid ${o[100]}`,...!t&&{borderRadius:e.v2.radius(8)},margin:0,background:r.white,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0},"&.Mui-disabled":{opacity:.5,pointerEvents:"none"}}}),Vr=styled(Ai)(({theme:e})=>({background:"#fbfbfb",minHeight:"40px",height:"40px",padding:e.v2.spacing(10),"&.Mui-expanded":{minHeight:"40px",height:"40px"},"& .MuiAccordionSummary-content":{margin:0,display:"flex",flexDirection:"row",alignItems:"center",flexGrow:1,minWidth:0,gap:e.v2.spacing(10)},"& .MuiAccordionSummary-expandIconWrapper":{marginLeft:e.v2.spacing(8)}})),Or=styled(Di)(({theme:e})=>{let{grey:t}=e.v2.palette;return {padding:0,borderTop:`1px solid ${t[100]}`}}),Zr=styled(pt)({display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:"rotate(0deg)"}),jr=styled(pt)({minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"});var Yr=forwardRef(({expanded:e,defaultExpanded:t=false,onChange:o,label:r,content:a,labelStartAdornment:s,labelEndAdornment:i,slotProps:n={},disabled:p=false,expandIcon:d,className:c,sx:u,...g},f)=>{let m=e!==void 0,[h,x]=useState(t),N=m?e:h,z=(Je,ae)=>{m||x(ae),o?.(ae);},{showArrow:R=true,...w}=n.label??{},{className:ye,sx:xe,...qe}=n.root??{},D=d??(R?jsx(Zr,{component:"span",className:B.expandIcon,children:jsx(Er,{})}):null),$=jsxs(Fragment,{children:[s!=null&&jsx(pt,{component:"span",className:B.labelStartAdornment,...n.labelStartAdornment,sx:kc({flexShrink:0},n.labelStartAdornment?.sx),children:s}),jsx(jr,{component:"span",className:B.labelContent,...n.labelContent,sx:n.labelContent?.sx,children:r}),i!=null&&jsx(pt,{component:"span",className:B.labelEndAdornment,...n.labelEndAdornment,sx:kc({flexShrink:0,marginLeft:"auto"},n.labelEndAdornment?.sx),children:i})]});return jsxs(Hr,{ref:f,"data-testid":"Accordion",disabled:p,expanded:N,onChange:z,className:lc(B.root,c,ye),sx:kc(u??{},xe),...qe,...g,children:[jsx(Vr,{className:B.summary,expandIcon:D,"aria-expanded":N,...w,children:$}),jsx(Or,{className:B.content,...n.content,children:a})]})});Yr.displayName="Accordion";var Gr=memo(Yr);var Xr="os-shared-Menu",de={popper:`${Xr}-popper`,panel:`${Xr}-panel`};var qr=styled(Zi)({}),Jr=styled(pt,{shouldForwardProp:e=>e!=="$showShadow"})(({theme:e,$showShadow:t})=>{let{grey:o,base:r}=e.v2.palette;return {borderRadius:e.v2.radius(4),background:r.white,width:"max-content",cursor:"pointer",boxShadow:e.v2.elevation[200],display:"flex",flexDirection:"column",overflowY:"auto",maxHeight:"432px","&:focus":{outline:"none"},".menu-item + .menu-item":{borderTop:`1px solid ${o[100]}`},"&::after":{content:t?'""':"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 ea=forwardRef(({open:e,anchorEl:t,children:o,placement:r,popperSx:a,panelProps:s,className:i,sx:n,...p},d)=>{let[c,u]=useState(false),f=useMemo(()=>Children.count(o),[o])>12&&c,{onScroll:m,className:h,sx:x,...N}=s??{},z=useCallback(w=>{u((w.currentTarget.scrollTop??0)>0),m?.(w);},[m]),R=lc(de.panel,h,"MuiPopper-dropdown");return jsx(qr,{ref:d,className:lc(de.popper,i),"data-testid":"Menu",open:e,anchorEl:t,placement:r??"bottom-start",sx:a,...p,children:jsx(Jr,{$showShadow:f,onScroll:z,className:R,sx:kc(n??{},x),...N,children:o})})});ea.displayName="Menu";var oa=memo(ea);var ce="os-shared-Dialog",F={root:`${ce}-root`,title:`${ce}-title`,divider:`${ce}-divider`,content:`${ce}-content`,actions:`${ce}-actions`};var ta=styled(_i,{shouldForwardProp:e=>e!=="$hasBlurBackdrop"})(({theme:e,$hasBlurBackdrop:t})=>{let{base:o}=e.v2.palette,r=t?e.v2.blur[6]:"none";return {"& .MuiDialog-paper":{backgroundColor:o.white,boxShadow:"0px 0px 16px 0px rgba(0, 0, 0, 0.11)",borderRadius:e.v2.radius(8)},"& .MuiModal-backdrop":{background:alpha("#000",.2),...t&&{backdropFilter:r,WebkitBackdropFilter:r}}}}),ra=styled(Qi)(({theme:e})=>{let{base:t}=e.v2.palette;return {padding:`${e.v2.spacing(16)} ${e.v2.spacing(16)} ${e.v2.spacing(12)}`,fontSize:"13px",fontWeight:e.typography.fontWeightBolder,lineHeight:"normal",color:t.black,whiteSpace:"nowrap"}}),aa=styled("hr")(({theme:e})=>{let{grey:t}=e.v2.palette;return {display:"block",border:"none",borderTop:`1px solid ${t[100]}`,margin:0,width:"100%",flexShrink:0}}),sa=styled(Ji,{shouldForwardProp:e=>e!=="$hasHeading"})(({theme:e,$hasHeading:t})=>{let{grey:o}=e.v2.palette;return {padding:`${t?e.v2.spacing(12):e.v2.spacing(16)} ${e.v2.spacing(16)} ${e.v2.spacing(16)}`,fontSize:"12px",fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:o[500]}}),na=styled(qi)(({theme:e})=>({padding:`0 ${e.v2.spacing(16)} ${e.v2.spacing(16)}`,gap:e.v2.spacing(8),justifyContent:"flex-end","& > :not(style) ~ :not(style)":{marginLeft:0}}));var la=forwardRef(({heading:e,actions:t,children:o,onClose:r,open:a,hasBlurBackdrop:s,className:i,sx:n,...p},d)=>jsxs(ta,{ref:d,"data-testid":"Dialog",open:a,onClose:r,$hasBlurBackdrop:s,className:lc(F.root,i),sx:n,...p,children:[e?jsxs(Fragment,{children:[jsx(ra,{className:F.title,children:e}),jsx(aa,{"aria-hidden":true,className:F.divider})]}):null,o!=null?jsx(sa,{className:F.content,$hasHeading:!!e,children:o}):null,t?jsx(na,{className:F.actions,children:t}):null]}));la.displayName="Dialog";var pa=memo(la);var uo="os-shared-MenuItem",j={root:`${uo}-root`,indicator:`${uo}-indicator`,disabled:`${uo}-disabled`},K={unchecked:"unchecked",checked:"checked",indeterminate:"indeterminate"};var ca=()=>{let{v2:e}=useTheme(),{brand:t,base:o}=e.palette;return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:t[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:o.white})]})},ma=()=>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"})}),fa=()=>{let{v2:e}=useTheme(),{brand:t}=e.palette;return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"2.4",fill:t[500],stroke:t[500],strokeWidth:"1.2"}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:"#FAFBFB"})]})};var ya=styled(pt,{shouldForwardProp:e=>e!=="$isDisabled"})(({theme:e,$isDisabled:t=false})=>{let{base:o}=e.v2.palette;return {padding:e.v2.spacing(8),position:"relative",display:"flex",alignItems:"center",gap:e.v2.spacing(8),textTransform:"capitalize",cursor:t?"not-allowed":"pointer",flex:1,fontSize:e.typography.subtitle1.fontSize,opacity:t?.5:1,color:o.black}}),go=styled("span")({width:14,height:14,flexShrink:0,pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center","& svg":{display:"block"}});function il(e,t){return t?K.indeterminate:e?K.checked:K.unchecked}var ll={[K.unchecked]:ma,[K.checked]:ca,[K.indeterminate]:fa};function pl(e,t,o){if(e===null)return null;if(e!==void 0)return jsx(go,{className:j.indicator,"aria-hidden":true,children:e});let r=il(t,o),a=ll[r];return jsx(go,{className:j.indicator,"aria-hidden":true,children:jsx(a,{})})}var xa=forwardRef(({isSelected:e=false,isDisabled:t=false,isIndeterminate:o=false,startAdornment:r,onClick:a,children:s,className:i,sx:n,...p},d)=>{let c=lc(j.root,"menu-item",t&&j.disabled,i);return jsxs(ya,{ref:d,"data-testid":"MenuItem",className:c,sx:n,onClick:t?void 0:a,$isDisabled:t,...p,children:[pl(r,e,o),s]})});xa.displayName="MenuItem";var ha=memo(xa);var Ca="os-shared-ToggleButtons",fe={root:`${Ca}-root`,button:`${Ca}-button`},xo={sm:"sm",md:"md"},ue=xo.sm,ho={sm:{buttonHeight:20,minWidth:20,fontSize:8,containerRadius:3,iconSlot:11},md:{buttonHeight:28,minWidth:28,fontSize:11,containerRadius:4,iconSlot:14}};function cl(e,t){let{palette:o,elevation:r}=e.v2;return t?{backgroundColor:o.background.primary,boxShadow:r[100],color:o.foreground.primary}:{backgroundColor:"transparent",boxShadow:"none",color:o.foreground.secondary}}var va=styled(pt,{shouldForwardProp:e=>e!=="$size"})(({theme:e,$size:t=ue})=>{let o=ho[t];return {backgroundColor:e.v2.palette.background.secondary,display:"inline-flex",alignItems:"center",padding:e.v2.spacing(2),borderRadius:e.v2.radius(o.containerRadius)}}),Na=styled(pt,{shouldForwardProp:e=>e!=="$isActive"&&e!=="$size"})(({theme:e,$isActive:t=false,$size:o=ue})=>{let r=ho[o];return {boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,height:r.buttonHeight,width:"auto",minWidth:r.minWidth,borderRadius:e.v2.radius(2),fontSize:r.fontSize,fontWeight:e.typography.fontWeightMedium,lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",cursor:"pointer",transition:"background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease",...cl(e,t),"& img, & svg":{width:r.iconSlot,height:r.iconSlot,display:"block"}}});function ka({options:e,activeKey:t,onChange:o,size:r=ue,containerProps:a,buttonProps:s,id:i,className:n,sx:p},d){let{className:c,sx:u,...g}=a??{},f=lc(fe.root,n,c);return jsx(va,{ref:d,id:i,"data-testid":"ToggleButtons",className:f,$size:r,sx:kc(p??{},u),...g,children:e.map(m=>jsx(Na,{className:fe.button,$isActive:t===m.key,$size:r,onClick:()=>o(m.key),...s,children:m.content},m.key))})}var ul=forwardRef(ka);ka.displayName="ToggleButtons";var Ia=memo(ul);var gl="os-shared-LazyImage",Ue={root:`${gl}-root`},Ye={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 Ba=styled(pt)({display:"inline-flex",justifyContent:"center",alignItems:"center"});function Ge(e){return e!=null&&e in Ye}var Nl=LazyLoadImage,Pa=forwardRef(({effect:e,wrapperProps:t,id:o,className:r,sx:a,placeholderSrc:s,...i},n)=>{let[p,d]=useState(Ge(e));if(useEffect(()=>{if(!Ge(e)){d(false);return}d(true),Ye[e]().finally(()=>{d(false);});},[e]),p)return null;let{className:c,sx:u,style:g,...f}=t??{},m=Ge(e)||!!s||g!=null;return jsx(Ba,{component:"span",...f,className:lc(Ue.root,c??r),sx:u!=null?kc(a??{},u):a,children:jsx(Nl,{...i,ref:n,effect:e,placeholderSrc:s,id:o,"data-testid":"LazyImage",wrapperProps:m?{style:{display:"flex",justifyContent:"center",alignItems:"center",...g}}:void 0})})});Pa.displayName="LazyImage";var $a=memo(Pa);var Co="os-shared-FieldFeedback",te={root:`${Co}-root`,icon:`${Co}-icon`,message:`${Co}-message`};var Ma=({severity:e="error",...t})=>{let o=useTheme(),{warning:r,error:a}=o.v2.palette,s=e==="warning"?r[500]:a[500];return jsx(eo,{sx:{width:12,height:12},...t,children:jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M6 12C9.30838 12 12 9.30838 12 6C12 2.69162 9.30838 -2.35309e-07 6 -5.24537e-07C2.69162 -8.13764e-07 8.13764e-07 2.69162 5.24537e-07 6C2.35309e-07 9.30838 2.69162 12 6 12ZM6 11.1C3.17801 11.1 0.9 8.82198 0.9 6C0.9 3.17802 3.17802 0.899999 6 0.899999C8.82199 0.899999 11.1 3.17802 11.1 6C11.1 8.82198 8.82198 11.1 6 11.1ZM6 9C6.15913 9 6.31174 8.93679 6.42426 8.82426C6.53679 8.71174 6.6 8.55913 6.6 8.4C6.6 8.24087 6.53679 8.08826 6.42426 7.97574C6.31174 7.86321 6.15913 7.8 6 7.8C5.84087 7.8 5.68826 7.86321 5.57574 7.97574C5.46321 8.08826 5.4 8.24087 5.4 8.4C5.4 8.55913 5.46321 8.71174 5.57574 8.82426C5.68826 8.93679 5.84087 9 6 9ZM6.00703 6.90644C6.12628 6.90458 6.23991 6.85546 6.32296 6.76988C6.40602 6.6843 6.45171 6.56925 6.45 6.45L6.45 3.15C6.45084 3.09037 6.43983 3.03116 6.41759 2.97583C6.39535 2.92049 6.36234 2.87013 6.32047 2.82766C6.2786 2.7852 6.22871 2.75148 6.17369 2.72846C6.11868 2.70544 6.05964 2.69359 6 2.69359C5.94036 2.69359 5.88132 2.70544 5.82631 2.72846C5.77129 2.75148 5.7214 2.7852 5.67953 2.82766C5.63766 2.87013 5.60465 2.92049 5.58241 2.97583C5.56017 3.03116 5.54916 3.09037 5.55 3.15L5.55 6.45C5.54914 6.51023 5.56037 6.57002 5.58304 6.62583C5.60571 6.68163 5.63935 6.73232 5.68197 6.77489C5.72459 6.81745 5.77533 6.85103 5.83116 6.87363C5.887 6.89623 5.9468 6.90739 6.00703 6.90644Z",fill:s})})})},La=e=>{let{v2:t}=useTheme(),{success:o}=t.palette;return jsx(eo,{sx:{width:12,height:12},...e,children:jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:o[700]})})})},Fa=e=>{let{v2:t}=useTheme(),{base:o}=t.palette;return jsx(eo,{sx:{width:12,height:12},...e,children:jsx("svg",{width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M6 7.5V5.5M6 3.5H6.005M11 5.5C11 8.26142 8.76142 10.5 6 10.5C3.23858 10.5 1 8.26142 1 5.5C1 2.73858 3.23858 0.5 6 0.5C8.76142 0.5 11 2.73858 11 5.5Z",stroke:o.black,strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})})})};function Xe(e,t){let o=t??"error",{brand:r,success:a,error:s,status:i}=e.v2.palette;switch(o){case "warning":return {borderColor:i.warning.subtle,backgroundColor:i.warning.subtle,textColor:i.warning.default};case "success":return {borderColor:alpha(a[700],.15),backgroundColor:alpha(a[700],.15),textColor:a[700]};case "info":return {borderColor:alpha(r[500],.12),backgroundColor:alpha(r[500],.12),textColor:r[500]};case "error":return {borderColor:alpha(s[500],.15),backgroundColor:alpha(s[500],.15),textColor:s[500]};default:return o}}var za=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:t})=>{let{backgroundColor:o,textColor:r}=Xe(e,t);return {display:"flex",alignItems:"flex-start",gap:e.v2.spacing(4),minHeight:"32px",padding:`${e.v2.spacing(8)} ${e.v2.spacing(12)}`,background:o,color:r,borderRadius:`0 0 ${e.v2.radius(4)} ${e.v2.radius(4)}`}}),Ra=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:t})=>{let{textColor:o}=Xe(e,t);return {fontSize:"10px",lineHeight:"16px",display:"block",color:o,wordBreak:"break-word"}}),Da=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 Il(e){switch(e){case "success":return jsx(La,{});case "info":return jsx(Fa,{});case "error":case "warning":return jsx(Ma,{severity:e})}}var Aa=forwardRef(({type:e="error",message:t,icon:o,className:r,sx:a},s)=>{if(!Ac(t))return null;let i=e;return jsxs(za,{ref:s,"data-testid":"FieldFeedback",className:lc(te.root,r),sx:a,$feedbackType:i,children:[o??jsx(Da,{className:te.icon,children:Il(i)}),jsx(Ra,{className:te.message,$feedbackType:i,children:t})]})});Aa.displayName="FieldFeedback";var Ea=memo(Aa);var Tl="os-shared-ScrollLoader",_e={root:`${Tl}-root`};var Wa=styled(Pl)({overflow:"auto",height:"100%",maxHeight:"100%"});function No(e,t=50){return e.scrollHeight-(e.scrollTop+e.clientHeight)<=t}var Za=forwardRef(({loadMoreItems:e,hasMore:t,isLoading:o=false,isFetchingNextPage:r,children:a,className:s,sx:i,id:n,...p},d)=>{let[c,u]=useState(false),g=useRef(e),f=useRef(null);g.current=e;let m=useCallback(()=>{t&&!r&&g.current();},[t,r]),h=useCallback(()=>{let x=f.current;x&&No(x)&&m();},[m]);return useEffect(()=>{let x=f.current;if(x)return x.addEventListener("scroll",h),()=>x.removeEventListener("scroll",h)},[h]),useEffect(()=>{let x=f.current;if(!x||o||c)return;let N=window.setTimeout(()=>{u(true),No(x)&&m();},1e3);return ()=>window.clearTimeout(N)},[o,m,c]),jsx(Wa,{ref:x=>{f.current=x,typeof d=="function"?d(x):d&&(d.current=x);},id:n,"data-testid":"ScrollLoader",className:lc(_e.root,s),sx:i,...p,children:a})});Za.displayName="ScrollLoader";var ja=memo(Za);
|
|
2
|
-
export{te as $,Ee as A,Zt as B,M as C,qt as D,_ as E,ar as F,I as G,
|
|
1
|
+
import {lc,zc,bb,_b,kc,Ac,xa as xa$1}from'./chunk-2OTSLKKQ.js';import {forwardRef,memo,useId,createElement,useState,useCallback,useMemo,Children,useEffect,useRef}from'react';import pt from'@mui/material/Box';import rs,{circularProgressClasses}from'@mui/material/CircularProgress';import Ja from'@mui/material/ButtonBase';import {styled,alpha,useTheme}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import eo from'@mui/material/SvgIcon';import ds from'@mui/material/Checkbox';import cs from'@mui/material/FormControlLabel';import gs from'@mui/material/Switch';import vs from'@mui/material/Typography';import Ls from'@mui/material/Radio';import js from'@mui/material/Tooltip';import Qs from'@mui/material/Skeleton';import sn from'@mui/material/Avatar';import fn from'@mui/material/Divider';import bn from'@mui/material/Collapse';import {createPortal}from'react-dom';import zn from'@mui/material/Backdrop';import si,{SliderThumb}from'@mui/material/Slider';import Ci,{inputClasses}from'@mui/material/Input';import xi from'@mui/material/FormControl';import hi from'@mui/material/InputLabel';import $i from'@mui/material/InputBase';import Ri from'@mui/material/Accordion';import Di from'@mui/material/AccordionDetails';import Ai from'@mui/material/AccordionSummary';import Zi from'@mui/material/Popper';import _i from'@mui/material/Dialog';import qi from'@mui/material/DialogActions';import Ji from'@mui/material/DialogContent';import Qi from'@mui/material/DialogTitle';import {LazyLoadImage}from'react-lazy-load-image-component';import Pl from'@mui/material/Stack';var A="os-shared-Button",k={root:`${A}-root`,content:`${A}-content`,startIcon:`${A}-startIcon`,endIcon:`${A}-endIcon`,icon:`${A}-icon`,loading:`${A}-loading`,loadingSpinner:`${A}-loadingSpinner`},$o={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"}},Mo={sm:{width:24,minWidth:24,height:24,padding:0},md:{width:32,minWidth:32,height:32,padding:0},lg:{width:38,minWidth:38,height:38,padding:0}},Lo={sm:12,md:12,lg:14};var zo=styled(Ja,{shouldForwardProp:e=>e!=="$variant"&&e!=="$size"&&e!=="$fullWidth"&&e!=="$isLoading"&&e!=="$hasIcon"&&e!=="$isIconOnly"})(({theme:e,$variant:t="primary",$size:o="md",$fullWidth:r,$isLoading:a,$hasIcon:s,$isIconOnly:i})=>{let n=e.v2.palette,{paddingX:p,paddingY:d,...c}=$o[o],u=Mo[o];return {display:"inline-flex",alignItems:"center",justifyContent:"center",gap:e.v2.spacing(6),borderRadius:e.v2.radius(4),lineHeight:"100%",whiteSpace:"nowrap",position:"relative",cursor:a?"not-allowed":"pointer",transition:"background-color 0.15s ease, opacity 0.15s ease",...c,padding:`${e.v2.spacing(d)} ${e.v2.spacing(p)}`,fontWeight:e.typography.fontWeightMedium,...r&&!i&&{width:"100%"},...s&&!r&&!i&&{width:"auto",minWidth:0},...t==="primary"&&{background:n.brand[500],color:n.base.white,"&.Mui-disabled":{opacity:1,background:n.interactive.primary.disabled,color:n.base.white}},...t==="secondary"&&{backgroundColor:n.base.white,color:n.grey[900],border:`1px solid ${n.grey[100]}`,"&.Mui-disabled":{opacity:1,color:n.foreground.disabled}},...t==="ghost"&&{padding:0,minWidth:0,backgroundColor:"transparent",color:n.foreground.brand,"&.Mui-disabled":{opacity:.5}},...t==="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",...u}}}),se=styled("span")(({theme:e})=>{let t=e.v2.spacing(16);return {display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,width:t,height:t}});var Do=forwardRef(({children:e,variant:t="primary",size:o="md",isLoading:r=false,startIcon:a,endIcon:s,icon:i,fullWidth:n=false,disabled:p,className:d,sx:c,...u},y)=>{let f=i!=null;return jsxs(zo,{ref:y,className:lc(k.root,d),$variant:t,$size:o,$fullWidth:n,$isLoading:r,$hasIcon:f||!!a||!!s||r,$isIconOnly:f,disabled:p||r,disableRipple:true,"data-testid":"Button",sx:c,...u,children:[jsx(pt,{component:"span",className:k.content,sx:{display:"inline-flex",alignItems:"center",gap:"inherit",visibility:r?"hidden":"visible"},children:f?jsx(se,{className:k.icon,children:i}):jsxs(Fragment,{children:[a&&jsx(se,{className:k.startIcon,children:a}),e,s&&jsx(se,{className:k.endIcon,children:s})]})}),r&&jsx(se,{className:k.loading,sx:{position:"absolute"},children:jsx(rs,{className:k.loadingSpinner,size:Lo[o],color:"inherit"})})]})});Do.displayName="Button";var Ao=memo(Do);var ss="os-shared-Icon",be={root:`${ss}-root`};var Eo=styled("img")(({theme:e})=>({width:e.v2.spacing(16),height:e.v2.spacing(16),verticalAlign:"middle",flexShrink:0}));var Wo=forwardRef(({className:e,sx:t,...o},r)=>jsx(Eo,{className:lc(be.root,e),sx:t,"data-testid":"Icon",...o,ref:r}));Wo.displayName="Icon";var Ho=memo(Wo);var Qe="os-shared-Checkbox",E={root:`${Qe}-root`,control:`${Qe}-control`,label:`${Qe}-label`};var Vo=({disabled:e,...t})=>{let{v2:o}=useTheme(),{brand:r,base:a,foreground:s}=o.palette;return jsxs(eo,{viewBox:"0 0 12 12",sx:{width:12,height:12},...t,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:e?s.disabled:r[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74206C9.04243 3.9443 9.05652 4.28711 8.86537 4.50775L5.64586 8.22387C5.55146 8.33284 5.41909 8.39627 5.27942 8.39948C5.13975 8.40269 5.0049 8.3454 4.90612 8.24088L3.15002 6.38282C2.94999 6.17118 2.94999 5.82804 3.15002 5.61641C3.35004 5.40477 3.67435 5.40477 3.87437 5.61641L5.2522 7.07424L8.11024 3.77535C8.30138 3.55472 8.62538 3.53981 8.83391 3.74206Z",fill:a.white})]})},Oo=({disabled:e,...t})=>{let{v2:o}=useTheme(),{base:r,grey:a}=o.palette;return jsx(eo,{viewBox:"0 0 12 12",sx:{width:12,height:12},...t,children:jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"1.8",fill:e?a[50]:r.white,stroke:e?a[200]:a[500],strokeWidth:"1.2"})})},Zo=({disabled:e,...t})=>{let{v2:o}=useTheme(),{brand:r,base:a,foreground:s}=o.palette;return jsxs(eo,{viewBox:"0 0 12 12",sx:{width:12,height:12},...t,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:e?s.disabled:r[500]}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:a.white})]})};var Uo=styled(ds)(({theme:e})=>({padding:e.v2.spacing(2),"&:hover":{backgroundColor:"transparent"}})),Yo=styled(cs)(({theme:e})=>{let{base:t,grey:o}=e.v2.palette;return {marginLeft:0,gap:e.v2.spacing(4),"& .MuiFormControlLabel-label":{fontSize:"11px",color:t.black},"& .MuiFormControlLabel-label.Mui-disabled":{color:o[500]}}});var Go=forwardRef(({label:e,labelPlacement:t="end",disabled:o,sx:r,className:a,...s},i)=>{let n=zc(useId(),"checkbox"),p=jsx(Uo,{id:n,ref:i,disableRipple:true,disabled:o,checkedIcon:jsx(Vo,{disabled:o}),icon:jsx(Oo,{disabled:o}),indeterminateIcon:jsx(Zo,{disabled:o}),"data-testid":"Checkbox",className:lc(e?E.control:E.root,e?void 0:a),sx:e?void 0:r,...s});return e?jsx(Yo,{className:lc(E.root,a),sx:r,control:p,label:e,labelPlacement:t,disabled:o,componentsProps:{typography:{className:E.label}}}):p});Go.displayName="Checkbox";var Xo=memo(Go);var ys="os-shared-Switch",Se={root:`${ys}-root`};var _o=styled(gs)(({theme:e,disabled:t})=>{let{base:o,grey:r,success:a}=e.v2.palette;return {width:28,height:16,padding:0,borderRadius:e.v2.radius(8),opacity:t?.5:1,overflow:"visible","& .MuiSwitch-switchBase":{padding:0,margin:e.v2.spacing(1),color:o.white,transitionDuration:"300ms","&:hover":{backgroundColor:"transparent"},"&.Mui-focusVisible":{outline:`2px solid ${r[400]}`,outlineOffset:2},"&.Mui-checked":{transform:"translateX(12px)",color:o.white,"& + .MuiSwitch-track":{backgroundColor:a[500],opacity:1,border:0}},"&.Mui-disabled":{color:o.white,"& + .MuiSwitch-track":{opacity:1},"& .MuiSwitch-thumb":{filter:"none"}},"&.Mui-checked.Mui-disabled":{color:o.white}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:14,height:14,color:o.white,backgroundColor:o.white,boxShadow:"none",filter:t?"none":"drop-shadow(0px 3px 0.5px rgba(0, 0, 0, 0.04)) drop-shadow(0px 3px 4px rgba(0, 0, 0, 0.12))"},"& .MuiSwitch-track":{borderRadius:e.v2.radius(8),backgroundColor:"#D9D9D9",opacity:1,transition:e.transitions.create(["background-color"],{duration:300})}}});var qo=forwardRef(({className:e,sx:t,...o},r)=>jsx(_o,{ref:r,className:lc(Se.root,e),sx:t,"data-testid":"Switch",disableRipple:true,...o}));qo.displayName="Switch";var Jo=memo(qo);var Ss="os-shared-Typography",ve={root:`${Ss}-root`},Ne="body.default.regular";var ws=e=>e!=null&&typeof e=="object"&&"fontFamily"in e&&"fontSize"in e&&"fontWeight"in e;function ks(e,t){try{let o=t.split(".").reduce((r,a)=>{if(r==null||typeof r!="object")throw new TypeError(`Invalid typography textVariant: ${t}`);return r[a]},e);if(!ws(o))throw new TypeError(`Invalid typography textVariant: ${t}`);return o}catch(o){return console.warn(o),e.body.default.regular}}function Is(e,t,o){return t===void 0?o:typeof t=="number"?t:{light:e.fontWeightLight,regular:e.fontWeightRegular,medium:e.fontWeightMedium,semibold:e.fontWeightBold,bold:e.fontWeightBolder}[t]??o}var Qo=styled(vs,{shouldForwardProp:e=>e!=="$textVariant"&&e!=="$weight"})(({theme:e,$textVariant:t=Ne,$weight:o})=>{let{base:r}=e.v2.palette,a=ks(e.v2.typography.textVariants,t);return {color:r.black,...a,fontWeight:Is(e.v2.typography,o,a.fontWeight)}});var et=forwardRef(({textVariant:e=Ne,variant:t="subtitle2",weight:o,className:r,sx:a,...s},i)=>jsx(Qo,{ref:i,className:lc(ve.root,r),sx:a,"data-testid":"Typography",...s,variant:t,$textVariant:e,$weight:o}));et.displayName="Typography";var ot=memo(et);var $s="os-shared-RadioButton";var we={root:`${$s}-root`};var at=({disabled:e,...t})=>{let{v2:o}=useTheme(),{brand:r,base:a}=o.palette,s=e?"#BDC1CC":r[500];return jsxs(eo,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...t,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}})]})},st=({disabled:e,...t})=>{let{v2:o}=useTheme(),{base:r,grey:a}=o.palette,s=e?a[50]:r.white,i=e?a[200]:a[500];return jsx(eo,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...t,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 nt=styled(Ls)(({theme:e})=>({padding:e.v2.spacing(2),"&:hover":{backgroundColor:"transparent"},"& .MuiSvgIcon-root":{fontSize:12,width:12,height:12}}));var it=forwardRef(({disabled:e,sx:t,className:o,...r},a)=>jsx(nt,{ref:a,disableRipple:true,disabled:e,checkedIcon:jsx(at,{disabled:e}),icon:jsx(st,{disabled:e}),"data-testid":"RadioButton",className:lc(we.root,o),sx:t,...r}));it.displayName="RadioButton";var lt=memo(it);var Ie="os-shared-CircularProgress",W={root:`${Ie}-root`,progress:`${Ie}-progress`,labelOverlay:`${Ie}-labelOverlay`,labelText:`${Ie}-labelText`};var dt=styled(rs)(({theme:e})=>{let{brand:t}=e.v2.palette;return {color:"#147DC5",background:alpha(t[500],.05),borderRadius:"50%",[`& .${circularProgressClasses.circle}`]:{strokeLinecap:"round"}}}),ct=styled(pt)(()=>({position:"relative",display:"inline-flex"})),mt=styled(pt)(()=>({top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"})),ft=styled(vs)(({theme:e})=>({fontSize:e.typography.fontSize,fontWeight:e.typography.fontWeightBolder??700,color:"#3B4152"}));var ut=forwardRef(({variant:e="indeterminate",hasLabel:t=true,value:o,className:r,sx:a,...s},i)=>{let n=e==="determinate"&&t;return jsxs(ct,{className:lc(W.root,r),sx:a,"data-testid":"CircularProgress",children:[jsx(dt,{ref:i,variant:e,value:o,className:W.progress,...s}),n&&jsx(mt,{className:W.labelOverlay,children:jsx(ft,{className:W.labelText,variant:"caption",color:"text.secondary",children:`${Math.round(o??0)}%`})})]})});ut.displayName="CircularProgress";var yt=memo(ut);var H="os-shared-Tooltip",b={popper:`${H}-popper`,tooltip:`${H}-tooltip`,arrow:`${H}-arrow`,content:`${H}-content`,title:`${H}-title`,supportingText:`${H}-supportingText`,wrapper:`${H}-wrapper`};var gt=styled(({className:e,...t})=>createElement(js,{...t,classes:{popper:lc(b.popper,e),tooltip:b.tooltip,arrow:b.arrow}}))(({theme:e})=>{let{base:t,grey:o}=e.v2.palette,r=t.white,a="var(--tooltip-border-width) solid var(--tooltip-border-color)";return {"--tooltip-border-color":"#3C373721","--tooltip-border-width":"1px",zIndex:999999,[`& .${b.arrow}`]:{color:r,"&:before":{backgroundColor:r,boxSizing:"border-box",border:a}},[`& .${b.tooltip}`]:{backgroundColor:r,color:o[700],boxShadow:e.v2.elevation[200],fontSize:12,fontWeight:400,lineHeight:1.2,padding:e.v2.spacing(6),borderRadius:e.v2.radius(8),border:a,maxWidth:320,wordBreak:"break-word"}}}),xt=styled("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",gap:e.v2.spacing(6),maxWidth:296,width:"100%"})),ht=styled("div",{shouldForwardProp:e=>e!=="$hasSupportingText"})(({theme:e,$hasSupportingText:t})=>{let{grey:o}=e.v2.palette;return {margin:0,fontSize:12,fontWeight:t?600:400,lineHeight:t?1:1.2,color:t?o[700]:alpha(o[700],.77),width:t?"100%":void 0}}),Ct=styled("div")(({theme:e})=>{let{grey:t}=e.v2.palette;return {margin:0,fontSize:11,fontWeight:400,lineHeight:"normal",color:t[500],width:"100%",whiteSpace:"pre-wrap"}});function Gs(e){return e!=null&&e!==false&&e!==""}function Xs(e){return !!e||e===0}function _s(e,t){let o=Gs(t);if(!Xs(e)&&!o)return null;let r=jsx(ht,{className:b.title,$hasSupportingText:o,children:e});return o?jsxs(xt,{className:b.content,children:[r,jsx(Ct,{className:b.supportingText,children:t})]}):r}function bt({className:e,title:t,supportingText:o,placement:r="top",children:a,wrapperProps:s,sx:i,...n}){let{className:p,...d}=s??{};return jsx(gt,{className:e,title:_s(t,o),placement:r,arrow:true,sx:i,...n,children:jsx(pt,{display:"flex",alignItems:"center","data-testid":"Tooltip",className:lc(b.wrapper,p),...d,children:a})})}bt.displayName="Tooltip";var St=memo(bt);var Js="os-shared-Skeleton",$e={root:`${Js}-root`};var vt=styled(Qs)(()=>({}));var Nt=forwardRef(({className:e,sx:t,variant:o="rounded",height:r=16,...a},s)=>jsx(vt,{ref:s,className:lc($e.root,e),sx:t,"data-testid":"Skeleton",variant:o,height:r,...a}));Nt.displayName="Skeleton";var wt=memo(Nt);var an="os-shared-Avatar",Me={root:`${an}-root`},Le="xs",Fe="teal",kt={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"}},It={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 ln(e){let{from:t,to:o}=kt[e];return `linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%), linear-gradient(135deg, ${t} 0%, ${o} 100%)`}var Bt=styled(sn,{shouldForwardProp:e=>!["$size","$color"].includes(e)})(({theme:e,$size:t=Le,$color:o=Fe})=>{let{dimension:r,fontSize:a}=It[t],{base:s}=e.v2.palette,i=ln(o);return {width:r,height:r,flexShrink:0,fontSize:a,fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:s.white,background:i,backgroundColor:"transparent","&.MuiAvatar-colorDefault":{color:s.white,background:i,backgroundColor:"transparent"}}});var Tt=forwardRef(({className:e,sx:t,size:o=Le,color:r=Fe,...a},s)=>jsx(Bt,{ref:s,className:lc(Me.root,e),sx:t,"data-testid":"Avatar",...a,$size:o,$color:r,variant:"circular"}));Tt.displayName="Avatar";var Pt=memo(Tt);var mn="os-shared-Divider",ze={root:`${mn}-root`};function yn(e,t){let{grey:o,border:r}=t.v2.palette;return e==="subtle"?r.subtle:o[100]}var $t=styled(fn,{shouldForwardProp:e=>e!=="$type"})(({theme:e,$type:t="default",orientation:o="horizontal"})=>({borderColor:yn(t,e),...o==="vertical"?{borderBottomWidth:0,borderRightWidth:1}:{borderBottomWidth:1}}));var Mt=forwardRef(({className:e,sx:t,orientation:o="horizontal",type:r="default",...a},s)=>jsx($t,{ref:s,className:lc(ze.root,e),sx:t,"data-testid":"Divider",orientation:o,$type:r,...a}));Mt.displayName="Divider";var Lt=memo(Mt);var Cn="os-shared-Collapse",Re={root:`${Cn}-root`};var Ft=styled(bn)(()=>({}));var zt=forwardRef(({className:e,sx:t,children:o,unmountOnExit:r=true,timeout:a=300,...s},i)=>jsx(Ft,{ref:i,className:lc(Re.root,e),sx:t,"data-testid":"Collapse",unmountOnExit:r,timeout:a,...s,children:o}));zt.displayName="Collapse";var Rt=memo(zt);var kn="os-shared-Badge",De={root:`${kn}-root`},Ae="default",Dt={default:"#29b6f6",primary:"#1976d2",secondary:"#f50057",neutral:"#656565",gray:"#CFCFCF",orange:"#FFD503"};function Tn(e,t){let{base:o,grey:r,brand:a,success:s,warning:i,error:n,gradient:p}=t.v2.palette;if(e==="highlight")return p.brand;let d=Dt[e];return d||({inactive:r[100],active:alpha(o.black,.1),dark:a[500],red:n[500],success:s[500],warning:i[500],error:n[500]}[e]??o.white)}function Pn(e,t){let{base:o}=t.v2.palette;return e==="inactive"?o.black:(o.white)}var Et=styled("span",{shouldForwardProp:e=>!["$color","$compact","$round","$pointer"].includes(e)})(({theme:e,$color:t=Ae,$compact:o,$round:r,$pointer:a})=>{let s=Tn(t,e);return {paddingBlock:e.v2.spacing(2),paddingInline:o?"0.16056rem":r?"0.275rem":e.v2.spacing(4),borderRadius:o?e.v2.radius(4):r?e.v2.radius(16):e.v2.radius(48),background:s,color:Pn(t,e),fontSize:"8px",fontWeight:700,lineHeight:"10px",letterSpacing:0,overflow:"hidden",height:o?"12px":r?"16px":void 0,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",cursor:a?"pointer":"auto"}});var Wt=forwardRef(({className:e,sx:t,color:o,state:r,compact:a,round:s,pointer:i,children:n,...p},d)=>{let c=o??r??Ae;return jsx(Et,{ref:d,className:lc(De.root,e),sx:t,"data-testid":"Badge",...p,$color:c,$compact:a,$round:s,$pointer:i,children:n})});Wt.displayName="Badge";var Ht=memo(Wt);var Fn="os-shared-Backdrop",Ee={root:`${Fn}-root`};var Vt=styled(zn,{shouldForwardProp:e=>e!=="$hasBlur"})(({theme:e,$hasBlur:t=false})=>{let o=t?e.v2.blur[6]:"none";return {zIndex:1,backgroundColor:alpha("#000",.3),backdropFilter:o,WebkitBackdropFilter:o}});var Ot=forwardRef(({className:e,sx:t,open:o=true,hasBlur:r=false,onClose:a,onClick:s,...i},n)=>{if(!o)return null;let p=d=>{a?.(),s?.(d);};return createPortal(jsx(Vt,{open:o,$hasBlur:r,ref:n,className:lc(Ee.root,e),sx:t,"data-testid":"Backdrop",onClick:p,...i}),document.body)});Ot.displayName="Backdrop";var Zt=memo(Ot);var We="os-shared-CopyButton",M={root:`${We}-root`,icon:`${We}-icon`,copyIcon:`${We}-copyIcon`,copiedIcon:`${We}-copiedIcon`};var Ut=e=>{let{v2:t}=useTheme(),{base:o}=t.palette;return jsx(eo,{sx:{height:12.6,width:13},...e,children:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"13",viewBox:"2.67 1.67 10.66 12.66",fill:"none",children:jsx("path",{d:"M11.3333 13.6978L11.3332 13.6979C11.1002 14.0479 10.7072 14.2582 10.2863 14.2582H5.83317C4.12559 14.2582 2.7415 12.8741 2.7415 11.1665V4.71338C2.7415 4.29279 2.95172 3.89983 3.30186 3.66641L3.5915 3.47331V11.1665C3.5915 12.4046 4.59508 13.4082 5.83317 13.4082H11.5264L11.3333 13.6978ZM4.40817 3.49984C4.40817 2.53467 5.20133 1.7415 6.1665 1.7415H11.4998C12.465 1.7415 13.2582 2.53467 13.2582 3.49984V10.8332C13.2582 11.7983 12.465 12.5915 11.4998 12.5915H6.1665C5.20133 12.5915 4.40817 11.7983 4.40817 10.8332V3.49984ZM11.4998 2.5915H6.1665C5.65901 2.5915 5.25817 2.99234 5.25817 3.49984V10.8332C5.25817 11.3407 5.65901 11.7415 6.1665 11.7415H11.4998C12.0073 11.7415 12.4082 11.3407 12.4082 10.8332V3.49984C12.4082 2.99234 12.0073 2.5915 11.4998 2.5915Z",fill:o.black,stroke:o.white,strokeWidth:"0.15"})})})},Yt=e=>{let{v2:t}=useTheme(),{success:o,base:r}=t.palette;return jsx(eo,{sx:{height:12.6,width:13},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:o[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};var Xt=styled("span")({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:16,height:16,flexShrink:0,cursor:"pointer",verticalAlign:"middle"}),ao=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:"opacity 200ms ease"}));var _t=forwardRef(({className:e,sx:t,text:o,feedbackMs:r=2e3,icon:a=jsx(Ut,{}),onClick:s,...i},n)=>{let[p,d]=useState(false),c=u=>{u.stopPropagation(),bb(o),d(true),setTimeout(()=>d(false),r),s?.(u);};return jsxs(Xt,{ref:n,className:lc(M.root,e),sx:t,role:"button",tabIndex:0,"data-testid":"CopyButton",onClick:c,...i,children:[jsx(ao,{className:lc(M.icon,M.copyIcon),$visible:!p,children:a}),jsx(ao,{className:lc(M.icon,M.copiedIcon),$visible:p,children:jsx(Yt,{})})]})});_t.displayName="CopyButton";var qt=memo(_t);var so="os-shared-ProgressBar",_={root:`${so}-root`,fill:`${so}-fill`,text:`${so}-text`};var Qt=styled(pt,{shouldForwardProp:e=>!["$value","$isDecimal"].includes(e)})(({theme:e,$value:t,$isDecimal:o})=>{let{base:r}=e.v2.palette;return {width:`${t}%`,minWidth:t>=10?"28px":"24px",height:"18px",borderRadius:e.v2.radius(50),background:"linear-gradient(256deg, #147DC5 0%, #3DA6E1 100%)",display:"flex",alignItems:"center",justifyContent:t>10?"flex-end":"center",paddingInlineEnd:t>10?e.v2.spacing(2):e.v2.spacing(0),...t===0&&{background:alpha(r.black,26/255)},...o&&{minWidth:t>=10?"40px":"36px"}}}),er=styled(pt,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:t})=>{let{base:o}=e.v2.palette;return {height:"14px",maxWidth:"36px",minWidth:"20px",background:alpha(o.black,26/255),borderRadius:e.v2.radius(50),display:"flex",alignItems:"center",justifyContent:"center",padding:0,...t===0&&{background:alpha(o.black,0)}}}),or=styled(vs,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:t})=>{let{base:o,grey:r}=e.v2.palette;return {fontSize:"8px",fontWeight:e.typography.fontWeightBolder??700,color:o.white,padding:`${e.v2.spacing(2)} ${e.v2.spacing(4)}`,...t===0&&{color:alpha(r[500],.5)}}});var rr=forwardRef(({className:e,sx:t,value:o},r)=>{let a=!Number.isInteger(o);return jsx(Qt,{ref:r,className:lc(_.root,e),sx:t,"data-testid":"ProgressBar",$value:o,$isDecimal:a,children:jsx(er,{className:_.fill,$value:o,children:jsxs(or,{className:_.text,$value:o,variant:"caption",children:[Number(o.toFixed(2)),"%"]})})})});rr.displayName="ProgressBar";var ar=memo(rr);var Oe="os-shared-Chip",I={root:`${Oe}-root`,text:`${Oe}-text`,copyButton:`${Oe}-copyButton`,icon:`${Oe}-icon`},sr={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 lr=e=>{let{v2:t}=useTheme(),{base:o}=t.palette;return jsx(eo,{sx:{height:"10px"},...e,children:jsx("svg",{width:"11",height:"13",viewBox:"0 0 11 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.924805 9.5C0.924805 10.7381 1.9289 11.7412 3.16699 11.7412H8.86035L8.66699 12.0312C8.43398 12.3812 8.04094 12.5917 7.62012 12.5918H3.16699C1.45941 12.5918 0.0751953 11.2076 0.0751953 9.5V3.04688C0.0751953 2.62628 0.28561 2.23342 0.635742 2L0.924805 1.80664V9.5ZM3.5 0.0751953H8.83301C9.79807 0.0751953 10.5916 0.867985 10.5918 1.83301V9.16699C10.5916 10.132 9.79807 10.9248 8.83301 10.9248H3.5C2.53494 10.9248 1.74139 10.132 1.74121 9.16699V1.83301C1.74139 0.867985 2.53494 0.0751953 3.5 0.0751953ZM3.5 0.924805C2.99261 0.924805 2.59197 1.32567 2.5918 1.83301V9.16699C2.59197 9.67433 2.99261 10.0752 3.5 10.0752H8.83301C9.3404 10.0752 9.74104 9.67433 9.74121 9.16699V1.83301C9.74104 1.32567 9.3404 0.924805 8.83301 0.924805H3.5Z",fill:o.black,stroke:o.white,strokeWidth:"0.15"})})})},pr=e=>{let{v2:t}=useTheme(),{success:o,base:r}=t.palette;return jsx(eo,{sx:{height:"10px"},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:o[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 qn(e,t){let o=sr[e];return {height:o.height,..."width"in o&&{width:o.width,minWidth:o.width},..."padding"in o&&{padding:t.v2.spacing(o.padding)},..."paddingBlock"in o&&{paddingBlock:t.v2.spacing(o.paddingBlock)},..."paddingInline"in o&&{paddingInline:t.v2.spacing(o.paddingInline)},borderRadius:t.v2.radius(o.borderRadius)}}var cr=styled(pt,{shouldForwardProp:e=>!["$variant","$hasIcon","$hasCopy","$isSelected","$disableAnimation"].includes(e)})(({theme:e,$variant:t="text",$hasIcon:o,$hasCopy:r,$isSelected:a,$disableAnimation:s})=>{let{grey:i,base:n}=e.v2.palette;return {display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,boxSizing:"border-box",lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",fontSize:11,fontWeight:e.typography.fontWeightRegular,color:n.black,border:`1px solid ${i[100]}`,backgroundColor:n.white,...qn(t,e),...t==="text"&&o&&{gap:e.v2.spacing(6),paddingInlineStart:e.v2.spacing(5),paddingInlineEnd:e.v2.spacing(8)},...r&&{gap:e.v2.spacing(4)},[`& .${I.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"}}}}),io=styled(pt)({textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"0 1 auto"}),mr=styled("span",{shouldForwardProp:e=>e!=="$copied"})(({$copied:e})=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:12,height:12,flexShrink:0,cursor:"pointer",opacity:e?1:.6,transition:"opacity 150ms ease","&:hover":{opacity:1}})),lo=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:"opacity 150ms ease"}));var ur=forwardRef(({className:e,sx:t,children:o,icon:r,variant:a="text",disabled:s=false,isSelected:i=false,copyText:n,unknownText:p="Unknown",disableAnimation:d=false,...c},u)=>{let[y,f]=useState(false),m=!!(o&&n),h=r!=null&&!m,x=useCallback(w=>{w.stopPropagation(),n&&(bb(n),f(true),setTimeout(()=>f(false),2e3));},[n]),N=useMemo(()=>h?jsx("span",{className:I.icon,children:r}):null,[h,r]),z=useMemo(()=>{if(o){let w=m&&typeof o=="string"?_b(o):void 0;return jsx(io,{className:I.text,"data-is-arabic":w,children:o})}return h?null:jsx(io,{className:I.text,children:p})},[o,m,h,p]),R=useMemo(()=>m?jsxs(mr,{className:I.copyButton,role:"button",tabIndex:0,"aria-label":y?"copied":"copy","data-testid":"ChipCopyButton",$copied:y,onClick:x,children:[jsx(lo,{$visible:!y,children:jsx(lr,{})}),jsx(lo,{$visible:y,children:jsx(pr,{})})]}):null,[m,y,x]);return jsxs(cr,{ref:u,"data-testid":"Chip",className:lc(I.root,e,`CustomVariant_${a}`),sx:kc(s?{cursor:"not-allowed",opacity:.5}:{},t),$variant:a,$hasIcon:h,$hasCopy:m,$isSelected:i,$disableAnimation:d,...c,children:[N,z,R]})});ur.displayName="Chip";var yr=memo(ur);var co="os-shared-Slider",L={root:`${co}-root`,thumb:`${co}-thumb`,thumbIcon:`${co}-thumbIcon`};var gr=e=>{let{v2:t}=useTheme(),{grey:o}=t.palette;return jsx(eo,{sx:{width:"5px",height:"8px",pointerEvents:"none"},...e,children:jsxs("svg",{width:"5",height:"8",viewBox:"0 0 5 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M0.459961 0.460449L0.459961 6.59897",stroke:o[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M2.44531 0.460388L2.44531 6.59891",stroke:o[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M4.4375 0.460388L4.4375 6.59891",stroke:o[500],strokeWidth:"0.920779",strokeLinecap:"round"})]})})};var xr=styled(si)(({theme:e})=>{let{brand:t,base:o}=e.v2.palette,r=["0px 0px 1.25px 0px rgba(0, 0, 0, 0.1)","0px 1.25px 1.25px 0px rgba(0, 0, 0, 0.09)","0px 3.75px 2.5px 0px rgba(0, 0, 0, 0.05)","0px 7.5px 2.5px 0px rgba(0, 0, 0, 0.01)","0px 11.25px 3.75px 0px rgba(0, 0, 0, 0)"].join(", ");return {color:t[500],height:8,padding:0,"& .MuiSlider-rail":{backgroundColor:"#CFCFCF",opacity:1,left:0},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:o.white,border:"none",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:r,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:r}},[`& .${L.thumbIcon}`]:{width:"5px",height:"8px",pointerEvents:"none"}}});function ci({children:e,className:t,...o}){return jsxs(SliderThumb,{className:lc(L.thumb,t),...o,children:[e,jsx(gr,{className:L.thumbIcon})]})}var hr=forwardRef(({className:e,sx:t,value:o,min:r,max:a,step:s,disabled:i,onChange:n,slots:p,...d},c)=>{let u=useCallback((y,f)=>{n(f);},[n]);return jsx(xr,{ref:c,className:lc(L.root,e),sx:t,"data-testid":"Slider",value:o,min:r,max:a,step:s,disabled:i,onChange:u,...d,slots:{thumb:ci,...p}})});hr.displayName="Slider";var Cr=memo(hr);var v="os-shared-Input",g={root:`${v}-root`,label:`${v}-label`,input:`${v}-input`,loadingIcon:`${v}-loadingIcon`,validatedIcon:`${v}-validatedIcon`,hasLabel:`${v}-hasLabel`,sizeSm:`${v}-sizeSm`,sizeMd:`${v}-sizeMd`,disableFocusRing:`${v}-disableFocusRing`,hideArrows:`${v}-hideArrows`,hasTrailingIcon:`${v}-hasTrailingIcon`},T={sm:28,md:32,labelled:40};var vr=e=>{let{v2:t}=useTheme(),{success:o}=t.palette;return jsx(eo,{viewBox:"0 0 10 8",sx:{width:10,height:8},...e,children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:o[700]})})};var Nr=styled(Ci)(({theme:e,endAdornment:t})=>{let{base:o,grey:r}=e.v2.palette,a=!!t;return {height:T.md,padding:`0 ${e.v2.spacing(6)}`,paddingLeft:e.v2.spacing(8),...!a&&{paddingRight:e.v2.spacing(12)},border:"none",borderRadius:"inherit",fontSize:"11px",lineHeight:"1.3em",fontWeight:e.v2.typography.fontWeightMedium,color:o.black,backgroundColor:"transparent",display:"flex",alignItems:"center",minWidth:0,"&.Mui-disabled":{color:alpha(o.black,.6)},"& input":{padding:0,minWidth:0,width:"100%",display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& input::placeholder":{color:r[500],fontWeight:e.v2.typography.fontWeightRegular,opacity:1},"& input:-webkit-autofill, & input:-webkit-autofill:hover, & input:-webkit-autofill:focus":{WebkitTextFillColor:o.black,caretColor:o.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},[`&:where(.${g.sizeSm})`]:{height:T.sm},[`&:where(.${g.sizeMd})`]:{height:T.md},[`&:where(.${g.hasTrailingIcon})`]:{paddingRight:e.v2.spacing(28)},[`&:where(.${g.hasLabel})`]:{height:T.labelled,padding:e.v2.spacing(6),paddingLeft:e.v2.spacing(8),paddingTop:e.v2.spacing(18),alignItems:"stretch",marginTop:0,"& input":{margin:"0px !important",padding:"0px !important",lineHeight:"130%"},"& input:focus::placeholder":{opacity:"1 !important"}},[`&:where(.${g.hideArrows})`]:{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}}}),wr=styled(hi)(({theme:e})=>{let{grey:t}=e.v2.palette;return {fontSize:"10px",lineHeight:"1em",color:`${t[500]} !important`,"&.Mui-disabled":{opacity:.7}}}),kr=styled(rs)(({theme:e})=>({position:"absolute",top:"30%",right:e.v2.spacing(8),color:e.v2.palette.grey[500]})),Ir=styled(pt)(({theme:e})=>({position:"absolute",top:"50%",right:e.v2.spacing(8),transform:"translateY(-50%)",display:"flex",alignItems:"center",justifyContent:"center"})),bi=`&:focus-within:where(:not(.${g.disableFocusRing})), &:where(.Mui-focused):where(:not(.${g.disableFocusRing}))`,Si="&:where(.Mui-warning):focus-within, &:where(.Mui-warning):where(.Mui-focused)",vi="&:where(.Mui-error):focus-within, &:where(.Mui-error):where(.Mui-focused)",Br=styled(xi)(({theme:e,disabled:t,fullWidth:o})=>{let{grey:r,base:a,brand:s,error:i,warning:n}=e.v2.palette;return {position:"relative",display:"flex",flexDirection:"column",width:o?"100%":"auto",height:T.md,margin:0,border:`1px solid ${t?"#FAFBFB":r[100]}`,borderRadius:e.v2.radius(4),...t&&{backgroundColor:"#FAFBFB"},transition:"border-color 0.15s ease, box-shadow 0.15s ease",[`&:where(.${g.sizeSm})`]:{height:T.sm},[`&:where(.${g.sizeMd})`]:{height:T.md},[`&:where(.${g.hasLabel})`]:{height:T.labelled},"&:where(.Mui-warning)":{borderColor:alpha(n[500],.15)},"&:where(.Mui-error)":{borderColor:alpha(i[500],.15)},"&:where(.Mui-disabled)":{borderColor:"#FAFBFB"},[bi]:{borderColor:s[500],boxShadow:`0px 0px 4px 0px ${alpha(s[500],.5)}`},[Si]:{borderColor:alpha(n[500],.15),boxShadow:"none"},[vi]:{borderColor:alpha(i[500],.15),boxShadow:"none"},"& .MuiFormLabel-asterisk":{color:i[500],fontSize:"10px",lineHeight:"1em",marginLeft:2},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:e.v2.spacing(8),fontSize:"10px",fontWeight:e.v2.typography.fontWeightMedium,lineHeight:"100%",transform:"translate(0, 6px) scale(1) !important",transformOrigin:"top left"},"& .MuiInputLabel-root.MuiInputLabel-shrink, & .MuiInputLabel-root.MuiFormLabel-filled, & .MuiInputLabel-root.Mui-focused":{transform:"translate(0, -2px) scale(0.95) !important",color:`${r[500]} !important`},"& .MuiInput-root":{flex:1,marginTop:"0 !important"}}});var Pr=forwardRef(({label:e,size:t="md",error:o=false,warning:r=false,disabled:a=false,fullWidth:s=false,placeholder:i,hideArrows:n=false,required:p,loading:d=false,validated:c=false,disableFocusRing:u=false,focused:y,type:f,id:m="Input",className:h,sx:x,value:N,defaultValue:z,onChange:R,endAdornment:w,onKeyDown:ge,onWheel:xe,...qe},D)=>{let $=!!e,Je=f==="number",ae=$&&d&&!a,wo=c&&!d&&!a,ko=ae||wo,he=t==="sm"?g.sizeSm:g.sizeMd,Ka=useCallback(C=>{typeof D=="function"?D(C):D&&(D.current=C);},[D]),Ua=useMemo(()=>lc(g.root,o&&"Mui-error",r&&"Mui-warning",a&&"Mui-disabled",$&&g.hasLabel,he,u&&g.disableFocusRing,y&&inputClasses.focused,h),[o,r,a,$,he,u,y,h]),Ya=useMemo(()=>lc(g.input,$&&g.hasLabel,he,n&&g.hideArrows,ko&&g.hasTrailingIcon),[$,he,n,ko]),Ga=C=>{let _a=C.metaKey||C.ctrlKey||C.altKey,qa=C.key.length===1;(["e","E","+","-"].includes(C.key)||xa$1()&&qa&&!_a&&!/^[0-9.]$/.test(C.key))&&C.preventDefault(),ge?.(C);},Xa=C=>{C.target instanceof HTMLElement&&C.target.blur(),xe?.(C);};return jsxs(Br,{className:Ua,sx:x,error:o,disabled:a,fullWidth:s,required:p,"data-testid":"Input",focused:y||void 0,children:[$&&jsx(wr,{className:g.label,htmlFor:m??void 0,required:p,shrink:y||void 0,children:e}),jsx(Nr,{id:m??void 0,inputRef:Ka,className:Ya,type:f,error:o,disabled:a,required:p,placeholder:i??void 0,"aria-invalid":o||void 0,disableUnderline:true,fullWidth:true,value:N,defaultValue:z,onChange:R,endAdornment:w,onKeyDown:Je?Ga:ge,onWheel:Je?Xa:xe,...qe}),ae&&jsx(kr,{className:g.loadingIcon,id:m?`${m}-loading-icon`:void 0,size:14.7,thickness:5}),wo&&jsx(Ir,{className:g.validatedIcon,id:m?`${m}-validated-icon`:void 0,children:jsx(vr,{})})]})});Pr.displayName="Input";var $r=memo(Pr);var mo="os-shared-Textarea",Q={root:`${mo}-root`,label:`${mo}-label`,textarea:`${mo}-textarea`},ee=3;var Mr=styled($i,{shouldForwardProp:e=>!["$error","$hasLabel","$minRows"].includes(e)})(({theme:e,$hasLabel:t=false,$minRows:o=ee})=>{let{base:r,grey:a}=e.v2.palette;return {border:"none",borderRadius:"inherit",padding:t?`${e.v2.spacing(32)} ${e.v2.spacing(8)} ${e.v2.spacing(8)}`:`${e.v2.spacing(8)} ${e.v2.spacing(12)}`,fontSize:"11px",fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:r.black,backgroundColor:"transparent",alignItems:"flex-start",width:"100%",...t&&{marginTop:0},"&.Mui-disabled":{color:a[500]},"& textarea":{resize:"vertical",minHeight:t?void 0:`${Math.max(o*20,60)}px`,padding:0,margin:0},"& textarea::placeholder":{color:a[500],fontWeight:e.typography.fontWeightMedium,opacity:1},"& textarea:-webkit-autofill, & textarea:-webkit-autofill:hover, & textarea:-webkit-autofill:focus":{WebkitTextFillColor:r.black,caretColor:r.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"}}}),Lr=styled(hi)(({theme:e})=>{let{grey:t}=e.v2.palette;return {fontSize:"10px",fontWeight:e.typography.fontWeightMedium,color:`${t[500]} !important`}}),Fr=styled(xi,{shouldForwardProp:e=>!["$hasLabel","$minRows"].includes(e)})(({theme:e,disabled:t,error:o,fullWidth:r,$hasLabel:a=false,$minRows:s=ee})=>{let{grey:i,base:n,error:p}=e.v2.palette,d=o?p[500]:i[100];return {position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",minHeight:a?96+(s-ee)*20:void 0,margin:0,border:`1px solid ${d}`,borderRadius:e.v2.radius(4),backgroundColor:t?i[100]:n.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:o?p[500]:i[50]},"& .MuiFormLabel-asterisk":{color:p[500]},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",display:"flex",alignItems:"flex-start",gap:e.v2.spacing(2),padding:e.v2.spacing(8),fontSize:"10px",fontWeight:e.typography.fontWeightMedium,lineHeight:"100%",transform:"none !important",transformOrigin:"top left",color:`${i[500]} !important`},"& .MuiInputBase-root":{flex:1,marginTop:"0 !important"}}});var Rr=forwardRef(({label:e,error:t=false,disabled:o=false,fullWidth:r=false,placeholder:a,minRows:s=ee,maxRows:i,id:n,className:p,sx:d,required:c,...u},y)=>{let f=!!e;return jsxs(Fr,{className:lc(Q.root,p),sx:d,error:t,disabled:o,fullWidth:r,required:c,variant:"standard","data-testid":"Textarea",$hasLabel:f,$minRows:s,children:[f&&jsx(Lr,{className:Q.label,htmlFor:n,shrink:true,disableAnimation:true,required:c,children:e}),jsx(Mr,{id:n,inputRef:y,className:Q.textarea,multiline:true,minRows:s,maxRows:i,disabled:o,required:c,placeholder:a??void 0,"aria-invalid":t||void 0,fullWidth:true,$error:t,$hasLabel:f,$minRows:s,...u})]})});Rr.displayName="Textarea";var Dr=memo(Rr);var O="os-shared-Accordion",B={root:`${O}-root`,summary:`${O}-summary`,content:`${O}-content`,labelStartAdornment:`${O}-labelStartAdornment`,labelContent:`${O}-labelContent`,labelEndAdornment:`${O}-labelEndAdornment`,expandIcon:`${O}-expandIcon`};var Er=()=>{let{v2:e}=useTheme(),{base:t}=e.palette;return jsx("svg",{width:"9",height:"5",viewBox:"0 0 9 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.0501709 0.427246C0.0493864 0.478467 0.0592757 0.529176 0.0784912 0.57666C0.0976579 0.623937 0.125505 0.667471 0.161499 0.703613L3.82556 4.47803C3.86116 4.51465 3.90353 4.54403 3.95056 4.56396C3.99773 4.58391 4.04876 4.59422 4.09998 4.59424C4.15123 4.59424 4.20218 4.58392 4.24939 4.56396C4.29655 4.54401 4.33969 4.51476 4.37537 4.47803L8.03845 0.703613C8.07407 0.667816 8.10232 0.625348 8.12146 0.578613C8.14069 0.531638 8.15017 0.480932 8.14978 0.430176C8.14935 0.379519 8.13942 0.329298 8.11951 0.282715C8.09956 0.236042 8.06999 0.19405 8.03357 0.158691C7.99716 0.123349 7.95384 0.0952198 7.90662 0.0766602C7.8595 0.0582058 7.80878 0.0491929 7.75818 0.050293C7.70763 0.0514427 7.65792 0.0629948 7.61169 0.0834961C7.56537 0.104067 7.52346 0.13358 7.48865 0.17041L4.09998 3.65967L0.711304 0.17041C0.65912 0.115154 0.592066 0.0759001 0.517944 0.059082C0.443585 0.0422622 0.365385 0.0481013 0.294312 0.0756836C0.22324 0.103266 0.162075 0.15178 0.11853 0.214355C0.0750125 0.276905 0.05135 0.351058 0.0501709 0.427246Z",fill:t.black,stroke:t.black,strokeWidth:"0.1"})})};var Hr=styled(Ri)(({theme:e,square:t})=>{let{grey:o,base:r}=e.v2.palette;return {overflow:"hidden",border:`1px solid ${o[100]}`,...!t&&{borderRadius:e.v2.radius(8)},margin:0,background:r.white,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0},"&.Mui-disabled":{opacity:.5,pointerEvents:"none"}}}),Vr=styled(Ai)(({theme:e})=>({background:"#fbfbfb",minHeight:"40px",height:"40px",padding:e.v2.spacing(10),"&.Mui-expanded":{minHeight:"40px",height:"40px"},"& .MuiAccordionSummary-content":{margin:0,display:"flex",flexDirection:"row",alignItems:"center",flexGrow:1,minWidth:0,gap:e.v2.spacing(10)},"& .MuiAccordionSummary-expandIconWrapper":{marginLeft:e.v2.spacing(8)}})),Or=styled(Di)(({theme:e})=>{let{grey:t}=e.v2.palette;return {padding:0,borderTop:`1px solid ${t[100]}`}}),Zr=styled(pt)({display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:"rotate(0deg)"}),jr=styled(pt)({minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"});var Yr=forwardRef(({expanded:e,defaultExpanded:t=false,onChange:o,label:r,content:a,labelStartAdornment:s,labelEndAdornment:i,slotProps:n={},disabled:p=false,expandIcon:d,className:c,sx:u,...y},f)=>{let m=e!==void 0,[h,x]=useState(t),N=m?e:h,z=(Je,ae)=>{m||x(ae),o?.(ae);},{showArrow:R=true,...w}=n.label??{},{className:ge,sx:xe,...qe}=n.root??{},D=d??(R?jsx(Zr,{component:"span",className:B.expandIcon,children:jsx(Er,{})}):null),$=jsxs(Fragment,{children:[s!=null&&jsx(pt,{component:"span",className:B.labelStartAdornment,...n.labelStartAdornment,sx:kc({flexShrink:0},n.labelStartAdornment?.sx),children:s},"label-start-adornment"),jsx(jr,{component:"span",className:B.labelContent,...n.labelContent,sx:n.labelContent?.sx,children:r},"label-content"),i!=null&&jsx(pt,{component:"span",className:B.labelEndAdornment,...n.labelEndAdornment,sx:kc({flexShrink:0,marginLeft:"auto"},n.labelEndAdornment?.sx),children:i},"label-end-adornment")]});return jsxs(Hr,{ref:f,"data-testid":"Accordion",disabled:p,expanded:N,onChange:z,className:lc(B.root,c,ge),sx:kc(u??{},xe),...qe,...y,children:[jsx(Vr,{className:B.summary,expandIcon:D,"aria-expanded":N,...w,children:$}),jsx(Or,{className:B.content,...n.content,children:a})]})});Yr.displayName="Accordion";var Gr=memo(Yr);var Xr="os-shared-Menu",de={popper:`${Xr}-popper`,panel:`${Xr}-panel`};var qr=styled(Zi)({}),Jr=styled(pt,{shouldForwardProp:e=>e!=="$showShadow"})(({theme:e,$showShadow:t})=>{let{grey:o,base:r}=e.v2.palette;return {borderRadius:e.v2.radius(4),background:r.white,width:"max-content",cursor:"pointer",boxShadow:e.v2.elevation[200],display:"flex",flexDirection:"column",overflowY:"auto",maxHeight:"432px","&:focus":{outline:"none"},".menu-item + .menu-item":{borderTop:`1px solid ${o[100]}`},"&::after":{content:t?'""':"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 ea=forwardRef(({open:e,anchorEl:t,children:o,placement:r,popperSx:a,panelProps:s,className:i,sx:n,...p},d)=>{let[c,u]=useState(false),f=useMemo(()=>Children.count(o),[o])>12&&c,{onScroll:m,className:h,sx:x,...N}=s??{},z=useCallback(w=>{u((w.currentTarget.scrollTop??0)>0),m?.(w);},[m]),R=lc(de.panel,h,"MuiPopper-dropdown");return jsx(qr,{ref:d,className:lc(de.popper,i),"data-testid":"Menu",open:e,anchorEl:t,placement:r??"bottom-start",sx:a,...p,children:jsx(Jr,{$showShadow:f,onScroll:z,className:R,sx:kc(n??{},x),...N,children:o})})});ea.displayName="Menu";var oa=memo(ea);var ce="os-shared-Dialog",F={root:`${ce}-root`,title:`${ce}-title`,divider:`${ce}-divider`,content:`${ce}-content`,actions:`${ce}-actions`};var ta=styled(_i,{shouldForwardProp:e=>e!=="$hasBlurBackdrop"})(({theme:e,$hasBlurBackdrop:t})=>{let{base:o}=e.v2.palette,r=t?e.v2.blur[6]:"none";return {"& .MuiDialog-paper":{backgroundColor:o.white,boxShadow:"0px 0px 16px 0px rgba(0, 0, 0, 0.11)",borderRadius:e.v2.radius(8)},"& .MuiModal-backdrop":{background:alpha("#000",.2),...t&&{backdropFilter:r,WebkitBackdropFilter:r}}}}),ra=styled(Qi)(({theme:e})=>{let{base:t}=e.v2.palette;return {padding:`${e.v2.spacing(16)} ${e.v2.spacing(16)} ${e.v2.spacing(12)}`,fontSize:"13px",fontWeight:e.typography.fontWeightBolder,lineHeight:"normal",color:t.black,whiteSpace:"nowrap"}}),aa=styled("hr")(({theme:e})=>{let{grey:t}=e.v2.palette;return {display:"block",border:"none",borderTop:`1px solid ${t[100]}`,margin:0,width:"100%",flexShrink:0}}),sa=styled(Ji,{shouldForwardProp:e=>e!=="$hasHeading"})(({theme:e,$hasHeading:t})=>{let{grey:o}=e.v2.palette;return {padding:`${t?e.v2.spacing(12):e.v2.spacing(16)} ${e.v2.spacing(16)} ${e.v2.spacing(16)}`,fontSize:"12px",fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:o[500]}}),na=styled(qi)(({theme:e})=>({padding:`0 ${e.v2.spacing(16)} ${e.v2.spacing(16)}`,gap:e.v2.spacing(8),justifyContent:"flex-end","& > :not(style) ~ :not(style)":{marginLeft:0}}));var la=forwardRef(({heading:e,actions:t,children:o,onClose:r,open:a,hasBlurBackdrop:s,className:i,sx:n,...p},d)=>jsxs(ta,{ref:d,"data-testid":"Dialog",open:a,onClose:r,$hasBlurBackdrop:s,className:lc(F.root,i),sx:n,...p,children:[e?jsxs(Fragment,{children:[jsx(ra,{className:F.title,children:e}),jsx(aa,{"aria-hidden":true,className:F.divider})]}):null,o!=null?jsx(sa,{className:F.content,$hasHeading:!!e,children:o}):null,t?jsx(na,{className:F.actions,children:t}):null]}));la.displayName="Dialog";var pa=memo(la);var uo="os-shared-MenuItem",j={root:`${uo}-root`,indicator:`${uo}-indicator`,disabled:`${uo}-disabled`},K={unchecked:"unchecked",checked:"checked",indeterminate:"indeterminate"};var ca=()=>{let{v2:e}=useTheme(),{brand:t,base:o}=e.palette;return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:t[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:o.white})]})},ma=()=>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"})}),fa=()=>{let{v2:e}=useTheme(),{brand:t}=e.palette;return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"2.4",fill:t[500],stroke:t[500],strokeWidth:"1.2"}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:"#FAFBFB"})]})};var ga=styled(pt,{shouldForwardProp:e=>e!=="$isDisabled"})(({theme:e,$isDisabled:t=false})=>{let{base:o}=e.v2.palette;return {padding:e.v2.spacing(8),position:"relative",display:"flex",alignItems:"center",gap:e.v2.spacing(8),textTransform:"capitalize",cursor:t?"not-allowed":"pointer",flex:1,fontSize:e.typography.subtitle1.fontSize,opacity:t?.5:1,color:o.black}}),yo=styled("span")({width:14,height:14,flexShrink:0,pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center","& svg":{display:"block"}});function il(e,t){return t?K.indeterminate:e?K.checked:K.unchecked}var ll={[K.unchecked]:ma,[K.checked]:ca,[K.indeterminate]:fa};function pl(e,t,o){if(e===null)return null;if(e!==void 0)return jsx(yo,{className:j.indicator,"aria-hidden":true,children:e});let r=il(t,o),a=ll[r];return jsx(yo,{className:j.indicator,"aria-hidden":true,children:jsx(a,{})})}var xa=forwardRef(({isSelected:e=false,isDisabled:t=false,isIndeterminate:o=false,startAdornment:r,onClick:a,children:s,className:i,sx:n,...p},d)=>{let c=lc(j.root,"menu-item",t&&j.disabled,i);return jsxs(ga,{ref:d,"data-testid":"MenuItem",className:c,sx:n,onClick:t?void 0:a,$isDisabled:t,...p,children:[pl(r,e,o),s]})});xa.displayName="MenuItem";var ha=memo(xa);var Ca="os-shared-ToggleButtons",fe={root:`${Ca}-root`,button:`${Ca}-button`},xo={sm:"sm",md:"md"},ue=xo.sm,ho={sm:{buttonHeight:20,minWidth:20,fontSize:8,containerRadius:3,iconSlot:11},md:{buttonHeight:28,minWidth:28,fontSize:11,containerRadius:4,iconSlot:14}};function cl(e,t){let{palette:o,elevation:r}=e.v2;return t?{backgroundColor:o.background.primary,boxShadow:r[100],color:o.foreground.primary}:{backgroundColor:"transparent",boxShadow:"none",color:o.foreground.secondary}}var va=styled(pt,{shouldForwardProp:e=>e!=="$size"})(({theme:e,$size:t=ue})=>{let o=ho[t];return {backgroundColor:e.v2.palette.background.secondary,display:"inline-flex",alignItems:"center",padding:e.v2.spacing(2),borderRadius:e.v2.radius(o.containerRadius)}}),Na=styled(pt,{shouldForwardProp:e=>e!=="$isActive"&&e!=="$size"})(({theme:e,$isActive:t=false,$size:o=ue})=>{let r=ho[o];return {boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,height:r.buttonHeight,width:"auto",minWidth:r.minWidth,borderRadius:e.v2.radius(2),fontSize:r.fontSize,fontWeight:e.typography.fontWeightMedium,lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",cursor:"pointer",transition:"background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease",...cl(e,t),"& img, & svg":{width:r.iconSlot,height:r.iconSlot,display:"block"}}});function ka({options:e,activeKey:t,onChange:o,size:r=ue,containerProps:a,buttonProps:s,id:i,className:n,sx:p},d){let{className:c,sx:u,...y}=a??{},f=lc(fe.root,n,c);return jsx(va,{ref:d,id:i,"data-testid":"ToggleButtons",className:f,$size:r,sx:kc(p??{},u),...y,children:e.map(m=>jsx(Na,{className:fe.button,$isActive:t===m.key,$size:r,onClick:()=>o(m.key),...s,children:m.content},m.key))})}var ul=forwardRef(ka);ka.displayName="ToggleButtons";var Ia=memo(ul);var yl="os-shared-LazyImage",Ue={root:`${yl}-root`},Ye={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 Ba=styled(pt)({display:"inline-flex",justifyContent:"center",alignItems:"center"});function Ge(e){return e!=null&&e in Ye}var Nl=LazyLoadImage,Pa=forwardRef(({effect:e,wrapperProps:t,id:o,className:r,sx:a,placeholderSrc:s,...i},n)=>{let[p,d]=useState(Ge(e));if(useEffect(()=>{if(!Ge(e)){d(false);return}d(true),Ye[e]().finally(()=>{d(false);});},[e]),p)return null;let{className:c,sx:u,style:y,...f}=t??{},m=Ge(e)||!!s||y!=null;return jsx(Ba,{component:"span",...f,className:lc(Ue.root,c??r),sx:u!=null?kc(a??{},u):a,children:jsx(Nl,{...i,ref:n,effect:e,placeholderSrc:s,id:o,"data-testid":"LazyImage",wrapperProps:m?{style:{display:"flex",justifyContent:"center",alignItems:"center",...y}}:void 0})})});Pa.displayName="LazyImage";var $a=memo(Pa);var Co="os-shared-FieldFeedback",te={root:`${Co}-root`,icon:`${Co}-icon`,message:`${Co}-message`};var Ma=({severity:e="error",...t})=>{let o=useTheme(),{warning:r,error:a}=o.v2.palette,s=e==="warning"?r[500]:a[500];return jsx(eo,{sx:{width:12,height:12},...t,children:jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M6 12C9.30838 12 12 9.30838 12 6C12 2.69162 9.30838 -2.35309e-07 6 -5.24537e-07C2.69162 -8.13764e-07 8.13764e-07 2.69162 5.24537e-07 6C2.35309e-07 9.30838 2.69162 12 6 12ZM6 11.1C3.17801 11.1 0.9 8.82198 0.9 6C0.9 3.17802 3.17802 0.899999 6 0.899999C8.82199 0.899999 11.1 3.17802 11.1 6C11.1 8.82198 8.82198 11.1 6 11.1ZM6 9C6.15913 9 6.31174 8.93679 6.42426 8.82426C6.53679 8.71174 6.6 8.55913 6.6 8.4C6.6 8.24087 6.53679 8.08826 6.42426 7.97574C6.31174 7.86321 6.15913 7.8 6 7.8C5.84087 7.8 5.68826 7.86321 5.57574 7.97574C5.46321 8.08826 5.4 8.24087 5.4 8.4C5.4 8.55913 5.46321 8.71174 5.57574 8.82426C5.68826 8.93679 5.84087 9 6 9ZM6.00703 6.90644C6.12628 6.90458 6.23991 6.85546 6.32296 6.76988C6.40602 6.6843 6.45171 6.56925 6.45 6.45L6.45 3.15C6.45084 3.09037 6.43983 3.03116 6.41759 2.97583C6.39535 2.92049 6.36234 2.87013 6.32047 2.82766C6.2786 2.7852 6.22871 2.75148 6.17369 2.72846C6.11868 2.70544 6.05964 2.69359 6 2.69359C5.94036 2.69359 5.88132 2.70544 5.82631 2.72846C5.77129 2.75148 5.7214 2.7852 5.67953 2.82766C5.63766 2.87013 5.60465 2.92049 5.58241 2.97583C5.56017 3.03116 5.54916 3.09037 5.55 3.15L5.55 6.45C5.54914 6.51023 5.56037 6.57002 5.58304 6.62583C5.60571 6.68163 5.63935 6.73232 5.68197 6.77489C5.72459 6.81745 5.77533 6.85103 5.83116 6.87363C5.887 6.89623 5.9468 6.90739 6.00703 6.90644Z",fill:s})})})},La=e=>{let{v2:t}=useTheme(),{success:o}=t.palette;return jsx(eo,{sx:{width:12,height:12},...e,children:jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:o[700]})})})},Fa=e=>{let{v2:t}=useTheme(),{base:o}=t.palette;return jsx(eo,{sx:{width:12,height:12},...e,children:jsx("svg",{width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M6 7.5V5.5M6 3.5H6.005M11 5.5C11 8.26142 8.76142 10.5 6 10.5C3.23858 10.5 1 8.26142 1 5.5C1 2.73858 3.23858 0.5 6 0.5C8.76142 0.5 11 2.73858 11 5.5Z",stroke:o.black,strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})})})};function Xe(e,t){let o=t??"error",{brand:r,success:a,error:s,status:i}=e.v2.palette;switch(o){case "warning":return {borderColor:i.warning.subtle,backgroundColor:i.warning.subtle,textColor:i.warning.default};case "success":return {borderColor:alpha(a[700],.15),backgroundColor:alpha(a[700],.15),textColor:a[700]};case "info":return {borderColor:alpha(r[500],.12),backgroundColor:alpha(r[500],.12),textColor:r[500]};case "error":return {borderColor:alpha(s[500],.15),backgroundColor:alpha(s[500],.15),textColor:s[500]};default:return o}}var za=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:t})=>{let{backgroundColor:o,textColor:r}=Xe(e,t);return {display:"flex",alignItems:"flex-start",gap:e.v2.spacing(4),minHeight:"32px",padding:`${e.v2.spacing(8)} ${e.v2.spacing(12)}`,background:o,color:r,borderRadius:`0 0 ${e.v2.radius(4)} ${e.v2.radius(4)}`}}),Ra=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:t})=>{let{textColor:o}=Xe(e,t);return {fontSize:"10px",lineHeight:"16px",display:"block",color:o,wordBreak:"break-word"}}),Da=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 Il(e){switch(e){case "success":return jsx(La,{});case "info":return jsx(Fa,{});case "error":case "warning":return jsx(Ma,{severity:e})}}var Aa=forwardRef(({type:e="error",message:t,icon:o,className:r,sx:a},s)=>{if(!Ac(t))return null;let i=e;return jsxs(za,{ref:s,"data-testid":"FieldFeedback",className:lc(te.root,r),sx:a,$feedbackType:i,children:[o??jsx(Da,{className:te.icon,children:Il(i)}),jsx(Ra,{className:te.message,$feedbackType:i,children:t})]})});Aa.displayName="FieldFeedback";var Ea=memo(Aa);var Tl="os-shared-ScrollLoader",_e={root:`${Tl}-root`};var Wa=styled(Pl)({overflow:"auto",height:"100%",maxHeight:"100%"});function No(e,t=50){return e.scrollHeight-(e.scrollTop+e.clientHeight)<=t}var Za=forwardRef(({loadMoreItems:e,hasMore:t,isLoading:o=false,isFetchingNextPage:r,children:a,className:s,sx:i,id:n,...p},d)=>{let[c,u]=useState(false),y=useRef(e),f=useRef(null);y.current=e;let m=useCallback(()=>{t&&!r&&y.current();},[t,r]),h=useCallback(()=>{let x=f.current;x&&No(x)&&m();},[m]);return useEffect(()=>{let x=f.current;if(x)return x.addEventListener("scroll",h),()=>x.removeEventListener("scroll",h)},[h]),useEffect(()=>{let x=f.current;if(!x||o||c)return;let N=window.setTimeout(()=>{u(true),No(x)&&m();},1e3);return ()=>window.clearTimeout(N)},[o,m,c]),jsx(Wa,{ref:x=>{f.current=x,typeof d=="function"?d(x):d&&(d.current=x);},id:n,"data-testid":"ScrollLoader",className:lc(_e.root,s),sx:i,...p,children:a})});Za.displayName="ScrollLoader";var ja=memo(Za);
|
|
2
|
+
export{te as $,Ee as A,Zt as B,M as C,qt as D,_ as E,ar as F,I as G,yr as H,L as I,Cr as J,g as K,$r as L,Q as M,Dr as N,B as O,Gr as P,de as Q,oa as R,F as S,pa as T,j as U,ha as V,fe as W,xo as X,Ia as Y,Ue as Z,$a as _,k as a,Xe as aa,Ao as b,Ea as ba,be as c,_e as ca,Ho as d,ja as da,E as e,Xo as f,Se as g,Jo as h,ve as i,ot as j,we as k,lt as l,W as m,yt as n,b as o,St as p,$e as q,wt as r,Me as s,Pt as t,ze as u,Lt as v,Re as w,Rt as x,De as y,Ht as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-PWQC7GH2.js';import {memo,useCallback,Fragment as Fragment$1,createElement}from'react';import {useTranslation}from'react-i18next';import {jsx,Fragment}from'react/jsx-runtime';function B({isActiveFilterVisible:f,availableStatuses:v,status:e,onStatusChange:l,buttonSx:S}){let{t:I}=useTranslation(),d=f??false,b$1=useCallback(s=>s===e&&!d?"active":"inActive",[e,d]),u=useCallback(s=>{l?.(s);},[l]);return jsx(Fragment,{children:v?.map(({render:s,...a},o)=>{if(s)return jsx(Fragment$1,{children:s({status:e,onChange:u},{...a,index:o})},`custom-status-slot-${o}`);if(!Array.isArray(a.status))return createElement(b,{...a,key:`status-button-array-${a.status}`,variant:b$1(a.status),onClick:()=>{Array.isArray(a.status)||u(a.status);},buttonSx:S});if(!a.status)return null;let n=a.status.filter(Boolean).map(t=>typeof t=="string"?{value:t}:t)||[],c=!!e&&n.some(t=>t?.value===e);return jsx("div",{children:jsx(b,{...a,selectedStatus:c?e:void 0,variant:c?"active":"inActive",onButtonBodyClick:t=>u(t),dropdownOptions:n.map(t=>({label:t?.label||I(t?.value||""),status:t?.value,icon:t.icon,onClick:()=>u(t.value)})),buttonSx:S})},n[0]?.value??`status-group-${o}`)})})}var p=memo(B);var M=p;export{M as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {zc}from'./chunk-
|
|
1
|
+
import {zc}from'./chunk-2OTSLKKQ.js';import {Nj,j,m as m$1}from'./chunk-M5HS3EYQ.js';import {memo,useId}from'react';import d from'@mui/material/Box';import {jsx}from'react/jsx-runtime';function g({countryCode:o,currencyCode:t,...n}){let l=zc(useId(),"country-flag");return jsx(d,{...n,id:l,"data-testid":"CountryFlag",component:"img",src:o&&j(o)||t&&m$1(t)||Nj,width:n.width||16,alt:o??t??"flag",loading:"lazy",onError:u=>{u.currentTarget.src=Nj;}})}g.displayName="CountryFlag";var m=memo(g);var h=m;export{h as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {j as j$1}from'./chunk-
|
|
1
|
+
import {j as j$1}from'./chunk-DAYM6H2G.js';import {zc}from'./chunk-2OTSLKKQ.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=zc(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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {zc}from'./chunk-
|
|
1
|
+
import {zc}from'./chunk-2OTSLKKQ.js';import {oi,pi}from'./chunk-M5HS3EYQ.js';import {styled,Box}from'@mui/material';import I,{useId,useMemo}from'react';import {jsx,jsxs}from'react/jsx-runtime';var c=styled(Box)(({theme:e})=>({height:"32px",borderRadius:"4px",backgroundColor:e.palette.action.hover,padding:"2px",display:"flex",alignItems:"center",position:"relative",cursor:"pointer",zIndex:1})),u=styled(Box,{shouldForwardProp:e=>e!=="isActive"})(({isActive:e})=>({flex:1,display:"flex",justifyContent:"center",alignItems:"center",position:"relative",zIndex:2,opacity:e?1:.5})),x=styled(Box,{shouldForwardProp:e=>e!=="activeIndex"})(({theme:e,activeIndex:o})=>({position:"absolute",top:2,left:o*30+2,transition:"all 0.25s ease-in-out",width:"28px",height:"28px",backgroundColor:e.palette.common.white,borderRadius:"2px",boxShadow:"0px 0px 4px 0px rgba(0, 0, 0, 0.20)"}));var m=(t=>(t.LIST="LIST",t.CARDS="CARDS",t.MAP="MAP",t))(m||{});var y=e=>{let o=I.Children.count(e.children)-1;return jsx(c,{...e,sx:{width:o*30+2}})},w=y;var T=[{icon:jsx("img",{src:oi,alt:"card"}),value:"CARDS"},{icon:jsx("img",{src:pi,alt:"LIST"}),value:"LIST"}],S=e=>{let{currentView:o,onToggleClick:s,getOverrideViews:t}=e,v=zc(useId(),"toggle-view"),l=useMemo(()=>t?t(T):T,[t]),h=useMemo(()=>l.findIndex(r=>r.value===o),[l,o]);return s?jsxs(w,{id:v,"data-testid":"ToggleView",children:[l.map(r=>jsx(u,{onClick:()=>s(r.value),sx:{height:"11.6px",width:"11.6px"},isActive:o===r.value,children:r.icon},r.value)),jsx(x,{activeIndex:h})]}):null},f=S;var $=f;export{m as a,$ as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {b}from'./chunk-MUR4ILTY.js';import {zc}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-MUR4ILTY.js';import {zc}from'./chunk-2OTSLKKQ.js';import {wb}from'./chunk-M5HS3EYQ.js';import {useId,useCallback}from'react';import v,{autocompleteClasses}from'@mui/material/Autocomplete';import y from'@mui/material/Box';import M from'@mui/material/TextField';import R from'@mui/material/Popper';import {keyframes,styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var T=keyframes`
|
|
2
2
|
0% {
|
|
3
3
|
transform: rotate(-90deg);
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {zc}from'./chunk-
|
|
1
|
+
import {zc}from'./chunk-2OTSLKKQ.js';import {Mc}from'./chunk-M5HS3EYQ.js';import {memo,useId}from'react';import d from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var e=styled(d)(({theme:r})=>({fontSize:"10px",color:r.palette.error.light,padding:"8px",background:r.palette.background.gradient.error,borderRadius:"4px",display:"flex",gap:"4px",alignItems:"center",height:32}));function l({error:r,...i}){let n=zc(useId(),"error");return jsxs(e,{...i,id:n,"data-testid":"Error",children:[jsx("img",{src:Mc,alt:"w"}),r]})}var p=memo(l);var k=p;export{k as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {zc}from'./chunk-
|
|
1
|
+
import {zc}from'./chunk-2OTSLKKQ.js';import {useId,useState,useRef,useMemo,useCallback,useEffect}from'react';import re from'@mui/material/Box';import {motion,AnimatePresence}from'framer-motion';import {styled}from'@mui/material/styles';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var v=3,h=24,B=styled("div")(()=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center"})),G=styled(motion.div)(()=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center"})),O=styled("div")(()=>({position:"relative",display:"inline-block",width:0,height:24,pointerEvents:"none"})),j=styled(motion.div)(({theme:i})=>({border:`1px solid ${i.palette.divider}`,borderRadius:12,height:24,display:"flex",alignItems:"center",justifyContent:"center",background:i.palette.background.paper,fontSize:12,position:"absolute",top:0,left:0,boxSizing:"border-box",whiteSpace:"nowrap",lineHeight:1,transition:"width 180ms ease-out, padding 180ms ease-out"})),F=styled(motion.div)(({theme:i})=>({border:`1px solid ${i.palette.divider}`,borderRadius:12,height:24,minWidth:24,display:"inline-flex",alignItems:"center",justifyContent:"center",background:i.palette.background.paper,overflow:"hidden",position:"relative",boxSizing:"border-box",whiteSpace:"nowrap",fontSize:12,lineHeight:1})),U={position:"relative",overflow:"visible",zIndex:1,display:"flex",alignItems:"center",justifyContent:"center"};function q({icons:i}){let[s,I]=useState(false),[l,R]=useState([]),P=useRef(null),S=useRef(null),y=useRef([]),e=useRef(null),u=i??[],b=Math.max(0,(u.length??1)-1),T=u[b],o=u.slice(0,b),{peekItems:w,mainShiftX:m,guardLeft:A,guardWidth:H}=useMemo(()=>{let t=o.length,D=l.length===t&&l.every(n=>n>0),g=-6*t,p=D?l.reduce((n,a)=>n+a,0):t*h,x=Math.max(0,t-1)*v,d=Math.round(s?g+p+v*t:0),E=t-1,C=-6*(E+1),z=[];for(let n=0;n<t;n++){let a=t-1-n,Z=-6*(n+1),ee=D?l.slice(0,a).reduce((_,ne)=>_+ne,0)+v*a:(h+v)*a,te=Math.round(n===E?C:C+ee);z.push({key:`peek-${n}`,rIdx:n,origIdx:a,offX:Z,hoverX:te,zIndex:t-n,refCb:_=>{y.current[a]=_;},content:o[a]});}let V=C,Y=p+x;return {peekItems:z,mainShiftX:d,guardLeft:V,guardWidth:Y}},[o,l,s]),r=useCallback(()=>{e.current&&(clearTimeout(e.current),e.current=null);},[]),f=useCallback(()=>{let g=o.map((p,x)=>{let d=y.current[x];if(!d)return h;let E=d.scrollWidth||h,C=Math.max(h,E+12+2);return Math.ceil(C)});R(p=>p.length===g.length&&p.every((x,d)=>x===g[d])?p:g);},[o.length]),K=useCallback(()=>{r(),I(true);},[r]),Q=useCallback(()=>{r(),e.current=setTimeout(()=>I(false),120);},[r]);return useEffect(()=>()=>r(),[r]),useEffect(()=>{f();},[o.length]),useEffect(()=>{if(!s)return;let t=window.requestAnimationFrame(()=>{f();});return ()=>window.cancelAnimationFrame(t)},[s,f]),{isHovering:s,handleMouseEnter:K,handleRootMouseLeave:Q,rootRef:P,mainChipRef:S,peekItems:w,mainShiftX:m,mainIcon:T,guardLeft:A,guardWidth:H}}function J({icons:i=[],expandedZIndex:s=1e3,sx:I}){let l=zc(useId(),"left-peek-right-expanding-chip"),{handleMouseEnter:R,handleRootMouseLeave:P,rootRef:S,mainChipRef:y,isHovering:e,peekItems:u,mainShiftX:b,mainIcon:T}=q({icons:i});return jsx(re,{id:l,sx:{...U,...I},"data-testid":"LeftPeekRightExpandingChipBox",children:jsx(B,{ref:S,onMouseLeave:P,onMouseEnter:R,children:jsxs(G,{"data-testid":"Container",initial:false,children:[jsx(O,{"data-testid":"PeekStack",onMouseEnter:R,onMouseLeave:P,style:{pointerEvents:e?"auto":"none"},children:jsx(AnimatePresence,{initial:false,children:u.map(({key:o,rIdx:w,offX:m,hoverX:A,zIndex:H,refCb:r,content:f})=>jsx(j,{"data-testid":`LeftPeekChip-${w}`,ref:r,initial:{opacity:0,scale:.95,x:m,y:0},animate:{opacity:1,scale:1,x:e?A:m,y:0},exit:{opacity:0,scale:.95,x:m,y:0},transition:{duration:.18,ease:"easeOut"},style:{zIndex:H,width:e?"auto":24,minWidth:24,padding:e?"0 6px":0,whiteSpace:"nowrap",overflow:e?"visible":"hidden",pointerEvents:e?"auto":"none"},children:e&&jsx(Fragment,{children:f})},o))})}),jsx(F,{"data-testid":"MainChip",ref:y,style:{zIndex:s+10,padding:"0 6px"},initial:false,animate:{x:e?b:0},transition:{duration:.18,ease:"easeOut"},children:T})]})})})}export{J as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {zc}from'./chunk-
|
|
1
|
+
import {zc}from'./chunk-2OTSLKKQ.js';import {memo,useId}from'react';import {styled,CircularProgress}from'@mui/material';import {jsx}from'react/jsx-runtime';var o=styled(CircularProgress)(()=>({width:"24px !important",height:"24px !important",padding:"5px",".MuiCircularProgress-root":{width:"14px !important",height:"14px !important",display:"flex"},".MuiCircularProgress-circle":{strokeWidth:"1.017px",stroke:"rgba(0, 0, 0, 0.62)"}}));function t(i){let p=zc(useId(),"loader");return jsx(o,{id:p,"data-testid":"Loader",...i})}t.displayName="Loader";var e=memo(t);var P=e;export{P as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {zc}from'./chunk-
|
|
1
|
+
import {zc}from'./chunk-2OTSLKKQ.js';import {fc}from'./chunk-M5HS3EYQ.js';import {useId}from'react';import {motion}from'framer-motion';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var e=styled(motion.img,{shouldForwardProp:n=>n!=="width"&&n!=="height"})(({width:n,height:i})=>({width:n||"16px",height:i||"16px"}));var h=({width:n,height:i,sx:p}={})=>{let m=zc(useId(),"animated-spinner-icon");return jsx(e,{id:m,"data-testid":"AnimatedSpinnerIcon",src:fc,alt:"Loading",className:"spinner-loader",width:n,height:i,sx:p,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2}})},r=h;var u=r;export{u as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {zc,Ia}from'./chunk-
|
|
1
|
+
import {zc,Ia}from'./chunk-2OTSLKKQ.js';import {useId}from'react';import d from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,Fragment,jsx}from'react/jsx-runtime';var o=styled("span")(()=>({fontWeight:"400"}));function y({amount:p,currency:u,...c}){let a=zc(useId(),"currency-amount"),{integerAmount:i,decimalAmount:r}=Ia(p,u);return jsxs(d,{...c,id:a,"data-testid":"CurrencyAmount",component:"span",children:[i,r&&jsxs(Fragment,{children:[".",jsx(o,{className:"decimal-amount",children:r})]})]})}var m=y;var b=m;export{o as a,b};
|