@tap-payments/os-micro-frontend-shared 0.3.39 → 0.3.41-test.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/_chunks/{chunk-AJVZK5T5.js → chunk-2LHTA64I.js} +1 -1
- package/build/_chunks/{chunk-P37RYOJW.js → chunk-2N7C43B5.js} +1 -1
- package/build/_chunks/{chunk-WS7EHNFE.js → chunk-2WRYLGXE.js} +1 -1
- package/build/_chunks/{chunk-NUB35BS5.js → chunk-3DVXZVAD.js} +1 -1
- package/build/_chunks/{chunk-DU4WILJE.js → chunk-3ENQ6ZB2.js} +1 -1
- package/build/_chunks/{chunk-PRALNONH.js → chunk-3LGSENPU.js} +1 -1
- package/build/_chunks/chunk-4FITQL3E.js +1 -0
- package/build/_chunks/{chunk-55Y5JZSW.js → chunk-4FM4AJNQ.js} +1 -1
- package/build/_chunks/{chunk-NCB4ZE2Q.js → chunk-54CUAOPI.js} +1 -1
- package/build/_chunks/{chunk-CW3PX3MJ.js → chunk-5PRCEVBW.js} +1 -1
- package/build/_chunks/{chunk-F5A4P7NM.js → chunk-5Q5JNBWU.js} +1 -1
- package/build/_chunks/{chunk-MEWGN3RQ.js → chunk-5VD6ILKM.js} +1 -1
- package/build/_chunks/{chunk-FLYJ436H.js → chunk-67WBFAIB.js} +1 -1
- package/build/_chunks/{chunk-ZHXCRQM2.js → chunk-6FFKMPUA.js} +1 -1
- package/build/_chunks/{chunk-AWJMELRN.js → chunk-6GLYU7BG.js} +1 -1
- package/build/_chunks/{chunk-O6YEG23R.js → chunk-6MUD4YHP.js} +1 -1
- package/build/_chunks/{chunk-HC7WHE7M.js → chunk-6UXEK5HE.js} +1 -1
- package/build/_chunks/{chunk-J2VRPJRB.js → chunk-6Y4HNVOR.js} +1 -1
- package/build/_chunks/{chunk-NGD3T4DC.js → chunk-6YBH2DMM.js} +1 -1
- package/build/_chunks/{chunk-6HPHRTSG.js → chunk-6YUXDXTF.js} +1 -1
- package/build/_chunks/{chunk-WPGDLFWS.js → chunk-7AHFI7ZX.js} +1 -1
- package/build/_chunks/{chunk-7B2FRRRI.js → chunk-7DIVF5KI.js} +1 -1
- package/build/_chunks/{chunk-WL4B2ZSK.js → chunk-7NXWZMCQ.js} +1 -1
- package/build/_chunks/{chunk-MH3PHXU4.js → chunk-7W77TYCP.js} +1 -1
- package/build/_chunks/{chunk-5CVP7UHB.js → chunk-AMMWA7ZC.js} +1 -1
- package/build/_chunks/{chunk-MIZ2W4YF.js → chunk-ASGUYSWV.js} +1 -1
- package/build/_chunks/{chunk-QRIVUSHJ.js → chunk-ASKX2Q3M.js} +1 -1
- package/build/_chunks/{chunk-OTQLFUDS.js → chunk-AU6KEFRV.js} +1 -1
- package/build/_chunks/chunk-B2JRH27J.js +1 -0
- package/build/_chunks/{chunk-UHUT65RB.js → chunk-BGYWBWKQ.js} +1 -1
- package/build/_chunks/{chunk-AHKZYNFC.js → chunk-BNWGGFIV.js} +1 -1
- package/build/_chunks/{chunk-EGIAXPM6.js → chunk-CFQNHKKB.js} +1 -1
- package/build/_chunks/{chunk-BNHJPYBI.js → chunk-CKMRL2CA.js} +1 -1
- package/build/_chunks/{chunk-EWAOFKBQ.js → chunk-CSZ2OR4M.js} +1 -1
- package/build/_chunks/{chunk-RENOZ7NM.js → chunk-DTQDFFVT.js} +1 -1
- package/build/_chunks/{chunk-KLJYL5XA.js → chunk-ER7TIFHE.js} +1 -1
- package/build/_chunks/chunk-EW7LNXJG.js +1 -0
- package/build/_chunks/{chunk-UC66CU45.js → chunk-EZMHAD3T.js} +1 -1
- package/build/_chunks/{chunk-VBDBPJ6A.js → chunk-FDN3KSOE.js} +1 -1
- package/build/_chunks/{chunk-P4TQ24MF.js → chunk-FXN3NFYU.js} +1 -1
- package/build/_chunks/{chunk-ER66NQ2X.js → chunk-GBBCSYEP.js} +1 -1
- package/build/_chunks/{chunk-UDTRZUQL.js → chunk-GFBN2CG2.js} +1 -1
- package/build/_chunks/chunk-GIROE252.js +2 -0
- package/build/_chunks/chunk-GKLSVCQU.js +2 -0
- package/build/_chunks/{chunk-AW3ILDEO.js → chunk-HD4GLT2I.js} +2 -2
- package/build/_chunks/{chunk-HJFHOPWU.js → chunk-HD6UWTBZ.js} +1 -1
- package/build/_chunks/chunk-HRRTUP6T.js +1 -0
- package/build/_chunks/{chunk-HCO2FZKF.js → chunk-ICD3ZSIO.js} +1 -1
- package/build/_chunks/{chunk-XUOSECWP.js → chunk-IN5KJTKO.js} +1 -1
- package/build/_chunks/{chunk-EMXCLBWT.js → chunk-IT4BXYEH.js} +1 -1
- package/build/_chunks/{chunk-ZONG4FCE.js → chunk-IU4HZNY2.js} +1 -1
- package/build/_chunks/{chunk-A7IDM5R6.js → chunk-IUWYP3DR.js} +1 -1
- package/build/_chunks/{chunk-YWMPDGZ3.js → chunk-J3UFF57O.js} +1 -1
- package/build/_chunks/{chunk-U3KQLP32.js → chunk-JDF3VCDC.js} +1 -1
- package/build/_chunks/{chunk-SOJRPME6.js → chunk-JGWDDGIU.js} +1 -1
- package/build/_chunks/{chunk-R5LCSECF.js → chunk-JNROHX73.js} +1 -1
- package/build/_chunks/{chunk-PB3ZRY6U.js → chunk-KYMKMMEY.js} +1 -1
- package/build/_chunks/{chunk-6TBC5ZFW.js → chunk-L35OX7XE.js} +1 -1
- package/build/_chunks/{chunk-6YBJRXXJ.js → chunk-L6VLX37S.js} +1 -1
- package/build/_chunks/{chunk-VRAGDMAQ.js → chunk-LE2OTZNZ.js} +1 -1
- package/build/_chunks/{chunk-PWN3QZBX.js → chunk-LI3P2UVP.js} +1 -1
- package/build/_chunks/{chunk-JM7JGI5D.js → chunk-LZDX4T7W.js} +1 -1
- package/build/_chunks/{chunk-EVJ7I7KT.js → chunk-MAUJE6EM.js} +1 -1
- package/build/_chunks/chunk-NF3VSGBM.js +1 -0
- package/build/_chunks/{chunk-PKN6JRU3.js → chunk-NLNVAGOT.js} +1 -1
- package/build/_chunks/{chunk-V5UEYSM5.js → chunk-NWF6QYVV.js} +1 -1
- package/build/_chunks/{chunk-LYEN4LAJ.js → chunk-O3ZPU35M.js} +1 -1
- package/build/_chunks/{chunk-SNEXYGFV.js → chunk-OA2CZW47.js} +1 -1
- package/build/_chunks/{chunk-A7BYIGKD.js → chunk-OWKV6CST.js} +1 -1
- package/build/_chunks/{chunk-JPSWQQN6.js → chunk-P2RO6ITI.js} +1 -1
- package/build/_chunks/{chunk-ZDUBBHB5.js → chunk-PGHZBKKO.js} +1 -1
- package/build/_chunks/chunk-PPRDCADM.js +1 -0
- package/build/_chunks/{chunk-ALV6DTFX.js → chunk-PVILLHD4.js} +1 -1
- package/build/_chunks/{chunk-7Q5JHJMB.js → chunk-Q4AFQ6PC.js} +1 -1
- package/build/_chunks/{chunk-BIRJZLQQ.js → chunk-Q5PLP2P4.js} +1 -1
- package/build/_chunks/{chunk-KNP2Q2XT.js → chunk-QU4P67LD.js} +1 -1
- package/build/_chunks/{chunk-L7KNDQIN.js → chunk-R22EY3MU.js} +1 -1
- package/build/_chunks/{chunk-RPVOGNSF.js → chunk-RB7PNED7.js} +1 -1
- package/build/_chunks/{chunk-I7BXAQZS.js → chunk-RDVP5SOG.js} +1 -1
- package/build/_chunks/{chunk-EGGEELUP.js → chunk-RHHIMOJY.js} +1 -1
- package/build/_chunks/{chunk-EVDEPVIW.js → chunk-RJY2P4YM.js} +1 -1
- package/build/_chunks/{chunk-A5BRE7MI.js → chunk-RZNIJZF2.js} +1 -1
- package/build/_chunks/{chunk-AEF4XWQU.js → chunk-SJWYU6GP.js} +1 -1
- package/build/_chunks/{chunk-QVU7E6R3.js → chunk-SQUEHQDS.js} +1 -1
- package/build/_chunks/{chunk-2ZQWIYKE.js → chunk-SXAMDTL4.js} +1 -1
- package/build/_chunks/{chunk-DHR22HF5.js → chunk-TB3VHS4Z.js} +1 -1
- package/build/_chunks/{chunk-OP35J26Q.js → chunk-TJIJ6Z4Q.js} +1 -1
- package/build/_chunks/{chunk-GKHOITZE.js → chunk-TMP3ETGZ.js} +1 -1
- package/build/_chunks/{chunk-4IN4MNIL.js → chunk-TSYI73JN.js} +1 -1
- package/build/_chunks/{chunk-F5YEURPO.js → chunk-TTMIYNSA.js} +1 -1
- package/build/_chunks/{chunk-E35LKQ6G.js → chunk-UIN3S2CY.js} +1 -1
- package/build/_chunks/chunk-UNW2TUYC.js +1 -0
- package/build/_chunks/{chunk-VC4ZL3AU.js → chunk-USGA3AKD.js} +1 -1
- package/build/_chunks/{chunk-LQCRTVTV.js → chunk-VHPDTTMV.js} +1 -1
- package/build/_chunks/{chunk-44OIHCXG.js → chunk-VOHQMRMX.js} +1 -1
- package/build/_chunks/{chunk-7ECPGY56.js → chunk-WF33Q4MJ.js} +1 -1
- package/build/_chunks/{chunk-VRMS7VG4.js → chunk-WJ3JPCZ5.js} +1 -1
- package/build/_chunks/{chunk-COAYA7GT.js → chunk-WKXP3JXD.js} +1 -1
- package/build/_chunks/chunk-WUBPM67I.js +1 -0
- package/build/_chunks/{chunk-EHUMBCRZ.js → chunk-XEVF5HUV.js} +1 -1
- package/build/_chunks/{chunk-D6CBA46N.js → chunk-XFEB34LQ.js} +1 -1
- package/build/_chunks/{chunk-ITRIODTY.js → chunk-XSZAO4RN.js} +1 -1
- package/build/_chunks/{chunk-DWELXSQ2.js → chunk-XYKSXN3I.js} +1 -1
- package/build/_chunks/{chunk-X6OKY5JJ.js → chunk-Y4DQQKU6.js} +1 -1
- package/build/_chunks/{chunk-4METKSOV.js → chunk-YGMD6OOD.js} +1 -1
- package/build/_chunks/{chunk-WH457HQP.js → chunk-YGTAFWD4.js} +1 -1
- package/build/_chunks/{chunk-AG7327OT.js → chunk-YHKP64BF.js} +1 -1
- package/build/_chunks/{chunk-L5W3FQGI.js → chunk-YKI5NNXR.js} +1 -1
- package/build/_chunks/{chunk-FIXHFGQM.js → chunk-YY6VLE4L.js} +1 -1
- package/build/components/Accordion/index.js +1 -1
- package/build/components/AccountDropdown/index.js +1 -1
- package/build/components/ActionMenu/index.js +1 -1
- package/build/components/ActionsDropdownMenu/index.js +1 -1
- package/build/components/ActiveFilterChip/index.js +1 -1
- package/build/components/ActivityAreaChart/index.js +1 -1
- package/build/components/Amount/index.js +1 -1
- package/build/components/AmountConversionFilter/index.js +1 -1
- package/build/components/AmountInput/index.js +1 -1
- package/build/components/AmountSlider/index.js +1 -1
- package/build/components/AmountStatusChip/index.js +1 -1
- package/build/components/AnimatedSpinnerIcon/index.js +1 -1
- package/build/components/AppServices/index.js +1 -1
- package/build/components/AppServicesBar/index.js +1 -1
- package/build/components/AppWindowWrapper/index.js +1 -1
- package/build/components/AuthenticationTypeChip/index.js +1 -1
- package/build/components/Autocomplete/index.js +1 -1
- package/build/components/BetaBanner/index.js +1 -1
- package/build/components/BrandLogo/index.js +1 -1
- package/build/components/Button/index.js +1 -1
- package/build/components/Calender/index.js +1 -1
- package/build/components/CardEmptyState/index.js +1 -1
- package/build/components/Checkbox/index.js +1 -1
- package/build/components/Chip/index.js +1 -1
- package/build/components/ChipStack/index.js +1 -1
- package/build/components/CircularProgressWithLabel/index.js +1 -1
- package/build/components/Collapse/index.js +1 -1
- package/build/components/ColorPicker/index.js +1 -1
- package/build/components/ColumnViews/index.js +1 -1
- package/build/components/ConfirmDialog/index.js +1 -1
- package/build/components/CopyImage/index.js +1 -1
- package/build/components/CountBadge/index.js +1 -1
- package/build/components/CountryFilter/index.js +1 -1
- package/build/components/CountryFlag/index.js +1 -1
- package/build/components/CurrencyAmount/index.js +1 -1
- package/build/components/CurrencyFilter/index.js +1 -1
- package/build/components/CurrencySymbol/index.js +1 -1
- package/build/components/CustomBackdrop/index.js +1 -1
- package/build/components/Customer/index.js +1 -1
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/DeviceIcon/index.js +1 -1
- package/build/components/Dialog/index.js +1 -1
- package/build/components/Discount/index.js +1 -1
- package/build/components/DisplayAmount/index.js +1 -1
- package/build/components/Dropdown2/index.js +1 -1
- package/build/components/DropdownButton/index.js +1 -1
- package/build/components/DropdownMenu/index.js +1 -1
- package/build/components/Error/index.js +1 -1
- package/build/components/ErrorToast/index.js +1 -1
- package/build/components/ExpandableSideBar/index.js +1 -1
- package/build/components/FieldFeedback/index.js +1 -1
- package/build/components/FileInputPreview/index.js +1 -1
- package/build/components/FilePreview/index.js +1 -1
- package/build/components/FileUpload/index.js +1 -1
- package/build/components/FileUploader/index.js +1 -1
- package/build/components/FilterDropdown/components/MerchantsFilterItem/utils.d.ts +2 -0
- package/build/components/FilterDropdown/index.js +1 -1
- package/build/components/Filters/index.js +1 -1
- package/build/components/FlagDetails/index.js +1 -1
- package/build/components/FlippingCard/index.js +1 -1
- package/build/components/HeatMap/index.js +1 -1
- package/build/components/IOSSwitch/index.js +1 -1
- package/build/components/Icon/index.js +1 -1
- package/build/components/IconWithBadge/index.js +1 -1
- package/build/components/Input/index.js +1 -1
- package/build/components/InputBase/index.js +1 -1
- package/build/components/InputNumber/index.js +1 -1
- package/build/components/Inputs/index.js +1 -1
- package/build/components/JSONViewer/index.js +1 -1
- package/build/components/LanguageDropdown/index.js +1 -1
- package/build/components/LazyImage/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/ProgressBar/index.js +1 -1
- package/build/components/ProgressRing/index.js +1 -1
- package/build/components/RFH/index.js +1 -1
- package/build/components/RadioButton/index.js +1 -1
- package/build/components/RadioGroup/index.js +1 -1
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/ReceiptsViewer/index.js +1 -1
- package/build/components/ReferenceTypeFilter/index.js +1 -1
- package/build/components/ResizableHeightInput/index.js +1 -1
- package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
- package/build/components/SalesChannelFilter/index.js +1 -1
- package/build/components/ScrollLoader/index.js +1 -1
- package/build/components/SearchButton/index.js +1 -1
- package/build/components/SearchListInput/index.js +1 -1
- package/build/components/SelectDropdown/index.js +1 -1
- package/build/components/SelectWithSearch/index.js +1 -1
- package/build/components/SimpleDialog/index.js +1 -1
- package/build/components/Skeleton/index.js +1 -1
- package/build/components/Slider/index.js +1 -1
- package/build/components/StatusBar/index.js +1 -1
- package/build/components/StatusButton/index.js +1 -1
- package/build/components/StatusChip/index.js +1 -1
- package/build/components/StatusChipWithCopy/index.js +1 -1
- package/build/components/StatusFilter/index.js +1 -1
- package/build/components/StatusGroupChips/index.js +1 -1
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/StatusLabel/index.js +1 -1
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TableReports/index.js +1 -1
- package/build/components/Timepicker/index.js +1 -1
- package/build/components/Toaster/index.js +1 -1
- package/build/components/ToggleButtons/index.js +1 -1
- package/build/components/ToggleView/index.js +1 -1
- package/build/components/Toolbar/index.js +1 -1
- package/build/components/ToolbarIcon/index.js +1 -1
- package/build/components/TooltipChip/index.js +1 -1
- package/build/components/TreeDropdown/hooks/useSearch.d.ts +1 -0
- package/build/components/TreeDropdown/index.js +1 -1
- package/build/components/TreeDropdown/type.d.ts +8 -2
- package/build/components/VAT/index.js +1 -1
- package/build/components/VerificationIcon/index.js +1 -1
- package/build/components/ViewColumnRadioFilter/index.js +1 -1
- package/build/components/VirtualTables/index.js +1 -1
- package/build/components/Widget/index.js +1 -1
- package/build/components/Window/index.js +1 -1
- package/build/components/WindowAppIcon/index.js +1 -1
- package/build/components/WindowBackdrop/index.js +1 -1
- package/build/components/WindowSideBar/index.js +1 -1
- package/build/components/_v2/index.js +1 -1
- package/build/components/index.js +1 -1
- package/build/constants/assets.d.ts +45 -24
- package/build/constants/index.js +1 -1
- package/build/constants/segment.d.ts +4 -0
- package/build/hooks/index.js +1 -1
- package/build/index.js +1 -1
- package/build/utils/index.js +1 -1
- package/package.json +3 -3
- package/build/_chunks/chunk-3JUTMTQV.js +0 -2
- package/build/_chunks/chunk-ATSYOVOS.js +0 -1
- package/build/_chunks/chunk-DIFTS5M3.js +0 -1
- package/build/_chunks/chunk-DLDCKIQA.js +0 -1
- package/build/_chunks/chunk-EB53IZK7.js +0 -2
- package/build/_chunks/chunk-GH7TAMPJ.js +0 -1
- package/build/_chunks/chunk-GJ4TSAZ7.js +0 -1
- package/build/_chunks/chunk-JKOFVMQP.js +0 -1
- package/build/_chunks/chunk-ZNGOSTYQ.js +0 -1
- package/build/_chunks/chunk-ZXAC3YAM.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-NWF6QYVV.js';import {a as a$2}from'./chunk-5VD6ILKM.js';import {a}from'./chunk-GNY2VGGW.js';import {Jc,Ta}from'./chunk-B2JRH27J.js';import {Hk,Ik}from'./chunk-GIROE252.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=Jc(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=Ta(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=Ta(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:Hk,alt:"arrow"})}),jsx(h,{value:i(s),onChange:Q}),jsx(d,{onClick:v,children:jsx("img",{src:Ik,alt:"arrow"})})]}),jsx(a,{children:":"}),jsxs(k,{children:[jsx(d,{onClick:X,children:jsx("img",{src:Hk,alt:"arrow"})}),jsx(h,{value:i(u),onChange:V}),jsx(d,{onClick:Y,children:jsx("img",{src:Ik,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 {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-B2JRH27J.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=Jc(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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {c as c$2}from'./chunk-3ENQ6ZB2.js';import {a,c as c$1,d as d$1}from'./chunk-6MUD4YHP.js';import {c,d}from'./chunk-YHKP64BF.js';import {b,a as a$1}from'./chunk-WKXP3JXD.js';import {Jc,Ga}from'./chunk-B2JRH27J.js';import {ra,Hk,Ik,_h,lk,A,Rd,te,se as se$1,qa,oa,pa}from'./chunk-GIROE252.js';import ho,{memo,createContext,useState,useRef,useId,useMemo,useEffect,useCallback,useContext}from'react';import {styled,Popover,Input,Typography,Box,Dialog}from'@mui/material';import R from'@uiw/react-json-view';import {motion,AnimatePresence}from'framer-motion';import {Resizable}from're-resizable';import jo from'react-draggable';import yo from'@mui/material/Box';import {useTranslation}from'react-i18next';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {styled as styled$1}from'@mui/material/styles';var I=37,Re="32px",J=545;styled(Popover)(({theme:e})=>({backgroundColor:e.palette.background.default,boxShadow:e.shadows[21],"& .MuiPaper-root":{borderRadius:"12px"}}));var go=44,Ie={"--w-rjv-color":"#9cdcfe","--w-rjv-key-string":"#357fb9","--w-rjv-background-color":"#ffffff","--w-rjv-line-color":"#ffffff","--w-rjv-arrow-color":"#116e6bed","--w-rjv-edit-color":"#9cdcfe","--w-rjv-info-color":"#9c9c9c7a","--w-rjv-update-color":"#FFE20B","--w-rjv-copied-color":"#9cdcfe","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#000000","--w-rjv-colon-color":"#000000","--w-rjv-brackets-color":"#000000","--w-rjv-quotes-color":"#9cdcfe","--w-rjv-quotes-string-color":"#c27c46","--w-rjv-type-string-color":"#c27c46","--w-rjv-type-int-color":"#956ea5","--w-rjv-type-float-color":"#956ea5","--w-rjv-type-bigint-color":"#956ea5","--w-rjv-type-boolean-color":"#956ea5","--w-rjv-type-date-color":"#956ea5","--w-rjv-type-url-color":"#3b89cf","--w-rjv-type-null-color":"#956ea5","--w-rjv-type-nan-color":"#956ea5","--w-rjv-type-undefined-color":"#956ea5",padding:"1rem",height:`calc(100% - ${go+I}px`,overflow:"auto"},gt={...Ie,background:"transparent","--w-rjv-line-color":"transparent"},ht=styled("button")(({theme:e})=>({padding:"0rem",borderRadius:"0.25rem",backgroundColor:e.palette.background.paper,display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem",color:e.palette.text.primary,fontSize:"0.625rem",fontWeight:e.typography.fontWeightBold,outline:"none",cursor:"pointer",border:`1px solid ${e.palette.grey[100]}`,"&:hover":{boxShadow:"0px 0px 8px 0px rgba(31, 136, 208, 0.30)",border:`1px solid ${e.palette.info.dark};`},position:"relative",overflow:"hidden",transition:"all 0.2s ease-in-out",width:"24px",height:"24px",flexShrink:0})),Je=styled("button")(({theme:e})=>({outline:"none",cursor:"pointer",border:"1px solid transparent","&:hover":{boxShadow:e.shadows[8]},borderRadius:"0.25rem",position:"relative",backgroundColor:e.palette.background.transparent,display:"inline-flex",alignItems:"center",justifyContent:"center"}));styled(Input)(({theme:e})=>({border:`1px solid ${e.palette.grey[100]}`,borderRadius:"0.25rem",padding:"0.375rem",fontSize:"0.625rem",outline:"none",width:"100%",maxWidth:"150px",height:"1.5rem",backgroundColor:e.palette.background.paper,"&:focus":{border:`1px solid ${e.palette.info.dark}`}}));var ke=styled(Typography)(()=>({border:"1px solid rgba(242, 242, 242, 0.70);",display:"inline-flex",height:"24px",padding:"0px 8px",justifyContent:"center",alignItems:"center",borderRadius:"37.5px",backgroundColor:"#fff"})),Be=styled(Box,{shouldForwardProp:e=>!["isMaximized","isScrollingRequest","isRequestShown"].includes(e)})(({isScrollingRequest:e,isMaximized:t,isRequestShown:i,theme:o})=>({display:"flex",justifyContent:"space-between",alignItems:"center",gap:"4px",paddingBlock:"0px",paddingInlineStart:"12px",paddingInlineEnd:"12px",position:"sticky",left:0,right:0,top:0,background:"#fff",zIndex:5,...e&&{boxShadow:o.shadows[23]},...t&&{paddingTop:Re,transition:"padding 0.3s ease-in-out",...i&&{width:"50%"}}})),Te=styled(Box,{shouldForwardProp:e=>!["isMaximized","isRequestShown"].includes(e)})(({isMaximized:e,isRequestShown:t})=>({display:"flex",justifyContent:"space-between",alignItems:"center",gap:"8px",height:I,position:"fixed",bottom:0,right:0,left:e?"50vw":0,...!t&&{left:0}})),Pe=styled(Box)(()=>({display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"4px",paddingBlock:"10px",paddingInlineStart:"8px",paddingInlineEnd:"0px"})),Ee=styled(Box)(()=>({display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"4px",paddingBlock:"10px",paddingInlineStart:"0px",paddingInlineEnd:"12px"})),xt=styled(motion.div,{shouldForwardProp:e=>!["isRequestShown","isMaximized"].includes(e)})(({isRequestShown:e,isMaximized:t})=>({width:"100%",height:"100%",overflowY:"auto",overflowX:"hidden",background:"#fff",zIndex:20,position:"relative",display:"flex",flexDirection:"column",borderBottomRightRadius:"12px",borderBottomLeftRadius:e?0:"12px",...t&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,height:"100vh"}}));styled(motion.div,{shouldForwardProp:e=>!["isMaximized","currentRequestWidth"].includes(e)})(({isMaximized:e,currentRequestWidth:t})=>({backgroundColor:"#E7E7E7B2",backdropFilter:"blur(12px)",height:e?"100vh":"100%",overflowY:"auto",overflowX:"hidden",position:"absolute",width:e?"100vw":t,zIndex:19,display:"flex",flexDirection:"column",borderBottomLeftRadius:"12px"}));styled(Box,{shouldForwardProp:e=>!["isMaximized","currentHeight"].includes(e)})(({isMaximized:e,currentHeight:t})=>({display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start",height:e?`calc(100vh - ${I}px)`:(t||J)-I+5,background:"transparent",position:"fixed",width:"100%"}));var yt=styled(Box)(()=>({position:"fixed",width:"100%",background:"transparent",height:"100%"})),wt=styled("span")(()=>({color:"#032F62"})),bt=styled("span")(()=>({color:"#357fb9"}));function bo({onClick:e,icon:t,label:i,disableAnimation:o,...n}){let[s,l]=ho.useState(false),{t:d}=useTranslation();return jsxs(ht,{...n,onClick:u=>{e?.(u),!o&&(l(true),setTimeout(()=>{l(false);},2e3));},children:[jsxs(yo,{sx:{width:"16px",display:"flex",overflow:"hidden",justifyContent:"center",alignItems:"center"},children:[jsx(AnimatePresence,{mode:"wait",children:s&&jsx(motion.img,{initial:{opacity:0},animate:{opacity:1,transition:{duration:.4}},exit:{opacity:0,transition:{duration:.1}},transition:{duration:.4},src:ra,alt:"icon"},"id-icon")}),jsx(AnimatePresence,{mode:"wait",children:!s&&jsx(motion.img,{initial:{opacity:0},animate:{opacity:1,transition:{duration:.4}},exit:{opacity:0,transition:{duration:.1}},transition:{duration:.4},src:t,alt:"icon"},"id-icon")})]}),i&&jsxs(Fragment,{children:[jsx(AnimatePresence,{children:s&&jsx(motion.span,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,position:"absolute"},transition:{duration:.4},children:d("copied")})}),jsx(AnimatePresence,{children:!s&&jsx(motion.span,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,position:"absolute",width:"53px"},transition:{duration:.4},children:i})})]})]})}var St=memo(bo);var H=St;var vt=styled$1("div")(()=>({display:"flex",alignItems:"center",position:"relative",flexShrink:0,width:"24px",height:"24px"})),Ct=styled$1("button")(({theme:e,isActive:t})=>({width:"24px",height:"24px",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",border:`1px solid ${t?e.palette.info.dark:e.palette.grey[100]}`,backgroundColor:e.palette.background.paper,cursor:"pointer",outline:"none",padding:0,position:"relative",zIndex:11,transition:"all 0.2s ease-in-out","&:hover":{boxShadow:"0px 0px 8px 0px rgba(31, 136, 208, 0.30)",border:`1px solid ${e.palette.info.dark}`}})),Rt=styled$1(motion.div)(()=>({position:"absolute",right:0,top:0,height:"24px",display:"flex",alignItems:"center",zIndex:20,background:"transparent"})),It=styled$1(motion.input)(({theme:e})=>({width:"177px",height:"24px",borderRadius:"4px",color:e.palette.text.primary,fontSize:"10px",outline:0,background:e.palette.background.paper,boxShadow:"0px 0px 8px 0px rgba(31, 136, 208, 0.30)",border:`1px solid ${e.palette.info.dark}`,paddingLeft:"8px",boxSizing:"border-box","::placeholder":{color:"#D5D5D5"}})),Oe={position:"absolute",top:"50%",transform:"translateY(-50%)",zIndex:2,userSelect:"none"},Jt={...Oe,background:"none",border:"none",padding:0,margin:0,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",outline:"none","&:disabled":{opacity:.3,cursor:"default"}},kt=styled$1("button")(()=>({...Jt,right:53})),Bt=styled$1("button")(()=>({...Jt,right:39})),Tt=styled$1(motion.img)(()=>({...Oe,right:24,width:10,height:10,cursor:"pointer"})),Pt=styled$1(motion.img)(()=>({...Oe,right:8,width:11,height:11,cursor:"default"})),Ve=styled$1("img")(()=>({width:10,height:10})),Et=styled$1("img")(()=>({width:12,height:12})),Ht=styled$1("span")(({theme:e})=>({position:"absolute",right:67,top:"50%",transform:"translateY(-50%)",fontSize:"9px",lineHeight:1,color:e.palette.text.secondary,whiteSpace:"nowrap",userSelect:"none",zIndex:2,pointerEvents:"none"}));function Jo({value:e,onChange:t,currentIndex:i,totalCount:o,onPrev:n,onNext:s,onOpen:l,placeholder:d="Search..."}){let[p,u]=useState(false),w=useRef(null),S=e.trim().length>0,k=o>0,a=S,N=()=>{l?.(),u(true),requestAnimationFrame(()=>w.current?.focus());},f=()=>{t(""),u(false);};return jsxs(vt,{children:[jsx(AnimatePresence,{children:p&&jsxs(Rt,{initial:{clipPath:"inset(0 0 0 100%)",opacity:0},animate:{clipPath:"inset(0 0 0 0%)",opacity:1},exit:{clipPath:"inset(0 0 0 100%)",opacity:0},transition:{duration:.22,ease:[.4,0,.2,1]},children:[jsx(It,{ref:w,initial:false,animate:{paddingRight:a?"98px":"24px"},transition:{duration:.15},placeholder:d,value:e,onChange:v=>t(v.target.value),onKeyDown:v=>{v.key==="Enter"&&(v.shiftKey?n():s()),v.key==="Escape"&&f();},onBlur:()=>{S||u(false);}}),a&&jsx(kt,{onClick:n,disabled:!k,title:"Previous match (Shift+Enter)",children:jsx(Ve,{src:Hk,alt:"prev"})}),a&&jsx(Bt,{onClick:s,disabled:!k,title:"Next match (Enter)",children:jsx(Ve,{src:Ik,alt:"next"})}),a&&jsx(Tt,{src:_h,alt:"clear",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:f}),jsx(Pt,{src:lk,alt:"search",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}}),a&&jsx(Ht,{children:k?`${i+1}/${o}`:"0/0"})]},"input-area")}),jsx(AnimatePresence,{children:!p&&jsx(motion.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.15},children:jsx(Ct,{isActive:false,onClick:N,title:"Search",children:jsx(Et,{src:A,alt:"search"})})})})]})}var K=memo(Jo);function Mt(e,t){let i=[],o=t.length,n=0,s=e.indexOf(t,n);for(;s!==-1;){let l=s+o;i.push([s,l]),n=l,s=e.indexOf(t,n);}return i}var ko={padding:0,outline:"none"};function Wt({text:e,queryLength:t,ranges:i,idPrefix:o}){let n=[],s=0;return i.forEach(([l,d],p)=>{l>s&&n.push(e.slice(s,l)),n.push(jsx("mark",{style:ko,children:e.slice(l,l+t)},`${o}-${p}`)),s=d;}),s<e.length&&n.push(e.slice(s)),jsx(Fragment,{children:n})}function W({text:e,query:t}){let i=useId(),o=useMemo(()=>t.trim().toLowerCase(),[t]),n=useMemo(()=>{if(!o)return e;let s=e.toLowerCase(),l=Mt(s,o);return l.length===0?e:jsx(Wt,{text:e,queryLength:t.length,ranges:l,idPrefix:i})},[e,t.length,o,i]);return jsx(Fragment,{children:n})}function re(e,t){return e.toLowerCase().includes(t)}function ie(e){return e.trim().toLowerCase()}function se(e){let t=ie(e);return (i,{keyName:o})=>{if(!t||!o)return;let n=String(o);if(re(n,t))return jsx(bt,{children:jsx(W,{text:String(o),query:e})})}}function ae(e){let t=ie(e);return (i,{value:o})=>{if(!t)return;let n=String(o??"");if(re(n,t))return jsxs(wt,{children:['"',jsx(W,{text:String(o??""),query:e}),'"']})}}function Vo({title:e,onClose:t,onMaximize:i,maximized:o=false,id:n,onMouseHover:s,onMouseLeave:l,onRequestClick:d$2,isRequestExpanded:p=false,showRequestIcon:u=false,isHovered:w=false}){return jsx(c,{id:n,maximized:o||false,children:jsx(d,{isHovered:true,onMouseEnter:s,onMouseLeave:l,isMaximized:o,title:e,icon:Rd,leftActions:jsxs(Fragment,{children:[jsx(a,{onClick:t}),jsx(c$1,{isMaximized:o,onClick:i}),u&&jsx(d$1,{onClick:d$2,isExpanded:p,isHovered:w,children:"Request"})]})})})}var jt=memo(Vo);var Me=jt;var Ft="#FFE20B";function le(e,t){let[i,o]=useState(0),[n,s]=useState(0);useEffect(()=>{if(!t.trim()){s(0),o(0);return}let p=setTimeout(()=>{let u=e.current?.querySelectorAll("mark")??[];s(u.length),o(0);},50);return ()=>clearTimeout(p)},[t,e]),useEffect(()=>{if(!e.current||!t.trim())return;let p=Array.from(e.current.querySelectorAll("mark"));p.forEach((u,w)=>{let S=w===i;u.style.backgroundColor=S?Ft:"transparent",u.style.outline=S?`1px solid ${Ft}`:"none",u.style.borderRadius="2px";}),p[i]?.scrollIntoView({behavior:"smooth",block:"nearest"});},[i,n,t,e]);let l=useCallback(()=>{n!==0&&o(p=>(p+1)%n);},[n]),d=useCallback(()=>{n!==0&&o(p=>(p-1+n)%n);},[n]);return {currentIndex:i,totalCount:n,goNext:l,goPrev:d}}function Kt(e,t){return e==null?String(e).includes(t):typeof e=="string"?e.toLowerCase().includes(t):typeof e=="number"||typeof e=="boolean"?String(e).includes(t):false}function $t(e,t){if(Array.isArray(e)){let i=e.map(o=>$t(o,t)).filter(o=>o!=null);return i.length>0?i:null}return typeof e=="object"&&e!==null?Gt(e,t):Kt(e,t)?e:null}function Gt(e,t){let i={};for(let[o,n]of Object.entries(e))if(o.toLowerCase().includes(t))i[o]=n;else if(typeof n=="object"&&n!==null){let s=$t(n,t);s!==null&&(i[o]=s);}else Kt(n,t)&&(i[o]=n);return Object.keys(i).length>0?i:null}function ze(e,t){return t.trim()?Gt(e,t.toLowerCase()):e}var G=400,L=.5;function Y({index:e,json:t,requestJson:i={},isWindowMinimized:o,windowOrder:n,onClose:s,onJsonRequestOpen:l,onJsonSearch:d,onJsonCopy:p,onJsonIdCopy:u,onJsonNodesMinimize:w,onJsonNodesMaximize:S}){let k=Jc(useId(),"json-viewer"),[a,N]=useState(false),[f,O]=useState(false),[V,M]=useState(false),[v,qe]=useState(false),[je,eo]=useState({width:0,height:0}),[ue,z]=useState(true),[g,to]=useState(false),[fe,oo]=useState(true),[no,De]=useState(false),[Q,Le]=useState(G),[B,ro]=useState(""),[T,io]=useState(""),_e=useRef(null),Fe=useRef(null),U=le(_e,B),Z=le(Fe,T),me=useRef(),{onMouseEnter:so,onMouseLeave:ao,isHovered:lo}=b(),{height:ge,width:_}=a$1(),[Ke,po]=useState({x:_/2+G/4-e*20,y:ge/2-J/2+e*30}),ee=useRef(),co=useMemo(()=>Object.keys(t)?.length,[t]),$e=Ga(),P=Number(ee.current?.state?.width)||G,Ge=c=>{setTimeout(()=>{navigator.clipboard.writeText(c||"").then(()=>{});},10);},Ye=useMemo(()=>Object.keys(i)?.length,[i]),Xe=useMemo(()=>ze(t,B),[t,B]),Qe=useMemo(()=>ze(i,T),[i,T]);return useEffect(()=>{if(me.current&&clearTimeout(me.current),!g){me.current=setTimeout(()=>{Le(P);},L*1e3);return}Le(P);},[g,P]),jsx(jo,{disabled:a,handle:"#draggable-dialog-title",cancel:'[class*="MuiDialogContent-root"]',defaultPosition:{x:_/2-G/4,y:ge/2-J/2},position:{x:_-Ke.x,y:Ke.y},onStop:(c,m)=>{po({x:_-m.x,y:m.y});},bounds:{top:10},children:jsx(Dialog,{id:k,"data-testid":"JSONViewer",disableEnforceFocus:true,sx:{backgroundColor:"transparent",zIndex:(n||0)+3+(a?1:0),...o&&{display:"none"},transform:"translate(180px, 14px)",...!a&&{width:$e?je?.width||Q:"fit-content",height:$e?je?.height||J:"fit-content"},...a&&{transform:"none !important"}},PaperProps:{style:{margin:0,maxHeight:"100%",maxWidth:"none",background:"transparent",width:f?"fit-content":Q,height:f?"fit-content":J,...a&&{width:"100%",height:"100%"},position:"relative"}},onClose:()=>{N(false),z(true),setTimeout(()=>{z(false);},L*1e3);},open:true,hideBackdrop:true,fullScreen:a,"aria-labelledby":"draggable-dialog-title",children:jsx(Resizable,{enable:{left:false,right:true,bottomRight:true,bottom:true},maxHeight:ge-40,maxWidth:_,minWidth:a?"100vw":Q,minHeight:a?"100vh":"300px",ref:c=>{ee.current=c;},onResizeStart:()=>{z(true);},onResizeStop:()=>{z(false);},onResize:(c,m,A)=>{O(true),eo({width:A.offsetWidth,height:A.offsetHeight});},defaultSize:{width:Q,height:J},style:{background:"transparent",...a&&{height:"100% !important",width:"100% !important",flex:1},...a&&{position:"relative"}},children:jsxs(yt,{children:[jsx(motion.div,{style:{...a&&{height:Re,position:"fixed",zIndex:1e3}},animate:{width:g?P*2:P,...a&&{width:"100vw"},...!a&&{transform:`translateX(${g?-P:0}px)`}},transition:{duration:L,...ue&&{duration:0}},children:jsx(Me,{title:g?"JSON Request & Response":"JSON Response",onClose:()=>s(),onMaximize:()=>{N(c=>!c),z(true),setTimeout(()=>{z(false);},L*1e3);},isHovered:lo,onMouseHover:so,onMouseLeave:ao,maximized:a,id:"draggable-dialog-title",onRequestClick:()=>{to(c=>!c),z(false),g||(l?.(),ee.current?.updateSize({width:G,height:J}));},isRequestExpanded:g,showRequestIcon:!!Ye})}),jsxs(Box,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start",height:a?`calc(100vh - ${I}px)`:(Number(ee.current?.state?.height)||J)-I+5,background:"transparent",position:"fixed",width:"100%"},children:[jsx(AnimatePresence,{children:g&&jsxs(motion.div,{initial:{left:a?"50vw":0,...a&&{position:"relative",left:"-50vw"}},animate:{left:a?"50vw":-P,...a&&{position:"relative",left:"0"},...!g&&{left:0}},exit:{left:a?"50vw":0,...a&&{position:"relative",left:"0"}},transition:{duration:L,...ue&&{duration:0}},ref:Fe,style:{flex:1,backgroundColor:"#E7E7E7B2",backdropFilter:"blur(12px)",height:a?"100vh":"100%",overflowY:"auto",position:"absolute",width:a?"100vw":P,zIndex:19,display:"flex",flexDirection:"column",borderBottomLeftRadius:"12px"},onScroll:()=>{De(true),setTimeout(()=>{De(false);},2e3);},children:[jsxs(Be,{isMaximized:a,isScrollingRequest:no,sx:{background:"#E7E7E7B2"},isRequestShown:g,children:[jsx(Ee,{children:jsx(ke,{variant:"subtitle1",children:"API Request"})}),jsxs(Pe,{children:[jsx(K,{value:T,onChange:io,onOpen:()=>d?.(),currentIndex:Z.currentIndex,totalCount:Z.totalCount,onPrev:Z.goPrev,onNext:Z.goNext}),jsx(H,{disableAnimation:true,onClick:()=>{fe?S?.():w?.(),oo(c=>!c);},icon:fe?te:se$1}),jsx(H,{onClick:()=>{p?.(),navigator.clipboard.writeText(JSON.stringify(t)).then(()=>{});},icon:qa}),jsx(H,{onClick:()=>{u?.(),navigator.clipboard.writeText(t?.id||"").then(()=>{});},icon:oa})]})]}),T.trim()&&Qe===null?jsx(Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flex:1,height:"100%"},children:jsx(Typography,{variant:"body2",sx:{fontSize:"0.75rem",color:"text.secondary"},children:"No Data Found"})}):jsxs(R,{value:Qe??i,style:gt,displayDataTypes:false,collapsed:T.trim()?void 0:fe?1:void 0,onCopied:(c,m)=>{typeof m=="string"&&Ge(m);},enableClipboard:false,children:[jsx(R.String,{render:ae(T)}),jsx(R.KeyName,{render:se(T)}),jsx(R.CountInfo,{render:(c,{keyName:m})=>{if(!m)return jsx("span",{})}}),jsx(R.Copied,{render:({"data-copied":c,style:m,onClick:A},{keyName:he})=>he?jsxs(Je,{style:m,onClick:xe=>{A?.(xe);},children:[jsx(AnimatePresence,{children:c&&jsx(motion.img,{style:{height:"14px",width:"14px"},initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:ra,alt:"icon"},"id-icon")}),jsx(AnimatePresence,{children:!c&&jsx(motion.img,{style:{height:"14px",width:"14px"},initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:pa,alt:"icon"},"id-icon")})]}):jsx("span",{})})]}),jsx(AnimatePresence,{children:g&&jsx(Te,{sx:{flex:1,height:I,left:0},children:jsx(c$2,{sx:{paddingLeft:"12px",borderBottomRightRadius:"0",background:"#f8f9fb",flex:1},totalCount:Ye})})})]})}),jsxs(xt,{ref:_e,isMaximized:a,isRequestShown:g,style:{left:0,maxHeight:"100vw"},initial:{...a&&{width:"100vw",left:0}},animate:{...a&&{position:"absolute",left:g?"50vw":"0"}},transition:{duration:L,...ue&&{duration:0}},onScroll:()=>{qe(true),setTimeout(()=>{qe(false);},2e3);},children:[jsxs(Be,{isMaximized:a,isScrollingRequest:v,isRequestShown:g,children:[jsx(Ee,{children:jsx(ke,{variant:"subtitle1",children:"API Response"})}),jsxs(Pe,{children:[jsx(K,{value:B,onChange:ro,onOpen:()=>d?.(),currentIndex:U.currentIndex,totalCount:U.totalCount,onPrev:U.goPrev,onNext:U.goNext}),jsx(H,{disableAnimation:true,onClick:()=>{V?S?.():w?.(),M(c=>!c);},icon:V?te:se$1}),jsx(H,{onClick:()=>{p?.(),navigator.clipboard.writeText(JSON.stringify(t,null,2)).then(()=>{});},icon:qa}),jsx(H,{onClick:()=>{u?.(),navigator.clipboard.writeText(t?.id||"").then(()=>{});},icon:oa})]})]}),B.trim()&&Xe===null?jsx(Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flex:1,height:"100%"},children:jsx(Typography,{variant:"body2",sx:{fontSize:"0.75rem",color:"text.secondary"},children:"No Data Found"})}):jsxs(R,{value:Xe??t,style:Ie,displayDataTypes:false,collapsed:B.trim()?void 0:V?1:void 0,onCopied:(c,m)=>{typeof m=="string"&&Ge(m);},children:[jsx(R.String,{render:ae(B)}),jsx(R.KeyName,{render:se(B)}),jsx(R.CountInfo,{render:(c,{keyName:m})=>{if(!m)return jsx("span",{})}}),jsx(R.Copied,{render:({"data-copied":c,style:m,onClick:A},{keyName:he})=>he?jsxs(Je,{style:m,onClick:xe=>{A?.(xe);},children:[jsx(AnimatePresence,{children:c&&jsx(motion.img,{style:{height:"14px",width:"14px"},initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:ra,alt:"icon"},"id-icon")}),jsx(AnimatePresence,{children:!c&&jsx(motion.img,{style:{height:"14px",width:"14px"},initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:pa,alt:"icon"},"id-icon")})]}):jsx("span",{})})]}),jsx(Te,{sx:{flex:1,height:I},children:jsx(c$2,{sx:{borderBottomLeftRadius:g?0:"12px",background:"#f8f9fb",flex:1},totalCount:co})})]})]})]})})})})}var ce=createContext({jsonViewerList:[],handleJsonViewerDialogOpen:()=>{},handleWindowMinimize:()=>{},handleWindowOrder:()=>{},registerJsonViewerEvents:()=>{}});var Qt=({list:e,events:t,onClose:i,isWindowMinimized:o,windowOrder:n})=>e?.length?jsx(Fragment,{children:e.map((s,l)=>jsx(Y,{index:l,...t,...s,onClose:()=>{i(l);},isWindowMinimized:o,windowOrder:n},s.json.id))}):null;var Fo=({children:e})=>{let[t,i]=useState([]),[o,n]=useState(false),[s,l]=useState(1),d=useRef({}),p=useCallback(f=>{if(t.length===7){alert("Maximum allowed active Json Viewer is 7 per table.");return}if(t.some(v=>v.json.id===f.json.id))return;let O=structuredClone(f.json),V=O.request_body,M={...f,json:O,requestJson:f.requestJson||V||void 0};delete M.json.request_body,i(v=>[...v,M]);},[t]),u=useCallback(f=>{i(O=>O.filter((V,M)=>f!==M));},[]),w=useCallback(f=>{n(f);},[]),S=useCallback(f=>{l(f);},[]),k=useCallback(f=>{d.current=f;},[]),a=useMemo(()=>({onJsonRequestOpen:()=>d.current.onJsonRequestOpen?.(),onJsonSearch:()=>d.current.onJsonSearch?.(),onJsonCopy:()=>d.current.onJsonCopy?.(),onJsonIdCopy:()=>d.current.onJsonIdCopy?.(),onJsonNodesMinimize:()=>d.current.onJsonNodesMinimize?.(),onJsonNodesMaximize:()=>d.current.onJsonNodesMaximize?.()}),[]),N=useMemo(()=>({jsonViewerList:t,handleJsonViewerDialogOpen:p,handleWindowMinimize:w,handleWindowOrder:S,registerJsonViewerEvents:k}),[t,p,w,S,k]);return jsxs(ce.Provider,{value:N,children:[e,jsx(Qt,{list:t,events:a,onClose:u,isWindowMinimized:o,windowOrder:s})]})};var Yo=({isWindowMinimized:e,windowOrder:t,...i})=>{let{handleJsonViewerDialogOpen:o,handleWindowMinimize:n,handleWindowOrder:s,registerJsonViewerEvents:l}=useContext(ce),d=useCallback(()=>{n(e);},[n,e]),p=useCallback(()=>{s(t);},[s,t]);return useEffect(()=>{p();},[p]),useEffect(()=>{d();},[d]),useEffect(()=>{l(i);},[l,i]),{handleJsonViewerDialogOpen:o}};var ti=Y;export{H as a,K as b,W as c,Me as d,le as e,ce as f,Qt as g,Fo as h,Yo as i,ti as j};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {e as e$2}from'./chunk-
|
|
1
|
+
import {e as e$2}from'./chunk-3LGSENPU.js';import {a as a$1}from'./chunk-SJWYU6GP.js';import {a as a$2}from'./chunk-7NXWZMCQ.js';import {a,f,e as e$1}from'./chunk-BNWGGFIV.js';import {e}from'./chunk-UIN3S2CY.js';import {Ta,r,Jc}from'./chunk-B2JRH27J.js';import {Ab}from'./chunk-GIROE252.js';import {memo,useRef,useMemo,useCallback,useId,useState}from'react';import {styled,Typography,Box,Popper}from'@mui/material';import {useTranslation}from'react-i18next';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var O=styled(Typography)(()=>({display:"block",textAlign:"center",fontSize:"10px",fontWeight:500,color:"#8D8D94",padding:"24px 0"})),A=styled(Box,{shouldForwardProp:t=>t!=="isDisabled"})(({isDisabled:t})=>({display:"flex",justifyContent:"space-between",alignItems:"center",gap:"4px",...t&&{"& img":{opacity:.3}}}));var tt=memo(t=>{let{variant:e$2="inActive",badgeCount:o,label:r$1,...n}=t,s=useRef(null),m=useMemo(()=>!o||Number.isNaN(Ta(o))?null:jsx(e,{variant:"inActive",children:r(Number(o))}),[o]),u=useCallback(p=>{p.stopPropagation(),t?.onClick?.(p);},[t]),l=a[e$2];return jsx(l,{"data-testid":"MultiSelectStatusButton",...n,ref:s,onClick:u,statusVariant:e$2,children:jsx(f,{children:jsxs(e$1,{variant:e$2,children:[r$1,m]})})})}),V=tt;function W(t){let e=new Set;return t.filter(o=>e.has(o.value)?false:(e.add(o.value),true))}function h(t,e){let o=e.toLowerCase();return t.reduce((r,n)=>{if(n.options?.length){let s=h(n.options,e);s.length&&r.push({...n,options:s});}else (n.placeholder?.toLowerCase().includes(o)||n.value.toLowerCase().includes(o))&&r.push(n);return r},[])}function it({buttonLabel:t,onClear:e,onConfirm:o,dropdownItems:r,apiKey:n,data:s,styles:m,buttonDisabled:u,searchable:l,searchPlaceholder:p}){let{t:Q}=useTranslation(),Y=p??`${Q("search")}...`,$=Jc(useId(),"multi-select-dropdown-button"),[C,b]=useState(null),[a,d]=useState(""),G=c=>{b(c.currentTarget);},g=()=>{b(null),d("");},x=!!C,L=s?.[n],J=Array.isArray(L)?L.length:0,S=useMemo(()=>{if(!r)return r;let c=W(r);return !l||!a?c:h(c,a)},[l,a,r]),v=l&&!!a&&S?.length===0,U=l?jsxs(Fragment,{children:[jsx(a$1,{name:"multi-select-search",value:a,placeholder:Y,onSearchChange:d,onSearchReset:()=>d(""),sx:{pt:0}}),v&&jsx(O,{children:"No results found"})]}):void 0;return jsxs("div",{id:$,"data-testid":"MultiSelectDropdownButton",children:[jsx(V,{onClick:G,label:jsxs(A,{isDisabled:u,children:[t,jsx("img",{src:Ab,alt:"arrow-down"})]}),disabled:u,badgeCount:J}),x&&jsx(a$2,{onClick:g}),jsx(Popper,{open:x,anchorEl:C,placement:"bottom-start",sx:{zIndex:9999},children:jsx(e$2,{onCloseDropdown:g,filter:{apiKey:n,data:s,onClear:e,onConfirm:o,options:S,type:"list"},styles:{...m,height:v?"auto":"300px",overflowY:"scroll",maxWidth:"200px"},header:U,searchable:l})})]})}var z=memo(it);var At=z;export{At as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {f,b as b$3,g,a as a$3,e as e$1,d,c as c$1}from'./chunk-GH7TAMPJ.js';import {a as a$2}from'./chunk-EWAOFKBQ.js';import {c}from'./chunk-VBDBPJ6A.js';import {o,j,k as k$1,l,p}from'./chunk-BIRJZLQQ.js';import {b as b$2}from'./chunk-P37RYOJW.js';import {b as b$1,e,d as d$1}from'./chunk-E35LKQ6G.js';import {a as a$1}from'./chunk-KHM5KW53.js';import {a as a$4}from'./chunk-JKOFVMQP.js';import {eb,fb,cb,Jc,Qa,Ra,nc,q}from'./chunk-ATSYOVOS.js';import {T,ph,rh,qh,oh,vh,Vf,Mf,Uf,Ii,Ji,rb,Zi,aj,_i,rj,Lm,sb,ta,sa,jj,h,Lf}from'./chunk-3JUTMTQV.js';import {a,b}from'./chunk-YRT7GXGY.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 cr from'@mui/material/Box';var V=a((Sa,Ve)=>{var Xo=eb(),Qo=fb(),Yo=Qo(function(t,e,o){return e=e.toLowerCase(),t+(o?Xo(e):e)});Ve.exports=Yo;});var ct={ORDER:{label:"order",icon:oh,color:"#5E30EB"},SAVED_CARD:{label:"cardAgreement",icon:qh,color:"#76BB40"},SUBSCRIPTION:{label:"subscription",icon:rh,color:"#00C7BE"},INSTALLMENT:{label:"installment",icon:ph,color:"#32ADE6"}},mt={SAVED_TOKEN:{label:"savedToken",icon:T,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 ut=styled("span")(({theme:t})=>({fontSize:"11px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"2px 0",color:t.palette.text.primary})),ft=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",paddingInline:"8px"}));function Wo({type:t,hasSavedCard:e,totalPaymentsCount:o,isTextShown:r}){let l=Jc(useId(),"agreement-icon"),s=useTheme(),{t:i}=useTranslation(),n=useMemo(()=>[...e?[mt.SAVED_TOKEN]:[],...(o||0)>0?[mt.COUNT]:[],...t&&ct[t]?[ct[t]]:[]],[e,o,t]),d=c=>r?jsx(b$1,{"data-testid":"AgreementCell_countBadge",children:jsx(a$1,{title:i("totalPaymentCount",{amount:q(o)}),children:jsx(ft,{children:jsxs(ut,{"data-testid":"AgreementCell_totalPaymentsCount",sx:{color:mt.COUNT.color},children:["x",o]})})})},c):jsx(d$1,{totalPaymentsCount:o,index:c},c),p=n.map((c,g)=>c.label==="countBadge"?d(g):jsx(a$1,{title:i(c.label),children:jsx(b$1,{children:r?jsx(ft,{children:jsx(ut,{"data-testid":"AgreementCell_agreementType",sx:{color:c.color},children:i(c.label)})}):jsx(a$2,{sx:{maxWidth:"16px",maxHeight:"16px",height:"auto",width:"auto"},src:c.icon,alt:"agreement"})},c.color)},c.color)),f=jsx(a$1,{title:"No agreement",children:jsx(b$1,{children:r?jsx(ft,{children:jsx(ut,{"data-testid":"AgreementCell_agreementType",sx:{color:s.palette.text.secondary},children:"No agreement"})}):jsx(a$2,{sx:{maxWidth:"24px",maxHeight:"24px",height:"auto",width:"auto"},src:vh,alt:"agreement"})},"no-agreement")},"no-agreement");return jsx(Box,{id:l,"data-testid":"AgreementIcon",sx:{display:"flex",alignItems:"center",gap:"4px"},children:p?.length>0?p:f})}var Te=Wo;var Ro=Te;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:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minWidth:`${e*6+36}px `,minHeight:"24px",cursor:"pointer",backgroundColor:t.palette.background.paper,borderRadius:"16px"}));var we=styled("span")(({theme:t})=>({fontSize:"11px",padding:"2px 0",color:t.palette.text.primary})),Pe=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 We=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px"}));var Bt={"3DS":{tooltip:"3DS",icon:Ji,borderColor:"rgba(31, 136, 208, 0.10)"},"Device Biometric":{tooltip:"Biometric",icon:Ii,borderColor:"rgba(31, 136, 208, 0.10)"},"Non-3DS":{tooltip:"Non 3DS",icon:Uf,borderColor:"rgba(31, 136, 208, 0.10)"}},ve={FAILED:{tooltip:"Failed",icon:Mf,borderColor:"rgba(255, 61, 0, 0.10)"},REJECTED:{tooltip:"Rejected",icon:Vf,borderColor:"rgba(255, 61, 0, 0.10)"}};function Bo({transactionStatus:t,eci:e,authType:o,isTextShown:r}){let l=Jc(useId(),"auth-icons"),s=useMemo(()=>{let n=t?ve[t]:null,d=n?.tooltip,p=t==="AUTHENTICATED"?null:n?.icon;return [{tooltip:d,content:r?d:p,type:r?"text":"icon"},...o?[{tooltip:o,content:r?Bt[o]?.tooltip:Bt[o]?.icon,type:r?"text":"icon"}]:[],{tooltip:"",content:e?`ECI ${e}`:"",type:"text"}]},[t,r,o,e]),i=useMemo(()=>s.filter(n=>!!n.content).map((n,d)=>{let p=n.type==="text"?jsx(Pe,{"data-testid":"AuthenticationCell_BadgeTextWrapper",children:jsx(we,{sx:{border:"none"},"data-testid":"AuthenticationCell_TextLabel","data-source":n.content,children:n.content})}):jsx(a$2,{sx:{width:"16px",height:"16px"},src:n.content,alt:n.tooltip});return jsx(a$1,{title:n.tooltip,children:p},`${n.tooltip}-${d}`)}),[s]);return jsx(We,{id:l,"data-testid":"AuthIcons",children:i})}var ke=Bo;var Lo=(t,e,o)=>({start:{x:t*6,transition:{duration:.3,type:"tween",ease:"easeIn"},...t>0&&{opacity:0}},animate:{x:o?t*o:t*39,transition:{duration:.3,type:"tween",ease:"easeOut"},boxShadow:e,...t>0&&{opacity:1}}});var Do=ke;var ot={VOID:{icon:_i},CAPTURED:{icon:Zi}};var xt=styled$1(motion.div)(({theme:t,isCapture:e})=>({display:"flex",alignItems:"center",justifyContent:"center",gap:t.spacing(.5),paddingInline:t.spacing(.3),paddingBlock:t.spacing(.3),height:"100%",minWidth:"100%",backgroundColor:e?"#eaf3fb":"#eeeeee",borderRadius:"56px",width:"fit-content",fontSize:"10px",color:t.palette.text.primary,position:"relative",zIndex:10})),gt=styled$1("div")(({theme:t,percentage:e,isCapture:o})=>({border:`0.6px ${[0,100].includes(e)?"solid":"dashed"} ${o?t.palette.info.dark:"#656565"}`,borderRadius:"80px",padding:t.spacing(.316),paddingLeft:t.spacing(.516),fontSize:"7px",fontWeight:t.typography.fontWeightBold,color:o?t.palette.info.dark:"#656565",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(.5)})),It=styled$1("div")(({percentage:t,isCapture:e,theme:o})=>({background:`conic-gradient(${e?o.palette.info.dark:"#656565"} ${t}%, transparent 0.00%)`,borderRadius:"50%",width:"8.333px",height:"8.333px",border:`0.6px solid ${e?o.palette.info.dark:"#656565"}`})),Be=styled$1("img")({width:"14px",height:"14px"}),H=styled$1(o)({width:"16px",height:"16px"}),F=styled$1("img")({width:"16px",height:"16px"}),Le=styled$1(Box)({display:"flex",alignItems:"center",justifyContent:"center"});function ht(t){return t<5?5:t===100?95:t}function Fo({voidPercentage:t,capturePercentage:e$1,captureCount:o,autoType:r,captureAmount:l,voidAmount:s,currency:i,isTextShown:n,remainingAmount:d,isSheetViewShown:p,selectionProps:f={}}){let c=Number(e$1)+Number(t)===100||d<=0,g=Jc(useId(),"capture-auto-icon"),T=useTheme$1(),{t:w}=useTranslation(),P=Qa(d||0),D=useCallback(C=>`Auto ${C} - ${i} ${P.integerAmount}.${P.decimalAmount}`,[i,P.decimalAmount,P.integerAmount]),Q=useCallback(C=>{let Y=C==="Capture"?l:s,{integerAmount:E,decimalAmount:v}=Ra(Y,i);return `Partial ${C} - ${i} ${E}.${v}`},[l,s,i]),x=e$1>0?jsx(a$1,{title:Q("Capture"),children:jsxs(xt,{isCapture:true,isFullyUsed:c,whileHover:["animate","fadeIn"],animate:"start",variants:{animate:{boxShadow:T.shadows[4]}},children:[jsx(Be,{src:rb,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(gt,{isCapture:true,percentage:e$1,children:[e$1,"% ",jsx(It,{isCapture:true,percentage:ht(e$1)})]}),o>1&&jsxs(e,{compact:true,variant:"dark",children:[o,"x"]})]})]})}):r==="CAPTURED"&&!c?jsx(a$1,{title:D("Capture"),children:jsx(H,{children:jsx(F,{src:ot.CAPTURED?.icon,alt:"auto"})})}):jsx(a$1,{title:D("Capture"),children:jsx(H,{children:jsx(F,{src:ot.CAPTURED?.icon,alt:"auto"})})}),I=e$1===100?jsx(a$1,{title:w("captured"),children:jsx(Le,{children:jsx(F,{src:aj,alt:"captured"})})}):x,W=useMemo(()=>p&&I?jsx(b$2,{chipIndex:4,copyText:w("captured"),selectionProps:f,children:w("captured")}):n&&I?jsx(k$1,{children:w("captured")}):I,[n,I,p,f]);return W&&jsx("div",{id:g,"data-testid":"CaptureAutoIcon",style:{zIndex:12},children:W})}var Ee=Fo;function Ko({voidPercentage:t,capturePercentage:e$1,voidCount:o,autoType:r,captureAmount:l$1,voidAmount:s,currency:i,isTextShown:n,isSheetViewShown:d,selectionProps:p={},remainingAmount:f}){let c=Number(e$1)+Number(t)===100||f<=0,g=Jc(useId(),"void-auto-icon"),T=useTheme$1(),{t:w}=useTranslation(),P=Qa(f||0),D=useCallback(C=>`Auto ${C} - ${i} ${P.integerAmount}.${P.decimalAmount}`,[i,P.decimalAmount,P.integerAmount]),Q=useCallback(C=>{let Y=C==="Capture"?l$1:s,{integerAmount:E,decimalAmount:v}=Ra(Y,i);return `Partial ${C} - ${i} ${E}.${v}`},[l$1,s,i]),x=t>1?jsx(a$1,{title:Q("Void"),children:jsxs(xt,{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:[jsxs(gt,{percentage:t,children:[t,"% ",jsx(It,{percentage:ht(t)})]}),o>0&&jsx(motion.div,{style:{alignItems:"center",justifyContent:"center",gap:"4px",width:0,display:"none"},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(e,{compact:true,variant:"neutral",children:[o,"x"]})})]})}):r==="VOID"&&!c?jsx(a$1,{title:D("Void"),children:jsx(H,{children:jsx(F,{src:ot.VOID?.icon,alt:"auto"})})}):null,I=t===100?jsx(a$1,{title:w("void"),children:jsx(H,{children:jsx(F,{src:rj,alt:"void"})})}):x,W=useMemo(()=>d&&I?jsx(b$2,{chipIndex:5,copyText:w("void"),selectionProps:p,children:w("void")}):n&&I?jsx(l,{children:w("void")}):I,[n,I,d,p]);return W?jsx("div",{id:g,"data-testid":"VoidAutoIcon",style:{...!d&&{zIndex:11}},children:W}):null}var _e=Ko;var Jo=Ee;var Me=b(V(),1);var er=({authorizedStatus:t,isTextShown:e,iconStyles:o,tableMode:r,chipIndex:l=0,selectionProps:s={}})=>{let{t:i}=useTranslation(),n=useTheme$1(),d=i((0, Me.default)(t));return cb(r)?jsx(b$2,{copyText:d,chipIndex:l,selectionProps:s,children:d}):jsx(a$1,{title:d,children:e?jsx(j,{"data-testid":"StatusCell_AuthorizedStatusLabel",sx:{color:n.palette.info.dark},children:d}):jsx(a$2,{src:f[t],alt:"authorized-icon","data-testid":"StatusCell_AuthorizedStatusIcon",sx:o})})};var k=b(V(),1);var Ne=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)})),ze=styled$1(motion.span)(()=>({display:"block",width:"0",overflow:"hidden"})),Dt=styled$1("img")(()=>({width:"10px",height:"10px"})),Et=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"})),$t=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"}})),Ge=styled$1(motion.div)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start"})),Fe=styled$1(motion.span)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minHeight:"24px",cursor:"pointer",borderRadius:"16px"})),Ue={delay:.2,ease:"easeIn",fadeIn:{duration:.2}},Oe={animate:{width:"auto",paddingRight:"4px",paddingLeft:"4px"},fadeIn:{opacity:1,transition:{delay:.7}}},je={animate:{width:"auto"},fadeIn:{opacity:1,transition:{delay:1}}},He={animate:{width:"auto",paddingRight:"8px",paddingLeft:"4px"}},_t={fadeIn:{duration:.3},animate:{duration:.1}},qe={fadeIn:{opacity:1}},Ke=styled$1(j)(()=>({width:"88px",height:"100%"})),Vt=styled$1(Box)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(.25),height:"100%"}));function ir({chargeStatus:t,gatewayTooltip:e,acquirerTooltip:o$1,chargeTooltip:r,errorCode:l,isTextShown:s,gatewayCode:i,acquirerCode:n,unCapturedStyles:d,iconStyles:p$1,iconWrapperStyles:f,gatewayIconWrapperStyles:c,gatewayContainerStyles:g$1,gateWayIconStyles:T,showBadge:w=true,isSheetViewShown:P=false,selectionProps:D={},chipIndex:Q=0}){let x=t?b$3[t]:null,I=t?g[t]:null,W=useTheme$1(),{t:C}=useTranslation(),Y=Jc(useId(),"charge-status-icon"),E=r&&jsx(Fragment,{children:jsx("div",{children:r})}),v=o$1&&jsxs(Fragment,{children:[jsx("div",{children:"Acquirer"}),jsx("div",{children:o$1})]}),Z=e&&jsxs(Fragment,{children:[jsx("div",{children:"Gateway"}),jsx("div",{children:e})]}),Ft=t&&a$3[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,{src:a$3[t],alt:"charge-icon","data-testid":"ChargeStatusIcon_StatusIcon",style:{borderRadius:x?"50%":"",width:"16px",height:"16px",...p$1}})});return P?jsxs(Vt,{children:[jsxs(b$2,{copyText:C((0, k.default)(t)),chipIndex:Q,selectionProps:D,children:[C((0, k.default)(t))," ",l]}),x&&jsxs(Fragment,{children:[i&&jsxs(b$2,{copyText:"Gateway",chipIndex:1,selectionProps:D,children:["Gateway ",i]}),n&&jsxs(b$2,{copyText:"Acquirer",chipIndex:2,selectionProps:D,children:["Acquirer ",n]})]})]}):s?jsxs(Vt,{children:[jsx(a$1,{title:E,children:jsxs(Ke,{"data-testid":"ChargeStatusIcon_isTextShown","data-status":(0, k.default)(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((0, k.default)(t))," ",l]})}),x&&jsxs(Fragment,{children:[i&&jsx(a$1,{title:Z,children:jsxs(j,{"data-testid":"ChargeStatusIcon_isTextShown","data-status":(0, k.default)(t),sx:{background:x?.background||I?.background||"transparent",color:x?.color||I?.color||W.palette.info.dark},children:["Gateway ",i]})}),n&&jsx(a$1,{title:v,children:jsxs(j,{"data-testid":"ChargeStatusIcon_isTextShown","data-status":(0, k.default)(t),sx:{background:x?.background||I?.background||"transparent",color:x?.color||I?.color||W.palette.info.dark},children:["Acquirer ",n]})})]})]}):jsx(o,{id:Y,"data-testid":"ChargeStatusIcon_StatusIconWrapper",style:{...f},children:Lm?.includes(t||"")&&(E||v||Z)?jsxs(Fe,{"data-testid":"ChargeStatusIcon_UnCapturedContainer",whileHover:["animate","fadeIn"],style:{left:"0",...w&&{paddingInline:"12px",border:"1px solid #F2F2F2",borderRadius:"12px",backgroundColor:"#fff"},...d},children:[jsx(Ge,{"data-testid":"ChargeStatusIcon_UnCapturedBadge",sx:{borderRadius:"56px"},initial:{background:"transparent"},variants:{animate:{background:x?.background}},children:jsx(a$1,{title:E??C((0, k.default)(t)),children:jsxs(Fragment,{children:[Ft,jsx(ze,{"data-testid":"ChargeStatusIcon_ErrorCodeWrapper",transition:{animate:{duration:.05}},variants:He,style:{...l&&{padding:"0 !important"}},children:jsx(Ne,{"data-testid":"ChargeStatusIcon_ErrorCodeLabel",sx:{background:x?.color},transition:Ue,variants:qe,initial:{opacity:0},children:l})})]})})}),jsx($t,{"data-testid":"ChargeStatusIcon_GatewaysContainer",transition:_t,variants:Oe,style:g$1,isVisible:!!Z,children:Z&&jsx(a$1,{title:Z,children:jsx(Et,{"data-testid":"ChargeStatusIcon_GatewayIconWrapper",style:{background:x?.background,...c},children:jsx(Dt,{src:x?.gatewayIcon,alt:"gateway-icon","data-testid":"ChargeStatusIcon_GatewayIcon",style:T})})})}),jsx($t,{"data-testid":"ChargeStatusIcon_GatewaysContainer",transition:_t,variants:je,style:g$1,isVisible:!!v,children:v&&jsx(a$1,{title:v,children:jsx(Et,{"data-testid":"ChargeStatusIcon_AcquirerIconWrapper",style:{background:x?.background,...c},children:jsx(Dt,{src:x?.acquirerIcon,alt:"acquirer-icon","data-testid":"ChargeStatusIcon_AcquirerIcon",style:T})})})})]}):jsx(a$1,{title:E??C((0, k.default)(t)),children:jsx(o,{children:Ft})})})}var lr=()=>{let{t}=useTranslation(),e=Jc(useId(),"customer-initiated-icon");return jsx(a$1,{title:t("merchantInitiated"),children:jsx("img",{id:e,"data-testid":"merchantInitiatedIcon",src:sb,alt:"merchant",style:{width:"16px",height:"16px"}})})};var dr={G:"Global",R:"Regional",L:"Local"},rt=({geographyVariant:t,countryCode:e,isTextShown:o})=>{let r=t?dr[t]:void 0,l=r||e?`${r||""} ${r&&e?"-":""} ${e?`Country - ${e}`:""}`:void 0;return o||!e?null:jsx(a$1,{title:l,children:jsx(a$4,{countryCode:e})})};var ur=({geographyVariant:t,isTextShown:e,deviceCountry:o,deviceType:r,tableMode:l})=>{let s=Jc(useId(),"device-icon-chip");return jsxs(cr,{id:s,"data-testid":"DeviceIconChip",sx:{display:"flex",gap:"8px",alignItems:"center",...cb(l)&&{height:"18px"}},children:[jsx(rt,{geographyVariant:t,isTextShown:e,countryCode:o}),jsx(c,{type:r,isTextShown:e,tableMode:l})]})};var gr=({isDisputeOpen:t,iconStyles:e})=>{let o=Jc(useId(),"dispute-icon");return jsx(p,{id:o,"data-testid":"StatusCell_DisputeStatusIcon",sx:{width:"13.5px",height:"13.5px"},src:t?ta:sa,alt:"dispute-icon",style:e})};var Ze=styled$1(cr,{shouldForwardProp:t=>t!=="tableMode"})(({theme:t,tableMode:e})=>({display:"flex",gap:t.spacing(.5),...cb(e)&&{height:"18px"},alignItems:"center"})),to=styled$1("span")(({theme:t})=>({fontSize:"10px",fontWeight:500,color:t.palette.text.primary}));function Nt({countryCode:t,isTextShown:e,cardNumber:o,bankName:r,tableMode:l}){let s=Jc(useId(),"issuer-icon"),i=o?.slice(0,4),n=o?.slice(-4);return jsxs(Ze,{id:s,"data-testid":"IssuerIcon",tableMode:l,children:[t&&jsx(rt,{countryCode:t,isTextShown:e}),jsx(a$1,{title:`${r?`Issuer - ${r}`:""}`,children:jsx(to,{children:`${i||""} ${n||""}`})})]})}var br=Nt;var eo=b(V(),1);styled(motion.div)(({theme:t,background:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(.5),paddingInline:t.spacing(.75),paddingBlock:t.spacing(.5),backgroundColor:e,height:"24px",width:"fit-content",borderRadius:"24px",fontSize:"10px",color:t.palette.text.primary}));var Mi=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"})),Ni=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"})),zi=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px"}));var wr=({payoutStatus:t="PENDING",isTextShown:e,payoutTooltip:o,iconStyles:r,isSheetViewShown:l,chipIndex:s=0,selectionProps:i={}})=>{let{t:n}=useTranslation(),d=Jc(useId(),"payout-icon"),p$1=n((0, eo.default)(t)),f=o||p$1;return l?jsx(b$2,{chipIndex:s,copyText:p$1,selectionProps:i,children:p$1}):jsx(a$1,{title:f,children:e?jsx(bt,{id:d,"data-testid":"StatusCell_PayoutStatusLabel",children:p$1}):jsx(p,{id:d,src:e$1[t],alt:"settled-icon","data-testid":"StatusCell_PayoutStatusIcon",style:r})})};var no=b(V(),1);var oo=styled$1(motion.img)(()=>({width:"14px",height:"14px"})),ro=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})),zt=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"}));var ep=styled$1(motion.span)(({isTextShown:t,theme:e})=>({border:`1px solid ${e.palette.divider}`,borderRadius:"12px",backgroundColor:e.palette.background.paper,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",minWidth:t?"auto":"36px",...t&&{border:"none"}})),op=styled$1(motion.div,{shouldForwardProp:t=>t!=="statusesCount"})(({statusesCount:t})=>({display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",minWidth:`${t*6+36}px `,minHeight:"24px",cursor:"pointer",borderRadius:"16px"})),rp=styled$1(motion.div)(()=>({display:"flex",gap:"4px",justifyContent:"flex-start",alignItems:"center",position:"relative",width:"100%",overflow:"visible"}));var Rr=({isTextShown:t,refundStatus:e="PENDING",refundTooltip:o="",refundCount:r,iconStyles:l,isSheetViewShown:s,chipIndex:i=0,selectionProps:n={}})=>{let{t:d$1}=useTranslation(),p$1=useTheme$1(),f=Jc(useId(),"refund-icon"),c=(r||0)>1,g=d$1((0, no.default)(e));if(s)return jsxs(b$2,{chipIndex:i,selectionProps:n,copyText:g,children:[g," ",c?`${r}x`:null]});let T=jsxs(ro,{"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(a$1,{title:jsx("div",{children:jsx("div",{children:o})}),children:jsx(bt,{id:f,"data-testid":"StatusCell_RefundStatusLabel",sx:{color:d[e].color,backgroundColor:d[e].backgroundColor,width:"90px"},children:jsxs(zt,{whileInView:c?["animate","fadeIn"]:void 0,variants:{animate:{boxShadow:p$1.shadows[4],gap:p$1.spacing(.5)}},children:[g," ",c?T:null]})})}):jsx(a$1,{title:jsx("div",{children:jsx("div",{children:o})}),children:c?jsxs(zt,{id:f,whileHover:["animate","fadeIn"],animate:"start",variants:{animate:{boxShadow:p$1.shadows[4],gap:p$1.spacing(.5)}},children:[jsx(oo,{src:jj,alt:"multi-refunded-icon","data-testid":"StatusCell_MultiRefundIcon"}),T]}):jsx(p,{id:f,src:c$1[e],alt:"refunded-icon","data-testid":"StatusCell_RefundStatusIcon",style:l})})},ao=Rr;var kr=ao;var Pt=b(V(),1);var Br={american_express:"AMEX",debit:"card",credit:"card"},L=t=>Br[t?.toLowerCase()||""]||t;var co=b(V(),1);styled("span")(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(1)}));var io=styled("img")(()=>({maxWidth:"24px",maxHeight:"16px"}));styled(motion.span,{shouldForwardProp:t=>t!=="sourcesCount"})(({theme:t,sourcesCount:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minWidth:`${e*6+36}px `,minHeight:"24px",cursor:"pointer",backgroundColor:t.palette.background.paper,borderRadius:"16px"}));var po=styled("span")(({theme:t})=>({fontSize:"11px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"2px 0",color:t.palette.text.primary})),so=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 lo=styled("span")(({theme:t})=>({fontSize:"10px",fontWeight:500,color:t.palette.text.primary}));function wt({source:t,isTextShown:e,title:o,width:r,height:l,imgSx:s}){let{t:i}=useTranslation(),n=h(t);return jsx(a$1,{title:o,children:e?jsx(so,{"data-testid":"SourceCell_BadgeTextWrapper",children:jsx(po,{"data-testid":"SourceCell_TextLabel","data-source":t,children:i((0, co.default)(t))})}):jsx(io,{src:n,alt:t,width:r,height:l,onError:d=>{d.currentTarget.src=h("card");},sx:s})})}function Mr({payment:t,card:e,isTextShown:o,firstIcon:r}){let l=Jc(useId(),"source-icons"),{t:s}=useTranslation(),i=useCallback(()=>{let p=[],f=nc(t),c=t?.method,g=t?.scheme;return L(c)?.toLowerCase()===L(g)?.toLowerCase()?p.push(L(c),L(f)):p.push(L(c),L(f),L(g)),p},[t]),n=useMemo(()=>jsx(wt,{source:r,isTextShown:o,title:s((0, Pt.default)(r))},r),[r,o,s]),d=useMemo(()=>i()?.filter(p=>!!p&&p!==r)?.map((p,f,c)=>{let g=t?.wallet===s("sv_wallet")?s("storedValueWallet"):s("passThruWallet"),T=f===c.length-1&&e?.last_four?`${s((0, Pt.default)(p))} - ${e?.last_four}`:s((0, Pt.default)(p));return jsx(wt,{source:p,isTextShown:o,title:f===0&&p==="Wallet"?g:T},`${p}-${f}`)}),[i,t,e,o,s,r]);return jsxs(Box,{id:l,"data-testid":"SourceIcons",display:"flex",alignItems:"center",gap:.5,children:[r&&n,d,e?.last_four&&jsxs(lo,{children:["\xB7\xB7\xB7 ",e?.last_four]})]})}var at={PROCESSED:Lf,FAILED:""};var xo=styled("span")(({theme:t})=>({fontSize:"11px",padding:"2px 0",color:t.palette.text.primary})),go=styled("img")(()=>({width:"16px",height:"16px"})),Io=styled("span")(()=>({width:"24px",height:"24px",borderRadius:"50%",backgroundColor:"transparent",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}));var Wt=b(V(),1);function ho({status:t,isTextShown:e,isSheetViewShown:o,chipIndex:r=0,selectionProps:l={}}){let s=useTheme(),{t:i}=useTranslation(),n=Jc(useId(),"destination-icon"),d=i((0, Wt.default)(t));return o&&at[t]?jsx(b$2,{copyText:d,chipIndex:r,selectionProps:l,children:d}):e&&at[t]?jsx(xo,{id:n,"data-testid":"ChargeStatusIcon_isTextShown","data-status":(0, Wt.default)(t),sx:{background:"#1F88D00D",color:t==="PROCESSED"?s.palette.info.dark:s.palette.common.black},children:d}):jsx(Io,{id:n,"data-testid":"DestinationIcon",className:"destination-status",children:t&&at[t]&&jsx(a$1,{title:i((0, Wt.default)(t)),children:jsx(go,{src:at[t],alt:"destination-icon"})})})}export{ep as a,op as b,rp as c,Ro as d,Lo as e,Do as f,_e as g,Jo as h,V as i,er as j,ir as k,lr as l,rt as m,ur as n,gr as o,br as p,Mi as q,Ni as r,zi as s,wr as t,kr as u,L as v,wt as w,Mr as x,ho as y};
|
|
1
|
+
import {f,b as b$3,g,a as a$3,e as e$1,d,c as c$1}from'./chunk-WUBPM67I.js';import {a as a$2}from'./chunk-CSZ2OR4M.js';import {c}from'./chunk-FDN3KSOE.js';import {o,j,k as k$1,l,p}from'./chunk-Q5PLP2P4.js';import {a as a$4}from'./chunk-HRRTUP6T.js';import {b as b$1,e,d as d$1}from'./chunk-UIN3S2CY.js';import {a as a$1}from'./chunk-KHM5KW53.js';import {b as b$2}from'./chunk-2N7C43B5.js';import {eb,fb,cb,Jc,Qa,Ra,nc,q}from'./chunk-B2JRH27J.js';import {T,ai,ci,bi,$h,gi,Gg,xg,Fg,tj,uj,rb,Kj,Nj,Lj,ck,en,sb,ta,sa,Wj,h,wg}from'./chunk-GIROE252.js';import {a,b}from'./chunk-YRT7GXGY.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 cr from'@mui/material/Box';var V=a((Sa,Ve)=>{var Xo=eb(),Qo=fb(),Yo=Qo(function(t,e,o){return e=e.toLowerCase(),t+(o?Xo(e):e)});Ve.exports=Yo;});var ct={ORDER:{label:"order",icon:$h,color:"#5E30EB"},SAVED_CARD:{label:"cardAgreement",icon:bi,color:"#76BB40"},SUBSCRIPTION:{label:"subscription",icon:ci,color:"#00C7BE"},INSTALLMENT:{label:"installment",icon:ai,color:"#32ADE6"}},mt={SAVED_TOKEN:{label:"savedToken",icon:T,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 ut=styled("span")(({theme:t})=>({fontSize:"11px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"2px 0",color:t.palette.text.primary})),ft=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",paddingInline:"8px"}));function Wo({type:t,hasSavedCard:e,totalPaymentsCount:o,isTextShown:r}){let l=Jc(useId(),"agreement-icon"),s=useTheme(),{t:i}=useTranslation(),n=useMemo(()=>[...e?[mt.SAVED_TOKEN]:[],...(o||0)>0?[mt.COUNT]:[],...t&&ct[t]?[ct[t]]:[]],[e,o,t]),d=c=>r?jsx(b$1,{"data-testid":"AgreementCell_countBadge",children:jsx(a$1,{title:i("totalPaymentCount",{amount:q(o)}),children:jsx(ft,{children:jsxs(ut,{"data-testid":"AgreementCell_totalPaymentsCount",sx:{color:mt.COUNT.color},children:["x",o]})})})},c):jsx(d$1,{totalPaymentsCount:o,index:c},c),p=n.map((c,g)=>c.label==="countBadge"?d(g):jsx(a$1,{title:i(c.label),children:jsx(b$1,{children:r?jsx(ft,{children:jsx(ut,{"data-testid":"AgreementCell_agreementType",sx:{color:c.color},children:i(c.label)})}):jsx(a$2,{sx:{maxWidth:"16px",maxHeight:"16px",height:"auto",width:"auto"},src:c.icon,alt:"agreement"})},c.color)},c.color)),f=jsx(a$1,{title:"No agreement",children:jsx(b$1,{children:r?jsx(ft,{children:jsx(ut,{"data-testid":"AgreementCell_agreementType",sx:{color:s.palette.text.secondary},children:"No agreement"})}):jsx(a$2,{sx:{maxWidth:"24px",maxHeight:"24px",height:"auto",width:"auto"},src:gi,alt:"agreement"})},"no-agreement")},"no-agreement");return jsx(Box,{id:l,"data-testid":"AgreementIcon",sx:{display:"flex",alignItems:"center",gap:"4px"},children:p?.length>0?p:f})}var Te=Wo;var Ro=Te;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:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minWidth:`${e*6+36}px `,minHeight:"24px",cursor:"pointer",backgroundColor:t.palette.background.paper,borderRadius:"16px"}));var we=styled("span")(({theme:t})=>({fontSize:"11px",padding:"2px 0",color:t.palette.text.primary})),Pe=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 We=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px"}));var Bt={"3DS":{tooltip:"3DS",icon:uj,borderColor:"rgba(31, 136, 208, 0.10)"},"Device Biometric":{tooltip:"Biometric",icon:tj,borderColor:"rgba(31, 136, 208, 0.10)"},"Non-3DS":{tooltip:"Non 3DS",icon:Fg,borderColor:"rgba(31, 136, 208, 0.10)"}},ve={FAILED:{tooltip:"Failed",icon:xg,borderColor:"rgba(255, 61, 0, 0.10)"},REJECTED:{tooltip:"Rejected",icon:Gg,borderColor:"rgba(255, 61, 0, 0.10)"}};function Bo({transactionStatus:t,eci:e,authType:o,isTextShown:r}){let l=Jc(useId(),"auth-icons"),s=useMemo(()=>{let n=t?ve[t]:null,d=n?.tooltip,p=t==="AUTHENTICATED"?null:n?.icon;return [{tooltip:d,content:r?d:p,type:r?"text":"icon"},...o?[{tooltip:o,content:r?Bt[o]?.tooltip:Bt[o]?.icon,type:r?"text":"icon"}]:[],{tooltip:"",content:e?`ECI ${e}`:"",type:"text"}]},[t,r,o,e]),i=useMemo(()=>s.filter(n=>!!n.content).map((n,d)=>{let p=n.type==="text"?jsx(Pe,{"data-testid":"AuthenticationCell_BadgeTextWrapper",children:jsx(we,{sx:{border:"none"},"data-testid":"AuthenticationCell_TextLabel","data-source":n.content,children:n.content})}):jsx(a$2,{sx:{width:"16px",height:"16px"},src:n.content,alt:n.tooltip});return jsx(a$1,{title:n.tooltip,children:p},`${n.tooltip}-${d}`)}),[s]);return jsx(We,{id:l,"data-testid":"AuthIcons",children:i})}var ke=Bo;var Lo=(t,e,o)=>({start:{x:t*6,transition:{duration:.3,type:"tween",ease:"easeIn"},...t>0&&{opacity:0}},animate:{x:o?t*o:t*39,transition:{duration:.3,type:"tween",ease:"easeOut"},boxShadow:e,...t>0&&{opacity:1}}});var Do=ke;var ot={VOID:{icon:Lj},CAPTURED:{icon:Kj}};var xt=styled$1(motion.div)(({theme:t,isCapture:e})=>({display:"flex",alignItems:"center",justifyContent:"center",gap:t.spacing(.5),paddingInline:t.spacing(.3),paddingBlock:t.spacing(.3),height:"100%",minWidth:"100%",backgroundColor:e?"#eaf3fb":"#eeeeee",borderRadius:"56px",width:"fit-content",fontSize:"10px",color:t.palette.text.primary,position:"relative",zIndex:10})),gt=styled$1("div")(({theme:t,percentage:e,isCapture:o})=>({border:`0.6px ${[0,100].includes(e)?"solid":"dashed"} ${o?t.palette.info.dark:"#656565"}`,borderRadius:"80px",padding:t.spacing(.316),paddingLeft:t.spacing(.516),fontSize:"7px",fontWeight:t.typography.fontWeightBold,color:o?t.palette.info.dark:"#656565",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(.5)})),It=styled$1("div")(({percentage:t,isCapture:e,theme:o})=>({background:`conic-gradient(${e?o.palette.info.dark:"#656565"} ${t}%, transparent 0.00%)`,borderRadius:"50%",width:"8.333px",height:"8.333px",border:`0.6px solid ${e?o.palette.info.dark:"#656565"}`})),Be=styled$1("img")({width:"14px",height:"14px"}),H=styled$1(o)({width:"16px",height:"16px"}),F=styled$1("img")({width:"16px",height:"16px"}),Le=styled$1(Box)({display:"flex",alignItems:"center",justifyContent:"center"});function ht(t){return t<5?5:t===100?95:t}function Fo({voidPercentage:t,capturePercentage:e$1,captureCount:o,autoType:r,captureAmount:l,voidAmount:s,currency:i,isTextShown:n,remainingAmount:d,isSheetViewShown:p,selectionProps:f={}}){let c=Number(e$1)+Number(t)===100||d<=0,g=Jc(useId(),"capture-auto-icon"),T=useTheme$1(),{t:w}=useTranslation(),P=Qa(d||0),D=useCallback(C=>`Auto ${C} - ${i} ${P.integerAmount}.${P.decimalAmount}`,[i,P.decimalAmount,P.integerAmount]),Q=useCallback(C=>{let Y=C==="Capture"?l:s,{integerAmount:E,decimalAmount:v}=Ra(Y,i);return `Partial ${C} - ${i} ${E}.${v}`},[l,s,i]),x=e$1>0?jsx(a$1,{title:Q("Capture"),children:jsxs(xt,{isCapture:true,isFullyUsed:c,whileHover:["animate","fadeIn"],animate:"start",variants:{animate:{boxShadow:T.shadows[4]}},children:[jsx(Be,{src:rb,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(gt,{isCapture:true,percentage:e$1,children:[e$1,"% ",jsx(It,{isCapture:true,percentage:ht(e$1)})]}),o>1&&jsxs(e,{compact:true,variant:"dark",children:[o,"x"]})]})]})}):r==="CAPTURED"&&!c?jsx(a$1,{title:D("Capture"),children:jsx(H,{children:jsx(F,{src:ot.CAPTURED?.icon,alt:"auto"})})}):jsx(a$1,{title:D("Capture"),children:jsx(H,{children:jsx(F,{src:ot.CAPTURED?.icon,alt:"auto"})})}),I=e$1===100?jsx(a$1,{title:w("captured"),children:jsx(Le,{children:jsx(F,{src:Nj,alt:"captured"})})}):x,W=useMemo(()=>p&&I?jsx(b$2,{chipIndex:4,copyText:w("captured"),selectionProps:f,children:w("captured")}):n&&I?jsx(k$1,{children:w("captured")}):I,[n,I,p,f]);return W&&jsx("div",{id:g,"data-testid":"CaptureAutoIcon",style:{zIndex:12},children:W})}var Ee=Fo;function Ko({voidPercentage:t,capturePercentage:e$1,voidCount:o,autoType:r,captureAmount:l$1,voidAmount:s,currency:i,isTextShown:n,isSheetViewShown:d,selectionProps:p={},remainingAmount:f}){let c=Number(e$1)+Number(t)===100||f<=0,g=Jc(useId(),"void-auto-icon"),T=useTheme$1(),{t:w}=useTranslation(),P=Qa(f||0),D=useCallback(C=>`Auto ${C} - ${i} ${P.integerAmount}.${P.decimalAmount}`,[i,P.decimalAmount,P.integerAmount]),Q=useCallback(C=>{let Y=C==="Capture"?l$1:s,{integerAmount:E,decimalAmount:v}=Ra(Y,i);return `Partial ${C} - ${i} ${E}.${v}`},[l$1,s,i]),x=t>1?jsx(a$1,{title:Q("Void"),children:jsxs(xt,{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:[jsxs(gt,{percentage:t,children:[t,"% ",jsx(It,{percentage:ht(t)})]}),o>0&&jsx(motion.div,{style:{alignItems:"center",justifyContent:"center",gap:"4px",width:0,display:"none"},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(e,{compact:true,variant:"neutral",children:[o,"x"]})})]})}):r==="VOID"&&!c?jsx(a$1,{title:D("Void"),children:jsx(H,{children:jsx(F,{src:ot.VOID?.icon,alt:"auto"})})}):null,I=t===100?jsx(a$1,{title:w("void"),children:jsx(H,{children:jsx(F,{src:ck,alt:"void"})})}):x,W=useMemo(()=>d&&I?jsx(b$2,{chipIndex:5,copyText:w("void"),selectionProps:p,children:w("void")}):n&&I?jsx(l,{children:w("void")}):I,[n,I,d,p]);return W?jsx("div",{id:g,"data-testid":"VoidAutoIcon",style:{...!d&&{zIndex:11}},children:W}):null}var _e=Ko;var Jo=Ee;var Me=b(V(),1);var er=({authorizedStatus:t,isTextShown:e,iconStyles:o,tableMode:r,chipIndex:l=0,selectionProps:s={}})=>{let{t:i}=useTranslation(),n=useTheme$1(),d=i((0, Me.default)(t));return cb(r)?jsx(b$2,{copyText:d,chipIndex:l,selectionProps:s,children:d}):jsx(a$1,{title:d,children:e?jsx(j,{"data-testid":"StatusCell_AuthorizedStatusLabel",sx:{color:n.palette.info.dark},children:d}):jsx(a$2,{src:f[t],alt:"authorized-icon","data-testid":"StatusCell_AuthorizedStatusIcon",sx:o})})};var k=b(V(),1);var Ne=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)})),ze=styled$1(motion.span)(()=>({display:"block",width:"0",overflow:"hidden"})),Dt=styled$1("img")(()=>({width:"10px",height:"10px"})),Et=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"})),$t=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"}})),Ge=styled$1(motion.div)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start"})),Fe=styled$1(motion.span)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minHeight:"24px",cursor:"pointer",borderRadius:"16px"})),Ue={delay:.2,ease:"easeIn",fadeIn:{duration:.2}},Oe={animate:{width:"auto",paddingRight:"4px",paddingLeft:"4px"},fadeIn:{opacity:1,transition:{delay:.7}}},je={animate:{width:"auto"},fadeIn:{opacity:1,transition:{delay:1}}},He={animate:{width:"auto",paddingRight:"8px",paddingLeft:"4px"}},_t={fadeIn:{duration:.3},animate:{duration:.1}},qe={fadeIn:{opacity:1}},Ke=styled$1(j)(()=>({width:"88px",height:"100%"})),Vt=styled$1(Box)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(.25),height:"100%"}));function ir({chargeStatus:t,gatewayTooltip:e,acquirerTooltip:o$1,chargeTooltip:r,errorCode:l,isTextShown:s,gatewayCode:i,acquirerCode:n,unCapturedStyles:d,iconStyles:p$1,iconWrapperStyles:f,gatewayIconWrapperStyles:c,gatewayContainerStyles:g$1,gateWayIconStyles:T,showBadge:w=true,isSheetViewShown:P=false,selectionProps:D={},chipIndex:Q=0}){let x=t?b$3[t]:null,I=t?g[t]:null,W=useTheme$1(),{t:C}=useTranslation(),Y=Jc(useId(),"charge-status-icon"),E=r&&jsx(Fragment,{children:jsx("div",{children:r})}),v=o$1&&jsxs(Fragment,{children:[jsx("div",{children:"Acquirer"}),jsx("div",{children:o$1})]}),Z=e&&jsxs(Fragment,{children:[jsx("div",{children:"Gateway"}),jsx("div",{children:e})]}),Ft=t&&a$3[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,{src:a$3[t],alt:"charge-icon","data-testid":"ChargeStatusIcon_StatusIcon",style:{borderRadius:x?"50%":"",width:"16px",height:"16px",...p$1}})});return P?jsxs(Vt,{children:[jsxs(b$2,{copyText:C((0, k.default)(t)),chipIndex:Q,selectionProps:D,children:[C((0, k.default)(t))," ",l]}),x&&jsxs(Fragment,{children:[i&&jsxs(b$2,{copyText:"Gateway",chipIndex:1,selectionProps:D,children:["Gateway ",i]}),n&&jsxs(b$2,{copyText:"Acquirer",chipIndex:2,selectionProps:D,children:["Acquirer ",n]})]})]}):s?jsxs(Vt,{children:[jsx(a$1,{title:E,children:jsxs(Ke,{"data-testid":"ChargeStatusIcon_isTextShown","data-status":(0, k.default)(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((0, k.default)(t))," ",l]})}),x&&jsxs(Fragment,{children:[i&&jsx(a$1,{title:Z,children:jsxs(j,{"data-testid":"ChargeStatusIcon_isTextShown","data-status":(0, k.default)(t),sx:{background:x?.background||I?.background||"transparent",color:x?.color||I?.color||W.palette.info.dark},children:["Gateway ",i]})}),n&&jsx(a$1,{title:v,children:jsxs(j,{"data-testid":"ChargeStatusIcon_isTextShown","data-status":(0, k.default)(t),sx:{background:x?.background||I?.background||"transparent",color:x?.color||I?.color||W.palette.info.dark},children:["Acquirer ",n]})})]})]}):jsx(o,{id:Y,"data-testid":"ChargeStatusIcon_StatusIconWrapper",style:{...f},children:en?.includes(t||"")&&(E||v||Z)?jsxs(Fe,{"data-testid":"ChargeStatusIcon_UnCapturedContainer",whileHover:["animate","fadeIn"],style:{left:"0",...w&&{paddingInline:"12px",border:"1px solid #F2F2F2",borderRadius:"12px",backgroundColor:"#fff"},...d},children:[jsx(Ge,{"data-testid":"ChargeStatusIcon_UnCapturedBadge",sx:{borderRadius:"56px"},initial:{background:"transparent"},variants:{animate:{background:x?.background}},children:jsx(a$1,{title:E??C((0, k.default)(t)),children:jsxs(Fragment,{children:[Ft,jsx(ze,{"data-testid":"ChargeStatusIcon_ErrorCodeWrapper",transition:{animate:{duration:.05}},variants:He,style:{...l&&{padding:"0 !important"}},children:jsx(Ne,{"data-testid":"ChargeStatusIcon_ErrorCodeLabel",sx:{background:x?.color},transition:Ue,variants:qe,initial:{opacity:0},children:l})})]})})}),jsx($t,{"data-testid":"ChargeStatusIcon_GatewaysContainer",transition:_t,variants:Oe,style:g$1,isVisible:!!Z,children:Z&&jsx(a$1,{title:Z,children:jsx(Et,{"data-testid":"ChargeStatusIcon_GatewayIconWrapper",style:{background:x?.background,...c},children:jsx(Dt,{src:x?.gatewayIcon,alt:"gateway-icon","data-testid":"ChargeStatusIcon_GatewayIcon",style:T})})})}),jsx($t,{"data-testid":"ChargeStatusIcon_GatewaysContainer",transition:_t,variants:je,style:g$1,isVisible:!!v,children:v&&jsx(a$1,{title:v,children:jsx(Et,{"data-testid":"ChargeStatusIcon_AcquirerIconWrapper",style:{background:x?.background,...c},children:jsx(Dt,{src:x?.acquirerIcon,alt:"acquirer-icon","data-testid":"ChargeStatusIcon_AcquirerIcon",style:T})})})})]}):jsx(a$1,{title:E??C((0, k.default)(t)),children:jsx(o,{children:Ft})})})}var lr=()=>{let{t}=useTranslation(),e=Jc(useId(),"customer-initiated-icon");return jsx(a$1,{title:t("merchantInitiated"),children:jsx("img",{id:e,"data-testid":"merchantInitiatedIcon",src:sb,alt:"merchant",style:{width:"16px",height:"16px"}})})};var dr={G:"Global",R:"Regional",L:"Local"},rt=({geographyVariant:t,countryCode:e,isTextShown:o})=>{let r=t?dr[t]:void 0,l=r||e?`${r||""} ${r&&e?"-":""} ${e?`Country - ${e}`:""}`:void 0;return o||!e?null:jsx(a$1,{title:l,children:jsx(a$4,{countryCode:e})})};var ur=({geographyVariant:t,isTextShown:e,deviceCountry:o,deviceType:r,tableMode:l})=>{let s=Jc(useId(),"device-icon-chip");return jsxs(cr,{id:s,"data-testid":"DeviceIconChip",sx:{display:"flex",gap:"8px",alignItems:"center",...cb(l)&&{height:"18px"}},children:[jsx(rt,{geographyVariant:t,isTextShown:e,countryCode:o}),jsx(c,{type:r,isTextShown:e,tableMode:l})]})};var gr=({isDisputeOpen:t,iconStyles:e})=>{let o=Jc(useId(),"dispute-icon");return jsx(p,{id:o,"data-testid":"StatusCell_DisputeStatusIcon",sx:{width:"13.5px",height:"13.5px"},src:t?ta:sa,alt:"dispute-icon",style:e})};var Ze=styled$1(cr,{shouldForwardProp:t=>t!=="tableMode"})(({theme:t,tableMode:e})=>({display:"flex",gap:t.spacing(.5),...cb(e)&&{height:"18px"},alignItems:"center"})),to=styled$1("span")(({theme:t})=>({fontSize:"10px",fontWeight:500,color:t.palette.text.primary}));function Nt({countryCode:t,isTextShown:e,cardNumber:o,bankName:r,tableMode:l}){let s=Jc(useId(),"issuer-icon"),i=o?.slice(0,4),n=o?.slice(-4);return jsxs(Ze,{id:s,"data-testid":"IssuerIcon",tableMode:l,children:[t&&jsx(rt,{countryCode:t,isTextShown:e}),jsx(a$1,{title:`${r?`Issuer - ${r}`:""}`,children:jsx(to,{children:`${i||""} ${n||""}`})})]})}var br=Nt;var eo=b(V(),1);styled(motion.div)(({theme:t,background:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(.5),paddingInline:t.spacing(.75),paddingBlock:t.spacing(.5),backgroundColor:e,height:"24px",width:"fit-content",borderRadius:"24px",fontSize:"10px",color:t.palette.text.primary}));var Mi=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"})),Ni=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"})),zi=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px"}));var wr=({payoutStatus:t="PENDING",isTextShown:e,payoutTooltip:o,iconStyles:r,isSheetViewShown:l,chipIndex:s=0,selectionProps:i={}})=>{let{t:n}=useTranslation(),d=Jc(useId(),"payout-icon"),p$1=n((0, eo.default)(t)),f=o||p$1;return l?jsx(b$2,{chipIndex:s,copyText:p$1,selectionProps:i,children:p$1}):jsx(a$1,{title:f,children:e?jsx(bt,{id:d,"data-testid":"StatusCell_PayoutStatusLabel",children:p$1}):jsx(p,{id:d,src:e$1[t],alt:"settled-icon","data-testid":"StatusCell_PayoutStatusIcon",style:r})})};var no=b(V(),1);var oo=styled$1(motion.img)(()=>({width:"14px",height:"14px"})),ro=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})),zt=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"}));var ep=styled$1(motion.span)(({isTextShown:t,theme:e})=>({border:`1px solid ${e.palette.divider}`,borderRadius:"12px",backgroundColor:e.palette.background.paper,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",minWidth:t?"auto":"36px",...t&&{border:"none"}})),op=styled$1(motion.div,{shouldForwardProp:t=>t!=="statusesCount"})(({statusesCount:t})=>({display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",minWidth:`${t*6+36}px `,minHeight:"24px",cursor:"pointer",borderRadius:"16px"})),rp=styled$1(motion.div)(()=>({display:"flex",gap:"4px",justifyContent:"flex-start",alignItems:"center",position:"relative",width:"100%",overflow:"visible"}));var Rr=({isTextShown:t,refundStatus:e="PENDING",refundTooltip:o="",refundCount:r,iconStyles:l,isSheetViewShown:s,chipIndex:i=0,selectionProps:n={}})=>{let{t:d$1}=useTranslation(),p$1=useTheme$1(),f=Jc(useId(),"refund-icon"),c=(r||0)>1,g=d$1((0, no.default)(e));if(s)return jsxs(b$2,{chipIndex:i,selectionProps:n,copyText:g,children:[g," ",c?`${r}x`:null]});let T=jsxs(ro,{"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(a$1,{title:jsx("div",{children:jsx("div",{children:o})}),children:jsx(bt,{id:f,"data-testid":"StatusCell_RefundStatusLabel",sx:{color:d[e].color,backgroundColor:d[e].backgroundColor,width:"90px"},children:jsxs(zt,{whileInView:c?["animate","fadeIn"]:void 0,variants:{animate:{boxShadow:p$1.shadows[4],gap:p$1.spacing(.5)}},children:[g," ",c?T:null]})})}):jsx(a$1,{title:jsx("div",{children:jsx("div",{children:o})}),children:c?jsxs(zt,{id:f,whileHover:["animate","fadeIn"],animate:"start",variants:{animate:{boxShadow:p$1.shadows[4],gap:p$1.spacing(.5)}},children:[jsx(oo,{src:Wj,alt:"multi-refunded-icon","data-testid":"StatusCell_MultiRefundIcon"}),T]}):jsx(p,{id:f,src:c$1[e],alt:"refunded-icon","data-testid":"StatusCell_RefundStatusIcon",style:l})})},ao=Rr;var kr=ao;var Pt=b(V(),1);var Br={american_express:"AMEX",debit:"card",credit:"card"},L=t=>Br[t?.toLowerCase()||""]||t;var co=b(V(),1);styled("span")(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(1)}));var io=styled("img")(()=>({maxWidth:"24px",maxHeight:"16px"}));styled(motion.span,{shouldForwardProp:t=>t!=="sourcesCount"})(({theme:t,sourcesCount:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minWidth:`${e*6+36}px `,minHeight:"24px",cursor:"pointer",backgroundColor:t.palette.background.paper,borderRadius:"16px"}));var po=styled("span")(({theme:t})=>({fontSize:"11px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"2px 0",color:t.palette.text.primary})),so=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 lo=styled("span")(({theme:t})=>({fontSize:"10px",fontWeight:500,color:t.palette.text.primary}));function wt({source:t,isTextShown:e,title:o,width:r,height:l,imgSx:s}){let{t:i}=useTranslation(),n=h(t);return jsx(a$1,{title:o,children:e?jsx(so,{"data-testid":"SourceCell_BadgeTextWrapper",children:jsx(po,{"data-testid":"SourceCell_TextLabel","data-source":t,children:i((0, co.default)(t))})}):jsx(io,{src:n,alt:t,width:r,height:l,onError:d=>{d.currentTarget.src=h("card");},sx:s})})}function Mr({payment:t,card:e,isTextShown:o,firstIcon:r}){let l=Jc(useId(),"source-icons"),{t:s}=useTranslation(),i=useCallback(()=>{let p=[],f=nc(t),c=t?.method,g=t?.scheme;return L(c)?.toLowerCase()===L(g)?.toLowerCase()?p.push(L(c),L(f)):p.push(L(c),L(f),L(g)),p},[t]),n=useMemo(()=>jsx(wt,{source:r,isTextShown:o,title:s((0, Pt.default)(r))},r),[r,o,s]),d=useMemo(()=>i()?.filter(p=>!!p&&p!==r)?.map((p,f,c)=>{let g=t?.wallet===s("sv_wallet")?s("storedValueWallet"):s("passThruWallet"),T=f===c.length-1&&e?.last_four?`${s((0, Pt.default)(p))} - ${e?.last_four}`:s((0, Pt.default)(p));return jsx(wt,{source:p,isTextShown:o,title:f===0&&p==="Wallet"?g:T},`${p}-${f}`)}),[i,t,e,o,s,r]);return jsxs(Box,{id:l,"data-testid":"SourceIcons",display:"flex",alignItems:"center",gap:.5,children:[r&&n,d,e?.last_four&&jsxs(lo,{children:["\xB7\xB7\xB7 ",e?.last_four]})]})}var at={PROCESSED:wg,FAILED:""};var xo=styled("span")(({theme:t})=>({fontSize:"11px",padding:"2px 0",color:t.palette.text.primary})),go=styled("img")(()=>({width:"16px",height:"16px"})),Io=styled("span")(()=>({width:"24px",height:"24px",borderRadius:"50%",backgroundColor:"transparent",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}));var Wt=b(V(),1);function ho({status:t,isTextShown:e,isSheetViewShown:o,chipIndex:r=0,selectionProps:l={}}){let s=useTheme(),{t:i}=useTranslation(),n=Jc(useId(),"destination-icon"),d=i((0, Wt.default)(t));return o&&at[t]?jsx(b$2,{copyText:d,chipIndex:r,selectionProps:l,children:d}):e&&at[t]?jsx(xo,{id:n,"data-testid":"ChargeStatusIcon_isTextShown","data-status":(0, Wt.default)(t),sx:{background:"#1F88D00D",color:t==="PROCESSED"?s.palette.info.dark:s.palette.common.black},children:d}):jsx(Io,{id:n,"data-testid":"DestinationIcon",className:"destination-status",children:t&&at[t]&&jsx(a$1,{title:i((0, Wt.default)(t)),children:jsx(go,{src:at[t],alt:"destination-icon"})})})}export{ep as a,op as b,rp as c,Ro as d,Lo as e,Do as f,_e as g,Jo as h,V as i,er as j,ir as k,lr as l,rt as m,ur as n,gr as o,br as p,Mi as q,Ni as r,zi as s,wr as t,kr as u,L as v,wt as w,Mr as x,ho as y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc,pc}from'./chunk-
|
|
1
|
+
import {Jc,pc}from'./chunk-B2JRH27J.js';import {forwardRef,useId,memo}from'react';import {styled}from'@mui/material/styles';import x from'@mui/material/TableCell';import {jsx}from'react/jsx-runtime';import {styled as styled$1,Avatar}from'@mui/material';import {motion}from'framer-motion';var p=styled(x,{shouldForwardProp:e=>e!=="rowId"})(({theme:e})=>({fontSize:e.typography.body2.fontSize,fontWeight:e.typography.fontWeightRegular,color:e.palette.text.primary,padding:e.spacing(0),verticalAlign:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"block",width:"100%",border:"none",textAlign:e?.direction==="ltr"?"left":"right"}));var h=forwardRef(({children:e,...o},r)=>{let d=Jc(useId(),"table-cell");return jsx(p,{id:d,component:"div","data-testid":"TableCell",...o,ref:r,children:e})}),a=memo(h);var W=styled$1("span",{shouldForwardProp:e=>e!=="variant"})(({theme:e,variant:o})=>({display:"flex",width:"17px",height:"12px",backgroundColor:o?pc(e.palette)[o]:"transparent",borderRadius:"2px",flexShrink:0,overflow:"hidden",visibility:"hidden","& > img":{width:"100%",height:"100%",objectFit:"cover"}})),A=styled$1("button")({background:"transparent",border:"none",padding:0,cursor:"pointer",outline:"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),F=styled$1(motion.div)(({theme:e})=>({borderRadius:"12px",backgroundColor:e.palette.background.paper,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",gap:e.spacing(.5)})),$=styled$1("img")(()=>({width:"12px",height:"12px"})),z=styled$1("span",{shouldForwardProp:e=>e!=="isShown"})(({theme:e,isShown:o})=>({...o&&{border:`1px solid ${e.palette.divider}`},borderRadius:"12px",backgroundColor:o?e.palette.background.paper:"transparent",width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,overflow:"hidden",visibility:"hidden"})),G=styled$1("span")(({theme:e})=>({color:e.palette.common.white,borderRadius:e.spacing(.5),padding:"1.285px 2.569px",height:"12px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"9.782px",fontWeight:600})),L=styled$1("div")(()=>({display:"flex",width:"24px",height:"24px",alignItems:"center",justifyContent:"center",borderRadius:"64px;",border:"1px solid #F2F2F2;"})),O=styled$1(Avatar)(({theme:e})=>({width:24,height:24,fontSize:"8.5px",fontWeight:500,border:`1px solid ${e.palette.divider}`})),l=styled$1("div")(({theme:e})=>({fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"4px 8px",borderRadius:"24px",border:`1px solid ${e.palette.divider}`})),V=styled$1(l)(({theme:e})=>({color:e.palette.info.dark,backgroundColor:e.palette.info.light,borderColor:e.palette.divider,minWidth:"88px",height:"24px"})),E=styled$1(l)(({theme:e})=>({color:e.palette.grey.A700,backgroundColor:`${e.palette.grey.A700}1A`,minWidth:"88px",height:"24px"})),H=styled$1(a)(()=>({fontSize:"11px",textAlign:"left",display:"flex",justifyContent:"flex-start",alignItems:"center",overflow:"hidden",gap:"4px",textOverflow:"ellipsis",whiteSpace:"nowrap"})),M=styled$1("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:e.spacing(1)})),Z=styled$1("span")(()=>({width:"24px",height:"24px",borderRadius:"50%",backgroundColor:"transparent",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0})),q=styled$1("img")(()=>({width:"36px",height:"24px"})),D=styled$1("div")(({percentage:e,isCapture:o,theme:r})=>({background:`conic-gradient(${o?r.palette.info.dark:"#656565"} ${e}%, transparent 0.00%)`,borderRadius:"50%",width:"8.333px",height:"8.333px",border:`0.6px solid ${o?r.palette.info.dark:"#656565"}`}));export{a,W as b,A as c,F as d,$ as e,z as f,G as g,L as h,O as i,l as j,V as k,E as l,H as m,M as n,Z as o,q as p,D as q};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-B2JRH27J.js';import {x}from'./chunk-GIROE252.js';import {memo,useId,useCallback}from'react';import {Slider}from'@mui/material';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var p=["0px 0px 1.25px 0px rgba(0, 0, 0, 0.1)","0px 1.25px 1.25px 0px rgba(0, 0, 0, 0.09)","0px 3.75px 2.5px 0px rgba(0, 0, 0, 0.05)","0px 7.5px 2.5px 0px rgba(0, 0, 0, 0.01)","0px 11.25px 3.75px 0px rgba(0, 0, 0, 0)"].join(", "),d=styled(Slider)(({theme:e})=>({color:e.palette.info.dark,height:8,padding:0,"& .MuiSlider-rail":{backgroundColor:"#CFCFCF",opacity:1},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:e.palette.common.white,border:"none",backgroundImage:`url(${x})`,backgroundRepeat:"no-repeat",backgroundPosition:"center",boxShadow:p,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:p}}}));function t({value:e,min:a,max:n,step:l,disabled:m,onChange:r}){let u=Jc(useId(),"slider"),b=useCallback((k,x)=>{r(x);},[r]);return jsx(d,{id:u,"data-testid":"Slider",value:e,min:a,max:n,step:l,disabled:m,onChange:b})}t.displayName="Slider";var h=memo(t);export{h as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-2N7C43B5.js';import {Jc}from'./chunk-B2JRH27J.js';import {memo,useId}from'react';import {styled}from'@mui/material/styles';import {Box}from'@mui/material';import {jsx,jsxs}from'react/jsx-runtime';var p=styled(b)(()=>({backgroundColor:"#EFF1F2",border:"none",display:"flex",alignItems:"center",justifyContent:"center"})),i=styled("span")(()=>({display:"flex",alignItems:"center"}));function C({amount:s,currency:t,...a}){let u=Jc(useId(),"amount-status-chip");return jsx(p,{id:u,"data-testid":"AmountStatusChip",disableAnimation:true,expandDirection:"left",...a,children:jsxs(Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:"4px"},children:[t&&jsx(i,{children:t}),s]})})}var m=memo(C);var L=m;export{L as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Kc,gc}from'./chunk-
|
|
1
|
+
import {Kc,gc}from'./chunk-GIROE252.js';import a from'@mui/material/Box';import {Toaster,resolveValue}from'react-hot-toast';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var n=styled(a)(({theme:o})=>({borderRadius:"4px",padding:"8px",backgroundColor:o.palette.common.white,fontWeight:"600",fontSize:"11px",color:o.palette.text.primary,boxShadow:"0px 0px 20px 0px rgba(0, 0, 0, 0.15)",backdropFilter:"blur(6px)",display:"flex",alignItems:"center",gap:"8px"}));var s={success:gc,error:Kc};function r(){return jsx(Toaster,{children:o=>jsxs(n,{children:[s[o.type]&&jsx(a,{component:"img",src:s[o.type],alt:o.type}),jsx(a,{children:resolveValue(o.message,o)})]})})}var B=r;export{B as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-B2JRH27J.js';import {t,s}from'./chunk-GIROE252.js';import {useId}from'react';import S from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,Fragment}from'react/jsx-runtime';var c=styled(S)(()=>({height:10}));styled("span")(({theme:o})=>({fontSize:o.typography.body2.fontSize,lineHeight:"17px",fontWeight:"700"}));styled("span")(()=>({fontWeight:"400"}));var l=styled("span")(({symbol:o,fontSize:e,color:t})=>({display:"inline-block",height:e,width:e,backgroundColor:t,maskImage:`url("${o}")`,maskSize:"contain",maskRepeat:"no-repeat",maskPosition:"center",WebkitMaskImage:`url("${o}")`,WebkitMaskSize:"contain",WebkitMaskRepeat:"no-repeat",WebkitMaskPosition:"center"}));var u={SAR:s,AED:t};function g({currency:o,fontSize:e,color:t,sx:m={}}){let a=Jc(useId(),"currency-symbol"),n=u[o];return n?t?jsx(l,{id:a,"data-testid":"CurrencySymbol",symbol:n,fontSize:e,color:t,"aria-label":o,role:"img",sx:m}):jsx(c,{id:a,"data-testid":"CurrencySymbol",component:"img",src:n,alt:o,sx:{height:e,...m}}):jsx(Fragment,{children:o})}var b=g;var B=b;export{B as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {f}from'./chunk-
|
|
1
|
+
import {f}from'./chunk-5Q5JNBWU.js';import {Jc}from'./chunk-B2JRH27J.js';import {memo,useId,useState,useRef,useMemo}from'react';import {useTheme}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import C from'@mui/material/Box';import v from'@mui/material/Button';import {styled,alpha}from'@mui/material/styles';function m({isActive:o}){let[t,r]=useState(false),a=useTheme(),s=()=>{r(true);},p=()=>{r(false);},l=o?a.palette.common.white:a.palette.grey[700],c=t?a.palette.common.black:"transparent";return jsx("svg",{width:"27",height:"30",viewBox:"0 0 27 32",xmlns:"http://www.w3.org/2000/svg",children:jsxs("g",{id:"Group 140343",children:[jsx("path",{id:"Active",d:"M0 0H11C19.8366 0 27 7.16344 27 16C27 24.8366 19.8366 32 11 32H0V0Z",fill:c,fillOpacity:"0.1",onMouseEnter:s,onMouseLeave:p}),jsx("path",{id:"Union",fillRule:"evenodd",clipRule:"evenodd",d:"M15.6941 15.0078C15.6494 15.0193 15.6083 15.043 15.5758 15.0769L12.5026 18.1501L12.5025 18.1501L15.5756 15.0769C15.6082 15.043 15.6493 15.0193 15.6941 15.0078ZM12.5619 18.7465C12.5426 18.7512 12.5227 18.7536 12.5026 18.7536C12.4363 18.7536 12.3727 18.7273 12.3258 18.6804L9.07581 15.4304C9.04012 15.3957 9.01559 15.3512 9.00535 15.3025C8.99511 15.2538 8.99963 15.2032 9.01833 15.1571C9.03703 15.111 9.06907 15.0715 9.11033 15.0437C9.13446 15.0275 9.16112 15.0156 9.18904 15.0086C9.16105 15.0156 9.13433 15.0275 9.11013 15.0438C9.06887 15.0716 9.03684 15.111 9.01814 15.1571C8.99944 15.2032 8.99492 15.2539 9.00516 15.3026C9.0154 15.3513 9.03993 15.3958 9.07562 15.4305L12.3256 18.6805C12.3725 18.7273 12.4361 18.7537 12.5024 18.7537C12.5226 18.7537 12.5426 18.7512 12.5619 18.7465ZM16.1965 15.342C16.1781 15.4301 16.1338 15.5105 16.0693 15.5731L12.8205 18.8219C12.7361 18.9063 12.6217 18.9537 12.5024 18.9537C12.3831 18.9537 12.2686 18.9062 12.1842 18.8219L8.93507 15.5728C8.87148 15.5105 8.82775 15.4308 8.80944 15.3437C8.79101 15.2561 8.79914 15.165 8.8328 15.082C8.86646 14.999 8.92412 14.9279 8.99839 14.8779C9.07266 14.8279 9.16022 14.8011 9.24978 14.8011C9.30998 14.8011 9.36958 14.8132 9.42503 14.8366C9.47997 14.8599 9.52973 14.8938 9.57144 14.9364L12.5024 17.8673L15.433 14.9368C15.5151 14.852 15.6273 14.803 15.7454 14.8002C15.836 14.798 15.9252 14.8233 16.0013 14.8728C16.0773 14.9222 16.1367 14.9935 16.1715 15.0772C16.2063 15.1609 16.2151 15.2533 16.1965 15.342Z",fill:l})]})})}var y=o=>({...o.typography.subtitle1,borderRadius:"50px",borderWidth:"1px",borderStyle:"solid",minWidth:"135.11px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",gap:"8px",textTransform:"none",transition:"none",paddingInline:o.spacing(2)}),B=styled(v)(({theme:o})=>({...y(o),background:o.palette.background.gradient.shadedBlue,color:o.palette.common.white,"&:hover":{background:o.palette.background.gradient.shadedBlue,opacity:.8}})),b=styled(v)(({theme:o})=>({...y(o),backgroundColor:o.palette.common.white,borderColor:o.palette.grey[100],color:o.palette.text.primary,"&:hover":{backgroundColor:o.palette.common.white,opacity:.7}}));styled(C)(({theme:o,variant:t})=>({borderRadius:"50px",backgroundColor:t==="active"?alpha(o.palette.text.primary,.1):o.palette.grey[100],display:"flex",justifyContent:"center",alignItems:"center",paddingInline:o.spacing(.5),paddingBlock:o.spacing(.25),color:t==="active"?o.palette.common.white:o.palette.text.primary,fontSize:"8px",fontWeight:700,lineHeight:"10px"}));styled("img")(({theme:o,variant:t})=>({fill:t==="active"?o.palette.common.white:o.palette.text.primary,color:t==="active"?o.palette.common.white:o.palette.text.primary,maxWidth:"14px",maxHeight:"14px"}));styled("p")(({theme:o})=>({fontSize:"0.6875rem",color:o.palette.background.default,fontStyle:"normal",margin:"auto",textTransform:"capitalize"}));var I=styled(f)(({theme:o})=>({backgroundColor:"white",boxShadow:o.shadows[21],borderRadius:"0.25rem","& .MuiPaper-root":{borderRadius:"0.25rem",width:"12.5rem"}})),D=styled("span")(()=>({width:"27px",height:"100%",maxHeight:"100%",position:"absolute",top:"0",right:"0",bottom:"0",overflow:"hidden"})),L=styled(C)(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"100%"})),k=styled(C)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.5rem"}));var M={active:B,inActive:b};function R({variant:o="inActive",label:t,dropdownOptions:r,...a}){let s=Jc(useId(),"dropdown-button"),[p,l]=useState(null),c=useRef(null),f=!!p,g=()=>{l(null);},H=M[o],d=r&&r.length>0,h=d?jsx(m,{isActive:o==="active"}):null,T=n=>{n.stopPropagation(),n.preventDefault(),d&&l(c.current);},P=useMemo(()=>(r||[]).map(n=>({...n,onClick:A=>{n?.onClick?.(A),g();}})),[r]);return jsxs(Fragment,{children:[jsx(H,{id:s,"data-testid":"StatusButton",...a,ref:c,onClick:n=>{a?.onClick?.(n),T(n);},sx:{...d&&{paddingInlineEnd:"27px"}},children:jsxs(L,{children:[jsx(k,{children:t}),h&&jsx(D,{children:h})]})}),f&&jsx(I,{open:f,onClose:g,anchorEl:p,menuItems:P})]})}R.displayName="DropdownButton";var E=memo(R);var go=E;
|
|
2
2
|
export{m as a,go as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-B2JRH27J.js';import {Uh,Vh}from'./chunk-GIROE252.js';import {styled,Box}from'@mui/material';import I,{useId,useMemo}from'react';import {jsx,jsxs}from'react/jsx-runtime';var d=styled(Box)(({theme:e})=>({height:"32px",borderRadius:"4px",backgroundColor:e.palette.action.hover,padding:"2px",display:"flex",alignItems:"center",position:"relative",cursor:"pointer"})),u=styled(Box,{shouldForwardProp:e=>e!=="isActive"})(({isActive:e})=>({flex:1,display:"flex",justifyContent:"center",alignItems:"center",position:"relative",zIndex:2,opacity:e?1:.5})),x=styled(Box,{shouldForwardProp:e=>e!=="activeIndex"})(({theme:e,activeIndex:o})=>({position:"absolute",top:2,left:o*30+2,transition:"all 0.25s ease-in-out",width:"28px",height:"28px",backgroundColor:e.palette.common.white,borderRadius:"2px",boxShadow:"0px 0px 4px 0px rgba(0, 0, 0, 0.20)"}));var m=(t=>(t.LIST="LIST",t.CARDS="CARDS",t.MAP="MAP",t))(m||{});var y=e=>{let o=I.Children.count(e.children)-1;return jsx(d,{...e,sx:{width:o*30+2}})},w=y;var T=[{icon:jsx("img",{src:Uh,alt:"card"}),value:"CARDS"},{icon:jsx("img",{src:Vh,alt:"LIST"}),value:"LIST"}],S=e=>{let{currentView:o,onToggleClick:s,getOverrideViews:t}=e,v=Jc(useId(),"toggle-view"),l=useMemo(()=>t?t(T):T,[t]),h=useMemo(()=>l.findIndex(r=>r.value===o),[l,o]);return s?jsxs(w,{id:v,"data-testid":"ToggleView",children:[l.map(r=>jsx(u,{onClick:()=>s(r.value),sx:{height:"11.6px",width:"11.6px"},isActive:o===r.value,children:r.icon},r.value)),jsx(x,{activeIndex:h})]}):null},f=S;var $=f;export{m as a,$ as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-B2JRH27J.js';import {useId,useState,useRef,useMemo,useCallback,useEffect}from'react';import re from'@mui/material/Box';import {motion,AnimatePresence}from'framer-motion';import {styled}from'@mui/material/styles';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var v=3,h=24,B=styled("div")(()=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center"})),G=styled(motion.div)(()=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center"})),O=styled("div")(()=>({position:"relative",display:"inline-block",width:0,height:24,pointerEvents:"none"})),j=styled(motion.div)(({theme:i})=>({border:`1px solid ${i.palette.divider}`,borderRadius:12,height:24,display:"flex",alignItems:"center",justifyContent:"center",background:i.palette.background.paper,fontSize:12,position:"absolute",top:0,left:0,boxSizing:"border-box",whiteSpace:"nowrap",lineHeight:1,transition:"width 180ms ease-out, padding 180ms ease-out"})),F=styled(motion.div)(({theme:i})=>({border:`1px solid ${i.palette.divider}`,borderRadius:12,height:24,minWidth:24,display:"inline-flex",alignItems:"center",justifyContent:"center",background:i.palette.background.paper,overflow:"hidden",position:"relative",boxSizing:"border-box",whiteSpace:"nowrap",fontSize:12,lineHeight:1})),U={position:"relative",overflow:"visible",zIndex:1,display:"flex",alignItems:"center",justifyContent:"center"};function q({icons:i}){let[s,I]=useState(false),[l,R]=useState([]),P=useRef(null),S=useRef(null),y=useRef([]),e=useRef(null),u=i??[],b=Math.max(0,(u.length??1)-1),T=u[b],o=u.slice(0,b),{peekItems:w,mainShiftX:m,guardLeft:A,guardWidth:H}=useMemo(()=>{let t=o.length,D=l.length===t&&l.every(n=>n>0),g=-6*t,p=D?l.reduce((n,a)=>n+a,0):t*h,x=Math.max(0,t-1)*v,d=Math.round(s?g+p+v*t:0),E=t-1,C=-6*(E+1),z=[];for(let n=0;n<t;n++){let a=t-1-n,Z=-6*(n+1),ee=D?l.slice(0,a).reduce((_,ne)=>_+ne,0)+v*a:(h+v)*a,te=Math.round(n===E?C:C+ee);z.push({key:`peek-${n}`,rIdx:n,origIdx:a,offX:Z,hoverX:te,zIndex:t-n,refCb:_=>{y.current[a]=_;},content:o[a]});}let V=C,Y=p+x;return {peekItems:z,mainShiftX:d,guardLeft:V,guardWidth:Y}},[o,l,s]),r=useCallback(()=>{e.current&&(clearTimeout(e.current),e.current=null);},[]),f=useCallback(()=>{let g=o.map((p,x)=>{let d=y.current[x];if(!d)return h;let E=d.scrollWidth||h,C=Math.max(h,E+12+2);return Math.ceil(C)});R(p=>p.length===g.length&&p.every((x,d)=>x===g[d])?p:g);},[o.length]),K=useCallback(()=>{r(),I(true);},[r]),Q=useCallback(()=>{r(),e.current=setTimeout(()=>I(false),120);},[r]);return useEffect(()=>()=>r(),[r]),useEffect(()=>{f();},[o.length]),useEffect(()=>{if(!s)return;let t=window.requestAnimationFrame(()=>{f();});return ()=>window.cancelAnimationFrame(t)},[s,f]),{isHovering:s,handleMouseEnter:K,handleRootMouseLeave:Q,rootRef:P,mainChipRef:S,peekItems:w,mainShiftX:m,mainIcon:T,guardLeft:A,guardWidth:H}}function J({icons:i=[],expandedZIndex:s=1e3,sx:I}){let l=Jc(useId(),"left-peek-right-expanding-chip"),{handleMouseEnter:R,handleRootMouseLeave:P,rootRef:S,mainChipRef:y,isHovering:e,peekItems:u,mainShiftX:b,mainIcon:T}=q({icons:i});return jsx(re,{id:l,sx:{...U,...I},"data-testid":"LeftPeekRightExpandingChipBox",children:jsx(B,{ref:S,onMouseLeave:P,onMouseEnter:R,children:jsxs(G,{"data-testid":"Container",initial:false,children:[jsx(O,{"data-testid":"PeekStack",onMouseEnter:R,onMouseLeave:P,style:{pointerEvents:e?"auto":"none"},children:jsx(AnimatePresence,{initial:false,children:u.map(({key:o,rIdx:w,offX:m,hoverX:A,zIndex:H,refCb:r,content:f})=>jsx(j,{"data-testid":`LeftPeekChip-${w}`,ref:r,initial:{opacity:0,scale:.95,x:m,y:0},animate:{opacity:1,scale:1,x:e?A:m,y:0},exit:{opacity:0,scale:.95,x:m,y:0},transition:{duration:.18,ease:"easeOut"},style:{zIndex:H,width:e?"auto":24,minWidth:24,padding:e?"0 6px":0,whiteSpace:"nowrap",overflow:e?"visible":"hidden",pointerEvents:e?"auto":"none"},children:e&&jsx(Fragment,{children:f})},o))})}),jsx(F,{"data-testid":"MainChip",ref:y,style:{zIndex:s+10,padding:"0 6px"},initial:false,animate:{x:e?b:0},transition:{duration:.18,ease:"easeOut"},children:T})]})})})}export{J as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-JGWDDGIU.js';import {Jc}from'./chunk-B2JRH27J.js';import {_h,A}from'./chunk-GIROE252.js';import {useId}from'react';import g from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var s=styled(a)(({theme:o})=>({border:`1px solid ${o.palette.divider}`,".icon":{width:14}})),d=styled(g)(()=>({padding:"8px 16px","> div + div":{marginTop:"8px"}}));var v=({value:o,name:c,placeholder:l,onSearchChange:u,onSearchReset:f,...h})=>{let I=Jc(useId(),"search-list-input");return jsx(d,{id:I,"data-testid":"SearchListInput",...h,children:jsx(s,{className:"input",name:c,placeholder:l,onChange:t=>u(t.target.value),onKeyDown:t=>t.stopPropagation(),value:o,inputProps:{autoComplete:"off"},endAdornment:jsx(g,{component:"img","data-icon":o?"close":"search",src:o?_h:A,alt:"search",className:"icon",sx:{cursor:o?"pointer":"default"},onClick:f})})})},m=v;var R=m;export{R as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-2N7C43B5.js';import {Jc}from'./chunk-B2JRH27J.js';import {go}from'./chunk-GIROE252.js';import {memo,useId}from'react';import {jsx}from'react/jsx-runtime';var n={"3DS":{text:"3DS"},"Non-3DS":{text:"Non 3DS",styles:{...go}},"Device Biometric":{text:"Biometric"}};function u({title:t,ref:r,...s}){let c=Jc(useId(),"authentication-type-chip"),i=n[t];return jsx(b,{id:c,"data-testid":"AuthenticationTypeChip",chipStyles:i?.styles,ref:r,...s,children:i?.text||t})}var h=memo(u);var W=h;export{W as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-B2JRH27J.js';import {Kc}from'./chunk-GIROE252.js';import {memo,useId}from'react';import d from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var e=styled(d)(({theme:r})=>({fontSize:"10px",color:r.palette.error.light,padding:"8px",background:r.palette.background.gradient.error,borderRadius:"4px",display:"flex",gap:"4px",alignItems:"center",height:32}));function l({error:r,...i}){let n=Jc(useId(),"error");return jsxs(e,{...i,id:n,"data-testid":"Error",children:[jsx("img",{src:Kc,alt:"w"}),r]})}var p=memo(l);var k=p;export{k as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-2N7C43B5.js';import {Jc}from'./chunk-B2JRH27J.js';import {af}from'./chunk-GIROE252.js';import {useId}from'react';import {jsxs,jsx}from'react/jsx-runtime';var T=({text:t,startLength:r=8,endLength:d=4,chipIndex:a,copyText:i,selectionProps:m})=>{let n=Jc(useId(),"masked-text"),c=t.slice(0,r),x=t.slice(t.length-d);return jsxs(b,{id:n,"data-testid":"MaskedText",chipIndex:a,copyText:i,selectionProps:m,children:[c,jsx("img",{src:af,alt:"passwordDots"}),x]})},p=T;var g=p;export{g as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d as d$1}from'./chunk-
|
|
1
|
+
import {d as d$1}from'./chunk-WF33Q4MJ.js';import {a}from'./chunk-EZMHAD3T.js';import {Jc}from'./chunk-B2JRH27J.js';import {Cb,A as A$1}from'./chunk-GIROE252.js';import {useId,useMemo,useState}from'react';import d from'@mui/material/Box';import R from'@mui/material/Skeleton';import {styled}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var b=styled(d)(({theme:e})=>({display:"flex",flexDirection:"column",borderRadius:"8px",border:`1px solid ${e.palette.divider}`,backgroundColor:e.palette.common.white,maxHeight:"232px",overflow:"auto"})),k=styled(d)(()=>({display:"flex",flexDirection:"column",gap:"8px"})),v=styled(d,{shouldForwardProp:e=>e!=="$active"})(({$active:e})=>({display:"flex",alignItems:"center",justifyContent:"center",width:"13px",height:"13px",borderRadius:"50%",...e&&{backgroundColor:"#F2F2F2"}})),y=styled("img",{shouldForwardProp:e=>e!=="$isClear"})(({$isClear:e})=>({...e&&{backgroundColor:"#F2F2F2",borderRadius:"4px",width:"8px",height:"8px"}})),W=styled(d$1,{shouldForwardProp:e=>e!=="$hasSearchValue"})(({$hasSearchValue:e})=>({cursor:e?"pointer":"default",width:"100%",fontSize:"11px",border:"1px solid #F2F2F2",backgroundColor:"#fff","&.Mui-disabled":{backgroundColor:"#F8F8F8"}})),w=styled(a)(({theme:e})=>({backgroundColor:"#F8F8F8",fontSize:"11px",fontWeight:600,padding:"4px 8px",color:e.palette.info.dark,gap:"4px"})),A=styled(a)(()=>({fontSize:"11px",padding:"4px 8px",gap:"4px",fontWeight:400})),L=styled(R)(()=>({width:"100%",height:24}));function M({onSalesChannelChange:e,onSearchChange:h,filteredOptions:a,isLoading:P,initialSalesChannels:m,initialSalesChannelsSearch:V}){let B=Jc(useId(),"sales-channel-filter"),o=useMemo(()=>m||[],[m]),[l,u]=useState(V||""),S=t=>o.some(i=>i.id===t),s=useMemo(()=>o?.length===a.length&&a?.length>0,[o,a]),g=useMemo(()=>o?.some(t=>t.id==="blank")&&o?.length===1,[o]),x=useMemo(()=>o?.length===0||g,[g,o?.length]);return jsxs(k,{id:B,"data-testid":"SalesChannelFilter",children:[jsx(W,{$hasSearchValue:!!l,placeholder:"Search",endAdornment:!x&&jsx(v,{$active:!!l,children:jsx(y,{src:l?Cb:A$1,alt:"search",$isClear:!!l,onClick:()=>{u(""),h("");}})}),disabled:x,onChange:t=>{u(t.target.value),h(t.target.value);},value:l,disableUnderline:true}),jsx(b,{children:P?Array.from({length:9}).map((t,i)=>jsx(L,{variant:"rectangular"},i)):jsxs(Fragment,{children:[jsx(w,{isSelected:s,isIndeterminate:!s&&(o?.length||0)>0,onClick:t=>{t.stopPropagation(),e(s?[]:a);},children:s?"Deselect All":"Select All"}),a.map(t=>jsx(A,{isSelected:S(t.id),onClick:i=>{i.stopPropagation();let O=S(t.id)?o?.filter(D=>D.id!==t.id):[...o??[],t];e(O);},children:t?.name?.en},t.id))]})})]})}export{M as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-B2JRH27J.js';import {useId}from'react';import {styled,Box}from'@mui/material';import {jsx}from'react/jsx-runtime';var g=styled(Box)(({theme:o})=>({backgroundColor:o.palette.action.hover,display:"flex",alignItems:"center",gap:"0.5px",padding:"1.5px",borderRadius:"3px"})),p=styled(Box,{shouldForwardProp:o=>o!=="active"})(({active:o})=>({fontSize:8,fontWeight:500,width:21,height:21,borderRadius:"1.5px",backgroundColor:o?"white":"transparent",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxShadow:o?"0px 0px 3px 0px #00000033":"none",transition:"background-color 0.2s ease, box-shadow 0.2s ease"}));var T=({options:o,activeKey:a,onChange:i,containerProps:d,buttonProps:u})=>{let m=Jc(useId(),"toggle-buttons");return jsx(g,{id:m,"data-testid":"ToggleButtons",...d,children:o.map(t=>jsx(p,{active:a===t.key,onClick:()=>i(t.key),...u,children:t.content},t.key))})},l=T;var w=l;export{w as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-GNY2VGGW.js';import {Jc}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-GNY2VGGW.js';import {Jc}from'./chunk-B2JRH27J.js';import {Rd,ti,ui,vi,wi,xi}from'./chunk-GIROE252.js';import {useId}from'react';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var m=styled(a)(({theme:t})=>({fontSize:"10px",color:"rgba(32, 35, 43, 0.5)",opacity:.7,textAlign:"left",fontWeight:t.typography.fontWeightBold,lineHeight:"14px",userSelect:"none",paddingLeft:"0.175rem",textTransform:"capitalize"})),w=styled("div")(()=>({display:"flex",justifyContent:"center",alignItems:"center",position:"relative",textAlign:"center"})),I=styled("img")(()=>({width:14,height:14,verticalAlign:"center"}));var g=new Map([["json",Rd],["brand",ti],["entity",ui],["bank",vi],["individual",wi],["password",xi]]);function W({title:t,icon:n}){let x=Jc(useId(),"window-app-icon"),e=g.get(n||"")??(g.get(t?.toLowerCase())||n);return jsxs(w,{id:x,className:"action-box","data-testid":"WindowAppIcon",children:[e&&jsx(I,{src:e,alt:"icon"}),jsx(m,{className:"title",children:t})]})}var y=W;var z=y;export{z as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-ASGUYSWV.js';import {Jc}from'./chunk-B2JRH27J.js';import {createContext,useState,useMemo,useContext,useId}from'react';import {styled,Button}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var u=styled("div")(({theme:o})=>({display:"flex",flexDirection:"column",gap:o.spacing(2),minWidth:"256px",padding:"16px"})),y=styled("p")(({theme:o})=>({fontSize:"13px",fontWeight:700,lineHeight:o.typography.h6.lineHeight,borderBottom:`1px solid ${o.palette.divider}`,margin:0,padding:"16px 16px 16px 12px",color:o.palette.text.primary})),P=styled("p")(({theme:o})=>({fontSize:o.typography.fontSize,fontWeight:o.typography.fontWeightMedium,lineHeight:o.typography.body1.lineHeight,margin:0})),h=styled("div")(({theme:o})=>({display:"flex",gap:o.spacing(1),justifyContent:"flex-end"})),c=styled(Button)(({theme:o})=>({paddingInline:o.spacing(3),paddingBlock:o.spacing(1),borderRadius:o.spacing(.5),fontSize:"11px",fontWeight:o.typography.fontWeightMedium,boxShadow:"none",border:`1px solid ${o.palette.divider}`,color:o.palette.text.primary,textTransform:"none","&:hover":{boxShadow:"none"}}));var r=createContext([{onClose:()=>{},open:false,message:"",title:"",confirmText:"",cancelText:"",onConfirm:()=>{},onCancel:()=>{}},()=>{}]);function E({children:o}){let[i,e]=useState({onClose:()=>{},open:false,message:"",title:"",onConfirm:()=>{},onCancel:()=>{},cancelText:"",confirmText:""}),t=useMemo(()=>[i,e],[i]);return jsxs(r.Provider,{value:t,children:[o,jsx(S,{})]})}var v=()=>{let[o,i]=useContext(r);return {...o,isConfirmed:({message:t,title:l,confirmText:p,cancelText:m,style:s})=>new Promise((g,T)=>{i({...o,open:true,message:t,title:l,cancelText:m,confirmText:p,style:s,onConfirm:g,onCancel:T});}).then(()=>(i({...o,open:false}),true),()=>(i({...o,open:false}),false))}};function d(){let o=Jc(useId(),"confirm-dialog"),{open:i,onClose:e,onConfirm:t,onCancel:l,confirmText:p,cancelText:m,message:s,title:f,style:g}=v();return jsxs(a,{open:i,onClose:e,sx:g,id:o,"data-testid":"ConfirmDialog",children:[f&&jsx(y,{className:"title",children:f}),jsxs(u,{children:[jsx(P,{className:"message",children:s}),jsxs(h,{children:[jsx(c,{className:"cancel",onClick:l,children:m||"No"}),jsx(c,{className:"confirm",onClick:t,children:p||"Yes"})]})]})]})}var S=d;export{r as a,E as b,v as c,S as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-KHM5KW53.js';import {Jc,q}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-KHM5KW53.js';import {Jc,q}from'./chunk-B2JRH27J.js';import {kb}from'./chunk-GIROE252.js';import {styled as styled$1,alpha}from'@mui/material';import {styled}from'@mui/material/styles';import {useId}from'react';import {useTranslation}from'react-i18next';import {motion}from'framer-motion';import {jsx,jsxs}from'react/jsx-runtime';var c=(o=>(o.DEFAULT="default",o.PRIMARY="primary",o.SECONDARY="secondary",o.SUCCESS="success",o.WARNING="warning",o.ERROR="error",o.INACTIVE="inActive",o.ACTIVE="active",o.DARK="dark",o.NEUTRAL="neutral",o.GRAY="gray",o.ORANGE="orange",o.RED="red",o))(c||{});var I=(e,t)=>new Map([["default",t.palette.info.main],["primary","#1976d2"],["secondary","#f50057"],["inActive",t.palette.grey[100]],["active",alpha(t.palette.text.primary,.1)],["dark",t.palette.info.dark],["neutral","#656565"],["gray","#CFCFCF"],["orange","#FFD503"],["red","#FF0000"]]).get(e)||t.palette.common.white,x=(e,t)=>new Map([["default",t.palette.common.white],["primary",t.palette.common.white],["secondary",t.palette.common.white],["inActive",t.palette.text.primary],["active",t.palette.common.white],["dark",t.palette.common.white],["neutral",t.palette.common.white]]).get(e)||t.palette.common.white,E=new Map([["compact",.5],["round",0],["normal",2]]),d=styled("span")(({theme:e,variant:t,compact:r,round:n,pointer:C})=>({padding:r?"0.08031rem 0.16056rem":n?"0.5rem 0.275rem":"8px 8px",borderRadius:e.spacing(E.get(n?"round":r?"compact":"normal")||2),backgroundColor:I(t,e),color:x(t,e),fontSize:"0.6rem",fontWeight:600,overflow:"hidden",height:"12px",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"Tap Sans",cursor:C?"pointer":"auto"}));d.displayName="CountBadge";var u=d;var A=styled$1(motion.span)(({order:e})=>({zIndex:(e||0)+1})),p=(e,t)=>({start:{x:e*6,transition:{duration:.3,type:"tween",ease:"easeIn"}},animate:{x:t?e*t:e*39,transition:{duration:.3,type:"tween",ease:"easeOut"}}}),f=styled$1("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",gap:e.spacing(.25)}));function N({totalPaymentsCount:e,index:t}){let r=Jc(useId(),"count-animated-badge"),{t:n}=useTranslation();return jsx(a,{title:n("totalPaymentCount",{amount:q(e)}),children:jsx(A,{id:r,order:t,variants:p(t),"data-testid":"AgreementCell_CountAnimatedBadge",children:jsxs(f,{children:[jsx("img",{src:kb,alt:"start",style:{width:"10px",height:"10px"}})," ",(e||0)>1&&jsx("span",{style:{fontSize:"9.782px"},children:e})]})})})}var _=u;export{c as a,A as b,p as c,N as d,_ as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a,c as c$1,d as d$1}from'./chunk-6MUD4YHP.js';import {c,d}from'./chunk-YHKP64BF.js';import {b,a as a$1}from'./chunk-WKXP3JXD.js';import {Jc,Ga}from'./chunk-B2JRH27J.js';import {vf}from'./chunk-GIROE252.js';import {createContext,memo,useRef,useId,useContext,useCallback,useState,useMemo}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {createPortal}from'react-dom';import {styled,Box,Button,alpha,Dialog}from'@mui/material';import Ue from'@mui/material/Box';import {Resizable}from're-resizable';import Xe from'react-draggable';import {motion}from'framer-motion';var O=createContext({viewerDefaultWidth:555,viewerDefaultHeight:545,position:{x:0,y:0},setPosition:()=>{},dimensions:{width:0,height:0},windowZIndex:1e4,isOpen:true,setIsMaximized:()=>{},setIsSidebarExpanded:()=>{},setIsToolbarAnimationDisabled:()=>{},setIsResized:()=>{},setNewDimensions:()=>{},isMaximized:false,isToolbarAnimationDisabled:true,isSidebarExpanded:false,isResized:false,onClose:()=>{},fullWindowWidth:0,fullWindowHeight:0,resizableRef:{current:null},updateRefSize:()=>{},updateSize:()=>{}});var ye=555,Te=545;function q({children:e,isOpen:o,onClose:i,defaultWindowHeight:r,defaultWindowWidth:a,initialPosition:s,minWidth:l,maxWidth:d,minHeight:p,maxHeight:m}){let{height:n,width:f}=a$1(),u=a||ye,t=r||Te,[b,z]=useState({x:s?.x??f/2+u/2,y:s?.y??n/2-t/2}),[I,c]=useState(false),[v,P]=useState(false),[S,C]=useState(false),[h,R]=useState(true),w=useRef(),[E,W]=useState({width:a??0,height:r??0}),x=useCallback(g=>{w?.current?.updateSize(g);},[]),D=useCallback(g=>{w.current?.updateSize(g),W(B=>({width:g.width??B.width,height:g.height??B.height}));},[]),U=useMemo(()=>({position:b,setPosition:z,resizableRef:w,windowZIndex:1,isOpen:o,setIsMaximized:c,setIsSidebarExpanded:R,setIsToolbarAnimationDisabled:C,setIsResized:P,isMaximized:I,isToolbarAnimationDisabled:S,isSidebarExpanded:h,isResized:v,dimensions:E,setNewDimensions:W,viewerDefaultWidth:u,viewerDefaultHeight:t,onClose:i,fullWindowWidth:f,fullWindowHeight:n,updateRefSize:x,updateSize:D,minWidth:l,maxWidth:d,minHeight:p,maxHeight:m}),[b,z,w,o,c,R,C,P,I,S,h,v,E,W,f,n,u,t,x,D,i,l,d,p,m]);return jsx(O.Provider,{value:U,children:e})}var A=.5,de=183,pe=287,se=840,le=545,Y=35;function Pe({title:e,onClose:o,onMaximize:i,maximized:r=false,id:a$1,onRequestClick:s,isSidebarExpanded:l=false,isHovered:d$2=false,onMouseHover:p,onMouseLeave:m,showSectionsButton:n,rightActions:f,icon:u}){return jsx(c,{id:a$1,"data-testid":"UserTitleBar",maximized:r||false,children:jsx(d,{onMouseEnter:p,onMouseLeave:m,isMaximized:r,isHovered:d$2,title:e,icon:u||vf,leftActions:jsxs(Fragment,{children:[jsx(a,{onClick:o}),jsx(c$1,{isMaximized:r,onClick:i}),n&&jsx(d$1,{onClick:s,isExpanded:!l,isHovered:d$2,children:"Sidebar"})]}),rightActions:f})})}var me=memo(Pe);var $=me;function ke({isMaximized:e,setIsToolbarAnimationDisabled:o,setIsMaximized:i,onClose:r,isSidebarExpanded:a,setIsSidebarExpanded:s,isToolbarAnimationDisabled:l,title:d,showSectionsButton:p,rightActions:m,icon:n}){let{isHovered:f,onMouseEnter:u,onMouseLeave:t}=b();return jsx(motion.div,{style:{...e&&{height:0,zIndex:1e3,position:"relative"}},animate:{...e&&{width:"100vw"},...!e&&{transform:"translateX(0px)",width:"100%"}},transition:{duration:.5,...l&&{duration:0}},children:jsx($,{title:d||"Users",showSectionsButton:p,onClose:r,onMaximize:()=>{i?.(b=>!b),o?.(true),setTimeout(()=>{o?.(false);},.5*1e3);},maximized:e,id:"draggable-dialog-title",onRequestClick:()=>{o?.(false),s(!a);},isSidebarExpanded:a,isHovered:f,onMouseHover:u,onMouseLeave:t,rightActions:m,icon:n})})}var ue=memo(ke);var xe=ue;function qe({children:e,titleBar:o,titleBarText:i,mainAppOrder:r,mainAppIsMinimized:a,showSectionsButton:s=true,rightActions:l,titleBarIcon:d}){let p=useRef(null),m=Jc(useId(),"app-window"),{dimensions:n,position:f,resizableRef:u,isMaximized:t,isOpen:b,onClose:z,viewerDefaultWidth:I,viewerDefaultHeight:c,windowZIndex:v,setPosition:P,setNewDimensions:S,isToolbarAnimationDisabled:C,fullWindowWidth:h,fullWindowHeight:R,setIsMaximized:w,setIsResized:E,isResized:W,setIsToolbarAnimationDisabled:x,setIsSidebarExpanded:D,isSidebarExpanded:U,minWidth:g,maxWidth:B,minHeight:He,maxHeight:Ae}=useContext(O),j=Ga(),Ie=useCallback((Z,X,ee)=>{E(true),S({width:ee.offsetWidth,height:ee.offsetHeight});},[S,E]),M=n.width||I;return createPortal(jsx(Xe,{nodeRef:p,disabled:t,handle:"#draggable-dialog-title",cancel:'[class*="MuiDialogContent-root"]',defaultClassName:"draggable-lead-dialog",defaultPosition:{x:h/2-M/2,y:R/2-c/2},position:{x:h-f.x,y:f.y},onStop:(Z,X)=>{P({x:h-X.x,y:X.y});},bounds:{top:10},children:jsx(Dialog,{ref:p,sx:{backgroundColor:"transparent",zIndex:Number(r||0)+v,...a&&{display:"none"},transform:"translate(180px, 14px)",...!t&&{width:j?M:"fit-content",height:j?c:"fit-content"},...t&&{transform:"none !important"},boxShadow:"0px 0px 20px 0px rgba(0, 0, 0, 0.15)"},PaperProps:{style:{margin:0,maxHeight:"100%",maxWidth:"none",background:"transparent",width:W?"fit-content":M,height:W?"fit-content":"100%",...t&&{width:"100%",height:"100%"},position:"relative"}},onClose:()=>{w(false),x(true),setTimeout(()=>{x(false);},.5*1e3);},open:b,hideBackdrop:true,fullScreen:t,"aria-labelledby":"draggable-dialog-title",disablePortal:true,children:jsx(Resizable,{"data-testid":"Resizable",enable:{topLeft:true,left:true,right:true,bottomRight:true,bottom:true,top:true},size:{width:n.width,height:n.height},maxHeight:Ae??R-40,maxWidth:B??h,minWidth:t?"100vw":g??I,minHeight:t?"100vh":He??c,ref:Z=>{u.current=Z;},onResizeStart:()=>{x(true);},onResizeStop:()=>{x(false);},onResize:Ie,defaultSize:{width:M,height:c},style:{background:"transparent",height:n.height,overflow:"hidden",...t&&{height:"100% !important",width:"100% !important",flex:1},...t&&{position:"relative"}},children:jsxs(Ue,{sx:{height:"100%"},id:m,"data-testid":"AppWindow",children:[o??jsx(xe,{setIsToolbarAnimationDisabled:x,onClose:z,setIsMaximized:w,isToolbarAnimationDisabled:C,setIsSidebarExpanded:D,isSidebarExpanded:U,title:i,isMaximized:t,showSectionsButton:s,rightActions:l,icon:d}),e]})})})}),document.body)}var ce=memo(qe);var Je=styled(Box,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:o})=>({background:o?"linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)":"transparent",borderRadius:"4px",padding:"4px 8px",color:o?e.palette.common.white:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer"})),Ke=styled(Button)(({theme:e,disabled:o})=>({background:o?alpha(e.palette.info.dark,.4):e.palette.info.dark,color:e.palette.common.white,padding:"0px 8px",fontSize:"9px",fontWeight:600,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",textTransform:"none","&:hover":{background:e.palette.info.dark,opacity:.8},"&.Mui-disabled":{color:e.palette.common.white}})),Qe=styled(Box)(({theme:e})=>({display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"8px",backgroundColor:e.palette.background.paper,padding:"6px",transform:"translateY(calc(-50% - 6px))",boxShadow:"0px 4px 40px 0px rgba(0, 0, 0, 0.19)",borderRadius:"4px",height:"36px",transition:e.transitions.create(["width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.complex})})),je=styled(Box)(()=>({position:"fixed",height:35,bottom:0,left:0,right:0,padding:"6px 16px",zIndex:1,backgroundColor:"#eaeaea",backdropFilter:"blur(12px)",display:"flex",justifyContent:"flex-end",borderBottomLeftRadius:"12px",borderBottomRightRadius:"12px"})),eo=styled(Button)(()=>({padding:"4px 8px",boxShadow:"0px 0px 4px 0px rgba(0, 0, 0, 0.08)",display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"4px",color:"rgba(32, 35, 43, 0.80)",fontWeight:600,fontSize:"9px",textTransform:"none"}));var K=ce;function oo({children:e,windowProps:o,...i}){return i.isOpen?jsx(q,{...i,children:jsx(K,{...o,children:e})}):null}var ge=oo;function io({title:e,maximized:o=false,id:i,isHovered:r=false,onMouseHover:a,onMouseLeave:s,leftActions:l,titleIconSrc:d$1,sx:p,...m}){return jsx(c,{className:"header-wrapper",id:i,maximized:o||false,sx:p,...m,children:jsx(d,{onMouseEnter:a,onMouseLeave:s,isMaximized:o,isHovered:r,title:e||"",icon:d$1,leftActions:l})})}var Q=memo(io);function ao({isMaximized:e,id:o,isToolbarAnimationDisabled:i,title:r,leftActions:a$1,onClose:s,onMaximize:l,sx:d}){let{isHovered:p,onMouseEnter:m,onMouseLeave:n}=b();return jsx(motion.div,{style:{...e&&{height:0,zIndex:1e3,position:"relative"}},animate:{...e&&{width:"100vw"},...!e&&{transform:"translateX(0px)",width:"100%"}},transition:{duration:.5,...i&&{duration:0}},children:jsx(Q,{title:r,maximized:e,id:o||"draggable-dialog-title",isHovered:p,onMouseHover:m,onMouseLeave:n,leftActions:a$1||jsxs(Fragment,{children:[jsx(a,{onClick:s}),jsx(c$1,{isMaximized:e,onClick:()=>l?.(!e)})]}),sx:d})})}var We=memo(ao);var lo=We;var Rt=ge;export{O as a,q as b,A as c,de as d,pe as e,se as f,le as g,Y as h,$ as i,Je as j,Ke as k,Qe as l,je as m,eo as n,K as o,Q as p,lo as q,Rt as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {a}from'./chunk-6MUD4YHP.js';import {d}from'./chunk-YHKP64BF.js';import {Jc}from'./chunk-B2JRH27J.js';import {memo,useState,useId}from'react';import l from'@mui/material/Box';import {styled}from'@mui/material/styles';import {motion}from'framer-motion';import {jsx}from'react/jsx-runtime';var c=styled(motion.div)(({theme:o})=>({borderRadius:"8px",position:"fixed",display:"flex",flexDirection:"column",maxHeight:"calc(100vh - 46px)",width:416,margin:"auto",background:o.palette.grey[400],boxShadow:o.shadows[3]})),C=styled(l)(({theme:o})=>({background:o.palette.common.white,flex:1,paddingTop:"31px",paddingBottom:"31px",display:"flex",justifyContent:"flex-start",alignItems:"center",flexDirection:"column",position:"relative",overflow:"auto"})),b=styled(l)(({theme:o})=>({minHeight:95,background:o.palette.grey[400],paddingInline:"24px",paddingTop:"23px",paddingBottom:"23px",gap:"15px",position:"relative",zIndex:2})),h=styled(l)(({theme:o})=>({display:"flex",flexDirection:"column",padding:"18px 24px",boxShadow:o.shadows[15],position:"relative",gap:8,minHeight:68,backgroundColor:o.palette.common.white,borderBottomLeftRadius:"12px",borderBottomRightRadius:"12px"}));function p({children:o,index:e,dialogRef:a,height:t,onClick:r,order:s,dragControls:d,style:m}){let n=Jc(useId(),"dialog");return jsx(c,{id:n,"data-testid":"Dialog",drag:true,dragListener:false,dragMomentum:false,dragControls:d,initial:{top:"50%",left:`calc(50% + ${e*10}px - ${416/2}px)`},transition:{duration:.1},animate:{...t&&{top:`calc(50% + ${e*10}px - ${t/2}px)`},zIndex:2+s},onClick:r,ref:a,style:m,children:o})}function L({title:o,onCloseDialog:e,...a$1}){let[t,r]=useState(false);return jsx(d,{onMouseEnter:()=>{r(true);},onMouseLeave:()=>{r(false);},isHovered:t,title:o,leftActions:jsx(a,{onClick:n=>{n.stopPropagation(),e();}}),...a$1})}var M=memo(L);var K=p;export{C as a,b,h as c,M as d,K as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-7NXWZMCQ.js';import {Jc,lc}from'./chunk-B2JRH27J.js';import {fi,ck,ha,Sd,xj,E,Rk,C,tb}from'./chunk-GIROE252.js';import {useId,useMemo,useState,useCallback}from'react';import {useTranslation}from'react-i18next';import b from'@mui/material/Box';import V from'@mui/material/Popper';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var L=styled(b)(({theme:n})=>({background:n.palette.common.white,borderRadius:"4px",filter:"drop-shadow(0px 8px 30px rgba(0, 0, 0, 0.16))",minWidth:148,width:"max-content",marginTop:"8px"})),l=styled(b,{shouldForwardProp:n=>n!=="open"})(({theme:n,open:s})=>({display:"flex",alignItems:"center",justifyContent:"space-between",height:32,padding:"8px 8px 8px 12px",cursor:"pointer",fontSize:"11px",fontWeight:500,color:n.palette.text.primary,"&:hover":{boxShadow:n.shadows[3]},...s&&{boxShadow:n.shadows[3]}})),u=styled(b)(()=>({display:"flex",alignItems:"center",gap:"8px"})),d=styled("img")(()=>({width:16,height:16,objectFit:"contain"})),$=styled(b)(()=>({height:27,display:"flex",alignItems:"center",padding:"0 12px",fontFamily:"Tap Sans",fontWeight:500,fontSize:"11px",lineHeight:"100%",letterSpacing:"0%",color:"#8D8D94",pointerEvents:"none",userSelect:"none"}));var F={refund:Rk,flag:E,viewReceipt:xj,viewApi:Sd,capture:ha,void:ck,clipboard:fi};var X=({anchorEl:n,onClose:s,actions:h=[],linkedActions:M=[]})=>{let v=Jc(useId(),"actions-dropdown-menu"),{t:E}=useTranslation(),I=!!n,f=useMemo(()=>h.filter(e=>e.isShown!==false),[h]),g=useMemo(()=>M.filter(e=>e.isShown!==false),[M]);return I?jsxs(b,{id:v,"data-testid":"ActionsDropdownMenu",children:[jsx(a,{onClick:s}),jsx(V,{open:I,anchorEl:n,placement:"bottom-end",sx:{zIndex:1e3},children:jsxs(L,{children:[f.map((e,r)=>jsx(l,{onClick:p=>{p.stopPropagation(),e.onClick?.(p);},sx:r===f.length-1&&g.length>0?{borderBottom:"1px solid",borderColor:"divider"}:void 0,children:jsxs(u,{children:[jsx(d,{src:F[e.icon]??e.icon??C,alt:"action-icon"}),jsx("span",{children:e.label})]})},`direct-${r}`)),g.length>0&&jsx($,{children:E("linkedActions")}),g.map(({render:e,icon:r,label:p,onClick:T,onRightClick:i},c)=>{let m=e?.();return e&&!m?null:m?jsx(b,{children:m},`linked-${c}`):jsxs(l,{onClick:a=>{a.stopPropagation(),T?.(a),s();},onContextMenu:i?a=>{i(a);}:void 0,children:[jsxs(u,{children:[r&&jsx(d,{src:r,alt:"linked-action-icon"}),jsx("span",{children:p})]}),jsx("img",{src:tb,alt:""})]},`linked-${c}`)})]})})]}):null};var ne=({appCode:n,appIcon:s,appName:h,appInfo:M,menuItems:v})=>{let[E,I]=useState(null),f=!!E,g=useCallback(i=>{let c=i.currentTarget.firstElementChild;I(c);},[]),e=useCallback(()=>{I(null);},[]),r=useMemo(()=>v?.filter(({isShown:i=true})=>i),[v]);if(!r?.length)return null;let p=M?.iconUrl??s,T=lc(M?.name)??h;return jsxs(b,{onMouseEnter:g,onMouseLeave:e,children:[jsxs(l,{open:f,children:[jsxs(u,{children:[p&&jsx(d,{src:p,alt:"app"}),jsx("span",{children:T})]}),jsx("img",{src:tb,alt:""})]}),jsx(V,{open:f,anchorEl:E,placement:"left-start",sx:{zIndex:1301},children:jsx(L,{sx:{marginTop:0},children:r.map(({render:i,label:c,icon:m,onClick:a,onContextMenu:k},J)=>jsx(b,{children:i?.()??jsx(l,{onClick:C=>{C.stopPropagation(),a?.(C);},onContextMenu:k?C=>{k(C);}:void 0,children:jsxs(u,{children:[m&&jsx(d,{src:m,alt:"icon"}),jsx("span",{children:c})]})})},`app-${J}`))})})]})};export{X as a,ne as b};
|