@tap-payments/os-micro-frontend-shared 0.3.308-test.1795366064 → 0.3.308-test.1795366135

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.
@@ -1 +1 @@
1
- import {f,g,h as h$2,i as i$1,b}from'./chunk-2BU56HDE.js';import {h as h$1,i,b as b$1,c as c$2,f as f$2,e,d as d$1,j as j$1}from'./chunk-5FR3LFXC.js';import {d,c as c$1}from'./chunk-PF4KBDPV.js';import {h,c,f as f$1}from'./chunk-ISC5KT5E.js';import {Db,Eb}from'./chunk-XBJ4RS2B.js';import'./chunk-EYLBXWXJ.js';import {memo,forwardRef,useState,useEffect,useRef}from'react';import {createPortal}from'react-dom';import oo from'@mui/material/Backdrop';import {styled,alpha}from'@mui/material/styles';import v from'@mui/material/Box';import {motion,animate}from'framer-motion';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var H="os-shared-WindowShell",x={root:`${H}-root`,sidebar:`${H}-sidebar`,body:`${H}-body`,panel:`${H}-panel`};var we=styled(v)(()=>({display:"flex",flexDirection:"row",flex:1,minHeight:0,height:"100%",backgroundColor:"transparent"})),xe=styled(v)(()=>({flexShrink:0,overflow:"hidden auto",backgroundColor:"transparent",transition:"none"})),be=styled(v)(({theme:e})=>({flexShrink:0,overflow:"hidden auto",borderLeft:`1px solid ${e.palette.divider}`,backgroundColor:"transparent",transition:"none"})),ye=styled(v)(()=>({display:"flex",flexDirection:"column",flex:1,minWidth:0,minHeight:0})),ze=styled(v,{shouldForwardProp:e=>e!=="$width"})(({$width:e})=>({flexShrink:0,overflow:"hidden",display:"flex",alignItems:"stretch",position:"relative",width:e})),Ne=styled(motion.div)(()=>({flexShrink:0,overflow:"hidden",display:"flex",alignItems:"stretch",position:"relative"})),Ce=styled(motion.div,{shouldForwardProp:e=>e!=="$slotWidth"})(({$slotWidth:e})=>({width:e,minWidth:e,minHeight:"100%",height:"100%",overflow:"hidden"})),Ie=styled(v,{shouldForwardProp:e=>e!=="$visible"&&e!=="$duration"})(({$visible:e=true,$duration:o=h})=>({display:"flex",alignItems:"center",overflow:"hidden",whiteSpace:"nowrap",flexShrink:0,maxWidth:e?160:0,opacity:e?1:0,pointerEvents:e?"auto":"none",transition:o>0?`max-width ${.3*o}s ease-in-out, opacity ${.24*o}s ease-in-out`:"none"})),Te=styled(h$1,{shouldForwardProp:e=>e!=="$width"})(({$width:e})=>({...e!=null?{flex:`0 0 ${e}px`,maxWidth:e}:null})),Pe=styled(i,{shouldForwardProp:e=>e!=="$width"&&e!=="$justifyContent"})(({$width:e,$justifyContent:o="flex-start"})=>({...e!=null?{flex:`0 0 ${e}px`,maxWidth:e,justifyContent:o}:null}));var Ue=220;function ge(e,o,a){return Math.min(Math.max(e,o??0),a??1/0)}function Ae(e,o,a,n){if(Math.abs(e-o)<=1)return;let r=animate(0,1,{duration:a,onUpdate:t=>{n(s=>({...s,width:e+(o-e)*t}));}});return ()=>r.stop()}function G(e,o){if(e===false)return {duration:0,resize:o};let a=typeof e=="object"?e:void 0,n=a?.duration;return {duration:typeof n=="number"&&Number.isFinite(n)?Math.max(0,n):h,resize:a?.resize??o}}function j(e){return e?.children==null||e.expand?.isExpanded===false?false:e.expand?.isExpanded===true}function F(e,o=Ue){let a=Array.isArray(e)?e.flat():[e];for(let n=a.length-1;n>=0;n--){let r=a[n];if(r!=null&&typeof r=="object"&&!Array.isArray(r)&&typeof r.width=="number")return r.width}return o}function Ee(e){let o=e["data-id"]??e.id;return o!=null?{"data-id":o}:{}}function Me({kind:e,slot:o,isOpen:a,fullWidth:n,wrapperWidth:r,animateWrapperWidth:t,animation:s}){let p=e==="sidebar"?xe:be,d=e==="sidebar"?x.sidebar:x.panel,m=o["data-testid"]?`${o["data-testid"]}Wrapper`:e==="sidebar"?"WindowShellSidebarWrapper":"WindowShellPanelWrapper",i=o["data-testid"]??o.id??(e==="sidebar"?"WindowShellSidebar":"WindowShellPanel"),l=Ee(o),u=jsx(p,{id:o.id,className:Eb(d,o.className),"data-testid":i,...l,sx:Db({width:n,minWidth:0},o.sx),children:jsx(Ce,{$slotWidth:n,initial:false,animate:{x:a?0:-n},transition:{duration:s.duration},children:o.children})});return t?jsx(Ne,{"data-testid":m,...l,initial:false,animate:{width:r},transition:{duration:s.duration},children:u}):jsx(ze,{"data-testid":m,...l,$width:r,children:u})}Me.displayName="WindowShellSlotColumn";var J=memo(Me);function De({baseWindowWidth:e,sidebar:o,panel:a,content:n,bodyContent:r,sidebarOpen:t,showPanel:s,sidebarFullWidth:p,panelFullWidth:d,sidebarAnimation:m,panelAnimation:i}){let{size:l}=b(),u=i.resize==="window",W=typeof e=="number"?Math.max(0,e-(u?d:0)-(m.resize==="window"&&!t?p:0)):l.width,b$1=u?s?Math.min(d,Math.max(0,l.width-W)):0:s?d:0,y=t?p:0;return jsxs(we,{className:Eb(x.root),children:[o?.children?jsx(J,{kind:"sidebar",slot:o,isOpen:t,fullWidth:p,wrapperWidth:y,animateWrapperWidth:true,animation:m}):null,jsx(ye,{id:n?.id?`${n.id}Body`:void 0,className:Eb(x.body,n?.className),"data-testid":n?.["data-testid"]?`${n["data-testid"]}Body`:n?.id?`${n.id}Body`:"WindowShellBody",...(n?.["data-id"]??n?.id)!=null?{"data-id":n?.["data-id"]?`${n["data-id"]}Body`:`${n?.id}Body`}:null,sx:n?.sx,children:r}),a?.children?jsx(J,{kind:"panel",slot:a,isOpen:s,fullWidth:d,wrapperWidth:b$1,animateWrapperWidth:!u,animation:i}):null]})}De.displayName="WindowShellSlotsLayout";var Re=memo(De);function $e({sidebarOpen:e,showPanel:o,sidebarResize:a,panelResize:n,sidebarDuration:r,panelDuration:t}){let{size:s,setSize:p,defaultSize:d,minSize:m,maxSize:i}=b(),l=useRef(s);l.current=s;let u=useRef(d.width),W=useRef(e),b$1=useRef(o),y=useRef(d.width);return useEffect(()=>{let C=b$1.current!==o,w=W.current!==e,E=y.current!==d.width;b$1.current=o,W.current=e,y.current=d.width;let S;if(w&&a==="window"?S=r:(C&&n==="window"||E&&!C&&!w)&&(S=t),S==null)return;let h=ge(d.width,m?.width,i?.width);return u.current=h,Ae(l.current.width,h,S,p)},[d.width,o,e,a,n,r,t,m?.width,i?.width,p]),null}$e.displayName="WindowShellAnimator";var Oe=memo($e);function ve({toolbar:e$1,sidebar:o,panel:a,animationDuration:n=h}){let{title:r,titleIcon:t,onClose:s,onMinimize:p,onMaximize:d,startAdornment:m,endAdornment:i,id:l,className:u,"data-testid":W,"data-id":b$2,sx:y}=e$1??{},{isMaximized:C}=b(),w=typeof s=="function"?s:void 0,E=typeof p=="function"?p:void 0,S=typeof d=="function"?d:void 0,h=o?.expand,c=a?.expand,z=j(a),L=h?.isExpanded??true,M=h!=null&&o?.children!=null,D=c!=null&&a?.children!=null&&z,k=M&&D,V=F(a?.sx),_=o!=null?F(o.sx):0,I=Math.max(_,V),T=k&&L?I:void 0,Z=D?I:void 0,X=D;return jsxs(b$1,{id:l??f$1,className:u,"data-testid":W??l??"WindowToolbar","data-id":b$2??l,sx:y,children:[jsxs(Te,{$width:T,children:[w?jsx(c$2,{onClick:w}):null,E?jsx(f$2,{onClick:E}):null,S?jsx(e,{isMaximized:C,onClick:S}):null,M&&h?jsx(d$1,{direction:h.isExpanded??true?"left":"right",active:h.isExpanded??true,onClick:h.onExpand,children:h.label}):null,m]}),jsx(j$1,{title:r,icon:t}),jsxs(Pe,{$width:Z,$justifyContent:i?"space-between":"flex-start",children:[D?jsx(Ie,{$visible:X,$duration:n,children:jsx(d$1,{sx:{flexShrink:0},direction:c?.isExpanded??true?"left":"right",active:z,onClick:c?.onExpand,children:c?.label})}):null,i]})]})}ve.displayName="WindowShellToolbar";var Fe=memo(ve);var Be=forwardRef(function({isOpen:o,className:a,sx:n,toolbar:r,services:t,sidebar:s,panel:p,footer:d$1,content:m,window:i,backdrop:l},u){let W=t?.list??[],b=(t?.isLoading??false)||W.length>0,y=d$1!=null&&(d$1.isVisible??true),C=s?.children,w=F(s?.sx),E=p?.children,S=p!=null?F(p.sx):0,h=m?.children,c$2=s?.expand?.isExpanded??C!=null,z=j(p),L=!!(C||E),[M,D]=useState(w),[k,V]=useState(S);useEffect(()=>{c$2&&D(w),z&&V(S);},[c$2,w,z,S]);let _=r?.onClose??r?.onMinimize??(()=>{}),I=G(s?.animation,"in-place"),T=G(p?.animation,"in-place"),Z=(()=>{let P=i?.defaultSize;if(typeof P?.width!="number")return P;let oe=(I.resize==="window"&&!c$2?M:0)+(T.resize==="window"&&!z?k:0);return oe>0?{...P,width:Math.max(0,P.width-oe)}:P})(),X={height:i?.minSize?.height??i?.defaultSize?.height??c,...i?.minSize?.width!=null?{width:i.minSize.width}:null},Le=l!=null&&(l.isVisible??true)&&o&&!i?.isMinimized,_e=(i?.order??0)+10-1,ee=jsx(oo,{open:true,onClick:_,id:l?.id,className:l?.className,"data-testid":l?.["data-testid"]??l?.id??"WindowShellBackdrop",...(l?.["data-id"]??l?.id)!=null?{"data-id":l?.["data-id"]??l?.id}:null,sx:Db({zIndex:_e,backgroundColor:P=>alpha(P.palette.common.black,.3)},l?.sx)});return jsxs(Fragment,{children:[Le&&(i?.disablePortal?ee:createPortal(ee,document.body)),jsxs(f,{ref:u,isOpen:o,onClose:_,defaultSize:Z,minSize:X,maxSize:i?.maxSize,defaultPosition:i?.defaultPosition,containerRef:i?.containerRef,order:i?.order,isMinimized:i?.isMinimized,isMaximized:i?.isMaximized,id:i?.id,className:Eb(x.root,i?.className,a),sx:n,onResize:i?.onResize,onDragStart:i?.onDragStart,onMouseDown:i?.onMouseDown,onClick:i?.onClick,disablePortal:i?.disablePortal,"data-testid":i?.["data-testid"]??i?.id,"data-id":i?.["data-id"]??i?.id,children:[jsx(Oe,{sidebarOpen:c$2,showPanel:z,sidebarWidth:M,panelWidth:k,sidebarResize:I.resize,panelResize:T.resize,sidebarDuration:I.duration,panelDuration:T.duration}),jsx(Fe,{toolbar:r,sidebar:s,panel:p,animationDuration:T.duration}),b?t?.isLoading?jsx(d,{appCode:t?.appCode,id:t?.id,className:t?.className,"data-testid":t?.["data-testid"]??t?.id,"data-id":t?.["data-id"]??t?.id,sx:Db({height:"auto",flexShrink:0},t?.sx)}):jsx(c$1,{services:W,serviceCode:t?.activeCode??"",onOpenService:t?.onOpen,onOpenServiceInNewWindow:t?.onOpenInNewWindow,language:t?.language??"en",openInNewWindowLabel:t?.openInNewWindowLabel??"Open in new window",id:t?.id,className:t?.className,"data-testid":t?.["data-testid"]??t?.id,"data-id":t?.["data-id"]??t?.id,sx:t?.sx}):null,jsx(g,{id:m?.id,className:m?.className,"data-testid":m?.["data-testid"]??m?.id,"data-id":m?.["data-id"]??m?.id,sx:L?void 0:m?.sx,children:L?jsx(Re,{baseWindowWidth:typeof i?.defaultSize?.width=="number"?i.defaultSize.width:void 0,sidebar:s,panel:p,content:m,bodyContent:h,sidebarOpen:c$2,showPanel:z,sidebarFullWidth:M,panelFullWidth:k,sidebarAnimation:I,panelAnimation:T}):h}),y?jsxs(h$2,{id:d$1?.id,className:d$1?.className,"data-testid":d$1?.["data-testid"]??d$1?.id,"data-id":d$1?.["data-id"]??d$1?.id,sx:d$1?.isVisible===true?Db(d$1?.sx??{},{"&:empty, &:has(> :only-child:empty)":{display:"flex"}}):d$1?.sx,children:[d$1?.children,d$1?.actions?jsx(i$1,{children:d$1.actions}):null]}):null]})]})});Be.displayName="WindowShell";var to=memo(Be);export{x as a,to as b};
1
+ import {f,g,h as h$2,i as i$1,b}from'./chunk-2BU56HDE.js';import {d,c as c$1}from'./chunk-PF4KBDPV.js';import {h as h$1,i,b as b$1,c as c$2,f as f$2,e,d as d$1,j as j$1}from'./chunk-5FR3LFXC.js';import {h,c,f as f$1}from'./chunk-ISC5KT5E.js';import {Db,Eb}from'./chunk-XBJ4RS2B.js';import'./chunk-EYLBXWXJ.js';import {memo,forwardRef,useState,useEffect,useRef}from'react';import {createPortal}from'react-dom';import oo from'@mui/material/Backdrop';import {styled,alpha}from'@mui/material/styles';import v from'@mui/material/Box';import {motion,animate}from'framer-motion';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var H="os-shared-WindowShell",x={root:`${H}-root`,sidebar:`${H}-sidebar`,body:`${H}-body`,panel:`${H}-panel`};var we=styled(v)(()=>({display:"flex",flexDirection:"row",flex:1,minHeight:0,height:"100%",backgroundColor:"transparent"})),xe=styled(v)(()=>({flexShrink:0,overflow:"hidden auto",backgroundColor:"transparent",transition:"none"})),be=styled(v)(({theme:e})=>({flexShrink:0,overflow:"hidden auto",borderLeft:`1px solid ${e.palette.divider}`,backgroundColor:"transparent",transition:"none"})),ye=styled(v)(()=>({display:"flex",flexDirection:"column",flex:1,minWidth:0,minHeight:0})),ze=styled(v,{shouldForwardProp:e=>e!=="$width"})(({$width:e})=>({flexShrink:0,overflow:"hidden",display:"flex",alignItems:"stretch",position:"relative",width:e})),Ne=styled(motion.div)(()=>({flexShrink:0,overflow:"hidden",display:"flex",alignItems:"stretch",position:"relative"})),Ce=styled(motion.div,{shouldForwardProp:e=>e!=="$slotWidth"})(({$slotWidth:e})=>({width:e,minWidth:e,minHeight:"100%",height:"100%",overflow:"hidden"})),Ie=styled(v,{shouldForwardProp:e=>e!=="$visible"&&e!=="$duration"})(({$visible:e=true,$duration:o=h})=>({display:"flex",alignItems:"center",overflow:"hidden",whiteSpace:"nowrap",flexShrink:0,maxWidth:e?160:0,opacity:e?1:0,pointerEvents:e?"auto":"none",transition:o>0?`max-width ${.3*o}s ease-in-out, opacity ${.24*o}s ease-in-out`:"none"})),Te=styled(h$1,{shouldForwardProp:e=>e!=="$width"})(({$width:e})=>({...e!=null?{flex:`0 0 ${e}px`,maxWidth:e}:null})),Pe=styled(i,{shouldForwardProp:e=>e!=="$width"&&e!=="$justifyContent"})(({$width:e,$justifyContent:o="flex-start"})=>({...e!=null?{flex:`0 0 ${e}px`,maxWidth:e,justifyContent:o}:null}));var Ue=220;function ge(e,o,a){return Math.min(Math.max(e,o??0),a??1/0)}function Ae(e,o,a,n){if(Math.abs(e-o)<=1)return;let r=animate(0,1,{duration:a,onUpdate:t=>{n(s=>({...s,width:e+(o-e)*t}));}});return ()=>r.stop()}function G(e,o){if(e===false)return {duration:0,resize:o};let a=typeof e=="object"?e:void 0,n=a?.duration;return {duration:typeof n=="number"&&Number.isFinite(n)?Math.max(0,n):h,resize:a?.resize??o}}function j(e){return e?.children==null||e.expand?.isExpanded===false?false:e.expand?.isExpanded===true}function F(e,o=Ue){let a=Array.isArray(e)?e.flat():[e];for(let n=a.length-1;n>=0;n--){let r=a[n];if(r!=null&&typeof r=="object"&&!Array.isArray(r)&&typeof r.width=="number")return r.width}return o}function Ee(e){let o=e["data-id"]??e.id;return o!=null?{"data-id":o}:{}}function Me({kind:e,slot:o,isOpen:a,fullWidth:n,wrapperWidth:r,animateWrapperWidth:t,animation:s}){let p=e==="sidebar"?xe:be,d=e==="sidebar"?x.sidebar:x.panel,m=o["data-testid"]?`${o["data-testid"]}Wrapper`:e==="sidebar"?"WindowShellSidebarWrapper":"WindowShellPanelWrapper",i=o["data-testid"]??o.id??(e==="sidebar"?"WindowShellSidebar":"WindowShellPanel"),l=Ee(o),u=jsx(p,{id:o.id,className:Eb(d,o.className),"data-testid":i,...l,sx:Db({width:n,minWidth:0},o.sx),children:jsx(Ce,{$slotWidth:n,initial:false,animate:{x:a?0:-n},transition:{duration:s.duration},children:o.children})});return t?jsx(Ne,{"data-testid":m,...l,initial:false,animate:{width:r},transition:{duration:s.duration},children:u}):jsx(ze,{"data-testid":m,...l,$width:r,children:u})}Me.displayName="WindowShellSlotColumn";var J=memo(Me);function De({baseWindowWidth:e,sidebar:o,panel:a,content:n,bodyContent:r,sidebarOpen:t,showPanel:s,sidebarFullWidth:p,panelFullWidth:d,sidebarAnimation:m,panelAnimation:i}){let{size:l}=b(),u=i.resize==="window",W=typeof e=="number"?Math.max(0,e-(u?d:0)-(m.resize==="window"&&!t?p:0)):l.width,b$1=u?s?Math.min(d,Math.max(0,l.width-W)):0:s?d:0,y=t?p:0;return jsxs(we,{className:Eb(x.root),children:[o?.children?jsx(J,{kind:"sidebar",slot:o,isOpen:t,fullWidth:p,wrapperWidth:y,animateWrapperWidth:true,animation:m}):null,jsx(ye,{id:n?.id?`${n.id}Body`:void 0,className:Eb(x.body,n?.className),"data-testid":n?.["data-testid"]?`${n["data-testid"]}Body`:n?.id?`${n.id}Body`:"WindowShellBody",...(n?.["data-id"]??n?.id)!=null?{"data-id":n?.["data-id"]?`${n["data-id"]}Body`:`${n?.id}Body`}:null,sx:n?.sx,children:r}),a?.children?jsx(J,{kind:"panel",slot:a,isOpen:s,fullWidth:d,wrapperWidth:b$1,animateWrapperWidth:!u,animation:i}):null]})}De.displayName="WindowShellSlotsLayout";var Re=memo(De);function $e({sidebarOpen:e,showPanel:o,sidebarResize:a,panelResize:n,sidebarDuration:r,panelDuration:t}){let{size:s,setSize:p,defaultSize:d,minSize:m,maxSize:i}=b(),l=useRef(s);l.current=s;let u=useRef(d.width),W=useRef(e),b$1=useRef(o),y=useRef(d.width);return useEffect(()=>{let C=b$1.current!==o,w=W.current!==e,E=y.current!==d.width;b$1.current=o,W.current=e,y.current=d.width;let S;if(w&&a==="window"?S=r:(C&&n==="window"||E&&!C&&!w)&&(S=t),S==null)return;let h=ge(d.width,m?.width,i?.width);return u.current=h,Ae(l.current.width,h,S,p)},[d.width,o,e,a,n,r,t,m?.width,i?.width,p]),null}$e.displayName="WindowShellAnimator";var Oe=memo($e);function ve({toolbar:e$1,sidebar:o,panel:a,animationDuration:n=h}){let{title:r,titleIcon:t,onClose:s,onMinimize:p,onMaximize:d,startAdornment:m,endAdornment:i,id:l,className:u,"data-testid":W,"data-id":b$2,sx:y}=e$1??{},{isMaximized:C}=b(),w=typeof s=="function"?s:void 0,E=typeof p=="function"?p:void 0,S=typeof d=="function"?d:void 0,h=o?.expand,c=a?.expand,z=j(a),L=h?.isExpanded??true,M=h!=null&&o?.children!=null,D=c!=null&&a?.children!=null&&z,k=M&&D,V=F(a?.sx),_=o!=null?F(o.sx):0,I=Math.max(_,V),T=k&&L?I:void 0,Z=D?I:void 0,X=D;return jsxs(b$1,{id:l??f$1,className:u,"data-testid":W??l??"WindowToolbar","data-id":b$2??l,sx:y,children:[jsxs(Te,{$width:T,children:[w?jsx(c$2,{onClick:w}):null,E?jsx(f$2,{onClick:E}):null,S?jsx(e,{isMaximized:C,onClick:S}):null,M&&h?jsx(d$1,{direction:h.isExpanded??true?"left":"right",active:h.isExpanded??true,onClick:h.onExpand,children:h.label}):null,m]}),jsx(j$1,{title:r,icon:t}),jsxs(Pe,{$width:Z,$justifyContent:i?"space-between":"flex-start",children:[D?jsx(Ie,{$visible:X,$duration:n,children:jsx(d$1,{sx:{flexShrink:0},direction:c?.isExpanded??true?"left":"right",active:z,onClick:c?.onExpand,children:c?.label})}):null,i]})]})}ve.displayName="WindowShellToolbar";var Fe=memo(ve);var Be=forwardRef(function({isOpen:o,className:a,sx:n,toolbar:r,services:t,sidebar:s,panel:p,footer:d$1,content:m,window:i,backdrop:l},u){let W=t?.list??[],b=(t?.isLoading??false)||W.length>0,y=d$1!=null&&(d$1.isVisible??true),C=s?.children,w=F(s?.sx),E=p?.children,S=p!=null?F(p.sx):0,h=m?.children,c$2=s?.expand?.isExpanded??C!=null,z=j(p),L=!!(C||E),[M,D]=useState(w),[k,V]=useState(S);useEffect(()=>{c$2&&D(w),z&&V(S);},[c$2,w,z,S]);let _=r?.onClose??r?.onMinimize??(()=>{}),I=G(s?.animation,"in-place"),T=G(p?.animation,"in-place"),Z=(()=>{let P=i?.defaultSize;if(typeof P?.width!="number")return P;let oe=(I.resize==="window"&&!c$2?M:0)+(T.resize==="window"&&!z?k:0);return oe>0?{...P,width:Math.max(0,P.width-oe)}:P})(),X={height:i?.minSize?.height??i?.defaultSize?.height??c,...i?.minSize?.width!=null?{width:i.minSize.width}:null},Le=l!=null&&(l.isVisible??true)&&o&&!i?.isMinimized,_e=(i?.order??0)+10-1,ee=jsx(oo,{open:true,onClick:_,id:l?.id,className:l?.className,"data-testid":l?.["data-testid"]??l?.id??"WindowShellBackdrop",...(l?.["data-id"]??l?.id)!=null?{"data-id":l?.["data-id"]??l?.id}:null,sx:Db({zIndex:_e,backgroundColor:P=>alpha(P.palette.common.black,.3)},l?.sx)});return jsxs(Fragment,{children:[Le&&(i?.disablePortal?ee:createPortal(ee,document.body)),jsxs(f,{ref:u,isOpen:o,onClose:_,defaultSize:Z,minSize:X,maxSize:i?.maxSize,defaultPosition:i?.defaultPosition,containerRef:i?.containerRef,order:i?.order,isMinimized:i?.isMinimized,isMaximized:i?.isMaximized,id:i?.id,className:Eb(x.root,i?.className,a),sx:n,onResize:i?.onResize,onDragStart:i?.onDragStart,onMouseDown:i?.onMouseDown,onClick:i?.onClick,disablePortal:i?.disablePortal,"data-testid":i?.["data-testid"]??i?.id,"data-id":i?.["data-id"]??i?.id,children:[jsx(Oe,{sidebarOpen:c$2,showPanel:z,sidebarWidth:M,panelWidth:k,sidebarResize:I.resize,panelResize:T.resize,sidebarDuration:I.duration,panelDuration:T.duration}),jsx(Fe,{toolbar:r,sidebar:s,panel:p,animationDuration:T.duration}),b?t?.isLoading?jsx(d,{appCode:t?.appCode,id:t?.id,className:t?.className,"data-testid":t?.["data-testid"]??t?.id,"data-id":t?.["data-id"]??t?.id,sx:Db({height:"auto",flexShrink:0},t?.sx)}):jsx(c$1,{services:W,serviceCode:t?.activeCode??"",onOpenService:t?.onOpen,onOpenServiceInNewWindow:t?.onOpenInNewWindow,language:t?.language??"en",openInNewWindowLabel:t?.openInNewWindowLabel??"Open in new window",id:t?.id,className:t?.className,"data-testid":t?.["data-testid"]??t?.id,"data-id":t?.["data-id"]??t?.id,sx:t?.sx}):null,jsx(g,{id:m?.id,className:m?.className,"data-testid":m?.["data-testid"]??m?.id,"data-id":m?.["data-id"]??m?.id,sx:L?void 0:m?.sx,children:L?jsx(Re,{baseWindowWidth:typeof i?.defaultSize?.width=="number"?i.defaultSize.width:void 0,sidebar:s,panel:p,content:m,bodyContent:h,sidebarOpen:c$2,showPanel:z,sidebarFullWidth:M,panelFullWidth:k,sidebarAnimation:I,panelAnimation:T}):h}),y?jsxs(h$2,{id:d$1?.id,className:d$1?.className,"data-testid":d$1?.["data-testid"]??d$1?.id,"data-id":d$1?.["data-id"]??d$1?.id,sx:d$1?.isVisible===true?Db(d$1?.sx??{},{"&:empty, &:has(> :only-child:empty)":{display:"flex"}}):d$1?.sx,children:[d$1?.children,d$1?.actions?jsx(i$1,{children:d$1.actions}):null]}):null]})]})});Be.displayName="WindowShell";var to=memo(Be);export{x as a,to as b};
@@ -0,0 +1,2 @@
1
+ import {b as b$3,h,c,j as j$1,i}from'./chunk-5FR3LFXC.js';import {b as b$1}from'./chunk-673TILTX.js';import {b as b$5}from'./chunk-YFL4D5VW.js';import {b as b$4}from'./chunk-4SDKOPUI.js';import {a}from'./chunk-PYVM4SKE.js';import {b as b$6}from'./chunk-XVIGXV43.js';import {b as b$7}from'./chunk-JBDIMDMZ.js';import {b as b$2}from'./chunk-TRXHMROX.js';import {d as d$1}from'./chunk-MUBZJUHH.js';import {b as b$8}from'./chunk-EM7XGO3A.js';import {b as b$9}from'./chunk-EKOQHUCL.js';import {c as c$1}from'./chunk-SSK26DK7.js';import {b as b$a}from'./chunk-ODDV623H.js';import {t,j,p,z,R,B,b,d,v as v$1,D,V,f}from'./chunk-F7I3KDV5.js';import {l}from'./chunk-U3ZJP2GE.js';import {Sb,na,xb,Va,Ua,Ta,Eb as Eb$1,Oa,Pa,ua,Ra,Sa,Qa,rb,W,ba,ca,vb as vb$1,ma as ma$1,Z as Z$1,wb as wb$1,fa}from'./chunk-XBJ4RS2B.js';import {b as b$b}from'./chunk-TIPJC5YT.js';import {Cb,zb,Bb,Xd,Fj,rc,Ei as Ei$1,Ci as Ci$1,Di,Eh,Pg,Vh,Ve,ik as ik$1,ja,Ak,rk,F,E,Eb,Fb,Gb,C,Zj,Dh,yb,im as im$1,jc as jc$1,kc as kc$1,hc as hc$1,ma,Ll as Ll$1,xb as xb$1,Hb,G,wb,T,zi as zi$1,Bi,Ai as Ai$1,yi as yi$1,Fi,dh,Wg,ch,Rj,Sj,vb,gk,jk,hk,Bk,zk,xk as xk$1,uk,kk,mk,Ck,Oh,ub,nk,sb,ok,Pn as Pn$1,va,ua as ua$1,wk as wk$1,vk,pk,sk,qk,tk,h as h$1,Vg,z as z$1,ap,da as da$1,ca as ca$1,na as na$1,cc as cc$1,$d as $d$1,wn as wn$1,ae,rb as rb$1,qb,Kj,Ij,Jj,Tb,Pm,Mm,Hm,Im as Im$1,Om,Am,Qm,Bm as Bm$1,Rm as Rm$1,Cm,Jm as Jm$1,Em,Gm,Nm as Nm$1,Fm,ym,Km,Lm,zm,Dm,xm as xm$1,wm as wm$1,vm,um as um$1,tm}from'./chunk-EYLBXWXJ.js';import zi,{forwardRef,useId,memo,useMemo,useState,useCallback,useEffect,useRef,Fragment as Fragment$1}from'react';import {styled,useTheme}from'@mui/material/styles';import um from'@mui/material/TableCell';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {useTranslation}from'react-i18next';import {styled as styled$1,Box,Paper,Button,TextField,Menu,MenuItem,ListItemIcon,ListItemText,Typography,Popper,CircularProgress,Link,useTheme as useTheme$1}from'@mui/material';import {motion,AnimatePresence,Reorder,useDragControls}from'framer-motion';import He from'lodash/camelCase';import da from'@mui/material/Box';import Wf from'@mui/material/ClickAwayListener';import gc from'lodash/startCase';import Lf from'@mui/material/Popper';import jf from'@mui/material/Typography';import td from'@mui/material/Button';import UC from'@mui/material/SvgIcon';import Mx from'@mui/material/Popover';var Xs=styled(um,{shouldForwardProp:e=>e!=="rowId"})(({theme:e})=>({fontSize:e.typography.body2.fontSize,fontWeight:e.typography.fontWeightRegular,color:e.palette.text.primary,padding:e.spacing(0),verticalAlign:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"block",width:"100%",border:"none",textAlign:e?.direction==="ltr"?"left":"right"}));var xm=forwardRef(({children:e,...t},o)=>{let n=Sb(useId(),"table-cell");return jsx(Xs,{id:n,component:"div","data-testid":"TableCell",...t,ref:o,children:e})}),v=memo(xm);function hm({value:e,label:t,...o}){let n=Number.isInteger(e)&&Number(e)>1&&t.charAt(t.length-1)!=="s"?`${t}s`:t,r=`${e} ${n}`;return jsx(p,{title:void 0,children:jsx(v,{...o,children:jsx("span",{children:r})})})}var Im=hm;var Js=styled("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:e.spacing(1)})),Zs=styled("span",{shouldForwardProp:e=>e!=="tableMode"})(({theme:e,tableMode:t})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"25ch",flex:1,...na(t)&&{fontSize:"11px",color:e.palette.text.primary}})),Qs=styled("span")({width:"11.6px",height:"11.6px",flexShrink:0,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"flex-start"}),el=styled("img")({width:"11.6px",height:"11.6px",borderRadius:"50%"});var py=styled$1("span",{shouldForwardProp:e=>e!=="variant"})(({theme:e,variant:t})=>({display:"flex",width:"17px",height:"12px",backgroundColor:t?xb(e.palette)[t]:"transparent",borderRadius:"2px",flexShrink:0,overflow:"hidden",visibility:"hidden","& > img":{width:"100%",height:"100%",objectFit:"cover"}})),qt=styled$1("button")({background:"transparent",border:"none",padding:0,cursor:"pointer",outline:"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),ht=styled$1(motion.div)(({theme:e})=>({borderRadius:"12px",backgroundColor:e.palette.background.paper,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",gap:e.spacing(.5)})),dy=styled$1("img")(()=>({width:"12px",height:"12px"})),ol=styled$1("span",{shouldForwardProp:e=>e!=="isShown"})(({theme:e,isShown:t})=>({...t&&{border:`1px solid ${e.palette.divider}`},borderRadius:"12px",backgroundColor:t?e.palette.background.paper:"transparent",width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,overflow:"hidden",visibility:"hidden"})),cy=styled$1("span")(({theme:e})=>({color:e.palette.common.white,borderRadius:e.spacing(.5),padding:"1.285px 2.569px",height:"12px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"9.782px",fontWeight:600})),nl=styled$1("div")(()=>({display:"flex",width:"24px",height:"24px",alignItems:"center",justifyContent:"center",borderRadius:"64px;",border:"1px solid #F2F2F2;"})),rl=styled$1(t)(({theme:e})=>({width:24,height:24,fontSize:"8.5px",fontWeight:500,color:e.palette.background.default,border:`1px solid ${e.palette.divider}`})),Z=styled$1("div")(({theme:e})=>({fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"4px 8px",borderRadius:"24px",border:`1px solid ${e.palette.divider}`})),il=styled$1(Z)(({theme:e})=>({color:e.palette.info.dark,backgroundColor:e.palette.info.light,borderColor:e.palette.divider,minWidth:"88px",height:"24px"})),al=styled$1(Z)(({theme:e})=>({color:e.palette.grey.A700,backgroundColor:`${e.palette.grey.A700}1A`,minWidth:"88px",height:"24px"})),sl=styled$1(v)(()=>({fontSize:"11px",textAlign:"left",display:"flex",justifyContent:"flex-start",alignItems:"center",overflow:"hidden",gap:"4px",textOverflow:"ellipsis",whiteSpace:"nowrap"})),my=styled$1("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:e.spacing(1)})),Ze=styled$1("span")(()=>({width:"24px",height:"24px",borderRadius:"50%",backgroundColor:"transparent",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0})),Fe=styled$1("img")(()=>({width:"36px",height:"24px"})),ll=styled$1("div")(({percentage:e,isCapture:t,theme:o})=>({background:`conic-gradient(${t?o.palette.info.dark:"#656565"} ${e}%, transparent 0.00%)`,borderRadius:"50%",width:"8.333px",height:"8.333px",border:`0.6px solid ${t?o.palette.info.dark:"#656565"}`})),Qo=styled$1(motion.span)(({theme:e,order:t})=>({position:"absolute",left:0,zIndex:t+6,border:`1px solid ${e.palette.divider}`,borderRadius:"12px",backgroundColor:e.palette.background.paper,width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center"})),uy=styled$1("span")(({theme:e})=>({textDecorationLine:"underline",color:e.palette.info.dark}));function Sm({customerInitiated:e,children:t,isTimezoneIconShown:o,hasCustomerIcon:n,customerIcon:r,customerName:s,hideCustomerInitiatedIcon:i,hideTimezoneIcon:a,phone:l,email:p$1,id:d,...m}){let{t:u}=useTranslation(),C=e===false?u("merchantInitiated"):"",g=rb(s),b=s?.split(" ")?.map(I=>I?.[0]?.toUpperCase()).join(""),S=useMemo(()=>W(),[]),T=n&&jsx(p,{title:t,children:jsx(rl,{"data-testid":"CustomerCell_customerShownIcon",sx:{background:S},src:r,alt:r,children:b})}),c=useMemo(()=>[{name:"ID",value:d},{name:"Name",value:s},{name:"Email",value:p$1},{name:"Phone",value:l}],[p$1,l,d,s]),x=useMemo(()=>c.some(({value:I})=>I)?jsx("div",{"data-testid":"CustomerCell_customerTooltip",children:c.map(({name:I,value:h},w)=>h&&jsx("div",{"data-testid":`CustomerCell_customerTooltip_${I}`,children:I==="Name"?h:`${I}: ${h}`},`${w}-${h}`))}):null,[c]);return jsx(v,{...m,"data-testid":"CustomerCell_TableCell",children:jsxs(Js,{"data-testid":"CustomerCell_StyledCustomerCell",children:[T,jsx(p,{title:x,children:jsx(Zs,{"data-testid":"CustomerCell_StyledCustomerName","data-is-arabic":g,children:t})}),!a&&jsx(Qs,{"data-testid":"CustomerCell_StyledCustomerIconContainer",children:o&&jsx(el,{src:G,"data-testid":"CustomerCell_StyledCustomerIcon"})}),!i&&jsx(p,{title:C,children:jsx(ol,{"data-testid":"CustomerCell_StarBadgeWrapper",className:"geography-box",isShown:!!C,children:C&&jsx("img",{"data-testid":"CustomerCell_merchantInitiatedIcon",src:wb,alt:"merchant",style:{width:"16px",height:"16px"}})})})]})})}var wm=Sm;var en={ORDER:{label:"order",icon:yi$1,color:"#5E30EB"},SAVED_CARD:{label:"cardAgreement",icon:Ai$1,color:"#76BB40"},SUBSCRIPTION:{label:"subscription",icon:Bi,color:"#00C7BE"},INSTALLMENT:{label:"installment",icon:zi$1,color:"#32ADE6"}},tn={SAVED_TOKEN:{label:"savedToken",icon:T,color:"#76BB40"},COUNT:{label:"countBadge",icon:"countBadge",color:"#76BB40"}};styled$1("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:e.spacing(.5)}));styled$1("img")(()=>({width:"35px",height:"16px",display:"block"}));styled$1("span")(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"14.67px",height:"10px"}));styled$1("img")(()=>({maxWidth:"100%",width:"100%"}));var on=styled$1("span")(({theme:e})=>({fontSize:"11px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"2px 0",color:e.palette.text.primary})),nn=styled$1("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",paddingInline:"8px"})),rn=styled$1(motion.span)(({order:e})=>({zIndex:(e||0)+1}));function Rm({type:e,hasSavedCard:t,totalPaymentsCount:o,isTextShown:n}){let r=Sb(useId(),"agreement-icon"),s=useTheme$1(),{t:i}=useTranslation(),a$1=useMemo(()=>[...t?[tn.SAVED_TOKEN]:[],...(o||0)>0?[tn.COUNT]:[],...e&&en[e]?[en[e]]:[]],[t,o,e]),l=m=>n?jsx(rn,{"data-testid":"AgreementCell_countBadge",children:jsx(p,{title:i("totalPaymentCount",{amount:b$b(o)}),children:jsx(nn,{children:jsxs(on,{"data-testid":"AgreementCell_totalPaymentsCount",sx:{color:tn.COUNT.color},children:["x",o]})})})},m):jsx(a,{value:o,index:m},m),p$1=a$1.map((m,u)=>m.label==="countBadge"?l(u):jsx(p,{title:i(m.label),children:jsx(rn,{children:n?jsx(nn,{children:jsx(on,{"data-testid":"AgreementCell_agreementType",sx:{color:m.color},children:i(m.label)})}):jsx(d,{sx:{maxWidth:"16px",maxHeight:"16px",height:"auto",width:"auto"},src:m.icon,alt:"agreement"})},m.color)},m.color)),d$1=jsx(p,{title:"No agreement",children:jsx(rn,{children:n?jsx(nn,{children:jsx(on,{"data-testid":"AgreementCell_agreementType",sx:{color:s.palette.text.secondary},children:"No agreement"})}):jsx(d,{sx:{maxWidth:"24px",maxHeight:"24px",height:"auto",width:"auto"},src:Fi,alt:"agreement"})},"no-agreement")},"no-agreement");return jsx(Box,{id:r,"data-testid":"AgreementIcon",sx:{display:"flex",alignItems:"center",gap:"4px"},children:p$1?.length>0?p$1:d$1})}var pl=Rm;var km=pl;styled$1("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:e.spacing(1)}));styled$1("img")(()=>({maxWidth:"36px",maxHeight:"24px"}));styled$1(motion.span,{shouldForwardProp:e=>e!=="sourcesCount"})(({theme:e,sourcesCount:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minWidth:`${t*6+36}px `,minHeight:"24px",cursor:"pointer",backgroundColor:e.palette.background.paper,borderRadius:"16px"}));var cl=styled$1("span")(({theme:e})=>({fontSize:"11px",padding:"2px 0",color:e.palette.text.primary})),ml=styled$1("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",paddingInline:"4px",textAlign:"center",width:"100%"}));styled$1("span")(({theme:e})=>({position:"absolute",left:0,zIndex:6,border:`1px solid ${e.palette.divider}`,borderRadius:"12px",backgroundColor:e.palette.background.paper,width:"36px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center"}));styled$1(motion.div)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:e.spacing(1)}));var ul=styled$1("div")(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px"}));var Or={"3DS":{tooltip:"3DS",icon:Sj,borderColor:"rgba(31, 136, 208, 0.10)"},"Device Biometric":{tooltip:"Biometric",icon:Rj,borderColor:"rgba(31, 136, 208, 0.10)"},"Non-3DS":{tooltip:"Non 3DS",icon:ch,borderColor:"rgba(31, 136, 208, 0.10)"}},fl={FAILED:{tooltip:"Failed",icon:Wg,borderColor:"rgba(255, 61, 0, 0.10)"},REJECTED:{tooltip:"Rejected",icon:dh,borderColor:"rgba(255, 61, 0, 0.10)"}};function Nm({transactionStatus:e,eci:t,authType:o,isTextShown:n}){let r=Sb(useId(),"auth-icons"),s=useMemo(()=>{let a=e?fl[e]:null,l=a?.tooltip,p=e==="AUTHENTICATED"?null:a?.icon;return [{tooltip:l,content:n?l:p,type:n?"text":"icon"},...o?[{tooltip:o,content:n?Or[o]?.tooltip:Or[o]?.icon,type:n?"text":"icon"}]:[],{tooltip:"",content:t?`ECI ${t}`:"",type:"text"}]},[e,n,o,t]),i=useMemo(()=>s.filter(a=>!!a.content).map((a,l)=>{let p$1=a.type==="text"?jsx(ml,{"data-testid":"AuthenticationCell_BadgeTextWrapper",children:jsx(cl,{sx:{border:"none"},"data-testid":"AuthenticationCell_TextLabel","data-source":a.content,children:a.content})}):jsx(d,{sx:{width:"16px",height:"16px"},src:a.content,alt:a.tooltip});return jsx(p,{title:a.tooltip,children:p$1},`${a.tooltip}-${l}`)}),[s]);return jsx(ul,{id:r,"data-testid":"AuthIcons",children:i})}var gl=Nm;var Bm=(e,t,o)=>({start:{x:e*6,transition:{duration:.3,type:"tween",ease:"easeIn"},...e>0&&{opacity:0}},animate:{x:o?e*o:e*39,transition:{duration:.3,type:"tween",ease:"easeOut"},boxShadow:t,...e>0&&{opacity:1}}});var Wm=gl;var Xt={VOID:{icon:hk},CAPTURED:{icon:gk}};var an=styled(motion.div)(({theme:e,isCapture:t})=>({display:"flex",alignItems:"center",justifyContent:"center",gap:e.spacing(.5),paddingInline:e.spacing(.3),paddingBlock:e.spacing(.3),height:"100%",minWidth:"100%",backgroundColor:t?"#eaf3fb":"#eeeeee",borderRadius:"56px",width:"fit-content",fontSize:"10px",color:e.palette.text.primary,position:"relative",zIndex:10})),sn=styled("div")(({theme:e,percentage:t,isCapture:o})=>({border:`0.6px ${[0,100].includes(t)?"solid":"dashed"} ${o?e.palette.info.dark:"#656565"}`,borderRadius:"80px",padding:e.spacing(.316),paddingLeft:e.spacing(.516),fontSize:"7px",fontWeight:e.typography.fontWeightBold,color:o?e.palette.info.dark:"#656565",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:e.spacing(.5)})),ln=styled("div")(({percentage:e,isCapture:t,theme:o})=>({background:`conic-gradient(${t?o.palette.info.dark:"#656565"} ${e}%, transparent 0.00%)`,borderRadius:"50%",width:"8.333px",height:"8.333px",border:`0.6px solid ${t?o.palette.info.dark:"#656565"}`})),pn=styled("img")({width:"14px",height:"14px"}),It=styled(Ze)({width:"16px",height:"16px"}),tt=styled("img")({width:"16px",height:"16px"}),xl=styled(Box)({display:"flex",alignItems:"center",justifyContent:"center"});function dn(e){return e<5?5:e===100?95:e}function $m({voidPercentage:e,capturePercentage:t,captureCount:o,autoType:n,captureAmount:r,voidAmount:s,currency:i,isTextShown:a,remainingAmount:l,isSheetViewShown:p$1,selectionProps:d={}}){let m=Number(t)+Number(e)===100||l<=0,u=Sb(useId(),"capture-auto-icon"),C=useTheme(),{t:g}=useTranslation(),b=ba(l||0),S=useCallback(h=>`Auto ${h} - ${i} ${b.integerAmount}.${b.decimalAmount}`,[i,b.decimalAmount,b.integerAmount]),T=useCallback(h=>{let w=h==="Capture"?r:s,{integerAmount:y,decimalAmount:A}=ca(w,i);return `Partial ${h} - ${i} ${y}.${A}`},[r,s,i]),c=t>0?jsx(p,{title:T("Capture"),children:jsxs(an,{isCapture:true,isFullyUsed:m,whileHover:["animate","fadeIn"],animate:"start",variants:{animate:{boxShadow:C.shadows[4]}},children:[jsx(pn,{src:vb,alt:"captured"}),jsxs(motion.div,{style:{display:"none",alignItems:"center",justifyContent:"center",gap:"4px"},initial:{width:0,opacity:0},transition:{animate:{duration:.5},fadeIn:{duration:.2}},variants:{animate:{width:"auto",display:"flex"},fadeIn:{transition:{delay:.5},opacity:1}},children:[jsxs(sn,{isCapture:true,percentage:t,children:[t,"% ",jsx(ln,{isCapture:true,percentage:dn(t)})]}),o>1&&jsxs(z,{compact:true,color:"dark",children:[o,"x"]})]})]})}):n==="CAPTURED"&&!m?jsx(p,{title:S("Capture"),children:jsx(It,{children:jsx(tt,{src:Xt.CAPTURED?.icon,alt:"auto"})})}):jsx(p,{title:S("Capture"),children:jsx(It,{children:jsx(tt,{src:Xt.CAPTURED?.icon,alt:"auto"})})}),x=t===100?jsx(p,{title:g("captured"),children:jsx(xl,{children:jsx(tt,{src:jk,alt:"captured"})})}):c,I=useMemo(()=>p$1&&x?jsx(b$1,{copyTrigger:"click",copyText:g("captured"),children:g("captured")}):a&&x?jsx(il,{children:g("captured")}):x,[a,x,p$1,g]);return I&&jsx("div",{id:u,"data-testid":"CaptureAutoIcon",style:{zIndex:12},children:I})}var hl=$m;function Jm({voidPercentage:e,capturePercentage:t,voidCount:o,autoType:n,captureAmount:r,voidAmount:s,currency:i,isTextShown:a,isSheetViewShown:l,selectionProps:p$1={},remainingAmount:d}){let m=Number(t)+Number(e)===100||d<=0,u=Sb(useId(),"void-auto-icon"),C=useTheme(),{t:g}=useTranslation(),b=ba(d||0),S=useCallback(h=>`Auto ${h} - ${i} ${b.integerAmount}.${b.decimalAmount}`,[i,b.decimalAmount,b.integerAmount]),T=useCallback(h=>{let w=h==="Capture"?r:s,{integerAmount:y,decimalAmount:A}=ca(w,i);return `Partial ${h} - ${i} ${y}.${A}`},[r,s,i]),c=e>0||s?jsx(p,{title:T("Void"),children:jsxs(an,{isFullyUsed:m,whileHover:["animate","fadeIn"],animate:"start",sx:{zIndex:14,background:C.palette.common.white,border:`0.75px solid ${C.palette.grey[600]}1A`},variants:{animate:{boxShadow:C.shadows[4]}},children:[jsx(pn,{src:Ak,alt:"void"}),jsxs(motion.div,{style:{display:"none",alignItems:"center",justifyContent:"center",gap:"4px"},initial:{width:0,opacity:0},transition:{animate:{duration:.5},fadeIn:{duration:.2}},variants:{animate:{width:"auto",display:"flex"},fadeIn:{transition:{delay:.5},opacity:1}},children:[jsxs(sn,{percentage:e,children:[e,"% ",jsx(ln,{percentage:dn(e)})]}),o>0&&jsxs(z,{compact:true,color:"neutral",children:[o,"x"]})]})]})}):n==="VOID"&&!m?jsx(p,{title:S("Void"),children:jsx(It,{children:jsx(tt,{src:Xt.VOID?.icon,alt:"auto"})})}):null,x=e===100?jsx(p,{title:g("void"),children:jsx(It,{children:jsx(tt,{src:Ak,alt:"void"})})}):c,I=useMemo(()=>l&&x?jsx(b$1,{copyTrigger:"click",copyText:g("void"),children:g("void")}):a&&x?jsx(al,{children:g("void")}):x,[a,x,l,g]);return I?jsx("div",{id:u,"data-testid":"VoidAutoIcon",style:{...!l&&{zIndex:11}},children:I}):null}var bl=Jm;var Zm=hl;var Hr={ABANDONED:Oh,IN_PROGRESS:Ck,VOID:Ak,CANCELLED:ik$1,CAPTURED:jk,INITIATED:Ck,FAILED:mk,DECLINED:kk,RESTRICTED:uk,TIMEDOUT:xk$1,UNKNOWN:zk,AUTHORIZED:Bk},Sl={UNKNOWN:{gatewayIcon:nk,acquirerIcon:ub,color:"#FF7A00",background:"#FF7A001A"},TIMEDOUT:{gatewayIcon:nk,acquirerIcon:ub,color:"#FF7A00",background:"#FFF3E5"},FAILED:{gatewayIcon:nk,acquirerIcon:ub,color:"#FF7A00",background:"#FFF3E5"},DECLINED:{gatewayIcon:ok,acquirerIcon:sb,color:"#FF3D00",background:"#FFEAE5"},RESTRICTED:{gatewayIcon:ok,acquirerIcon:sb,color:"#FF3D00",background:"#FFEAE5"},ABANDONED:{gatewayIcon:nk,acquirerIcon:ub,color:"#FFD600",background:"#FFFBE5"},CANCELLED:{gatewayIcon:nk,acquirerIcon:ub,color:"#FFD600",background:"#FFFBE5"},INITIATED:{color:"#8D8D94",background:"transparent",gatewayIcon:nk,acquirerIcon:ub}},wl={PENDING:rk,REFUNDED:qk},_r={PENDING:{color:"#FF7A00",backgroundColor:"#FF7A000D"},REFUNDED:{color:"#4E1FD0",backgroundColor:"#4E1FD00D"}},Tl={PAID_OUT:pk,SETTLED:vk,PENDING:wk$1},Al={AUTHORIZED:Bk},Pl={CAPTURED:{color:"#1F88D0",background:"#1F88D00D"}};var ou=({authorizedStatus:e,isTextShown:t,iconStyles:o,tableMode:n,chipIndex:r=0,selectionProps:s={}})=>{let{t:i}=useTranslation(),a=useTheme(),l=i(He(e));return na(n)?jsx(b$1,{copyTrigger:"click",copyText:l,children:l}):jsx(p,{title:l,children:t?jsx(Z,{"data-testid":"StatusCell_AuthorizedStatusLabel",sx:{color:a.palette.info.dark},children:l}):jsx(d,{src:Al[e],alt:"authorized-icon","data-testid":"StatusCell_AuthorizedStatusIcon",sx:o})})};var vl=styled(motion.span)(({theme:e})=>({color:e.palette.common.white,display:"block",fontWeight:e.typography.fontWeightBold,fontSize:"9.78px",borderRadius:"4px",paddingInline:e.spacing(.45)})),El=styled(motion.span)(()=>({display:"block",width:"0",overflow:"hidden"})),Ur=styled("img")(()=>({width:"10px",height:"10px"})),zr=styled(motion.span)(({theme:e})=>({width:"18px",height:"18px",borderRadius:"50%",backgroundColor:e.palette.background.paper,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,position:"relative"})),Gr=styled(motion.div,{shouldForwardProp:e=>e!=="isVisible"})(({isVisible:e})=>({display:"flex",justifyContent:"center",alignItems:"center",gap:"4px",width:"0",overflow:"hidden",opacity:0,...!e&&{padding:"0 !important"}})),Vl=styled(motion.div)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start"})),Ml=styled(motion.span)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minHeight:"24px",cursor:"pointer",borderRadius:"16px"})),Rl={delay:.2,ease:"easeIn",fadeIn:{duration:.2}},Ll={animate:{width:"auto",paddingRight:"4px",paddingLeft:"4px"},fadeIn:{opacity:1,transition:{delay:.7}}},kl={animate:{width:"auto"},fadeIn:{opacity:1,transition:{delay:1}}},Dl={animate:{width:"auto",paddingRight:"8px",paddingLeft:"4px"}},$r={fadeIn:{duration:.3},animate:{duration:.1}},Nl={fadeIn:{opacity:1}},Bl=styled(Z)(()=>({width:"88px",height:"100%"})),Yr=styled(Box)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:e.spacing(.25),height:"100%"}));function jr({chargeStatus:e,gatewayTooltip:t,acquirerTooltip:o,chargeTooltip:n,errorCode:r,isTextShown:s,gatewayCode:i,acquirerCode:a,unCapturedStyles:l,iconStyles:p$1,iconWrapperStyles:d,gatewayIconWrapperStyles:m,gatewayContainerStyles:u,gateWayIconStyles:C,showBadge:g=true,isSheetViewShown:b=false,selectionProps:S={},chipIndex:T=0}){let c=e?Sl[e]:null,x=e?Pl[e]:null,I=useTheme(),{t:h}=useTranslation(),w=Sb(useId(),"charge-status-icon"),y=n&&jsx(Fragment,{children:jsx("div",{children:n})}),A=o&&jsxs(Fragment,{children:[jsx("div",{children:"Acquirer"}),jsx("div",{children:o})]}),R=t&&jsxs(Fragment,{children:[jsx("div",{children:"Gateway"}),jsx("div",{children:t})]}),O=e&&Hr[e]&&jsx("div",{"data-testid":"ChargeStatusIcon_ChargeIcon",style:{display:"flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px",borderRadius:c?"50%":"",...d},children:jsx(Fe,{src:Hr[e],alt:"charge-icon","data-testid":"ChargeStatusIcon_StatusIcon",style:{borderRadius:c?"50%":"",width:"16px",height:"16px",...p$1}})});return b?jsxs(Yr,{children:[jsxs(b$1,{copyTrigger:"click",copyText:h(He(e)),children:[h(He(e))," ",r]}),c&&jsxs(Fragment,{children:[i&&jsxs(b$1,{copyTrigger:"click",copyText:"Gateway",children:["Gateway ",i]}),a&&jsxs(b$1,{copyTrigger:"click",copyText:"Acquirer",children:["Acquirer ",a]})]})]}):s?jsxs(Yr,{children:[jsx(p,{title:y,children:jsxs(Bl,{"data-testid":"ChargeStatusIcon_isTextShown","data-status":He(e),sx:{background:c?.background||x?.background||"transparent",color:c?.color||x?.color||I.palette.info.dark,borderColor:`${c?.color||x?.color||I.palette.info.dark}1A`},children:[h(He(e))," ",r]})}),c&&jsxs(Fragment,{children:[i&&jsx(p,{title:R,children:jsxs(Z,{"data-testid":"ChargeStatusIcon_isTextShown","data-status":He(e),sx:{background:c?.background||x?.background||"transparent",color:c?.color||x?.color||I.palette.info.dark},children:["Gateway ",i]})}),a&&jsx(p,{title:A,children:jsxs(Z,{"data-testid":"ChargeStatusIcon_isTextShown","data-status":He(e),sx:{background:c?.background||x?.background||"transparent",color:c?.color||x?.color||I.palette.info.dark},children:["Acquirer ",a]})})]})]}):jsx(Ze,{id:w,"data-testid":"ChargeStatusIcon_StatusIconWrapper",style:{...d},children:Pn$1?.includes(e||"")&&(y||A||R)?jsxs(Ml,{"data-testid":"ChargeStatusIcon_UnCapturedContainer",whileHover:["animate","fadeIn"],style:{left:"0",...g&&{paddingInline:"12px",border:"1px solid #F2F2F2",borderRadius:"12px",backgroundColor:"#fff"},...l},children:[jsx(Vl,{"data-testid":"ChargeStatusIcon_UnCapturedBadge",sx:{borderRadius:"56px"},initial:{background:"transparent"},variants:{animate:{background:c?.background}},children:jsx(p,{title:y??h(He(e)),children:jsxs(Fragment,{children:[O,jsx(El,{"data-testid":"ChargeStatusIcon_ErrorCodeWrapper",transition:{animate:{duration:.05}},variants:Dl,style:{...r&&{padding:"0 !important"}},children:jsx(vl,{"data-testid":"ChargeStatusIcon_ErrorCodeLabel",sx:{background:c?.color},transition:Rl,variants:Nl,initial:{opacity:0},children:r})})]})})}),jsx(Gr,{"data-testid":"ChargeStatusIcon_GatewaysContainer",transition:$r,variants:Ll,style:u,isVisible:!!R,children:R&&jsx(p,{title:R,children:jsx(zr,{"data-testid":"ChargeStatusIcon_GatewayIconWrapper",style:{background:c?.background,...m},children:jsx(Ur,{src:c?.gatewayIcon,alt:"gateway-icon","data-testid":"ChargeStatusIcon_GatewayIcon",style:C})})})}),jsx(Gr,{"data-testid":"ChargeStatusIcon_GatewaysContainer",transition:$r,variants:kl,style:u,isVisible:!!A,children:A&&jsx(p,{title:A,children:jsx(zr,{"data-testid":"ChargeStatusIcon_AcquirerIconWrapper",style:{background:c?.background,...m},children:jsx(Ur,{src:c?.acquirerIcon,alt:"acquirer-icon","data-testid":"ChargeStatusIcon_AcquirerIcon",style:C})})})})]}):jsx(p,{title:y??h(He(e)),children:jsx(Ze,{children:O})})})}var pu=()=>{let{t:e}=useTranslation(),t=Sb(useId(),"customer-initiated-icon");return jsx(p,{title:e("merchantInitiated"),children:jsx("img",{id:t,"data-testid":"merchantInitiatedIcon",src:wb,alt:"merchant",style:{width:"16px",height:"16px"}})})};var du={G:"Global",R:"Regional",L:"Local"},Jt=({geographyVariant:e,countryCode:t,isTextShown:o})=>{let n=e?du[e]:void 0,r=n||t?`${n||""} ${n&&t?"-":""} ${t?`Country - ${t}`:""}`:void 0;return o||!t?null:jsx(p,{title:r,children:jsx(b$8,{countryCode:t})})};var uu=({geographyVariant:e,isTextShown:t,deviceCountry:o,deviceType:n,tableMode:r})=>{let s=Sb(useId(),"device-icon-chip");return jsxs(da,{id:s,"data-testid":"DeviceIconChip",sx:{display:"flex",gap:"8px",alignItems:"center",...na(r)&&{height:"18px"}},children:[jsx(Jt,{geographyVariant:e,isTextShown:t,countryCode:o}),jsx(c$1,{type:n,isTextShown:t,tableMode:r})]})};var gu=({isDisputeOpen:e,iconStyles:t})=>{let o=Sb(useId(),"dispute-icon");return jsx(Fe,{id:o,"data-testid":"StatusCell_DisputeStatusIcon",sx:{width:"13.5px",height:"13.5px"},src:e?va:ua$1,alt:"dispute-icon",style:t})};var _l=styled(da,{shouldForwardProp:e=>e!=="tableMode"})(({theme:e,tableMode:t})=>({display:"flex",gap:e.spacing(.5),...na(t)&&{height:"18px"},alignItems:"center"})),Ul=styled("span")(({theme:e})=>({fontSize:"10px",fontWeight:500,color:e.palette.text.primary}));function Kr({countryCode:e,isTextShown:t,cardNumber:o,bankName:n,tableMode:r}){let s=Sb(useId(),"issuer-icon"),i=o?.slice(0,4),a=o?.slice(-4);return jsxs(_l,{id:s,"data-testid":"IssuerIcon",tableMode:r,children:[e&&jsx(Jt,{countryCode:e,isTextShown:t}),jsx(p,{title:`${n?`Issuer - ${n}`:""}`,children:jsx(Ul,{children:`${i||""} ${a||""}`})})]})}var bu=Kr;var fn=styled$1("div")(()=>({fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"center",width:"65px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"4.5px 8px",borderRadius:"24px"}));var Pu=({payoutStatus:e="PENDING",isTextShown:t,payoutTooltip:o,iconStyles:n,isSheetViewShown:r,chipIndex:s=0,selectionProps:i={}})=>{let{t:a}=useTranslation(),l=Sb(useId(),"payout-icon"),p$1=a(He(e)),d=o||p$1;return r?jsx(b$1,{copyTrigger:"click",copyText:p$1,children:p$1}):jsx(p,{title:d,children:t?jsx(fn,{id:l,"data-testid":"StatusCell_PayoutStatusLabel",children:p$1}):jsx(Fe,{id:l,src:Tl[e],alt:"settled-icon","data-testid":"StatusCell_PayoutStatusIcon",style:n})})};var zl=styled(motion.img)(()=>({width:"14px",height:"14px"})),Gl=styled(motion.span)(({theme:e})=>({color:e.palette.common.white,borderRadius:e.spacing(.5),height:"12px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"9.782px",fontWeight:600,backgroundColor:e.palette.secondary.main})),Xr=styled(motion.div)(({theme:e})=>({height:"16px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:`${e.palette.secondary.main}1A`,paddingInline:e.spacing(.5),borderRadius:"56px"})),$l=(e,t,o)=>({start:{x:e*6,transition:{duration:.3,type:"tween",ease:"easeIn"}},animate:{x:o?e*o:e*49,transition:{duration:.3,type:"tween",ease:"easeOut"},boxShadow:t}}),Yl=styled(motion.span)(({isTextShown:e,theme:t})=>({border:`1px solid ${t.palette.divider}`,borderRadius:"12px",backgroundColor:t.palette.background.paper,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",minWidth:e?"auto":"36px",...e&&{border:"none"}})),jl=styled(motion.div,{shouldForwardProp:e=>e!=="order"})(({order:e=0})=>({display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:0,left:0,zIndex:e+6,width:"fit-content",height:"24px",cursor:"pointer",borderRadius:"16px","&:hover":{zIndex:200}})),ql=styled(motion.div,{shouldForwardProp:e=>e!=="statusesCount"})(({statusesCount:e=1})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"relative",minWidth:`${e*6+36}px`,height:"24px",cursor:"pointer",borderRadius:"16px",overflow:"visible"})),Kl=styled("div")(()=>({display:"flex",gap:"4px",justifyContent:"flex-start",alignItems:"center",position:"relative",width:"100%",overflow:"visible"}));var Ru=({isTextShown:e,refundStatus:t="PENDING",refundTooltip:o="",refundCount:n,iconStyles:r,isSheetViewShown:s,chipIndex:i=0,selectionProps:a={}})=>{let{t:l}=useTranslation(),p$1=useTheme(),d=Sb(useId(),"refund-icon"),m=(n||0)>1,u=l(He(t));if(s)return jsxs(b$1,{copyTrigger:"click",copyText:u,children:[u," ",m?`${n}x`:null]});let C=jsxs(Gl,{"data-testid":"StatusCell_RefundsCountBadge",initial:{width:0,opacity:0,padding:"0px"},transition:{animate:{duration:.5},fadeIn:{duration:.2}},variants:{animate:{width:"auto",display:"flex",padding:"1.285px 2.569px"},fadeIn:{transition:{delay:.5},opacity:1}},children:[n,"x"]});return e?jsx(p,{title:jsx("div",{children:jsx("div",{children:o})}),children:jsx(fn,{id:d,"data-testid":"StatusCell_RefundStatusLabel",sx:{color:_r[t].color,backgroundColor:_r[t].backgroundColor,width:"90px"},children:jsxs(Xr,{whileInView:m?["animate","fadeIn"]:void 0,variants:{animate:{boxShadow:p$1.shadows[4],gap:p$1.spacing(.5)}},children:[u," ",m?C:null]})})}):jsx(p,{title:jsx("div",{children:jsx("div",{children:o})}),children:m?jsxs(Xr,{id:d,whileHover:["animate","fadeIn"],animate:"start",variants:{animate:{boxShadow:p$1.shadows[4],gap:p$1.spacing(.5)}},children:[jsx(zl,{src:sk,alt:"multi-refunded-icon","data-testid":"StatusCell_MultiRefundIcon"}),C]}):jsx(Fe,{id:d,src:wl[t],alt:"refunded-icon","data-testid":"StatusCell_RefundStatusIcon",style:r})})},Xl=Ru;var Lu=Xl;var Jl={REFUNDED:qk,PAID_OUT:pk,SETTLED:sk,PENDING:rk,UNKNOWN:zk,TIMEDOUT:xk$1,CANCELLED:ik$1,FAILED:mk,DECLINED:kk,RESTRICTED:uk,IN_PROGRESS:Ck,ACCEPTED:tk};function yn({status:e,refundTooltip:t}){let{t:o}=useTranslation();return jsx(p,{title:jsxs("div",{children:[jsx("div",{children:o(He(e))}),t]}),children:jsx(Ze,{children:jsx("img",{src:Jl[e],alt:"refund-requested"})})})}function Ql({status:e,gatewayTooltip:t,unCapturedTooltip:o,acquirerTooltip:n,errorCode:r,acquirerCode:s,gatewayCode:i,refundTooltip:a}){let{t:l}=useTranslation();return Pn$1?.includes(e??"")?jsx(jr,{chargeStatus:e,gatewayTooltip:t,chargeTooltip:o,acquirerTooltip:n,errorCode:r,acquirerCode:s,gatewayCode:i,iconWrapperStyles:{height:17}}):jsx(yn,{status:e,refundTooltip:a})}var Wu={american_express:"AMEX",debit:"card",credit:"card",unionpay:"UnionPay",jaywan:"JAYWAN"},ie=e=>Wu[e?.toLowerCase()||""]||e;styled$1("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:e.spacing(1)}));var ep=styled$1("img")(()=>({maxWidth:"24px",maxHeight:"16px"}));styled$1(motion.span,{shouldForwardProp:e=>e!=="sourcesCount"})(({theme:e,sourcesCount:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minWidth:`${t*6+36}px `,minHeight:"24px",cursor:"pointer",backgroundColor:e.palette.background.paper,borderRadius:"16px"}));var tp=styled$1("span")(({theme:e})=>({fontSize:"11px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"2px 0",color:e.palette.text.primary})),op=styled$1("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",paddingInline:"8px",textAlign:"center",width:"100%"}));styled$1("span")(({theme:e})=>({position:"absolute",left:0,zIndex:6,border:`1px solid ${e.palette.divider}`,borderRadius:"12px",backgroundColor:e.palette.background.paper,width:"36px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center"}));var np=styled$1("span")(({theme:e})=>({fontSize:"10px",fontWeight:500,color:e.palette.text.primary}));function Te({source:e,isTextShown:t,title:o,width:n,height:r,imgSx:s}){let{t:i}=useTranslation(),a=h$1(e);return jsx(p,{title:o,children:t?jsx(op,{"data-testid":"SourceCell_BadgeTextWrapper",children:jsx(tp,{"data-testid":"SourceCell_TextLabel","data-source":e,children:i(He(e))})}):jsx(ep,{src:a,alt:e,width:n,height:r,onError:l=>{l.currentTarget.src=h$1("card");},sx:s})})}function $u({payment:e,card:t,isTextShown:o,firstIcon:n}){let r=Sb(useId(),"source-icons"),{t:s}=useTranslation(),i=useCallback(()=>{let p=[],d=vb$1(e),m=e?.method,u=e?.scheme;return ie(m)?.toLowerCase()===ie(u)?.toLowerCase()?p.push(ie(m),ie(d)):p.push(ie(m),ie(d),ie(u)),p},[e]),a=useMemo(()=>jsx(Te,{source:n,isTextShown:o,title:s(He(n))},n),[n,o,s]),l=useMemo(()=>i()?.filter(p=>!!p&&p!==n)?.map((p,d,m)=>{let u=e?.wallet===s("sv_wallet")?s("storedValueWallet"):s("passThruWallet"),C=d===m.length-1&&t?.last_four?`${s(He(p))} - ${t?.last_four}`:s(He(p));return jsx(Te,{source:p,isTextShown:o,title:d===0&&p==="Wallet"?u:C},`${p}-${d}`)}),[i,e,t,o,s,n]);return jsxs(Box,{id:r,"data-testid":"SourceIcons",display:"flex",alignItems:"center",gap:.5,children:[n&&a,l,t?.last_four&&jsxs(np,{children:["\xB7\xB7\xB7 ",t?.last_four]})]})}var Zt={PROCESSED:Vg,FAILED:""};var sp=styled$1("span")(({theme:e})=>({fontSize:"11px",padding:"2px 0",color:e.palette.text.primary})),lp=styled$1("img")(()=>({width:"16px",height:"16px"})),pp=styled$1("span")(()=>({width:"24px",height:"24px",borderRadius:"50%",backgroundColor:"transparent",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}));function dp({status:e,isTextShown:t,isSheetViewShown:o}){let n=useTheme$1(),{t:r}=useTranslation(),s=Sb(useId(),"destination-icon"),i=r(He(e));return o&&Zt[e]?jsx(b$1,{copyTrigger:"click",copyText:i,children:i}):t&&Zt[e]?jsx(sp,{id:s,"data-testid":"ChargeStatusIcon_isTextShown","data-status":He(e),sx:{background:"#1F88D00D",color:e==="PROCESSED"?n.palette.info.dark:n.palette.common.black},children:i}):jsx(pp,{id:s,"data-testid":"DestinationIcon",className:"destination-status",children:e&&Zt[e]&&jsx(p,{title:r(He(e)),children:jsx(lp,{src:Zt[e],alt:"destination-icon"})})})}var cp="ListHeader";var mp=styled$1(Box)(({theme:e})=>({backgroundColor:e.palette.background.default,paddingInline:e.spacing(4),paddingBottom:e.spacing(2),paddingTop:e.spacing(2),overflowX:"clip"})),up=styled$1(Box)(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",gap:e.spacing(3),width:"100%",marginBottom:e.spacing(2.25),marginTop:e.spacing(2)})),fp=styled$1(j)(({theme:e})=>({fontSize:"1.75rem",fontWeight:e.v2.typography.fontWeightMedium,lineHeight:"120%"})),Cp=styled$1(Box)(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",gap:e.spacing(3),width:"100%"})),gp=styled$1(Box)(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",gap:e.spacing(1)})),xp=styled$1(Box)(()=>({display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"8px",flexShrink:0}));function In({children:e,component:t="header",...o}){return jsx(mp,{component:t,...o,children:e})}function bn({title:e,toolbar:t}){return jsxs(up,{children:[jsx("span",{children:!!e&&jsx(fp,{children:e})}),t]})}function Sn({status:e,activeFilter:t,beforeStatus:o}){let n=t?.visible??false;return jsxs(gp,{as:"aside",children:[o,jsx(b$7,{value:e?.value,items:e?.options,onValueChange:e?.onChange&&(r=>e.onChange?.(r)),keepInactive:n,itemSx:e?.buttonSx}),jsx(d$1,{value:t?.ids,visible:n,label:t?.label,dismissible:t?.dismissible,isActive:t?.isActive??true,onDismiss:t?.onDismiss})]})}var At=styled$1(Box)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",borderRadius:"4px",background:e.palette.common.white,padding:"8px",border:"1px solid",borderColor:e.palette.divider,gap:8,height:32,cursor:"pointer","&:hover":{border:"1px solid",borderColor:e.palette.info.dark,boxShadow:e.shadows[7]}})),wn=styled$1(Box)(({theme:e})=>({background:e.palette.common.white,display:"flex",gap:e.spacing(1),alignItems:"center",color:e.palette.text.primary,fontSize:"11px",fontWeight:e.typography.fontWeightRegular,textTransform:"capitalize",position:"relative",transition:"0.5s",paddingRight:0,marginRight:0,"&:after":{content:'""',position:"absolute",left:-8,right:0,width:"100%",height:"100%",boxShadow:e.shadows[11],borderRadius:e.spacing(.5),paddingInlineStart:e.spacing(1),paddingTop:"9px",paddingBottom:"9px",paddingInlineEnd:"9px",zIndex:-1},"& > *:last-child":{marginRight:0,paddingRight:"6px"}})),Pt=styled$1(Box)(({theme:e})=>({background:e.palette.common.white,borderRadius:e.spacing(1),boxShadow:e.shadows[5],border:"1px solid",borderColor:e.palette.divider,zIndex:5,fontSize:"11px",width:192})),vt=styled$1(Box)(()=>({minWidth:160,position:"relative",marginRight:0,paddingRight:0})),Et=styled$1(Box,{shouldForwardProp:e=>e!=="addColumnViewEl"})(({theme:e})=>({padding:e.spacing(1),paddingInlineEnd:2,borderBottom:"1px solid",borderColor:e.palette.divider,display:"flex",alignItems:"center",height:32,cursor:"pointer",img:{height:12},".check-icon":{height:"auto",marginInlineEnd:e.spacing(1)},"&:hover":{color:e.palette.info.dark,fontWeight:e.typography.fontWeightBold},"&.add-column":{justifyContent:"space-between",paddingInlineEnd:e.spacing(1),position:"relative",border:"none",zIndex:5,borderBottom:"1px solid",borderColor:e.palette.divider,borderTopRightRadius:e.spacing(1),borderTopLeftRadius:e.spacing(1),"&:hover":{boxShadow:e.shadows[6]}}})),Vt=styled$1(Box)(()=>({width:15})),to=styled$1(Box)(()=>({width:16})),bp=styled$1(Box)(({theme:e})=>({display:"flex",flexDirection:"column",height:"calc(100% - 32px)",backgroundColor:e.palette.background.paper,position:"relative"})),Sp=styled$1(Box)(()=>({flex:1,overflowY:"auto",paddingLeft:16,paddingRight:16,paddingBottom:64})),wp=styled$1(Box)(()=>({padding:"24px 0",display:"flex",justifyContent:"space-between",alignItems:"center"})),Tp=styled$1(Box)(({theme:e})=>({border:"1px solid",borderColor:e.palette.divider,borderRadius:"8px",overflow:"hidden",display:"flex",flexDirection:"column",flex:1,minHeight:0})),Ap=styled$1(Box)(({theme:e})=>({display:"flex",alignItems:"center",padding:"12px",borderBottom:"1px solid",borderColor:e.palette.divider,backgroundColor:e.palette.grey[50],cursor:"pointer","&:hover":{backgroundColor:e.palette.grey[100]}})),Pp=styled$1(Box,{shouldForwardProp:e=>e!=="isHovered"&&e!=="isDate"})(({theme:e,isHovered:t,isDate:o})=>({display:"flex",alignItems:"center",padding:"12px",borderBottom:"1px solid",borderColor:e.palette.divider,backgroundColor:t?e.palette.action.hover:e.palette.background.paper,cursor:o?"default":"grab","&:hover":{backgroundColor:o?e.palette.background.paper:e.palette.action.hover},"&:last-child":{borderBottom:"none"}})),ei=styled$1(Box)(()=>({width:20,height:20,marginRight:8,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0})),ti=styled$1(Box)(()=>({display:"flex",alignItems:"center",justifyContent:"center",padding:0,width:14,height:14,minWidth:14,minHeight:14,flexShrink:0})),vp=styled$1(Box)(({theme:e})=>({position:"absolute",bottom:0,left:0,right:0,height:35,borderTop:"1px solid",borderColor:e.palette.divider,background:"#F6F8FACC",backdropFilter:"blur(24px)"})),Ep=styled$1(Box)(({theme:e})=>({position:"absolute",bottom:12,right:16,padding:6,backgroundColor:e.palette.background.paper,border:"1px solid #9F9F9F29",borderRadius:"4px"})),Tn=styled$1(Paper)(()=>({paddingTop:4,paddingBottom:4,minWidth:180,boxShadow:"0 4px 12px rgba(0,0,0,0.15)",borderRadius:"8px"}));styled$1(Box)(()=>({display:"flex",alignItems:"center",padding:"8px 12px",cursor:"pointer"}));var Vp=styled$1(Button)(({theme:e})=>({color:e.palette.error.main,textTransform:"none",fontSize:10,fontWeight:500,borderRadius:"4px",border:`1px solid ${e.palette.divider}`,paddingLeft:8,paddingRight:8,paddingTop:4,paddingBottom:4,"&:hover":{backgroundColor:"transparent"}})),Mp=styled$1(Button)(({theme:e})=>({fontSize:9,fontWeight:600,borderRadius:4,paddingLeft:20,paddingRight:20,paddingTop:8,paddingBottom:8,height:28,textTransform:"none",backgroundColor:e.palette.info.dark,"&:hover":{backgroundColor:e.palette.info.dark},"&.Mui-disabled":{backgroundColor:e.palette.grey[300],color:e.palette.grey[500]}}));styled$1(TextField)(({theme:e})=>({"& .MuiFilledInput-root":{borderRadius:"8px",backgroundColor:e.palette.background.paper,border:"1px solid",borderColor:e.palette.divider,"&:hover":{backgroundColor:e.palette.background.paper},"&.Mui-focused":{backgroundColor:e.palette.background.paper},"&::before, &::after":{display:"none"}}}));var oi={display:"flex",alignItems:"center",justifyContent:"center",padding:0,width:14,height:14,minWidth:14,minHeight:14,flexShrink:0,"& .MuiSvgIcon-root":{width:16,height:16},"& img":{width:14,height:14}},Rp=styled$1(motion.div)(({theme:e})=>({position:"fixed",display:"flex",flexDirection:"column",maxHeight:"calc(100vh - 46px)",backgroundColor:e.palette.background.paper,boxShadow:"0px 8px 32px rgba(0, 0, 0, 0.15)",borderRadius:12,overflow:"hidden",boxSizing:"border-box"})),Lp=styled$1(Box)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",paddingLeft:e.spacing(1.5),paddingRight:e.spacing(1.5),paddingTop:e.spacing(1),paddingBottom:e.spacing(1),cursor:"pointer","&:hover":{backgroundColor:e.palette.action.hover}})),kp={p:0,width:14,height:14,minWidth:14,minHeight:14,"& .MuiSvgIcon-root":{width:16,height:16}},Dp=styled$1(Box)(()=>({minWidth:200,display:"flex",flexDirection:"column",maxHeight:"80vh",overflow:"hidden"})),Np=styled$1(Box)(()=>({flex:1,overflowY:"auto",paddingLeft:6,paddingRight:6,minHeight:0})),Bp=styled$1(Box)(({theme:e})=>({display:"flex",justifyContent:"flex-end",gap:12,paddingTop:8,paddingBottom:8,paddingLeft:12,paddingRight:12,flexShrink:0,borderTop:"1px solid",borderColor:e.palette.divider})),Wp={fontSize:11,fontWeight:400,textTransform:"none",color:"text.primary",minWidth:80,height:38,borderRadius:"8px",border:"1px solid",borderColor:"divider"},Fp=e=>({fontSize:11,fontWeight:500,textTransform:"none",backgroundColor:"info.dark",minWidth:80,height:38,borderRadius:"8px",boxShadow:"none","&:hover":{backgroundColor:e.palette.info.dark}}),Op=styled$1("div",{shouldForwardProp:e=>e!=="sandboxMode"&&e!=="maximized"&&e!=="isDragging"})(({maximized:e,isDragging:t})=>({...!e&&{borderTopRightRadius:12,borderTopLeftRadius:12},...t&&{cursor:"move"},margin:0,position:"sticky",top:0,left:0,right:0,zIndex:1e3,background:"#eaeaea",backdropFilter:"blur(32px)"}));function ri(e,t){let[o,n]=useState(null),[r,s]=useState(null),i=useCallback(()=>{n(null),s(null);},[]),a=useCallback((p,d)=>{n(p.currentTarget),s(d);},[]),l=useCallback(()=>{r&&i();},[r,i]);return useEffect(()=>{e||(i(),t?.());},[e,t,i]),{subMenuAnchorEl:o,openSubMenuName:r,handleSubMenuClose:i,handleSubMenuOpen:a,handleMenuScroll:l}}function rf(e){let t=e;for(;t&&t!==document.body;){let n=window.getComputedStyle(t).overflowY;if((n==="auto"||n==="scroll")&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement;}return document.documentElement}function ii(e){let t=useRef(false),o=useRef(null),n=useRef({x:0,y:0}),r=useRef(1),s=useRef(null),i=useRef(0),a=useRef(false),l=useCallback(()=>{o.current!==null&&(cancelAnimationFrame(o.current),o.current=null);},[]),p=useCallback((g,b)=>{a.current=true,window.dispatchEvent(new PointerEvent("pointermove",{bubbles:true,cancelable:true,pointerId:r.current,clientX:g,clientY:b+i.current,pointerType:"mouse",isPrimary:true})),a.current=false;},[]),d=useCallback(()=>{if(o.current!==null)return;let g=()=>{let b=s.current;if(!t.current||!b)return;let S=b.getBoundingClientRect(),{x:T,y:c}=n.current,x=c-S.top,I=S.bottom-c;if(x>0&&x<60){let h=(60-x)/60*15;b.scrollTop-=h,i.current-=h,p(T,c);}else if(I>0&&I<60){let h=(60-I)/60*15;b.scrollTop+=h,i.current+=h,p(T,c);}o.current=requestAnimationFrame(g);};o.current=requestAnimationFrame(g);},[p]),m=useCallback(g=>{a.current||(n.current={x:g.clientX,y:g.clientY},r.current=g.pointerId,t.current&&i.current!==0&&(g.stopImmediatePropagation(),p(g.clientX,g.clientY)));},[p]),u=useCallback(()=>{s.current=rf(e.current),i.current=0,t.current=true,window.addEventListener("pointermove",m,{capture:true}),d();},[e,m,d]),C=useCallback(()=>{t.current=false,i.current=0,l(),window.removeEventListener("pointermove",m,{capture:true});},[m,l]);return useEffect(()=>()=>{t.current=false,l(),window.removeEventListener("pointermove",m,{capture:true});},[m,l]),{onDragStart:u,onDragEnd:C}}function si({columns:e,setTableViews:t}){let o=useCallback(s=>{let i=s.map(a=>e.find(l=>l.name===a)).filter(a=>!!a);t?.(i);},[e,t]),n=useCallback(s=>{let i=e.map(a=>{if(a.name!==s)return a;let l=a.menuItems&&a.menuItems.length>0,p=!a.selected;if(!l)return {...a,selected:p};let d=a.menuItems?.map(m=>({...m,selected:p}));return {...a,selected:p,menuItems:d}});t?.(i);},[e,t]),r=useCallback((s,i)=>{let a=e.map(l=>{if(l.name!==s)return l;let p=l.menuItems?.map(m=>m.name===i?{...m,selected:!m.selected}:m),d=p?.some(m=>m.selected)??false;return {...l,menuItems:p,selected:d}});t?.(a);},[e,t]);return {reorderColumns:o,toggleColumnSelection:n,toggleSubmenuItem:r}}function pi({column:e,index:t,openSubMenuName:o,toggleColumnSelection:n,handleSubMenuOpen:r,handleSubMenuClose:s}){let i=e.menuItems&&e.menuItems.length>0,a=o===e.name,l=t===0,p=useMemo(()=>!!(e.selected&&e.menuItems?.some(C=>C.selected)&&!e.menuItems?.every(C=>C.selected)),[e.selected,e.menuItems]),d=useCallback(()=>{n(e.name);},[n,e.name]),m=useCallback(C=>{i&&r(C,e.name);},[i,r,e.name]),u=useCallback(()=>{i||s();},[i,s]);return {isIndeterminate:p,hasSubmenuItems:i,isSubmenuOpen:a,isFirstItem:l,handleColumnClick:d,handleMouseEnter:m,handleMouseLeave:u}}var M=(e="")=>e.toLowerCase()==="date",ye=(e="")=>e.toLowerCase()==="index",An=(e,t="en")=>{let o=[];return e.forEach(n=>{n.columns.forEach(r=>{let s=r.name.find(a=>a.lang===t)?.text||r.name[0]?.text||r.code,i=r.fields?.length?r.fields.map(a=>({name:a.code,label:a.name?.find(l=>l.lang===t||l.lang==="")?.text||a.code,selected:a.default??false})):void 0;o.push({name:r.code,label:s,selected:M(r.code)?true:r.default??false,menuItems:i?.length?i:void 0});});}),o},sf=(e,t)=>{if(!t?.length)return [];let o=e==="sheet"?"sheet":"advanced",n=t.find(r=>r.code.toLowerCase()===o);return n?An([n]):[]},di=(e,t,o="en")=>{let n=e.map((s,i)=>{let a=s.menuItems?.map(p=>({code:p.name,name:[{text:typeof p.label=="string"?p.label:p.name,lang:o||""}],default:p.selected??false})),l=typeof s.label=="string"?s.label:s.name;return {code:s.name,name:[{text:l,lang:o}],order:i+1,default:s.selected??false,...a?.length?{fields:a}:{}}});return {code:t==="sheet"?"Sheet":"Advanced",columns:n}},lf=e=>{let t=new Map;return e.forEach(o=>{o.layout.forEach(n=>{let r=t.get(n.code);if(r){let s=new Set(r.columns.map(i=>i.code));n.columns.forEach(i=>{s.has(i.code)||r.columns.push(i);});}else t.set(n.code,{...n,columns:[...n.columns]});});}),Array.from(t.values())};var pf=(e,t,o=false)=>({label:e,id:`custom_${Date.now()}`,columns:t.map(n=>n.name),submenu:t,isCustom:true,default:o}),df=(e,t)=>e.map(o=>({...o,default:o.id===t})),Pn=e=>e.role??(e.default?"default":void 0),it=e=>!!e.role||!!e.default,he=e=>!it(e),_p=e=>he(e),no=e=>e.filter(_p).length,ci=e=>e.filter(he).length,vn=(e,t="sheet",o="en")=>{let n=[],r=[],s;e.forEach(a=>{let l=t==="sheet"?"sheet":"advanced",p=a.layout.find(w=>w.code.toLowerCase()===l),d=p?An([p],o):[],m=a.id,u=Oa,C=Pa,g=d.some(w=>M(w.name))?d:[C,...d],b=g.findIndex(w=>M(w.name)),T=(b>0?[g[b],...g.filter(w=>!M(w.name))]:g).filter(w=>!ye(w.name)),c=[u,...T],x=Pn(a),I=it(a),h={id:m,label:a.name,role:x,isCustom:!I,selected:a.selected,default:!!a.default,columns:c.map(w=>w.name),submenu:c};I?(a.default&&!s&&(s=c),r.push(h)):n.push(h);});let i=r.find(a=>a.default)??r[0];return {customViews:n,defaultTemplates:r,defaultTemplateColumns:s,defaultTemplate:i}},mi=(e,t="sheet",o="en")=>{let{customViews:n,defaultTemplates:r,defaultTemplate:s}=vn(e,t,o),i=[...r,...n];return {customViews:n,defaultTemplates:r,defaultTemplate:s,allTemplates:i}},En=(e,t)=>{let o=[];he(e)?o=e.submenu??[]:o=e.submenu?.length?e.submenu:t;let n=Oa;if(!o.some(m=>M(m.name)))return [n,Pa,...o];let s=o.findIndex(m=>M(m.name)),i=s>=0?o[s]:Pa,a=o.filter(m=>!M(m.name)&&!ye(m.name)),l=[i,...a],p=l.some(m=>ye(m.name)),d=l.findIndex(m=>ye(m.name));if(p&&d>0){let m=l[d],u=l.filter(C=>!ye(C.name));return [m,...u]}return p&&d===0?l:[n,...l]},cf=(e,t)=>En(e,t).length>0,Rt=e=>e.filter(t=>!ye(t.name));var ce=e=>e.toLowerCase(),Up=e=>new Map(e.filter(t=>!M(t.name)).map(t=>[ce(t.name),t])),zp=(e,t)=>e.some(o=>ce(o)===ce(t)),ui=(e,t)=>({...e,selected:t.selected??false,menuItems:e.menuItems?.map(o=>{let n=t.menuItems?.find(r=>ce(r.name)===ce(o.name));return {...o,selected:n?.selected??false}})}),ro=e=>{if(!e.menuItems?.length)return {checked:e.selected??false,indeterminate:false};let t=e.menuItems.filter(o=>o.selected).length;return {checked:t>0,indeterminate:t>0&&t<e.menuItems.length}},Ci=(e,t)=>e.map(o=>{if(o.name!==t)return o;let n=!o.selected,r=o.menuItems?.map(s=>({...s,selected:n}));return {...o,selected:n,menuItems:r}}),io=(e,t,o)=>e.map(n=>{if(n.name!==t)return n;let r=n.menuItems?.map(i=>i.name===o?{...i,selected:!i.selected}:i),s=r?.some(i=>i.selected)??false;return {...n,menuItems:r,selected:s}}),gi=(e,t)=>e.map(o=>{if(M(o.name))return o;let n=o.menuItems?.map(r=>({...r,selected:t}));return {...o,selected:t,menuItems:n}}),xi=e=>{let t=e.filter(o=>!M(o.name));return t.length===0?false:t.every(o=>o.menuItems?.length?o.menuItems.every(n=>n.selected):o.selected)},yi=(e,t)=>e.filter(r=>!M(r.name)).some(r=>r.menuItems?.length?r.menuItems.some(s=>s.selected):r.selected)&&!t,hi=(e,t)=>e.trim().length>0&&e.length<=t,ee=e=>e.map(t=>({...t,selected:t.selected??false,menuItems:t.menuItems?.map(o=>({...o,selected:o.selected??false}))})),Ii=(e,t)=>e.map(o=>{if(o.name!==t)return o;if(M(o.name))return {...o,selected:true};let n=!o.selected,r=o.menuItems?.map(s=>({...s,selected:n}));return {...o,selected:n,menuItems:r}}),bi=(e,t)=>e.map(o=>{if(M(o.name))return {...o,selected:true};let n=o.menuItems?.map(r=>({...r,selected:t}));return {...o,selected:t,menuItems:n}}),Si=e=>e.length===0?false:e.every(t=>t.menuItems?.length?t.menuItems.every(o=>o.selected):t.selected),wi=(e,t)=>e.length===0?false:e.some(n=>n.menuItems?.length?n.menuItems.some(r=>r.selected):n.selected)&&!t,fi=e=>e.map(t=>({...t,selected:t.selected??false,menuItems:t.menuItems?.map(o=>({...o,selected:o.selected??false}))})),ao=(e,t)=>{if(e.length!==t.length)return false;let o=fi(e),n=fi(t);for(let r=0;r<o.length;r++){let s=o[r],i=n[r];if(s.name!==i.name||s.selected!==i.selected)return false;if(s.menuItems&&i.menuItems){if(s.menuItems.length!==i.menuItems.length)return false;for(let a=0;a<s.menuItems.length;a++)if(s.menuItems[a].name!==i.menuItems[a].name||s.menuItems[a].selected!==i.menuItems[a].selected)return false}else if(s.menuItems||i.menuItems)return false}return true},mf=e=>e.filter(t=>!M(t.name)).map(t=>({...t,selected:t.selected??false,menuItems:t.menuItems?.map(o=>({...o,selected:o.selected??false}))})),Ti=(e,t)=>{let o=e.filter(s=>!M(s.name)).map(s=>s.name),n=Up(t),r=[];for(let s of o){let i=e.find(l=>ce(l.name)===ce(s)),a=n.get(ce(s));a?r.push(i?ui(a,i):{...a,selected:false,menuItems:a.menuItems?.map(l=>({...l,selected:false}))}):i&&r.push(i);}for(let[,s]of n)if(!zp(o,s.name)){let i=e.find(a=>ce(a.name)===ce(s.name));r.push(i?ui(s,i):{...s,selected:false,menuItems:s.menuItems?.map(a=>({...a,selected:false}))});}return r},Ai=e=>e.filter(t=>!M(t.name)).map(t=>({...t,selected:false,menuItems:t.menuItems?.map(o=>({...o,selected:false}))})),Pi=(e,t)=>{let o=Up(e),n=t.filter(s=>!M(s.name)).map(s=>s.name),r=[];for(let s of n){let i=t.find(l=>ce(l.name)===ce(s)),a=o.get(ce(s));a&&i?r.push(ui(a,i)):a&&r.push({...a,selected:false,menuItems:a.menuItems?.map(l=>({...l,selected:false}))});}for(let[,s]of o)zp(n,s.name)||r.push({...s,selected:false,menuItems:s.menuItems?.map(i=>({...i,selected:false}))});return r};function Gp(e,t,o="en"){if(!e?.layout?.length)return [];let n=na(t)?"sheet":"advanced",r=e.layout.find(a=>a.code?.toLowerCase()===n);if(!r?.columns?.length)return [];let s=r.columns.map(a=>{let l=a.name?.find(d=>d.lang===o)?.text||a.name?.[0]?.text||a.code,p=a.fields?.length?a.fields.map(d=>({name:d.code,label:d.name?.find(m=>m.lang===o||m.lang==="")?.text||d.code,selected:d.default??false})):void 0;return {name:a.code,label:l,selected:M(a.code)?true:a.default??false,...p&&p.length>0&&{menuItems:p}}});return s.some(a=>M(a.name))?s:[{name:Pa.name,label:Pa.label,selected:true},...s]}var Vn=e=>{let t=e?.order;if(t==null)return 999;let o=Number(t);return Number.isFinite(o)?o:999};function Mn(e){return {...e,layout:e.layout?.map(t=>({...t,columns:[...t.columns??[]]}))??[]}}function uf(e,t){let o=e.layout?.map(r=>({...r,columns:[...r.columns??[]].sort((s,i)=>Vn(s)-Vn(i))})),n=Gp(e,t);return {id:e.id,label:e.name,layout:o,submenu:n,columns:n.map(r=>r.name),role:Pn(e),isCustom:he(e),default:e.default}}var Rn=(e,t)=>{if(!e)return [];let o=e;if(e.layout&&Array.isArray(e.layout)&&e.layout.length>0){let n=ma$1(t)?"Advanced":"Sheet",r=e.layout.find(s=>{let i=s.code?.trim();return i===n||i?.toLowerCase()===n.toLowerCase()})||e.layout.find(s=>{let i=s.code?.trim()?.toLowerCase();return ma$1(t)?i==="default"||i==="advanced":i==="sheet"||i==="sheets"});if(r&&r.columns&&r.columns.length>0)return r.columns.map(i=>{let l=!!i.fields?.length&&i.fields.some(d=>d.default??false),p=(i.default??false)||l;return {code:i.code,name:i.name&&i.name.length>0?i.name:[{text:i.code,lang:"en"}],selected:p,sort_order:Vn(i),fields:i.fields?.map(d=>({code:d.code.toLowerCase(),type:"single",parameters:[{parameter:d.code.toLowerCase(),code:d.code.toLowerCase(),selected:d.default??false}]}))||[{code:i.code.toLowerCase(),type:"single",parameters:[{parameter:i.code.toLowerCase(),code:i.code.toLowerCase(),selected:i.default??false}]}]}}).sort((i,a)=>(i.sort_order??999)-(a.sort_order??999))}return o.submenu&&Array.isArray(o.submenu)&&o.submenu.length>0?o.submenu.map((r,s)=>{let i=r.name.toLowerCase(),a;r.menuItems&&r.menuItems.length>0?a=r.menuItems.filter(m=>m.selected):a=[{name:i,label:r.label||r.name,selected:true}];let l=a.length>0?a.map(m=>({parameter:m.name.toLowerCase(),code:m.name.toLowerCase()})):[{parameter:i,code:i}],p=a.length>1?"combined":"single";return {code:r.name,name:[{text:r.label||r.name,lang:"en"}],selected:r.selected,sort_order:s+1,fields:[{code:i,type:p,parameters:l}]}}):[]},ff=(e,t)=>{if(!e||!Array.isArray(e)||e.length===0)return [];let o=e?.find(n=>n.default)||e[0];return o?Rn(o,t):[]};function vi(e,t,o){let n=e.findIndex(t);if(n===-1)return e;let r=[...e];return r[n]=o,r}function Ei(e,t){let o=t?.name??e?.name??"",n=t?.layout,r=Array.isArray(n)?n[0]:n??null,i=[...e?.layout??[]];if(r){let a=r.code?.toLowerCase(),l=i.findIndex(p=>p.code?.toLowerCase()===a);l>=0?i[l]=r:i.push(r);}return {name:o,layout:i}}var Vi=e=>{let t=e;return t?!!(t.closest('[role="checkbox"]')||t.closest('input[type="checkbox"]')||t.closest('[class*="CheckboxWrapper"]')):false};var $p=e=>[...Ra[e]??Ra.default],Cf=e=>Sa[e]??Sa.default,gf=(e,t)=>({code:e,name:[{text:Qa[e],lang:"en"}],selected:true,sort_order:t}),xf=(e,t)=>e?.layout?.some(o=>$p(t).includes(o.code?.toLowerCase()??""))??false,Mi=(e,t,o)=>{let n=Sa[t],r=o?.layout?.find(i=>i.code?.toLowerCase()===n.toLowerCase()),s=r?{...r,columns:r.columns?.map(i=>({...i,name:i.name?.map(a=>({...a})),fields:i.fields?.map(a=>({...a,name:a.name?.map(l=>({...l}))}))}))??[]}:{code:n,columns:[]};return [e,s]};var Ln=({tableMode:e,templates:t,lang:o="en",mainDefaultTemplate:n})=>useMemo(()=>{let{customViews:r,defaultTemplates:s,defaultTemplate:i,allTemplates:a}=mi(t,e,o),p=(n?vn([n],e,o).defaultTemplate:void 0)??i,d=p?.submenu?structuredClone(p.submenu):[],m=no(t);return {customViews:r,defaultTemplates:s,defaultTemplate:i,allTemplates:a,defaultColumns:d,customTemplateCount:m}},[t,e,o,n]);var kn=({mode:e,onViewChange:t,onCreateCustomView:o,onEditCustomView:n,onDeleteCustomView:r,defaultColumns:s,defaultTemplate:i,allTemplates:a,customTemplateCount:l})=>{let[p,d]=useState(null),[m,u]=useState(false),[C,g]=useState(null),[b,S]=useState(false),[T,c]=useState(null),[x,I]=useState(null),[h,w]=useState(),[y,A]=useState(a.find(P=>P.selected)?.id??i?.id),R=useRef(a.find(P=>P.selected)?.id??i?.id),O=useCallback(P=>{let V=P.submenu?.filter(G=>G.selected)||[];return {...P,submenu:V,columns:V.map(G=>G.name)}},[]),Y=useCallback(P=>{R.current=P?.id,t?.(P?O(P):void 0);},[t,O]),L=useMemo(()=>y?a.find(P=>P.id===y):i,[a,y,i]),k=useMemo(()=>ee(L?.submenu||s),[L,s]),D=useMemo(()=>({id:y||i?.id||"default",label:L?.label||i?.label||"Default"}),[L,y,i?.id,i?.label]);useEffect(()=>{let P=a.find(pe=>pe.selected)?.id,V=i?.id,G=y?a.some(pe=>pe.id===y):false;if(!(y&&!G&&P!==y)){if(P&&P!==y){A(P);return}if(!y){A(P??V);return}G||A(P??V);}},[a,i?.id,y]),useEffect(()=>{!y||!L||L.id===y&&R.current!==y&&(R.current=y,t?.(O(L)));},[y,L,t,O]);let z=useCallback(P=>{d(V=>V?null:P.currentTarget);},[]),ae=useCallback(()=>{d(null);},[]),ge=useCallback((P,V)=>{A(V?.id),Y(V),ae();},[ae,Y]),le=useCallback((P=false,V,G,pe)=>{l!=null&&l>=3||(g(null),S(P),c(V??null),I(G?.length?G:null),w(pe),u(true),d(null));},[l]),N=useCallback(P=>{let V=a.find(G=>G.id===P.id)??P;g(V),S(true),c(null),I(V.submenu?.length?ee(V.submenu):null),u(true);},[a]),Ee=useCallback(()=>{u(false),g(null),S(false),c(null),I(null),w(void 0);},[]);useEffect(()=>{if(!m||!C?.id)return;let P=a.find(V=>V.id===C.id);P&&(g(P),I(P.submenu?.length?ee(P.submenu):null));},[m,C?.id,a]);let mr=useCallback(async P=>{if(C){let V=C.id;await n?.(V,P),A(V);let G=a.find(pe=>pe.id===V)??C;Y(G),ae();}else {let V=await o?.({...P,sourceTemplateId:h});if(V?.id){A(V.id);let G=a.find(pe=>pe.id===V.id);Y(G??{id:V.id,label:V.name,isCustom:true,columns:P.selectedColumns.map(pe=>pe.name),submenu:P.selectedColumns});}}},[C,n,o,ae,a,Y,h]),ur=useCallback(async P=>{let V=a.find(G=>G.id===P);await r?.(V?.id??P),y===(V?.id??P)&&A(i?.id);},[a,r,y,i]);return {anchorEl:p,isCreateDialogOpen:m,editingView:C,selectedViewInfo:D,shouldUseCurrentState:b,selectedView:L,currentViewColumns:k,initialColumnsForCreate:T,availableColumnsForCreate:x,handleViewButtonClick:z,handleCloseViewDropdown:ae,handleSelectedViewInfo:ge,handleOpenCreateDialog:le,handleOpenEditDialog:N,handleCloseCreateDialog:Ee,handleSaveView:mr,handleDeleteView:ur}};var Lt=()=>{let[e,t]=useState(null),[o,n]=useState(null),r=useRef(null),s=useCallback((p,d)=>{r.current&&(clearTimeout(r.current),r.current=null),t(p),n(d);},[]),i=useCallback(()=>{r.current=setTimeout(()=>{t(null),n(null);},0);},[]),a=useCallback(()=>{r.current&&(clearTimeout(r.current),r.current=null);},[]),l=useCallback(()=>{r.current&&(clearTimeout(r.current),r.current=null),t(null),n(null);},[]);return {hoveredColumn:e,anchorEl:o,openSubmenu:s,closeSubmenu:i,cancelClose:a,forceClose:l}};var qp=()=>{let[e,t]=useState(null),[o,n]=useState(null),r=useRef(null),s=useCallback((l,p)=>{t(l),n(p);},[]),i=useCallback(()=>{t(null),n(null);},[]),a=useCallback(()=>{r.current&&(clearTimeout(r.current),r.current=null);},[]);return {hoveredNestedColumn:e,nestedSubmenuAnchorEl:o,openNestedSubmenu:s,closeNestedSubmenu:i,cancelNestedClose:a}};var Ni=({open:e,availableColumns:t,defaultColumns:o,editingView:n,tableViews:r=[]})=>{let[s,i]=useState(()=>n?.label||""),[a,l]=useState([]),p=useRef(false),d=useRef([]),m=useRef(n?.label?.trim()||""),{hoveredColumn:u,anchorEl:C,openSubmenu:g,closeSubmenu:b,cancelClose:S}=Lt(),T=Oa,c=Pa;useEffect(()=>{if(!e){p.current=false;return}if(!p.current&&e)if(n){let D=n.submenu&&n.submenu.length>0?n.submenu:o,z=t.length>0?t:D,ge=Ti(D,z).filter(Ee=>!ye(Ee.name)&&!M(Ee.name)),le=[T,c,...ge];l(le),d.current=ee(le);let N=n.label?.trim()||"";m.current=N,i(N);}else {let D=t.length>0?t:r,ae=(r&&r.length>0?Pi(D,r):Ai(D)).filter(le=>!ye(le.name)&&!M(le.name)),ge=[T,c,...ae];l(ge),d.current=ee(ge),m.current="",i("");}else if(e&&n){let D=n.label?.trim()||"";i(D);}p.current=e;},[e,n?.id,n?.label,n?.submenu,t,o,r,T,c]);let x=useMemo(()=>a.map(k=>k.name),[a]),I=useMemo(()=>xi(a),[a]),h=useMemo(()=>yi(a,I),[a,I]),w=useMemo(()=>hi(s,20),[s]),y=useMemo(()=>{let k=s.trim()!==m.current,D=d.current.length>0&&!ao(a,d.current);return k||D},[s,a]);return {templateName:s,setTemplateName:i,selectedColumns:a,columnNames:x,allSelected:I,someSelected:h,isNameValid:w,hasChanges:y,hoveredColumn:u,anchorEl:C,openSubmenu:g,closeSubmenu:b,cancelClose:S,handleReorder:k=>{let D=k.filter(z=>!M(z)).flatMap(z=>a.find(ae=>ae.name===z)??[]);l([T,c,...D]);},handleColumnToggle:k=>{l(D=>Ci(D,k));},handleSubItemToggle:(k,D)=>{l(z=>io(z,k,D));},handleSelectAll:()=>{l(k=>gi(k,!I));},handleResetToDefault:()=>{d.current.length>0&&l(ee(d.current));}}};function Wi({templates:e,setTemplates:t,createTemplate:o,updateTemplate:n,deleteTemplate:r,tableMode:s,isTemplatesLoading:i,lang:a="en",mainDefaultTemplate:l}){let p=useMemo(()=>l??e.find(c=>c.default),[e,l]),d=e.find(c=>c.selected)?.id??p?.id,m=useCallback(c=>{t(x=>x.find(h=>h.selected)?.id===c?x:x.map(h=>({...h,selected:c?h.id===c:false})));},[t]),u=useCallback(async({name:c,layout:x,sourceTemplateId:I})=>{if(no(e)>=3)return;let h=e.find(R=>R.id===I)??e.find(R=>R.id===d)??p,w=Mi(x,s,h),y=await o({name:c,layout:w}),A=Mn(y);return t(R=>[...R.filter(Y=>Y.id!==A.id).map(Y=>({...Y,selected:false})),{...A,selected:true}]),{id:y.id,name:y.name??""}},[o,t,s,p,e,d]),C=useCallback(async c=>{await r(c),t(x=>x.filter(I=>I.id!==c)),m(d===c?p?.id:d);},[r,t,p,m]),g=useCallback(async(c,x)=>{let I=e.find(R=>R.id===c),{name:h,layout:w}=Ei(I,x),y=await n(c,{name:h,layout:w}),A=Mn(y);t(R=>vi(R,O=>O.id===c,A)),m(A.id);},[e,n,t,m]),b=useMemo(()=>({templates:e,onCreateCustomView:u,onEditCustomView:g,onDeleteCustomView:C,isLoading:i,mainDefaultTemplate:l}),[e,u,g,C,i,l]),S=useCallback(c=>{if(!p){m(void 0);return}if(!c?.id){m(p.id);return}if(it(c)){m(c.id);return}let x=e.find(I=>I.id===c.id);if(x){m(x.id);return}he(c)&&m(c.id);},[e,p,m]),T=useMemo(()=>{let c=e.find(I=>d?I.id===d:false)??p;if(!c)return [];let x=Rn(c,s);return x.length>0?x:[]},[s,e,d,p]);return {customViews:b,onViewChange:S,columnsView:T,selectedViewId:d}}function Pf({column:e,index:t,openSubMenuName:o,subMenuAnchorEl:n,toggleColumnSelection:r,toggleSubmenuItem:s,handleSubMenuOpen:i,handleSubMenuClose:a}){let{t:l}=useTranslation(),p=useTheme(),{isIndeterminate:d,hasSubmenuItems:m,isSubmenuOpen:u,isFirstItem:C,handleColumnClick:g,handleMouseEnter:b,handleMouseLeave:S}=pi({column:e,index:t,openSubMenuName:o,toggleColumnSelection:r,handleSubMenuOpen:i,handleSubMenuClose:a}),T=c=>c?l(c)??gc(c):"";return jsxs(da,{sx:{borderTop:`1px solid ${p.palette.divider}`,...C&&{borderTop:"none",height:33}},children:[jsxs(V,{isIndeterminate:d,isSelected:e.selected,onMouseEnter:b,onMouseLeave:S,onClick:g,children:[jsx(da,{sx:{flex:1},children:T(e.label)}),m&&jsx("img",{src:xb$1,className:"arrow-icon",alt:"arrow"})]}),m&&jsx(R,{open:u,anchorEl:n,placement:"right-start",onMouseEnter:()=>{},onMouseLeave:a,children:e.menuItems?.map(c=>jsx(V,{isSelected:e.selected&&c.selected,onClick:()=>s(e.name,c.name),children:T(c.label)},c.name))})]},e.name)}var Zp=Pf;function Mf({open:e,onSelect:t,setTableViews:o,tableViews:n,anchorEl:r,onClose:s}){let{t:i}=useTranslation(),a=useMemo(()=>n||[],[n]),l=useMemo(()=>a.map(T=>T.name),[a]),{reorderColumns:p,toggleColumnSelection:d,toggleSubmenuItem:m}=si({columns:a,setTableViews:o}),{subMenuAnchorEl:u,openSubMenuName:C,handleSubMenuClose:g,handleSubMenuOpen:b,handleMenuScroll:S}=ri(e,s);return jsxs(vt,{"data-testid":"TableView_CustomViews",children:[jsxs(At,{"data-testid":"TableView_CustomViews_Button",onClick:t,children:[jsx("div",{children:i("columns")}),jsx("img",{src:Eb,alt:"arrow",style:{...!!e&&{transform:"rotate(180deg)"}}})]}),jsxs(R,{open:e,anchorEl:r,"data-testid":"TableView_CustomViews_Popper",sx:{padding:0,marginTop:"8px",borderRadius:1},children:[e&&jsx(B,{onClick:s}),jsx(Pt,{component:"article","data-testid":"TableView_CustomViews_List",children:jsx(Reorder.Group,{as:"div",axis:"y",onReorder:p,values:l,onScroll:S,children:a.map((T,c)=>jsx(Zp,{column:T,index:c,openSubMenuName:C,subMenuAnchorEl:u,toggleColumnSelection:d,toggleSubmenuItem:m,handleSubMenuOpen:b,handleSubMenuClose:g},T.name))})})]})]})}var Oi=memo(Mf);function Df({open:e,selectedViewInfo:t,setSelectedViewInfo:o,onSelect:n,onTableViewOptionClick:r,anchorEl:s}){let{t:i}=useTranslation();return jsxs(vt,{"data-testid":"TableView_DefaultViews",children:[jsxs(At,{onClick:a=>{n(a);},children:[jsx("div",{children:t.label}),jsx("img",{src:Eb,alt:"arrow",style:{...!!e&&{transform:"rotate(180deg)"}}})]}),jsx(Lf,{open:e,anchorEl:s,placement:"bottom-start",children:jsxs(Pt,{children:[Va.map(a=>jsxs(Et,{onClick:()=>{o(a),r?.(a);},children:[a.id===t.id?jsx("img",{className:"check-icon",src:Fb,alt:"arrow"}):jsx(Vt,{}),jsx("span",{children:a.label}),jsx(to,{})]},a.id)),jsxs(Et,{sx:{border:"none"},onClick:a=>{a.stopPropagation(),o(Ua),r?.(Ua);},children:[t.id===Ua.id?jsx("img",{className:"check-icon",src:Fb,alt:"arrow"}):jsx(Vt,{}),jsx("span",{children:i("createCustomView")}),jsx(to,{})]})]})})]})}var Hi=zi.memo(Df);function Ff({onViewChange:e,setIsViewVisible:t,setTableViews:o,tableViews:n,resetTableViews:r,onTableViewOptionClick:s}){let[i,a]=useState(null),[l,p$1]=useState(null),[d$1,m]=useState(null),[u,C$1]=useState(Ta),{t:g}=useTranslation(),b$1=x=>{e?.(),a(x.currentTarget),t(true);},S=()=>{p$1(null),m(null);},T=()=>{a(null),t(false),C$1(Ta);},c=x=>{C$1(x),x.id!==Ua.id&&r?.(x),S();};return i?jsx(Wf,{onClickAway:S,children:jsxs(wn,{"data-testid":"TableView",children:[u.id===Ua.id&&jsx(Oi,{tableViews:n,setTableViews:o,anchorEl:d$1,open:!!d$1,onSelect:x=>{m(d$1?null:x.currentTarget),p$1(null);},onClose:()=>{m(null);}}),jsx(Hi,{open:!!l,anchorEl:l,setSelectedViewInfo:x=>{c(x);},selectedViewInfo:u,onSelect:x=>{p$1(l?null:x.currentTarget),m(null);},onTableViewOptionClick:s}),jsx(At,{sx:{width:32,justifyContent:"center"},onClick:T,children:jsx("img",{src:Gb,alt:"close"})})]})}):jsx(p,{title:g("tableView"),children:jsx(b,{variant:"secondary",size:"md",icon:jsx(d,{src:C,alt:"view",sx:{width:14,height:14}}),"data-testid":"TableView_no_anchorViewEl",onClick:b$1,"aria-label":g("tableView")})})}var _i=memo(Ff);var ed=({columns:e,allCurrentSelected:t,someCurrentSelected:o,onSelectAll:n,onReset:r,onColumnToggle:s,onNestedItemToggle:i,isModified:a=false})=>{let{hoveredNestedColumn:l,nestedSubmenuAnchorEl:p,openNestedSubmenu:d,closeNestedSubmenu:m,cancelNestedClose:u}=qp();return jsxs(Fragment,{children:[jsxs(Lp,{children:[jsx(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:jsx(f,{checked:t,indeterminate:o,onChange:C=>{C.stopPropagation(),n();},onClick:C=>{C.stopPropagation();},sx:kp})}),jsx(Typography,{component:"button",disabled:!a,onClick:C=>{C.stopPropagation(),a&&r();},sx:{fontSize:11,fontWeight:500,color:"#1F88D0",background:"none",border:"none",cursor:a?"pointer":"default",padding:0,opacity:a?1:.5,pointerEvents:a?"auto":"none","&:hover":a?{textDecoration:"underline"}:void 0},children:"Reset"})]}),jsx(v$1,{}),jsx(Np,{onScroll:m,children:jsx(Box,{component:"ul",sx:{listStyle:"none",padding:0,margin:0},children:e.map((C,g)=>{let b=C.menuItems&&C.menuItems.length>0,{checked:S,indeterminate:T}=ro(C),c=M(C.name);return jsxs(Box,{component:"li",sx:{listStyle:"none",margin:0,padding:0,position:"relative",zIndex:1,backgroundColor:"#fff",width:"100%"},children:[jsxs(Box,{sx:{position:"relative"},onMouseEnter:x=>b&&d(C.name,x.currentTarget),onMouseLeave:()=>b&&m(),children:[jsxs(Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},children:[jsx(V,{isSelected:b?S:C.selected,isIndeterminate:b?T:false,isDisabled:c,onClick:()=>{c||s(C.name);},sx:{flex:1,display:"flex",alignItems:"center"},children:jsx("span",{children:C.label||C.name})}),b&&jsx(Box,{sx:{display:"flex",alignItems:"center",pr:1,pointerEvents:"none"},children:jsx("img",{src:yb,alt:"arrow",style:{height:12}})})]}),b&&jsx(Popper,{open:l===C.name,anchorEl:p,placement:"right-start",sx:{zIndex:1e4},children:jsxs(Box,{onMouseEnter:u,onMouseLeave:m,sx:{display:"flex",pl:.5},children:[jsx(Box,{sx:{width:8,height:"100%",position:"absolute",left:-8,top:0,bottom:0}}),jsx(Tn,{children:C.menuItems?.map((x,I)=>jsxs(zi.Fragment,{children:[jsx(V,{isSelected:x.selected,isDisabled:c,onClick:()=>{c||i(C.name,x.name);},children:x.label||x.name}),I<(C.menuItems?.length??0)-1&&jsx(v$1,{})]},x.name))})]})})]}),g<e.length-1&&jsx(v$1,{})]},C.name)})})})]})};function qf({open:e,selectedViewInfo:t,setSelectedViewInfo:o,anchorEl:n,onClose:r,onCreateCustomView:s,customViews:i=[],onEditCustomView:a,defaultColumns:l=[],defaultTemplate:p$1,defaultTemplates:d=[],customTemplateCount:m,isLoading:u}){let{t:C}=useTranslation(),{hoveredColumn:g,anchorEl:b,openSubmenu:S,closeSubmenu:T,cancelClose:c,forceClose:x}=Lt(),[I,h]=zi.useState(null),[w,y]=zi.useState(null),A=useMemo(()=>[...d.length?d:p$1?[p$1]:[],...i],[d,p$1,i]),R$1=useCallback(E=>E.submenu?.length?E.submenu:l,[l]),O=useCallback(E=>E?En(E,R$1(E)):l,[l,R$1]),Y=useCallback(E=>O(E).length>0,[O]),L=useMemo(()=>g?A.find(E=>E.id===g):void 0,[g,A]),k=useMemo(()=>O(L),[L,O]),D=useMemo(()=>g?w?.length?w:k:[],[g,k,w]),z=useMemo(()=>Si(D),[D]),ae=useMemo(()=>wi(D,z),[D,z]),ge=w!=null&&!ao(w,k),le=(m??ci(i))>=3,N=u||le,Ee=N||!ge;function mr(E){x(),y(null);let j;if(it(E)){let me=E.submenu?.length?E.submenu:l.length?l:p$1?.submenu??[];j={...E,submenu:ee(me),columns:me.map(Se=>Se.name)};}else he(E)&&(j=E);o(E,j);}function ur(E,j){let me=A.find(Se=>Se.id===E);y(ee(O(me))),S(E,j);}function P(){y(null),T(),x();}function V(E){if(E.stopPropagation(),Ee)return;let j=ee(k),me=w?.length?ee(w):j;s?.(true,me,j,L?.id),y(null),x();}function G(E){w&&y(Ii(w,E));}function pe(E,j){w&&y(io(w,E,j));}function pm(){w&&y(bi(w,!z));}function dm(){y(ee(k));}return jsxs(vt,{"data-testid":"ViewsDropdown",children:[jsx(Lf,{open:e,anchorEl:n,placement:"bottom-start",children:jsxs(Pt,{onScroll:x,children:[jsx(jf,{sx:{paddingX:1.25,py:1.1,fontWeight:500,fontSize:11,color:"#8D8D94"},children:"View"}),jsx(v$1,{}),A.map(E=>{let j=he(E),me=!j&&Y(E);return jsxs(Et,{onMouseEnter:Se=>{j?h(E.id):me&&ur(E.id,Se.currentTarget);},onMouseLeave:()=>{j?h(null):me&&T();},onClick:()=>mr(E),sx:{position:"relative",cursor:"pointer",pr:1.5},children:[E.id===t.id?jsx("img",{style:{width:15,height:15},src:Zj,alt:"check"}):jsx(Vt,{}),jsx("span",{style:{flex:1,fontSize:11},children:E.label}),j&&I===E.id&&jsx("img",{src:Dh,alt:"edit",style:{width:12,height:12,cursor:"pointer"},onClick:Se=>{Se.stopPropagation(),r?.(),a?.(E);}}),me&&jsx("img",{src:yb,alt:"arrow",style:{height:12}})]},E.id)}),jsx(p,{title:"Limit reached. Delete a view to create a new one.",placement:"left",disableHoverListener:!le,children:jsxs(Et,{sx:{border:"none",opacity:N?.5:1,cursor:N?"not-allowed":"pointer"},onClick:E=>{if(E.stopPropagation(),N)return;let j=ee(O(p$1)),me=j.map(Se=>({...Se,selected:false,menuItems:Se.menuItems?.map(cm=>({...cm,selected:false}))}));s?.(true,me,j,p$1?.id),x();},children:[jsx(Vt,{}),jsxs(da,{sx:{display:"flex",alignItems:"center",gap:.5},children:[jsx("img",{src:im$1,alt:"",style:{opacity:N?.5:1,width:10,height:10}}),jsx("span",{style:{color:N?"#999":"#1F88D0",fontSize:11,fontWeight:500},children:C("New Custom View")})]}),jsx(to,{})]})})]})}),g&&b&&D.length>0&&jsx(R,{open:!!b,anchorEl:b,placement:"auto-end",onMouseEnter:c,onMouseLeave:P,children:jsxs(Dp,{children:[jsx(ed,{columns:Rt(D),allCurrentSelected:z,someCurrentSelected:ae,onSelectAll:pm,onReset:dm,onColumnToggle:G,onNestedItemToggle:pe,anchorEl:b,isModified:ge}),jsxs(Bp,{children:[jsx(td,{variant:"text",onClick:P,sx:Wp,children:"Cancel"}),jsx(p,{title:"Limit reached. Delete a view to create a new one.",placement:"top",disableHoverListener:!le,children:jsx(td,{variant:"contained",onClick:V,disabled:Ee,sx:Fp,children:"Create view"})})]})]})})]})}var Gi=zi.memo(qf);var rd=({selectedColumns:e,columnNames:t,allSelected:o,someSelected:n,hoveredColumn:r,anchorEl:s,onReorder:i,onColumnToggle:a,onSubItemToggle:l,onSelectAll:p,onResetToDefault:d,onSubmenuEnter:m,onSubmenuLeave:u,onCancelClose:C$1})=>{let g=useRef(null),{onDragStart:b,onDragEnd:S}=ii(g),T=useCallback(c=>{if(Vi(c.target)){c.preventDefault();return}b();},[b]);return jsxs(Tp,{children:[jsxs(Ap,{children:[jsx(ei,{children:jsx("img",{src:C,alt:"drag",style:{width:16,height:16,opacity:.5}})}),jsx(ti,{onClick:c=>{c.stopPropagation(),p();},children:jsx(f,{checked:o,indeterminate:n,size:"small",sx:oi,onChange:c=>{c.stopPropagation(),p();},onClick:c=>{c.stopPropagation();}})}),jsx(Typography,{onClick:c=>{c.stopPropagation(),p();},sx:{flex:1,fontSize:13,fontWeight:500,color:"text.primary",ml:.75,cursor:"pointer"},children:"Select All"}),jsx(Link,{component:"button",type:"button",onClick:c=>{c.stopPropagation(),d();},underline:"none",sx:{fontSize:13,fontWeight:500,cursor:"pointer",color:"common.blue"},children:"Reset to default"})]}),jsx(Box,{sx:{flex:1,minHeight:0,overflowX:"hidden",overflowY:"auto",position:"relative"},children:jsx(Reorder.Group,{ref:g,axis:"y",onReorder:i,values:t,style:{listStyle:"none",padding:0,margin:0},children:e.map(c=>{let x=M(c.name),I=c.menuItems&&c.menuItems.length>0,{checked:h,indeterminate:w}=ro(c);return jsxs(Reorder.Item,{value:c.name,drag:x?false:"y",dragListener:!x,dragConstraints:g,dragElastic:{top:0,bottom:0,left:0,right:0},transition:{duration:0},whileDrag:{zIndex:9999,boxShadow:"0 4px 12px rgba(0,0,0,0.15)",scale:1},style:{listStyle:"none",margin:0,padding:0,position:"relative",zIndex:1,backgroundColor:"#fff",width:"100%",willChange:"transform"},onDragStart:T,onDragEnd:S,children:[jsxs(Pp,{isHovered:r===c.name,isDate:x,onMouseEnter:y=>I&&m(c.name,y.currentTarget),onMouseLeave:()=>I&&u(),onClick:y=>{(y.target.closest('[role="checkbox"]')||y.target.closest('input[type="checkbox"]'))&&y.stopPropagation();},sx:{width:"100%",position:"relative"},children:[jsx(ei,{children:jsx("img",{src:Hb,alt:"drag",draggable:false,style:{width:16,height:16,cursor:x?"default":"grab",pointerEvents:"none"}})}),jsx(ti,{onMouseDown:y=>{y.stopPropagation();},onPointerDown:y=>{y.stopPropagation();},children:jsx(f,{checked:h,indeterminate:w,onChange:y=>{y.stopPropagation(),a(c.name);},onClick:y=>{y.stopPropagation();},disabled:x,size:"small",sx:oi})}),jsx(Typography,{sx:{flex:1,fontSize:13,fontWeight:400,color:"text.primary",ml:1},children:c.label||c.name}),I&&jsx(Box,{sx:{display:"flex",alignItems:"center",ml:1,flexShrink:0},children:jsx("img",{src:xb$1,alt:"arrow",style:{width:12,height:12}})})]}),I&&jsx(Popper,{open:r===c.name,anchorEl:s,placement:"right-start",sx:{zIndex:1e4},modifiers:[{name:"offset",options:{offset:[0,0]}}],children:jsxs(Box,{onMouseEnter:C$1,onMouseLeave:u,sx:{display:"flex",pl:.5},children:[jsx(Box,{sx:{width:8,height:"100%",position:"absolute",left:-8,top:0,bottom:0}}),jsx(Tn,{children:c.menuItems?.map((y,A)=>jsxs(zi.Fragment,{children:[jsx(V,{isSelected:y.selected,isDisabled:x,onClick:()=>{x||l(c.name,y.name);},sx:{fontSize:13},children:y.label||y.name}),A<(c.menuItems?.length??0)-1&&jsx(v$1,{})]},y.name))})]})})]},c.name)})})})]})};function oC({open:e,onClose:t,onCreate:o,availableColumns:n=[],defaultColumns:r=[],editingView:s,onDelete:i$1,tableViews:a=[],mode:l="sheet",stackOrder:p=1}){let{t:d}=useTranslation(),m=useDragControls(),[u,C]=useState(false),[g,b]=useState(false);useEffect(()=>{e||(C(false),b(false));},[e]),useEffect(()=>{if(!e)return;let N=Ee=>{Ee.key==="Escape"&&t();};return window.addEventListener("keydown",N),()=>window.removeEventListener("keydown",N)},[e,t]);let{templateName:S,setTemplateName:T,selectedColumns:c$1,allSelected:x,someSelected:I,isNameValid:h$1,hasChanges:w,hoveredColumn:y,anchorEl:A,openSubmenu:R,closeSubmenu:O,cancelClose:Y,handleReorder:L,handleColumnToggle:k,handleSubItemToggle:D,handleSelectAll:z,handleResetToDefault:ae}=Ni({open:e,availableColumns:n,defaultColumns:r,editingView:s,tableViews:a}),ge=async()=>{if(!(!h$1||!w||g||u)){b(true);try{let N=di(c$1,l);await o?.({name:S,selectedColumns:c$1,layout:N}),t();}catch{console.warn("Failed to create view");}finally{b(false);}}},le=async()=>{if(!s||u||g)return;let N=s.id;C(true);try{await i$1?.(N),t();}catch{console.warn("Failed to delete view");}finally{C(false);}};return e?jsxs(Rp,{role:"dialog","aria-modal":"true","data-testid":"CreateViewDialog",drag:true,dragListener:false,dragControls:m,dragMomentum:false,initial:false,style:{width:450,minWidth:0,maxWidth:"min(100vw - 16px, 450px)",height:600,left:`max(8px, calc(50% - ${450/2}px))`,top:`max(8px, calc(50% - ${600/2}px))`},animate:{zIndex:2+p},transition:{duration:.1},children:[jsx(Op,{id:"draggable-dialog-title",onPointerDown:N=>m.start(N),style:{cursor:"move",flexShrink:0},children:jsxs(b$3,{children:[jsx(h,{children:jsx(c,{onClick:t,onPointerDown:N=>N.stopPropagation()})}),jsx(j$1,{title:s?"Edit Custom View":d("createCustomView")||"Create Custom View"}),jsx(i,{})]})}),jsxs(bp,{children:[jsxs(Sp,{onScroll:()=>{O();},children:[jsxs(wp,{children:[jsxs(Box,{children:[jsx(Typography,{sx:{fontSize:24,fontWeight:700,color:"#9F9F9F",lineHeight:"0.7"},children:"Custom"}),jsx(Typography,{sx:{fontSize:24,fontWeight:700,color:"#20232B",lineHeight:1.2},children:"View"})]}),s&&jsx(Vp,{onClick:le,disabled:u||g,children:u?jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[jsx(CircularProgress,{size:14,color:"inherit"}),jsx("span",{children:"Deleting..."})]}):"Delete View"})]}),jsx(Box,{sx:{mb:3},children:jsx(b$4,{name:"custom-template-name",label:"Template Name",value:S,onChange:N=>T(N),inputProps:{maxLength:20,autoComplete:"off",readOnly:true,"data-form-type":"other",onFocus:N=>N.currentTarget.removeAttribute("readonly")},required:true})}),jsx(rd,{selectedColumns:Rt(c$1),columnNames:Rt(c$1).map(N=>N.name),allSelected:x,someSelected:I,hoveredColumn:y,anchorEl:A,onReorder:L,onColumnToggle:k,onSubItemToggle:D,onSelectAll:z,onResetToDefault:ae,onSubmenuEnter:R,onSubmenuLeave:O,onCancelClose:Y})]}),jsx(vp,{}),jsx(Ep,{children:jsx(Mp,{variant:"contained",onClick:ge,disabled:!h$1||!w||g||u,title:h$1?void 0:`Name is required. Current: "${S}"`,children:g?jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[jsx(CircularProgress,{size:14,color:"inherit"}),jsx("span",{children:s?"Saving...":"Creating..."})]}):s?"Update View":"Create View"})})]})]}):null}var $i=oC;function aC({onViewChange:e,templates:t,onCreateCustomView:o,onEditCustomView:n,onDeleteCustomView:r,tableMode:s="default",lang:i="en",isLoading:a,mainDefaultTemplate:l}){let{t:p$1}=useTranslation(),{defaultColumns:d$1,defaultTemplate:m,defaultTemplates:u,customViews:C$1,allTemplates:g,customTemplateCount:b$1}=Ln({tableMode:s,templates:t,lang:i,mainDefaultTemplate:l}),{anchorEl:S,isCreateDialogOpen:T,editingView:c,selectedViewInfo:x,shouldUseCurrentState:I,currentViewColumns:h,initialColumnsForCreate:w,availableColumnsForCreate:y,handleViewButtonClick:A,handleCloseViewDropdown:R,handleSelectedViewInfo:O,handleOpenCreateDialog:Y,handleOpenEditDialog:L,handleCloseCreateDialog:k,handleSaveView:D,handleDeleteView:z}=kn({mode:s,onViewChange:e,onCreateCustomView:o,onEditCustomView:n,onDeleteCustomView:r,defaultColumns:d$1,defaultTemplate:m,allTemplates:g,customTemplateCount:b$1});return jsxs(Fragment,{children:[jsx(Wf,{onClickAway:R,children:jsxs(wn,{sx:{width:"32px"},"data-testid":"ViewsMenu",children:[jsx(p,{title:p$1("tableView"),children:jsx(b,{variant:"secondary",size:"md",icon:jsx(d,{src:C,alt:"view",sx:{width:14,height:14}}),"data-testid":"ViewsMenu_button",onClick:A,"aria-label":p$1("tableView")})}),jsx(Gi,{open:!!S,anchorEl:S,onClose:R,setSelectedViewInfo:O,selectedViewInfo:x,onCreateCustomView:Y,customViews:C$1,onEditCustomView:L,defaultColumns:d$1,defaultTemplate:m,defaultTemplates:u,customTemplateCount:b$1,isLoading:a})]})}),jsx($i,{open:T,onClose:k,availableColumns:y?.length?y:d$1,defaultColumns:d$1,onCreate:D,editingView:c,onDelete:z,tableViews:I?w??h:void 0,mode:s})]})}var dd=memo(aC);function Yi(){let[e,t]=useState(false);return {isColumnPickerVisible:e,setIsColumnPickerVisible:t}}function co({children:e,component:t="aside",...o}){return jsx(xp,{component:t,"data-testid":"ListHeaderToolbar",...o,children:e})}function Hn({display:e,views:t,search:o,slots:n,reportsVisible:r,lang:s}){let{isColumnPickerVisible:i,setIsColumnPickerVisible:a}=Yi(),l=e?.variant==="acceptance",p=t?.tableMode??"default",d=useMemo(()=>t?.onSheetToggle?jsx(b$5,{tableMode:p,onToggle:t.onSheetToggle}):null,[p,t?.onSheetToggle]);return jsxs(co,{children:[n?.leading&&!i&&n.leading,!i&&jsxs(Fragment,{children:[o?.onChange&&jsx(b$6,{onSearchChange:o.onChange,placeholder:o.placeholder,defaultValue:o.defaultValue}),n?.filter,d&&!l&&d,n?.calendar,r&&n?.reports,d&&l&&d]}),t?.onViewChange&&(t.templates?jsx(dd,{onViewChange:t.onViewChange,tableMode:p,lang:s,...t.templates}):jsx(_i,{onViewChange:t.onViewChange,setIsViewVisible:a,tableViews:t.columns,setTableViews:t.setColumns,resetTableViews:t.onPresetReset,onTableViewOptionClick:t.onPresetOptionClick})),n?.trailing&&!i&&n.trailing]})}function fC({title:e,display:t,lang:o,reportsVisible:n,status:r,activeFilter:s,views:i,search:a,slots:l,children:p}){let d=useMemo(()=>jsx(Hn,{display:t,views:i,search:a,slots:l,reportsVisible:n,lang:o}),[t,i,a,l,n,o]);return jsxs(In,{"data-testid":cp,children:[t?.maximized&&jsx(bn,{title:e,toolbar:d}),jsxs(Cp,{as:"section",children:[jsx(Sn,{status:r,activeFilter:s,beforeStatus:l?.beforeStatus}),!t?.maximized&&d]}),p]})}var ud=memo(fC);var fd=styled("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-end",gap:e.spacing(1)})),Cd=styled("span")(({theme:e,tableMode:t})=>({backgroundColor:e.palette.grey[100],display:"block",borderRadius:"4px",padding:"1.5px 3px",fontSize:na(t)?"11px":"10px",lineHeight:"13px",textTransform:"uppercase",fontWeight:e.typography.fontWeightBold})),gd=styled("span")(({theme:e,tableMode:t})=>({fontSize:na(t)?"11px":e.typography.body2.fontSize,lineHeight:"17px",fontWeight:"700"})),qi=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"})),_n=styled("div")(({theme:e,count:t})=>({justifyContent:"space-between",display:"flex",width:"100%",gap:(t||1)<=1?e.spacing(1.5):e.spacing(1)}));var LV=({type:e,selectAmount:t,selectCurrency:o,requestAmount:n,requestCurrency:r,merchantAmount:s,merchantCurrency:i})=>{let a=ca(t,o),l=ca(n,r),p=ca(s,i);return jsxs(qi,{sx:{textAlign:"right",justifyContent:"flex-end"},children:[jsx("span",{style:{fontWeight:"bold"},children:e?Z$1[e]:""}),jsxs(qi,{children:[e!=="fx"&&jsxs(_n,{children:[jsx("span",{children:"Customer Selected"})," ",jsxs("span",{children:[jsx(b$9,{currency:o})," ",a.integerAmount,".",a.decimalAmount]})]}),jsxs(_n,{children:[jsx("span",{children:"Charge"})," ",jsxs("span",{children:[jsx(b$9,{currency:r})," ",l.integerAmount,".",l.decimalAmount]})]}),jsxs(_n,{children:[jsx("span",{children:"Settlement"})," ",jsxs("span",{children:[jsx(b$9,{currency:i})," ",p.integerAmount,".",p.decimalAmount]})]})]})]})};var yd=({tableMode:e,conversionType:t})=>t?jsx(Cd,{tableMode:e,className:"conversion-type",children:t}):jsx(Fragment,{});var hd=({tableMode:e,amount:t,currency:o})=>jsx(gd,{tableMode:e,children:t!==void 0?jsxs(Fragment,{children:[jsx("span",{children:jsx(b$9,{currency:o,fontSize:10})})," ",jsx(b$a,{amount:t,currency:o,sx:{fontSize:"inherit",fontWeight:"inherit"}})]}):jsx("span",{children:"-"})});var Id="default";function hC({conversionType:e,amount:t,currency:o,tooltipLabel:n,amountTooltipLabel:r,...s}){return jsx(v,{...s,children:jsxs(fd,{children:[jsx(p,{title:n||"",children:jsx(Box,{children:jsx(yd,{tableMode:Id,conversionType:e})})}),o&&jsx(p,{title:jsx(b$9,{currency:o}),children:jsx(b$8,{currencyCode:o})}),jsx(p,{title:r,children:jsx(hd,{tableMode:Id,amount:t,currency:o})})]})})}var IC=hC;var bd=e=>e?Object.keys(e).filter(t=>e[t]).reduce((t,o)=>(t[o]=e[o],t),{}):{};var Un=({statuses:e,centerIconKey:t})=>{let o=useMemo(()=>bd(e),[e]),n=useMemo(()=>Object.values(o).filter(Boolean),[o]),r=useMemo(()=>{if(!t)return 0;let s=Object.entries(o).findIndex(([i])=>i===t);return s===-1?Math.floor((n.length-1)/2):s},[o,t,n.length]);return {statusesList:n,centerIconIndex:r}};function wC({statuses:e,centerIconKey:t,...o}){let{statusesList:n}=Un({statuses:e,centerIconKey:t}),r=useTheme(),s=n.length||0;return jsx(v,{...o,"data-testid":"StatusCell",sx:{position:"relative",overflow:"visible"},children:jsx(ql,{whileHover:"animate",animate:"start",statusesCount:s,children:n.map((i,a)=>i?jsx(jl,{order:a,variants:$l(a,r.shadows[4],40),children:jsx(Yl,{children:i})},a):null)})})}var TC=wC;function PC({statuses:e,...t}){let{statusesList:o}=Un({statuses:e});return jsx(v,{...t,children:jsx(Kl,{sx:{paddingRight:"30px"},children:o.map((n,r)=>jsx(Fragment$1,{children:n},r))})})}var vC=PC;var LC=styled$1(Menu)(()=>({zIndex:2e3,".MuiMenu-paper":{borderRadius:4},".MuiMenu-list":{padding:0}})),kC=styled$1(MenuItem)(({theme:e})=>({display:"flex",gap:"4px",minHeight:"36px",alignItems:"center",paddingInline:8,"&:hover":{backgroundColor:"transparent",boxShadow:e.shadows[10]}})),DC=styled$1(ListItemIcon)(()=>({minWidth:"16px !important"})),NC=styled$1(ListItemText)(()=>({".MuiTypography-root":{fontSize:"0.6875rem"}})),$n=({id:e="ActionMenu",open:t,anchorEl:o,onClose:n,items:r})=>jsx(LC,{id:e,"data-testid":"ActionMenu",open:t,anchorEl:o,onClose:n,onContextMenu:s=>{s.preventDefault(),n();},children:r.map((s,i)=>jsxs(kC,{onClick:a=>{s.onClick?.(a);},onContextMenu:s.onContextMenu,children:[s.icon&&jsx(DC,{children:s.icon}),jsx(NC,{children:s.label})]},`${s.label}-${i}`))});var jn=styled("section",{shouldForwardProp:e=>e!=="tableMode"})(({theme:e,tableMode:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-end",textAlign:"center",borderRadius:"50%",gap:na(t)?"4px":e.spacing(1),overflow:"visible"})),qn=styled("span")(({selected:e})=>({overflow:"visible",borderRadius:"50%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative","&:hover":{boxShadow:"0px 0px 20px rgba(0, 0, 0, 0.18);"},...e&&{boxShadow:"0px 0px 20px rgba(0, 0, 0, 0.18);"},span:{flexGrow:1}})),Sd=styled("img",{shouldForwardProp:e=>e!=="isActive"})(({isActive:e})=>({width:"18px",height:"18px",...!e&&{pointerEvents:"none",filter:"opacity(0.3)"}})),be=styled(motion.img)(({icon:e})=>({width:"13.3px",height:"13.3px",...e==="cancel"&&{padding:"1.15px"}}));function wd({isAnyActionLoading:e,isAnyActionHasError:t,isAnyActionSuccessful:o,areThereAnyShownActions:n}){let{t:r}=useTranslation();return t?jsx(be,{src:jc$1,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},"fail-icon"):o?jsx(be,{src:kc$1,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},"success-icon"):e?jsx(be,{src:hc$1,className:"spinner-loader"},"spinner-icon"):jsx(p,{title:r("moreActions"),children:jsx(Sd,{alt:"more",src:ma,isActive:n},"ellipsis-icon")})}wd.displayName="ActionIconsVariants";var Co=memo(wd);var Wt={GRAY:{icon:Bb,color:"#CFCFCF"},ORANGE:{icon:zb,color:"#FFD503"},RED:{icon:Cb,color:"#FF0000"}},Kn={"#CFCFCF":"gray","#FFD503":"orange","#FF0000":"red",gray:"gray",red:"red",orange:"orange"},Xn={flag:E,dispute:F,refund:rk,void:Ak,capture:ja,cancel:ik$1,clock:Ve,reverse:Vh,destination:Pg,invoice:Eh,users:Di,brand:Ci$1,clipboard:Ei$1,viewApi:Xd,viewReceipt:rc,delete:Fj};function Jn({actions:e,isDropdownShown:t,onCloseDropdown:o,renderDropdown:n}){let[r,s]=useState(null),i=!!r,a=(e||[]).filter(g=>g.isShown!==false),l=a.some(g=>g.isLoading),p=a.some(g=>g.isError),d=a.some(g=>g.isSuccess),m=a.length>0||!!n,u=g=>{l||!m||s(g.currentTarget);},C=()=>{s(null),o?.();};return useEffect(()=>{t||s(null);},[t]),{anchorEl:r,open:i,filteredActions:a,isAnyActionLoading:l,isAnyActionHasError:p,isAnyActionSuccessful:d,areThereAnyShownActions:m,handleClick:u,handleClose:C,setAnchorEl:s}}var Td=e=>jsx(UC,{sx:{height:12.6,width:13},...e,children:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"13",viewBox:"2.67 1.07 10.66 12.66",fill:"none",children:jsxs("g",{transform:"translate(-4 -4)",children:[jsx("path",{d:"M7.5918 15.166C7.5918 16.4041 8.5959 17.4072 9.83398 17.4072H15.5273L15.334 17.6973C15.101 18.0473 14.7079 18.2577 14.2871 18.2578H9.83398C8.12641 18.2578 6.74219 16.8736 6.74219 15.166V8.71289C6.74219 8.2923 6.9526 7.89944 7.30273 7.66602L7.5918 7.47266V15.166ZM10.167 5.74121H15.5C16.4651 5.74121 17.2586 6.534 17.2588 7.49902V14.833C17.2586 15.798 16.4651 16.5908 15.5 16.5908H10.167C9.20193 16.5908 8.40838 15.798 8.4082 14.833V7.49902C8.40838 6.534 9.20193 5.74121 10.167 5.74121ZM10.167 6.59082C9.6596 6.59082 9.25896 6.99168 9.25879 7.49902V14.833C9.25896 15.3404 9.6596 15.7412 10.167 15.7412H15.5C16.0074 15.7412 16.408 15.3404 16.4082 14.833V7.49902C16.408 6.99168 16.0074 6.59082 15.5 6.59082H10.167Z",fill:"#20232B",stroke:"white",strokeWidth:"0.15"}),jsx("path",{d:"M10.7598 12.84V9H11.4851V12.84H10.7598Z",fill:"black"}),jsx("path",{d:"M12.2846 12.84V9H13.5272C13.5574 9 13.6197 9.00089 13.7139 9.00267C13.8081 9.00444 13.8988 9.01067 13.9859 9.02133C14.2952 9.05867 14.5574 9.16622 14.7726 9.344C14.9877 9.52178 15.1512 9.74756 15.2632 10.0213C15.3752 10.2951 15.4312 10.5947 15.4312 10.92C15.4312 11.2453 15.3752 11.5449 15.2632 11.8187C15.1512 12.0924 14.9877 12.3182 14.7726 12.496C14.5574 12.6738 14.2952 12.7813 13.9859 12.8187C13.8988 12.8293 13.8081 12.8356 13.7139 12.8373C13.6197 12.8391 13.5574 12.84 13.5272 12.84H12.2846ZM13.0206 12.1573H13.5272C13.5752 12.1573 13.6401 12.1564 13.7219 12.1547C13.8037 12.1511 13.8774 12.1431 13.9432 12.1307C14.1103 12.0969 14.2463 12.0187 14.3512 11.896C14.4579 11.7733 14.5361 11.6258 14.5859 11.4533C14.6374 11.2809 14.6632 11.1031 14.6632 10.92C14.6632 10.728 14.6366 10.5458 14.5832 10.3733C14.5317 10.2009 14.4526 10.0551 14.3459 9.936C14.2392 9.81689 14.105 9.74133 13.9432 9.70933C13.8774 9.69511 13.8037 9.68711 13.7219 9.68533C13.6401 9.68356 13.5752 9.68267 13.5272 9.68267H13.0206V12.1573Z",fill:"black"})]})})});var Pd=".IDButton-root:not(.IDButton-hoverDisabled):hover &",vd=styled("div")(({theme:e})=>({paddingInlineStart:"8px",border:"1px solid transparent",display:"flex",gap:"4px",alignItems:"center",justifyContent:"flex-end",backgroundColor:e.palette.common.white,float:"right",borderRadius:"56px",height:"100%",paddingLeft:"4px",paddingRight:"4px",width:"24px",overflow:"hidden",[Pd]:{width:"max-content",overflow:"visible",borderColor:"rgba(92, 92, 92, 0.05)",boxShadow:"-7px 0px 8px 0px #F2F2F2",position:"absolute",right:0,top:0,zIndex:101}})),Ed=styled("div")(({theme:e})=>({color:e.palette.text.primary,fontSize:"11px",lineHeight:"120%",display:"grid",gridTemplateColumns:"0fr",opacity:0,transition:"grid-template-columns 0.1s ease, opacity 0.1s ease","& > span":{overflow:"hidden",minWidth:0,whiteSpace:"nowrap"},[Pd]:{gridTemplateColumns:"1fr",opacity:1,transition:"grid-template-columns 0.3s ease, opacity 0.3s ease 0.3s"}}));function jC({icon:e=jsx(Td,{}),id:t,sx:o,disableOnHoverEffect:n=false,onCopyId:r,className:s,...i}){let{t:a}=useTranslation();return jsx(p,{title:a("copy"),children:jsx(da,{className:Eb$1("IDButton-root",n&&"IDButton-hoverDisabled",s),sx:{position:"relative",width:"24px",height:"24px",cursor:"pointer",...o},...i,children:jsxs(vd,{className:"IDButton-button",children:[t?jsx(Ed,{className:"IDButton-rowId",children:jsx("span",{children:t})}):null,t?jsx(D,{className:"IDButton-icon",icon:e,text:t,onClick:()=>r?.()}):null]})})})}var Zi=memo(jC);var xR=memo(({flag:e,actions:t,flagTooltip:o,flagsCount:n,dropdownAction:r,onCloseDropdown:s,isDropdownShown:i=true,row:a,showJsonViewer:l=true,isTextShown:p$1,showIdButton:d=true,onCopyId:m,rowId:u,onJsonViewClick:C,renderDropdown:g,startSlot:b,...S})=>{let{t:T}=useTranslation(),{open:c,anchorEl:x,filteredActions:I,isAnyActionLoading:h,isAnyActionHasError:w,isAnyActionSuccessful:y,areThereAnyShownActions:A,handleClick:R,handleClose:O,setAnchorEl:Y}=Jn({actions:t,isDropdownShown:i,onCloseDropdown:s,renderDropdown:g});return jsx(v,{...S,sx:{overflow:"visible",...S.sx},children:jsxs(jn,{"data-testid":"ActionCell_ActionCellContainer",children:[b,e&&jsx(Fragment,{children:p$1?jsx(p,{title:o,children:jsx(Z,{"data-testid":"ActionCell_FlagLabel",sx:{textAlign:"left",justifyContent:"flex-start"},children:o})}):jsx(p,{title:o,children:jsxs(ht,{"data-testid":"ActionCell_FlagBadge",sx:{paddingInline:"12px",width:"auto",alignItems:"center",position:"relative",zIndex:21,gap:"0px"},whileHover:["animate","fadeIn"],variants:{animate:{gap:"4px"}},children:[jsx(be,{"data-testid":"ActionCell_FlagIcon",sx:{width:"12px",height:"11px"},src:Wt[e]?.icon,alt:"flag-icon"}),(n??0)>1&&jsx(motion.div,{"data-testid":"ActionCell_StyledBadge_Container",style:{alignItems:"center",justifyContent:"center",gap:"4px",display:"flex",zIndex:10},initial:{width:0,opacity:0},transition:{animate:{duration:.5},fadeIn:{duration:.2}},variants:{animate:{width:"auto"},fadeIn:{transition:{delay:.5},opacity:1}},children:jsxs(z,{compact:true,color:Kn[Wt[e]?.color]||"orange","data-testid":"ActionCell_StyledBadge",children:[n,"x"]})})]})})}),d&&jsx(Zi,{id:u||a.id,onCopyId:m}),jsxs("div",{"data-testid":"ActionCell_IconsContainer",style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"5px"},children:[l&&jsx(Fragment,{children:jsx(qt,{onClick:C,type:"button","data-testid":"ActionCell_TransparentButton",children:jsx(p,{title:T("jsonViewer"),children:jsx(nl,{"data-testid":"ActionCell_IdButtonContainer",children:jsx(motion.img,{src:Xd,alt:"icon"},"id-icon")})})})}),jsxs(qn,{id:"styled-popover",selected:!!r||c,"data-testid":"ActionCell_ActionsIconContainer","data-is-active":A,sx:{...!A&&{pointerEvents:"none"}},children:[jsx(qt,{onClick:R,"data-testid":"ActionCell_ActionsIconContainer_TransparentButton","data-is-active":A,sx:{...!A&&{pointerEvents:"none"}},children:jsx(AnimatePresence,{mode:"wait",children:jsx(Co,{isAnyActionLoading:h,isAnyActionHasError:w,isAnyActionSuccessful:y,areThereAnyShownActions:A})})}),r,g?g(x,Y):jsx(Fragment,{children:A&&jsx($n,{open:c,onClose:O,anchorEl:x,items:I.map(L=>({label:L.label,onClick:k=>{L?.onClick?.(k),L.hasActionMenu||O();},onContextMenu:k=>{L?.onRightClick?.(k),O();},icon:L.customIcon||jsx(be,{icon:L.icon,src:L.iconSrc??(L.icon&&Xn[L.icon]),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},`action.label-${L.label.trim()}`)}))})})]})]})]})})});function eg({flag:e,flagTooltip:t,flagsCount:o,row:n,showJsonViewer:r=true,isTextShown:s,showIdButton:i=true,rowId:a,onJsonViewClick:l,tableMode:p$1,...d}){return jsx(v,{...d,sx:{overflow:"visible"},children:jsxs(jn,{"data-testid":"ActionsColumn_ActionCellContainer",tableMode:p$1,children:[e&&jsx(Fragment,{children:s?jsx(p,{title:t,children:jsx(Z,{"data-testid":"ActionsColumn_FlagLabel",sx:{textAlign:"left",justifyContent:"flex-start"},children:t})}):jsx(p,{title:t,children:jsxs(ht,{"data-testid":"ActionsColumn_FlagBadge",sx:{paddingInline:"12px",width:"auto",alignItems:"center",position:"relative",zIndex:21,gap:"0px"},whileHover:["animate","fadeIn"],variants:{animate:{gap:"4px"}},children:[jsx(be,{"data-testid":"ActionsColumn_FlagIcon",sx:{width:"12px",height:"11px"},src:Wt[e]?.icon,alt:"flag-icon"}),(o??0)>1&&jsx(motion.div,{"data-testid":"ActionsColumn_StyledBadge_Container",style:{alignItems:"center",justifyContent:"center",gap:"4px",display:"flex",zIndex:10},initial:{width:0,opacity:0},transition:{animate:{duration:.5},fadeIn:{duration:.2}},variants:{animate:{width:"auto"},fadeIn:{transition:{delay:.5},opacity:1}},children:jsxs(z,{compact:true,color:Kn[Wt[e]?.color]||"orange","data-testid":"ActionsColumn_StyledBadge",children:[o,"x"]})})]})})}),i&&jsx(b$1,{sx:{minWidth:"213px"},children:a||n.id}),jsx("div",{"data-testid":"ActionsColumn_IconsContainer",style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"5px"},children:r&&jsx(b$1,{onClick:l,children:"View API"})})]})})}var tg=memo(eg);function ig({actions:e,dropdownAction:t,onCloseDropdown:o,isDropdownShown:n=true,renderDropdown:r,...s}){let{open:i,anchorEl:a,filteredActions:l,isAnyActionLoading:p,isAnyActionHasError:d,isAnyActionSuccessful:m,areThereAnyShownActions:u,handleClick:C,handleClose:g,setAnchorEl:b}=Jn({actions:e,isDropdownShown:n,onCloseDropdown:o,renderDropdown:r});return jsx(v,{...s,sx:{overflow:"visible"},children:jsx("div",{"data-testid":"ActionIconColumn_Container",style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"5px"},children:jsxs(qn,{id:"styled-popover",selected:!!t||i,"data-testid":"ActionIconColumn_ActionsIconContainer","data-is-active":u,sx:{...!u&&{pointerEvents:"none"}},children:[jsx(qt,{onClick:C,"data-testid":"ActionIconColumn_ActionsIconContainer_TransparentButton","data-is-active":u,sx:{...!u&&{pointerEvents:"none"}},children:jsx(AnimatePresence,{mode:"wait",children:jsx(Co,{isAnyActionLoading:p,isAnyActionHasError:d,isAnyActionSuccessful:m,areThereAnyShownActions:u})})}),r?r(a,b):jsxs(Fragment,{children:[t,u&&jsx($n,{open:i,onClose:g,anchorEl:a,items:l.map(S=>({label:S.label,onClick:T=>{S?.onClick?.(T),S.hasActionMenu||g();},onContextMenu:T=>{S?.onRightClick?.(T),g();},icon:S.customIcon||jsx(be,{icon:S.icon,src:S.iconSrc??(S.icon&&Xn[S.icon]),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},`action.label-${S.label.trim()}`)}))})]})]})})})}var ag=memo(ig);var Rd=styled$1("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:e.spacing(1),position:"relative",minWidth:"23px",height:"24px"})),Ld=styled$1("span")(({theme:e})=>({fontSize:e.typography.pxToRem(12),color:e.palette.info.dark,fontWeight:700,paddingInline:e.spacing(1),borderRadius:e.spacing(1),display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:`${e.palette.info.dark}1A`})),kd=styled$1("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:e.spacing(1),backgroundColor:e.palette.common.white,border:`1px solid ${e.palette.divider}`,paddingInline:e.spacing(1),borderRadius:"56px",height:"24px"}));styled$1("img")(({theme:e,order:t})=>({borderRadius:"50%",backgroundColor:e.palette.common.white,width:"16px",height:"16px",padding:"2px",zIndex:t+1,position:"absolute",left:`${t*9}px`}));var Dd=styled$1("img")(({pointLeft:e})=>({width:"12.5px",height:"13px",transform:`scale(${e?"-1":"1"}, 1)`}));styled$1("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",backgroundColor:e.palette.common.white,borderRadius:"50%",width:"16px",height:"16px",fontSize:"8px",fontWeight:e.typography.fontWeightBold,lineHeight:"11px",position:"absolute",left:"18px",zIndex:4,textAlign:"center",span:{flexGrow:1}}));function dg({destinationsCount:e,destinationsTooltip:t,destination:o,destinationsAmount:n,hidden:r,iconDirection:s,...i}){let a=useMemo(()=>{if(typeof e=="number")return e;let d=Number(e);return Number.isNaN(d)?void 0:d},[e]),l=a!==void 0?a>0:!!e,p$1=a!==void 0&&a>1;return !l||r?null:jsx(da,{sx:{width:"fit-content",overflow:"visible"},...i,children:jsx(p,{title:t,children:jsxs(kd,{children:[jsx(Dd,{src:z$1,pointLeft:s==="left"}),p$1&&jsx(Rd,{children:jsx(Ld,{children:e})})]})})})}var cg=dg;function fg(e){let{destination:t,...o}=e,n={...o};delete n.destinationsCount,delete n.destinationsTooltip,delete n.destinationsAmount,delete n.hidden,delete n.iconDirection,delete n.selectionProps;let r=t?.destination||[];return jsx(da,{sx:{display:"flex",gap:"4px",alignItems:"center"},...n,children:r.map((s,i)=>{let a=ba(s?.amount||0),l=`${a.integerAmount}.${a.decimalAmount}`;return jsxs(b$1,{copyTrigger:"click",copyText:l,children:[s?.id," | ",jsx(b$9,{currency:s?.currency})," ",l]},s?.id||i)})})}var Cg=fg;var dL=({destination:e,amount:t})=>{let o=e?.destination||[];return o?.length>1?jsxs("div",{children:[jsx("div",{children:"Destination"}),e?.destination?.map(r=>{let s=ba(r.amount||0);return jsxs("div",{children:[r?.id," - ",jsx(b$9,{currency:r?.currency})," ",s.integerAmount,".",s.decimalAmount]},r?.id)})]}):jsxs("div",{children:["Destination ",o?.[0]?.id," - ",jsx(b$9,{currency:o?.[0]?.currency})," ",t.integerAmount,".",t.decimalAmount]})};var Bd=styled$1(motion.div)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:e.spacing(.5),paddingInline:e.spacing(.5),paddingBlock:e.spacing(.5),backgroundColor:"#eeeeee",borderRadius:"56px",height:"24px",minWidth:"24px",width:"fit-content",fontSize:"10px",color:e.palette.text.primary,zIndex:10,position:"absolute"})),Wd=styled$1("div")(({theme:e,percentage:t})=>({border:`0.6px ${[0,100].includes(t)?"solid":"dashed"} #656565`,borderRadius:"80px",padding:e.spacing(.316),paddingLeft:e.spacing(1),fontSize:"7px",fontWeight:e.typography.fontWeightBold,color:"#656565",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:e.spacing(.5)}));styled$1("div")(({percentage:e,isCapture:t,theme:o})=>({background:`conic-gradient(${t?o.palette.info.dark:"#656565"} ${e}%, transparent 0.00%)`,borderRadius:"50%",width:"8.333px",height:"8.333px",border:`0.6px solid ${t?o.palette.info.dark:"#656565"}`}));function Fd(e){return e<5?5:e===100?95:e}function bg({percentage:e=0,days:t,remainingAmount:o=0,currency:n,...r}){let s=useTheme(),i=jsx(b$9,{currency:n}),{integerAmount:a,decimalAmount:l}=ca(o,n),p$1=`${a}.${l}`,d=useMemo(()=>jsxs(Fragment,{children:["Remaining Authorized Balance - ",i," ",p$1]}),[o,n]);return e===0||o<0?null:jsx(v,{...r,children:jsx(p,{title:d,placement:"top",children:jsx("div",{style:{height:24},children:jsxs(Bd,{whileHover:["animate","fadeIn"],animate:"start",sx:{zIndex:22},variants:{animate:{...!!t&&{boxShadow:s.shadows[4]}}},children:[jsxs(Wd,{percentage:e,children:[e,"% ",jsx(ll,{percentage:Fd(e)})]}),!!t&&jsx(motion.div,{style:{display:"none",alignItems:"center",justifyContent:"center",gap:"4px",width:0},initial:{width:0,opacity:0},transition:{animate:{duration:.5},fadeIn:{duration:.2}},variants:{animate:{width:"auto",display:"flex"},fadeIn:{transition:{delay:.5},opacity:1}},children:jsxs("span",{children:[t," days left"]})})]})})})})}var Sg=bg;function Tg({remainingAmount:e,currency:t}){let o=jsx(b$9,{currency:t}),{integerAmount:n,decimalAmount:r}=ca(e,t),s=`${n}.${r}`;return jsxs(b$1,{copyTrigger:"click",copyText:`${n}.${r}`,children:[o," ",s]})}var Ag=Tg;var ra=["authenticationMode","paymentAuth","paymentAgreement"],ia=["paymentIssuer","paymentInitiated","paymentDevice"],Od=["paymentMethod","paymentType","paymentScheme","paymentCardNumber",...ia,...ra];var Ud=styled(da)(()=>({marginRight:"8px",display:"flex",alignItems:"center",gap:"4px"})),zd=styled(da)(()=>({marginLeft:"8px",width:20}));function Mg(e){let{centerIcon:t,centerIconId:o}=useMemo(()=>{for(let i of Od)if(e?.[i])return {centerIcon:e?.[i],centerIconId:i};return {centerIcon:null,centerIconId:null}},[e]);if(!o)return null;let n=o!=="paymentScheme"&&e.paymentScheme,r=o!=="paymentCardNumber"&&e.paymentCardNumber,s=o!=="paymentType"&&e.paymentType;return jsx(b$2,{sx:{justifyContent:"center",zIndex:101},main:t,startItems:ia.filter(i=>i!==o&&e?.[i]).map(i=>e?.[i]),endItems:ra.filter(i=>i!==o&&e?.[i]).map(i=>e?.[i]),endAdornment:n||r?jsxs(Ud,{children:[n&&e.paymentScheme,r&&e.paymentCardNumber]}):void 0,startAdornment:s?jsx(zd,{children:e.paymentType}):void 0})}var Rg=memo(Mg);var $d=styled("span")(({theme:e})=>({fontSize:"10px",fontWeight:500,color:e.palette.text.primary}));function ik({card:e,paymentMethod:t,paymentType:o,paymentScheme:n}){let{t:r}=useTranslation();if(!e.last_four)return null;let s=e?.name||`${r(He(wb$1(t,n)?o:n))} - ${e?.last_four}`;return jsx(p,{title:s,children:jsxs($d,{children:["\xB7\xB7\xB7 ",e?.last_four]})})}function ck({method:e}){let{t}=useTranslation();return e?jsx(Te,{source:ie(e)??e,title:`Payment Method - ${t(He(e))}`}):null}function xk({type:e}){let{t}=useTranslation();return e?jsx(Te,{source:ie(e)??e??"",title:`Payment Type - ${t(He(e))}`}):null}function wk({scheme:e}){let{t}=useTranslation();return e?jsx(Te,{source:ie(e)??e,title:`Payment Scheme - ${t(He(e))}`}):null}var Mk=({mode:e})=>e?jsx(p,{title:ap[e],children:jsx(da,{component:"img",src:e==="C"?da$1:ca$1})}):null;var Qn={ORDER:{label:"order",icon:yi$1,color:"#5E30EB"},SAVED_CARD:{label:"cardAgreement",icon:Ai$1,color:"#76BB40"},SUBSCRIPTION:{label:"subscription",icon:Bi,color:"#00C7BE"},INSTALLMENT:{label:"installment",icon:zi$1,color:"#32ADE6"}},er={SAVED_TOKEN:{label:"savedToken",icon:T,color:"#76BB40"},COUNT:{label:"countBadge",icon:"countBadge",color:"#76BB40"}};styled$1("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:e.spacing(.5)}));styled$1("img")(()=>({width:"35px",height:"16px",display:"block"}));styled$1("span")(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"14.67px",height:"10px"}));styled$1("img")(()=>({maxWidth:"100%",width:"100%"}));var tr=styled$1("span")(({theme:e})=>({fontSize:"11px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"2px 0",color:e.palette.text.primary})),or=styled$1("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",paddingInline:"8px"})),qd=styled$1(motion.span,{shouldForwardProp:e=>e!=="sourcesCount"})(({theme:e,sourcesCount:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minWidth:`${t*6+36}px `,minHeight:"24px",cursor:"pointer",backgroundColor:e.palette.background.paper,borderRadius:"16px"})),Kd=styled$1("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:e.spacing(1)})),aa=styled$1("img")(()=>({maxWidth:"36px",maxHeight:"24px"})),nr=(e,t)=>({start:{x:e*6,transition:{duration:.3,type:"tween",ease:"easeIn"}},animate:{x:t?e*t:e*39,transition:{duration:.3,type:"tween",ease:"easeOut"}}}),rr=styled$1(motion.span)(({order:e})=>({zIndex:(e||0)+1}));function Jg({type:e,hasSavedCard:t,totalPaymentsCount:o,isTextShown:n,...r}){let s=useTheme(),{t:i}=useTranslation(),a$1=useMemo(()=>[...t?[er.SAVED_TOKEN]:[],...(o||0)>0?[er.COUNT]:[],...e&&Qn[e]?[Qn[e]]:[]],[t,o,e]),l=u=>n?jsx(rr,{"data-testid":"AgreementCell_countBadge",order:u,variants:nr(u,n?85:0),children:jsx(p,{title:i("totalPaymentCount",{amount:b$b(o)}),children:jsx(or,{children:jsxs(tr,{"data-testid":"AgreementCell_totalPaymentsCount",sx:{color:er.COUNT.color},children:["x",o]})})})},u):jsx(a,{value:o,index:u},u),p$1=a$1.map((u,C)=>u.label==="countBadge"?l(C):jsx(p,{title:i(u.label),children:jsx(rr,{order:C,variants:nr(C,C>1&&n?62:0),sx:{width:n?"auto":"36px"},children:n?jsx(or,{children:jsx(tr,{"data-testid":"AgreementCell_agreementType",sx:{color:u.color},children:i(u.label)})}):jsx(aa,{src:u.icon,alt:"agreement"})},u.color)},u.color)),d=p$1.length,m=jsx(p,{title:"No agreement",children:jsx(rr,{order:0,variants:nr(0,0),sx:{width:n?"auto":"36px"},children:n?jsx(or,{children:jsx(tr,{"data-testid":"AgreementCell_agreementType",sx:{color:s.palette.text.secondary},children:"No agreement"})}):jsx(aa,{src:Fi,alt:"no-agreement"})},"no-agreement")},"no-agreement");return jsx(v,{...r,children:jsx(Kd,{"data-testid":"AgreementCell",children:jsx(qd,{layout:true,className:"payment-sources-container","data-testid":"AgreementCell_PaymentSourcesContainer",whileHover:"animate",animate:"start",sourcesCount:d||0,variants:{animate:{width:(d||0)*38}},children:p$1?.length>0?p$1:m})})})}var Zg=Jg;var Jd=styled("img")(()=>({width:"12.67px",height:"15px"}));styled("span")(({theme:e})=>({border:`1px solid ${e.palette.divider}`,borderRadius:"12px",backgroundColor:e.palette.background.paper,width:"36px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center"}));function ex({hasAuth:e,tooltip:t,isTextShown:o,align:n,...r}){return jsx(v,{style:{textAlign:n||"center",overflow:"visible",display:"flex",width:"100%",justifyContent:n==="left"?"flex-start":"center"},...r,children:e?jsx(p,{title:t,children:jsx(ht,{"data-testid":"AuthCell_BadgeWrapper",children:o?jsx(Z,{"data-testid":"AuthCell_TextLabel",sx:{minWidth:"max-content"},children:t}):jsx(Jd,{src:na$1,alt:"icon","data-testid":"AuthCell_AuthIcon"})})}):null})}var tx=ex;var Zd=styled$1("img")(()=>({width:"16px",height:"16px"})),Qd=styled$1("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:e.spacing(.5)})),ec=styled$1("span")(({theme:e})=>({display:"flex",paddingInline:e.spacing(1),paddingBlock:e.spacing(.5),alignItems:"center",justifyContent:"center",gap:e.spacing(.5),borderRadius:"56px",background:`${e.palette.info.dark}1a`})),tc=styled$1("span")(({theme:e})=>({color:e.palette.info.dark,fontSize:"14px",lineHeight:"16.8px"}));function ox({walletId:e,country:t,showCountry:o=true,...n}){return jsx(v,{style:{textAlign:"center",overflow:"visible"},...n,children:jsxs(Qd,{children:[o&&t&&jsx(p,{title:fa(t),children:jsx(b$8,{countryCode:t})}),jsxs(ec,{children:[jsx(Zd,{src:cc$1,alt:"wallet-icon"}),e&&jsxs(tc,{children:["\xB7\xB7\xB7\xB7 ",e?.substring((e?.length||0)-4)]})]})]})})}var nx=ox;function nc(e){return jsx(sl,{...e,children:jsx(p,{title:e.tooltip||e.children,children:e.children})})}var ac=styled(da)(()=>({display:"flex",alignItems:"center",gap:"8px"})),sc=styled(da)(({theme:e})=>({fontSize:"14px",color:e.palette.text.primary,lineHeight:"16.8px"}));function GD({currency:e}){return jsxs(ac,{children:[jsx(b$8,{currencyCode:e}),jsx(sc,{children:e})]})}var la={acquirer:qb,generic:rb$1,payment:ae,gateway:wn$1,order:$d$1};var pc=styled$1("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:e.spacing(1)})),dc=styled$1("img")(()=>({maxWidth:"36px",maxHeight:"24px"})),cc=styled$1(motion.span,{shouldForwardProp:e=>e!=="sourcesCount"})(({sourcesCount:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minWidth:`${e*6+36}px `,minHeight:"24px",cursor:"pointer",borderRadius:"16px"})),mc=styled$1("span")(()=>({fontSize:"11px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"2px 0"})),uc=styled$1("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",paddingInline:"4px"}));styled$1("div")(()=>({height:"18px"}));var fc=(e,t,o)=>({start:{x:e*6,transition:{duration:.3,type:"tween",ease:"easeIn"}},animate:{x:o?e*o:e*39,transition:{duration:.3,type:"tween",ease:"easeOut"},boxShadow:t}});var px=120,dx=50;function cx({isTextShown:e,getTooltipTitle:t,...o}){let[n,r]=useState(false),[s,i]=useState(null),a=useRef(null),l=useRef(false),p$1=useRef(false),d=useRef(null),m=useTheme(),u=useMemo(()=>Object.keys(la).filter(h=>!!o[h]),[o]),C=()=>{d.current&&(clearTimeout(d.current),d.current=null);},g=()=>{i(a.current);},b=()=>{l.current=true,p$1.current=false,r(true),i(null),C(),d.current=setTimeout(()=>{p$1.current=true,g();},px);};useEffect(()=>()=>C(),[]);let S=()=>{l.current||b();},T=()=>{C(),a.current=null,l.current=false,p$1.current=false,i(null),r(false);},c=h=>{if(a.current=h,p$1.current){C(),i(h);return}l.current||b();},x=()=>{a.current=null,p$1.current&&(C(),d.current=setTimeout(g,dx));},I=u.length;return jsx(v,{...o,children:jsx(pc,{children:I>0?jsx(cc,{layout:true,className:"reference-sources-container",whileHover:"animate",onHoverStart:S,onHoverEnd:T,animate:n?"animate":"start",sourcesCount:I,variants:{animate:{width:I*38}},style:{zIndex:29},children:u.map((h,w)=>{let y=t?.(h)||`${gc(h)} - ${o[h]}`,A=s===h;return jsx(Qo,{order:w,variants:fc(w,m.shadows[4],e?83:0),sx:{width:e?"79px":"36px"},onMouseEnter:()=>c(h),onMouseLeave:x,children:jsx(p,{open:A,disableHoverListener:true,disableInteractive:true,title:A?y:"",children:e?jsx(uc,{children:jsx(mc,{children:gc(h)})}):jsx(dc,{src:la[h],alt:h,sx:{...h==="order"&&{width:"11.82px"}}})})},`${h}-${w}`)})}):null})})}var mx=cx;var xc=styled$1("div",{shouldForwardProp:e=>!["licenseNumber","hasClick"].includes(e)})(({theme:e,licenseNumber:t,hasClick:o})=>({display:"flex",alignItems:"center",gap:e.spacing(1),border:"1px solid #F2F2F2",borderRadius:"44px",padding:"3.5px 5px",height:"24px",cursor:o?"pointer":"default",...t&&{padding:"3.5px 8px"}})),yc=styled$1(da)(()=>({display:"flex",alignItems:"center",gap:"4px",overflow:"hidden",width:"100%"}));styled$1("img")(()=>({width:"16px",height:"11.73px"}));var hc=styled$1("div",{shouldForwardProp:e=>!["licenseNumber"].includes(e)})(({theme:e,licenseNumber:t})=>({fontSize:"14px",fontWeight:400,color:e.palette.text.primary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",margin:"0",width:"74px",...!t&&{color:"#B1B1B1",width:"84px"}})),Ic=styled$1("img")(()=>({width:"10.5px",height:"10.5px"})),bc=styled$1("div")({marginLeft:"auto",width:"auto"});var Sc={incomplete:Jj,complete:Ij,reviewed:Ij,verified:Kj};function wc({entity:e,country:t,verificationStatus:o,licenseNumber:n,hideStatus:r,...s}){let i=Sc[o??"incomplete"];return jsx(v,{...s,sx:{cursor:s?.onClick?"pointer":"default"},children:jsx(p,{title:e,children:jsx(xc,{hasClick:!!s?.onClick,licenseNumber:n,children:jsxs(yc,{children:[jsx(p,{title:t?fa(t):"",children:jsx(b$8,{countryCode:t})}),jsx(hc,{licenseNumber:n,children:n||"Not Available"}),!r&&jsx(bc,{children:jsx(Ic,{src:i})})]})})})})}function Ac({marketPlaceIcon:e,marketPlaceName:t,...o}){return jsx(v,{...o,children:jsx(Box,{sx:{display:"flex",alignItems:"center",gap:1,minWidth:0},children:t&&jsxs(Fragment,{children:[jsx(Box,{sx:{width:"24px",height:"24px",border:"1px solid #F2F2F2",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:e??jsx("img",{src:Tb,alt:"marketplace",style:{maxWidth:"18px",maxHeight:"18px",objectFit:"cover"}})}),jsx(Typography,{noWrap:true,sx:{fontSize:"14px",fontWeight:400},children:t})]})})})}var Pc={incomplete:Jj,complete:Ij,reviewed:Ij,verified:Kj};var vc=styled$1("div")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1),border:"1.029px solid #F2F2F2",borderRadius:"44px",padding:"4px 8px",lineHeight:"120%"})),Ec=styled$1("div")(({theme:e})=>({fontSize:"14px",fontWeight:400,color:e.palette.text.primary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"84px"})),Vc=styled$1("img")(()=>({width:"10.5px",height:"10.5px"})),Mc=styled$1("span")(({theme:e})=>({fontSize:"9.5px",fontWeight:400,color:e.palette.common.white,backgroundColor:e.palette.grey[700],borderRadius:"4px",padding:"1px 2px"})),Rc=styled$1("div")({width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"}),Lc=styled$1("div")({display:"flex",alignItems:"center",gap:"8px"}),kc=styled$1("div")({fontWeight:400,fontSize:14,lineHeight:"120%",letterSpacing:0,color:"#B1B1B1",textAlign:"center",width:"100%"});function Dc({id:e,status:t,count:o,name:n,...r}){let s=Pc[t??"incomplete"];return jsx(v,{...r,sx:{cursor:"pointer"},children:jsx(p,{title:n,children:jsx(vc,{children:e?jsxs(Rc,{children:[jsx(Ec,{children:e}),jsxs(Lc,{children:[jsx(Vc,{src:s}),o>1&&jsx("div",{children:jsxs(Mc,{children:["+",o-1]})})]})]}):jsx(kc,{children:"Not Available"})})})})}var Nc=styled$1("div",{shouldForwardProp:e=>!["hasClick"].includes(e)})(({theme:e,hasClick:t})=>({display:"flex",alignItems:"center",gap:e.spacing(1),border:"1px solid #F2F2F2",borderRadius:"44px",padding:"3.5px 5px",height:"24px",cursor:t?"pointer":"default"})),Bc=styled$1(da)(()=>({display:"flex",alignItems:"center",gap:"4px",overflow:"hidden",width:"100%"})),Wc=styled$1("p",{shouldForwardProp:e=>!["brandName"].includes(e)})(({theme:e,brandName:t})=>({fontSize:"14px",fontWeight:400,color:e.palette.text.primary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"74px",margin:"0",...!t&&{color:"#B1B1B1",width:"84px"}})),Fc=styled$1("img")(()=>({width:"10.5px",height:"10.5px"})),Oc=styled$1("div")({marginLeft:"auto",width:"auto"});var Hc={incomplete:Jj,complete:Ij,reviewed:Ij,verified:Kj};function _c({brand:e,verificationStatus:t,hideStatus:o,brandLogo:n,...r}){let s=Hc[t??"incomplete"];return jsx(v,{...r,children:jsx(p,{title:e.name,children:jsx(Nc,{hasClick:!!r.onClick,children:jsxs(Bc,{children:[n,jsx(Wc,{brandName:e.name,children:e.name||"Not Available"}),!o&&jsx(Oc,{children:jsx(Fc,{src:s})})]})})})})}var Uc=styled$1("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:e.spacing(1)})),zc=styled$1("img")(()=>({maxWidth:"36px",maxHeight:"16px"})),Gc=styled$1(motion.span,{shouldForwardProp:e=>e!=="sourcesCount"})(({theme:e,sourcesCount:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minWidth:`${t*6+36}px `,minHeight:"24px",cursor:"default",backgroundColor:e.palette.background.paper,borderRadius:"16px"}));styled$1("span")(()=>({fontSize:"11px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"2px 0"}));styled$1("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",paddingInline:"4px"}));var $c=(e,t,o)=>({start:{x:e*6,transition:{duration:.3,type:"tween",ease:"easeIn"}},animate:{x:t?e*t:e*39,transition:{duration:.3,type:"tween",ease:"easeOut"},...o&&{boxShadow:"7px 0px 8px 0px #F2F2F2"}}}),Yc=styled$1(Box)(()=>({display:"flex",gap:"4px",maxWidth:"440px",justifyContent:"space-between",height:"18px"}));var Sx=e=>!e.startsWith("http://")&&!e.startsWith("https://"),lr=e=>/^https?:\/\//i.test(e),jc=(e,t)=>{switch(t){case "website":return e;case "physical_store":case "call_center":return null;case "linkedin":case "instagram":case "twitter":case "social_media":return wx(e,t);case "ios":case "android":case "mobile_app":return Tx(e,t);default:return e}},wx=(e,t)=>{let o=e.toLowerCase();return t==="linkedin"?o.includes("linkedin.com")||o.includes("linked.com")?e:lr(e)?null:`https://linkedin.com/company/${e}`:t==="instagram"?o.includes("instagram.com")?e:lr(e)?null:`https://instagram.com/${e}`:t==="twitter"?o.includes("twitter.com")||o.includes("x.com")?e:lr(e)?null:`https://x.com/${e}`:null},Tx=(e,t)=>e.toLowerCase().includes("apps.apple.com")&&t==="ios"?e:t==="android"?lr(e)?e:`https://play.google.com/store/apps/details?id=${e}`:null,qc=e=>{!e||typeof e!="string"||window.open(Sx(e)?`https://${e}`:e,"_blank","noopener,noreferrer");};function Ax({channels:e,...t}){let o=e?.filter(r=>!!r.address)?.map((r,s)=>{let i=r.address,a=r.code?.replace(/_/g,""),l=s===e?.length-1,p$1=jc(r.address??"",r.code??"");return jsx(p,{title:i,children:jsx(Qo,{order:s,variants:$c(s,0,l),sx:{width:"36px",cursor:p$1?"pointer":"default"},onClick:()=>{r?.address&&qc(p$1);},children:jsx(zc,{src:r.logo,alt:a})})},`${r}-${s}`)}),n=o?.length||0;return jsx(v,{...t,children:jsx(Uc,{children:o?.length>0?jsx(Gc,{layout:true,className:"sales-channels-container",whileHover:"animate",animate:"start",sourcesCount:n||0,variants:{animate:{width:(n||0)*38}},style:{zIndex:29},children:o}):null})})}var Px=Ax;function Rx({channels:e}){let t=useRef(null),[o,n]=useState(false),[r,s]=useState(null),i=!!r;useEffect(()=>{t.current&&n(t.current.scrollHeight>20);},[e]);let a=useMemo(()=>(e||[]).filter(l=>!!l.address),[e]);return jsxs(Yc,{children:[jsx(da,{sx:{display:"flex",flexWrap:"wrap",gap:o?"8px":"4px"},ref:t,children:a.map(l=>jsxs(b$1,{copyTrigger:"click",copyText:l.address,sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"367px","& div":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"367px"}},children:[l.name?.en,": ",l.address]},l.id))}),o&&jsx(da,{onClick:l=>{s(l.currentTarget.parentElement);},sx:{height:"18px"},children:jsx(b$1,{sx:{minWidth:25,borderRadius:"24px",overflow:"hidden"},children:"..."})}),jsx(Mx,{open:i,anchorEl:r,sx:{minWidth:r?.clientWidth},onClose:()=>{s(null);},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{style:{maxWidth:"unset",minWidth:r?.clientWidth,marginTop:"22px"}}},children:jsx(da,{sx:{display:"flex",flexDirection:"column",gap:"4px",padding:"4px"},children:a.map(l=>jsxs(b$1,{copyTrigger:"click",copyText:l.address,children:[l.name?.en,": ",l.address]},l.id))})})]})}var Lx=Rx;var kx=(u=>(u.ABANDONED="ABANDONED",u.IN_PROGRESS="IN_PROGRESS",u.VOID="VOID",u.CANCELLED="CANCELLED",u.CAPTURED="CAPTURED",u.INITIATED="INITIATED",u.FAILED="FAILED",u.DECLINED="DECLINED",u.RESTRICTED="RESTRICTED",u.TIMEDOUT="TIMEDOUT",u.UNKNOWN="UNKNOWN",u.AUTHORIZED="AUTHORIZED",u))(kx||{});var Xc={CYBERSOURCE:tm,MPGS:um$1,NETCETERA:vm,APPLEPAY:wm$1,TAP3DS:xm$1,FSS:Dm,BENEFIT:zm,QPAY:Lm,POSTPAY:Km,BENEFITPAY:ym,MEEZA:Fm,STC_PAY:Nm$1,NGENIUS:Gm,KNET:Em,PAYPAL:Jm$1,FAWRY:Cm,TPG:Rm$1,DEEMA:Bm$1,TPAY:Qm,"CAREEM PAY":Am,TABBY:Om,OMANNET:Im$1,NPG:Hm,SPG:Mm,TAMARA:Pm};var Zc=styled$1(da)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"24px",gap:"8px",padding:"4px 8px",borderRadius:"24px",border:`1px solid ${e.palette.divider}`,backgroundColor:e.palette.background.paper})),Qc=styled$1("img")(()=>({width:"100%",height:"100%",objectFit:"contain"}));function em({provider:e,...t}){let o=Xc[e];return o?jsx(Zc,{children:jsx(Qc,{src:o,alt:e})}):jsx(v,{...t,children:jsx(Z,{children:e})})}var om=8,Nx=16,qe=om*2+Nx,nm=100,rm=6,Bx=qe+rm+nm,im=styled(v)(()=>({position:"relative",overflow:"visible",width:qe,minWidth:qe,maxWidth:qe,display:"inline-flex",padding:0})),am=styled(da)(()=>({position:"relative",width:qe,height:24,flexShrink:0,overflow:"visible"})),sm=styled(da,{shouldForwardProp:e=>e!=="hasLabel"})(({theme:e,hasLabel:t})=>({position:"absolute",top:0,left:0,width:qe,minWidth:qe,maxWidth:qe,height:24,display:"inline-flex",alignItems:"center",gap:rm,paddingInline:om,borderRadius:"24px",border:`1px solid ${e.palette.divider}`,backgroundColor:e.palette.background.paper,boxSizing:"border-box",cursor:"pointer",overflow:"hidden",transition:e.transitions.create(["max-width","box-shadow"]),"& img":{flexShrink:0},...t&&{"&:hover":{width:"max-content",maxWidth:Bx,zIndex:100,boxShadow:"0px 0px 16px 0px #00000021","& .link-cell-label":{maxWidth:nm,opacity:1}}}})),lm=styled("span")(({theme:e})=>({display:"inline-block",maxWidth:0,opacity:0,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",fontSize:12,lineHeight:"16px",color:e.palette.text.primary,transition:e.transitions.create(["max-width","opacity"],{duration:e.transitions.duration.shorter})}));function Fx({url:e,label:t}){let o=l(),n=()=>{try{ua(e),o.success("Copied!");}catch{o.error("Failed to copy");}};return e?jsx(im,{children:jsx(am,{children:jsxs(sm,{hasLabel:!!t,onClick:n,children:[jsx(d,{src:Ll$1,alt:"link"}),t&&jsx(lm,{className:"link-cell-label",children:t})]})})}):null}var Ox=memo(Fx);
2
+ export{mx as $,yi as $a,LV as A,Te as Aa,Ln as Ab,yd as B,$u as Ba,kn as Bb,hd as C,dp as Ca,Lt as Cb,IC as D,M as Da,Wi as Db,TC as E,ye as Ea,Oi as Eb,vC as F,An as Fa,Hi as Fb,Co as G,sf as Ga,_i as Gb,Zi as H,di as Ha,Gi as Hb,xR as I,lf as Ia,$i as Ib,tg as J,pf as Ja,co as Jb,ag as K,df as Ka,ud as Kb,cg as L,Pn as La,Cg as M,it as Ma,dL as N,he as Na,Sg as O,_p as Oa,Ag as P,no as Pa,Rg as Q,ci as Qa,ik as R,vn as Ra,ck as S,mi as Sa,xk as T,En as Ta,wk as U,cf as Ua,Mk as V,Rt as Va,Zg as W,ro as Wa,tx as X,Ci as Xa,nx as Y,io as Ya,nc as Z,gi as Za,GD as _,xi as _a,v as a,wc as aa,hi as ab,Im as b,Ac as ba,ee as bb,py as c,Dc as ca,Ii as cb,qt as d,_c as da,bi as db,ht as e,Px as ea,Si as eb,dy as f,Lx as fa,wi as fb,ol as g,kx as ga,fi as gb,cy as h,em as ha,ao as hb,nl as i,Ox as ia,mf as ib,rl as j,km as ja,Ti as jb,Z as k,Bm as ka,Ai as kb,il as l,Wm as la,Pi as lb,al as m,bl as ma,Gp as mb,sl as n,Zm as na,Vn as nb,my as o,ou as oa,Mn as ob,Ze as p,jr as pa,uf as pb,Fe as q,pu as qa,Rn as qb,ll as r,Jt as ra,ff as rb,Qo as s,uu as sa,vi as sb,uy as t,gu as ta,Ei as tb,wm as u,bu as ua,Vi as ub,fd as v,Pu as va,$p as vb,Cd as w,Lu as wa,Cf as wb,gd as x,yn as xa,gf as xb,qi as y,Ql as ya,xf as yb,_n as z,ie as za,Mi as zb};
@@ -1 +1 @@
1
- export{Gb as ColumnViewsPicker,Ib as CreateViewDialog,Eb as CustomViews,Fb as DefaultViews,Hb as ViewsDropdown,_a as areAllColumnsSelected,eb as areAllCurrentColumnsSelected,hb as areColumnsEqual,$a as areSomeColumnsSelected,fb as areSomeCurrentColumnsSelected,zb as buildFullTemplateLayouts,xb as buildRequiredColumnView,Ha as convertColumnsToLayoutSection,qb as convertTemplateToColumnsView,rb as convertTemplatesToColumnsView,Pa as countCustomTemplates,Qa as countCustomViewMenuItems,Ja as createCustomViewMenuItem,bb as deepCloneColumns,Wa as getColumnCheckState,nb as getColumnOrder,Ga as getColumnsByMode,vb as getLayoutCodesForMode,Ia as getLayoutDataFromTemplates,wb as getOtherModeSectionCode,mb as getSubmenuFromTemplateLayout,Ta as getSubmenuItems,Va as getSubmenuItemsForDisplay,La as getTemplateRole,ob as handleTemplateUpdate,yb as hasLayoutSectionForMode,Ua as hasSubmenu,kb as initializeCreateColumns,lb as initializeCreateColumnsWithCurrentState,jb as initializeEditingColumns,ub as isCheckboxInteractionTarget,Oa as isCustomTemplate,Na as isCustomView,Da as isDateColumn,Ea as isIndexColumn,Ma as isPresetView,ab as isValidTemplateName,Sa as mapTemplatesToMenuItems,gb as normalizeColumnsSelected,sb as replaceTemplateInList,ib as resetColumnsToDefault,Ka as setViewAsDefault,pb as templateToViewMenuItem,Za as toggleAllColumns,db as toggleAllCurrentColumns,Xa as toggleColumn,cb as toggleSingleColumn,Ya as toggleSubItem,Fa as transformLayoutToColumns,Ra as transformTemplatesToViewMenuItems,tb as updateCurrentTemplate,Db as useCustomTableViews,Cb as useSubmenuHover,Ab as useViewsManager,Bb as useViewsMenu}from'../../_chunks/chunk-KPRWONLJ.js';import'../../_chunks/chunk-YFL4D5VW.js';import'../../_chunks/chunk-B2OUV4UE.js';import'../../_chunks/chunk-ZPYQLESN.js';import'../../_chunks/chunk-XK5TVDKR.js';import'../../_chunks/chunk-D7Q6GITS.js';import'../../_chunks/chunk-MW3DZA7R.js';import'../../_chunks/chunk-2BU56HDE.js';import'../../_chunks/chunk-5FR3LFXC.js';import'../../_chunks/chunk-PF4KBDPV.js';import'../../_chunks/chunk-2I5L7ASP.js';import'../../_chunks/chunk-ISC5KT5E.js';import'../../_chunks/chunk-673TILTX.js';import'../../_chunks/chunk-JYVB2MAR.js';import'../../_chunks/chunk-XVIGXV43.js';import'../../_chunks/chunk-YMEGCVZ4.js';import'../../_chunks/chunk-G3QDXDRW.js';import'../../_chunks/chunk-637LQKFX.js';import'../../_chunks/chunk-ALG4KR24.js';import'../../_chunks/chunk-3TZY3PB4.js';import'../../_chunks/chunk-4SDKOPUI.js';import'../../_chunks/chunk-R2J57DPG.js';import'../../_chunks/chunk-UXDNAGHP.js';import'../../_chunks/chunk-YIVUI2NW.js';import'../../_chunks/chunk-PYVM4SKE.js';import'../../_chunks/chunk-7H5HCDY6.js';import'../../_chunks/chunk-U6HZMYNW.js';import'../../_chunks/chunk-EAAJJGUI.js';import'../../_chunks/chunk-TJMY7Q26.js';import'../../_chunks/chunk-LTTRVHN5.js';import'../../_chunks/chunk-L2CUT2AZ.js';import'../../_chunks/chunk-MUBZJUHH.js';import'../../_chunks/chunk-K5QISMYX.js';import'../../_chunks/chunk-D4FXMX5O.js';import'../../_chunks/chunk-RW26DPMJ.js';import'../../_chunks/chunk-TRXHMROX.js';import'../../_chunks/chunk-DIN6W5Q6.js';import'../../_chunks/chunk-AGNZUPPF.js';import'../../_chunks/chunk-RGQ5AGHK.js';import'../../_chunks/chunk-JBDIMDMZ.js';import'../../_chunks/chunk-U2JLXSW5.js';import'../../_chunks/chunk-247ZI55C.js';import'../../_chunks/chunk-ODDV623H.js';import'../../_chunks/chunk-EKOQHUCL.js';import'../../_chunks/chunk-OJO5GAN7.js';import'../../_chunks/chunk-S7AZOXFD.js';import'../../_chunks/chunk-SSK26DK7.js';import'../../_chunks/chunk-XKEBWPJM.js';import'../../_chunks/chunk-GQZXKKCE.js';import'../../_chunks/chunk-DHSYX6K2.js';import'../../_chunks/chunk-ETLDR6XW.js';import'../../_chunks/chunk-LKYA6XFU.js';import'../../_chunks/chunk-JBE2LXDH.js';import'../../_chunks/chunk-YG4CT6O4.js';import'../../_chunks/chunk-YZF24X6P.js';import'../../_chunks/chunk-M3TZIB3C.js';import'../../_chunks/chunk-W2FF6EIY.js';import'../../_chunks/chunk-EM7XGO3A.js';import'../../_chunks/chunk-F7I3KDV5.js';import'../../_chunks/chunk-U3ZJP2GE.js';import'../../_chunks/chunk-FDYQ25JQ.js';export{Ua as CUSTOM_VIEW,Pa as DATE_COLUMN_CONFIG,Ta as DEFAULT_VIEW,Va as DEFAULT_VIEW_OPTIONS,Ka as DIALOG_HEIGHT,Ja as DIALOG_WIDTH,Oa as INDEX_COLUMN_CONFIG,La as MAX_CUSTOM_VIEWS,Ma as TEMPLATE_NAME_MAX_LENGTH,Na as TableViewColumnNames}from'../../_chunks/chunk-XBJ4RS2B.js';import'../../_chunks/chunk-TIPJC5YT.js';import'../../_chunks/chunk-EYLBXWXJ.js';import'../../_chunks/chunk-LS57WE6K.js';
1
+ export{Gb as ColumnViewsPicker,Ib as CreateViewDialog,Eb as CustomViews,Fb as DefaultViews,Hb as ViewsDropdown,_a as areAllColumnsSelected,eb as areAllCurrentColumnsSelected,hb as areColumnsEqual,$a as areSomeColumnsSelected,fb as areSomeCurrentColumnsSelected,zb as buildFullTemplateLayouts,xb as buildRequiredColumnView,Ha as convertColumnsToLayoutSection,qb as convertTemplateToColumnsView,rb as convertTemplatesToColumnsView,Pa as countCustomTemplates,Qa as countCustomViewMenuItems,Ja as createCustomViewMenuItem,bb as deepCloneColumns,Wa as getColumnCheckState,nb as getColumnOrder,Ga as getColumnsByMode,vb as getLayoutCodesForMode,Ia as getLayoutDataFromTemplates,wb as getOtherModeSectionCode,mb as getSubmenuFromTemplateLayout,Ta as getSubmenuItems,Va as getSubmenuItemsForDisplay,La as getTemplateRole,ob as handleTemplateUpdate,yb as hasLayoutSectionForMode,Ua as hasSubmenu,kb as initializeCreateColumns,lb as initializeCreateColumnsWithCurrentState,jb as initializeEditingColumns,ub as isCheckboxInteractionTarget,Oa as isCustomTemplate,Na as isCustomView,Da as isDateColumn,Ea as isIndexColumn,Ma as isPresetView,ab as isValidTemplateName,Sa as mapTemplatesToMenuItems,gb as normalizeColumnsSelected,sb as replaceTemplateInList,ib as resetColumnsToDefault,Ka as setViewAsDefault,pb as templateToViewMenuItem,Za as toggleAllColumns,db as toggleAllCurrentColumns,Xa as toggleColumn,cb as toggleSingleColumn,Ya as toggleSubItem,Fa as transformLayoutToColumns,Ra as transformTemplatesToViewMenuItems,tb as updateCurrentTemplate,Db as useCustomTableViews,Cb as useSubmenuHover,Ab as useViewsManager,Bb as useViewsMenu}from'../../_chunks/chunk-VQU5K2ZY.js';import'../../_chunks/chunk-B2OUV4UE.js';import'../../_chunks/chunk-XK5TVDKR.js';import'../../_chunks/chunk-ZPYQLESN.js';import'../../_chunks/chunk-D7Q6GITS.js';import'../../_chunks/chunk-GD5PXPUD.js';import'../../_chunks/chunk-2BU56HDE.js';import'../../_chunks/chunk-PF4KBDPV.js';import'../../_chunks/chunk-2I5L7ASP.js';import'../../_chunks/chunk-5FR3LFXC.js';import'../../_chunks/chunk-ISC5KT5E.js';import'../../_chunks/chunk-7H5HCDY6.js';import'../../_chunks/chunk-673TILTX.js';import'../../_chunks/chunk-YMEGCVZ4.js';import'../../_chunks/chunk-JYVB2MAR.js';import'../../_chunks/chunk-YFL4D5VW.js';import'../../_chunks/chunk-G3QDXDRW.js';import'../../_chunks/chunk-K5QISMYX.js';import'../../_chunks/chunk-R2J57DPG.js';import'../../_chunks/chunk-637LQKFX.js';import'../../_chunks/chunk-3TZY3PB4.js';import'../../_chunks/chunk-4SDKOPUI.js';import'../../_chunks/chunk-UXDNAGHP.js';import'../../_chunks/chunk-YIVUI2NW.js';import'../../_chunks/chunk-PYVM4SKE.js';import'../../_chunks/chunk-XVIGXV43.js';import'../../_chunks/chunk-JBDIMDMZ.js';import'../../_chunks/chunk-EAAJJGUI.js';import'../../_chunks/chunk-TJMY7Q26.js';import'../../_chunks/chunk-U6HZMYNW.js';import'../../_chunks/chunk-LTTRVHN5.js';import'../../_chunks/chunk-L2CUT2AZ.js';import'../../_chunks/chunk-ALG4KR24.js';import'../../_chunks/chunk-XKEBWPJM.js';import'../../_chunks/chunk-D4FXMX5O.js';import'../../_chunks/chunk-TRXHMROX.js';import'../../_chunks/chunk-RGQ5AGHK.js';import'../../_chunks/chunk-DIN6W5Q6.js';import'../../_chunks/chunk-RW26DPMJ.js';import'../../_chunks/chunk-U2JLXSW5.js';import'../../_chunks/chunk-MUBZJUHH.js';import'../../_chunks/chunk-247ZI55C.js';import'../../_chunks/chunk-EM7XGO3A.js';import'../../_chunks/chunk-OJO5GAN7.js';import'../../_chunks/chunk-EKOQHUCL.js';import'../../_chunks/chunk-SSK26DK7.js';import'../../_chunks/chunk-S7AZOXFD.js';import'../../_chunks/chunk-ODDV623H.js';import'../../_chunks/chunk-GQZXKKCE.js';import'../../_chunks/chunk-DHSYX6K2.js';import'../../_chunks/chunk-ETLDR6XW.js';import'../../_chunks/chunk-LKYA6XFU.js';import'../../_chunks/chunk-JBE2LXDH.js';import'../../_chunks/chunk-YG4CT6O4.js';import'../../_chunks/chunk-M3TZIB3C.js';import'../../_chunks/chunk-W2FF6EIY.js';import'../../_chunks/chunk-YZF24X6P.js';import'../../_chunks/chunk-AGNZUPPF.js';import'../../_chunks/chunk-F7I3KDV5.js';import'../../_chunks/chunk-U3ZJP2GE.js';import'../../_chunks/chunk-FDYQ25JQ.js';export{Ua as CUSTOM_VIEW,Pa as DATE_COLUMN_CONFIG,Ta as DEFAULT_VIEW,Va as DEFAULT_VIEW_OPTIONS,Ka as DIALOG_HEIGHT,Ja as DIALOG_WIDTH,Oa as INDEX_COLUMN_CONFIG,La as MAX_CUSTOM_VIEWS,Ma as TEMPLATE_NAME_MAX_LENGTH,Na as TableViewColumnNames}from'../../_chunks/chunk-XBJ4RS2B.js';import'../../_chunks/chunk-TIPJC5YT.js';import'../../_chunks/chunk-EYLBXWXJ.js';import'../../_chunks/chunk-LS57WE6K.js';
@@ -1 +1 @@
1
- export{Kb as ListHeader}from'../../_chunks/chunk-KPRWONLJ.js';import'../../_chunks/chunk-YFL4D5VW.js';import'../../_chunks/chunk-B2OUV4UE.js';import'../../_chunks/chunk-ZPYQLESN.js';import'../../_chunks/chunk-XK5TVDKR.js';import'../../_chunks/chunk-D7Q6GITS.js';import'../../_chunks/chunk-MW3DZA7R.js';import'../../_chunks/chunk-2BU56HDE.js';import'../../_chunks/chunk-5FR3LFXC.js';import'../../_chunks/chunk-PF4KBDPV.js';import'../../_chunks/chunk-2I5L7ASP.js';import'../../_chunks/chunk-ISC5KT5E.js';import'../../_chunks/chunk-673TILTX.js';import'../../_chunks/chunk-JYVB2MAR.js';import'../../_chunks/chunk-XVIGXV43.js';import'../../_chunks/chunk-YMEGCVZ4.js';import'../../_chunks/chunk-G3QDXDRW.js';import'../../_chunks/chunk-637LQKFX.js';import'../../_chunks/chunk-ALG4KR24.js';import'../../_chunks/chunk-3TZY3PB4.js';import'../../_chunks/chunk-4SDKOPUI.js';import'../../_chunks/chunk-R2J57DPG.js';import'../../_chunks/chunk-UXDNAGHP.js';import'../../_chunks/chunk-YIVUI2NW.js';import'../../_chunks/chunk-PYVM4SKE.js';import'../../_chunks/chunk-7H5HCDY6.js';import'../../_chunks/chunk-U6HZMYNW.js';import'../../_chunks/chunk-EAAJJGUI.js';import'../../_chunks/chunk-TJMY7Q26.js';import'../../_chunks/chunk-LTTRVHN5.js';import'../../_chunks/chunk-L2CUT2AZ.js';import'../../_chunks/chunk-MUBZJUHH.js';import'../../_chunks/chunk-K5QISMYX.js';import'../../_chunks/chunk-D4FXMX5O.js';import'../../_chunks/chunk-RW26DPMJ.js';import'../../_chunks/chunk-TRXHMROX.js';import'../../_chunks/chunk-DIN6W5Q6.js';import'../../_chunks/chunk-AGNZUPPF.js';import'../../_chunks/chunk-RGQ5AGHK.js';import'../../_chunks/chunk-JBDIMDMZ.js';import'../../_chunks/chunk-U2JLXSW5.js';import'../../_chunks/chunk-247ZI55C.js';import'../../_chunks/chunk-ODDV623H.js';import'../../_chunks/chunk-EKOQHUCL.js';import'../../_chunks/chunk-OJO5GAN7.js';import'../../_chunks/chunk-S7AZOXFD.js';import'../../_chunks/chunk-SSK26DK7.js';import'../../_chunks/chunk-XKEBWPJM.js';import'../../_chunks/chunk-GQZXKKCE.js';import'../../_chunks/chunk-DHSYX6K2.js';import'../../_chunks/chunk-ETLDR6XW.js';import'../../_chunks/chunk-LKYA6XFU.js';import'../../_chunks/chunk-JBE2LXDH.js';import'../../_chunks/chunk-YG4CT6O4.js';import'../../_chunks/chunk-YZF24X6P.js';import'../../_chunks/chunk-M3TZIB3C.js';import'../../_chunks/chunk-W2FF6EIY.js';import'../../_chunks/chunk-EM7XGO3A.js';import'../../_chunks/chunk-F7I3KDV5.js';import'../../_chunks/chunk-U3ZJP2GE.js';import'../../_chunks/chunk-FDYQ25JQ.js';import'../../_chunks/chunk-XBJ4RS2B.js';import'../../_chunks/chunk-TIPJC5YT.js';import'../../_chunks/chunk-EYLBXWXJ.js';import'../../_chunks/chunk-LS57WE6K.js';
1
+ export{Kb as ListHeader}from'../../_chunks/chunk-VQU5K2ZY.js';import'../../_chunks/chunk-B2OUV4UE.js';import'../../_chunks/chunk-XK5TVDKR.js';import'../../_chunks/chunk-ZPYQLESN.js';import'../../_chunks/chunk-D7Q6GITS.js';import'../../_chunks/chunk-GD5PXPUD.js';import'../../_chunks/chunk-2BU56HDE.js';import'../../_chunks/chunk-PF4KBDPV.js';import'../../_chunks/chunk-2I5L7ASP.js';import'../../_chunks/chunk-5FR3LFXC.js';import'../../_chunks/chunk-ISC5KT5E.js';import'../../_chunks/chunk-7H5HCDY6.js';import'../../_chunks/chunk-673TILTX.js';import'../../_chunks/chunk-YMEGCVZ4.js';import'../../_chunks/chunk-JYVB2MAR.js';import'../../_chunks/chunk-YFL4D5VW.js';import'../../_chunks/chunk-G3QDXDRW.js';import'../../_chunks/chunk-K5QISMYX.js';import'../../_chunks/chunk-R2J57DPG.js';import'../../_chunks/chunk-637LQKFX.js';import'../../_chunks/chunk-3TZY3PB4.js';import'../../_chunks/chunk-4SDKOPUI.js';import'../../_chunks/chunk-UXDNAGHP.js';import'../../_chunks/chunk-YIVUI2NW.js';import'../../_chunks/chunk-PYVM4SKE.js';import'../../_chunks/chunk-XVIGXV43.js';import'../../_chunks/chunk-JBDIMDMZ.js';import'../../_chunks/chunk-EAAJJGUI.js';import'../../_chunks/chunk-TJMY7Q26.js';import'../../_chunks/chunk-U6HZMYNW.js';import'../../_chunks/chunk-LTTRVHN5.js';import'../../_chunks/chunk-L2CUT2AZ.js';import'../../_chunks/chunk-ALG4KR24.js';import'../../_chunks/chunk-XKEBWPJM.js';import'../../_chunks/chunk-D4FXMX5O.js';import'../../_chunks/chunk-TRXHMROX.js';import'../../_chunks/chunk-RGQ5AGHK.js';import'../../_chunks/chunk-DIN6W5Q6.js';import'../../_chunks/chunk-RW26DPMJ.js';import'../../_chunks/chunk-U2JLXSW5.js';import'../../_chunks/chunk-MUBZJUHH.js';import'../../_chunks/chunk-247ZI55C.js';import'../../_chunks/chunk-EM7XGO3A.js';import'../../_chunks/chunk-OJO5GAN7.js';import'../../_chunks/chunk-EKOQHUCL.js';import'../../_chunks/chunk-SSK26DK7.js';import'../../_chunks/chunk-S7AZOXFD.js';import'../../_chunks/chunk-ODDV623H.js';import'../../_chunks/chunk-GQZXKKCE.js';import'../../_chunks/chunk-DHSYX6K2.js';import'../../_chunks/chunk-ETLDR6XW.js';import'../../_chunks/chunk-LKYA6XFU.js';import'../../_chunks/chunk-JBE2LXDH.js';import'../../_chunks/chunk-YG4CT6O4.js';import'../../_chunks/chunk-M3TZIB3C.js';import'../../_chunks/chunk-W2FF6EIY.js';import'../../_chunks/chunk-YZF24X6P.js';import'../../_chunks/chunk-AGNZUPPF.js';import'../../_chunks/chunk-F7I3KDV5.js';import'../../_chunks/chunk-U3ZJP2GE.js';import'../../_chunks/chunk-FDYQ25JQ.js';import'../../_chunks/chunk-XBJ4RS2B.js';import'../../_chunks/chunk-TIPJC5YT.js';import'../../_chunks/chunk-EYLBXWXJ.js';import'../../_chunks/chunk-LS57WE6K.js';
@@ -1 +1 @@
1
- export{ja as AgreementIcon,la as AuthIcons,ka as AuthSourceAnimation,na as AuthorizationAutoIcons,oa as AuthorizedIcon,pa as ChargeStatusIcon,qa as CustomerInitiatedIcon,Ca as DestinationIcon,sa as DeviceIconChip,ta as DisputeIcon,ra as GeographyIcon,ua as IssuerIcon,va as PayoutIcon,wa as RefundIcon,ya as RefundStateIcon,xa as RefundStatusIcon,Aa as SourceIcon,Ba as SourceIcons,ma as VoidAutoIcon,za as getPaymentMethodKey}from'../../_chunks/chunk-KPRWONLJ.js';import'../../_chunks/chunk-YFL4D5VW.js';import'../../_chunks/chunk-B2OUV4UE.js';import'../../_chunks/chunk-ZPYQLESN.js';import'../../_chunks/chunk-XK5TVDKR.js';import'../../_chunks/chunk-D7Q6GITS.js';import'../../_chunks/chunk-MW3DZA7R.js';import'../../_chunks/chunk-2BU56HDE.js';import'../../_chunks/chunk-5FR3LFXC.js';import'../../_chunks/chunk-PF4KBDPV.js';import'../../_chunks/chunk-2I5L7ASP.js';import'../../_chunks/chunk-ISC5KT5E.js';import'../../_chunks/chunk-673TILTX.js';import'../../_chunks/chunk-JYVB2MAR.js';import'../../_chunks/chunk-XVIGXV43.js';import'../../_chunks/chunk-YMEGCVZ4.js';import'../../_chunks/chunk-G3QDXDRW.js';import'../../_chunks/chunk-637LQKFX.js';import'../../_chunks/chunk-ALG4KR24.js';import'../../_chunks/chunk-3TZY3PB4.js';import'../../_chunks/chunk-4SDKOPUI.js';import'../../_chunks/chunk-R2J57DPG.js';import'../../_chunks/chunk-UXDNAGHP.js';import'../../_chunks/chunk-YIVUI2NW.js';import'../../_chunks/chunk-PYVM4SKE.js';import'../../_chunks/chunk-7H5HCDY6.js';import'../../_chunks/chunk-U6HZMYNW.js';import'../../_chunks/chunk-EAAJJGUI.js';import'../../_chunks/chunk-TJMY7Q26.js';import'../../_chunks/chunk-LTTRVHN5.js';import'../../_chunks/chunk-L2CUT2AZ.js';import'../../_chunks/chunk-MUBZJUHH.js';import'../../_chunks/chunk-K5QISMYX.js';import'../../_chunks/chunk-D4FXMX5O.js';import'../../_chunks/chunk-RW26DPMJ.js';import'../../_chunks/chunk-TRXHMROX.js';import'../../_chunks/chunk-DIN6W5Q6.js';import'../../_chunks/chunk-AGNZUPPF.js';import'../../_chunks/chunk-RGQ5AGHK.js';import'../../_chunks/chunk-JBDIMDMZ.js';import'../../_chunks/chunk-U2JLXSW5.js';import'../../_chunks/chunk-247ZI55C.js';import'../../_chunks/chunk-ODDV623H.js';import'../../_chunks/chunk-EKOQHUCL.js';import'../../_chunks/chunk-OJO5GAN7.js';import'../../_chunks/chunk-S7AZOXFD.js';import'../../_chunks/chunk-SSK26DK7.js';import'../../_chunks/chunk-XKEBWPJM.js';import'../../_chunks/chunk-GQZXKKCE.js';import'../../_chunks/chunk-DHSYX6K2.js';import'../../_chunks/chunk-ETLDR6XW.js';import'../../_chunks/chunk-LKYA6XFU.js';import'../../_chunks/chunk-JBE2LXDH.js';import'../../_chunks/chunk-YG4CT6O4.js';import'../../_chunks/chunk-YZF24X6P.js';import'../../_chunks/chunk-M3TZIB3C.js';import'../../_chunks/chunk-W2FF6EIY.js';import'../../_chunks/chunk-EM7XGO3A.js';import'../../_chunks/chunk-F7I3KDV5.js';import'../../_chunks/chunk-U3ZJP2GE.js';import'../../_chunks/chunk-FDYQ25JQ.js';import'../../_chunks/chunk-XBJ4RS2B.js';import'../../_chunks/chunk-TIPJC5YT.js';import'../../_chunks/chunk-EYLBXWXJ.js';import'../../_chunks/chunk-LS57WE6K.js';
1
+ export{ja as AgreementIcon,la as AuthIcons,ka as AuthSourceAnimation,na as AuthorizationAutoIcons,oa as AuthorizedIcon,pa as ChargeStatusIcon,qa as CustomerInitiatedIcon,Ca as DestinationIcon,sa as DeviceIconChip,ta as DisputeIcon,ra as GeographyIcon,ua as IssuerIcon,va as PayoutIcon,wa as RefundIcon,ya as RefundStateIcon,xa as RefundStatusIcon,Aa as SourceIcon,Ba as SourceIcons,ma as VoidAutoIcon,za as getPaymentMethodKey}from'../../_chunks/chunk-VQU5K2ZY.js';import'../../_chunks/chunk-B2OUV4UE.js';import'../../_chunks/chunk-XK5TVDKR.js';import'../../_chunks/chunk-ZPYQLESN.js';import'../../_chunks/chunk-D7Q6GITS.js';import'../../_chunks/chunk-GD5PXPUD.js';import'../../_chunks/chunk-2BU56HDE.js';import'../../_chunks/chunk-PF4KBDPV.js';import'../../_chunks/chunk-2I5L7ASP.js';import'../../_chunks/chunk-5FR3LFXC.js';import'../../_chunks/chunk-ISC5KT5E.js';import'../../_chunks/chunk-7H5HCDY6.js';import'../../_chunks/chunk-673TILTX.js';import'../../_chunks/chunk-YMEGCVZ4.js';import'../../_chunks/chunk-JYVB2MAR.js';import'../../_chunks/chunk-YFL4D5VW.js';import'../../_chunks/chunk-G3QDXDRW.js';import'../../_chunks/chunk-K5QISMYX.js';import'../../_chunks/chunk-R2J57DPG.js';import'../../_chunks/chunk-637LQKFX.js';import'../../_chunks/chunk-3TZY3PB4.js';import'../../_chunks/chunk-4SDKOPUI.js';import'../../_chunks/chunk-UXDNAGHP.js';import'../../_chunks/chunk-YIVUI2NW.js';import'../../_chunks/chunk-PYVM4SKE.js';import'../../_chunks/chunk-XVIGXV43.js';import'../../_chunks/chunk-JBDIMDMZ.js';import'../../_chunks/chunk-EAAJJGUI.js';import'../../_chunks/chunk-TJMY7Q26.js';import'../../_chunks/chunk-U6HZMYNW.js';import'../../_chunks/chunk-LTTRVHN5.js';import'../../_chunks/chunk-L2CUT2AZ.js';import'../../_chunks/chunk-ALG4KR24.js';import'../../_chunks/chunk-XKEBWPJM.js';import'../../_chunks/chunk-D4FXMX5O.js';import'../../_chunks/chunk-TRXHMROX.js';import'../../_chunks/chunk-RGQ5AGHK.js';import'../../_chunks/chunk-DIN6W5Q6.js';import'../../_chunks/chunk-RW26DPMJ.js';import'../../_chunks/chunk-U2JLXSW5.js';import'../../_chunks/chunk-MUBZJUHH.js';import'../../_chunks/chunk-247ZI55C.js';import'../../_chunks/chunk-EM7XGO3A.js';import'../../_chunks/chunk-OJO5GAN7.js';import'../../_chunks/chunk-EKOQHUCL.js';import'../../_chunks/chunk-SSK26DK7.js';import'../../_chunks/chunk-S7AZOXFD.js';import'../../_chunks/chunk-ODDV623H.js';import'../../_chunks/chunk-GQZXKKCE.js';import'../../_chunks/chunk-DHSYX6K2.js';import'../../_chunks/chunk-ETLDR6XW.js';import'../../_chunks/chunk-LKYA6XFU.js';import'../../_chunks/chunk-JBE2LXDH.js';import'../../_chunks/chunk-YG4CT6O4.js';import'../../_chunks/chunk-M3TZIB3C.js';import'../../_chunks/chunk-W2FF6EIY.js';import'../../_chunks/chunk-YZF24X6P.js';import'../../_chunks/chunk-AGNZUPPF.js';import'../../_chunks/chunk-F7I3KDV5.js';import'../../_chunks/chunk-U3ZJP2GE.js';import'../../_chunks/chunk-FDYQ25JQ.js';import'../../_chunks/chunk-XBJ4RS2B.js';import'../../_chunks/chunk-TIPJC5YT.js';import'../../_chunks/chunk-EYLBXWXJ.js';import'../../_chunks/chunk-LS57WE6K.js';
@@ -8,12 +8,6 @@ interface IDButtonI extends BoxProps {
8
8
  disableOnHoverEffect?: boolean;
9
9
  onCopyId?: () => void;
10
10
  }
11
- /**
12
- * Copy-id chip: a 24px icon that grows to the left on hover to reveal the id.
13
- * Built on `ExpandableChip` (start adornment); props and styling match the previous implementation.
14
- *
15
- * @deprecated Use `ExpandableChip` directly — `main` is a `CopyButton`, `startAdornment` is the id text.
16
- */
17
11
  declare function IDButton({ icon, id, sx, disableOnHoverEffect, onCopyId, className, ...props }: IDButtonI): import("react").JSX.Element;
18
12
  declare const _default: import("react").MemoExoticComponent<typeof IDButton>;
19
13
  export default _default;
@@ -1,8 +1,3 @@
1
- import type { SxProps, Theme } from '@mui/material/styles';
2
- /**
3
- * Restyles `ExpandableChip` to look like the legacy IDButton: a borderless 24px white circle that, on hover,
4
- * grows to the left to reveal the id, with a soft border and shadow.
5
- */
6
- export declare const idButtonChipSx: SxProps<Theme>;
7
- /** Id text revealed inside the start adornment. */
8
- export declare const idTextSx: SxProps<Theme>;
1
+ /// <reference types="react" />
2
+ export declare const Inner: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
3
+ export declare const RowId: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -3,12 +3,6 @@ export interface LinkCellProps {
3
3
  url: string;
4
4
  label?: string;
5
5
  }
6
- /**
7
- * Link chip: an icon that copies `url` on click and, on hover, grows to the right to reveal `label`.
8
- * Built on `ExpandableChip` (end adornment); props and styling match the previous implementation.
9
- *
10
- * @deprecated Use `ExpandableChip` directly — `main` is the link icon, `endAdornment` is the label.
11
- */
12
6
  declare function LinkCell({ url, label }: LinkCellProps): import("react").JSX.Element | null;
13
7
  declare const _default: import("react").MemoExoticComponent<typeof LinkCell>;
14
8
  export default _default;
@@ -1,14 +1,14 @@
1
1
  /// <reference types="react" />
2
- import type { SxProps, Theme } from '@mui/material/styles';
3
2
  export declare const COLLAPSED_WIDTH: number;
4
- export declare const LABEL_MAX_WIDTH = 100;
5
3
  export declare const LinkCellContainer: import("@emotion/styled").StyledComponent<Omit<Omit<import("@mui/material").TableCellProps, "ref"> & import("react").RefAttributes<unknown>, "ref"> & {
6
4
  ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
7
- } & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
8
- /**
9
- * Restyles `ExpandableChip` to look like the legacy LinkCell: a 24px bordered pill with a link icon that
10
- * grows to the right to reveal the label, with a soft shadow.
11
- */
12
- export declare const linkChipSx: SxProps<Theme>;
13
- /** Label revealed inside the end adornment. */
14
- export declare const Label: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
5
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
6
+ export declare const Wrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
7
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
8
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
9
+ export declare const Chip: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
10
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
11
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
12
+ hasLabel?: boolean | undefined;
13
+ }, {}, {}>;
14
+ export declare const Label: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;