@tap-payments/os-micro-frontend-shared 0.3.260 → 0.3.262
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/_chunks/{chunk-FGDCJZ3X.js → chunk-2YNDLGG6.js} +1 -1
- package/build/_chunks/{chunk-PMZXK7AV.js → chunk-334EPCW5.js} +1 -1
- package/build/_chunks/{chunk-HOB73IFX.js → chunk-3CMVSEFO.js} +1 -1
- package/build/_chunks/{chunk-L3EMEP6P.js → chunk-44P3BD62.js} +1 -1
- package/build/_chunks/{chunk-5FDHDAD5.js → chunk-4HUB6MWM.js} +1 -1
- package/build/_chunks/{chunk-VXCS5OYH.js → chunk-4YB6A7BD.js} +2 -2
- package/build/_chunks/{chunk-SHSXXDT3.js → chunk-53C2M4NA.js} +1 -1
- package/build/_chunks/{chunk-ZHHV7H27.js → chunk-5BAFTVZQ.js} +1 -1
- package/build/_chunks/{chunk-YVARRHGF.js → chunk-5DFEQLOX.js} +1 -1
- package/build/_chunks/{chunk-MUX6L6UH.js → chunk-5VRO5GY3.js} +1 -1
- package/build/_chunks/{chunk-7FEEIN4K.js → chunk-637B2KTR.js} +1 -1
- package/build/_chunks/{chunk-7MPS3LPQ.js → chunk-6BFV6NCN.js} +1 -1
- package/build/_chunks/{chunk-S7ZWSYE3.js → chunk-6IAMZFT6.js} +1 -1
- package/build/_chunks/chunk-74TIGJAP.js +1 -0
- package/build/_chunks/{chunk-PPKQ2WIH.js → chunk-7SNHZ7VW.js} +1 -1
- package/build/_chunks/chunk-7ZWAT3EG.js +1 -0
- package/build/_chunks/{chunk-C675MBFT.js → chunk-ALZSCMJI.js} +1 -1
- package/build/_chunks/chunk-B76NSJAU.js +2 -0
- package/build/_chunks/{chunk-6XY523X7.js → chunk-BFVDSVFM.js} +1 -1
- package/build/_chunks/chunk-BJRQ4GM3.js +1 -0
- package/build/_chunks/{chunk-EMGMIMZW.js → chunk-BTE72W4R.js} +1 -1
- package/build/_chunks/{chunk-JMJ4AB2H.js → chunk-C5EKTMXI.js} +1 -1
- package/build/_chunks/{chunk-432AU5UC.js → chunk-CDBXA7HF.js} +1 -1
- package/build/_chunks/{chunk-GYHZKV2M.js → chunk-D43ULOY2.js} +1 -1
- package/build/_chunks/{chunk-M3UPFS34.js → chunk-DS6S5G66.js} +1 -1
- package/build/_chunks/{chunk-NTWNTREL.js → chunk-EB24OXAG.js} +1 -1
- package/build/_chunks/{chunk-ILP5V6AY.js → chunk-EG32DA46.js} +1 -1
- package/build/_chunks/{chunk-YWQOCJ33.js → chunk-EQVNNGL6.js} +1 -1
- package/build/_chunks/{chunk-775RXXJO.js → chunk-ESRTU72R.js} +1 -1
- package/build/_chunks/{chunk-5GJBO3YH.js → chunk-FOSRKOWU.js} +1 -1
- package/build/_chunks/{chunk-G55K3EQ5.js → chunk-HBR7P4LZ.js} +1 -1
- package/build/_chunks/{chunk-6TR2DWQY.js → chunk-HWDXYAQY.js} +1 -1
- package/build/_chunks/chunk-I3LSSBRI.js +1 -0
- package/build/_chunks/{chunk-HPJ7XG2L.js → chunk-IA5IEBOH.js} +1 -1
- package/build/_chunks/chunk-IQAHULGQ.js +2 -0
- package/build/_chunks/{chunk-WIKFNDGA.js → chunk-IRBWQZSH.js} +1 -1
- package/build/_chunks/{chunk-WV7SD6EB.js → chunk-JWLIHVLP.js} +1 -1
- package/build/_chunks/{chunk-KNELBV43.js → chunk-JZN7D44A.js} +1 -1
- package/build/_chunks/{chunk-K5D5X7HP.js → chunk-K43ZLU4I.js} +1 -1
- package/build/_chunks/{chunk-YPYTJOXU.js → chunk-L3QJZAXC.js} +1 -1
- package/build/_chunks/{chunk-7XVKL6SF.js → chunk-LEFLUMTS.js} +1 -1
- package/build/_chunks/{chunk-CBFESEDG.js → chunk-LJY75SQY.js} +1 -1
- package/build/_chunks/{chunk-EJO4WKI2.js → chunk-MBC5H6W7.js} +1 -1
- package/build/_chunks/{chunk-BC25WMMG.js → chunk-MGH52F2U.js} +1 -1
- package/build/_chunks/{chunk-4QIPVL6E.js → chunk-MQT2XWOM.js} +1 -1
- package/build/_chunks/{chunk-YHVDEMFJ.js → chunk-NCG4PCDH.js} +1 -1
- package/build/_chunks/{chunk-ZWUUBIWY.js → chunk-NW7HJXBW.js} +2 -2
- package/build/_chunks/{chunk-5DTBFC3A.js → chunk-OGVYYV4P.js} +1 -1
- package/build/_chunks/{chunk-2YMYAWCC.js → chunk-OL6PQPSI.js} +1 -1
- package/build/_chunks/{chunk-ZD6TAU5U.js → chunk-PGRQEN5C.js} +1 -1
- package/build/_chunks/{chunk-4VBZTH2N.js → chunk-PNIR4GUC.js} +1 -1
- package/build/_chunks/{chunk-BAZGWIYZ.js → chunk-Q6AL55UP.js} +1 -1
- package/build/_chunks/{chunk-SCF7O6LM.js → chunk-QNBOZQDY.js} +1 -1
- package/build/_chunks/{chunk-M6DYP2YE.js → chunk-SNCNXCPA.js} +1 -1
- package/build/_chunks/{chunk-W5RR6EGR.js → chunk-T7FK7EI2.js} +1 -1
- package/build/_chunks/{chunk-NKEFRBRL.js → chunk-TC4ME6DZ.js} +1 -1
- package/build/_chunks/{chunk-XPYGXAG6.js → chunk-TDNUHD3F.js} +1 -1
- package/build/_chunks/{chunk-J2MMQVOY.js → chunk-TYMPXKFT.js} +1 -1
- package/build/_chunks/{chunk-ZU3S5VIX.js → chunk-UPSV4H3R.js} +1 -1
- package/build/_chunks/{chunk-ZUNT24MF.js → chunk-VDOQXEUT.js} +1 -1
- package/build/_chunks/{chunk-NOXZCUMA.js → chunk-WHPBDYOY.js} +1 -1
- package/build/_chunks/{chunk-N67MMA4O.js → chunk-WYJOH2AK.js} +1 -1
- package/build/_chunks/chunk-XK6PKLJK.js +1 -0
- package/build/_chunks/{chunk-IDBF3K7I.js → chunk-Y2GYQNCW.js} +1 -1
- package/build/_chunks/{chunk-B6B4H2AM.js → chunk-Y7SE3WMR.js} +1 -1
- package/build/_chunks/{chunk-2XLWLPSP.js → chunk-YFIYVG7E.js} +1 -1
- package/build/_chunks/{chunk-V535NYRB.js → chunk-YROLX5D7.js} +1 -1
- package/build/_chunks/{chunk-BZZJ4W2H.js → chunk-ZRRZG4CU.js} +1 -1
- package/build/_chunks/{chunk-HXPKYITJ.js → chunk-ZT35MSJQ.js} +1 -1
- package/build/_chunks/{chunk-XSMQJ22A.js → chunk-ZZPTXUPF.js} +1 -1
- package/build/components/ActionsDropdownMenu/index.js +1 -1
- package/build/components/Alert/index.js +1 -1
- package/build/components/AppServices/index.js +1 -1
- package/build/components/AppServicesBar/index.js +1 -1
- package/build/components/AppWindowWrapper/index.js +1 -1
- package/build/components/AreaChart/index.js +1 -1
- package/build/components/Autocomplete/index.js +1 -1
- package/build/components/AvatarStack/index.js +1 -1
- package/build/components/Calender/index.js +1 -1
- package/build/components/Card/index.js +1 -1
- package/build/components/CardList/CardList.d.ts +4 -0
- package/build/components/CardList/CardListItem.d.ts +4 -0
- package/build/components/CardList/constants.d.ts +15 -0
- package/build/components/CardList/index.d.ts +4 -0
- package/build/components/CardList/index.js +1 -0
- package/build/components/CardList/style.d.ts +13 -0
- package/build/components/CardList/type.d.ts +33 -0
- package/build/components/ColorPicker/index.js +1 -1
- package/build/components/ColumnViews/index.js +1 -1
- package/build/components/ConfirmDialog/index.js +1 -1
- package/build/components/CountryFilter/index.js +1 -1
- package/build/components/CountryFlag/index.js +1 -1
- package/build/components/CurrenciesMenu/index.js +1 -1
- package/build/components/CurrencyAmount/index.js +1 -1
- package/build/components/CurrencyAmountInput/index.js +1 -1
- package/build/components/CurrencySymbol/index.js +1 -1
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/DeviceIcon/index.js +1 -1
- package/build/components/DropdownMenu/index.js +1 -1
- package/build/components/EmptyState/index.js +1 -1
- package/build/components/ErrorToast/index.js +1 -1
- package/build/components/FileDropbox/index.js +1 -1
- package/build/components/FilePreview/index.js +1 -1
- package/build/components/FileUploader/index.js +1 -1
- package/build/components/FilterChip/index.js +1 -1
- package/build/components/FilterDropdown/index.js +1 -1
- package/build/components/Filters/index.js +1 -1
- package/build/components/FlippingCard/index.js +1 -1
- package/build/components/FormSelect/index.js +1 -1
- package/build/components/GroupedSelect/index.js +1 -1
- package/build/components/HeatMap/index.js +1 -1
- package/build/components/InputBase/index.js +1 -1
- package/build/components/Inputs/index.js +1 -1
- package/build/components/JSONViewer/index.js +1 -1
- package/build/components/LeftPeekRightExpandingChip/index.js +1 -1
- package/build/components/ListColumnFilter/index.js +1 -1
- package/build/components/ListHeader/index.js +1 -1
- package/build/components/ListLayout/index.js +1 -1
- package/build/components/Loader/index.js +1 -1
- package/build/components/Logo/index.js +1 -1
- package/build/components/MFWidgetLoader/index.js +1 -1
- package/build/components/MaskedText/index.js +1 -1
- package/build/components/MultiSelect/index.js +1 -1
- package/build/components/NestedDropdown/index.js +1 -1
- package/build/components/NestedMultiSelect/index.js +1 -1
- package/build/components/PhoneFilter/index.js +1 -1
- package/build/components/PhoneInput/index.js +1 -1
- package/build/components/ProgressRing/index.js +1 -1
- package/build/components/RadioGroup/index.js +1 -1
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/RatingCount/index.js +1 -1
- package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
- package/build/components/SearchButton/index.js +1 -1
- package/build/components/SearchInput/index.js +1 -1
- package/build/components/SheetViewChip/index.js +1 -1
- package/build/components/Sidebar/index.js +1 -1
- package/build/components/StatusBar/index.js +1 -1
- package/build/components/StatusButton/index.js +1 -1
- package/build/components/StatusFilter/index.js +1 -1
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/StatusLabel/index.js +1 -1
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TableReports/index.js +1 -1
- package/build/components/TextInput/index.js +1 -1
- package/build/components/Timepicker/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/VerificationIcon/index.js +1 -1
- package/build/components/VirtualTables/index.js +1 -1
- package/build/components/index.d.ts +1 -1
- package/build/components/index.js +1 -1
- package/build/components/primitives/index.js +1 -1
- package/build/constants/assets.d.ts +0 -1
- package/build/constants/index.js +1 -1
- package/build/datetime/components/index.js +1 -1
- package/build/hooks/index.js +1 -1
- package/build/index.js +1 -1
- package/build/utils/index.d.ts +0 -1
- package/build/utils/index.js +1 -1
- package/package.json +1 -1
- package/build/_chunks/chunk-3SAFFK2C.js +0 -1
- package/build/_chunks/chunk-4QNW7VH5.js +0 -1
- package/build/_chunks/chunk-LTL5R3YV.js +0 -1
- package/build/_chunks/chunk-QIUY5JIM.js +0 -1
- package/build/_chunks/chunk-ULNUB36F.js +0 -2
- package/build/_chunks/chunk-YFXI2RFV.js +0 -1
- package/build/_chunks/chunk-ZTNJXPMT.js +0 -2
- package/build/components/Widget/List.d.ts +0 -9
- package/build/components/Widget/ListItem.d.ts +0 -11
- package/build/components/Widget/index.d.ts +0 -3
- package/build/components/Widget/index.js +0 -1
- package/build/components/Widget/style.d.ts +0 -19
- package/build/utils/navigation.d.ts +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
import {c as c$2}from'./chunk-MUX6L6UH.js';import {m,a as a$2}from'./chunk-4QIPVL6E.js';import {c,d}from'./chunk-6XY523X7.js';import {a,c as c$1,d as d$1}from'./chunk-ILP5V6AY.js';import {a as a$1,b}from'./chunk-M3UPFS34.js';import {An,ta,el,fl,wi,Jk,A,Vd,xe,we as we$1,sa,qa,ra}from'./chunk-ZTNJXPMT.js';import Gt,{memo,createContext,useState,useRef,useId,useMemo,useCallback,useEffect,useContext}from'react';import {styled,Popover,Input,Typography,Box}from'@mui/material';import C from'@uiw/react-json-view';import {motion,AnimatePresence}from'framer-motion';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import Xt from'@mui/material/Box';import {useTranslation}from'react-i18next';import {styled as styled$1}from'@mui/material/styles';var R=37,M=545;styled(Popover)(({theme:e})=>({backgroundColor:e.palette.background.default,boxShadow:e.shadows[21],"& .MuiPaper-root":{borderRadius:"12px"}}));var Kt=44,ce={"--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% - ${Kt+R}px`,overflow:"auto"},Ye={...ce,background:"transparent","--w-rjv-line-color":"transparent"},Xe=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})),Qe=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 ue=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"})),fe=styled(Box,{shouldForwardProp:e=>!["isMaximized","isScrollingRequest","isRequestShown"].includes(e)})(({isScrollingRequest:e,isMaximized:t,isRequestShown:r,theme:o})=>({display:"flex",justifyContent:"space-between",alignItems:"center",gap:"4px",paddingBlock:"0px",paddingInlineStart:"12px",paddingInlineEnd:"12px",position:"sticky",left:0,right:0,top:0,background:"#fff",zIndex:5,...e&&{boxShadow:o.shadows[23]},...t&&{paddingTop:An,transition:"padding 0.3s ease-in-out",...r&&{width:"50%"}}})),me=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}})),ge=styled(Box)(()=>({display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"4px",paddingBlock:"10px",paddingInlineStart:"8px",paddingInlineEnd:"0px"})),he=styled(Box)(()=>({display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"4px",paddingBlock:"10px",paddingInlineStart:"0px",paddingInlineEnd:"12px"})),Ue=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||M)-R+5,background:"transparent",position:"fixed",width:"100%"}));var Ze=styled(Box)(()=>({position:"fixed",width:"100%",background:"transparent",height:"100%"})),et=styled("span")(()=>({color:"#032F62"})),tt=styled("span")(()=>({color:"#357fb9"}));function G({"data-copied":e,style:t,onClick:r},{keyName:o}){return o?jsxs(Qe,{style:t,onClick:n=>{r?.(n);},children:[jsx(AnimatePresence,{children:e&&jsx(motion.img,{style:{height:"14px",width:"14px"},initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:ta,alt:"icon"},"copied-icon")}),jsx(AnimatePresence,{children:!e&&jsx(motion.img,{style:{height:"14px",width:"14px"},initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:ra,alt:"icon"},"copy-icon")})]}):jsx("span",{})}function Ut({onClick:e,icon:t,label:r,disableAnimation:o,...n}){let[i,l]=Gt.useState(false),{t:p}=useTranslation();return jsxs(Xe,{...n,onClick:d=>{e?.(d),!o&&(l(true),setTimeout(()=>{l(false);},2e3));},children:[jsxs(Xt,{sx:{width:"16px",display:"flex",overflow:"hidden",justifyContent:"center",alignItems:"center"},children:[jsx(AnimatePresence,{mode:"wait",children:i&&jsx(motion.img,{initial:{opacity:0},animate:{opacity:1,transition:{duration:.4}},exit:{opacity:0,transition:{duration:.1}},transition:{duration:.4},src:ta,alt:"icon"},"id-icon")}),jsx(AnimatePresence,{mode:"wait",children:!i&&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")})]}),r&&jsxs(Fragment,{children:[jsx(AnimatePresence,{children:i&&jsx(motion.span,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,position:"absolute"},transition:{duration:.4},children:p("copied")})}),jsx(AnimatePresence,{children:!i&&jsx(motion.span,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,position:"absolute",width:"53px"},transition:{duration:.4},children:r})})]})]})}var rt=memo(Ut);var B=rt;var it=styled$1("div")(()=>({display:"flex",alignItems:"center",position:"relative",flexShrink:0,width:"24px",height:"24px"})),st=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}`}})),at=styled$1(motion.div)(()=>({position:"absolute",right:0,top:0,height:"24px",display:"flex",alignItems:"center",zIndex:20,background:"transparent"})),lt=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"}})),ye={position:"absolute",top:"50%",transform:"translateY(-50%)",zIndex:2,userSelect:"none"},pt={...ye,background:"none",border:"none",padding:0,margin:0,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",outline:"none","&:disabled":{opacity:.3,cursor:"default"}},dt=styled$1("button")(()=>({...pt,right:53})),ct=styled$1("button")(()=>({...pt,right:39})),ut=styled$1(motion.img)(()=>({...ye,right:24,width:10,height:10,cursor:"pointer"})),ft=styled$1(motion.img)(()=>({...ye,right:8,width:11,height:11,cursor:"default"})),we=styled$1("img")(()=>({width:10,height:10})),mt=styled$1("img")(()=>({width:12,height:12})),gt=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 ro({value:e,onChange:t,currentIndex:r,totalCount:o,onPrev:n,onNext:i,onOpen:l,placeholder:p="Search..."}){let[s,d]=useState(false),g=useRef(null),m=e.trim().length>0,w=o>0,x=m,b=()=>{l?.(),d(true),requestAnimationFrame(()=>g.current?.focus());},S=()=>{t(""),d(false);};return jsxs(it,{children:[jsx(AnimatePresence,{children:s&&jsxs(at,{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(lt,{ref:g,initial:false,animate:{paddingRight:x?"98px":"24px"},transition:{duration:.15},placeholder:p,value:e,onChange:u=>t(u.target.value),onKeyDown:u=>{u.key==="Enter"&&(u.shiftKey?n():i()),u.key==="Escape"&&S();},onBlur:()=>{m||d(false);}}),x&&jsx(dt,{onClick:n,disabled:!w,title:"Previous match (Shift+Enter)",children:jsx(we,{src:el,alt:"prev"})}),x&&jsx(ct,{onClick:i,disabled:!w,title:"Next match (Enter)",children:jsx(we,{src:fl,alt:"next"})}),x&&jsx(ut,{src:wi,alt:"clear",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:S}),jsx(ft,{src:Jk,alt:"search",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}}),x&&jsx(gt,{children:w?`${r+1}/${o}`:"0/0"})]},"input-area")}),jsx(AnimatePresence,{children:!s&&jsx(motion.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.15},children:jsx(st,{isActive:false,onClick:b,title:"Search",children:jsx(mt,{src:A,alt:"search"})})})})]})}var z=memo(ro);function yt(e,t){let r=[],o=t.length,n=0,i=e.indexOf(t,n);for(;i!==-1;){let l=i+o;r.push([i,l]),n=l,i=e.indexOf(t,n);}return r}var io={padding:0,outline:"none"};function bt({text:e,queryLength:t,ranges:r,idPrefix:o}){let n=[],i=0;return r.forEach(([l,p],s)=>{l>i&&n.push(e.slice(i,l)),n.push(jsx("mark",{style:io,children:e.slice(l,l+t)},`${o}-${s}`)),i=p;}),i<e.length&&n.push(e.slice(i)),jsx(Fragment,{children:n})}function T({text:e,query:t}){let r=useId(),o=useMemo(()=>t.trim().toLowerCase(),[t]),n=useMemo(()=>{if(!o)return e;let i=e.toLowerCase(),l=yt(i,o);return l.length===0?e:jsx(bt,{text:e,queryLength:t.length,ranges:l,idPrefix:r})},[e,t.length,o,r]);return jsx(Fragment,{children:n})}function U(e,t){return e.toLowerCase().includes(t)}function Z(e){return e.trim().toLowerCase()}function ee(e){let t=Z(e);return (r,{keyName:o})=>{if(!t||!o)return;let n=String(o);if(U(n,t))return jsx(tt,{children:jsx(T,{text:String(o),query:e})})}}function te(e){let t=Z(e);return (r,{value:o})=>{if(!t)return;let n=String(o??"");if(U(n,t))return jsxs(et,{children:['"',jsx(T,{text:String(o??""),query:e}),'"']})}}function fo({title:e,onClose:t,onMaximize:r,maximized:o=false,id:n,onMouseHover:i,onMouseLeave:l,onRequestClick:p,isRequestExpanded:s=false,showRequestIcon:d$2=false,isHovered:g=false}){return jsx(c,{id:n,maximized:o||false,children:jsx(d,{isHovered:true,onMouseEnter:i,onMouseLeave:l,isMaximized:o,title:e,icon:Vd,leftActions:jsxs(Fragment,{children:[jsx(a,{onClick:t}),jsx(c$1,{isMaximized:o,onClick:r}),d$2&&jsx(d$1,{onClick:p,isExpanded:s,isHovered:g,children:"Request"})]})})})}var It=memo(fo);var be=It;var H=createContext({jsonViewerList:[],handleJsonViewerDialogOpen:()=>{},handleWindowMinimize:()=>{},handleWindowOrder:()=>{},registerJsonViewerEvents:()=>{},containerRef:{current:null}});var Jt=({list:e,events:t,onClose:r,isWindowMinimized:o,windowOrder:n})=>e?.length?jsx(Fragment,{children:e.map((i,l)=>jsx(q,{index:l,...t,...i,onClose:()=>{r(l);},isWindowMinimized:o,windowOrder:n},i.json.id))}):null;var wo=({children:e,containerRef:t})=>{let[r,o]=useState([]),[n,i]=useState(false),[l,p]=useState(1),s=useRef({}),d=useCallback(c=>{if(r.length===7){alert("Maximum allowed active Json Viewer is 7 per table.");return}if(r.some(N=>N.json.id===c.json.id))return;let O=structuredClone(c.json),V=O.request_body,u={...c,json:O,requestJson:c.requestJson||V||void 0};delete u.json.request_body,o(N=>[...N,u]);},[r]),g=useCallback(c=>{o(O=>O.filter((V,u)=>c!==u));},[]),m=useCallback(c=>{i(c);},[]),w=useCallback(c=>{p(c);},[]),x=useCallback(c=>{s.current=c;},[]),b=useMemo(()=>({onJsonRequestOpen:()=>s.current.onJsonRequestOpen?.(),onJsonSearch:()=>s.current.onJsonSearch?.(),onJsonCopy:()=>s.current.onJsonCopy?.(),onJsonIdCopy:()=>s.current.onJsonIdCopy?.(),onJsonNodesMinimize:()=>s.current.onJsonNodesMinimize?.(),onJsonNodesMaximize:()=>s.current.onJsonNodesMaximize?.()}),[]),S=useMemo(()=>({jsonViewerList:r,handleJsonViewerDialogOpen:d,handleWindowMinimize:m,handleWindowOrder:w,registerJsonViewerEvents:x,containerRef:t}),[r,d,m,w,x,t]);return jsxs(H.Provider,{value:S,children:[e,jsx(Jt,{list:r,events:b,onClose:g,isWindowMinimized:n,windowOrder:l})]})};var Tt="#FFE20B";function oe(e,t){let[r,o]=useState(0),[n,i]=useState(0);useEffect(()=>{if(!t.trim()){i(0),o(0);return}let s=setTimeout(()=>{let d=e.current?.querySelectorAll("mark")??[];i(d.length),o(0);},50);return ()=>clearTimeout(s)},[t,e]),useEffect(()=>{if(!e.current||!t.trim())return;let s=Array.from(e.current.querySelectorAll("mark"));s.forEach((d,g)=>{let m=g===r;d.style.backgroundColor=m?Tt:"transparent",d.style.outline=m?`1px solid ${Tt}`:"none",d.style.borderRadius="2px";}),s[r]?.scrollIntoView({behavior:"smooth",block:"nearest"});},[r,n,t,e]);let l=useCallback(()=>{n!==0&&o(s=>(s+1)%n);},[n]),p=useCallback(()=>{n!==0&&o(s=>(s-1+n)%n);},[n]);return {currentIndex:r,totalCount:n,goNext:l,goPrev:p}}function Et(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 Vt(e,t){if(Array.isArray(e)){let r=e.map(o=>Vt(o,t)).filter(o=>o!=null);return r.length>0?r:null}return typeof e=="object"&&e!==null?Wt(e,t):Et(e,t)?e:null}function Wt(e,t){let r={};for(let[o,n]of Object.entries(e))if(o.toLowerCase().includes(t))r[o]=n;else if(typeof n=="object"&&n!==null){let i=Vt(n,t);i!==null&&(r[o]=i);}else Et(n,t)&&(r[o]=n);return Object.keys(r).length>0?r:null}function Ce(e,t){return t.trim()?Wt(e,t.toLowerCase()):e}var L=400,re=.5;function q(e){let{containerRef:t}=useContext(H),{height:r,width:o}=a$1(),[n,i]=useState(false);return jsx(m,{isOpen:true,onClose:e.onClose,containerRef:t,defaultWindowWidth:L,defaultWindowHeight:M,minHeight:300,windowZIndex:3,initialPosition:{x:o/2-L/4+e.index*20,y:r/2-M/2+e.index*30},windowProps:{mainAppOrder:e.windowOrder,mainAppIsMinimized:e.isWindowMinimized,overflow:"visible",titleBar:jsx(Co,{...e,isRequestShown:n,setIsRequestShown:i})},children:jsx(vo,{...e,isRequestShown:n})})}function Co({requestJson:e={},onClose:t,onJsonRequestOpen:r,isRequestShown:o,setIsRequestShown:n}){let{isMaximized:i,setIsMaximized:l,isToolbarAnimationDisabled:p,setIsToolbarAnimationDisabled:s,dimensions:d,updateSize:g}=useContext(a$2),{onMouseEnter:m,onMouseLeave:w,isHovered:x}=b(),b$1=d.width||L,S=Object.keys(e)?.length;return jsx(motion.div,{style:{...i&&{height:An,position:"fixed",zIndex:1e3}},animate:{width:o?b$1*2:b$1,...i&&{width:"100vw"},...!i&&{transform:`translateX(${o?-b$1:0}px)`}},transition:{duration:re,...p&&{duration:0}},children:jsx(be,{title:o?"JSON Request & Response":"JSON Response",onClose:()=>t(),onMaximize:()=>{l(c=>!c),s(true),setTimeout(()=>{s(false);},re*1e3);},isHovered:x,onMouseHover:m,onMouseLeave:w,maximized:i,id:"draggable-dialog-title",onRequestClick:()=>{n(c=>!c),s(false),o||(r?.(),g({width:L,height:M}));},isRequestExpanded:o,showRequestIcon:!!S})})}function vo({json:e,requestJson:t={},onJsonSearch:r,onJsonCopy:o,onJsonIdCopy:n,onJsonNodesMinimize:i,onJsonNodesMaximize:l,isRequestShown:p}){let{isMaximized:s,isToolbarAnimationDisabled:d,dimensions:g}=useContext(a$2),[m,w]=useState(false),[x,b]=useState(false),[S,c]=useState(true),[O,V]=useState(false),[u,N]=useState(""),[k,jt]=useState(""),Je=useRef(null),ke=useRef(null),_=oe(Je,u),F=oe(ke,k),qt=useMemo(()=>Object.keys(e)?.length,[e]),Pe=g.width||L,Be=v=>{setTimeout(()=>{navigator.clipboard.writeText(v||"").then(()=>{});},10);},Dt=useMemo(()=>Object.keys(t)?.length,[t]),Oe=useMemo(()=>Ce(e,u),[e,u]),Te=useMemo(()=>Ce(t,k),[t,k]);return jsx(Ze,{"data-testid":"JSONViewer",children:jsxs(Box,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start",height:s?`calc(100vh - ${R}px)`:(g.height||M)-R+5,background:"transparent",position:"fixed",width:"100%"},children:[jsx(AnimatePresence,{children:p&&jsxs(motion.div,{initial:{left:s?"50vw":0,...s&&{position:"relative",left:"-50vw"}},animate:{left:s?"50vw":-Pe,...s&&{position:"relative",left:"0"},...!p&&{left:0}},exit:{left:s?"50vw":0,...s&&{position:"relative",left:"0"}},transition:{duration:re,...d&&{duration:0}},ref:ke,style:{flex:1,backgroundColor:"#E7E7E7B2",backdropFilter:"blur(12px)",height:s?"100vh":"100%",overflowY:"auto",position:"absolute",width:s?"100vw":Pe,zIndex:19,display:"flex",flexDirection:"column",borderBottomLeftRadius:"12px"},onScroll:()=>{V(true),setTimeout(()=>{V(false);},2e3);},children:[jsxs(fe,{isMaximized:s,isScrollingRequest:O,sx:{background:"#E7E7E7B2"},isRequestShown:p,children:[jsx(he,{children:jsx(ue,{variant:"subtitle1",children:"API Request"})}),jsxs(ge,{children:[jsx(z,{value:k,onChange:jt,onOpen:()=>r?.(),currentIndex:F.currentIndex,totalCount:F.totalCount,onPrev:F.goPrev,onNext:F.goNext}),jsx(B,{disableAnimation:true,onClick:()=>{S?l?.():i?.(),c(v=>!v);},icon:S?xe:we$1}),jsx(B,{onClick:()=>{o?.(),navigator.clipboard.writeText(JSON.stringify(t,null,2)).then(()=>{});},icon:sa}),jsx(B,{onClick:()=>{n?.(),navigator.clipboard.writeText(e?.id||"").then(()=>{});},icon:qa})]})]}),k.trim()&&Te===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:Te??t,style:Ye,displayDataTypes:false,collapsed:k.trim()?void 0:S?1:void 0,onCopied:(v,I)=>{typeof I=="string"&&Be(I);},enableClipboard:false,children:[jsx(C.String,{render:te(k)}),jsx(C.KeyName,{render:ee(k)}),jsx(C.CountInfo,{render:(v,{keyName:I})=>{if(!I)return jsx("span",{})}}),jsx(C.Copied,{render:G})]}),jsx(AnimatePresence,{children:p&&jsx(me,{sx:{flex:1,height:R,left:0},children:jsx(c$2,{sx:{paddingLeft:"12px",borderBottomRightRadius:"0",background:"#f8f9fb",flex:1},totalCount:Dt})})})]})}),jsxs(Ue,{ref:Je,isMaximized:s,isRequestShown:p,style:{left:0,maxHeight:"100vw"},initial:{...s&&{width:"100vw",left:0}},animate:{...s&&{position:"absolute",left:p?"50vw":"0"}},transition:{duration:re,...d&&{duration:0}},onScroll:()=>{b(true),setTimeout(()=>{b(false);},2e3);},children:[jsxs(fe,{isMaximized:s,isScrollingRequest:x,isRequestShown:p,children:[jsx(he,{children:jsx(ue,{variant:"subtitle1",children:"API Response"})}),jsxs(ge,{children:[jsx(z,{value:u,onChange:N,onOpen:()=>r?.(),currentIndex:_.currentIndex,totalCount:_.totalCount,onPrev:_.goPrev,onNext:_.goNext}),jsx(B,{disableAnimation:true,onClick:()=>{m?l?.():i?.(),w(v=>!v);},icon:m?xe:we$1}),jsx(B,{onClick:()=>{o?.(),navigator.clipboard.writeText(JSON.stringify(e,null,2)).then(()=>{});},icon:sa}),jsx(B,{onClick:()=>{n?.(),navigator.clipboard.writeText(e?.id||"").then(()=>{});},icon:qa})]})]}),u.trim()&&Oe===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:Oe??e,style:ce,displayDataTypes:false,collapsed:u.trim()?void 0:m?1:void 0,onCopied:(v,I)=>{typeof I=="string"&&Be(I);},children:[jsx(C.String,{render:te(u)}),jsx(C.KeyName,{render:ee(u)}),jsx(C.CountInfo,{render:(v,{keyName:I})=>{if(!I)return jsx("span",{})}}),jsx(C.Copied,{render:G})]}),jsx(me,{sx:{flex:1,height:R},children:jsx(c$2,{sx:{borderBottomLeftRadius:p?0:"12px",background:"#f8f9fb",flex:1},totalCount:qt})})]})]})})}var Ro=({isWindowMinimized:e,windowOrder:t,...r})=>{let{handleJsonViewerDialogOpen:o,handleWindowMinimize:n,handleWindowOrder:i,registerJsonViewerEvents:l}=useContext(H),p=useCallback(()=>{n(e);},[n,e]),s=useCallback(()=>{i(t);},[i,t]);return useEffect(()=>{s();},[s]),useEffect(()=>{p();},[p]),useEffect(()=>{l(r);},[l,r]),{handleJsonViewerDialogOpen:o}};var zr=q;export{B as a,z as b,T as c,be as d,H as e,Jt as f,wo as g,oe as h,Ro as i,zr as j};
|
|
1
|
+
import {c as c$2}from'./chunk-5VRO5GY3.js';import {m,a as a$2}from'./chunk-MQT2XWOM.js';import {c,d}from'./chunk-BFVDSVFM.js';import {a,c as c$1,d as d$1}from'./chunk-EG32DA46.js';import {a as a$1,b}from'./chunk-DS6S5G66.js';import {zn,ta,dl,el,wi,Ik,A,Vd,xe,we as we$1,sa,qa,ra}from'./chunk-IQAHULGQ.js';import Gt,{memo,createContext,useState,useRef,useId,useMemo,useCallback,useEffect,useContext}from'react';import {styled,Popover,Input,Typography,Box}from'@mui/material';import C from'@uiw/react-json-view';import {motion,AnimatePresence}from'framer-motion';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import Xt from'@mui/material/Box';import {useTranslation}from'react-i18next';import {styled as styled$1}from'@mui/material/styles';var R=37,M=545;styled(Popover)(({theme:e})=>({backgroundColor:e.palette.background.default,boxShadow:e.shadows[21],"& .MuiPaper-root":{borderRadius:"12px"}}));var Kt=44,ce={"--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% - ${Kt+R}px`,overflow:"auto"},Ye={...ce,background:"transparent","--w-rjv-line-color":"transparent"},Xe=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})),Qe=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 ue=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"})),fe=styled(Box,{shouldForwardProp:e=>!["isMaximized","isScrollingRequest","isRequestShown"].includes(e)})(({isScrollingRequest:e,isMaximized:t,isRequestShown:r,theme:o})=>({display:"flex",justifyContent:"space-between",alignItems:"center",gap:"4px",paddingBlock:"0px",paddingInlineStart:"12px",paddingInlineEnd:"12px",position:"sticky",left:0,right:0,top:0,background:"#fff",zIndex:5,...e&&{boxShadow:o.shadows[23]},...t&&{paddingTop:zn,transition:"padding 0.3s ease-in-out",...r&&{width:"50%"}}})),me=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}})),ge=styled(Box)(()=>({display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"4px",paddingBlock:"10px",paddingInlineStart:"8px",paddingInlineEnd:"0px"})),he=styled(Box)(()=>({display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"4px",paddingBlock:"10px",paddingInlineStart:"0px",paddingInlineEnd:"12px"})),Ue=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||M)-R+5,background:"transparent",position:"fixed",width:"100%"}));var Ze=styled(Box)(()=>({position:"fixed",width:"100%",background:"transparent",height:"100%"})),et=styled("span")(()=>({color:"#032F62"})),tt=styled("span")(()=>({color:"#357fb9"}));function G({"data-copied":e,style:t,onClick:r},{keyName:o}){return o?jsxs(Qe,{style:t,onClick:n=>{r?.(n);},children:[jsx(AnimatePresence,{children:e&&jsx(motion.img,{style:{height:"14px",width:"14px"},initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:ta,alt:"icon"},"copied-icon")}),jsx(AnimatePresence,{children:!e&&jsx(motion.img,{style:{height:"14px",width:"14px"},initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:ra,alt:"icon"},"copy-icon")})]}):jsx("span",{})}function Ut({onClick:e,icon:t,label:r,disableAnimation:o,...n}){let[i,l]=Gt.useState(false),{t:p}=useTranslation();return jsxs(Xe,{...n,onClick:d=>{e?.(d),!o&&(l(true),setTimeout(()=>{l(false);},2e3));},children:[jsxs(Xt,{sx:{width:"16px",display:"flex",overflow:"hidden",justifyContent:"center",alignItems:"center"},children:[jsx(AnimatePresence,{mode:"wait",children:i&&jsx(motion.img,{initial:{opacity:0},animate:{opacity:1,transition:{duration:.4}},exit:{opacity:0,transition:{duration:.1}},transition:{duration:.4},src:ta,alt:"icon"},"id-icon")}),jsx(AnimatePresence,{mode:"wait",children:!i&&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")})]}),r&&jsxs(Fragment,{children:[jsx(AnimatePresence,{children:i&&jsx(motion.span,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,position:"absolute"},transition:{duration:.4},children:p("copied")})}),jsx(AnimatePresence,{children:!i&&jsx(motion.span,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,position:"absolute",width:"53px"},transition:{duration:.4},children:r})})]})]})}var rt=memo(Ut);var B=rt;var it=styled$1("div")(()=>({display:"flex",alignItems:"center",position:"relative",flexShrink:0,width:"24px",height:"24px"})),st=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}`}})),at=styled$1(motion.div)(()=>({position:"absolute",right:0,top:0,height:"24px",display:"flex",alignItems:"center",zIndex:20,background:"transparent"})),lt=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"}})),ye={position:"absolute",top:"50%",transform:"translateY(-50%)",zIndex:2,userSelect:"none"},pt={...ye,background:"none",border:"none",padding:0,margin:0,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",outline:"none","&:disabled":{opacity:.3,cursor:"default"}},dt=styled$1("button")(()=>({...pt,right:53})),ct=styled$1("button")(()=>({...pt,right:39})),ut=styled$1(motion.img)(()=>({...ye,right:24,width:10,height:10,cursor:"pointer"})),ft=styled$1(motion.img)(()=>({...ye,right:8,width:11,height:11,cursor:"default"})),we=styled$1("img")(()=>({width:10,height:10})),mt=styled$1("img")(()=>({width:12,height:12})),gt=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 ro({value:e,onChange:t,currentIndex:r,totalCount:o,onPrev:n,onNext:i,onOpen:l,placeholder:p="Search..."}){let[s,d]=useState(false),g=useRef(null),m=e.trim().length>0,w=o>0,x=m,b=()=>{l?.(),d(true),requestAnimationFrame(()=>g.current?.focus());},S=()=>{t(""),d(false);};return jsxs(it,{children:[jsx(AnimatePresence,{children:s&&jsxs(at,{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(lt,{ref:g,initial:false,animate:{paddingRight:x?"98px":"24px"},transition:{duration:.15},placeholder:p,value:e,onChange:u=>t(u.target.value),onKeyDown:u=>{u.key==="Enter"&&(u.shiftKey?n():i()),u.key==="Escape"&&S();},onBlur:()=>{m||d(false);}}),x&&jsx(dt,{onClick:n,disabled:!w,title:"Previous match (Shift+Enter)",children:jsx(we,{src:dl,alt:"prev"})}),x&&jsx(ct,{onClick:i,disabled:!w,title:"Next match (Enter)",children:jsx(we,{src:el,alt:"next"})}),x&&jsx(ut,{src:wi,alt:"clear",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:S}),jsx(ft,{src:Ik,alt:"search",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}}),x&&jsx(gt,{children:w?`${r+1}/${o}`:"0/0"})]},"input-area")}),jsx(AnimatePresence,{children:!s&&jsx(motion.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.15},children:jsx(st,{isActive:false,onClick:b,title:"Search",children:jsx(mt,{src:A,alt:"search"})})})})]})}var z=memo(ro);function yt(e,t){let r=[],o=t.length,n=0,i=e.indexOf(t,n);for(;i!==-1;){let l=i+o;r.push([i,l]),n=l,i=e.indexOf(t,n);}return r}var io={padding:0,outline:"none"};function bt({text:e,queryLength:t,ranges:r,idPrefix:o}){let n=[],i=0;return r.forEach(([l,p],s)=>{l>i&&n.push(e.slice(i,l)),n.push(jsx("mark",{style:io,children:e.slice(l,l+t)},`${o}-${s}`)),i=p;}),i<e.length&&n.push(e.slice(i)),jsx(Fragment,{children:n})}function T({text:e,query:t}){let r=useId(),o=useMemo(()=>t.trim().toLowerCase(),[t]),n=useMemo(()=>{if(!o)return e;let i=e.toLowerCase(),l=yt(i,o);return l.length===0?e:jsx(bt,{text:e,queryLength:t.length,ranges:l,idPrefix:r})},[e,t.length,o,r]);return jsx(Fragment,{children:n})}function U(e,t){return e.toLowerCase().includes(t)}function Z(e){return e.trim().toLowerCase()}function ee(e){let t=Z(e);return (r,{keyName:o})=>{if(!t||!o)return;let n=String(o);if(U(n,t))return jsx(tt,{children:jsx(T,{text:String(o),query:e})})}}function te(e){let t=Z(e);return (r,{value:o})=>{if(!t)return;let n=String(o??"");if(U(n,t))return jsxs(et,{children:['"',jsx(T,{text:String(o??""),query:e}),'"']})}}function fo({title:e,onClose:t,onMaximize:r,maximized:o=false,id:n,onMouseHover:i,onMouseLeave:l,onRequestClick:p,isRequestExpanded:s=false,showRequestIcon:d$2=false,isHovered:g=false}){return jsx(c,{id:n,maximized:o||false,children:jsx(d,{isHovered:true,onMouseEnter:i,onMouseLeave:l,isMaximized:o,title:e,icon:Vd,leftActions:jsxs(Fragment,{children:[jsx(a,{onClick:t}),jsx(c$1,{isMaximized:o,onClick:r}),d$2&&jsx(d$1,{onClick:p,isExpanded:s,isHovered:g,children:"Request"})]})})})}var It=memo(fo);var be=It;var H=createContext({jsonViewerList:[],handleJsonViewerDialogOpen:()=>{},handleWindowMinimize:()=>{},handleWindowOrder:()=>{},registerJsonViewerEvents:()=>{},containerRef:{current:null}});var Jt=({list:e,events:t,onClose:r,isWindowMinimized:o,windowOrder:n})=>e?.length?jsx(Fragment,{children:e.map((i,l)=>jsx(q,{index:l,...t,...i,onClose:()=>{r(l);},isWindowMinimized:o,windowOrder:n},i.json.id))}):null;var wo=({children:e,containerRef:t})=>{let[r,o]=useState([]),[n,i]=useState(false),[l,p]=useState(1),s=useRef({}),d=useCallback(c=>{if(r.length===7){alert("Maximum allowed active Json Viewer is 7 per table.");return}if(r.some(N=>N.json.id===c.json.id))return;let O=structuredClone(c.json),V=O.request_body,u={...c,json:O,requestJson:c.requestJson||V||void 0};delete u.json.request_body,o(N=>[...N,u]);},[r]),g=useCallback(c=>{o(O=>O.filter((V,u)=>c!==u));},[]),m=useCallback(c=>{i(c);},[]),w=useCallback(c=>{p(c);},[]),x=useCallback(c=>{s.current=c;},[]),b=useMemo(()=>({onJsonRequestOpen:()=>s.current.onJsonRequestOpen?.(),onJsonSearch:()=>s.current.onJsonSearch?.(),onJsonCopy:()=>s.current.onJsonCopy?.(),onJsonIdCopy:()=>s.current.onJsonIdCopy?.(),onJsonNodesMinimize:()=>s.current.onJsonNodesMinimize?.(),onJsonNodesMaximize:()=>s.current.onJsonNodesMaximize?.()}),[]),S=useMemo(()=>({jsonViewerList:r,handleJsonViewerDialogOpen:d,handleWindowMinimize:m,handleWindowOrder:w,registerJsonViewerEvents:x,containerRef:t}),[r,d,m,w,x,t]);return jsxs(H.Provider,{value:S,children:[e,jsx(Jt,{list:r,events:b,onClose:g,isWindowMinimized:n,windowOrder:l})]})};var Tt="#FFE20B";function oe(e,t){let[r,o]=useState(0),[n,i]=useState(0);useEffect(()=>{if(!t.trim()){i(0),o(0);return}let s=setTimeout(()=>{let d=e.current?.querySelectorAll("mark")??[];i(d.length),o(0);},50);return ()=>clearTimeout(s)},[t,e]),useEffect(()=>{if(!e.current||!t.trim())return;let s=Array.from(e.current.querySelectorAll("mark"));s.forEach((d,g)=>{let m=g===r;d.style.backgroundColor=m?Tt:"transparent",d.style.outline=m?`1px solid ${Tt}`:"none",d.style.borderRadius="2px";}),s[r]?.scrollIntoView({behavior:"smooth",block:"nearest"});},[r,n,t,e]);let l=useCallback(()=>{n!==0&&o(s=>(s+1)%n);},[n]),p=useCallback(()=>{n!==0&&o(s=>(s-1+n)%n);},[n]);return {currentIndex:r,totalCount:n,goNext:l,goPrev:p}}function Et(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 Vt(e,t){if(Array.isArray(e)){let r=e.map(o=>Vt(o,t)).filter(o=>o!=null);return r.length>0?r:null}return typeof e=="object"&&e!==null?Wt(e,t):Et(e,t)?e:null}function Wt(e,t){let r={};for(let[o,n]of Object.entries(e))if(o.toLowerCase().includes(t))r[o]=n;else if(typeof n=="object"&&n!==null){let i=Vt(n,t);i!==null&&(r[o]=i);}else Et(n,t)&&(r[o]=n);return Object.keys(r).length>0?r:null}function Ce(e,t){return t.trim()?Wt(e,t.toLowerCase()):e}var L=400,re=.5;function q(e){let{containerRef:t}=useContext(H),{height:r,width:o}=a$1(),[n,i]=useState(false);return jsx(m,{isOpen:true,onClose:e.onClose,containerRef:t,defaultWindowWidth:L,defaultWindowHeight:M,minHeight:300,windowZIndex:3,initialPosition:{x:o/2-L/4+e.index*20,y:r/2-M/2+e.index*30},windowProps:{mainAppOrder:e.windowOrder,mainAppIsMinimized:e.isWindowMinimized,overflow:"visible",titleBar:jsx(Co,{...e,isRequestShown:n,setIsRequestShown:i})},children:jsx(vo,{...e,isRequestShown:n})})}function Co({requestJson:e={},onClose:t,onJsonRequestOpen:r,isRequestShown:o,setIsRequestShown:n}){let{isMaximized:i,setIsMaximized:l,isToolbarAnimationDisabled:p,setIsToolbarAnimationDisabled:s,dimensions:d,updateSize:g}=useContext(a$2),{onMouseEnter:m,onMouseLeave:w,isHovered:x}=b(),b$1=d.width||L,S=Object.keys(e)?.length;return jsx(motion.div,{style:{...i&&{height:zn,position:"fixed",zIndex:1e3}},animate:{width:o?b$1*2:b$1,...i&&{width:"100vw"},...!i&&{transform:`translateX(${o?-b$1:0}px)`}},transition:{duration:re,...p&&{duration:0}},children:jsx(be,{title:o?"JSON Request & Response":"JSON Response",onClose:()=>t(),onMaximize:()=>{l(c=>!c),s(true),setTimeout(()=>{s(false);},re*1e3);},isHovered:x,onMouseHover:m,onMouseLeave:w,maximized:i,id:"draggable-dialog-title",onRequestClick:()=>{n(c=>!c),s(false),o||(r?.(),g({width:L,height:M}));},isRequestExpanded:o,showRequestIcon:!!S})})}function vo({json:e,requestJson:t={},onJsonSearch:r,onJsonCopy:o,onJsonIdCopy:n,onJsonNodesMinimize:i,onJsonNodesMaximize:l,isRequestShown:p}){let{isMaximized:s,isToolbarAnimationDisabled:d,dimensions:g}=useContext(a$2),[m,w]=useState(false),[x,b]=useState(false),[S,c]=useState(true),[O,V]=useState(false),[u,N]=useState(""),[k,jt]=useState(""),Je=useRef(null),ke=useRef(null),_=oe(Je,u),F=oe(ke,k),qt=useMemo(()=>Object.keys(e)?.length,[e]),Pe=g.width||L,Be=v=>{setTimeout(()=>{navigator.clipboard.writeText(v||"").then(()=>{});},10);},Dt=useMemo(()=>Object.keys(t)?.length,[t]),Oe=useMemo(()=>Ce(e,u),[e,u]),Te=useMemo(()=>Ce(t,k),[t,k]);return jsx(Ze,{"data-testid":"JSONViewer",children:jsxs(Box,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start",height:s?`calc(100vh - ${R}px)`:(g.height||M)-R+5,background:"transparent",position:"fixed",width:"100%"},children:[jsx(AnimatePresence,{children:p&&jsxs(motion.div,{initial:{left:s?"50vw":0,...s&&{position:"relative",left:"-50vw"}},animate:{left:s?"50vw":-Pe,...s&&{position:"relative",left:"0"},...!p&&{left:0}},exit:{left:s?"50vw":0,...s&&{position:"relative",left:"0"}},transition:{duration:re,...d&&{duration:0}},ref:ke,style:{flex:1,backgroundColor:"#E7E7E7B2",backdropFilter:"blur(12px)",height:s?"100vh":"100%",overflowY:"auto",position:"absolute",width:s?"100vw":Pe,zIndex:19,display:"flex",flexDirection:"column",borderBottomLeftRadius:"12px"},onScroll:()=>{V(true),setTimeout(()=>{V(false);},2e3);},children:[jsxs(fe,{isMaximized:s,isScrollingRequest:O,sx:{background:"#E7E7E7B2"},isRequestShown:p,children:[jsx(he,{children:jsx(ue,{variant:"subtitle1",children:"API Request"})}),jsxs(ge,{children:[jsx(z,{value:k,onChange:jt,onOpen:()=>r?.(),currentIndex:F.currentIndex,totalCount:F.totalCount,onPrev:F.goPrev,onNext:F.goNext}),jsx(B,{disableAnimation:true,onClick:()=>{S?l?.():i?.(),c(v=>!v);},icon:S?xe:we$1}),jsx(B,{onClick:()=>{o?.(),navigator.clipboard.writeText(JSON.stringify(t,null,2)).then(()=>{});},icon:sa}),jsx(B,{onClick:()=>{n?.(),navigator.clipboard.writeText(e?.id||"").then(()=>{});},icon:qa})]})]}),k.trim()&&Te===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:Te??t,style:Ye,displayDataTypes:false,collapsed:k.trim()?void 0:S?1:void 0,onCopied:(v,I)=>{typeof I=="string"&&Be(I);},enableClipboard:false,children:[jsx(C.String,{render:te(k)}),jsx(C.KeyName,{render:ee(k)}),jsx(C.CountInfo,{render:(v,{keyName:I})=>{if(!I)return jsx("span",{})}}),jsx(C.Copied,{render:G})]}),jsx(AnimatePresence,{children:p&&jsx(me,{sx:{flex:1,height:R,left:0},children:jsx(c$2,{sx:{paddingLeft:"12px",borderBottomRightRadius:"0",background:"#f8f9fb",flex:1},totalCount:Dt})})})]})}),jsxs(Ue,{ref:Je,isMaximized:s,isRequestShown:p,style:{left:0,maxHeight:"100vw"},initial:{...s&&{width:"100vw",left:0}},animate:{...s&&{position:"absolute",left:p?"50vw":"0"}},transition:{duration:re,...d&&{duration:0}},onScroll:()=>{b(true),setTimeout(()=>{b(false);},2e3);},children:[jsxs(fe,{isMaximized:s,isScrollingRequest:x,isRequestShown:p,children:[jsx(he,{children:jsx(ue,{variant:"subtitle1",children:"API Response"})}),jsxs(ge,{children:[jsx(z,{value:u,onChange:N,onOpen:()=>r?.(),currentIndex:_.currentIndex,totalCount:_.totalCount,onPrev:_.goPrev,onNext:_.goNext}),jsx(B,{disableAnimation:true,onClick:()=>{m?l?.():i?.(),w(v=>!v);},icon:m?xe:we$1}),jsx(B,{onClick:()=>{o?.(),navigator.clipboard.writeText(JSON.stringify(e,null,2)).then(()=>{});},icon:sa}),jsx(B,{onClick:()=>{n?.(),navigator.clipboard.writeText(e?.id||"").then(()=>{});},icon:qa})]})]}),u.trim()&&Oe===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:Oe??e,style:ce,displayDataTypes:false,collapsed:u.trim()?void 0:m?1:void 0,onCopied:(v,I)=>{typeof I=="string"&&Be(I);},children:[jsx(C.String,{render:te(u)}),jsx(C.KeyName,{render:ee(u)}),jsx(C.CountInfo,{render:(v,{keyName:I})=>{if(!I)return jsx("span",{})}}),jsx(C.Copied,{render:G})]}),jsx(me,{sx:{flex:1,height:R},children:jsx(c$2,{sx:{borderBottomLeftRadius:p?0:"12px",background:"#f8f9fb",flex:1},totalCount:qt})})]})]})})}var Ro=({isWindowMinimized:e,windowOrder:t,...r})=>{let{handleJsonViewerDialogOpen:o,handleWindowMinimize:n,handleWindowOrder:i,registerJsonViewerEvents:l}=useContext(H),p=useCallback(()=>{n(e);},[n,e]),s=useCallback(()=>{i(t);},[i,t]);return useEffect(()=>{s();},[s]),useEffect(()=>{p();},[p]),useEffect(()=>{l(r);},[l,r]),{handleJsonViewerDialogOpen:o}};var zr=q;export{B as a,z as b,T as c,be as d,H as e,Jt as f,wo as g,oe as h,Ro as i,zr as j};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d,j}from'./chunk-
|
|
1
|
+
import {d,j}from'./chunk-K43ZLU4I.js';import {Vb,lc}from'./chunk-I3LSSBRI.js';import {Gb}from'./chunk-IQAHULGQ.js';import {forwardRef,memo}from'react';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var i="os-shared-FilePreview",t={root:`${i}-root`,wrapper:`${i}-wrapper`,content:`${i}-content`,iconWrapper:`${i}-iconWrapper`,textWrapper:`${i}-textWrapper`,filename:`${i}-filename`,closeButton:`${i}-closeButton`};var x=styled("div",{shouldForwardProp:e=>e!=="$disabled"})(({theme:e,$disabled:r})=>{let{grey:o,base:s}=e.v2.palette;return {width:"100%",borderRadius:e.v2.radius(4),padding:`${e.v2.spacing(4)} ${e.v2.spacing(8)}`,display:"flex",alignItems:"center",justifyContent:"flex-start",backgroundColor:o[50],gap:e.v2.spacing(8),color:s.black,...r&&{opacity:.6,cursor:"default"}}}),P=styled("div")(({theme:e})=>({width:"100%",minWidth:0,display:"flex",alignItems:"center",justifyContent:"space-between",gap:e.v2.spacing(8)})),g=styled("div")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",flex:1,minWidth:0,overflow:"hidden",color:"inherit",cursor:"pointer",gap:e.v2.spacing(8)})),F=styled("div")(({theme:e})=>{let{grey:r,base:o}=e.v2.palette;return {display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",width:32,height:32,flexShrink:0,overflow:"hidden",backgroundColor:o.white,borderRadius:e.v2.radius(4),border:`1px solid ${r[100]}`}}),C=styled("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",flex:1,minWidth:0,overflow:"hidden",gap:e.v2.spacing(4),color:"inherit"})),b=styled("button")(()=>({display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,marginLeft:"auto",cursor:"pointer",backgroundColor:"transparent",border:"none",padding:0}));var L=e=>e.type.includes("image")?URL.createObjectURL(e):"",h=forwardRef(function({file:r,disabled:o,onRemoveFile:s,getFilePreview:W=L,icon:N,action:m,id:v,className:$,sx:I},j$1){let f=Vb(r)?W(r.file):"",R=Vb(r)&&r.file.type.includes("application/pdf"),p=Vb(r)?r.file:r;return jsx(x,{ref:j$1,id:v,"data-testid":v??"FilePreview",className:lc(t.root,$),sx:I,$disabled:o,children:jsxs(P,{"data-slot":"file-wrapper",className:t.wrapper,children:[jsxs(g,{"data-slot":"file-Content",className:t.content,children:[jsx(F,{"data-slot":"file-icon-wrapper",className:t.iconWrapper,children:Vb(r)&&f?jsx(d,{src:f,alt:p.name,className:t.iconWrapper,sx:{width:32,height:32,borderRadius:"50%",objectFit:R?"none":"cover"},onError:k=>{k.currentTarget.src=p.name;}}):N}),jsxs(C,{"data-slot":"text-wrapper",className:t.textWrapper,children:[jsx(j,{textVariant:"caption.medium",noWrap:true,"data-slot":"filename",className:t.filename,children:p.name}),!Vb(r)&&m?m:null]})]}),!o&&jsx(b,{type:"button","aria-label":"Remove file","data-slot":"close-icon-wrapper",className:t.closeButton,onClick:()=>{s?.(r);},children:jsx(d,{src:Gb,alt:"Remove file",sx:{width:10,height:10}})})]})})});h.displayName="FilePreview";var S=memo(h);export{t as a,S as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {L,ba,aa}from'./chunk-
|
|
1
|
+
import {L,ba,aa}from'./chunk-K43ZLU4I.js';import {zc,Bc,kc,lc,Ya}from'./chunk-I3LSSBRI.js';import {forwardRef,useId,memo}from'react';import ee from'@mui/material/Box';import {styled,alpha,useTheme}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var n="os-shared-TextInput",s={root:`${n}-root`,field:`${n}-field`,label:`${n}-label`,input:`${n}-input`,helperText:`${n}-helperText`};var h=styled(ee)(()=>({display:"flex",flexDirection:"column",gap:"4px",width:"100%"}));function S(e,t){let{borderColor:o}=aa(e,t),r=e.v2.radius(4);return {borderColor:o,borderBottom:"none",borderRadius:`${r} ${r} 0 0`,"&:focus-within":{borderColor:o,boxShadow:"none"}}}var g=styled("small",{shouldForwardProp:e=>e!=="$error"})(({theme:e,$error:t})=>({color:t?e.palette.error.main:alpha(e.v2.palette.base.black,.6),fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));function C(e,t){let o=typeof e=="string"&&Ya(e)?e:void 0;return {resolvedLabel:o??t??void 0,resolvedPlaceholder:o&&typeof t=="string"?t:void 0}}var P=forwardRef(({onChange:e,error:t=false,helperText:o,feedback:r,label:i,placeholder:v,disabled:F,fullWidth:$=true,startAdornment:k,endAdornment:L$1,readOnly:w,inputProps:A,InputProps:E,InputLabelProps:ae,className:H,sx:B,id:l="TextInput",...R},W)=>{let O=useTheme(),D=zc(useId(),"text-input"),M=Z=>{e?.(Z.target.value??"");},{isProvided:a,isVisible:V,type:z}=Bc(r),{resolvedLabel:_,resolvedPlaceholder:j}=C(i,v),m=!!t&&!a,{sx:q,startAdornment:G,endAdornment:J,readOnly:K,inputProps:Q,disabled:U}=E??{},X=V?S(O,z):{},Y=kc(kc(X,q),B);return jsxs(ee,{className:s.root,children:[jsx(h,{id:D,"data-testid":"TextInput",children:jsx(L,{id:l,...R,ref:W,label:_,placeholder:j,disabled:F??U,fullWidth:$,error:m,startAdornment:k??G,endAdornment:L$1??J,readOnly:w??K,inputProps:{...Q,...A},onChange:M,className:lc(s.field,H),sx:Y})}),a?jsx(ba,{...r}):null,!a&&o?jsx(g,{className:s.helperText,id:l?`${l}-helper-text`:void 0,$error:m,children:o}):null]})});P.displayName="TextInput";var N=memo(P);export{s as a,N as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {p}from'./chunk-
|
|
1
|
+
import {p}from'./chunk-K43ZLU4I.js';import {Wa,zc,cb}from'./chunk-I3LSSBRI.js';import {Sk,ya,xa,wa,Pj}from'./chunk-IQAHULGQ.js';import {memo,useId}from'react';import C from'@mui/material/Box';import O from'lodash/capitalize';import {useTranslation}from'react-i18next';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var D=styled(C,{shouldForwardProp:o=>o!=="tableMode"})(({theme:o,tableMode:t})=>({fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"4px 8px",borderRadius:"24px",border:`1px solid ${o.palette.divider}`,color:o.palette.text.primary,height:Wa(t)?"18px":"24px"}));var e={DESKTOP:wa,PHONE:xa,TABLET:ya,TERMINAL:Sk};var i=o=>!!e[o];function S({type:o,isTextShown:t,tableMode:T,...E}){let p$1=zc(useId(),"device-icon"),{t:v}=useTranslation(),m=i(o)?e[o]:null;return jsx(p,{title:m?`Device - ${cb((o??"").toLowerCase())}`:v("unKnown"),children:t?jsx(D,{id:p$1,"data-testid":"DeviceIcon",tableMode:T,children:o?O(o):"Unknown"}):jsx(C,{...E,id:p$1,"data-testid":"DeviceIcon",component:"img",src:o?m||Pj:Pj,alt:o})})}var b=memo(S);var X=b;export{e as a,i as b,X as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {kc,lc}from'./chunk-I3LSSBRI.js';import {forwardRef,useCallback,memo}from'react';import {jsxs,jsx}from'react/jsx-runtime';import {styled,alpha}from'@mui/material/styles';var n="os-shared-FilterChip",r={root:`${n}-root`,label:`${n}-label`,dismissButton:`${n}-dismissButton`,dismissIcon:`${n}-dismissIcon`},h=",",u="Dismiss filter";function y({className:t}){return jsxs("svg",{className:t,width:"8",height:"8",viewBox:"0 0 8 8",fill:"none","aria-hidden":"true",children:[jsx("path",{d:"M1.79488 1.73941L6.31572 6.26024",stroke:"currentColor",strokeWidth:"0.875",strokeMiterlimit:"10",strokeLinecap:"round"}),jsx("path",{d:"M6.31572 1.73941L1.79488 6.26024",stroke:"currentColor",strokeWidth:"0.875",strokeMiterlimit:"10",strokeLinecap:"round"})]})}var S=styled("div",{shouldForwardProp:t=>!["$disabled"].includes(t)})(({theme:t,$disabled:e})=>{let{base:o}=t.v2.palette;return {display:"inline-flex",position:"relative",alignItems:"center",justifyContent:"center",gap:t.v2.spacing(8),height:"32px",paddingInline:t.v2.spacing(16),minWidth:"8.4rem",maxWidth:"16rem",boxSizing:"border-box",background:"linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)",color:o.white,borderRadius:t.v2.radius(48),...t.v2.typography.textVariants.body.small.regular,whiteSpace:"nowrap",overflow:"hidden",cursor:"default",opacity:e?.6:1}}),L=styled("span")({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"1 1 auto",textAlign:"center"}),I=styled("button",{shouldForwardProp:t=>t!=="$disabled"})(({theme:t,$disabled:e})=>{let{base:o}=t.v2.palette;return {display:"inline-flex",position:"relative",alignItems:"center",justifyContent:"center",flexShrink:0,width:"16px",height:"16px",padding:0,border:"none",borderRadius:"50%",backgroundColor:alpha(o.black,.1),color:o.white,cursor:e?"not-allowed":"pointer",opacity:e?.6:1,transition:"opacity 150ms ease, background-color 150ms ease","&:hover":e?void 0:{backgroundColor:alpha(o.black,.2)},"&:focus-visible":{outline:`2px solid ${o.white}`,outlineOffset:"1px"},"& svg":{display:"block"}}});var E=forwardRef(({label:t,value:e,separator:o=h,visible:_=true,dismissible:k=true,onDismiss:p,dismissLabel:P=u,disabled:s=false,children:x,id:F,sx:R,className:w,slotProps:A,"data-testid":T},D)=>{let{label:d,dismissButton:i}=A??{},v=useCallback(m=>{m.stopPropagation(),!s&&(i?.onClick?.(m),p?.(m));},[s,i,p]);if(!_)return null;let c=t??(typeof e=="string"?e:e&&e.length>0?e.join(o):void 0);if(!c&&!x)return null;let N=k&&p!=null;return jsxs(S,{ref:D,id:F,"data-testid":T??F??"FilterChip",className:lc(r.root,w),sx:kc({},R),$disabled:s,role:"status",children:[c?jsx(L,{...d,className:lc(r.label,d?.className),sx:kc({},d?.sx),children:c}):x,N&&jsx(I,{...i,type:"button","aria-label":i?.["aria-label"]??P,disabled:s,onClick:v,className:lc(r.dismissButton,i?.className),sx:kc({},i?.sx),$disabled:s,children:jsx(y,{className:r.dismissIcon})})]})});E.displayName="FilterChip";var U=memo(E);export{r as a,h as b,u as c,U as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {Kn as Kn$1,so as so$1,qo as qo$1,ro as ro$1,po as po$1,Fn,no as no$1,Mn as Mn$1,yo as yo$1,mo,lo,ko as ko$1,jo as jo$1,io as io$1,ho as ho$1,Un as Un$1,Zn as Zn$1,go as go$1,bo as bo$1,co as co$1,ao as ao$1,eo,$n,_n as _n$1,Xn,fo as fo$1,Yn as Yn$1,Vn,do as _do,Wn as Wn$1,Nn,On as On$1,jp,Xe as Xe$1,Ko as Ko$1,Jo as Jo$1,Lo}from'./chunk-IQAHULGQ.js';import Xe from'lodash/orderBy';import Oe from'lodash/get';import l from'dayjs';import et from'dayjs/plugin/relativeTime';import tt from'dayjs/plugin/timezone';import rt from'dayjs/plugin/utc';import nt from'dayjs/plugin/calendar';import ot from'dayjs/plugin/isToday';import st from'dayjs/plugin/isYesterday';import dt from'axios';import ut from'lodash/forOwn';import Ue from'color';import Ke from'lodash/capitalize';import We from'lodash/startCase';import {getTimezone,getCountryForTimezone,getCountry}from'countries-and-timezones';import qe from'dompurify';function Jt({list:e,sortBy:t,orders:r}){return t?.length&&r?.length?Xe(e,t,r):e}var qt=(e=[],t)=>e.length?e.sort((r,n)=>Oe(r,t).localeCompare(Oe(n,t))):[];function Xt(e){return (e||[]).filter(t=>!!t)}var Zt=(e,t)=>[...new Map(e.map(r=>[r[t],r])).values()];var er=e=>typeof e=="number"&&!isNaN(e)&&isFinite(e)&&e>0;function tr(e){if(!e)return "";let t=e%10,r=e%100;return `${e}${r>9&&r<14?"th":t===1?"st":t===2?"nd":t===3?"rd":"th"}`}var Ze=Intl.NumberFormat("en-US");function rr(e){return Ze.format(e)}var Qe=e=>{if(typeof e=="number")return Number.isFinite(e)?e:0;if(e==null)return 0;let t=String(e).trim();if(t==="")return 0;let r=t.includes(",")&&!t.includes(".")?t.replace(/,/g,"."):t.replace(/,/g,""),n=Number(r);return Number.isFinite(n)?n:0},nr=e=>Qe(e),or=(e,t)=>t?e.toFixed(t):e.toString();function f(e,t=2){return e.toString().padStart(t,"0")}var sr=e=>`0.${"0".repeat(e)}`;l.extend(ot);l.extend(st);l.extend(rt);l.extend(tt);l.extend(et);l.extend(nt);var S=e=>{if(typeof e=="number")return Number.isFinite(e)?e:0;if(!e)return 0;let t=e.trim().match(/^(?:UTC|GMT)?\s*([+-])?(\d{1,2})(?::?(\d{2}))?$/i);if(!t)return 0;let[,r,n,o]=t,s=Number(n)+Number(o??0)/60;return r==="-"?-s:s},xr=(e=0)=>{let t=e<0?"-":"+",r=Math.abs(e),n=Math.floor(r),o=Math.round((r-n)*60);return `UTC${t}${f(n)}:${f(o)}`},yr=(e=6)=>{let t=Number.isFinite(e)&&e>=0?e:0,r=l(),n=r.subtract(t,"day").startOf("day"),o=r.endOf("day");return [n.toDate(),o.toDate()]},Tr=e=>{let t=new Date(e),r=t.getTimezoneOffset(),n=t.getTime()-r*6e4,s=new Date(n).toISOString();return l(s).valueOf()},hr=(e,t=no$1.KW)=>{if(!e)return;let r=new Date(e),n=r.getTimezoneOffset(),s=S(t)*60-n,i=r.getTime()+s*6e4,u=new Date(i).toISOString();return l(u).valueOf()},Cr=(e,t=0)=>e?l(e).utc(true).subtract(t,"hour").valueOf():void 0,br=e=>{let t=new Date(e),r=t.getTimezoneOffset(),n=t.getTime()+r*6e4;return new Date(n)},Sr=(e,{currentTimezone:t,targetTimezone:r})=>{if(!e)return "";let n=new Date(e);if(Number.isNaN(n.getTime()))return "";if(t==null||r==null||t==null||r==null)return n;let o=S(t),i=S(r)-o,a=n.getTime()+i*6e4*60;return new Date(a)},Dr=e=>Array.from({length:e??31},(t,r)=>r+1).map(t=>({id:t,label:t})),Er=e=>Array.from({length:e??12},(t,r)=>r+1).map(t=>({id:t,label:t})),Ne=({length:e=10,startYear:t,direction:r="future"}={})=>{let n=new Date().getFullYear(),o=t!==void 0?n-t+1:e,s=t!==void 0||r==="past"?-1:1;return Array.from({length:o},(i,a)=>{let u=n+s*a;return {id:u,label:u}})},T=(e,t,r,n,o=true)=>{if(e==null||e==="")return "";let s=new Date(e);if(Number.isNaN(s.getTime()))return "";let i=n??r,a=C=>i==null?C:C.utcOffset(Math.round(S(i)*60)),u=a(l(s)),d=a(l()),m=o?", h:mma":"",p=u.isSame(d,"year")?"MMM DD":"MMM DD, YYYY",E={sameDay:`[Today]${m}`,nextDay:`[Tomorrow]${m}`,lastDay:`[Yesterday]${m}`,sameElse:`${p}${m}`,lastWeek:`${p}${m}`,nextWeek:`${p}${m}`};return u.calendar(d,t??E)},wr=(e,t="YYYY-MM-DD")=>{let r=new Date(e);return Number.isNaN(r.getTime())?"":l(e).format(t)},Ar=e=>l(e).endOf("day").toDate().valueOf();function _r(e){let t=Math.floor(e/3600),r=Math.floor(e%3600/60),n=Math.floor(e%60);return t>0?`${f(t)}:${f(r)}:${f(n)}`:`${f(r)}:${f(n)}`}function Ie(e,t,r="seconds"){let n={seconds:1,minutes:60,hours:3600,days:86400};return (Date.now()-e)/1e3<t*n[r]}var Or=e=>{let t=Date.now(),r=Math.floor((t-e)/1e3),n=Math.floor(r/60);return Ie(e,60,"seconds")?"just now":Ie(e,60,"minutes")?`${n} min${n===1?"":"s"} ago`:"1 hour ago"},Ir=e=>l(e).isToday(),Nr=e=>l(e).isYesterday(),it=1970,Lr=()=>Ne({startYear:it}),Fr=(e=10)=>Ne({length:e,direction:"past"});function Pr(e,t){if(!e)return null;let r=l(e);if(!r.isValid())return null;try{return new Date(r.tz(t).format("YYYY-MM-DDTHH:mm:ss.SSS"))}catch{return null}}var b=["sun","mon","tue","wed","thur","fri","sat"];function Rr(e="sun"){let t=b.indexOf(e.toLowerCase());return t===-1?(console.error(`${e} is not a valid day`),b):[...b.slice(t),...b.slice(0,t)]}var Mr=e=>{if(e==null)return;let t=l(e);return t.isValid()?t.valueOf():void 0};var Le=e=>{let r=e.reduce((n,o)=>{let s=o.entities?.find(i=>i.default);return s&&n.push({entityId:s.id,country:o}),n},[])[0]?.country||e[0];return e.find(n=>n.id===r?.id)};var Fe=(e,t,r)=>{let n=e.find(a=>a.id===t)??{},o=r.find(a=>a.id===t)??{},s=o.countries.length===1?n.countries.find(a=>a.id===o.countries?.[0].id):Le(n?.countries),i=s?.entities?.find(a=>a.default);return {...n,defaultCountry:s,defaultEntity:i}},at=({merchantsIds:e,options:t})=>!e||!e?.length?{}:{business:{merchant:e,...t}},ct=e=>["payment_facilitator_14po8231419aIsi1fN7F385"].includes(e),Ur=({segmentCode:e,segmentId:t,segmentTypeCode:r,merchantsIds:n=[],options:o={}})=>{let s="PSP"===r?e:r;return ct(t)?at({merchantsIds:n,options:o}):s==="PAYMENT_TECHNOLOGY"?{payment_provider:{technology:{orchestrator:[t],...o}}}:s==="PAYMENT_GATEWAY"||s==="PAYMENT_GATEWAY_PROVIDER"?{payment_provider:{technology:{gateway:[t],...o}}}:s==="PAYMENT_FACILITATOR"?{payment_provider:{institution:{facilitator:[t],...o}}}:s==="PAYMENT_ACQUIRER"?{payment_provider:{institution:{acquirer:[t],...o}}}:s==="PLATFORM"?{platform:[t],...o}:s==="DEVELOPMENT"?{development_agency:[t],...o}:{}};var Pe="Test_Fixed_Secret_Key",_="tap-dashboard-navigation-data",Re="tap-dashboard-user-data",O="tap-dashboard-user-jwt",I="tap-dashboard-report",N="tap-dashboard-calender-timezone",L="tap-dashboard-calender-timezone-history",F="tap-dashboard-global-table-mode",Me="sheetview_columns",P="dock-preview-windows",A="views";function Yr(){localStorage.setItem(Pe,Mn$1);}function ve(){return localStorage.getItem(Pe)}function Hr(e){localStorage.setItem(_,JSON.stringify(e));}function Gr(){try{let e=localStorage.getItem(_);if(!e)return null;let t=JSON.parse(e);return ut(t,r=>{r?.forEach(n=>{n.payload&&n.payload.dateRange&&(n.payload.dateRange=n.payload.dateRange.map(o=>new Date(o)));});})}catch{return null}}function Kr(){localStorage.removeItem(_);}var jr=e=>{localStorage.setItem(O,e);},R=()=>localStorage.getItem(O),Jr=()=>{localStorage.removeItem(O);},qr=e=>{localStorage.setItem(Re,JSON.stringify(e));},M=()=>{let e=localStorage.getItem(Re);if(!e)return null;try{return JSON.parse(e)}catch{return null}},Xr=()=>{let e=M();return e?Fe(e?.segments,e?.active_segment_id,e?.active_segments):null},Zr=()=>{let e=M();return e?e?.active_segments.find(t=>t.id===e.active_segment_id):null},lt=()=>{let e=R();if(!e)return true;try{let[,t]=e.split(".");if(!t)return !0;let r=t.replace(/-/g,"+").replace(/_/g,"/"),n=r.padEnd(Math.ceil(r.length/4)*4,"="),{exp:o}=JSON.parse(atob(n));return typeof o!="number"?!0:Date.now()>=o*1e3}catch{return true}},Qr=()=>!lt()&&!!M(),en=(e,t)=>{localStorage.setItem(`${I}-${e}`,t);},tn=e=>localStorage.getItem(`${I}-${e}`),rn=e=>{localStorage.removeItem(`${I}-${e}`);},nn=e=>{localStorage.setItem(N,JSON.stringify(e));},on=e=>{localStorage.setItem(L,JSON.stringify(e));},sn=()=>{try{let e=localStorage.getItem(N);return e?JSON.parse(e):null}catch{return null}},an=()=>{try{let e=localStorage.getItem(L);return e?JSON.parse(e):null}catch{return null}},cn=()=>{localStorage.removeItem(N);},un=()=>{localStorage.removeItem(L);},ln=e=>{localStorage.setItem(F,e);},dn=()=>localStorage.getItem(F)||"default",mn=()=>{localStorage.removeItem(F);},pn=e=>localStorage.setItem(Me,JSON.stringify(e)),gn=()=>JSON.parse(localStorage.getItem(Me)||"{}"),fn=e=>{try{localStorage.setItem(P,JSON.stringify(e));}catch(t){console.warn("Failed to save preview cache:",t);}},xn=()=>{try{let e=localStorage.getItem(P);return e?JSON.parse(e):[]}catch{return []}},yn=()=>{try{localStorage.removeItem(P);}catch(e){console.warn("Failed to remove preview storage:",e);}},Tn=(e,t,r)=>{try{return JSON.parse(localStorage.getItem(A)??"{}")?.[e]?.[t]?.[r]?.selectedViewId??null}catch{return null}},hn=(e,t,r,n)=>{try{let o=JSON.parse(localStorage.getItem(A)??"{}");localStorage.setItem(A,JSON.stringify({...o,[e]:{...o[e],[t]:{...o[e]?.[t],[r]:{...o[e]?.[t]?.[r],selectedViewId:n}}}}));}catch{return null}},$e=()=>{localStorage.clear();};var mt={headers:{"Content-Type":"application/json",Accept:"application/json"}},v=dt.create({baseURL:Kn$1,headers:{...mt}}),pt=["users/switch-segment","users/update-segment"];v.interceptors.request.use(e=>new Promise(t=>{let r=false;if(pt.includes(e.url??"")){t(e);return}let n=s=>{let i=s.data;if(i==="network_request_waiting"){r=true;return}i==="resume_network_request"&&(r=false);};window.addEventListener("message",n);let o=setInterval(()=>{r||(t(e),clearInterval(o),window.removeEventListener("message",n));},0);}));v.interceptors.request.use(e=>{e.headers.Authorization=R();let t=ve();return t&&!e.headers["x-test-secret"]&&(e.headers["x-test-secret"]=t),e});v.interceptors.response.use(e=>e,e=>(e.response?.data?.force_logout&&($e(),window.location.href="/login"),Promise.reject(e)));function wn(e){let{sandboxMode:t,fixedSecretKey:r,applicationId:n,serviceId:o,functionId:s,userFunctionId:i,segmentId:a,...u}=e??{};return {...u,live_mode:t?"false":"true",...!!r&&{"x-test-secret":r},...!!n&&{application_id:n},...!!o&&{service_id:o},...!!s&&{function_id:s},...!!i&&{user_function_id:i}}}function _n(e){let r=(e??(typeof navigator<"u"&&navigator.userAgent?navigator.userAgent:"")).toLowerCase();if(r.includes("edg"))return "edge";if(r.includes("opr")||r.includes("opera"))return "opera";if(r.includes("chrome")&&!r.includes("edg")&&!r.includes("opr"))return "chrome";if(r.includes("safari")&&!r.includes("chrome"))return "safari";if(r.includes("firefox"))return "firefox";if(r.includes("msie")||r.includes("trident"))return "ie";if(r.includes("tor"))return "tor";if(r.includes("uc"))return "uc";if(r.includes("yandex"))return "yandex"}var On=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),In=e=>{let t=e??(typeof navigator<"u"&&navigator.userAgent?navigator.userAgent:"");if(!t)return;let r=t.toLowerCase();if(/ipad|tablet|playbook|silk|(android(?!.*mobile))/.test(r))return "TABLET";if(/mobile|iphone|ipod|android.*mobile|blackberry|iemobile|opera mini|windows phone/.test(r))return "MOBILE";if(/desktop|laptop|macintosh|windows|linux|unix|freebsd|openbsd|netbsd|chromeos|solaris|beos|os/.test(r))return "DESKTOP"};function Pn(){let e=["#D6D6D6","#BFF192","#E4EE92","#FDFCAB","#FFE78E","#FFCE6B","#FFBC8C","#FF947C","#C88FA3","#B988C9","#9A8BBB","#89B6FF","#ACD4E1","#ADBABE","#C0DAAA","#D5DA91","#EAE7A2","#DFCE9C","#C9A997","#858585","#000000"];return e[Math.trunc(Math.random()*e.length)]}function Rn(){let e=["linear-gradient(135deg, #31D5C8 0%, #1186C5 100%)","linear-gradient(135deg, #A2E9BD 0%, #44BB74 100%)","linear-gradient(0deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.10) 100%), linear-gradient(135deg, #6BF6EB 0%, #32D6C9 100%)","linear-gradient(135deg, #61AFC9 0%, #7FBFD4 100%)","linear-gradient(135deg, #9DB7A4 0%, #7FBFD4 100%)","linear-gradient(135deg, #D7B38C 0%, #FFE09F 100%)","linear-gradient(135deg, #ADD6A2 0%, #FFDDB2 100%)"];return e[Math.trunc(Math.random()*e.length)]}var ke={r:0,g:0,b:0,alpha:1},Mn=e=>{try{let t=Ue(e).rgb(),{r,g:n,b:o,alpha:s=1}=t.object();return {value:{r,g:n,b:o,alpha:s},stringified:`rgba(${r},${n},${o},${s})`}}catch(t){console.error(t),console.warn(`Invalid hex color: "${e}". Falling back to black.`);let{r,g:n,b:o,alpha:s}=ke;return {value:ke,stringified:`rgba(${r},${n},${o},${s})`}}},vn=e=>Ue(e).hexa();var Un={fx:"Foreign Exchange",dcc:"Dynamic Currency Conversion"},ze={BHD:3,KWD:3,JOD:3,OMR:3},$=new Map,zn=(e,t)=>{if(Number.isNaN(e))return "0";try{return $.has(t)||$.set(t,new Intl.NumberFormat("en-US",{currency:t,minimumFractionDigits:ze[t]?3:2})),$.get(t).format(e)}catch(r){return console.error(r),"0"}},gt=e=>e%1===0,ft=e=>e%.1===0,xt=e=>Math.abs(e*10%1)===.1,Bn=(e,t)=>{let r=ze[t],n=e.toString();return Number.isInteger(e)&>(e)?n=e.toFixed(r?3:2):xt(e)?n=`${n}${r?"00":"0"}`:ft(e)&&(n=`${n}${r?"00":"0"}`),n};function yt(e,t=2){let r=parseFloat(e.toString());if(isNaN(r)){let[a,u]=0 .toFixed(t).split("."),d=`${a}.${u}`;return {integerAmount:a,decimalAmount:u,fullAmount:d}}let n=r.toFixed(t),[o,s]=n.split("."),i=parseInt(o).toLocaleString();return {integerAmount:i,decimalAmount:s,fullAmount:`${i}.${s}`}}function Wn(e=0,t=""){return yt(e,yo$1[t]?.decimals??2)}function Yn(e){let t=e.request.currency,r=e.select.currency,n=e.merchant.currency,o=r!==n&&r===t&&t&&n&&r,s=r!==t&&t&&n&&r,i=o?"fx":void 0;i=s?"dcc":i;let a=o?e.merchant:void 0;return a=s?e.request:a,{type:i,shownAmount:a}}var Hn=e=>typeof e=="number"?e:Number(e.replace(/,/g,""));var Tt=new Intl.DisplayNames(["en"],{type:"region"});function Be(e){try{return Tt.of(e)}catch(t){console.error(t?.response?.data?.error?.message);}}function Kn(e){return e==="SA"}function jn(e){return e==="OM"}var h=e=>T(e,{sameDay:"[Today at] h:mm A",nextDay:"[Tomorrow]",lastDay:"[Yesterday]",sameElse:"MMM DD",lastWeek:"MMM DD",nextWeek:"MMM DD"}),Zn=(e,t)=>{if(!e)return "";let r=new Date,n=l(e).isSame(r,"year");return t?T(e,{sameDay:"[Today at] h:mm A",nextDay:"[Tomorrow at] h:mm A",lastDay:"[Yesterday at] h:mm A",sameElse:"[on] MMM DD [at] h:mm A",lastWeek:"[on] MMM DD [at] h:mm A",nextWeek:"[on] MMM DD [at] h:mm A"}):n?T(e,{sameDay:"[Today]",nextDay:"[Tomorrow]",lastDay:"[Yesterday]",sameElse:"[on] MMM DD",lastWeek:"[on] MMM DD",nextWeek:"[on] MMM DD"}):T(e,{sameDay:"[Today]",nextDay:"[Tomorrow]",lastDay:"[Yesterday]",sameElse:"[on] MMM DD, YYYY",lastWeek:"[on] MMM DD, YYYY",nextWeek:"[on] MMM DD, YYYY"})},Qn=e=>{let t=e?.payout,r=e?.settlement;if(!e)return {tooltip:[],status:void 0};if(!["PAID_OUT","SETTLED"].includes(e?.status||""))return {tooltip:[...r?.scheduled?[{left:"settlement_scheduled",right:`${h(r?.scheduled)}`}]:[],...t?.scheduled?[{left:"payment_scheduled",right:`${h(t?.scheduled)}`}]:[]],status:"PENDING"};if(e?.status==="PAID_OUT"){let n=t?.activities.find(o=>o.status==="PAID_OUT");return {tooltip:[{left:"paidOut",right:`${h(n?.date)}`}],status:"PAID_OUT"}}if(e?.status==="SETTLED"){let n=r?.activities.find(o=>o.status==="SETTLED");return {tooltip:[{left:"settled",right:`${h(n?.date)}`},...t?.scheduled?[{left:"payment_scheduled",right:`${h(t?.scheduled)}`}]:[]],status:"SETTLED"}}};var ro=(e,t)=>{let{isFirst:r,isLast:n}=t||{};return `${(e+0)/898*100}%`},no=({table:e,cellID:t,tableMode:r})=>{switch(e){case "charge":return Wn$1[t][r];case "refund":return _do[t][r];case "authorization":return Vn[t][r];case "intents":return Yn$1[t][r];case "topups":return fo$1[t][r];case "destinations":return Xn[t][r];case "leads":return _n$1[t][r];case "orders":return $n[t][r];case "tokens":return eo[t][r];case "payouts":return ao$1[t][r];case "protectCharges":return co$1[t][r];case "protectAuthorizations":return bo$1[t][r];case "wallet":return go$1[t][r];case "invoices":return Zn$1[t][r];case "authentications":return Un$1[t][r];case "walletDetails":return ho$1[t][r];case "walletStatement":return io$1[t][r];case "merchants":return jo$1[t][r];case "terminals":return ko$1[t][r];case "orchestrationTerminals":return lo[t][r];case "orchestrationRouting":return mo[t][r];default:return "100px"}},oo=(e,t)=>{let r,n=window.innerHeight-24-264;return e?r=window.innerHeight/1.7:t?r=n-100:r=n-20,Math.floor(r/(e||t?52:70))},Ct=()=>{let e=window.innerHeight*.82/1.24-57;return Math.floor(e/70)},so=e=>{let t=Ct();return e<t+1},io=e=>e==="default",ao=e=>e==="sheet",co=()=>({charge:{prefixes:["chg_","payout_","settlement_","terminal_"],accessor:e=>[e.id,e.capture?.charge?.map(t=>t.id),e.charge?.id,e.transactions?.map(t=>t.id),e.charge_id],label:"Charge",appCode:Fn.acceptance.code,serviceCode:Fn.acceptance.services.charges.code,icon:"capture"},authorize:{prefixes:["auth_"],keys:["id","authorize.id","source.id","charge.source.id"],label:"Authorization",appCode:Fn.acceptance.code,serviceCode:Fn.acceptance.services.authorization.code,icon:"capture"},intents:{prefixes:["intent_"],keys:[],label:"Intents",appCode:Fn.acceptance.code,serviceCode:Fn.acceptance.services.intents.code,icon:"capture"},refunds:{prefixes:["re_","payout_"],accessor:e=>[e?.refunds?.refund?.map(t=>t.id),e?.id,...e?.refunds?.length?[e?.refunds?.map(t=>t.id)]:[]],label:"Refunds",appCode:Fn.acceptance.code,serviceCode:Fn.acceptance.services.refunds.code,icon:"refund"},authentication:{prefixes:["auth_payer_"],keys:["authentication.id"],label:"Authentication",appCode:Fn.authentication.code,serviceCode:Fn.authentication.services.authentication.code,icon:"capture"},order:{prefixes:["order_","ord_"],keys:["order.id"],label:"Order",appCode:Fn.order.code,serviceCode:Fn.order.services.orders.code,icon:"capture"},chargeFlags:{prefixes:["flag_"],accessor:e=>e?.flags?.flag?.map(t=>t.id),label:"Flags",appCode:Fn.protect.code,serviceCode:Fn.protect.services.chargesFlags.code,icon:"flag"},authorizationFlags:{prefixes:["flag_"],accessor:e=>e?.flags?.flag?.map(t=>t.id),label:"Flags",appCode:Fn.protect.code,serviceCode:Fn.protect.services.authorizationsFlags.code,icon:"flag"},token:{prefixes:["tok_"],keys:["source.id"],label:"Token",appCode:Fn.tokens.code,serviceCode:Fn.tokens.services.tokens.code,icon:"capture"},destination:{prefixes:["trf_","payout_"],accessor:e=>[e?.destinations?.destination?.map(t=>t?.transfer?.id),e?.id],label:"Destination",appCode:Fn.acceptance.code,serviceCode:Fn.acceptance.services.destinations.code,icon:"destination"},payout:{prefixes:["payout_"],keys:["balance.payout.id"],label:"Payout",appCode:Fn.payouts.code,serviceCode:Fn.payouts.services.payouts.code,icon:"capture"},settlement:{prefixes:["settlement_"],keys:["settlement.id"],label:"Settlement",appCode:Fn.acceptance.code,serviceCode:Fn.acceptance.services.settlements.code,icon:"capture"},intent:{prefixes:["intent_"],keys:["intent.id"],label:"Intent",appCode:Fn.acceptance.code,serviceCode:Fn.acceptance.services.intents.code,icon:"capture"},topup:{prefixes:["topup_"],keys:["topup.id"],label:"Topup",appCode:Fn.acceptance.code,serviceCode:Fn.acceptance.services.topups.code,icon:"capture"}});var po=e=>typeof e=="string"&&e.trim().length>0,U=(e,t)=>{if(!t)return e;let r=e.indexOf(t);return e.substring(r+t.length)},k=new Map,z=(e,t)=>(k.has(t)||k.set(t,new RegExp(t,"gi")),e.match(k.get(t))?.length??0),go=e=>e.reduce((t,r)=>(t.push(r[0]),t),[]),fo=()=>crypto?.randomUUID?.()||Math.random().toString(36).substring(2,15),xo=e=>{if(navigator.clipboard)navigator.clipboard.writeText(e);else {let t=document.createElement("textarea");t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.select(),document.execCommand("copy"),t.remove();}},yo=e=>typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1),To=e=>{let[t]=e.split("%");return parseFloat(t)||0},ho=e=>`\u2022\u2022\u2022 ${e.slice(-4)}`,Co=(e,t=/_/g,r=" ")=>{let n=e.replace(t,r);return We(n)},bo=e=>Ke(We(e));var Do=(e,t)=>!e?.last_four||!t?"":`${t?.toLowerCase()} - ${e?.last_four}`,Eo=(e,t)=>!t||!e?"":`${e?.toLowerCase()||"ID"} \u2022 ${t?.slice(-4)}`;function Ao({unCapturedCode:e,unCapturedMessage:t,acquirerCode:r,acquirerMessage:n,gatewayCode:o,gatewayMessage:s}){let i=e&&t&&`${e} - ${t}`,a=r&&n&&`${r} - ${n}`,u=o&&s&&`${o} - ${s}`;return {unCapturedTooltip:i,acquirerTooltip:a,gatewayTooltip:u}}function Oo(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0))}var B=e=>e==null||e==="";function Io(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>Array.isArray(t)?t.length>0&&t?.some(r=>!B(r)):typeof t=="object"?Object.values(t||{}).some(r=>!B(r)):!B(t)))}var Fo=()=>Nn===On$1.TAPSTERS_FRONTEND;var Ro=e=>e.replace(/[^0-9]/g,"");function ko({rowData:e,prefixes:t,keys:r=[],accessor:n}){let o=!!n;return (o?n?.(e):r)?.filter(Boolean)?.reduce((a,u)=>{let d=o?u:Oe(e,u);return typeof d=="string"&&t?.some(m=>d.includes(m)&&z(U(d,m),"_")===0)&&a.push(d),Array.isArray(d)&&d.length>0&&d.every(m=>typeof m=="string"&&t?.some(p=>m.includes(p)&&z(U(m,p),"_")===0))&&a.push(...d),a},[])}var zo=450,Bo=600;var Wo=3;var Vo=20,Dt=(r=>(r.Index="index",r.Date="date",r))(Dt||{}),Yo={name:"index",label:"",selected:true,menuItems:void 0,order:0,pinned:"start",isDefaultPinned:true,pinnable:true},Ho={name:"date",label:"Date",selected:true,menuItems:void 0,order:1,pinned:"start",isDefaultPinned:true,pinnable:true},Go={date:"Date",index:"Index"},Ko={sheet:["sheet"],default:["advanced","default"],text:["text"]},jo={sheet:"Advanced",default:"Sheet",text:"text"},Et={id:"default",label:"Default"},Jo={id:"custom",label:"Custom view"},qo=[Et];function es(e,t,r){return e.filter(n=>{let o=n?.id?.toString(),s=t.find(p=>{let E=p.code?.toLowerCase()===o?.toLowerCase(),C=p.name?.toLowerCase()===o?.toLowerCase();return (E||C)&&p.selected}),i=!!n.tableViewId&&(s?.menuItems?.length||0)>0,a=s?.menuItems?.find(p=>p.name?.toLowerCase()===n.tableViewId?.toString()?.toLowerCase())?.selected,u=!!s&&(a||!i),m=["actions","action_icon",...r?["index","date"]:[]].includes(o?.toLowerCase()??"");return !!(u||m)})}function ts(e,t){if(t.toLowerCase()==="index")return 0;let r=e.findIndex(o=>o.code?.toLowerCase()===t?.toLowerCase()),n=e[r];return r>=0?n?.sort_order??r:999}function rs(e,t,r){return e?.find(n=>{let o=n.code?.toLowerCase()===t.toLowerCase(),s=n.name?.toLowerCase()===t.toLowerCase();return o||s})?.menuItems?.find(n=>n.name?.toLowerCase()===r.toLowerCase()&&n.selected)?.selected||false}function ns(e,t){return e?.filter(r=>!!r.name?.[0]?.text)?.map(r=>({code:r.code,label:y(r.name,t),name:y(r.name,t)||"",selected:r?.selected!==false,sort_order:r.sort_order,menuItems:r.fields?.map(n=>n.parameters?.filter(o=>!!o.code)?.map(o=>({code:o.code,label:We(o.code),name:`${o.code}`,selected:o?.selected!==false})))?.flat()?.filter(n=>!!n.name)}))||[]}function os(e){return e.map(t=>({...t.code?{code:t.code}:{},name:[{text:t.name,lang:"en"}],selected:t.selected,sort_order:1,sorting:"descending",fields:t.menuItems?.map(r=>({code:r.name,type:"single",parameters:[{parameter:r.name,code:r.name,selected:r.selected}]}))||[]}))}var ss=({columnsView:e,columnsIds:t,selected:r})=>{let n=new Set(t.map(s=>s?.toLowerCase())),o=s=>({...s,selected:r,fields:s.fields?.map(i=>({...i,parameters:i.parameters?.map(a=>({...a,selected:r}))??[]}))});return e.map(s=>n.has(s.code?.toLowerCase()??"")||n.has(s.name?.[0]?.text?.toLowerCase()??"")?o(s):s)};function as(e){return {fullPhone:e?.number?`${e?.country_code||""} ${e?.number}`:"",code:e?.country_code||"",number:e?.number||""}}var Ve=(e,t)=>{let r=e.type==="url"?e.url:window.URL.createObjectURL(new Blob([e.content])),n=document.createElement("a");n.href=r,n.setAttribute("download",t),document.body.appendChild(n),n.click(),n.remove(),e.type==="content"&&window.URL.revokeObjectURL(r);},us=(e,t)=>Ve({type:"content",content:e},t),ls=(e,t)=>Ve({type:"url",url:e},t);var At=e=>!!(e?.isAxiosError&&!e?.response),ms=(e,t="")=>e?.response?.data?.error?.message?.trim()||t,ps=e=>!!e,_t=e=>(e?.code==="ECONNABORTED"||e?.message?.toLowerCase().includes("timeout"))??false,gs=e=>!!(e?.response?.status===404||e?.response?.status===400&&e?.response?.data?.error?.message?.toLowerCase().includes("not found")),D=({code:e,message:t})=>e?`${t} - ${e}`:t,fs=({error:e,fallbackMessage:t})=>{if(At(e)){let n=t??"networkError";return {code:null,message:n,formatted:D({code:null,message:n})}}if(_t(e)){let n=t??"yourRequestOutPleaseTryAgain";return {code:null,message:n,formatted:D({code:null,message:n})}}if(e?.response&&typeof e.response.data=="object"&&"error"in e.response.data){let{code:n,message:o}=e.response.data.error;return {code:n,message:o,formatted:D({code:n,message:o})}}let r=t??"somethingWentWrong";return {code:null,message:r,formatted:D({code:null,message:r})}};var Ts=()=>["passport","national_id","iqamah","civil_id"].map(e=>({id:e,label:We(e)}));function Cs(e,t=2){let n=e??0;if(!n)return "0 kb";let o=n/1024;return o>1024?`${(o/1024).toFixed(t)} mb`:`${o.toFixed(t)} kb`}function It(e){return e?.file?.size!==void 0&&e?.file?.name!==void 0}function Nt(e,t){return e.name===t.name&&e.size===t.size}function bs(e,t){return t?.length?t.some(r=>It(r)?Nt(r.file,e):r.name===e.name):false}var Es=e=>{let t=e?.split(".").pop()?.toLowerCase()??"";return jp[t]??Xe$1},ws=(e,t,r)=>`${e}-${t}-${r}`;var _s=e=>e?/[\u0600-\u06FF]/g.test(e):false;function Os(e,t="en"){return (e||[]).find(r=>(r?.lang||r?.locale)===t)||e?.[0]}var y=(e,t="en")=>(e||[]).find(r=>r?.lang===t)?.text,Is=(e,t="en")=>(e||[]).find(r=>r?.lang===t);var Ls=e=>{let t=e?.wallet==="SV Wallet"?"walletStoredValue":"walletPassThru";return e?.type==="Wallet"?t:e?.type},Lt={AMERICAN_EXPRESS:"AMEX"},Ye=e=>Lt[e.toUpperCase()]??e.toUpperCase(),Fs=(e,t)=>!!e&&!!t&&Ye(e)===Ye(t);var Rs=e=>({Local:e.success.light,Regional:e.info.light,Global:e.warning.light});var $s=(e,t)=>{if(t==null)return "";let r=Ko$1[e];return e===Jo$1.COUNT?t===1?r:`${r}s`:r};var g={primary:"#1F88D0",background:"white",border:"#F2F2F2",transparent:"transparent"},x={thin:"0.5px",thick:"1px",none:"0px"},He={minHeight:"28px",fullHeight:"100%"},Us=({isSelected:e,isCellSelected:t,isColumnSelected:r,isRowSelected:n,isLastRow:o})=>e?n?Ft():t&&!r?Pt():r?Rt(o):{}:{},Ft=()=>({backgroundColor:g.background,color:g.primary}),Pt=()=>({border:`${x.thin} solid ${g.primary}`,backgroundColor:g.background,color:g.primary,borderRadius:"2px"}),Rt=e=>{let t=Mt(),r=vt(e);return {borderWidth:t,borderStyle:"solid",borderColor:g.primary,borderBottom:r,height:He.fullHeight,minHeight:He.minHeight,display:"flex",alignItems:"center"}},Mt=()=>{let{none:e,thin:t}=x;return `${e} ${t} ${t} ${t}`},vt=e=>e?`${x.thick} solid ${g.primary}`:`${x.thin} solid ${g.border}`,zs=({effectiveFirst:e,isPinnedStart:t,isPinnedEnd:r})=>({borderTop:`${x.thin} solid ${g.primary}`,borderBottom:`${x.thin} solid ${g.primary}`,borderRight:`${x.thin} solid ${r?g.primary:"none"}`,borderLeft:`${x.thin} solid ${t&&e?g.primary:"transparent"}`}),Bs={left:"flex-start",center:"center",right:"flex-end"};function Ws(e,t){return t==null?e:[e,...Array.isArray(t)?t:[t]]}function Vs(...e){return e.filter(Boolean).join(" ")||void 0}var W=V(po$1,ro$1,qo$1);function V(e,t,r){let n=getTimezone(r);return n?{countryCode:e,label:`(GMT${n.utcOffsetStr}) ${Be(e)??t}`,timezone:r,offset:n.utcOffset/so$1}:W}var Ut=e=>{let t=getCountry(e),r=t?.timezones[0];if(!(!t||!r))return V(e,t.name,r)},js=e=>Ut(e)??W,Js=e=>{let t=getCountryForTimezone(e),r=getTimezone(e);return !t||!r?W:V(t.id,t.name,e)};function ti(e){return {name:"Payment Methods",type:"payment_methods",options:e?.map(t=>({name:Ke(We(y(t?.name))),type:t?.code,icon:Lo[t.code]??Lo.CARD,options:t.payment_methods?.map(r=>({name:y(r.name),type:r.code}))}))}}function ri(e=[]){return {name:"Payment Schemes",type:"payment_scheme",options:e.filter(t=>t.code).map(t=>({name:Ke(We(y(t?.name))),type:t?.code}))}}var Je=["120px","180px","100px","150px","200px","140px","160px","110px","190px","130px"],zt={id:"index",header:"",width:"34px",order:0,hidden:false,sortable:false,pinned:"start",isDefaultPinned:true,pinnable:true},Bt={id:"date",header:"",width:"120px",order:1,hidden:false,sortable:false,pinned:"start",isDefaultPinned:true,pinnable:true},Wt={id:"action_icon",header:"",width:"36px",order:Je.length+3,hidden:false,sortable:false,pinned:"end",pinnable:true,isDefaultPinned:true},Vt=(e=Je)=>{let t=e.map((r,n)=>({id:`skeleton-col-${n}`,header:"",width:r,order:n+2,hidden:false,sortable:false,pinnable:false}));return [zt,Bt,...t,Wt]},oi=(e,t,r)=>r&&t?Vt():[...e];var ii=(e,t)=>e.map(r=>{let n=Object.entries(t);if(!r.default||!r.layout?.length||!n.length)return r;let o=new Map(n.map(([i,a])=>[i.toLowerCase(),a])),s=r.layout.map(i=>({...i,columns:i.columns?.map(a=>{let u=a.code?.toLowerCase();if(!u||!o.has(u))return a;let d=o.get(u)??false;return {...a,default:d,fields:a.fields?.map(m=>({...m,default:d}))}})}));return {...r,layout:s}});var ui=(e,t)=>t.some(r=>!!e[r]),li=(e,t,r)=>t?e:e.map(n=>{if(r.hiddenFilterColumnIds.includes(n.id)){let{filter:s,...i}=n,a=n.id,u=typeof i.header=="function"?We(a):i.header;return {...i,header:u}}let{hiddenFilterOptionKeys:o}=r;if(o&&n.filter&&"options"in n.filter&&n.filter.options){let s=n.filter.options,i=s.filter(a=>!a.apiKey||!o.includes(a.apiKey));if(i.length!==s.length)return {...n,filter:{...n.filter,options:i}}}return n});typeof window<"u"&&qe.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener noreferrer");});var Ht={USE_PROFILES:{html:true},ALLOWED_URI_REGEXP:/^(?:(?:https?|mailto|tel|blob):|[^a-z]|[-a-z.+]+(?:[^-a-z.+:]|$))/i,WHOLE_DOCUMENT:true},pi=e=>typeof window>"u"?"":String(qe.sanitize(e||"",Ht));var fi=e=>window?.__TAPOS_NEWRELIC_TRACKING_EVENTS__?.trackFeatureEvent?.(e),xi=e=>e.toISOString();function Ti(e,t){let r=e.replace(/:/g,"");return t?`${t}-${r}`:r}function Gt(e){return e!=null&&e!==""}function Ci(e,t){let r=e!=null,n=t&&"message"in t?t.message:e?.message,o=Gt(n);return {isProvided:r,isVisible:o,type:o?e?.type:void 0}}export{Qr as $,go as $a,Os as $b,_r as A,Rn as Aa,Et as Ab,Gt as Ac,Ie as B,Mn as Ba,Jo as Bb,Ci as Bc,Or as C,vn as Ca,qo as Cb,Ir as D,Un as Da,es as Db,Nr as E,ze as Ea,ts as Eb,Lr as F,zn as Fa,rs as Fb,Fr as G,Bn as Ga,ns as Gb,Pr as H,yt as Ha,os as Hb,Rr as I,Wn as Ia,ss as Ib,Mr as J,Yn as Ja,as as Jb,Fe as K,Hn as Ka,Ve as Kb,at as L,Be as La,us as Lb,ct as M,Kn as Ma,ls as Mb,Ur as N,jn as Na,At as Nb,Yr as O,h as Oa,ms as Ob,ve as P,Zn as Pa,ps as Pb,Hr as Q,Qn as Qa,_t as Qb,Gr as R,ro as Ra,gs as Rb,Kr as S,no as Sa,fs as Sb,jr as T,oo as Ta,Ts as Tb,R as U,so as Ua,Cs as Ub,Jr as V,io as Va,It as Vb,qr as W,ao as Wa,Nt as Wb,M as X,co as Xa,bs as Xb,Xr as Y,po as Ya,Es as Yb,Zr as Z,U as Za,ws as Zb,lt as _,z as _a,_s as _b,Jt as a,en as aa,fo as ab,y as ac,qt as b,tn as ba,xo as bb,Is as bc,Xt as c,rn as ca,yo as cb,Ls as cc,Zt as d,nn as da,To as db,Fs as dc,er as e,on as ea,ho as eb,Rs as ec,tr as f,sn as fa,Co as fb,$s as fc,rr as g,an as ga,bo as gb,g as gc,Qe as h,cn as ha,Do as hb,Us as hc,nr as i,un as ia,Eo as ib,zs as ic,or as j,ln as ja,Ao as jb,Bs as jc,f as k,dn as ka,Oo as kb,Ws as kc,sr as l,mn as la,B as lb,Vs as lc,S as m,pn as ma,Io as mb,js as mc,xr as n,gn as na,Fo as nb,Js as nc,yr as o,fn as oa,Ro as ob,ti as oc,Tr as p,xn as pa,ko as pb,ri as pc,hr as q,yn as qa,zo as qb,Je as qc,Cr as r,Tn as ra,Bo as rb,Vt as rc,br as s,hn as sa,Wo as sb,oi as sc,Sr as t,$e as ta,Vo as tb,ii as tc,Dr as u,v as ua,Dt as ub,ui as uc,Er as v,wn as va,Yo as vb,li as vc,Ne as w,_n as wa,Ho as wb,pi as wc,T as x,On as xa,Go as xb,fi as xc,wr as y,In as ya,Ko as yb,xi as yc,Ar as z,Pn as za,jo as zb,Ti as zc};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {j}from'./chunk-
|
|
1
|
+
import {j}from'./chunk-K43ZLU4I.js';import {Ia,lc}from'./chunk-I3LSSBRI.js';import {forwardRef,memo}from'react';import {styled}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var r="os-shared-CurrencyAmount",e={root:`${r}-root`,integer:`${r}-integer`,separator:`${r}-separator`,decimal:`${r}-decimal`};var l=styled(j)(({theme:t})=>{let{fontSize:n,fontWeight:o}=t.v2.typography.textVariants.body.small.bold;return {fontSize:n,fontWeight:o,fontFamily:"inherit",lineHeight:"inherit",letterSpacing:"inherit",color:"inherit",display:"inline-flex",alignItems:"center",whiteSpace:"nowrap",overflow:"auto"}}),u=styled("span")(({theme:t})=>({fontWeight:t.v2.typography.fontWeightRegular}));var f=forwardRef(({amount:t,currency:n,id:o,className:C,sx:A,...d},g)=>{let{integerAmount:h,decimalAmount:s}=Ia(t,n??"");return jsxs(l,{ref:g,component:"span",id:o,"data-testid":o??"CurrencyAmount",className:lc(e.root,C),sx:A,...d,children:[jsx("span",{className:e.integer,children:h}),s?jsxs(Fragment,{children:[jsx("span",{className:e.separator,children:"."}),jsx(u,{className:e.decimal,children:s})]}):null]})});f.displayName="CurrencyAmount";var S=memo(f);export{e as a,S as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var i="https://cdn.tap.company/tap-assets",e=`${i}/icons/dashboard/light`,t=`${e}/other`,ot=`${e}/function`,Ye=`${i}/videos`,Ve=`${i}/files`,f=`${Ve}/templates`,nt=c=>`${e}/${c}.svg`,st=c=>`${e}/payment-method/v2/${c}.svg`,ct=c=>`${e}/payment-issuer/${c}.svg`,pt=c=>`${e}/country/v3/${c}.svg`,at=c=>`${e}/function/${c}.svg`,rt=c=>`${e}/statusIcons/${c}.svg`,xt=c=>`${i}/currency/v3/light/${c}.svg`,it=c=>{let He=c.replace(/\s/g,"");return `${i}/icons/dashboard/light/authority/v2/${He}.svg`},dt=c=>`${e}/browsers/${c}.svg`,lt=c=>`${e}/payment-initiator/${c}.svg`,ut=c=>`${e}/payment-gateways/${c}.svg`,gt=c=>`${e}/aging/${c}.svg`,It=`${e}/currency/sar.svg`,vt=`${e}/currency/dirham.svg`,ht=`${e}/abandoned.svg`,mt=`${e}/abandonedYellow.svg`,At=`${e}/chevron-down.svg`,ft=`${e}/removeIcon.svg`,Et=`${e}/reversed.svg`,$t=`${e}/destinationSolid.svg`,Tt=`${e}/search.svg`,St=`${e}/unauthorized.svg`,_t=`${e}/view.svg`,yt=`${e}/reports.svg`,Pt=`${e}/flag.svg`,Ct=`${e}/dispute.svg`,bt=`${e}/timezone.svg`,Rt=`${e}/greyTimezone.svg`,Nt=`${e}/subscription.svg`,wt=`${e}/savedCard.svg`,Ot=`${e}/egypt.svg`,Lt=`${e}/saudiArabia.svg`,kt=`${e}/jordan.svg`,Bt=`${e}/lebanon.svg`,Mt=`${e}/kuwait.svg`,Ut=`${e}/unitedArabEmirates.svg`,Dt=`${e}/europe.svg`,Wt=`${e}/bahrain.svg`,Ft=`${e}/america.svg`,Gt=`${e}/payment-method/v2/card.svg`,Ht=`${e}/payment-method/v2/UnionPay.svg`,Yt=`${e}/payment-method/v2/JAYWAN.svg`,Vt=`${e}/device.svg`,zt=`${e}/expressCheckout.svg`,Kt=`${e}/applePay.svg`,qt=`${e}/cash.svg`,Zt=`${e}/passThruWallet.svg`,Qt=`${e}/storedValueWallet.svg`,jt=`${e}/buyNowPayLater.svg`,Jt=`${e}/openBanking.svg`,Xt=`${e}/FrictionlessIcon.svg`,eo=`${e}/ChallengeIcon.svg`,to=`${e}/visa.svg`,oo=`${e}/redArrowDownIcon.svg`,no=`${e}/completed.svg`,so=`${e}/chargebackRequested.svg`,co=`${e}/chargeback.svg`,po=`${t}/captureDropdown.svg`,ao=`${e}/disputeResolved.svg`,ro=`${e}/reversePayout.svg`,xo=`${e}/ellipsisHorizontal.svg`,io=`${e}/3ds.svg`,lo=`${e}/invoiceIdIcon3.svg`,uo=`${e}/idIcon3.svg`,go=`${e}/id.svg`,Io=`${t}/copyIcon.svg`,vo=`${t}/codeIcon.svg`,ho=`${t}/GreenCheckMark2.svg`,mo=`${e}/closedDispute.svg`,Ao=`${e}/openDispute.svg`,fo=`${e}/desktop.svg`,Eo=`${e}/mobile.svg`,$o=`${e}/tablet.svg`,To=`${e}/invoice.svg`,So=`${e}/cancelledInvoiceIcon.svg`,_o=`${e}/expiredInvoiceIcon.svg`,yo=`${e}/invoiceNumberIcon.svg`,Po=`${e}/column.svg`,Co=`${e}/sortAz.svg`,bo=`${e}/sortZa.svg`,E=`${e}/zipFile.svg`,Ro=`${e}/successWhiteBg.svg`,No=`${e}/failedWhiteBgIcon.svg`,wo=`${e}/exclamationGreyIcon.svg`,Oo=`${e}/exclamationDarkGreyIcon.svg`,Lo=`${e}/percentage0.svg`,ko=`${e}/percentage50.svg`,Bo=`${e}/percentage75.svg`,Mo=`${e}/percentage100.svg`,Uo=`${e}/halfCircle.svg`,Do=`${e}/halfCircleTransparent.svg`,Wo=`${e}/maximize.svg`,Fo=`${e}/minimize.svg`,Go=`${e}/close.svg`,Ho=`${e}/dashedCheckIcon.svg`,Yo=`${e}/outstandingIcon.svg`,Vo=`${e}/cancelledStatusIcon.svg`,zo=`${e}/expiredStatusIcon.svg`,Ko=`${e}/paidStatusIcon.svg`,qo=`${e}/refundedStatusIcon.svg`,Zo=`${e}/deactivatedIcon.svg`,Qo=`${e}/topup.svg`,jo=`${e}/AIOverviewIcon.svg`,Jo=`${t}/demaximize.svg`,Xo=`${e}/pendingFlag.svg`,en=`${e}/ibanIcon.svg`,tn=`${e}/payoutIcon.svg`,on=`${e}/releasedFlag.svg`,nn=`${e}/acceptedFlag.svg`,sn=`${e}/clearIcon.svg`,cn=`${e}/status/unCaptured.svg`,pn=`${t}/newWindow.svg`,an=`${t}/viewAll.svg`,rn=`${t}/allApps.svg`,xn=`${t}/hide.svg`,dn=`${t}/close.svg`,ln=`${t}/star.svg`,un=`${t}/closeCircle.svg`,gn=`${t}/acquirer.svg`,In=`${e}/GenericIconNew.svg`,vn=`${t}/acquirerRed.svg`,hn=`${t}/gateway.svg`,mn=`${t}/acquirerOrange.svg`,An=`${e}/status/capturedAuthorize.svg`,fn=`${t}/merchantInitiated.svg`,En=`${t}/rightArow.svg`,$n=`${e}/blackRightArrow.svg`,Tn=`${t}/orangeFlag.svg`,Sn=`${t}/openFlag.svg`,_n=`${t}/closedFlag.svg`,yn=`${t}/redFlag.svg`,Pn=`${t}/grayFlag.svg`,Cn=`${t}/downArrow.svg`,bn=`${t}/check.svg`,Rn=`${t}/closeX.svg`,Nn=`${t}/drag.svg`,wn=`${t}/checkboxIcon.svg`,On=`${e}/plusWhite.svg`,Ln=`${t}/checkboxIcon.svg`,kn=`${e}/Uniso.svg`,Bn=`${e}/addidas.svg`,Mn=`${e}/radioButtonChecked.svg`,Un=`${e}/radioButtonUnchecked.svg`,Dn=`${e}/Mac.svg`,Wn=`${e}/blueCheckIconZigzag.svg`,Fn=`${e}/greenCheckIconZigzag.svg`,Gn=`${e}/dimmedCheckIconZigzag.svg`,Hn=`${e}/marketPlaceBlue.svg`,Yn=`${e}/marketplaceBlackIcon.svg`,Vn=`${e}/marketPlaceDimmed.svg`,zn=`${e}/moneyOut.svg`,Kn=`${e}/moneyOutDimmed.svg`,qn=`${e}/moneyIn.svg`,Zn=`${e}/moneyInDimmed.svg`,Qn=`${e}/message.svg`,jn=`${e}/pending.svg`,Jn=`${e}/payStream.svg`,Xn=`${e}/clearCoin.svg`,es=`${t}/walletSmall.svg`,ts=`${t}/bank.svg`,os=`${t}/hijri.svg`,ns=`${t}/darkLeftArrow.svg`,ss=`${t}/darkRightArrow.svg`,cs=`${t}/spinnerLoading.svg`,ps=`${t}/spinnerLoadingAnimated.svg`,as=`${t}/actionFail.svg`,rs=`${t}/actionSuccess.svg`,xs=`${t}/checkMark.svg`,is=`${t}/logout.svg`,ds=`${t}/preferences.svg`,ls=`${t}/transform.svg`,$=`${t}/token.svg`,l=`${t}/billing.svg`,us=`${t}/receiptBill.svg`,gs=`${e}/newReceiptIcon.svg`,u=`${t}/acceptance.svg`,Is=`${e}/acceptanceEnabled.svg`,vs=`${e}/acceptanceBlue.svg`,hs=`${e}/payoutsGreen.svg`,ms=`${t}/acceptanceAppIconDisabled.svg`,As=`${t}/payoutsAppIconDisabled.svg`,fs=`${e}/payoutEnabled.svg`,Es=`${e}/payoutAppGreenIcon.svg`,$s=`${e}/payoutDisabledRounded.svg`,Ts=`${e}/acceptanceDisabledRounded.svg`,g=`${t}/AuthenticationApp.svg`,I=`${t}/walletApp.svg`,v=`${t}/payouts.svg`,T=`${t}/protect.svg`,S=`${t}/customers.svg`,_=`${t}/business.svg`,y=`${t}/account.svg`,Ss=`${t}/disableCheck.svg`,_s=`${t}/wifiOff.svg`,ys=`${t}/SandboxHovered.svg`,Ps=`${t}/Sandbox.svg`,Cs=`${t}/ExclamationError.svg`,bs=`${t}/greyCheck.svg`,Rs=`${t}/greyCross.svg`,Ns=`${t}/blueCheck.svg`,ws=`${t}/disabledCheck.svg`,Os=`${t}/darkCheck.svg`,Ls=`${t}/collapseArrow.svg`,ks=`${t}/world.svg`,Bs=`${t}/grayUpArrow.svg`,Ms=`${t}/blackHeadingDownArrowIcon.svg`,Us=`${t}/blueHeadingDropdownArrow.svg`,Ds=`${t}/dropdownArrow.svg`,Ws=`${t}/greyDropdownIcon.svg`,P=`${t}/business2.svg`,C=`${t}/development.svg`,Fs=`${t}/financial.svg`,b=`${t}/light_master_orchestrator.svg`,R=`${t}/platform.svg`,Gs=`${t}/provider.svg`,N=`${t}/appPlatform.svg`,Hs=`${t}/authenticationGateway.svg`,w=`${t}/billingPlatform.svg`,O=`${t}/commercePlatform.svg`,Ys=`${t}/commercialRegulator.svg`,Vs=`${t}/merchantServiceProvider.svg`,L=`${t}/paymentAcquirer.svg`,k=`${t}/paymentFacilitator.svg`,B=`${t}/paymentGatewayProvider.svg`,M=`${t}/paymentIssuer.svg`,U=`${t}/paymentMethod.svg`,D=`${t}/paymentProcessor.svg`,W=`${t}/paymentScheme.svg`,F=`${t}/paymentTechnologyV2.svg`,G=`${t}/paymentTerminalProvider.svg`,H=`${t}/retailPlatform.svg`,zs=`${t}/retailer.svg`,Y=`${t}/light_business.svg`,V=`${t}/light_development.svg`,Ks=`${t}/financial.svg`,z=`${t}/light_master_orchestrator.svg`,K=`${t}/light_platform.svg`,qs=`${t}/provider.svg`,q=`${t}/light_app_platform.svg`,Zs=`${t}/light_authentication_gateway.svg`,Z=`${t}/light_billing_platform.svg`,Q=`${t}/light_commerce_platform.svg`,Qs=`${t}/light_commercial_regulator.svg`,js=`${t}/light_merchant_service_provider.svg`,j=`${t}/light_payment_acquirer.svg`,J=`${t}/light_payment_facilitator.svg`,X=`${t}/light_payment_gateway_provider.svg`,ee=`${t}/light_payment_issuer.svg`,te=`${t}/light_payment_method.svg`,oe=`${t}/light_payment_processor.svg`,ne=`${t}/light_payment_scheme.svg`,se=`${t}/light_payment_technology_v2.svg`,ce=`${t}/light_payment_terminal_provider.svg`,pe=`${t}/light_retail_platform.svg`,Js=`${t}/light_retailer.svg`,Xs=`${t}/brandGray.svg`,ec=`${e}/grayCircleIcon.svg`,tc=`${t}/json.svg`,oc=`${t}/jsonBlackIcon.svg`,nc=`${t}/sort1.svg`,sc=`${t}/SandboxHoveredLight.svg`,cc=`${t}/emailColoured.svg`,pc=`${e}/OrderIcon.svg`,ac=`${e}/TransactionIcon.svg`,rc=`${e}/GenericIcon.svg`,xc=`${t}/smsColoured.svg`,ic=`${t}/whatsAppColored.svg`,dc=`${t}/dueDateBlue.svg`,lc=`${t}/dueDateOrange.svg`,uc=`${t}/dueDateYellow.svg`,gc=`${t}/dueDateRed.svg`,Ic=`${t}/dueDateBlack.svg`,vc=`${t}/dueDateGray.svg`,hc=`${t}/timerBlue.svg`,mc=`${t}/expiredIcon.svg`,Ac=`${t}/remindedRed.svg`,fc=`${t}/chevronWhite.svg`,Ec=`${t}/chevronGray.svg`,$c=`${t}/notVerified.svg`,Tc=`${t}/verified.svg`,Sc=`${t}/verifyReview.svg`,_c=`${e}/window/attention.svg`,yc=`${e}/window/initalAcceptance.svg`,Pc=`${e}/window/completedAcceptance.svg`,Cc=`${e}/window/initalPayouts.svg`,bc=`${e}/window/completedPayouts.svg`,Rc=`${t}/collapseArrowsIcon.svg`,Nc=`${t}/expandArrowsIcon.svg`,wc=`${t}/greenArrowRight.svg`,Oc=`${t}/greenArrowLeft1.svg`,Lc=`${t}/greenIconWithArrowUp.svg`,kc=`${t}/whiteArrowRight.svg`,Bc=`${t}/whiteArrowLeft.svg`,Mc=`${e}/HSBCBank.svg`,Uc=`${e}/shopifyIcon.svg`,Dc=`${e}/verifiedGreenBadge.svg`,Wc=`${e}/backButtonLeft.svg`,Fc=`${e}/eyeHideIcon.svg`,Gc=`${e}/eyeShowIcon.svg`,Hc=`${t}/uploadIcon.svg`,ae=`${e}/window/uploadGreyIcon.svg`,re=`${e}/uploadAppIcon.svg`,xe=`${e}/window/paylinkGreyIcon.svg`,ie=`${e}/paylinkAppIcon.svg`,Yc=`${e}/inprogressIcon.svg`,Vc=`${e}/redCloseCircleIcon.svg`,zc=`${t}/uploadBlueIcon.svg`,Kc=`${t}/SandboxHovered.svg`,qc=`${t}/sandboxDefaultIcon.svg`,Zc=`${t}/SandboxIcon.svg`,Qc=`${t}/clock.svg`,jc=`${t}/RedClose.svg`,h=`${t}/xls.svg`,de=`${t}/csv.svg`,Jc=`${t}/pdf.svg`,Xc=`${t}/Download.svg`,ep=`${t}/reportsIconOutlined.svg`,tp=`${t}/Done.svg`,op=`${t}/reportApps.svg`,le=`${e}/window/ReportsApp.svg`,ue=`${e}/window/leadApp.svg`,ge=`${e}/window/leadTitleIcon.svg`,Ie=`${t}/OrderApp.svg`,ve=`${t}/OrderTitleIcon.svg`,np=`${e}/dottedLine.svg`,sp=`${e}/passwordDots.svg`,cp=`${e}/dollarSign.svg`,pp=`${e}/reload.svg`,ap=`${t}/deletedStatus1.svg`,rp=`${t}/draftedStatus1.svg`,xp=`${t}/createdStatus1.svg`,ip=`${t}/cancelledStatus1.svg`,dp=`${t}/expiredStatus1.svg`,lp=`${t}/paidStatus1.svg`,up=`${t}/deliveredStatus1.svg`,gp=`${t}/viewedStatus1.svg`,Ip=`${t}/savedStatus1.svg`,vp=`${t}/scheduledStatus1.svg`,hp=`${t}/invoicePendingStatus2.svg`,mp=`${t}/invoiceRefundedStatus2.svg`,Ap=`${e}/activeLeadStatus.svg`,fp=`${e}/completedLeadStatus.svg`,Ep=`${e}/closedLeadStatus.svg`,$p=`${e}/expiredLeadStatus.svg`,Tp=`${e}/readyLeadStatus.svg`,Sp=`${e}/fileIcon.svg`,_p=`${e}/clipboardFileGrayIcon.svg`,yp=`${e}/newFileIcon.svg`,Pp=`${e}/downloadFileIcon.svg`,Cp=`${e}/progressFileIcon.svg`,bp=`${e}/successFileIcon.svg`,Rp=`${e}/whiteArrowDownIcon.svg`,Np=`${e}/teamWindowIcon.svg`,wp=`${e}/blueAppsIcon.svg`,Op=`${e}/disabledCardIcon.svg`,Lp=`${e}/disabledCodeIcon.svg`,kp=`${e}/layersIcon.svg`,Bp=`${e}/status/pendingOnTapIcon.svg`,Mp=`${e}/leadWhiteIcon.svg`,Up=`${t}/chatDisabledIcon.svg`,Dp=`${e}/exclamationDarkIcon.svg`,Wp=`${t}/exclamationWarning.svg`,Fp=`${e}/exclamationError.svg`,Gp=`${e}/exclamationOrangeIcon.svg`,Hp=`${t}/greenCheckV2.svg`,Yp=`${e}/iosIcon1.svg`,Vp=`${e}/androidIcon.svg`,zp=`${e}/websiteIcon.svg`,Kp=`${t}/greyApple.svg`,qp=`${t}/greyLocationIcon.svg`,Zp=`${t}/greyDesktopIcon.svg`,Qp=`${t}/greyTimezone.svg`,jp=`${t}/safariBrowser.svg`,Jp=`${t}/chromeBrowser.svg`,Xp=`${t}/firefoxBrowser.svg`,ea=`${t}/microsoftBrowser.svg`,ta=`${t}/operaBrowser.svg`,oa=`${t}/braveBrowser.svg`,na=`${t}/arcBrowser.svg`,sa=`${t}/chromiumBrowser.svg`,ca=`${t}/userIcon.svg`,he=`${t}/slaProcess.svg`,me=`${e}/window/slaProcess.svg`,Ae=`${e}/orchestrationApp.svg`,fe=`${e}/window/orchestration.svg`,pa=`${e}/window/orchestrationWindowBg.svg`,Ee=`${e}/lendingApp.svg`,m=`${e}/window/lending.svg`,$e=`${e}/lendingProviderApp.svg`,Te=`${e}/deemaApp.svg`,Se=`${e}/window/deema.svg`,aa=`${e}/fast.svg`,ra=`${e}/bankBlue.svg`,xa=`${e}/mosque.svg`,ia=`${e}/mosqueBlack.svg`,da=`${e}/moonStar.svg`,la=`${e}/car.svg`,ua=`${e}/handCoinsWhite.svg`,ga=`${e}/list.svg`,Ia=`${e}/corporateLoan.svg`,va=`${e}/corporateLoanBlack.svg`,_e=`${e}/platformApp.svg`,ye=`${e}/window/platform.svg`,Pe=`${e}/osApp.svg`,Ce=`${e}/window/osApp.svg`,ha=`${e}/status/table/abandoned.svg`,ma=`${e}/status/table/cancelled.svg`,Aa=`${e}/status/table/captured.svg`,fa=`${e}/status/table/chargeBack.svg`,Ea=`${e}/status/table/chargeBackRequested.svg`,$a=`${e}/status/table/completed.svg`,Ta=`${e}/status/table/declined.svg`,Sa=`${e}/status/table/destinationReversed.svg`,_a=`${t}/DestinationWithoutBackground.svg`,ya=`${e}/status/table/disputeResolved.svg`,Pa=`${e}/status/table/failed.svg`,Ca=`${e}/status/table/failedNoBG.svg`,ba=`${e}/status/table/declinedNoBg.svg`,Ra=`${t}/destinationSuccess.svg`,Na=`${e}/status/authenticationFailed.svg`,wa=`${e}/status/table/authenticated.svg`,Oa=`${e}/paidOutFilterIcon.svg`,La=`${e}/completedBlackIcon.svg`,ka=`${e}/scheduledFilterIcon.svg`,Ba=`${e}/saveTokenIcon.svg`,Ma=`${e}/status/unauthenticated.svg`,Ua=`${e}/status/authenticationAttempted.svg`,Da=`${e}/status/authenticationNoAuth.svg`,Wa=`${e}/status/authenticationDeclined.svg`,Fa=`${e}/status/authenticationExemptedWithoutTransaction1.svg`,Ga=`${e}/status/authenticationExemptedWithTransaction2.svg`,Ha=`${e}/status/authenticationFailed1.svg`,Ya=`${e}/status/authenticationInitiated.svg`,Va=`${e}/status/authenticationUnavailable.svg`,za=`${e}/status/authenticationUndetermined.svg`,Ka=`${e}/status/AuthenticationWithoutTransaction1.svg`,qa=`${e}/status/authenticationWithTransaction1 2.svg`,Za=`${e}/status/AuthenticationAuthenticated.svg`,Qa=`${e}/status/authenticationPending2.svg`,ja=`${e}/authenticationFailedNoBg.svg`,Ja=`${e}/authenticationPendingNoBg.svg`,Xa=`${e}/authenticationNoAuthNoBg.svg`,er=`${e}/authenticationAttemptedNoBg.svg`,tr=`${e}/authenticationExemptedWithTransactionNoBg.svg`,or=`${e}/authenticationExemptedWithoutTransactionNoBg.svg`,nr=`${e}/authenticationDeclinedNoBg.svg`,sr=`${e}/authenticationUnavailableNoBg.svg`,cr=`${e}/authenticationUndeterminedNoBg.svg`,pr=`${e}/authenticatedSuccessNoBg.svg`,ar=`${e}/authenticationWithTransactionNoBg.svg`,rr=`${e}/authenticationWithoutTransactionNoBg.svg`,xr=`${e}/greyPlusIcon.svg`,ir=`${e}/greyMinusIcon.svg`,dr=`${e}/noPreviewIcon.svg`,lr=`${e}/other/editIcon.svg`,ur=`${t}/viewInvoice.svg`,gr=`${t}/checkoutStatus.svg`,Ir=`${t}/checkStatusOutBlue.svg`,vr=`${t}/checkoutWithMarkStatus.svg`,hr=`${t}/intentExpiredStatus.svg`,mr=`${t}/intentInitiatedStatus.svg`,Ar=`${t}/intentCancelledStatus.svg`,fr=`${t}/intentTransactedStatus.svg`,Er=`${e}/SheetViewUnionIcon.svg`,$r=`${e}/sheetView.svg`,Tr=`${e}/abandonedNoBG.svg`,Sr=`${e}/status/table/paidOut.svg`,_r=`${e}/status/table/reversePayout.svg`,yr=`${e}/status/pendingPayout.svg`,Pr=`${t}/whiteCloseIcon.svg`,Cr=`${e}/window/empty.svg`,br=`${e}/loaderWhiteIcon.svg`,Rr=`${t}/reverseActionIcon.svg`,Nr=`${e}/status/authenticationWallet.svg`,wr=`${e}/status/authenticationApp.svg`,Or=`${e}/status/authenticationBiometric.svg`,Lr=`${e}/status/authenticationDevice.svg`,kr=`${e}/status/authenticationIssuer.svg`,Br=`${e}/status/authenticationScheme.svg`,Mr=`${e}/pin.svg`,Ur=`${e}/unpin.svg`,Dr=`${t}/switcher.svg`,Wr=`${e}/closedStatusIcon.svg`,Fr=`${e}/verticalLine.svg`,Gr=`${e}/previewModeIcon.svg`,Hr=`${e}/status/table/tokensSaved.svg`,Yr=`${e}/status/table/tokensTransacted.svg`,Vr=`${e}/status/table/tokensExpired.svg`,zr=`${e}/status/table/tokensPending.svg`,Kr=`${e}/status/table/tokenCardIcon.svg`,qr=`${t}/TableloadingSpinner.svg`,Zr=`${t}/loadingSpinnerWhite.svg`,Qr=`${e}/spinnerLoadingBlue.svg`,jr=`${e}/backgroundLoader.svg`,Jr=`${t}/arrowUpBlue1.svg`,Xr=`${t}/BlueCheckMarkShadowed1.svg`,ex=`${t}/cardViewButton.svg`,tx=`${t}/listViewButton1.svg`,ox=`${e}/BlueArrowUpIcon.svg`,nx=`${e}/BlueCircleLoaderIcon.svg`,sx=`${e}/appsGridIcon2.svg`,cx=`${e}/whiteFilter.svg`,px=`${e}/grayCloseIcon.svg`,ax=`${e}/status/OrderAgreementIcon.svg`,rx=`${e}/status/InstallmentAgreementIcon.svg`,xx=`${e}/status/CardAgreementIcon.svg`,ix=`${e}/status/SubscriptionAgreementIcon.svg`,dx=`${e}/brandPlaceholder.svg`,lx=`${e}/users-icons.svg`,ux=`${e}/Board-Icons.svg`,gx=`${t}/No Agreement.svg`,be=`${e}/window/acceptance.svg`,Re=`${e}/window/wallet.svg`,Ne=`${e}/window/billing.svg`,we=`${e}/window/customers.svg`,Oe=`${e}/window/payout.svg`,Le=`${e}/window/protect.svg`,ke=`${e}/window/tokens.svg`,Be=`${e}/window/account.svg`,Me=`${e}/window/businesses.svg`,Ue=`${e}/window/authentication.svg`,De=`${t}/reportsIcon.svg`,Ix=`${e}/window/tokensReports.svg`,vx=`${e}/window/brand.svg`,hx=`${e}/window/entity.svg`,mx=`${e}/window/bank.svg`,Ax=`${e}/window/individual.svg`,fx=`${e}/window/password.svg`,Ex=`${e}/actionsIcon.svg`,$x=`${e}/addItem.svg`,Tx=`${e}/attachIcon.svg`,Sx=`${e}/CollapseArrows.svg`,_x=`${e}/customerIcon.svg`,yx=`${e}/discountIcon.svg`,Px=`${e}/emailIcon.svg`,Cx=`${e}/emailBlackIcon.svg`,bx=`${e}/linkTiltedIcon.svg`,Rx=`${e}/ExpandArrows.svg`,Nx=`${e}/feeIcon.svg`,wx=`${e}/minusIcon.svg`,Ox=`${e}/noteIcon.svg`,Lx=`${e}/pdfGrayIcon.svg`,kx=`${e}/productLabel.svg`,Bx=`${e}/quantityIcon.svg`,Mx=`${e}/removeItem.svg`,Ux=`${t}/removeItem2.svg`,Dx=`${e}/smsIcon.svg`,Wx=`${e}/taxIcon.svg`,Fx=`${e}/totalAmountIcon.svg`,Gx=`${e}/unfocusRemoveItem.svg`,Hx=`${e}/whatsappIcon1.svg`,Yx=`${e}/whiteArrow2.svg`,Vx=`${e}/newInvoice.svg`,zx=`${e}/activeActionIcon.svg`,Kx=`${e}/grayProductLabel.svg`,qx=`${e}/plusQty.svg`,Zx=`${t}/downArrow3.svg`,Qx=`${e}/customer.svg`,jx=`${t}/note.svg`,Jx=`${e}/blueNoteIcon.svg`,Xx=`${t}/attach.svg`,ei=`${e}/lateFee.svg`,ti=`${e}/addItemIcon.svg`,oi=`${e}/blueCheckIcon.svg`,ni=`${t}/trash-bin.svg`,si=`${e}/redTrashBin.svg`,ci=`${e}/blueVerifyIcon.svg`,pi=`${e}/verificationDarkBlue.svg`,ai=`${e}/grayVerifyIcon.svg`,ri=`${e}/greenVerifyIcon.svg`,xi=`${e}/redVerifyIcon.svg`,ii=`${e}/closedVerifyIcon.svg`,di=`${e}/archivedVerifyIcon.svg`,li=`${e}/penIcon.svg`,ui=`${e}/defaultCountryIcon.svg`,gi=`${e}/defaultDeviceIcon.svg`,Ii=`${e}/biometric.svg`,vi=`${e}/3dsBlue.svg`,hi=`${t}/createCharge.svg`,mi=`${t}/successCheck.svg`,Ai=`${t}/receipt.svg`,fi=`${t}/browserTimezone.svg`,Ei=`${t}/entityTimezone.svg`,$i=`${t}/historyTimezone.svg`,Ti=`${t}/smallBlueCheck.svg`,Si=`${t}/fileDownloadBlue.svg`,_i=`${t}/fileDownloadGrey.svg`,yi=`${e}/meta.svg`,Pi=`${e}/darkFilterIcon.svg`,Ci=`${e}/resize-icon.svg`,bi=`${e}/home.svg`,Ri=`${e}/lockIcon.svg`,Ni=`${e}/Calendar.svg`,wi=`${e}/status-v2/autoCapturedNoBG.svg`,Oi=`${e}/status-v2/autoVoidNoBG.svg`,Li=`${e}/status-v2/cancelledNoBG.svg`,ki=`${e}/status-v2/capturedNoBG.svg`,Bi=`${e}/status-v2/declinedNoBG.svg`,Mi=`${e}/status-v2/destinationsNoBG.svg`,Ui=`${e}/status-v2/failedNoBG.svg`,Di=`${e}/status-v2/gatewayOrange.svg`,Wi=`${e}/status-v2/gatewayRedNoBG.svg`,Fi=`${e}/status-v2/paidoutNoBG.svg`,Gi=`${e}/status-v2/refundedIconNoBG2.svg`,Hi=`${e}/status-v2/refundInitiatedNoBG.svg`,Yi=`${e}/status-v2/refundSettledNoBG.svg`,Vi=`${e}/status-v2/refundNotSettledNoBG.svg`,zi=`${e}/status-v2/restrictedNoBG.svg`,Ki=`${e}/status-v2/settledNoBG.svg`,qi=`${e}/status-v2/settlementInitiatedNoBG.svg`,Zi=`${e}/status-v2/timeoutNoBG.svg`,Qi=`${e}/status-v2/unavailableNoBG.svg`,ji=`${e}/status-v2/unknownNoBG.svg`,Ji=`${e}/status-v2/void.svg`,Xi=`${e}/status-v2/authorizeNoBG.svg`,ed=`${e}/status-v2/initiatedNoBG.svg`,td=`${e}/websiteBlueIcon.svg`,od=`${e}/androidAppIcon.svg`,nd=`${e}/iOSAppIcon.svg`,sd=`${e}/physicalLocationIcon.svg`,cd=`${e}/socialLinksIcon.svg`,pd=`${e}/smallLeftArrow.svg`,ad=`${e}/searchBlueIcon.svg`,rd=`${t}/rightLightArrow.svg`,xd=`${t}/segmentInstitution.svg`,id=`${t}/segmentTechnology.svg`,dd=`${t}/segmentDevelopmentHouse.svg`,ld=`${e}/locationIcon.svg`,We=`${t}/terminal.svg`,Fe=`${e}/window/terminal.svg`,ud=`${e}/terminalCardPhone.svg`,gd=`${e}/ToastPOS.svg`,Id=`${e}/terminalTypeIcon.svg`,vd=`${e}/terminalBrush.svg`,hd=`${e}/terminalBrushMuted.svg`,md=`${e}/navigationIcon.svg`,Ad=`${e}/babyBlueCheckIcon.svg`,fd=`${e}/digitalReceiptIcon.svg`,Ed=`${e}/bankNoteIcon.svg`,$d=`${e}/terminalDeviceFrame.svg`,Td=`${e}/blackBrushIcon.svg`,Sd=`${e}/mutedOutlinedCheckIcon.svg`,_d=`${e}/outlinedPlatformIcon.svg`,yd=`${e}/navigationPointerBlack.svg`,Pd=`${e}/addIconWhite.svg`,Cd=`${e}/greyUpArrow.svg`,bd=`${e}/greyDownArrow.svg`,Rd=`${e}/services/brandService.svg`,Nd=`${e}/services/authorizationService.svg`,wd=`${e}/services/chargebacksService.svg`,Od=`${e}/services/chargesService.svg`,Ld=`${e}/services/destinationsService.svg`,kd=`${e}/services/entityService.svg`,Bd=`${e}/services/invoiceService.svg`,Md=`${e}/services/payoutService.svg`,Ud=`${e}/services/refundsService.svg`,Dd=`${e}/services/usersService.svg`,Wd=`${e}/services/walletService.svg`,Fd=`${e}/services/intentsService.svg`,Gd=`${e}/services/insightsService.svg`,Hd=`${e}/services/retailersService.svg`,Yd=`${e}/services/terminalService.svg`,Vd=`${e}/services/createLead.svg`,zd=`${e}/services/viewLead.svg`,Kd=`${e}/archievedOutlined.svg`,qd=`${e}/closeOutlinedCircle.svg`,Zd=`${e}/dashedOutlinedCircle.svg`,Qd=`${e}/deactivatedCircle.svg`,jd=`${e}/deactivatedOutlinedCircleV2.svg`,Jd=`${e}/exclamationOutlinedCircle.svg`,Xd=`${e}/questionOutlinedCircle.svg`,el=`${e}/outlinedCircle.svg`,tl=`${e}/greenCheck2ACE00.svg`,ol=`${e}/blueCopyIcon.svg`,nl=`${e}/blackLinkIcon.svg`,sl=`${e}/blackSettingsIcon.svg`,cl=`${e}/blackWallet.svg`,pl=`${e}/blueGradientBrushIcon.svg`,al=`${e}/gadientLink.svg`,rl=`${e}/blackDeviceIcon.svg`,xl=`${e}/gradientDeviceIcon.svg`,il=`${e}/gradientSettings.svg`,dl=`${e}/gradientWallet.svg`,ll=`${e}/codeIcon.svg`,ul=`${e}/manyCurrencyCoin.svg`,gl=`${e}/manyCurrencyCoinGradient.svg`,Il=`${e}/blackMobileBatteryIcon.svg`,vl=`${e}/blackMobileSignalIcon.svg`,hl=`${e}/emptyMobileWifiIcon.svg`,ml=`${e}/deemaWithLabel.svg`,Al=`${e}/chargeBackWhiteIcon.svg`,fl=`${e}/blackUnLinkIcon.svg`,El=`${e}/sortDescArrowIcon.svg`,$l=`${e}/sortAscArrowIcon.svg`,Tl=`${e}/closedOutlinedYellowCircle.svg`,Sl=`${e}/deactivatedOrangeCircle.svg`,_l=`${e}/deactivatedCircleV2.svg`,yl=`${e}/exclamationOutlinedOrangeCircle.svg`,Pl=`${e}/activeGreenIcon.svg`,Cl=`${e}/activeBlue.svg`,bl=`${e}/inActiveGreyIcon.svg`,Rl=`${e}/inActiveWhite.svg`,Nl=`${Ye}/terminal_link.mp4`,wl=`${e}/bluePlusIcon.svg`,Ol=`${e}/blackSettingsVariant2Icon.svg`,Ll=`${e}/exclamationWhite.svg`,kl=`${t}/blueCircleWithWhiteCheck.svg`,Bl=`${e}/whiteCircleWithBlueCheck.svg`,Ml=`${e}/externalLink.svg`,Ul=`${e}/settingsIcon.svg`,Dl=`${e}/flipIcon.svg`,Wl=`${e}/shoppingCart.svg`,Fl=`${e}/verifyAvatar.svg`,Gl=`${e}/helpCircle.svg`,Hl=`${e}/provider/CYBERSOURCE.svg`,Yl=`${e}/provider/MPGS.svg`,Vl=`${e}/provider/NETCETERA.svg`,zl=`${e}/provider/APPLEPAY.svg`,Kl=`${e}/provider/TAP3DS.svg`,ql=`${e}/provider/BENEFIT_PAY.svg`,Zl=`${e}/provider/BENEFIT.svg`,Ql=`${e}/provider/CAREEM_PAY.svg`,jl=`${e}/provider/DEEMA.svg`,Jl=`${e}/provider/FAWRY.svg`,Xl=`${e}/provider/FSS.svg`,eu=`${e}/provider/KNET.svg`,tu=`${e}/provider/MEEZA.svg`,ou=`${e}/provider/NGENIUS.svg`,nu=`${e}/provider/NPG.svg`,su=`${e}/provider/OMAN_NET.svg`,cu=`${e}/provider/PAYPAL.svg`,pu=`${e}/provider/POSTPAY.svg`,au=`${e}/provider/QPAY.svg`,ru=`${e}/provider/SPG.svg`,xu=`${e}/provider/STC_PAY.svg`,iu=`${e}/provider/TABBY.svg`,du=`${e}/provider/TAMARA.svg`,lu=`${e}/provider/TPAY.svg`,uu=`${e}/provider/TPG.svg`,gu=`${e}/downloadBlue.svg`,Iu=`${e}/eyeBlue.svg`,vu=`${e}/fastBlack.svg`,hu=`${e}/repeat.svg`,mu=`${e}/shield.svg`,Au=`${e}/fileMinus.svg`,fu=`${e}/percent.svg`,Eu=`${e}/cardUpload.svg`,$u=`${e}/startConnector.svg`,Tu=`${e}/endConnector.svg`,Su=`${e}/spark.svg`,_u=`${e}/filledConnector.svg`,yu=`${e}/dottedConnector.svg`,Pu=`${e}/play.svg`,Cu=`${e}/merchantAttributes.svg`,bu=`${e}/issuerAttributes.svg`,Ru=`${e}/refresh.svg`,Nu=`${e}/riskAttributes.svg`,wu=`${e}/exclude.svg`,Ou=`${e}/earlySettlements.svg`,Lu=`${e}/financedBy.svg`,ku=`${e}/financeFeatures.svg`,Bu=`${e}/loanAmount.svg`,Mu=`${e}/murabhaFinance.svg`,Uu=`${e}/testimonial.svg`,Du=`${f}/bulk-refund-template.xlsx`,Wu=`${f}/bulk-invoice-template.xlsx`,Fu=`${e}/emptyCopyIcon.svg`,Gu=`${e}/deactiveIcon.svg`,Hu=`${e}/disableIcon.svg`,Yu=`${e}/extendIcon.svg`,Vu=`${e}/payers.svg`,zu=`${e}/gatewayIcon.svg`;var qu=3,ze=88,Ke=24,Zu="32px";var n={view:{code:"VIEW"},sandbox:{code:"SANDBOX"},jsonApi:{code:"JSON API"},reports:{code:"REPORTS"}},qe={updateMerchant:{code:"UPDATE_MERCHANT"},activateMarketplace:{code:"ACTIVATE_MARKETPLACE"},updateWallet:{code:"UPDATE_WALLET"},updateRisk:{code:"UPDATE_RISK"}},a={updateEntity:{code:"UPDATE ENTITY"},updateBrand:{code:"UPDATE BRAND"},updateUsers:{code:"UPDATE USERS"},createUsers:{code:"CREATE USERS"},updateShareholder:{code:"UPDATE_SHAREHOLDER"},createShareholder:{code:"CREATE_SHAREHOLDER"},assign:{code:"ASSIGN"},updatePoc:{code:"UPDATE_POC"},...qe},r={review:{code:"REVIEW"},verify:{code:"VERIFY"},reject:{code:"REJECT"},statusControl:{code:"STATUS_CONTROL"}},d={viewOperator:{code:"VIEW_OPERATOR"},createOperator:{code:"CREATE_OPERATOR"}},o={tokens:{code:"TOKEN",services:{tokens:{code:"TOKENS",functions:{...n}}}},billing:{code:"BILLING",services:{insights:{code:"INSIGHTS"},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,...a,...r,businessProfile:{code:"BUSINESS_PROFILE"}}},retailer:{code:"RETAILER",functions:{...n,...a,...r}},businesses:{code:"BUSINESS",functions:{...n,update:{code:"UPDATE"}}}}},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"},bulkRefund:{code:"BULK_REFUND"}}},chargeback:{code:"CHARGEBACKS"},settlements:{code:"SETTLEMENTS",functions:{...n}},disputes:{code:"DISPUTES"}}},wallet:{code:"WALLET",services:{insights:{code:"INSIGHTS"},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:{insights:{code:"INSIGHTS"},authentication:{code:"AUTHENTICATION",functions:{...n}},saveTokens:{code:"SAVE_TOKENS",functions:{...n}},charges:{code:"CHARGES",functions:{...n}},authorizations:{code:"AUTHORISATIONS",functions:{...n}}}},customers:{code:"CUSTOMER"},businesses:{code:"BUSINESS",services:{businesses:{code:"BUSINESSES"}}},reports:{code:"REPORTS",services:{reports:{code:"REPORTS"}}},upload:{code:"UPLOAD",services:{upload:{code:"UPLOAD"}}},paylink:{code:"PAYLINK",services:{links:{code:"LINKS",functions:{...n,create:{code:"CREATE"}}}}},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"}}},shareholders:{code:"SHAREHOLDERS",functions:{view:{code:"VIEW"},create:{code:"CREATE"},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:{merchantLead:{code:"MERCHANT_LEAD",functions:{...n,convert:{code:"CONVERT"},close:{code:"CLOSE"},update:{code:"UPDATE"},connect:{code:"CONNECT"},create:{code:"CREATE"}}},retailerLead:{code:"RETAILER_LEAD",functions:{...n,update:{code:"UPDATE"},close:{code:"CLOSE"},convert:{code:"CONVERT"},create:{code:"CREATE"}}}}},terminals:{code:"TERMINALS",services:{create:{code:"CREATE"},view:{code:"VIEW"},update:{code:"UPDATE"},deactivate:{code:"DEACTIVATE"}}},slaProcess:{code:"SLA_PROCESS"},orchestration:{code:"ORCHESTRATION",services:{routing:{code:"ROUTING",functions:{...n,create:{code:"CREATE"},update:{code:"UPDATE"}}},gatewayTerminals:{code:"GATEWAY_TERMINALS",functions:{...n,create:{code:"CREATE"},update:{code:"UPDATE"}}},credentials:{code:"CREDENTIALS",functions:{...n,create:{code:"CREATE"},update:{code:"UPDATE"}}},orchestrationSettings:{code:"ORCHESTRATION_SETTINGS",functions:{view:{code:"VIEW"},update:{code:"UPDATE"}}}}},lending:{code:"LENDING"},lendingProvider:{code:"LENDING_PROVIDER"},deema:{code:"DEEMA"},osApp:{code:"OS_APP"},platform:{code:"PLATFORM",services:{platform:{code:"PLATFORM",functions:{...n,...a,...r,...d}},onlineCommerce:{code:"ONLINE_COMMERCE",functions:{...n,...a,...r,...d}},retailCommerce:{code:"RETAIL_COMMERCE",functions:{...n,...a,...r,...d}},app:{code:"APP",functions:{...n,...a,...r,...d}},billing:{code:"BILLING",functions:{...n,...a,...r,...d}}}}},Ju={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.upload.code]:{width:700,minWidth:700,maxWidth:"unset",maxHeight:"unset",height:652},[o.billing.code]:{minWidth:856},[o.paylink.code]:{minWidth:856},[o.business.code]:{width:1400,maxWidth:1400}},Xu=[{code:o.tokens.code,iconUrl:$,toolbarIconUrl:ke},{code:o.billing.code,iconUrl:l,toolbarIconUrl:Ne},{code:o.acceptance.code,iconUrl:u,toolbarIconUrl:be},{code:o.wallet.code,iconUrl:I,toolbarIconUrl:Re},{code:o.payouts.code,iconUrl:v,toolbarIconUrl:Oe},{code:o.protect.code,iconUrl:T,toolbarIconUrl:Le},{code:o.authentication.code,iconUrl:g,toolbarIconUrl:Ue},{code:o.customers.code,iconUrl:S,toolbarIconUrl:we},{code:o.businesses.code,iconUrl:_,toolbarIconUrl:Me},{code:o.reports.code,iconUrl:le,toolbarIconUrl:De},{code:o.upload.code,iconUrl:re,toolbarIconUrl:ae},{code:o.paylink.code,iconUrl:ie,toolbarIconUrl:xe},{code:o.account.code,iconUrl:y,toolbarIconUrl:Be},{code:o.order.code,iconUrl:Ie,toolbarIconUrl:ve},{code:o.leads.code,iconUrl:ue,toolbarIconUrl:ge},{code:o.terminals.code,iconUrl:We,toolbarIconUrl:Fe},{code:o.slaProcess.code,iconUrl:he,toolbarIconUrl:me},{code:o.orchestration.code,iconUrl:Ae,toolbarIconUrl:fe},{code:o.lending.code,iconUrl:Ee,toolbarIconUrl:m},{code:o.lendingProvider.code,iconUrl:$e,toolbarIconUrl:m},{code:o.deema.code,iconUrl:Te,toolbarIconUrl:Se},{code:o.platform.code,iconUrl:_e,toolbarIconUrl:ye},{code:o.osApp.code,iconUrl:Pe,toolbarIconUrl:Ce}],eg=["login"];var Ge=window.__GLOBAL_CONFIG__??{},Ze=Ge.MW_BASE_URL??import.meta.env.VITE_BASE_URL,og=`${Ze}/api`,ng=import.meta.env.VITE_ENV,sg=import.meta.env.VITE_TEST_FIXED_SK,cg=Ge.HOST_APP_NAME??import.meta.env.VITE_HOST_APP_NAME,pg={TAPSTERS_FRONTEND:"tapsters-frontend",OS_FRONTEND:"os-frontend"};var rg=["FAILED","DECLINED","RESTRICTED","TIMEDOUT","UNKNOWN","INITIATED","CANCELLED","ABANDONED"];var ig={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)"},links:{color:"#FF4D00",background:"rgba(255, 77, 0, 0.10)"}};var lg=50,ug={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 Ig="TAPOS_MW_MERCHANT_OR_RETAILER_REQUIRED";var hg={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 Ag={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"},auth_code_reference:{default:"155px",text:"180px",sheet:"250px"}};var Eg={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:"170px"},eci:{default:"150px",text:"150px",sheet:"72px"},amount:{default:"130px",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 Tg={id:{default:"205px",text:"225px",sheet:"250px"},reference_order:{default:"95px",text:"180px",sheet:"250px"},date:{default:"150px",text:"170px",sheet:"130px"},created:{default:"150px",text:"170px",sheet:"130px"},receipt:{default:"85px",text:"150px",sheet:"165px"},reference:{default:"95px",text:"180px",sheet:"250px"},auth_code_reference:{default:"155px",text:"180px",sheet:"250px"},order:{default:"80px",text:"80px",sheet:"80px"},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:"130px"},device:{default:"70px",text:"250px",sheet:"235px"},source:{default:"70px",text:"125px",sheet:"125px"},authenticate:{default:"55px",text:"250px",sheet:"250px"},payment_agreement:{default:"50px",text:"250px",sheet:"165px"},amount:{default:"130px",text:"195px",sheet:"150px"},status:{default:"70px",text:"100px",sheet:"170px"},chargeStatus:{default:"150px",text:"250px",sheet:"250px"},merchant:{default:"115px",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"},code:{default:"90px",text:"90px",sheet:"90px"},message:{default:"160px",text:"160px",sheet:"160px"},product:{default:"85px",text:"85px",sheet:"85px"},destinations:{default:"90px",text:"240px",sheet:"340px"},topup:{default:"20px",text:"95px",sheet:"95px"},issuer_response:{default:"70px",text:"70px",sheet:"270px"},acquirer_response:{default:"70px",text:"70px",sheet:"253px"},charge:{default:"150px",text:"150px",sheet:"150px"},track:{default:"220px",text:"220px",sheet:"220px"},payment:{default:"150px",text:"150px",sheet:"150px"},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"},payment_id:{default:"150px",text:"150px",sheet:"150px"},auth_code:{default:"80px",text:"80px",sheet:"100px"},rrn:{default:"100px",text:"100px",sheet:"105px"},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"},payout_status:{default:"70px",text:"120px",sheet:"130px"},reference_transfer:{default:"205px",text:"225px",sheet:"250px"}};var _g={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 Pg={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"},metadata:{default:"180px",text:"180px",sheet:"180px"}};var bg={created:{default:"172px",text:"172px",sheet:"172px"},brands:{default:"140px",text:"140px",sheet:"250px"},identification_number:{default:"150px",text:"150px",sheet:"150px"},entity:{default:"146px",text:"180px",sheet:"250px"},channels:{default:"80px",text:"120px",sheet:"440px"},partners:{default:"77px",text:"100px",sheet:"100px"},psp:{default:"62px",text:"180px",sheet:"180px"},status:{default:"64px",text:"100px",sheet:"172px"},actions:{default:"100px",text:"100px",sheet:"70px"}};var Ng={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 Og={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 kg={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 Mg={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 Dg={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:"110px",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 Fg={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 Hg={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 Vg={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 Kg={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 Zg={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 jg={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:"172px",text:"172px",sheet:"172px"},brands:{default:"140px",text:"140px",sheet:"250px"},marketplace:{default:"110px",text:"110px",sheet:"104px"},individuals:{default:"128px",text:"185px",sheet:"203px"},identification_number:{default:"150px",text:"150px",sheet:"150px"},segments:{default:"70px",text:"180px",sheet:"180px"},psp:{default:"62px",text:"180px",sheet:"180px"},status:{default:"64px",text:"100px",sheet:"172px"},partners:{default:"77px",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:"80px",text:"120px",sheet:"440px"},merchant:{default:"167px",text:"180px",sheet:"167px"},business_name:{default:"220px",text:"220px",sheet:"220px"},apps:{default:"120px",text:"120px",sheet:"120px"},assignee:{default:"96px",text:"100px",sheet:"172px"},team:{default:"88px",text:"100px",sheet:"172px"}};var Xg={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 t0={id:{default:"111px",text:"111px",sheet:"215px"},acquirer_id:{default:"197px",text:"197px",sheet:"197px"},provider_id:{default:"88px",text:"88px",sheet:"88px"},merchant_id:{default:"160px",text:"160px",sheet:"160px"},acquirer_merchant_id:{default:"180px",text:"180px",sheet:"180px"},acceptance_mode:{default:"132px",text:"132px",sheet:"132px"},transaction_source:{default:"136px",text:"136px",sheet:"132px"},transaction_mode:{default:"132px",text:"132px",sheet:"132px"},charge_currency:{default:"132px",text:"132px",sheet:"132px"},settle_currency:{default:"120px",text:"120px",sheet:"120px"},gateway_type:{default:"132px",text:"132px",sheet:"100px"},gateway:{default:"150px",text:"150px",sheet:"150px"},three_ds:{default:"120px",text:"120px",sheet:"150px"},status:{default:"149px",text:"149px",sheet:"100px"},live_mode:{default:"100px",text:"100px",sheet:"100px"},add_time:{default:"160px",text:"160px",sheet:"160px"},mod_time:{default:"160px",text:"160px",sheet:"160px"},actions:{default:"60px",text:"60px",sheet:"60px"}};var n0={id:{default:"112px",text:"112px",sheet:"215px"},name:{default:"225px",text:"225px",sheet:"180px"},terminal_id:{default:"118px",text:"118px",sheet:"160px"},rank:{default:"66px",text:"66px",sheet:"88px"},acceptance_rate:{default:"107px",text:"107px",sheet:"132px"},route_issuer_scheme:{default:"112px",text:"112px",sheet:"140px"},acceptance_mode:{default:"132px",text:"132px",sheet:"140px"},transaction_mode:{default:"128px",text:"128px",sheet:"140px"},active:{default:"87px",text:"87px",sheet:"120px"},add_time:{default:"160px",text:"160px",sheet:"160px"},mod_time:{default:"160px",text:"160px",sheet:"160px"},live_mode:{default:"100px",text:"100px",sheet:"110px"},status:{default:"112px",text:"112px",sheet:"140px"},route_ref:{default:"140px",text:"140px",sheet:"160px"},filter_usage:{default:"110px",text:"110px",sheet:"120px"},route_issuer_id:{default:"140px",text:"140px",sheet:"160px"},route_issuer_bin:{default:"140px",text:"140px",sheet:"160px"},route_issuer_brand:{default:"140px",text:"140px",sheet:"160px"},route_issuer_category:{default:"150px",text:"150px",sheet:"170px"},route_issuer_country:{default:"150px",text:"150px",sheet:"170px"},route_issuer_type:{default:"140px",text:"140px",sheet:"160px"},route_merchant:{default:"150px",text:"150px",sheet:"170px"},route_merchant_bank:{default:"150px",text:"150px",sheet:"170px"},route_merchant_country:{default:"150px",text:"150px",sheet:"170px"},route_merchant_currency:{default:"150px",text:"150px",sheet:"170px"},route_merchant_mcc:{default:"140px",text:"140px",sheet:"160px"},route_merchant_sector:{default:"150px",text:"150px",sheet:"170px"},route_transaction_currency:{default:"160px",text:"160px",sheet:"180px"},route_keywords:{default:"160px",text:"160px",sheet:"180px"},keyword_usage:{default:"150px",text:"150px",sheet:"170px"},exclude_condition:{default:"140px",text:"140px",sheet:"140px"},exclude_issuer_scheme:{default:"156px",text:"156px",sheet:"160px"},exclude_issuer_bin:{default:"150px",text:"150px",sheet:"160px"},exclude_issuer_country:{default:"160px",text:"160px",sheet:"170px"},exclude_issuer_type:{default:"150px",text:"150px",sheet:"160px"},exclude_route_merchant:{default:"160px",text:"160px",sheet:"170px"},exclude_merchant_mcc:{default:"160px",text:"160px",sheet:"170px"},exclude_merchant_country:{default:"177px",text:"177px",sheet:"180px"},exclude_merchant_currency:{default:"183px",text:"183px",sheet:"180px"},exclude_merchant_bank:{default:"160px",text:"160px",sheet:"170px"},exclude_merchant_sector:{default:"170px",text:"170px",sheet:"180px"},actions:{default:"60px",text:"60px",sheet:"60px"}};var Qe={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"},c0=Qe.UTC,p0="SA",a0="Asia/Riyadh",r0="Saudi Arabia",x0=60;var d0=.5,l0=183,u0=287,g0=840,I0=545;var h0={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"}},m0=["SAR","KWD","OMR","EGP","BHD","USD","AED","QAR","PKR","JOD","EUR","INR","GBP"],A0={regional:["SAR","KWD","OMR","EGP","BHD","AED","QAR","JOD"],global:["USD","GBP","EUR","PKR","INR"]};var E0=52,$0=70,T0=57,S0=200,_0=5,y0=40,P0=20,C0=28;var R0={COUNT:"count",AMOUNT:"amount"},N0={count:"transaction",amount:"amount"};var x={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`},L0=[{name:"CARD",label:"Card",icon:x.CARD},{name:"EXPRESS",label:"Express Checkout",icon:x.EXPRESS_CHECKOUT},{name:"DEVICE",label:"Device",icon:x.DEVICE},{name:"PT_WALLET",label:"Pass-Thru Wallet",icon:x.PASS_THRU_WALLET},{name:"SV_WALLET",label:"Stored Value Wallet",icon:x.STORED_VALUE_WALLET},{name:"BNPL",label:"Buy Now Pay Later",icon:x.BUY_NOW_PAY_LATER},{name:"CASH",label:"Cash Wallet",icon:x.CASH_WALLET}],je="customer",Je="merchant",k0=[{key:je,value:"true",label:"Customer"},{key:Je,value:"false",label:"Merchant"}],B0=[{key:"Regional",label:"Regional"},{key:"Global",label:"Global"},{key:"Local",label:"Local"}],M0=[{key:"3DS",label:"3DS"},{key:"Device Biometric",label:"Biometric"},{key:"Non-3DS",label:"Non-3DS"},{key:"Attempted",label:"Attempted"},{key:"Undetermined",label:"Undetermined"}];var W0={PAYMENT_GATEWAY_PROVIDER:B,PAYMENT_TECHNOLOGY:F,PAYMENT_TERMINAL_PROVIDER:G,PAYMENT_PROCESSOR:D,PAYMENT_SCHEME:W,PAYMENT_ISSUER:M,PAYMENT_ACQUIRER:L,PAYMENT_METHOD:U,PAYMENT_FACILITATOR:k,APP_PLATFORM:N,RETAIL_PLATFORM:H,COMMERCE_PLATFORM:O,BILLING_PLATFORM:w,BUSINESS:P,DEVELOPMENT_HOUSE:C,MASTER_ORCHESTRATOR:b,PLATFORM:R},F0={PAYMENT_GATEWAY_PROVIDER:X,PAYMENT_TECHNOLOGY:se,PAYMENT_TERMINAL_PROVIDER:ce,PAYMENT_PROCESSOR:oe,PAYMENT_SCHEME:ne,PAYMENT_ISSUER:ee,PAYMENT_ACQUIRER:j,PAYMENT_METHOD:te,PAYMENT_FACILITATOR:J,APP_PLATFORM:q,RETAIL_PLATFORM:pe,COMMERCE_PLATFORM:Q,BILLING_PLATFORM:Z,BUSINESS:Y,DEVELOPMENT_HOUSE:V,MASTER_ORCHESTRATOR:z,PLATFORM:K},p={PLATFORM:"platformId",DEVELOPMENT_HOUSE:"developmentHouseId",PAYMENT_TECHNOLOGY:"paymentTechnology",PAYMENT_ISSUER:"paymentIssuerId",PAYMENT_INSTITUTION:"paymentInstitution"},G0={PLATFORM:p.PLATFORM,RETAIL_PLATFORM:p.PLATFORM,BILLING_PLATFORM:p.PLATFORM,COMMERCE_PLATFORM:p.PLATFORM,APP_PLATFORM:p.PLATFORM,DEVELOPMENT_HOUSE:p.DEVELOPMENT_HOUSE,PAYMENT_TECHNOLOGY:p.PAYMENT_TECHNOLOGY,PAYMENT_ISSUER:p.PAYMENT_ISSUER,PAYMENT_ACQUIRER:p.PAYMENT_INSTITUTION,PAYMENT_FACILITATOR:p.PAYMENT_INSTITUTION},H0=["RETAIL_PLATFORM","COMMERCE_PLATFORM","BILLING_PLATFORM","APP_PLATFORM"],Y0=["PAYMENT_FACILITATOR","PAYMENT_ACQUIRER"],V0=["PAYMENT_TECHNOLOGY"],z0=["PAYMENT_ISSUER"],K0=["DEVELOPMENT_HOUSE"];var Z0={bgColor:"white",borderColor:"#F2F2F2",textColor:"#20232B33"};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"},X0={[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]},eI=[{code:o.billing.code,name:"Billing",icon:l,services:[{name:"Invoices",code:o.billing.services.invoices.code}]},{code:o.acceptance.code,name:"Acceptance",icon:u,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:I,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:v,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:g,services:[{name:"Authentication",code:o.authentication.services.authentication.code}]}];var oI={COMMERCIAL_REGISTRATION:"commercial_registration",FREELANCER:"freelancer",ARTICLE_OF_ASSOCIATION:"article_of_association"};var Xe=["AUTHENTICATED"],et=["PENDING","ATTEMPTED","FAILED","REJECTED","UNAVAILABLE","AUTHENTICATION_NOT_SUPPORTED_BY_SCHEME","AUTHENTICATED_AUTHORIZE_FAILED","EXEMPTED","INITIATED"],sI=[...Xe,...et],tt=(A=>(A.Challenge="C",A.Frictionless="F",A))(tt||{}),cI={C:"Challenge",F:"Frictionless"};var aI=["SA","KW","AE","BH","QA","OM","EG","JO","LB"];var iI={csv:de,xls:h,xlsx:h,zip:E};
|
|
2
|
+
export{Qt as $,Qo as $a,jn as $b,P as $c,ac as $d,tp as $e,Qp as $f,Ma as $g,Mr as $h,yx as $i,yi as $j,Sd as $k,Sl as $l,Su as $m,Ng as $n,Z0 as $o,Tt as A,So as Aa,Sn as Ab,Es as Ac,K as Ad,Lc as Ae,Tp as Af,ga as Ag,ir as Ah,ix as Ai,Xx as Aj,Xi as Ak,jd as Al,jl as Am,n as An,A0 as Ao,St as B,_o as Ba,_n as Bb,$s as Bc,qs as Bd,kc as Be,Sp as Bf,Ia as Bg,dr as Bh,dx as Bi,ei as Bj,ed as Bk,Jd as Bl,Jl as Bm,qe as Bn,E0 as Bo,_t as C,yo as Ca,yn as Cb,Ts as Cc,q as Cd,Bc as Ce,_p as Cf,va as Cg,lr as Ch,lx as Ci,ti as Cj,td as Ck,Xd as Cl,Xl as Cm,a as Cn,$0 as Co,yt as D,Po as Da,Pn as Db,g as Dc,Zs as Dd,Mc as De,yp as Df,_e as Dg,ur as Dh,ux as Di,oi as Dj,od as Dk,el as Dl,eu as Dm,r as Dn,T0 as Do,Pt as E,Co as Ea,Cn as Eb,I as Ec,Z as Ed,Uc as Ee,Pp as Ef,ye as Eg,gr as Eh,gx as Ei,ni as Ej,nd as Ek,tl as El,tu as Em,d as En,S0 as Eo,Ct as F,bo as Fa,bn as Fb,v as Fc,Q as Fd,Dc as Fe,Cp as Ff,Pe as Fg,Ir as Fh,be as Fi,si as Fj,sd as Fk,ol as Fl,ou as Fm,o as Fn,_0 as Fo,bt as G,E as Ga,Rn as Gb,T as Gc,Qs as Gd,Wc as Ge,bp as Gf,Ce as Gg,vr as Gh,Re as Gi,ci as Gj,cd as Gk,nl as Gl,nu as Gm,Ju as Gn,y0 as Go,Rt as H,Ro as Ha,Nn as Hb,S as Hc,js as Hd,Fc as He,Rp as Hf,ha as Hg,hr as Hh,Ne as Hi,pi as Hj,pd as Hk,sl as Hl,su as Hm,Xu as Hn,P0 as Ho,Nt as I,No as Ia,wn as Ib,_ as Ic,j as Id,Gc as Ie,Np as If,ma as Ig,mr as Ih,we as Ii,ai as Ij,ad as Ik,cl as Il,cu as Im,eg as In,C0 as Io,wt as J,wo as Ja,On as Jb,y as Jc,J as Jd,Hc as Je,wp as Jf,Aa as Jg,Ar as Jh,Oe as Ji,ri as Jj,rd as Jk,pl as Jl,pu as Jm,Ze as Jn,R0 as Jo,Ot as K,Oo as Ka,Ln as Kb,Ss as Kc,X as Kd,ae as Ke,Op as Kf,fa as Kg,fr as Kh,Le as Ki,xi as Kj,xd as Kk,al as Kl,au as Km,og as Kn,N0 as Ko,Lt as L,Lo as La,kn as Lb,_s as Lc,ee as Ld,re as Le,Lp as Lf,Ea as Lg,Er as Lh,ke as Li,ii as Lj,id as Lk,rl as Ll,ru as Lm,ng as Ln,x as Lo,kt as M,ko as Ma,Bn as Mb,ys as Mc,te as Md,xe as Me,kp as Mf,$a as Mg,$r as Mh,Be as Mi,di as Mj,dd as Mk,xl as Ml,xu as Mm,sg as Mn,L0 as Mo,Bt as N,Bo as Na,Mn as Nb,Ps as Nc,oe as Nd,ie as Ne,Bp as Nf,Ta as Ng,Tr as Nh,Me as Ni,li as Nj,ld as Nk,il as Nl,iu as Nm,cg as Nn,je as No,Mt as O,Mo as Oa,Un as Ob,Cs as Oc,ne as Od,Yc as Oe,Mp as Of,Sa as Og,Sr as Oh,Ue as Oi,ui as Oj,We as Ok,dl as Ol,du as Om,pg as On,Je as Oo,Ut as P,Uo as Pa,Dn as Pb,bs as Pc,se as Pd,Vc as Pe,Up as Pf,_a as Pg,_r as Ph,De as Pi,gi as Pj,Fe as Pk,ll as Pl,lu as Pm,rg as Pn,k0 as Po,Dt as Q,Do as Qa,Wn as Qb,Rs as Qc,ce as Qd,zc as Qe,Dp as Qf,ya as Qg,yr as Qh,Ix as Qi,Ii as Qj,ud as Qk,ul as Ql,uu as Qm,ig as Qn,B0 as Qo,Wt as R,Wo as Ra,Fn as Rb,Ns as Rc,pe as Rd,Kc as Re,Wp as Rf,Pa as Rg,Pr as Rh,vx as Ri,vi as Rj,gd as Rk,gl as Rl,gu as Rm,lg as Rn,M0 as Ro,Ft as S,Fo as Sa,Gn as Sb,ws as Sc,Js as Sd,qc as Se,Fp as Sf,Ca as Sg,Cr as Sh,hx as Si,hi as Sj,Id as Sk,Il as Sl,Iu as Sm,ug as Sn,W0 as So,Gt as T,Go as Ta,Hn as Tb,Os as Tc,Xs as Td,Zc as Te,Gp as Tf,ba as Tg,br as Th,mx as Ti,mi as Tj,vd as Tk,vl as Tl,vu as Tm,Ig as Tn,F0 as To,Ht as U,Ho as Ua,Yn as Ub,Ls as Uc,ec as Ud,Qc as Ue,Hp as Uf,Ra as Ug,Rr as Uh,Ax as Ui,Ai as Uj,hd as Uk,hl as Ul,hu as Um,hg as Un,p as Uo,Yt as V,Yo as Va,Vn as Vb,ks as Vc,tc as Vd,jc as Ve,Yp as Vf,Na as Vg,Nr as Vh,fx as Vi,fi as Vj,md as Vk,ml as Vl,mu as Vm,Ag as Vn,G0 as Vo,Vt as W,Vo as Wa,zn as Wb,Bs as Wc,oc as Wd,h as We,Vp as Wf,wa as Wg,wr as Wh,Ex as Wi,Ei as Wj,Ad as Wk,Al as Wl,Au as Wm,Eg as Wn,H0 as Wo,zt as X,zo as Xa,Kn as Xb,Ms as Xc,nc as Xd,de as Xe,zp as Xf,Oa as Xg,Or as Xh,$x as Xi,$i as Xj,fd as Xk,fl as Xl,fu as Xm,Tg as Xn,Y0 as Xo,Kt as Y,Ko as Ya,qn as Yb,Us as Yc,sc as Yd,Jc as Ye,Kp as Yf,La as Yg,Lr as Yh,Tx as Yi,Ti as Yj,Ed as Yk,El as Yl,Eu as Ym,_g as Yn,V0 as Yo,qt as Z,qo as Za,Zn as Zb,Ds as Zc,cc as Zd,Xc as Ze,qp as Zf,ka as Zg,kr as Zh,Sx as Zi,Si as Zj,$d as Zk,$l as Zl,$u as Zm,Pg as Zn,z0 as Zo,Zt as _,Zo as _a,Qn as _b,Ws as _c,pc as _d,ep as _e,Zp as _f,Ba as _g,Br as _h,_x as _i,_i as _j,Td as _k,Tl as _l,Tu as _m,bg as _n,K0 as _o,e as a,jt as aa,jo as ab,Jn as ac,C as ad,rc as ae,op as af,jp as ag,Ua as ah,Ur as ai,Px as aj,Pi as ak,_d as al,_l as am,_u as an,Og as ao,s as ap,t as b,Jt as ba,Jo as bb,Xn as bc,Fs as bd,xc as be,le as bf,Jp as bg,Da as bh,Dr as bi,Cx as bj,Ci as bk,yd as bl,yl as bm,yu as bn,kg as bo,X0 as bp,ot as c,Xt as ca,Xo as cb,es as cc,b as cd,ic as ce,ue as cf,Xp as cg,Wa as ch,Wr as ci,bx as cj,bi as ck,Pd as cl,Pl as cm,Pu as cn,Mg as co,eI as cp,Ye as d,eo as da,en as db,ts as dc,R as dd,dc as de,ge as df,ea as dg,Fa as dh,Fr as di,Rx as dj,Ri as dk,Cd as dl,Cl as dm,Cu as dn,Dg as do,oI as dp,Ve as e,to as ea,tn as eb,os as ec,Gs as ed,lc as ee,Ie as ef,ta as eg,Ga as eh,Gr as ei,Nx as ej,Ni as ek,bd as el,bl as em,bu as en,Fg as eo,et as ep,f,oo as fa,on as fb,ns as fc,N as fd,uc as fe,ve as ff,oa as fg,Ha as fh,Hr as fi,wx as fj,wi as fk,Rd as fl,Rl as fm,Ru as fn,Hg as fo,sI as fp,nt as g,no as ga,nn as gb,ss as gc,Hs as gd,gc as ge,np as gf,na as gg,Ya as gh,Yr as gi,Ox as gj,Oi as gk,Nd as gl,Nl as gm,Nu as gn,Vg as go,tt as gp,st as h,so as ha,sn as hb,cs as hc,w as hd,Ic as he,sp as hf,sa as hg,Va as hh,Vr as hi,Lx as hj,Li as hk,wd as hl,wl as hm,wu as hn,Kg as ho,cI as hp,ct as i,co as ia,cn as ib,ps as ic,O as id,vc as ie,cp as if,ca as ig,za as ih,zr as ii,kx as ij,ki as ik,Od as il,Ol as im,Ou as in,Zg as io,aI as ip,pt as j,po as ja,pn as jb,as as jc,Ys as jd,hc as je,pp as jf,he as jg,Ka as jh,Kr as ji,Bx as jj,Bi as jk,Ld as jl,Ll as jm,Lu as jn,jg as jo,iI as jp,at as k,ao as ka,an as kb,rs as kc,Vs as kd,mc as ke,ap as kf,me as kg,qa as kh,qr as ki,Mx as kj,Mi as kk,kd as kl,kl as km,ku as kn,Xg as ko,rt as l,ro as la,rn as lb,xs as lc,L as ld,Ac as le,rp as lf,Ae as lg,Za as lh,Zr as li,Ux as lj,Ui as lk,Bd as ll,Bl as lm,Bu as ln,t0 as lo,xt as m,xo as ma,xn as mb,is as mc,k as md,fc as me,xp as mf,fe as mg,Qa as mh,Qr as mi,Dx as mj,Di as mk,Md as ml,Ml as mm,Mu as mn,n0 as mo,it as n,io as na,dn as nb,ds as nc,B as nd,Ec as ne,ip as nf,pa as ng,ja as nh,jr as ni,Wx as nj,Wi as nk,Ud as nl,Ul as nm,Uu as nn,Qe as no,dt as o,lo as oa,ln as ob,ls as oc,M as od,$c as oe,dp as of,Ee as og,Ja as oh,Jr as oi,Fx as oj,Fi as ok,Dd as ol,Dl as om,Du as on,c0 as oo,lt as p,uo as pa,un as pb,$ as pc,U as pd,Tc as pe,lp as pf,m as pg,Xa as ph,Xr as pi,Gx as pj,Gi as pk,Wd as pl,Wl as pm,Wu as pn,p0 as po,ut as q,go as qa,gn as qb,l as qc,D as qd,Sc as qe,up as qf,$e as qg,er as qh,ex as qi,Hx as qj,Hi as qk,Fd as ql,Fl as qm,Fu as qn,a0 as qo,gt as r,Io as ra,In as rb,us as rc,W as rd,_c as re,gp as rf,Te as rg,tr as rh,tx as ri,Yx as rj,Yi as rk,Gd as rl,Gl as rm,Gu as rn,r0 as ro,It as s,vo as sa,vn as sb,gs as sc,F as sd,yc as se,Ip as sf,Se as sg,or as sh,ox as si,Vx as sj,Vi as sk,Hd as sl,Hl as sm,Hu as sn,x0 as so,vt as t,ho as ta,hn as tb,u as tc,G as td,Pc as te,vp as tf,aa as tg,nr as th,nx as ti,zx as tj,zi as tk,Yd as tl,Yl as tm,Yu as tn,d0 as to,ht as u,mo as ua,mn as ub,Is as uc,H as ud,Cc as ue,hp as uf,ra as ug,sr as uh,sx as ui,Kx as uj,Ki as uk,Vd as ul,Vl as um,Vu as un,l0 as uo,mt as v,Ao as va,An as vb,vs as vc,zs as vd,bc as ve,mp as vf,xa as vg,cr as vh,cx as vi,qx as vj,qi as vk,zd as vl,zl as vm,zu as vn,u0 as vo,At as w,fo as wa,fn as wb,hs as wc,Y as wd,Rc as we,Ap as wf,ia as wg,pr as wh,px as wi,Zx as wj,Zi as wk,Kd as wl,Kl as wm,qu as wn,g0 as wo,ft as x,Eo as xa,En as xb,ms as xc,V as xd,Nc as xe,fp as xf,da as xg,ar as xh,ax as xi,Qx as xj,Qi as xk,qd as xl,ql as xm,ze as xn,I0 as xo,Et as y,$o as ya,$n as yb,As as yc,Ks as yd,wc as ye,Ep as yf,la as yg,rr as yh,rx as yi,jx as yj,ji as yk,Zd as yl,Zl as ym,Ke as yn,h0 as yo,$t as z,To as za,Tn as zb,fs as zc,z as zd,Oc as ze,$p as zf,ua as zg,xr as zh,xx as zi,Jx as zj,Ji as zk,Qd as zl,Ql as zm,Zu as zn,m0 as zo};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d,j}from'./chunk-
|
|
1
|
+
import {d,j}from'./chunk-K43ZLU4I.js';import {Xb,Ub,lc}from'./chunk-I3LSSBRI.js';import {Kj,Qe,Gb}from'./chunk-IQAHULGQ.js';import {forwardRef,useState,useCallback,useMemo,memo}from'react';import {useDropzone}from'react-dropzone';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var p="os-shared-FileUploader",a={root:`${p}-root`,content:`${p}-content`,iconWrapper:`${p}-iconWrapper`,textWrapper:`${p}-textWrapper`,upload:`${p}-upload`,maximum:`${p}-maximum`,errorMessage:`${p}-errorMessage`,closeButton:`${p}-closeButton`};var E=styled("div",{shouldForwardProp:e=>e!=="$disabled"})(({theme:e,$disabled:o})=>{let{grey:s}=e.v2.palette;return {width:"100%",borderRadius:e.v2.radius(4),padding:`${e.v2.spacing(4)} ${e.v2.spacing(8)}`,display:"flex",alignItems:"center",justifyContent:"flex-start",backgroundColor:s[50],gap:e.v2.spacing(8),cursor:o?"default":"pointer",position:"relative",'& [data-slot="input"]':{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:1,margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:1,whiteSpace:"nowrap"},...o&&{'& [data-slot="content"], & [data-slot="icon-wrapper"]':{cursor:"default",opacity:.6}}}}),V=styled("div")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",color:"inherit",cursor:"pointer",gap:e.v2.spacing(8)})),v=styled("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",gap:e.v2.spacing(4),color:"inherit"})),G=styled("div")(({theme:e})=>{let{grey:o,base:s}=e.v2.palette;return {display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",width:32,height:32,flexShrink:0,padding:e.v2.spacing(7),backgroundColor:s.white,borderRadius:e.v2.radius(4),border:`1px solid ${o[100]}`}}),H=styled("button")(()=>({display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",backgroundColor:"transparent",border:"none",width:16,height:16,padding:0,marginLeft:"auto"}));function J(e,o){return e||(o?`PDF, JPG or PNG files up to ${o}`:"PDF, JPG or PNG files")}var pe="Click to upload",L=forwardRef(function({options:o,files:s,onChange:$,processFiles:U,disabled:f,error:I,invalidFileTypeText:P="Invalid file type",fileTooLargePrefix:W="File is larger than",maxFileSize:F,preventDuplicates:y,label:A=pe,hintText:K,onResetError:C,className:O,sx:Q,id:w},Y){let[S,g]=useState(null),T=useCallback(t=>{if(g(null),U)return U(t);if(!y)return t.map(r=>({file:r,id:r.name}));let l=[],n=[];for(let r of t)Xb(r,s??[])?l.push(r.name):n.push({file:r,id:r.name});if(l.length>0){let r=l.length===1?"file":"files";g(`Duplicate ${r} detected: ${l.join(", ")}`);}return n},[s,y,U]),Z=useCallback(t=>{if(t.length===0){g(null);return}let l=T(t);(l.length>0||!y)&&$?.(l);},[T,y,$]),{getRootProps:_,getInputProps:ee,open:te,isDragReject:j$1,fileRejections:d$1}=useDropzone({...o,disabled:f||o?.disabled,onDrop:(t,l,n)=>{o?.onDrop?.(t,l,n),Z(t);}}),x=useMemo(()=>{if(F)return F;if(o?.maxSize)return Ub(o.maxSize,0).toUpperCase()},[F,o?.maxSize]),c=useMemo(()=>{let t=!!d$1?.length&&d$1.some(n=>n.errors?.some(r=>r.code==="file-invalid-type"));return !!d$1?.length&&d$1.some(n=>n.errors?.some(r=>r.code==="file-too-large"))&&x?`${W} ${x}`:t||j$1?P:S||I},[j$1,d$1,x,S,I,P,W]),oe=J(K,x),re=useCallback(t=>{t.stopPropagation(),g(null),C?.(t);},[C]);return jsxs(E,{ref:Y,id:w,"data-testid":w??"FileUploader",..._(),className:lc(a.root,O),sx:Q,$disabled:f,onClick:f?void 0:te,children:[jsx("input",{"data-slot":"input",...ee(),disabled:f}),jsxs(V,{"data-slot":"content",className:a.content,children:[jsx(G,{"data-slot":"icon-wrapper",className:a.iconWrapper,children:jsx(d,{src:c?Kj:Qe,alt:c?"Upload error":"Upload file",sx:{width:16,height:16}})}),c?jsxs(v,{className:a.textWrapper,children:[jsx(j,{textVariant:"micro.medium",className:a.errorMessage,sx:t=>({color:t.v2.palette.error[500]}),children:c}),jsx(j,{textVariant:"caption.medium",className:a.upload,children:"Click to upload again"})]}):jsxs(v,{className:a.textWrapper,children:[jsx(j,{textVariant:"caption.medium",className:a.upload,children:A}),jsx(j,{textVariant:"micro.medium",className:a.maximum,sx:{opacity:.7},children:oe})]})]}),c&&C&&jsx(H,{type:"button","data-slot":"close-icon-wrapper",className:a.closeButton,onClick:re,"aria-label":"Dismiss upload error",children:jsx(d,{src:Gb,alt:"Dismiss",sx:{width:10,height:10}})})]})});L.displayName="FileUploader";var X=memo(L);export{a,X as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {f,v}from'./chunk-
|
|
1
|
+
import {f,v}from'./chunk-K43ZLU4I.js';import {zc}from'./chunk-I3LSSBRI.js';import {useId}from'react';import {styled,MenuItem,Menu,ListItemIcon,ListItemText,Select,useTheme,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var g=styled(MenuItem,{shouldForwardProp:t=>t!=="alwaysShowRightAction"})(({theme:t,alwaysShowRightAction:n})=>({backgroundColor:n?t.palette.common.lightOrange:"","&:hover":{backgroundColor:n?t.palette.common.lightOrange:"",boxShadow:t.shadows[10],":hover":{"& .sandbox-Icon":{left:"-16px !important",transition:"all 0.3s ease-in-out"},"& .close-Icon":{display:"block !important"}}}})),h=styled(Menu,{shouldForwardProp:t=>t!=="minWidth"})(({theme:t,minWidth:n})=>({".MuiMenu-paper":{borderRadius:4,minWidth:n},".MuiMenuItem-root":{display:"flex",gap:"4px",minHeight:"36px",alignItems:"center",paddingInline:8,transition:t.transitions.create(["visibility"],{easing:t.transitions.easing.sharp,duration:t.transitions.duration.complex}),".menu-right-action":{visibility:"hidden"},"&:hover":{".menu-right-action":{visibility:"visible"}}},"&.tap-dropdown":{zIndex:2e3,".MuiList-root":{padding:0}}})),x=styled(ListItemIcon)(()=>({minWidth:"16px !important"})),S=styled(ListItemText)(()=>({".MuiTypography-root":{fontSize:"0.6875rem"}})),D=styled(Select)(({theme:t})=>({padding:"0.25rem 0.34rem 0.25rem 0.5rem",display:"flex",justifyContent:"center",alignItems:"center",gap:"0.19rem",width:"auto",flexShrink:0,borderRadius:"0.5rem",boxShadow:t.shadows[5],cursor:"pointer",outline:t.palette.background.default,border:"none",backgroundColor:t.palette.background.default,"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"& .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"& .MuiMenuList-root":{padding:"0px !important",margin:0},"& .MuiSelect-outlined":{padding:"0px !important"}})),z=styled(MenuItem)(({theme:t})=>({display:"flex",height:"2.5rem",width:"10.43rem",alignItems:"center",gap:"0.5",alignSelf:"stretch",transition:"boxShadow 0.2s ease-in-out",backgroundColor:"inherit !important",margin:0,padding:0,paddingTop:"0px !important",paddingBottom:"0px !important","&:hover":{boxSizing:"border-box",boxShadow:`${t.shadows[3]}`}})),A=styled("p")(({theme:t})=>({color:t.palette.text.primary,fontSize:"0.68rem",fontWeight:600,textAlign:"center",padding:"0 !important",margin:"0 !important",textTransform:"capitalize",".MuiOutlinedInput-input":{paddingRight:0},"MuiInputBase-input":{paddingRight:0},".MuiSelect-select":{paddingRight:0}})),W=styled("p")(({theme:t})=>({fontSize:"0.75rem",fontWeight:500,color:t.palette.text.primary,paddingLeft:"1rem !important",transition:"boxShadow 0.2s ease-in-out"})),B=styled("img")(()=>({width:"0.75rem",height:"auto",padding:0,paddingBottom:.5,margin:0,verticalAlign:"middle",boxSizing:"border-box"})),y=styled(f)(()=>({padding:0,paddingRight:"4px",width:"14px !important",".MuiSvgIcon-root":{width:"12px !important",height:"12px !important"}}));function N({open:t,menuItems:n,anchorEl:a,onClose:d,footer:f,selected:w,multiple:M,allowShadows:p=true,...C}){let k=zc(useId(),"dropdown-menu"),l=useTheme();return jsxs(h,{id:k,"data-testid":"DropdownMenu",open:t,anchorEl:a,onClose:d,onContextMenu:o=>{o.preventDefault(),d();},...C,className:"tap-dropdown",minWidth:a?.clientWidth||"auto",children:[n.map((o,r)=>o.name==="divider"?jsx(v,{sx:{margin:"0 !important"}},`${o.label}-${r}`):jsx("div",{children:o.label&&jsxs(g,{alwaysShowRightAction:o.alwaysShowRightAction,onClick:v=>{o.onClick&&o.onClick(v);},onContextMenu:o.onRightClick,selected:o.selected,sx:{"&:hover":{backgroundColor:"transparent",boxShadow:p?l.shadows[10]:"none","& .sandbox-Icon":{display:"none"},"& .close-Icon":{display:"block !important"}},...r===w&&{backgroundColor:"transparent",boxShadow:p?l.shadows[10]:"none"},...o.sx},children:[M&&jsx(y,{size:"small",checked:o.selected}),o.icon&&jsx(x,{children:o.icon}),jsx(S,{children:o.label}),jsx(Box,{className:o.alwaysShowRightAction?"":"menu-right-action",children:o.rightAction&&o.rightAction})]})},`${o.label}-${r}`)),f]})}var I=N;var Y=I;export{D as a,z as b,A as c,W as d,B as e,Y as f};
|