@tap-payments/os-micro-frontend-shared 0.3.169 → 0.3.170
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-RJ2CHCRC.js → chunk-2IEIHK5L.js} +1 -1
- package/build/_chunks/{chunk-YNCRHG2V.js → chunk-2II3PIPV.js} +1 -1
- package/build/_chunks/{chunk-NL5A5JRS.js → chunk-2ONEFZQ3.js} +1 -1
- package/build/_chunks/{chunk-37MMGHJP.js → chunk-32XNGJJX.js} +1 -1
- package/build/_chunks/{chunk-QQBR2YOE.js → chunk-34W6A2EW.js} +1 -1
- package/build/_chunks/{chunk-55DNPRT6.js → chunk-4AM27BVT.js} +1 -1
- package/build/_chunks/{chunk-BUZKD5FY.js → chunk-4Q3P5OVC.js} +1 -1
- package/build/_chunks/{chunk-MY32HZWD.js → chunk-4UFALKAY.js} +1 -1
- package/build/_chunks/{chunk-U4BS6S22.js → chunk-57FCA4PR.js} +1 -1
- package/build/_chunks/{chunk-CM775HHS.js → chunk-5O4ACTMO.js} +1 -1
- package/build/_chunks/{chunk-KAZ3B4EF.js → chunk-5SLDZGLX.js} +1 -1
- package/build/_chunks/{chunk-4XJAK7Y3.js → chunk-5ZZCVF4B.js} +1 -1
- package/build/_chunks/chunk-6CF4CODV.js +1 -0
- package/build/_chunks/{chunk-HVSVEO2H.js → chunk-6G45KTCP.js} +1 -1
- package/build/_chunks/{chunk-TJ3OW2D3.js → chunk-73MHTQIF.js} +1 -1
- package/build/_chunks/{chunk-E2LVWSWC.js → chunk-7MQ3VKWW.js} +1 -1
- package/build/_chunks/{chunk-J4335JLA.js → chunk-AJVH62M3.js} +1 -1
- package/build/_chunks/{chunk-WRVGVKKK.js → chunk-ALU4ED6U.js} +1 -1
- package/build/_chunks/{chunk-2M46764T.js → chunk-AMD6YF2E.js} +1 -1
- package/build/_chunks/{chunk-IWVUS45E.js → chunk-B2CHLXPQ.js} +1 -1
- package/build/_chunks/{chunk-M5HH57QL.js → chunk-BBC44PBI.js} +1 -1
- package/build/_chunks/{chunk-ER5YRXAN.js → chunk-BMUPHUDC.js} +1 -1
- package/build/_chunks/{chunk-SZ2JIMZR.js → chunk-CSUO5V7Y.js} +1 -1
- package/build/_chunks/{chunk-CJ2HZARO.js → chunk-CTWWYIUW.js} +1 -1
- package/build/_chunks/{chunk-U3V6OJGV.js → chunk-CYGOLBLN.js} +1 -1
- package/build/_chunks/{chunk-Z72ELNOV.js → chunk-D62QZ7FH.js} +1 -1
- package/build/_chunks/{chunk-FTQKOVBZ.js → chunk-DLYIC7LX.js} +1 -1
- package/build/_chunks/{chunk-ZUSZEL4Y.js → chunk-ECFMPEKG.js} +1 -1
- package/build/_chunks/{chunk-IU2CIO6M.js → chunk-ELYWQI63.js} +1 -1
- package/build/_chunks/chunk-EQLHDGOW.js +1 -0
- package/build/_chunks/{chunk-VB4YIOWN.js → chunk-EUDSF3XM.js} +1 -1
- package/build/_chunks/{chunk-RXLAHJVL.js → chunk-EUEVNPSG.js} +1 -1
- package/build/_chunks/{chunk-VFOCLQKK.js → chunk-FCYFKZN4.js} +1 -1
- package/build/_chunks/{chunk-2L6YN6BY.js → chunk-FYMLKBWA.js} +1 -1
- package/build/_chunks/{chunk-PFJKJASK.js → chunk-G44IPJYN.js} +1 -1
- package/build/_chunks/{chunk-7VD4W2MV.js → chunk-HAOFRIMW.js} +1 -1
- package/build/_chunks/{chunk-FLITA5BR.js → chunk-HYAHCE4V.js} +1 -1
- package/build/_chunks/{chunk-NTLRKE5H.js → chunk-IP74OBDP.js} +1 -1
- package/build/_chunks/chunk-IPXIZEX4.js +2 -0
- package/build/_chunks/{chunk-MOOH3WQ6.js → chunk-JDMBYSHD.js} +1 -1
- package/build/_chunks/{chunk-WXOQQKYA.js → chunk-KJKTKQFF.js} +1 -1
- package/build/_chunks/{chunk-5SZU46PP.js → chunk-KSOVBMNE.js} +1 -1
- package/build/_chunks/{chunk-VGIO2RGM.js → chunk-KUOKFWXS.js} +1 -1
- package/build/_chunks/{chunk-5ETS6LOQ.js → chunk-LPU4DLAN.js} +1 -1
- package/build/_chunks/{chunk-LASNRFJB.js → chunk-MAZXZZSJ.js} +1 -1
- package/build/_chunks/{chunk-RDCA43PM.js → chunk-MSX6IV3H.js} +1 -1
- package/build/_chunks/{chunk-N2LPXJYV.js → chunk-MXXAZH6N.js} +1 -1
- package/build/_chunks/{chunk-2LRXPCXS.js → chunk-NU32IXFK.js} +1 -1
- package/build/_chunks/{chunk-DWSY5MWS.js → chunk-ON3R4M3U.js} +1 -1
- package/build/_chunks/{chunk-VLEEU2FO.js → chunk-OXB5ZCKH.js} +1 -1
- package/build/_chunks/{chunk-23MKWEAQ.js → chunk-PI37WQUM.js} +1 -1
- package/build/_chunks/chunk-Q2Q2IXLX.js +15 -0
- package/build/_chunks/{chunk-CATRH4QL.js → chunk-QA4IZBFF.js} +1 -1
- package/build/_chunks/{chunk-EWNP6TOO.js → chunk-QBVIXPYJ.js} +1 -1
- package/build/_chunks/{chunk-I3P7QPUA.js → chunk-QC674A3R.js} +1 -1
- package/build/_chunks/{chunk-HNUCLGTM.js → chunk-QGIUFATL.js} +1 -1
- package/build/_chunks/{chunk-56NDTN6N.js → chunk-R26A2GDD.js} +1 -1
- package/build/_chunks/{chunk-GZ4VIHY2.js → chunk-RFSR64TF.js} +1 -1
- package/build/_chunks/chunk-RGHVZKKB.js +2 -0
- package/build/_chunks/{chunk-MARRXRP5.js → chunk-RIIDTK4T.js} +1 -1
- package/build/_chunks/{chunk-FJU2BCBZ.js → chunk-RKDVYNO5.js} +1 -1
- package/build/_chunks/{chunk-37HMYKL2.js → chunk-RZIO5KW7.js} +1 -1
- package/build/_chunks/{chunk-2KLQQ4GT.js → chunk-SA72YYWW.js} +1 -1
- package/build/_chunks/{chunk-624CB4ZD.js → chunk-SKWOFSTP.js} +1 -1
- package/build/_chunks/{chunk-KVOFAN6O.js → chunk-SLTY4KD6.js} +1 -1
- package/build/_chunks/{chunk-CMM74PXZ.js → chunk-SUBIH236.js} +1 -1
- package/build/_chunks/{chunk-6E3W2EBT.js → chunk-TE4NMDPX.js} +1 -1
- package/build/_chunks/chunk-THN4PMLJ.js +1 -0
- package/build/_chunks/{chunk-EDRNAIB5.js → chunk-TIB7OG4H.js} +1 -1
- package/build/_chunks/{chunk-IEKEIKGI.js → chunk-TLXHHZNM.js} +1 -1
- package/build/_chunks/{chunk-YZJXQCM7.js → chunk-UBBMGCM2.js} +1 -1
- package/build/_chunks/{chunk-LDK72NPY.js → chunk-UDCZTC7R.js} +1 -1
- package/build/_chunks/{chunk-ATOOWVEE.js → chunk-UJSTHVLW.js} +1 -1
- package/build/_chunks/{chunk-OXEFLXNE.js → chunk-UWK7C3OQ.js} +1 -1
- package/build/_chunks/{chunk-OJFT5TWY.js → chunk-UYDM5BBG.js} +1 -1
- package/build/_chunks/{chunk-GI5WPWRG.js → chunk-V4UV2ODA.js} +1 -1
- package/build/_chunks/{chunk-23FZIGHL.js → chunk-VCCUFQCS.js} +1 -1
- package/build/_chunks/{chunk-QG7IDQOX.js → chunk-VXMY5TE6.js} +1 -1
- package/build/_chunks/{chunk-EG4YTSUA.js → chunk-W5RQHQ2Z.js} +1 -1
- package/build/_chunks/{chunk-MXISJOX2.js → chunk-W6W4YZ7G.js} +1 -1
- package/build/_chunks/{chunk-FA67CAI7.js → chunk-WDPEG4N2.js} +1 -1
- package/build/_chunks/{chunk-2SBTZEUM.js → chunk-WJML27P6.js} +1 -1
- package/build/_chunks/{chunk-KOVN2TXQ.js → chunk-WMNFDDLA.js} +1 -1
- package/build/_chunks/{chunk-V2V4UQFR.js → chunk-WWEOT6XF.js} +1 -1
- package/build/_chunks/{chunk-U5Q77KAU.js → chunk-XFDWIT4G.js} +1 -1
- package/build/_chunks/{chunk-RBELN5RP.js → chunk-XQYCJYZI.js} +1 -1
- package/build/_chunks/{chunk-TSYM2TD4.js → chunk-Y7DN6PV3.js} +1 -1
- package/build/_chunks/{chunk-HFHPK2BI.js → chunk-YCMS6QNU.js} +1 -1
- package/build/_chunks/{chunk-KHEICEBV.js → chunk-YCZIYVQU.js} +1 -1
- package/build/_chunks/{chunk-CC73AV3J.js → chunk-YHZCWI2Z.js} +1 -1
- package/build/_chunks/{chunk-J6HEXAGE.js → chunk-YL2COX6W.js} +1 -1
- package/build/_chunks/{chunk-QXSUU6NA.js → chunk-Z4IUZWD2.js} +1 -1
- package/build/components/AccountDropdown/index.js +1 -1
- package/build/components/ActionMenu/index.js +1 -1
- package/build/components/ActionsDropdownMenu/index.js +1 -1
- package/build/components/ActiveFilterChip/index.js +1 -1
- package/build/components/ActivityAreaChart/index.js +1 -1
- package/build/components/AmountConversionFilter/index.js +1 -1
- package/build/components/AmountInput/index.js +1 -1
- package/build/components/AmountSlider/index.js +1 -1
- package/build/components/AmountStatusChip/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/AuthenticationTypeChip/index.js +1 -1
- package/build/components/Autocomplete/index.js +1 -1
- package/build/components/BetaBanner/index.js +1 -1
- package/build/components/BrandLogo/index.js +1 -1
- package/build/components/Button/index.js +1 -1
- package/build/components/Calender/index.js +1 -1
- package/build/components/CardEmptyState/index.js +1 -1
- package/build/components/Chip/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/CopyImage/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/CurrencyFilter/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/Dialog/index.js +1 -1
- package/build/components/Discount/index.js +1 -1
- package/build/components/DisplayAmount/index.js +1 -1
- package/build/components/Dropdown2/index.js +1 -1
- package/build/components/DropdownButton/index.js +1 -1
- package/build/components/DropdownMenu/index.js +1 -1
- package/build/components/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/IOSSwitch/index.js +1 -1
- package/build/components/Icon/index.js +1 -1
- package/build/components/IconWithBadge/index.js +1 -1
- package/build/components/Input/index.js +1 -1
- package/build/components/InputBase/InputBase/InputBase.d.ts +1 -1
- package/build/components/InputBase/InputBase/style.d.ts +1 -1
- package/build/components/InputBase/PhoneInputBase/PhoneInputBase.d.ts +1 -1
- package/build/components/InputBase/PhoneInputBase/style.d.ts +1 -1
- package/build/components/InputBase/SelectBase/SelectBase.d.ts +1 -1
- package/build/components/InputBase/SelectBase/SelectBaseMultiple.d.ts +1 -1
- package/build/components/InputBase/SelectBase/style.d.ts +1 -1
- package/build/components/InputBase/index.js +1 -1
- package/build/components/InputNumber/index.js +1 -1
- package/build/components/Inputs/Input/style.d.ts +1 -1
- package/build/components/Inputs/Input/type.d.ts +1 -1
- package/build/components/Inputs/index.d.ts +1 -2
- package/build/components/Inputs/index.js +1 -1
- package/build/components/JSONViewer/index.js +1 -1
- package/build/components/LanguageDropdown/index.js +1 -1
- package/build/components/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/Menu/index.js +1 -1
- package/build/components/MenuItem/index.js +1 -1
- package/build/components/MerchantCurrencyDropdown/index.js +1 -1
- package/build/components/MerchantLogo/index.js +1 -1
- package/build/components/MerchantsDropdown/index.js +1 -1
- package/build/components/MultiSelectDropdownButton/index.js +1 -1
- package/build/components/MultiSelectWithSearch/index.js +1 -1
- package/build/components/NestedDropdown/index.js +1 -1
- package/build/components/NoInternet/index.js +1 -1
- package/build/components/OpenFileInNewTab/index.js +1 -1
- package/build/components/PartnersFilter/index.js +1 -1
- package/build/components/PaymentSourceFilter/index.js +1 -1
- package/build/components/PhoneFilter/index.js +1 -1
- package/build/components/ProgressRing/index.js +1 -1
- package/build/components/RFH/Inputs/FormSelect/style.d.ts +1 -1
- package/build/components/RFH/index.js +1 -1
- package/build/components/RadioGroup/index.js +1 -1
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/RatingCount/index.js +1 -1
- package/build/components/ReceiptsViewer/index.js +1 -1
- package/build/components/ReferenceTypeFilter/index.js +1 -1
- package/build/components/ResizableHeightInput/index.js +1 -1
- package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
- package/build/components/SalesChannelFilter/index.js +1 -1
- package/build/components/SearchButton/index.js +1 -1
- package/build/components/SearchListInput/index.js +1 -1
- package/build/components/SelectDropdown/index.js +1 -1
- package/build/components/SelectWithSearch/index.js +1 -1
- package/build/components/Slider/index.js +1 -1
- package/build/components/StatusBar/index.js +1 -1
- package/build/components/StatusButton/index.js +1 -1
- package/build/components/StatusChip/index.js +1 -1
- package/build/components/StatusChipWithCopy/index.js +1 -1
- package/build/components/StatusFilter/index.js +1 -1
- package/build/components/StatusGroupChips/index.js +1 -1
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/StatusLabel/index.js +1 -1
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TableReports/index.js +1 -1
- package/build/components/Timepicker/index.js +1 -1
- package/build/components/ToggleView/index.js +1 -1
- package/build/components/Toolbar/index.js +1 -1
- package/build/components/TooltipChip/index.js +1 -1
- package/build/components/TreeDropdown/index.js +1 -1
- package/build/components/VAT/index.js +1 -1
- package/build/components/VerificationIcon/index.js +1 -1
- package/build/components/ViewColumnRadioFilter/index.js +1 -1
- package/build/components/VirtualTables/index.js +1 -1
- package/build/components/Widget/index.js +1 -1
- package/build/components/WindowAppIcon/index.js +1 -1
- package/build/components/WindowSideBar/index.js +1 -1
- package/build/components/index.d.ts +1 -1
- package/build/components/index.js +1 -1
- package/build/components/primitives/FieldFeedback/constants.d.ts +2 -2
- package/build/components/primitives/FieldFeedback/index.d.ts +2 -1
- package/build/components/primitives/FieldFeedback/style.d.ts +9 -0
- package/build/components/primitives/index.d.ts +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/fieldFeedback.d.ts +26 -0
- package/build/utils/index.d.ts +1 -0
- package/build/utils/index.js +1 -1
- package/package.json +1 -1
- package/build/_chunks/chunk-CIF3RMYW.js +0 -15
- package/build/_chunks/chunk-D2RM2VO2.js +0 -1
- package/build/_chunks/chunk-FPEXFSFO.js +0 -1
- package/build/_chunks/chunk-RAIKBMLV.js +0 -1
- package/build/_chunks/chunk-XFG2PKVJ.js +0 -2
- package/build/_chunks/chunk-YTESL64R.js +0 -2
- package/build/_chunks/chunk-ZFTEDE2C.js +0 -1
- package/build/components/FieldFeedback/FieldFeedback.d.ts +0 -3
- package/build/components/FieldFeedback/index.d.ts +0 -5
- package/build/components/FieldFeedback/index.js +0 -1
- package/build/components/FieldFeedback/style.d.ts +0 -8
- package/build/components/FieldFeedback/type.d.ts +0 -11
- package/build/components/FieldFeedback/utils.d.ts +0 -11
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import {kc,yc,ab,Zb,jc,xa as xa$1}from'./chunk-MXISJOX2.js';import {forwardRef,memo,useId,createElement,useState,useCallback,useMemo,Children,useEffect,useRef}from'react';import qe from'@mui/material/Box';import Oa,{circularProgressClasses}from'@mui/material/CircularProgress';import Ra from'@mui/material/ButtonBase';import {styled,alpha,useTheme}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import jo from'@mui/material/SvgIcon';import Ya from'@mui/material/Checkbox';import _a from'@mui/material/FormControlLabel';import es from'@mui/material/Switch';import is from'@mui/material/Typography';import ys from'@mui/material/Radio';import Bs from'@mui/material/Tooltip';import Ds from'@mui/material/Skeleton';import Vs from'@mui/material/Avatar';import Gs from'@mui/material/Divider';import en from'@mui/material/Collapse';import {createPortal}from'react-dom';import gn from'@mui/material/Backdrop';import Vn,{SliderThumb}from'@mui/material/Slider';import Yn from'@mui/material/FormControl';import _n from'@mui/material/InputLabel';import qn from'@mui/material/Input';import ri from'@mui/material/InputBase';import li from'@mui/material/Accordion';import pi from'@mui/material/AccordionDetails';import di from'@mui/material/AccordionSummary';import gi from'@mui/material/Popper';import vi from'@mui/material/Dialog';import ki from'@mui/material/DialogActions';import wi from'@mui/material/DialogContent';import Ii from'@mui/material/DialogTitle';import {LazyLoadImage}from'react-lazy-load-image-component';import rl from'@mui/material/Stack';var L="os-shared-Button",v={root:`${L}-root`,content:`${L}-content`,startIcon:`${L}-startIcon`,endIcon:`${L}-endIcon`,icon:`${L}-icon`,loading:`${L}-loading`,loadingSpinner:`${L}-loadingSpinner`},Ce={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"}},he={sm:{width:24,minWidth:24,height:24,padding:0},md:{width:30,minWidth:30,height:30,padding:0},lg:{width:38,minWidth:38,height:38,padding:0}},be={sm:12,md:12,lg:14};var Ne=styled(Ra,{shouldForwardProp:o=>o!=="$variant"&&o!=="$size"&&o!=="$fullWidth"&&o!=="$isLoading"&&o!=="$hasIcon"&&o!=="$isIconOnly"})(({theme:o,$variant:e="primary",$size:t="md",$fullWidth:r,$isLoading:a,$hasIcon:s,$isIconOnly:i})=>{let n=o.v2.palette,{paddingX:p,paddingY:d,...c}=Ce[t],f=he[t];return {display:"inline-flex",alignItems:"center",justifyContent:"center",gap:o.v2.spacing(6),borderRadius:o.v2.radius(4),lineHeight:"100%",whiteSpace:"nowrap",position:"relative",cursor:a?"not-allowed":"pointer",transition:"background-color 0.15s ease, opacity 0.15s ease",...c,padding:`${o.v2.spacing(d)} ${o.v2.spacing(p)}`,fontWeight:o.typography.fontWeightMedium,...r&&!i&&{width:"100%"},...s&&!r&&!i&&{width:"auto",minWidth:0},...e==="primary"&&{background:n.brand[500],color:n.base.white,"&.Mui-disabled":{opacity:1,background:n.interactive.primary.disabled,color:n.base.white}},...e==="secondary"&&{backgroundColor:n.base.white,color:n.grey[900],border:`1px solid ${n.grey[100]}`,"&.Mui-disabled":{opacity:1,color:n.foreground.disabled}},...e==="ghost"&&{padding:0,minWidth:0,backgroundColor:"transparent",color:n.foreground.brand,"&.Mui-disabled":{opacity:.5}},...e==="danger"&&{backgroundColor:n.status.danger.default,color:n.base.white,"&.Mui-disabled":{opacity:1,backgroundColor:alpha(n.status.danger.default,.14),color:n.base.white}},...i&&{boxSizing:"border-box",...f}}}),q=styled("span")(({theme:o})=>{let e=o.v2.spacing(16);return {display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,width:e,height:e}});var ke=forwardRef(({children:o,variant:e="primary",size:t="md",isLoading:r=false,startIcon:a,endIcon:s,icon:i,fullWidth:n=false,disabled:p,className:d,sx:c,...f},u)=>{let m=i!=null;return jsxs(Ne,{ref:u,className:kc(v.root,d),$variant:e,$size:t,$fullWidth:n,$isLoading:r,$hasIcon:m||!!a||!!s||r,$isIconOnly:m,disabled:p||r,"data-testid":"Button",sx:c,...f,children:[jsx(qe,{component:"span",className:v.content,sx:{display:"inline-flex",alignItems:"center",gap:"inherit",visibility:r?"hidden":"visible"},children:m?jsx(q,{className:v.icon,children:i}):jsxs(Fragment,{children:[a&&jsx(q,{className:v.startIcon,children:a}),o,s&&jsx(q,{className:v.endIcon,children:s})]})}),r&&jsx(q,{className:v.loading,sx:{position:"absolute"},children:jsx(Oa,{className:v.loadingSpinner,size:be[t],color:"inherit"})})]})});ke.displayName="Button";var we=memo(ke);var ja="os-shared-Icon",lo={root:`${ja}-root`};var Ie=styled("img")(({theme:o})=>({width:o.v2.spacing(16),height:o.v2.spacing(16),verticalAlign:"middle",flexShrink:0}));var Be=forwardRef(({className:o,sx:e,...t},r)=>jsx(Ie,{className:kc(lo.root,o),sx:e,"data-testid":"Icon",...t,ref:r}));Be.displayName="Icon";var Te=memo(Be);var Zo="os-shared-Checkbox",F={root:`${Zo}-root`,control:`${Zo}-control`,label:`${Zo}-label`};var Pe=({disabled:o,...e})=>{let{v2:t}=useTheme(),{brand:r,base:a,foreground:s}=t.palette;return jsxs(jo,{viewBox:"0 0 12 12",sx:{width:12,height:12},...e,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:o?s.disabled:r[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74206C9.04243 3.9443 9.05652 4.28711 8.86537 4.50775L5.64586 8.22387C5.55146 8.33284 5.41909 8.39627 5.27942 8.39948C5.13975 8.40269 5.0049 8.3454 4.90612 8.24088L3.15002 6.38282C2.94999 6.17118 2.94999 5.82804 3.15002 5.61641C3.35004 5.40477 3.67435 5.40477 3.87437 5.61641L5.2522 7.07424L8.11024 3.77535C8.30138 3.55472 8.62538 3.53981 8.83391 3.74206Z",fill:a.white})]})},$e=({disabled:o,...e})=>{let{v2:t}=useTheme(),{base:r,grey:a}=t.palette;return jsx(jo,{viewBox:"0 0 12 12",sx:{width:12,height:12},...e,children:jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"1.8",fill:o?a[50]:r.white,stroke:o?a[200]:a[500],strokeWidth:"1.2"})})},Me=({disabled:o,...e})=>{let{v2:t}=useTheme(),{brand:r,base:a,foreground:s}=t.palette;return jsxs(jo,{viewBox:"0 0 12 12",sx:{width:12,height:12},...e,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:o?s.disabled:r[500]}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:a.white})]})};var ze=styled(Ya)(({theme:o})=>({padding:o.v2.spacing(2),"&:hover":{backgroundColor:"transparent"}})),De=styled(_a)(({theme:o})=>{let{base:e,grey:t}=o.v2.palette;return {marginLeft:0,gap:o.v2.spacing(4),"& .MuiFormControlLabel-label":{fontSize:"11px",color:e.black},"& .MuiFormControlLabel-label.Mui-disabled":{color:t[500]}}});var Ae=forwardRef(({label:o,labelPlacement:e="end",disabled:t,sx:r,className:a,...s},i)=>{let n=yc(useId(),"checkbox"),p=jsx(ze,{id:n,ref:i,disableRipple:true,disabled:t,checkedIcon:jsx(Pe,{disabled:t}),icon:jsx($e,{disabled:t}),indeterminateIcon:jsx(Me,{disabled:t}),"data-testid":"Checkbox",className:kc(o?F.control:F.root,o?void 0:a),sx:o?void 0:r,...s});return o?jsx(De,{className:kc(F.root,a),sx:r,control:p,label:o,labelPlacement:e,disabled:t,componentsProps:{typography:{className:F.label}}}):p});Ae.displayName="Checkbox";var Re=memo(Ae);var os="os-shared-Switch",po={root:`${os}-root`};var Ee=styled(es)(({theme:o,disabled:e})=>{let{base:t,grey:r,success:a}=o.v2.palette;return {width:28,height:16,padding:0,borderRadius:o.v2.radius(8),opacity:e?.5:1,overflow:"visible","& .MuiSwitch-switchBase":{padding:0,margin:o.v2.spacing(1),color:t.white,transitionDuration:"300ms","&:hover":{backgroundColor:"transparent"},"&.Mui-focusVisible":{outline:`2px solid ${r[400]}`,outlineOffset:2},"&.Mui-checked":{transform:"translateX(12px)",color:t.white,"& + .MuiSwitch-track":{backgroundColor:a[500],opacity:1,border:0}},"&.Mui-disabled":{color:t.white,"& + .MuiSwitch-track":{opacity:1},"& .MuiSwitch-thumb":{filter:"none"}},"&.Mui-checked.Mui-disabled":{color:t.white}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:14,height:14,color:t.white,backgroundColor:t.white,boxShadow:"none",filter:e?"none":"drop-shadow(0px 3px 0.5px rgba(0, 0, 0, 0.04)) drop-shadow(0px 3px 4px rgba(0, 0, 0, 0.12))"},"& .MuiSwitch-track":{borderRadius:o.v2.radius(8),backgroundColor:"#D9D9D9",opacity:1,transition:o.transitions.create(["background-color"],{duration:300})}}});var We=forwardRef(({className:o,sx:e,...t},r)=>jsx(Ee,{ref:r,className:kc(po.root,o),sx:e,"data-testid":"Switch",disableRipple:true,...t}));We.displayName="Switch";var He=memo(We);var ns="os-shared-Typography",co={root:`${ns}-root`};var Ve=styled(is)(({theme:o})=>{let{base:e}=o.v2.palette;return {color:e.black}});var Oe=forwardRef(({variant:o="body1",weight:e,isTruncated:t=false,isUppercase:r=false,className:a,sx:s,...i},n)=>{let p=useTheme(),d={regular:p.typography.fontWeightRegular,medium:p.typography.fontWeightMedium,semibold:p.typography.fontWeightBold,bold:p.typography.fontWeightBolder??700},c=e!==void 0?typeof e=="number"?e:d[e]:void 0,f=Array.isArray(s)?s:[s];return jsx(Ve,{ref:n,className:kc(co.root,a),variant:o,sx:[c!==void 0&&{fontWeight:c},t&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r&&{textTransform:"uppercase"},...f],"data-testid":"Typography",...i})});Oe.displayName="Typography";var Ze=memo(Oe);var fs="os-shared-RadioButton";var mo={root:`${fs}-root`};var Ue=({disabled:o,...e})=>{let{v2:t}=useTheme(),{brand:r,base:a}=t.palette,s=o?"#BDC1CC":r[500];return jsxs(jo,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...e,children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"4.8",fill:s,stroke:s,strokeWidth:"1.2",style:{fill:s,stroke:s}}),jsx("circle",{cx:"6",cy:"6",r:"2.25",fill:a.white,style:{fill:a.white}})]})},Xe=({disabled:o,...e})=>{let{v2:t}=useTheme(),{base:r,grey:a}=t.palette,s=o?a[50]:r.white,i=o?a[200]:a[500];return jsx(jo,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...e,children:jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"4.8",fill:s,stroke:i,strokeWidth:"1.2",style:{fill:s,stroke:i}})})};var Ge=styled(ys)(({theme:o})=>({padding:o.v2.spacing(2),"&:hover":{backgroundColor:"transparent"},"& .MuiSvgIcon-root":{fontSize:12,width:12,height:12}}));var Ye=forwardRef(({disabled:o,sx:e,className:t,...r},a)=>jsx(Ge,{ref:a,disableRipple:true,disabled:o,checkedIcon:jsx(Ue,{disabled:o}),icon:jsx(Xe,{disabled:o}),"data-testid":"RadioButton",className:kc(mo.root,t),sx:e,...r}));Ye.displayName="RadioButton";var _e=memo(Ye);var uo="os-shared-CircularProgress",z={root:`${uo}-root`,progress:`${uo}-progress`,labelOverlay:`${uo}-labelOverlay`,labelText:`${uo}-labelText`};var Je=styled(Oa)(({theme:o})=>{let{brand:e}=o.v2.palette;return {color:"#147DC5",background:alpha(e[500],.05),borderRadius:"50%",[`& .${circularProgressClasses.circle}`]:{strokeLinecap:"round"}}}),Qe=styled(qe)(()=>({position:"relative",display:"inline-flex"})),ot=styled(qe)(()=>({top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"})),et=styled(is)(({theme:o})=>({fontSize:o.typography.fontSize,fontWeight:o.typography.fontWeightBolder??700,color:"#3B4152"}));var tt=forwardRef(({variant:o="indeterminate",hasLabel:e=true,value:t,className:r,sx:a,...s},i)=>{let n=o==="determinate"&&e;return jsxs(Qe,{className:kc(z.root,r),sx:a,"data-testid":"CircularProgress",children:[jsx(Je,{ref:i,variant:o,value:t,className:z.progress,...s}),n&&jsx(ot,{className:z.labelOverlay,children:jsx(et,{className:z.labelText,variant:"caption",color:"text.secondary",children:`${Math.round(t??0)}%`})})]})});tt.displayName="CircularProgress";var rt=memo(tt);var D="os-shared-Tooltip",h={popper:`${D}-popper`,tooltip:`${D}-tooltip`,arrow:`${D}-arrow`,content:`${D}-content`,title:`${D}-title`,supportingText:`${D}-supportingText`,wrapper:`${D}-wrapper`};var at=styled(({className:o,...e})=>createElement(Bs,{...e,classes:{popper:kc(h.popper,o),tooltip:h.tooltip,arrow:h.arrow}}))(({theme:o})=>{let{base:e,grey:t}=o.v2.palette,r=e.white;return {zIndex:999999,[`& .${h.arrow}`]:{color:r,"&:before":{backgroundColor:r}},[`& .${h.tooltip}`]:{backgroundColor:r,color:t[700],boxShadow:o.v2.elevation[400],fontSize:12,fontWeight:400,lineHeight:1.2,padding:o.v2.spacing(8),borderRadius:o.v2.radius(8),border:`1px solid ${t[100]}`,maxWidth:320,wordBreak:"break-word"}}}),st=styled("div")(({theme:o})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",gap:o.v2.spacing(6),maxWidth:296,width:"100%"})),nt=styled("div",{shouldForwardProp:o=>o!=="$hasSupportingText"})(({theme:o,$hasSupportingText:e})=>{let{grey:t}=o.v2.palette;return {margin:0,fontSize:12,fontWeight:e?600:400,lineHeight:e?1:1.2,color:e?t[700]:alpha(t[700],.77),width:e?"100%":void 0}}),it=styled("div")(({theme:o})=>{let{grey:e}=o.v2.palette;return {margin:0,fontSize:11,fontWeight:400,lineHeight:"normal",color:e[500],width:"100%",whiteSpace:"pre-wrap"}});function Ms(o){return o!=null&&o!==false&&o!==""}function Ls(o,e){let t=Ms(e),r=jsx(nt,{className:h.title,$hasSupportingText:t,children:o});return t?jsxs(st,{className:h.content,children:[r,jsx(it,{className:h.supportingText,children:e})]}):r}function lt({className:o,title:e,supportingText:t,placement:r="top",children:a,wrapperProps:s,sx:i,...n}){let{className:p,...d}=s??{};return jsx(at,{className:o,title:Ls(e,t),placement:r,arrow:true,sx:i,...n,children:jsx(qe,{display:"flex",alignItems:"center","data-testid":"Tooltip",className:kc(h.wrapper,p),...d,children:a})})}lt.displayName="Tooltip";var pt=memo(lt);var zs="os-shared-Skeleton",Co={root:`${zs}-root`};var dt=styled(Ds)(()=>({}));var ct=forwardRef(({className:o,sx:e,variant:t="rounded",height:r=16,...a},s)=>jsx(dt,{ref:s,className:kc(Co.root,o),sx:e,"data-testid":"Skeleton",variant:t,height:r,...a}));ct.displayName="Skeleton";var mt=memo(ct);var Hs="os-shared-Avatar",ho={root:`${Hs}-root`},bo="xs",So="teal",ft={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"}},ut={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 Zs(o){let{from:e,to:t}=ft[o];return `linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%), linear-gradient(135deg, ${e} 0%, ${t} 100%)`}var yt=styled(Vs,{shouldForwardProp:o=>!["$size","$color"].includes(o)})(({theme:o,$size:e=bo,$color:t=So})=>{let{dimension:r,fontSize:a}=ut[e],{base:s}=o.v2.palette,i=Zs(t);return {width:r,height:r,flexShrink:0,fontSize:a,fontWeight:o.typography.fontWeightMedium,lineHeight:"normal",color:s.white,background:i,backgroundColor:"transparent","&.MuiAvatar-colorDefault":{color:s.white,background:i,backgroundColor:"transparent"}}});var gt=forwardRef(({className:o,sx:e,size:t=bo,color:r=So,...a},s)=>jsx(yt,{ref:s,className:kc(ho.root,o),sx:e,"data-testid":"Avatar",...a,$size:t,$color:r,variant:"circular"}));gt.displayName="Avatar";var xt=memo(gt);var Xs="os-shared-Divider",No={root:`${Xs}-root`};function _s(o,e){let{grey:t,border:r}=e.v2.palette;return o==="subtle"?r.subtle:t[100]}var Ct=styled(Gs,{shouldForwardProp:o=>o!=="$type"})(({theme:o,$type:e="default",orientation:t="horizontal"})=>({borderColor:_s(e,o),...t==="vertical"?{borderBottomWidth:0,borderRightWidth:1}:{borderBottomWidth:1}}));var ht=forwardRef(({className:o,sx:e,orientation:t="horizontal",type:r="default",...a},s)=>jsx(Ct,{ref:s,className:kc(No.root,o),sx:e,"data-testid":"Divider",orientation:t,$type:r,...a}));ht.displayName="Divider";var bt=memo(ht);var on="os-shared-Collapse",vo={root:`${on}-root`};var St=styled(en)(()=>({}));var Nt=forwardRef(({className:o,sx:e,children:t,unmountOnExit:r=true,timeout:a=300,...s},i)=>jsx(St,{ref:i,className:kc(vo.root,o),sx:e,"data-testid":"Collapse",unmountOnExit:r,timeout:a,...s,children:t}));Nt.displayName="Collapse";var vt=memo(Nt);var nn="os-shared-Badge",ko={root:`${nn}-root`},wo="default",kt={default:"#29b6f6",primary:"#1976d2",secondary:"#f50057",neutral:"#656565",gray:"#CFCFCF",orange:"#FFD503"};function dn(o,e){let{base:t,grey:r,brand:a,success:s,warning:i,error:n,gradient:p}=e.v2.palette;if(o==="highlight")return p.brand;let d=kt[o];return d||({inactive:r[100],active:alpha(t.black,.1),dark:a[500],red:n[500],success:s[500],warning:i[500],error:n[500]}[o]??t.white)}function cn(o,e){let{base:t}=e.v2.palette;return o==="inactive"?t.black:(t.white)}var It=styled("span",{shouldForwardProp:o=>!["$color","$compact","$round","$pointer"].includes(o)})(({theme:o,$color:e=wo,$compact:t,$round:r,$pointer:a})=>{let s=dn(e,o);return {paddingBlock:o.v2.spacing(2),paddingInline:t?"0.16056rem":r?"0.275rem":o.v2.spacing(4),borderRadius:t?o.v2.radius(4):r?o.v2.radius(16):o.v2.radius(48),background:s,color:cn(e,o),fontSize:"8px",fontWeight:700,lineHeight:"10px",letterSpacing:0,overflow:"hidden",height:t?"12px":r?"16px":void 0,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",cursor:a?"pointer":"auto"}});var Bt=forwardRef(({className:o,sx:e,color:t,state:r,compact:a,round:s,pointer:i,children:n,...p},d)=>{let c=t??r??wo;return jsx(It,{ref:d,className:kc(ko.root,o),sx:e,"data-testid":"Badge",...p,$color:c,$compact:a,$round:s,$pointer:i,children:n})});Bt.displayName="Badge";var Tt=memo(Bt);var yn="os-shared-Backdrop",Io={root:`${yn}-root`};var Pt=styled(gn,{shouldForwardProp:o=>o!=="$hasBlur"})(({theme:o,$hasBlur:e=false})=>{let t=e?o.v2.blur[6]:"none";return {zIndex:1,backgroundColor:alpha("#000",.3),backdropFilter:t,WebkitBackdropFilter:t}});var $t=forwardRef(({className:o,sx:e,open:t=true,hasBlur:r=false,onClose:a,onClick:s,...i},n)=>{if(!t)return null;let p=d=>{a?.(),s?.(d);};return createPortal(jsx(Pt,{open:t,$hasBlur:r,ref:n,className:kc(Io.root,o),sx:e,"data-testid":"Backdrop",onClick:p,...i}),document.body)});$t.displayName="Backdrop";var Mt=memo($t);var Bo="os-shared-CopyButton",B={root:`${Bo}-root`,icon:`${Bo}-icon`,copyIcon:`${Bo}-copyIcon`,copiedIcon:`${Bo}-copiedIcon`};var zt=o=>{let{v2:e}=useTheme(),{base:t}=e.palette;return jsx(jo,{sx:{height:12.6,width:13},...o,children:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"13",viewBox:"2.67 1.67 10.66 12.66",fill:"none",children:jsx("path",{d:"M11.3333 13.6978L11.3332 13.6979C11.1002 14.0479 10.7072 14.2582 10.2863 14.2582H5.83317C4.12559 14.2582 2.7415 12.8741 2.7415 11.1665V4.71338C2.7415 4.29279 2.95172 3.89983 3.30186 3.66641L3.5915 3.47331V11.1665C3.5915 12.4046 4.59508 13.4082 5.83317 13.4082H11.5264L11.3333 13.6978ZM4.40817 3.49984C4.40817 2.53467 5.20133 1.7415 6.1665 1.7415H11.4998C12.465 1.7415 13.2582 2.53467 13.2582 3.49984V10.8332C13.2582 11.7983 12.465 12.5915 11.4998 12.5915H6.1665C5.20133 12.5915 4.40817 11.7983 4.40817 10.8332V3.49984ZM11.4998 2.5915H6.1665C5.65901 2.5915 5.25817 2.99234 5.25817 3.49984V10.8332C5.25817 11.3407 5.65901 11.7415 6.1665 11.7415H11.4998C12.0073 11.7415 12.4082 11.3407 12.4082 10.8332V3.49984C12.4082 2.99234 12.0073 2.5915 11.4998 2.5915Z",fill:t.black,stroke:t.white,strokeWidth:"0.15"})})})},Dt=o=>{let{v2:e}=useTheme(),{success:t,base:r}=e.palette;return jsx(jo,{sx:{height:12.6,width:13},...o,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:t[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};var Rt=styled("span")({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:16,height:16,flexShrink:0,cursor:"pointer",verticalAlign:"middle"}),Go=styled("span",{shouldForwardProp:o=>o!=="$visible"})(({$visible:o})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:o?1:0,transition:"opacity 200ms ease"}));var Et=forwardRef(({className:o,sx:e,text:t,feedbackMs:r=2e3,onClick:a,...s},i)=>{let[n,p]=useState(false),d=c=>{c.stopPropagation(),ab(t),p(true),setTimeout(()=>p(false),r),a?.(c);};return jsxs(Rt,{ref:i,className:kc(B.root,o),sx:e,role:"button",tabIndex:0,"data-testid":"CopyButton",onClick:d,...s,children:[jsx(Go,{className:kc(B.icon,B.copyIcon),$visible:!n,children:jsx(zt,{})}),jsx(Go,{className:kc(B.icon,B.copiedIcon),$visible:n,children:jsx(Dt,{})})]})});Et.displayName="CopyButton";var Wt=memo(Et);var Yo="os-shared-ProgressBar",j={root:`${Yo}-root`,fill:`${Yo}-fill`,text:`${Yo}-text`};var Vt=styled(qe,{shouldForwardProp:o=>!["$value","$isDecimal"].includes(o)})(({theme:o,$value:e,$isDecimal:t})=>{let{base:r}=o.v2.palette;return {width:`${e}%`,minWidth:e>=10?"28px":"24px",height:"18px",borderRadius:o.v2.radius(50),background:"linear-gradient(256deg, #147DC5 0%, #3DA6E1 100%)",display:"flex",alignItems:"center",justifyContent:e>10?"flex-end":"center",paddingInlineEnd:e>10?o.v2.spacing(2):o.v2.spacing(0),...e===0&&{background:alpha(r.black,26/255)},...t&&{minWidth:e>=10?"40px":"36px"}}}),Ot=styled(qe,{shouldForwardProp:o=>o!=="$value"})(({theme:o,$value:e})=>{let{base:t}=o.v2.palette;return {height:"14px",maxWidth:"36px",minWidth:"20px",background:alpha(t.black,26/255),borderRadius:o.v2.radius(50),display:"flex",alignItems:"center",justifyContent:"center",padding:0,...e===0&&{background:alpha(t.black,0)}}}),Zt=styled(is,{shouldForwardProp:o=>o!=="$value"})(({theme:o,$value:e})=>{let{base:t,grey:r}=o.v2.palette;return {fontSize:"8px",fontWeight:o.typography.fontWeightBolder??700,color:t.white,padding:`${o.v2.spacing(2)} ${o.v2.spacing(4)}`,...e===0&&{color:alpha(r[500],.5)}}});var Kt=forwardRef(({className:o,sx:e,value:t},r)=>{let a=!Number.isInteger(t);return jsx(Vt,{ref:r,className:kc(j.root,o),sx:e,"data-testid":"ProgressBar",$value:t,$isDecimal:a,children:jsx(Ot,{className:j.fill,$value:t,children:jsxs(Zt,{className:j.text,$value:t,variant:"caption",children:[Number(t.toFixed(2)),"%"]})})})});Kt.displayName="ProgressBar";var Ut=memo(Kt);var $o="os-shared-Chip",k={root:`${$o}-root`,text:`${$o}-text`,copyButton:`${$o}-copyButton`,icon:`${$o}-icon`},Xt={text:{height:24,paddingBlock:4,paddingInline:8,borderRadius:48},circular:{height:24,width:24,padding:4,borderRadius:12},"pill-icon":{height:24,width:36,paddingBlock:4,paddingInline:6,borderRadius:12}};var _t=o=>{let{v2:e}=useTheme(),{base:t}=e.palette;return jsx(jo,{sx:{height:"10px"},...o,children:jsx("svg",{width:"11",height:"13",viewBox:"0 0 11 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.924805 9.5C0.924805 10.7381 1.9289 11.7412 3.16699 11.7412H8.86035L8.66699 12.0312C8.43398 12.3812 8.04094 12.5917 7.62012 12.5918H3.16699C1.45941 12.5918 0.0751953 11.2076 0.0751953 9.5V3.04688C0.0751953 2.62628 0.28561 2.23342 0.635742 2L0.924805 1.80664V9.5ZM3.5 0.0751953H8.83301C9.79807 0.0751953 10.5916 0.867985 10.5918 1.83301V9.16699C10.5916 10.132 9.79807 10.9248 8.83301 10.9248H3.5C2.53494 10.9248 1.74139 10.132 1.74121 9.16699V1.83301C1.74139 0.867985 2.53494 0.0751953 3.5 0.0751953ZM3.5 0.924805C2.99261 0.924805 2.59197 1.32567 2.5918 1.83301V9.16699C2.59197 9.67433 2.99261 10.0752 3.5 10.0752H8.83301C9.3404 10.0752 9.74104 9.67433 9.74121 9.16699V1.83301C9.74104 1.32567 9.3404 0.924805 8.83301 0.924805H3.5Z",fill:t.black,stroke:t.white,strokeWidth:"0.15"})})})},qt=o=>{let{v2:e}=useTheme(),{success:t,base:r}=e.palette;return jsx(jo,{sx:{height:"10px"},...o,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:t[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};function Fn(o,e){let t=Xt[o];return {height:t.height,..."width"in t&&{width:t.width,minWidth:t.width},..."padding"in t&&{padding:e.v2.spacing(t.padding)},..."paddingBlock"in t&&{paddingBlock:e.v2.spacing(t.paddingBlock)},..."paddingInline"in t&&{paddingInline:e.v2.spacing(t.paddingInline)},borderRadius:e.v2.radius(t.borderRadius)}}var Qt=styled(qe,{shouldForwardProp:o=>!["$variant","$hasIcon","$hasCopy","$isSelected","$disableAnimation"].includes(o)})(({theme:o,$variant:e="text",$hasIcon:t,$hasCopy:r,$isSelected:a,$disableAnimation:s})=>{let{grey:i,base:n}=o.v2.palette;return {display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,boxSizing:"border-box",lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",fontSize:11,fontWeight:o.typography.fontWeightRegular,color:n.black,border:`1px solid ${i[100]}`,backgroundColor:n.white,...Fn(e,o),...e==="text"&&t&&{gap:o.v2.spacing(6),paddingInlineStart:o.v2.spacing(5),paddingInlineEnd:o.v2.spacing(8)},...r&&{gap:o.v2.spacing(4)},[`& .${k.icon}`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:14,height:14,overflow:"hidden","& img, & svg":{width:14,height:14,display:"block"}},...a&&{boxShadow:`${n.white} 7px 0px 8px 2px`},...s&&{transition:"none !important",animation:"none !important",transform:"none !important","& *":{transition:"none !important",animation:"none !important",transform:"none !important"}}}}),qo=styled(qe)({textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"0 1 auto"}),or=styled("span",{shouldForwardProp:o=>o!=="$copied"})(({$copied:o})=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:12,height:12,flexShrink:0,cursor:"pointer",opacity:o?1:.6,transition:"opacity 150ms ease","&:hover":{opacity:1}})),Jo=styled("span",{shouldForwardProp:o=>o!=="$visible"})(({$visible:o})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:o?1:0,transition:"opacity 150ms ease"}));var tr=forwardRef(({className:o,sx:e,children:t,icon:r,variant:a="text",disabled:s=false,isSelected:i=false,copyText:n,unknownText:p="Unknown",disableAnimation:d=false,...c},f)=>{let[u,m]=useState(false),y=!!(t&&n),x=r!=null&&!y,g=useCallback(N=>{N.stopPropagation(),n&&(ab(n),m(true),setTimeout(()=>m(false),2e3));},[n]),S=useMemo(()=>x?jsx("span",{className:k.icon,children:r}):null,[x,r]),M=useMemo(()=>{if(t){let N=y&&typeof t=="string"?Zb(t):void 0;return jsx(qo,{className:k.text,"data-is-arabic":N,children:t})}return x?null:jsx(qo,{className:k.text,children:p})},[t,y,x,p]),C=useMemo(()=>y?jsxs(or,{className:k.copyButton,role:"button",tabIndex:0,"aria-label":u?"copied":"copy","data-testid":"ChipCopyButton",$copied:u,onClick:g,children:[jsx(Jo,{$visible:!u,children:jsx(_t,{})}),jsx(Jo,{$visible:u,children:jsx(qt,{})})]}):null,[y,u,g]);return jsxs(Qt,{ref:f,"data-testid":"Chip",className:kc(k.root,o,`CustomVariant_${a}`),sx:jc(s?{cursor:"not-allowed",opacity:.5}:{},e),$variant:a,$hasIcon:x,$hasCopy:y,$isSelected:i,$disableAnimation:d,...c,children:[S,M,C]})});tr.displayName="Chip";var rr=memo(tr);var oe="os-shared-Slider",T={root:`${oe}-root`,thumb:`${oe}-thumb`,thumbIcon:`${oe}-thumbIcon`};var ar=o=>{let{v2:e}=useTheme(),{grey:t}=e.palette;return jsx(jo,{sx:{width:"5px",height:"8px",pointerEvents:"none"},...o,children:jsxs("svg",{width:"5",height:"8",viewBox:"0 0 5 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M0.459961 0.460449L0.459961 6.59897",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M2.44531 0.460388L2.44531 6.59891",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M4.4375 0.460388L4.4375 6.59891",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"})]})})};var sr=styled(Vn)(({theme:o})=>{let{brand:e,base:t}=o.v2.palette,r=["0px 0px 1.25px 0px rgba(0, 0, 0, 0.1)","0px 1.25px 1.25px 0px rgba(0, 0, 0, 0.09)","0px 3.75px 2.5px 0px rgba(0, 0, 0, 0.05)","0px 7.5px 2.5px 0px rgba(0, 0, 0, 0.01)","0px 11.25px 3.75px 0px rgba(0, 0, 0, 0)"].join(", ");return {color:e[500],height:8,padding:0,"& .MuiSlider-rail":{backgroundColor:"#CFCFCF",opacity:1,left:0},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:t.white,border:"none",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:r,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:r}},[`& .${T.thumbIcon}`]:{width:"5px",height:"8px",pointerEvents:"none"}}});function Xn({children:o,className:e,...t}){return jsxs(SliderThumb,{className:kc(T.thumb,e),...t,children:[o,jsx(ar,{className:T.thumbIcon})]})}var nr=forwardRef(({className:o,sx:e,value:t,min:r,max:a,step:s,disabled:i,onChange:n,slots:p,...d},c)=>{let f=useCallback((u,m)=>{n(m);},[n]);return jsx(sr,{ref:c,className:kc(T.root,o),sx:e,"data-testid":"Slider",value:t,min:r,max:a,step:s,disabled:i,onChange:f,...d,slots:{thumb:Xn,...p}})});nr.displayName="Slider";var ir=memo(nr);var ee="os-shared-Input",U={root:`${ee}-root`,label:`${ee}-label`,input:`${ee}-input`},pr={sm:28,md:32,labelled:40};var dr=(o,e)=>pr[o?"labelled":e],cr=styled(qn,{shouldForwardProp:o=>!["$hasLabel","$hideArrows","$size"].includes(o)})(({theme:o,$hasLabel:e=false,$hideArrows:t=false,$size:r="md"})=>{let{base:a,grey:s}=o.v2.palette;return {height:dr(e,r),padding:e?o.v2.spacing(8):`0 ${o.v2.spacing(8)}`,border:"none",borderRadius:"inherit",fontSize:"11px",fontWeight:o.typography.fontWeightMedium,color:a.black,backgroundColor:"transparent",display:"flex",alignItems:e?"stretch":"center","&.Mui-disabled":{color:s[500]},"& input":{paddingTop:o.v2.spacing(4),paddingBottom:o.v2.spacing(4)},"& input::placeholder":{color:s[500],fontWeight:o.typography.fontWeightRegular,opacity:e?0:1,...e&&{transition:"opacity 0.2s ease"}},"& input:-webkit-autofill, & input:-webkit-autofill:hover, & input:-webkit-autofill:focus":{WebkitTextFillColor:a.black,caretColor:a.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},...e&&{marginTop:0,"& input":{margin:"0px !important",padding:"0px !important",paddingTop:`${o.v2.spacing(10)} !important`,lineHeight:"130%"},"& input:focus::placeholder":{opacity:"1 !important"}},...t&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}}}),mr=styled(_n)(({theme:o})=>{let{grey:e}=o.v2.palette;return {fontSize:"11px",color:`${e[500]} !important`}}),fr=styled(Yn,{shouldForwardProp:o=>!["$hasLabel","$size"].includes(o)})(({theme:o,disabled:e,error:t,fullWidth:r,$hasLabel:a=false,$size:s="md"})=>{let{grey:i,base:n,error:p}=o.v2.palette;return {position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",height:dr(a,s),margin:0,border:`1px solid ${t?"#FF3D00":i[100]}`,borderRadius:o.v2.radius(4),backgroundColor:e?i[100]:n.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?"#FF3D00":i[50]},"& .MuiFormLabel-asterisk":{color:p[500]},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:o.v2.spacing(8),fontSize:"10px",fontWeight:o.typography.fontWeightMedium,lineHeight:"100%",transform:"translate(0, 6px) scale(1) !important",transformOrigin:"top left"},"& .MuiInputLabel-root.MuiInputLabel-shrink, & .MuiInputLabel-root.MuiFormLabel-filled, & .MuiInputLabel-root.Mui-focused":{transform:"translate(0, -1.5px) scale(0.75) !important",color:`${i[500]} !important`},"& .MuiInput-root":{flex:1,marginTop:"0 !important"}}});var yr=forwardRef(({label:o,size:e="md",error:t=false,disabled:r=false,fullWidth:a=false,placeholder:s,hideArrows:i=false,type:n,id:p,className:d,sx:c,onKeyDown:f,onWheel:u,...m},y)=>{let x=!!o,g=n==="number",S=C=>{let N=C.metaKey||C.ctrlKey||C.altKey,Oo=C.key.length===1;(["e","E","+","-"].includes(C.key)||xa$1()&&Oo&&!N&&!/^[0-9.]$/.test(C.key))&&C.preventDefault(),f?.(C);},M=C=>{C.target instanceof HTMLElement&&C.target.blur(),u?.(C);};return jsxs(fr,{className:kc(U.root,d),sx:c,error:t,disabled:r,fullWidth:a,"data-testid":"Input",$hasLabel:x,$size:e,children:[x&&jsx(mr,{className:U.label,htmlFor:p,children:o}),jsx(cr,{id:p,inputRef:y,className:U.input,type:n,error:t,disabled:r,placeholder:s??void 0,"aria-invalid":t||void 0,disableUnderline:true,fullWidth:true,$hasLabel:x,$hideArrows:i,$size:e,onKeyDown:g?S:f,onWheel:g?M:u,...m})]})});yr.displayName="Input";var gr=memo(yr);var re="os-shared-Textarea",X={root:`${re}-root`,label:`${re}-label`,textarea:`${re}-textarea`},G=3;var xr=styled(ri,{shouldForwardProp:o=>!["$error","$hasLabel","$minRows"].includes(o)})(({theme:o,$hasLabel:e=false,$minRows:t=G})=>{let{base:r,grey:a}=o.v2.palette;return {border:"none",borderRadius:"inherit",padding:e?`${o.v2.spacing(32)} ${o.v2.spacing(8)} ${o.v2.spacing(8)}`:`${o.v2.spacing(8)} ${o.v2.spacing(12)}`,fontSize:"11px",fontWeight:o.typography.fontWeightMedium,lineHeight:"normal",color:r.black,backgroundColor:"transparent",alignItems:"flex-start",width:"100%",...e&&{marginTop:0},"&.Mui-disabled":{color:a[500]},"& textarea":{resize:"vertical",minHeight:e?void 0:`${Math.max(t*20,60)}px`,padding:0,margin:0},"& textarea::placeholder":{color:a[500],fontWeight:o.typography.fontWeightMedium,opacity:1},"& textarea:-webkit-autofill, & textarea:-webkit-autofill:hover, & textarea:-webkit-autofill:focus":{WebkitTextFillColor:r.black,caretColor:r.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"}}}),Cr=styled(_n)(({theme:o})=>{let{grey:e}=o.v2.palette;return {fontSize:"10px",fontWeight:o.typography.fontWeightMedium,color:`${e[500]} !important`}}),hr=styled(Yn,{shouldForwardProp:o=>!["$hasLabel","$minRows"].includes(o)})(({theme:o,disabled:e,error:t,fullWidth:r,$hasLabel:a=false,$minRows:s=G})=>{let{grey:i,base:n,error:p}=o.v2.palette,d=t?p[500]:i[100];return {position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",minHeight:a?96+(s-G)*20:void 0,margin:0,border:`1px solid ${d}`,borderRadius:o.v2.radius(4),backgroundColor:e?i[100]:n.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?p[500]:i[50]},"& .MuiFormLabel-asterisk":{color:p[500]},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",display:"flex",alignItems:"flex-start",gap:o.v2.spacing(2),padding:o.v2.spacing(8),fontSize:"10px",fontWeight:o.typography.fontWeightMedium,lineHeight:"100%",transform:"none !important",transformOrigin:"top left",color:`${i[500]} !important`},"& .MuiInputBase-root":{flex:1,marginTop:"0 !important"}}});var Sr=forwardRef(({label:o,error:e=false,disabled:t=false,fullWidth:r=false,placeholder:a,minRows:s=G,maxRows:i,id:n,className:p,sx:d,required:c,...f},u)=>{let m=!!o;return jsxs(hr,{className:kc(X.root,p),sx:d,error:e,disabled:t,fullWidth:r,required:c,variant:"standard","data-testid":"Textarea",$hasLabel:m,$minRows:s,children:[m&&jsx(Cr,{className:X.label,htmlFor:n,shrink:true,disableAnimation:true,required:c,children:o}),jsx(xr,{id:n,inputRef:u,className:X.textarea,multiline:true,minRows:s,maxRows:i,disabled:t,required:c,placeholder:a??void 0,"aria-invalid":e||void 0,fullWidth:true,$error:e,$hasLabel:m,$minRows:s,...f})]})});Sr.displayName="Textarea";var Nr=memo(Sr);var R="os-shared-Accordion",w={root:`${R}-root`,summary:`${R}-summary`,content:`${R}-content`,labelStartAdornment:`${R}-labelStartAdornment`,labelContent:`${R}-labelContent`,labelEndAdornment:`${R}-labelEndAdornment`,expandIcon:`${R}-expandIcon`};var kr=()=>{let{v2:o}=useTheme(),{base:e}=o.palette;return jsx("svg",{width:"9",height:"5",viewBox:"0 0 9 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.0501709 0.427246C0.0493864 0.478467 0.0592757 0.529176 0.0784912 0.57666C0.0976579 0.623937 0.125505 0.667471 0.161499 0.703613L3.82556 4.47803C3.86116 4.51465 3.90353 4.54403 3.95056 4.56396C3.99773 4.58391 4.04876 4.59422 4.09998 4.59424C4.15123 4.59424 4.20218 4.58392 4.24939 4.56396C4.29655 4.54401 4.33969 4.51476 4.37537 4.47803L8.03845 0.703613C8.07407 0.667816 8.10232 0.625348 8.12146 0.578613C8.14069 0.531638 8.15017 0.480932 8.14978 0.430176C8.14935 0.379519 8.13942 0.329298 8.11951 0.282715C8.09956 0.236042 8.06999 0.19405 8.03357 0.158691C7.99716 0.123349 7.95384 0.0952198 7.90662 0.0766602C7.8595 0.0582058 7.80878 0.0491929 7.75818 0.050293C7.70763 0.0514427 7.65792 0.0629948 7.61169 0.0834961C7.56537 0.104067 7.52346 0.13358 7.48865 0.17041L4.09998 3.65967L0.711304 0.17041C0.65912 0.115154 0.592066 0.0759001 0.517944 0.059082C0.443585 0.0422622 0.365385 0.0481013 0.294312 0.0756836C0.22324 0.103266 0.162075 0.15178 0.11853 0.214355C0.0750125 0.276905 0.05135 0.351058 0.0501709 0.427246Z",fill:e.black,stroke:e.black,strokeWidth:"0.1"})})};var Ir=styled(li)(({theme:o,square:e})=>{let{grey:t,base:r}=o.v2.palette;return {overflow:"hidden",border:`1px solid ${t[100]}`,...!e&&{borderRadius:o.v2.radius(8)},margin:0,background:r.white,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0},"&.Mui-disabled":{opacity:.5,pointerEvents:"none"}}}),Br=styled(di)(({theme:o})=>({background:"#fbfbfb",minHeight:"40px",height:"40px",padding:o.v2.spacing(10),"&.Mui-expanded":{minHeight:"40px",height:"40px"},"& .MuiAccordionSummary-content":{margin:0,display:"flex",flexDirection:"row",alignItems:"center",flexGrow:1,minWidth:0,gap:o.v2.spacing(10)},"& .MuiAccordionSummary-expandIconWrapper":{marginLeft:o.v2.spacing(8)}})),Tr=styled(pi)(({theme:o})=>{let{grey:e}=o.v2.palette;return {padding:0,borderTop:`1px solid ${e[100]}`}}),Pr=styled(qe)({display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:"rotate(0deg)"}),$r=styled(qe)({minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"});var Fr=forwardRef(({expanded:o,defaultExpanded:e=false,onChange:t,label:r,content:a,labelStartAdornment:s,labelEndAdornment:i,slotProps:n={},disabled:p=false,expandIcon:d,className:c,sx:f,...u},m)=>{let y=o!==void 0,[x,g]=useState(e),S=y?o:x,M=(pl,ue)=>{y||g(ue),t?.(ue);},{showArrow:C=true,...N}=n.label??{},{className:Oo,sx:Fa,...za}=n.root??{},Da=d??(C?jsx(Pr,{component:"span",className:w.expandIcon,children:jsx(kr,{})}):null),Aa=jsxs(Fragment,{children:[s!=null&&jsx(qe,{component:"span",className:w.labelStartAdornment,...n.labelStartAdornment,sx:jc({flexShrink:0},n.labelStartAdornment?.sx),children:s}),jsx($r,{component:"span",className:w.labelContent,...n.labelContent,sx:n.labelContent?.sx,children:r}),i!=null&&jsx(qe,{component:"span",className:w.labelEndAdornment,...n.labelEndAdornment,sx:jc({flexShrink:0,marginLeft:"auto"},n.labelEndAdornment?.sx),children:i})]});return jsxs(Ir,{ref:m,"data-testid":"Accordion",disabled:p,expanded:S,onChange:M,className:kc(w.root,c,Oo),sx:jc(f??{},Fa),...za,...u,children:[jsx(Br,{className:w.summary,expandIcon:Da,"aria-expanded":S,...N,children:Aa}),jsx(Tr,{className:w.content,...n.content,children:a})]})});Fr.displayName="Accordion";var zr=memo(Fr);var Dr="os-shared-Menu",oo={popper:`${Dr}-popper`,panel:`${Dr}-panel`};var Rr=styled(gi)({}),Er=styled(qe,{shouldForwardProp:o=>o!=="$showShadow"})(({theme:o,$showShadow:e})=>{let{grey:t,base:r}=o.v2.palette;return {borderRadius:o.v2.radius(4),background:r.white,width:"max-content",cursor:"pointer",boxShadow:o.v2.elevation[200],display:"flex",flexDirection:"column",overflowY:"auto",maxHeight:"432px","&:focus":{outline:"none"},".menu-item + .menu-item":{borderTop:`1px solid ${t[100]}`},"&::after":{content:e?'""':"none",width:"100%",height:"34px",position:"sticky",bottom:0,pointerEvents:"none",background:`linear-gradient(180deg, rgba(255,255,255,0) 0%, ${r.white} 100%)`}}});var Hr=forwardRef(({open:o,anchorEl:e,children:t,placement:r,popperSx:a,panelProps:s,className:i,sx:n,...p},d)=>{let[c,f]=useState(false),m=useMemo(()=>Children.count(t),[t])>12&&c,{onScroll:y,className:x,sx:g,...S}=s??{},M=useCallback(N=>{f((N.currentTarget.scrollTop??0)>0),y?.(N);},[y]),C=kc(oo.panel,x,"MuiPopper-dropdown");return jsx(Rr,{ref:d,className:kc(oo.popper,i),"data-testid":"Menu",open:o,anchorEl:e,placement:r??"bottom-start",sx:a,...p,children:jsx(Er,{$showShadow:m,onScroll:M,className:C,sx:jc(n??{},g),...S,children:t})})});Hr.displayName="Menu";var Vr=memo(Hr);var eo="os-shared-Dialog",P={root:`${eo}-root`,title:`${eo}-title`,divider:`${eo}-divider`,content:`${eo}-content`,actions:`${eo}-actions`};var Or=styled(vi)(({theme:o})=>{let{base:e}=o.v2.palette;return {"& .MuiDialog-paper:not(.MuiDialog-paperFullWidth)":{width:394},"& .MuiDialog-paper":{backgroundColor:e.white,boxShadow:"0px 0px 16px 0px rgba(0, 0, 0, 0.11)",borderRadius:o.v2.radius(8)},"& .MuiModal-backdrop":{background:alpha("#000",.2)}}}),Zr=styled(Ii)(({theme:o})=>{let{base:e}=o.v2.palette;return {padding:`${o.v2.spacing(16)} ${o.v2.spacing(16)} ${o.v2.spacing(12)}`,fontSize:"13px",fontWeight:o.typography.fontWeightBolder,lineHeight:"normal",color:e.black,whiteSpace:"nowrap"}}),jr=styled("hr")(({theme:o})=>{let{grey:e}=o.v2.palette;return {display:"block",border:"none",borderTop:`1px solid ${e[100]}`,margin:0,width:"100%",flexShrink:0}}),Kr=styled(wi,{shouldForwardProp:o=>o!=="$hasHeading"})(({theme:o,$hasHeading:e})=>{let{grey:t}=o.v2.palette;return {padding:`${e?o.v2.spacing(12):o.v2.spacing(16)} ${o.v2.spacing(16)} ${o.v2.spacing(16)}`,fontSize:"12px",fontWeight:o.typography.fontWeightMedium,lineHeight:"normal",color:t[500]}}),Ur=styled(ki)(({theme:o})=>({padding:`0 ${o.v2.spacing(16)} ${o.v2.spacing(16)}`,gap:o.v2.spacing(8),justifyContent:"flex-end","& > :not(style) ~ :not(style)":{marginLeft:0}}));var Gr=forwardRef(({heading:o,actions:e,children:t,onClose:r,open:a,className:s,sx:i,...n},p)=>jsxs(Or,{ref:p,"data-testid":"Dialog",open:a,onClose:r,className:kc(P.root,s),sx:i,...n,children:[o?jsxs(Fragment,{children:[jsx(Zr,{className:P.title,children:o}),jsx(jr,{"aria-hidden":true,className:P.divider})]}):null,t!=null?jsx(Kr,{className:P.content,$hasHeading:!!o,children:t}):null,e?jsx(Ur,{className:P.actions,children:e}):null]}));Gr.displayName="Dialog";var Yr=memo(Gr);var zo="os-shared-MenuItem",$={root:`${zo}-root`,indicator:`${zo}-indicator`,content:`${zo}-content`,disabled:`${zo}-disabled`},W={unchecked:"unchecked",checked:"checked",indeterminate:"indeterminate"};var qr=()=>{let{v2:o}=useTheme(),{brand:e,base:t}=o.palette;return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:e[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74245C9.04243 3.94469 9.05652 4.2875 8.86537 4.50814L5.64586 8.22426C5.55146 8.33322 5.41909 8.39666 5.27942 8.39987C5.13975 8.40308 5.0049 8.34579 4.90612 8.24127L3.15002 6.38321C2.94999 6.17157 2.94999 5.82843 3.15002 5.61679C3.35004 5.40516 3.67435 5.40516 3.87437 5.61679L5.2522 7.07463L8.11024 3.77574C8.30138 3.55511 8.62538 3.5402 8.83391 3.74245Z",fill:t.white})]})},Jr=()=>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"})}),Qr=()=>{let{v2:o}=useTheme(),{brand:e}=o.palette;return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"2.4",fill:e[500],stroke:e[500],strokeWidth:"1.2"}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:"#FAFBFB"})]})};var ta=styled(qe,{shouldForwardProp:o=>o!=="$isDisabled"})(({theme:o,$isDisabled:e=false})=>{let{base:t}=o.v2.palette;return {padding:o.v2.spacing(8),position:"relative",display:"flex",alignItems:"center",gap:o.v2.spacing(8),textTransform:"capitalize",cursor:e?"not-allowed":"pointer",flex:1,fontSize:o.typography.subtitle1.fontSize,opacity:e?.5:1,color:t.black}}),se=styled("span")({width:14,height:14,flexShrink:0,pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center","& svg":{display:"block"}});function zi(o,e){return e?W.indeterminate:o?W.checked:W.unchecked}var Di={[W.unchecked]:Jr,[W.checked]:qr,[W.indeterminate]:Qr};function Ai(o,e,t){if(o===null)return null;if(o!==void 0)return jsx(se,{className:$.indicator,"aria-hidden":true,children:o});let r=zi(e,t),a=Di[r];return jsx(se,{className:$.indicator,"aria-hidden":true,children:jsx(a,{})})}var ra=forwardRef(({isSelected:o=false,isDisabled:e=false,isIndeterminate:t=false,startAdornment:r,onClick:a,children:s,className:i,sx:n,...p},d)=>{let c=kc($.root,"menu-item",e&&$.disabled,i);return jsxs(ta,{ref:d,"data-testid":"MenuItem",className:c,sx:n,onClick:e?void 0:a,$isDisabled:e,...p,children:[Ai(r,o,t),jsx("span",{className:$.content,children:s})]})});ra.displayName="MenuItem";var aa=memo(ra);var sa="os-shared-ToggleButtons",ro={root:`${sa}-root`,button:`${sa}-button`},ne={text:"text",icon:"icon"},Ao=ne.text,ie={sm:"sm",md:"md"},ao=ie.md,le={md:{buttonHeight:28,fontSize:11,containerRadius:4,iconCell:28,iconSlot:14},sm:{buttonHeight:20,fontSize:9,containerRadius:3,iconCell:20,iconSlot:11}},na={text:{paddingX:8},icon:{paddingX:0}};function Ei(o,e){let{palette:t,elevation:r}=o.v2;return e?{backgroundColor:t.background.primary,boxShadow:r[100],color:t.foreground.primary}:{backgroundColor:"transparent",boxShadow:"none",color:t.foreground.secondary}}var pa=styled(qe,{shouldForwardProp:o=>o!=="$size"})(({theme:o,$size:e=ao})=>{let t=le[e];return {backgroundColor:o.v2.palette.background.secondary,display:"inline-flex",alignItems:"center",padding:o.v2.spacing(2),borderRadius:o.v2.radius(t.containerRadius)}}),da=styled(qe,{shouldForwardProp:o=>o!=="$isActive"&&o!=="$type"&&o!=="$size"})(({theme:o,$isActive:e=false,$type:t=Ao,$size:r=ao})=>{let a=le[r],s=na[t],i=t==="icon";return {boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,height:a.buttonHeight,width:i?a.iconCell:"auto",minWidth:i?a.iconCell:0,padding:`0 ${o.v2.spacing(s.paddingX)}`,borderRadius:o.v2.radius(2),fontSize:a.fontSize,fontWeight:o.typography.fontWeightMedium,lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",cursor:"pointer",transition:"background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease",...Ei(o,e),...i&&{"& img, & svg":{width:a.iconSlot,height:a.iconSlot,display:"block"}}}});function ma({options:o,activeKey:e,onChange:t,type:r=Ao,size:a=ao,containerProps:s,buttonProps:i,id:n,className:p,sx:d},c){let{className:f,sx:u,...m}=s??{},y=kc(ro.root,p,f);return jsx(pa,{ref:c,id:n,"data-testid":"ToggleButtons",className:y,$size:a,sx:jc(d??{},u),...m,children:o.map(x=>jsx(da,{className:ro.button,$isActive:e===x.key,$type:r,$size:a,onClick:()=>t(x.key),...i,children:x.content},x.key))})}var Vi=forwardRef(ma);ma.displayName="ToggleButtons";var fa=memo(Vi);var Oi="os-shared-LazyImage",Ro={root:`${Oi}-root`},Eo={opacity:()=>import('react-lazy-load-image-component/src/effects/opacity.css'),blur:()=>import('react-lazy-load-image-component/src/effects/blur.css'),"black-and-white":()=>import('react-lazy-load-image-component/src/effects/black-and-white.css')};var ua=styled(qe)({display:"inline-flex",justifyContent:"center",alignItems:"center"});function Wo(o){return o!=null&&o in Eo}var _i=LazyLoadImage,ga=forwardRef(({effect:o,wrapperProps:e,id:t,className:r,sx:a,placeholderSrc:s,...i},n)=>{let[p,d]=useState(Wo(o));if(useEffect(()=>{if(!Wo(o)){d(false);return}d(true),Eo[o]().finally(()=>{d(false);});},[o]),p)return null;let{className:c,sx:f,style:u,...m}=e??{},y=Wo(o)||!!s||u!=null;return jsx(ua,{component:"span",...m,className:kc(Ro.root,c??r),sx:f!=null?jc(a??{},f):a,children:jsx(_i,{...i,ref:n,effect:o,placeholderSrc:s,id:t,"data-testid":"LazyImage",wrapperProps:y?{style:{display:"flex",justifyContent:"center",alignItems:"center",...u}}:void 0})})});ga.displayName="LazyImage";var xa=memo(ga);var pe="os-shared-FieldFeedback",_={root:`${pe}-root`,icon:`${pe}-icon`,message:`${pe}-message`},so="#FF7A00";var Ca=({severity:o="error",...e})=>{let t=useTheme(),{error:r}=t.v2.palette,a=o==="warning"?so:r[500];return jsx(jo,{sx:{width:12,height:12},...e,children:jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M6 12C9.30838 12 12 9.30838 12 6C12 2.69162 9.30838 -2.35309e-07 6 -5.24537e-07C2.69162 -8.13764e-07 8.13764e-07 2.69162 5.24537e-07 6C2.35309e-07 9.30838 2.69162 12 6 12ZM6 11.1C3.17801 11.1 0.9 8.82198 0.9 6C0.9 3.17802 3.17802 0.899999 6 0.899999C8.82199 0.899999 11.1 3.17802 11.1 6C11.1 8.82198 8.82198 11.1 6 11.1ZM6 9C6.15913 9 6.31174 8.93679 6.42426 8.82426C6.53679 8.71174 6.6 8.55913 6.6 8.4C6.6 8.24087 6.53679 8.08826 6.42426 7.97574C6.31174 7.86321 6.15913 7.8 6 7.8C5.84087 7.8 5.68826 7.86321 5.57574 7.97574C5.46321 8.08826 5.4 8.24087 5.4 8.4C5.4 8.55913 5.46321 8.71174 5.57574 8.82426C5.68826 8.93679 5.84087 9 6 9ZM6.00703 6.90644C6.12628 6.90458 6.23991 6.85546 6.32296 6.76988C6.40602 6.6843 6.45171 6.56925 6.45 6.45L6.45 3.15C6.45084 3.09037 6.43983 3.03116 6.41759 2.97583C6.39535 2.92049 6.36234 2.87013 6.32047 2.82766C6.2786 2.7852 6.22871 2.75148 6.17369 2.72846C6.11868 2.70544 6.05964 2.69359 6 2.69359C5.94036 2.69359 5.88132 2.70544 5.82631 2.72846C5.77129 2.75148 5.7214 2.7852 5.67953 2.82766C5.63766 2.87013 5.60465 2.92049 5.58241 2.97583C5.56017 3.03116 5.54916 3.09037 5.55 3.15L5.55 6.45C5.54914 6.51023 5.56037 6.57002 5.58304 6.62583C5.60571 6.68163 5.63935 6.73232 5.68197 6.77489C5.72459 6.81745 5.77533 6.85103 5.83116 6.87363C5.887 6.89623 5.9468 6.90739 6.00703 6.90644Z",fill:a})})})},ha=o=>{let{v2:e}=useTheme(),{success:t}=e.palette;return jsx(jo,{sx:{width:12,height:12},...o,children:jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:t[700]})})})},ba=o=>{let{v2:e}=useTheme(),{base:t}=e.palette;return jsx(jo,{sx:{width:12,height:12},...o,children:jsx("svg",{width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M6 7.5V5.5M6 3.5H6.005M11 5.5C11 8.26142 8.76142 10.5 6 10.5C3.23858 10.5 1 8.26142 1 5.5C1 2.73858 3.23858 0.5 6 0.5C8.76142 0.5 11 2.73858 11 5.5Z",stroke:t.black,strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})})})};function Sa(o,e){let{brand:t}=o.v2.palette;return {warning:{backgroundColor:alpha(so,.15),textColor:so},success:{backgroundColor:alpha("#76BB40",.15),textColor:"#76BB40"},info:{backgroundColor:alpha(t[500],.12),textColor:t[500]},error:{backgroundColor:alpha("#FF3D00",.15),textColor:"#FF3D00"}}[e]}var Na=styled("div",{shouldForwardProp:o=>o!=="$feedbackType"})(({theme:o,$feedbackType:e})=>{let{backgroundColor:t}=Sa(o,e);return {display:"flex",alignItems:"flex-start",gap:o.v2.spacing(4),minHeight:"32px",padding:`${o.v2.spacing(8)} ${o.v2.spacing(12)}`,background:t,borderRadius:`0 0 ${o.v2.radius(4)} ${o.v2.radius(4)}`}}),va=styled("div",{shouldForwardProp:o=>o!=="$feedbackType"})(({theme:o,$feedbackType:e})=>{let{textColor:t}=Sa(o,e);return {fontSize:"10px",lineHeight:"16px",display:"block",color:t,wordBreak:"break-word"}}),ka=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 Qi(o){return o!=null&&o!==""}function ol(o){switch(o){case "success":return jsx(ha,{});case "info":return jsx(ba,{});case "error":case "warning":return jsx(Ca,{severity:o})}}var wa=forwardRef(({type:o="error",message:e,icon:t,className:r,sx:a},s)=>{if(!Qi(e))return null;let i=o;return jsxs(Na,{ref:s,"data-testid":"FieldFeedback",className:kc(_.root,r),sx:a,$feedbackType:i,children:[t??jsx(ka,{className:_.icon,children:ol(i)}),jsx(va,{className:_.message,$feedbackType:i,children:e})]})});wa.displayName="FieldFeedback";var Ia=memo(wa);var tl="os-shared-ScrollLoader",Vo={root:`${tl}-root`};var Ba=styled(rl)({overflow:"auto",height:"100%",maxHeight:"100%"});function fe(o,e=50){return o.scrollHeight-(o.scrollTop+o.clientHeight)<=e}var Ma=forwardRef(({loadMoreItems:o,hasMore:e,isLoading:t=false,isFetchingNextPage:r,children:a,className:s,sx:i,id:n,...p},d)=>{let[c,f]=useState(false),u=useRef(o),m=useRef(null);u.current=o;let y=useCallback(()=>{e&&!r&&u.current();},[e,r]),x=useCallback(()=>{let g=m.current;g&&fe(g)&&y();},[y]);return useEffect(()=>{let g=m.current;if(g)return g.addEventListener("scroll",x),()=>g.removeEventListener("scroll",x)},[x]),useEffect(()=>{let g=m.current;if(!g||t||c)return;let S=window.setTimeout(()=>{f(true),fe(g)&&y();},1e3);return ()=>window.clearTimeout(S)},[t,y,c]),jsx(Ba,{ref:g=>{m.current=g,typeof d=="function"?d(g):d&&(d.current=g);},id:n,"data-testid":"ScrollLoader",className:kc(Vo.root,s),sx:i,...p,children:a})});Ma.displayName="ScrollLoader";var La=memo(Ma);
|
|
2
|
-
export{xa as $,Io as A,Mt as B,B as C,Wt as D,j as E,Ut as F,k as G,rr as H,T as I,ir as J,U as K,gr as L,X as M,Nr as N,w as O,zr as P,oo as Q,Vr as R,P as S,Yr as T,$ as U,aa as V,ro as W,ne as X,ie as Y,fa as Z,Ro as _,v as a,_ as aa,we as b,Ia as ba,lo as c,Vo as ca,Te as d,La as da,F as e,Re as f,po as g,He as h,co as i,Ze as j,mo as k,_e as l,z as m,rt as n,h as o,pt as p,Co as q,mt as r,ho as s,xt as t,No as u,bt as v,vo as w,vt as x,ko as y,Tt as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {c,b,g}from'./chunk-FPEXFSFO.js';import {a}from'./chunk-J6HEXAGE.js';import {yc}from'./chunk-MXISJOX2.js';import {Db,B,Rf}from'./chunk-3YAJNHQC.js';import {memo,useId,useState,useEffect,useRef}from'react';import {styled,Box,TextField,Button,Typography,FormControl,InputLabel,Select,MenuItem}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import L from'@mui/material/Box';import ve from'@mui/material/ClickAwayListener';import Be from'@mui/material/Popper';import W from'@mui/material/Skeleton';import {styled as styled$1}from'@mui/material/styles';import {useFormContext,Controller}from'react-hook-form';var K=styled(Box)(()=>({display:"flex",flexDirection:"column",gap:"4px",width:"100%",height:40,"& *":{flex:1,margin:"0px !important"}})),y=styled(TextField,{shouldForwardProp:e=>!["hasError","feedbackType","hasFeedback","hideArrows"].includes(e)})(({theme:e,hasError:n,feedbackType:o,hasFeedback:a,hideArrows:t})=>{let{borderColor:i}=c(e,o),l=a?"4px 4px 0 0":"4px",m="#F2F2F2";return o&&(m=i),n&&!o&&(m=e.palette.error.main),{"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiInputBase-root":{maxHeight:"40px !important",alignItems:"flex-end !important"},"& fieldset":{border:"1px solid red"},"&:hover fieldset":{border:"1px solid green"},"&.Mui-focused fieldset":{border:"1px solid blue"},border:`1px solid ${m}`,borderBottom:a?"none":void 0,borderRadius:l,"& .MuiInputBase-input":{margin:"0px !important",padding:"0px !important",color:"#20232B !important",fontSize:"11px !important",fontStyle:"normal !important",fontWeight:"500 !important",lineHeight:"130% !important"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(0, 8px) scale(1)"},".MuiFormLabel-root.MuiFormLabel-filled, .MuiFormLabel-root.MuiInputLabel-shrink":{transform:"translate(0, -1.5px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(0, -1.5px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"},...t&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}}}),U=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));var V=styled("div")(()=>({position:"relative",display:"flex",justifyContent:"flex-end",alignItems:"center"})),O=styled(y)(({theme:e})=>({fontSize:"11px",lineHeight:"11px",color:e.palette.common.black,borderRadius:"5px",boxShadow:"0px 0px 6px 0px rgba(0, 0, 0, 0.11);",padding:"4px 8px",height:"32px",border:"none",outline:"none",width:"100%","&:focus":{border:"1px solid #1F88D0"}})),G=styled(Button)(({theme:e})=>({display:"flex",height:"24px",padding:"8px",justifyContent:"center",alignItems:"center",gap:"8px",backgroundColor:e.palette.divider,color:e.palette.grey[700],fontSize:"9px",fontWeight:500,textTransform:"none",position:"absolute",right:4,opacity:"1 !important",top:4,borderRadius:"4px"}));function P(e){let n=yc(useId(),"file-input"),o=useRef(null);return jsxs(Fragment,{children:[jsxs(V,{id:n,"data-testid":"InputContainer",children:[jsx(O,{value:o.current?.files?.[0]?.name||"",...e}),jsx(G,{onClick:()=>{o.current?.click();},children:"Browse"})]}),jsx("input",{type:"file",ref:o,style:{display:"none"}})]})}var Ce=P;var Q=styled$1("button")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),X=styled$1(L)(({theme:e})=>({backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),Y=styled$1("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),Z=styled$1("li")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),j=styled$1(a)(()=>({height:24,padding:"4px",marginBottom:"4px"})),ee=styled$1(L)(()=>({color:"red !important"}));styled$1("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));var te=styled$1(L)(({theme:e})=>({border:`1px solid ${e.palette.divider}`,display:"flex",position:"relative",paddingInline:"8px",alignItems:"center",borderRadius:"4px",height:"40px"})),oe=styled$1(a,{shouldForwardProp:e=>e!=="error"})(({error:e})=>({img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}}));function Pe({defaultCountry:e,value:n,onChangeCountry:o,required:a,countries:t=[],isLoading:i=false}){let l=yc(useId(),"countries-dropdown"),[m,g]=useState(null),[b,u]=useState([]),[S,D]=useState(),ue=()=>{if(t&&e){let r=t.find(c=>c.iso2===e);r&&o?.(r);}};useEffect(()=>{u(t||[]),ue();},[t]);let A=!!m,ce=r=>{r.stopPropagation(),g(r.currentTarget);},N=()=>{g(null),D(void 0);},xe=r=>{o?.(r),N(),u(t);},fe=r=>{let c=Number(r.target.value);if(D(c),!c){u(t);return}u(t.filter(ge=>ge.idd_prefix.toString().startsWith(c.toString())));};return i?jsx(W,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsx(ve,{onClickAway:N,children:jsxs(L,{id:l,"data-testid":"CountriesCode",sx:{position:"relative"},children:[jsxs(Q,{type:"button",onClick:ce,sx:{backgroundColor:"transparent",border:"none",height:34},children:[n?.logo?jsx("img",{src:n.logo,alt:"c",className:"logo"}):jsx(W,{variant:"rectangular",className:"logo"}),jsx("span",{children:`+${n?.idd_prefix}`}),a&&jsx(ee,{component:"span",children:"*"}),jsx(L,{component:"img",src:Db,alt:"d",className:"arrow",sx:{...A&&{transform:"rotate(180deg)"}}})]}),jsx(Be,{open:A,anchorEl:m,children:jsxs(X,{component:"article","data-testid":"CountriesWrapper",children:[jsx(j,{endAdornment:jsx("img",{src:B,alt:"arrow"}),onChange:fe,value:S,hideArrows:true}),jsx(Y,{children:b.map(r=>jsxs(Z,{onClick:()=>{xe(r);},children:[r.logo?jsx("img",{src:r.logo,alt:"c",className:"logo"}):jsx(W,{variant:"rectangular",className:"logo"}),jsx("span",{children:`+${r.idd_prefix}`})]},`country-code-${r.countryId}`))})]})})]})})}var ne=memo(Pe);var Le=ne;function E(e){let n=yc(useId(),"inputs-input"),{control:o}=useFormContext();return jsx(Controller,{name:e.name,control:o,render:({field:a,fieldState:{error:t}})=>{let i=e.feedback!==void 0&&e.feedback!==null,l=b(e.feedback),m=e.label??e.placeholder,g$1=e.label&&typeof e.placeholder=="string"?e.placeholder:void 0,b$1=t?.message??e.helperText,u=!i&&b$1?jsx(U,{children:b$1}):null,S=l?jsx(g,{...l}):null;return jsxs(Box,{sx:{display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1},children:[jsx(K,{id:n,"data-testid":"InputWrapper",children:jsx(y,{rows:1,hasError:(!!t?.message||!!e.error)&&!i,hasFeedback:!!l,feedbackType:l?.type,...a,variant:"standard",label:m,placeholder:g$1,size:"small",required:e.required,fullWidth:true,InputProps:{disabled:e.disabled,disableUnderline:true,...e.InputProps,sx:{fontSize:"11px",height:"40px",padding:"8px",borderRadius:l?"4px 4px 0 0":"4px",...e.InputProps?.sx},endAdornment:e?.InputProps?.endAdornment},InputLabelProps:{...e.InputLabelProps,sx:{color:"#8D8D94 !important",fontSize:"11px",padding:"8px",...e.InputLabelProps?.sx}},sx:e?.sx,disabled:e?.disabled,focused:e?.focused,type:e?.type,hideArrows:e?.hideArrows,onKeyDown:e?.onKeyDown})}),u,S]})}})}var H=E;var pe=styled("img")(()=>({width:"12px",height:"12px",marginRight:"4px"})),le=styled("div")(({theme:e})=>({display:"flex",alignItems:"center",color:`${e.palette.custom[500]}`,fontSize:"10px",padding:"8px 12px",background:"#FF000026",borderRadius:"0 0 4px 4px",borderTop:"none",height:"32px"}));function T({showSearchIcon:e=true,error:n,errorMessage:o,feedback:a,...t}){let i=yc(useId(),"search-input"),l=!!(n&&o&&!a);return jsxs(Box,{id:i,"data-testid":"SearchInput",children:[jsx(H,{InputProps:{endAdornment:!t.disabled&&e&&jsx(Box,{component:"img",maxWidth:"16px",maxHeight:"16px",src:B,alt:"search"}),sx:{...l&&{border:"1px solid #FF000026",borderBottom:"none",borderRadius:"4px 4px 0 0"}},...t.InputProps},sx:{...l&&{border:"1px solid #FF000026",borderBottom:"none",borderRadius:"4px 4px 0 0"}},feedback:a,error:n,...t}),l&&jsxs(le,{children:[jsx(pe,{src:Rf}),jsx(Typography,{color:"red",fontSize:"10px",children:o})]})]})}var Ae=T;function z(e){let n=yc(useId(),"inputs-select"),{control:o}=useFormContext();return jsx(Controller,{name:e.name,control:o,render:({field:a,fieldState:{error:t}})=>jsxs(Box,{id:n,"data-testid":"InputsSelect",sx:{display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1},children:[jsxs(FormControl,{variant:"filled",sx:{minWidth:52,height:"40px !important",maxHeight:"40px !important",width:"100%","& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}},required:e.required,children:[jsx(InputLabel,{id:"demo-simple-select-filled-label",sx:{fontSize:"11px",color:"#8D8D94 !important"},children:e.label}),jsx(Select,{inputProps:{sx:{backgroundColor:"#F9F9F9 !important",borderRadius:"4px",fontSize:"11px"}},...a,value:a.value??"",error:!!t,disableUnderline:true,required:true,labelId:"demo-simple-select-filled-label",id:"demo-simple-select-filled",sx:{width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:"4px",overflow:"hidden",".MuiSelect-select":{padding:"0px 8px !important",height:"40px !important",maxHeight:"40px !important",display:"flex",alignItems:"flex-end !important"},".MuiSelect-filled":{padding:"0px 8px !important"},...t&&{border:"1px solid #FF3D00"}},children:(e.options||[]).map(i=>jsx(MenuItem,{value:i.value??"",sx:{fontSize:"12px"},children:i.label},i.value??""))})]}),t?.message&&jsx(Box,{component:"small",sx:i=>({color:i.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}),children:t.message})]})})}var Oe=z;export{Ce as a,te as b,oe as c,Le as d,H as e,Ae as f,Oe as g};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { default } from './FieldFeedback';
|
|
2
|
-
export { default as FieldFeedback } from './FieldFeedback';
|
|
3
|
-
export { FieldFeedbackContainer, FieldFeedbackMessage } from './style';
|
|
4
|
-
export { FieldFeedbackIcon, getFieldFeedbackColors, getFieldFeedbackIconSrc, getResolvedFieldFeedback } from './utils';
|
|
5
|
-
export type { FieldFeedbackProps, FieldFeedbackType } from './type';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{g as FieldFeedback,e as FieldFeedbackContainer,a as FieldFeedbackIcon,f as FieldFeedbackMessage,g as default,c as getFieldFeedbackColors,d as getFieldFeedbackIconSrc,b as getResolvedFieldFeedback}from'../../_chunks/chunk-FPEXFSFO.js';import'../../_chunks/chunk-MXISJOX2.js';import'../../_chunks/chunk-N372QRVU.js';import'../../_chunks/chunk-3YAJNHQC.js';import'../../_chunks/chunk-4GZ7XOYY.js';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { FieldFeedbackType } from './type';
|
|
3
|
-
export declare const FieldFeedbackContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
4
|
-
type: FieldFeedbackType;
|
|
5
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
-
export declare const FieldFeedbackMessage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
7
|
-
type: FieldFeedbackType;
|
|
8
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
export type FieldFeedbackType = 'error' | 'warning' | 'success' | 'info';
|
|
3
|
-
export type FieldFeedbackProps = {
|
|
4
|
-
type?: FieldFeedbackType;
|
|
5
|
-
message?: ReactNode | string;
|
|
6
|
-
icon?: ReactNode;
|
|
7
|
-
};
|
|
8
|
-
export type ResolvedFieldFeedback = FieldFeedbackProps & {
|
|
9
|
-
type: FieldFeedbackType;
|
|
10
|
-
message: ReactNode | string;
|
|
11
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { Theme } from '@mui/material/styles';
|
|
3
|
-
import type { FieldFeedbackProps, FieldFeedbackType, ResolvedFieldFeedback } from './type';
|
|
4
|
-
export declare const FieldFeedbackIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
5
|
-
export declare const getResolvedFieldFeedback: (feedback?: FieldFeedbackProps | null) => ResolvedFieldFeedback | null;
|
|
6
|
-
export declare const getFieldFeedbackColors: (theme: Theme, type?: FieldFeedbackType) => {
|
|
7
|
-
borderColor: string;
|
|
8
|
-
backgroundColor: string;
|
|
9
|
-
textColor: string;
|
|
10
|
-
};
|
|
11
|
-
export declare const getFieldFeedbackIconSrc: (type?: FieldFeedbackType) => string;
|