@tap-payments/os-micro-frontend-shared 0.1.486 → 0.1.488
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{chunk-2CHUWPPX.js → chunk-2RZCN26U.js} +1 -1
- package/build/{chunk-P4F6UZMP.js → chunk-42WUBYVS.js} +1 -1
- package/build/{chunk-7BCVJBC7.js → chunk-4BO3GIIV.js} +1 -1
- package/build/{chunk-DFMAEDSH.js → chunk-4IXPSOCE.js} +1 -1
- package/build/{chunk-UGTMFW7M.js → chunk-564MH266.js} +1 -1
- package/build/{chunk-NNY57WCR.js → chunk-5AXKXNES.js} +1 -1
- package/build/{chunk-2SNW4UYF.js → chunk-6EJZ7IXV.js} +1 -1
- package/build/{chunk-JTYEPTPC.js → chunk-6HTNYHHP.js} +1 -1
- package/build/{chunk-CHGXOBXJ.js → chunk-6UVUJOGK.js} +1 -1
- package/build/chunk-72OVMEVI.js +1 -0
- package/build/{chunk-UWNVAMEF.js → chunk-77ZV5RV5.js} +1 -1
- package/build/{chunk-YCQF5BBA.js → chunk-7QBMXFQ4.js} +1 -1
- package/build/{chunk-JUNBHSAJ.js → chunk-AIBAA4EX.js} +1 -1
- package/build/{chunk-2C3FYCJZ.js → chunk-AXCOMNFU.js} +1 -1
- package/build/{chunk-EB37INRY.js → chunk-BJBAHULA.js} +1 -1
- package/build/{chunk-TKL2VOND.js → chunk-CR3V2WRG.js} +1 -1
- package/build/{chunk-F45RUZ4J.js → chunk-D7VXISCF.js} +1 -1
- package/build/{chunk-VRKLQHFZ.js → chunk-DOJ2WH7C.js} +1 -1
- package/build/{chunk-NIP3D72F.js → chunk-EG72KCDE.js} +1 -1
- package/build/{chunk-RGKHSSR2.js → chunk-ERATPNWE.js} +1 -1
- package/build/{chunk-ULNHI5LI.js → chunk-F35ZQVUZ.js} +1 -1
- package/build/{chunk-VAKRTSKC.js → chunk-FQIF3FUU.js} +1 -1
- package/build/chunk-FYLIYJ2N.js +2 -0
- package/build/{chunk-ZOT7WST5.js → chunk-GZGW6JKP.js} +1 -1
- package/build/{chunk-BSBWNJ47.js → chunk-HKNBTFNF.js} +1 -1
- package/build/{chunk-XBDYRG2C.js → chunk-HKPZ3ID7.js} +1 -1
- package/build/{chunk-W4UK5AAU.js → chunk-IONNJFQ6.js} +1 -1
- package/build/{chunk-Q27LP2TV.js → chunk-IV3RXYB3.js} +1 -1
- package/build/{chunk-PQQHTXNT.js → chunk-IYS7JXTH.js} +1 -1
- package/build/{chunk-NOWBLOCZ.js → chunk-JT2CFNZ4.js} +1 -1
- package/build/{chunk-XLRUCM7Q.js → chunk-KST2NVZS.js} +1 -1
- package/build/{chunk-ZFNMWMRZ.js → chunk-L4TPIDBZ.js} +1 -1
- package/build/{chunk-RXJRTA5O.js → chunk-L63Y76N4.js} +1 -1
- package/build/{chunk-XKQMFGGR.js → chunk-LGJGL3ZD.js} +1 -1
- package/build/{chunk-LXVY6Z2V.js → chunk-LTDULVMZ.js} +1 -1
- package/build/{chunk-WZ2PKSYG.js → chunk-MA6KNWZO.js} +1 -1
- package/build/{chunk-754SYTN5.js → chunk-MC5LGX45.js} +1 -1
- package/build/{chunk-D3HXTINH.js → chunk-N7542FGM.js} +1 -1
- package/build/{chunk-Z5A6VHZF.js → chunk-NET3U5QO.js} +1 -1
- package/build/{chunk-GOCLIEY4.js → chunk-NLBWALWU.js} +1 -1
- package/build/{chunk-TFAFYSCO.js → chunk-NNEPF3VA.js} +1 -1
- package/build/chunk-NSFZTMX6.js +2 -0
- package/build/{chunk-AGXJAQJZ.js → chunk-NTILC445.js} +1 -1
- package/build/{chunk-2GAZ5I6B.js → chunk-NTTN3ISX.js} +1 -1
- package/build/{chunk-CD4OW66V.js → chunk-O4WLNEPM.js} +1 -1
- package/build/{chunk-O5BKJASF.js → chunk-OME45DRB.js} +1 -1
- package/build/{chunk-WWFHPHKU.js → chunk-P4IPADXV.js} +1 -1
- package/build/{chunk-3D6UJDPA.js → chunk-PF7ART2E.js} +1 -1
- package/build/{chunk-BU73TXJS.js → chunk-PNNOGDIK.js} +1 -1
- package/build/{chunk-GOC4DJNU.js → chunk-QAUAHDTY.js} +1 -1
- package/build/{chunk-HFHOSPBQ.js → chunk-QDGUUGHY.js} +1 -1
- package/build/{chunk-RT24D3PU.js → chunk-QG2AS7ZF.js} +1 -1
- package/build/{chunk-FRSMKKPS.js → chunk-QIP3WKC3.js} +1 -1
- package/build/{chunk-2D6F2NGQ.js → chunk-QLNEEDPV.js} +1 -1
- package/build/{chunk-SD7NTSGT.js → chunk-QTZ2AGMI.js} +1 -1
- package/build/{chunk-5CZ7VXQI.js → chunk-RGVKBAJD.js} +1 -1
- package/build/{chunk-BWX6EJYW.js → chunk-RII4OL3F.js} +1 -1
- package/build/{chunk-HVX3VNNF.js → chunk-RS7ILFOU.js} +1 -1
- package/build/{chunk-5D5YK6D2.js → chunk-RYWUVVAK.js} +1 -1
- package/build/{chunk-BLJRBTJY.js → chunk-SPLSWWFD.js} +1 -1
- package/build/{chunk-PZI7KDU4.js → chunk-SQRZEIOF.js} +1 -1
- package/build/{chunk-VSOE3ZKQ.js → chunk-SVQUFOJM.js} +1 -1
- package/build/{chunk-YISRJ4V6.js → chunk-T63EDCOO.js} +1 -1
- package/build/{chunk-ML3SLQQU.js → chunk-TAKLEXAA.js} +1 -1
- package/build/{chunk-IFQTYWJ5.js → chunk-TBTF63RX.js} +1 -1
- package/build/{chunk-D2P4QDGR.js → chunk-TJOKRWGR.js} +1 -1
- package/build/{chunk-HMYBJP7E.js → chunk-U2H72YQ3.js} +1 -1
- package/build/{chunk-QLVQU2QO.js → chunk-VWFZ6LNY.js} +1 -1
- package/build/{chunk-VN4ARARF.js → chunk-XAPDWCH2.js} +1 -1
- package/build/{chunk-IQOI4KLJ.js → chunk-XDMM2WXF.js} +1 -1
- package/build/{chunk-VILAJ636.js → chunk-XXUQ4GYX.js} +1 -1
- package/build/{chunk-NYA3TBHQ.js → chunk-ZDSZOOS5.js} +1 -1
- package/build/{chunk-BGDAB7IL.js → chunk-ZVQZBRJT.js} +1 -1
- package/build/components/AccordionAdapter/index.js +1 -1
- package/build/components/AccountDropdown/index.js +1 -1
- package/build/components/ActivityAreaChart/index.js +1 -1
- package/build/components/Amount/index.js +1 -1
- package/build/components/AmountConversionFilter/index.js +1 -1
- package/build/components/AmountInput/index.js +1 -1
- package/build/components/AmountStatusChip/index.js +1 -1
- package/build/components/AnimatedSpinnerIcon/index.js +1 -1
- package/build/components/AppServices/index.js +1 -1
- package/build/components/AppServicesActionMenu/index.js +1 -1
- package/build/components/AppServicesBar/index.js +1 -1
- package/build/components/AppWindowWrapper/index.js +1 -1
- package/build/components/AuthenticationTypeChip/index.js +1 -1
- package/build/components/Autocomplete/index.js +1 -1
- package/build/components/BrandLogo/index.js +1 -1
- package/build/components/Button/index.js +1 -1
- package/build/components/Calender/index.js +1 -1
- package/build/components/CardEmptyState/index.js +1 -1
- package/build/components/Checkbox/index.js +1 -1
- package/build/components/ColorPicker/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/CurrencyFilter/index.js +1 -1
- package/build/components/CurrencySymbol/index.js +1 -1
- package/build/components/Customer/index.js +1 -1
- package/build/components/DateButton/index.js +1 -1
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/DeviceIcon/index.js +1 -1
- package/build/components/Dialog/index.js +1 -1
- package/build/components/Discount/index.js +1 -1
- package/build/components/DisplayAmount/index.js +1 -1
- package/build/components/Dropdown2/index.js +1 -1
- package/build/components/DropdownButton/index.js +1 -1
- package/build/components/Error/index.js +1 -1
- package/build/components/ErrorToast/index.js +1 -1
- package/build/components/ExpandableSideBar/index.js +1 -1
- package/build/components/FileInputPreview/index.js +1 -1
- package/build/components/FilePreview/index.js +1 -1
- package/build/components/FileUpload/index.js +1 -1
- package/build/components/FileUploader/index.js +1 -1
- package/build/components/FilterDropdown/index.js +1 -1
- package/build/components/FilteredIds/index.js +1 -1
- package/build/components/Filters/index.js +1 -1
- package/build/components/FlagDetails/index.js +1 -1
- package/build/components/IconGallery/index.js +1 -1
- package/build/components/IconWithBadge/index.js +1 -1
- package/build/components/IconWithLabel/index.js +1 -1
- package/build/components/IconsDropdown/index.js +1 -1
- package/build/components/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/LabeledIconDropdown/index.js +1 -1
- package/build/components/LanguageDropdown/index.js +1 -1
- package/build/components/ListColumnFilter/index.js +1 -1
- package/build/components/MFWidgetLoader/index.js +1 -1
- package/build/components/MaskedText/index.js +1 -1
- package/build/components/MenuItem/index.js +1 -1
- package/build/components/MerchantCurrencyDropdown/index.js +1 -1
- package/build/components/MerchantLogo/index.js +1 -1
- package/build/components/MerchantsDropdown/index.js +1 -1
- package/build/components/MultiSelectDropdownButton/index.js +1 -1
- package/build/components/MultiSelectStatusButton/index.js +1 -1
- package/build/components/MultiSelectWithSearch/index.js +1 -1
- package/build/components/NestedDropdown/index.js +1 -1
- package/build/components/PartnersFilter/index.js +1 -1
- package/build/components/PaymentSourceFilter/index.js +1 -1
- package/build/components/PhoneFilter/index.js +1 -1
- package/build/components/ProgressRing/index.js +1 -1
- package/build/components/RFH/index.js +1 -1
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/ReceiptsViewer/index.js +1 -1
- package/build/components/ReferenceTypeFilter/index.js +1 -1
- package/build/components/SalesChannelFilter/index.js +1 -1
- package/build/components/Sandbox/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/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/TableHeader/index.js +1 -1
- package/build/components/TableReports/index.js +1 -1
- package/build/components/TableView/index.js +1 -1
- package/build/components/Timepicker/index.js +1 -1
- package/build/components/Toaster/index.js +1 -1
- package/build/components/ToggleView/index.js +1 -1
- package/build/components/Toolbar/index.js +1 -1
- package/build/components/ToolbarIcon/index.js +1 -1
- package/build/components/TreeDropdown/index.js +1 -1
- package/build/components/VAT/index.js +1 -1
- package/build/components/VerificationIcon/index.js +1 -1
- package/build/components/ViewColumnRadioFilter/index.js +1 -1
- package/build/components/VirtualTables/index.js +1 -1
- package/build/components/Widget/index.js +1 -1
- package/build/components/Window/index.js +1 -1
- package/build/components/WindowSideBar/index.js +1 -1
- package/build/components/index.js +1 -1
- package/build/constants/index.js +1 -1
- package/build/constants/segment.d.ts +1 -1
- package/build/hooks/index.js +1 -1
- package/build/index.js +1 -1
- package/build/utils/index.js +1 -1
- package/package.json +1 -1
- package/build/chunk-ODAEN262.js +0 -1
- package/build/chunk-PPWY42W6.js +0 -2
- package/build/chunk-PUH7D533.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-IQOI4KLJ.js';import {a as a$1}from'./chunk-S7OMWEM6.js';import {vb,w}from'./chunk-PPWY42W6.js';import je,{memo,forwardRef,useMemo,useState,useEffect}from'react';import Q from'@mui/material/Box';import {styled}from'@mui/material/styles';import Ve from'@mui/material/TextField';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {styled as styled$1,Popper,Box,CircularProgress,ClickAwayListener}from'@mui/material';import pt from'@mui/material/InputLabel';import lt from'@mui/material/MenuItem';import nt from'@mui/material/FormControl';import re from'@mui/material/Select';import bt from'@mui/material/Skeleton';import Rt from'@mui/material/Input';var Z=styled(Q)(()=>({display:"flex",flexDirection:"column",gap:"4px",width:"100%",height:40,"& *":{flex:1,margin:"0 !important"}})),V=styled(Ve,{shouldForwardProp:e=>e!=="hideArrows"})(({theme:e,error:t,hideArrows:n,disabled:o})=>({border:`1px solid ${e.palette.divider}`,...o&&{backgroundColor:e.palette.grey[400]},borderRadius:"4px",...!!t&&{border:`1px solid ${e.palette.error.main}`},...n&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}},"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiInputBase-root":{maxHeight:"40px !important",alignItems:"flex-end !important",fontSize:"11px",height:"40px",padding:"8px",borderRadius:"4px"},"& .MuiInputBase-input":{margin:0,padding:0,color:e.palette.text.primary},"& .MuiFormLabel-root":{fontSize:"10px",fontWeight:500,lineHeight:"100%",transform:"translate(0, 8px) scale(1)",color:e.palette.grey[700],padding:"8px","&.MuiFormLabel-filled, &.Mui-focused":{transform:"translate(0, -1.5px) scale(0.75) "},"&.Mui-focused":{fontSize:"10px",fontWeight:500,lineHeight:"100%"}}})),j=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));var ee=je.forwardRef(({name:e,onChange:t,hasError:n,helperText:o,hideArrows:f,...i},p)=>{let l=d=>{t?.(d.target.value??"");};return jsxs(Q,{children:[jsx(Z,{"data-testid":"InputBase",children:jsx(V,{rows:1,error:n,fullWidth:true,size:"small",variant:"standard",ref:p,name:e,type:i.type??"text",label:i.placeholder||i.label,onChange:l,InputProps:{disableUnderline:true},hideArrows:f,...i})}),jsx(j,{children:o})]})});ee.displayName="InputBase";var te=ee;var rt=te;var H=styled(nt)(({theme:e})=>({minWidth:52,height:"40px !important",maxHeight:"40px !important",backgroundColor:"transparent",width:"100%","& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)",color:`${e.palette.grey[700]} !important`},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}}));styled(re)(({theme:e})=>({fontSize:"11px",lineHeight:"11px",color:e.palette.common.black,borderRadius:"4px",boxShadow:e.shadows[17],border:"none",outline:"none","&:focus":{border:"1px solid #1F88D0"},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:"rgba(0, 0, 0, 0.23)"},"&.Mui-focused fieldset":{border:"2px solid red"}},minWidth:52,height:"40px !important",maxHeight:"40px !important",width:"100%","& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}}));var N=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),z=styled(re)(({theme:e,error:t})=>({width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:"4px",overflow:"hidden",backgroundColor:e.palette.grey[400],"&.Mui-disabled":{backgroundColor:e.palette.grey[400]},".MuiSelect-select":{padding:"0 8px !important",height:"40px !important",maxHeight:"40px !important",display:"flex",alignItems:"flex-end !important",backgroundColor:`${e.palette.grey[400]} !important`,borderRadius:"4px",fontSize:"11px"},".MuiSelect-filled":{padding:"0 8px !important"},"&.MuiInputBase-adornedStart > div:nth-of-type(1)":{backgroundColor:"red"},...t&&{border:`1px solid ${e.palette.error.main}`}})),$=styled(Q)(()=>({display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1}));function st({required:e,hasError:t,label:n,value:o,helperText:f,onChange:i,options:p,isOptionEqualToValue:l,renderOption:d,getOptionValue:s,isLoading:g,children:u,getOptionLabel:y,...h},C){let a=m=>{i?.(m);},S=()=>d?d(o):y?y(o):o.label;return jsxs($,{children:[jsxs(H,{variant:"filled","data-testid":"SelectBase",required:e,children:[jsx(pt,{sx:{height:"100%"},id:`select-label-${n.trim()}`,"data-testid":"SelectBase_InputLabel",children:n}),jsx(z,{"data-testid":"SelectBase_Select",ref:C,value:(s?s(o):o?.id)??"",error:t,disableUnderline:true,required:e,labelId:`select-label-${n.trim()}`,id:`select-label-${n.trim()}`,renderValue:S,...h,disabled:h.disabled||g,endAdornment:g?jsx(CircularProgress,{size:20,sx:{backgroundColor:"transparent",color:m=>m.palette.grey.A400}}):null,children:u||p?.map((m,B)=>{let r=l?l(m,o):m?.id===o?.id;return jsx(lt,{disabled:!!m.disabled,value:(s?s(m):m?.id)??"",onClick:()=>{a(m);},sx:{fontSize:"12px",backgroundColor:c=>r?c.palette.action.hover:c.palette.common.white},children:d?d(m):m.label},`country-item-${B}`)})})]}),jsx(N,{children:f})]})}var ne=je.forwardRef(st);function gt({required:e,hasError:t,label:n,value:o,helperText:f,onChange:i,options:p,isOptionEqualToValue:l,renderOption:d,getOptionValue:s,isLoading:g,children:u,getOptionLabel:y,...h},C){let a=r=>{i?.(r);},S=()=>s?o?.map(s):o?.map(r=>r?.id),m=useMemo(()=>p?.filter(r=>o?.some(c=>l?l(r,c):r.id===c?.id)),[p,o,l]),B=()=>m?.map(r=>y?y(r):r.label)?.join(", ");return jsxs($,{children:[jsxs(H,{variant:"filled","data-testid":"SelectBase",required:e,children:[jsx(pt,{id:`select-label-${n.trim()}`,"data-testid":"SelectBase_InputLabel",children:n}),jsx(z,{multiple:true,"data-testid":"SelectBase_Select",ref:C,value:S()??"",error:t,disableUnderline:true,required:e,labelId:`select-label-${n.trim()}`,id:`select-label-${n.trim()}`,renderValue:B,...h,disabled:h.disabled||g,endAdornment:g?jsx(CircularProgress,{size:20,sx:{backgroundColor:"transparent",color:r=>r.palette.grey.A400}}):null,onChange:r=>{let L=r.target.value?.map(I=>p?.find(X=>s?s(X)===I:X.id===I));i?.([...L]);},children:u||p?.map((r,c)=>{let L=l?l(r,o):r?.id===o?.id;return jsx(lt,{value:(s?s(r):r?.id)??"",onClick:()=>{a(r);},sx:{fontSize:"12px",backgroundColor:I=>L?I.palette.action.hover:I.palette.common.white},children:d?d(r):r.label},`country-item-${c}`)})})]}),jsx(N,{children:f})]})}var ie=je.forwardRef(gt);var xt=ne;var pe=styled$1("button")(({theme:e,disabled:t})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:t?"default":"pointer",opacity:t?.5:1})),le=styled$1(Popper)(({theme:e})=>({zIndex:9999,backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),se=styled$1("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),de=styled$1("li")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),ue=styled$1(a)(()=>({height:24,padding:"4px",marginBottom:"4px"})),me=styled$1(Box)(()=>({color:"red !important"}));function xe({isLoading:e,countries:t,value:n,onCountryChange:o,required:f,disabled:i}){let[p,l]=useState(),[d,s]=useState(null),[g,u]=useState([]),[y,h]=useState(""),C=!!d&&!i,a=r=>{r.stopPropagation(),s(r.currentTarget);},S=()=>{s(null);},m=r=>{o?.(r),l(r),S(),u(t);},B=r=>{let c=r.target.value.toString()??"";if(h(c),!c){u(t);return}let L=t.filter(I=>I.idd_prefix.toString().startsWith(c)||I.iso2.toLowerCase().startsWith(c.toLowerCase()));u(L);};return useEffect(()=>{n&&l(n);},[n?.countryId]),useEffect(()=>{t.length&&u(t);},[t.length]),jsxs(Q,{"data-testid":"CountriesList",sx:{position:"relative"},children:[jsx(pe,{type:"button","aria-describedby":"CountriesList_CountriesWrapper",onClick:a,disabled:e||i,sx:{backgroundColor:"transparent",border:"none",height:34,paddingInlineStart:"8px"},children:e?jsx(bt,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsxs(Fragment,{children:[p&&jsxs(Fragment,{children:[jsx("img",{src:p.logo,alt:"c",className:"logo"}),jsx("span",{children:`+${p?.idd_prefix}`})]}),f&&jsx(me,{component:"span",children:"*"}),jsx(Q,{component:"img",src:vb,alt:"d",className:"arrow",sx:{...C&&{transform:"rotate(180deg)"}}})]})}),C&&jsx(a$1,{onClick:S,sx:{zIndex:9999}}),C&&jsx(ClickAwayListener,{onClickAway:S,children:jsxs(le,{id:"CountriesList_CountriesWrapper",open:C,anchorEl:d,"data-testid":"CountriesList_CountriesWrapper",placement:"bottom-start",children:[jsx(ue,{endAdornment:jsx("img",{src:w,alt:"arrow"}),onChange:B,hideArrows:true,"data-testid":"CountriesList_InputStyled",value:y}),jsx(se,{"data-testid":"CountriesList_CountriesListStyled",children:g.map(r=>{let c=p?.countryId===r.countryId;return jsxs(de,{onClick:()=>{m(r);},sx:{backgroundColor:c?"#F9F9F9":"transparent",color:c?"#000":"#8D8D94"},children:[jsx("img",{src:r.logo,alt:"c",className:"logo"}),jsx("span",{children:`+${r.idd_prefix}`})]},`country-code-${r.countryId}`)})})]})})]})}xe.displayName="CountriesList";var ye=memo(xe);var _=ye;var Ce=styled(Q,{shouldForwardProp:e=>e!=="hasError"})(({theme:e,hasError:t})=>({border:`1px solid ${e.palette.divider}`,display:"flex",position:"relative",paddingInline:"8px",paddingInlineStart:"0px",alignItems:"center",borderRadius:"4px",height:"40px",...t&&{border:`1px solid ${e.palette.error.main}`}})),be=styled(a)(({error:e})=>({border:"none",paddingInlineEnd:0,img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}})),Se=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),Ie=styled(Q)(()=>({flex:1}));function Be({phoneValue:e,hasError:t,countries:n,isCountriesLoading:o,countryValue:f,onCountryChange:i,onPhoneChange:p,helperText:l,countryError:d,required:s,disabled:g,...u},y){return jsxs(Ie,{"data-testid":"PhoneInput",children:[jsxs(Ce,{"data-testid":"PhoneInput_MobileWrapper",hasError:t,children:[jsx(_,{isLoading:o,countries:n,value:f,onCountryChange:a=>{i?.(a);},required:s,disabled:g}),jsx(be,{value:e,"data-testid":"PhoneInput_InputNumberStyled",ref:y,inputProps:{autoComplete:"off"},error:t,disabled:g,...u,onChange:a=>{p?.(a.target.value);},hideArrows:true})]}),jsx(Se,{children:l})]})}Be.displayName="PhoneInputBase";var Le=je.forwardRef(Be);var Mt=Le;var we=styled$1("button")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),ve=styled$1(Popper)(({theme:e})=>({zIndex:99,backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),Pe=styled$1("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),Re=styled$1("li")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),Ee=styled$1(Box)(()=>({color:"red !important"}));function Fe({isLoading:e,currencies:t,value:n,onCurrencyChange:o,required:f}){let[i,p]=useState(),[l,d]=useState(null),[s,g]=useState([]),u=!!l,y=a=>{a.stopPropagation(),d(a.currentTarget);},h=()=>{d(null);},C=a=>{o?.(a),p(a),h(),g(t);};return useEffect(()=>{n&&p(n);},[n?.currencyId]),useEffect(()=>{t.length&&g(t);},[t.length]),jsxs(Q,{"data-testid":"currenciesList",sx:{position:"relative"},children:[jsx(we,{type:"button","aria-describedby":"currenciesList_currenciesWrapper",onClick:y,disabled:e,sx:{backgroundColor:"transparent",border:"none",height:34,paddingInlineStart:"8px"},children:e?jsx(bt,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsxs(Fragment,{children:[i&&jsxs(Fragment,{children:[jsx("img",{src:i.logo,alt:"c",className:"logo"}),jsx("span",{children:i?.code.english})]}),f&&jsx(Ee,{component:"span",children:"*"}),jsx(Q,{component:"img",src:vb,alt:"d",className:"arrow",sx:{...u&&{transform:"rotate(180deg)"}}})]})}),u&&jsx(a$1,{onClick:h}),u&&jsx(ve,{id:"currenciesList_currenciesWrapper",open:u,anchorEl:l,"data-testid":"currenciesList_currenciesWrapper",placement:"bottom-start",children:jsx(Pe,{"data-testid":"currenciesList_currenciesListStyled",children:s.map(a=>{let S=i?.currencyId===a.currencyId;return jsxs(Re,{onClick:()=>{C(a);},sx:{backgroundColor:S?"#F9F9F9":"transparent",color:S?"#000":"#8D8D94"},children:[jsx("img",{src:a.logo,alt:"c",className:"logo"}),jsx("span",{children:a?.code.english})]},`currency-code-${a.currencyId}`)})})})]})}Fe.displayName="CurrenciesList";var He=memo(Fe);var Ne=He;var $e=styled(Rt,{shouldForwardProp:e=>!["hasError","hideArrows"].includes(e)})(({theme:e,hideArrows:t})=>({padding:"8px",border:`1px solid ${e.palette.divider}`,borderRadius:"4px",height:32,color:e.palette.text.primary,fontSize:"11px",outline:0,maxWidth:"100%",display:"flex",flexGrow:1,"::placeholder":{color:e.palette.grey[700],fontWeight:400},...t&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}})),Te=styled(Q)(()=>({flex:1}));function Wt({hasError:e,hideArrows:t,inputProps:n,...o},f){return jsx(Te,{onClick:i=>{i.stopPropagation();},children:jsx($e,{ref:f,placeholder:o.placeholder,hideArrows:true,hasError:e,disableUnderline:true,inputProps:{...n,type:"number"},onKeyDown:i=>{["e","E","+","-"].includes(i.key)&&i.preventDefault();},...o})})}var De=forwardRef(Wt);var qe=De;var Oe=styled(Q,{shouldForwardProp:e=>e!=="hasError"})(({theme:e,hasError:t})=>({border:`1px solid ${e.palette.divider}`,display:"flex",justifyContent:"space-between",position:"relative",paddingInline:"8px",paddingInlineStart:"0px",alignItems:"center",borderRadius:"4px",height:"40px",...t&&{border:`1px solid ${e.palette.error.main}`}})),Ue=styled(Q)(()=>({width:"50px"})),Ge=styled(qe)(({error:e})=>({border:"none",paddingInlineEnd:0,img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}})),Ke=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),Je=styled(Q)(()=>({flex:1}));function Xe({amountValue:e,hasError:t,currencies:n,isCurrenciesLoading:o,currencyValue:f,onCurrencyChange:i,onAmountChange:p,onAmountBlur:l,helperText:d,required:s,...g},u){return jsxs(Je,{"data-testid":"AmountInput",children:[jsxs(Oe,{"data-testid":"AmountInput_MobileWrapper",hasError:t,children:[jsx(Ne,{isLoading:o,currencies:n,value:f,onCurrencyChange:a=>{i?.(a);},required:s}),jsx(Ue,{children:jsx(Ge,{value:e,"data-testid":"AmountInput_InputNumberStyled",ref:u,inputProps:{autoComplete:"off"},error:t,...g,onChange:a=>{p?.(a.target.value);},onBlur:a=>{l?.(a.target.value);},hideArrows:true})})]}),jsx(Ke,{children:d})]})}Xe.displayName="AmountInputBase";var Ye=je.forwardRef(Xe);var At=Ye;export{rt as a,ie as b,xt as c,_ as d,Mt as e,At as f};
|
|
1
|
+
import {a}from'./chunk-XDMM2WXF.js';import {a as a$1}from'./chunk-S7OMWEM6.js';import {vb,w}from'./chunk-NSFZTMX6.js';import je,{memo,forwardRef,useMemo,useState,useEffect}from'react';import Q from'@mui/material/Box';import {styled}from'@mui/material/styles';import Ve from'@mui/material/TextField';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {styled as styled$1,Popper,Box,CircularProgress,ClickAwayListener}from'@mui/material';import pt from'@mui/material/InputLabel';import lt from'@mui/material/MenuItem';import nt from'@mui/material/FormControl';import re from'@mui/material/Select';import bt from'@mui/material/Skeleton';import Rt from'@mui/material/Input';var Z=styled(Q)(()=>({display:"flex",flexDirection:"column",gap:"4px",width:"100%",height:40,"& *":{flex:1,margin:"0 !important"}})),V=styled(Ve,{shouldForwardProp:e=>e!=="hideArrows"})(({theme:e,error:t,hideArrows:n,disabled:o})=>({border:`1px solid ${e.palette.divider}`,...o&&{backgroundColor:e.palette.grey[400]},borderRadius:"4px",...!!t&&{border:`1px solid ${e.palette.error.main}`},...n&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}},"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiInputBase-root":{maxHeight:"40px !important",alignItems:"flex-end !important",fontSize:"11px",height:"40px",padding:"8px",borderRadius:"4px"},"& .MuiInputBase-input":{margin:0,padding:0,color:e.palette.text.primary},"& .MuiFormLabel-root":{fontSize:"10px",fontWeight:500,lineHeight:"100%",transform:"translate(0, 8px) scale(1)",color:e.palette.grey[700],padding:"8px","&.MuiFormLabel-filled, &.Mui-focused":{transform:"translate(0, -1.5px) scale(0.75) "},"&.Mui-focused":{fontSize:"10px",fontWeight:500,lineHeight:"100%"}}})),j=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));var ee=je.forwardRef(({name:e,onChange:t,hasError:n,helperText:o,hideArrows:f,...i},p)=>{let l=d=>{t?.(d.target.value??"");};return jsxs(Q,{children:[jsx(Z,{"data-testid":"InputBase",children:jsx(V,{rows:1,error:n,fullWidth:true,size:"small",variant:"standard",ref:p,name:e,type:i.type??"text",label:i.placeholder||i.label,onChange:l,InputProps:{disableUnderline:true},hideArrows:f,...i})}),jsx(j,{children:o})]})});ee.displayName="InputBase";var te=ee;var rt=te;var H=styled(nt)(({theme:e})=>({minWidth:52,height:"40px !important",maxHeight:"40px !important",backgroundColor:"transparent",width:"100%","& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)",color:`${e.palette.grey[700]} !important`},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}}));styled(re)(({theme:e})=>({fontSize:"11px",lineHeight:"11px",color:e.palette.common.black,borderRadius:"4px",boxShadow:e.shadows[17],border:"none",outline:"none","&:focus":{border:"1px solid #1F88D0"},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:"rgba(0, 0, 0, 0.23)"},"&.Mui-focused fieldset":{border:"2px solid red"}},minWidth:52,height:"40px !important",maxHeight:"40px !important",width:"100%","& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}}));var N=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),z=styled(re)(({theme:e,error:t})=>({width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:"4px",overflow:"hidden",backgroundColor:e.palette.grey[400],"&.Mui-disabled":{backgroundColor:e.palette.grey[400]},".MuiSelect-select":{padding:"0 8px !important",height:"40px !important",maxHeight:"40px !important",display:"flex",alignItems:"flex-end !important",backgroundColor:`${e.palette.grey[400]} !important`,borderRadius:"4px",fontSize:"11px"},".MuiSelect-filled":{padding:"0 8px !important"},"&.MuiInputBase-adornedStart > div:nth-of-type(1)":{backgroundColor:"red"},...t&&{border:`1px solid ${e.palette.error.main}`}})),$=styled(Q)(()=>({display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1}));function st({required:e,hasError:t,label:n,value:o,helperText:f,onChange:i,options:p,isOptionEqualToValue:l,renderOption:d,getOptionValue:s,isLoading:g,children:u,getOptionLabel:y,...h},C){let a=m=>{i?.(m);},S=()=>d?d(o):y?y(o):o.label;return jsxs($,{children:[jsxs(H,{variant:"filled","data-testid":"SelectBase",required:e,children:[jsx(pt,{sx:{height:"100%"},id:`select-label-${n.trim()}`,"data-testid":"SelectBase_InputLabel",children:n}),jsx(z,{"data-testid":"SelectBase_Select",ref:C,value:(s?s(o):o?.id)??"",error:t,disableUnderline:true,required:e,labelId:`select-label-${n.trim()}`,id:`select-label-${n.trim()}`,renderValue:S,...h,disabled:h.disabled||g,endAdornment:g?jsx(CircularProgress,{size:20,sx:{backgroundColor:"transparent",color:m=>m.palette.grey.A400}}):null,children:u||p?.map((m,B)=>{let r=l?l(m,o):m?.id===o?.id;return jsx(lt,{disabled:!!m.disabled,value:(s?s(m):m?.id)??"",onClick:()=>{a(m);},sx:{fontSize:"12px",backgroundColor:c=>r?c.palette.action.hover:c.palette.common.white},children:d?d(m):m.label},`country-item-${B}`)})})]}),jsx(N,{children:f})]})}var ne=je.forwardRef(st);function gt({required:e,hasError:t,label:n,value:o,helperText:f,onChange:i,options:p,isOptionEqualToValue:l,renderOption:d,getOptionValue:s,isLoading:g,children:u,getOptionLabel:y,...h},C){let a=r=>{i?.(r);},S=()=>s?o?.map(s):o?.map(r=>r?.id),m=useMemo(()=>p?.filter(r=>o?.some(c=>l?l(r,c):r.id===c?.id)),[p,o,l]),B=()=>m?.map(r=>y?y(r):r.label)?.join(", ");return jsxs($,{children:[jsxs(H,{variant:"filled","data-testid":"SelectBase",required:e,children:[jsx(pt,{id:`select-label-${n.trim()}`,"data-testid":"SelectBase_InputLabel",children:n}),jsx(z,{multiple:true,"data-testid":"SelectBase_Select",ref:C,value:S()??"",error:t,disableUnderline:true,required:e,labelId:`select-label-${n.trim()}`,id:`select-label-${n.trim()}`,renderValue:B,...h,disabled:h.disabled||g,endAdornment:g?jsx(CircularProgress,{size:20,sx:{backgroundColor:"transparent",color:r=>r.palette.grey.A400}}):null,onChange:r=>{let L=r.target.value?.map(I=>p?.find(X=>s?s(X)===I:X.id===I));i?.([...L]);},children:u||p?.map((r,c)=>{let L=l?l(r,o):r?.id===o?.id;return jsx(lt,{value:(s?s(r):r?.id)??"",onClick:()=>{a(r);},sx:{fontSize:"12px",backgroundColor:I=>L?I.palette.action.hover:I.palette.common.white},children:d?d(r):r.label},`country-item-${c}`)})})]}),jsx(N,{children:f})]})}var ie=je.forwardRef(gt);var xt=ne;var pe=styled$1("button")(({theme:e,disabled:t})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:t?"default":"pointer",opacity:t?.5:1})),le=styled$1(Popper)(({theme:e})=>({zIndex:9999,backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),se=styled$1("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),de=styled$1("li")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),ue=styled$1(a)(()=>({height:24,padding:"4px",marginBottom:"4px"})),me=styled$1(Box)(()=>({color:"red !important"}));function xe({isLoading:e,countries:t,value:n,onCountryChange:o,required:f,disabled:i}){let[p,l]=useState(),[d,s]=useState(null),[g,u]=useState([]),[y,h]=useState(""),C=!!d&&!i,a=r=>{r.stopPropagation(),s(r.currentTarget);},S=()=>{s(null);},m=r=>{o?.(r),l(r),S(),u(t);},B=r=>{let c=r.target.value.toString()??"";if(h(c),!c){u(t);return}let L=t.filter(I=>I.idd_prefix.toString().startsWith(c)||I.iso2.toLowerCase().startsWith(c.toLowerCase()));u(L);};return useEffect(()=>{n&&l(n);},[n?.countryId]),useEffect(()=>{t.length&&u(t);},[t.length]),jsxs(Q,{"data-testid":"CountriesList",sx:{position:"relative"},children:[jsx(pe,{type:"button","aria-describedby":"CountriesList_CountriesWrapper",onClick:a,disabled:e||i,sx:{backgroundColor:"transparent",border:"none",height:34,paddingInlineStart:"8px"},children:e?jsx(bt,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsxs(Fragment,{children:[p&&jsxs(Fragment,{children:[jsx("img",{src:p.logo,alt:"c",className:"logo"}),jsx("span",{children:`+${p?.idd_prefix}`})]}),f&&jsx(me,{component:"span",children:"*"}),jsx(Q,{component:"img",src:vb,alt:"d",className:"arrow",sx:{...C&&{transform:"rotate(180deg)"}}})]})}),C&&jsx(a$1,{onClick:S,sx:{zIndex:9999}}),C&&jsx(ClickAwayListener,{onClickAway:S,children:jsxs(le,{id:"CountriesList_CountriesWrapper",open:C,anchorEl:d,"data-testid":"CountriesList_CountriesWrapper",placement:"bottom-start",children:[jsx(ue,{endAdornment:jsx("img",{src:w,alt:"arrow"}),onChange:B,hideArrows:true,"data-testid":"CountriesList_InputStyled",value:y}),jsx(se,{"data-testid":"CountriesList_CountriesListStyled",children:g.map(r=>{let c=p?.countryId===r.countryId;return jsxs(de,{onClick:()=>{m(r);},sx:{backgroundColor:c?"#F9F9F9":"transparent",color:c?"#000":"#8D8D94"},children:[jsx("img",{src:r.logo,alt:"c",className:"logo"}),jsx("span",{children:`+${r.idd_prefix}`})]},`country-code-${r.countryId}`)})})]})})]})}xe.displayName="CountriesList";var ye=memo(xe);var _=ye;var Ce=styled(Q,{shouldForwardProp:e=>e!=="hasError"})(({theme:e,hasError:t})=>({border:`1px solid ${e.palette.divider}`,display:"flex",position:"relative",paddingInline:"8px",paddingInlineStart:"0px",alignItems:"center",borderRadius:"4px",height:"40px",...t&&{border:`1px solid ${e.palette.error.main}`}})),be=styled(a)(({error:e})=>({border:"none",paddingInlineEnd:0,img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}})),Se=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),Ie=styled(Q)(()=>({flex:1}));function Be({phoneValue:e,hasError:t,countries:n,isCountriesLoading:o,countryValue:f,onCountryChange:i,onPhoneChange:p,helperText:l,countryError:d,required:s,disabled:g,...u},y){return jsxs(Ie,{"data-testid":"PhoneInput",children:[jsxs(Ce,{"data-testid":"PhoneInput_MobileWrapper",hasError:t,children:[jsx(_,{isLoading:o,countries:n,value:f,onCountryChange:a=>{i?.(a);},required:s,disabled:g}),jsx(be,{value:e,"data-testid":"PhoneInput_InputNumberStyled",ref:y,inputProps:{autoComplete:"off"},error:t,disabled:g,...u,onChange:a=>{p?.(a.target.value);},hideArrows:true})]}),jsx(Se,{children:l})]})}Be.displayName="PhoneInputBase";var Le=je.forwardRef(Be);var Mt=Le;var we=styled$1("button")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),ve=styled$1(Popper)(({theme:e})=>({zIndex:99,backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),Pe=styled$1("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),Re=styled$1("li")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),Ee=styled$1(Box)(()=>({color:"red !important"}));function Fe({isLoading:e,currencies:t,value:n,onCurrencyChange:o,required:f}){let[i,p]=useState(),[l,d]=useState(null),[s,g]=useState([]),u=!!l,y=a=>{a.stopPropagation(),d(a.currentTarget);},h=()=>{d(null);},C=a=>{o?.(a),p(a),h(),g(t);};return useEffect(()=>{n&&p(n);},[n?.currencyId]),useEffect(()=>{t.length&&g(t);},[t.length]),jsxs(Q,{"data-testid":"currenciesList",sx:{position:"relative"},children:[jsx(we,{type:"button","aria-describedby":"currenciesList_currenciesWrapper",onClick:y,disabled:e,sx:{backgroundColor:"transparent",border:"none",height:34,paddingInlineStart:"8px"},children:e?jsx(bt,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsxs(Fragment,{children:[i&&jsxs(Fragment,{children:[jsx("img",{src:i.logo,alt:"c",className:"logo"}),jsx("span",{children:i?.code.english})]}),f&&jsx(Ee,{component:"span",children:"*"}),jsx(Q,{component:"img",src:vb,alt:"d",className:"arrow",sx:{...u&&{transform:"rotate(180deg)"}}})]})}),u&&jsx(a$1,{onClick:h}),u&&jsx(ve,{id:"currenciesList_currenciesWrapper",open:u,anchorEl:l,"data-testid":"currenciesList_currenciesWrapper",placement:"bottom-start",children:jsx(Pe,{"data-testid":"currenciesList_currenciesListStyled",children:s.map(a=>{let S=i?.currencyId===a.currencyId;return jsxs(Re,{onClick:()=>{C(a);},sx:{backgroundColor:S?"#F9F9F9":"transparent",color:S?"#000":"#8D8D94"},children:[jsx("img",{src:a.logo,alt:"c",className:"logo"}),jsx("span",{children:a?.code.english})]},`currency-code-${a.currencyId}`)})})})]})}Fe.displayName="CurrenciesList";var He=memo(Fe);var Ne=He;var $e=styled(Rt,{shouldForwardProp:e=>!["hasError","hideArrows"].includes(e)})(({theme:e,hideArrows:t})=>({padding:"8px",border:`1px solid ${e.palette.divider}`,borderRadius:"4px",height:32,color:e.palette.text.primary,fontSize:"11px",outline:0,maxWidth:"100%",display:"flex",flexGrow:1,"::placeholder":{color:e.palette.grey[700],fontWeight:400},...t&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}})),Te=styled(Q)(()=>({flex:1}));function Wt({hasError:e,hideArrows:t,inputProps:n,...o},f){return jsx(Te,{onClick:i=>{i.stopPropagation();},children:jsx($e,{ref:f,placeholder:o.placeholder,hideArrows:true,hasError:e,disableUnderline:true,inputProps:{...n,type:"number"},onKeyDown:i=>{["e","E","+","-"].includes(i.key)&&i.preventDefault();},...o})})}var De=forwardRef(Wt);var qe=De;var Oe=styled(Q,{shouldForwardProp:e=>e!=="hasError"})(({theme:e,hasError:t})=>({border:`1px solid ${e.palette.divider}`,display:"flex",justifyContent:"space-between",position:"relative",paddingInline:"8px",paddingInlineStart:"0px",alignItems:"center",borderRadius:"4px",height:"40px",...t&&{border:`1px solid ${e.palette.error.main}`}})),Ue=styled(Q)(()=>({width:"50px"})),Ge=styled(qe)(({error:e})=>({border:"none",paddingInlineEnd:0,img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}})),Ke=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),Je=styled(Q)(()=>({flex:1}));function Xe({amountValue:e,hasError:t,currencies:n,isCurrenciesLoading:o,currencyValue:f,onCurrencyChange:i,onAmountChange:p,onAmountBlur:l,helperText:d,required:s,...g},u){return jsxs(Je,{"data-testid":"AmountInput",children:[jsxs(Oe,{"data-testid":"AmountInput_MobileWrapper",hasError:t,children:[jsx(Ne,{isLoading:o,currencies:n,value:f,onCurrencyChange:a=>{i?.(a);},required:s}),jsx(Ue,{children:jsx(Ge,{value:e,"data-testid":"AmountInput_InputNumberStyled",ref:u,inputProps:{autoComplete:"off"},error:t,...g,onChange:a=>{p?.(a.target.value);},onBlur:a=>{l?.(a.target.value);},hideArrows:true})})]}),jsx(Ke,{children:d})]})}Xe.displayName="AmountInputBase";var Ye=je.forwardRef(Xe);var At=Ye;export{rt as a,ie as b,xt as c,_ as d,Mt as e,At as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-CNIYZZCP.js';import {Qc,vb,xb}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-CNIYZZCP.js';import {Qc,vb,xb}from'./chunk-NSFZTMX6.js';import {memo}from'react';import p from'@mui/material/Box';import y from'@mui/material/Popover';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var m=styled(p,{shouldForwardProp:o=>o!=="open"&&o!=="disabled"})(({theme:o,open:e,disabled:t})=>({display:"flex",alignItems:"center",justifyContent:"space-between",borderRadius:"4px",background:"#ffffff",cursor:"pointer",position:"relative",maxWidth:"100%",...e&&{borderColor:o.palette.info.dark,background:o.palette.common.white},...t&&{cursor:"not-allowed"}})),b=styled(p)(({theme:o})=>({padding:"4px",borderRadius:"4px",boxShadow:"-26px 156px 44px 0px rgba(0, 0, 0, 0.00), -17px 100px 41px 0px rgba(0, 0, 0, 0.01), -9px 56px 34px 0px rgba(0, 0, 0, 0.05), -4px 25px 25px 0px rgba(0, 0, 0, 0.09), -1px 6px 14px 0px rgba(0, 0, 0, 0.10), 0px 0px 0px 0px rgba(0, 0, 0, 0.10)",backgroundColor:o.palette.common.white,maxHeight:400,marginTop:"4px",width:"auto",overflow:"auto"}));styled(a)(({theme:o,selected:e})=>({display:"flex",gap:"8px",alignItems:"center",fontSize:"10px",fontWeight:500,color:o.palette.common.black,cursor:"pointer",padding:8,justifyContent:"space-between",...e&&{backgroundColor:"#F8F8F8"}}));function k({onClose:o,open:e,anchorEl:t,trigger:g,onOpen:h,children:u,disabled:w,listWrapperSx:W,hideArrow:v,onClear:n,hasValue:C}){let a=n&&C;return jsxs(m,{open:e,onClick:h,"data-testid":"Dropdown",disabled:w,children:[jsx(p,{sx:{flex:1,cursor:"pointer"},children:g}),!v&&!a&&jsx(p,{sx:{width:16,height:16,display:"flex",alignItems:"center",position:"absolute",right:8},children:jsx(p,{component:"img",src:e?Qc:vb,alt:"arrow",sx:{width:16,height:16,...e&&{width:12,height:12,padding:"2px"}}})}),a&&jsx(p,{sx:{width:16,height:16,display:"flex",alignItems:"center",position:"absolute",right:8,cursor:"pointer"},children:jsx(p,{component:"img",src:xb,alt:"clear",onClick:n})}),jsx(y,{open:e,anchorEl:t,sx:{width:t?.clientWidth},onClose:o,anchorOrigin:{vertical:"bottom",horizontal:"left"},slotProps:{paper:{style:{width:t?.clientWidth,maxWidth:"unset"}}},children:jsx(b,{sx:W,children:u})})]})}var f=memo(k);var j=f;export{j as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import'./chunk-
|
|
1
|
+
import'./chunk-NSFZTMX6.js';import {memo,useState,useRef,useMemo,useEffect}from'react';import {useTheme}from'@mui/material';import {motion}from'framer-motion';import {Resizable}from're-resizable';import X from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var b={boxShadow:"rgba(17, 17, 26, 0.05) 0px 4px 16px, rgba(17, 17, 26, 0.05) 0px 8px 32px",display:"flex",flexDirection:"column",overflow:"visible",width:"-webkit-fill-available",height:"100% !important",margin:"auto"},x={position:"fixed",right:0,left:24,top:88,overflow:"visible",borderRadius:"12px"},C={width:"inherit",height:"inherit",gridRowStart:1,gridColumnStart:1,position:"relative",display:"flex",justifyContent:"center"},S=styled(motion.div,{shouldForwardProp:t=>t!=="maximized"})(({maximized:t})=>({overflow:"hidden",display:"flex",flexDirection:"column",width:"100%",height:"100%",zIndex:1,borderRadius:"12px",...t&&{transform:"translate(0,0) !important"}})),R=styled(X)(()=>({flexGrow:1})),w=styled(motion.div)(()=>({width:"inherit",height:"100%",overflow:"hidden",flexGrow:1,position:"relative",display:"grid",gridTemplateColumns:"1fr"}));function V({children:t,id:l,onResize:v,isMaximized:e,isMinimized:y,dragControls:H,onClick:n,options:{width:r,height:E,minHeight:D,minWidth:A,maxHeight:P,maxWidth:z,order:s,openOrder:i=1},sandboxMode:d=false,sx:T}){let m=useTheme(),[I,f]=useState(true),_=useRef(null),N=useRef(null),g=useRef(),G=()=>{f(true);},L=()=>{n?.(),f(false);},k=useMemo(()=>({...b,maxWidth:r,borderRadius:e?"0 !important":12,...!e&&{top:0},background:d?m.palette.common.lightOrange:m.palette.background.transparent[0],backdropFilter:"blur(32px)"}),[r,e,d]);return useEffect(()=>{g.current?.updateSize({width:e?"100vw":r,height:e?"100vh":"100%"});},[e,r]),jsx(R,{id:"app-container-wrapper","data-testid":"AppContainerWrapper",sx:T,children:jsx(w,{"data-testid":"AppContainerContainer",children:jsx(motion.div,{id:"app-content","data-add-id":l,"data-testid":"AppContent",ref:N,initial:C,children:jsx(S,{id:"content-wrapper",drag:!e&&I,dragMomentum:false,dragConstraints:false,onDragStart:n,onDragEnter:n,onClick:n,dragControls:H,dragListener:false,style:{...s&&{zIndex:Number(s)+3},...x,height:E},initial:{marginInline:"auto",scale:0,left:0,...!e&&{left:48*(i-1)}},animate:{width:r,...e&&{width:"100vw"},scale:+!y,top:e?0:88+24*(i-1),left:e?0:48*(i-1)},ref:_,maximized:e,transition:{duration:e?.3:0},children:jsx(Resizable,{"data-id":l,ref:u=>{g.current=u;},style:k,minHeight:D,minWidth:A,maxHeight:P,maxWidth:z,onResizeStart:L,onResizeStop:G,onResize:(u,Y,B)=>{v?.(B);},children:t})})})})})}var W=memo(V);var ge=W;export{ge as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {b as b$1}from'./chunk-5TBO732O.js';import {jsxs,jsx}from'react/jsx-runtime';var Il={};b$1(Il,{ACCEPTANCE_TIMEZONE:()=>Hd,AIOverviewIcon:()=>Wt,API_BASE_LIMIT:()=>Sl,API_LIST_CONSTANTS:()=>Td,API_URL:()=>md,APP_CODES:()=>o,APP_DIMENSIONS:()=>gd,APP_ICONS:()=>Id,APP_WINDOW_Z_INDEX:()=>hl,AUTHENTICATION_LABEL:()=>dl,AuthenticationModeType:()=>Z,BASE_URL:()=>H,BUSINESS_COUNTRIES:()=>ll,BUSINESS_DOCUMENT_TYPE_MAP:()=>rl,BUSINESS_FUNCTIONS:()=>G,CATEGORIZED_CURRENCY_CODES:()=>Kd,CHECKED_ICON:()=>ul,COUNTRIES_TIMEZONES:()=>Yd,ChallengeIcon:()=>ze,DATA_KEY:()=>Zd,DATA_KEY_LABEL:()=>qd,DEVELOPMENT_HOUSE_SEGMENT_CODES:()=>nl,DirhamIconImage:()=>de,ENV:()=>fd,FOOTER_HEIGHT:()=>ud,FrictionlessIcon:()=>Ve,HEADER_HEIGHT:()=>ld,HSBCBankIcon:()=>$s,MPGSProviderIcon:()=>Ra,NETCETERAProviderIcon:()=>La,PAYMENT_INITIATED_CUSTOMER_KEY:()=>V,PAYMENT_INITIATED_MERCHANT_KEY:()=>z,PAYMENT_INITIATED_OPTIONS:()=>Jd,PAYMENT_INSTITUTION_SEGMENT_CODES:()=>el,PAYMENT_ISSUER_SEGMENT_CODES:()=>ol,PAYMENT_TECHNOLOGY_SEGMENT_CODES:()=>tl,PAYMENT_TYPES:()=>Qd,PAYMENT_TYPES_ICONS:()=>p,PLATFORM_SUB_SEGMENT_CODES:()=>jd,RATES:()=>cl,REPORTS_APPS:()=>pl,REPORT_FILTER_TYPES:()=>s,RadioButtonCheckedIcon:()=>yo,RadioButtonUncheckedIcon:()=>_o,SARIconImage:()=>ie,SEGMENT_FILTER_KEY:()=>a,SEGMENT_TYPE_FILTERS_MAP:()=>Xd,SERVICE_COMMON_FUNCTIONS:()=>n,SHEET_VIEW_TABLE_LIST_OVER_SCAN:()=>Xl,SHEET_VIEW_TABLE_ROW_HEIGHT:()=>eu,SHEET_VIEW_TABLE_THRESHOLD:()=>jl,SUPPORTED_CURRENCY_CODES:()=>zd,SUPPORTED_CURRENCY_DETAILS:()=>Vd,SandboxDefault:()=>hn,SandboxHovered:()=>vn,SandboxHoveredLightIcon:()=>Fn,TABLE_CONTENT_ROW_HEIGHT:()=>Zl,TABLE_LIST_OVER_SCAN:()=>Jl,TABLE_LOADING_ROW_HEIGHT:()=>Kl,TABLE_ROW_HEIGHT:()=>ql,TABLE_THRESHOLD:()=>Ql,TAP3DSPROVIDERIcon:()=>Pa,TEST_SECRET_KEY:()=>Ed,TIMEZONES:()=>Y,UNCHECKED_ICON:()=>gl,abandonedIcon:()=>le,abandonedNoBGIcon:()=>Za,abandonedTableIcon:()=>Mc,abandonedYellowIcon:()=>ue,acceptanceAppDisabledIcon:()=>pn,acceptanceAppIcon:()=>x,acceptanceBlueIcon:()=>cn,acceptanceDisabledRoundedIcon:()=>un,acceptanceEnabledIcon:()=>sn,acceptanceWindowIcon:()=>_,acceptedFlag:()=>Kt,accountAppIcon:()=>f,accountWindowIcon:()=>O,acquirerIcon:()=>oo,acquirerOrangeIcon:()=>ao,acquirerRedIcon:()=>so,actionFailIcon:()=>Qo,actionSuccessIcon:()=>Jo,actionsIcon:()=>Yp,activeActionIcon:()=>Ir,activeBlueIcon:()=>Gi,activeGreenIcon:()=>ki,activeLeadStatusIcon:()=>sc,addIconWhite:()=>qx,addItem:()=>Vp,addItemIcon:()=>Sr,addidasIcon:()=>Co,agreementInstallmentIcon:()=>Rp,agreementOrderIcon:()=>Np,agreementSavedCardIcon:()=>Lp,agreementSubscriptionIcon:()=>Pp,allAuthenticationStatuses:()=>il,androidAppIcon:()=>Cx,androidIcon:()=>Tc,appBaseUrl:()=>t,appPlatformSubSegmentIcon:()=>sd,applePayIcon:()=>ke,appsGridIcon:()=>_p,arcIcon:()=>Bc,archievedOutlined:()=>ii,archivedVerifyIcon:()=>Pr,attachIcon:()=>zp,attachIcon2:()=>Ar,attentionIcon:()=>xs,authenticatedIcon:()=>jc,authenticatedSuccessIcon:()=>va,authenticatedSuccessNoBgIcon:()=>_a,authenticationAppIcon:()=>i,authenticationAppTypeIcon:()=>np,authenticationAttemptedIcon:()=>ca,authenticationAttemptedNoBgIcon:()=>$a,authenticationBiometricIcon:()=>sp,authenticationDeclinedIcon:()=>pa,authenticationDeclinedNoBgIcon:()=>Sa,authenticationDeviceIcon:()=>cp,authenticationExemptedWithTransactionIcon:()=>xa,authenticationExemptedWithTransactionNoBgIcon:()=>Aa,authenticationExemptedWithoutTransactionIcon:()=>ra,authenticationExemptedWithoutTransactionNoBgIcon:()=>Ta,authenticationFailedIcon:()=>ia,authenticationFailedNoBgIcon:()=>ma,authenticationFailedTableIcon:()=>Xc,authenticationGatewaySubSegmentIcon:()=>rd,authenticationInitiatedIcon:()=>da,authenticationIssuerIcon:()=>ap,authenticationNoAuthIcon:()=>aa,authenticationNoAuthNoBgIcon:()=>Ea,authenticationPendingIcon:()=>ha,authenticationPendingNoBgIcon:()=>fa,authenticationSchemeIcon:()=>pp,authenticationUnavailableIcon:()=>la,authenticationUnavailableNoBgIcon:()=>Ca,authenticationUndeterminedIcon:()=>ua,authenticationUndeterminedNoBgIcon:()=>ya,authenticationWalletIcon:()=>op,authenticationWindowIcon:()=>D,authenticationWithTransactionIcon:()=>Ia,authenticationWithTransactionNoBgIcon:()=>ba,authenticationWithoutTransactionIcon:()=>ga,authenticationWithoutTransactionNoBgIcon:()=>wa,authenticationsTableCellWidth:()=>Sd,authorizationServiceIcon:()=>jx,authorizationTableCellWidth:()=>Cd,authorizedIcon:()=>Ax,autoCapturedIcon:()=>tx,autoVoidIcon:()=>ox,babyBlueCheckIcon:()=>Wx,backButtonLeftIcon:()=>Ss,bahrainIcon:()=>Oe,bankIcon:()=>Yo,bankNoteIcon:()=>Hx,billingAppIcon:()=>r,billingPlatformSubSegmentIcon:()=>pd,billingWindowIcon:()=>w,biometricIcon:()=>Mr,blackBrushIcon:()=>Vx,blackHeadingDownArrow:()=>_n,blackLinkIcon:()=>fi,blackMobileBatteryIcon:()=>bi,blackMobileSignalIcon:()=>wi,blackRightArrowIcon:()=>io,blackSettingsIcon:()=>Ei,blackSettingsVariant2Icon:()=>Yi,blackUnLinkIcon:()=>Pi,blackWallet:()=>$i,blueAppsIcon:()=>dc,blueArrowUpIcon:()=>Cp,blueCheckIcon:()=>$n,blueCircleCheckIcon:()=>Cr,blueCircleLoaderIcon:()=>yp,blueCircleWithWhiteCheckIcon:()=>id,blueCopyIcon:()=>mi,blueDropdownArrowIcon:()=>wn,blueGradientBrushIcon:()=>Ai,blueHeadingDropdownArrow:()=>bn,blueNoteIcon:()=>$r,bluePlusIcon:()=>Hi,blueVerifyIcon:()=>_r,blueZigzagCheckIcon:()=>wo,brandPlaceholderIcon:()=>Op,brandServiceIcon:()=>Xx,braveIcon:()=>Oc,businessSegmentIcon:()=>Rn,businessesAppIcon:()=>m,businessesWindowIcon:()=>B,buyNowPayLaterIcon:()=>He,calenderIcon:()=>ex,cancelledIcon:()=>nx,cancelledInvoiceIcon:()=>It,cancelledNoBgIcon:()=>Bt,cancelledStatusIcon:()=>qs,cancelledTableIcon:()=>kc,capturedAuthorizeIcon:()=>po,capturedDropdownIcon:()=>Xe,capturedIcon:()=>sx,capturedTableIcon:()=>Gc,cardIcon:()=>De,cardViewButtonIcon:()=>Tp,cashIcon:()=>Ge,chargeBackIcon:()=>Je,chargeBackRequestedIcon:()=>Qe,chargeBackRequestedTableIcon:()=>Fc,chargeBackTableIcon:()=>Wc,chargeBackWhiteIcon:()=>Li,chargeTableCellWidth:()=>yd,chargebacksServiceIcon:()=>ei,chargesServiceIcon:()=>ti,chatDisabledIcon:()=>hc,checkIcon:()=>mo,checkMarkIcon:()=>Xo,checkboxIcon:()=>$o,checkoutStatusBlueIcon:()=>Ga,checkoutStatusIcon:()=>ka,checkoutWithMarkStatusIcon:()=>Wa,chevronDownIcon:()=>ge,chevronGrayIcon:()=>cs,chevronWhiteIcon:()=>ss,chromeIcon:()=>Nc,chromiumIcon:()=>Dc,clearCoinIcon:()=>Fo,clearIcon:()=>Zt,clipboardIcon:()=>Dp,clockIcon:()=>Ps,closeCircle:()=>to,closeIcon:()=>Lt,closeOutlinedCircle:()=>di,closeXIcon:()=>fo,closedDisputeIcon:()=>xt,closedFlagIcon:()=>go,closedLeadStatusIcon:()=>ac,closedOutlinedYellowCircle:()=>Di,closedVerifyIcon:()=>Lr,codeIcon:()=>pt,collapseArrowIcon:()=>Sn,collapseArrows:()=>Kp,collapseArrowsIcon:()=>gs,columnIcon:()=>mt,columnResizeIndicatorIcon:()=>Jr,commercePlatformSubSegmentIcon:()=>ad,commercialRegulatorSubSegmentIcon:()=>nd,completedAcceptanceIcon:()=>ds,completedBlackIcon:()=>ta,completedIcon:()=>qe,completedLeadStatusIcon:()=>cc,completedPayoutsIcon:()=>us,completedTableIcon:()=>Hc,copyIcon:()=>at,createChargeIcon:()=>Gr,createdStatusIcon:()=>Zs,csvIcon:()=>Ds,customerIcon:()=>Zp,customerIcon2:()=>fr,customersAppIcon:()=>h,customersWindowIcon:()=>N,cyberSourceProviderIcon:()=>Na,darkBlueVerifyIcon:()=>br,darkCheckIcon:()=>Tn,darkFilterIcon:()=>Qr,darkGreyTimezoneIcon:()=>bc,darkLeftArrowIcon:()=>zo,darkRightArrowIcon:()=>Ko,dashedCheckIcon:()=>Pt,dashedOutlinedCircle:()=>li,deMaximizeIcon:()=>Ft,deactivatedCircle:()=>ui,deactivatedIcon:()=>kt,deactivatedOrangeCircle:()=>Ui,declinedIcon:()=>cx,declinedNoBgTableIcon:()=>Qc,declinedTableIcon:()=>Yc,deemaWithLabel:()=>Ri,defaultCountryIcon:()=>Dr,defaultDeviceIcon:()=>Ur,deletedStatusIcon:()=>zs,deliveredStatusIcon:()=>Xs,desktopIcon:()=>dt,destinationReversedTableIcon:()=>Vc,destinationSolidIcon:()=>ve,destinationSuccessTableIcon:()=>Jc,destinationWithoutBackgroundIcon:()=>zc,destinationsIcon:()=>ax,destinationsServiceIcon:()=>oi,destinationsTableCellWidth:()=>_d,developmentSegmentIcon:()=>On,deviceIcon:()=>Ue,digitalReceiptIcon:()=>Fx,dimmedZigzagCheckIcon:()=>Ro,disabledCardIcon:()=>lc,disabledCheckIcon:()=>An,disabledCodeIcon:()=>uc,discountIcon:()=>qp,disputeIcon:()=>Ae,disputeResolvedIcon:()=>je,disputeResolvedTableIcon:()=>Kc,dollarSignIcon:()=>Ys,doneIcon:()=>Gs,dottedLine:()=>Fs,downArrowIcon:()=>ho,downArrowIcon3:()=>mr,draftStatusIcon:()=>Ks,dragIcon:()=>Eo,dueDateBlackIcon:()=>jn,dueDateBlueIcon:()=>qn,dueDateGrayIcon:()=>es,dueDateOrangeIcon:()=>Qn,dueDateRedIcon:()=>Xn,dueDateYellowIcon:()=>Jn,edgeIcon:()=>Lc,editIcon:()=>Ua,egyptFlagIcon:()=>_e,ellipsisHorizontalIcon:()=>tt,emailBlackIcon:()=>Jp,emailChannelIcon:()=>Hn,emailIcon:()=>Qp,emptyIcon:()=>ja,emptyMobileWifiIcon:()=>Ni,emptyStatusChipColors:()=>sl,entityServiceIcon:()=>ni,entityTimezoneIcon:()=>Yr,europeFlagIcon:()=>Pe,exclamationDarkGreyIcon:()=>Ct,exclamationDarkIcon:()=>mc,exclamationErrorIcon:()=>Ec,exclamationGreyIcon:()=>St,exclamationOutlinedCircle:()=>gi,exclamationOutlinedOrangeCircle:()=>Mi,exclamationWarningIcon:()=>fc,exclamationWhiteIcon:()=>Vi,excludedApps:()=>vd,expandArrows:()=>jp,expandArrowsIcon:()=>Is,expiredIcon:()=>os,expiredInvoiceIcon:()=>vt,expiredLeadStatusIcon:()=>pc,expiredNoBgIcon:()=>Dt,expiredStatusIcon:()=>Qs,expressCheckoutIcon:()=>Me,externalLinkIcon:()=>dd,eyeHideIcon:()=>Cs,eyeShowIcon:()=>ys,failedIcon:()=>px,failedNoBgTableIcon:()=>qc,failedTableIcon:()=>Zc,failedWhiteBgIcon:()=>Tt,feeIcon:()=>er,fileDownloadBlueIcon:()=>Kr,fileDownloadGreyIcon:()=>Zr,financialSegmentIcon:()=>Pn,firefoxIcon:()=>Rc,flagIcon:()=>$e,functionBaseUrl:()=>X,gadientLink:()=>Ti,gatewayIcon:()=>co,gatewayOrangeIcon:()=>rx,gatewayRedIcon:()=>xx,genericIcon:()=>zn,genericIconNew:()=>no,getAuthorityIcon:()=>ae,getBrowserIcon:()=>pe,getCountriesIcon:()=>oe,getCurrenciesIcon:()=>ce,getLightUrlIcon:()=>j,getPaymentGatewaysIcon:()=>xe,getPaymentInitiatorIcon:()=>re,getPaymentIssuersIcon:()=>te,getPaymentMethodsIcon:()=>ee,getServiceFunctionIcon:()=>ne,getStatusIcon:()=>se,gradientSettings:()=>Si,gradientWallet:()=>Ci,grayBrandIcon:()=>Un,grayCircleIcon:()=>Mn,grayCloseIcon:()=>wp,grayFlagIcon:()=>vo,grayProductLabel:()=>vr,grayUpArrowIcon:()=>yn,grayVerifyIcon:()=>wr,greenArrowLeftIcon:()=>hs,greenArrowRightIcon:()=>vs,greenArrowUpIcon:()=>ms,greenCheck2ACE00:()=>hi,greenCheckIcon:()=>rt,greenCheckV2Icon:()=>$c,greenVerifyIcon:()=>Nr,greenZigzagCheckIcon:()=>No,greyAppleIcon:()=>Cc,greyCheckIcon:()=>fn,greyCrossIcon:()=>En,greyDesktopIcon:()=>_c,greyDownArrowIcon:()=>Jx,greyDropdownIcon:()=>Nn,greyLocationIcon:()=>yc,greyMinusIcon:()=>Ba,greyPlusIcon:()=>Oa,greyTimezoneIcon:()=>Se,greyUpArrowIcon:()=>Qx,hideIcon:()=>Xt,hijriIcon:()=>Vo,homeIcon:()=>Xr,iOSAppIcon:()=>yx,ibanIcon:()=>Yt,idIcon:()=>ct,inActiveGreyIcon:()=>Wi,initialAcceptanceIcon:()=>is,initialPayoutsIcon:()=>ls,initiatedIcon:()=>Tx,inprogressIcon:()=>bs,intentCancelledStatusIcon:()=>Ya,intentExpiredStatusIcon:()=>Fa,intentInitiatedStatusIcon:()=>Ha,intentTransactedStatusIcon:()=>Va,intentsServiceIcon:()=>xi,intentsTableCellWidth:()=>bd,invoiceIcon:()=>gt,invoiceIdIcon:()=>nt,invoiceNumberIcon:()=>ht,invoiceServiceIcon:()=>si,invoicesTableCellWidth:()=>wd,iosIcon:()=>Ac,jordanFlagIcon:()=>we,jsonBlackIcon:()=>Gn,jsonIcon:()=>kn,kuwaitFlagIcon:()=>Re,lateFeeIcon2:()=>Tr,layersIcon:()=>gc,leadAppIcon:()=>$,leadTitleIcon:()=>A,leadWhiteIcon:()=>vc,leadsTableCellWidth:()=>Nd,lebanonFlagIcon:()=>Ne,lightPlatformSegmentIcon:()=>Dn,lightUrl:()=>e,linkTiltedIcon:()=>Xp,listShadowBg:()=>Br,listViewButtonIcon:()=>Sp,loaderWhiteIcon:()=>ep,lockIcon:()=>jr,logOutIcon:()=>jo,longWordsIcon:()=>za,macIcon:()=>bo,manyCurrencyCoin:()=>yi,manyCurrencyCoinGradient:()=>_i,marketPlaceBlackIcon:()=>Po,marketPlaceBlueIcon:()=>Lo,marketPlaceDimmedIcon:()=>Oo,maximizeIcon:()=>Nt,merchantInitiatedIcon:()=>ro,merchantServiceProviderSubSegmentIcon:()=>Qi,merchantsTableCellWidth:()=>Wd,messageIcon:()=>ko,metaIcon:()=>qr,minimizeIcon:()=>Rt,minusIcon:()=>tr,mobileIcon:()=>lt,moneyInDimmedIcon:()=>Mo,moneyInIcon:()=>Uo,moneyOutDimmedIcon:()=>Do,moneyOutIcon:()=>Bo,mutedOutlinedCheckIcon:()=>zx,navigationIcon:()=>Gx,navigationPointerBlack:()=>Zx,newFileIcon:()=>xc,newInvoiceIcon:()=>gr,newReceiptIcon:()=>nn,newWindowIcon:()=>Qt,noAgreementIcon:()=>Up,noPreviewIcon:()=>Da,notVerifiedIcon:()=>as,noteIcon:()=>or,noteIcon2:()=>Er,openBankingIcon:()=>Ye,openDisputeIcon:()=>it,openFlagIcon:()=>uo,operaIcon:()=>Pc,orangeFlagIcon:()=>lo,orderAppIcon:()=>T,orderIcon:()=>Yn,orderWindowIcon:()=>S,ordersTableCellWidth:()=>Rd,outlinedCircle:()=>vi,outlinedPlatformIcon:()=>Kx,outstandingIcon:()=>Ot,paidNoBgIcon:()=>Ut,paidOutFilterIcon:()=>oa,paidOutIcon:()=>ix,paidOutTableIcon:()=>qa,paidStatusIcon:()=>Js,passThruWalletIcon:()=>We,passwordDotsIcon:()=>Hs,payStreamIcon:()=>Wo,paymentAcquirerSubSegmentIcon:()=>ed,paymentFacilitatorSubSegmentIcon:()=>od,paymentGatewayProviderSubSegmentIcon:()=>Ki,paymentIssuerSubSegmentIcon:()=>ji,paymentMethodSubSegmentIcon:()=>td,paymentProcessorSubSegmentIcon:()=>Ji,paymentSchemeSubSegmentIcon:()=>Xi,paymentTechnologySubSegmentIcon:()=>zi,paymentTechnologyV2SubSegmentIcon:()=>Zi,paymentTerminalProviderSubSegmentIcon:()=>qi,payoutAppDisabledIcon:()=>rn,payoutDisabledRoundedIcon:()=>ln,payoutEnabledIcon:()=>xn,payoutGreenIcon:()=>dn,payoutIcon:()=>Vt,payoutServiceIcon:()=>ci,payoutWindowIcon:()=>R,payoutsAppIcon:()=>l,payoutsGreenIcon:()=>an,payoutsTableCellWidth:()=>Ld,pdfGrayIcon:()=>nr,pdfIcon:()=>Us,penIcon:()=>Or,pendingFlag:()=>Ht,pendingIcon:()=>Go,pendingOnTapIcon:()=>Ic,pendingPayoutIcon:()=>Ja,pendingStatusIcon:()=>oc,percentage0Icon:()=>yt,percentage100Icon:()=>wt,percentage50Icon:()=>_t,percentage75Icon:()=>bt,physicalLocationIcon:()=>_x,pinIcon:()=>rp,platformSegmentIcon:()=>Bn,plusQty:()=>hr,preferencesIcon:()=>en,previewModeIcon:()=>lp,productLabel:()=>sr,protectAppIcon:()=>v,protectAuthorizationsTableCellWidth:()=>Pd,protectChargesTableCellWidth:()=>Od,protectIcon:()=>To,protectWindowIcon:()=>L,providerSegmentIcon:()=>Ln,quantityIcon:()=>cr,questionOutlinedCircle:()=>Ii,quitIcon:()=>jt,readyLeadStatusIcon:()=>rc,receiptBillIcon:()=>on,receiptIcon:()=>Fr,redArrowDownIcon:()=>Ze,redCloseIcon:()=>Os,redFlagIcon:()=>Io,redVerifyIcon:()=>Rr,refundInitiatedIcon:()=>lx,refundSettledIcon:()=>ux,refundTableCellWidth:()=>Bd,refundedIcon:()=>dx,refundedNotSettledIcon:()=>gx,refundedStatusIcon:()=>nc,refundsServiceIcon:()=>ai,refunededNoBgIcon:()=>Mt,releasedFlag:()=>zt,reloadIcon:()=>Vs,remindedRedIcon:()=>ns,removeAllItem:()=>ar,removeItem:()=>pr,reportAppIcon:()=>E,reportAppsIcon:()=>Ws,reportFilterTypesMap:()=>al,reportIcon:()=>Ms,reportsIcon:()=>Ee,reportsIconOutlined:()=>ks,reportsWindowIcon:()=>U,restrictedIcon:()=>Ix,retailPlatformSubSegmentIcon:()=>cd,retailerSubSegmentIcon:()=>xd,reverseActionIcon:()=>tp,reversePayoutIcon:()=>et,reversePayoutTableIcon:()=>Qa,reversedIcon:()=>Ie,rightArrow:()=>xo,rightLightArrowIcon:()=>Rx,rowIdIcon:()=>st,safariIcon:()=>wc,sandboxDefaultIcon:()=>Rs,sandboxHoveredIcon:()=>Ns,sandboxOrangeIcon:()=>Ls,saudiArabiaFlagIcon:()=>be,saveTokenIcon:()=>na,savedCardIcon:()=>ye,savedStatusIcon:()=>ec,savedTimezoneIcon:()=>Vr,scheduledFilterIcon:()=>ea,scheduledStatusIcon:()=>tc,searchBlueIcon:()=>Nx,searchIcon:()=>he,segmentDevelopmentHouseIcon:()=>Ox,segmentInstitutionIcon:()=>Lx,segmentTechnologyIcon:()=>Px,servicesTags:()=>Ad,settledIcon:()=>vx,settlementInitiatedIcon:()=>hx,sheetViewIcon:()=>Ka,shopifyBadgeIcon:()=>As,slaProcessAppIcon:()=>C,slaProcessWindowIcon:()=>y,smallBlueCheckIcon:()=>zr,smallLeftArrowIcon:()=>wx,smsChannelIcon:()=>Kn,smsIcon:()=>rr,socialLinksIcon:()=>bx,sortAscArrowIcon:()=>Bi,sortAzIcon:()=>ft,sortDescArrowIcon:()=>Oi,sortIcon:()=>Wn,sortZaIcon:()=>Et,spinnerLoadingAnimatedIcon:()=>qo,spinnerLoadingIcon:()=>Zo,starIcon:()=>eo,storedValueWalletIcon:()=>Fe,subscriptionIcon:()=>Ce,successCheckIcon:()=>Wr,successWhiteBgIcon:()=>At,switcherIcon:()=>ip,tableBackgroundLoader:()=>Ep,tableBlueArrowUpIcon:()=>$p,tableBlueCheckMarkShadowedIcon:()=>Ap,tableLoadingSpinnerIcon:()=>mp,tableLoadingSpinnerWhiteIcon:()=>fp,tabletIcon:()=>ut,taxIcon:()=>xr,teamWindowIcon:()=>ic,terminalAppIcon:()=>M,terminalBrushIcon:()=>Mx,terminalBrushMuted:()=>kx,terminalCardPhone:()=>Bx,terminalDeviceFrame:()=>Yx,terminalLinkVideo:()=>Fi,terminalTypeIcon:()=>Ux,terminalWindowIcon:()=>k,terminalsTableCellWidth:()=>Fd,threeDSIcon:()=>kr,threeDsIcon:()=>ot,timedOutIcon:()=>mx,timerBlueIcon:()=>ts,timezoneIcon:()=>Te,toastPOSIcon:()=>Dx,tokenAppIcon:()=>I,tokenCardIcon:()=>hp,tokenExpiredStatusIcon:()=>Ip,tokenPendingStatusIcon:()=>vp,tokenSavedStatusIcon:()=>up,tokenTransactedStatusIcon:()=>gp,tokensReportsIcon:()=>Mp,tokensTableCellWidth:()=>Dd,tokensWindowIcon:()=>P,topUpIcon:()=>Gt,topupsTableCellWidth:()=>Ud,totalAmountIcon:()=>ir,transactionIcon:()=>Vn,transformIcon:()=>tn,trashBinIcon:()=>yr,unAuthenticatedStatuses:()=>K,unAuthorizedIcon:()=>me,unAvailableIcon:()=>fx,unCapturedIcon:()=>qt,unCapturedStatuses:()=>$d,unCheckedIcon:()=>gn,unauthenticatedIcon:()=>sa,unfocusRemoveItem:()=>dr,unisoIcon:()=>So,unitedArabEmiratesFlagIcon:()=>Le,unitedStatesFlagIcon:()=>Be,unknownIcon:()=>Ex,unpinIcon:()=>xp,uploadBlueIcon:()=>ws,uploadIcon:()=>_s,userIcon:()=>Uc,userTimezoneIcon:()=>Hr,usersIcon:()=>Bp,usersServiceIcon:()=>pi,verifiedGreenBadgeIcon:()=>Ts,verifiedIcon:()=>ps,verifyReviewIcon:()=>rs,verticalLineIcon:()=>dp,videosUrl:()=>F,viewAllIcon:()=>Jt,viewIcon:()=>fe,viewInvoiceIcon:()=>Ma,viewedStatusIcon:()=>js,visaIcon:()=>Ke,voidedIcon:()=>$x,walletAppIcon:()=>d,walletDetailsTableCellWidth:()=>kd,walletIcon:()=>Ho,walletServiceIcon:()=>ri,walletStatementTableCellWidth:()=>Gd,walletTableCellWidth:()=>Md,walletWindowIcon:()=>b,warningInfoIcon:()=>mn,websiteBlueIcon:()=>Sx,websiteIcon:()=>Sc,whatsappChannelIcon:()=>Zn,whatsappIcon:()=>lr,whiteArrow2:()=>ur,whiteArrowLeftIcon:()=>Es,whiteArrowRightIcon:()=>fs,whiteCloseIcon:()=>Xa,whiteFilterIcon:()=>bp,whitePlusIcon:()=>Ao,wifiOffIcon:()=>In,windowBankIcon:()=>Wp,windowBrandIcon:()=>kp,windowEntityIcon:()=>Gp,windowIndividualIcon:()=>Fp,windowPasswordIcon:()=>Hp,worldIcon:()=>Cn,xlsIcon:()=>Bs,zipFileIcon:()=>$t});var u="https://cdn.tap.company/tap-assets",e=`${u}/icons/dashboard/light`,t=`${e}/other`,X=`${e}/function`,F=`${u}/videos`,j=c=>`${e}/${c}.svg`,ee=c=>`${e}/payment-method/v2/${c}.svg`,te=c=>`${e}/payment-issuer/${c}.svg`,oe=c=>`${e}/country/v3/${c}.svg`,ne=c=>`${e}/function/${c}.svg`,se=c=>`${e}/statusIcons/${c}.svg`,ce=c=>`${u}/currency/v3/light/${c}.svg`,ae=c=>{let Q=c.replace(/\s/g,"");return `${u}/icons/dashboard/light/authority/v2/${Q}.svg`},pe=c=>`${e}/browsers/${c}.svg`,re=c=>`${e}/payment-initiator/${c}.svg`,xe=c=>`${e}/payment-gateways/${c}.svg`,ie=`${e}/currency/sar.svg`,de=`${e}/currency/dirham.svg`,le=`${e}/abandoned.svg`,ue=`${e}/abandonedYellow.svg`,ge=`${e}/chevron-down.svg`,Ie=`${e}/reversed.svg`,ve=`${e}/destinationSolid.svg`,he=`${e}/search.svg`,me=`${e}/unauthorized.svg`,fe=`${e}/view.svg`,Ee=`${e}/reports.svg`,$e=`${e}/flag.svg`,Ae=`${e}/dispute.svg`,Te=`${e}/timezone.svg`,Se=`${e}/greyTimezone.svg`,Ce=`${e}/subscription.svg`,ye=`${e}/savedCard.svg`,_e=`${e}/egypt.svg`,be=`${e}/saudiArabia.svg`,we=`${e}/jordan.svg`,Ne=`${e}/lebanon.svg`,Re=`${e}/kuwait.svg`,Le=`${e}/unitedArabEmirates.svg`,Pe=`${e}/europe.svg`,Oe=`${e}/bahrain.svg`,Be=`${e}/america.svg`,De=`${e}/payment-method/v2/card.svg`,Ue=`${e}/device.svg`,Me=`${e}/expressCheckout.svg`,ke=`${e}/applePay.svg`,Ge=`${e}/cash.svg`,We=`${e}/passThruWallet.svg`,Fe=`${e}/storedValueWallet.svg`,He=`${e}/buyNowPayLater.svg`,Ye=`${e}/openBanking.svg`,Ve=`${e}/FrictionlessIcon.svg`,ze=`${e}/ChallengeIcon.svg`,Ke=`${e}/visa.svg`,Ze=`${e}/redArrowDownIcon.svg`,qe=`${e}/completed.svg`,Qe=`${e}/chargebackRequested.svg`,Je=`${e}/chargeback.svg`,Xe=`${t}/captureDropdown.svg`,je=`${e}/disputeResolved.svg`,et=`${e}/reversePayout.svg`,tt=`${e}/ellipsisHorizontal.svg`,ot=`${e}/3ds.svg`,nt=`${e}/invoiceIdIcon3.svg`,st=`${e}/idIcon3.svg`,ct=`${e}/id.svg`,at=`${t}/copyIcon.svg`,pt=`${t}/codeIcon.svg`,rt=`${t}/GreenCheckMark2.svg`,xt=`${e}/closedDispute.svg`,it=`${e}/openDispute.svg`,dt=`${e}/desktop.svg`,lt=`${e}/mobile.svg`,ut=`${e}/tablet.svg`,gt=`${e}/invoice.svg`,It=`${e}/cancelledInvoiceIcon.svg`,vt=`${e}/expiredInvoiceIcon.svg`,ht=`${e}/invoiceNumberIcon.svg`,mt=`${e}/column.svg`,ft=`${e}/sortAz.svg`,Et=`${e}/sortZa.svg`,$t=`${e}/zipFile.svg`,At=`${e}/successWhiteBg.svg`,Tt=`${e}/failedWhiteBgIcon.svg`,St=`${e}/exclamationGreyIcon.svg`,Ct=`${e}/exclamationDarkGreyIcon.svg`,yt=`${e}/percentage0.svg`,_t=`${e}/percentage50.svg`,bt=`${e}/percentage75.svg`,wt=`${e}/percentage100.svg`,Nt=`${e}/maximize.svg`,Rt=`${e}/minimize.svg`,Lt=`${e}/close.svg`,Pt=`${e}/dashedCheckIcon.svg`,Ot=`${e}/outstandingIcon.svg`,Bt=`${e}/cancelledStatusIcon.svg`,Dt=`${e}/expiredStatusIcon.svg`,Ut=`${e}/paidStatusIcon.svg`,Mt=`${e}/refundedStatusIcon.svg`,kt=`${e}/deactivatedIcon.svg`,Gt=`${e}/topup.svg`,Wt=`${e}/AIOverviewIcon.svg`,Ft=`${t}/demaximize.svg`,Ht=`${e}/pendingFlag.svg`,Yt=`${e}/ibanIcon.svg`,Vt=`${e}/payoutIcon.svg`,zt=`${e}/releasedFlag.svg`,Kt=`${e}/acceptedFlag.svg`,Zt=`${e}/clearIcon.svg`,qt=`${e}/status/unCaptured.svg`,Qt=`${t}/newWindow.svg`,Jt=`${t}/viewAll.svg`,Xt=`${t}/hide.svg`,jt=`${t}/close.svg`,eo=`${t}/star.svg`,to=`${t}/closeCircle.svg`,oo=`${t}/acquirer.svg`,no=`${e}/GenericIconNew.svg`,so=`${t}/acquirerRed.svg`,co=`${t}/gateway.svg`,ao=`${t}/acquirerOrange.svg`,po=`${e}/status/capturedAuthorize.svg`,ro=`${t}/merchantInitiated.svg`,xo=`${t}/rightArow.svg`,io=`${e}/blackRightArrow.svg`,lo=`${t}/orangeFlag.svg`,uo=`${t}/openFlag.svg`,go=`${t}/closedFlag.svg`,Io=`${t}/redFlag.svg`,vo=`${t}/grayFlag.svg`,ho=`${t}/downArrow.svg`,mo=`${t}/check.svg`,fo=`${t}/closeX.svg`,Eo=`${t}/drag.svg`,$o=`${t}/checkboxIcon.svg`,Ao=`${e}/plusWhite.svg`,To=`${t}/checkboxIcon.svg`,So=`${e}/Uniso.svg`,Co=`${e}/addidas.svg`,yo=`${e}/radioButtonChecked.svg`,_o=`${e}/radioButtonUnchecked.svg`,bo=`${e}/Mac.svg`,wo=`${e}/blueCheckIconZigzag.svg`,No=`${e}/greenCheckIconZigzag.svg`,Ro=`${e}/dimmedCheckIconZigzag.svg`,Lo=`${e}/marketPlaceBlue.svg`,Po=`${e}/marketplaceBlackIcon.svg`,Oo=`${e}/marketPlaceDimmed.svg`,Bo=`${e}/moneyOut.svg`,Do=`${e}/moneyOutDimmed.svg`,Uo=`${e}/moneyIn.svg`,Mo=`${e}/moneyInDimmed.svg`,ko=`${e}/message.svg`,Go=`${e}/pending.svg`,Wo=`${e}/payStream.svg`,Fo=`${e}/clearCoin.svg`,Ho=`${t}/walletSmall.svg`,Yo=`${t}/bank.svg`,Vo=`${t}/hijri.svg`,zo=`${t}/darkLeftArrow.svg`,Ko=`${t}/darkRightArrow.svg`,Zo=`${t}/spinnerLoading.svg`,qo=`${t}/spinnerLoadingAnimated.svg`,Qo=`${t}/actionFail.svg`,Jo=`${t}/actionSuccess.svg`,Xo=`${t}/checkMark.svg`,jo=`${t}/logout.svg`,en=`${t}/preferences.svg`,tn=`${t}/transform.svg`,I=`${t}/token.svg`,r=`${t}/billing.svg`,on=`${t}/receiptBill.svg`,nn=`${e}/newReceiptIcon.svg`,x=`${t}/acceptance.svg`,sn=`${e}/acceptanceEnabled.svg`,cn=`${e}/acceptanceBlue.svg`,an=`${e}/payoutsGreen.svg`,pn=`${t}/acceptanceAppIconDisabled.svg`,rn=`${t}/payoutsAppIconDisabled.svg`,xn=`${e}/payoutEnabled.svg`,dn=`${e}/payoutAppGreenIcon.svg`,ln=`${e}/payoutDisabledRounded.svg`,un=`${e}/acceptanceDisabledRounded.svg`,i=`${t}/AuthenticationApp.svg`,d=`${t}/walletApp.svg`,l=`${t}/payouts.svg`,v=`${t}/protect.svg`,h=`${t}/customers.svg`,m=`${t}/business.svg`,f=`${t}/account.svg`,gn=`${t}/disableCheck.svg`,In=`${t}/wifiOff.svg`,vn=`${t}/SandboxHovered.svg`,hn=`${t}/Sandbox.svg`,mn=`${t}/ExclamationError.svg`,fn=`${t}/greyCheck.svg`,En=`${t}/greyCross.svg`,$n=`${t}/blueCheck.svg`,An=`${t}/disabledCheck.svg`,Tn=`${t}/darkCheck.svg`,Sn=`${t}/collapseArrow.svg`,Cn=`${t}/world.svg`,yn=`${t}/grayUpArrow.svg`,_n=`${t}/blackHeadingDownArrowIcon.svg`,bn=`${t}/blueHeadingDropdownArrow.svg`,wn=`${t}/dropdownArrow.svg`,Nn=`${t}/greyDropdownIcon.svg`,Rn=`${t}/business2.svg`,Ln=`${t}/provider.svg`,Pn=`${t}/financial.svg`,On=`${t}/development.svg`,Bn=`${t}/platform.svg`,Dn=`${t}/light_platform.svg`,Un=`${t}/brandGray.svg`,Mn=`${e}/grayCircleIcon.svg`,kn=`${t}/json.svg`,Gn=`${t}/jsonBlackIcon.svg`,Wn=`${t}/sort1.svg`,Fn=`${t}/SandboxHoveredLight.svg`,Hn=`${t}/emailColoured.svg`,Yn=`${e}/OrderIcon.svg`,Vn=`${e}/TransactionIcon.svg`,zn=`${e}/GenericIcon.svg`,Kn=`${t}/smsColoured.svg`,Zn=`${t}/whatsAppColored.svg`,qn=`${t}/dueDateBlue.svg`,Qn=`${t}/dueDateOrange.svg`,Jn=`${t}/dueDateYellow.svg`,Xn=`${t}/dueDateRed.svg`,jn=`${t}/dueDateBlack.svg`,es=`${t}/dueDateGray.svg`,ts=`${t}/timerBlue.svg`,os=`${t}/expiredIcon.svg`,ns=`${t}/remindedRed.svg`,ss=`${t}/chevronWhite.svg`,cs=`${t}/chevronGray.svg`,as=`${t}/notVerified.svg`,ps=`${t}/verified.svg`,rs=`${t}/verifyReview.svg`,xs=`${e}/window/attention.svg`,is=`${e}/window/initalAcceptance.svg`,ds=`${e}/window/completedAcceptance.svg`,ls=`${e}/window/initalPayouts.svg`,us=`${e}/window/completedPayouts.svg`,gs=`${t}/collapseArrowsIcon.svg`,Is=`${t}/expandArrowsIcon.svg`,vs=`${t}/greenArrowRight.svg`,hs=`${t}/greenArrowLeft1.svg`,ms=`${t}/greenIconWithArrowUp.svg`,fs=`${t}/whiteArrowRight.svg`,Es=`${t}/whiteArrowLeft.svg`,$s=`${e}/HSBCBank.svg`,As=`${e}/shopifyIcon.svg`,Ts=`${e}/verifiedGreenBadge.svg`,Ss=`${e}/backButtonLeft.svg`,Cs=`${e}/eyeHideIcon.svg`,ys=`${e}/eyeShowIcon.svg`,_s=`${t}/uploadIcon.svg`,bs=`${e}/inprogressIcon.svg`,ws=`${t}/uploadBlueIcon.svg`,Ns=`${t}/SandboxHovered.svg`,Rs=`${t}/sandboxDefaultIcon.svg`,Ls=`${t}/SandboxIcon.svg`,Ps=`${t}/clock.svg`,Os=`${t}/RedClose.svg`,Bs=`${t}/xls.svg`,Ds=`${t}/csv.svg`,Us=`${t}/pdf.svg`,Ms=`${t}/Download.svg`,ks=`${t}/reportsIconOutlined.svg`,Gs=`${t}/Done.svg`,Ws=`${t}/reportApps.svg`,E=`${e}/window/ReportsApp.svg`,$=`${e}/window/leadApp.svg`,A=`${e}/window/leadTitleIcon.svg`,T=`${t}/OrderApp.svg`,S=`${t}/OrderTitleIcon.svg`,Fs=`${e}/dottedLine.svg`,Hs=`${e}/passwordDots.svg`,Ys=`${e}/dollarSign.svg`,Vs=`${e}/reload.svg`,zs=`${t}/deletedStatus1.svg`,Ks=`${t}/draftedStatus1.svg`,Zs=`${t}/createdStatus1.svg`,qs=`${t}/cancelledStatus1.svg`,Qs=`${t}/expiredStatus1.svg`,Js=`${t}/paidStatus1.svg`,Xs=`${t}/deliveredStatus1.svg`,js=`${t}/viewedStatus1.svg`,ec=`${t}/savedStatus1.svg`,tc=`${t}/scheduledStatus1.svg`,oc=`${t}/invoicePendingStatus2.svg`,nc=`${t}/invoiceRefundedStatus2.svg`,sc=`${e}/activeLeadStatus.svg`,cc=`${e}/completedLeadStatus.svg`,ac=`${e}/closedLeadStatus.svg`,pc=`${e}/expiredLeadStatus.svg`,rc=`${e}/readyLeadStatus.svg`,xc=`${e}/newFileIcon.svg`,ic=`${e}/teamWindowIcon.svg`,dc=`${e}/blueAppsIcon.svg`,lc=`${e}/disabledCardIcon.svg`,uc=`${e}/disabledCodeIcon.svg`,gc=`${e}/layersIcon.svg`,Ic=`${e}/status/pendingOnTapIcon.svg`,vc=`${e}/leadWhiteIcon.svg`,hc=`${t}/chatDisabledIcon.svg`,mc=`${e}/exclamationDarkIcon.svg`,fc=`${t}/exclamationWarning.svg`,Ec=`${e}/exclamationError.svg`,$c=`${t}/greenCheckV2.svg`,Ac=`${e}/iosIcon1.svg`,Tc=`${e}/androidIcon.svg`,Sc=`${e}/websiteIcon.svg`,Cc=`${t}/greyApple.svg`,yc=`${t}/greyLocationIcon.svg`,_c=`${t}/greyDesktopIcon.svg`,bc=`${t}/greyTimezone.svg`,wc=`${t}/safariBrowser.svg`,Nc=`${t}/chromeBrowser.svg`,Rc=`${t}/firefoxBrowser.svg`,Lc=`${t}/microsoftBrowser.svg`,Pc=`${t}/operaBrowser.svg`,Oc=`${t}/braveBrowser.svg`,Bc=`${t}/arcBrowser.svg`,Dc=`${t}/chromiumBrowser.svg`,Uc=`${t}/userIcon.svg`,C=`${t}/slaProcess.svg`,y=`${e}/window/slaProcess.svg`,Mc=`${e}/status/table/abandoned.svg`,kc=`${e}/status/table/cancelled.svg`,Gc=`${e}/status/table/captured.svg`,Wc=`${e}/status/table/chargeBack.svg`,Fc=`${e}/status/table/chargeBackRequested.svg`,Hc=`${e}/status/table/completed.svg`,Yc=`${e}/status/table/declined.svg`,Vc=`${e}/status/table/destinationReversed.svg`,zc=`${t}/DestinationWithoutBackground.svg`,Kc=`${e}/status/table/disputeResolved.svg`,Zc=`${e}/status/table/failed.svg`,qc=`${e}/status/table/failedNoBG.svg`,Qc=`${e}/status/table/declinedNoBg.svg`,Jc=`${t}/destinationSuccess.svg`,Xc=`${e}/status/authenticationFailed.svg`,jc=`${e}/status/table/authenticated.svg`,ea=`${e}/paidOutFilterIcon.svg`,ta=`${e}/completedBlackIcon.svg`,oa=`${e}/scheduledFilterIcon.svg`,na=`${e}/saveTokenIcon.svg`,sa=`${e}/status/unauthenticated.svg`,ca=`${e}/status/authenticationAttempted.svg`,aa=`${e}/status/authenticationNoAuth.svg`,pa=`${e}/status/authenticationDeclined.svg`,ra=`${e}/status/authenticationExemptedWithoutTransaction1.svg`,xa=`${e}/status/authenticationExemptedWithTransaction2.svg`,ia=`${e}/status/authenticationFailed1.svg`,da=`${e}/status/authenticationInitiated.svg`,la=`${e}/status/authenticationUnavailable.svg`,ua=`${e}/status/authenticationUndetermined.svg`,ga=`${e}/status/AuthenticationWithoutTransaction1.svg`,Ia=`${e}/status/authenticationWithTransaction1 2.svg`,va=`${e}/status/AuthenticationAuthenticated.svg`,ha=`${e}/status/authenticationPending2.svg`,ma=`${e}/authenticationFailedNoBg.svg`,fa=`${e}/authenticationPendingNoBg.svg`,Ea=`${e}/authenticationNoAuthNoBg.svg`,$a=`${e}/authenticationAttemptedNoBg.svg`,Aa=`${e}/authenticationExemptedWithTransactionNoBg.svg`,Ta=`${e}/authenticationExemptedWithoutTransactionNoBg.svg`,Sa=`${e}/authenticationDeclinedNoBg.svg`,Ca=`${e}/authenticationUnavailableNoBg.svg`,ya=`${e}/authenticationUndeterminedNoBg.svg`,_a=`${e}/authenticatedSuccessNoBg.svg`,ba=`${e}/authenticationWithTransactionNoBg.svg`,wa=`${e}/authenticationWithoutTransactionNoBg.svg`,Na=`${e}/provider/CYBERSOURCE.svg`,Ra=`${e}/provider/MPGS.svg`,La=`${e}/provider/NETCETERA.svg`,Pa=`${e}/provider/TAP3DS.svg`,Oa=`${e}/greyPlusIcon.svg`,Ba=`${e}/greyMinusIcon.svg`,Da=`${e}/noPreviewIcon.svg`,Ua=`${e}/other/editIcon.svg`,Ma=`${t}/viewInvoice.svg`,ka=`${t}/checkoutStatus.svg`,Ga=`${t}/checkStatusOutBlue.svg`,Wa=`${t}/checkoutWithMarkStatus.svg`,Fa=`${t}/intentExpiredStatus.svg`,Ha=`${t}/intentInitiatedStatus.svg`,Ya=`${t}/intentCancelledStatus.svg`,Va=`${t}/intentTransactedStatus.svg`,za=`${e}/SheetViewUnionIcon.svg`,Ka=`${e}/sheetView.svg`,Za=`${e}/abandonedNoBG.svg`,qa=`${e}/status/table/paidOut.svg`,Qa=`${e}/status/table/reversePayout.svg`,Ja=`${e}/status/pendingPayout.svg`,Xa=`${t}/whiteCloseIcon.svg`,ja=`${e}/window/empty.svg`,ep=`${e}/loaderWhiteIcon.svg`,tp=`${t}/reverseActionIcon.svg`,op=`${e}/status/authenticationWallet.svg`,np=`${e}/status/authenticationApp.svg`,sp=`${e}/status/authenticationBiometric.svg`,cp=`${e}/status/authenticationDevice.svg`,ap=`${e}/status/authenticationIssuer.svg`,pp=`${e}/status/authenticationScheme.svg`,rp=`${e}/pin.svg`,xp=`${e}/unpin.svg`,ip=`${t}/switcher.svg`,dp=`${e}/verticalLine.svg`,lp=`${e}/previewModeIcon.svg`,up=`${e}/status/table/tokensSaved.svg`,gp=`${e}/status/table/tokensTransacted.svg`,Ip=`${e}/status/table/tokensExpired.svg`,vp=`${e}/status/table/tokensPending.svg`,hp=`${e}/status/table/tokenCardIcon.svg`,mp=`${t}/TableloadingSpinner.svg`,fp=`${t}/loadingSpinnerWhite.svg`,Ep=`${e}/backgroundLoader.svg`,$p=`${t}/arrowUpBlue1.svg`,Ap=`${t}/BlueCheckMarkShadowed1.svg`,Tp=`${t}/cardViewButton.svg`,Sp=`${t}/listViewButton1.svg`,Cp=`${e}/BlueArrowUpIcon.svg`,yp=`${e}/BlueCircleLoaderIcon.svg`,_p=`${e}/appsGridIcon2.svg`,bp=`${e}/whiteFilter.svg`,wp=`${e}/grayCloseIcon.svg`,Np=`${e}/status/OrderAgreementIcon.svg`,Rp=`${e}/status/InstallmentAgreementIcon.svg`,Lp=`${e}/status/CardAgreementIcon.svg`,Pp=`${e}/status/SubscriptionAgreementIcon.svg`,Op=`${e}/brandPlaceholder.svg`,Bp=`${e}/users-icons.svg`,Dp=`${e}/Board-Icons.svg`,Up=`${t}/No Agreement.svg`,_=`${e}/window/acceptance.svg`,b=`${e}/window/wallet.svg`,w=`${e}/window/billing.svg`,N=`${e}/window/customers.svg`,R=`${e}/window/payout.svg`,L=`${e}/window/protect.svg`,P=`${e}/window/tokens.svg`,O=`${e}/window/account.svg`,B=`${e}/window/businesses.svg`,D=`${e}/window/authentication.svg`,U=`${t}/reportsIcon.svg`,Mp=`${e}/window/tokensReports.svg`,kp=`${e}/window/brand.svg`,Gp=`${e}/window/entity.svg`,Wp=`${e}/window/bank.svg`,Fp=`${e}/window/individual.svg`,Hp=`${e}/window/password.svg`,Yp=`${e}/actionsIcon.svg`,Vp=`${e}/addItem.svg`,zp=`${e}/attachIcon.svg`,Kp=`${e}/CollapseArrows.svg`,Zp=`${e}/customerIcon.svg`,qp=`${e}/discountIcon.svg`,Qp=`${e}/emailIcon.svg`,Jp=`${e}/emailBlackIcon.svg`,Xp=`${e}/linkTiltedIcon.svg`,jp=`${e}/ExpandArrows.svg`,er=`${e}/feeIcon.svg`,tr=`${e}/minusIcon.svg`,or=`${e}/noteIcon.svg`,nr=`${e}/pdfGrayIcon.svg`,sr=`${e}/productLabel.svg`,cr=`${e}/quantityIcon.svg`,ar=`${e}/removeItem.svg`,pr=`${t}/removeItem2.svg`,rr=`${e}/smsIcon.svg`,xr=`${e}/taxIcon.svg`,ir=`${e}/totalAmountIcon.svg`,dr=`${e}/unfocusRemoveItem.svg`,lr=`${e}/whatsappIcon1.svg`,ur=`${e}/whiteArrow2.svg`,gr=`${e}/newInvoice.svg`,Ir=`${e}/activeActionIcon.svg`,vr=`${e}/grayProductLabel.svg`,hr=`${e}/plusQty.svg`,mr=`${t}/downArrow3.svg`,fr=`${e}/customer.svg`,Er=`${t}/note.svg`,$r=`${e}/blueNoteIcon.svg`,Ar=`${t}/attach.svg`,Tr=`${e}/lateFee.svg`,Sr=`${e}/addItemIcon.svg`,Cr=`${e}/blueCheckIcon.svg`,yr=`${t}/trash-bin.svg`,_r=`${e}/blueVerifyIcon.svg`,br=`${e}/verificationDarkBlue.svg`,wr=`${e}/grayVerifyIcon.svg`,Nr=`${e}/greenVerifyIcon.svg`,Rr=`${e}/redVerifyIcon.svg`,Lr=`${e}/closedVerifyIcon.svg`,Pr=`${e}/archivedVerifyIcon.svg`,Or=`${e}/penIcon.svg`,Br=`${t}/listShadow.svg`,Dr=`${e}/defaultCountryIcon.svg`,Ur=`${e}/defaultDeviceIcon.svg`,Mr=`${e}/biometric.svg`,kr=`${e}/3dsBlue.svg`,Gr=`${t}/createCharge.svg`,Wr=`${t}/successCheck.svg`,Fr=`${t}/receipt.svg`,Hr=`${t}/browserTimezone.svg`,Yr=`${t}/entityTimezone.svg`,Vr=`${t}/historyTimezone.svg`,zr=`${t}/smallBlueCheck.svg`,Kr=`${t}/fileDownloadBlue.svg`,Zr=`${t}/fileDownloadGrey.svg`,qr=`${e}/meta.svg`,Qr=`${e}/darkFilterIcon.svg`,Jr=`${e}/resize-icon.svg`,Xr=`${e}/home.svg`,jr=`${e}/lockIcon.svg`,ex=`${e}/Calendar.svg`,tx=`${e}/status-v2/autoCapturedNoBG.svg`,ox=`${e}/status-v2/autoVoidNoBG.svg`,nx=`${e}/status-v2/cancelledNoBG.svg`,sx=`${e}/status-v2/capturedNoBG.svg`,cx=`${e}/status-v2/declinedNoBG.svg`,ax=`${e}/status-v2/destinationsNoBG.svg`,px=`${e}/status-v2/failedNoBG.svg`,rx=`${e}/status-v2/gatewayOrange.svg`,xx=`${e}/status-v2/gatewayRedNoBG.svg`,ix=`${e}/status-v2/paidoutNoBG.svg`,dx=`${e}/status-v2/refundedIconNoBG2.svg`,lx=`${e}/status-v2/refundInitiatedNoBG.svg`,ux=`${e}/status-v2/refundSettledNoBG.svg`,gx=`${e}/status-v2/refundNotSettledNoBG.svg`,Ix=`${e}/status-v2/restrictedNoBG.svg`,vx=`${e}/status-v2/settledNoBG.svg`,hx=`${e}/status-v2/settlementInitiatedNoBG.svg`,mx=`${e}/status-v2/timeoutNoBG.svg`,fx=`${e}/status-v2/unavailableNoBG.svg`,Ex=`${e}/status-v2/unknownNoBG.svg`,$x=`${e}/status-v2/void.svg`,Ax=`${e}/status-v2/authorizeNoBG.svg`,Tx=`${e}/status-v2/initiatedNoBG.svg`,Sx=`${e}/websiteBlueIcon.svg`,Cx=`${e}/androidAppIcon.svg`,yx=`${e}/iOSAppIcon.svg`,_x=`${e}/physicalLocationIcon.svg`,bx=`${e}/socialLinksIcon.svg`,wx=`${e}/smallLeftArrow.svg`,Nx=`${e}/searchBlueIcon.svg`,Rx=`${t}/rightLightArrow.svg`,Lx=`${t}/segmentInstitution.svg`,Px=`${t}/segmentTechnology.svg`,Ox=`${t}/segmentDevelopmentHouse.svg`,M=`${t}/terminal.svg`,k=`${e}/window/terminal.svg`,Bx=`${e}/terminalCardPhone.svg`,Dx=`${e}/ToastPOS.svg`,Ux=`${e}/terminalTypeIcon.svg`,Mx=`${e}/terminalBrush.svg`,kx=`${e}/terminalBrushMuted.svg`,Gx=`${e}/navigationIcon.svg`,Wx=`${e}/babyBlueCheckIcon.svg`,Fx=`${e}/digitalReceiptIcon.svg`,Hx=`${e}/bankNoteIcon.svg`,Yx=`${e}/terminalDeviceFrame.svg`,Vx=`${e}/blackBrushIcon.svg`,zx=`${e}/mutedOutlinedCheckIcon.svg`,Kx=`${e}/outlinedPlatformIcon.svg`,Zx=`${e}/navigationPointerBlack.svg`,qx=`${e}/addIconWhite.svg`,Qx=`${e}/greyUpArrow.svg`,Jx=`${e}/greyDownArrow.svg`,Xx=`${e}/services/brandService.svg`,jx=`${e}/services/authorizationService.svg`,ei=`${e}/services/chargebacksService.svg`,ti=`${e}/services/chargesService.svg`,oi=`${e}/services/destinationsService.svg`,ni=`${e}/services/entityService.svg`,si=`${e}/services/invoiceService.svg`,ci=`${e}/services/payoutService.svg`,ai=`${e}/services/refundsService.svg`,pi=`${e}/services/usersService.svg`,ri=`${e}/services/walletService.svg`,xi=`${e}/services/intentsService.svg`,ii=`${e}/archievedOutlined.svg`,di=`${e}/closeOutlinedCircle.svg`,li=`${e}/dashedOutlinedCircle.svg`,ui=`${e}/deactivatedCircle.svg`,gi=`${e}/exclamationOutlinedCircle.svg`,Ii=`${e}/questionOutlinedCircle.svg`,vi=`${e}/outlinedCircle.svg`,hi=`${e}/greenCheck2ACE00.svg`,mi=`${e}/blueCopyIcon.svg`,fi=`${e}/blackLinkIcon.svg`,Ei=`${e}/blackSettingsIcon.svg`,$i=`${e}/blackWallet.svg`,Ai=`${e}/blueGradientBrushIcon.svg`,Ti=`${e}/gadientLink.svg`,Si=`${e}/gradientSettings.svg`,Ci=`${e}/gradientWallet.svg`,yi=`${e}/manyCurrencyCoin.svg`,_i=`${e}/manyCurrencyCoinGradient.svg`,bi=`${e}/blackMobileBatteryIcon.svg`,wi=`${e}/blackMobileSignalIcon.svg`,Ni=`${e}/emptyMobileWifiIcon.svg`,Ri=`${e}/deemaWithLabel.svg`,Li=`${e}/chargeBackWhiteIcon.svg`,Pi=`${e}/blackUnLinkIcon.svg`,Oi=`${e}/sortDescArrowIcon.svg`,Bi=`${e}/sortAscArrowIcon.svg`,Di=`${e}/closedOutlinedYellowCircle.svg`,Ui=`${e}/deactivatedOrangeCircle.svg`,Mi=`${e}/exclamationOutlinedOrangeCircle.svg`,ki=`${e}/activeGreenIcon.svg`,Gi=`${e}/activeGreenIcon.svg`,Wi=`${e}/inActiveGreyIcon.svg`,Fi=`${F}/terminal_link.mp4`,Hi=`${e}/bluePlusIcon.svg`,Yi=`${e}/blackSettingsVariant2Icon.svg`,Vi=`${e}/exclamationWhite.svg`,zi=`${t}/paymentTechnology.svg`,Ki=`${t}/paymentGatewayProvider.svg`,Zi=`${t}/paymentTechnologyV2.svg`,qi=`${t}/paymentTerminalProvider.svg`,Qi=`${t}/merchantServiceProvider.svg`,Ji=`${t}/paymentProcessor.svg`,Xi=`${t}/paymentScheme.svg`,ji=`${t}/paymentIssuer.svg`,ed=`${t}/paymentAcquirer.svg`,td=`${t}/paymentMethod.svg`,od=`${t}/paymentFacilitator.svg`,nd=`${t}/commercialRegulator.svg`,sd=`${t}/appPlatform.svg`,cd=`${t}/retailPlatform.svg`,ad=`${t}/commercePlatform.svg`,pd=`${t}/billingPlatform.svg`,rd=`${t}/authenticationGateway.svg`,xd=`${t}/retailer.svg`,id=`${t}/blueCircleWithWhiteCheck.svg`,dd=`${e}/externalLink.svg`;var hl=3,ld=88,ud=24;var n={view:{code:"VIEW"},sandbox:{code:"SANDBOX"},jsonApi:{code:"JSON API"},reports:{code:"REPORTS"}},G={updateEntity:{code:"UPDATE ENTITY"},updateBrand:{code:"UPDATE BRAND"},updateUsers:{code:"UPDATE USERS"},createUsers:{code:"CREATE USERS"},updateWallet:{code:"UPDATE_WALLET"}},o={tokens:{code:"TOKEN",services:{tokens:{code:"TOKENS",functions:{...n}}}},billing:{code:"BILLING",services:{invoices:{code:"INVOICES",functions:{...n,create:{code:"CREATE"},cancel:{code:"CANCEL"},reminder:{code:"REMINDER"},finalize:{code:"FINALIZE"},refund:{code:"REFUND"},createBulk:{code:"CREATE_BULK_INVOICES"},usersList:{code:"USER_LIST"}}}}},business:{code:"BUSINESS",services:{merchant:{code:"MERCHANT",functions:{...n,...G}},retailer:{code:"RETAILER",functions:{...n,...G}}}},acceptance:{code:"ACCEPTANCE",services:{insights:{code:"INSIGHTS",functions:{...n,performanceOverview:{code:"PERFORMANCE_OVERVIEW"},performanceActivity:{code:"PERFORMANCE_ACTIVITY"},performanceHeatmap:{code:"PERFORMANCE_HEATMAP"},chargeStatus:{code:"CHARGE_STATUS"},chargeAcceptanceRate:{code:"CHARGE_ACCEPTANCE_RATE"}}},intents:{code:"INTENTS",functions:{...n,flagBalance:{code:"FLAG BALANCE"},releaseBalance:{code:"RELEASE BALANCE"},charge:{code:"CHARGE"},flag:{code:"FLAG"},releaseFlag:{code:"RELEASE FLAG"},createCharge:{code:"CREATE_CHARGE"}}},authorization:{code:"AUTHORIZATIONS",functions:{...n,void:{code:"VOID"},charge:{code:"CHARGE"},flag:{code:"FLAG"},releaseFlag:{code:"RELEASE FLAG"}}},charges:{code:"CHARGES",functions:{...n,flagBalance:{code:"FLAG BALANCE"},releaseBalance:{code:"RELEASE BALANCE"},refund:{code:"REFUND"},charge:{code:"CHARGE"},flag:{code:"FLAG"},releaseFlag:{code:"RELEASE FLAG"},createCharge:{code:"CREATE_CHARGE"},viewReceipt:{code:"RECEIPT"}}},destinations:{code:"DESTINATIONS",functions:{...n,flag:{code:"FLAG"},releaseFlag:{code:"RELEASE FLAG"},releaseBalance:{code:"RELEASE BALANCE"},flagBalance:{code:"FLAG BALANCE"}}},topups:{code:"TOPUPS",functions:{...n,flag:{code:"FLAG"},releaseFlag:{code:"RELEASE FLAG"},releaseBalance:{code:"RELEASE BALANCE"},flagBalance:{code:"FLAG BALANCE"}}},refunds:{code:"REFUNDS",functions:{...n,flag:{code:"FLAG"},releaseFlag:{code:"RELEASE FLAG"},cancel:{code:"CANCEL"},viewReceipt:{code:"RECEIPT"}}},chargeback:{code:"CHARGEBACKS"},settlements:{code:"SETTLEMENTS",functions:{...n}},disputes:{code:"DISPUTES"}}},wallet:{code:"WALLET",services:{businesses:{code:"BUSINESS_WALLET",functions:{...n,statement:{code:"STATEMENT"},summary:{code:"SUMMARY"}}},retailers:{code:"RETAILER_WALLET",functions:{...n,statement:{code:"STATEMENT"},summary:{code:"SUMMARY"}}},customers:{code:"CUSTOMER_WALLET",functions:{...n,statement:{code:"STATEMENT"},summary:{code:"SUMMARY"}}},merchants:{code:"MERCHANT_WALLET",functions:{...n,statement:{code:"STATEMENT"},summary:{code:"SUMMARY"}}},paymentTechnology:{code:"PAYMENT_TECHNOLOGY_WALLET",functions:{...n,statement:{code:"STATEMENT"},summary:{code:"SUMMARY"}}},financialInstitution:{code:"FINANCIAL_INSTITUTION_WALLET",functions:{...n,statement:{code:"STATEMENT"},summary:{code:"SUMMARY"}}},retailCommerce:{code:"RETAIL_COMMERCE_WALLET",functions:{...n,statement:{code:"STATEMENT"},summary:{code:"SUMMARY"}}},app:{code:"APP_WALLET",functions:{...n,statement:{code:"STATEMENT"},summary:{code:"SUMMARY"}}},billing:{code:"BILLING_WALLET",functions:{...n,statement:{code:"STATEMENT"},summary:{code:"SUMMARY"}}},onlineCommerce:{code:"ONLINE_COMMERCE_WALLET",functions:{...n,statement:{code:"STATEMENT"},summary:{code:"SUMMARY"}}},paymentFacilitator:{code:"PAYMENT_FACILITATOR_WALLET",functions:{...n,statement:{code:"STATEMENT"},summary:{code:"SUMMARY"}}},development:{code:"DEVELOPMENT_WALLET",functions:{...n,statement:{code:"STATEMENT"},summary:{code:"SUMMARY"}}}}},payouts:{code:"PAYOUT",services:{payouts:{code:"PAYOUTS",functions:{...n,bulkReports:{code:"BULK_REPORTS"},flag:{code:"FLAG"}}},reversePayout:{code:"REVERSEPAYOUT"},retailerPayout:{code:"RETAILER_PAYOUTS"},merchantPayout:{code:"MERCHANT_PAYOUTS"}}},protect:{code:"PROTECT",services:{authorizationsFlags:{code:"AUTHORIZE",functions:{...n,releaseFlag:{code:"RELEASE FLAG"}}},chargesFlags:{code:"CHARGE",functions:{...n,releaseFlag:{code:"RELEASE FLAG"}}}}},authentication:{code:"AUTHENTICATION",services:{authentication:{code:"AUTHENTICATION",functions:{...n}}}},customers:{code:"CUSTOMER"},businesses:{code:"BUSINESS",services:{businesses:{code:"BUSINESSES"}}},reports:{code:"REPORTS",services:{reports:{code:"REPORTS"}}},account:{code:"ACCOUNT",services:{account:{code:"ACCOUNT"},users:{code:"USERS",functions:{list:{code:"LIST"},create:{code:"CREATE"},update:{code:"UPDATE"}}},operators:{code:"OPERATORS",functions:{list:{code:"LIST"},copy:{code:"COPY"}}},entity:{code:"ENTITY",functions:{view:{code:"VIEW"},update:{code:"UPDATE"}}},brands:{code:"BRAND",functions:{view:{code:"VIEW"},update:{code:"UPDATE"}}},walletSettings:{code:"WALLET_SETTINGS",functions:{view:{code:"VIEW"},update:{code:"UPDATE"}}}}},order:{code:"ORDER",services:{orders:{code:"ORDERS",functions:{...n,flag:{code:"FLAG"},releaseFlag:{code:"RELEASE FLAG"}}}}},leads:{code:"LEAD",services:{leads:{code:"LEADS",functions:{...n,account:{code:"ACCOUNT"},lead:{code:"LEAD"},create:{code:"CREATE"},update:{code:"UPDATE"},close:{code:"CLOSE"},convert:{code:"CONVERT"},connect:{code:"CONNECT"}}}}},terminals:{code:"TERMINALS",services:{create:{code:"CREATE"},view:{code:"VIEW"},update:{code:"UPDATE"},deactivate:{code:"DEACTIVATE"}}},slaProcess:{code:"SLA_PROCESS"}},gd={general:{height:`calc(100vh - ${Number(88)+Number(24)}px)`,minWidth:780,maxWidth:1200,minHeight:"50vh",maxHeight:"100vh"},[o.reports.code]:{width:700,minWidth:700,maxWidth:"unset",maxHeight:"unset",height:652},[o.billing.code]:{minWidth:856}},Id=[{code:o.tokens.code,iconUrl:I,toolbarIconUrl:P},{code:o.billing.code,iconUrl:r,toolbarIconUrl:w},{code:o.acceptance.code,iconUrl:x,toolbarIconUrl:_},{code:o.wallet.code,iconUrl:d,toolbarIconUrl:b},{code:o.payouts.code,iconUrl:l,toolbarIconUrl:R},{code:o.protect.code,iconUrl:v,toolbarIconUrl:L},{code:o.authentication.code,iconUrl:i,toolbarIconUrl:D},{code:o.customers.code,iconUrl:h,toolbarIconUrl:N},{code:o.businesses.code,iconUrl:m,toolbarIconUrl:B},{code:o.reports.code,iconUrl:E,toolbarIconUrl:U},{code:o.account.code,iconUrl:f,toolbarIconUrl:O},{code:o.order.code,iconUrl:T,toolbarIconUrl:S},{code:o.leads.code,iconUrl:$,toolbarIconUrl:A},{code:o.terminals.code,iconUrl:M,toolbarIconUrl:k},{code:o.slaProcess.code,iconUrl:C,toolbarIconUrl:y}],vd=["login"];var hd=window.__GLOBAL_CONFIG__??{},H=hd.MW_BASE_URL??import.meta.env.VITE_BASE_URL,md=`${H}/api`,fd=import.meta.env.VITE_ENV,Ed=import.meta.env.VITE_TEST_FIXED_SK;var $d=["FAILED","DECLINED","RESTRICTED","TIMEDOUT","UNKNOWN","INITIATED","CANCELLED","ABANDONED"];var Ad={intents:{color:"#1F88D0",border:"0.75px solid #E9F3FA",background:"#FFF"},authorization:{color:"#1F88D0",border:"0.75px solid #E9F3FA",background:"#FFF"},charges:{color:"#1F88D0",background:"rgba(31, 136, 208, 0.10)"},destinations:{color:"#1F88D0",background:"rgba(31, 136, 208, 0.10)"},topups:{color:"#8D8D94",background:"rgba(141, 141, 148, 0.10)"},refunds:{color:"#4E1FD0",background:"rgba(78, 31, 208, 0.10)"},chargebacks:{color:"#F00",background:"rgba(255, 0, 0, 0.10)"},settlements:{color:"#2ACE00",background:"rgba(42, 206, 0, 0.10)"},disputes:{color:"#1F88D0",border:"0.75px solid #E9F3FA",background:"#FFF"},payouts:{color:"#1F88D0",background:"rgba(31, 136, 208, 0.10)"},statement:{color:"#2ACE00",background:"rgba(42, 206, 0, 0.10)"},invoices:{color:"#FF4D00",background:"rgba(255, 77, 0, 0.10)"}};var Sl=50,Td={AuthorizationsList:{limit:50},ChargesList:{limit:50},DestinationsList:{limit:50,destinationsLimit:20},IntentsList:{limit:50},RefundsList:{limit:50},SettlementsList:{limit:50},TopupsList:{limit:50},AuthenticationsList:{limit:25},InvoicesList:{limit:50},LeadsList:{limit:50,page_no:1},OrdersList:{limit:50},PayoutsList:{limit:50},TokensList:{limit:50},WalletsList:{limit:50,page:1},brands:{limit:50},MerchantsList:{limit:50},TerminalDevices:{limit:50}};var Sd={id:{default:"180px",text:"180px",sheet:"180px"},merchant:{default:"115px",text:"150px",sheet:"138px"},brand:{default:"125px",text:"116px",sheet:"116px"},payouts:{default:"150px",text:"250px",sheet:"250px"},reference:{default:"90px",text:"250px",sheet:"250px"},provider:{default:"102px",text:"102px",sheet:"102px"},purpose:{default:"126px",text:"126px",sheet:"126px"},customer:{default:"180px",text:"180px",sheet:"180px"},device:{default:"150px",text:"250px",sheet:"250px"},source:{default:"94px",text:"125px",sheet:"125px"},authenticate:{default:"18px",text:"250px",sheet:"250px"},payment_agreement:{default:"50px",text:"250px",sheet:"165px"},amount:{default:"175px",text:"175px",sheet:"175px"},status:{default:"86px",text:"250px",sheet:"250px"},authentication_id:{default:"260px",text:"320px",sheet:"320px"},charge_id:{default:"245px",text:"290px",sheet:"290px"},actions:{default:"100px",text:"100px",sheet:"100px"},date:{default:"150px",text:"170px",sheet:"130px"},channel:{default:"100px",text:"100px",sheet:"100px"},payment_issuers:{default:"150px",text:"150px",sheet:"430px"},payment_type:{default:"150px",text:"150px",sheet:"120px"},payment_method:{default:"150px",text:"150px",sheet:"145px"},payment_scheme:{default:"150px",text:"150px",sheet:"145px"},auth_status:{default:"150px",text:"150px",sheet:"165px"},auth_type:{default:"150px",text:"150px",sheet:"155px"},eci:{default:"150px",text:"150px",sheet:"72px"}};var Cd={charge_id:{default:"240px",text:"240px",sheet:"240px"},id:{default:"205px",text:"225px",sheet:"250px"},auto:{default:"70px",text:"90px",sheet:"90px"},balance:{default:"60px",text:"60px",sheet:"150px"},product:{default:"85px",text:"85px",sheet:"85px"},date:{default:"150px",text:"170px",sheet:"130px"},order:{default:"80px",text:"80px",sheet:"80px"},customer:{default:"140px",text:"180px",sheet:"600px"},customer_id:{default:"180px",text:"180px",sheet:"270px"},customer_name:{default:"180px",text:"180px",sheet:"155px"},customer_email:{default:"180px",text:"180px",sheet:"200px"},customer_phone:{default:"180px",text:"180px",sheet:"150px"},reference:{default:"95px",text:"180px",sheet:"180px"},source:{default:"70px",text:"125px",sheet:"125px"},authenticate:{default:"55px",text:"250px",sheet:"250px"},payment_agreement:{default:"50px",text:"150px",sheet:"230px"},amount:{default:"130px",text:"195px",sheet:"150px"},destinations:{default:"70px",text:"240px",sheet:"240px"},topup:{default:"20px",text:"95px",sheet:"95px"},status:{default:"70px",text:"100px",sheet:"300px"},merchant:{default:"115px",text:"150px",sheet:"138px"},charge:{default:"150px",text:"150px",sheet:"150px"},track:{default:"220px",text:"220px",sheet:"220px"},payment:{default:"150px",text:"150px",sheet:"150px"},receipt:{default:"85px",text:"150px",sheet:"150px"},fees:{default:"150px",text:"150px",sheet:"150px"},metadata:{default:"185px",text:"185px",sheet:"250px"},settlement:{default:"200px",text:"200px",sheet:"200px"},gateway:{default:"180px",text:"180px",sheet:"180px"},actions:{default:"80px",text:"100px",sheet:"100px"},payment_id:{default:"150px",text:"150px",sheet:"150px"},auth_code:{default:"80px",text:"80px",sheet:"80px"},rrn:{default:"100px",text:"100px",sheet:"100px"},transaction_id:{default:"120px",text:"120px",sheet:"315px"},device:{default:"60px",text:"190px",sheet:"235px"},card_no:{default:"120px",text:"120px",sheet:"140px"},name_on_card:{default:"120px",text:"120px",sheet:"270px"},brand:{default:"125px",text:"116px",sheet:"116px"},payment_initiated:{default:"150px",text:"150px",sheet:"150px"},payment_issuers:{default:"150px",text:"150px",sheet:"430px"},issuer_response:{default:"70px",text:"70px",sheet:"270px"},card_number:{default:"120px",text:"120px",sheet:"155px"},payment_type:{default:"150px",text:"150px",sheet:"120px"},payment_method:{default:"150px",text:"150px",sheet:"145px"},payment_scheme:{default:"150px",text:"150px",sheet:"145px"},auth_status:{default:"150px",text:"150px",sheet:"165px"},auth_type:{default:"150px",text:"150px",sheet:"155px"},eci:{default:"150px",text:"150px",sheet:"72px"},acquirer_response:{default:"70px",text:"70px",sheet:"253px"}};var yd={code:{default:"90px",text:"90px",sheet:"90px"},message:{default:"160px",text:"160px",sheet:"160px"},id:{default:"205px",text:"225px",sheet:"250px"},product:{default:"85px",text:"85px",sheet:"85px"},date:{default:"150px",text:"170px",sheet:"130px"},reference:{default:"95px",text:"180px",sheet:"250px"},auth_code_reference:{default:"155px",text:"180px",sheet:"250px"},order:{default:"80px",text:"80px",sheet:"80px"},customer:{default:"140px",text:"180px",sheet:"600px"},customer_id:{default:"180px",text:"180px",sheet:"270px"},customer_name:{default:"180px",text:"180px",sheet:"155px"},customer_email:{default:"180px",text:"180px",sheet:"200px"},customer_phone:{default:"180px",text:"180px",sheet:"150px"},source:{default:"70px",text:"125px",sheet:"1250px"},authenticate:{default:"55px",text:"250px",sheet:"250px"},payment_agreement:{default:"50px",text:"150px",sheet:"165px"},payment_initiated:{default:"150px",text:"150px",sheet:"150px"},payment_issuers:{default:"150px",text:"150px",sheet:"430px"},payment_method:{default:"150px",text:"150px",sheet:"145px"},payment_type:{default:"150px",text:"150px",sheet:"120px"},payment_scheme:{default:"150px",text:"150px",sheet:"145px"},auth_status:{default:"150px",text:"150px",sheet:"165px"},auth_type:{default:"150px",text:"150px",sheet:"155px"},eci:{default:"150px",text:"150px",sheet:"72px"},amount:{default:"174px",text:"195px",sheet:"550px"},destinations:{default:"90px",text:"240px",sheet:"340px"},topup:{default:"20px",text:"95px",sheet:"95px"},status:{default:"70px",text:"300px",sheet:"170px"},issuer_response:{default:"70px",text:"70px",sheet:"270px"},acquirer_response:{default:"70px",text:"70px",sheet:"253px"},payout_status:{default:"70px",text:"70px",sheet:"130px"},merchant:{default:"115px",text:"150px",sheet:"138px"},charge:{default:"150px",text:"150px",sheet:"150px"},track:{default:"220px",text:"220px",sheet:"220px"},payment:{default:"150px",text:"150px",sheet:"150px"},receipt:{default:"85px",text:"150px",sheet:"165px"},fees:{default:"150px",text:"150px",sheet:"170px"},invoice_reference:{default:"185px",text:"180px",sheet:"275px"},settlement:{default:"200px",text:"200px",sheet:"200px"},gateway:{default:"130px",text:"130px",sheet:"130px"},actions:{default:"100px",text:"100px",sheet:"85px"},payment_id:{default:"150px",text:"150px",sheet:"150px"},card_number:{default:"120px",text:"120px",sheet:"155px"},name_on_card:{default:"120px",text:"120px",sheet:"270px"},auth_code:{default:"80px",text:"80px",sheet:"100px"},rrn:{default:"100px",text:"100px",sheet:"105px"},device:{default:"70px",text:"190px",sheet:"235px"},card_no:{default:"120px",text:"120px",sheet:"200px"},meta:{default:"80px",text:"52px",sheet:"275px"},action_icon:{default:"30px",text:"30px",sheet:"30px"},consolidated_amount:{default:"180px",text:"180px",sheet:"150px"},customer_amount:{default:"150px",text:"150px",sheet:"150px"},charge_amount:{default:"150px",text:"150px",sheet:"150px"},settlement_amount:{default:"150px",text:"150px",sheet:"150px"},acquirer_ref:{default:"125px",text:"125px",sheet:"145px"},order_ref:{default:"200px",text:"200px",sheet:"220px"},payment_ref:{default:"150px",text:"150px",sheet:"170px"},generic_ref:{default:"125px",text:"125px",sheet:"145px"},brand:{default:"125px",text:"116px",sheet:"116px"}};var _d={id:{default:"205px",text:"225px",sheet:"225px"},reference_order:{default:"255px",text:"255px",sheet:"255px"},created:{default:"150px",text:"170px",sheet:"130px"},receipt:{default:"85px",text:"150px",sheet:"165px"},reference:{default:"95px",text:"180px",sheet:"180px"},charge_order:{default:"150px",text:"250px",sheet:"250px"},customer:{default:"140px",text:"180px",sheet:"600px"},customer_id:{default:"180px",text:"180px",sheet:"270px"},customer_name:{default:"180px",text:"180px",sheet:"155px"},customer_email:{default:"180px",text:"180px",sheet:"200px"},customer_phone:{default:"180px",text:"180px",sheet:"150px"},chargeId:{default:"225px",text:"225px",sheet:"225px"},chargeDate:{default:"150px",text:"150px",sheet:"150px"},device:{default:"150px",text:"250px",sheet:"235px"},source:{default:"70px",text:"125px",sheet:"125px"},authenticate:{default:"18px",text:"250px",sheet:"250px"},payment_agreement:{default:"50px",text:"250px",sheet:"165px"},amount:{default:"130px",text:"195px",sheet:"150px"},status:{default:"51px",text:"100px",sheet:"100px"},chargeStatus:{default:"150px",text:"250px",sheet:"250px"},merchant:{default:"118px",text:"150px",sheet:"138px"},actions:{default:"100px",text:"100px",sheet:"85px"},destination:{default:"100px",text:"100px",sheet:"100px"},retailer:{default:"100px",text:"100px",sheet:"100px"},payout:{default:"180px",text:"180px",sheet:"180px"},brand:{default:"125px",text:"116px",sheet:"116px"},payment_initiated:{default:"150px",text:"150px",sheet:"150px"},payment_issuers:{default:"150px",text:"150px",sheet:"430px"},card_number:{default:"120px",text:"120px",sheet:"155px"},card_no:{default:"120px",text:"120px",sheet:"200px"},name_on_card:{default:"120px",text:"120px",sheet:"270px"},payment_type:{default:"150px",text:"150px",sheet:"120px"},payment_method:{default:"150px",text:"150px",sheet:"145px"},payment_scheme:{default:"150px",text:"150px",sheet:"145px"},auth_status:{default:"150px",text:"150px",sheet:"165px"},auth_type:{default:"150px",text:"150px",sheet:"155px"},eci:{default:"150px",text:"150px",sheet:"72px"},payout_status:{default:"120px",text:"120px",sheet:"120px"},reference_transfer:{default:"350px",text:"350px",sheet:"350px"}};var bd={created:{default:"170px",text:"170px",sheet:"170px"},reference:{default:"150px",text:"250px",sheet:"250px"},customer:{default:"180px",text:"180px",sheet:"180px"},amount:{default:"195px",text:"250px",sheet:"250px"},status:{default:"150px",text:"250px",sheet:"250px"},actions:{default:"100px",text:"100px",sheet:"100px"}};var wd={id:{default:"180px",text:"180px",sheet:"180px"},link:{default:"145px",text:"145px",sheet:"350px"},date:{default:"150px",text:"150px",sheet:"130px"},order:{default:"80px",text:"80px",sheet:"260px"},customer:{default:"180px",text:"180px",sheet:"180px"},customer_id:{default:"180px",text:"180px",sheet:"270px"},customer_name:{default:"180px",text:"180px",sheet:"155px"},customer_phone:{default:"180px",text:"180px",sheet:"150px"},merchant:{default:"180px",text:"180px",sheet:"92px"},amount:{default:"195px",text:"195px",sheet:"150px"},channel:{default:"90px",text:"90px",sheet:"156px"},due:{default:"92px",text:"340px",sheet:"108px"},status:{default:"90px",text:"170px",sheet:"170px"},actions:{default:"100px",text:"100px",sheet:"100px"},paymentMethod:{default:"110px",text:"130px",sheet:"122px"},cardNo:{default:"130px",text:"130px",sheet:"130px"},chargeId:{default:"225px",text:"225px",sheet:"230px"},receiptId:{default:"180px",text:"180px",sheet:"180px"},reference_no:{default:"225px",text:"225px",sheet:"225px"},invoice_number:{default:"160px",text:"160px",sheet:"160px"},auth_code:{default:"80px",text:"80px",sheet:"80px"}};var Nd={id:{default:"180px",text:"180px",sheet:"180px"},payouts:{default:"150px",text:"250px",sheet:"250px"},customer:{default:"180px",text:"180px",sheet:"180px"},brand:{default:"150px",text:"250px",sheet:"250px"},source:{default:"70px",text:"125px",sheet:"125px"},status:{default:"150px",text:"250px",sheet:"250px"},actions:{default:"100px",text:"100px",sheet:"100px"}};var Rd={id:{default:"180px",text:"180px",sheet:"180px"},payouts:{default:"150px",text:"250px",sheet:"250px"},reference:{default:"150px",text:"250px",sheet:"250px"},customer:{default:"180px",text:"180px",sheet:"180px"},authenticate:{default:"150px",text:"250px",sheet:"250px"},payment_agreement:{default:"50px",text:"250px",sheet:"250px"},amount:{default:"195px",text:"195px",sheet:"195px"},destinations:{default:"70px",text:"240px",sheet:"240px"},topup:{default:"20px",text:"95px",sheet:"95px"},status:{default:"150px",text:"250px",sheet:"250px"},actions:{default:"100px",text:"100px",sheet:"100px"}};var Ld={id:{default:"225px",text:"225px",sheet:"225px"},date:{default:"150px",text:"150px",sheet:"150px"},wallet:{default:"150px",text:"250px",sheet:"250px"},bankAccount:{default:"240px",text:"250px",sheet:"250px"},amount:{default:"210px",text:"210px",sheet:"210px"},status:{default:"51px",text:"250px",sheet:"250px"},report:{default:"56px",text:"100px",sheet:"100px"},actions:{default:"100px",text:"100px",sheet:"100px"},referenceId:{default:"72px",text:"140px",sheet:"100px"},currency:{default:"80px",text:"80px",sheet:"80px"},beneficiary_name:{default:"180px",text:"180px",sheet:"180px"}};var Pd={id:{default:"180px",text:"180px",sheet:"180px"},payouts:{default:"150px",text:"250px",sheet:"250px"},reference:{default:"150px",text:"250px",sheet:"250px"},customer:{default:"180px",text:"180px",sheet:"180px"},device:{default:"150px",text:"250px",sheet:"250px"},source:{default:"70px",text:"125px",sheet:"125px"},authenticate:{default:"18px",text:"250px",sheet:"250px"},payment_agreement:{default:"50px",text:"250px",sheet:"250px"},amount:{default:"195px",text:"195px",sheet:"195px"},topup:{default:"20px",text:"95px",sheet:"95px"},status:{default:"150px",text:"250px",sheet:"250px"},auto:{default:"150px",text:"250px",sheet:"250px"},balance:{default:"50px",text:"250px",sheet:"250px"},actions:{default:"100px",text:"100px",sheet:"100px"}};var Od={id:{default:"180px",text:"180px",sheet:"180px"},payouts:{default:"150px",text:"250px",sheet:"250px"},reference:{default:"150px",text:"250px",sheet:"250px"},customer:{default:"180px",text:"180px",sheet:"180px"},device:{default:"150px",text:"250px",sheet:"250px"},source:{default:"70px",text:"125px",sheet:"125px"},authenticate:{default:"18px",text:"250px",sheet:"250px"},payment_agreement:{default:"50px",text:"250px",sheet:"250px"},amount:{default:"195px",text:"195px",sheet:"195px"},destinations:{default:"70px",text:"240px",sheet:"240px"},topup:{default:"20px",text:"95px",sheet:"95px"},status:{default:"150px",text:"250px",sheet:"250px"},actions:{default:"100px",text:"100px",sheet:"100px"}};var Bd={charge_id:{default:"240px",text:"240px",sheet:"240px"},id:{default:"205px",text:"225px",sheet:"250px"},date:{default:"150px",text:"170px",sheet:"130px"},order:{default:"80px",text:"80px",sheet:"80px"},product:{default:"85px",text:"85px",sheet:"85px"},customer:{default:"140px",text:"180px",sheet:"600px"},customer_id:{default:"180px",text:"180px",sheet:"270px"},customer_name:{default:"180px",text:"180px",sheet:"155px"},customer_email:{default:"180px",text:"180px",sheet:"200px"},customer_phone:{default:"180px",text:"180px",sheet:"150px"},device:{default:"100px",text:"200px",sheet:"235px"},source:{default:"70px",text:"125px",sheet:"125px"},authenticate:{default:"18px",text:"200px",sheet:"200px"},payment_agreement:{default:"50px",text:"200px",sheet:"165px"},payment_initiated:{default:"150px",text:"150px",sheet:"150px"},payment_issuers:{default:"150px",text:"150px",sheet:"430px"},payment_method:{default:"150px",text:"150px",sheet:"145px"},payment_type:{default:"150px",text:"150px",sheet:"120px"},payment_scheme:{default:"150px",text:"150px",sheet:"145px"},auth_status:{default:"150px",text:"150px",sheet:"165px"},auth_type:{default:"150px",text:"150px",sheet:"155px"},eci:{default:"150px",text:"150px",sheet:"72px"},amount:{default:"130px",text:"195px",sheet:"150px"},payouts:{default:"195px",text:"195px",sheet:"300px"},reason:{default:"170px",text:"240px",sheet:"160px"},destinations:{default:"70px",text:"240px",sheet:"340px"},balance:{default:"120px",text:"150px",sheet:"150px"},status:{default:"100px",text:"100px",sheet:"170px"},merchant:{default:"115px",text:"150px",sheet:"138px"},reference:{default:"95px",text:"180px",sheet:"250px"},fees:{default:"100px",text:"200px",sheet:"200px"},metadata:{default:"185px",text:"180px",sheet:"180px"},settlement:{default:"200px",text:"200px",sheet:"200px"},gateway:{default:"180px",text:"180px",sheet:"180px"},actions:{default:"100px",text:"100px",sheet:"85px"},payment_id:{default:"150px",text:"150px",sheet:"150px"},auth_code:{default:"80px",text:"80px",sheet:"80px"},rrn:{default:"100px",text:"100px",sheet:"100px"},receipt_id:{default:"100px",text:"150px",sheet:"150px"},card_no:{default:"120px",text:"120px",sheet:"200px"},card_number:{default:"120px",text:"120px",sheet:"155px"},name_on_card:{default:"120px",text:"120px",sheet:"270px"},meta:{default:"52px",text:"52px",sheet:"52px"},charge_meta:{default:"100px",text:"100px",sheet:"250px"},brand:{default:"125px",text:"116px",sheet:"116px"},issuer_response:{default:"70px",text:"70px",sheet:"270px"},acquirer_response:{default:"70px",text:"70px",sheet:"253px"}};var Dd={id:{default:"180px",text:"180px",sheet:"180px"},payouts:{default:"150px",text:"250px",sheet:"250px"},reference:{default:"150px",text:"250px",sheet:"250px"},customer:{default:"180px",text:"180px",sheet:"100px"},device:{default:"150px",text:"250px",sheet:"250px"},source:{default:"70px",text:"125px",sheet:"125px"},purpose:{default:"150px",text:"250px",sheet:"250px"},status:{default:"150px",text:"250px",sheet:"250px"},actions:{default:"100px",text:"100px",sheet:"100px"}};var Ud={id:{default:"180px",text:"180px",sheet:"180px"},created:{default:"170px",text:"170px",sheet:"170px"},charge_order:{default:"150px",text:"250px",sheet:"250px"},customer:{default:"180px",text:"180px",sheet:"180px"},device:{default:"150px",text:"250px",sheet:"250px"},amount:{default:"195px",text:"195px",sheet:"195px"},source:{default:"94px",text:"125px",sheet:"125px"},authenticate:{default:"18px",text:"250px",sheet:"250px"},payment_agreement:{default:"50px",text:"250px",sheet:"250px"},status:{default:"150px",text:"250px",sheet:"250px"},actions:{default:"100px",text:"100px",sheet:"100px"}};var Md={id:{default:"180px",text:"180px",sheet:"180px"},type:{default:"150px",text:"250px",sheet:"250px"},wallet:{default:"150px",text:"250px",sheet:"250px"},source:{default:"92px",text:"125px",sheet:"125px"},amount:{default:"195px",text:"195px",sheet:"195px"},actions:{default:"100px",text:"100px",sheet:"100px"}};var kd={id:{default:"180px",text:"180px",sheet:"180px"},amount:{default:"220px",text:"220px",sheet:"220px"},actions:{default:"70px",text:"70px",sheet:"70px"},date:{default:"130px",text:"130px",sheet:"130px"},description:{default:"210px",text:"210px",sheet:"210px"},transactions:{default:"90px",text:"90px",sheet:"90px"}};var Gd={id:{default:"225px",text:"225px",sheet:"225px"},postdate:{default:"170px",text:"170px",sheet:"170px"},date:{default:"110px",text:"110px",sheet:"110px"},description:{default:"210px",text:"210px",sheet:"210px"},receipt:{default:"80px",text:"150px",sheet:"150px"},authenticate:{default:"70px",text:"100px",sheet:"100px"},debit:{default:"400px",text:"400px",sheet:"400px"},source:{default:"75px",text:"125px",sheet:"125px"},actions:{default:"100px",text:"100px",sheet:"100px"},amount:{default:"195px",text:"195px",sheet:"195px"},reference:{default:"95px",text:"110px",sheet:"110px"},card:{default:"120px",text:"120px",sheet:"120px"}};var Wd={id:{default:"225px",text:"225px",sheet:"220px"},lead_id:{default:"180px",text:"180px",sheet:"220px"},merchant_id:{default:"180px",text:"180px",sheet:"220px"},brand_id:{default:"180px",text:"180px",sheet:"220px"},individual_email:{default:"180px",text:"180px",sheet:"250px"},personal_id_type:{default:"180px",text:"180px",sheet:"220px"},wallet_currency:{default:"120px",text:"180px",sheet:"140px"},tax_number:{default:"180px",text:"180px",sheet:"140px"},wallet_id:{default:"180px",text:"180px",sheet:"220px"},business_id:{default:"180px",text:"180px",sheet:"220px"},board_id:{default:"180px",text:"180px",sheet:"220px"},history:{default:"180px",text:"180px",sheet:"130px"},bank_account:{default:"120px",text:"180px",sheet:"110px"},individual_phone_number:{default:"180px",text:"180px",sheet:"190px"},entity_legal_name:{default:"180px",text:"180px",sheet:"250px"},entity_id:{default:"180px",text:"180px",sheet:"220px"},entity:{default:"146px",text:"180px",sheet:"250px"},created:{default:"160px",text:"170px",sheet:"170px"},brands:{default:"140px",text:"140px",sheet:"250px"},marketplace:{default:"110px",text:"110px",sheet:"104px"},individuals:{default:"136px",text:"185px",sheet:"203px"},segments:{default:"70px",text:"180px",sheet:"180px"},psp:{default:"77px",text:"180px",sheet:"180px"},status:{default:"86px",text:"100px",sheet:"172px"},partners:{default:"97px",text:"100px",sheet:"100px"},actions:{default:"100px",text:"100px",sheet:"70px"},avatar:{default:"40px",text:"40px",sheet:"40px"},user_name:{default:"150px",text:"180px",sheet:"180px"},channels:{default:"102px",text:"120px",sheet:"440px"},merchant:{default:"160px",text:"180px",sheet:"169px"}};var Fd={device:{default:"120px",text:"120px",sheet:"120px"},terminalId:{default:"100px",text:"100px",sheet:"100px"},merchantId:{default:"120px",text:"120px",sheet:"120px"},type:{default:"80px",text:"80px",sheet:"80px"},platform:{default:"100px",text:"100px",sheet:"100px"},branding:{default:"80px",text:"80px",sheet:"80px"},features:{default:"100px",text:"100px",sheet:"100px"},acceptance:{default:"80px",text:"80px",sheet:"80px"},brand:{default:"80px",text:"80px",sheet:"80px"},address:{default:"160px",text:"160px",sheet:"160px"},status:{default:"80px",text:"80px",sheet:"80px"},actions:{default:"80px",text:"80px",sheet:"80px"},charges:{default:"180px",text:"180px",sheet:"180px"},chargesTransactions:{default:"70px",text:"70px",sheet:"70px"}};var Y={AE:"UTC +04:00",SA:"UTC +03:00",KW:"UTC +03:00",OM:"UTC +04:00",YM:"UTC +03:00",EG:"UTC +03:00",BH:"UTC +03:00",JO:"UTC +03:00",LB:"UTC +03:00",QA:"UTC +03:00",GB:"UTC +01:00",IE:"UTC +01:00",FR:"UTC +02:00",NL:"UTC +02:00",DE:"UTC +02:00",ES:"UTC +02:00",IT:"UTC +02:00",PK:"UTC +05:00",IN:"UTC +05:00",SG:"UTC +08:00",US:"UTC -05:00",UTC:"UTC +00:00"},Hd=Y.UTC,Yd=[{countryCode:"SA",label:"(GMT:+0300) Saudi Arabia",timezone:"Asia/Riyadh",offset:3},{countryCode:"BH",label:"(GMT:+0300) Bahrain",timezone:"Asia/Bahrain",offset:3},{countryCode:"EG",label:"(GMT:+0300) Egypt",timezone:"Africa/Cairo",offset:3},{countryCode:"LB",label:"(GMT:+0200) Lebanon",timezone:"Asia/Beirut",offset:2},{countryCode:"JO",label:"(GMT:+0300) Jordan",timezone:"Asia/Amman",offset:3},{countryCode:"KW",label:"(GMT:+0300) Kuwait",timezone:"Asia/Kuwait",offset:3},{countryCode:"OM",label:"(GMT:+0400) Oman",timezone:"Asia/Muscat",offset:4},{countryCode:"QA",label:"(GMT:+0300) Qatar",timezone:"Asia/Qatar",offset:3},{countryCode:"AE",label:"(GMT:+0400) United Arab Emirates",timezone:"Asia/Dubai",offset:4},{countryCode:"GB",label:"(GMT:+0000) United Kingdom",timezone:"Europe/London",offset:0},{countryCode:"IE",label:"(GMT:+0000) Ireland",timezone:"Europe/Dublin",offset:0},{countryCode:"FR",label:"(GMT:+0100) France",timezone:" Europe/Paris",offset:1},{countryCode:"NL",label:"(GMT:+0100) Netherlands",timezone:"Europe/Amsterdam",offset:1},{countryCode:"DE",label:"(GMT:+0100) Germany",timezone:"Europe/Berlin",offset:1},{countryCode:"IT",label:"(GMT:+0100) Italy",timezone:"Europe/Rome",offset:1},{countryCode:"ES",label:"(GMT:+0100) Spain",timezone:"Europe/Madrid",offset:1},{countryCode:"PK",label:"(GMT:+0500) Pakistan",timezone:"Asia/Karachi",offset:5},{countryCode:"IN",label:"(GMT:-0500) India",timezone:"America/Indiana/Indianapolis",offset:-5},{countryCode:"SG",label:"(GMT:+0800) Singapore",timezone:"Asia/Singapore",offset:8},{countryCode:"US",label:"(GMT:-0500) Eastern Time (US & Canada)",timezone:"America/New_York",offset:-5}];var Vd={SAR:{decimals:2,country:"SA"},BHD:{decimals:3,country:"BH"},EGP:{decimals:2,country:"EG"},JOD:{decimals:3,country:"JO"},KWD:{decimals:3,country:"KW"},LBP:{decimals:2,country:"LB"},OMR:{decimals:3,country:"OM"},AED:{decimals:2,country:"AE"},PKR:{decimals:2,country:"PK"},INR:{decimals:2,country:"IN"},SGD:{decimals:2,country:"SG"},USD:{decimals:2,country:"US"},GBP:{decimals:2,country:"GB"},EUR:{decimals:2,country:"GR"},QAR:{decimals:2,country:"QA"}},zd=["SAR","KWD","OMR","EGP","BHD","USD","AED","QAR","PKR","JOD","EUR","INR","GBP"],Kd={regional:["SAR","KWD","OMR","EGP","BHD","AED","QAR","JOD"],global:["USD","GBP","EUR","PKR","INR"]};var Kl=52,Zl=70,ql=57,Ql=200,Jl=5,Xl=40,jl=20,eu=28;var Zd={COUNT:"count",AMOUNT:"amount"},qd={count:"transaction",amount:"amount"};var p={DEVICE:`${e}/device.svg`,CARD:`${e}/payment-method/card.svg`,PASS_THRU_WALLET:`${e}/passThruWallet.svg`,EXPRESS_CHECKOUT:`${e}/express_checkout.svg`,STORED_VALUE_WALLET:`${e}/storedValueWallet.svg`,CASH_WALLET:`${e}/cash.svg`,BUY_NOW_PAY_LATER:`${e}/buyNowPayLater.svg`},Qd=[{name:"CARD",label:"Card",icon:p.CARD},{name:"EXPRESS",label:"Express Checkout",icon:p.EXPRESS_CHECKOUT},{name:"DEVICE",label:"Device",icon:p.DEVICE},{name:"PT_WALLET",label:"Pass-Thru Wallet",icon:p.PASS_THRU_WALLET},{name:"SV_WALLET",label:"Stored Value Wallet",icon:p.STORED_VALUE_WALLET},{name:"BNPL",label:"Buy Now Pay Later",icon:p.BUY_NOW_PAY_LATER},{name:"CASH",label:"Cash Wallet",icon:p.CASH_WALLET}],V="customer",z="merchant",Jd=[{key:V,value:"true",label:"Customer"},{key:z,value:"false",label:"Merchant"}];var a={PLATFORM:"platformId",DEVELOPMENT_HOUSE:"developmentHouseId",PAYMENT_TECHNOLOGY:"paymentTechnology",PAYMENT_ISSUER:"paymentIssuerId",PAYMENT_INSTITUTION:"paymentInstitution"},Xd={PLATFORM:a.PLATFORM,RETAIL_PLATFORM:a.PLATFORM,BILLING_PLATFORM:a.PLATFORM,COMMERCE_PLATFORM:a.PLATFORM,APP_PLATFORM:a.PLATFORM,DEVELOPMENT_HOUSE:a.DEVELOPMENT_HOUSE,PAYMENT_TECHNOLOGY:a.PAYMENT_TECHNOLOGY,PAYMENT_ISSUER:a.PAYMENT_ISSUER,PAYMENT_ACQUIRER:a.PAYMENT_INSTITUTION,PAYMENT_FACILITATOR:a.PAYMENT_INSTITUTION},jd=["RETAIL_PLATFORM","COMMERCE_PLATFORM","BILLING_PLATFORM","APP_PLATFORM"],el=["PAYMENT_FACILITATOR","PAYMENT_ACQUIRER"],tl=["PAYMENT_TECHNOLOGY"],ol=["PAYMENT_ISSUER"],nl=["DEVELOPMENT_HOUSE"];var sl={bgColor:"white",borderColor:"#F2F2F2",textColor:"#20232B33"};var cl={ZERO:0,FIVE:5,TEN:10,FIFTEEN:15};var s={CHARGE:"CHARGE",AUTHORIZE:"AUTHORIZE",REFUND:"REFUND",CHARGEBACKS:"CHARGEBACKS",DESTINATIONS:"DESTINATIONS",REVERSED_DESTINATIONS:"REVERSED_DESTINATIONS",STATEMENT:"STATEMENT",STATEMENT_SUMMARY:"STATEMENT_SUMMARY",INVOICE:"INVOICE",PAYOUT:"PAYOUT",MERCHANT_PAYOUT:"MERCHANT_PAYOUT",RETAILER_PAYOUT:"RETAILER_PAYOUT",AUTHENTICATION:"AUTHENTICATION"},al={[o.acceptance.services.charges.code]:[s.CHARGE],[o.acceptance.services.authorization.code]:[s.AUTHORIZE],[o.acceptance.services.refunds.code]:[s.REFUND],[o.acceptance.services.chargeback.code]:[s.CHARGEBACKS],[o.acceptance.services.destinations.code]:[s.DESTINATIONS,s.REVERSED_DESTINATIONS],[o.acceptance.code]:[s.CHARGE,s.AUTHORIZE,s.REFUND,s.CHARGEBACKS,s.DESTINATIONS,s.REVERSED_DESTINATIONS],[o.wallet.services.merchants.functions.statement.code]:[s.STATEMENT],[o.wallet.services.merchants.functions.summary.code]:[s.STATEMENT_SUMMARY],[o.wallet.code]:[s.STATEMENT,s.STATEMENT_SUMMARY],[o.billing.services.invoices.code]:[s.INVOICE],[o.billing.code]:[s.INVOICE],[o.payouts.services.payouts.code]:[s.PAYOUT],[o.payouts.services.merchantPayout.code]:[s.MERCHANT_PAYOUT],[o.payouts.services.retailerPayout.code]:[s.RETAILER_PAYOUT],[o.payouts.code]:[s.PAYOUT,s.MERCHANT_PAYOUT,s.RETAILER_PAYOUT],[o.authentication.code]:[s.AUTHENTICATION]},pl=[{code:o.billing.code,name:"Billing",icon:r,services:[{name:"Invoices",code:o.billing.services.invoices.code}]},{code:o.acceptance.code,name:"Acceptance",icon:x,services:[{name:"Authorisations",code:o.acceptance.services.authorization.code},{name:"Charges",code:o.acceptance.services.charges.code},{name:"Refunds",code:o.acceptance.services.refunds.code},{name:"Chargebacks",code:o.acceptance.services.chargeback.code},{name:"Destinations",code:o.acceptance.services.destinations.code}]},{code:o.wallet.code,name:"Wallet",icon:d,services:[{name:"Aggregated Statement",code:o.wallet.services.merchants.functions.summary.code},{name:"Detailed Statement",code:o.wallet.services.merchants.functions.statement.code}]},{code:o.payouts.code,name:"Payouts",icon:l,services:[{name:"Payouts",code:o.payouts.services.payouts.code},{name:"Merchant Payouts",code:o.payouts.services.merchantPayout.code},{name:"Retailer Payouts",code:o.payouts.services.retailerPayout.code}]},{code:o.authentication.code,name:"Authentication",icon:i,services:[{name:"Authentication",code:o.authentication.services.authentication.code}]}];var rl={COMMERCIAL_REGISTRATION:"commercial_registration",FREELANCER:"freelancer",ARTICLE_OF_ASSOCIATION:"article_of_association"};var xl=["AUTHENTICATED"],K=["PENDING","ATTEMPTED","FAILED","REJECTED","UNAVAILABLE","AUTHENTICATION_NOT_SUPPORTED_BY_SCHEME","AUTHENTICATED_AUTHORIZE_FAILED","UNDETERMINED","EXEMPTED","INITIATED"],il=[...xl,...K],Z=(W=>(W.Challenge="C",W.Frictionless="F",W))(Z||{}),dl={C:"Challenge",F:"Frictionless"};var ll=["SA","KW","AE","BH","QA","OM","EG","JO","LB"];var ul=jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"0.600098",y:"0.599998",width:"10.8",height:"10.8",rx:"2.4",fill:"#1F88D0"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74245C9.04243 3.94469 9.05652 4.2875 8.86537 4.50814L5.64586 8.22426C5.55146 8.33322 5.41909 8.39666 5.27942 8.39987C5.13975 8.40308 5.0049 8.34579 4.90612 8.24127L3.15002 6.38321C2.94999 6.17157 2.94999 5.82843 3.15002 5.61679C3.35004 5.40516 3.67435 5.40516 3.87437 5.61679L5.2522 7.07463L8.11024 3.77574C8.30138 3.55511 8.62538 3.5402 8.83391 3.74245Z",fill:"white"})]}),gl=jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"1.19998",y:"1.19998",width:"9.6",height:"9.6",rx:"1.8",fill:"#FAFBFB",stroke:"#D2D5D8",strokeWidth:"1.2"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74242C9.04243 3.94467 9.05652 4.28748 8.86537 4.50811L5.64586 8.22424C5.55146 8.3332 5.41909 8.39664 5.27942 8.39985C5.13975 8.40306 5.0049 8.34577 4.90612 8.24125L3.15002 6.38318C2.94999 6.17154 2.94999 5.82841 3.15002 5.61677C3.35004 5.40513 3.67435 5.40513 3.87437 5.61677L5.2522 7.07461L8.11024 3.77571C8.30138 3.55508 8.62538 3.54018 8.83391 3.74242Z",fill:"#D2D5D8"})]});
|
|
2
|
+
export{Ze as $,Zt as $a,qo as $b,Gn as $c,Gs as $d,Bc as $e,Pa as $f,Pp as $g,Ar as $h,Ax as $i,Ei as $j,vd as $k,ol as $l,$e as A,$t as Aa,Ao as Ab,f as Ac,us as Ad,rc as Ae,aa as Af,ap as Ag,qp as Ah,qr as Ai,Kx as Aj,Ki as Ak,Fd as Al,Ae as B,At as Ba,To as Bb,gn as Bc,gs as Bd,xc as Be,pa as Bf,pp as Bg,Qp as Bh,Qr as Bi,Zx as Bj,Zi as Bk,Y as Bl,Te as C,Tt as Ca,So as Cb,In as Cc,Is as Cd,ic as Ce,ra as Cf,rp as Cg,Jp as Ch,Jr as Ci,qx as Cj,qi as Ck,Hd as Cl,Se as D,St as Da,Co as Db,vn as Dc,vs as Dd,dc as De,xa as Df,xp as Dg,Xp as Dh,Xr as Di,Qx as Dj,Qi as Dk,Yd as Dl,Ce as E,Ct as Ea,yo as Eb,hn as Ec,hs as Ed,lc as Ee,ia as Ef,ip as Eg,jp as Eh,jr as Ei,Jx as Ej,Ji as Ek,Vd as El,ye as F,yt as Fa,_o as Fb,mn as Fc,ms as Fd,uc as Fe,da as Ff,dp as Fg,er as Fh,ex as Fi,Xx as Fj,Xi as Fk,zd as Fl,_e as G,_t as Ga,bo as Gb,fn as Gc,fs as Gd,gc as Ge,la as Gf,lp as Gg,tr as Gh,tx as Gi,jx as Gj,ji as Gk,Kd as Gl,be as H,bt as Ha,wo as Hb,En as Hc,Es as Hd,Ic as He,ua as Hf,up as Hg,or as Hh,ox as Hi,ei as Hj,ed as Hk,Kl as Hl,we as I,wt as Ia,No as Ib,$n as Ic,$s as Id,vc as Ie,ga as If,gp as Ig,nr as Ih,nx as Ii,ti as Ij,td as Ik,Zl as Il,Ne as J,Nt as Ja,Ro as Jb,An as Jc,As as Jd,hc as Je,Ia as Jf,Ip as Jg,sr as Jh,sx as Ji,oi as Jj,od as Jk,ql as Jl,Re as K,Rt as Ka,Lo as Kb,Tn as Kc,Ts as Kd,mc as Ke,va as Kf,vp as Kg,cr as Kh,cx as Ki,ni as Kj,nd as Kk,Ql as Kl,Le as L,Lt as La,Po as Lb,Sn as Lc,Ss as Ld,fc as Le,ha as Lf,hp as Lg,ar as Lh,ax as Li,si as Lj,sd as Lk,Jl as Ll,Pe as M,Pt as Ma,Oo as Mb,Cn as Mc,Cs as Md,Ec as Me,ma as Mf,mp as Mg,pr as Mh,px as Mi,ci as Mj,cd as Mk,Xl as Ml,Oe as N,Ot as Na,Bo as Nb,yn as Nc,ys as Nd,$c as Ne,fa as Nf,fp as Ng,rr as Nh,rx as Ni,ai as Nj,ad as Nk,jl as Nl,Be as O,Bt as Oa,Do as Ob,_n as Oc,_s as Od,Ac as Oe,Ea as Of,Ep as Og,xr as Oh,xx as Oi,pi as Oj,pd as Ok,eu as Ol,De as P,Dt as Pa,Uo as Pb,bn as Pc,bs as Pd,Tc as Pe,$a as Pf,$p as Pg,ir as Ph,ix as Pi,ri as Pj,rd as Pk,Zd as Pl,Ue as Q,Ut as Qa,Mo as Qb,wn as Qc,ws as Qd,Sc as Qe,Aa as Qf,Ap as Qg,dr as Qh,dx as Qi,xi as Qj,xd as Qk,qd as Ql,Me as R,Mt as Ra,ko as Rb,Nn as Rc,Ns as Rd,Cc as Re,Ta as Rf,Tp as Rg,lr as Rh,lx as Ri,ii as Rj,id as Rk,p as Rl,ke as S,kt as Sa,Go as Sb,Rn as Sc,Rs as Sd,yc as Se,Sa as Sf,Sp as Sg,ur as Sh,ux as Si,di as Sj,dd as Sk,Qd as Sl,Ge as T,Gt as Ta,Wo as Tb,Ln as Tc,Ls as Td,_c as Te,Ca as Tf,Cp as Tg,gr as Th,gx as Ti,li as Tj,hl as Tk,V as Tl,We as U,Wt as Ua,Fo as Ub,Pn as Uc,Ps as Ud,bc as Ue,ya as Uf,yp as Ug,Ir as Uh,Ix as Ui,ui as Uj,ld as Uk,z as Ul,Fe as V,Ft as Va,Ho as Vb,On as Vc,Os as Vd,wc as Ve,_a as Vf,_p as Vg,vr as Vh,vx as Vi,gi as Vj,ud as Vk,Jd as Vl,He as W,Ht as Wa,Yo as Wb,Bn as Wc,Bs as Wd,Nc as We,ba as Wf,bp as Wg,hr as Wh,hx as Wi,Ii as Wj,n as Wk,a as Wl,Ye as X,Yt as Xa,Vo as Xb,Dn as Xc,Ds as Xd,Rc as Xe,wa as Xf,wp as Xg,mr as Xh,mx as Xi,vi as Xj,G as Xk,Xd as Xl,Ve as Y,Vt as Ya,zo as Yb,Un as Yc,Us as Yd,Lc as Ye,Na as Yf,Np as Yg,fr as Yh,fx as Yi,hi as Yj,o as Yk,jd as Yl,ze as Z,zt as Za,Ko as Zb,Mn as Zc,Ms as Zd,Pc as Ze,Ra as Zf,Rp as Zg,Er as Zh,Ex as Zi,mi as Zj,gd as Zk,el as Zl,Ke as _,Kt as _a,Zo as _b,kn as _c,ks as _d,Oc as _e,La as _f,Lp as _g,$r as _h,$x as _i,fi as _j,Id as _k,tl as _l,e as a,qe as aa,qt as ab,Qo as ac,Wn as ad,Ws as ae,Dc as af,Oa as ag,Op as ah,Tr as ai,Tx as aj,$i as ak,H as al,nl as am,t as b,Qe as ba,Qt as bb,Jo as bc,Fn as bd,E as be,Uc as bf,Ba as bg,Bp as bh,Sr as bi,Sx as bj,Ai as bk,md as bl,sl as bm,X as c,Je as ca,Jt as cb,Xo as cc,Hn as cd,$ as ce,C as cf,Da as cg,Dp as ch,Cr as ci,Cx as cj,Ti as ck,fd as cl,cl as cm,F as d,Xe as da,Xt as db,jo as dc,Yn as dd,A as de,y as df,Ua as dg,Up as dh,yr as di,yx as dj,Si as dk,Ed as dl,s as dm,j as e,je as ea,jt as eb,en as ec,Vn as ed,T as ee,Mc as ef,Ma as eg,_ as eh,_r as ei,_x as ej,Ci as ek,$d as el,al as em,ee as f,et as fa,eo as fb,tn as fc,zn as fd,S as fe,kc as ff,ka as fg,b as fh,br as fi,bx as fj,yi as fk,Ad as fl,pl as fm,te as g,tt as ga,to as gb,I as gc,Kn as gd,Fs as ge,Gc as gf,Ga as gg,w as gh,wr as gi,wx as gj,_i as gk,Sl as gl,rl as gm,oe as h,ot as ha,oo as hb,r as hc,Zn as hd,Hs as he,Wc as hf,Wa as hg,N as hh,Nr as hi,Nx as hj,bi as hk,Td as hl,K as hm,ne as i,nt as ia,no as ib,on as ic,qn as id,Ys as ie,Fc as if,Fa as ig,R as ih,Rr as ii,Rx as ij,wi as ik,Sd as il,il as im,se as j,st as ja,so as jb,nn as jc,Qn as jd,Vs as je,Hc as jf,Ha as jg,L as jh,Lr as ji,Lx as jj,Ni as jk,Cd as jl,Z as jm,ce as k,ct as ka,co as kb,x as kc,Jn as kd,zs as ke,Yc as kf,Ya as kg,P as kh,Pr as ki,Px as kj,Ri as kk,yd as kl,dl as km,ae as l,at as la,ao as lb,sn as lc,Xn as ld,Ks as le,Vc as lf,Va as lg,O as lh,Or as li,Ox as lj,Li as lk,_d as ll,ll as lm,pe as m,pt as ma,po as mb,cn as mc,jn as md,Zs as me,zc as mf,za as mg,B as mh,Br as mi,M as mj,Pi as mk,bd as ml,ul as mm,re as n,rt as na,ro as nb,an as nc,es as nd,qs as ne,Kc as nf,Ka as ng,D as nh,Dr as ni,k as nj,Oi as nk,wd as nl,gl as nm,xe as o,xt as oa,xo as ob,pn as oc,ts as od,Qs as oe,Zc as of,Za as og,U as oh,Ur as oi,Bx as oj,Bi as ok,Nd as ol,Il as om,ie as p,it as pa,io as pb,rn as pc,os as pd,Js as pe,qc as pf,qa as pg,Mp as ph,Mr as pi,Dx as pj,Di as pk,Rd as pl,de as q,dt as qa,lo as qb,xn as qc,ns as qd,Xs as qe,Qc as qf,Qa as qg,kp as qh,kr as qi,Ux as qj,Ui as qk,Ld as ql,le as r,lt as ra,uo as rb,dn as rc,ss as rd,js as re,Jc as rf,Ja as rg,Gp as rh,Gr as ri,Mx as rj,Mi as rk,Pd as rl,ue as s,ut as sa,go as sb,ln as sc,cs as sd,ec as se,Xc as sf,Xa as sg,Wp as sh,Wr as si,kx as sj,ki as sk,Od as sl,ge as t,gt as ta,Io as tb,un as tc,as as td,tc as te,jc as tf,ja as tg,Fp as th,Fr as ti,Gx as tj,Gi as tk,Bd as tl,Ie as u,It as ua,vo as ub,i as uc,ps as ud,oc as ue,ea as uf,ep as ug,Hp as uh,Hr as ui,Wx as uj,Wi as uk,Dd as ul,ve as v,vt as va,ho as vb,d as vc,rs as vd,nc as ve,ta as vf,tp as vg,Yp as vh,Yr as vi,Fx as vj,Fi as vk,Ud as vl,he as w,ht as wa,mo as wb,l as wc,xs as wd,sc as we,oa as wf,op as wg,Vp as wh,Vr as wi,Hx as wj,Hi as wk,Md as wl,me as x,mt as xa,fo as xb,v as xc,is as xd,cc as xe,na as xf,np as xg,zp as xh,zr as xi,Yx as xj,Yi as xk,kd as xl,fe as y,ft as ya,Eo as yb,h as yc,ds as yd,ac as ye,sa as yf,sp as yg,Kp as yh,Kr as yi,Vx as yj,Vi as yk,Gd as yl,Ee as z,Et as za,$o as zb,m as zc,ls as zd,pc as ze,ca as zf,cp as zg,Zp as zh,Zr as zi,zx as zj,zi as zk,Wd as zl};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-KST2NVZS.js';import {he}from'./chunk-NSFZTMX6.js';import {jsxs,jsx}from'react/jsx-runtime';var x=({text:t,startLength:p=8,endLength:r=4,chipIndex:a,copyText:i,selectionProps:d})=>{let c=t.slice(0,p),m=t.slice(t.length-r);return jsxs(b,{chipIndex:a,copyText:i,selectionProps:d,children:[c,jsx("img",{src:he,alt:"passwordDots"}),m]})},s=x;var M=s;export{M as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {c as c$2}from'./chunk-NYA3TBHQ.js';import {c,e}from'./chunk-3D6UJDPA.js';import {a,c as c$1,d}from'./chunk-GOC4DJNU.js';import {b,a as a$1}from'./chunk-ZFNMWMRZ.js';import {Ra}from'./chunk-BSBWNJ47.js';import {na,Dj,Ej,Xg,hj,w,_c,Cd,Bd,ma,ka,la}from'./chunk-PPWY42W6.js';import io,{memo,createContext,useState,useRef,useId,useMemo,useEffect,useCallback,useContext}from'react';import {styled,Popover,Input,Typography,Box,Dialog}from'@mui/material';import C from'@uiw/react-json-view';import {motion,AnimatePresence}from'framer-motion';import {Resizable}from're-resizable';import Po from'react-draggable';import so 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 R=37,ye="32px",I=545;styled(Popover)(({theme:e})=>({backgroundColor:e.palette.background.default,boxShadow:e.shadows[21],"& .MuiPaper-root":{borderRadius:"12px"}}));var ro=44,we={"--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% - ${ro+R}px`,overflow:"auto"},at={...we,background:"transparent","--w-rjv-line-color":"transparent"},st=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})),be=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 Se=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"})),Ce=styled(Box,{shouldForwardProp:e=>!["isMaximized","isScrollingRequest","isRequestShown"].includes(e)})(({isScrollingRequest:e,isMaximized:t,isRequestShown:a,theme:n})=>({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:n.shadows[23]},...t&&{paddingTop:ye,transition:"padding 0.3s ease-in-out",...a&&{width:"50%"}}})),ve=styled(Box,{shouldForwardProp:e=>!["isMaximized","isRequestShown"].includes(e)})(({isMaximized:e,isRequestShown:t})=>({display:"flex",justifyContent:"space-between",alignItems:"center",gap:"8px",height:R,position:"fixed",bottom:0,right:0,left:e?"50vw":0,...!t&&{left:0}})),Re=styled(Box)(()=>({display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"4px",paddingBlock:"10px",paddingInlineStart:"8px",paddingInlineEnd:"0px"})),Ie=styled(Box)(()=>({display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"4px",paddingBlock:"10px",paddingInlineStart:"0px",paddingInlineEnd:"12px"})),lt=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 - ${R}px)`:(t||I)-R+5,background:"transparent",position:"fixed",width:"100%"}));var pt=styled(Box)(()=>({position:"fixed",width:"100%",background:"transparent",height:"100%"})),dt=styled("span")(()=>({color:"#032F62"})),ct=styled("span")(()=>({color:"#357fb9"}));function po({onClick:e,icon:t,label:a,disableAnimation:n,...r}){let[s,o]=io.useState(false),{t:f}=useTranslation();return jsxs(st,{...r,onClick:m=>{e?.(m),!n&&(o(true),setTimeout(()=>{o(false);},2e3));},children:[jsxs(so,{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:na,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")})]}),a&&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:f("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:a})})]})]})}var ut=memo(po);var O=ut;var ft=styled$1("div")(()=>({display:"flex",alignItems:"center",position:"relative",flexShrink:0,width:"24px",height:"24px"})),mt=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}`}})),gt=styled$1(motion.div)(()=>({position:"absolute",right:0,top:0,height:"24px",display:"flex",alignItems:"center",zIndex:20,background:"transparent"})),ht=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"}})),Be={position:"absolute",top:"50%",transform:"translateY(-50%)",zIndex:2,userSelect:"none"},xt={...Be,background:"none",border:"none",padding:0,margin:0,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",outline:"none","&:disabled":{opacity:.3,cursor:"default"}},yt=styled$1("button")(()=>({...xt,right:53})),wt=styled$1("button")(()=>({...xt,right:39})),bt=styled$1(motion.img)(()=>({...Be,right:24,width:10,height:10,cursor:"pointer"})),St=styled$1(motion.img)(()=>({...Be,right:8,width:11,height:11,cursor:"default"})),Te=styled$1("img")(()=>({width:10,height:10})),Ct=styled$1("img")(()=>({width:12,height:12})),vt=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 ho({value:e,onChange:t,currentIndex:a,totalCount:n,onPrev:r,onNext:s,placeholder:o="Search..."}){let[f,p]=useState(false),m=useRef(null),w$1=e.trim().length>0,S=n>0,c=w$1,v=()=>{p(true),requestAnimationFrame(()=>m.current?.focus());},k=()=>{t(""),p(false);};return jsxs(ft,{children:[jsx(AnimatePresence,{children:f&&jsxs(gt,{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(ht,{ref:m,initial:false,animate:{paddingRight:c?"98px":"24px"},transition:{duration:.15},placeholder:o,value:e,onChange:d=>t(d.target.value),onKeyDown:d=>{d.key==="Enter"&&(d.shiftKey?r():s()),d.key==="Escape"&&k();},onBlur:()=>{w$1||p(false);}}),c&&jsx(yt,{onClick:r,disabled:!S,title:"Previous match (Shift+Enter)",children:jsx(Te,{src:Dj,alt:"prev"})}),c&&jsx(wt,{onClick:s,disabled:!S,title:"Next match (Enter)",children:jsx(Te,{src:Ej,alt:"next"})}),c&&jsx(bt,{src:Xg,alt:"clear",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:k}),jsx(St,{src:hj,alt:"search",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}}),c&&jsx(vt,{children:S?`${a+1}/${n}`:"0/0"})]},"input-area")}),jsx(AnimatePresence,{children:!f&&jsx(motion.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.15},children:jsx(mt,{isActive:false,onClick:v,title:"Search",children:jsx(Ct,{src:w,alt:"search"})})})})]})}var L=memo(ho);function kt(e,t){let a=[],n=t.length,r=0,s=e.indexOf(t,r);for(;s!==-1;){let o=s+n;a.push([s,o]),r=o,s=e.indexOf(t,r);}return a}var xo={padding:0,outline:"none"};function Tt({text:e,queryLength:t,ranges:a,idPrefix:n}){let r=[],s=0;return a.forEach(([o,f],p)=>{o>s&&r.push(e.slice(s,o)),r.push(jsx("mark",{style:xo,children:e.slice(o,o+t)},`${n}-${p}`)),s=f;}),s<e.length&&r.push(e.slice(s)),jsx(Fragment,{children:r})}function M({text:e,query:t}){let a=useId(),n=useMemo(()=>t.trim().toLowerCase(),[t]),r=useMemo(()=>{if(!n)return e;let s=e.toLowerCase(),o=kt(s,n);return o.length===0?e:jsx(Tt,{text:e,queryLength:t.length,ranges:o,idPrefix:a})},[e,t.length,n,a]);return jsx(Fragment,{children:r})}function ee(e,t){return e.toLowerCase().includes(t)}function te(e){return e.trim().toLowerCase()}function oe(e){let t=te(e);return (a,{keyName:n})=>{if(!t||!n)return;let r=String(n);if(ee(r,t))return jsx(ct,{children:jsx(M,{text:String(n),query:e})})}}function ne(e){let t=te(e);return (a,{value:n})=>{if(!t)return;let r=String(n??"");if(ee(r,t))return jsxs(dt,{children:['"',jsx(M,{text:String(n??""),query:e}),'"']})}}function Ro({title:e$1,onClose:t,onMaximize:a$1,maximized:n=false,id:r,onMouseHover:s,onMouseLeave:o,onRequestClick:f,isRequestExpanded:p=false,showRequestIcon:m=false,isHovered:w=false}){return jsx(c,{id:r,maximized:n||false,children:jsx(e,{isHovered:true,onMouseEnter:s,onMouseLeave:o,isMaximized:n,title:e$1,icon:_c,leftActions:jsxs(Fragment,{children:[jsx(a,{onClick:t}),jsx(c$1,{isMaximized:n,onClick:a$1}),m&&jsx(d,{onClick:f,isExpanded:p,isHovered:w,children:"Request"})]})})})}var Ht=memo(Ro);var Je=Ht;var zt="#FFE20B";function re(e,t){let[a,n]=useState(0),[r,s]=useState(0);useEffect(()=>{if(!t.trim()){s(0),n(0);return}let p=setTimeout(()=>{let m=e.current?.querySelectorAll("mark")??[];s(m.length),n(0);},50);return ()=>clearTimeout(p)},[t,e]),useEffect(()=>{if(!e.current||!t.trim())return;let p=Array.from(e.current.querySelectorAll("mark"));p.forEach((m,w)=>{let S=w===a;m.style.backgroundColor=S?zt:"transparent",m.style.outline=S?`1px solid ${zt}`:"none",m.style.borderRadius="2px";}),p[a]?.scrollIntoView({behavior:"smooth",block:"nearest"});},[a,r,t,e]);let o=useCallback(()=>{r!==0&&n(p=>(p+1)%r);},[r]),f=useCallback(()=>{r!==0&&n(p=>(p-1+r)%r);},[r]);return {currentIndex:a,totalCount:r,goNext:o,goPrev:f}}function Vt(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 Nt(e,t){if(Array.isArray(e)){let a=e.map(n=>Nt(n,t)).filter(n=>n!=null);return a.length>0?a:null}return typeof e=="object"&&e!==null?At(e,t):Vt(e,t)?e:null}function At(e,t){let a={};for(let[n,r]of Object.entries(e))if(n.toLowerCase().includes(t))a[n]=r;else if(typeof r=="object"&&r!==null){let s=Nt(r,t);s!==null&&(a[n]=s);}else Vt(r,t)&&(a[n]=r);return Object.keys(a).length>0?a:null}function Pe(e,t){return t.trim()?At(e,t.toLowerCase()):e}var F=400,j=.5;function K({index:e,json:t,requestJson:a={},isWindowMinimized:n,windowOrder:r,onClose:s}){let[o,f]=useState(false),[p,m]=useState(false),[w,S]=useState(false),[c,v]=useState(false),[k,W]=useState({width:0,height:0}),[B,T]=useState(true),[d,Ft]=useState(false),[Oe,Kt]=useState(true),[$t,We]=useState(false),[$,Me]=useState(F),[J,Gt]=useState(""),[P,Yt]=useState(""),ze=useRef(null),Ve=useRef(null),G=re(ze,J),Y=re(Ve,P),le=useRef(),{onMouseEnter:Xt,onMouseLeave:Qt,isHovered:Ut}=b(),{height:pe,width:q}=a$1(),[Ne,Zt]=useState({x:q/2+F/4-e*20,y:pe/2-I/2+e*30}),X=useRef(),eo=useMemo(()=>Object.keys(t)?.length,[t]),Ae=Ra(),E=Number(X.current?.state?.width)||F,je=l=>{setTimeout(()=>{navigator.clipboard.writeText(l||"").then(()=>{});},10);},qe=useMemo(()=>Object.keys(a)?.length,[a]),De=useMemo(()=>Pe(t,J),[t,J]),Le=useMemo(()=>Pe(a,P),[a,P]);return useEffect(()=>{if(le.current&&clearTimeout(le.current),!d){le.current=setTimeout(()=>{Me(E);},j*1e3);return}Me(E);},[d,E]),jsx(Po,{disabled:o,handle:"#draggable-dialog-title",cancel:'[class*="MuiDialogContent-root"]',defaultPosition:{x:q/2-F/4,y:pe/2-I/2},position:{x:q-Ne.x,y:Ne.y},onStop:(l,u)=>{Zt({x:q-u.x,y:u.y});},bounds:{top:10},children:jsx(Dialog,{disableEnforceFocus:true,sx:{backgroundColor:"transparent",zIndex:(r||0)+3+(o?1:0),...n&&{display:"none"},transform:"translate(180px, 14px)",...!o&&{width:Ae?k?.width||$:"fit-content",height:Ae?k?.height||I:"fit-content"},...o&&{transform:"none !important"}},PaperProps:{style:{margin:0,maxHeight:"100%",maxWidth:"none",background:"transparent",width:p?"fit-content":$,height:p?"fit-content":I,...o&&{width:"100%",height:"100%"},position:"relative"}},onClose:()=>{f(false),T(true),setTimeout(()=>{T(false);},j*1e3);},open:true,hideBackdrop:true,fullScreen:o,"aria-labelledby":"draggable-dialog-title",children:jsx(Resizable,{enable:{left:false,right:true,bottomRight:true,bottom:true},maxHeight:pe-40,maxWidth:q,minWidth:o?"100vw":$,minHeight:o?"100vh":"300px",ref:l=>{X.current=l;},onResizeStart:()=>{T(true);},onResizeStop:()=>{T(false);},onResize:(l,u,z)=>{m(true),W({width:z.offsetWidth,height:z.offsetHeight});},defaultSize:{width:$,height:I},style:{background:"transparent",...o&&{height:"100% !important",width:"100% !important",flex:1},...o&&{position:"relative"}},children:jsxs(pt,{children:[jsx(motion.div,{style:{...o&&{height:ye,position:"fixed",zIndex:1e3}},animate:{width:d?E*2:E,...o&&{width:"100vw"},...!o&&{transform:`translateX(${d?-E:0}px)`}},transition:{duration:j,...B&&{duration:0}},children:jsx(Je,{title:d?"JSON Request & Response":"JSON Response",onClose:()=>s(),onMaximize:()=>{f(l=>!l),T(true),setTimeout(()=>{T(false);},j*1e3);},isHovered:Ut,onMouseHover:Xt,onMouseLeave:Qt,maximized:o,id:"draggable-dialog-title",onRequestClick:()=>{Ft(l=>!l),T(false),d||X.current?.updateSize({width:F,height:I});},isRequestExpanded:d,showRequestIcon:!!qe})}),jsxs(Box,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start",height:o?`calc(100vh - ${R}px)`:(Number(X.current?.state?.height)||I)-R+5,background:"transparent",position:"fixed",width:"100%"},children:[jsx(AnimatePresence,{children:d&&jsxs(motion.div,{initial:{left:o?"50vw":0,...o&&{position:"relative",left:"-50vw"}},animate:{left:o?"50vw":-E,...o&&{position:"relative",left:"0"},...!d&&{left:0}},exit:{left:o?"50vw":0,...o&&{position:"relative",left:"0"}},transition:{duration:j,...B&&{duration:0}},ref:Ve,style:{flex:1,backgroundColor:"#E7E7E7B2",backdropFilter:"blur(12px)",height:o?"100vh":"100%",overflowY:"auto",position:"absolute",width:o?"100vw":E,zIndex:19,display:"flex",flexDirection:"column",borderBottomLeftRadius:"12px"},onScroll:()=>{We(true),setTimeout(()=>{We(false);},2e3);},children:[jsxs(Ce,{isMaximized:o,isScrollingRequest:$t,sx:{background:"#E7E7E7B2"},isRequestShown:d,children:[jsx(Ie,{children:jsx(Se,{variant:"subtitle1",children:"API Request"})}),jsxs(Re,{children:[jsx(L,{value:P,onChange:Yt,currentIndex:Y.currentIndex,totalCount:Y.totalCount,onPrev:Y.goPrev,onNext:Y.goNext}),jsx(O,{disableAnimation:true,onClick:()=>{Kt(l=>!l);},icon:Oe?Cd:Bd}),jsx(O,{onClick:()=>{navigator.clipboard.writeText(JSON.stringify(t)).then(()=>{});},icon:ma}),jsx(O,{onClick:()=>{navigator.clipboard.writeText(t?.id||"").then(()=>{});},icon:ka})]})]}),P.trim()&&Le===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(C,{value:Le??a,style:at,displayDataTypes:false,collapsed:P.trim()?void 0:Oe?1:void 0,onCopied:(l,u)=>{typeof u=="string"&&je(u);},enableClipboard:false,children:[jsx(C.String,{render:ne(P)}),jsx(C.KeyName,{render:oe(P)}),jsx(C.CountInfo,{render:(l,{keyName:u})=>{if(!u)return jsx("span",{})}}),jsx(C.Copied,{render:({"data-copied":l,style:u,onClick:z},{keyName:de})=>de?jsxs(be,{style:u,onClick:ce=>{z?.(ce);},children:[jsx(AnimatePresence,{children:l&&jsx(motion.img,{style:{height:"14px",width:"14px"},initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:na,alt:"icon"},"id-icon")}),jsx(AnimatePresence,{children:!l&&jsx(motion.img,{style:{height:"14px",width:"14px"},initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:la,alt:"icon"},"id-icon")})]}):jsx("span",{})})]}),jsx(AnimatePresence,{children:d&&jsx(ve,{sx:{flex:1,height:R,left:0},children:jsx(c$2,{sx:{paddingLeft:"12px",borderBottomRightRadius:"0",background:"#f8f9fb",flex:1},totalCount:qe})})})]})}),jsxs(lt,{ref:ze,isMaximized:o,isRequestShown:d,style:{left:0,maxHeight:"100vw"},initial:{...o&&{width:"100vw",left:0}},animate:{...o&&{position:"absolute",left:d?"50vw":"0"}},transition:{duration:j,...B&&{duration:0}},onScroll:()=>{v(true),setTimeout(()=>{v(false);},2e3);},children:[jsxs(Ce,{isMaximized:o,isScrollingRequest:c,isRequestShown:d,children:[jsx(Ie,{children:jsx(Se,{variant:"subtitle1",children:"API Response"})}),jsxs(Re,{children:[jsx(L,{value:J,onChange:Gt,currentIndex:G.currentIndex,totalCount:G.totalCount,onPrev:G.goPrev,onNext:G.goNext}),jsx(O,{disableAnimation:true,onClick:()=>{S(l=>!l);},icon:w?Cd:Bd}),jsx(O,{onClick:()=>{navigator.clipboard.writeText(JSON.stringify(t,null,2)).then(()=>{});},icon:ma}),jsx(O,{onClick:()=>{navigator.clipboard.writeText(t?.id||"").then(()=>{});},icon:ka})]})]}),J.trim()&&De===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(C,{value:De??t,style:we,displayDataTypes:false,collapsed:J.trim()?void 0:w?1:void 0,onCopied:(l,u)=>{typeof u=="string"&&je(u);},children:[jsx(C.String,{render:ne(J)}),jsx(C.KeyName,{render:oe(J)}),jsx(C.CountInfo,{render:(l,{keyName:u})=>{if(!u)return jsx("span",{})}}),jsx(C.Copied,{render:({"data-copied":l,style:u,onClick:z},{keyName:de})=>de?jsxs(be,{style:u,onClick:ce=>{z?.(ce);},children:[jsx(AnimatePresence,{children:l&&jsx(motion.img,{style:{height:"14px",width:"14px"},initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:na,alt:"icon"},"id-icon")}),jsx(AnimatePresence,{children:!l&&jsx(motion.img,{style:{height:"14px",width:"14px"},initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:la,alt:"icon"},"id-icon")})]}):jsx("span",{})})]}),jsx(ve,{sx:{flex:1,height:R},children:jsx(c$2,{sx:{borderBottomLeftRadius:d?0:"12px",background:"#f8f9fb",flex:1},totalCount:eo})})]})]})]})})})})}var se=createContext({jsonViewerList:[],handleJsonViewerDialogOpen:()=>{},handleWindowMinimize:()=>{},handleWindowOrder:()=>{}});var Dt=({list:e,onClose:t,isWindowMinimized:a,windowOrder:n})=>e?.length?jsx(Fragment,{children:e.map((r,s)=>jsx(K,{index:s,json:r.json,requestJson:r?.requestJson,onClose:()=>{t(s);},isWindowMinimized:a,windowOrder:n},r.json.id))}):null;var Mo=({children:e})=>{let[t,a]=useState([]),[n,r]=useState(false),[s,o]=useState(1),f=useCallback(c=>{if(t.length===7){alert("Maximum allowed active Json Viewer is 7 per table.");return}if(t.some(B=>B.json.id===c.json.id))return;let v=structuredClone(c.json),k=v.request_body,W={json:v,requestJson:c.requestJson||k||void 0};delete W.json.request_body,a(B=>[...B,W]);},[t]),p=c=>{a(v=>v.filter((k,W)=>c!==W));},m=c=>{r(c);},w=c=>{o(c);},S=useMemo(()=>({jsonViewerList:t,handleJsonViewerDialogOpen:f,handleWindowMinimize:m,handleWindowOrder:w}),[t,f]);return jsxs(se.Provider,{value:S,children:[e,jsx(Dt,{list:t,onClose:p,isWindowMinimized:n,windowOrder:s})]})};var Ao=({isWindowMinimized:e,windowOrder:t})=>{let{handleJsonViewerDialogOpen:a,handleWindowMinimize:n,handleWindowOrder:r}=useContext(se),s=useCallback(()=>{n(e);},[n,e]),o=useCallback(()=>{r(t);},[r,t]);return useEffect(()=>{o();},[o]),useEffect(()=>{s();},[s]),{handleJsonViewerDialogOpen:a}};var Fr=K;export{O as a,L as b,M as c,Je as d,re as e,se as f,Dt as g,Mo as h,Ao as i,Fr as j};
|
|
1
|
+
import {c as c$2}from'./chunk-ZDSZOOS5.js';import {c,e}from'./chunk-PF7ART2E.js';import {a,c as c$1,d}from'./chunk-QAUAHDTY.js';import {b,a as a$1}from'./chunk-L4TPIDBZ.js';import {Ra}from'./chunk-HKNBTFNF.js';import {na,Dj,Ej,Xg,hj,w,_c,Cd,Bd,ma,ka,la}from'./chunk-NSFZTMX6.js';import io,{memo,createContext,useState,useRef,useId,useMemo,useEffect,useCallback,useContext}from'react';import {styled,Popover,Input,Typography,Box,Dialog}from'@mui/material';import C from'@uiw/react-json-view';import {motion,AnimatePresence}from'framer-motion';import {Resizable}from're-resizable';import Po from'react-draggable';import so 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 R=37,ye="32px",I=545;styled(Popover)(({theme:e})=>({backgroundColor:e.palette.background.default,boxShadow:e.shadows[21],"& .MuiPaper-root":{borderRadius:"12px"}}));var ro=44,we={"--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% - ${ro+R}px`,overflow:"auto"},at={...we,background:"transparent","--w-rjv-line-color":"transparent"},st=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})),be=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 Se=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"})),Ce=styled(Box,{shouldForwardProp:e=>!["isMaximized","isScrollingRequest","isRequestShown"].includes(e)})(({isScrollingRequest:e,isMaximized:t,isRequestShown:a,theme:n})=>({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:n.shadows[23]},...t&&{paddingTop:ye,transition:"padding 0.3s ease-in-out",...a&&{width:"50%"}}})),ve=styled(Box,{shouldForwardProp:e=>!["isMaximized","isRequestShown"].includes(e)})(({isMaximized:e,isRequestShown:t})=>({display:"flex",justifyContent:"space-between",alignItems:"center",gap:"8px",height:R,position:"fixed",bottom:0,right:0,left:e?"50vw":0,...!t&&{left:0}})),Re=styled(Box)(()=>({display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"4px",paddingBlock:"10px",paddingInlineStart:"8px",paddingInlineEnd:"0px"})),Ie=styled(Box)(()=>({display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"4px",paddingBlock:"10px",paddingInlineStart:"0px",paddingInlineEnd:"12px"})),lt=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 - ${R}px)`:(t||I)-R+5,background:"transparent",position:"fixed",width:"100%"}));var pt=styled(Box)(()=>({position:"fixed",width:"100%",background:"transparent",height:"100%"})),dt=styled("span")(()=>({color:"#032F62"})),ct=styled("span")(()=>({color:"#357fb9"}));function po({onClick:e,icon:t,label:a,disableAnimation:n,...r}){let[s,o]=io.useState(false),{t:f}=useTranslation();return jsxs(st,{...r,onClick:m=>{e?.(m),!n&&(o(true),setTimeout(()=>{o(false);},2e3));},children:[jsxs(so,{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:na,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")})]}),a&&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:f("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:a})})]})]})}var ut=memo(po);var O=ut;var ft=styled$1("div")(()=>({display:"flex",alignItems:"center",position:"relative",flexShrink:0,width:"24px",height:"24px"})),mt=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}`}})),gt=styled$1(motion.div)(()=>({position:"absolute",right:0,top:0,height:"24px",display:"flex",alignItems:"center",zIndex:20,background:"transparent"})),ht=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"}})),Be={position:"absolute",top:"50%",transform:"translateY(-50%)",zIndex:2,userSelect:"none"},xt={...Be,background:"none",border:"none",padding:0,margin:0,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",outline:"none","&:disabled":{opacity:.3,cursor:"default"}},yt=styled$1("button")(()=>({...xt,right:53})),wt=styled$1("button")(()=>({...xt,right:39})),bt=styled$1(motion.img)(()=>({...Be,right:24,width:10,height:10,cursor:"pointer"})),St=styled$1(motion.img)(()=>({...Be,right:8,width:11,height:11,cursor:"default"})),Te=styled$1("img")(()=>({width:10,height:10})),Ct=styled$1("img")(()=>({width:12,height:12})),vt=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 ho({value:e,onChange:t,currentIndex:a,totalCount:n,onPrev:r,onNext:s,placeholder:o="Search..."}){let[f,p]=useState(false),m=useRef(null),w$1=e.trim().length>0,S=n>0,c=w$1,v=()=>{p(true),requestAnimationFrame(()=>m.current?.focus());},k=()=>{t(""),p(false);};return jsxs(ft,{children:[jsx(AnimatePresence,{children:f&&jsxs(gt,{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(ht,{ref:m,initial:false,animate:{paddingRight:c?"98px":"24px"},transition:{duration:.15},placeholder:o,value:e,onChange:d=>t(d.target.value),onKeyDown:d=>{d.key==="Enter"&&(d.shiftKey?r():s()),d.key==="Escape"&&k();},onBlur:()=>{w$1||p(false);}}),c&&jsx(yt,{onClick:r,disabled:!S,title:"Previous match (Shift+Enter)",children:jsx(Te,{src:Dj,alt:"prev"})}),c&&jsx(wt,{onClick:s,disabled:!S,title:"Next match (Enter)",children:jsx(Te,{src:Ej,alt:"next"})}),c&&jsx(bt,{src:Xg,alt:"clear",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:k}),jsx(St,{src:hj,alt:"search",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}}),c&&jsx(vt,{children:S?`${a+1}/${n}`:"0/0"})]},"input-area")}),jsx(AnimatePresence,{children:!f&&jsx(motion.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.15},children:jsx(mt,{isActive:false,onClick:v,title:"Search",children:jsx(Ct,{src:w,alt:"search"})})})})]})}var L=memo(ho);function kt(e,t){let a=[],n=t.length,r=0,s=e.indexOf(t,r);for(;s!==-1;){let o=s+n;a.push([s,o]),r=o,s=e.indexOf(t,r);}return a}var xo={padding:0,outline:"none"};function Tt({text:e,queryLength:t,ranges:a,idPrefix:n}){let r=[],s=0;return a.forEach(([o,f],p)=>{o>s&&r.push(e.slice(s,o)),r.push(jsx("mark",{style:xo,children:e.slice(o,o+t)},`${n}-${p}`)),s=f;}),s<e.length&&r.push(e.slice(s)),jsx(Fragment,{children:r})}function M({text:e,query:t}){let a=useId(),n=useMemo(()=>t.trim().toLowerCase(),[t]),r=useMemo(()=>{if(!n)return e;let s=e.toLowerCase(),o=kt(s,n);return o.length===0?e:jsx(Tt,{text:e,queryLength:t.length,ranges:o,idPrefix:a})},[e,t.length,n,a]);return jsx(Fragment,{children:r})}function ee(e,t){return e.toLowerCase().includes(t)}function te(e){return e.trim().toLowerCase()}function oe(e){let t=te(e);return (a,{keyName:n})=>{if(!t||!n)return;let r=String(n);if(ee(r,t))return jsx(ct,{children:jsx(M,{text:String(n),query:e})})}}function ne(e){let t=te(e);return (a,{value:n})=>{if(!t)return;let r=String(n??"");if(ee(r,t))return jsxs(dt,{children:['"',jsx(M,{text:String(n??""),query:e}),'"']})}}function Ro({title:e$1,onClose:t,onMaximize:a$1,maximized:n=false,id:r,onMouseHover:s,onMouseLeave:o,onRequestClick:f,isRequestExpanded:p=false,showRequestIcon:m=false,isHovered:w=false}){return jsx(c,{id:r,maximized:n||false,children:jsx(e,{isHovered:true,onMouseEnter:s,onMouseLeave:o,isMaximized:n,title:e$1,icon:_c,leftActions:jsxs(Fragment,{children:[jsx(a,{onClick:t}),jsx(c$1,{isMaximized:n,onClick:a$1}),m&&jsx(d,{onClick:f,isExpanded:p,isHovered:w,children:"Request"})]})})})}var Ht=memo(Ro);var Je=Ht;var zt="#FFE20B";function re(e,t){let[a,n]=useState(0),[r,s]=useState(0);useEffect(()=>{if(!t.trim()){s(0),n(0);return}let p=setTimeout(()=>{let m=e.current?.querySelectorAll("mark")??[];s(m.length),n(0);},50);return ()=>clearTimeout(p)},[t,e]),useEffect(()=>{if(!e.current||!t.trim())return;let p=Array.from(e.current.querySelectorAll("mark"));p.forEach((m,w)=>{let S=w===a;m.style.backgroundColor=S?zt:"transparent",m.style.outline=S?`1px solid ${zt}`:"none",m.style.borderRadius="2px";}),p[a]?.scrollIntoView({behavior:"smooth",block:"nearest"});},[a,r,t,e]);let o=useCallback(()=>{r!==0&&n(p=>(p+1)%r);},[r]),f=useCallback(()=>{r!==0&&n(p=>(p-1+r)%r);},[r]);return {currentIndex:a,totalCount:r,goNext:o,goPrev:f}}function Vt(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 Nt(e,t){if(Array.isArray(e)){let a=e.map(n=>Nt(n,t)).filter(n=>n!=null);return a.length>0?a:null}return typeof e=="object"&&e!==null?At(e,t):Vt(e,t)?e:null}function At(e,t){let a={};for(let[n,r]of Object.entries(e))if(n.toLowerCase().includes(t))a[n]=r;else if(typeof r=="object"&&r!==null){let s=Nt(r,t);s!==null&&(a[n]=s);}else Vt(r,t)&&(a[n]=r);return Object.keys(a).length>0?a:null}function Pe(e,t){return t.trim()?At(e,t.toLowerCase()):e}var F=400,j=.5;function K({index:e,json:t,requestJson:a={},isWindowMinimized:n,windowOrder:r,onClose:s}){let[o,f]=useState(false),[p,m]=useState(false),[w,S]=useState(false),[c,v]=useState(false),[k,W]=useState({width:0,height:0}),[B,T]=useState(true),[d,Ft]=useState(false),[Oe,Kt]=useState(true),[$t,We]=useState(false),[$,Me]=useState(F),[J,Gt]=useState(""),[P,Yt]=useState(""),ze=useRef(null),Ve=useRef(null),G=re(ze,J),Y=re(Ve,P),le=useRef(),{onMouseEnter:Xt,onMouseLeave:Qt,isHovered:Ut}=b(),{height:pe,width:q}=a$1(),[Ne,Zt]=useState({x:q/2+F/4-e*20,y:pe/2-I/2+e*30}),X=useRef(),eo=useMemo(()=>Object.keys(t)?.length,[t]),Ae=Ra(),E=Number(X.current?.state?.width)||F,je=l=>{setTimeout(()=>{navigator.clipboard.writeText(l||"").then(()=>{});},10);},qe=useMemo(()=>Object.keys(a)?.length,[a]),De=useMemo(()=>Pe(t,J),[t,J]),Le=useMemo(()=>Pe(a,P),[a,P]);return useEffect(()=>{if(le.current&&clearTimeout(le.current),!d){le.current=setTimeout(()=>{Me(E);},j*1e3);return}Me(E);},[d,E]),jsx(Po,{disabled:o,handle:"#draggable-dialog-title",cancel:'[class*="MuiDialogContent-root"]',defaultPosition:{x:q/2-F/4,y:pe/2-I/2},position:{x:q-Ne.x,y:Ne.y},onStop:(l,u)=>{Zt({x:q-u.x,y:u.y});},bounds:{top:10},children:jsx(Dialog,{disableEnforceFocus:true,sx:{backgroundColor:"transparent",zIndex:(r||0)+3+(o?1:0),...n&&{display:"none"},transform:"translate(180px, 14px)",...!o&&{width:Ae?k?.width||$:"fit-content",height:Ae?k?.height||I:"fit-content"},...o&&{transform:"none !important"}},PaperProps:{style:{margin:0,maxHeight:"100%",maxWidth:"none",background:"transparent",width:p?"fit-content":$,height:p?"fit-content":I,...o&&{width:"100%",height:"100%"},position:"relative"}},onClose:()=>{f(false),T(true),setTimeout(()=>{T(false);},j*1e3);},open:true,hideBackdrop:true,fullScreen:o,"aria-labelledby":"draggable-dialog-title",children:jsx(Resizable,{enable:{left:false,right:true,bottomRight:true,bottom:true},maxHeight:pe-40,maxWidth:q,minWidth:o?"100vw":$,minHeight:o?"100vh":"300px",ref:l=>{X.current=l;},onResizeStart:()=>{T(true);},onResizeStop:()=>{T(false);},onResize:(l,u,z)=>{m(true),W({width:z.offsetWidth,height:z.offsetHeight});},defaultSize:{width:$,height:I},style:{background:"transparent",...o&&{height:"100% !important",width:"100% !important",flex:1},...o&&{position:"relative"}},children:jsxs(pt,{children:[jsx(motion.div,{style:{...o&&{height:ye,position:"fixed",zIndex:1e3}},animate:{width:d?E*2:E,...o&&{width:"100vw"},...!o&&{transform:`translateX(${d?-E:0}px)`}},transition:{duration:j,...B&&{duration:0}},children:jsx(Je,{title:d?"JSON Request & Response":"JSON Response",onClose:()=>s(),onMaximize:()=>{f(l=>!l),T(true),setTimeout(()=>{T(false);},j*1e3);},isHovered:Ut,onMouseHover:Xt,onMouseLeave:Qt,maximized:o,id:"draggable-dialog-title",onRequestClick:()=>{Ft(l=>!l),T(false),d||X.current?.updateSize({width:F,height:I});},isRequestExpanded:d,showRequestIcon:!!qe})}),jsxs(Box,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start",height:o?`calc(100vh - ${R}px)`:(Number(X.current?.state?.height)||I)-R+5,background:"transparent",position:"fixed",width:"100%"},children:[jsx(AnimatePresence,{children:d&&jsxs(motion.div,{initial:{left:o?"50vw":0,...o&&{position:"relative",left:"-50vw"}},animate:{left:o?"50vw":-E,...o&&{position:"relative",left:"0"},...!d&&{left:0}},exit:{left:o?"50vw":0,...o&&{position:"relative",left:"0"}},transition:{duration:j,...B&&{duration:0}},ref:Ve,style:{flex:1,backgroundColor:"#E7E7E7B2",backdropFilter:"blur(12px)",height:o?"100vh":"100%",overflowY:"auto",position:"absolute",width:o?"100vw":E,zIndex:19,display:"flex",flexDirection:"column",borderBottomLeftRadius:"12px"},onScroll:()=>{We(true),setTimeout(()=>{We(false);},2e3);},children:[jsxs(Ce,{isMaximized:o,isScrollingRequest:$t,sx:{background:"#E7E7E7B2"},isRequestShown:d,children:[jsx(Ie,{children:jsx(Se,{variant:"subtitle1",children:"API Request"})}),jsxs(Re,{children:[jsx(L,{value:P,onChange:Yt,currentIndex:Y.currentIndex,totalCount:Y.totalCount,onPrev:Y.goPrev,onNext:Y.goNext}),jsx(O,{disableAnimation:true,onClick:()=>{Kt(l=>!l);},icon:Oe?Cd:Bd}),jsx(O,{onClick:()=>{navigator.clipboard.writeText(JSON.stringify(t)).then(()=>{});},icon:ma}),jsx(O,{onClick:()=>{navigator.clipboard.writeText(t?.id||"").then(()=>{});},icon:ka})]})]}),P.trim()&&Le===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(C,{value:Le??a,style:at,displayDataTypes:false,collapsed:P.trim()?void 0:Oe?1:void 0,onCopied:(l,u)=>{typeof u=="string"&&je(u);},enableClipboard:false,children:[jsx(C.String,{render:ne(P)}),jsx(C.KeyName,{render:oe(P)}),jsx(C.CountInfo,{render:(l,{keyName:u})=>{if(!u)return jsx("span",{})}}),jsx(C.Copied,{render:({"data-copied":l,style:u,onClick:z},{keyName:de})=>de?jsxs(be,{style:u,onClick:ce=>{z?.(ce);},children:[jsx(AnimatePresence,{children:l&&jsx(motion.img,{style:{height:"14px",width:"14px"},initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:na,alt:"icon"},"id-icon")}),jsx(AnimatePresence,{children:!l&&jsx(motion.img,{style:{height:"14px",width:"14px"},initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:la,alt:"icon"},"id-icon")})]}):jsx("span",{})})]}),jsx(AnimatePresence,{children:d&&jsx(ve,{sx:{flex:1,height:R,left:0},children:jsx(c$2,{sx:{paddingLeft:"12px",borderBottomRightRadius:"0",background:"#f8f9fb",flex:1},totalCount:qe})})})]})}),jsxs(lt,{ref:ze,isMaximized:o,isRequestShown:d,style:{left:0,maxHeight:"100vw"},initial:{...o&&{width:"100vw",left:0}},animate:{...o&&{position:"absolute",left:d?"50vw":"0"}},transition:{duration:j,...B&&{duration:0}},onScroll:()=>{v(true),setTimeout(()=>{v(false);},2e3);},children:[jsxs(Ce,{isMaximized:o,isScrollingRequest:c,isRequestShown:d,children:[jsx(Ie,{children:jsx(Se,{variant:"subtitle1",children:"API Response"})}),jsxs(Re,{children:[jsx(L,{value:J,onChange:Gt,currentIndex:G.currentIndex,totalCount:G.totalCount,onPrev:G.goPrev,onNext:G.goNext}),jsx(O,{disableAnimation:true,onClick:()=>{S(l=>!l);},icon:w?Cd:Bd}),jsx(O,{onClick:()=>{navigator.clipboard.writeText(JSON.stringify(t,null,2)).then(()=>{});},icon:ma}),jsx(O,{onClick:()=>{navigator.clipboard.writeText(t?.id||"").then(()=>{});},icon:ka})]})]}),J.trim()&&De===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(C,{value:De??t,style:we,displayDataTypes:false,collapsed:J.trim()?void 0:w?1:void 0,onCopied:(l,u)=>{typeof u=="string"&&je(u);},children:[jsx(C.String,{render:ne(J)}),jsx(C.KeyName,{render:oe(J)}),jsx(C.CountInfo,{render:(l,{keyName:u})=>{if(!u)return jsx("span",{})}}),jsx(C.Copied,{render:({"data-copied":l,style:u,onClick:z},{keyName:de})=>de?jsxs(be,{style:u,onClick:ce=>{z?.(ce);},children:[jsx(AnimatePresence,{children:l&&jsx(motion.img,{style:{height:"14px",width:"14px"},initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:na,alt:"icon"},"id-icon")}),jsx(AnimatePresence,{children:!l&&jsx(motion.img,{style:{height:"14px",width:"14px"},initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:la,alt:"icon"},"id-icon")})]}):jsx("span",{})})]}),jsx(ve,{sx:{flex:1,height:R},children:jsx(c$2,{sx:{borderBottomLeftRadius:d?0:"12px",background:"#f8f9fb",flex:1},totalCount:eo})})]})]})]})})})})}var se=createContext({jsonViewerList:[],handleJsonViewerDialogOpen:()=>{},handleWindowMinimize:()=>{},handleWindowOrder:()=>{}});var Dt=({list:e,onClose:t,isWindowMinimized:a,windowOrder:n})=>e?.length?jsx(Fragment,{children:e.map((r,s)=>jsx(K,{index:s,json:r.json,requestJson:r?.requestJson,onClose:()=>{t(s);},isWindowMinimized:a,windowOrder:n},r.json.id))}):null;var Mo=({children:e})=>{let[t,a]=useState([]),[n,r]=useState(false),[s,o]=useState(1),f=useCallback(c=>{if(t.length===7){alert("Maximum allowed active Json Viewer is 7 per table.");return}if(t.some(B=>B.json.id===c.json.id))return;let v=structuredClone(c.json),k=v.request_body,W={json:v,requestJson:c.requestJson||k||void 0};delete W.json.request_body,a(B=>[...B,W]);},[t]),p=c=>{a(v=>v.filter((k,W)=>c!==W));},m=c=>{r(c);},w=c=>{o(c);},S=useMemo(()=>({jsonViewerList:t,handleJsonViewerDialogOpen:f,handleWindowMinimize:m,handleWindowOrder:w}),[t,f]);return jsxs(se.Provider,{value:S,children:[e,jsx(Dt,{list:t,onClose:p,isWindowMinimized:n,windowOrder:s})]})};var Ao=({isWindowMinimized:e,windowOrder:t})=>{let{handleJsonViewerDialogOpen:a,handleWindowMinimize:n,handleWindowOrder:r}=useContext(se),s=useCallback(()=>{n(e);},[n,e]),o=useCallback(()=>{r(t);},[r,t]);return useEffect(()=>{o();},[o]),useEffect(()=>{s();},[s]),{handleJsonViewerDialogOpen:a}};var Fr=K;export{O as a,L as b,M as c,Je as d,re as e,se as f,Dt as g,Mo as h,Ao as i,Fr as j};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$2}from'./chunk-A5FGRP2T.js';import {a as a$1}from'./chunk-CNIYZZCP.js';import {mi}from'./chunk-
|
|
1
|
+
import {a as a$2}from'./chunk-A5FGRP2T.js';import {a as a$1}from'./chunk-CNIYZZCP.js';import {mi}from'./chunk-NSFZTMX6.js';import {memo}from'react';import i from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var a=styled(i)(({theme:e})=>({border:`1px solid ${e.palette.divider}`,background:"#FBFBFB",borderRadius:"8px",fontSize:"11px",display:"flex",flexDirection:"column",height:"233px",transform:"scale(1)"})),s=styled(i)(({theme:e})=>({padding:"8px 12px",borderBottom:`1px solid ${e.palette.divider}`,display:"flex",justifyContent:"space-between",alignItems:"center",height:39,flexShrink:0,overflow:"visible"})),l=styled(i)(({theme:e})=>({color:e.palette.text.primary,fontSize:"11px",fontWeight:600,textTransform:"capitalize"})),x=styled(i)(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:"12px",paddingBottom:"12px",paddingInlineStart:"12px",paddingInlineEnd:"8px",borderBottom:`1px solid ${e.palette.divider}`,height:40})),c=styled(a$1)(({theme:e})=>({color:e.palette.text.primary,fontSize:"11px",fontWeight:500,lineHeight:"13.2px"})),f=styled(i)(()=>({display:"flex",alignItems:"center",gap:"8px"})),g=styled(i)(()=>({display:"flex",alignItems:"center",gap:"4px"})),y=styled(i)(()=>({borderRadius:"8px",overflow:"auto",flexGrow:1,height:"100%",listStyle:"none",margin:0,padding:0,".list-item:last-of-type":{borderBottom:"none"}}));styled(i)(()=>({margin:"12px "}));function L({children:e,...t}){return jsx(a,{component:"article","data-testid":"Widget",...t,children:e})}var I=memo(L);function R({children:e,action:t,...r}){return jsxs(s,{"data-testid":"Widget_WidgetHeader",component:"header",...r,children:[jsx(l,{children:e}),t&&t]})}var b=memo(R);function v({allowShadow:e=true,children:t,...r}){let{onScrollHandler:d,showShadow:h}=a$2();return jsxs(y,{component:"ul","data-testid":"Widget_List",onScroll:d,...r,children:[t,h&&e&&jsx(i,{component:"img",src:mi,sx:{width:"100%",position:"fixed",bottom:0,pointerEvents:"none",right:0,left:0}})]})}var z=memo(v);function A({children:e,icon:t,actions:r,...d}){return jsxs(x,{component:"li","data-testid":"Widget_ListItem",className:`list-item ${d.className}`,...d,children:[jsxs(f,{component:"aside",children:[t&&t,jsx(c,{noWrap:true,className:"content",children:e})]}),r&&jsx(g,{component:"aside",children:r})]})}var E=memo(A);var ce=I;export{b as a,z as b,E as c,ce as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import'./chunk-
|
|
1
|
+
import'./chunk-FQIF3FUU.js';import {a}from'./chunk-SQRZEIOF.js';import {memo}from'react';import n from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsx,Fragment}from'react/jsx-runtime';var x="32px";var m=styled(n,{shouldForwardProp:e=>e!=="isMaximized"})(({theme:e,isMaximized:o})=>({background:alpha(e.palette.common.white,.7),backdropFilter:"blur(8px)",width:183,position:"sticky",padding:"16px 8px",paddingTop:o?x:"16px",height:"100%",overflow:"auto"})),u=styled(n)(()=>({display:"flex",flexDirection:"column",gap:"8px"})),l=styled(n,{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",fontWeight:600})),s=styled(n,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:o})=>({background:o?"#FFFFFF":"transparent",borderRadius:"4px",padding:"4px 8px",color:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer",fontWeight:600}));function B({sections:e,isMaximized:o,onClick:p,activeSection:b,activeSubSection:S}){let d=b||e?.[0]?.id,g=S||e?.[0]?.subSections?.[0]?.id;return jsx(m,{isMaximized:o,children:jsx(u,{children:e?.map(t=>jsx(a,{defaultExpanded:d===t.id,summarySx:{padding:0,minHeight:0,marginBottom:"4px",borderRadius:"4px !important","& .MuiAccordionSummary-content":{margin:"0 !important"}},sx:{background:"transparent",border:"none !important","&.MuiAccordion-root":{borderRadius:"4px !important"}},Header:jsx(s,{onClick:()=>{p?.(t.id,t.subSections?.[0]?.id);},isActive:d===t.id,children:t.title},t.id),children:jsx(Fragment,{children:t.subSections?.map(i=>jsx(l,{onClick:()=>{p?.(t.id,i.id);},isActive:g===i.id,children:i.title},`${t.id}-${i.id}`))})},`${t.id}`))})})}var f=memo(B);var P=f;export{P as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-RII4OL3F.js';import {memo,useCallback,Fragment as Fragment$1,createElement}from'react';import {useTranslation}from'react-i18next';import {jsx,Fragment}from'react/jsx-runtime';function A({isFilteredIdsShown:i,availableStatuses:f,status:e,onStatusChange:l,buttonSx:S}){let{t:v}=useTranslation(),I=useCallback(s=>s===e&&!i?"active":"inActive",[e,i]),u=useCallback(s=>{l?.(s);},[l]);return jsx(Fragment,{children:f?.map(({render:s,...a$1},d)=>{if(s)return jsx(Fragment$1,{children:s({status:e,onChange:u},{...a$1,index:d})},`custom-status-slot-${d}`);if(!Array.isArray(a$1.status))return createElement(a,{...a$1,key:`status-button-array-${a$1.status}`,variant:I(a$1.status),onClick:()=>{Array.isArray(a$1.status)||u(a$1.status);},buttonSx:S});if(!a$1.status)return null;let o=a$1.status.filter(Boolean).map(t=>typeof t=="string"?{value:t}:t)||[],m=!!e&&o.some(t=>t?.value===e);return jsx("div",{children:jsx(a,{...a$1,selectedStatus:m?e:void 0,variant:m?"active":"inActive",onButtonBodyClick:t=>u(t),dropdownOptions:o.map(t=>({label:t?.label||v(t?.value||""),status:t?.value,icon:t.icon,onClick:()=>u(t.value)})),buttonSx:S})},o[0]?.value)})})}var c=memo(A);var $=c;export{$ as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-CNIYZZCP.js';import {_c,qh,rh,sh,th,uh}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-CNIYZZCP.js';import {_c,qh,rh,sh,th,uh}from'./chunk-NSFZTMX6.js';import {memo}from'react';import i from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var y=styled(i)(({theme:o})=>({display:"flex",gap:o.spacing(1),insetInlineStart:o.spacing(1.25),zIndex:1}));styled(i)(({theme:o})=>({width:12,height:12,borderRadius:"50%",cursor:"pointer",backgroundColor:`${o.palette.grey[200]}14`,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease-in-out",img:{opacity:"0",transition:"all 0.2s ease-in-out"},"&:active":{backgroundColor:`${o.palette.grey[200]} !important`}}));var b=styled(i)(({theme:o})=>({display:"flex",height:"2rem",justifyContent:"space-between",alignItems:"center",width:"100%",paddingLeft:o.spacing(1.25),paddingRight:o.spacing(1.25),"& > *":{flex:"1 1 0px;"}})),f=styled("div",{shouldForwardProp:o=>o!=="sandboxMode"&&o!=="maximized"&&o!=="isDragging"})(({maximized:o,isDragging:e})=>({...!o&&{borderTopRightRadius:12,borderTopLeftRadius:12},...e&&{cursor:"move"},margin:0})),U=styled(i,{shouldForwardProp:o=>o!=="maximized"&&o!=="isDragging"})(({isDragging:o})=>({...o&&{cursor:"move"},margin:0})),u=styled(i,{shouldForwardProp:o=>o!=="maximized"&&o!=="isHovered"})(({theme:o,maximized:e})=>({height:32,position:"relative",display:"flex",width:"100%",justifyContent:"center",transition:"all 0.5s ease-in-out",borderTopLeftRadius:"12px",borderTopRightRadius:"12px",...e&&{display:"block !important",position:"fixed",right:0,left:0,zIndex:999,background:"transparent",".toolbar-wrapper":{display:"flex",justifyContent:"space-between",gap:10,alignItems:"center",position:"absolute",right:0,left:0,height:"2rem",".action-box":{visibility:"hidden"}},"&:hover":{".toolbar-wrapper":{top:0},".action-box":{visibility:"visible"}}},":hover":{".header-icon":{backgroundColor:`${o.palette.grey[200]}40`},".header-icon img":{opacity:1}}})),P=styled(f)(()=>({position:"sticky",top:0,left:0,right:0,zIndex:1e3,background:"#eaeaea",backdropFilter:"blur(32px)"}));var w=styled(a)(({theme:o})=>({fontSize:"10px",color:"rgba(32, 35, 43, 0.5)",opacity:.7,textAlign:"left",fontWeight:o.typography.fontWeightBold,lineHeight:"14px",userSelect:"none",paddingLeft:"0.175rem",textTransform:"capitalize"})),h=styled("div")(()=>({display:"flex",justifyContent:"center",alignItems:"center",position:"relative",textAlign:"center"})),I=styled("img")(()=>({width:14,height:14,verticalAlign:"center"}));var S=new Map([["json",_c],["brand",qh],["entity",rh],["bank",sh],["individual",th],["password",uh]]);function R({title:o,icon:e}){let n=S.get(e||"")??(S.get(o?.toLowerCase())||e);return jsxs(h,{className:"action-box",children:[n&&jsx(I,{src:n,alt:"icon"}),jsx(w,{className:"title",children:o})]})}var T=R;var W=T;function D({onMouseEnter:o,onMouseLeave:e,isMaximized:n,isHovered:z,children:M,rightActions:A,leftActions:d,title:B,icon:H,...C}){return jsx(u,{onMouseEnter:o,onMouseLeave:e,maximized:n,id:"toolbar",isHovered:z,...C,children:jsxs(b,{className:"toolbar-wrapper",children:[d?jsx(y,{className:"action-box",children:d}):jsx("div",{}),jsx(W,{title:B,icon:H}),A||jsx("div",{})]})})}var k=memo(D);var no=k;export{f as a,U as b,P as c,W as d,no as e};
|