@tap-payments/os-micro-frontend-shared 0.1.476 → 0.1.477-test.1
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/{chunk-5XEW4QTS.js → chunk-24D2TNNY.js} +1 -1
- package/build/{chunk-5AP2LF3H.js → chunk-2SLMVVV3.js} +1 -1
- package/build/{chunk-RP4MJ5Q6.js → chunk-2TQNXS73.js} +1 -1
- package/build/{chunk-2YHDR6KJ.js → chunk-3R74OKMG.js} +1 -1
- package/build/{chunk-MT5QLVFK.js → chunk-3TYEEWUM.js} +1 -1
- package/build/{chunk-LLA5JSVK.js → chunk-3VGQ42OI.js} +1 -1
- package/build/chunk-4GZXWAJI.js +2 -0
- package/build/{chunk-ZVR3N6WG.js → chunk-4PTJVJGN.js} +1 -1
- package/build/chunk-6OL3JUPA.js +1 -0
- package/build/{chunk-TR3SEJSN.js → chunk-6OSSML46.js} +1 -1
- package/build/{chunk-QGPGFPW5.js → chunk-6OZURZ2J.js} +1 -1
- package/build/{chunk-SPNQ2E2Q.js → chunk-6RMDSMJP.js} +1 -1
- package/build/{chunk-E6MD7WFS.js → chunk-ABY47DSJ.js} +1 -1
- package/build/{chunk-NBGGOUIZ.js → chunk-AK4FIVFH.js} +1 -1
- package/build/{chunk-L4B4IVAJ.js → chunk-AO457WXQ.js} +1 -1
- package/build/{chunk-NFNAX7ZR.js → chunk-ARSSSITK.js} +1 -1
- package/build/chunk-BT2QZGRR.js +1 -0
- package/build/{chunk-O5XTGPQS.js → chunk-BWIJY2WE.js} +1 -1
- package/build/{chunk-WCKORXDZ.js → chunk-BX63HTMQ.js} +1 -1
- package/build/{chunk-6R62IHYU.js → chunk-ETSKMGSS.js} +2 -2
- package/build/{chunk-JXBLMQQW.js → chunk-F5BRCMX3.js} +1 -1
- package/build/{chunk-63X52EKP.js → chunk-FKD6E26U.js} +1 -1
- package/build/{chunk-GMX5M76T.js → chunk-GOUJ5ZUW.js} +1 -1
- package/build/chunk-GTY2ZBCY.js +1 -0
- package/build/{chunk-SN4NF2DB.js → chunk-IKUOEIOO.js} +1 -1
- package/build/{chunk-XBOCHTAW.js → chunk-IYFH5KXZ.js} +1 -1
- package/build/chunk-J2Z4QVIO.js +1 -0
- package/build/{chunk-RRGMY7JG.js → chunk-JMV7T5XA.js} +1 -1
- package/build/{chunk-WOTZJWJO.js → chunk-JWQCFINS.js} +1 -1
- package/build/{chunk-QODYGBWL.js → chunk-KDVCU5UC.js} +2 -2
- package/build/{chunk-WC257EIO.js → chunk-LKK7HW6N.js} +1 -1
- package/build/{chunk-3LSEPLBS.js → chunk-LXWCV7XY.js} +1 -1
- package/build/{chunk-26O5AFVA.js → chunk-MM6JBQHW.js} +1 -1
- package/build/chunk-MOREGFIY.js +1 -0
- package/build/chunk-NIIRPM2P.js +1 -0
- package/build/{chunk-EVXUJZHR.js → chunk-NOO5LTIU.js} +1 -1
- package/build/{chunk-DOS7HEOK.js → chunk-NU4JZVKW.js} +1 -1
- package/build/{chunk-6MGFWHFE.js → chunk-O23ZGMIO.js} +1 -1
- package/build/{chunk-564ORABT.js → chunk-OWWED4PY.js} +1 -1
- package/build/{chunk-HER5WIWD.js → chunk-OZVTT6UG.js} +1 -1
- package/build/{chunk-D77WOGTR.js → chunk-P6EO5ZKH.js} +1 -1
- package/build/{chunk-OAW3HGVO.js → chunk-PD64HN2X.js} +1 -1
- package/build/{chunk-GCAVKPOC.js → chunk-QGGTALT2.js} +1 -1
- package/build/{chunk-A5L5THUJ.js → chunk-QHUUB5UA.js} +1 -1
- package/build/{chunk-5J4ZTV3V.js → chunk-QKCWEX4G.js} +1 -1
- package/build/{chunk-QHCXUNDI.js → chunk-QSFU7MAF.js} +1 -1
- package/build/{chunk-QGGRITXQ.js → chunk-QUUQ7L4F.js} +1 -1
- package/build/chunk-R3V7C2N6.js +1 -0
- package/build/{chunk-DHXBB2IU.js → chunk-R5BTIY3J.js} +1 -1
- package/build/chunk-ROXE5K4B.js +2 -0
- package/build/{chunk-QHZBPLTG.js → chunk-S3DUYHQG.js} +1 -1
- package/build/{chunk-TVF6SSDQ.js → chunk-S3HYGR6A.js} +1 -1
- package/build/{chunk-SPP7UMVK.js → chunk-SA3T5LKX.js} +1 -1
- package/build/{chunk-AK6AGGIC.js → chunk-SH5B2C5G.js} +1 -1
- package/build/chunk-SRWAY2MJ.js +1 -0
- package/build/{chunk-X4FY4LSJ.js → chunk-SSOATT5T.js} +1 -1
- package/build/{chunk-GLZ7GEBP.js → chunk-TIQMT2NC.js} +1 -1
- package/build/{chunk-6HF3RRHM.js → chunk-TLKUQ74V.js} +1 -1
- package/build/{chunk-4HPJPKH2.js → chunk-TYFM2CLZ.js} +1 -1
- package/build/{chunk-ZXIJT5DT.js → chunk-U2EVJIKE.js} +1 -1
- package/build/{chunk-44TDOYFI.js → chunk-UNZG4C4Y.js} +1 -1
- package/build/{chunk-DMSMH6Q6.js → chunk-VI4EBPCV.js} +1 -1
- package/build/{chunk-LFEL2NAC.js → chunk-VPGXTTNN.js} +1 -1
- package/build/{chunk-ABBNDFGJ.js → chunk-WDGOOLU7.js} +1 -1
- package/build/{chunk-CPDH5SRY.js → chunk-WGMZ5XLV.js} +1 -1
- package/build/{chunk-SICK5RMI.js → chunk-WRXSOWHO.js} +1 -1
- package/build/{chunk-UPWJMPK6.js → chunk-WUEFAFSM.js} +1 -1
- package/build/{chunk-63E3R5PA.js → chunk-WVAZXL5U.js} +1 -1
- package/build/{chunk-ECDED65U.js → chunk-WXO77AL5.js} +1 -1
- package/build/{chunk-RJUHOAU4.js → chunk-XCJHY5ZJ.js} +1 -1
- package/build/{chunk-27CJKJ7T.js → chunk-XIVQ3YLE.js} +1 -1
- package/build/chunk-YBRGXFZD.js +1 -0
- package/build/{chunk-HN3LUUAR.js → chunk-ZHHW347C.js} +1 -1
- package/build/components/AccordionAdapter/index.js +1 -1
- package/build/components/AccountDropdown/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/AmountStatusChip/index.js +1 -1
- package/build/components/AnimatedSpinnerIcon/index.js +1 -1
- package/build/components/AnimatedSpinnerIcon/style.d.ts +0 -1
- package/build/components/AppServices/index.js +1 -1
- package/build/components/AppServicesActionMenu/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/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/Checkbox/index.js +1 -1
- package/build/components/Chip/style.d.ts +0 -1
- package/build/components/ColorPicker/index.js +1 -1
- package/build/components/CopyImage/index.js +1 -1
- package/build/components/CountBadge/index.js +1 -1
- package/build/components/CountBadge/style.d.ts +0 -1
- package/build/components/CountryFilter/index.js +1 -1
- package/build/components/CountryFlag/index.js +1 -1
- package/build/components/CurrencyFilter/index.js +1 -1
- package/build/components/CurrencySymbol/index.js +1 -1
- package/build/components/Customer/index.js +1 -1
- package/build/components/DateButton/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/Dialog/style.d.ts +0 -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/Error/index.js +1 -1
- package/build/components/ErrorToast/index.js +1 -1
- package/build/components/ExpandableSideBar/index.js +1 -1
- package/build/components/FileInputPreview/index.js +1 -1
- package/build/components/FilePreview/index.js +1 -1
- package/build/components/FileUpload/FileUpload.d.ts +7 -2
- package/build/components/FileUpload/index.js +1 -1
- package/build/components/FileUpload/style.d.ts +3 -1
- package/build/components/FileUploader/index.js +1 -1
- package/build/components/FilterDropdown/index.js +1 -1
- package/build/components/FilteredIds/index.js +1 -1
- package/build/components/Filters/index.js +1 -1
- package/build/components/FlagDetails/index.js +1 -1
- package/build/components/FlippingCard/style.d.ts +0 -1
- package/build/components/IconGallery/index.js +1 -1
- package/build/components/IconWithBadge/index.js +1 -1
- package/build/components/IconWithLabel/index.js +1 -1
- package/build/components/IconsDropdown/index.js +1 -1
- package/build/components/ImageWrapper/ImageWrapper.d.ts +0 -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/JSONViewer/style.d.ts +0 -1
- package/build/components/LabeledIconDropdown/index.js +1 -1
- package/build/components/LanguageDropdown/index.js +1 -1
- package/build/components/LeftPeekRightExpandingChip/style.d.ts +0 -1
- package/build/components/ListColumnFilter/index.js +1 -1
- package/build/components/MFWidgetLoader/index.js +1 -1
- package/build/components/MaskedText/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/MultiSelectStatusButton/index.js +1 -1
- package/build/components/MultiSelectWithSearch/index.js +1 -1
- package/build/components/NestedDropdown/index.js +1 -1
- package/build/components/PartnersFilter/index.js +1 -1
- package/build/components/PaymentSourceFilter/index.js +1 -1
- package/build/components/PhoneFilter/index.js +1 -1
- package/build/components/ProgressRing/index.js +1 -1
- package/build/components/RFH/index.js +1 -1
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/ReceiptsViewer/index.js +1 -1
- package/build/components/ReferenceTypeFilter/index.js +1 -1
- package/build/components/RightLeftExpandingCenterChip/style.d.ts +0 -1
- package/build/components/SalesChannelFilter/index.js +1 -1
- package/build/components/Sandbox/index.js +1 -1
- package/build/components/SearchButton/index.js +1 -1
- package/build/components/SearchButton/styles.d.ts +0 -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/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/AuthIcons/style.d.ts +0 -1
- package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +0 -1
- package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +0 -1
- package/build/components/StatusIcons/SourceIcons/style.d.ts +0 -1
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/StatusLabel/index.js +1 -1
- package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/AgreementCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/AuthenticationStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/AuthenticationTypeCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/CheckoutStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/DestinationStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/IDButton/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/IntentsStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/PayoutReportCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/TokenStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/style.d.ts +0 -1
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TableHeader/index.js +1 -1
- package/build/components/TableReports/components/DownloadButton/style.d.ts +0 -1
- package/build/components/TableReports/index.js +1 -1
- package/build/components/TableReports/style.d.ts +0 -1
- package/build/components/TableView/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/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/components/style.d.ts +0 -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/WindowSideBar/index.js +1 -1
- package/build/components/index.js +1 -1
- package/build/constants/assets.d.ts +4 -0
- package/build/constants/index.js +1 -1
- package/build/hooks/index.js +1 -1
- package/build/index.js +1 -1
- package/build/utils/index.js +1 -1
- package/package.json +33 -47
- package/build/chunk-6X6APLPU.js +0 -1
- package/build/chunk-BFOMPZXL.js +0 -1
- package/build/chunk-BW2NZYIQ.js +0 -1
- package/build/chunk-D5RQWU62.js +0 -1
- package/build/chunk-IBQ5J3J3.js +0 -1
- package/build/chunk-QQVGTQT3.js +0 -1
- package/build/chunk-S4ZK6QGJ.js +0 -1
- package/build/chunk-TCLN5DZD.js +0 -2
- package/build/chunk-XCLBERSS.js +0 -1
- package/build/chunk-XVD3YIJN.js +0 -2
- package/build/chunk-ZCYVHGHI.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import {cb}from'./chunk-
|
|
1
|
+
import {cb}from'./chunk-WXO77AL5.js';import {memo}from'react';import l from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var r=styled("span")(()=>({fontWeight:400})),e=styled(l)(()=>({fontWeight:700,fontSize:"11px",display:"flex",alignItems:"center",cursor:"default",whiteSpace:"nowrap",overflow:"auto"}));function p({amount:m,currencyCode:i,...s}){let{integerAmount:u,decimalAmount:f}=cb(m,i);return jsxs(e,{...s,children:[jsx("span",{children:u}),jsx("span",{children:"."}),jsx(r,{children:f})]})}p.displayName="DisplayAmount";var a=memo(p);var B=a;export{B as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {s,r}from'./chunk-ROXE5K4B.js';import c from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,Fragment}from'react/jsx-runtime';var m=styled(c)(()=>({height:10}));styled("span")(({theme:o})=>({fontSize:o.typography.body2.fontSize,lineHeight:"17px",fontWeight:"700"}));styled("span")(()=>({fontWeight:"400"}));var p=styled("span")(({symbol:o,fontSize:e,color:t})=>({display:"inline-block",height:e,width:e,backgroundColor:t,maskImage:`url("${o}")`,maskSize:"contain",maskRepeat:"no-repeat",maskPosition:"center",WebkitMaskImage:`url("${o}")`,WebkitMaskSize:"contain",WebkitMaskRepeat:"no-repeat",WebkitMaskPosition:"center"}));var y={SAR:r,AED:s};function b({currency:o,fontSize:e,color:t}){let n=y[o];return n?t?jsx(p,{symbol:n,fontSize:e,color:t,"aria-label":o,role:"img"}):jsx(m,{component:"img",src:n,alt:o,sx:{height:e}}):jsx(Fragment,{children:o})}var l=b;var W=l;export{W as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {f as f$1}from'./chunk-
|
|
1
|
+
import {f as f$1}from'./chunk-AK4FIVFH.js';import {styled,Button,Box,alpha}from'@mui/material';var p=t=>({...t.typography.subtitle1,borderRadius:"50px",borderWidth:"1px",borderStyle:"solid",minWidth:"135.11px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",gap:"8px",textTransform:"none",transition:"none",paddingInline:t.spacing(2)}),c=styled(Button)(({theme:t})=>({...p(t),background:t.palette.background.gradient.shadedBlue,color:t.palette.common.white,"&:hover":{background:t.palette.background.gradient.shadedBlue,opacity:.8}})),l=styled(Button)(({theme:t})=>({...p(t),backgroundColor:t.palette.common.white,borderColor:t.palette.grey[100],color:t.palette.text.primary,"&:hover":{backgroundColor:t.palette.common.white,opacity:.7}})),g={active:c,inActive:l};styled(Box)(({theme:t,variant:e})=>({borderRadius:"50px",backgroundColor:e==="active"?alpha(t.palette.text.primary,.1):t.palette.grey[100],display:"flex",justifyContent:"center",alignItems:"center",paddingInline:t.spacing(.5),paddingBlock:t.spacing(.25),color:e==="active"?t.palette.common.white:t.palette.text.primary,fontSize:"8px",fontWeight:700,lineHeight:"10px"}));styled("img")(({theme:t,variant:e,icon:a})=>({fill:e==="active"?t.palette.common.white:t.palette.text.primary,color:e==="active"?t.palette.common.white:t.palette.text.primary,...!(["openFlag","closedFlag"].includes(a??"")&&e==="inActive")&&a!=="captured"&&{filter:e==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)"},maxWidth:"14px",maxHeight:"14px"}));var h=styled("p")(({theme:t})=>({fontSize:"0.6875rem",color:t.palette.background.default,fontStyle:"normal",margin:"auto",textTransform:"capitalize"})),y=styled(f$1)(({theme:t})=>({backgroundColor:"white",boxShadow:t.shadows[21],borderRadius:"0.25rem","& .MuiPaper-root":{borderRadius:"0.25rem",width:"12.5rem"}})),f=styled("span")(()=>({width:"27px",height:"100%",maxHeight:"100%",position:"absolute",top:"0",right:"0",bottom:"0",overflow:"hidden"})),b=styled(Box)(({variant:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.5rem",fontWeight:t==="active"?700:400})),S=styled(Box)(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"100%"})),v=styled("img")(({theme:t,variant:e,icon:a})=>({fill:e==="active"?t.palette.common.white:t.palette.text.primary,color:e==="active"?t.palette.common.white:t.palette.text.primary,...!(["openFlag","closedFlag"].includes(a??"")&&e==="inActive")&&a!=="captured"&&{filter:e==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)"},maxWidth:"14px",maxHeight:"14px"})),B=styled(Box)(({variant:t})=>({width:"14px",height:"14px",display:"flex",alignItems:"center","& img":{width:"14px",height:"14px",filter:t==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)"}}));export{g as a,h as b,y as c,f as d,b as e,S as f,v as g,B as h};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-CNIYZZCP.js';import {
|
|
1
|
+
import {a}from'./chunk-CNIYZZCP.js';import {Sc,xb}from'./chunk-ROXE5K4B.js';import {memo}from'react';import n from'@mui/material/Box';import w from'@mui/material/Popover';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var l=styled(n,{shouldForwardProp:o=>o!=="open"&&o!=="disabled"})(({theme:o,open:e,disabled:r})=>({display:"flex",alignItems:"center",justifyContent:"space-between",paddingInlineStart:"8px",paddingInlineEnd:"4px",paddingTop:"6px",paddingBottom:"6px",borderRadius:"4px",background:"#F9F9F9",border:"1px solid #F9F9F9",cursor:"pointer",...e&&{borderColor:o.palette.info.dark,background:o.palette.common.white},...r&&{cursor:"not-allowed"}})),x=styled(n)(()=>({display:"flex",flexDirection:"column",gap:"4px",fontSize:"10px",fontWeight:500,flex:1})),s=styled(n)(({theme:o})=>({padding:"4px",borderRadius:"4px",boxShadow:"-26px 156px 44px 0px rgba(0, 0, 0, 0.00), -17px 100px 41px 0px rgba(0, 0, 0, 0.01), -9px 56px 34px 0px rgba(0, 0, 0, 0.05), -4px 25px 25px 0px rgba(0, 0, 0, 0.09), -1px 6px 14px 0px rgba(0, 0, 0, 0.10), 0px 0px 0px 0px rgba(0, 0, 0, 0.10)",backgroundColor:o.palette.common.white,maxHeight:200,marginTop:"4px",width:"auto",overflow:"auto"}));styled(a,{shouldForwardProp:o=>o!=="selected"})(({theme:o,selected:e})=>({paddingInlineStart:"12px",paddingInlineEnd:"8px",paddingTop:"8px",paddingBottom:"8px",fontSize:"10px",color:o.palette.common.black,fontWeight:500,lineHeight:"10px",cursor:"pointer",...e&&{backgroundColor:"#F8F8F8"}}));function F({onClose:o,open:e,anchorEl:r,trigger:g,onOpen:b,children:f,disabled:h}){return jsxs(l,{open:e,onClick:b,"data-testid":"Dropdown",disabled:h,children:[jsx(x,{children:g}),jsx(n,{sx:{width:16,height:16,display:"flex",alignItems:"center"},children:jsx(n,{component:"img",src:e?Sc:xb,alt:"arrow",sx:{width:16,height:16,...e&&{width:12,height:12,padding:"2px"}}})}),jsx(w,{open:e,anchorEl:r,sx:{width:r?.clientWidth},onClose:o,anchorOrigin:{vertical:"bottom",horizontal:"left"},slotProps:{paper:{style:{width:r?.clientWidth,maxWidth:"unset"}}},children:jsx(s,{children:f})})]})}var m=memo(F);var M=m;export{M as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {Na,Ma,Xa,La,Id,Jd}from'./chunk-ROXE5K4B.js';import {styled}from'@mui/material/styles';import P from'@mui/material/Box';import {jsx,jsxs}from'react/jsx-runtime';import k from'@mui/material/Typography';var e=styled(P)(({theme:o})=>({width:12,height:12,borderRadius:"50%",cursor:"pointer",backgroundColor:`${o.palette.grey[200]}14`,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease-in-out",img:{opacity:"0",transition:"all 0.2s ease-in-out"},"&:active":{backgroundColor:`${o.palette.grey[200]} !important`}}));var d=styled(e)(({theme:o})=>({"&.header-icon:hover":{backgroundColor:o.palette.error.main}}));function S(o){return jsx(d,{...o,className:"header-icon",children:jsx("img",{src:Na,alt:"close"})})}var x=styled(e)(({theme:o})=>({"&.header-icon:hover":{backgroundColor:o.palette.warning.main}}));function U(o){return jsx(x,{...o,className:"header-icon",children:jsx("img",{src:Ma,alt:"minimize"})})}var u=styled(e)(({theme:o})=>({"&.header-icon:hover":{backgroundColor:o.palette.info.dark}}));function ro({isMaximized:o,...r}){return jsx(u,{...r,className:"header-icon",children:jsx("img",{src:o?Xa:La,alt:"maximize"})})}var g=styled(e,{shouldForwardProp:o=>o!=="isHovered"})(({theme:o,isHovered:r})=>({"&.header-icon:hover":{backgroundColor:o.palette.success.main},...r&&{backgroundColor:`${o.palette.success.main} !important`}})),h=styled(P)(({theme:o})=>({alignItems:"center",justifyContent:"center",display:"flex",height:12,gap:"5px",marginInlineStart:"10px","&:hover":{"& .request-text":{opacity:1},"& .header-icon":{backgroundColor:`${o.palette.success.main} !important`}},cursor:"pointer"})),y=styled(k,{shouldForwardProp:o=>o!=="isHovered"})(({theme:o,isHovered:r})=>({fontSize:"10px",color:o.palette.success.main,opacity:r?1:0}));function fo({isExpanded:o,isHovered:r,children:b,...B}){return jsxs(h,{...B,children:[jsx(g,{className:"header-icon",isHovered:r,children:jsx(P,{component:"img",sx:{...r&&{opacity:1}},src:o?Id:Jd,alt:"arrow"})}),jsx(y,{className:"request-text",isHovered:r,children:b})]})}export{S as a,U as b,ro as c,fo as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-6OSSML46.js';import {e}from'./chunk-WDGOOLU7.js';import {jg}from'./chunk-ROXE5K4B.js';import {memo}from'react';import {styled,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var a=styled(Box,{shouldForwardProp:t=>t!=="isLongerString"})(({theme:t,isLongerString:r})=>({display:"flex",justifyContent:"center",alignItems:"center",padding:"6px 16px",height:"32px",background:t.palette.background.gradient.shadedBlue,color:t.palette.common.white,borderRadius:"50px",fontSize:"11px",gap:t.spacing(1),minWidth:r?"12rem":"8.4rem",marginRight:"auto",position:"relative"}));styled("div")(()=>({padding:"3.5px",background:"rgba(32, 35, 43, 0.10);",display:"flex",borderRadius:"50px"}));styled("button")(()=>({padding:0,cursor:"pointer",width:"auto",marginLeft:"auto",paddingRight:0,background:"none",border:"none"}));function u({Ids:t,onCancelClick:r,isShown:l,cardNumber:o}){return l?jsxs(a,{isLongerString:(o?.length??0)>11,children:[o?jsx(b,{children:o}):jsx("span",{children:t?.join(",")}),jsx(e,{pointer:true,round:true,onClick:r,variant:"active",sx:{position:"absolute",right:"8px"},children:jsx("img",{src:jg,alt:"close",style:{width:"8px",height:"7px"}})})]}):null}var s=memo(u);var L=s;export{L as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-TLKUQ74V.js';import {styled,MenuItem,Menu,ListItemIcon,ListItemText,Select,alpha,useTheme,Divider,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var u=styled(MenuItem,{shouldForwardProp:t=>t!=="alwaysShowRightAction"})(({theme:t,alwaysShowRightAction:n})=>({backgroundColor:n?t.palette.common.lightOrange:"","&:hover":{backgroundColor:n?t.palette.common.lightOrange:"",boxShadow:t.shadows[10],":hover":{"& .sandbox-Icon":{left:"-16px !important",transition:"all 0.3s ease-in-out"},"& .close-Icon":{display:"block !important"}}}})),m=styled(Menu,{shouldForwardProp:t=>t!=="minWidth"})(({theme:t,minWidth:n})=>({".MuiMenu-paper":{borderRadius:4,minWidth:n},".MuiMenuItem-root":{display:"flex",gap:"4px",minHeight:"36px",alignItems:"center",paddingInline:8,transition:t.transitions.create(["visibility"],{easing:t.transitions.easing.sharp,duration:t.transitions.duration.complex}),".menu-right-action":{visibility:"hidden"},"&:hover":{".menu-right-action":{visibility:"visible"}}},"&.tap-dropdown":{zIndex:2e3,".MuiList-root":{padding:0}}})),g=styled(ListItemIcon)(()=>({minWidth:"16px !important"})),h=styled(ListItemText)(()=>({".MuiTypography-root":{fontSize:"0.6875rem"}})),R=styled(Select)(({theme:t})=>({padding:"0.25rem 0.34rem 0.25rem 0.5rem",display:"flex",justifyContent:"center",alignItems:"center",gap:"0.19rem",width:"auto",flexShrink:0,borderRadius:"0.5rem",boxShadow:t.shadows[5],cursor:"pointer",outline:t.palette.background.default,border:"none",backgroundColor:t.palette.background.default,"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"& .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"& .MuiMenuList-root":{padding:"0px !important",margin:0},"& .MuiSelect-outlined":{padding:"0px !important"}})),T=styled(MenuItem)(({theme:t})=>({display:"flex",height:"2.5rem",width:"10.43rem",alignItems:"center",gap:"0.5",alignSelf:"stretch",transition:"boxShadow 0.2s ease-in-out",backgroundColor:"inherit !important",margin:0,padding:0,paddingTop:"0px !important",paddingBottom:"0px !important","&:hover":{boxSizing:"border-box",boxShadow:`${t.shadows[3]}`}})),z=styled("p")(({theme:t})=>({color:t.palette.text.primary,fontSize:"0.68rem",fontWeight:600,textAlign:"center",padding:"0 !important",margin:"0 !important",textTransform:"capitalize",".MuiOutlinedInput-input":{paddingRight:0},"MuiInputBase-input":{paddingRight:0},".MuiSelect-select":{paddingRight:0}})),A=styled("p")(({theme:t})=>({fontSize:"0.75rem",fontWeight:500,color:t.palette.text.primary,paddingLeft:"1rem !important",transition:"boxShadow 0.2s ease-in-out"})),D=styled("img")(()=>({width:"0.75rem",height:"auto",padding:0,paddingBottom:.5,margin:0,verticalAlign:"middle",boxSizing:"border-box"})),x=styled(a)(({theme:t})=>({padding:0,paddingRight:"4px",width:"14px !important",svg:{width:"12px !important",height:"12px !important"},"&.Mui-disabled":{'[data-testid="IndeterminateCheckBoxIcon"]':{fill:alpha(t.palette.common.black,.26)}}}));function $({open:t,menuItems:n,anchorEl:a,onClose:d,footer:b,selected:I,multiple:f,allowShadows:l=true,...w}){let p=useTheme();return jsxs(m,{open:t,anchorEl:a,onClose:d,onContextMenu:o=>{o.preventDefault(),d();},...w,className:"tap-dropdown",minWidth:a?.clientWidth||"auto",children:[n.map((o,r)=>o.name==="divider"?jsx(Divider,{sx:{margin:"0 !important"}},`${o.label}-${r}`):jsx("div",{children:o.label&&jsxs(u,{alwaysShowRightAction:o.alwaysShowRightAction,onClick:M=>{o.onClick&&o.onClick(M);},onContextMenu:o.onRightClick,selected:o.selected,sx:{"&:hover":{backgroundColor:"transparent",boxShadow:l?p.shadows[10]:"none","& .sandbox-Icon":{display:"none"},"& .close-Icon":{display:"block !important"}},...r===I&&{backgroundColor:"transparent",boxShadow:l?p.shadows[10]:"none"},...o.sx},children:[f&&jsx(x,{size:"small",checked:o.selected}),o.icon&&jsx(g,{children:o.icon}),jsx(h,{children:o.label}),jsx(Box,{className:o.alwaysShowRightAction?"":"menu-right-action",children:o.rightAction&&o.rightAction})]})},`${o.label}-${r}`)),b]})}var y=$;var K=y;export{R as a,T as b,z as c,A as d,D as e,K as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-5QTKLABR.js';import {Db}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-5QTKLABR.js';import {Db}from'./chunk-WXO77AL5.js';import {motion}from'framer-motion';import {Box,Typography}from'@mui/material';import {styled}from'@mui/material/styles';import E from'@mui/material/Box';import {jsxs,jsx}from'react/jsx-runtime';var h=styled(Box)(({size:t})=>({display:"flex",flexDirection:"column",alignItems:"center",width:t,height:t,position:"relative"})),u=styled(Box)({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",textAlign:"center"}),y=styled(Typography,{shouldForwardProp:t=>t!=="isEmpty"})(({isEmpty:t})=>({fontSize:"17px",fontWeight:700,color:t?"#CFD0D2":"#000"})),b=styled(Typography,{shouldForwardProp:t=>t!=="isEmpty"})(({isEmpty:t})=>({whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:t?"#CFD0D2":"#8D8D94",fontSize:"11px",fontWeight:500,letterSpacing:"0%",textAlign:"right",verticalAlign:"middle"}));var P=()=>jsxs(E,{component:"span",sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:"6px"},children:[jsx(a,{width:51,height:16}),jsx(a,{width:84,height:8})]});var S=({value:t,label:T,size:o=172,strokeWidth:p=22,isLoading:l=false})=>{let m=t==null||t==="",k=Db(t||"0"),s=Math.min(Math.max(k??0,0),100),c=(o-p)/2,n=2*Math.PI*c,r=o/2;return jsxs(h,{size:o,children:[jsxs("svg",{width:o,height:o,viewBox:`0 0 ${o} ${o}`,style:{position:"absolute",top:0,left:0},children:[jsx("defs",{children:jsxs("linearGradient",{id:"progressGradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[jsx("stop",{offset:"0.67%",stopColor:"#3DA6E1"}),jsx("stop",{offset:"98.91%",stopColor:"#147DC5"})]})}),jsx("circle",{cx:r,cy:r,r:c,stroke:"#F3F3F3",strokeWidth:p,fill:"transparent"}),jsx(motion.circle,{cx:r,cy:r,r:c,stroke:"url(#progressGradient)",strokeWidth:p,fill:"transparent",strokeLinecap:"round",strokeDasharray:n,strokeDashoffset:n,transform:`rotate(-90 ${r} ${r})`,animate:{strokeDashoffset:l?n:n-n*s/100},transition:{duration:1,ease:"easeOut"}})]}),jsxs(u,{children:[jsx(y,{isEmpty:m,children:l?jsx(P,{}):m?"----":jsxs(motion.span,{initial:{opacity:0},animate:{opacity:1},transition:{ease:"easeOut",duration:.5},children:[Number.isInteger(s)?s:s.toFixed(1),"%"]})}),!l&&jsx(b,{isEmpty:m,children:T})]})]})},C=S;var H=C;export{H as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-ABDRIOU6.js';import {h,g,a as a$1,f,e as e$1,d,c}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-ABDRIOU6.js';import {h,g,a as a$1,f,e as e$1,d,c}from'./chunk-6OSSML46.js';import {e}from'./chunk-WDGOOLU7.js';import {fb,p}from'./chunk-WXO77AL5.js';import {Pa,pf,Aj,Ua,Oa,yf,xf,zf,wf,Bf,ub,tb,Si,Ai,cb,Ni,z,v,y,B,mg,zi,t,Ti}from'./chunk-ROXE5K4B.js';import {memo,useState,useRef,useEffect,useMemo,useCallback}from'react';import {useTranslation}from'react-i18next';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var mt={inProgress:Ti,initiated:Ti,abandoned:t,cancelled:zi,reversed:mg,reports:B,search:y,chevronDown:v,unAuthorized:z,unSettled:Ni,unCaptured:cb,captured:Ai,authorized:Si,openFlag:tb,closedFlag:ub,unauthenticated:Bf,authenticated:wf,paidOut:zf,scheduled:xf,checked:yf,dashedChecked:Oa,deactivated:Ua,destination:Aj,destinationReversed:pf,outstanding:Pa};var At=memo(I=>{let{variant:r="inActive",badgeCount:i,icon:g$1,label:k,dropdownOptions:o,selectedStatus:d$1,onButtonBodyClick:E,iconMapper:l=mt,buttonSx:ft,...Ct}=I,[Bt,y]=useState(0),{t:T}=useTranslation(),w=useRef(null),[A,h$1]=useState(null),[n,L]=useState(d$1??o?.[0]?.status);useEffect(()=>{d$1!==void 0&&L(d$1);},[d$1]);let c$1=useMemo(()=>!!o?.length,[o]),p$1=!!A&&Bt>1,s=r==="active",M=useMemo(()=>s?"active":"inActive",[s]),u=useMemo(()=>n?o?.find(t=>t.status===n):null,[n,o]),vt=useMemo(()=>{if(u?.icon)return jsx(h,{variant:r,children:u.icon});let t=n&&l[n]?n:g$1;if(t&&l[t])return jsx(g,{icon:t,variant:r,src:l[t],alt:`${t}-icon`})},[u,n,l,g$1,r]),St=useMemo(()=>!i||Number.isNaN(fb(i))?null:jsx(e,{variant:M,children:p(Number(i))}),[i,M]),x=useMemo(()=>c$1?jsx(a,{isActive:s}):null,[c$1,s]);useEffect(()=>{s||(y(0),h$1(null));},[s]);let f$1=useCallback(()=>{h$1(null);},[]),D=useCallback(()=>{c$1&&h$1(p$1?null:w.current);},[c$1,p$1]),bt=useCallback(t=>{t.stopPropagation(),I?.onClick?.(t),E?.(n||o?.[0]?.status||"all"),D(),y(C=>C+1);},[I,E,n,o,D]),N=useCallback(t=>C=>{t?.onClick?.(C),L(t.status),f$1();},[f$1]),gt=useMemo(()=>o?.map(t=>({...t,onClick:N(t)}))||[],[o,N]),kt=a$1[r],Et=useMemo(()=>u?.label||(n?T(n):k),[u,n,T,k]);return jsxs(Fragment,{children:[jsx(kt,{"data-testid":"StatusButton",...Ct,ref:w,onClick:bt,sx:{...c$1&&{paddingInlineEnd:"27px"},...ft},children:jsxs(f,{children:[jsxs(e$1,{variant:r,children:[vt,Et,St]}),x&&jsx(d,{children:x})]})}),p$1&&c$1&&jsx(c,{open:p$1,onClose:f$1,anchorEl:A,menuItems:gt})]})}),ht=At;var $t=ht;export{$t as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a}from'./chunk-KDVCU5UC.js';var e=a;export{e as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-S7OMWEM6.js';import {
|
|
1
|
+
import {a}from'./chunk-S7OMWEM6.js';import {qb,bd}from'./chunk-ROXE5K4B.js';import {useState,useCallback}from'react';import r from'@mui/material/Box';import O from'@mui/material/Popper';import {Box,ClickAwayListener}from'@mui/material';import {styled}from'@mui/material/styles';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var c=styled(r)(()=>({display:"flex",alignItems:"center",gap:"8px"})),A=styled(r)(({theme:e})=>({fontSize:"11px",fontWeight:500,color:e.palette.text.primary})),b=styled(r)(()=>({width:16,height:16})),P=styled(r)(({theme:e})=>({background:e.palette.common.white,borderRadius:"4px",borderTopRightRadius:0,filter:"drop-shadow(0px 8px 30px rgba(0, 0, 0, 0.16))",width:"max-content",minWidth:150})),D=styled(r)(({theme:e})=>({background:e.palette.common.white,borderRadius:"4px",filter:"drop-shadow(0px 8px 30px rgba(0, 0, 0, 0.16))",minWidth:130,width:"max-content",marginTop:"8px"})),v=styled(r,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:i})=>({display:"flex",alignItems:"center",justifyContent:"space-between",height:32,padding:"8px 8px 8px 12px",cursor:"pointer",...i&&{boxShadow:e.shadows[3]}})),N=styled(r)(({theme:e})=>({display:"flex",alignItems:"center",gap:"8px",height:32,padding:"8px 12px",cursor:"pointer",fontSize:"11px",color:e.palette.text.primary,fontWeight:500,"&:hover":{boxShadow:e.shadows[3]}}));function g({item:e,anchorEl:i,onMouseLeave:u,onSelectService:a}){return e?jsx(O,{open:true,anchorEl:i,placement:"left-start",onMouseLeave:u,sx:{zIndex:2e3},children:jsx(P,{children:e.services.map(t=>jsx(N,{onClick:x=>{x.stopPropagation(),a(e.appCode,t.serviceCode);},children:jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.iconUrl&&jsx("img",{src:t.iconUrl,alt:"service",width:16,height:16}),jsxs("span",{children:["View ",t.label]})]})},t.serviceCode))})}):null}function q({anchorEl:e,open:i,onClose:u,items:a$1,onSelectService:t,showViewApi:x=false,onViewApiClick:S}){let[B,y]=useState(null),[C,M]=useState(null),[H,h]=useState(false),z=useCallback((p,l)=>{y(p.currentTarget),M(l),h(false);},[]),w=useCallback(()=>{y(null),M(null),h(false);},[]),s=useCallback(()=>{u(),w();},[u,w]),R=useCallback((p,l)=>{t(p,l),s();},[t,s]),W=useCallback(p=>{p.stopPropagation(),S?.(),s();},[S,s]);return i?jsx(ClickAwayListener,{onClickAway:s,children:jsxs(r,{children:[jsx(a,{onClick:s}),jsx(O,{open:i,anchorEl:e,placement:"bottom-end",sx:{zIndex:2e3},children:jsx(D,{children:a$1.length===0&&!x?jsx(v,{sx:{cursor:"default","&:hover":{boxShadow:"none"}},children:jsx(c,{children:jsx(A,{sx:{fontSize:11,color:"text.secondary"},children:"No actions available"})})}):jsxs(Fragment,{children:[a$1.map(p=>jsxs(v,{onMouseOver:l=>z(l,p),open:C?.appCode===p.appCode,children:[jsxs(c,{children:[jsx(b,{children:jsx("img",{src:p.appIconUrl,alt:"app",width:16,height:16})}),jsx(A,{children:p.appName})]}),jsx(c,{children:jsx("img",{src:qb,alt:"icon",className:"arrow-icon"})})]},p.appCode)),x&&S&&jsx(v,{onClick:W,open:H,onMouseOver:()=>{M(null),h(true);},onMouseLeave:()=>h(false),children:jsxs(c,{children:[jsx(b,{children:jsx("img",{src:bd,alt:"app",width:16,height:16})}),jsx(A,{children:"View API"})]})})]})})}),a$1.length>0&&jsx(g,{item:C,anchorEl:B,onMouseLeave:w,onSelectService:R})]})}):null}var G=q;export{g as a,G as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-CNIYZZCP.js';import {
|
|
1
|
+
import {a}from'./chunk-CNIYZZCP.js';import {ad,hh,ih,jh,kh,lh}from'./chunk-ROXE5K4B.js';import {memo}from'react';import i from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var y=styled(i)(({theme:o})=>({display:"flex",gap:o.spacing(1),insetInlineStart:o.spacing(1.25),zIndex:1}));styled(i)(({theme:o})=>({width:12,height:12,borderRadius:"50%",cursor:"pointer",backgroundColor:`${o.palette.grey[200]}14`,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease-in-out",img:{opacity:"0",transition:"all 0.2s ease-in-out"},"&:active":{backgroundColor:`${o.palette.grey[200]} !important`}}));var b=styled(i)(({theme:o})=>({display:"flex",height:"2rem",justifyContent:"space-between",alignItems:"center",width:"100%",paddingLeft:o.spacing(1.25),paddingRight:o.spacing(1.25),"& > *":{flex:"1 1 0px;"}})),f=styled("div",{shouldForwardProp:o=>o!=="sandboxMode"&&o!=="maximized"&&o!=="isDragging"})(({maximized:o,isDragging:e})=>({...!o&&{borderTopRightRadius:12,borderTopLeftRadius:12},...e&&{cursor:"move"},margin:0})),U=styled(i,{shouldForwardProp:o=>o!=="maximized"&&o!=="isDragging"})(({isDragging:o})=>({...o&&{cursor:"move"},margin:0})),u=styled(i,{shouldForwardProp:o=>o!=="maximized"&&o!=="isHovered"})(({theme:o,maximized:e})=>({height:32,position:"relative",display:"flex",width:"100%",justifyContent:"center",transition:"all 0.5s ease-in-out",borderTopLeftRadius:"12px",borderTopRightRadius:"12px",...e&&{display:"block !important",position:"fixed",right:0,left:0,zIndex:999,background:"transparent",".toolbar-wrapper":{display:"flex",justifyContent:"space-between",gap:10,alignItems:"center",position:"absolute",right:0,left:0,height:"2rem",".action-box":{visibility:"hidden"}},"&:hover":{".toolbar-wrapper":{top:0},".action-box":{visibility:"visible"}}},":hover":{".header-icon":{backgroundColor:`${o.palette.grey[200]}40`},".header-icon img":{opacity:1}}})),P=styled(f)(()=>({position:"sticky",top:0,left:0,right:0,zIndex:1e3,background:"#eaeaea",backdropFilter:"blur(32px)"}));var w=styled(a)(({theme:o})=>({fontSize:"10px",color:"rgba(32, 35, 43, 0.5)",opacity:.7,textAlign:"left",fontWeight:o.typography.fontWeightBold,lineHeight:"14px",userSelect:"none",paddingLeft:"0.175rem",textTransform:"capitalize"})),h=styled("div")(()=>({display:"flex",justifyContent:"center",alignItems:"center",position:"relative",textAlign:"center"})),I=styled("img")(()=>({width:14,height:14,verticalAlign:"center"}));var S=new Map([["json",ad],["brand",hh],["entity",ih],["bank",jh],["individual",kh],["password",lh]]);function R({title:o,icon:e}){let n=S.get(e||"")??(S.get(o?.toLowerCase())||e);return jsxs(h,{className:"action-box",children:[n&&jsx(I,{src:n,alt:"icon"}),jsx(w,{className:"title",children:o})]})}var T=R;var W=T;function D({onMouseEnter:o,onMouseLeave:e,isMaximized:n,isHovered:z,children:M,rightActions:A,leftActions:d,title:B,icon:H,...C}){return jsx(u,{onMouseEnter:o,onMouseLeave:e,maximized:n,id:"toolbar",isHovered:z,...C,children:jsxs(b,{className:"toolbar-wrapper",children:[d?jsx(y,{className:"action-box",children:d}):jsx("div",{}),jsx(W,{title:B,icon:H}),A||jsx("div",{})]})})}var k=memo(D);var no=k;export{f as a,U as b,P as c,W as d,no as e};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {em}from'./chunk-ROXE5K4B.js';import {b,c as c$1}from'./chunk-5QGYWOQI.js';import l from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var c=styled(l)`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: repeat(3, 1fr);
|
|
4
4
|
grid-gap: 10px;
|
|
@@ -13,4 +13,4 @@ import {am}from'./chunk-TCLN5DZD.js';import {b,c as c$1}from'./chunk-5QGYWOQI.js
|
|
|
13
13
|
border: 1px solid ${r=>r.theme.palette.grey[100]};
|
|
14
14
|
width: 100%;
|
|
15
15
|
padding: 10px;
|
|
16
|
-
`;var y=
|
|
16
|
+
`;var y=em;function f({theme:r="light"}){return jsx(c,{mode:r,children:Object.keys(em).sort().map(o=>{let d=y[o];return jsxs(s,{children:[jsx("img",{src:d,height:42,width:42,alt:`${o} icon`}),jsx(i,{mode:r,children:o})]},o)})})}var m=f;var G=m;export{G as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ra}from'./chunk-
|
|
1
|
+
import {Ra}from'./chunk-WXO77AL5.js';import y from'react';import c from'@mui/material/Box';import m from'@mui/material/Input';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var p=styled(m,{shouldForwardProp:r=>!["isError","hideArrows"].includes(r)})(({theme:r,hideArrows:o})=>({padding:"8px",border:`1px solid ${r.palette.divider}`,borderRadius:"4px",height:32,color:r.palette.text.primary,fontSize:"11px",outline:0,maxWidth:"100%",display:"flex",flexGrow:1,"::placeholder":{color:r.palette.grey[700],fontWeight:400},...o&&{"& 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}}}));var x=Ra();function l({isError:r,hideArrows:o,inputProps:s,onKeyDown:n,...t},d){let f=e=>{if(["e","E","+","-"].includes(e.key)&&e.preventDefault(),n){n?.(e);return}x&&isNaN(e.key)&&e.key!=="Backspace"&&e.preventDefault();};return jsx(c,{sx:{flexGrow:1},onClick:e=>{e.stopPropagation();},children:jsx(p,{...t,ref:d,value:t.value||"",placeholder:t.placeholder,hideArrows:true,isError:r,disableUnderline:true,inputProps:{...s,type:"number"},onKeyDown:f,onWheel:e=>{e.target instanceof HTMLElement&&e.target.blur();}})})}l.displayName="InputNumber";var u=y.forwardRef(l);var B=u;export{B as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-JWQCFINS.js';import {memo,useMemo}from'react';import {jsx}from'react/jsx-runtime';var n=({chipIndex:r,rowIndex:i,colIndex:e,selectedId:s})=>{let[,t,o,p]=(s??"").split("-");return Number(t)===i&&Number(o)===e&&Number(p)===r};function d({children:r,copyText:i,chipIndex:e,selectionProps:{onClick:s,rowIndex:t,colIndex:o,selectedId:p},...m}){let u=useMemo(()=>n({rowIndex:t,colIndex:o,selectedId:p,chipIndex:e}),[t,o,p,e]);return jsx(a,{...m,copyText:i,onClick:h=>{s?.(h,e);},isSelected:u,children:r})}var l=memo(d);var N=l;export{n as a,N as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-ABDRIOU6.js';import {f,e,d,c}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-ABDRIOU6.js';import {f,e,d,c}from'./chunk-6OSSML46.js';import {e as e$1}from'./chunk-WDGOOLU7.js';import {p}from'./chunk-WXO77AL5.js';import {zb}from'./chunk-ROXE5K4B.js';import {memo,useState,useRef,useEffect}from'react';import {Button,Box,Typography,Checkbox}from'@mui/material';import {styled}from'@mui/material/styles';import {jsxs,Fragment,jsx}from'react/jsx-runtime';var X=t=>({...t.typography.subtitle1,borderRadius:"50px",borderWidth:"1px",borderStyle:"solid",minWidth:"135.11px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",gap:"8px",textTransform:"none",transition:"background-color 0.5s ease, color 0.3s ease",paddingInline:t.spacing(2)}),P=styled(Button,{shouldForwardProp:t=>t!=="buttonVariant"})(({theme:t,buttonVariant:a})=>({...X(t),...a==="active"?{background:t.palette.background.gradient.shadedBlue,color:t.palette.common.white,"&:disabled":{color:t.palette.common.white}}:{backgroundColor:t.palette.common.white,borderColor:t.palette.grey[100],color:t.palette.text.primary,"&:hover":{backgroundColor:"white"},"&:disabled":{color:t.palette.text.primary}}}));styled(Box)(({theme:t})=>({display:"flex",alignItems:"center",gap:t.spacing(.5)}));var D=styled(Box)(({theme:t})=>({display:"flex",alignItems:"center",gap:t.spacing(.3),width:"100%"})),L={padding:.3,color:"#8C9196","&.Mui-checked":{color:"#1F88D0"},"&.MuiCheckbox-root":{color:"#8C9196"},"& .MuiSvgIcon-root":{color:"inherit"},"&.Mui-checked .MuiSvgIcon-root":{color:"#1F88D0","& path":{fill:"#1F88D0"}}},R=styled("img")(({variant:t})=>({width:"10px",height:"10px",filter:t==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)",cursor:"pointer",position:"absolute",top:"50%",left:"47%",transform:"translate(-50%, -50%)",transition:"opacity 0.2s ease-in-out"})),A=styled(Box,{shouldForwardProp:t=>t!=="isVisible"})(({isVisible:t})=>({opacity:t?1:0,transition:"opacity 0.2s ease-in-out",display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%"}));function U({options:t=[],selectedValues:a$1,onSelectionChange:x,label:F,variant:i="inActive"}){let[d$1,S]=useState(null),h=useRef(null),[n,m]=useState(a$1),[v,I]=useState(0),[c$1,M]=useState(false),l=!!d$1;useEffect(()=>{l||m(a$1);},[a$1,l]);let O=e=>{if(e.stopPropagation(),e.preventDefault(),l){w();return}S(h.current);let o=h.current?.clientWidth||200;I(Math.max(o,200));},w=()=>{JSON.stringify([...n].sort())!==JSON.stringify([...a$1].sort())&&x(n),S(null),I(0);},N=e=>{e.stopPropagation(),e.preventDefault(),m([]),x([]);},B=(e,o)=>{o&&(o.stopPropagation(),o.preventDefault());let z=n.includes(e)?n.filter(J=>J!==e):[...n,e];m(z);};return jsxs(Fragment,{children:[jsx(P,{buttonVariant:i,ref:h,sx:{paddingInlineEnd:"27px"},"data-testid":"MultiSelectStatusButton",onClick:O,onMouseEnter:()=>M(true),onMouseLeave:()=>M(false),disabled:!t.length,children:jsxs(f,{children:[jsxs(e,{variant:i,children:[jsx(Typography,{fontWeight:400,fontSize:"11px",variant:"inherit",children:F}),jsx(e$1,{pointer:true,variant:i==="active"?"active":"inActive",children:p(a$1.length>0?a$1.length:t.length)})]}),jsxs(d,{onClick:c$1&&n.length>0?N:void 0,sx:{"&:hover":{backgroundColor:"transparent"}},children:[jsx(R,{variant:i,src:zb,alt:"clear all",sx:{opacity:c$1&&n.length>0?1:0,pointerEvents:c$1&&n.length>0?"auto":"none"}}),jsx(A,{isVisible:!(c$1&&n.length>0),children:jsx(a,{disableHover:true,isActive:i==="active"})})]})]})}),l&&d$1&&jsx(c,{open:l,onClose:w,anchorEl:d$1,allowShadows:false,style:{minWidth:v||200,width:v||"auto",marginTop:"6px",maxWidth:300},sx:{boxShadow:"none !important","&:hover":{boxShadow:"none !important"}},menuItems:t.map(e=>({label:jsxs(D,{children:[jsx(Checkbox,{checked:n.includes(e.status),size:"small",sx:L,onClick:o=>{o.stopPropagation(),B(e.status??"",o);}}),e.render?e.render():jsx(Typography,{variant:"body2",children:e.name})]}),onClick:o=>{o.preventDefault(),o.stopPropagation(),B(e.status??"",o);}}))})]})}var V=memo(U);var mt=V;export{mt as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {b}from'./chunk-FKD6E26U.js';import {Tl}from'./chunk-ROXE5K4B.js';import {memo}from'react';import {jsx}from'react/jsx-runtime';var p={"3DS":{text:"3DS"},"Non-3DS":{text:"Non 3DS",styles:{...Tl}},"Device Biometric":{text:"Biometric"}};function y({title:t,ref:n,...r}){let i=p[t];return jsx(b,{chipStyles:i?.styles,ref:n,...r,children:i?.text||t})}var h=memo(y);var l=h;export{l as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {Uh}from'./chunk-ROXE5K4B.js';import {memo}from'react';import l from'@mui/material/ButtonBase';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';import {Box}from'@mui/material';var n=styled(l,{shouldForwardProp:t=>t!=="variant"})(({theme:t,variant:o="confirm",size:e="default"})=>({textTransform:"capitalize",borderRadius:"4px",lineHeight:"100%","&.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"}}));function i({children:t,sx:o,...e}){return jsx(n,{sx:o,...e,children:t})}i.displayName="Button";var a=memo(i);function u({...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:Uh,alt:"Plus Button",width:24,height:24})})}u.displayName="PlusButton";var d=memo(u);var c=d;var F=a;export{c as a,F as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-OWWED4PY.js';import {a}from'./chunk-4W6J54AY.js';import {a as a$2}from'./chunk-S7OMWEM6.js';import {xb}from'./chunk-ROXE5K4B.js';import {Box}from'@mui/material';import n from'@mui/material/Box';import {styled}from'@mui/material/styles';import {useState}from'react';import {jsxs,jsx}from'react/jsx-runtime';var g=styled(n,{shouldForwardProp:o=>o!=="open"})(({theme:o,open:a})=>({minWidth:105,height:32,cursor:"pointer",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"1px",border:`1px solid ${o.palette.divider}`,borderRadius:"4px",padding:"7px 8px",paddingRight:"4px",...a&&{boxShadow:o.shadows[7],borderColor:o.palette.info.dark}})),h=styled(n)(()=>({display:"flex",flexDirection:"column",gap:"1px"})),b=styled(n)(()=>({fontWeight:600,fontSize:"8px",color:"#8D8D94"})),w=styled(n)(({theme:o})=>({fontWeight:500,fontSize:"11px",lineHeight:1.1,color:o.palette.text.primary}));function l({defaultValue:o,label:a$3,onChange:M,options:i}){let[s,d]=useState(null),[y,D]=useState(o),r=!!s,E=e=>{r||d(e.currentTarget);},m=()=>{r&&d(null);},I=e=>{D(e),M?.(e),m();};return jsxs(g,{onClick:E,open:r,children:[jsxs(h,{children:[jsx(b,{children:a$3}),jsx(w,{children:y})]}),jsx(Box,{component:"img",src:xb,alt:"down arrow",sx:{width:15,...r&&{transform:"rotate(180deg)"}}}),jsx(a,{open:r,anchorEl:s,sx:{minWidth:105,marginTop:"8px",marginBottom:"8px"},placement:"top",children:i.map((e,W)=>jsx(a$1,{onClick:()=>{I(e.value);},sx:k=>({...W!==i.length-1&&{borderBottom:`1px solid ${k.palette.divider}`}}),children:e.label},e.value))}),r&&jsx(a$2,{onClick:m})]})}var G=l;export{G as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-VBQVGZ4J.js';import {a as a$3}from'./chunk-R7QVUQBN.js';import {a as a$2}from'./chunk-NKNRVF6Q.js';import {a}from'./chunk-CNIYZZCP.js';import {tc}from'./chunk-WXO77AL5.js';import {Vh,Wh,$h,Sd}from'./chunk-ROXE5K4B.js';import {forwardRef,useState,useImperativeHandle,useEffect,useMemo,memo}from'react';import n from'@mui/material/Box';import {useDropzone}from'react-dropzone';import {useTranslation}from'react-i18next';import {Button}from'@mui/material';import {styled,alpha}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var f=styled(n)(()=>({textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"32px"})),l=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"})),$=styled(n)(({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"})),h=styled(n,{shouldForwardProp:e=>e!=="width"})(({theme:e,width:i})=>({width:i||431,height:176,border:`1px dashed ${e.palette.secondary.light}`,borderRadius:"8px",padding:"24px 0",display:"flex",alignItems:"center",justifyContent:"center"})),F=styled(n)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"24px",color:e.palette.text.primary,fontSize:"14px",lineHeight:"20px",cursor:"default"})),J=styled("span")(()=>({fontWeight:600,textDecorationLine:"underline",cursor:"pointer"})),y=styled(n)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",color:e.palette.text.primary})),S=styled(n)(({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}})),V=styled(n)(()=>({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:k,isCreateLoading:W,progress:G,error:z,subtitleComponent:b,isSuccess:R,onConfirm:K,isSendDisabled:O,title:s,width:B,successFooter:Q},Y)=>{let{t:d}=useTranslation(),[p,w]=useState([]),{getRootProps:Z,getInputProps:_,open:m,acceptedFiles:I,isDragReject:P,fileRejections:c}=useDropzone(k);useImperativeHandle(Y,()=>({open:m}),[m]),useEffect(()=>{w(I);},[I]);let j=tc(k?.maxSize||0,0).toUpperCase(),x=useMemo(()=>{let ee=c.length&&c[0].errors.some(C=>C.code==="file-invalid-type"),te=c.length&&c[0].errors.some(C=>C.code==="file-too-large");return P||ee?d("invalidFileType"):te?`File is larger than ${j}`:z},[P,z,c]);return R&&p.length&&!W?jsxs(f,{children:[jsxs(n,{children:[typeof s=="string"?jsx(l,{children:s}):s??jsx(l,{children:"File uploaded"}),b]}),jsx(h,{width:B,children:jsxs(F,{children:[R&&jsx(n,{component:"img",src:Vh,width:56,height:56}),jsxs(y,{sx:{fontWeight:600},children:[jsx(n,{children:p[0].name}),jsx(S,{children:tc(p[0].size)})]})]})}),Q??jsxs(V,{children:[jsx(a$1,{onClick:()=>{w([]);},children:jsx(a$2,{src:Wh,alt:"delete",sx:{width:14,height:14}})}),jsx(L,{disabled:O,onClick:()=>{K?.(p);},children:"Bulk Send"})]})]}):W&&p.length?jsxs(f,{children:[jsxs(n,{children:[jsx(l,{children:d("uploading")}),jsx(g,{children:d("wait")}),b]}),jsx(h,{width:B,children:jsxs(F,{children:[W&&jsx(a$3,{size:56,value:G}),jsxs(y,{sx:{fontWeight:600},children:[jsx(n,{children:p[0].name}),jsx(S,{children:tc(p[0].size)})]})]})}),i&&i]}):jsxs(f,{children:[jsxs(n,{children:[x?jsx(l,{isError:true,children:x}):typeof s=="string"?jsx(l,{children:s}):s??jsx(l,{children:d("uploadBulkFile")}),!!x&&jsx(g,{children:"Supported formats: xls, xlxs"}),b]}),jsxs(h,{width:B,...Z(),children:[jsx("input",{..._()}),jsxs(F,{children:[jsx(n,{component:"img",src:x?$h:Sd,width:56,height:56}),x?jsx(Fragment,{children:jsx($,{onClick:m,children:d("uploadAgain")})}):jsxs(y,{children:[jsxs(n,{children:[jsx(J,{onClick:m,children:"Click to upload"})," or drag and drop"]}),jsxs(S,{children:["Maximum file size ",j]}),e&&jsx(g,{children:d("supportedFormats",{accept:e})})]})]})]}),i&&i]})});X.displayName="FileUpload";var q=memo(X);var je=q;export{je as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {f}from'./chunk-
|
|
1
|
+
import {f}from'./chunk-AK4FIVFH.js';import {memo,useState,useRef,useMemo}from'react';import {useTheme}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import C from'@mui/material/Box';import x from'@mui/material/Button';import {styled,alpha}from'@mui/material/styles';function m({isActive:t}){let[o,r]=useState(false),a=useTheme(),p=()=>{r(true);},l=()=>{r(false);},c=t?a.palette.common.white:a.palette.grey[700],s=o?a.palette.common.black:"transparent";return jsx("svg",{width:"27",height:"30",viewBox:"0 0 27 32",xmlns:"http://www.w3.org/2000/svg",children:jsxs("g",{id:"Group 140343",children:[jsx("path",{id:"Active",d:"M0 0H11C19.8366 0 27 7.16344 27 16C27 24.8366 19.8366 32 11 32H0V0Z",fill:s,fillOpacity:"0.1",onMouseEnter:p,onMouseLeave:l}),jsx("path",{id:"Union",fillRule:"evenodd",clipRule:"evenodd",d:"M15.6941 15.0078C15.6494 15.0193 15.6083 15.043 15.5758 15.0769L12.5026 18.1501L12.5025 18.1501L15.5756 15.0769C15.6082 15.043 15.6493 15.0193 15.6941 15.0078ZM12.5619 18.7465C12.5426 18.7512 12.5227 18.7536 12.5026 18.7536C12.4363 18.7536 12.3727 18.7273 12.3258 18.6804L9.07581 15.4304C9.04012 15.3957 9.01559 15.3512 9.00535 15.3025C8.99511 15.2538 8.99963 15.2032 9.01833 15.1571C9.03703 15.111 9.06907 15.0715 9.11033 15.0437C9.13446 15.0275 9.16112 15.0156 9.18904 15.0086C9.16105 15.0156 9.13433 15.0275 9.11013 15.0438C9.06887 15.0716 9.03684 15.111 9.01814 15.1571C8.99944 15.2032 8.99492 15.2539 9.00516 15.3026C9.0154 15.3513 9.03993 15.3958 9.07562 15.4305L12.3256 18.6805C12.3725 18.7273 12.4361 18.7537 12.5024 18.7537C12.5226 18.7537 12.5426 18.7512 12.5619 18.7465ZM16.1965 15.342C16.1781 15.4301 16.1338 15.5105 16.0693 15.5731L12.8205 18.8219C12.7361 18.9063 12.6217 18.9537 12.5024 18.9537C12.3831 18.9537 12.2686 18.9062 12.1842 18.8219L8.93507 15.5728C8.87148 15.5105 8.82775 15.4308 8.80944 15.3437C8.79101 15.2561 8.79914 15.165 8.8328 15.082C8.86646 14.999 8.92412 14.9279 8.99839 14.8779C9.07266 14.8279 9.16022 14.8011 9.24978 14.8011C9.30998 14.8011 9.36958 14.8132 9.42503 14.8366C9.47997 14.8599 9.52973 14.8938 9.57144 14.9364L12.5024 17.8673L15.433 14.9368C15.5151 14.852 15.6273 14.803 15.7454 14.8002C15.836 14.798 15.9252 14.8233 16.0013 14.8728C16.0773 14.9222 16.1367 14.9935 16.1715 15.0772C16.2063 15.1609 16.2151 15.2533 16.1965 15.342Z",fill:c})]})})}var v=t=>({...t.typography.subtitle1,borderRadius:"50px",borderWidth:"1px",borderStyle:"solid",minWidth:"135.11px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",gap:"8px",textTransform:"none",transition:"none",paddingInline:t.spacing(2)}),w=styled(x)(({theme:t})=>({...v(t),background:t.palette.background.gradient.shadedBlue,color:t.palette.common.white,"&:hover":{background:t.palette.background.gradient.shadedBlue,opacity:.8}})),y=styled(x)(({theme:t})=>({...v(t),backgroundColor:t.palette.common.white,borderColor:t.palette.grey[100],color:t.palette.text.primary,"&:hover":{backgroundColor:t.palette.common.white,opacity:.7}}));styled(C)(({theme:t,variant:o})=>({borderRadius:"50px",backgroundColor:o==="active"?alpha(t.palette.text.primary,.1):t.palette.grey[100],display:"flex",justifyContent:"center",alignItems:"center",paddingInline:t.spacing(.5),paddingBlock:t.spacing(.25),color:o==="active"?t.palette.common.white:t.palette.text.primary,fontSize:"8px",fontWeight:700,lineHeight:"10px"}));styled("img")(({theme:t,variant:o})=>({fill:o==="active"?t.palette.common.white:t.palette.text.primary,color:o==="active"?t.palette.common.white:t.palette.text.primary,maxWidth:"14px",maxHeight:"14px"}));styled("p")(({theme:t})=>({fontSize:"0.6875rem",color:t.palette.background.default,fontStyle:"normal",margin:"auto",textTransform:"capitalize"}));var B=styled(f)(({theme:t})=>({backgroundColor:"white",boxShadow:t.shadows[21],borderRadius:"0.25rem","& .MuiPaper-root":{borderRadius:"0.25rem",width:"12.5rem"}})),b=styled("span")(()=>({width:"27px",height:"100%",maxHeight:"100%",position:"absolute",top:"0",right:"0",bottom:"0",overflow:"hidden"})),D=styled(C)(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"100%"})),I=styled(C)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.5rem"}));var L={active:w,inActive:y};function M({variant:t="inActive",label:o,dropdownOptions:r,...a}){let[p,l]=useState(null),c=useRef(null),s=!!p,f=()=>{l(null);},R=L[t],d=r&&r.length>0,g=d?jsx(m,{isActive:t==="active"}):null,E=n=>{n.stopPropagation(),n.preventDefault(),d&&l(c.current);},H=useMemo(()=>(r||[]).map(n=>({...n,onClick:T=>{n?.onClick?.(T),f();}})),[r]);return jsxs(Fragment,{children:[jsx(R,{"data-testid":"StatusButton",...a,ref:c,onClick:n=>{a?.onClick?.(n),E(n);},sx:{...d&&{paddingInlineEnd:"27px"}},children:jsxs(D,{children:[jsx(I,{children:o}),g&&jsx(b,{children:g})]})}),s&&jsx(B,{open:s,onClose:f,anchorEl:p,menuItems:H})]})}M.displayName="DropdownButton";var S=memo(M);var dt=S;
|
|
2
2
|
export{m as a,dt as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Bb,lc}from'./chunk-
|
|
1
|
+
import {Bb,lc}from'./chunk-WXO77AL5.js';import {pa,na,Tl}from'./chunk-ROXE5K4B.js';import {useState,useCallback,useMemo}from'react';import {useTranslation}from'react-i18next';import {motion,AnimatePresence}from'framer-motion';import f from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var m=styled(f,{shouldForwardProp:o=>!["textColor","bgColor","borderColor","disabled","minWidth","padding","maxWidth","isSelected","disableAnimation"].includes(o)})(({theme:o,isSelected:s,textColor:r=o.palette.text.primary,bgColor:e="#EFF1F2",borderColor:c="#EFF1F2",disabled:d=false,padding:i,minWidth:n,maxWidth:a,disableAnimation:l})=>({display:"flex",justifyContent:"center",alignItems:"center",gap:"4px",height:"18px",padding:i||"0px 8px",borderRadius:"30px",border:`1px solid ${c}`,backgroundColor:e,color:r,cursor:d?"not-allowed":"pointer",opacity:d?.5:1,whiteSpace:"nowrap",fontSize:"11px",minWidth:n||"67px",maxWidth:a||"none",width:"fit-content",overflow:"hidden",textOverflow:a?"ellipsis":"unset",boxSizing:"border-box",...s&&{boxShadow:"white 7px 0px 8px 2px"},...l&&{transition:"none !important",animation:"none !important",transform:"none !important","& *":{transition:"none !important",animation:"none !important",transform:"none !important"}}})),u=styled(f)(()=>({gap:"4px",textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:1})),I=styled(f)(()=>({position:"absolute",top:0,height:"100%",width:"12px",display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center"}));var H=({children:o,unknownText:s,copyText:r,expandDirection:e="right",chipStyles:c,containerStyles:d,fullWidth:i=false,...n})=>{let[a,l]=useState(false),{t:C}=useTranslation(),p=n.isSelected,g=p&&r,w=useCallback(x=>{if(x.stopPropagation(),r){l(true),Bb(r);let R=setTimeout(()=>{l(false);},2e3);return ()=>{clearTimeout(R);}}},[r]),S=useMemo(()=>jsx(I,{sx:{...e==="right"&&{right:"8px"},...e==="left"&&{left:"8px"}},children:jsx(motion.img,{initial:{opacity:0,x:-5},animate:{opacity:1,x:0},exit:{opacity:0,x:-2},transition:{duration:.1},onClick:w,src:a?pa:na,style:{height:12,width:12,objectFit:"contain"}})}),[a,w,e]),b=g&&e==="right",v=g&&e==="left";return o?jsxs(motion.div,{style:{position:"relative",...d,...i&&{width:"100%",minWidth:0}},animate:{zIndex:p?3:0},children:[jsx(m,{...n,sx:{visibility:"hidden",pointerEvents:"none",width:i?"100%":"auto"},children:jsx(u,{children:o})}),jsx(motion.div,{style:{position:"absolute",top:0,zIndex:p?3:0,width:i?"100%":"auto",left:e==="right"?0:"unset",right:e==="left"?0:"unset"},transition:{delay:p?0:.3,duration:.2},children:jsx(m,{...n,isSelected:p,sx:{width:i?"100%":"auto"},...c,children:jsxs(motion.div,{layout:"size",style:{display:"flex",gap:"4px",...i&&{maxWidth:"100%",width:"100%"}},animate:{...b&&{paddingRight:12},...v&&{paddingLeft:12}},transition:{delay:p?0:.3,duration:.2},children:[jsx(AnimatePresence,{children:v&&S}),jsx(u,{"data-is-arabic":typeof o=="string"&&lc(o),children:o}),jsx(AnimatePresence,{children:b&&S})]})})})]}):jsx(m,{...Tl,...n,isSelected:false,sx:x=>({borderColor:x.palette.divider,width:i?"100%":"auto"}),children:C(s||"unknown")})},M=H;var D=M;export{D as a};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {a}from'./chunk-3QA32K6H.js';import {
|
|
1
|
+
import {a}from'./chunk-3QA32K6H.js';import {Tg}from'./chunk-ROXE5K4B.js';import {useState}from'react';import L from'@mui/material/Skeleton';import i from'@mui/material/Box';import {styled,Box}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var x=styled(Box)(()=>({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:12,border:"1.03px solid"})),f=styled(Box)`
|
|
2
2
|
position: absolute;
|
|
3
|
-
`;function P({mainIcon:m,overlayIcon:s,mainIconAlt:c="main icon",mainIconSize:t=20,containerSize:a$1=24,overlayPosition:B={top:10,left:17},borderColor:u="#F2F2F2",label:b="",sx:w,onError:y,containerSx:C}){let[r,d]=useState(true);return jsx(a,{title:b,children:jsx(i,{display:"flex",alignItems:"center",gap:1,sx:{position:"relative",...C},children:jsxs(x,{style:{borderColor:u,width:a$1,height:a$1},children:[t&&r&&jsx(i,{width:t,height:t,children:r&&jsx(L,{variant:"circular",width:`${t}px`,height:`${t}px`})}),jsxs(Fragment,{children:[s&&jsx(f,{sx:B,children:s}),jsx(i,{width:t,height:t,component:"img",src:m||
|
|
3
|
+
`;function P({mainIcon:m,overlayIcon:s,mainIconAlt:c="main icon",mainIconSize:t=20,containerSize:a$1=24,overlayPosition:B={top:10,left:17},borderColor:u="#F2F2F2",label:b="",sx:w,onError:y,containerSx:C}){let[r,d]=useState(true);return jsx(a,{title:b,children:jsx(i,{display:"flex",alignItems:"center",gap:1,sx:{position:"relative",...C},children:jsxs(x,{style:{borderColor:u,width:a$1,height:a$1},children:[t&&r&&jsx(i,{width:t,height:t,children:r&&jsx(L,{variant:"circular",width:`${t}px`,height:`${t}px`})}),jsxs(Fragment,{children:[s&&jsx(f,{sx:B,children:s}),jsx(i,{width:t,height:t,component:"img",src:m||Tg,alt:c,sx:{borderRadius:"50%",objectFit:"scale-down",opacity:r?0:1,...w},onError:p=>{d(false),p.currentTarget.src=Tg,y?.(p);},onLoad:()=>{d(false);}})]})]})})})}export{P as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-F5BRCMX3.js';import {a as a$2}from'./chunk-4W6J54AY.js';import {a}from'./chunk-CNIYZZCP.js';import {fb}from'./chunk-WXO77AL5.js';import {uj,vj}from'./chunk-ROXE5K4B.js';import {useState,useEffect}from'react';import _ from'@mui/material/ClickAwayListener';import m from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var W=styled(m)(()=>({width:157,padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"16px"})),L=styled(a,{shouldForwardProp:e=>e!=="open"&&e!=="size"})(({theme:e,open:o,size:p})=>({fontSize:"11px",fontWeight:500,background:e.palette.common.white,border:`1px solid ${e.palette.divider}`,borderRadius:"19px",height:p==="large"?32:24,width:p==="large"?74:58,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{boxShadow:"0px 0px 4px 0px #1F88D080",borderColor:e.palette.info.dark}})),f=styled(m)(()=>({textAlign:"center",cursor:"pointer",userSelect:"none"})),B=styled(a,{shouldForwardProp:e=>e!=="selected"})(({theme:e,selected:o})=>({fontSize:"11px",fontWeight:500,background:e.palette.common.white,border:`1px solid ${e.palette.divider}`,borderRadius:"4px",height:24,width:33,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{borderColor:"transparent",color:e.palette.info.dark,backgroundColor:alpha(e.palette.info.dark,.1)}})),S=styled(m)(()=>({display:"flex",flexDirection:"column",gap:"4px"})),z=styled(m)(()=>({display:"flex",alignItems:"center",justifyContent:"center",gap:"4px"})),h=styled(m)(()=>({display:"flex",flexDirection:"column",justifyContent:"center",gap:"6px"})),k=styled(a$1)(()=>({".MuiInput-input":{fontWeight:"500",fontSize:"11px"},height:32,width:32}));var Y=e=>e===0?12:e<=12?e:e-12,pe=e=>e>=12?"PM":"AM",$=()=>new Date().getMinutes(),j=()=>{let e=new Date().getHours();return Y(e)},ae=(e,o)=>o==="AM"&&e===12?0:o==="PM"&&e!==12?e+12:e;var F=["AM","PM"],x=12,g=59;function N({onChange:e,defaultTime:o,enableRealTimeChange:p,size:R="large"}){let[A,y]=useState(null),[a$1,O]=useState(o?.period??(new Date().getHours()>=12?"PM":"AM")),[u,w]=useState(o?.hour??j()),[s,C]=useState(o?.minute??$()),H=!!A;useEffect(()=>{p&&e?.({hour:u,minute:s,period:a$1});},[u,s,a$1,p]);let U=r=>{y(r.currentTarget);},q=()=>{y(null),e?.({hour:u,minute:s,period:a$1});},G=r=>{O(r);},i=r=>r<10?`0${r}`:r.toString(),J=r=>{let l=fb(i(Number(r.target.value)));if(l>12){r.preventDefault();return}w(l);},v=()=>{w(r=>r===12?1:r+1);},D=()=>{w(r=>r===1?12:r-1);},K=r=>{let l=fb(i(Number(r.target.value)));if(l>59){r.preventDefault();return}C(l);},Q=()=>{C(r=>r===59?(v(),0):r+1);},V=()=>{C(r=>r===0?(D(),59):r-1);};return jsx(_,{onClickAway:q,children:jsxs(m,{children:[jsx(L,{size:R,open:H,onClick:U,children:`${i(u)}:${i(s)}${a$1.toLowerCase()}`}),jsx(a$2,{open:H,anchorEl:A,placement:"top-start",sx:{marginTop:"8px",marginBottom:"8px"},children:jsxs(W,{children:[jsxs(z,{children:[jsxs(h,{children:[jsx(f,{onClick:v,children:jsx("img",{src:uj,alt:"arrow"})}),jsx(k,{value:i(u),onChange:J}),jsx(f,{onClick:D,children:jsx("img",{src:vj,alt:"arrow"})})]}),jsx(a,{children:":"}),jsxs(h,{children:[jsx(f,{onClick:Q,children:jsx("img",{src:uj,alt:"arrow"})}),jsx(k,{value:i(s),onChange:K}),jsx(f,{onClick:V,children:jsx("img",{src:vj,alt:"arrow"})})]})]}),jsx(S,{children:F.map(r=>jsx(B,{onClick:()=>{G(r);},selected:a$1===r,children:r},r))})]})})]})})}var ye=N;export{Y as a,pe as b,$ as c,j as d,ae as e,F as f,x as g,g as h,N as i,ye as j};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {e}from'./chunk-
|
|
1
|
+
import {e}from'./chunk-BX63HTMQ.js';import {a}from'./chunk-6RMDSMJP.js';import n from'@mui/material/Box';import {styled}from'@mui/material/styles';import {motion}from'framer-motion';import {jsx}from'react/jsx-runtime';import {memo,useState}from'react';var f=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]})),v=styled(n)(({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(n)(({theme:o})=>({minHeight:95,background:o.palette.grey[400],paddingInline:"24px",paddingTop:"23px",paddingBottom:"23px",gap:"15px",position:"relative",zIndex:2})),C=styled(n)(({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 l({children:o,index:e,dialogRef:a,height:t,onClick:r,order:p,dragControls:s,style:d}){return jsx(f,{drag:true,dragListener:false,dragMomentum:false,dragControls:s,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+p},onClick:r,ref:a,style:d,children:o})}function T({title:o,onCloseDialog:e$1,...a$1}){let[t,r]=useState(false);return jsx(e,{onMouseEnter:()=>{r(true);},onMouseLeave:()=>{r(false);},isHovered:t,title:o,leftActions:jsx(a,{onClick:c=>{c.stopPropagation(),e$1();}}),...a$1})}var I=memo(T);var z=l;export{v as a,b,C as c,I as d,z as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {Ok}from'./chunk-ROXE5K4B.js';import g from'@mui/material/Stack';import d from'@mui/material/Box';import e from'@mui/material/Skeleton';import {jsx,jsxs}from'react/jsx-runtime';function h(){return jsxs(g,{height:"100%",borderRadius:"0 0 12px 12px",overflow:"hidden",children:[jsxs(g,{direction:"row",spacing:1,height:"4.1875rem",sx:{pb:"1.2rem",paddingInline:"32px",pt:"10px",background:r=>r.palette.background.transparent[0]},children:[jsx(e,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31}),jsx(e,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31}),jsx(e,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31})]}),jsx(d,{flex:1,bgcolor:"#fff"})]})}var u=4;function f(){return jsx(g,{height:"100%",borderRadius:"0 0 12px 12px",overflow:"hidden",sx:{padding:"8px 32px"},children:Array.from({length:u}).map((r,c)=>jsx(d,{children:jsxs(g,{direction:"row",spacing:1,sx:{py:1,height:56,borderTop:"1px solid rgb(242, 242, 242)"},children:[jsx(e,{variant:"rounded",width:32,height:32}),jsxs(d,{sx:{display:"flex",flexDirection:"column",gap:"4px"},children:[jsx(e,{width:80,height:12.29}),jsxs(d,{sx:{display:"flex",gap:"4px"},children:[jsx(e,{width:50,height:12.29}),jsx(e,{width:125,height:12.29})]})]})]})},c))})}var b=({appCode:r})=>r===Ok.reports.code?jsx(f,{}):jsx(h,{}),m=b;var A=m;export{A as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a as a$4}from'./chunk-WRXSOWHO.js';import {a,c,e,f,b}from'./chunk-R3V7C2N6.js';import {a as a$3}from'./chunk-237EA4BW.js';import {a as a$2}from'./chunk-TLKUQ74V.js';import {a as a$5}from'./chunk-TIQMT2NC.js';import {a as a$6}from'./chunk-NKNRVF6Q.js';import {a as a$1}from'./chunk-CNIYZZCP.js';import {Kc,y}from'./chunk-ROXE5K4B.js';import*as w from'react';import w__default,{useState,useMemo}from'react';import {useFormContext,Controller,FormProvider,useForm}from'react-hook-form';import {jsx,jsxs}from'react/jsx-runtime';import P from'@mui/material/Box';import Le from'@mui/material/Input';import {styled}from'@mui/material/styles';import {ListSubheader,Box,MenuItem}from'@mui/material';import Ke from'@mui/material/MenuItem';function Pe({onSubmit:e,methods:n,children:o}){return jsx(FormProvider,{...n,children:jsx("form",{onSubmit:e,noValidate:true,children:o})})}var Fe=w__default.memo(Pe);var J=w.forwardRef(({name:e,helperText:n,hideArrows:o,...t},l)=>{let{control:i}=useFormContext();return jsx(Controller,{name:e,control:i,defaultValue:t.defaultValue,render:({field:c,fieldState:a$1})=>jsx(a,{...t,...c,ref:l,hasError:!!a$1.error,helperText:n??a$1.error?.message,hideArrows:o,onChange:p=>{c.onChange(p),t.onChange?.(p);},onWheel:p=>{p.target instanceof HTMLElement&&p.target.blur();}})})});J.displayName="RFHFormInput";var Q=w.memo(J);var Ae=Q;function Y({phoneName:e$1,countries:n,countryName:o,helperText:t,isCountriesLoading:l,disabled:i,...c}){let{control:a,watch:p,setValue:x}=useFormContext(),h=p(o),b=u=>{x(o,u);};return jsx(Controller,{name:e$1,control:a,render:({field:{onChange:u,value:s},fieldState:f})=>jsx(e,{...c,phoneValue:s,countries:n,hasError:!!f.error,helperText:t??f.error?.message,onPhoneChange:d=>{u(d);},disabled:i,countryValue:h,onCountryChange:b,isCountriesLoading:l})})}Y.displayName="RFHPhoneInput";var Z=Y;var Ee=Z;var B=(e,n)=>e.toFixed(n);function j({amountName:e,currencies:n,currencyName:o,helperText:t,isCurrenciesLoading:l,...i}){let{control:c,watch:a,setValue:p}=useFormContext(),x=a(o),h=a(e),b=u=>{p(o,u),p(e,B(Number(h),u?.decimals||2));};return jsx(Controller,{name:e,control:c,render:({field:{onChange:u,value:s},fieldState:f$1})=>jsx(f,{...i,amountValue:s??"",currencies:n,hasError:!!f$1.error,helperText:t??f$1.error?.message,onAmountChange:d=>{u(d);},onAmountBlur:d=>{u(B(Number(d),x?.decimals||2));},currencyValue:x,onCurrencyChange:b,isCurrenciesLoading:l})})}j.displayName="RFHAmountInput";var ee=j;var We=ee;function te({name:e,helperText:n,...o}){let{control:t}=useFormContext();return jsx(Controller,{name:e,control:t,render:({field:l,fieldState:i})=>jsx(c,{...o,...l,hasError:!!i.error,helperText:n??i.error?.message})})}te.displayName="RFHSelect";var ne=w.memo(te);var k=ne;function le({name:e,disabled:n,...o}){let{control:t}=useFormContext();return jsx(Controller,{name:e,control:t,render:({field:{name:l,onBlur:i,onChange:c,value:a,disabled:p}})=>jsx(a$3,{...o,onChange:c,onBlur:i,name:l,disabled:p||n,checked:a??false})})}le.displayName="RFHSWitch";var ie=w.memo(le);var Te=ie;var me=styled(a$1)(({theme:e})=>({fontSize:"10px",color:e.palette.grey[700],fontWeight:600,lineHeight:"10px"}));styled(a$1)(({theme:e})=>({fontSize:"11px",color:e.palette.text.primary,fontWeight:600,lineHeight:"14.3px",width:200}));var se=styled(P)(()=>({display:"flex",flexDirection:"column",maxHeight:180,overflow:"auto",scrollbarWidth:"thin",scrollbarColor:"#E5E5E5 #E5E5E5"}));styled(Le)(({theme:e})=>({width:"inherit",height:32,padding:"11px 12px",fontSize:"10px",borderRadius:"5px",backgroundColor:"#F9F9F9",border:"1px solid transparent","&.Mui-focused":{borderColor:e.palette.info.dark}}));var ce=styled(P)(()=>({display:"flex",flexDirection:"column",gap:"8px"}));styled(P)(()=>({display:"flex",gap:"8px",padding:"4px",flexWrap:"wrap",paddingInlineEnd:"20px"}));styled(P)(({theme:e,maxWidth:n})=>({display:"flex",padding:"4px 8px 4px 6px",alignItems:"center",gap:"4px",borderRadius:"13px",backgroundColor:`${e.palette.info.dark}1a`,fontSize:"10px",fontWeight:500,cursor:"pointer",...n&&{maxWidth:`${n}%`}}));var ue=styled(a$1)(({theme:e})=>({display:"flex",gap:"8px",alignItems:"center",justifyContent:"space-between",fontSize:"10px",fontWeight:500,color:e.palette.common.black,cursor:"pointer",padding:"8px 20px"}));styled(P)(({theme:e})=>({width:"100%",flexDirection:"column",border:`1px solid ${e.palette.grey[100]}`,borderRadius:"4px",backgroundColor:e.palette.grey[400]}));function $e({name:e,options:n,...o}){let[t,l]=useState(null),[i,c]=useState(0),a=!!t,p=s=>{l(a?null:s.currentTarget);},x=()=>{l(null);},{watch:h,setValue:b}=useFormContext(),u=h(e);return jsx(a$4,{open:a,anchorEl:t,onOpen:p,onClose:x,trigger:jsx(k,{name:e,options:[],...o,open:false}),hideArrow:true,listWrapperSx:{padding:0,margin:0},children:jsx(ce,{children:jsx(se,{"data-testid":"AccordionWrapper",children:n.map?.((s,f)=>{let d=i===f;return jsx(a$5,{Header:jsx(me,{variant:"caption",children:s.group}),defaultExpanded:true,sx:{flexShrink:0,border:0,...d&&{borderBottom:"1px solid #0000001A",borderTop:"1px solid #0000001A"}},summarySx:{backgroundColor:d?"#F8F8F8":"#ffffff",borderBottom:"1px solid #0000001A",minHeight:28},expanded:d,onChange:(m,g)=>{m.stopPropagation(),m.preventDefault(),c(g?f:null);},children:(s?.options||[]).map((m,g)=>{let r=o?.isOptionEqualToValue?.(m,u);return jsxs(ue,{onClick:()=>{b(e,m,{shouldDirty:true,shouldTouch:true,shouldValidate:true}),x();},children:[o.renderOption?.(m)||m.label,r&&jsx(a$6,{src:Kc,alt:"blue-check",sx:{width:14,height:10}})]},`${m.value}-${m.label}-${g}`)})},`${s.group}-group-${f}`)})})})})}var fe=$e;var Ue=fe;var xe=styled(a$2)(()=>({padding:0,".MuiSvgIcon-root":{width:12,height:12}})),he=styled(Le)(({theme:e})=>({width:"100%",height:36,padding:"8px 8px 8px 12px",borderRadius:4,backgroundColor:e.palette.common.white,border:"1px solid #F2F2F2",boxSizing:"border-box","&:hover":{borderColor:"#F2F2F2"},"&.Mui-focused":{borderColor:"#F2F2F2",backgroundColor:e.palette.common.white},"&:before, &:after":{display:"none"},"& input":{padding:0,fontSize:10},"& .MuiInputBase-input":{paddingRight:4}}));styled(Ke)(({theme:e})=>({opacity:1,paddingTop:0,paddingBottom:0,marginBottom:8,minHeight:"auto",pointerEvents:"none",backgroundColor:e.palette.common.white,"&:hover":{backgroundColor:e.palette.common.white},"&.Mui-focusVisible":{backgroundColor:e.palette.common.white},"&.Mui-disabled":{backgroundColor:e.palette.common.white,opacity:1}}));function M({name:e,helperText:n,getOptionValue:o,getOptionLabel:t,renderOption:l,isOptionEqualToValue:i,getOptionDisabled:c,showSearchInput:a=false,searchPlaceholder:p="Search",showCheckbox:x=true,options:h,...b$1}){let{control:u}=useFormContext(),[s,f]=useState(""),d=useMemo(()=>{if(!a||!s.trim())return h??[];let m=s.toLowerCase().trim();return (h??[]).filter(g=>{let r=(t?t(g):g?.label)??"";return String(r).toLowerCase().includes(m)})},[h,a,s,t]);return jsx(Controller,{name:e,control:u,defaultValue:[],render:({field:m,fieldState:g})=>jsxs(b,{...b$1,...m,options:d,getOptionLabel:t,hasError:!!g.error,helperText:n??g.error?.message,onChange:r=>m.onChange(r),MenuProps:{...b$1.MenuProps,autoFocus:false,disableEnforceFocus:true},children:[a&&jsx(ListSubheader,{disableSticky:true,sx:{backgroundColor:"#fff",pt:1,pb:1},children:jsx(he,{placeholder:p,value:s,onChange:r=>f(r.target.value),onKeyDown:r=>r.stopPropagation(),onKeyUp:r=>r.stopPropagation(),disableUnderline:true,fullWidth:true,inputProps:{"aria-label":p},endAdornment:jsx(Box,{component:"img",src:y,alt:"search",sx:{width:14,height:14,flexShrink:0}})})}),d?.map(r=>{let A=m.value?.some(F=>i?i(F,r):F?.id===r?.id),R=c?c(r):false,be=t?t(r):r.label,W=l?l(r):be;return jsx(MenuItem,{value:(o?o(r):r?.id)??"",disabled:R,sx:{fontSize:"12px",backgroundColor:F=>A?"#F8F8F8 !important":F.palette.common.white,"&.Mui-disabled":{opacity:1}},children:x?jsxs(Box,{sx:{display:"flex",alignItems:"center",width:"100%",gap:"8px"},children:[jsx(xe,{checked:A,sx:{...A&&R&&{"& svg rect":{fill:"#BDC1CC"}}}}),W]}):W},(o?o(r):r?.id)??"")})]})})}var Ze=M;var je=useForm;export{Fe as a,Ae as b,Ee as c,We as d,k as e,Te as f,Ue as g,Ze as h,je as i};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-3QA32K6H.js';import {a as a$2}from'./chunk-NKNRVF6Q.js';import {a}from'./chunk-CNIYZZCP.js';import {Si,Qi,Oi,Li,Bi,Di,Ti,Ai,zi,Ri,fg,nb,Ei,lb,Fi,Hi,Ii,Ni,Mi,Gi}from'./chunk-ROXE5K4B.js';import h from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var k={ABANDONED:fg,IN_PROGRESS:Ti,VOID:Ri,CANCELLED:zi,CAPTURED:Ai,INITIATED:Ti,FAILED:Di,DECLINED:Bi,RESTRICTED:Li,TIMEDOUT:Oi,UNKNOWN:Qi,AUTHORIZED:Si},R={UNKNOWN:{gatewayIcon:Ei,acquirerIcon:nb,color:"#FF7A00",background:"#FF7A001A"},TIMEDOUT:{gatewayIcon:Ei,acquirerIcon:nb,color:"#FF7A00",background:"#FFF3E5"},FAILED:{gatewayIcon:Ei,acquirerIcon:nb,color:"#FF7A00",background:"#FFF3E5"},DECLINED:{gatewayIcon:Fi,acquirerIcon:lb,color:"#FF3D00",background:"#FFEAE5"},RESTRICTED:{gatewayIcon:Fi,acquirerIcon:lb,color:"#FF3D00",background:"#FFEAE5"},ABANDONED:{gatewayIcon:Ei,acquirerIcon:nb,color:"#FFD600",background:"#FFFBE5"},CANCELLED:{gatewayIcon:Ei,acquirerIcon:nb,color:"#FFD600",background:"#FFFBE5"},INITIATED:{color:"#8D8D94",background:"transparent",gatewayIcon:Ei,acquirerIcon:nb}},z={PENDING:Ii,REFUNDED:Hi},H={PENDING:{color:"#FF7A00",backgroundColor:"#FF7A000D"},REFUNDED:{color:"#4E1FD0",backgroundColor:"#4E1FD00D"}},K={PAID_OUT:Gi,SETTLED:Mi,PENDING:Ni},M={AUTHORIZED:Si},O={CAPTURED:{color:"#1F88D0",background:"#1F88D00D"}};var L=styled(h)(()=>({display:"flex",gap:"4px",alignItems:"center",justifyContent:"center",borderRadius:"56px",padding:"2px 4px",cursor:"default"})),q=styled(a)(({theme:r})=>({color:r.palette.common.white,fontWeight:600,fontSize:"8px",padding:"3px 2.57px",borderRadius:"4px",lineHeight:"100%"}));function I({tooltip:r,status:e,statusCode:U}){let d=R[e]??O[e]??null;return jsx(a$1,{title:r,children:jsxs(L,{sx:{backgroundColor:d?.background||"transparent"},children:[jsx(a$2,{src:k[e]}),jsx(q,{sx:P=>({backgroundColor:d?.color||P.palette.info.dark}),children:U})]})})}var ro=I;export{k as a,R as b,z as c,H as d,K as e,M as f,O as g,ro as h};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-ARSSSITK.js';import {memo,useCallback,Fragment as Fragment$1,createElement}from'react';import {useTranslation}from'react-i18next';import {jsx,Fragment}from'react/jsx-runtime';function A({isFilteredIdsShown:i,availableStatuses:f,status:e,onStatusChange:l,buttonSx:S}){let{t:v}=useTranslation(),I=useCallback(s=>s===e&&!i?"active":"inActive",[e,i]),u=useCallback(s=>{l?.(s);},[l]);return jsx(Fragment,{children:f?.map(({render:s,...a$1},d)=>{if(s)return jsx(Fragment$1,{children:s({status:e,onChange:u},{...a$1,index:d})},`custom-status-slot-${d}`);if(!Array.isArray(a$1.status))return createElement(a,{...a$1,key:`status-button-array-${a$1.status}`,variant:I(a$1.status),onClick:()=>{Array.isArray(a$1.status)||u(a$1.status);},buttonSx:S});if(!a$1.status)return null;let o=a$1.status.filter(Boolean).map(t=>typeof t=="string"?{value:t}:t)||[],m=!!e&&o.some(t=>t?.value===e);return jsx("div",{children:jsx(a,{...a$1,selectedStatus:m?e:void 0,variant:m?"active":"inActive",onButtonBodyClick:t=>u(t),dropdownOptions:o.map(t=>({label:t?.label||v(t?.value||""),status:t?.value,icon:t.icon,onClick:()=>u(t.value)})),buttonSx:S})},o[0]?.value)})})}var c=memo(A);var $=c;export{$ as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ua,Va}from'./chunk-
|
|
1
|
+
import {Ua,Va}from'./chunk-WXO77AL5.js';import {zb,Qc}from'./chunk-ROXE5K4B.js';import so,{useState,useRef,useCallback,useEffect,useMemo}from'react';import B from'@mui/material/Box';import co from'@mui/material/ClickAwayListener';import eo from'@mui/material/Stack';import K from'@mui/material/Typography';import {styled,alpha}from'@mui/material/styles';import N from'@mui/material/Button';import ao from'@mui/material/TextField';import io from'@mui/material/MenuList';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {useTranslation}from'react-i18next';import {RgbColorPicker,RgbaColorPicker}from'react-colorful';import To from'@mui/material/Divider';import mo from'@mui/material/Popper';import Z from'@mui/material/MenuItem';import Q from'@mui/material/InputAdornment';import v from'color';import {Popper}from'@mui/material';var L=styled("button")({background:"transparent",border:"none",padding:0,margin:0,cursor:"pointer",width:10,height:10,display:"flex",justifyContent:"center",alignItems:"center","&:disabled, &.Mui-disabled":{opacity:.5,cursor:"not-allowed"}}),O=styled(B)(({theme:o})=>({boxShadow:"0px 8px 30px rgba(0, 0, 0, 0.16)",width:264,backgroundColor:"#ffffff",padding:"12px",borderRadius:o.spacing(1),"& .react-colorful":{width:"100%","&__saturation":{minHeight:152,borderRadius:"4px",marginBottom:o.spacing(2),border:0,"&-pointer":{width:13,height:13}},"&__hue":{borderRadius:"4px",height:"8px","&-pointer":{width:10,height:10}},"&__alpha":{marginTop:o.spacing(2),marginBottom:0,border:0,borderRadius:"4px",height:"8px","&-pointer":{width:10,height:10}}}})),G=styled(B)(()=>({display:"flex",gap:"8px",justifyContent:"flex-end"})),D=styled(o=>jsx(K,{...o,component:"button"}))(({theme:o})=>({fontWeight:500,fontSize:"9px",color:o.palette.info.dark,textDecoration:"underline",cursor:"pointer",background:"transparent",border:"none",padding:0,margin:0,"&:disabled, &.Mui-disabled":{color:alpha(o.palette.info.dark,.5),textDecoration:"none"},"&:hover":{textDecoration:"none"}})),V=styled(N)(({theme:o})=>({textTransform:"capitalize",minWidth:"auto",width:74,borderRadius:"4px",border:`1px solid ${o.palette.info.dark}`,backgroundColor:o.palette.info.dark,fontWeight:700,fontSize:"11px",color:o.palette.common.white,"&:hover":{backgroundColor:o.palette.info.dark}})),X=styled(N)(({theme:o})=>({textTransform:"capitalize",minWidth:"auto",width:74,borderRadius:"4px",border:`1px solid ${o.palette.divider}`,backgroundColor:o.palette.common.white,fontWeight:500,fontSize:"11px",color:o.palette.text.primary,"&:hover":{background:"transparent"}})),$=styled(B,{shouldForwardProp:o=>o!=="active"})(({theme:o,active:p})=>({display:"flex",justifyContent:"space-between",alignItems:"center",color:o.palette.text.primary,border:"1px solid #F2F2F2",fontSize:12,fontWeight:500,backgroundColor:"transparent",padding:"4px 8px",borderRadius:"4px",minWidth:70,cursor:"pointer",...p&&{border:"1px solid #1F88D0",boxShadow:"0px 0px 4px 0px #1F88D080"}})),U=styled(io)({backgroundColor:"#ffffff",borderRadius:"4px",boxShadow:"0px 8px 30px 0px #00000029",minWidth:70,"& .MuiMenuItem-root":{fontSize:12,fontWeight:500,padding:"4px 8px"}}),x=styled(ao)(({theme:o})=>({"& .MuiOutlinedInput-root":{fontSize:"12px",fontWeight:500,borderRadius:"4px","& input":{padding:"4px","&::-webkit-outer-spin-button, &::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0},"&[type=number]":{MozAppearance:"textfield"}},"& .MuiOutlinedInput-notchedOutline":{borderColor:o.palette.divider,borderWidth:"1px"},"&:hover, &.Mui-focused":{"& .MuiOutlinedInput-notchedOutline":{borderColor:o.palette.divider,borderWidth:"1px"}}}}));var fo=({scheme:o,setScheme:p})=>{let[n,r]=so.useState(null),m=!!n,a=useCallback(c=>{r(n?null:c.currentTarget);},[n]),i=useCallback(()=>{r(null);},[]),s=useCallback(c=>{i(),p(c);},[i,p]);return jsxs(Fragment,{children:[jsxs($,{component:"button",active:m,onClick:a,children:[o,jsx(B,{component:"img",sx:{transform:m?"rotateZ(180deg)":"rotateZ(0)",transition:"200ms transform ease-out"},src:Qc})]}),jsx(mo,{anchorEl:n,open:!!n,placement:"bottom",disablePortal:true,keepMounted:true,modifiers:[{name:"offset",options:{offset:[0,4]}}],children:jsx(co,{onClickAway:c=>{n?.contains(c.target)||i();},children:jsxs(U,{children:[jsx(Z,{onClick:()=>s("RGB"),children:"RGB"}),jsx(Z,{onClick:()=>s("HEX"),children:"HEX"})]})})})]})},q=fo;var ko=({value:o,onChange:p,disableAlpha:n=false})=>{let[r,m]=useState(o),{r:a,g:i,b:s,a:c}=r;useEffect(()=>{m(o);},[o]);let f=useCallback((l,u)=>(isNaN(l)&&(l=0),l<0&&(l=0),l>u&&(l=u),console.log("num",l),l),[]),t=useCallback((l,u)=>k=>{m({...r,[l]:f(+k.target.value,u)});},[r,f]),e=useCallback((l,u)=>{p({...r,[l]:f(r[l],u)});},[p,r,f]);return jsxs(eo,{direction:"row",spacing:1,...n&&{flex:1},children:[jsx(x,{type:"number",value:a,onBlur:()=>e("r",255),onChange:t("r",255),inputProps:{min:0,max:255,style:{textAlign:"center"}},variant:"outlined",size:"small",...n&&{sx:{flex:1}}}),jsx(x,{type:"number",value:i,onBlur:()=>e("g",255),onChange:t("g",255),inputProps:{min:0,max:255,style:{textAlign:"center"}},variant:"outlined",size:"small",...n&&{sx:{flex:1}}}),jsx(x,{type:"number",value:s,onBlur:()=>e("b",255),onChange:t("b",255),inputProps:{min:0,max:255,style:{textAlign:"center"}},variant:"outlined",size:"small",...n&&{sx:{flex:1}}}),!n&&jsx(x,{type:"number",value:c,onBlur:()=>e("a",100),onChange:t("a",100),inputProps:{min:0,max:100,style:{textAlign:"center"}},variant:"outlined",sx:{"& .MuiOutlinedInput-root":{pr:1}},InputProps:{endAdornment:jsx(Q,{position:"end",sx:{m:0},children:jsx(K,{component:"span",display:"inline-block",fontSize:12,fontWeight:500,children:"%"})})},size:"small"})]})},J=ko;var Ao=({value:o,onChange:p,disableAlpha:n=false})=>{let r=useMemo(()=>v.rgb(o.r,o.g,o.b,o.a).hex().replace("#",""),[o]),[m,a]=useState(r),i=Math.round(o.a*100);return useEffect(()=>{let t=v.rgb(o.r,o.g,o.b).hex().replace("#","");a(t);},[o.r,o.g,o.b]),jsxs(eo,{direction:"row",spacing:1,alignItems:"flex-start",children:[jsx(x,{value:m,onChange:t=>{let e=t.target.value.replace(/[^0-9a-fA-F]/g,"").toUpperCase();e.length>6&&(e=e.slice(0,6)),a(e);},onBlur:()=>{let t=m;if(t.length===3&&(t=t.split("").map(e=>e+e).join(""),a(t)),t.length===6)try{let e=v(`#${t}`).alpha(o.a);p({r:e.red(),g:e.green(),b:e.blue(),a:e.alpha()});}catch{a(r);}else a(r);},placeholder:"FFFFFF",sx:{flex:1.4,"& .MuiOutlinedInput-root":{pl:1}},InputProps:{startAdornment:jsx(Q,{position:"start",sx:{m:0},children:jsx(K,{component:"span",color:t=>alpha(t.palette.text.primary,.5),display:"inline-block",fontSize:12,fontWeight:500,children:"#"})})}}),!n&&jsx(x,{type:"number",value:i,onChange:t=>{let e=parseInt(t.target.value,10);isNaN(e)&&(e=0),e<0&&(e=0),e>100&&(e=100),p({...o,a:e/100});},inputProps:{min:0,max:100},sx:{flex:.8,"& .MuiOutlinedInput-root":{pr:1}},InputProps:{endAdornment:jsx(Q,{position:"end",sx:{m:0},children:jsx(K,{component:"span",color:"text.primary",display:"inline-block",fontSize:12,fontWeight:500,children:"%"})})}})]})},Y=Ao;var Ho=({initialValue:o="#ffffff",onCancel:p,onConfirm:n,disableAlpha:r=false})=>{let[m,a]=useState("RGB"),[i,s]=useState(()=>{let{alpha:d,...S}=Ua(o).value;return {...S,a:d}}),{t:c}=useTranslation(),f=useCallback(()=>{let{alpha:d,...S}=Ua(o).value;s({...S,a:d}),p();},[o,p]),t=useCallback(()=>{let{a:d,...S}=i;n(Va({...S,alpha:r?1:d}));},[i,n,r]),e=useCallback(d=>{s(r?{...d,a:1}:d);},[r]),l=useCallback(d=>{s({...d,a:d.a/100});},[]),u=useCallback(d=>{s({...d,a:d.a});},[]);return jsxs(O,{className:"color-picker__widget",children:[jsx(r?RgbColorPicker:RgbaColorPicker,{color:i,onChange:e}),jsxs(eo,{mt:2,spacing:1,direction:"row",children:[jsx(q,{scheme:m,setScheme:a}),m==="RGB"?jsx(J,{value:{...i,a:Math.round(i.a*100)},onChange:l,disableAlpha:r}):jsx(Y,{value:{...i,a:i.a},onChange:u,disableAlpha:r})]}),jsx(To,{sx:{my:"12px"}}),jsxs(G,{className:"color-picker__widget-actions",children:[jsx(X,{className:"color-picker__widget-actions__cancel",onClick:f,children:c("cancel")}),jsx(V,{className:"color-picker__widget-actions__confirm",onClick:t,children:c("okay")})]})]})},oo=Ho;var to={hideReset:false,disableAlpha:false},Go=({value:o="#ffffff",onChange:p,onReset:n,sx:r,options:m=to,disabled:a=false})=>{let[i,s]=useState(null),{disableAlpha:c=false,hideReset:f=false}={...to,...m},t=useRef(null),e=useCallback(()=>{a||s(t.current);},[a]),l=useCallback(()=>{a||s(null);},[a]),u=useCallback(k=>{p(c?k.substring(0,7):k),s(null);},[p,c]);return jsx(co,{onClickAway:()=>s(null),children:jsxs(eo,{ref:t,bgcolor:"grey.400",borderRadius:"4px",p:"4px",pr:"12px",direction:"row",justifyContent:"space-between",spacing:1,alignItems:"center",className:"color-picker",sx:r,children:[jsxs(eo,{direction:"row",spacing:1,alignItems:"center",className:"color-picker__controls-wrapper",children:[jsx(B,{borderRadius:"5px",width:32,height:32,sx:{backgroundColor:o},className:"color-picker__viewer"}),jsxs(B,{className:"color-picker__actions-wrapper",children:[jsx(K,{className:"color-picker__label",fontWeight:500,fontSize:9,color:"text.primary",textTransform:"uppercase",children:o}),jsx(D,{className:"color-picker__edit-btn",type:"button",onClick:e,disabled:a,children:"Edit"})]})]}),f?jsx("div",{}):jsx(L,{className:"color-picker__close-btn",type:"button",disabled:a,onClick:n,children:jsx(B,{component:"img",src:zb,width:10,height:10})}),jsx(Popper,{anchorEl:i,open:!!i,placement:"top",children:jsx(oo,{initialValue:o,onCancel:l,onConfirm:u,disableAlpha:c})})]})})},ro=Go;var Qe=ro;export{Qe as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-YBRGXFZD.js';import {Dc,J,cb}from'./chunk-WXO77AL5.js';import {Fl}from'./chunk-ROXE5K4B.js';import {useState,useMemo}from'react';import {ResponsiveContainer,AreaChart,Area,Tooltip}from'recharts';import {useTheme}from'@mui/material/styles';import {useTranslation}from'react-i18next';import S from'dayjs';import U 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"})),b=styled(Typography)({width:"auto",marginBottom:"4px",fontWeight:500,color:"#4B4847ED",fontSize:"9px",whiteSpace:"nowrap",overflow:"visible"}),w=styled(Typography)({display:"flex",alignItems:"center",gap:"5px",fontWeight:600,color:"#4B4847",fontSize:11,whiteSpace:"nowrap",overflow:"visible",width:"auto"}),K=styled(Box)({display:"flex",alignItems:"center",height:"100%",gap:"2.6px",maxHeight:"19px"}),B=styled(Typography)({fontWeight:500,fontSize:11,lineHeight:"130%",color:"#4B4847",letterSpacing:"-0.14px"});var L=(t,i,r)=>t?.value===void 0||t?.value===null?"":t?.dataKey===Fl.AMOUNT?`${cb(t.value,r).fullAmount}`.trim():`${t.value.toLocaleString()} ${i}`.trim(),W=(t,i,r=0)=>{let a=S(t).add(r,"hour").format(),n=new Date,o=S(a).isSame(n,"year");return J(a,i?void 0:{sameDay:`[Today] ${o?"":"YYYY"}`,nextDay:`[Tomorrow] ${o?"":"YYYY"}`,lastDay:`[Yesterday] ${o?"":"YYYY"}`,sameElse:`MMM DD ${o?"":", YYYY"}`,lastWeek:`MMM DD ${o?"":", YYYY"}`,nextWeek:`MMM DD ${o?"":", YYYY"}`},void 0,void 0,r!==void 0)};var V=({active:t,payload:i,dateRange:r,selectedCurrency:a$1})=>{let{t:n}=useTranslation(),o=S(r?.[0]),u=S(r?.[1]),d=o?.isSame(u,"day");if(t&&i?.length){let e=i[0],f=Dc(e?.dataKey,e?.value),y=e?.payload?.date&&W(e?.payload?.date,d,e?.payload?.hour);return jsxs(M,{className:"chart-tooltip",children:[jsx(b,{children:y??e?.payload?.date}),jsxs(w,{children:[e?.dataKey===Fl.AMOUNT&&jsxs(K,{children:[jsx(a,{currencyCode:a$1,width:12}),jsx(B,{children:a$1})]}),jsx(U,{children:`${L(e,n(f),a$1)}`})]})]})}return null},x=V;var N=[{dataKey:30},{dataKey:32.9941},{dataKey:39.0471},{dataKey:56.3412},{dataKey:69.3118},{dataKey:87.4706},{dataKey:94.3882},{dataKey:110.406}],j=()=>jsx(ResponsiveContainer,{children:jsxs(AreaChart,{margin:{top:40},data:N,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=j;var tt=({data:t,dataKey:i,isLoading:r,dateRange:a,selectedCurrency:n})=>{let o=useTheme(),[u,d]=useState(false),[e,f]=useState({x:0,y:0}),y=t?.length===0,P=h=>{h.activeCoordinate&&h.isTooltipActive&&f(h.activeCoordinate);},O=useMemo(()=>jsx(x,{position:e,dateRange:a,selectedCurrency:n}),[e,a,n]);return r||y?jsx(T,{}):jsx(ResponsiveContainer,{children:jsxs(AreaChart,{margin:{top:20},data:t,onMouseMove:P,children:[t.length>0&&jsx(Tooltip,{content:O,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:o.palette.success.dark,activeDot:{r:5,fill:o.palette.success.dark,strokeWidth:2,stroke:"white",cursor:u?"pointer":"default",onMouseOver:()=>d(true),onMouseLeave:()=>d(false)}})]})})},E=tt;var St=E;export{x as a,T as b,St as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-TLKUQ74V.js';import {memo}from'react';import f from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var r=styled(f,{shouldForwardProp:e=>e!=="disabled"})(({theme:e,disabled:o})=>({padding:e.spacing(1),position:"relative",display:"flex",alignItems:"center",gap:"8px",textTransform:"capitalize",cursor:o?"not-allowed":"pointer",flex:1,fontSize:"13px",color:"#20232B"})),m=styled(a)(({theme:e})=>({padding:0,width:"14px !important",svg:{width:"14px !important",height:"14px !important"},"&.Mui-disabled":{'[data-testid="IndeterminateCheckBoxIcon"]':{fill:alpha(e.palette.common.black,.26)}}}));function I({isSelected:e,isDisabled:o,isIndeterminate:l,hideCheckbox:p,onClick:s,children:c,className:t,...x}){let i=o?"disabled menu-item":"menu-item",b=t?`${i} ${t}`:i;return jsxs(r,{className:b,onClick:s,disabled:o,...x,children:[!p&&jsx(m,{size:"small",checked:e,indeterminate:l,disabled:o}),c]})}var d=memo(I);var N=d;export{N as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {e as e$2}from'./chunk-
|
|
1
|
+
import {e as e$2}from'./chunk-QKCWEX4G.js';import {a,f,e as e$1}from'./chunk-6OSSML46.js';import {e}from'./chunk-WDGOOLU7.js';import {a as a$1}from'./chunk-S7OMWEM6.js';import {fb,p}from'./chunk-WXO77AL5.js';import {xb}from'./chunk-ROXE5K4B.js';import {memo,useRef,useMemo,useCallback,useState}from'react';import {styled,Box,Popper}from'@mui/material';import {jsx,jsxs}from'react/jsx-runtime';var L=styled(Box,{shouldForwardProp:t=>t!=="isDisabled"})(({isDisabled:t})=>({display:"flex",justifyContent:"space-between",alignItems:"center",gap:"4px",...t&&{"& img":{opacity:.3}}}));var W=memo(t=>{let{variant:r="inActive",badgeCount:o,label:i,...a$1}=t,l=useRef(null),p$1=useMemo(()=>!o||Number.isNaN(fb(o))?null:jsx(e,{variant:"inActive",children:p(Number(o))}),[o]),s=useCallback(e=>{e.stopPropagation(),t?.onClick?.(e);},[t]),u=a[r];return jsx(u,{"data-testid":"MultiSelectStatusButton",...a$1,ref:l,onClick:s,children:jsx(f,{children:jsxs(e$1,{variant:r,children:[i,p$1]})})})}),E=W;function Y({buttonLabel:t,onClear:r,onConfirm:o,dropdownItems:i,apiKey:a,data:l,styles:p,buttonDisabled:s}){let[u,e]=useState(null),y=N=>{e(N.currentTarget);},c=()=>{e(null);},d=!!u,f=l?.[a],D=Array.isArray(f)?f.length:0;return jsxs("div",{children:[jsx(E,{onClick:y,label:jsxs(L,{isDisabled:s,children:[t,jsx("img",{src:xb,alt:"arrow-down"})]}),disabled:s,badgeCount:D}),d&&jsx(a$1,{onClick:c}),jsx(Popper,{open:d,anchorEl:u,placement:"bottom-start",sx:{zIndex:9999},children:jsx(e$2,{onCloseDropdown:c,filter:{apiKey:a,data:l,onClear:r,onConfirm:o,options:i,type:"list"},styles:{...p,height:"300px",overflowY:"scroll",maxWidth:"200px"}})})]})}var P=memo(Y);var ct=P;export{ct as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {le}from'./chunk-ROXE5K4B.js';import {styled,Box,Typography}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var a=styled(Box,{shouldForwardProp:o=>o!=="toastPosition"})(({theme:o,toastPosition:t})=>({width:160,position:"absolute",bottom:12,zIndex:1e3,display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:o.palette.background.paper,height:31,gap:o.spacing(1),borderRadius:o.shape.borderRadius,borderWidth:1,padding:o.spacing(1),border:`1px solid ${o.palette.divider}`,boxShadow:"0px 0px 16px 0px #00000014",animation:"slideIn 0.5s ease-out",...t==="bottom-center"&&{left:"50%",transform:"translateX(-50%)"},...t==="bottom-right"&&{right:12,transform:"none"},...t==="bottom-left"&&{left:12,transform:"none"},"@keyframes slideIn":{"0%":{opacity:0,transform:t==="bottom-center"?"translate(-50%, 100%)":t==="bottom-right"?"translateX(100%)":"translateX(-100%)"},"100%":{opacity:1,transform:t==="bottom-center"?"translate(-50%, 0)":"translateX(0)"}}})),n=styled("img")({cursor:"pointer"}),s=styled(Typography)(({theme:o})=>({fontSize:11,fontWeight:500,color:o.palette.text.primary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}));function x({message:o="Something went wrong",onRetry:t,position:l="bottom-center",iconSrc:d}){return jsxs(a,{toastPosition:l,children:[jsx(s,{children:o}),jsx(n,{onClick:m=>t?.(m),src:d||le,alt:"toast-icon"})]})}var i=x;var I=i;export{I as a};
|