@tap-payments/os-micro-frontend-shared 0.3.156 → 0.3.158
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-VRNI7QJC.js → chunk-2HH4LSQE.js} +1 -1
- package/build/_chunks/{chunk-3K63J46M.js → chunk-2KLQQ4GT.js} +1 -1
- package/build/_chunks/{chunk-DMZCIFBK.js → chunk-2L6YN6BY.js} +1 -1
- package/build/_chunks/{chunk-THAGYMFR.js → chunk-2M46764T.js} +1 -1
- package/build/_chunks/{chunk-NBV6IJN4.js → chunk-2SBTZEUM.js} +1 -1
- package/build/_chunks/{chunk-AUXNPW6S.js → chunk-37HMYKL2.js} +1 -1
- package/build/_chunks/{chunk-5M27EJRS.js → chunk-37MMGHJP.js} +1 -1
- package/build/_chunks/{chunk-62LAJBTA.js → chunk-45YMX5ZX.js} +1 -1
- package/build/_chunks/{chunk-H4EDOQE5.js → chunk-4XJAK7Y3.js} +1 -1
- package/build/_chunks/{chunk-GQ7NS3K3.js → chunk-55DNPRT6.js} +1 -1
- package/build/_chunks/{chunk-ZLYPBZF2.js → chunk-56NDTN6N.js} +1 -1
- package/build/_chunks/{chunk-NGCS556L.js → chunk-5ETS6LOQ.js} +1 -1
- package/build/_chunks/{chunk-IN7PPODM.js → chunk-5SZU46PP.js} +1 -1
- package/build/_chunks/{chunk-OLTQUPDT.js → chunk-624CB4ZD.js} +1 -1
- package/build/_chunks/{chunk-OUNNBNVC.js → chunk-6AJGHLIA.js} +1 -1
- package/build/_chunks/{chunk-YKN2IW5O.js → chunk-6E3W2EBT.js} +1 -1
- package/build/_chunks/chunk-6SFC6GJZ.js +1 -0
- package/build/_chunks/{chunk-ZTJSYHPL.js → chunk-7QCRY4U3.js} +1 -1
- package/build/_chunks/{chunk-B2W5D7TQ.js → chunk-7VD4W2MV.js} +1 -1
- package/build/_chunks/{chunk-WGK76MSQ.js → chunk-AJTHCIH5.js} +1 -1
- package/build/_chunks/{chunk-SXNYGPTS.js → chunk-ARQLN5ZI.js} +1 -1
- package/build/_chunks/{chunk-R22A2IKH.js → chunk-ARSFQNFW.js} +1 -1
- package/build/_chunks/{chunk-QL3NKKPH.js → chunk-ATOOWVEE.js} +1 -1
- package/build/_chunks/{chunk-JYSNQXFH.js → chunk-AZS7IXOF.js} +1 -1
- package/build/_chunks/{chunk-5TICGNPB.js → chunk-BUZKD5FY.js} +1 -1
- package/build/_chunks/{chunk-YU72AT3T.js → chunk-CC73AV3J.js} +1 -1
- package/build/_chunks/{chunk-O7NXFOIL.js → chunk-CMM74PXZ.js} +1 -1
- package/build/_chunks/{chunk-2QWYJ54F.js → chunk-CREFSNFD.js} +1 -1
- package/build/_chunks/chunk-DVYHSE43.js +1 -0
- package/build/_chunks/{chunk-4DW2ABRV.js → chunk-DWSY5MWS.js} +1 -1
- package/build/_chunks/{chunk-NTGKCBFU.js → chunk-DYU5BE5X.js} +1 -1
- package/build/_chunks/{chunk-3Y5VWYQB.js → chunk-EDRNAIB5.js} +1 -1
- package/build/_chunks/{chunk-5VCO2GIZ.js → chunk-EG4YTSUA.js} +1 -1
- package/build/_chunks/{chunk-YT6OPFDM.js → chunk-ER5YRXAN.js} +1 -1
- package/build/_chunks/{chunk-XR5X7IRE.js → chunk-FA67CAI7.js} +1 -1
- package/build/_chunks/{chunk-JY6HQ5NO.js → chunk-FEPZV6PP.js} +1 -1
- package/build/_chunks/{chunk-MEYMQAHV.js → chunk-FPEXFSFO.js} +1 -1
- package/build/_chunks/{chunk-SE2AIIDR.js → chunk-FTROKUTR.js} +1 -1
- package/build/_chunks/{chunk-UIIZQVUX.js → chunk-FZ4LLSSM.js} +1 -1
- package/build/_chunks/{chunk-ALVUSNC2.js → chunk-G3ZCQRFM.js} +1 -1
- package/build/_chunks/{chunk-ENMPLE6X.js → chunk-HNUCLGTM.js} +1 -1
- package/build/_chunks/{chunk-7JKLYFSW.js → chunk-HVSVEO2H.js} +1 -1
- package/build/_chunks/{chunk-V5ZYTSLI.js → chunk-I3P7QPUA.js} +1 -1
- package/build/_chunks/{chunk-PCFGK4YW.js → chunk-IBN2INZA.js} +1 -1
- package/build/_chunks/{chunk-77NRKM57.js → chunk-IEKEIKGI.js} +1 -1
- package/build/_chunks/{chunk-7ZWMRQZI.js → chunk-IU2CIO6M.js} +1 -1
- package/build/_chunks/{chunk-Z6IXM432.js → chunk-IWVUS45E.js} +1 -1
- package/build/_chunks/{chunk-TDEMXTJY.js → chunk-J4335JLA.js} +1 -1
- package/build/_chunks/{chunk-ETUGX3RF.js → chunk-J6HEXAGE.js} +1 -1
- package/build/_chunks/{chunk-CLETNKJJ.js → chunk-JDLTTFHQ.js} +1 -1
- package/build/_chunks/{chunk-P64YRZBA.js → chunk-KAZ3B4EF.js} +1 -1
- package/build/_chunks/{chunk-JTTKNGVP.js → chunk-KHEICEBV.js} +1 -1
- package/build/_chunks/{chunk-GK3K4CJ5.js → chunk-KIUT6LEM.js} +1 -1
- package/build/_chunks/{chunk-NA3CR5MA.js → chunk-KVOFAN6O.js} +1 -1
- package/build/_chunks/{chunk-XKGWPJH3.js → chunk-L4LTLLIC.js} +1 -1
- package/build/_chunks/{chunk-TTN7ZV5A.js → chunk-L4R4BDJ7.js} +1 -1
- package/build/_chunks/chunk-LOGQD2AH.js +2 -0
- package/build/_chunks/{chunk-RKY3H652.js → chunk-M5HH57QL.js} +1 -1
- package/build/_chunks/{chunk-W5PRSAGY.js → chunk-MARRXRP5.js} +1 -1
- package/build/_chunks/{chunk-Z6UW23G2.js → chunk-MC6R7E5F.js} +1 -1
- package/build/_chunks/{chunk-WQXCSXY2.js → chunk-MXISJOX2.js} +1 -1
- package/build/_chunks/{chunk-WRI2SOG5.js → chunk-N2LPXJYV.js} +1 -1
- package/build/_chunks/chunk-N372QRVU.js +1 -0
- package/build/_chunks/{chunk-GT5JHT4Z.js → chunk-NU3Z4ZPB.js} +1 -1
- package/build/_chunks/{chunk-SSNLN2WD.js → chunk-OJFT5TWY.js} +1 -1
- package/build/_chunks/{chunk-KARRAWS6.js → chunk-OXEFLXNE.js} +1 -1
- package/build/_chunks/chunk-PKWJ2FEL.js +1 -0
- package/build/_chunks/{chunk-XMD3QPKG.js → chunk-QQBR2YOE.js} +1 -1
- package/build/_chunks/{chunk-YXYIIUDU.js → chunk-R7JX2ANB.js} +1 -1
- package/build/_chunks/{chunk-KXSUTTOP.js → chunk-RAIKBMLV.js} +1 -1
- package/build/_chunks/{chunk-UA62CSQY.js → chunk-RBELN5RP.js} +1 -1
- package/build/_chunks/{chunk-FIARQUB6.js → chunk-RJ2CHCRC.js} +1 -1
- package/build/_chunks/{chunk-3A3SRAOO.js → chunk-RXLAHJVL.js} +1 -1
- package/build/_chunks/{chunk-Z7SFKM5P.js → chunk-RYB34WRF.js} +1 -1
- package/build/_chunks/{chunk-JFVJHCMH.js → chunk-STBE7FVI.js} +1 -1
- package/build/_chunks/{chunk-VWSQS7GB.js → chunk-SWPEIUF7.js} +1 -1
- package/build/_chunks/{chunk-2CIEJ5D2.js → chunk-SZ2JIMZR.js} +1 -1
- package/build/_chunks/{chunk-JIAEHME3.js → chunk-T4G7CWM7.js} +1 -1
- package/build/_chunks/{chunk-GHFUBHMW.js → chunk-TJ3OW2D3.js} +1 -1
- package/build/_chunks/{chunk-5BJJM3FN.js → chunk-TSYM2TD4.js} +1 -1
- package/build/_chunks/{chunk-LYCFJTOZ.js → chunk-U4BS6S22.js} +1 -1
- package/build/_chunks/{chunk-TI25HFYD.js → chunk-UFZGCP2L.js} +1 -1
- package/build/_chunks/{chunk-Q3E3EOYH.js → chunk-UHXIVGBH.js} +1 -1
- package/build/_chunks/{chunk-XHLFUHFP.js → chunk-V2V4UQFR.js} +1 -1
- package/build/_chunks/{chunk-HHF2BAPD.js → chunk-VGIO2RGM.js} +1 -1
- package/build/_chunks/{chunk-G36VQ4MR.js → chunk-VJK74GR6.js} +1 -1
- package/build/_chunks/{chunk-OVL3YZKW.js → chunk-VLEEU2FO.js} +1 -1
- package/build/_chunks/{chunk-ARZOZ5K4.js → chunk-VRMAWN62.js} +1 -1
- package/build/_chunks/{chunk-7E4G5VJI.js → chunk-VYDLL6DY.js} +1 -1
- package/build/_chunks/{chunk-3QHIE2Q2.js → chunk-WOY5HLWU.js} +1 -1
- package/build/_chunks/{chunk-MPUUHZDB.js → chunk-WRVGVKKK.js} +1 -1
- package/build/_chunks/{chunk-QUAZMEL2.js → chunk-WXOQQKYA.js} +1 -1
- package/build/_chunks/{chunk-GUKFQSHS.js → chunk-YAP7GX6M.js} +1 -1
- package/build/_chunks/{chunk-SOD7DMG2.js → chunk-YNCRHG2V.js} +1 -1
- package/build/_chunks/{chunk-IOSRD2P7.js → chunk-YSJZK2JN.js} +1 -1
- package/build/_chunks/{chunk-E3RP2PKU.js → chunk-ZFTEDE2C.js} +1 -1
- package/build/_chunks/{chunk-PMEJKEXG.js → chunk-ZJ5VQT2D.js} +1 -1
- package/build/_chunks/{chunk-XE62WQO2.js → chunk-ZPMREIUX.js} +1 -1
- package/build/_chunks/{chunk-YAMP76EB.js → chunk-ZSL2IWZ2.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/Amount/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/CircularProgressWithLabel/index.js +1 -1
- package/build/components/Collapse/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/FieldFeedback/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/index.js +1 -1
- package/build/components/InputNumber/index.js +1 -1
- package/build/components/Inputs/index.js +1 -1
- package/build/components/JSONViewer/index.js +1 -1
- package/build/components/LanguageDropdown/index.js +1 -1
- package/build/components/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/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/ScrollLoader/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/Toaster/index.js +1 -1
- package/build/components/ToggleView/index.js +1 -1
- package/build/components/Toolbar/index.js +1 -1
- package/build/components/ToolbarIcon/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/Window/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/index.js +1 -1
- package/build/constants/apps.d.ts +110 -35
- package/build/constants/index.js +1 -1
- package/build/hooks/index.js +1 -1
- package/build/index.js +1 -1
- package/build/types/account.d.ts +6 -0
- package/build/types/accountWidget.d.ts +10 -3
- package/build/types/index.js +1 -1
- package/build/types/merchant.d.ts +26 -0
- package/build/utils/index.js +1 -1
- package/package.json +1 -1
- package/build/_chunks/chunk-KCWWDOCO.js +0 -1
- package/build/_chunks/chunk-LOTFEUXW.js +0 -1
- package/build/_chunks/chunk-NLVTY2M7.js +0 -1
- package/build/_chunks/chunk-PDWKNTYL.js +0 -1
- package/build/_chunks/chunk-PWCMWYAV.js +0 -2
- package/build/_chunks/chunk-TIS6EJNT.js +0 -1
- package/build/components/Skeleton/Skeleton.d.ts +0 -8
- package/build/components/Skeleton/index.d.ts +0 -2
- package/build/components/Skeleton/index.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import {c,b,g}from'./chunk-MEYMQAHV.js';import {a}from'./chunk-ETUGX3RF.js';import {a as a$1}from'./chunk-NBV6IJN4.js';import {yc}from'./chunk-WQXCSXY2.js';import {Qc,Db,B}from'./chunk-3YAJNHQC.js';import Ot,{useId,forwardRef,memo,useState,useCallback,useMemo,useEffect}from'react';import we from'@mui/material/Box';import {styled}from'@mui/material/styles';import $t from'@mui/material/TextField';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import io from'@mui/material/InputLabel';import lo from'@mui/material/MenuItem';import Kt from'@mui/material/SvgIcon';import Yt from'@mui/material/IconButton';import Qt from'@mui/material/CircularProgress';import to from'@mui/material/FormControl';import qe from'@mui/material/Select';import So from'@mui/material/Skeleton';import {styled as styled$1,Popper,Box,ClickAwayListener}from'@mui/material';import Ao from'@mui/material/Input';var Re=styled(we)(()=>({display:"flex",flexDirection:"column",gap:"4px",width:"100%",minHeight:40,"& .MuiTextField-root":{flex:1,margin:"0 !important"}})),Ae=styled($t,{shouldForwardProp:e=>!["hasError","feedbackType","hasFeedback","hideArrows","hasLabel"].includes(e)})(({theme:e,hasError:t,feedbackType:r,hasFeedback:n,hideArrows:b,hasLabel:l,disabled:s})=>{let{borderColor:u}=c(e,r),a=n?"4px 4px 0 0":"4px",c$1=s?e.palette.grey[400]:e.palette.common.white,o=e.palette.divider;return r&&(o=u),t&&!r&&(o=e.palette.error.main),{border:`1px solid ${o}`,borderBottom:n?"none":void 0,borderRadius:a,...b&&{"& 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}},"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiInputLabel-root":{fontSize:"10px",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)",color:`${e.palette.grey[700]} !important`,overflow:"visible"},"& .MuiInputLabel-root.MuiInputLabel-shrink, & .MuiInputLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)"},"& .MuiFilledInput-root":{maxHeight:"40px !important",height:"40px",overflow:"hidden",borderRadius:a,backgroundColor:c$1,paddingTop:l?"11px":"0px",paddingBottom:l?"4px":"0px",paddingLeft:"8px",boxSizing:"border-box",display:"inline-flex",alignItems:l?"stretch":"center","&:before, &:after":{display:"none"},"&:hover, &.Mui-focused, &.Mui-disabled":{backgroundColor:c$1}},"& .MuiFilledInput-input":{margin:0,padding:"0 !important",minHeight:0,height:"auto",boxSizing:"border-box",display:"flex",alignItems:l?"flex-end":"center",alignSelf:l?"flex-end":"center",fontSize:"11px",lineHeight:"11px",color:e.palette.text.primary,paddingBottom:l?"1px !important":"0 !important","&::placeholder":{color:e.palette.grey[500],opacity:1}}}}),Te=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));var We=Ot.forwardRef(({name:e,onChange:t,hasError:r,helperText:n,hideArrows:b$1,feedback:l,InputProps:s,InputLabelProps:u,label:a,placeholder:c,...o},y)=>{let h=yc(useId(),"input-base"),S=g=>{t?.(g.target.value??"");},f=l!=null,m=b(l),p=typeof a=="string"&&a.trim().length>0?a:void 0,I=p??c,v=p&&typeof c=="string"?c:void 0;return jsxs(we,{children:[jsx(Re,{id:h,"data-testid":"InputBase",children:jsx(Ae,{rows:1,hasError:!!r&&!f,hasFeedback:!!m,feedbackType:m?.type,hasLabel:!!I,fullWidth:true,size:"small",variant:"filled",ref:y,name:e,type:o.type??"text",label:I,placeholder:v,onChange:S,InputLabelProps:u,InputProps:{disableUnderline:true,...s,sx:s?.sx},hideArrows:b$1,...o})}),m&&jsx(g,{...m}),!f&&n&&jsx(Te,{children:n})]})});We.displayName="InputBase";var He=We;var Vt=He;var ze=forwardRef((e,t)=>jsx(Kt,{ref:t,viewBox:"0 0 8 8",fontSize:"small",...e,children:jsx("path",{d:"M6.63965 0.102539C6.75727 0.0997602 6.87304 0.133137 6.97168 0.197266C7.07023 0.261345 7.14718 0.353407 7.19238 0.461914C7.23757 0.570522 7.24961 0.690513 7.22559 0.805664C7.20154 0.920834 7.1425 1.02595 7.05762 1.10742L7.05664 1.10938L4.56738 3.59766L4.49512 3.66992L7.05762 6.23242C7.11359 6.28617 7.15865 6.35066 7.18945 6.42188C7.22023 6.49308 7.23648 6.5699 7.2373 6.64746C7.23809 6.72499 7.22359 6.80223 7.19434 6.87402C7.16499 6.9459 7.1213 7.0115 7.06641 7.06641C7.01149 7.12132 6.94592 7.16498 6.87402 7.19434C6.8022 7.22362 6.72502 7.23809 6.64746 7.2373C6.56987 7.23649 6.4931 7.22024 6.42188 7.18945C6.35064 7.15865 6.28618 7.1136 6.23242 7.05762L6.23145 7.05664L3.74219 4.56836L3.66992 4.49512L3.59766 4.56836L1.1084 7.05664L1.10742 7.05762C1.05365 7.11362 0.989227 7.15864 0.917969 7.18945C0.846721 7.22025 0.769997 7.2365 0.692383 7.2373C0.614798 7.23809 0.537661 7.22364 0.46582 7.19434C0.393921 7.16498 0.328351 7.12132 0.273438 7.06641C0.218559 7.01151 0.174849 6.94589 0.145508 6.87402C0.116258 6.80223 0.101751 6.72498 0.102539 6.64746C0.103364 6.5699 0.119618 6.49308 0.150391 6.42188C0.181198 6.35065 0.226245 6.28617 0.282227 6.23242L2.84473 3.66992L2.77246 3.59766L0.283203 1.10938L0.282227 1.1084L0.224609 1.04297C0.172384 0.974382 0.136093 0.894624 0.118164 0.80957C0.0942576 0.695891 0.104774 0.577375 0.148438 0.469727C0.192107 0.362124 0.266971 0.269962 0.363281 0.205078C0.459591 0.140238 0.573348 0.105497 0.689453 0.105469C0.767281 0.105527 0.844313 0.121103 0.916016 0.151367C0.987801 0.181723 1.05308 0.226359 1.10742 0.282227L3.66992 2.84473L6.23242 0.282227C6.33914 0.171037 6.48558 0.106239 6.63965 0.102539Z",fill:"#20232B",stroke:"white",strokeWidth:.20511})}));ze.displayName="DefaultClearIcon";var D=ze;var $e=forwardRef((e,t)=>jsx(Kt,{ref:t,viewBox:"0 0 8 5",fill:"none",fontSize:"small",sx:{width:8,height:5},...e,children:jsx("path",{d:"M7.30273 0.117188C7.3806 0.115307 7.4565 0.138248 7.52051 0.182617C7.58455 0.227088 7.63373 0.290458 7.66211 0.363281C7.69046 0.436073 7.69761 0.516047 7.68262 0.592773C7.66777 0.668745 7.63069 0.738375 7.57715 0.793945L4.17285 4.43164C4.10255 4.50662 4.00523 4.55078 3.90234 4.55078C3.79964 4.55064 3.703 4.5065 3.63281 4.43164L0.227539 0.794922L0.228516 0.793945C0.175799 0.738766 0.139848 0.669812 0.125 0.594727C0.11011 0.519097 0.116275 0.440194 0.143555 0.368164C0.170957 0.296002 0.218752 0.232474 0.28125 0.1875C0.343758 0.14262 0.418162 0.11821 0.495117 0.118164C0.546901 0.118166 0.598306 0.12907 0.645508 0.150391C0.691832 0.171346 0.733094 0.201824 0.767578 0.239258L3.90234 3.58691L7.03711 0.239258C7.10547 0.164191 7.20108 0.119752 7.30273 0.117188Z",fill:"#20232B",stroke:"#20232B",strokeWidth:.233333})}));$e.displayName="DefaultSelectIcon";var Oe=$e;function Be({size:e=20,color:t="grey.A400",...r}){return jsx(Qt,{size:e,sx:{backgroundColor:"transparent",color:t},...r})}function K({endAdornmentProp:e,isLoading:t,showClear:r,showMenuArrow:n,menuOpen:b,IconComponent:l,ClearIconComponent:s=D,onClear:u,onClearDefault:a}){return !(e||r||t||n)?null:jsxs(we,{className:"SelectBase-endAdornmentRoot",component:"span",children:[e,t?jsx(Be,{}):null,!t&&r?jsx(Yt,{className:"SelectBase-clearIconButton",type:"button",tabIndex:0,size:"small","aria-label":"Clear selection",onMouseDown:o=>{o.preventDefault(),o.stopPropagation();},onClick:o=>{o.preventDefault(),o.stopPropagation(),u?u():a();},sx:o=>({p:"1px",flexShrink:0,cursor:"pointer",color:"inherit",backgroundColor:"transparent",...l?{mr:2}:{},"&:hover":{backgroundColor:o.palette.action.hover},"&:focus-visible":{outline:`2px solid ${o.palette.primary.main}`,outlineOffset:1}}),children:jsx(s,{sx:{fontSize:8,width:8,height:8}})}):null,!t&&n&&!l&&jsx(we,{component:"span",className:`SelectBase-menuTriggerIcon${b?" SelectBase-menuTriggerIcon-open":""}`,"aria-hidden":true,children:jsx(Oe,{})})]})}function ie(e,t){if(e==null)return false;if(Array.isArray(e))return e.length>0;if(typeof e=="object"){if(t){let n=t(e);return n!=null&&n!==""}let r=e.id;return r!=null&&r!==""}return String(e)!==""}var le=styled(to)(({theme:e})=>({minWidth:52,height:"40px !important",maxHeight:"40px !important",backgroundColor:"transparent",width:"100%",cursor:"pointer","& .MuiInputBase-root":{cursor:"pointer"},"& .MuiInputBase-root.Mui-disabled":{cursor:"default"},"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)",color:`${e.palette.grey[700]} !important`,height:"100%",pointerEvents:"none"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}}));styled(qe)(({theme:e})=>({fontSize:"11px",lineHeight:"11px",color:e.palette.common.black,borderRadius:"4px",boxShadow:e.shadows[17],border:"none",outline:"none","&:focus":{border:"1px solid #1F88D0"},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:"rgba(0, 0, 0, 0.23)"},"&.Mui-focused fieldset":{border:"2px solid red"}},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%"}}));var pe=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),se=styled(qe,{shouldForwardProp:e=>!["feedbackType","hasFeedback"].includes(e)})(({theme:e,error:t,feedbackType:r,hasFeedback:n})=>{let{borderColor:b}=c(e,r),l=n?"4px 4px 0 0":"4px";return {width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:l,overflow:"hidden",backgroundColor:e.palette.grey[400],"&.Mui-disabled":{backgroundColor:e.palette.grey[400]},".MuiSelect-select":{padding:"0 8px !important",height:"40px !important",maxHeight:"40px !important",display:"flex",alignItems:"flex-end !important",backgroundColor:`${e.palette.grey[400]} !important`,borderRadius:l,fontSize:"11px",cursor:"pointer","&:focus":{backgroundColor:`${e.palette.grey[400]} !important`}},"&.Mui-disabled .MuiSelect-select":{cursor:"default"},".MuiSelect-filled":{padding:"0 8px !important"},"&.MuiInputBase-adornedEnd":{display:"inline-flex",alignItems:"center",backgroundColor:e.palette.grey[400],gap:0},"&&.MuiInputBase-adornedEnd .MuiInputBase-input":{flex:"1 1 0%",minWidth:0,width:"auto",maxWidth:"100%"},"& .SelectBase-endAdornmentRoot":{display:"flex",alignItems:"center",flexShrink:0,gap:"8px",position:"relative",zIndex:1},"& .SelectBase-menuTriggerIcon":{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:"inherit",lineHeight:0,"& svg, & .MuiSvgIcon-root":{transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter})}},"& .SelectBase-menuTriggerIcon-open svg, & .SelectBase-menuTriggerIcon-open .MuiSvgIcon-root":{transform:"rotate(180deg)"},"&.Mui-disabled .MuiSelect-icon":{color:"rgba(0, 0, 0, 0.38)"},"&.Mui-disabled .SelectBase-menuTriggerIcon":{cursor:"default",color:"rgba(0, 0, 0, 0.38)","& svg path":{fill:"rgba(0, 0, 0, 0.38)",stroke:"rgba(0, 0, 0, 0.38)"}},...r&&{border:`1px solid ${b}`},...n&&{borderBottom:"none"},...t&&{border:`1px solid ${e.palette.error.main}`}}}),de=styled(we)(()=>({display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1,cursor:"pointer","&:has(.MuiInputBase-root.Mui-disabled)":{cursor:"default"}}));function po(e,t){let{menuSearchable:r,menuSearchPlaceholder:n,...b$1}=e,{required:l,hasError:s,label:u,value:a,helperText:c,feedback:o,onChange:y,options:h,isOptionEqualToValue:S,renderOption:f,getOptionValue:m,isLoading:p,children:I,getOptionLabel:v,IconComponent:g$1,showClearIcon:x=false,ClearIconComponent:T=D,onClear:R,endAdornment:Y,inputProps:ye,open:_,onOpen:j,onClose:ee,menuHasSelectedCheckMark:xe=false,...q}=b$1,Ce=yc(useId(),"select-base"),[he,Ie]=useState(false),U=_??he,W=useCallback((i,V)=>{V?j?.(i):ee?.(i),_===void 0&&Ie(V);},[j,ee,_]),Se=i=>{y?.(i);},Fe=()=>a==null?"":f?f(a):v?v(a):a?.label??"",te="";a!=null&&(te=(m?m(a):a?.id)??"");let F=!!(q.disabled||p),d=x&&ie(a,m)&&!F,L=jsx(K,{endAdornmentProp:Y,isLoading:!!p,showClear:d,showMenuArrow:!p,menuOpen:U,IconComponent:g$1,ClearIconComponent:T,onClear:R,onClearDefault:()=>y?.(null)}),C=b(o);return jsxs(de,{onMouseDown:i=>{i.button===0&&(i.target.closest('.MuiSelect-select[role="combobox"]')||i.target.closest(".SelectBase-clearIconButton")||F||(i.preventDefault(),i.stopPropagation(),W(i,!U)));},onClick:i=>{i.target.closest('.MuiSelect-select[role="combobox"]')||i.target.closest(".SelectBase-clearIconButton")||(i.preventDefault(),i.stopPropagation());},children:[jsxs(le,{id:Ce,variant:"filled","data-testid":"SelectBase",required:l,children:[jsx(io,{id:`select-label-${u.trim()}`,"data-testid":"SelectBase_InputLabel",children:u}),jsx(se,{"data-testid":"SelectBase_Select",ref:t,value:te,error:s&&!C,feedbackType:C?.type,hasFeedback:!!C,disableUnderline:true,required:l,labelId:`select-label-${u.trim()}`,id:`select-label-${u.trim()}`,renderValue:Fe,...q,open:U,onOpen:i=>W(i,true),onClose:i=>W(i,false),inputProps:ye,disabled:F,IconComponent:g$1??(()=>null),endAdornment:L,children:I||h?.map(i=>{let V=S?S(i,a):i?.id===a?.id,zt=(m?m(i):i?.id)??i?.label??"select-base-item";return jsxs(lo,{disabled:!!i.disabled,value:(m?m(i):i?.id)??"",onClick:()=>{Se(i);},sx:{fontSize:"12px",display:"flex",justifyContent:"space-between",alignItems:"center",gap:1,backgroundColor:Le=>V?Le.palette.action.hover:Le.palette.common.white},children:[jsx(we,{component:"span",sx:{flex:1,minWidth:0},children:f?f(i):i.label}),xe&&V?jsx(we,{component:"img",src:Qc,alt:"",sx:{width:10,height:7.5,flexShrink:0}}):null]},`select-base-item-${zt}`)})})]}),C?jsx(g,{...C}):jsx(pe,{children:c})]})}var Ve=Ot.forwardRef(po);function yo({required:e,hasError:t,label:r,value:n,helperText:b$1,feedback:l,onChange:s,options:u,isOptionEqualToValue:a,renderOption:c,getOptionValue:o,isLoading:y,children:h,getOptionLabel:S,IconComponent:f,showClearIcon:m=false,ClearIconComponent:p=D,onClear:I,endAdornment:v,inputProps:g$1,open:x,onOpen:T,onClose:R,...Y},ye){let[_,j]=useState(false),ee=yc(useId(),"select-base-multiple"),xe=x??_,q=useCallback((d,k)=>{k?T?.(d):R?.(d),x===void 0&&j(k);},[T,R,x]),Ce=d=>{s?.(d);},he=()=>{let d=n?.filter(k=>k!=null)??[];return o?d.map(o):d.map(k=>k?.id)},Ie=useMemo(()=>u?.filter(d=>n?.some(k=>{if(k==null)return false;if(a)return a(d,k);if(o){let H=o(d),N=o(k);return H===N||String(H)===String(N)}let L=d?.id,C=k?.id;return L===C||String(L)===String(C)})),[u,n,a,o]),U=()=>Ie?.map(d=>S?S(d):d.label)?.join(", "),W=!!(Y.disabled||y),Se=m&&ie(n,o)&&!W,te=jsx(K,{endAdornmentProp:v,isLoading:!!y,showClear:Se,showMenuArrow:!y,menuOpen:xe,IconComponent:f,ClearIconComponent:p,onClear:I,onClearDefault:()=>s?.([])}),F=b(l);return jsxs(de,{children:[jsxs(le,{id:ee,variant:"filled","data-testid":"SelectBase",required:e,children:[jsx(io,{id:`select-label-${r.trim()}`,"data-testid":"SelectBase_InputLabel",children:r}),jsx(se,{multiple:true,"data-testid":"SelectBase_Select",ref:ye,value:he()??"",error:t&&!F,feedbackType:F?.type,hasFeedback:!!F,disableUnderline:true,required:e,labelId:`select-label-${r.trim()}`,id:`select-label-${r.trim()}`,renderValue:U,...Y,open:x,onOpen:d=>q(d,true),onClose:d=>q(d,false),inputProps:g$1,disabled:W,IconComponent:f??(()=>null),endAdornment:te,onChange:d=>{let L=d.target.value?.map(C=>u?.find(H=>{if(o){let i=o(H);return i===C||String(i)===String(C)}let N=H?.id;return N===C||String(N)===String(C)}));s?.(L?.filter(C=>C!=null)??[]);},children:h||u?.map((d,k)=>{let L=a?a(d,n):d?.id===n?.id;return jsx(lo,{value:(o?o(d):d?.id)??"",onClick:()=>{Ce(d);},sx:{fontSize:"12px",backgroundColor:C=>L?C.palette.action.hover:C.palette.common.white},children:c?c(d):d.label},`select-base-multiple-item-${k}`)})})]}),F?jsx(g,{...F}):jsx(pe,{children:b$1})]})}var Ke=Ot.forwardRef(yo);var xo=Ve;var Ze=styled$1("button")(({theme:e,disabled:t})=>({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:t?"default":"pointer",opacity:t?.5:1})),Je=styled$1(Popper)(({theme:e})=>({zIndex:9999,backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),Qe=styled$1("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),Xe=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"})),Ye=styled$1(a)(()=>({height:24,padding:"4px",marginBottom:"4px"})),je=styled$1(Box)(()=>({color:"red !important"}));function rt({isLoading:e,countries:t,value:r,onCountryChange:n,required:b,disabled:l}){let[s,u]=useState(),[a,c]=useState(null),[o,y]=useState([]),[h,S]=useState(""),f=!!a&&!l,m=g=>{g.stopPropagation(),c(g.currentTarget);},p=()=>{c(null);},I=g=>{n?.(g),u(g),p(),y(t);},v=g=>{let x=g.target.value.toString()??"";if(S(x),!x){y(t);return}let T=t.filter(R=>R.idd_prefix.toString().startsWith(x)||R.iso2.toLowerCase().startsWith(x.toLowerCase()));y(T);};return useEffect(()=>{r&&u(r);},[r?.countryId]),useEffect(()=>{t.length&&y(t);},[t.length]),jsxs(we,{"data-testid":"CountriesList",sx:{position:"relative"},children:[jsx(Ze,{type:"button","aria-describedby":"CountriesList_CountriesWrapper",onClick:m,disabled:e||l,sx:{backgroundColor:"transparent",border:"none",height:34,paddingInlineStart:"8px"},children:e?jsx(So,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsxs(Fragment,{children:[s&&jsxs(Fragment,{children:[jsx("img",{src:s.logo,alt:"c",className:"logo"}),jsx("span",{children:`+${s?.idd_prefix}`})]}),b&&jsx(je,{component:"span",children:"*"}),jsx(we,{component:"img",src:Db,alt:"d",className:"arrow",sx:{...f&&{transform:"rotate(180deg)"}}})]})}),f&&jsx(a$1,{onClick:p,sx:{zIndex:9999}}),f&&jsx(ClickAwayListener,{onClickAway:p,children:jsxs(Je,{id:"CountriesList_CountriesWrapper",open:f,anchorEl:a,"data-testid":"CountriesList_CountriesWrapper",placement:"bottom-start",children:[jsx(Ye,{endAdornment:jsx("img",{src:B,alt:"arrow"}),onChange:v,hideArrows:true,"data-testid":"CountriesList_InputStyled",value:h}),jsx(Qe,{"data-testid":"CountriesList_CountriesListStyled",children:o.map(g=>{let x=s?.countryId===g.countryId;return jsxs(Xe,{onClick:()=>{I(g);},sx:{backgroundColor:x?"#F9F9F9":"transparent",color:x?"#000":"#8D8D94"},children:[jsx("img",{src:g.logo,alt:"c",className:"logo"}),jsx("span",{children:`+${g.idd_prefix}`})]},`country-code-${g.countryId}`)})})]})})]})}rt.displayName="CountriesList";var nt=memo(rt);var ce=nt;var it=styled(we,{shouldForwardProp:e=>!["feedbackType","hasFeedback"].includes(e)})(({theme:e,feedbackType:t,hasFeedback:r})=>{let{borderColor:n}=c(e,t);return {border:`1px solid ${t?n:e.palette.divider}`,display:"flex",position:"relative",paddingInline:"8px",paddingInlineStart:"0px",alignItems:"center",borderRadius:r?"4px 4px 0 0":"4px",borderBottom:r?"none":void 0,height:"40px"}}),lt=styled(a)(({error:e})=>({border:"none",paddingInlineEnd:0,img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}})),pt=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),st=styled(we)(()=>({flex:1}));function ut({phoneValue:e,hasError:t,countries:r,isCountriesLoading:n,countryValue:b$1,onCountryChange:l,onPhoneChange:s,helperText:u,required:a,disabled:c,feedback:o,...y},h){let S=x=>{s?.(x.target.value);},f=x=>{l?.(x);},m=o!=null,p={...o,message:o?.message??u},I=b(p),v=null;I?v=jsx(g,{...I}):m||(v=jsx(pt,{children:u}));let g$1=yc(useId(),"phone-input-base");return jsxs(st,{id:g$1,"data-testid":"PhoneInput",children:[jsxs(it,{"data-testid":"PhoneInput_MobileWrapper",feedbackType:I?.type,hasFeedback:!!I,children:[jsx(ce,{isLoading:n,countries:r,value:b$1,onCountryChange:f,required:a,disabled:c}),jsx(lt,{value:e,"data-testid":"PhoneInput_InputNumberStyled",ref:h,inputProps:{autoComplete:"off"},error:t&&!m,disabled:c,...y,onChange:S,hideArrows:true})]}),v]})}ut.displayName="PhoneInputBase";var ct=Ot.forwardRef(ut);var vo=ct;var mt=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"})),ft=styled$1(Popper)(({theme:e})=>({zIndex:99,backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),gt=styled$1("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),bt=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"})),yt=styled$1(Box)(()=>({color:"red !important"}));function It({isLoading:e,currencies:t,value:r,onCurrencyChange:n,required:b}){let l=yc(useId(),"currencies-list"),[s,u]=useState(),[a,c]=useState(null),[o,y]=useState([]),h=!!a,S=p=>{p.stopPropagation(),c(p.currentTarget);},f=()=>{c(null);},m=p=>{n?.(p),u(p),f(),y(t);};return useEffect(()=>{r&&u(r);},[r?.currencyId]),useEffect(()=>{t.length&&y(t);},[t.length]),jsxs(we,{id:l,"data-testid":"currenciesList",sx:{position:"relative"},children:[jsx(mt,{type:"button","aria-describedby":"currenciesList_currenciesWrapper",onClick:S,disabled:e,sx:{backgroundColor:"transparent",border:"none",height:34,paddingInlineStart:"8px"},children:e?jsx(So,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsxs(Fragment,{children:[s&&jsxs(Fragment,{children:[jsx("img",{src:s.logo,alt:"c",className:"logo"}),jsx("span",{children:s?.code.english})]}),b&&jsx(yt,{component:"span",children:"*"}),jsx(we,{component:"img",src:Db,alt:"d",className:"arrow",sx:{...h&&{transform:"rotate(180deg)"}}})]})}),h&&jsx(a$1,{onClick:f}),h&&jsx(ft,{id:"currenciesList_currenciesWrapper",open:h,anchorEl:a,"data-testid":"currenciesList_currenciesWrapper",placement:"bottom-start",children:jsx(gt,{"data-testid":"currenciesList_currenciesListStyled",children:o.map(p=>{let I=s?.currencyId===p.currencyId;return jsxs(bt,{onClick:()=>{m(p);},sx:{backgroundColor:I?"#F9F9F9":"transparent",color:I?"#000":"#8D8D94"},children:[jsx("img",{src:p.logo,alt:"c",className:"logo"}),jsx("span",{children:p?.code.english})]},`currency-code-${p.currencyId}`)})})})]})}It.displayName="CurrenciesList";var St=memo(It);var kt=St;var Mt=styled(Ao,{shouldForwardProp:e=>!["hasError","hideArrows"].includes(e)})(({theme:e,hideArrows:t})=>({padding:"8px",border:`1px solid ${e.palette.divider}`,borderRadius:"4px",height:32,color:e.palette.text.primary,fontSize:"11px",outline:0,maxWidth:"100%",display:"flex",flexGrow:1,"::placeholder":{color:e.palette.grey[700],fontWeight:400},...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}}})),vt=styled(we)(()=>({flex:1}));function Ho({hasError:e,hideArrows:t,inputProps:r,...n},b){let l=yc(useId(),"amount-input-number");return jsx(vt,{id:l,"data-testid":"AmountInputNumber",onClick:s=>{s.stopPropagation();},children:jsx(Mt,{ref:b,placeholder:n.placeholder,hideArrows:true,hasError:e,disableUnderline:true,inputProps:{...r,type:"number"},onKeyDown:s=>{["e","E","+","-"].includes(s.key)&&s.preventDefault();},...n})})}var Ft=forwardRef(Ho);var Lt=Ft;var Pt=styled(we,{shouldForwardProp:e=>e!=="hasError"})(({theme:e,hasError:t})=>({border:`1px solid ${e.palette.divider}`,display:"flex",justifyContent:"space-between",position:"relative",paddingInline:"8px",paddingInlineStart:"0px",alignItems:"center",borderRadius:"4px",height:"40px",...t&&{border:`1px solid ${e.palette.error.main}`}})),Et=styled(we)(()=>({width:"50px"})),Rt=styled(Lt)(({error:e})=>({border:"none",paddingInlineEnd:0,img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}})),At=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),Tt=styled(we)(()=>({flex:1}));function Ht({amountValue:e,hasError:t,currencies:r,isCurrenciesLoading:n,currencyValue:b,onCurrencyChange:l,onAmountChange:s,onAmountBlur:u,helperText:a,required:c,...o},y){let h=p=>{s?.(p.target.value);},S=p=>{u?.(p.target.value);},f=p=>{l?.(p);},m=yc(useId(),"amount-input-base");return jsxs(Tt,{id:m,"data-testid":"AmountInput",children:[jsxs(Pt,{"data-testid":"AmountInput_MobileWrapper",hasError:t,children:[jsx(kt,{isLoading:n,currencies:r,value:b,onCurrencyChange:f,required:c}),jsx(Et,{children:jsx(Rt,{value:e,"data-testid":"AmountInput_InputNumberStyled",ref:y,inputProps:{autoComplete:"off"},error:t,...o,onChange:h,onBlur:S,hideArrows:true})})]}),jsx(At,{children:a})]})}Ht.displayName="AmountInputBase";var Nt=Ot.forwardRef(Ht);var Do=Nt;export{Vt as a,D as b,pe as c,de as d,Ke as e,xo as f,ce as g,vo as h,Do as i};
|
|
1
|
+
import {c,b,g}from'./chunk-FPEXFSFO.js';import {a}from'./chunk-J6HEXAGE.js';import {a as a$1}from'./chunk-2SBTZEUM.js';import {yc}from'./chunk-MXISJOX2.js';import {Qc,Db,B}from'./chunk-3YAJNHQC.js';import Ot,{useId,forwardRef,memo,useState,useCallback,useMemo,useEffect}from'react';import we from'@mui/material/Box';import {styled}from'@mui/material/styles';import $t from'@mui/material/TextField';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import io from'@mui/material/InputLabel';import lo from'@mui/material/MenuItem';import Kt from'@mui/material/SvgIcon';import Yt from'@mui/material/IconButton';import Qt from'@mui/material/CircularProgress';import to from'@mui/material/FormControl';import qe from'@mui/material/Select';import So from'@mui/material/Skeleton';import {styled as styled$1,Popper,Box,ClickAwayListener}from'@mui/material';import Ao from'@mui/material/Input';var Re=styled(we)(()=>({display:"flex",flexDirection:"column",gap:"4px",width:"100%",minHeight:40,"& .MuiTextField-root":{flex:1,margin:"0 !important"}})),Ae=styled($t,{shouldForwardProp:e=>!["hasError","feedbackType","hasFeedback","hideArrows","hasLabel"].includes(e)})(({theme:e,hasError:t,feedbackType:r,hasFeedback:n,hideArrows:b,hasLabel:l,disabled:s})=>{let{borderColor:u}=c(e,r),a=n?"4px 4px 0 0":"4px",c$1=s?e.palette.grey[400]:e.palette.common.white,o=e.palette.divider;return r&&(o=u),t&&!r&&(o=e.palette.error.main),{border:`1px solid ${o}`,borderBottom:n?"none":void 0,borderRadius:a,...b&&{"& 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}},"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiInputLabel-root":{fontSize:"10px",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)",color:`${e.palette.grey[700]} !important`,overflow:"visible"},"& .MuiInputLabel-root.MuiInputLabel-shrink, & .MuiInputLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)"},"& .MuiFilledInput-root":{maxHeight:"40px !important",height:"40px",overflow:"hidden",borderRadius:a,backgroundColor:c$1,paddingTop:l?"11px":"0px",paddingBottom:l?"4px":"0px",paddingLeft:"8px",boxSizing:"border-box",display:"inline-flex",alignItems:l?"stretch":"center","&:before, &:after":{display:"none"},"&:hover, &.Mui-focused, &.Mui-disabled":{backgroundColor:c$1}},"& .MuiFilledInput-input":{margin:0,padding:"0 !important",minHeight:0,height:"auto",boxSizing:"border-box",display:"flex",alignItems:l?"flex-end":"center",alignSelf:l?"flex-end":"center",fontSize:"11px",lineHeight:"11px",color:e.palette.text.primary,paddingBottom:l?"1px !important":"0 !important","&::placeholder":{color:e.palette.grey[500],opacity:1}}}}),Te=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));var We=Ot.forwardRef(({name:e,onChange:t,hasError:r,helperText:n,hideArrows:b$1,feedback:l,InputProps:s,InputLabelProps:u,label:a,placeholder:c,...o},y)=>{let h=yc(useId(),"input-base"),S=g=>{t?.(g.target.value??"");},f=l!=null,m=b(l),p=typeof a=="string"&&a.trim().length>0?a:void 0,I=p??c,v=p&&typeof c=="string"?c:void 0;return jsxs(we,{children:[jsx(Re,{id:h,"data-testid":"InputBase",children:jsx(Ae,{rows:1,hasError:!!r&&!f,hasFeedback:!!m,feedbackType:m?.type,hasLabel:!!I,fullWidth:true,size:"small",variant:"filled",ref:y,name:e,type:o.type??"text",label:I,placeholder:v,onChange:S,InputLabelProps:u,InputProps:{disableUnderline:true,...s,sx:s?.sx},hideArrows:b$1,...o})}),m&&jsx(g,{...m}),!f&&n&&jsx(Te,{children:n})]})});We.displayName="InputBase";var He=We;var Vt=He;var ze=forwardRef((e,t)=>jsx(Kt,{ref:t,viewBox:"0 0 8 8",fontSize:"small",...e,children:jsx("path",{d:"M6.63965 0.102539C6.75727 0.0997602 6.87304 0.133137 6.97168 0.197266C7.07023 0.261345 7.14718 0.353407 7.19238 0.461914C7.23757 0.570522 7.24961 0.690513 7.22559 0.805664C7.20154 0.920834 7.1425 1.02595 7.05762 1.10742L7.05664 1.10938L4.56738 3.59766L4.49512 3.66992L7.05762 6.23242C7.11359 6.28617 7.15865 6.35066 7.18945 6.42188C7.22023 6.49308 7.23648 6.5699 7.2373 6.64746C7.23809 6.72499 7.22359 6.80223 7.19434 6.87402C7.16499 6.9459 7.1213 7.0115 7.06641 7.06641C7.01149 7.12132 6.94592 7.16498 6.87402 7.19434C6.8022 7.22362 6.72502 7.23809 6.64746 7.2373C6.56987 7.23649 6.4931 7.22024 6.42188 7.18945C6.35064 7.15865 6.28618 7.1136 6.23242 7.05762L6.23145 7.05664L3.74219 4.56836L3.66992 4.49512L3.59766 4.56836L1.1084 7.05664L1.10742 7.05762C1.05365 7.11362 0.989227 7.15864 0.917969 7.18945C0.846721 7.22025 0.769997 7.2365 0.692383 7.2373C0.614798 7.23809 0.537661 7.22364 0.46582 7.19434C0.393921 7.16498 0.328351 7.12132 0.273438 7.06641C0.218559 7.01151 0.174849 6.94589 0.145508 6.87402C0.116258 6.80223 0.101751 6.72498 0.102539 6.64746C0.103364 6.5699 0.119618 6.49308 0.150391 6.42188C0.181198 6.35065 0.226245 6.28617 0.282227 6.23242L2.84473 3.66992L2.77246 3.59766L0.283203 1.10938L0.282227 1.1084L0.224609 1.04297C0.172384 0.974382 0.136093 0.894624 0.118164 0.80957C0.0942576 0.695891 0.104774 0.577375 0.148438 0.469727C0.192107 0.362124 0.266971 0.269962 0.363281 0.205078C0.459591 0.140238 0.573348 0.105497 0.689453 0.105469C0.767281 0.105527 0.844313 0.121103 0.916016 0.151367C0.987801 0.181723 1.05308 0.226359 1.10742 0.282227L3.66992 2.84473L6.23242 0.282227C6.33914 0.171037 6.48558 0.106239 6.63965 0.102539Z",fill:"#20232B",stroke:"white",strokeWidth:.20511})}));ze.displayName="DefaultClearIcon";var D=ze;var $e=forwardRef((e,t)=>jsx(Kt,{ref:t,viewBox:"0 0 8 5",fill:"none",fontSize:"small",sx:{width:8,height:5},...e,children:jsx("path",{d:"M7.30273 0.117188C7.3806 0.115307 7.4565 0.138248 7.52051 0.182617C7.58455 0.227088 7.63373 0.290458 7.66211 0.363281C7.69046 0.436073 7.69761 0.516047 7.68262 0.592773C7.66777 0.668745 7.63069 0.738375 7.57715 0.793945L4.17285 4.43164C4.10255 4.50662 4.00523 4.55078 3.90234 4.55078C3.79964 4.55064 3.703 4.5065 3.63281 4.43164L0.227539 0.794922L0.228516 0.793945C0.175799 0.738766 0.139848 0.669812 0.125 0.594727C0.11011 0.519097 0.116275 0.440194 0.143555 0.368164C0.170957 0.296002 0.218752 0.232474 0.28125 0.1875C0.343758 0.14262 0.418162 0.11821 0.495117 0.118164C0.546901 0.118166 0.598306 0.12907 0.645508 0.150391C0.691832 0.171346 0.733094 0.201824 0.767578 0.239258L3.90234 3.58691L7.03711 0.239258C7.10547 0.164191 7.20108 0.119752 7.30273 0.117188Z",fill:"#20232B",stroke:"#20232B",strokeWidth:.233333})}));$e.displayName="DefaultSelectIcon";var Oe=$e;function Be({size:e=20,color:t="grey.A400",...r}){return jsx(Qt,{size:e,sx:{backgroundColor:"transparent",color:t},...r})}function K({endAdornmentProp:e,isLoading:t,showClear:r,showMenuArrow:n,menuOpen:b,IconComponent:l,ClearIconComponent:s=D,onClear:u,onClearDefault:a}){return !(e||r||t||n)?null:jsxs(we,{className:"SelectBase-endAdornmentRoot",component:"span",children:[e,t?jsx(Be,{}):null,!t&&r?jsx(Yt,{className:"SelectBase-clearIconButton",type:"button",tabIndex:0,size:"small","aria-label":"Clear selection",onMouseDown:o=>{o.preventDefault(),o.stopPropagation();},onClick:o=>{o.preventDefault(),o.stopPropagation(),u?u():a();},sx:o=>({p:"1px",flexShrink:0,cursor:"pointer",color:"inherit",backgroundColor:"transparent",...l?{mr:2}:{},"&:hover":{backgroundColor:o.palette.action.hover},"&:focus-visible":{outline:`2px solid ${o.palette.primary.main}`,outlineOffset:1}}),children:jsx(s,{sx:{fontSize:8,width:8,height:8}})}):null,!t&&n&&!l&&jsx(we,{component:"span",className:`SelectBase-menuTriggerIcon${b?" SelectBase-menuTriggerIcon-open":""}`,"aria-hidden":true,children:jsx(Oe,{})})]})}function ie(e,t){if(e==null)return false;if(Array.isArray(e))return e.length>0;if(typeof e=="object"){if(t){let n=t(e);return n!=null&&n!==""}let r=e.id;return r!=null&&r!==""}return String(e)!==""}var le=styled(to)(({theme:e})=>({minWidth:52,height:"40px !important",maxHeight:"40px !important",backgroundColor:"transparent",width:"100%",cursor:"pointer","& .MuiInputBase-root":{cursor:"pointer"},"& .MuiInputBase-root.Mui-disabled":{cursor:"default"},"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)",color:`${e.palette.grey[700]} !important`,height:"100%",pointerEvents:"none"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}}));styled(qe)(({theme:e})=>({fontSize:"11px",lineHeight:"11px",color:e.palette.common.black,borderRadius:"4px",boxShadow:e.shadows[17],border:"none",outline:"none","&:focus":{border:"1px solid #1F88D0"},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:"rgba(0, 0, 0, 0.23)"},"&.Mui-focused fieldset":{border:"2px solid red"}},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%"}}));var pe=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),se=styled(qe,{shouldForwardProp:e=>!["feedbackType","hasFeedback"].includes(e)})(({theme:e,error:t,feedbackType:r,hasFeedback:n})=>{let{borderColor:b}=c(e,r),l=n?"4px 4px 0 0":"4px";return {width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:l,overflow:"hidden",backgroundColor:e.palette.grey[400],"&.Mui-disabled":{backgroundColor:e.palette.grey[400]},".MuiSelect-select":{padding:"0 8px !important",height:"40px !important",maxHeight:"40px !important",display:"flex",alignItems:"flex-end !important",backgroundColor:`${e.palette.grey[400]} !important`,borderRadius:l,fontSize:"11px",cursor:"pointer","&:focus":{backgroundColor:`${e.palette.grey[400]} !important`}},"&.Mui-disabled .MuiSelect-select":{cursor:"default"},".MuiSelect-filled":{padding:"0 8px !important"},"&.MuiInputBase-adornedEnd":{display:"inline-flex",alignItems:"center",backgroundColor:e.palette.grey[400],gap:0},"&&.MuiInputBase-adornedEnd .MuiInputBase-input":{flex:"1 1 0%",minWidth:0,width:"auto",maxWidth:"100%"},"& .SelectBase-endAdornmentRoot":{display:"flex",alignItems:"center",flexShrink:0,gap:"8px",position:"relative",zIndex:1},"& .SelectBase-menuTriggerIcon":{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:"inherit",lineHeight:0,"& svg, & .MuiSvgIcon-root":{transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter})}},"& .SelectBase-menuTriggerIcon-open svg, & .SelectBase-menuTriggerIcon-open .MuiSvgIcon-root":{transform:"rotate(180deg)"},"&.Mui-disabled .MuiSelect-icon":{color:"rgba(0, 0, 0, 0.38)"},"&.Mui-disabled .SelectBase-menuTriggerIcon":{cursor:"default",color:"rgba(0, 0, 0, 0.38)","& svg path":{fill:"rgba(0, 0, 0, 0.38)",stroke:"rgba(0, 0, 0, 0.38)"}},...r&&{border:`1px solid ${b}`},...n&&{borderBottom:"none"},...t&&{border:`1px solid ${e.palette.error.main}`}}}),de=styled(we)(()=>({display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1,cursor:"pointer","&:has(.MuiInputBase-root.Mui-disabled)":{cursor:"default"}}));function po(e,t){let{menuSearchable:r,menuSearchPlaceholder:n,...b$1}=e,{required:l,hasError:s,label:u,value:a,helperText:c,feedback:o,onChange:y,options:h,isOptionEqualToValue:S,renderOption:f,getOptionValue:m,isLoading:p,children:I,getOptionLabel:v,IconComponent:g$1,showClearIcon:x=false,ClearIconComponent:T=D,onClear:R,endAdornment:Y,inputProps:ye,open:_,onOpen:j,onClose:ee,menuHasSelectedCheckMark:xe=false,...q}=b$1,Ce=yc(useId(),"select-base"),[he,Ie]=useState(false),U=_??he,W=useCallback((i,V)=>{V?j?.(i):ee?.(i),_===void 0&&Ie(V);},[j,ee,_]),Se=i=>{y?.(i);},Fe=()=>a==null?"":f?f(a):v?v(a):a?.label??"",te="";a!=null&&(te=(m?m(a):a?.id)??"");let F=!!(q.disabled||p),d=x&&ie(a,m)&&!F,L=jsx(K,{endAdornmentProp:Y,isLoading:!!p,showClear:d,showMenuArrow:!p,menuOpen:U,IconComponent:g$1,ClearIconComponent:T,onClear:R,onClearDefault:()=>y?.(null)}),C=b(o);return jsxs(de,{onMouseDown:i=>{i.button===0&&(i.target.closest('.MuiSelect-select[role="combobox"]')||i.target.closest(".SelectBase-clearIconButton")||F||(i.preventDefault(),i.stopPropagation(),W(i,!U)));},onClick:i=>{i.target.closest('.MuiSelect-select[role="combobox"]')||i.target.closest(".SelectBase-clearIconButton")||(i.preventDefault(),i.stopPropagation());},children:[jsxs(le,{id:Ce,variant:"filled","data-testid":"SelectBase",required:l,children:[jsx(io,{id:`select-label-${u.trim()}`,"data-testid":"SelectBase_InputLabel",children:u}),jsx(se,{"data-testid":"SelectBase_Select",ref:t,value:te,error:s&&!C,feedbackType:C?.type,hasFeedback:!!C,disableUnderline:true,required:l,labelId:`select-label-${u.trim()}`,id:`select-label-${u.trim()}`,renderValue:Fe,...q,open:U,onOpen:i=>W(i,true),onClose:i=>W(i,false),inputProps:ye,disabled:F,IconComponent:g$1??(()=>null),endAdornment:L,children:I||h?.map(i=>{let V=S?S(i,a):i?.id===a?.id,zt=(m?m(i):i?.id)??i?.label??"select-base-item";return jsxs(lo,{disabled:!!i.disabled,value:(m?m(i):i?.id)??"",onClick:()=>{Se(i);},sx:{fontSize:"12px",display:"flex",justifyContent:"space-between",alignItems:"center",gap:1,backgroundColor:Le=>V?Le.palette.action.hover:Le.palette.common.white},children:[jsx(we,{component:"span",sx:{flex:1,minWidth:0},children:f?f(i):i.label}),xe&&V?jsx(we,{component:"img",src:Qc,alt:"",sx:{width:10,height:7.5,flexShrink:0}}):null]},`select-base-item-${zt}`)})})]}),C?jsx(g,{...C}):jsx(pe,{children:c})]})}var Ve=Ot.forwardRef(po);function yo({required:e,hasError:t,label:r,value:n,helperText:b$1,feedback:l,onChange:s,options:u,isOptionEqualToValue:a,renderOption:c,getOptionValue:o,isLoading:y,children:h,getOptionLabel:S,IconComponent:f,showClearIcon:m=false,ClearIconComponent:p=D,onClear:I,endAdornment:v,inputProps:g$1,open:x,onOpen:T,onClose:R,...Y},ye){let[_,j]=useState(false),ee=yc(useId(),"select-base-multiple"),xe=x??_,q=useCallback((d,k)=>{k?T?.(d):R?.(d),x===void 0&&j(k);},[T,R,x]),Ce=d=>{s?.(d);},he=()=>{let d=n?.filter(k=>k!=null)??[];return o?d.map(o):d.map(k=>k?.id)},Ie=useMemo(()=>u?.filter(d=>n?.some(k=>{if(k==null)return false;if(a)return a(d,k);if(o){let H=o(d),N=o(k);return H===N||String(H)===String(N)}let L=d?.id,C=k?.id;return L===C||String(L)===String(C)})),[u,n,a,o]),U=()=>Ie?.map(d=>S?S(d):d.label)?.join(", "),W=!!(Y.disabled||y),Se=m&&ie(n,o)&&!W,te=jsx(K,{endAdornmentProp:v,isLoading:!!y,showClear:Se,showMenuArrow:!y,menuOpen:xe,IconComponent:f,ClearIconComponent:p,onClear:I,onClearDefault:()=>s?.([])}),F=b(l);return jsxs(de,{children:[jsxs(le,{id:ee,variant:"filled","data-testid":"SelectBase",required:e,children:[jsx(io,{id:`select-label-${r.trim()}`,"data-testid":"SelectBase_InputLabel",children:r}),jsx(se,{multiple:true,"data-testid":"SelectBase_Select",ref:ye,value:he()??"",error:t&&!F,feedbackType:F?.type,hasFeedback:!!F,disableUnderline:true,required:e,labelId:`select-label-${r.trim()}`,id:`select-label-${r.trim()}`,renderValue:U,...Y,open:x,onOpen:d=>q(d,true),onClose:d=>q(d,false),inputProps:g$1,disabled:W,IconComponent:f??(()=>null),endAdornment:te,onChange:d=>{let L=d.target.value?.map(C=>u?.find(H=>{if(o){let i=o(H);return i===C||String(i)===String(C)}let N=H?.id;return N===C||String(N)===String(C)}));s?.(L?.filter(C=>C!=null)??[]);},children:h||u?.map((d,k)=>{let L=a?a(d,n):d?.id===n?.id;return jsx(lo,{value:(o?o(d):d?.id)??"",onClick:()=>{Ce(d);},sx:{fontSize:"12px",backgroundColor:C=>L?C.palette.action.hover:C.palette.common.white},children:c?c(d):d.label},`select-base-multiple-item-${k}`)})})]}),F?jsx(g,{...F}):jsx(pe,{children:b$1})]})}var Ke=Ot.forwardRef(yo);var xo=Ve;var Ze=styled$1("button")(({theme:e,disabled:t})=>({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:t?"default":"pointer",opacity:t?.5:1})),Je=styled$1(Popper)(({theme:e})=>({zIndex:9999,backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),Qe=styled$1("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),Xe=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"})),Ye=styled$1(a)(()=>({height:24,padding:"4px",marginBottom:"4px"})),je=styled$1(Box)(()=>({color:"red !important"}));function rt({isLoading:e,countries:t,value:r,onCountryChange:n,required:b,disabled:l}){let[s,u]=useState(),[a,c]=useState(null),[o,y]=useState([]),[h,S]=useState(""),f=!!a&&!l,m=g=>{g.stopPropagation(),c(g.currentTarget);},p=()=>{c(null);},I=g=>{n?.(g),u(g),p(),y(t);},v=g=>{let x=g.target.value.toString()??"";if(S(x),!x){y(t);return}let T=t.filter(R=>R.idd_prefix.toString().startsWith(x)||R.iso2.toLowerCase().startsWith(x.toLowerCase()));y(T);};return useEffect(()=>{r&&u(r);},[r?.countryId]),useEffect(()=>{t.length&&y(t);},[t.length]),jsxs(we,{"data-testid":"CountriesList",sx:{position:"relative"},children:[jsx(Ze,{type:"button","aria-describedby":"CountriesList_CountriesWrapper",onClick:m,disabled:e||l,sx:{backgroundColor:"transparent",border:"none",height:34,paddingInlineStart:"8px"},children:e?jsx(So,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsxs(Fragment,{children:[s&&jsxs(Fragment,{children:[jsx("img",{src:s.logo,alt:"c",className:"logo"}),jsx("span",{children:`+${s?.idd_prefix}`})]}),b&&jsx(je,{component:"span",children:"*"}),jsx(we,{component:"img",src:Db,alt:"d",className:"arrow",sx:{...f&&{transform:"rotate(180deg)"}}})]})}),f&&jsx(a$1,{onClick:p,sx:{zIndex:9999}}),f&&jsx(ClickAwayListener,{onClickAway:p,children:jsxs(Je,{id:"CountriesList_CountriesWrapper",open:f,anchorEl:a,"data-testid":"CountriesList_CountriesWrapper",placement:"bottom-start",children:[jsx(Ye,{endAdornment:jsx("img",{src:B,alt:"arrow"}),onChange:v,hideArrows:true,"data-testid":"CountriesList_InputStyled",value:h}),jsx(Qe,{"data-testid":"CountriesList_CountriesListStyled",children:o.map(g=>{let x=s?.countryId===g.countryId;return jsxs(Xe,{onClick:()=>{I(g);},sx:{backgroundColor:x?"#F9F9F9":"transparent",color:x?"#000":"#8D8D94"},children:[jsx("img",{src:g.logo,alt:"c",className:"logo"}),jsx("span",{children:`+${g.idd_prefix}`})]},`country-code-${g.countryId}`)})})]})})]})}rt.displayName="CountriesList";var nt=memo(rt);var ce=nt;var it=styled(we,{shouldForwardProp:e=>!["feedbackType","hasFeedback"].includes(e)})(({theme:e,feedbackType:t,hasFeedback:r})=>{let{borderColor:n}=c(e,t);return {border:`1px solid ${t?n:e.palette.divider}`,display:"flex",position:"relative",paddingInline:"8px",paddingInlineStart:"0px",alignItems:"center",borderRadius:r?"4px 4px 0 0":"4px",borderBottom:r?"none":void 0,height:"40px"}}),lt=styled(a)(({error:e})=>({border:"none",paddingInlineEnd:0,img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}})),pt=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),st=styled(we)(()=>({flex:1}));function ut({phoneValue:e,hasError:t,countries:r,isCountriesLoading:n,countryValue:b$1,onCountryChange:l,onPhoneChange:s,helperText:u,required:a,disabled:c,feedback:o,...y},h){let S=x=>{s?.(x.target.value);},f=x=>{l?.(x);},m=o!=null,p={...o,message:o?.message??u},I=b(p),v=null;I?v=jsx(g,{...I}):m||(v=jsx(pt,{children:u}));let g$1=yc(useId(),"phone-input-base");return jsxs(st,{id:g$1,"data-testid":"PhoneInput",children:[jsxs(it,{"data-testid":"PhoneInput_MobileWrapper",feedbackType:I?.type,hasFeedback:!!I,children:[jsx(ce,{isLoading:n,countries:r,value:b$1,onCountryChange:f,required:a,disabled:c}),jsx(lt,{value:e,"data-testid":"PhoneInput_InputNumberStyled",ref:h,inputProps:{autoComplete:"off"},error:t&&!m,disabled:c,...y,onChange:S,hideArrows:true})]}),v]})}ut.displayName="PhoneInputBase";var ct=Ot.forwardRef(ut);var vo=ct;var mt=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"})),ft=styled$1(Popper)(({theme:e})=>({zIndex:99,backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),gt=styled$1("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),bt=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"})),yt=styled$1(Box)(()=>({color:"red !important"}));function It({isLoading:e,currencies:t,value:r,onCurrencyChange:n,required:b}){let l=yc(useId(),"currencies-list"),[s,u]=useState(),[a,c]=useState(null),[o,y]=useState([]),h=!!a,S=p=>{p.stopPropagation(),c(p.currentTarget);},f=()=>{c(null);},m=p=>{n?.(p),u(p),f(),y(t);};return useEffect(()=>{r&&u(r);},[r?.currencyId]),useEffect(()=>{t.length&&y(t);},[t.length]),jsxs(we,{id:l,"data-testid":"currenciesList",sx:{position:"relative"},children:[jsx(mt,{type:"button","aria-describedby":"currenciesList_currenciesWrapper",onClick:S,disabled:e,sx:{backgroundColor:"transparent",border:"none",height:34,paddingInlineStart:"8px"},children:e?jsx(So,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsxs(Fragment,{children:[s&&jsxs(Fragment,{children:[jsx("img",{src:s.logo,alt:"c",className:"logo"}),jsx("span",{children:s?.code.english})]}),b&&jsx(yt,{component:"span",children:"*"}),jsx(we,{component:"img",src:Db,alt:"d",className:"arrow",sx:{...h&&{transform:"rotate(180deg)"}}})]})}),h&&jsx(a$1,{onClick:f}),h&&jsx(ft,{id:"currenciesList_currenciesWrapper",open:h,anchorEl:a,"data-testid":"currenciesList_currenciesWrapper",placement:"bottom-start",children:jsx(gt,{"data-testid":"currenciesList_currenciesListStyled",children:o.map(p=>{let I=s?.currencyId===p.currencyId;return jsxs(bt,{onClick:()=>{m(p);},sx:{backgroundColor:I?"#F9F9F9":"transparent",color:I?"#000":"#8D8D94"},children:[jsx("img",{src:p.logo,alt:"c",className:"logo"}),jsx("span",{children:p?.code.english})]},`currency-code-${p.currencyId}`)})})})]})}It.displayName="CurrenciesList";var St=memo(It);var kt=St;var Mt=styled(Ao,{shouldForwardProp:e=>!["hasError","hideArrows"].includes(e)})(({theme:e,hideArrows:t})=>({padding:"8px",border:`1px solid ${e.palette.divider}`,borderRadius:"4px",height:32,color:e.palette.text.primary,fontSize:"11px",outline:0,maxWidth:"100%",display:"flex",flexGrow:1,"::placeholder":{color:e.palette.grey[700],fontWeight:400},...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}}})),vt=styled(we)(()=>({flex:1}));function Ho({hasError:e,hideArrows:t,inputProps:r,...n},b){let l=yc(useId(),"amount-input-number");return jsx(vt,{id:l,"data-testid":"AmountInputNumber",onClick:s=>{s.stopPropagation();},children:jsx(Mt,{ref:b,placeholder:n.placeholder,hideArrows:true,hasError:e,disableUnderline:true,inputProps:{...r,type:"number"},onKeyDown:s=>{["e","E","+","-"].includes(s.key)&&s.preventDefault();},...n})})}var Ft=forwardRef(Ho);var Lt=Ft;var Pt=styled(we,{shouldForwardProp:e=>e!=="hasError"})(({theme:e,hasError:t})=>({border:`1px solid ${e.palette.divider}`,display:"flex",justifyContent:"space-between",position:"relative",paddingInline:"8px",paddingInlineStart:"0px",alignItems:"center",borderRadius:"4px",height:"40px",...t&&{border:`1px solid ${e.palette.error.main}`}})),Et=styled(we)(()=>({width:"50px"})),Rt=styled(Lt)(({error:e})=>({border:"none",paddingInlineEnd:0,img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}})),At=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),Tt=styled(we)(()=>({flex:1}));function Ht({amountValue:e,hasError:t,currencies:r,isCurrenciesLoading:n,currencyValue:b,onCurrencyChange:l,onAmountChange:s,onAmountBlur:u,helperText:a,required:c,...o},y){let h=p=>{s?.(p.target.value);},S=p=>{u?.(p.target.value);},f=p=>{l?.(p);},m=yc(useId(),"amount-input-base");return jsxs(Tt,{id:m,"data-testid":"AmountInput",children:[jsxs(Pt,{"data-testid":"AmountInput_MobileWrapper",hasError:t,children:[jsx(kt,{isLoading:n,currencies:r,value:b,onCurrencyChange:f,required:c}),jsx(Et,{children:jsx(Rt,{value:e,"data-testid":"AmountInput_InputNumberStyled",ref:y,inputProps:{autoComplete:"off"},error:t,...o,onChange:h,onBlur:S,hideArrows:true})})]}),jsx(At,{children:a})]})}Ht.displayName="AmountInputBase";var Nt=Ot.forwardRef(Ht);var Do=Nt;export{Vt as a,D as b,pe as c,de as d,Ke as e,xo as f,ce as g,vo as h,Do as i};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {b}from'./chunk-MUR4ILTY.js';import {yc}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-MUR4ILTY.js';import {yc}from'./chunk-MXISJOX2.js';import {xb}from'./chunk-3YAJNHQC.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 {yc}from'./chunk-
|
|
1
|
+
import {yc}from'./chunk-MXISJOX2.js';import {Dj}from'./chunk-3YAJNHQC.js';import {memo,useId}from'react';import f from'@mui/material/ButtonBase';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';import {Box}from'@mui/material';var d=styled(f,{shouldForwardProp:t=>t!=="variant"&&t!=="size"&&t!=="width"&&t!=="height"})(({theme:t,variant:o="confirm",size:e="default",width:n,height:r})=>({textTransform:"capitalize",borderRadius:"4px",lineHeight:"100%",gap:"8px","&.Mui-disabled":{opacity:.5},...o==="confirm"&&{color:t.palette.common.white,background:t.palette.info.dark},...o==="cancel"&&{color:t.palette.grey[700],border:`1px solid ${t.palette.divider}`},...e==="small"&&{height:24,width:"auto",padding:"8px 16px",fontWeight:600,fontSize:"10px"},...e==="default"&&{height:32,width:75,fontWeight:700,padding:"8px 24px",fontSize:"11px"},...n!==void 0&&{width:n},...r!==void 0&&{height:r}}));function u({children:t,sx:o,...e}){let n=yc(useId(),"button");return jsx(d,{id:n,"data-testid":"Button",sx:o,...e,children:t})}u.displayName="Button";var p=memo(u);function s({...t}){return jsx(Box,{component:"button","data-testid":"PlusButton",...t,sx:{cursor:"pointer",padding:0,margin:0,background:"transparent",border:"none",width:24,height:24,...t.sx},children:jsx("img",{src:Dj,alt:"Plus Button",width:24,height:24})})}s.displayName="PlusButton";var l=memo(s);var y=l;var q=p;export{y as a,q as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {yc}from'./chunk-
|
|
1
|
+
import {yc}from'./chunk-MXISJOX2.js';import {x}from'./chunk-3YAJNHQC.js';import {memo,useId,useCallback}from'react';import {Slider}from'@mui/material';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var p=["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(", "),d=styled(Slider)(({theme:e})=>({color:e.palette.info.dark,height:8,padding:0,"& .MuiSlider-rail":{backgroundColor:"#CFCFCF",opacity:1},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:e.palette.common.white,border:"none",backgroundImage:`url(${x})`,backgroundRepeat:"no-repeat",backgroundPosition:"center",boxShadow:p,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:p}}}));function t({value:e,min:a,max:n,step:l,disabled:m,onChange:r}){let u=yc(useId(),"slider"),b=useCallback((k,x)=>{r(x);},[r]);return jsx(d,{id:u,"data-testid":"Slider",value:e,min:a,max:n,step:l,disabled:m,onChange:b})}t.displayName="Slider";var h=memo(t);export{h as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-MC6R7E5F.js';import {memo,useCallback,Fragment as Fragment$1,createElement}from'react';import {useTranslation}from'react-i18next';import {jsx,Fragment}from'react/jsx-runtime';function B({isActiveFilterVisible:f,availableStatuses:v,status:e,onStatusChange:i,buttonSx:l}){let{t:I}=useTranslation(),S=f??false,b$1=useCallback(s=>s===e&&!S?"active":"inActive",[e,S]),u=useCallback(s=>{i?.(s);},[i]);return jsx(Fragment,{children:v?.map(({render:s,...a},d)=>{if(s)return jsx(Fragment$1,{children:s({status:e,onChange:u},{...a,index:d})},`custom-status-slot-${d}`);if(!Array.isArray(a.status))return createElement(b,{...a,key:`status-button-array-${a.status}`,variant:b$1(a.status),onClick:()=>{Array.isArray(a.status)||u(a.status);},buttonSx:l});if(!a.status)return null;let o=a.status.filter(Boolean).map(t=>typeof t=="string"?{value:t}:t)||[],c=!!e&&o.some(t=>t?.value===e);return jsx("div",{children:jsx(b,{...a,selectedStatus:c?e:void 0,variant:c?"active":"inActive",onButtonBodyClick:t=>u(t),dropdownOptions:o.map(t=>({label:t?.label||I(t?.value||""),status:t?.value,icon:t.icon,onClick:()=>u(t.value)})),buttonSx:l})},o[0]?.value)})})}var p=memo(B);var M=p;export{M as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$2}from'./chunk-
|
|
1
|
+
import {a as a$2}from'./chunk-N2LPXJYV.js';import {a as a$1}from'./chunk-TGRKEJOI.js';import {a as a$3}from'./chunk-VYDLL6DY.js';import {a}from'./chunk-GNY2VGGW.js';import {Vb,yc}from'./chunk-MXISJOX2.js';import {Ej,Fj,Lj,Pe}from'./chunk-3YAJNHQC.js';import {forwardRef,useState,useImperativeHandle,useEffect,useMemo,memo,useId}from'react';import {Button}from'@mui/material';import p from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {useTranslation}from'react-i18next';import {useDropzone}from'react-dropzone';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var G=styled(p)(()=>({textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"32px"})),u=styled(p)(()=>({paddingInline:"40px"})),d=styled(a,{shouldForwardProp:e=>e!=="isError"})(({theme:e,isError:i})=>({color:i?"#FF2000":e.palette.text.primary,fontSize:"18px",fontWeight:600,lineHeight:"20px",marginBottom:"8px"})),J=styled(p)(({theme:e})=>({color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"20px",padding:"4px 12px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,cursor:"pointer"})),g=styled(a)(({theme:e})=>({color:alpha(e.palette.text.primary,.7),fontSize:"12px",fontWeight:500,lineHeight:"20px"})),F=styled(p,{shouldForwardProp:e=>e!=="width"})(({theme:e,width:i})=>({width:i||431,minHeight:176,border:`1px dashed ${e.palette.secondary.light}`,borderRadius:"8px",padding:"24px 0",display:"flex",alignItems:"center",justifyContent:"center"})),h=styled(p)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"24px",color:e.palette.text.primary,fontSize:"14px",lineHeight:"20px",cursor:"default"})),K=styled("span")(()=>({fontWeight:600,textDecorationLine:"underline",cursor:"pointer"})),b=styled(p)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",color:e.palette.text.primary})),z=styled(p)(({theme:e})=>({color:alpha(e.palette.text.primary,.7),fontSize:"12px",fontWeight:500,lineHeight:"20px"})),L=styled(Button)(({theme:e,disabled:i})=>({borderRadius:"4px",minWidth:"105px",background:i?alpha(e.palette.info.dark,.4):e.palette.info.dark,color:e.palette.common.white,padding:"4px 8px",fontSize:"9px",fontWeight:600,height:"32px",display:"flex",alignItems:"center",justifyContent:"center",textTransform:"none","&:hover":{background:e.palette.info.dark,opacity:.8},"&.Mui-disabled":{color:e.palette.common.white}})),O=styled(p)(()=>({display:"flex",gap:"8px",justifyContent:"center",alignItems:"center",padding:"6px",boxShadow:"0px 4px 40px 0px rgba(0, 0, 0, 0.19)",borderRadius:"4px"}));var X=forwardRef(({accept:e,footer:i,options:x,isCreateLoading:U,progress:te,error:R,errorHint:oe,subtitleComponent:S,isSuccess:P,onConfirm:re,isSendDisabled:ie,errorActionComponent:le,title:l,width:B,successFooter:pe,progressVariant:ne},ae)=>{let{t:n}=useTranslation(),[a,H]=useState([]),{getRootProps:de,getInputProps:se,open:f,acceptedFiles:j,isDragReject:M,fileRejections:s}=useDropzone(x);useImperativeHandle(ae,()=>({open:f}),[f]),useEffect(()=>{H(j);},[j]);let C=Vb(x?.maxSize||0,0).toUpperCase(),m=useMemo(()=>{let me=s.length&&s[0].errors.some(k=>k.code==="file-invalid-type"),ce=s.length&&s[0].errors.some(k=>k.code==="file-too-large");return M||me?n("invalidFileType"):ce?`File is larger than ${C}`:R},[M,R,s,C,n]),W=useMemo(()=>a.length?jsxs(b,{sx:{fontWeight:600},children:[jsx(p,{children:a[0].name}),jsx(z,{children:Vb(a[0].size)})]}):null,[a]);return P&&a.length&&!U?jsxs(Fragment,{children:[jsxs(u,{children:[typeof l=="string"?jsx(d,{children:l}):l??jsx(d,{children:"File uploaded"}),S]}),jsx(F,{width:B,children:jsxs(h,{children:[P&&jsx(p,{component:"img",src:Ej,width:56,height:56}),W]})}),pe??jsxs(O,{children:[jsx(a$1,{onClick:()=>{H([]);},children:jsx(a$2,{src:Fj,alt:"delete",sx:{width:14,height:14}})}),jsx(L,{disabled:ie,onClick:()=>{re?.(a);},children:"Bulk Send"})]})]}):U&&a.length?jsxs(Fragment,{children:[jsxs(u,{children:[l&&typeof l!="string"?l:jsxs(Fragment,{children:[jsx(d,{children:l??n("uploading")}),jsx(g,{children:n("wait")})]}),S]}),jsx(F,{width:B,children:jsxs(h,{children:[U&&jsx(a$3,{size:56,value:te,variant:ne}),W]})}),i]}):jsxs(Fragment,{children:[jsxs(u,{children:[m?jsx(d,{isError:true,children:m}):typeof l=="string"?jsx(d,{children:l}):l??jsx(d,{children:n("uploadBulkFile")}),S||!!m&&jsx(g,{children:"Supported formats: xls, xlxs"})]}),jsxs(F,{width:B,...de(),children:[jsx("input",{...se()}),jsxs(h,{"data-slot":"content",children:[jsx(p,{component:"img",src:m?Lj:Pe,width:56,height:56}),oe,W,m?jsx(Fragment,{children:le||jsx(J,{onClick:f,children:n("uploadAgain")})}):jsxs(b,{children:[jsxs(p,{children:[jsx(K,{onClick:f,children:"Click to upload"})," or drag and drop"]}),jsxs(z,{children:["Maximum file size ",C]}),e&&jsx(g,{children:n("supportedFormats",{accept:e})})]})]})]}),i]})});X.displayName="FileUploadBase";var Y=memo(X);var _=forwardRef((e,i)=>{let x=yc(useId(),"file-upload");return jsx(G,{id:x,"data-testid":"FileUpload","data-slot":"file-upload-wrapper",children:jsx(Y,{...e,ref:i})})});_.displayName="FileUpload";var ee=memo(_);var Qe=ee;export{Qe as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=(s=>(s.DARK="dark",s.LIGHT="light",s))(e||{}),I=(s=>(s.AR="ar",s.EN="en",s))(I||{});var O=(i=>(i.ONE_TIME="oneTime",i.DAILY="daily",i.MONTHLY="monthly",i))(O||{}),d=(a=>(a.WHATSAPP="whatsapp",a.EMAIL="email",a.SMS="sms",a.CUSTOMER="customer",a))(d||{});var p=(r=>(r.MOBILE_APP="mobile_app",r.WEBSITE="website",r.CALL_CENTER="call_center",r.PHYSICAL_STORE="physical_store",r.SOCIAL_MEDIA="social_media",r.IOS="ios",r.ANDROID="android",r.LINKEDIN="linkedin",r.INSTAGRAM="instagram",r.TWITTER="twitter",r))(p||{});var T=(r=>(r.SAR="SAR",r.BHD="BHD",r.EGP="EGP",r.PKR="PKR",r.KWD="KWD",r.AED="AED",r.QAR="QAR",r.LBP="LBP",r.EUR="EUR",r.USD="USD",r))(T||{});var S=(n=>(n.BUSINESS="BUSINESS",n.PLATFORM="PLATFORM",n.DEVELOPMENT="DEVELOPMENT",n.PSP="PSP",n.PAYMENT_TECHNOLOGY="PAYMENT_TECHNOLOGY",n.PAYMENT_FACILITATOR="PAYMENT_FACILITATOR",n.PAYMENT_ACQUIRER="PAYMENT_ACQUIRER",n.PAYMENT_GATEWAY="PAYMENT_GATEWAY",n.PAYMENT_ISSUER="PAYMENT_ISSUER",n.APP_PLATFORM="APP_PLATFORM",n.BILLING_PLATFORM="BILLING_PLATFORM",n.COMMERCE_PLATFORM="COMMERCE_PLATFORM",n.DEVELOPMENT_HOUSE="DEVELOPMENT_HOUSE",n.PAYMENT_GATEWAY_PROVIDER="PAYMENT_GATEWAY_PROVIDER",n.RETAIL_PLATFORM="RETAIL_PLATFORM",n.MASTER_ORCHESTRATOR="MASTER_ORCHESTRATOR",n))(S||{});var g=(E=>(E.PaymentMethod="PAYMENT_METHOD",E.PaymentCurrency="PAYMENT_CURRENCY",E.PaymentScheme="PAYMENT_SCHEME",E.PaymentType="PAYMENT_TYPE",E.PaymentLocation="PAYMENT_LOCATION",E.PaymentIssuer="PAYMENT_ISSUER",E.PaymentAcquirer="PAYMENT_ACQUIRER",E.PaymentGateway="PAYMENT_GATEWAY",E))(g||{});var m=(_=>(_.TAPOS_FEATURE_EVENT="TAPOS_FEATURE_EVENT",_))(m||{}),D=(o=>(o.PERIOD_ACTION="PERIOD_ACTION",o.WINDOW_ACTION="WINDOW_ACTION",o.REPORT_ACTION="REPORT_ACTION",o.SEARCH_ACTION="SEARCH_ACTION",o.VIEW_ACTION="VIEW_ACTION",o.JSON_ACTION="JSON_ACTION",o.FILTER_ACTION="FILTER_ACTION",o.COPY_ACTION="COPY_ACTION",o.IN_APP_ACTION="IN_APP_ACTION",o.DATA_ENVIRONMENT_ACTION="DATA_ENVIRONMENT_ACTION",o.CALENDAR="CALENDAR",o.APP_SERVICE_NAVIGATION="APP_SERVICE_NAVIGATION",o.IN_APP_NAVIGATION="IN_APP_NAVIGATION",o.CROSS_APP_NAVIGATION="CROSS_APP_NAVIGATION",o.SIGN_IN_ACTION="SIGN_IN_ACTION",o.SIGN_OUT_ACTION="SIGN_OUT_ACTION",o.SWITCH_SEGMENT_ACTION="SWITCH_SEGMENT_ACTION",o))(D||{}),P=(t=>(t.PREDEFINED_PERIOD="PREDEFINED_PERIOD",t.TIMEZONE_USER="TIMEZONE_USER",t.TIMEZONE_MERCHANT="TIMEZONE_MERCHANT",t.OPEN_WINDOW="OPEN_WINDOW",t.TILE_WINDOW="TILE_WINDOW",t.CLOSE_WINDOW="CLOSE_WINDOW",t.FULL_SCREEN_WINDOW="FULL_SCREEN_WINDOW",t.MINIMIZE_WINDOW="MINIMIZE_WINDOW",t.NORMAL_WINDOW="NORMAL_WINDOW",t.REPORT_CSV="REPORT_CSV",t.SEARCH="SEARCH",t.SHEET_VIEW="SHEET_VIEW",t.STANDARD_VIEW="STANDARD_VIEW",t.CARD_VIEW="CARD_VIEW",t.USER_TEMPLATE="USER_TEMPLATE",t.JSON_RESPONSE="JSON_RESPONSE",t.JSON_COPY="JSON_COPY",t.JSON_COPY_ID="JSON_COPY_ID",t.JSON_REQUEST="JSON_REQUEST",t.JSON_SEARCH="JSON_SEARCH",t.COLLAPSE_JSON_NODES="COLLAPSE_JSON_NODES",t.EXPAND_JSON_NODES="EXPAND_JSON_NODES",t.COLUMN_FILTER="COLUMN_FILTER",t.GENERAL_FILTER="GENERAL_FILTER",t.CALENDAR_GREGORIAN="GREGORIAN",t.CALENDAR_HIJRI="HIJRI",t.SANDBOX_MODE="SANDBOX_MODE",t.LIVE_MODE="LIVE_MODE",t.COPY_ID="COPY_ID",t.APP_SERVICE_NAVIGATION="APP_SERVICE_NAVIGATION",t.IN_APP_NAVIGATION="IN_APP_NAVIGATION",t.CROSS_APP_NAVIGATION="CROSS_APP_NAVIGATION",t.SIGN_IN="SIGN_IN",t.SIGN_OUT="SIGN_OUT",t.SWITCH_SEGMENT="SWITCH_SEGMENT",t.SEND_REMINDER="SEND_REMINDER",t.CANCEL_INVOICE="CANCEL_INVOICE",t.SEND_INVOICE="SEND_INVOICE",t.VIEW_INVOICE="VIEW_INVOICE",t.REFUND_INVOICE="REFUND_INVOICE",t.UPDATE_METADATA="UPDATE_METADATA",t.CREATE_INVOICE="CREATE_INVOICE",t.CREATE_CHARGE="CREATE_CHARGE",t.VIEW_RECEIPT="VIEW_RECEIPT",t.VOID_AUTHORIZATION="VOID_AUTHORIZATION",t.CAPTURE_AUTHORIZATION="CAPTURE_AUTHORIZATION",t.ADD_USER="ADD_USER",t.UPDATE_USER="UPDATE_USER",t.REMOVE_USER="REMOVE_USER",t.ADD_USER_ROLE="ADD_USER_ROLE",t.REMOVE_USER_ROLE="REMOVE_USER_ROLE",t.ADD_ACCESS_PERMISSION="ADD_ACCESS_PERMISSION",t.REMOVE_ACCESS_PERMISSION="REMOVE_ACCESS_PERMISSION",t.ADD_APP_PERMISSION="ADD_APP_PERMISSION",t.REMOVE_APP_PERMISSION="REMOVE_APP_PERMISSION",t.ADD_FEATURE_PERMISSION="ADD_FEATURE_PERMISSION",t.REMOVE_FEATURE_PERMISSION="REMOVE_FEATURE_PERMISSION",t.ADD_BRAND="ADD_BRAND",t.UPDATE_BRAND="UPDATE_BRAND",t.REMOVE_BRAND="REMOVE_BRAND",t.ADD_BRAND_SALES_CHANNEL="ADD_BRAND_SALES_CHANNEL",t.REMOVE_BRAND_SALES_CHANNEL="REMOVE_BRAND_SALES_CHANNEL",t.DOWNLOAD_REPORT_FILE="DOWNLOAD_REPORT_FILE",t.UPDATE_TEAM_ASSIGNEE="UPDATE_TEAM_ASSIGNEE",t.ADD_TEAM_MEMBER="ADD_TEAM_MEMBER",t.UPDATE_BUSINESS_NAME="UPDATE_BUSINESS_NAME",t.DETAILED_STATEMENT="DETAILED_STATEMENT",t.AGGREGATE_STATEMENT_PER_DAY="AGGREGATE_STATEMENT_PER_DAY",t.AGGREGATE_STATEMENT_PER_MONTH="AGGREGATE_STATEMENT_PER_MONTH",t.AGGREGATE_STATEMENT_PER_QUARTER="AGGREGATE_STATEMENT_PER_QUARTER",t.AGGREGATE_STATEMENT_PER_YEAR="AGGREGATE_STATEMENT_PER_YEAR",t))(P||{});var R=(A=>(A.BRAND="brand",A.ENTITY="entity",A.USERS="users",A.USER_ROLES="userRoles",A.APP_SETTINGS="appSettings",A))(R||{});var
|
|
1
|
+
var e=(s=>(s.DARK="dark",s.LIGHT="light",s))(e||{}),I=(s=>(s.AR="ar",s.EN="en",s))(I||{});var O=(i=>(i.ONE_TIME="oneTime",i.DAILY="daily",i.MONTHLY="monthly",i))(O||{}),d=(a=>(a.WHATSAPP="whatsapp",a.EMAIL="email",a.SMS="sms",a.CUSTOMER="customer",a))(d||{});var p=(r=>(r.MOBILE_APP="mobile_app",r.WEBSITE="website",r.CALL_CENTER="call_center",r.PHYSICAL_STORE="physical_store",r.SOCIAL_MEDIA="social_media",r.IOS="ios",r.ANDROID="android",r.LINKEDIN="linkedin",r.INSTAGRAM="instagram",r.TWITTER="twitter",r))(p||{});var T=(r=>(r.SAR="SAR",r.BHD="BHD",r.EGP="EGP",r.PKR="PKR",r.KWD="KWD",r.AED="AED",r.QAR="QAR",r.LBP="LBP",r.EUR="EUR",r.USD="USD",r))(T||{});var S=(n=>(n.BUSINESS="BUSINESS",n.PLATFORM="PLATFORM",n.DEVELOPMENT="DEVELOPMENT",n.PSP="PSP",n.PAYMENT_TECHNOLOGY="PAYMENT_TECHNOLOGY",n.PAYMENT_FACILITATOR="PAYMENT_FACILITATOR",n.PAYMENT_ACQUIRER="PAYMENT_ACQUIRER",n.PAYMENT_GATEWAY="PAYMENT_GATEWAY",n.PAYMENT_ISSUER="PAYMENT_ISSUER",n.APP_PLATFORM="APP_PLATFORM",n.BILLING_PLATFORM="BILLING_PLATFORM",n.COMMERCE_PLATFORM="COMMERCE_PLATFORM",n.DEVELOPMENT_HOUSE="DEVELOPMENT_HOUSE",n.PAYMENT_GATEWAY_PROVIDER="PAYMENT_GATEWAY_PROVIDER",n.RETAIL_PLATFORM="RETAIL_PLATFORM",n.MASTER_ORCHESTRATOR="MASTER_ORCHESTRATOR",n))(S||{});var g=(E=>(E.PaymentMethod="PAYMENT_METHOD",E.PaymentCurrency="PAYMENT_CURRENCY",E.PaymentScheme="PAYMENT_SCHEME",E.PaymentType="PAYMENT_TYPE",E.PaymentLocation="PAYMENT_LOCATION",E.PaymentIssuer="PAYMENT_ISSUER",E.PaymentAcquirer="PAYMENT_ACQUIRER",E.PaymentGateway="PAYMENT_GATEWAY",E))(g||{});var m=(_=>(_.TAPOS_FEATURE_EVENT="TAPOS_FEATURE_EVENT",_))(m||{}),D=(o=>(o.PERIOD_ACTION="PERIOD_ACTION",o.WINDOW_ACTION="WINDOW_ACTION",o.REPORT_ACTION="REPORT_ACTION",o.SEARCH_ACTION="SEARCH_ACTION",o.VIEW_ACTION="VIEW_ACTION",o.JSON_ACTION="JSON_ACTION",o.FILTER_ACTION="FILTER_ACTION",o.COPY_ACTION="COPY_ACTION",o.IN_APP_ACTION="IN_APP_ACTION",o.DATA_ENVIRONMENT_ACTION="DATA_ENVIRONMENT_ACTION",o.CALENDAR="CALENDAR",o.APP_SERVICE_NAVIGATION="APP_SERVICE_NAVIGATION",o.IN_APP_NAVIGATION="IN_APP_NAVIGATION",o.CROSS_APP_NAVIGATION="CROSS_APP_NAVIGATION",o.SIGN_IN_ACTION="SIGN_IN_ACTION",o.SIGN_OUT_ACTION="SIGN_OUT_ACTION",o.SWITCH_SEGMENT_ACTION="SWITCH_SEGMENT_ACTION",o))(D||{}),P=(t=>(t.PREDEFINED_PERIOD="PREDEFINED_PERIOD",t.TIMEZONE_USER="TIMEZONE_USER",t.TIMEZONE_MERCHANT="TIMEZONE_MERCHANT",t.OPEN_WINDOW="OPEN_WINDOW",t.TILE_WINDOW="TILE_WINDOW",t.CLOSE_WINDOW="CLOSE_WINDOW",t.FULL_SCREEN_WINDOW="FULL_SCREEN_WINDOW",t.MINIMIZE_WINDOW="MINIMIZE_WINDOW",t.NORMAL_WINDOW="NORMAL_WINDOW",t.REPORT_CSV="REPORT_CSV",t.SEARCH="SEARCH",t.SHEET_VIEW="SHEET_VIEW",t.STANDARD_VIEW="STANDARD_VIEW",t.CARD_VIEW="CARD_VIEW",t.USER_TEMPLATE="USER_TEMPLATE",t.JSON_RESPONSE="JSON_RESPONSE",t.JSON_COPY="JSON_COPY",t.JSON_COPY_ID="JSON_COPY_ID",t.JSON_REQUEST="JSON_REQUEST",t.JSON_SEARCH="JSON_SEARCH",t.COLLAPSE_JSON_NODES="COLLAPSE_JSON_NODES",t.EXPAND_JSON_NODES="EXPAND_JSON_NODES",t.COLUMN_FILTER="COLUMN_FILTER",t.GENERAL_FILTER="GENERAL_FILTER",t.CALENDAR_GREGORIAN="GREGORIAN",t.CALENDAR_HIJRI="HIJRI",t.SANDBOX_MODE="SANDBOX_MODE",t.LIVE_MODE="LIVE_MODE",t.COPY_ID="COPY_ID",t.APP_SERVICE_NAVIGATION="APP_SERVICE_NAVIGATION",t.IN_APP_NAVIGATION="IN_APP_NAVIGATION",t.CROSS_APP_NAVIGATION="CROSS_APP_NAVIGATION",t.SIGN_IN="SIGN_IN",t.SIGN_OUT="SIGN_OUT",t.SWITCH_SEGMENT="SWITCH_SEGMENT",t.SEND_REMINDER="SEND_REMINDER",t.CANCEL_INVOICE="CANCEL_INVOICE",t.SEND_INVOICE="SEND_INVOICE",t.VIEW_INVOICE="VIEW_INVOICE",t.REFUND_INVOICE="REFUND_INVOICE",t.UPDATE_METADATA="UPDATE_METADATA",t.CREATE_INVOICE="CREATE_INVOICE",t.CREATE_CHARGE="CREATE_CHARGE",t.VIEW_RECEIPT="VIEW_RECEIPT",t.VOID_AUTHORIZATION="VOID_AUTHORIZATION",t.CAPTURE_AUTHORIZATION="CAPTURE_AUTHORIZATION",t.ADD_USER="ADD_USER",t.UPDATE_USER="UPDATE_USER",t.REMOVE_USER="REMOVE_USER",t.ADD_USER_ROLE="ADD_USER_ROLE",t.REMOVE_USER_ROLE="REMOVE_USER_ROLE",t.ADD_ACCESS_PERMISSION="ADD_ACCESS_PERMISSION",t.REMOVE_ACCESS_PERMISSION="REMOVE_ACCESS_PERMISSION",t.ADD_APP_PERMISSION="ADD_APP_PERMISSION",t.REMOVE_APP_PERMISSION="REMOVE_APP_PERMISSION",t.ADD_FEATURE_PERMISSION="ADD_FEATURE_PERMISSION",t.REMOVE_FEATURE_PERMISSION="REMOVE_FEATURE_PERMISSION",t.ADD_BRAND="ADD_BRAND",t.UPDATE_BRAND="UPDATE_BRAND",t.REMOVE_BRAND="REMOVE_BRAND",t.ADD_BRAND_SALES_CHANNEL="ADD_BRAND_SALES_CHANNEL",t.REMOVE_BRAND_SALES_CHANNEL="REMOVE_BRAND_SALES_CHANNEL",t.DOWNLOAD_REPORT_FILE="DOWNLOAD_REPORT_FILE",t.UPDATE_TEAM_ASSIGNEE="UPDATE_TEAM_ASSIGNEE",t.ADD_TEAM_MEMBER="ADD_TEAM_MEMBER",t.UPDATE_BUSINESS_NAME="UPDATE_BUSINESS_NAME",t.DETAILED_STATEMENT="DETAILED_STATEMENT",t.AGGREGATE_STATEMENT_PER_DAY="AGGREGATE_STATEMENT_PER_DAY",t.AGGREGATE_STATEMENT_PER_MONTH="AGGREGATE_STATEMENT_PER_MONTH",t.AGGREGATE_STATEMENT_PER_QUARTER="AGGREGATE_STATEMENT_PER_QUARTER",t.AGGREGATE_STATEMENT_PER_YEAR="AGGREGATE_STATEMENT_PER_YEAR",t))(P||{});var R=(A=>(A.BRAND="brand",A.ENTITY="entity",A.USERS="users",A.USER_ROLES="userRoles",A.APP_SETTINGS="appSettings",A))(R||{}),c=(i=>(i.ACCEPTANCE="ACCEPTANCE",i.WALLET="WALLET",i.RISK="RISK",i))(c||{});var M=(n=>(n.OnClickTableAction="on-click-table-action",n.OnRightClickTableAction="on-right-click-table-action",n.OnToggleTableMode="on-toggle-table-mode",n.OnChangeTableMode="on-change-table-mode",n.OnChangeCalenderMode="on-change-calender-mode",n.OnChangeTimezone="on-change-timezone",n.OnNavigate="on-navigate",n.OnStartDrag="on-start-drag",n.OnChangeAppToolbar="on-change-app-toolbar",n.OnToast="on-toast",n.OnInvalidateQueries="on-invalidate_queries",n.OnCloseApp="on-close-app",n.OnOpenChildApp="on-open-child-app",n.OnModifyRemotePayload="on-modify-remote-payload",n.OnAccountDataChanged="on-account-data-changed",n.OnPreloadApps="on-preload-apps",n))(M||{});var f=(i=>(i.NO_DISCOUNT="noDiscount",i.PERCENT="percent",i.FLAT="flat",i))(f||{});var b=(i=>(i.ALL="all",i.ENABLED="enabled",i.DISABLED="disabled",i))(b||{});var u=(a=>(a.COMPLETED="COMPLETED",a.FAILED="FAILED",a.PROCESSING="PROCESSING",a.INITIATED="INITIATED",a))(u||{});export{e as a,I as b,O as c,d,p as e,T as f,S as g,g as h,m as i,D as j,P as k,R as l,c as m,M as n,f as o,b as p,u as q};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-CMM74PXZ.js';import {ec,yc,x,Ia}from'./chunk-MXISJOX2.js';import {ea}from'./chunk-N372QRVU.js';import {useId,useState,useMemo}from'react';import {ResponsiveContainer,AreaChart,Area,Tooltip}from'recharts';import {useTheme}from'@mui/material/styles';import {useTranslation}from'react-i18next';import L from'dayjs';import V from'@mui/material/Box';import {styled,Box,Typography}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var M=styled(Box)(()=>({width:"auto",display:"inline-block",whiteSpace:"nowrap",backgroundColor:"white",padding:"6px",border:"1.5px solid #E6E6E6",borderRadius:"7.5px",backdropFilter:"blur(23.280000686645508px)",boxShadow:"0px 0px 15.52px 0px #4B484729"})),w=styled(Typography)({width:"auto",marginBottom:"4px",fontWeight:500,color:"#4B4847ED",fontSize:"9px",whiteSpace:"nowrap",overflow:"visible"}),K=styled(Typography)({display:"flex",alignItems:"center",gap:"5px",fontWeight:600,color:"#4B4847",fontSize:11,whiteSpace:"nowrap",overflow:"visible",width:"auto"}),B=styled(Box)({display:"flex",alignItems:"center",height:"100%",gap:"2.6px",maxHeight:"19px"}),S=styled(Typography)({fontWeight:500,fontSize:11,lineHeight:"130%",color:"#4B4847",letterSpacing:"-0.14px"});var W=(t,i,r)=>t?.value===void 0||t?.value===null?"":t?.dataKey===ea.AMOUNT?`${Ia(t.value,r).fullAmount}`.trim():`${t.value.toLocaleString()} ${i}`.trim(),$=(t,i,r=0)=>{let a=L(t).add(r,"hour").format(),n=new Date,e=L(a).isSame(n,"year");return x(a,i?void 0:{sameDay:`[Today] ${e?"":"YYYY"}`,nextDay:`[Tomorrow] ${e?"":"YYYY"}`,lastDay:`[Yesterday] ${e?"":"YYYY"}`,sameElse:`MMM DD ${e?"":", YYYY"}`,lastWeek:`MMM DD ${e?"":", YYYY"}`,nextWeek:`MMM DD ${e?"":", YYYY"}`},void 0,void 0,r!==void 0)};var G=({active:t,payload:i,dateRange:r,selectedCurrency:a$1})=>{let{t:n}=useTranslation(),e=L(r?.[0]),l=L(r?.[1]),y=e?.isSame(l,"day");if(t&&i?.length){let o=i[0],m=ec(o?.dataKey,o?.value),f=o?.payload?.date&&$(o?.payload?.date,y,o?.payload?.hour);return jsxs(M,{className:"chart-tooltip",children:[jsx(w,{children:f??o?.payload?.date}),jsxs(K,{children:[o?.dataKey===ea.AMOUNT&&jsxs(B,{children:[jsx(a,{currencyCode:a$1,width:12}),jsx(S,{children:a$1})]}),jsx(V,{children:`${W(o,n(m),a$1)}`})]})]})}return null},C=G;var _=[{dataKey:30},{dataKey:32.9941},{dataKey:39.0471},{dataKey:56.3412},{dataKey:69.3118},{dataKey:87.4706},{dataKey:94.3882},{dataKey:110.406}],q=()=>jsx(ResponsiveContainer,{children:jsxs(AreaChart,{margin:{top:40},data:_,children:[jsx("defs",{children:jsxs("linearGradient",{id:"loadingGradient",x1:"0",y1:"0",x2:"0",y2:"1",gradientUnits:"objectBoundingBox",children:[jsx("stop",{offset:"0.54",stopColor:"rgba(67, 67, 67, 0.035)"}),jsx("stop",{offset:"1",stopColor:"rgba(255, 255, 255, 0)"})]})}),jsx(Area,{dataKey:"dataKey",type:"linear",fill:"url(#loadingGradient)",fillOpacity:1,stroke:"#C2C2C2",strokeWidth:1,strokeLinecap:"round",strokeDasharray:"4 4",activeDot:false})]})}),T=q;var rt=({data:t,dataKey:i,isLoading:r,dateRange:a,selectedCurrency:n})=>{let e=yc(useId(),"activity-area-chart"),l=useTheme(),[y,o]=useState(false),[m,f]=useState({x:0,y:0}),I=t?.length===0,O=h=>{h.activeCoordinate&&h.isTooltipActive&&f(h.activeCoordinate);},R=useMemo(()=>jsx(C,{position:m,dateRange:a,selectedCurrency:n}),[m,a,n]);return r||I?jsx(T,{}):jsx(ResponsiveContainer,{id:e,"data-testid":"ActivityAreaChart",children:jsxs(AreaChart,{margin:{top:20},data:t,onMouseMove:O,children:[t.length>0&&jsx(Tooltip,{content:R,cursor:{fill:"#A5A8A3",stroke:"#A5A8A3",strokeWidth:1,strokeOpacity:1,stopOpacity:.3,strokeDasharray:"5 5",strokeLinecap:"round",strokeLinejoin:"round"}}),jsx(Area,{dataKey:i,type:"monotone",fill:"#76BB4012",stroke:l.palette.success.dark,activeDot:{r:5,fill:l.palette.success.dark,strokeWidth:2,stroke:"white",cursor:y?"pointer":"default",onMouseOver:()=>o(true),onMouseLeave:()=>o(false)}})]})})},F=rt;var zt=F;export{C as a,T as b,zt as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {a}from'./chunk-YE6EIJWK.js';import {d}from'./chunk-KAZ3B4EF.js';import {yc}from'./chunk-MXISJOX2.js';import {memo,useState,useId}from'react';import l from'@mui/material/Box';import {styled}from'@mui/material/styles';import {motion}from'framer-motion';import {jsx}from'react/jsx-runtime';var c=styled(motion.div)(({theme:o})=>({borderRadius:"8px",position:"fixed",display:"flex",flexDirection:"column",maxHeight:"calc(100vh - 46px)",width:416,margin:"auto",background:o.palette.grey[400],boxShadow:o.shadows[3]})),C=styled(l)(({theme:o})=>({background:o.palette.common.white,flex:1,paddingTop:"31px",paddingBottom:"31px",display:"flex",justifyContent:"flex-start",alignItems:"center",flexDirection:"column",position:"relative",overflow:"auto"})),b=styled(l)(({theme:o})=>({minHeight:95,background:o.palette.grey[400],paddingInline:"24px",paddingTop:"23px",paddingBottom:"23px",gap:"15px",position:"relative",zIndex:2})),h=styled(l)(({theme:o})=>({display:"flex",flexDirection:"column",padding:"18px 24px",boxShadow:o.shadows[15],position:"relative",gap:8,minHeight:68,backgroundColor:o.palette.common.white,borderBottomLeftRadius:"12px",borderBottomRightRadius:"12px"}));function p({children:o,index:e,dialogRef:a,height:t,onClick:r,order:s,dragControls:d,style:m}){let n=yc(useId(),"dialog");return jsx(c,{id:n,"data-testid":"Dialog",drag:true,dragListener:false,dragMomentum:false,dragControls:d,initial:{top:"50%",left:`calc(50% + ${e*10}px - ${416/2}px)`},transition:{duration:.1},animate:{...t&&{top:`calc(50% + ${e*10}px - ${t/2}px)`},zIndex:2+s},onClick:r,ref:a,style:m,children:o})}function L({title:o,onCloseDialog:e,...a$1}){let[t,r]=useState(false);return jsx(d,{onMouseEnter:()=>{r(true);},onMouseLeave:()=>{r(false);},isHovered:t,title:o,leftActions:jsx(a,{onClick:n=>{n.stopPropagation(),e();}}),...a$1})}var M=memo(L);var K=p;export{C as a,b,h as c,M as d,K as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-OJFT5TWY.js';import {yc}from'./chunk-MXISJOX2.js';import {memo,useId}from'react';import {styled}from'@mui/material/styles';import {Box}from'@mui/material';import {jsx,jsxs}from'react/jsx-runtime';var p=styled(b)(()=>({backgroundColor:"#EFF1F2",border:"none",display:"flex",alignItems:"center",justifyContent:"center"})),i=styled("span")(()=>({display:"flex",alignItems:"center"}));function C({amount:s,currency:t,...a}){let u=yc(useId(),"amount-status-chip");return jsx(p,{id:u,"data-testid":"AmountStatusChip",disableAnimation:true,expandDirection:"left",...a,children:jsxs(Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:"4px"},children:[t&&jsx(i,{children:t}),s]})})}var m=memo(C);var L=m;export{L as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {yc,Ia}from'./chunk-
|
|
1
|
+
import {yc,Ia}from'./chunk-MXISJOX2.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 r=styled("span")(()=>({fontWeight:400})),p=styled(d)(()=>({fontWeight:700,fontSize:"11px",display:"flex",alignItems:"center",cursor:"default",whiteSpace:"nowrap",overflow:"auto"}));function a({amount:i,currencyCode:s,...u}){let l=yc(useId(),"display-amount"),{integerAmount:c,decimalAmount:f}=Ia(i,s);return jsxs(p,{...u,id:l,"data-testid":"DisplayAmount",children:[jsx("span",{children:c}),jsx("span",{children:"."}),jsx(r,{children:f})]})}a.displayName="DisplayAmount";var m=memo(a);var P=m;export{P as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {yc}from'./chunk-
|
|
1
|
+
import {yc}from'./chunk-MXISJOX2.js';import {ri,si}from'./chunk-3YAJNHQC.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:ri,alt:"card"}),value:"CARDS"},{icon:jsx("img",{src:si,alt:"LIST"}),value:"LIST"}],S=e=>{let{currentView:o,onToggleClick:s,getOverrideViews:t}=e,v=yc(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 +1 @@
|
|
|
1
|
-
import {c,d}from'./chunk-P64YRZBA.js';import {a,c as c$1,d as d$1}from'./chunk-YE6EIJWK.js';import {b,a as a$1}from'./chunk-5M27EJRS.js';import {yc,xa}from'./chunk-WQXCSXY2.js';import {Hf}from'./chunk-3YAJNHQC.js';import {createContext,memo,useRef,useId,useContext,useMemo,useState,useLayoutEffect,useCallback}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {createPortal}from'react-dom';import {styled,Box,Button,alpha,Dialog}from'@mui/material';import nt from'@mui/material/Box';import {Resizable}from're-resizable';import st from'react-draggable';import {motion}from'framer-motion';var Y=createContext({viewerDefaultWidth:555,viewerDefaultHeight:545,position:{x:0,y:0},setPosition:()=>{},dimensions:{width:0,height:0},windowZIndex:1e4,isOpen:true,setIsMaximized:()=>{},setIsSidebarExpanded:()=>{},setIsToolbarAnimationDisabled:()=>{},setIsResized:()=>{},setNewDimensions:()=>{},isMaximized:false,isToolbarAnimationDisabled:true,isSidebarExpanded:false,isResized:false,onClose:()=>{},fullWindowWidth:0,fullWindowHeight:0,resizableRef:{current:null},updateRefSize:()=>{},updateSize:()=>{},containerRef:{current:null}});var Oe=555,Ve=545;function Q({children:e,isOpen:t,onClose:i,defaultWindowHeight:r,defaultWindowWidth:n,initialPosition:l,minWidth:u,maxWidth:a,minHeight:s,maxHeight:d,containerRef:m,windowZIndex:f=1}){let{height:c,width:E}=a$1(),[o,k]=useState(false),L=o?null:m?.current,y=L?.clientWidth||E,h=L?.clientHeight||c,I=n||Oe,g=r||Ve,[v,_]=useState({x:l?.x??y/2+I/2,y:l?.y??h/2-g/2}),[W,z]=useState(false),[T,D]=useState(false),[C,w]=useState(true),H=useRef(),[F,P]=useState({width:n??0,height:r??0}),G=useCallback(b=>{H?.current?.updateSize(b);},[]),O=useCallback(b=>{H.current?.updateSize(b),P(p=>({width:b.width??p.width,height:b.height??p.height}));},[]),J=useMemo(()=>({position:v,setPosition:_,resizableRef:H,windowZIndex:f,isOpen:t,setIsMaximized:k,setIsSidebarExpanded:w,setIsToolbarAnimationDisabled:D,setIsResized:z,isMaximized:o,isToolbarAnimationDisabled:T,isSidebarExpanded:C,isResized:W,dimensions:F,setNewDimensions:P,viewerDefaultWidth:I,viewerDefaultHeight:g,onClose:i,fullWindowWidth:y,fullWindowHeight:h,updateRefSize:G,updateSize:O,minWidth:u,maxWidth:a,minHeight:s,maxHeight:d,containerRef:m}),[v,_,H,t,k,w,D,z,o,T,C,W,F,P,y,h,I,g,G,O,i,u,a,s,d,m,f]);return jsx(Y.Provider,{value:J,children:e})}var xe=(e,t)=>t.toLowerCase().includes(e);function he(e,t,i){let r=xe("top",t),n=xe("left",t);return !r&&!n?null:{x:n?e.x+i.width:e.x,y:r?e.y-i.height:e.y}}var S=.5,we=183,be=287,ge=840,We=545,ee=35;function Xe({title:e,onClose:t,onMaximize:i,maximized:r=false,id:n,onRequestClick:l,isSidebarExpanded:u=false,isHovered:a$1=false,onMouseHover:s,onMouseLeave:d$2,showSectionsButton:m,rightActions:f,icon:c$2}){return jsx(c,{id:n,"data-testid":"UserTitleBar",maximized:r||false,children:jsx(d,{onMouseEnter:s,onMouseLeave:d$2,isMaximized:r,isHovered:a$1,title:e,icon:c$2||Hf,leftActions:jsxs(Fragment,{children:[jsx(a,{onClick:t}),jsx(c$1,{isMaximized:r,onClick:i}),m&&jsx(d$1,{onClick:l,isExpanded:!u,isHovered:a$1,children:"Sidebar"})]}),rightActions:f})})}var ye=memo(Xe);var te=ye;function Ze({isMaximized:e,setIsToolbarAnimationDisabled:t,setIsMaximized:i,onClose:r,isSidebarExpanded:n,setIsSidebarExpanded:l,isToolbarAnimationDisabled:u,title:a,showSectionsButton:s,rightActions:d,icon:m}){let{isHovered:f,onMouseEnter:c,onMouseLeave:E}=b();return jsx(motion.div,{style:{...e&&{height:0,zIndex:1e3,position:"relative"}},animate:{...e&&{width:"100vw"},...!e&&{transform:"translateX(0px)",width:"100%"}},transition:{duration:.5,...u&&{duration:0}},children:jsx(te,{title:a||"Users",showSectionsButton:s,onClose:r,onMaximize:()=>{i?.(o=>!o),t?.(true),setTimeout(()=>{t?.(false);},.5*1e3);},maximized:e,id:"draggable-dialog-title",onRequestClick:()=>{t?.(false),l(!n);},isSidebarExpanded:n,isHovered:f,onMouseHover:c,onMouseLeave:E,rightActions:d,icon:m})})}var Ae=memo(Ze);var Re=Ae;function dt({children:e,titleBar:t,titleBarText:i,mainAppOrder:r,mainAppIsMinimized:n,showSectionsButton:l=true,rightActions:u,titleBarIcon:a,overflow:s="hidden"}){let d=useRef(null),m=yc(useId(),"app-window"),{dimensions:f,position:c,resizableRef:E,isMaximized:o,isOpen:k,onClose:L,viewerDefaultWidth:y,viewerDefaultHeight:h,windowZIndex:I,setPosition:g,setNewDimensions:v,isToolbarAnimationDisabled:_,fullWindowWidth:W,fullWindowHeight:z,setIsMaximized:T,setIsResized:D,isResized:C,setIsToolbarAnimationDisabled:w,setIsSidebarExpanded:H,isSidebarExpanded:F,minWidth:P,maxWidth:G,minHeight:O,maxHeight:J,containerRef:b}=useContext(Y),p=useMemo(()=>document.createElement("div"),[]),[Pe,Be]=useState(null);useLayoutEffect(()=>{Be(b?.current??document.body);},[b]);let x=o?document.body:Pe;useLayoutEffect(()=>{if(!x)return;let A=x===document.body;return p.style.position=A?"":"absolute",p.style.inset=A?"":"0",p.style.pointerEvents="none",p.style.overflow="visible",x.appendChild(p),()=>{p.parentNode===x&&x.removeChild(p);}},[x,p]);let ne=useRef({x:0,y:0}),ae=xa(),Me=useCallback((A,N,se,Le)=>{D(true),v({width:se.offsetWidth,height:se.offsetHeight});let de=he(ne.current,N,Le);de&&g(de);},[v,D,g]),V=f.width||y;if(!x)return null;let ke=jsx(st,{nodeRef:d,disabled:o,handle:"#draggable-dialog-title",cancel:'[class*="MuiDialogContent-root"]',defaultClassName:"draggable-lead-dialog",defaultPosition:{x:W/2-V/2,y:z/2-h/2},position:{x:W-c.x,y:c.y},onStop:(A,N)=>{g({x:W-N.x,y:N.y});},...x===document.body&&{bounds:{top:10}},children:jsx(Dialog,{ref:d,sx:{backgroundColor:"transparent",pointerEvents:"none",zIndex:Number(r||0)+I+(o?1:0),...n&&{display:"none"},...x===document.body?!o&&{transform:"translate(180px, 14px)"}:!o&&{position:"absolute"},...!o&&{width:ae?V:"fit-content",height:ae?h:"fit-content"},...o&&{transform:"none !important"},boxShadow:"0px 0px 20px 0px rgba(0, 0, 0, 0.15)",overflow:"visible","& .MuiDialog-container":{overflow:"visible"}},PaperProps:{style:{margin:0,maxHeight:"100%",maxWidth:"none",background:"transparent",pointerEvents:"auto",overflow:s,width:C?"fit-content":V,height:C?"fit-content":"100%",...o&&{width:"100%",height:"100%"},position:"relative"}},onClose:()=>{T(false),w(true),setTimeout(()=>{w(false);},.5*1e3);},open:k,hideBackdrop:true,disableEnforceFocus:true,disableScrollLock:true,container:p,fullScreen:o,"aria-labelledby":"draggable-dialog-title",disablePortal:true,children:jsx(Resizable,{"data-testid":"Resizable",enable:{topLeft:true,topRight:true,bottomLeft:true,bottomRight:true,left:true,right:true,bottom:true,top:true},handleStyles:{bottom:{zIndex:2},bottomLeft:{zIndex:2},bottomRight:{zIndex:2}},size:{width:f.width,height:f.height},maxHeight:J??z-40,maxWidth:G??W,minWidth:o?"100vw":P??y,minHeight:o?"100vh":O??h,ref:A=>{E.current=A;},onResizeStart:()=>{ne.current=c,w(true);},onResizeStop:()=>{w(false);},onResize:Me,defaultSize:{width:V,height:h},style:{background:"transparent",height:f.height,overflow:s,...o&&{height:"100% !important",width:"100% !important",flex:1},...o&&{position:"relative"}},children:jsxs(nt,{sx:{height:"100%"},id:m,"data-testid":"AppWindow",children:[t??jsx(Re,{setIsToolbarAnimationDisabled:w,onClose:L,setIsMaximized:T,isToolbarAnimationDisabled:_,setIsSidebarExpanded:H,isSidebarExpanded:F,title:i,isMaximized:o,showSectionsButton:l,rightActions:u,icon:a}),e]})})})});return createPortal(ke,p)}var Ie=memo(dt);var ut=styled(Box,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:t})=>({background:t?"linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)":"transparent",borderRadius:"4px",padding:"4px 8px",color:t?e.palette.common.white:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer"})),mt=styled(Button)(({theme:e,disabled:t})=>({background:t?alpha(e.palette.info.dark,.4):e.palette.info.dark,color:e.palette.common.white,padding:"0px 8px",fontSize:"9px",fontWeight:600,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",textTransform:"none","&:hover":{background:e.palette.info.dark,opacity:.8},"&.Mui-disabled":{color:e.palette.common.white}})),ft=styled(Box)(({theme:e})=>({display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"8px",backgroundColor:e.palette.background.paper,padding:"6px",transform:"translateY(calc(-50% - 6px))",boxShadow:"0px 4px 40px 0px rgba(0, 0, 0, 0.19)",borderRadius:"4px",height:"36px",transition:e.transitions.create(["width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.complex})})),ct=styled(Box)(()=>({position:"fixed",height:35,bottom:0,left:0,right:0,padding:"6px 16px",zIndex:1,backgroundColor:"#eaeaea",backdropFilter:"blur(12px)",display:"flex",justifyContent:"flex-end",borderBottomLeftRadius:"12px",borderBottomRightRadius:"12px"})),xt=styled(Button)(()=>({padding:"4px 8px",boxShadow:"0px 0px 4px 0px rgba(0, 0, 0, 0.08)",display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"4px",color:"rgba(32, 35, 43, 0.80)",fontWeight:600,fontSize:"9px",textTransform:"none"}));var ie=Ie;function ht({children:e,windowProps:t,...i}){return i.isOpen?jsx(Q,{...i,children:jsx(ie,{...t,children:e})}):null}var Te=ht;function bt({title:e,maximized:t=false,id:i,isHovered:r=false,onMouseHover:n,onMouseLeave:l,leftActions:u,titleIconSrc:a,sx:s,...d$1}){return jsx(c,{className:"header-wrapper",id:i,maximized:t||false,sx:s,...d$1,children:jsx(d,{onMouseEnter:n,onMouseLeave:l,isMaximized:t,isHovered:r,title:e||"",icon:a,leftActions:u})})}var re=memo(bt);function yt({isMaximized:e,id:t,isToolbarAnimationDisabled:i,title:r,leftActions:n,onClose:l,onMaximize:u,sx:a$1}){let{isHovered:s,onMouseEnter:d,onMouseLeave:m}=b();return jsx(motion.div,{style:{...e&&{height:0,zIndex:1e3,position:"relative"}},animate:{...e&&{width:"100vw"},...!e&&{transform:"translateX(0px)",width:"100%"}},transition:{duration:.5,...i&&{duration:0}},children:jsx(re,{title:r,maximized:e,id:t||"draggable-dialog-title",isHovered:s,onMouseHover:d,onMouseLeave:m,leftActions:n||jsxs(Fragment,{children:[jsx(a,{onClick:l}),jsx(c$1,{isMaximized:e,onClick:()=>u?.(!e)})]}),sx:a$1})})}var Ce=memo(yt);var Rt=Ce;var Vo=Te;export{Y as a,Q as b,S as c,we as d,be as e,ge as f,We as g,ee as h,te as i,ut as j,mt as k,ft as l,ct as m,xt as n,ie as o,re as p,Rt as q,Vo as r};
|
|
1
|
+
import {a,c as c$1,d as d$1}from'./chunk-YE6EIJWK.js';import {c,d}from'./chunk-KAZ3B4EF.js';import {b,a as a$1}from'./chunk-37MMGHJP.js';import {yc,xa}from'./chunk-MXISJOX2.js';import {Hf}from'./chunk-3YAJNHQC.js';import {createContext,memo,useRef,useId,useContext,useMemo,useState,useLayoutEffect,useCallback}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {createPortal}from'react-dom';import {styled,Box,Button,alpha,Dialog}from'@mui/material';import nt from'@mui/material/Box';import {Resizable}from're-resizable';import st from'react-draggable';import {motion}from'framer-motion';var Y=createContext({viewerDefaultWidth:555,viewerDefaultHeight:545,position:{x:0,y:0},setPosition:()=>{},dimensions:{width:0,height:0},windowZIndex:1e4,isOpen:true,setIsMaximized:()=>{},setIsSidebarExpanded:()=>{},setIsToolbarAnimationDisabled:()=>{},setIsResized:()=>{},setNewDimensions:()=>{},isMaximized:false,isToolbarAnimationDisabled:true,isSidebarExpanded:false,isResized:false,onClose:()=>{},fullWindowWidth:0,fullWindowHeight:0,resizableRef:{current:null},updateRefSize:()=>{},updateSize:()=>{},containerRef:{current:null}});var Oe=555,Ve=545;function Q({children:e,isOpen:t,onClose:i,defaultWindowHeight:r,defaultWindowWidth:n,initialPosition:l,minWidth:u,maxWidth:a,minHeight:s,maxHeight:d,containerRef:m,windowZIndex:f=1}){let{height:c,width:E}=a$1(),[o,k]=useState(false),L=o?null:m?.current,y=L?.clientWidth||E,h=L?.clientHeight||c,I=n||Oe,g=r||Ve,[v,_]=useState({x:l?.x??y/2+I/2,y:l?.y??h/2-g/2}),[W,z]=useState(false),[T,D]=useState(false),[C,w]=useState(true),H=useRef(),[F,P]=useState({width:n??0,height:r??0}),G=useCallback(b=>{H?.current?.updateSize(b);},[]),O=useCallback(b=>{H.current?.updateSize(b),P(p=>({width:b.width??p.width,height:b.height??p.height}));},[]),J=useMemo(()=>({position:v,setPosition:_,resizableRef:H,windowZIndex:f,isOpen:t,setIsMaximized:k,setIsSidebarExpanded:w,setIsToolbarAnimationDisabled:D,setIsResized:z,isMaximized:o,isToolbarAnimationDisabled:T,isSidebarExpanded:C,isResized:W,dimensions:F,setNewDimensions:P,viewerDefaultWidth:I,viewerDefaultHeight:g,onClose:i,fullWindowWidth:y,fullWindowHeight:h,updateRefSize:G,updateSize:O,minWidth:u,maxWidth:a,minHeight:s,maxHeight:d,containerRef:m}),[v,_,H,t,k,w,D,z,o,T,C,W,F,P,y,h,I,g,G,O,i,u,a,s,d,m,f]);return jsx(Y.Provider,{value:J,children:e})}var xe=(e,t)=>t.toLowerCase().includes(e);function he(e,t,i){let r=xe("top",t),n=xe("left",t);return !r&&!n?null:{x:n?e.x+i.width:e.x,y:r?e.y-i.height:e.y}}var S=.5,we=183,be=287,ge=840,We=545,ee=35;function Xe({title:e,onClose:t,onMaximize:i,maximized:r=false,id:n,onRequestClick:l,isSidebarExpanded:u=false,isHovered:a$1=false,onMouseHover:s,onMouseLeave:d$2,showSectionsButton:m,rightActions:f,icon:c$2}){return jsx(c,{id:n,"data-testid":"UserTitleBar",maximized:r||false,children:jsx(d,{onMouseEnter:s,onMouseLeave:d$2,isMaximized:r,isHovered:a$1,title:e,icon:c$2||Hf,leftActions:jsxs(Fragment,{children:[jsx(a,{onClick:t}),jsx(c$1,{isMaximized:r,onClick:i}),m&&jsx(d$1,{onClick:l,isExpanded:!u,isHovered:a$1,children:"Sidebar"})]}),rightActions:f})})}var ye=memo(Xe);var te=ye;function Ze({isMaximized:e,setIsToolbarAnimationDisabled:t,setIsMaximized:i,onClose:r,isSidebarExpanded:n,setIsSidebarExpanded:l,isToolbarAnimationDisabled:u,title:a,showSectionsButton:s,rightActions:d,icon:m}){let{isHovered:f,onMouseEnter:c,onMouseLeave:E}=b();return jsx(motion.div,{style:{...e&&{height:0,zIndex:1e3,position:"relative"}},animate:{...e&&{width:"100vw"},...!e&&{transform:"translateX(0px)",width:"100%"}},transition:{duration:.5,...u&&{duration:0}},children:jsx(te,{title:a||"Users",showSectionsButton:s,onClose:r,onMaximize:()=>{i?.(o=>!o),t?.(true),setTimeout(()=>{t?.(false);},.5*1e3);},maximized:e,id:"draggable-dialog-title",onRequestClick:()=>{t?.(false),l(!n);},isSidebarExpanded:n,isHovered:f,onMouseHover:c,onMouseLeave:E,rightActions:d,icon:m})})}var Ae=memo(Ze);var Re=Ae;function dt({children:e,titleBar:t,titleBarText:i,mainAppOrder:r,mainAppIsMinimized:n,showSectionsButton:l=true,rightActions:u,titleBarIcon:a,overflow:s="hidden"}){let d=useRef(null),m=yc(useId(),"app-window"),{dimensions:f,position:c,resizableRef:E,isMaximized:o,isOpen:k,onClose:L,viewerDefaultWidth:y,viewerDefaultHeight:h,windowZIndex:I,setPosition:g,setNewDimensions:v,isToolbarAnimationDisabled:_,fullWindowWidth:W,fullWindowHeight:z,setIsMaximized:T,setIsResized:D,isResized:C,setIsToolbarAnimationDisabled:w,setIsSidebarExpanded:H,isSidebarExpanded:F,minWidth:P,maxWidth:G,minHeight:O,maxHeight:J,containerRef:b}=useContext(Y),p=useMemo(()=>document.createElement("div"),[]),[Pe,Be]=useState(null);useLayoutEffect(()=>{Be(b?.current??document.body);},[b]);let x=o?document.body:Pe;useLayoutEffect(()=>{if(!x)return;let A=x===document.body;return p.style.position=A?"":"absolute",p.style.inset=A?"":"0",p.style.pointerEvents="none",p.style.overflow="visible",x.appendChild(p),()=>{p.parentNode===x&&x.removeChild(p);}},[x,p]);let ne=useRef({x:0,y:0}),ae=xa(),Me=useCallback((A,N,se,Le)=>{D(true),v({width:se.offsetWidth,height:se.offsetHeight});let de=he(ne.current,N,Le);de&&g(de);},[v,D,g]),V=f.width||y;if(!x)return null;let ke=jsx(st,{nodeRef:d,disabled:o,handle:"#draggable-dialog-title",cancel:'[class*="MuiDialogContent-root"]',defaultClassName:"draggable-lead-dialog",defaultPosition:{x:W/2-V/2,y:z/2-h/2},position:{x:W-c.x,y:c.y},onStop:(A,N)=>{g({x:W-N.x,y:N.y});},...x===document.body&&{bounds:{top:10}},children:jsx(Dialog,{ref:d,sx:{backgroundColor:"transparent",pointerEvents:"none",zIndex:Number(r||0)+I+(o?1:0),...n&&{display:"none"},...x===document.body?!o&&{transform:"translate(180px, 14px)"}:!o&&{position:"absolute"},...!o&&{width:ae?V:"fit-content",height:ae?h:"fit-content"},...o&&{transform:"none !important"},boxShadow:"0px 0px 20px 0px rgba(0, 0, 0, 0.15)",overflow:"visible","& .MuiDialog-container":{overflow:"visible"}},PaperProps:{style:{margin:0,maxHeight:"100%",maxWidth:"none",background:"transparent",pointerEvents:"auto",overflow:s,width:C?"fit-content":V,height:C?"fit-content":"100%",...o&&{width:"100%",height:"100%"},position:"relative"}},onClose:()=>{T(false),w(true),setTimeout(()=>{w(false);},.5*1e3);},open:k,hideBackdrop:true,disableEnforceFocus:true,disableScrollLock:true,container:p,fullScreen:o,"aria-labelledby":"draggable-dialog-title",disablePortal:true,children:jsx(Resizable,{"data-testid":"Resizable",enable:{topLeft:true,topRight:true,bottomLeft:true,bottomRight:true,left:true,right:true,bottom:true,top:true},handleStyles:{bottom:{zIndex:2},bottomLeft:{zIndex:2},bottomRight:{zIndex:2}},size:{width:f.width,height:f.height},maxHeight:J??z-40,maxWidth:G??W,minWidth:o?"100vw":P??y,minHeight:o?"100vh":O??h,ref:A=>{E.current=A;},onResizeStart:()=>{ne.current=c,w(true);},onResizeStop:()=>{w(false);},onResize:Me,defaultSize:{width:V,height:h},style:{background:"transparent",height:f.height,overflow:s,...o&&{height:"100% !important",width:"100% !important",flex:1},...o&&{position:"relative"}},children:jsxs(nt,{sx:{height:"100%"},id:m,"data-testid":"AppWindow",children:[t??jsx(Re,{setIsToolbarAnimationDisabled:w,onClose:L,setIsMaximized:T,isToolbarAnimationDisabled:_,setIsSidebarExpanded:H,isSidebarExpanded:F,title:i,isMaximized:o,showSectionsButton:l,rightActions:u,icon:a}),e]})})})});return createPortal(ke,p)}var Ie=memo(dt);var ut=styled(Box,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:t})=>({background:t?"linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)":"transparent",borderRadius:"4px",padding:"4px 8px",color:t?e.palette.common.white:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer"})),mt=styled(Button)(({theme:e,disabled:t})=>({background:t?alpha(e.palette.info.dark,.4):e.palette.info.dark,color:e.palette.common.white,padding:"0px 8px",fontSize:"9px",fontWeight:600,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",textTransform:"none","&:hover":{background:e.palette.info.dark,opacity:.8},"&.Mui-disabled":{color:e.palette.common.white}})),ft=styled(Box)(({theme:e})=>({display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"8px",backgroundColor:e.palette.background.paper,padding:"6px",transform:"translateY(calc(-50% - 6px))",boxShadow:"0px 4px 40px 0px rgba(0, 0, 0, 0.19)",borderRadius:"4px",height:"36px",transition:e.transitions.create(["width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.complex})})),ct=styled(Box)(()=>({position:"fixed",height:35,bottom:0,left:0,right:0,padding:"6px 16px",zIndex:1,backgroundColor:"#eaeaea",backdropFilter:"blur(12px)",display:"flex",justifyContent:"flex-end",borderBottomLeftRadius:"12px",borderBottomRightRadius:"12px"})),xt=styled(Button)(()=>({padding:"4px 8px",boxShadow:"0px 0px 4px 0px rgba(0, 0, 0, 0.08)",display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"4px",color:"rgba(32, 35, 43, 0.80)",fontWeight:600,fontSize:"9px",textTransform:"none"}));var ie=Ie;function ht({children:e,windowProps:t,...i}){return i.isOpen?jsx(Q,{...i,children:jsx(ie,{...t,children:e})}):null}var Te=ht;function bt({title:e,maximized:t=false,id:i,isHovered:r=false,onMouseHover:n,onMouseLeave:l,leftActions:u,titleIconSrc:a,sx:s,...d$1}){return jsx(c,{className:"header-wrapper",id:i,maximized:t||false,sx:s,...d$1,children:jsx(d,{onMouseEnter:n,onMouseLeave:l,isMaximized:t,isHovered:r,title:e||"",icon:a,leftActions:u})})}var re=memo(bt);function yt({isMaximized:e,id:t,isToolbarAnimationDisabled:i,title:r,leftActions:n,onClose:l,onMaximize:u,sx:a$1}){let{isHovered:s,onMouseEnter:d,onMouseLeave:m}=b();return jsx(motion.div,{style:{...e&&{height:0,zIndex:1e3,position:"relative"}},animate:{...e&&{width:"100vw"},...!e&&{transform:"translateX(0px)",width:"100%"}},transition:{duration:.5,...i&&{duration:0}},children:jsx(re,{title:r,maximized:e,id:t||"draggable-dialog-title",isHovered:s,onMouseHover:d,onMouseLeave:m,leftActions:n||jsxs(Fragment,{children:[jsx(a,{onClick:l}),jsx(c$1,{isMaximized:e,onClick:()=>u?.(!e)})]}),sx:a$1})})}var Ce=memo(yt);var Rt=Ce;var Vo=Te;export{Y as a,Q as b,S as c,we as d,be as e,ge as f,We as g,ee as h,te as i,ut as j,mt as k,ft as l,ct as m,xt as n,ie as o,re as p,Rt as q,Vo as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {yc}from'./chunk-
|
|
1
|
+
import {yc}from'./chunk-MXISJOX2.js';import {createContext,useState,useMemo,useContext,useId}from'react';import {styled,Dialog,DialogContent,Button}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var x=styled(Dialog)(({theme:o})=>({"& .MuiDialog-paper":{boxShadow:o.shadows[13],borderRadius:o.spacing(1)},"& .MuiModal-backdrop":{background:"rgba(0, 0, 0, 0.20)"}})),u=styled(DialogContent)(({theme:o})=>({padding:o.spacing(2)})),y=styled("div")(({theme:o})=>({display:"flex",flexDirection:"column",gap:o.spacing(2),minWidth:"256px",padding:"16px"})),h=styled("p")(({theme:o})=>({fontSize:"13px",fontWeight:700,lineHeight:o.typography.h6.lineHeight,borderBottom:`1px solid ${o.palette.divider}`,margin:0,padding:"16px 16px 16px 12px",color:o.palette.text.primary})),P=styled("p")(({theme:o})=>({fontSize:o.typography.fontSize,fontWeight:o.typography.fontWeightMedium,lineHeight:o.typography.body1.lineHeight,margin:0})),R=styled("div")(({theme:o})=>({display:"flex",gap:o.spacing(1),justifyContent:"flex-end"})),c=styled(Button)(({theme:o})=>({paddingInline:o.spacing(3),paddingBlock:o.spacing(1),borderRadius:o.spacing(.5),fontSize:"11px",fontWeight:o.typography.fontWeightMedium,boxShadow:"none",border:`1px solid ${o.palette.divider}`,color:o.palette.text.primary,textTransform:"none","&:hover":{boxShadow:"none"}}));var a=createContext([{onClose:()=>{},open:false,message:"",title:"",confirmText:"",cancelText:"",onConfirm:()=>{},onCancel:()=>{}},()=>{}]);function K({children:o}){let[i,r]=useState({onClose:()=>{},open:false,message:"",title:"",onConfirm:()=>{},onCancel:()=>{},cancelText:"",confirmText:""}),n=useMemo(()=>[i,r],[i]);return jsxs(a.Provider,{value:n,children:[o,jsx(b,{})]})}var S=()=>{let[o,i]=useContext(a);return {...o,isConfirmed:({message:n,title:l,confirmText:p,cancelText:s,style:m})=>new Promise((f,v)=>{i({...o,open:true,message:n,title:l,cancelText:s,confirmText:p,style:m,onConfirm:f,onCancel:v});}).then(()=>(i({...o,open:false}),true),()=>(i({...o,open:false}),false))}};function d(){let o=yc(useId(),"confirm-dialog"),{open:i,onClose:r,onConfirm:n,onCancel:l,confirmText:p,cancelText:s,message:m,title:g,style:f}=S();return jsx(x,{open:i,onClose:r,sx:f,id:o,"data-testid":"ConfirmDialog",children:jsxs(u,{children:[g&&jsx(h,{className:"title",children:g}),jsxs(y,{children:[jsx(P,{className:"message",children:m}),jsxs(R,{children:[jsx(c,{className:"cancel",onClick:l,children:s||"No"}),jsx(c,{className:"confirm",onClick:n,children:p||"Yes"})]})]})]})})}var b=d;export{a,K as b,S as c,b as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-OJFT5TWY.js';import {yc}from'./chunk-MXISJOX2.js';import {wa}from'./chunk-N372QRVU.js';import {memo,useId}from'react';import {jsx}from'react/jsx-runtime';var n={"3DS":{text:"3DS"},"Non-3DS":{text:"Non 3DS",styles:{...wa}},"Device Biometric":{text:"Biometric"}};function u({title:t,ref:r,...s}){let c=yc(useId(),"authentication-type-chip"),i=n[t];return jsx(b,{id:c,"data-testid":"AuthenticationTypeChip",chipStyles:i?.styles,ref:r,...s,children:i?.text||t})}var h=memo(u);var W=h;export{W as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {t}from'./chunk-
|
|
1
|
+
import {t}from'./chunk-37MMGHJP.js';import {yc}from'./chunk-MXISJOX2.js';import {forwardRef,useId,useMemo,Children,useCallback,memo}from'react';import C from'@mui/material/Popper';import y from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var a=styled(y,{shouldForwardProp:o=>o!=="showShadow"})(({theme:o,showShadow:e})=>({borderRadius:o.spacing(.5),background:o.palette.background.default,width:"max-content",cursor:"pointer",boxShadow:o.shadows[11],display:"flex",flexDirection:"column",overflowY:"scroll",maxHeight:"432px","&:focus":{outline:"none"},".menu-item + .menu-item":{borderTop:`1px solid ${o.palette.divider}`},"&::after":{content:'""',width:"100%",height:"34px",position:"fixed",bottom:0,pointerEvents:"none",zIndex:999999,background:"linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%)",transition:o.transitions.create("opacity",{duration:250}),...e?{opacity:1}:{opacity:0}}}));var R=forwardRef(({open:o,anchorEl:e,children:r,sx:c,placement:m,popperSx:u,dropdownProps:w,...f},h)=>{let x=yc(useId(),"menu"),{onScrollHandler:t$1,showShadow:S}=t(),{onScroll:n,...P}=w||{},b=useMemo(()=>Children.count(r),[r])>12&&S,g=useCallback(p=>{t$1(p),n?.(p);},[t$1,n]);return jsx(C,{ref:h,id:x,"data-testid":"Menu",open:o,anchorEl:e,placement:m||"bottom-start",sx:u,...f,children:jsx(a,{showShadow:b,onScroll:g,className:"MuiPopper-dropdown",sx:c,...P,children:r})},"menu")}),l=memo(R);var K=l;export{K as a};
|