@tap-payments/os-micro-frontend-shared 0.3.169 → 0.3.171
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/_chunks/{chunk-RJ2CHCRC.js → chunk-2IEIHK5L.js} +1 -1
- package/build/_chunks/{chunk-YNCRHG2V.js → chunk-2II3PIPV.js} +1 -1
- package/build/_chunks/{chunk-37MMGHJP.js → chunk-32XNGJJX.js} +1 -1
- package/build/_chunks/{chunk-55DNPRT6.js → chunk-4AM27BVT.js} +1 -1
- package/build/_chunks/{chunk-CATRH4QL.js → chunk-4BDCKXPD.js} +1 -1
- package/build/_chunks/{chunk-BUZKD5FY.js → chunk-4Q3P5OVC.js} +1 -1
- package/build/_chunks/{chunk-LDK72NPY.js → chunk-4Z3NCIRW.js} +1 -1
- package/build/_chunks/{chunk-U4BS6S22.js → chunk-57FCA4PR.js} +1 -1
- package/build/_chunks/{chunk-IEKEIKGI.js → chunk-5ONMPFXY.js} +1 -1
- package/build/_chunks/{chunk-KAZ3B4EF.js → chunk-5SLDZGLX.js} +1 -1
- package/build/_chunks/{chunk-4XJAK7Y3.js → chunk-5ZZCVF4B.js} +1 -1
- package/build/_chunks/{chunk-HVSVEO2H.js → chunk-6G45KTCP.js} +1 -1
- package/build/_chunks/{chunk-TJ3OW2D3.js → chunk-73MHTQIF.js} +1 -1
- package/build/_chunks/{chunk-EWNP6TOO.js → chunk-74AGBIWJ.js} +1 -1
- package/build/_chunks/{chunk-MOOH3WQ6.js → chunk-7D6GNZ4V.js} +1 -1
- package/build/_chunks/chunk-7YUGABD6.js +1 -0
- package/build/_chunks/{chunk-FJU2BCBZ.js → chunk-AALHIAWL.js} +1 -1
- package/build/_chunks/{chunk-J4335JLA.js → chunk-AJVH62M3.js} +1 -1
- package/build/_chunks/{chunk-WRVGVKKK.js → chunk-ALU4ED6U.js} +1 -1
- package/build/_chunks/{chunk-2M46764T.js → chunk-AMD6YF2E.js} +1 -1
- package/build/_chunks/{chunk-M5HH57QL.js → chunk-BBC44PBI.js} +1 -1
- package/build/_chunks/{chunk-TGRKEJOI.js → chunk-BFBXNTIB.js} +1 -1
- package/build/_chunks/{chunk-ER5YRXAN.js → chunk-BMUPHUDC.js} +1 -1
- package/build/_chunks/{chunk-2LRXPCXS.js → chunk-C6VKE434.js} +1 -1
- package/build/_chunks/{chunk-GI5WPWRG.js → chunk-CBUJ5RW2.js} +1 -1
- package/build/_chunks/chunk-CC2T7ZQ2.js +1 -0
- package/build/_chunks/{chunk-SZ2JIMZR.js → chunk-CSUO5V7Y.js} +1 -1
- package/build/_chunks/{chunk-FTQKOVBZ.js → chunk-DLYIC7LX.js} +1 -1
- package/build/_chunks/{chunk-QXSUU6NA.js → chunk-DZRT5LO3.js} +1 -1
- package/build/_chunks/{chunk-VFOCLQKK.js → chunk-EA6MZFQ5.js} +1 -1
- package/build/_chunks/{chunk-IU2CIO6M.js → chunk-ELYWQI63.js} +1 -1
- package/build/_chunks/chunk-ERYXQBTU.js +1 -0
- package/build/_chunks/{chunk-RXLAHJVL.js → chunk-EUEVNPSG.js} +1 -1
- package/build/_chunks/{chunk-CM775HHS.js → chunk-FG5WYGID.js} +1 -1
- package/build/_chunks/{chunk-2L6YN6BY.js → chunk-FYMLKBWA.js} +1 -1
- package/build/_chunks/{chunk-23MKWEAQ.js → chunk-FYWEAGW7.js} +1 -1
- package/build/_chunks/{chunk-YZJXQCM7.js → chunk-GZAQEIWS.js} +1 -1
- package/build/_chunks/{chunk-7VD4W2MV.js → chunk-HAOFRIMW.js} +1 -1
- package/build/_chunks/chunk-HCZUDLZR.js +1 -0
- package/build/_chunks/{chunk-MY32HZWD.js → chunk-HFYCWBSA.js} +1 -1
- package/build/_chunks/chunk-IHNM2KRX.js +15 -0
- package/build/_chunks/{chunk-NTLRKE5H.js → chunk-IP74OBDP.js} +1 -1
- package/build/_chunks/{chunk-QG7IDQOX.js → chunk-JSSZZ4ZU.js} +1 -1
- package/build/_chunks/chunk-JVX2RO7Q.js +1 -0
- package/build/_chunks/{chunk-WXOQQKYA.js → chunk-KJKTKQFF.js} +1 -1
- package/build/_chunks/{chunk-5SZU46PP.js → chunk-KSOVBMNE.js} +1 -1
- package/build/_chunks/{chunk-VGIO2RGM.js → chunk-KUOKFWXS.js} +1 -1
- package/build/_chunks/{chunk-5ETS6LOQ.js → chunk-LPU4DLAN.js} +1 -1
- package/build/_chunks/{chunk-RDCA43PM.js → chunk-LS5NCSOA.js} +1 -1
- package/build/_chunks/{chunk-ZUSZEL4Y.js → chunk-MW4KHDFL.js} +1 -1
- package/build/_chunks/{chunk-N2LPXJYV.js → chunk-MXXAZH6N.js} +1 -1
- package/build/_chunks/{chunk-VB4YIOWN.js → chunk-O6C2464W.js} +1 -1
- package/build/_chunks/{chunk-DWSY5MWS.js → chunk-ON3R4M3U.js} +1 -1
- package/build/_chunks/chunk-PEBLGGN7.js +1 -0
- package/build/_chunks/{chunk-23FZIGHL.js → chunk-PHLJSQ63.js} +1 -1
- package/build/_chunks/{chunk-HNUCLGTM.js → chunk-QGIUFATL.js} +1 -1
- package/build/_chunks/{chunk-56NDTN6N.js → chunk-R26A2GDD.js} +1 -1
- package/build/_chunks/chunk-REP2WDKF.js +1 -0
- package/build/_chunks/{chunk-GZ4VIHY2.js → chunk-RFSR64TF.js} +1 -1
- package/build/_chunks/{chunk-MARRXRP5.js → chunk-RIIDTK4T.js} +1 -1
- package/build/_chunks/chunk-RXT7RBES.js +2 -0
- package/build/_chunks/{chunk-Z72ELNOV.js → chunk-RZ3GOLOH.js} +1 -1
- package/build/_chunks/{chunk-37HMYKL2.js → chunk-RZIO5KW7.js} +1 -1
- package/build/_chunks/{chunk-2KLQQ4GT.js → chunk-SA72YYWW.js} +1 -1
- package/build/_chunks/chunk-SJCW4SLG.js +1 -0
- package/build/_chunks/{chunk-624CB4ZD.js → chunk-SKWOFSTP.js} +1 -1
- package/build/_chunks/{chunk-KVOFAN6O.js → chunk-SLTY4KD6.js} +1 -1
- package/build/_chunks/{chunk-CMM74PXZ.js → chunk-SUBIH236.js} +1 -1
- package/build/_chunks/{chunk-U3V6OJGV.js → chunk-T6LIO4ZZ.js} +1 -1
- package/build/_chunks/{chunk-6E3W2EBT.js → chunk-TE4NMDPX.js} +1 -1
- package/build/_chunks/{chunk-EDRNAIB5.js → chunk-TIB7OG4H.js} +1 -1
- package/build/_chunks/{chunk-VLEEU2FO.js → chunk-TY5FA4Z6.js} +2 -2
- package/build/_chunks/{chunk-ATOOWVEE.js → chunk-UJSTHVLW.js} +1 -1
- package/build/_chunks/{chunk-OXEFLXNE.js → chunk-UWK7C3OQ.js} +1 -1
- package/build/_chunks/{chunk-OJFT5TWY.js → chunk-UYDM5BBG.js} +1 -1
- package/build/_chunks/{chunk-EG4YTSUA.js → chunk-W5RQHQ2Z.js} +1 -1
- package/build/_chunks/{chunk-MXISJOX2.js → chunk-W6W4YZ7G.js} +1 -1
- package/build/_chunks/{chunk-FA67CAI7.js → chunk-WDPEG4N2.js} +1 -1
- package/build/_chunks/chunk-WGGSVBPM.js +2 -0
- package/build/_chunks/{chunk-2SBTZEUM.js → chunk-WJML27P6.js} +1 -1
- package/build/_chunks/{chunk-KOVN2TXQ.js → chunk-WMNFDDLA.js} +1 -1
- package/build/_chunks/{chunk-V2V4UQFR.js → chunk-WWEOT6XF.js} +1 -1
- package/build/_chunks/{chunk-U5Q77KAU.js → chunk-XMZ5XGUR.js} +1 -1
- package/build/_chunks/{chunk-RBELN5RP.js → chunk-XQYCJYZI.js} +1 -1
- package/build/_chunks/chunk-XU5U5UY5.js +1 -0
- package/build/_chunks/{chunk-NL5A5JRS.js → chunk-XXFZYM4P.js} +1 -1
- package/build/_chunks/{chunk-TSYM2TD4.js → chunk-Y7DN6PV3.js} +1 -1
- package/build/_chunks/{chunk-KHEICEBV.js → chunk-YCZIYVQU.js} +1 -1
- package/build/_chunks/{chunk-CC73AV3J.js → chunk-YHZCWI2Z.js} +1 -1
- package/build/_chunks/{chunk-J6HEXAGE.js → chunk-YL2COX6W.js} +1 -1
- package/build/_chunks/{chunk-E2LVWSWC.js → chunk-YNMDL3HQ.js} +1 -1
- package/build/_chunks/{chunk-HFHPK2BI.js → chunk-YTH72BBA.js} +1 -1
- package/build/_chunks/{chunk-PFJKJASK.js → chunk-ZOO54PIG.js} +1 -1
- package/build/components/AccountDropdown/index.js +1 -1
- package/build/components/ActionMenu/index.js +1 -1
- package/build/components/ActionsDropdownMenu/index.js +1 -1
- package/build/components/ActiveFilterChip/index.js +1 -1
- package/build/components/ActivityAreaChart/index.js +1 -1
- package/build/components/AmountConversionFilter/index.js +1 -1
- package/build/components/AmountInput/index.js +1 -1
- package/build/components/AmountSlider/index.js +1 -1
- package/build/components/AmountStatusChip/index.js +1 -1
- package/build/components/AnimatedSpinnerIcon/index.js +1 -1
- package/build/components/AppServices/index.js +1 -1
- package/build/components/AppServicesBar/index.js +1 -1
- package/build/components/AppWindowWrapper/index.js +1 -1
- package/build/components/AuthenticationTypeChip/index.js +1 -1
- package/build/components/Autocomplete/index.js +1 -1
- package/build/components/BetaBanner/index.js +1 -1
- package/build/components/BrandLogo/index.js +1 -1
- package/build/components/Button/index.js +1 -1
- package/build/components/Calender/index.js +1 -1
- package/build/components/CardEmptyState/index.js +1 -1
- package/build/components/Chip/index.js +1 -1
- package/build/components/ChipStack/index.js +1 -1
- package/build/components/ColorPicker/index.js +1 -1
- package/build/components/ColumnViews/index.js +1 -1
- package/build/components/ConfirmDialog/index.js +1 -1
- package/build/components/CopyImage/index.js +1 -1
- package/build/components/CountryFilter/index.js +1 -1
- package/build/components/CountryFlag/index.js +1 -1
- package/build/components/CurrencyAmount/index.js +1 -1
- package/build/components/CurrencyFilter/index.js +1 -1
- package/build/components/CurrencySymbol/index.js +1 -1
- package/build/components/CustomBackdrop/index.js +1 -1
- package/build/components/Customer/index.js +1 -1
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/DeviceIcon/index.js +1 -1
- package/build/components/Dialog/index.js +1 -1
- package/build/components/Discount/index.js +1 -1
- package/build/components/DisplayAmount/index.js +1 -1
- package/build/components/Dropdown2/index.js +1 -1
- package/build/components/DropdownButton/index.js +1 -1
- package/build/components/DropdownMenu/index.js +1 -1
- package/build/components/Error/index.js +1 -1
- package/build/components/ErrorToast/index.js +1 -1
- package/build/components/ExpandableSideBar/index.js +1 -1
- package/build/components/FileInputPreview/index.js +1 -1
- package/build/components/FilePreview/index.js +1 -1
- package/build/components/FileUpload/index.js +1 -1
- package/build/components/FileUploader/index.js +1 -1
- package/build/components/FilterDropdown/index.js +1 -1
- package/build/components/Filters/index.js +1 -1
- package/build/components/FlippingCard/index.js +1 -1
- package/build/components/HeatMap/index.js +1 -1
- package/build/components/IOSSwitch/index.js +1 -1
- package/build/components/Icon/index.js +1 -1
- package/build/components/IconWithBadge/index.js +1 -1
- package/build/components/Input/index.js +1 -1
- package/build/components/InputBase/InputBase/InputBase.d.ts +1 -1
- package/build/components/InputBase/InputBase/style.d.ts +1 -1
- package/build/components/InputBase/PhoneInputBase/PhoneInputBase.d.ts +1 -1
- package/build/components/InputBase/PhoneInputBase/style.d.ts +1 -1
- package/build/components/InputBase/SelectBase/SelectBase.d.ts +1 -1
- package/build/components/InputBase/SelectBase/SelectBaseMultiple.d.ts +1 -1
- package/build/components/InputBase/SelectBase/style.d.ts +1 -1
- package/build/components/InputBase/index.js +1 -1
- package/build/components/InputNumber/index.js +1 -1
- package/build/components/Inputs/Input/style.d.ts +1 -1
- package/build/components/Inputs/Input/type.d.ts +1 -1
- package/build/components/Inputs/index.d.ts +1 -2
- package/build/components/Inputs/index.js +1 -1
- package/build/components/JSONViewer/index.js +1 -1
- package/build/components/LanguageDropdown/index.js +1 -1
- package/build/components/LeftPeekRightExpandingChip/index.js +1 -1
- package/build/components/ListColumnFilter/index.js +1 -1
- package/build/components/ListHeader/index.js +1 -1
- package/build/components/ListLayout/index.js +1 -1
- package/build/components/Loader/index.js +1 -1
- package/build/components/MFWidgetLoader/index.js +1 -1
- package/build/components/MaskedText/index.js +1 -1
- package/build/components/Menu/index.js +1 -1
- package/build/components/MenuItem/index.js +1 -1
- package/build/components/MerchantCurrencyDropdown/index.js +1 -1
- package/build/components/MerchantLogo/index.js +1 -1
- package/build/components/MerchantsDropdown/index.js +1 -1
- package/build/components/MultiSelectDropdownButton/index.js +1 -1
- package/build/components/MultiSelectWithSearch/index.js +1 -1
- package/build/components/NestedDropdown/index.js +1 -1
- package/build/components/NoInternet/index.js +1 -1
- package/build/components/OpenFileInNewTab/index.js +1 -1
- package/build/components/PartnersFilter/index.js +1 -1
- package/build/components/PaymentSourceFilter/index.js +1 -1
- package/build/components/PhoneFilter/index.js +1 -1
- package/build/components/ProgressRing/index.js +1 -1
- package/build/components/RFH/Inputs/FormSelect/style.d.ts +1 -1
- package/build/components/RFH/index.js +1 -1
- package/build/components/RadioGroup/index.js +1 -1
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/RatingCount/index.js +1 -1
- package/build/components/ReceiptsViewer/index.js +1 -1
- package/build/components/ReferenceTypeFilter/index.js +1 -1
- package/build/components/ResizableHeightInput/index.js +1 -1
- package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
- package/build/components/SalesChannelFilter/index.js +1 -1
- package/build/components/SearchButton/index.js +1 -1
- package/build/components/SearchListInput/index.js +1 -1
- package/build/components/SelectDropdown/index.js +1 -1
- package/build/components/SelectWithSearch/index.js +1 -1
- package/build/components/Slider/index.js +1 -1
- package/build/components/StatusBar/index.js +1 -1
- package/build/components/StatusButton/index.js +1 -1
- package/build/components/StatusChip/index.js +1 -1
- package/build/components/StatusChipWithCopy/index.js +1 -1
- package/build/components/StatusFilter/index.js +1 -1
- package/build/components/StatusGroupChips/index.js +1 -1
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/StatusLabel/index.js +1 -1
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TableReports/index.js +1 -1
- package/build/components/Timepicker/index.js +1 -1
- package/build/components/ToggleView/index.js +1 -1
- package/build/components/Toolbar/index.js +1 -1
- package/build/components/TooltipChip/TooltipChip.d.ts +1 -1
- package/build/components/TooltipChip/index.js +1 -1
- package/build/components/TreeDropdown/index.js +1 -1
- package/build/components/VAT/index.js +1 -1
- package/build/components/VerificationIcon/index.js +1 -1
- package/build/components/ViewColumnRadioFilter/index.js +1 -1
- package/build/components/VirtualTables/index.js +1 -1
- package/build/components/Widget/index.js +1 -1
- package/build/components/WindowAppIcon/index.js +1 -1
- package/build/components/WindowSideBar/index.js +1 -1
- package/build/components/index.d.ts +2 -2
- package/build/components/index.js +1 -1
- package/build/components/primitives/FieldFeedback/constants.d.ts +2 -2
- package/build/components/primitives/FieldFeedback/index.d.ts +2 -1
- package/build/components/primitives/FieldFeedback/style.d.ts +9 -0
- package/build/components/primitives/index.d.ts +1 -1
- package/build/components/primitives/index.js +1 -1
- package/build/hooks/index.js +1 -1
- package/build/index.js +1 -1
- package/build/utils/fieldFeedback.d.ts +26 -0
- package/build/utils/index.d.ts +1 -0
- package/build/utils/index.js +1 -1
- package/package.json +1 -1
- package/build/_chunks/chunk-CIF3RMYW.js +0 -15
- package/build/_chunks/chunk-CJ2HZARO.js +0 -1
- package/build/_chunks/chunk-D2RM2VO2.js +0 -1
- package/build/_chunks/chunk-FLITA5BR.js +0 -1
- package/build/_chunks/chunk-FPEXFSFO.js +0 -1
- package/build/_chunks/chunk-I3P7QPUA.js +0 -1
- package/build/_chunks/chunk-IWVUS45E.js +0 -1
- package/build/_chunks/chunk-KHM5KW53.js +0 -1
- package/build/_chunks/chunk-LASNRFJB.js +0 -1
- package/build/_chunks/chunk-QQBR2YOE.js +0 -1
- package/build/_chunks/chunk-RAIKBMLV.js +0 -1
- package/build/_chunks/chunk-XFG2PKVJ.js +0 -2
- package/build/_chunks/chunk-YTESL64R.js +0 -2
- package/build/_chunks/chunk-ZFTEDE2C.js +0 -1
- package/build/components/FieldFeedback/FieldFeedback.d.ts +0 -3
- package/build/components/FieldFeedback/index.d.ts +0 -5
- package/build/components/FieldFeedback/index.js +0 -1
- package/build/components/FieldFeedback/style.d.ts +0 -8
- package/build/components/FieldFeedback/type.d.ts +0 -11
- package/build/components/FieldFeedback/utils.d.ts +0 -11
- package/build/components/Tooltip/Tooltip.d.ts +0 -12
- package/build/components/Tooltip/index.d.ts +0 -2
- package/build/components/Tooltip/index.js +0 -1
- package/build/components/Tooltip/styles.d.ts +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {f,b as b$1,g,a as a$2,e,d,c as c$1}from'./chunk-GB5N3AEY.js';import {a as a$4}from'./chunk-CC2T7ZQ2.js';import {a as a$1}from'./chunk-MXXAZH6N.js';import {c}from'./chunk-5ONMPFXY.js';import {a}from'./chunk-ZONDSLTR.js';import {o,j as j$1,k,l,p as p$1}from'./chunk-XMZ5XGUR.js';import {p,z}from'./chunk-RXT7RBES.js';import {a as a$3}from'./chunk-SUBIH236.js';import {b}from'./chunk-UYDM5BBG.js';import {Va,yc,Ha,Ia,bc,f as f$1}from'./chunk-W6W4YZ7G.js';import {s}from'./chunk-N372QRVU.js';import {U,zi,Bi,Ai,yi,Fi,dh,Wg,ch,Sj,Tj,ub,hk,kk,Bk,ik,vb,wa,va,tk,h,Vg}from'./chunk-3YAJNHQC.js';import {useId,useMemo,useCallback}from'react';import {useTranslation}from'react-i18next';import {styled,Box,useTheme}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {motion}from'framer-motion';import {styled as styled$1,useTheme as useTheme$1}from'@mui/material/styles';import _ from'lodash/camelCase';import Qe from'@mui/material/Box';var lt={ORDER:{label:"order",icon:yi,color:"#5E30EB"},SAVED_CARD:{label:"cardAgreement",icon:Ai,color:"#76BB40"},SUBSCRIPTION:{label:"subscription",icon:Bi,color:"#00C7BE"},INSTALLMENT:{label:"installment",icon:zi,color:"#32ADE6"}},dt={SAVED_TOKEN:{label:"savedToken",icon:U,color:"#76BB40"},COUNT:{label:"countBadge",icon:"countBadge",color:"#76BB40"}};styled("span")(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(.5)}));styled("img")(()=>({width:"35px",height:"16px",display:"block"}));styled("span")(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"14.67px",height:"10px"}));styled("img")(()=>({maxWidth:"100%",width:"100%"}));var ct=styled("span")(({theme:t})=>({fontSize:"11px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"2px 0",color:t.palette.text.primary})),mt=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",paddingInline:"8px"}));function Ie({type:t,hasSavedCard:o,totalPaymentsCount:e,isTextShown:r}){let l=yc(useId(),"agreement-icon"),p$1=useTheme(),{t:a$2}=useTranslation(),n=useMemo(()=>[...o?[dt.SAVED_TOKEN]:[],...(e||0)>0?[dt.COUNT]:[],...t&<[t]?[lt[t]]:[]],[o,e,t]),d=c=>r?jsx(a,{"data-testid":"AgreementCell_countBadge",children:jsx(p,{title:a$2("totalPaymentCount",{amount:f$1(e)}),children:jsx(mt,{children:jsxs(ct,{"data-testid":"AgreementCell_totalPaymentsCount",sx:{color:dt.COUNT.color},children:["x",e]})})})},c):jsx(a$4,{value:e,index:c},c),s=n.map((c,g)=>c.label==="countBadge"?d(g):jsx(p,{title:a$2(c.label),children:jsx(a,{children:r?jsx(mt,{children:jsx(ct,{"data-testid":"AgreementCell_agreementType",sx:{color:c.color},children:a$2(c.label)})}):jsx(a$1,{sx:{maxWidth:"16px",maxHeight:"16px",height:"auto",width:"auto"},src:c.icon,alt:"agreement"})},c.color)},c.color)),f=jsx(p,{title:"No agreement",children:jsx(a,{children:r?jsx(mt,{children:jsx(ct,{"data-testid":"AgreementCell_agreementType",sx:{color:p$1.palette.text.secondary},children:"No agreement"})}):jsx(a$1,{sx:{maxWidth:"24px",maxHeight:"24px",height:"auto",width:"auto"},src:Fi,alt:"agreement"})},"no-agreement")},"no-agreement");return jsx(Box,{id:l,"data-testid":"AgreementIcon",sx:{display:"flex",alignItems:"center",gap:"4px"},children:s?.length>0?s:f})}var To=Ie;var Ce=To;styled("span")(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(1)}));styled("img")(()=>({maxWidth:"36px",maxHeight:"24px"}));styled(motion.span,{shouldForwardProp:t=>t!=="sourcesCount"})(({theme:t,sourcesCount:o})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minWidth:`${o*6+36}px `,minHeight:"24px",cursor:"pointer",backgroundColor:t.palette.background.paper,borderRadius:"16px"}));var Ao=styled("span")(({theme:t})=>({fontSize:"11px",padding:"2px 0",color:t.palette.text.primary})),Po=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",paddingInline:"4px",textAlign:"center",width:"100%"}));styled("span")(({theme:t})=>({position:"absolute",left:0,zIndex:6,border:`1px solid ${t.palette.divider}`,borderRadius:"12px",backgroundColor:t.palette.background.paper,width:"36px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center"}));styled(motion.div)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(1)}));var Wo=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px"}));var kt={"3DS":{tooltip:"3DS",icon:Tj,borderColor:"rgba(31, 136, 208, 0.10)"},"Device Biometric":{tooltip:"Biometric",icon:Sj,borderColor:"rgba(31, 136, 208, 0.10)"},"Non-3DS":{tooltip:"Non 3DS",icon:ch,borderColor:"rgba(31, 136, 208, 0.10)"}},vo={FAILED:{tooltip:"Failed",icon:Wg,borderColor:"rgba(255, 61, 0, 0.10)"},REJECTED:{tooltip:"Rejected",icon:dh,borderColor:"rgba(255, 61, 0, 0.10)"}};function be({transactionStatus:t,eci:o,authType:e,isTextShown:r}){let l=yc(useId(),"auth-icons"),p$1=useMemo(()=>{let n=t?vo[t]:null,d=n?.tooltip,s=t==="AUTHENTICATED"?null:n?.icon;return [{tooltip:d,content:r?d:s,type:r?"text":"icon"},...e?[{tooltip:e,content:r?kt[e]?.tooltip:kt[e]?.icon,type:r?"text":"icon"}]:[],{tooltip:"",content:o?`ECI ${o}`:"",type:"text"}]},[t,r,e,o]),a=useMemo(()=>p$1.filter(n=>!!n.content).map((n,d)=>{let s=n.type==="text"?jsx(Po,{"data-testid":"AuthenticationCell_BadgeTextWrapper",children:jsx(Ao,{sx:{border:"none"},"data-testid":"AuthenticationCell_TextLabel","data-source":n.content,children:n.content})}):jsx(a$1,{sx:{width:"16px",height:"16px"},src:n.content,alt:n.tooltip});return jsx(p,{title:n.tooltip,children:s},`${n.tooltip}-${d}`)}),[p$1]);return jsx(Wo,{id:l,"data-testid":"AuthIcons",children:a})}var ko=be;var Se=(t,o,e)=>({start:{x:t*6,transition:{duration:.3,type:"tween",ease:"easeIn"},...t>0&&{opacity:0}},animate:{x:e?t*e:t*39,transition:{duration:.3,type:"tween",ease:"easeOut"},boxShadow:o,...t>0&&{opacity:1}}});var Te=ko;var tt={VOID:{icon:ik},CAPTURED:{icon:hk}};var ut=styled$1(motion.div)(({theme:t,isCapture:o})=>({display:"flex",alignItems:"center",justifyContent:"center",gap:t.spacing(.5),paddingInline:t.spacing(.3),paddingBlock:t.spacing(.3),height:"100%",minWidth:"100%",backgroundColor:o?"#eaf3fb":"#eeeeee",borderRadius:"56px",width:"fit-content",fontSize:"10px",color:t.palette.text.primary,position:"relative",zIndex:10})),ft=styled$1("div")(({theme:t,percentage:o,isCapture:e})=>({border:`0.6px ${[0,100].includes(o)?"solid":"dashed"} ${e?t.palette.info.dark:"#656565"}`,borderRadius:"80px",padding:t.spacing(.316),paddingLeft:t.spacing(.516),fontSize:"7px",fontWeight:t.typography.fontWeightBold,color:e?t.palette.info.dark:"#656565",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(.5)})),xt=styled$1("div")(({percentage:t,isCapture:o,theme:e})=>({background:`conic-gradient(${o?e.palette.info.dark:"#656565"} ${t}%, transparent 0.00%)`,borderRadius:"50%",width:"8.333px",height:"8.333px",border:`0.6px solid ${o?e.palette.info.dark:"#656565"}`})),gt=styled$1("img")({width:"14px",height:"14px"}),j=styled$1(o)({width:"16px",height:"16px"}),N=styled$1("img")({width:"16px",height:"16px"}),Bo=styled$1(Box)({display:"flex",alignItems:"center",justifyContent:"center"});function It(t){return t<5?5:t===100?95:t}function Be({voidPercentage:t,capturePercentage:o,captureCount:e,autoType:r,captureAmount:l,voidAmount:p$1,currency:a,isTextShown:n,remainingAmount:d,isSheetViewShown:s,selectionProps:f={}}){let c=Number(o)+Number(t)===100||d<=0,g=yc(useId(),"capture-auto-icon"),T=useTheme$1(),{t:A}=useTranslation(),P=Ha(d||0),L=useCallback(C=>`Auto ${C} - ${a} ${P.integerAmount}.${P.decimalAmount}`,[a,P.decimalAmount,P.integerAmount]),J=useCallback(C=>{let X=C==="Capture"?l:p$1,{integerAmount:D,decimalAmount:v}=Ia(X,a);return `Partial ${C} - ${a} ${D}.${v}`},[l,p$1,a]),x=o>0?jsx(p,{title:J("Capture"),children:jsxs(ut,{isCapture:true,isFullyUsed:c,whileHover:["animate","fadeIn"],animate:"start",variants:{animate:{boxShadow:T.shadows[4]}},children:[jsx(gt,{src:ub,alt:"captured"}),jsxs(motion.div,{style:{display:"none",alignItems:"center",justifyContent:"center",gap:"4px"},initial:{width:0,opacity:0},transition:{animate:{duration:.5},fadeIn:{duration:.2}},variants:{animate:{width:"auto",display:"flex"},fadeIn:{transition:{delay:.5},opacity:1}},children:[jsxs(ft,{isCapture:true,percentage:o,children:[o,"% ",jsx(xt,{isCapture:true,percentage:It(o)})]}),e>1&&jsxs(z,{compact:true,color:"dark",children:[e,"x"]})]})]})}):r==="CAPTURED"&&!c?jsx(p,{title:L("Capture"),children:jsx(j,{children:jsx(N,{src:tt.CAPTURED?.icon,alt:"auto"})})}):jsx(p,{title:L("Capture"),children:jsx(j,{children:jsx(N,{src:tt.CAPTURED?.icon,alt:"auto"})})}),I=o===100?jsx(p,{title:A("captured"),children:jsx(Bo,{children:jsx(N,{src:kk,alt:"captured"})})}):x,W=useMemo(()=>s&&I?jsx(b,{chipIndex:4,copyText:A("captured"),selectionProps:f,children:A("captured")}):n&&I?jsx(k,{children:A("captured")}):I,[n,I,s,f]);return W&&jsx("div",{id:g,"data-testid":"CaptureAutoIcon",style:{zIndex:12},children:W})}var Do=Be;function Ve({voidPercentage:t,capturePercentage:o,voidCount:e,autoType:r,captureAmount:l$1,voidAmount:p$1,currency:a,isTextShown:n,isSheetViewShown:d,selectionProps:s={},remainingAmount:f}){let c=Number(o)+Number(t)===100||f<=0,g=yc(useId(),"void-auto-icon"),T=useTheme$1(),{t:A}=useTranslation(),P=Ha(f||0),L=useCallback(C=>`Auto ${C} - ${a} ${P.integerAmount}.${P.decimalAmount}`,[a,P.decimalAmount,P.integerAmount]),J=useCallback(C=>{let X=C==="Capture"?l$1:p$1,{integerAmount:D,decimalAmount:v}=Ia(X,a);return `Partial ${C} - ${a} ${D}.${v}`},[l$1,p$1,a]),x=t>0||p$1?jsx(p,{title:J("Void"),children:jsxs(ut,{isFullyUsed:c,whileHover:["animate","fadeIn"],animate:"start",sx:{zIndex:14,background:T.palette.common.white,border:`0.75px solid ${T.palette.grey[600]}1A`},variants:{animate:{boxShadow:T.shadows[4]}},children:[jsx(gt,{src:Bk,alt:"void"}),jsxs(motion.div,{style:{display:"none",alignItems:"center",justifyContent:"center",gap:"4px"},initial:{width:0,opacity:0},transition:{animate:{duration:.5},fadeIn:{duration:.2}},variants:{animate:{width:"auto",display:"flex"},fadeIn:{transition:{delay:.5},opacity:1}},children:[jsxs(ft,{percentage:t,children:[t,"% ",jsx(xt,{percentage:It(t)})]}),e>0&&jsxs(z,{compact:true,color:"neutral",children:[e,"x"]})]})]})}):r==="VOID"&&!c?jsx(p,{title:L("Void"),children:jsx(j,{children:jsx(N,{src:tt.VOID?.icon,alt:"auto"})})}):null,I=t===100?jsx(p,{title:A("void"),children:jsx(j,{children:jsx(N,{src:Bk,alt:"void"})})}):x,W=useMemo(()=>d&&I?jsx(b,{chipIndex:5,copyText:A("void"),selectionProps:s,children:A("void")}):n&&I?jsx(l,{children:A("void")}):I,[n,I,d,s]);return W?jsx("div",{id:g,"data-testid":"VoidAutoIcon",style:{...!d&&{zIndex:11}},children:W}):null}var $o=Ve;var Me=Do;var Fe=({authorizedStatus:t,isTextShown:o,iconStyles:e,tableMode:r,chipIndex:l=0,selectionProps:p$1={}})=>{let{t:a}=useTranslation(),n=useTheme$1(),d=a(_(t));return Va(r)?jsx(b,{copyText:d,chipIndex:l,selectionProps:p$1,children:d}):jsx(p,{title:d,children:o?jsx(j$1,{"data-testid":"StatusCell_AuthorizedStatusLabel",sx:{color:n.palette.info.dark},children:d}):jsx(a$1,{src:f[t],alt:"authorized-icon","data-testid":"StatusCell_AuthorizedStatusIcon",sx:e})})};var _o=styled$1(motion.span)(({theme:t})=>({color:t.palette.common.white,display:"block",fontWeight:t.typography.fontWeightBold,fontSize:"9.78px",borderRadius:"4px",paddingInline:t.spacing(.45)})),Vo=styled$1(motion.span)(()=>({display:"block",width:"0",overflow:"hidden"})),Bt=styled$1("img")(()=>({width:"10px",height:"10px"})),Lt=styled$1(motion.span)(({theme:t})=>({width:"18px",height:"18px",borderRadius:"50%",backgroundColor:t.palette.background.paper,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,position:"relative"})),Dt=styled$1(motion.div,{shouldForwardProp:t=>t!=="isVisible"})(({isVisible:t})=>({display:"flex",justifyContent:"center",alignItems:"center",gap:"4px",width:"0",overflow:"hidden",opacity:0,...!t&&{padding:"0 !important"}})),Mo=styled$1(motion.div)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start"})),zo=styled$1(motion.span)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minHeight:"24px",cursor:"pointer",borderRadius:"16px"})),No={delay:.2,ease:"easeIn",fadeIn:{duration:.2}},Go={animate:{width:"auto",paddingRight:"4px",paddingLeft:"4px"},fadeIn:{opacity:1,transition:{delay:.7}}},Fo={animate:{width:"auto"},fadeIn:{opacity:1,transition:{delay:1}}},Uo={animate:{width:"auto",paddingRight:"8px",paddingLeft:"4px"}},Et={fadeIn:{duration:.3},animate:{duration:.1}},Oo={fadeIn:{opacity:1}},jo=styled$1(j$1)(()=>({width:"88px",height:"100%"})),$t=styled$1(Box)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(.25),height:"100%"}));function qe({chargeStatus:t,gatewayTooltip:o$1,acquirerTooltip:e,chargeTooltip:r,errorCode:l,isTextShown:p$2,gatewayCode:a,acquirerCode:n,unCapturedStyles:d,iconStyles:s$1,iconWrapperStyles:f,gatewayIconWrapperStyles:c,gatewayContainerStyles:g$1,gateWayIconStyles:T,showBadge:A=true,isSheetViewShown:P=false,selectionProps:L={},chipIndex:J=0}){let x=t?b$1[t]:null,I=t?g[t]:null,W=useTheme$1(),{t:C}=useTranslation(),X=yc(useId(),"charge-status-icon"),D=r&&jsx(Fragment,{children:jsx("div",{children:r})}),v=e&&jsxs(Fragment,{children:[jsx("div",{children:"Acquirer"}),jsx("div",{children:e})]}),Y=o$1&&jsxs(Fragment,{children:[jsx("div",{children:"Gateway"}),jsx("div",{children:o$1})]}),Ft=t&&a$2[t]&&jsx("div",{"data-testid":"ChargeStatusIcon_ChargeIcon",style:{display:"flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px",borderRadius:x?"50%":"",...f},children:jsx(p$1,{src:a$2[t],alt:"charge-icon","data-testid":"ChargeStatusIcon_StatusIcon",style:{borderRadius:x?"50%":"",width:"16px",height:"16px",...s$1}})});return P?jsxs($t,{children:[jsxs(b,{copyText:C(_(t)),chipIndex:J,selectionProps:L,children:[C(_(t))," ",l]}),x&&jsxs(Fragment,{children:[a&&jsxs(b,{copyText:"Gateway",chipIndex:1,selectionProps:L,children:["Gateway ",a]}),n&&jsxs(b,{copyText:"Acquirer",chipIndex:2,selectionProps:L,children:["Acquirer ",n]})]})]}):p$2?jsxs($t,{children:[jsx(p,{title:D,children:jsxs(jo,{"data-testid":"ChargeStatusIcon_isTextShown","data-status":_(t),sx:{background:x?.background||I?.background||"transparent",color:x?.color||I?.color||W.palette.info.dark,borderColor:`${x?.color||I?.color||W.palette.info.dark}1A`},children:[C(_(t))," ",l]})}),x&&jsxs(Fragment,{children:[a&&jsx(p,{title:Y,children:jsxs(j$1,{"data-testid":"ChargeStatusIcon_isTextShown","data-status":_(t),sx:{background:x?.background||I?.background||"transparent",color:x?.color||I?.color||W.palette.info.dark},children:["Gateway ",a]})}),n&&jsx(p,{title:v,children:jsxs(j$1,{"data-testid":"ChargeStatusIcon_isTextShown","data-status":_(t),sx:{background:x?.background||I?.background||"transparent",color:x?.color||I?.color||W.palette.info.dark},children:["Acquirer ",n]})})]})]}):jsx(o,{id:X,"data-testid":"ChargeStatusIcon_StatusIconWrapper",style:{...f},children:s?.includes(t||"")&&(D||v||Y)?jsxs(zo,{"data-testid":"ChargeStatusIcon_UnCapturedContainer",whileHover:["animate","fadeIn"],style:{left:"0",...A&&{paddingInline:"12px",border:"1px solid #F2F2F2",borderRadius:"12px",backgroundColor:"#fff"},...d},children:[jsx(Mo,{"data-testid":"ChargeStatusIcon_UnCapturedBadge",sx:{borderRadius:"56px"},initial:{background:"transparent"},variants:{animate:{background:x?.background}},children:jsx(p,{title:D??C(_(t)),children:jsxs(Fragment,{children:[Ft,jsx(Vo,{"data-testid":"ChargeStatusIcon_ErrorCodeWrapper",transition:{animate:{duration:.05}},variants:Uo,style:{...l&&{padding:"0 !important"}},children:jsx(_o,{"data-testid":"ChargeStatusIcon_ErrorCodeLabel",sx:{background:x?.color},transition:No,variants:Oo,initial:{opacity:0},children:l})})]})})}),jsx(Dt,{"data-testid":"ChargeStatusIcon_GatewaysContainer",transition:Et,variants:Go,style:g$1,isVisible:!!Y,children:Y&&jsx(p,{title:Y,children:jsx(Lt,{"data-testid":"ChargeStatusIcon_GatewayIconWrapper",style:{background:x?.background,...c},children:jsx(Bt,{src:x?.gatewayIcon,alt:"gateway-icon","data-testid":"ChargeStatusIcon_GatewayIcon",style:T})})})}),jsx(Dt,{"data-testid":"ChargeStatusIcon_GatewaysContainer",transition:Et,variants:Fo,style:g$1,isVisible:!!v,children:v&&jsx(p,{title:v,children:jsx(Lt,{"data-testid":"ChargeStatusIcon_AcquirerIconWrapper",style:{background:x?.background,...c},children:jsx(Bt,{src:x?.acquirerIcon,alt:"acquirer-icon","data-testid":"ChargeStatusIcon_AcquirerIcon",style:T})})})})]}):jsx(p,{title:D??C(_(t)),children:jsx(o,{children:Ft})})})}var Xe=()=>{let{t}=useTranslation(),o=yc(useId(),"customer-initiated-icon");return jsx(p,{title:t("merchantInitiated"),children:jsx("img",{id:o,"data-testid":"merchantInitiatedIcon",src:vb,alt:"merchant",style:{width:"16px",height:"16px"}})})};var Ye={G:"Global",R:"Regional",L:"Local"},ot=({geographyVariant:t,countryCode:o,isTextShown:e})=>{let r=t?Ye[t]:void 0,l=r||o?`${r||""} ${r&&o?"-":""} ${o?`Country - ${o}`:""}`:void 0;return e||!o?null:jsx(p,{title:l,children:jsx(a$3,{countryCode:o})})};var tr=({geographyVariant:t,isTextShown:o,deviceCountry:e,deviceType:r,tableMode:l})=>{let p=yc(useId(),"device-icon-chip");return jsxs(Qe,{id:p,"data-testid":"DeviceIconChip",sx:{display:"flex",gap:"8px",alignItems:"center",...Va(l)&&{height:"18px"}},children:[jsx(ot,{geographyVariant:t,isTextShown:o,countryCode:e}),jsx(c,{type:r,isTextShown:o,tableMode:l})]})};var rr=({isDisputeOpen:t,iconStyles:o})=>{let e=yc(useId(),"dispute-icon");return jsx(p$1,{id:e,"data-testid":"StatusCell_DisputeStatusIcon",sx:{width:"13.5px",height:"13.5px"},src:t?wa:va,alt:"dispute-icon",style:o})};var Xo=styled$1(Qe,{shouldForwardProp:t=>t!=="tableMode"})(({theme:t,tableMode:o})=>({display:"flex",gap:t.spacing(.5),...Va(o)&&{height:"18px"},alignItems:"center"})),Yo=styled$1("span")(({theme:t})=>({fontSize:"10px",fontWeight:500,color:t.palette.text.primary}));function Vt({countryCode:t,isTextShown:o,cardNumber:e,bankName:r,tableMode:l}){let p$1=yc(useId(),"issuer-icon"),a=e?.slice(0,4),n=e?.slice(-4);return jsxs(Xo,{id:p$1,"data-testid":"IssuerIcon",tableMode:l,children:[t&&jsx(ot,{countryCode:t,isTextShown:o}),jsx(p,{title:`${r?`Issuer - ${r}`:""}`,children:jsx(Yo,{children:`${a||""} ${n||""}`})})]})}var sr=Vt;styled(motion.div)(({theme:t,background:o})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(.5),paddingInline:t.spacing(.75),paddingBlock:t.spacing(.5),backgroundColor:o,height:"24px",width:"fit-content",borderRadius:"24px",fontSize:"10px",color:t.palette.text.primary}));var Ra=styled("img")(()=>({height:"13.125px",width:"12px"})),bt=styled("div")(()=>({fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"center",width:"65px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"4.5px 8px",borderRadius:"24px"})),ka=styled("div")(({theme:t})=>({color:t.palette.common.white,background:t.palette.error.main,fontSize:"0.6rem",fontWeight:600,borderRadius:"16px",padding:"2px 8px",display:"flex",alignItems:"center",justifyContent:"center"})),Ba=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px"}));var ur=({payoutStatus:t="PENDING",isTextShown:o,payoutTooltip:e$1,iconStyles:r,isSheetViewShown:l,chipIndex:p$2=0,selectionProps:a={}})=>{let{t:n}=useTranslation(),d=yc(useId(),"payout-icon"),s=n(_(t)),f=e$1||s;return l?jsx(b,{chipIndex:p$2,copyText:s,selectionProps:a,children:s}):jsx(p,{title:f,children:o?jsx(bt,{id:d,"data-testid":"StatusCell_PayoutStatusLabel",children:s}):jsx(p$1,{id:d,src:e[t],alt:"settled-icon","data-testid":"StatusCell_PayoutStatusIcon",style:r})})};var Qo=styled$1(motion.img)(()=>({width:"14px",height:"14px"})),Zo=styled$1(motion.span)(({theme:t})=>({color:t.palette.common.white,borderRadius:t.spacing(.5),height:"12px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"9.782px",fontWeight:600,backgroundColor:t.palette.secondary.main})),Mt=styled$1(motion.div)(({theme:t})=>({height:"16px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:`${t.palette.secondary.main}1A`,paddingInline:t.spacing(.5),borderRadius:"56px"})),qa=(t,o,e)=>({start:{x:t*6,transition:{duration:.3,type:"tween",ease:"easeIn"}},animate:{x:e?t*e:t*49,transition:{duration:.3,type:"tween",ease:"easeOut"},boxShadow:o}}),Ka=styled$1(motion.span)(({isTextShown:t,theme:o})=>({border:`1px solid ${o.palette.divider}`,borderRadius:"12px",backgroundColor:o.palette.background.paper,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",minWidth:t?"auto":"36px",...t&&{border:"none"}})),Ja=styled$1(motion.div,{shouldForwardProp:t=>t!=="order"})(({order:t=0})=>({display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:0,left:0,zIndex:t+6,width:"fit-content",height:"24px",cursor:"pointer",borderRadius:"16px","&:hover":{zIndex:200}})),Xa=styled$1(motion.div,{shouldForwardProp:t=>t!=="statusesCount"})(({statusesCount:t=1})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"relative",minWidth:`${t*6+36}px`,height:"24px",cursor:"pointer",borderRadius:"16px",overflow:"visible"})),Ya=styled$1("div")(()=>({display:"flex",gap:"4px",justifyContent:"flex-start",alignItems:"center",position:"relative",width:"100%",overflow:"visible"}));var hr=({isTextShown:t,refundStatus:o="PENDING",refundTooltip:e="",refundCount:r,iconStyles:l,isSheetViewShown:p$2,chipIndex:a=0,selectionProps:n={}})=>{let{t:d$1}=useTranslation(),s=useTheme$1(),f=yc(useId(),"refund-icon"),c=(r||0)>1,g=d$1(_(o));if(p$2)return jsxs(b,{chipIndex:a,selectionProps:n,copyText:g,children:[g," ",c?`${r}x`:null]});let T=jsxs(Zo,{"data-testid":"StatusCell_RefundsCountBadge",initial:{width:0,opacity:0,padding:"0px"},transition:{animate:{duration:.5},fadeIn:{duration:.2}},variants:{animate:{width:"auto",display:"flex",padding:"1.285px 2.569px"},fadeIn:{transition:{delay:.5},opacity:1}},children:[r,"x"]});return t?jsx(p,{title:jsx("div",{children:jsx("div",{children:e})}),children:jsx(bt,{id:f,"data-testid":"StatusCell_RefundStatusLabel",sx:{color:d[o].color,backgroundColor:d[o].backgroundColor,width:"90px"},children:jsxs(Mt,{whileInView:c?["animate","fadeIn"]:void 0,variants:{animate:{boxShadow:s.shadows[4],gap:s.spacing(.5)}},children:[g," ",c?T:null]})})}):jsx(p,{title:jsx("div",{children:jsx("div",{children:e})}),children:c?jsxs(Mt,{id:f,whileHover:["animate","fadeIn"],animate:"start",variants:{animate:{boxShadow:s.shadows[4],gap:s.spacing(.5)}},children:[jsx(Qo,{src:tk,alt:"multi-refunded-icon","data-testid":"StatusCell_MultiRefundIcon"}),T]}):jsx(p$1,{id:f,src:c$1[o],alt:"refunded-icon","data-testid":"StatusCell_RefundStatusIcon",style:l})})},te=hr;var Cr=te;var yr={american_express:"AMEX",debit:"card",credit:"card",unionpay:"UnionPay",jaywan:"JAYWAN"},B=t=>yr[t?.toLowerCase()||""]||t;styled("span")(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(1)}));var oe=styled("img")(()=>({maxWidth:"24px",maxHeight:"16px"}));styled(motion.span,{shouldForwardProp:t=>t!=="sourcesCount"})(({theme:t,sourcesCount:o})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minWidth:`${o*6+36}px `,minHeight:"24px",cursor:"pointer",backgroundColor:t.palette.background.paper,borderRadius:"16px"}));var ee=styled("span")(({theme:t})=>({fontSize:"11px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"2px 0",color:t.palette.text.primary})),re=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",paddingInline:"8px",textAlign:"center",width:"100%"}));styled("span")(({theme:t})=>({position:"absolute",left:0,zIndex:6,border:`1px solid ${t.palette.divider}`,borderRadius:"12px",backgroundColor:t.palette.background.paper,width:"36px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center"}));var ne=styled("span")(({theme:t})=>({fontSize:"10px",fontWeight:500,color:t.palette.text.primary}));function At({source:t,isTextShown:o,title:e,width:r,height:l,imgSx:p$1}){let{t:a}=useTranslation(),n=h(t);return jsx(p,{title:e,children:o?jsx(re,{"data-testid":"SourceCell_BadgeTextWrapper",children:jsx(ee,{"data-testid":"SourceCell_TextLabel","data-source":t,children:a(_(t))})}):jsx(oe,{src:n,alt:t,width:r,height:l,onError:d=>{d.currentTarget.src=h("card");},sx:p$1})})}function vr({payment:t,card:o,isTextShown:e,firstIcon:r}){let l=yc(useId(),"source-icons"),{t:p}=useTranslation(),a=useCallback(()=>{let s=[],f=bc(t),c=t?.method,g=t?.scheme;return B(c)?.toLowerCase()===B(g)?.toLowerCase()?s.push(B(c),B(f)):s.push(B(c),B(f),B(g)),s},[t]),n=useMemo(()=>jsx(At,{source:r,isTextShown:e,title:p(_(r))},r),[r,e,p]),d=useMemo(()=>a()?.filter(s=>!!s&&s!==r)?.map((s,f,c)=>{let g=t?.wallet===p("sv_wallet")?p("storedValueWallet"):p("passThruWallet"),T=f===c.length-1&&o?.last_four?`${p(_(s))} - ${o?.last_four}`:p(_(s));return jsx(At,{source:s,isTextShown:e,title:f===0&&s==="Wallet"?g:T},`${s}-${f}`)}),[a,t,o,e,p,r]);return jsxs(Box,{id:l,"data-testid":"SourceIcons",display:"flex",alignItems:"center",gap:.5,children:[r&&n,d,o?.last_four&&jsxs(ne,{children:["\xB7\xB7\xB7 ",o?.last_four]})]})}var rt={PROCESSED:Vg,FAILED:""};var se=styled("span")(({theme:t})=>({fontSize:"11px",padding:"2px 0",color:t.palette.text.primary})),le=styled("img")(()=>({width:"16px",height:"16px"})),de=styled("span")(()=>({width:"24px",height:"24px",borderRadius:"50%",backgroundColor:"transparent",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}));function ce({status:t,isTextShown:o,isSheetViewShown:e,chipIndex:r=0,selectionProps:l={}}){let p$1=useTheme(),{t:a}=useTranslation(),n=yc(useId(),"destination-icon"),d=a(_(t));return e&&rt[t]?jsx(b,{copyText:d,chipIndex:r,selectionProps:l,children:d}):o&&rt[t]?jsx(se,{id:n,"data-testid":"ChargeStatusIcon_isTextShown","data-status":_(t),sx:{background:"#1F88D00D",color:t==="PROCESSED"?p$1.palette.info.dark:p$1.palette.common.black},children:d}):jsx(de,{id:n,"data-testid":"DestinationIcon",className:"destination-status",children:t&&rt[t]&&jsx(p,{title:a(_(t)),children:jsx(le,{src:rt[t],alt:"destination-icon"})})})}export{qa as a,Ka as b,Ja as c,Xa as d,Ya as e,Ce as f,Se as g,Te as h,$o as i,Me as j,Fe as k,qe as l,Xe as m,ot as n,tr as o,rr as p,sr as q,Ra as r,ka as s,Ba as t,ur as u,Cr as v,B as w,At as x,vr as y,ce as z};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {yc}from'./chunk-
|
|
1
|
+
import {yc}from'./chunk-W6W4YZ7G.js';import {useId}from'react';import e from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var n=styled(e)(({theme:t})=>({fontSize:"10px",padding:"4px 8px 4px 4px",color:t.palette.common.white,borderRadius:"45px",fontWeight:500,background:"var(--Garident---Checkout, linear-gradient(254deg, #101010 0.51%, #343740 49.67%, #101010 100%))",boxShadow:"0px 14px 4px 0px rgba(0, 0, 0, 0.00), 0px 9px 4px 0px rgba(0, 0, 0, 0.01), 0px 5px 3px 0px rgba(0, 0, 0, 0.05), 0px 2px 2px 0px rgba(0, 0, 0, 0.09), 0px 1px 1px 0px rgba(0, 0, 0, 0.10)",display:"flex",gap:"6px",alignItems:"center",height:30})),i=styled(e)(()=>({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",top:"15px"})),a=styled(e)(({theme:t})=>({borderRadius:"13px",background:t.palette.common.white,boxShadow:"0px 14px 4px 0px rgba(0, 0, 0, 0.00), 0px 9px 4px 0px rgba(0, 0, 0, 0.01), 0px 5px 3px 0px rgba(0, 0, 0, 0.05), 0px 2px 2px 0px rgba(0, 0, 0, 0.09), 0px 1px 1px 0px rgba(0, 0, 0, 0.10)",width:22,height:22,display:"flex",alignItems:"center",justifyContent:"center"}));function o({title:t}){let g=yc(useId(),"no-internet");return jsx(i,{id:g,"data-testid":"NoInternet",children:jsxs(n,{children:[jsx(a,{children:jsxs("svg",{width:"15",height:"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("g",{"clip-path":"url(#clip0_4838_500791)",children:jsx("path",{d:"M12.6359 1.34444L12.6359 1.34444L1.84425 12.1361L1.84324 12.1371L1.84323 12.1371C1.80796 12.171 1.7798 12.2115 1.76041 12.2564C1.74101 12.3013 1.73076 12.3496 1.73026 12.3985C1.72977 12.4474 1.73903 12.4959 1.75751 12.5411C1.77599 12.5864 1.80332 12.6275 1.8379 12.6621C1.87247 12.6967 1.9136 12.724 1.95886 12.7425C2.00413 12.761 2.05263 12.7702 2.10153 12.7697C2.15042 12.7693 2.19872 12.759 2.2436 12.7396C2.28849 12.7202 2.32905 12.692 2.36291 12.6568L2.3639 12.6558L2.36391 12.6558L6.87107 8.1486L6.88649 8.13318L6.90794 8.12925C7.83177 7.95978 8.82148 8.22837 9.53582 8.94271C9.60683 9.01372 9.70218 9.05038 9.79508 9.05038C9.88808 9.05038 9.98396 9.01366 10.0549 8.94271L10.0553 8.94229C10.1993 8.80078 10.1999 8.5686 10.0549 8.42362C9.42924 7.79795 8.63373 7.44893 7.81425 7.36712L7.66723 7.35244L7.7717 7.24797L9.21295 5.80672L9.24408 5.77559L9.28562 5.79017C10.0624 6.06276 10.7767 6.50589 11.3758 7.10498C11.4471 7.17626 11.5402 7.21322 11.6357 7.21322C11.7275 7.21322 11.8209 7.17675 11.8957 7.10478C12.0374 6.95995 12.0372 6.72746 11.8952 6.58281C11.3154 6.00304 10.6422 5.55399 9.91133 5.24449L9.81569 5.20398L9.88914 5.13053L11.1806 3.83911L11.217 3.80262L11.2627 3.82668C11.9646 4.19662 12.6233 4.67474 13.2136 5.26497C13.2845 5.33592 13.3804 5.37265 13.4734 5.37265C13.569 5.37265 13.6615 5.33616 13.7326 5.26497C13.8776 5.11999 13.877 4.88724 13.7331 4.74574L13.7325 4.74522C13.1559 4.16612 12.5156 3.69094 11.8371 3.30814L11.7568 3.26285L11.822 3.19767L13.1556 1.8641L13.1562 1.86344C13.2093 1.81181 13.2454 1.74537 13.2601 1.67282C13.2747 1.60028 13.2671 1.525 13.2383 1.45685C13.2094 1.3887 13.1606 1.33084 13.0984 1.29086C13.0361 1.25088 12.9632 1.23062 12.8892 1.23275L12.6359 1.34444ZM12.6359 1.34444L12.6366 1.34377M12.6359 1.34444L12.6366 1.34377M12.6366 1.34377C12.7032 1.27535 12.7938 1.23554 12.8892 1.23275L12.6366 1.34377ZM1.15567 4.74574L1.1561 4.74532C2.82333 3.07809 4.99232 2.21114 7.18124 2.14706C8.13805 2.11905 9.09854 2.24422 10.0224 2.52326L9.42386 3.12232C6.7366 2.45348 3.77167 3.16849 1.67518 5.26497L1.67477 5.2654C1.53326 5.40934 1.30108 5.40996 1.1561 5.26497C1.01112 5.11999 1.01173 4.88724 1.15567 4.74574ZM2.99668 6.58304C4.18518 5.39454 5.76276 4.74246 7.44465 4.74246C7.56138 4.74246 7.67793 4.74531 7.7943 4.7519L7.05489 5.49131C5.71805 5.58262 4.47253 6.1454 3.51594 7.10481C3.37084 7.24718 3.13819 7.2465 2.99668 7.10498C2.85193 6.96023 2.85193 6.72779 2.99668 6.58304ZM6.72445 10.308C6.93012 10.1023 7.20906 9.98677 7.49991 9.98677C7.79077 9.98677 8.06971 10.1023 8.27537 10.308C8.48104 10.5136 8.59658 10.7926 8.59658 11.0834C8.59658 11.3743 8.48104 11.6532 8.27537 11.8589C8.06971 12.0646 7.79077 12.1801 7.49991 12.1801C7.20906 12.1801 6.93012 12.0646 6.72445 11.8589C6.51879 11.6532 6.40325 11.3743 6.40325 11.0834C6.40325 10.7926 6.51879 10.5136 6.72445 10.308Z",fill:"#20232B",stroke:"#20232B",strokeWidth:"0.14"})}),jsx("defs",{children:jsx("clipPath",{id:"clip0_4838_500791",children:jsx("rect",{width:"14",height:"14",fill:"white",transform:"translate(0.5)"})})})]})}),jsx(e,{children:t})]})})}var W=o;
|
|
2
2
|
export{W as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-YL2COX6W.js';import {a as a$2}from'./chunk-KUOKFWXS.js';import {a}from'./chunk-GNY2VGGW.js';import {yc,Ka}from'./chunk-W6W4YZ7G.js';import {el,fl}from'./chunk-3YAJNHQC.js';import {useId,useState,useEffect}from'react';import te 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 L=styled(m)(()=>({width:157,padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"16px"})),B=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}})),d=styled(m)(()=>({textAlign:"center",cursor:"pointer",userSelect:"none"})),S=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)}})),z=styled(m)(()=>({display:"flex",flexDirection:"column",gap:"4px"})),$=styled(m)(()=>({display:"flex",alignItems:"center",justifyContent:"center",gap:"4px"})),k=styled(m)(()=>({display:"flex",flexDirection:"column",justifyContent:"center",gap:"6px"})),h=styled(a$1)(()=>({".MuiInput-input":{fontWeight:"500",fontSize:"11px"},height:32,width:32}));var _=e=>e===0?12:e<=12?e:e-12,ue=e=>e>=12?"PM":"AM",j=()=>new Date().getMinutes(),F=()=>{let e=new Date().getHours();return _(e)},ce=(e,o)=>o==="AM"&&e===12?0:o==="PM"&&e!==12?e+12:e;var N=["AM","PM"],f=12,g=59;function R({onChange:e,defaultTime:o,enableRealTimeChange:p,size:O="large"}){let U=yc(useId(),"time-picker"),[A,y]=useState(null),[a$1,q]=useState(o?.period??(new Date().getHours()>=12?"PM":"AM")),[s,w]=useState(o?.hour??F()),[u,C]=useState(o?.minute??j()),H=!!A;useEffect(()=>{p&&e?.({hour:s,minute:u,period:a$1});},[s,u,a$1,p]);let G=r=>{y(r.currentTarget);},J=()=>{y(null),e?.({hour:s,minute:u,period:a$1});},K=r=>{q(r);},i=r=>r<10?`0${r}`:r.toString(),Q=r=>{let c=Ka(i(Number(r.target.value)));if(c>12){r.preventDefault();return}w(c);},I=()=>{w(r=>r===12?1:r+1);},v=()=>{w(r=>r===1?12:r-1);},V=r=>{let c=Ka(i(Number(r.target.value)));if(c>59){r.preventDefault();return}C(c);},X=()=>{C(r=>r===59?(I(),0):r+1);},Y=()=>{C(r=>r===0?(v(),59):r-1);};return jsx(te,{onClickAway:J,children:jsxs(m,{id:U,"data-testid":"TimePicker",children:[jsx(B,{size:O,open:H,onClick:G,children:`${i(s)}:${i(u)}${a$1.toLowerCase()}`}),jsx(a$2,{open:H,anchorEl:A,placement:"top-start",sx:{marginTop:"8px",marginBottom:"8px"},children:jsxs(L,{children:[jsxs($,{children:[jsxs(k,{children:[jsx(d,{onClick:I,children:jsx("img",{src:el,alt:"arrow"})}),jsx(h,{value:i(s),onChange:Q}),jsx(d,{onClick:v,children:jsx("img",{src:fl,alt:"arrow"})})]}),jsx(a,{children:":"}),jsxs(k,{children:[jsx(d,{onClick:X,children:jsx("img",{src:el,alt:"arrow"})}),jsx(h,{value:i(u),onChange:V}),jsx(d,{onClick:Y,children:jsx("img",{src:fl,alt:"arrow"})})]})]}),jsx(z,{children:N.map(r=>jsx(S,{onClick:()=>{K(r);},selected:a$1===r,children:r},r))})]})})]})})}var ve=R;export{_ as a,ue as b,j as c,F as d,ce as e,N as f,f as g,g as h,R as i,ve as j};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {yc}from'./chunk-
|
|
1
|
+
import {yc}from'./chunk-W6W4YZ7G.js';import {Qj,j,m as m$1}from'./chunk-3YAJNHQC.js';import {memo,useId}from'react';import d from'@mui/material/Box';import {jsx}from'react/jsx-runtime';function g({countryCode:o,currencyCode:t,...n}){let l=yc(useId(),"country-flag");return jsx(d,{...n,id:l,"data-testid":"CountryFlag",component:"img",src:o&&j(o)||t&&m$1(t)||Qj,width:n.width||16,alt:o??t??"flag",loading:"lazy",onError:u=>{u.currentTarget.src=Qj;}})}g.displayName="CountryFlag";var m=memo(g);var h=m;export{h as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-PHLJSQ63.js';import {memo,useCallback,Fragment as Fragment$1,createElement}from'react';import {useTranslation}from'react-i18next';import {jsx,Fragment}from'react/jsx-runtime';function B({isActiveFilterVisible:f,availableStatuses:v,status:e,onStatusChange:i,buttonSx:l}){let{t:I}=useTranslation(),S=f??false,b$1=useCallback(s=>s===e&&!S?"active":"inActive",[e,S]),u=useCallback(s=>{i?.(s);},[i]);return jsx(Fragment,{children:v?.map(({render:s,...a},d)=>{if(s)return jsx(Fragment$1,{children:s({status:e,onChange:u},{...a,index:d})},`custom-status-slot-${d}`);if(!Array.isArray(a.status))return createElement(b,{...a,key:`status-button-array-${a.status}`,variant:b$1(a.status),onClick:()=>{Array.isArray(a.status)||u(a.status);},buttonSx:l});if(!a.status)return null;let o=a.status.filter(Boolean).map(t=>typeof t=="string"?{value:t}:t)||[],c=!!e&&o.some(t=>t?.value===e);return jsx("div",{children:jsx(b,{...a,selectedStatus:c?e:void 0,variant:c?"active":"inActive",onButtonBodyClick:t=>u(t),dropdownOptions:o.map(t=>({label:t?.label||I(t?.value||""),status:t?.value,icon:t.icon,onClick:()=>u(t.value)})),buttonSx:l})},o[0]?.value)})})}var p=memo(B);var M=p;export{M as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {yc}from'./chunk-
|
|
1
|
+
import {yc}from'./chunk-W6W4YZ7G.js';import {memo,useId}from'react';import f from'@mui/material/Box';import a from'@mui/material/Input';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var p=styled(a,{shouldForwardProp:o=>o!=="isError"})(({theme:o})=>({padding:"8px",border:`1px solid ${o.palette.divider}`,borderRadius:"4px",height:32,color:o.palette.text.primary,fontSize:"11px",outline:0,maxWidth:"100%",display:"flex",flexGrow:1,"::placeholder":{color:o.palette.grey[700],fontWeight:400}}));function i({isError:o,...t}){let l=yc(useId(),"input");return jsx(f,{id:l,"data-testid":"Input",sx:{flexGrow:1},onClick:d=>{d.stopPropagation();},children:jsx(p,{...t,placeholder:t.placeholder,isError:o,disableUnderline:true})})}i.displayName="Input";var n=memo(i);var S=n;export{S as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {yc}from'./chunk-
|
|
1
|
+
import {yc}from'./chunk-W6W4YZ7G.js';import {useId,useMemo,useEffect}from'react';import {styled}from'@mui/material';import {jsx}from'react/jsx-runtime';var t=styled("span")(({theme:e})=>({fontWeight:500,color:e.palette.info.dark,cursor:"pointer",fontSize:"9px",textDecoration:"underline"}));var i=window.URL||window.webkitURL,b=({data:e,isLoading:r,isError:l})=>{let p=yc(useId(),"open-file-in-new-tab"),o=useMemo(()=>e?i.createObjectURL(e):"",[e]);useEffect(()=>()=>{o&&i.revokeObjectURL(o);},[o]);let a=()=>{o&&window.open(o,"_blank");};return r||l?null:jsx(t,{id:p,"data-testid":"OpenFileInNewTab",onClick:a,children:"View"})},c=b;export{c as a};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {p}from'./chunk-RXT7RBES.js';import {yc}from'./chunk-W6W4YZ7G.js';import {Ci}from'./chunk-3YAJNHQC.js';import {useState,useId}from'react';import T 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 h=styled(Box)(()=>({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:12,border:"1.03px solid"})),c=styled(Box)`
|
|
2
2
|
position: absolute;
|
|
3
|
-
`;function d({mainIcon:B,overlayIcon:p,mainIconAlt:u="main icon",mainIconSize:t=20,containerSize:a
|
|
3
|
+
`;function d({mainIcon:B,overlayIcon:p$1,mainIconAlt:u="main icon",mainIconSize:t=20,containerSize:a=24,overlayPosition:b={top:10,left:17},borderColor:w="#F2F2F2",label:y="",sx:I,onError:W,containerSx:C}){let[e,s]=useState(true),F=yc(useId(),"icon-with-badge");return jsx(p,{title:y,children:jsx(i,{id:F,"data-testid":"IconWithBadge",display:"flex",alignItems:"center",gap:1,sx:{position:"relative",...C},children:jsxs(h,{style:{borderColor:w,width:a,height:a},children:[t&&e&&jsx(i,{width:t,height:t,children:e&&jsx(T,{variant:"circular",width:`${t}px`,height:`${t}px`})}),jsxs(Fragment,{children:[p$1&&jsx(c,{sx:b,children:p$1}),jsx(i,{width:t,height:t,component:"img",src:B||Ci,alt:u,sx:{borderRadius:"50%",objectFit:"scale-down",opacity:e?0:1,...I},onError:n=>{s(false),n.currentTarget.src=Ci,W?.(n);},onLoad:()=>{s(false);}})]})]})})})}var M=d;export{M as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {yc}from'./chunk-
|
|
1
|
+
import {yc}from'./chunk-W6W4YZ7G.js';import {memo,useId}from'react';import {styled,Switch}from'@mui/material';import {jsx}from'react/jsx-runtime';var o=styled(Switch)(({theme:i})=>({width:32.903,height:20,borderRadius:"13px",padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(13px)",color:i.palette.common.white,"& + .MuiSwitch-track":{backgroundColor:i.palette.mode==="dark"?"#2ECA45":"#34C759",opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid",borderColor:i.palette.common.white},"&.Mui-disabled .MuiSwitch-thumb":{color:i.palette.mode==="light"?i.palette.grey[100]:i.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:i.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:16,height:16,filter:"drop-shadow(0px 1.9354851245880127px 0.6451616883277893px rgba(0, 0, 0, 0.06)) drop-shadow(0px 1.9354851245880127px 5.1612935066223145px rgba(0, 0, 0, 0.15))"},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:i.palette.mode==="light"?"#E9E9EA":"#39393D",opacity:1,transition:i.transitions.create(["background-color"],{duration:500})}}));function r(i){let d=yc(useId(),"ios-switch");return jsx(o,{id:d,"data-testid":"IOSSwitch",focusVisibleClassName:".Mui-focusVisible",disableRipple:true,...i})}r.displayName="IOSSwitch";var a=memo(r);var f=a;export{f as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {yc}from'./chunk-
|
|
1
|
+
import {yc}from'./chunk-W6W4YZ7G.js';import {useId}from'react';import a from'@mui/material/Box';import {motion}from'framer-motion';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var e=styled(motion.div)(()=>({width:"100%",height:"100%",cursor:"pointer",".card-front > div, .card-back > div, .card-container":{width:"inherit",height:"inherit"},".card-container":{perspective:"1000px"},".card":{width:"100%",height:"100%",position:"relative",transformStyle:"preserve-3d"},".card-front, .card-back":{position:"absolute",backfaceVisibility:"hidden",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},".card-back":{transform:"rotateY(180deg)"}}));function t({frontCard:d,backCard:n,isFlipped:p,isHovered:c}){let m=yc(useId(),"flipping-card");return jsx(e,{id:m,"data-testid":"FlippingCard",children:jsx(motion.div,{className:"card-container",children:jsxs(motion.div,{className:"card",animate:{rotateY:p?180:c?20:0},transition:{duration:.3},children:[jsx(motion.div,{className:"card-front",children:jsx(a,{children:d})}),jsx(motion.div,{className:"card-back",children:jsx(a,{children:n})})]})})})}var N=t;export{N as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-4AM27BVT.js';import {yc}from'./chunk-W6W4YZ7G.js';import {memo,useId,useMemo}from'react';import {jsx}from'react/jsx-runtime';var m=({chipIndex:i,rowIndex:r,colIndex:t,selectedId:s})=>{let[,e,o,p]=(s??"").split("-");return Number(e)===r&&Number(o)===t&&Number(p)===i};function x({children:i,copyText:r,chipIndex:t,selectionProps:{onClick:s,rowIndex:e,colIndex:o,selectedId:p},...l}){let h=yc(useId(),"status-chip-with-copy"),d=useMemo(()=>m({rowIndex:e,colIndex:o,selectedId:p,chipIndex:t}),[e,o,p,t]);return jsx(a,{...l,id:h,"data-testid":"StatusChipWithCopy",copyText:r,onClick:C=>{s?.(C,t);},isSelected:d,children:i})}var u=memo(x);var M=u;export{m as a,M as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {yc}from'./chunk-
|
|
1
|
+
import {yc}from'./chunk-W6W4YZ7G.js';import {gc}from'./chunk-3YAJNHQC.js';import {useId}from'react';import {motion}from'framer-motion';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var e=styled(motion.img,{shouldForwardProp:n=>n!=="width"&&n!=="height"})(({width:n,height:i})=>({width:n||"16px",height:i||"16px"}));var h=({width:n,height:i,sx:p}={})=>{let m=yc(useId(),"animated-spinner-icon");return jsx(e,{id:m,"data-testid":"AnimatedSpinnerIcon",src:gc,alt:"Loading",className:"spinner-loader",width:n,height:i,sx:p,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2}})},r=h;var u=r;export{u as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {n,i,U as U$1,S as S$1,p as p$1,V,R as R$1,Q,P as P$1,O as O$1,N as N$1,M as M$1,x as x$1,C as C$1,L as L$1,G,H,F as F$1,J,E,D as D$1,A as A$1,K,B,y as y$1,I as I$1,z,q,r,Ha,fa,ea,ga}from'./chunk-N372QRVU.js';import {We as We$1}from'./chunk-3YAJNHQC.js';import Ve from'lodash/orderBy';import Se from'lodash/get';import u from'dayjs';import Ke from'dayjs/plugin/relativeTime';import je from'dayjs/plugin/timezone';import Je from'dayjs/plugin/utc';import qe from'dayjs/plugin/calendar';import Xe from'dayjs/plugin/isToday';import Ze from'dayjs/plugin/isYesterday';import ot from'axios';import rt from'lodash/forOwn';import Pe from'color';import Ue from'lodash/capitalize';import Re from'lodash/startCase';import Ye from'dompurify';function Ft({list:e,sortBy:t,orders:r}){return t?.length&&r?.length?Ve(e,t,r):e}var $t=(e=[],t)=>e.length?e.sort((r,n)=>Se(r,t).localeCompare(Se(n,t))):[];function Ut(e){return (e||[]).filter(t=>!!t)}var kt=(e,t)=>[...new Map(e.map(r=>[r[t],r])).values()];var Yt=e=>typeof e=="number"&&!isNaN(e)&&isFinite(e)&&e>0;function Bt(e){if(!e)return "";let t=e%10,r=e%100;return `${e}${r>9&&r<14?"th":t===1?"st":t===2?"nd":t===3?"rd":"th"}`}var Ge=Intl.NumberFormat("en-US");function zt(e){return Ge.format(e)}var He=e=>{if(typeof e=="number")return Number.isFinite(e)?e:0;if(e==null)return 0;let t=String(e).trim();if(t==="")return 0;let r=t.includes(",")&&!t.includes(".")?t.replace(/,/g,"."):t.replace(/,/g,""),n=Number(r);return Number.isFinite(n)?n:0},Vt=e=>He(e),Gt=(e,t)=>t?e.toFixed(t):e.toString();function y(e,t=2){return e.toString().padStart(t,"0")}var Ht=e=>`0.${"0".repeat(e)}`;u.extend(Xe);u.extend(Ze);u.extend(Je);u.extend(je);u.extend(Ke);u.extend(qe);var h=e=>{if(typeof e=="number")return e;let t=e?.split("UTC")[1]?.split(":")[0];return e?.includes("UTC")||(t=e?.split(":")[0]),e?Number(t):0},nr=(e=0)=>{let t=e<0?"-":"+",r=Math.abs(e).toString().padStart(2,"0");return `UTC${t}${r}:00`},or=(e=6)=>{let t=Number.isFinite(e)&&e>=0?e:0,r=u(),n=r.subtract(t,"day").startOf("day"),o=r.endOf("day");return [n.toDate(),o.toDate()]},sr=e=>{let t=new Date(e),r=t.getTimezoneOffset(),n=t.getTime()-r*6e4,s=new Date(n).toISOString();return u(s).valueOf()},ir=(e,t=S$1.KW)=>{if(!e)return;let r=new Date(e),n=r.getTimezoneOffset(),s=h(t)*60-n,i=r.getTime()+s*6e4,l=new Date(i).toISOString();return u(l).valueOf()},ar=(e,t=0)=>e?u(e).utc(true).subtract(t,"hour").valueOf():void 0,cr=e=>{let t=new Date(e),r=t.getTimezoneOffset(),n=t.getTime()+r*6e4;return new Date(n)},lr=(e,{currentTimezone:t,targetTimezone:r})=>{if(!e)return "";let n=new Date(e);if(Number.isNaN(n.getTime()))return "";if(!t||!r)return n;let o=h(t),s=h(r),i=new Date().getTimezoneOffset()/-60,a=s-o-i,l=n.getTime()+a*6e4*60;return new Date(l)},ur=e=>Array.from({length:e??31},(t,r)=>r+1).map(t=>({id:t,label:t})),dr=e=>Array.from({length:e??12},(t,r)=>r+1).map(t=>({id:t,label:t})),De=({length:e=10,startYear:t,direction:r="future"}={})=>{let n=new Date().getFullYear(),o=t!==void 0?n-t+1:e,s=t!==void 0||r==="past"?-1:1;return Array.from({length:o},(i,a)=>{let l=n+s*a;return {id:l,label:l}})},C=(e,t,r,n,o=true)=>{if(!e)return "";let s=new Date(e);if(Number.isNaN(s.getTime()))return "";let i=new Date,a=u(e).isSame(i,"year"),l={sameDay:`[Today]${o?", h:mma":""}`,nextDay:`[Tomorrow]${o?", h:mma":""}`,lastDay:`[Yesterday]${o?", h:mma":""}`,sameElse:`MMM DD, YYYY${o?", h:mma":""}`,lastWeek:`MMM DD, YYYY${o?", h:mma":""}`,nextWeek:`MMM DD, YYYY${o?", h:mma":""}`};if(a&&(l={sameDay:`[Today]${o?", h:mma":""}`,nextDay:`[Tomorrow]${o?", h:mma":""}`,lastDay:`[Yesterday]${o?", h:mma":""}`,sameElse:`MMM DD${o?", h:mma":""}`,lastWeek:`MMM DD${o?", h:mma":""}`,nextWeek:`MMM DD${o?", h:mma":""}`}),!r&&!n)return u(s).calendar(null,t||l);let d=h(r),m=h(n)-d;return n||(m=Math.abs(m)),u(s).utcOffset(m).calendar(null,t||l)},mr=(e,t="YYYY-MM-DD")=>{let r=new Date(e);return Number.isNaN(r.getTime())?"":u(e).format(t)},pr=e=>u(e).endOf("day").toDate().valueOf();function gr(e){let t=Math.floor(e/3600),r=Math.floor(e%3600/60),n=Math.floor(e%60);return t>0?`${y(t)}:${y(r)}:${y(n)}`:`${y(r)}:${y(n)}`}function be(e,t,r="seconds"){let n={seconds:1,minutes:60,hours:3600,days:86400};return (Date.now()-e)/1e3<t*n[r]}var fr=e=>{let t=Date.now(),r=Math.floor((t-e)/1e3),n=Math.floor(r/60);return be(e,60,"seconds")?"just now":be(e,60,"minutes")?`${n} min${n===1?"":"s"} ago`:"1 hour ago"},xr=e=>u(e).isToday(),yr=e=>u(e).isYesterday(),Qe=1970,Tr=()=>De({startYear:Qe}),hr=(e=10)=>De({length:e,direction:"past"});function Cr(e,t){if(!e)return null;let r=u(e);if(!r.isValid())return null;try{return new Date(r.tz(t).format("YYYY-MM-DDTHH:mm:ss.SSS"))}catch{return null}}var b=["sun","mon","tue","wed","thur","fri","sat"];function Sr(e="sun"){let t=b.indexOf(e.toLowerCase());return t===-1?(console.error(`${e} is not a valid day`),b):[...b.slice(t),...b.slice(0,t)]}var br=e=>{if(e==null)return;let t=u(e);return t.isValid()?t.valueOf():void 0};var Ee=e=>{let r=e.reduce((n,o)=>{let s=o.entities?.find(i=>i.default);return s&&n.push({entityId:s.id,country:o}),n},[])[0]?.country||e[0];return e.find(n=>n.id===r?.id)};var we=(e,t,r)=>{let n=e.find(a=>a.id===t)??{},o=r.find(a=>a.id===t)??{},s=o.countries.length===1?n.countries.find(a=>a.id===o.countries?.[0].id):Ee(n?.countries),i=s?.entities?.find(a=>a.default);return {...n,defaultCountry:s,defaultEntity:i}},et=({merchantsIds:e,options:t})=>!e||!e?.length?{}:{business:{merchant:e,...t}},tt=e=>["payment_facilitator_14po8231419aIsi1fN7F385"].includes(e),Ar=({segmentCode:e,segmentId:t,segmentTypeCode:r,merchantsIds:n=[],options:o={}})=>{let s="PSP"===r?e:r;return tt(t)?et({merchantsIds:n,options:o}):s==="PAYMENT_TECHNOLOGY"?{payment_provider:{technology:{orchestrator:[t],...o}}}:s==="PAYMENT_GATEWAY"||s==="PAYMENT_GATEWAY_PROVIDER"?{payment_provider:{technology:{gateway:[t],...o}}}:s==="PAYMENT_FACILITATOR"?{payment_provider:{institution:{facilitator:[t],...o}}}:s==="PAYMENT_ACQUIRER"?{payment_provider:{institution:{acquirer:[t],...o}}}:s==="PLATFORM"?{platform:[t],...o}:s==="DEVELOPMENT"?{development_agency:[t],...o}:{}};var Ae="Test_Fixed_Secret_Key",A="tap-dashboard-navigation-data",_e="tap-dashboard-user-data",_="tap-dashboard-user-jwt",O="tap-dashboard-report",I="tap-dashboard-calender-timezone",N="tap-dashboard-calender-timezone-history",L="tap-dashboard-global-table-mode",Oe="sheetview_columns",P="dock-preview-windows",w="views";function Lr(){localStorage.setItem(Ae,p$1);}function Ie(){return localStorage.getItem(Ae)}function Pr(e){localStorage.setItem(A,JSON.stringify(e));}function Mr(){try{let e=localStorage.getItem(A);if(!e)return null;let t=JSON.parse(e);return rt(t,r=>{r?.forEach(n=>{n.payload&&n.payload.dateRange&&(n.payload.dateRange=n.payload.dateRange.map(o=>new Date(o)));});})}catch{return null}}function Rr(){localStorage.removeItem(A);}var vr=e=>{localStorage.setItem(_,e);},M=()=>localStorage.getItem(_),Fr=()=>{localStorage.removeItem(_);},$r=e=>{localStorage.setItem(_e,JSON.stringify(e));},R=()=>{let e=localStorage.getItem(_e);if(!e)return null;try{return JSON.parse(e)}catch{return null}},Ur=()=>{let e=R();return e?we(e?.segments,e?.active_segment_id,e?.active_segments):null},kr=()=>{let e=R();return e?e?.active_segments.find(t=>t.id===e.active_segment_id):null},nt=()=>{let e=M();if(!e)return true;try{let[,t]=e.split(".");if(!t)return !0;let r=t.replace(/-/g,"+").replace(/_/g,"/"),n=r.padEnd(Math.ceil(r.length/4)*4,"="),{exp:o}=JSON.parse(atob(n));return typeof o!="number"?!0:Date.now()>=o*1e3}catch{return true}},Wr=()=>!nt()&&!!R(),Yr=(e,t)=>{localStorage.setItem(`${O}-${e}`,t);},Br=e=>localStorage.getItem(`${O}-${e}`),zr=e=>{localStorage.removeItem(`${O}-${e}`);},Vr=e=>{localStorage.setItem(I,JSON.stringify(e));},Gr=e=>{localStorage.setItem(N,JSON.stringify(e));},Hr=()=>{try{let e=localStorage.getItem(I);return e?JSON.parse(e):null}catch{return null}},Kr=()=>{try{let e=localStorage.getItem(N);return e?JSON.parse(e):null}catch{return null}},jr=()=>{localStorage.removeItem(I);},Jr=()=>{localStorage.removeItem(N);},qr=e=>{localStorage.setItem(L,e);},Xr=()=>localStorage.getItem(L)||"default",Zr=()=>{localStorage.removeItem(L);},Qr=e=>localStorage.setItem(Oe,JSON.stringify(e)),en=()=>JSON.parse(localStorage.getItem(Oe)||"{}"),tn=e=>{try{localStorage.setItem(P,JSON.stringify(e));}catch(t){console.warn("Failed to save preview cache:",t);}},rn=()=>{try{let e=localStorage.getItem(P);return e?JSON.parse(e):[]}catch{return []}},nn=()=>{try{localStorage.removeItem(P);}catch(e){console.warn("Failed to remove preview storage:",e);}},on=(e,t,r)=>{try{return JSON.parse(localStorage.getItem(w)??"{}")?.[e]?.[t]?.[r]?.selectedViewId??null}catch{return null}},sn=(e,t,r,n)=>{try{let o=JSON.parse(localStorage.getItem(w)??"{}");localStorage.setItem(w,JSON.stringify({...o,[e]:{...o[e],[t]:{...o[e]?.[t],[r]:{...o[e]?.[t]?.[r],selectedViewId:n}}}}));}catch{return null}},Ne=()=>{localStorage.clear();};var st={headers:{"Content-Type":"application/json",Accept:"application/json"}},v=ot.create({baseURL:n,headers:{...st}}),it=["users/switch-segment","users/update-segment"];v.interceptors.request.use(e=>new Promise(t=>{let r=false;if(it.includes(e.url??"")){t(e);return}let n=s=>{let i=s.data;if(i==="network_request_waiting"){r=true;return}i==="resume_network_request"&&(r=false);};window.addEventListener("message",n);let o=setInterval(()=>{r||(t(e),clearInterval(o),window.removeEventListener("message",n));},0);}));v.interceptors.request.use(e=>{e.headers.Authorization=M();let t=Ie();return t&&!e.headers["x-test-secret"]&&(e.headers["x-test-secret"]=t),e});v.interceptors.response.use(e=>e,e=>(e.response?.data?.force_logout&&(Ne(),window.location.href="/login"),Promise.reject(e)));function mn(e){let{sandboxMode:t,fixedSecretKey:r,applicationId:n,serviceId:o,functionId:s,userFunctionId:i,segmentId:a,...l}=e??{};return {...l,live_mode:t?"false":"true",...!!r&&{"x-test-secret":r},...!!n&&{application_id:n},...!!o&&{service_id:o},...!!s&&{function_id:s},...!!i&&{user_function_id:i}}}function gn(e){let r=(e??(typeof navigator<"u"&&navigator.userAgent?navigator.userAgent:"")).toLowerCase();if(r.includes("edg"))return "edge";if(r.includes("opr")||r.includes("opera"))return "opera";if(r.includes("chrome")&&!r.includes("edg")&&!r.includes("opr"))return "chrome";if(r.includes("safari")&&!r.includes("chrome"))return "safari";if(r.includes("firefox"))return "firefox";if(r.includes("msie")||r.includes("trident"))return "ie";if(r.includes("tor"))return "tor";if(r.includes("uc"))return "uc";if(r.includes("yandex"))return "yandex"}var fn=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),xn=e=>{let t=e??(typeof navigator<"u"&&navigator.userAgent?navigator.userAgent:"");if(!t)return;let r=t.toLowerCase();if(/ipad|tablet|playbook|silk|(android(?!.*mobile))/.test(r))return "TABLET";if(/mobile|iphone|ipod|android.*mobile|blackberry|iemobile|opera mini|windows phone/.test(r))return "MOBILE";if(/desktop|laptop|macintosh|windows|linux|unix|freebsd|openbsd|netbsd|chromeos|solaris|beos|os/.test(r))return "DESKTOP"};function Cn(){let e=["#D6D6D6","#BFF192","#E4EE92","#FDFCAB","#FFE78E","#FFCE6B","#FFBC8C","#FF947C","#C88FA3","#B988C9","#9A8BBB","#89B6FF","#ACD4E1","#ADBABE","#C0DAAA","#D5DA91","#EAE7A2","#DFCE9C","#C9A997","#858585","#000000"];return e[Math.trunc(Math.random()*e.length)]}function Sn(){let e=["linear-gradient(135deg, #31D5C8 0%, #1186C5 100%)","linear-gradient(135deg, #A2E9BD 0%, #44BB74 100%)","linear-gradient(0deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.10) 100%), linear-gradient(135deg, #6BF6EB 0%, #32D6C9 100%)","linear-gradient(135deg, #61AFC9 0%, #7FBFD4 100%)","linear-gradient(135deg, #9DB7A4 0%, #7FBFD4 100%)","linear-gradient(135deg, #D7B38C 0%, #FFE09F 100%)","linear-gradient(135deg, #ADD6A2 0%, #FFDDB2 100%)"];return e[Math.trunc(Math.random()*e.length)]}var Le={r:0,g:0,b:0,alpha:1},bn=e=>{try{let t=Pe(e).rgb(),{r,g:n,b:o,alpha:s=1}=t.object();return {value:{r,g:n,b:o,alpha:s},stringified:`rgba(${r},${n},${o},${s})`}}catch(t){console.error(t),console.warn(`Invalid hex color: "${e}". Falling back to black.`);let{r,g:n,b:o,alpha:s}=Le;return {value:Le,stringified:`rgba(${r},${n},${o},${s})`}}},Dn=e=>Pe(e).hexa();var An={fx:"Foreign Exchange",dcc:"Dynamic Currency Conversion"},Me={BHD:3,KWD:3,JOD:3,OMR:3},F=new Map,_n=(e,t)=>{if(Number.isNaN(e))return "0";try{return F.has(t)||F.set(t,new Intl.NumberFormat("en-US",{currency:t,minimumFractionDigits:Me[t]?3:2})),F.get(t).format(e)}catch(r){return console.error(r),"0"}},at=e=>e%1===0,ct=e=>e%.1===0,lt=e=>Math.abs(e*10%1)===.1,On=(e,t)=>{let r=Me[t],n=e.toString();return Number.isInteger(e)&&at(e)?n=e.toFixed(r?3:2):lt(e)?n=`${n}${r?"00":"0"}`:ct(e)&&(n=`${n}${r?"00":"0"}`),n};function ut(e,t=2){let r=parseFloat(e.toString());if(isNaN(r)){let[a,l]=0 .toFixed(t).split("."),d=`${a}.${l}`;return {integerAmount:a,decimalAmount:l,fullAmount:d}}let n=r.toFixed(t),[o,s]=n.split("."),i=parseInt(o).toLocaleString();return {integerAmount:i,decimalAmount:s,fullAmount:`${i}.${s}`}}function In(e=0,t=""){return ut(e,V[t]?.decimals??2)}function Ln(e){let t=e.request.currency,r=e.select.currency,n=e.merchant.currency,o=r!==n&&r===t&&t&&n&&r,s=r!==t&&t&&n&&r,i=o?"fx":void 0;i=s?"dcc":i;let a=o?e.merchant:void 0;return a=s?e.request:a,{type:i,shownAmount:a}}var Pn=e=>typeof e=="number"?e:Number(e.replace(/,/g,""));var dt=new Intl.DisplayNames(["en"],{type:"region"});function Rn(e){try{return dt.of(e)}catch(t){console.error(t?.response?.data?.error?.message);}}function vn(e){return e==="SA"}var S=e=>C(e,{sameDay:"[Today at] h:mm A",nextDay:"[Tomorrow]",lastDay:"[Yesterday]",sameElse:"MMM DD",lastWeek:"MMM DD",nextWeek:"MMM DD"}),kn=(e,t)=>{if(!e)return "";let r=new Date,n=u(e).isSame(r,"year");return t?C(e,{sameDay:"[Today at] h:mm A",nextDay:"[Tomorrow at] h:mm A",lastDay:"[Yesterday at] h:mm A",sameElse:"[on] MMM DD [at] h:mm A",lastWeek:"[on] MMM DD [at] h:mm A",nextWeek:"[on] MMM DD [at] h:mm A"}):n?C(e,{sameDay:"[Today]",nextDay:"[Tomorrow]",lastDay:"[Yesterday]",sameElse:"[on] MMM DD",lastWeek:"[on] MMM DD",nextWeek:"[on] MMM DD"}):C(e,{sameDay:"[Today]",nextDay:"[Tomorrow]",lastDay:"[Yesterday]",sameElse:"[on] MMM DD, YYYY",lastWeek:"[on] MMM DD, YYYY",nextWeek:"[on] MMM DD, YYYY"})},Wn=e=>{let t=e?.payout,r=e?.settlement;if(!e)return {tooltip:[],status:void 0};if(!["PAID_OUT","SETTLED"].includes(e?.status||""))return {tooltip:[...r?.scheduled?[{left:"settlement_scheduled",right:`${S(r?.scheduled)}`}]:[],...t?.scheduled?[{left:"payment_scheduled",right:`${S(t?.scheduled)}`}]:[]],status:"PENDING"};if(e?.status==="PAID_OUT"){let n=t?.activities.find(o=>o.status==="PAID_OUT");return {tooltip:[{left:"paidOut",right:`${S(n?.date)}`}],status:"PAID_OUT"}}if(e?.status==="SETTLED"){let n=r?.activities.find(o=>o.status==="SETTLED");return {tooltip:[{left:"settled",right:`${S(n?.date)}`},...t?.scheduled?[{left:"payment_scheduled",right:`${S(t?.scheduled)}`}]:[]],status:"SETTLED"}}};var zn=(e,t)=>{let{isFirst:r,isLast:n}=t||{};return `${(e+0)/898*100}%`},Vn=({table:e,cellID:t,tableMode:r})=>{switch(e){case "charge":return z[t][r];case "refund":return I$1[t][r];case "authorization":return y$1[t][r];case "intents":return B[t][r];case "topups":return K[t][r];case "destinations":return A$1[t][r];case "leads":return D$1[t][r];case "orders":return E[t][r];case "tokens":return J[t][r];case "payouts":return F$1[t][r];case "protectCharges":return H[t][r];case "protectAuthorizations":return G[t][r];case "wallet":return L$1[t][r];case "invoices":return C$1[t][r];case "authentications":return x$1[t][r];case "walletDetails":return M$1[t][r];case "walletStatement":return N$1[t][r];case "merchants":return O$1[t][r];case "terminals":return P$1[t][r];case "orchestrationTerminals":return Q[t][r];case "orchestrationRouting":return R$1[t][r];default:return "100px"}},Gn=(e,t)=>{let r,n=window.innerHeight-24-264;return e?r=window.innerHeight/1.7:t?r=n-100:r=n-20,Math.floor(r/(e||t?52:70))},pt=()=>{let e=window.innerHeight*.82/1.24-57;return Math.floor(e/70)},Hn=e=>{let t=pt();return e<t+1},Kn=e=>e==="default",jn=e=>e==="sheet",Jn=()=>({charge:{prefixes:["chg_","payout_","settlement_","terminal_"],accessor:e=>[e.id,e.capture?.charge?.map(t=>t.id),e.charge?.id,e.transactions?.map(t=>t.id),e.charge_id],label:"Charge",appCode:i.acceptance.code,serviceCode:i.acceptance.services.charges.code,icon:"capture"},authorize:{prefixes:["auth_"],keys:["id","authorize.id","source.id","charge.source.id"],label:"Authorization",appCode:i.acceptance.code,serviceCode:i.acceptance.services.authorization.code,icon:"capture"},intents:{prefixes:["intent_"],keys:[],label:"Intents",appCode:i.acceptance.code,serviceCode:i.acceptance.services.intents.code,icon:"capture"},refunds:{prefixes:["re_","payout_"],accessor:e=>[e?.refunds?.refund?.map(t=>t.id),e?.id,...e?.refunds?.length?[e?.refunds?.map(t=>t.id)]:[]],label:"Refunds",appCode:i.acceptance.code,serviceCode:i.acceptance.services.refunds.code,icon:"refund"},authentication:{prefixes:["auth_payer_"],keys:["authentication.id"],label:"Authentication",appCode:i.authentication.code,serviceCode:i.authentication.services.authentication.code,icon:"capture"},order:{prefixes:["order_","ord_"],keys:["order.id"],label:"Order",appCode:i.order.code,serviceCode:i.order.services.orders.code,icon:"capture"},chargeFlags:{prefixes:["flag_"],accessor:e=>e?.flags?.flag?.map(t=>t.id),label:"Flags",appCode:i.protect.code,serviceCode:i.protect.services.chargesFlags.code,icon:"flag"},authorizationFlags:{prefixes:["flag_"],accessor:e=>e?.flags?.flag?.map(t=>t.id),label:"Flags",appCode:i.protect.code,serviceCode:i.protect.services.authorizationsFlags.code,icon:"flag"},token:{prefixes:["tok_"],keys:["source.id"],label:"Token",appCode:i.tokens.code,serviceCode:i.tokens.services.tokens.code,icon:"capture"},destination:{prefixes:["trf_","payout_"],accessor:e=>[e?.destinations?.destination?.map(t=>t?.transfer?.id),e?.id],label:"Destination",appCode:i.acceptance.code,serviceCode:i.acceptance.services.destinations.code,icon:"destination"},payout:{prefixes:["payout_"],keys:["balance.payout.id"],label:"Payout",appCode:i.payouts.code,serviceCode:i.payouts.services.payouts.code,icon:"capture"},settlement:{prefixes:["settlement_"],keys:["settlement.id"],label:"Settlement",appCode:i.acceptance.code,serviceCode:i.acceptance.services.settlements.code,icon:"capture"},intent:{prefixes:["intent_"],keys:["intent.id"],label:"Intent",appCode:i.acceptance.code,serviceCode:i.acceptance.services.intents.code,icon:"capture"},topup:{prefixes:["topup_"],keys:["topup.id"],label:"Topup",appCode:i.acceptance.code,serviceCode:i.acceptance.services.topups.code,icon:"capture"}});var Qn=e=>typeof e=="string"&&e.trim().length>0,U=(e,t)=>{if(!t)return e;let r=e.indexOf(t);return e.substring(r+t.length)},$=new Map,k=(e,t)=>($.has(t)||$.set(t,new RegExp(t,"gi")),e.match($.get(t))?.length??0),eo=e=>e.reduce((t,r)=>(t.push(r[0]),t),[]),to=()=>crypto?.randomUUID?.()||Math.random().toString(36).substring(2,15),ro=e=>{if(navigator.clipboard)navigator.clipboard.writeText(e);else {let t=document.createElement("textarea");t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.select(),document.execCommand("copy"),t.remove();}},no=e=>typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1),oo=e=>{let[t]=e.split("%");return parseFloat(t)||0},so=e=>`\u2022\u2022\u2022 ${e.slice(-4)}`,io=(e,t=/_/g,r=" ")=>{let n=e.replace(t,r);return Re(n)},ao=e=>Ue(Re(e));var lo=(e,t)=>!e?.last_four||!t?"":`${t?.toLowerCase()} - ${e?.last_four}`,uo=(e,t)=>!t||!e?"":`${e?.toLowerCase()||"ID"} \u2022 ${t?.slice(-4)}`;function po({unCapturedCode:e,unCapturedMessage:t,acquirerCode:r,acquirerMessage:n,gatewayCode:o,gatewayMessage:s}){let i=e&&t&&`${e} - ${t}`,a=r&&n&&`${r} - ${n}`,l=o&&s&&`${o} - ${s}`;return {unCapturedTooltip:i,acquirerTooltip:a,gatewayTooltip:l}}function fo(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0))}var W=e=>e==null||e==="";function xo(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>Array.isArray(t)?t.length>0&&t?.some(r=>!W(r)):typeof t=="object"?Object.values(t||{}).some(r=>!W(r)):!W(t)))}var ho=()=>q===r.TAPSTERS_FRONTEND;var So=e=>e.replace(/[^0-9]/g,"");function wo({rowData:e,prefixes:t,keys:r=[],accessor:n}){let o=!!n;return (o?n?.(e):r)?.filter(Boolean)?.reduce((a,l)=>{let d=o?l:Se(e,l);return typeof d=="string"&&t?.some(g=>d.includes(g)&&k(U(d,g),"_")===0)&&a.push(d),Array.isArray(d)&&d.length>0&&d.every(g=>typeof g=="string"&&t?.some(m=>g.includes(m)&&k(U(g,m),"_")===0))&&a.push(...d),a},[])}var _o=450,Oo=600;var Io=3;var No=20,xt=(r=>(r.Index="index",r.Date="date",r))(xt||{}),Lo={name:"index",label:"",selected:true,menuItems:void 0,order:0,pinned:"start",isDefaultPinned:true,pinnable:true},Po={name:"date",label:"Date",selected:true,menuItems:void 0,order:1,pinned:"start",isDefaultPinned:true,pinnable:true},Mo={date:"Date",index:"Index"},Ro={sheet:["sheet"],default:["advanced","default"],text:["text"]},vo={sheet:"Advanced",default:"Sheet",text:"text"},yt={id:"default",label:"Default"},Fo={id:"custom",label:"Custom view"},$o=[yt];function Yo(e,t,r){return e.filter(n=>{let o=n?.id?.toString(),s=t.find(m=>{let Be=m.code?.toLowerCase()===o?.toLowerCase(),ze=m.name?.toLowerCase()===o?.toLowerCase();return (Be||ze)&&m.selected}),i=!!n.tableViewId&&(s?.menuItems?.length||0)>0,a=s?.menuItems?.find(m=>m.name?.toLowerCase()===n.tableViewId?.toString()?.toLowerCase())?.selected,l=!!s&&(a||!i),g=["actions","action_icon",...r?["index","date"]:[]].includes(o?.toLowerCase()??"");return !!(l||g)})}function Bo(e,t){if(t.toLowerCase()==="index")return 0;let r=e.findIndex(o=>o.code?.toLowerCase()===t?.toLowerCase()),n=e[r];return r>=0?n?.sort_order??r:999}function zo(e,t,r){return e?.find(n=>{let o=n.code?.toLowerCase()===t.toLowerCase(),s=n.name?.toLowerCase()===t.toLowerCase();return o||s})?.menuItems?.find(n=>n.name?.toLowerCase()===r.toLowerCase()&&n.selected)?.selected||false}function Vo(e,t){return e?.filter(r=>!!r.name?.[0]?.text)?.map(r=>({code:r.code,label:x(r.name,t),name:x(r.name,t)||"",selected:r?.selected!==false,sort_order:r.sort_order,menuItems:r.fields?.map(n=>n.parameters?.filter(o=>!!o.code)?.map(o=>({code:o.code,label:Re(o.code),name:`${o.code}`,selected:o?.selected!==false})))?.flat()?.filter(n=>!!n.name)}))||[]}function Go(e){return e.map(t=>({...t.code?{code:t.code}:{},name:[{text:t.name,lang:"en"}],selected:t.selected,sort_order:1,sorting:"descending",fields:t.menuItems?.map(r=>({code:r.name,type:"single",parameters:[{parameter:r.name,code:r.name,selected:r.selected}]}))||[]}))}var Ho=({columnsView:e,columnsIds:t,selected:r})=>{let n=new Set(t.map(s=>s?.toLowerCase())),o=s=>({...s,selected:r,fields:s.fields?.map(i=>({...i,parameters:i.parameters?.map(a=>({...a,selected:r}))??[]}))});return e.map(s=>n.has(s.code?.toLowerCase()??"")||n.has(s.name?.[0]?.text?.toLowerCase()??"")?o(s):s)};function jo(e){return {fullPhone:e?.number?`${e?.country_code||""} ${e?.number}`:"",code:e?.country_code||"",number:e?.number||""}}var ve=(e,t)=>{let r=e.type==="url"?e.url:window.URL.createObjectURL(new Blob([e.content])),n=document.createElement("a");n.href=r,n.setAttribute("download",t),document.body.appendChild(n),n.click(),n.remove(),e.type==="content"&&window.URL.revokeObjectURL(r);},qo=(e,t)=>ve({type:"content",content:e},t),Xo=(e,t)=>ve({type:"url",url:e},t);var ht=e=>!!(e?.isAxiosError&&!e?.response),Qo=(e,t="")=>e?.response?.data?.error?.message?.trim()||t,es=e=>!!e,Ct=e=>(e?.code==="ECONNABORTED"||e?.message?.toLowerCase().includes("timeout"))??false,ts=e=>!!(e?.response?.status===404||e?.response?.status===400&&e?.response?.data?.error?.message?.toLowerCase().includes("not found")),D=({code:e,message:t})=>e?`${t} - ${e}`:t,rs=({error:e,fallbackMessage:t})=>{if(ht(e)){let n=t??"networkError";return {code:null,message:n,formatted:D({code:null,message:n})}}if(Ct(e)){let n=t??"yourRequestOutPleaseTryAgain";return {code:null,message:n,formatted:D({code:null,message:n})}}if(e?.response&&typeof e.response.data=="object"&&"error"in e.response.data){let{code:n,message:o}=e.response.data.error;return {code:n,message:o,formatted:D({code:n,message:o})}}let r=t??"somethingWentWrong";return {code:null,message:r,formatted:D({code:null,message:r})}};var os=(e,t)=>e.find(r=>r.code===t),ss=(e,t)=>e.find(r=>r.code===t);var cs=()=>["passport","national_id","iqamah","civil_id"].map(e=>({id:e,label:Re(e)}));function us(e,t=2){let n=e??0;if(!n)return "0 kb";let o=n/1024;return o>1024?`${(o/1024).toFixed(t)} mb`:`${o.toFixed(t)} kb`}function ds(e){return e?.file?.size!==void 0&&e?.file?.name!==void 0}var gs=e=>{let t=e?.split(".").pop()?.toLowerCase()??"";return Ha[t]??We$1},fs=(e,t,r)=>`${e}-${t}-${r}`;var ys=e=>e?/[\u0600-\u06FF]/g.test(e):false;function Ts(e,t="en"){return (e||[]).find(r=>(r?.lang||r?.locale)===t)||e?.[0]}var x=(e,t="en")=>(e||[]).find(r=>r?.lang===t)?.text,hs=(e,t="en")=>(e||[]).find(r=>r?.lang===t);var Ss=e=>{let t=e?.wallet==="SV Wallet"?"walletStoredValue":"walletPassThru";return e?.type==="Wallet"?t:e?.type},bt={AMERICAN_EXPRESS:"AMEX"},Fe=e=>bt[e.toUpperCase()]??e.toUpperCase(),bs=(e,t)=>!!e&&!!t&&Fe(e)===Fe(t);var Es=e=>({Local:e.success.light,Regional:e.info.light,Global:e.warning.light});var _s=(e,t)=>{if(t==null)return "";let r=fa[e];return e===ea.COUNT?t===1?r:`${r}s`:r};var p={primary:"#1F88D0",background:"white",border:"#F2F2F2",transparent:"transparent"},f={thin:"0.5px",thick:"1px",none:"0px"},$e={minHeight:"28px",fullHeight:"100%"},Is=({isSelected:e,isCellSelected:t,isColumnSelected:r,isRowSelected:n,isLastRow:o})=>e?n?Dt():t&&!r?Et():r?wt(o):{}:{},Dt=()=>({backgroundColor:p.background,color:p.primary}),Et=()=>({border:`${f.thin} solid ${p.primary}`,backgroundColor:p.background,color:p.primary,borderRadius:"2px"}),wt=e=>{let t=At(),r=_t(e);return {borderWidth:t,borderStyle:"solid",borderColor:p.primary,borderBottom:r,height:$e.fullHeight,minHeight:$e.minHeight,display:"flex",alignItems:"center"}},At=()=>{let{none:e,thin:t}=f;return `${e} ${t} ${t} ${t}`},_t=e=>e?`${f.thick} solid ${p.primary}`:`${f.thin} solid ${p.border}`,Ns=({effectiveFirst:e,isPinnedStart:t,isPinnedEnd:r})=>({borderTop:`${f.thin} solid ${p.primary}`,borderBottom:`${f.thin} solid ${p.primary}`,borderRight:`${f.thin} solid ${r?p.primary:"none"}`,borderLeft:`${f.thin} solid ${t&&e?p.primary:"transparent"}`}),Ls={left:"flex-start",center:"center",right:"flex-end"};function Ps(e,t){return t==null?e:[e,...Array.isArray(t)?t:[t]]}function Ms(...e){return e.filter(Boolean).join(" ")||void 0}var Fs=e=>U$1.find(t=>t.countryCode===e)??U$1[0],$s=e=>U$1.find(t=>t.timezone===e)??U$1[0];function zs(e){return {name:"Payment Methods",type:"payment_methods",options:e?.map(t=>({name:Ue(Re(x(t?.name))),type:t?.code,icon:ga[t.code]??ga.CARD,options:t.payment_methods?.map(r=>({name:x(r.name),type:r.code}))}))}}function Vs(e=[]){return {name:"Payment Schemes",type:"payment_scheme",options:e.filter(t=>t.code).map(t=>({name:Ue(Re(x(t?.name))),type:t?.code}))}}var We=["120px","180px","100px","150px","200px","140px","160px","110px","190px","130px"],Ot={id:"index",header:"",width:"34px",order:0,hidden:false,sortable:false,pinned:"start",isDefaultPinned:true,pinnable:true},It={id:"date",header:"",width:"120px",order:1,hidden:false,sortable:false,pinned:"start",isDefaultPinned:true,pinnable:true},Nt={id:"action_icon",header:"",width:"36px",order:We.length+3,hidden:false,sortable:false,pinned:"end",pinnable:true,isDefaultPinned:true},Lt=(e=We)=>{let t=e.map((r,n)=>({id:`skeleton-col-${n}`,header:"",width:r,order:n+2,hidden:false,sortable:false,pinnable:false}));return [Ot,It,...t,Nt]},Hs=(e,t,r)=>r&&t?Lt():[...e];var js=(e,t)=>e.map(r=>{let n=Object.entries(t);if(!r.default||!r.layout?.length||!n.length)return r;let o=new Map(n.map(([i,a])=>[i.toLowerCase(),a])),s=r.layout.map(i=>({...i,columns:i.columns?.map(a=>{let l=a.code?.toLowerCase();if(!l||!o.has(l))return a;let d=o.get(l)??false;return {...a,default:d,fields:a.fields?.map(g=>({...g,default:d}))}})}));return {...r,layout:s}});var Xs=(e,t)=>t.some(r=>!!e[r]),Zs=(e,t,r)=>t?e:e.map(n=>{if(r.hiddenFilterColumnIds.includes(n.id)){let{filter:s,...i}=n,a=n.id,l=typeof i.header=="function"?Re(a):i.header;return {...i,header:l}}let{hiddenFilterOptionKeys:o}=r;if(o&&n.filter&&"options"in n.filter&&n.filter.options){let s=n.filter.options,i=s.filter(a=>!a.apiKey||!o.includes(a.apiKey));if(i.length!==s.length)return {...n,filter:{...n.filter,options:i}}}return n});typeof window<"u"&&Ye.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener noreferrer");});var Mt={USE_PROFILES:{html:true},ALLOWED_URI_REGEXP:/^(?:(?:https?|mailto|tel|blob):|[^a-z]|[-a-z.+]+(?:[^-a-z.+:]|$))/i,WHOLE_DOCUMENT:true},ti=e=>typeof window>"u"?"":String(Ye.sanitize(e||"",Mt));var ni=e=>window?.__TAPOS_NEWRELIC_TRACKING_EVENTS__?.trackFeatureEvent?.(e),oi=e=>e.toISOString();function ii(e,t){let r=e.replace(/:/g,"");return t?`${t}-${r}`:r}export{Wr as $,to as $a,x as $b,gr as A,Sn as Aa,Fo as Ab,be as B,bn as Ba,$o as Bb,fr as C,Dn as Ca,Yo as Cb,xr as D,An as Da,Bo as Db,yr as E,Me as Ea,zo as Eb,Tr as F,_n as Fa,Vo as Fb,hr as G,On as Ga,Go as Gb,Cr as H,ut as Ha,Ho as Hb,Sr as I,In as Ia,jo as Ib,br as J,Ln as Ja,ve as Jb,we as K,Pn as Ka,qo as Kb,et as L,Rn as La,Xo as Lb,tt as M,vn as Ma,ht as Mb,Ar as N,S as Na,Qo as Nb,Lr as O,kn as Oa,es as Ob,Ie as P,Wn as Pa,Ct as Pb,Pr as Q,zn as Qa,ts as Qb,Mr as R,Vn as Ra,rs as Rb,Rr as S,Gn as Sa,os as Sb,vr as T,Hn as Ta,ss as Tb,M as U,Kn as Ua,cs as Ub,Fr as V,jn as Va,us as Vb,$r as W,Jn as Wa,ds as Wb,R as X,Qn as Xa,gs as Xb,Ur as Y,U as Ya,fs as Yb,kr as Z,k as Za,ys as Zb,nt as _,eo as _a,Ts as _b,Ft as a,Yr as aa,ro as ab,hs as ac,$t as b,Br as ba,no as bb,Ss as bc,Ut as c,zr as ca,oo as cb,bs as cc,kt as d,Vr as da,so as db,Es as dc,Yt as e,Gr as ea,io as eb,_s as ec,Bt as f,Hr as fa,ao as fb,p as fc,zt as g,Kr as ga,lo as gb,Is as gc,He as h,jr as ha,uo as hb,Ns as hc,Vt as i,Jr as ia,po as ib,Ls as ic,Gt as j,qr as ja,fo as jb,Ps as jc,y as k,Xr as ka,W as kb,Ms as kc,Ht as l,Zr as la,xo as lb,Fs as lc,h as m,Qr as ma,ho as mb,$s as mc,nr as n,en as na,So as nb,zs as nc,or as o,tn as oa,wo as ob,Vs as oc,sr as p,rn as pa,_o as pb,We as pc,ir as q,nn as qa,Oo as qb,Lt as qc,ar as r,on as ra,Io as rb,Hs as rc,cr as s,sn as sa,No as sb,js as sc,lr as t,Ne as ta,xt as tb,Xs as tc,ur as u,v as ua,Lo as ub,Zs as uc,dr as v,mn as va,Po as vb,ti as vc,De as w,gn as wa,Mo as wb,ni as wc,C as x,fn as xa,Ro as xb,oi as xc,mr as y,xn as ya,vo as yb,ii as yc,pr as z,Cn as za,yt as zb};
|
|
1
|
+
import {n,i,U as U$1,S as S$1,p as p$1,V,R as R$1,Q,P as P$1,O as O$1,N as N$1,M as M$1,x as x$1,C as C$1,L as L$1,G,H,F as F$1,J,E,D as D$1,A as A$1,K,B,y as y$1,I as I$1,z,q,r,Ha,fa,ea,ga}from'./chunk-N372QRVU.js';import {We as We$1}from'./chunk-3YAJNHQC.js';import ze from'lodash/orderBy';import Se from'lodash/get';import u from'dayjs';import Ke from'dayjs/plugin/relativeTime';import je from'dayjs/plugin/timezone';import Je from'dayjs/plugin/utc';import qe from'dayjs/plugin/calendar';import Xe from'dayjs/plugin/isToday';import Ze from'dayjs/plugin/isYesterday';import ot from'axios';import rt from'lodash/forOwn';import Pe from'color';import ke from'lodash/capitalize';import Me from'lodash/startCase';import Ye from'dompurify';function $t({list:e,sortBy:t,orders:r}){return t?.length&&r?.length?ze(e,t,r):e}var kt=(e=[],t)=>e.length?e.sort((r,n)=>Se(r,t).localeCompare(Se(n,t))):[];function Ut(e){return (e||[]).filter(t=>!!t)}var Wt=(e,t)=>[...new Map(e.map(r=>[r[t],r])).values()];var Bt=e=>typeof e=="number"&&!isNaN(e)&&isFinite(e)&&e>0;function Vt(e){if(!e)return "";let t=e%10,r=e%100;return `${e}${r>9&&r<14?"th":t===1?"st":t===2?"nd":t===3?"rd":"th"}`}var Ge=Intl.NumberFormat("en-US");function zt(e){return Ge.format(e)}var He=e=>{if(typeof e=="number")return Number.isFinite(e)?e:0;if(e==null)return 0;let t=String(e).trim();if(t==="")return 0;let r=t.includes(",")&&!t.includes(".")?t.replace(/,/g,"."):t.replace(/,/g,""),n=Number(r);return Number.isFinite(n)?n:0},Gt=e=>He(e),Ht=(e,t)=>t?e.toFixed(t):e.toString();function y(e,t=2){return e.toString().padStart(t,"0")}var Kt=e=>`0.${"0".repeat(e)}`;u.extend(Xe);u.extend(Ze);u.extend(Je);u.extend(je);u.extend(Ke);u.extend(qe);var h=e=>{if(typeof e=="number")return e;let t=e?.split("UTC")[1]?.split(":")[0];return e?.includes("UTC")||(t=e?.split(":")[0]),e?Number(t):0},or=(e=0)=>{let t=e<0?"-":"+",r=Math.abs(e).toString().padStart(2,"0");return `UTC${t}${r}:00`},sr=(e=6)=>{let t=Number.isFinite(e)&&e>=0?e:0,r=u(),n=r.subtract(t,"day").startOf("day"),o=r.endOf("day");return [n.toDate(),o.toDate()]},ir=e=>{let t=new Date(e),r=t.getTimezoneOffset(),n=t.getTime()-r*6e4,s=new Date(n).toISOString();return u(s).valueOf()},ar=(e,t=S$1.KW)=>{if(!e)return;let r=new Date(e),n=r.getTimezoneOffset(),s=h(t)*60-n,i=r.getTime()+s*6e4,l=new Date(i).toISOString();return u(l).valueOf()},cr=(e,t=0)=>e?u(e).utc(true).subtract(t,"hour").valueOf():void 0,lr=e=>{let t=new Date(e),r=t.getTimezoneOffset(),n=t.getTime()+r*6e4;return new Date(n)},ur=(e,{currentTimezone:t,targetTimezone:r})=>{if(!e)return "";let n=new Date(e);if(Number.isNaN(n.getTime()))return "";if(!t||!r)return n;let o=h(t),s=h(r),i=new Date().getTimezoneOffset()/-60,a=s-o-i,l=n.getTime()+a*6e4*60;return new Date(l)},dr=e=>Array.from({length:e??31},(t,r)=>r+1).map(t=>({id:t,label:t})),mr=e=>Array.from({length:e??12},(t,r)=>r+1).map(t=>({id:t,label:t})),De=({length:e=10,startYear:t,direction:r="future"}={})=>{let n=new Date().getFullYear(),o=t!==void 0?n-t+1:e,s=t!==void 0||r==="past"?-1:1;return Array.from({length:o},(i,a)=>{let l=n+s*a;return {id:l,label:l}})},C=(e,t,r,n,o=true)=>{if(!e)return "";let s=new Date(e);if(Number.isNaN(s.getTime()))return "";let i=new Date,a=u(e).isSame(i,"year"),l={sameDay:`[Today]${o?", h:mma":""}`,nextDay:`[Tomorrow]${o?", h:mma":""}`,lastDay:`[Yesterday]${o?", h:mma":""}`,sameElse:`MMM DD, YYYY${o?", h:mma":""}`,lastWeek:`MMM DD, YYYY${o?", h:mma":""}`,nextWeek:`MMM DD, YYYY${o?", h:mma":""}`};if(a&&(l={sameDay:`[Today]${o?", h:mma":""}`,nextDay:`[Tomorrow]${o?", h:mma":""}`,lastDay:`[Yesterday]${o?", h:mma":""}`,sameElse:`MMM DD${o?", h:mma":""}`,lastWeek:`MMM DD${o?", h:mma":""}`,nextWeek:`MMM DD${o?", h:mma":""}`}),!r&&!n)return u(s).calendar(null,t||l);let d=h(r),m=h(n)-d;return n||(m=Math.abs(m)),u(s).utcOffset(m).calendar(null,t||l)},pr=(e,t="YYYY-MM-DD")=>{let r=new Date(e);return Number.isNaN(r.getTime())?"":u(e).format(t)},gr=e=>u(e).endOf("day").toDate().valueOf();function fr(e){let t=Math.floor(e/3600),r=Math.floor(e%3600/60),n=Math.floor(e%60);return t>0?`${y(t)}:${y(r)}:${y(n)}`:`${y(r)}:${y(n)}`}function be(e,t,r="seconds"){let n={seconds:1,minutes:60,hours:3600,days:86400};return (Date.now()-e)/1e3<t*n[r]}var xr=e=>{let t=Date.now(),r=Math.floor((t-e)/1e3),n=Math.floor(r/60);return be(e,60,"seconds")?"just now":be(e,60,"minutes")?`${n} min${n===1?"":"s"} ago`:"1 hour ago"},yr=e=>u(e).isToday(),Tr=e=>u(e).isYesterday(),Qe=1970,hr=()=>De({startYear:Qe}),Cr=(e=10)=>De({length:e,direction:"past"});function Sr(e,t){if(!e)return null;let r=u(e);if(!r.isValid())return null;try{return new Date(r.tz(t).format("YYYY-MM-DDTHH:mm:ss.SSS"))}catch{return null}}var b=["sun","mon","tue","wed","thur","fri","sat"];function br(e="sun"){let t=b.indexOf(e.toLowerCase());return t===-1?(console.error(`${e} is not a valid day`),b):[...b.slice(t),...b.slice(0,t)]}var Dr=e=>{if(e==null)return;let t=u(e);return t.isValid()?t.valueOf():void 0};var Ee=e=>{let r=e.reduce((n,o)=>{let s=o.entities?.find(i=>i.default);return s&&n.push({entityId:s.id,country:o}),n},[])[0]?.country||e[0];return e.find(n=>n.id===r?.id)};var we=(e,t,r)=>{let n=e.find(a=>a.id===t)??{},o=r.find(a=>a.id===t)??{},s=o.countries.length===1?n.countries.find(a=>a.id===o.countries?.[0].id):Ee(n?.countries),i=s?.entities?.find(a=>a.default);return {...n,defaultCountry:s,defaultEntity:i}},et=({merchantsIds:e,options:t})=>!e||!e?.length?{}:{business:{merchant:e,...t}},tt=e=>["payment_facilitator_14po8231419aIsi1fN7F385"].includes(e),_r=({segmentCode:e,segmentId:t,segmentTypeCode:r,merchantsIds:n=[],options:o={}})=>{let s="PSP"===r?e:r;return tt(t)?et({merchantsIds:n,options:o}):s==="PAYMENT_TECHNOLOGY"?{payment_provider:{technology:{orchestrator:[t],...o}}}:s==="PAYMENT_GATEWAY"||s==="PAYMENT_GATEWAY_PROVIDER"?{payment_provider:{technology:{gateway:[t],...o}}}:s==="PAYMENT_FACILITATOR"?{payment_provider:{institution:{facilitator:[t],...o}}}:s==="PAYMENT_ACQUIRER"?{payment_provider:{institution:{acquirer:[t],...o}}}:s==="PLATFORM"?{platform:[t],...o}:s==="DEVELOPMENT"?{development_agency:[t],...o}:{}};var Ae="Test_Fixed_Secret_Key",A="tap-dashboard-navigation-data",_e="tap-dashboard-user-data",_="tap-dashboard-user-jwt",O="tap-dashboard-report",I="tap-dashboard-calender-timezone",L="tap-dashboard-calender-timezone-history",N="tap-dashboard-global-table-mode",Oe="sheetview_columns",P="dock-preview-windows",w="views";function Pr(){localStorage.setItem(Ae,p$1);}function Ie(){return localStorage.getItem(Ae)}function Fr(e){localStorage.setItem(A,JSON.stringify(e));}function Mr(){try{let e=localStorage.getItem(A);if(!e)return null;let t=JSON.parse(e);return rt(t,r=>{r?.forEach(n=>{n.payload&&n.payload.dateRange&&(n.payload.dateRange=n.payload.dateRange.map(o=>new Date(o)));});})}catch{return null}}function Rr(){localStorage.removeItem(A);}var vr=e=>{localStorage.setItem(_,e);},F=()=>localStorage.getItem(_),$r=()=>{localStorage.removeItem(_);},kr=e=>{localStorage.setItem(_e,JSON.stringify(e));},M=()=>{let e=localStorage.getItem(_e);if(!e)return null;try{return JSON.parse(e)}catch{return null}},Ur=()=>{let e=M();return e?we(e?.segments,e?.active_segment_id,e?.active_segments):null},Wr=()=>{let e=M();return e?e?.active_segments.find(t=>t.id===e.active_segment_id):null},nt=()=>{let e=F();if(!e)return true;try{let[,t]=e.split(".");if(!t)return !0;let r=t.replace(/-/g,"+").replace(/_/g,"/"),n=r.padEnd(Math.ceil(r.length/4)*4,"="),{exp:o}=JSON.parse(atob(n));return typeof o!="number"?!0:Date.now()>=o*1e3}catch{return true}},Yr=()=>!nt()&&!!M(),Br=(e,t)=>{localStorage.setItem(`${O}-${e}`,t);},Vr=e=>localStorage.getItem(`${O}-${e}`),zr=e=>{localStorage.removeItem(`${O}-${e}`);},Gr=e=>{localStorage.setItem(I,JSON.stringify(e));},Hr=e=>{localStorage.setItem(L,JSON.stringify(e));},Kr=()=>{try{let e=localStorage.getItem(I);return e?JSON.parse(e):null}catch{return null}},jr=()=>{try{let e=localStorage.getItem(L);return e?JSON.parse(e):null}catch{return null}},Jr=()=>{localStorage.removeItem(I);},qr=()=>{localStorage.removeItem(L);},Xr=e=>{localStorage.setItem(N,e);},Zr=()=>localStorage.getItem(N)||"default",Qr=()=>{localStorage.removeItem(N);},en=e=>localStorage.setItem(Oe,JSON.stringify(e)),tn=()=>JSON.parse(localStorage.getItem(Oe)||"{}"),rn=e=>{try{localStorage.setItem(P,JSON.stringify(e));}catch(t){console.warn("Failed to save preview cache:",t);}},nn=()=>{try{let e=localStorage.getItem(P);return e?JSON.parse(e):[]}catch{return []}},on=()=>{try{localStorage.removeItem(P);}catch(e){console.warn("Failed to remove preview storage:",e);}},sn=(e,t,r)=>{try{return JSON.parse(localStorage.getItem(w)??"{}")?.[e]?.[t]?.[r]?.selectedViewId??null}catch{return null}},an=(e,t,r,n)=>{try{let o=JSON.parse(localStorage.getItem(w)??"{}");localStorage.setItem(w,JSON.stringify({...o,[e]:{...o[e],[t]:{...o[e]?.[t],[r]:{...o[e]?.[t]?.[r],selectedViewId:n}}}}));}catch{return null}},Le=()=>{localStorage.clear();};var st={headers:{"Content-Type":"application/json",Accept:"application/json"}},R=ot.create({baseURL:n,headers:{...st}}),it=["users/switch-segment","users/update-segment"];R.interceptors.request.use(e=>new Promise(t=>{let r=false;if(it.includes(e.url??"")){t(e);return}let n=s=>{let i=s.data;if(i==="network_request_waiting"){r=true;return}i==="resume_network_request"&&(r=false);};window.addEventListener("message",n);let o=setInterval(()=>{r||(t(e),clearInterval(o),window.removeEventListener("message",n));},0);}));R.interceptors.request.use(e=>{e.headers.Authorization=F();let t=Ie();return t&&!e.headers["x-test-secret"]&&(e.headers["x-test-secret"]=t),e});R.interceptors.response.use(e=>e,e=>(e.response?.data?.force_logout&&(Le(),window.location.href="/login"),Promise.reject(e)));function pn(e){let{sandboxMode:t,fixedSecretKey:r,applicationId:n,serviceId:o,functionId:s,userFunctionId:i,segmentId:a,...l}=e??{};return {...l,live_mode:t?"false":"true",...!!r&&{"x-test-secret":r},...!!n&&{application_id:n},...!!o&&{service_id:o},...!!s&&{function_id:s},...!!i&&{user_function_id:i}}}function fn(e){let r=(e??(typeof navigator<"u"&&navigator.userAgent?navigator.userAgent:"")).toLowerCase();if(r.includes("edg"))return "edge";if(r.includes("opr")||r.includes("opera"))return "opera";if(r.includes("chrome")&&!r.includes("edg")&&!r.includes("opr"))return "chrome";if(r.includes("safari")&&!r.includes("chrome"))return "safari";if(r.includes("firefox"))return "firefox";if(r.includes("msie")||r.includes("trident"))return "ie";if(r.includes("tor"))return "tor";if(r.includes("uc"))return "uc";if(r.includes("yandex"))return "yandex"}var xn=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),yn=e=>{let t=e??(typeof navigator<"u"&&navigator.userAgent?navigator.userAgent:"");if(!t)return;let r=t.toLowerCase();if(/ipad|tablet|playbook|silk|(android(?!.*mobile))/.test(r))return "TABLET";if(/mobile|iphone|ipod|android.*mobile|blackberry|iemobile|opera mini|windows phone/.test(r))return "MOBILE";if(/desktop|laptop|macintosh|windows|linux|unix|freebsd|openbsd|netbsd|chromeos|solaris|beos|os/.test(r))return "DESKTOP"};function Sn(){let e=["#D6D6D6","#BFF192","#E4EE92","#FDFCAB","#FFE78E","#FFCE6B","#FFBC8C","#FF947C","#C88FA3","#B988C9","#9A8BBB","#89B6FF","#ACD4E1","#ADBABE","#C0DAAA","#D5DA91","#EAE7A2","#DFCE9C","#C9A997","#858585","#000000"];return e[Math.trunc(Math.random()*e.length)]}function bn(){let e=["linear-gradient(135deg, #31D5C8 0%, #1186C5 100%)","linear-gradient(135deg, #A2E9BD 0%, #44BB74 100%)","linear-gradient(0deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.10) 100%), linear-gradient(135deg, #6BF6EB 0%, #32D6C9 100%)","linear-gradient(135deg, #61AFC9 0%, #7FBFD4 100%)","linear-gradient(135deg, #9DB7A4 0%, #7FBFD4 100%)","linear-gradient(135deg, #D7B38C 0%, #FFE09F 100%)","linear-gradient(135deg, #ADD6A2 0%, #FFDDB2 100%)"];return e[Math.trunc(Math.random()*e.length)]}var Ne={r:0,g:0,b:0,alpha:1},Dn=e=>{try{let t=Pe(e).rgb(),{r,g:n,b:o,alpha:s=1}=t.object();return {value:{r,g:n,b:o,alpha:s},stringified:`rgba(${r},${n},${o},${s})`}}catch(t){console.error(t),console.warn(`Invalid hex color: "${e}". Falling back to black.`);let{r,g:n,b:o,alpha:s}=Ne;return {value:Ne,stringified:`rgba(${r},${n},${o},${s})`}}},En=e=>Pe(e).hexa();var _n={fx:"Foreign Exchange",dcc:"Dynamic Currency Conversion"},Fe={BHD:3,KWD:3,JOD:3,OMR:3},v=new Map,On=(e,t)=>{if(Number.isNaN(e))return "0";try{return v.has(t)||v.set(t,new Intl.NumberFormat("en-US",{currency:t,minimumFractionDigits:Fe[t]?3:2})),v.get(t).format(e)}catch(r){return console.error(r),"0"}},at=e=>e%1===0,ct=e=>e%.1===0,lt=e=>Math.abs(e*10%1)===.1,In=(e,t)=>{let r=Fe[t],n=e.toString();return Number.isInteger(e)&&at(e)?n=e.toFixed(r?3:2):lt(e)?n=`${n}${r?"00":"0"}`:ct(e)&&(n=`${n}${r?"00":"0"}`),n};function ut(e,t=2){let r=parseFloat(e.toString());if(isNaN(r)){let[a,l]=0 .toFixed(t).split("."),d=`${a}.${l}`;return {integerAmount:a,decimalAmount:l,fullAmount:d}}let n=r.toFixed(t),[o,s]=n.split("."),i=parseInt(o).toLocaleString();return {integerAmount:i,decimalAmount:s,fullAmount:`${i}.${s}`}}function Ln(e=0,t=""){return ut(e,V[t]?.decimals??2)}function Pn(e){let t=e.request.currency,r=e.select.currency,n=e.merchant.currency,o=r!==n&&r===t&&t&&n&&r,s=r!==t&&t&&n&&r,i=o?"fx":void 0;i=s?"dcc":i;let a=o?e.merchant:void 0;return a=s?e.request:a,{type:i,shownAmount:a}}var Fn=e=>typeof e=="number"?e:Number(e.replace(/,/g,""));var dt=new Intl.DisplayNames(["en"],{type:"region"});function Rn(e){try{return dt.of(e)}catch(t){console.error(t?.response?.data?.error?.message);}}function vn(e){return e==="SA"}var S=e=>C(e,{sameDay:"[Today at] h:mm A",nextDay:"[Tomorrow]",lastDay:"[Yesterday]",sameElse:"MMM DD",lastWeek:"MMM DD",nextWeek:"MMM DD"}),Wn=(e,t)=>{if(!e)return "";let r=new Date,n=u(e).isSame(r,"year");return t?C(e,{sameDay:"[Today at] h:mm A",nextDay:"[Tomorrow at] h:mm A",lastDay:"[Yesterday at] h:mm A",sameElse:"[on] MMM DD [at] h:mm A",lastWeek:"[on] MMM DD [at] h:mm A",nextWeek:"[on] MMM DD [at] h:mm A"}):n?C(e,{sameDay:"[Today]",nextDay:"[Tomorrow]",lastDay:"[Yesterday]",sameElse:"[on] MMM DD",lastWeek:"[on] MMM DD",nextWeek:"[on] MMM DD"}):C(e,{sameDay:"[Today]",nextDay:"[Tomorrow]",lastDay:"[Yesterday]",sameElse:"[on] MMM DD, YYYY",lastWeek:"[on] MMM DD, YYYY",nextWeek:"[on] MMM DD, YYYY"})},Yn=e=>{let t=e?.payout,r=e?.settlement;if(!e)return {tooltip:[],status:void 0};if(!["PAID_OUT","SETTLED"].includes(e?.status||""))return {tooltip:[...r?.scheduled?[{left:"settlement_scheduled",right:`${S(r?.scheduled)}`}]:[],...t?.scheduled?[{left:"payment_scheduled",right:`${S(t?.scheduled)}`}]:[]],status:"PENDING"};if(e?.status==="PAID_OUT"){let n=t?.activities.find(o=>o.status==="PAID_OUT");return {tooltip:[{left:"paidOut",right:`${S(n?.date)}`}],status:"PAID_OUT"}}if(e?.status==="SETTLED"){let n=r?.activities.find(o=>o.status==="SETTLED");return {tooltip:[{left:"settled",right:`${S(n?.date)}`},...t?.scheduled?[{left:"payment_scheduled",right:`${S(t?.scheduled)}`}]:[]],status:"SETTLED"}}};var zn=(e,t)=>{let{isFirst:r,isLast:n}=t||{};return `${(e+0)/898*100}%`},Gn=({table:e,cellID:t,tableMode:r})=>{switch(e){case "charge":return z[t][r];case "refund":return I$1[t][r];case "authorization":return y$1[t][r];case "intents":return B[t][r];case "topups":return K[t][r];case "destinations":return A$1[t][r];case "leads":return D$1[t][r];case "orders":return E[t][r];case "tokens":return J[t][r];case "payouts":return F$1[t][r];case "protectCharges":return H[t][r];case "protectAuthorizations":return G[t][r];case "wallet":return L$1[t][r];case "invoices":return C$1[t][r];case "authentications":return x$1[t][r];case "walletDetails":return M$1[t][r];case "walletStatement":return N$1[t][r];case "merchants":return O$1[t][r];case "terminals":return P$1[t][r];case "orchestrationTerminals":return Q[t][r];case "orchestrationRouting":return R$1[t][r];default:return "100px"}},Hn=(e,t)=>{let r,n=window.innerHeight-24-264;return e?r=window.innerHeight/1.7:t?r=n-100:r=n-20,Math.floor(r/(e||t?52:70))},pt=()=>{let e=window.innerHeight*.82/1.24-57;return Math.floor(e/70)},Kn=e=>{let t=pt();return e<t+1},jn=e=>e==="default",Jn=e=>e==="sheet",qn=()=>({charge:{prefixes:["chg_","payout_","settlement_","terminal_"],accessor:e=>[e.id,e.capture?.charge?.map(t=>t.id),e.charge?.id,e.transactions?.map(t=>t.id),e.charge_id],label:"Charge",appCode:i.acceptance.code,serviceCode:i.acceptance.services.charges.code,icon:"capture"},authorize:{prefixes:["auth_"],keys:["id","authorize.id","source.id","charge.source.id"],label:"Authorization",appCode:i.acceptance.code,serviceCode:i.acceptance.services.authorization.code,icon:"capture"},intents:{prefixes:["intent_"],keys:[],label:"Intents",appCode:i.acceptance.code,serviceCode:i.acceptance.services.intents.code,icon:"capture"},refunds:{prefixes:["re_","payout_"],accessor:e=>[e?.refunds?.refund?.map(t=>t.id),e?.id,...e?.refunds?.length?[e?.refunds?.map(t=>t.id)]:[]],label:"Refunds",appCode:i.acceptance.code,serviceCode:i.acceptance.services.refunds.code,icon:"refund"},authentication:{prefixes:["auth_payer_"],keys:["authentication.id"],label:"Authentication",appCode:i.authentication.code,serviceCode:i.authentication.services.authentication.code,icon:"capture"},order:{prefixes:["order_","ord_"],keys:["order.id"],label:"Order",appCode:i.order.code,serviceCode:i.order.services.orders.code,icon:"capture"},chargeFlags:{prefixes:["flag_"],accessor:e=>e?.flags?.flag?.map(t=>t.id),label:"Flags",appCode:i.protect.code,serviceCode:i.protect.services.chargesFlags.code,icon:"flag"},authorizationFlags:{prefixes:["flag_"],accessor:e=>e?.flags?.flag?.map(t=>t.id),label:"Flags",appCode:i.protect.code,serviceCode:i.protect.services.authorizationsFlags.code,icon:"flag"},token:{prefixes:["tok_"],keys:["source.id"],label:"Token",appCode:i.tokens.code,serviceCode:i.tokens.services.tokens.code,icon:"capture"},destination:{prefixes:["trf_","payout_"],accessor:e=>[e?.destinations?.destination?.map(t=>t?.transfer?.id),e?.id],label:"Destination",appCode:i.acceptance.code,serviceCode:i.acceptance.services.destinations.code,icon:"destination"},payout:{prefixes:["payout_"],keys:["balance.payout.id"],label:"Payout",appCode:i.payouts.code,serviceCode:i.payouts.services.payouts.code,icon:"capture"},settlement:{prefixes:["settlement_"],keys:["settlement.id"],label:"Settlement",appCode:i.acceptance.code,serviceCode:i.acceptance.services.settlements.code,icon:"capture"},intent:{prefixes:["intent_"],keys:["intent.id"],label:"Intent",appCode:i.acceptance.code,serviceCode:i.acceptance.services.intents.code,icon:"capture"},topup:{prefixes:["topup_"],keys:["topup.id"],label:"Topup",appCode:i.acceptance.code,serviceCode:i.acceptance.services.topups.code,icon:"capture"}});var eo=e=>typeof e=="string"&&e.trim().length>0,k=(e,t)=>{if(!t)return e;let r=e.indexOf(t);return e.substring(r+t.length)},$=new Map,U=(e,t)=>($.has(t)||$.set(t,new RegExp(t,"gi")),e.match($.get(t))?.length??0),to=e=>e.reduce((t,r)=>(t.push(r[0]),t),[]),ro=()=>crypto?.randomUUID?.()||Math.random().toString(36).substring(2,15),no=e=>{if(navigator.clipboard)navigator.clipboard.writeText(e);else {let t=document.createElement("textarea");t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.select(),document.execCommand("copy"),t.remove();}},oo=e=>typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1),so=e=>{let[t]=e.split("%");return parseFloat(t)||0},io=e=>`\u2022\u2022\u2022 ${e.slice(-4)}`,ao=(e,t=/_/g,r=" ")=>{let n=e.replace(t,r);return Me(n)},co=e=>ke(Me(e));var uo=(e,t)=>!e?.last_four||!t?"":`${t?.toLowerCase()} - ${e?.last_four}`,mo=(e,t)=>!t||!e?"":`${e?.toLowerCase()||"ID"} \u2022 ${t?.slice(-4)}`;function go({unCapturedCode:e,unCapturedMessage:t,acquirerCode:r,acquirerMessage:n,gatewayCode:o,gatewayMessage:s}){let i=e&&t&&`${e} - ${t}`,a=r&&n&&`${r} - ${n}`,l=o&&s&&`${o} - ${s}`;return {unCapturedTooltip:i,acquirerTooltip:a,gatewayTooltip:l}}function xo(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0))}var W=e=>e==null||e==="";function yo(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>Array.isArray(t)?t.length>0&&t?.some(r=>!W(r)):typeof t=="object"?Object.values(t||{}).some(r=>!W(r)):!W(t)))}var Co=()=>q===r.TAPSTERS_FRONTEND;var bo=e=>e.replace(/[^0-9]/g,"");function Ao({rowData:e,prefixes:t,keys:r=[],accessor:n}){let o=!!n;return (o?n?.(e):r)?.filter(Boolean)?.reduce((a,l)=>{let d=o?l:Se(e,l);return typeof d=="string"&&t?.some(g=>d.includes(g)&&U(k(d,g),"_")===0)&&a.push(d),Array.isArray(d)&&d.length>0&&d.every(g=>typeof g=="string"&&t?.some(m=>g.includes(m)&&U(k(g,m),"_")===0))&&a.push(...d),a},[])}var Oo=450,Io=600;var Lo=3;var No=20,xt=(r=>(r.Index="index",r.Date="date",r))(xt||{}),Po={name:"index",label:"",selected:true,menuItems:void 0,order:0,pinned:"start",isDefaultPinned:true,pinnable:true},Fo={name:"date",label:"Date",selected:true,menuItems:void 0,order:1,pinned:"start",isDefaultPinned:true,pinnable:true},Mo={date:"Date",index:"Index"},Ro={sheet:["sheet"],default:["advanced","default"],text:["text"]},vo={sheet:"Advanced",default:"Sheet",text:"text"},yt={id:"default",label:"Default"},$o={id:"custom",label:"Custom view"},ko=[yt];function Bo(e,t,r){return e.filter(n=>{let o=n?.id?.toString(),s=t.find(m=>{let Be=m.code?.toLowerCase()===o?.toLowerCase(),Ve=m.name?.toLowerCase()===o?.toLowerCase();return (Be||Ve)&&m.selected}),i=!!n.tableViewId&&(s?.menuItems?.length||0)>0,a=s?.menuItems?.find(m=>m.name?.toLowerCase()===n.tableViewId?.toString()?.toLowerCase())?.selected,l=!!s&&(a||!i),g=["actions","action_icon",...r?["index","date"]:[]].includes(o?.toLowerCase()??"");return !!(l||g)})}function Vo(e,t){if(t.toLowerCase()==="index")return 0;let r=e.findIndex(o=>o.code?.toLowerCase()===t?.toLowerCase()),n=e[r];return r>=0?n?.sort_order??r:999}function zo(e,t,r){return e?.find(n=>{let o=n.code?.toLowerCase()===t.toLowerCase(),s=n.name?.toLowerCase()===t.toLowerCase();return o||s})?.menuItems?.find(n=>n.name?.toLowerCase()===r.toLowerCase()&&n.selected)?.selected||false}function Go(e,t){return e?.filter(r=>!!r.name?.[0]?.text)?.map(r=>({code:r.code,label:x(r.name,t),name:x(r.name,t)||"",selected:r?.selected!==false,sort_order:r.sort_order,menuItems:r.fields?.map(n=>n.parameters?.filter(o=>!!o.code)?.map(o=>({code:o.code,label:Me(o.code),name:`${o.code}`,selected:o?.selected!==false})))?.flat()?.filter(n=>!!n.name)}))||[]}function Ho(e){return e.map(t=>({...t.code?{code:t.code}:{},name:[{text:t.name,lang:"en"}],selected:t.selected,sort_order:1,sorting:"descending",fields:t.menuItems?.map(r=>({code:r.name,type:"single",parameters:[{parameter:r.name,code:r.name,selected:r.selected}]}))||[]}))}var Ko=({columnsView:e,columnsIds:t,selected:r})=>{let n=new Set(t.map(s=>s?.toLowerCase())),o=s=>({...s,selected:r,fields:s.fields?.map(i=>({...i,parameters:i.parameters?.map(a=>({...a,selected:r}))??[]}))});return e.map(s=>n.has(s.code?.toLowerCase()??"")||n.has(s.name?.[0]?.text?.toLowerCase()??"")?o(s):s)};function Jo(e){return {fullPhone:e?.number?`${e?.country_code||""} ${e?.number}`:"",code:e?.country_code||"",number:e?.number||""}}var Re=(e,t)=>{let r=e.type==="url"?e.url:window.URL.createObjectURL(new Blob([e.content])),n=document.createElement("a");n.href=r,n.setAttribute("download",t),document.body.appendChild(n),n.click(),n.remove(),e.type==="content"&&window.URL.revokeObjectURL(r);},Xo=(e,t)=>Re({type:"content",content:e},t),Zo=(e,t)=>Re({type:"url",url:e},t);var ht=e=>!!(e?.isAxiosError&&!e?.response),es=(e,t="")=>e?.response?.data?.error?.message?.trim()||t,ts=e=>!!e,Ct=e=>(e?.code==="ECONNABORTED"||e?.message?.toLowerCase().includes("timeout"))??false,rs=e=>!!(e?.response?.status===404||e?.response?.status===400&&e?.response?.data?.error?.message?.toLowerCase().includes("not found")),D=({code:e,message:t})=>e?`${t} - ${e}`:t,ns=({error:e,fallbackMessage:t})=>{if(ht(e)){let n=t??"networkError";return {code:null,message:n,formatted:D({code:null,message:n})}}if(Ct(e)){let n=t??"yourRequestOutPleaseTryAgain";return {code:null,message:n,formatted:D({code:null,message:n})}}if(e?.response&&typeof e.response.data=="object"&&"error"in e.response.data){let{code:n,message:o}=e.response.data.error;return {code:n,message:o,formatted:D({code:n,message:o})}}let r=t??"somethingWentWrong";return {code:null,message:r,formatted:D({code:null,message:r})}};var ss=(e,t)=>e.find(r=>r.code===t),is=(e,t)=>e.find(r=>r.code===t);var ls=()=>["passport","national_id","iqamah","civil_id"].map(e=>({id:e,label:Me(e)}));function ds(e,t=2){let n=e??0;if(!n)return "0 kb";let o=n/1024;return o>1024?`${(o/1024).toFixed(t)} mb`:`${o.toFixed(t)} kb`}function ms(e){return e?.file?.size!==void 0&&e?.file?.name!==void 0}var fs=e=>{let t=e?.split(".").pop()?.toLowerCase()??"";return Ha[t]??We$1},xs=(e,t,r)=>`${e}-${t}-${r}`;var Ts=e=>e?/[\u0600-\u06FF]/g.test(e):false;function hs(e,t="en"){return (e||[]).find(r=>(r?.lang||r?.locale)===t)||e?.[0]}var x=(e,t="en")=>(e||[]).find(r=>r?.lang===t)?.text,Cs=(e,t="en")=>(e||[]).find(r=>r?.lang===t);var bs=e=>{let t=e?.wallet==="SV Wallet"?"walletStoredValue":"walletPassThru";return e?.type==="Wallet"?t:e?.type},bt={AMERICAN_EXPRESS:"AMEX"},ve=e=>bt[e.toUpperCase()]??e.toUpperCase(),Ds=(e,t)=>!!e&&!!t&&ve(e)===ve(t);var ws=e=>({Local:e.success.light,Regional:e.info.light,Global:e.warning.light});var Os=(e,t)=>{if(t==null)return "";let r=fa[e];return e===ea.COUNT?t===1?r:`${r}s`:r};var p={primary:"#1F88D0",background:"white",border:"#F2F2F2",transparent:"transparent"},f={thin:"0.5px",thick:"1px",none:"0px"},$e={minHeight:"28px",fullHeight:"100%"},Ls=({isSelected:e,isCellSelected:t,isColumnSelected:r,isRowSelected:n,isLastRow:o})=>e?n?Dt():t&&!r?Et():r?wt(o):{}:{},Dt=()=>({backgroundColor:p.background,color:p.primary}),Et=()=>({border:`${f.thin} solid ${p.primary}`,backgroundColor:p.background,color:p.primary,borderRadius:"2px"}),wt=e=>{let t=At(),r=_t(e);return {borderWidth:t,borderStyle:"solid",borderColor:p.primary,borderBottom:r,height:$e.fullHeight,minHeight:$e.minHeight,display:"flex",alignItems:"center"}},At=()=>{let{none:e,thin:t}=f;return `${e} ${t} ${t} ${t}`},_t=e=>e?`${f.thick} solid ${p.primary}`:`${f.thin} solid ${p.border}`,Ns=({effectiveFirst:e,isPinnedStart:t,isPinnedEnd:r})=>({borderTop:`${f.thin} solid ${p.primary}`,borderBottom:`${f.thin} solid ${p.primary}`,borderRight:`${f.thin} solid ${r?p.primary:"none"}`,borderLeft:`${f.thin} solid ${t&&e?p.primary:"transparent"}`}),Ps={left:"flex-start",center:"center",right:"flex-end"};function Fs(e,t){return t==null?e:[e,...Array.isArray(t)?t:[t]]}function Ms(...e){return e.filter(Boolean).join(" ")||void 0}var $s=e=>U$1.find(t=>t.countryCode===e)??U$1[0],ks=e=>U$1.find(t=>t.timezone===e)??U$1[0];function zs(e){return {name:"Payment Methods",type:"payment_methods",options:e?.map(t=>({name:ke(Me(x(t?.name))),type:t?.code,icon:ga[t.code]??ga.CARD,options:t.payment_methods?.map(r=>({name:x(r.name),type:r.code}))}))}}function Gs(e=[]){return {name:"Payment Schemes",type:"payment_scheme",options:e.filter(t=>t.code).map(t=>({name:ke(Me(x(t?.name))),type:t?.code}))}}var We=["120px","180px","100px","150px","200px","140px","160px","110px","190px","130px"],Ot={id:"index",header:"",width:"34px",order:0,hidden:false,sortable:false,pinned:"start",isDefaultPinned:true,pinnable:true},It={id:"date",header:"",width:"120px",order:1,hidden:false,sortable:false,pinned:"start",isDefaultPinned:true,pinnable:true},Lt={id:"action_icon",header:"",width:"36px",order:We.length+3,hidden:false,sortable:false,pinned:"end",pinnable:true,isDefaultPinned:true},Nt=(e=We)=>{let t=e.map((r,n)=>({id:`skeleton-col-${n}`,header:"",width:r,order:n+2,hidden:false,sortable:false,pinnable:false}));return [Ot,It,...t,Lt]},Ks=(e,t,r)=>r&&t?Nt():[...e];var Js=(e,t)=>e.map(r=>{let n=Object.entries(t);if(!r.default||!r.layout?.length||!n.length)return r;let o=new Map(n.map(([i,a])=>[i.toLowerCase(),a])),s=r.layout.map(i=>({...i,columns:i.columns?.map(a=>{let l=a.code?.toLowerCase();if(!l||!o.has(l))return a;let d=o.get(l)??false;return {...a,default:d,fields:a.fields?.map(g=>({...g,default:d}))}})}));return {...r,layout:s}});var Zs=(e,t)=>t.some(r=>!!e[r]),Qs=(e,t,r)=>t?e:e.map(n=>{if(r.hiddenFilterColumnIds.includes(n.id)){let{filter:s,...i}=n,a=n.id,l=typeof i.header=="function"?Me(a):i.header;return {...i,header:l}}let{hiddenFilterOptionKeys:o}=r;if(o&&n.filter&&"options"in n.filter&&n.filter.options){let s=n.filter.options,i=s.filter(a=>!a.apiKey||!o.includes(a.apiKey));if(i.length!==s.length)return {...n,filter:{...n.filter,options:i}}}return n});typeof window<"u"&&Ye.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener noreferrer");});var Ft={USE_PROFILES:{html:true},ALLOWED_URI_REGEXP:/^(?:(?:https?|mailto|tel|blob):|[^a-z]|[-a-z.+]+(?:[^-a-z.+:]|$))/i,WHOLE_DOCUMENT:true},ri=e=>typeof window>"u"?"":String(Ye.sanitize(e||"",Ft));var oi=e=>window?.__TAPOS_NEWRELIC_TRACKING_EVENTS__?.trackFeatureEvent?.(e),si=e=>e.toISOString();function ai(e,t){let r=e.replace(/:/g,"");return t?`${t}-${r}`:r}function Mt(e){return e!=null&&e!==""}function li(e,t){let r=e!=null,n=t&&"message"in t?t.message:e?.message,o=Mt(n);return {isProvided:r,isVisible:o,type:o?e?.type:void 0}}export{Yr as $,ro as $a,x as $b,fr as A,bn as Aa,$o as Ab,li as Ac,be as B,Dn as Ba,ko as Bb,xr as C,En as Ca,Bo as Cb,yr as D,_n as Da,Vo as Db,Tr as E,Fe as Ea,zo as Eb,hr as F,On as Fa,Go as Fb,Cr as G,In as Ga,Ho as Gb,Sr as H,ut as Ha,Ko as Hb,br as I,Ln as Ia,Jo as Ib,Dr as J,Pn as Ja,Re as Jb,we as K,Fn as Ka,Xo as Kb,et as L,Rn as La,Zo as Lb,tt as M,vn as Ma,ht as Mb,_r as N,S as Na,es as Nb,Pr as O,Wn as Oa,ts as Ob,Ie as P,Yn as Pa,Ct as Pb,Fr as Q,zn as Qa,rs as Qb,Mr as R,Gn as Ra,ns as Rb,Rr as S,Hn as Sa,ss as Sb,vr as T,Kn as Ta,is as Tb,F as U,jn as Ua,ls as Ub,$r as V,Jn as Va,ds as Vb,kr as W,qn as Wa,ms as Wb,M as X,eo as Xa,fs as Xb,Ur as Y,k as Ya,xs as Yb,Wr as Z,U as Za,Ts as Zb,nt as _,to as _a,hs as _b,$t as a,Br as aa,no as ab,Cs as ac,kt as b,Vr as ba,oo as bb,bs as bc,Ut as c,zr as ca,so as cb,Ds as cc,Wt as d,Gr as da,io as db,ws as dc,Bt as e,Hr as ea,ao as eb,Os as ec,Vt as f,Kr as fa,co as fb,p as fc,zt as g,jr as ga,uo as gb,Ls as gc,He as h,Jr as ha,mo as hb,Ns as hc,Gt as i,qr as ia,go as ib,Ps as ic,Ht as j,Xr as ja,xo as jb,Fs as jc,y as k,Zr as ka,W as kb,Ms as kc,Kt as l,Qr as la,yo as lb,$s as lc,h as m,en as ma,Co as mb,ks as mc,or as n,tn as na,bo as nb,zs as nc,sr as o,rn as oa,Ao as ob,Gs as oc,ir as p,nn as pa,Oo as pb,We as pc,ar as q,on as qa,Io as qb,Nt as qc,cr as r,sn as ra,Lo as rb,Ks as rc,lr as s,an as sa,No as sb,Js as sc,ur as t,Le as ta,xt as tb,Zs as tc,dr as u,R as ua,Po as ub,Qs as uc,mr as v,pn as va,Fo as vb,ri as vc,De as w,fn as wa,Mo as wb,oi as wc,C as x,xn as xa,Ro as xb,si as xc,pr as y,yn as ya,vo as yb,ai as yc,gr as z,Sn as za,yt as zb,Mt as zc};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {yc}from'./chunk-
|
|
1
|
+
import {yc}from'./chunk-W6W4YZ7G.js';import {memo,useId}from'react';import a from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var o=styled(a)(()=>({flex:1,position:"relative",display:"flex",flexDirection:"column",height:"100%"}));function e({children:p,...r}){let s=yc(useId(),"list-layout");return jsx(o,{id:s,component:"article","data-testid":"ListLayout",...r,children:p})}e.displayName="ListLayout";var i=memo(e);var C=i;export{C as a};
|