1try{!function(){var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="00fddfe7-b993-42c0-83b5-a153c5393757",e._sentryDebugIdIdentifier="sentry-dbid-00fddfe7-b993-42c0-83b5-a153c5393757")}()}catch(e){}try{("u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{}).SENTRY_RELEASE={id:"[email protected]"}}catch(e){}"use strict";(self["chunk_host "]=self["chunk_host "]||[]).push([["1708"],{63865(e,t,r){r.d(t,{$:()=>v,DD:()=>g,G5:()=>u,Gv:()=>l,K5:()=>x,Od:()=>c,Op:()=>i,Qw:()=>f,VA:()=>p,Vy:()=>h,kL:()=>n,kc:()=>s,o1:()=>a,pz:()=>d,wx:()=>m,z3:()=>o});var a="actions-H8i8X_",l="backButton-oep5X2",n="container-yPlebi",o="error-rnPgeE",s="errorText-OH0jii",i="filterBadge-QSFaK7",d="filterButton-E0GeMj",c="filterButtonWrapper-B9zCnV",u="filterButtonWrapperLoading-Sbu_67",m="header-yDsbrY",p="subtitle-mwUPDW",h="subtitleAmount-t4AscR",g="title-o8RNGe",x="titleBlock-PpCOX1",v="titleRow-O9Oof1",f="titleText-p0VoTN"},17773(e,t,r){r.d(t,{m:()=>a,n:()=>l});var a="activityGrid-F2C8N8",l="activityGridEmpty-yeTfOr"},47050(e,t,r){r.d(t,{z:()=>k,S:()=>N});var a=r(87529),l=r(92368),n=r.n(l),o=r(72701),s=r(56409),i=r(13417),d=r(42432),c=r(64930),u=r(76760),m=r(93563),p="card-dVtM1e",h="cardOuter-lm7JLz",g="divider-PBFBlY",x="kv-a4szs6",v="kvLabel-ujGGDc",f="kvValue-hGfPdx",y="kvValueStrong-MWya8k",b="ltvDotHealthy-f4kVIN",j="topRow-eCbm52";let N=e=>{let{data:t,context:r,api:l,node:c}=e,b=(0,o.useRef)(null);if((0,s.yt)(b,l,c),!t)return null;let{currencies:N,onRowClick:_}=r,w=t.borrowCurrency,k=w?N.find(e=>e.shortName.toLowerCase()===w.toLowerCase()):void 0,C=(0,m.ZJ)(t.totalBorrowedAmount,w,N);return(0,a.jsx)("div",{ref:b,className:h,children:(0,a.jsxs)("div",{className:p,children:[(0,a.jsxs)("div",{className:j,children:[(0,a.jsxs)("div",{className:"assetGroup-qEYqZu",children:[(0,a.jsx)(i.A,{name:"icon-".concat(w.toLowerCase()),size:24}),(0,a.jsxs)("div",{className:"assetName-Sxcyq_",children:[(0,a.jsx)("span",{className:"assetSymbol-XAxUaN",children:w}),!!(null==k?void 0:k.longName)&&(0,a.jsx)("span",{className:"assetLongName-_I5KF4",children:k.longName})]}),(0,a.jsx)(u.Dp,{status:t.status})]}),(0,a.jsx)("button",{type:"button",className:"chevronButton-j5Iw9l","aria-label":"View borrow details","data-qa":"borrow-history-view-details",onClick:()=>null==_?void 0:_(t),children:(0,a.jsx)(i.A,{name:"icon-chevron-right-small",size:16})})]}),(0,a.jsx)("div",{className:g}),(0,a.jsxs)("div",{className:x,children:[(0,a.jsx)("span",{className:v,children:"Loan date"}),(0,a.jsx)("span",{className:f,children:n()(t.openedAt).format("DD MMM YYYY")})]}),(0,a.jsxs)("div",{className:x,children:[(0,a.jsx)("span",{className:v,children:"Total amount borrowed"}),(0,a.jsx)("span",{className:(0,d.g)(f,y),children:C})]})]})})},_={HEALTHY:b,WARNING:"ltvDotWarning-FZ02ep",CRITICAL:"ltvDotCritical-QY40sC",LIQUIDATION:"ltvDotLiquidation-xA9UhZ"},w=(e,t,r)=>{var a;return null!=(a=(0,m.Z)(e.amount,e.currency,t,r))?a:"-"},k=e=>{let{data:t,context:r,api:l,node:i}=e,u=(0,o.useRef)(null);if((0,s.yt)(u,l,i),!t)return null;let{currencies:N}=r,k=(0,m.QA)(t.ltv),C=t.ltvStatus?_[t.ltvStatus]:b,A="IN"===t.direction,T="OUT"===t.direction,D=c.tl.has(t.operationType),E=A?w(t,N,"+"):"-",R=T?w(t,N,"-"):"-",L=D?w(t,N,""):"-";return(0,a.jsx)("div",{ref:u,className:h,children:(0,a.jsxs)("div",{className:p,children:[(0,a.jsxs)("div",{className:j,children:[(0,a.jsx)("span",{className:"operationTitle-RbATrV",children:m.GF[t.operationType]}),null!==k&&(0,a.jsxs)("span",{className:"ltvPill-wd9esA","data-qa":"borrow-operation-ltv",children:[(0,a.jsx)("span",{className:(0,d.g)("ltvDot-JhYNuW",C)}),(0,a.jsx)("span",{className:"ltvLabel-FkIfcV",children:"LTV"}),(0,a.jsx)("span",{className:"ltvSeparator-hktt2e"}),(0,a.jsx)("span",{className:"ltvValue-yThG2g",children:k})]})]}),(0,a.jsx)("div",{className:g}),(0,a.jsxs)("div",{className:x,children:[(0,a.jsx)("span",{className:v,children:"Loan payout date"}),(0,a.jsx)("span",{className:f,children:n()(t.eventAt).format("DD MMM YYYY")})]}),(0,a.jsxs)("div",{className:x,children:[(0,a.jsx)("span",{className:v,children:"Fees"}),(0,a.jsx)("span",{className:(0,d.g)(f,y),children:L})]}),(0,a.jsxs)("div",{className:x,children:[(0,a.jsx)("span",{className:v,children:"In"}),(0,a.jsx)("span",{className:(0,d.g)(f,y),children:E})]}),(0,a.jsxs)("div",{className:x,children:[(0,a.jsx)("span",{className:v,children:"Out"}),(0,a.jsx)("span",{className:(0,d.g)(f,y),children:R})]})]})})}},76760(e,t,r){r.d(t,{E:()=>v,hD:()=>T,Fc:()=>g,d2:()=>w,sz:()=>D,Kd:()=>A,Iu:()=>f,bj:()=>j,dt:()=>b,zV:()=>N,Cr:()=>y,Dp:()=>x});var a=r(87529),l=r(92368),n=r.n(l),o=r(68324),s=r(13417),i=r(42432),d=r(64930),c=r(93563),u="amountCell-EEA3vD",m="amountHighlight-mcw2R0",p="datePart-OHGBHP",h="ltvDotHealthy-jyycEc";let g=(0,o.r)(e=>{let t,{data:r,context:l}=e,n=r.borrowCurrency,o=(t=l.currencies,n?t.find(e=>e.shortName.toLowerCase()===n.toLowerCase()):void 0);return(0,a.jsxs)("div",{className:"assetsCell-pk_v8P",children:[(0,a.jsx)(s.A,{name:"icon-".concat(n.toLowerCase()),size:24}),(0,a.jsxs)("div",{className:"assetNameContainer-xdwohJ",children:[(0,a.jsx)("span",{className:"assetSymbol-oEEHde",children:n}),!!(null==o?void 0:o.longName)&&(0,a.jsx)("span",{className:"assetLongName-zaZ29_",children:null==o?void 0:o.longName})]})]})}),x=e=>{let{status:t}=e,r="OPEN"===t;return(0,a.jsxs)("span",{className:"statusPill-e29xgr","data-qa":"borrow-history-status-".concat(r?"active":"closed"),children:[(0,a.jsx)("span",{className:(0,i.g)("statusDotWrapper-zz0EkH",r?"statusDotWrapperActive-iUmuxq":"statusDotWrapperClosed-QxSdp_"),children:(0,a.jsx)("span",{className:(0,i.g)("statusDot-WDlyKo",r?"statusDotActive-Yzh5Uf":"statusDotClosed-I8qHF3")})}),(0,a.jsx)("span",{className:"statusLabel-jt2lVF",children:r?"Active":"Closed"})]})},v=(0,o.r)(e=>{let{data:t}=e;return(0,a.jsx)(x,{status:t.status})}),f=(0,o.r)(e=>{let{data:t}=e;return(0,a.jsx)("span",{className:p,children:n()(t.openedAt).format("DD MMM YYYY")})}),y=(0,o.r)(e=>{let{data:t,context:r}=e,l=t.borrowCurrency,n=(0,c.ZJ)(t.totalBorrowedAmount,l,r.currencies);return(0,a.jsx)("span",{className:(0,i.g)(u,m),children:n})}),b=(0,o.r)(e=>{let{data:t,context:r}=e;return(0,a.jsx)("span",{className:"chevronCell-bIuzQ7",children:(0,a.jsx)("button",{type:"button",className:"chevronButton-I9Lhs4","aria-label":"View borrow details","data-qa":"borrow-history-view-details",onClick:()=>{var e;return null==(e=r.onRowClick)?void 0:e.call(r,t)},children:(0,a.jsx)(s.A,{name:"icon-chevron-right-small",size:16})})})}),j=(0,o.r)(e=>{let{data:t}=e;return(0,a.jsxs)("span",{className:"dateCell-TRmQ1r",children:[(0,a.jsx)("span",{className:p,children:n()(t.eventAt).format("DD MMM YYYY")}),(0,a.jsx)("span",{className:"timePart-tmVJVq",children:n()(t.eventAt).format("HH:mm")}
1)]})}),N=(0,o.r)(e=>{let{data:t}=e;return(0,a.jsx)("span",{className:"typeCell-zLq0aG",children:c.GF[t.operationType]})}),_={HEALTHY:h,WARNING:"ltvDotWarning-gXklYe",CRITICAL:"ltvDotCritical-YIKEOX",LIQUIDATION:"ltvDotLiquidation-iDmzVF"},w=(0,o.r)(e=>{let{data:t}=e,r=(0,c.QA)(t.ltv);if(null===r)return(0,a.jsx)("span",{className:u,children:"-"});let l=t.ltvStatus?_[t.ltvStatus]:h;return(0,a.jsxs)("span",{className:"ltvPill-Bm_njs","data-qa":"borrow-operation-ltv",children:[(0,a.jsx)("span",{className:(0,i.g)("ltvDot-u8KehS",l)}),(0,a.jsx)("span",{className:"ltvValue-dpbfiM",children:r})]})}),k=(e,t,r)=>{let a=(0,c.Z)(e.amount,e.currency,t,r);if(null===a)return null;let l=a.lastIndexOf(" ");return -1===l?{value:a,code:null}:{value:a.slice(0,l),code:a.slice(l+1)}},C=e=>{let{leg:t,highlight:r}=e;return t?(0,a.jsxs)("span",{className:(0,i.g)(u,"amountLeg-OSZnkG",r&&m),children:[(0,a.jsx)("span",{className:"amountLegValue-grXEh0",children:t.value}),null!==t.code&&(0,a.jsxs)(a.Fragment,{children:[" ",(0,a.jsx)("span",{className:"amountLegCode-fvyHiV",children:t.code})]})]}):(0,a.jsx)("span",{className:u,children:"-"})},A=(0,o.r)(e=>{let{data:t,context:r}=e,l="IN"===t.direction?k(t,r.currencies,"+"):null;return(0,a.jsx)(C,{leg:l,highlight:null!==l})}),T=(0,o.r)(e=>{let{data:t,context:r}=e,l="OUT"===t.direction?k(t,r.currencies,"-"):null;return(0,a.jsx)(C,{leg:l,highlight:null!==l})}),D=(0,o.r)(e=>{let{data:t,context:r}=e,l=d.tl.has(t.operationType)?k(t,r.currencies,""):null;return(0,a.jsx)(C,{leg:l,highlight:null!==l})})},49405(e,t,r){r.d(t,{e:()=>_});var a=r(33469),l=r(97160),n=r(87529),o=r(92368),s=r.n(o),i=r(72701),d=r(13417),c=r(83952),u=r(18438),m=r(61871),p=r(19815),h=r(32101),g=r(42432),x="dateField-W5PNeK",v="section-hTWack",f="sectionLabel-Ym8akO",y=r(93563);let b=Object.keys(y.GF).map(e=>({label:y.GF[e],value:e})),j=(e,t)=>!e||Array.isArray(e)?null:s()(e)["start"===t?"startOf":"endOf"]("day").toDate(),N=e=>{let t=s()().endOf("day").toDate();return null===e.days?{from:s()().startOf("year").toDate(),to:t}:{from:s()().subtract(e.days,"days").startOf("day").toDate(),to:t}},_=e=>{var t,r;let{filter:o,defaultFilter:_=y.ek,currencyOptions:w=[],showCurrency:k=!1,showOperationTypes:C=!1,onApply:A,onClose:T}=e,[D,E]=(0,i.useState)(o),R=(0,i.useMemo)(()=>{var e;return null!=(e=w.find(e=>e.value===D.currency))?e:null},[w,D.currency]),L=D.operationTypes.length===b.length;return(0,n.jsxs)("div",{className:"container-VeZx4v",children:[(0,n.jsxs)("div",{className:"header-ltuctN",children:[(0,n.jsx)(u.A,{variant:"text-xl-bold",color:"foreground.900",children:"Filters"}),(0,n.jsx)(m.Ay,{onClick:T,emphasis:"low",className:"closeButton-hTyV4m",children:(0,n.jsx)(d.A,{name:"icon-x-dark"})})]}),(0,n.jsxs)("div",{className:"content-ynCCGu",children:[(0,n.jsxs)("div",{className:v,children:[(0,n.jsx)(u.A,{variant:"text-md-semibold",color:"foreground.900",className:f,children:"Date range"}),(0,n.jsx)("div",{className:"presetRow-p9VTxl",children:y.Z9.map(e=>{let t=((e,t)=>{if(!e.from||!e.to)return!1;let r=N(t);return s()(e.from).isSame(r.from,"day")&&s()(e.to).isSame(r.to,"day")})(D,e);return(0,n.jsx)("button",{type:"button",className:(0,g.g)("presetButton-f_HHem",t&&"presetButtonSelected-d89ZTL"),disabled:t,tabIndex:t?-1:void 0,onClick:()=>{let t;return t=N(e),void E(e=>(0,l._)((0,a._)({},e),{from:t.from,to:t.to}))},children:e.label},e.label)})})]}),(0,n.jsxs)("div",{className:v,children:[(0,n.jsx)(u.A,{variant:"text-md-semibold",color:"foreground.900",className:f,children:"Period"}),(0,n.jsxs)("div",{className:"dateRange-qWwHdp",children:[(0,n.jsx)("div",{className:x,children:(0,n.jsx)(c.A,{reactDatePickerProps:{selected:D.from,selectsStart:!0,startDate:D.from,endDate:D.to,maxDate:null!=(t=D.to)?t:s()().toDate()},placeholder:"Start date",onChange:e=>E(t=>(0,l._)((0,a._)({},t),{from:j(e,"start")})),onClear:()=>E(e=>(0,l._)((0,a._)({},e),{from:null}))})}),(0,n.jsx)(u.A,{variant:"text-md-medium",color:"foreground.800",className:"dateSeparator-DIJxa5",children:"-"}),(0,n.jsx)("div",{className:x,children:(0,n.jsx)(c.A,{reactDatePickerProps:{selected:D.to,selectsEnd:!0,startDate:D.from,endDate:D.to,minDate:null!=(r=D.from)?r:void 0,maxDate:s()().toDate()}
1,placeholder:"End date",onChange:e=>E(t=>(0,l._)((0,a._)({},t),{to:j(e,"end")})),onClear:()=>E(e=>(0,l._)((0,a._)({},e),{to:null}))})})]})]}),k&&(0,n.jsxs)("div",{className:v,children:[(0,n.jsx)(u.A,{variant:"text-md-semibold",color:"foreground.900",className:f,children:"Currency"}),(0,n.jsx)(h.l,{fullWidth:!0,isClearable:!0,placeholder:"Select a currency",options:w,value:R,hideEmptyCaption:!0,onChange:e=>E(t=>{var r;return(0,l._)((0,a._)({},t),{currency:null!=(r=null==e?void 0:e.value)?r:null})}),formatOptionLabel:e=>{var t;return(0,n.jsxs)("span",{className:"currencyOption-dsbIZk",children:[(0,n.jsx)(d.A,{name:"icon-".concat(null==(t=e.value)?void 0:t.toLowerCase()),size:20}),e.label]})}})]}),C&&(0,n.jsxs)("div",{className:v,children:[(0,n.jsxs)("div",{className:"sectionHeaderRow-DXT5jG",children:[(0,n.jsx)(u.A,{variant:"text-md-semibold",color:"foreground.900",className:f,children:"Operation type"}),(0,n.jsx)("button",{type:"button",className:"selectAllButton-g8Dlf_",onClick:()=>{E(e=>(0,l._)((0,a._)({},e),{operationTypes:L?[]:b.map(e=>e.value)}))},children:L?"Clear all":"Select all"})]}),(0,n.jsx)("div",{className:"checkboxList-DeiX8v",children:b.map(e=>(0,n.jsx)(p.A,{size:"sm",label:e.label,isSelected:D.operationTypes.includes(e.value),onChange:t=>{var r;return r=e.value,void E(e=>(0,l._)((0,a._)({},e),{operationTypes:t?[...e.operationTypes,r]:e.operationTypes.filter(e=>e!==r)}))},"data-qa":"borrow-filter-operation-".concat(e.value)},e.value))})]})]}),(0,n.jsxs)("div",{className:"footer-eSJCCW",children:[(0,n.jsx)(m.Ay,{onPress:()=>{A(D),T()},color:"primary",size:"medium",fullWidth:!0,children:"Apply filters"}),(0,n.jsx)(m.Ay,{onPress:()=>{E(_),A(_),T()},color:"primary",emphasis:"low",size:"medium",fullWidth:!0,children:"Reset all filters"})]})]})}},41674(e,t,r){r.d(t,{S:()=>x});var a=r(33469),l=r(87529),n=r(71928),o=r(72701),s=r(56409),i=r(13417),d=r(37536),c=r(29489),u=r(57043),m=r(42432),p=r(17773);let h="__borrowHistoryFooter__",g=e=>"object"==typeof e&&null!==e&&h in e,x=e=>{let{rowData:t,columnDefs:r,currencies:x,getRowId:v,emptyMessage:f,isLoading:y,hasMore:b,isLoadingMore:j,onLoadMore:N,onRowClick:_,cardRenderer:w}=e,{ref:k,width:C}=(0,c.x)(),A=C>0&&C<=820,T=(0,o.useRef)(null),D=(0,o.useCallback)(e=>{T.current=e.api},[]);(0,o.useEffect)(()=>{let e=T.current;!e||e.isDestroyed()||e.redrawRows()},[x,t]);let E=(0,o.useRef)(!1);(0,o.useEffect)(()=>{j||(E.current=!1)},[j]);let R=(0,o.useCallback)(()=>{!E.current&&b&&(E.current=!0,null==N||N())},[b,N]),L=(0,o.useMemo)(()=>({currencies:x,onRowClick:_}),[x,_]),I=(0,o.useCallback)(e=>g(e.data)?h:v(e.data),[v]),O=(0,o.useRef)(null);(0,o.useEffect)(()=>{let e=O.current;if(!e||!b)return;let t=new IntersectionObserver(e=>{let[t]=e;t.isIntersecting&&R()},{rootMargin:"200px"});return t.observe(e),()=>t.disconnect()},[b,j,R]);let S=A?168:64,B=48*!A,W=t.length>0?j?"loading":b?null:"end":null,z=(0,o.useMemo)(()=>W?[...t,{[h]:!0,variant:W}]:t,[t,W]),G=(0,o.useCallback)(e=>g(e.data)?"loading"===e.data.variant?(0,l.jsxs)("output",{className:"loadMoreFooter-DpFLYb","aria-live":"polite",children:[(0,l.jsx)(i.A,{name:"loader-refresh",size:16,className:"loadMoreSpinner-hyFNc3"}),(0,l.jsx)("span",{children:"Loading moreâ¦"})]}):(0,l.jsx)("div",{className:"endOfListFooter-H7_I0l","aria-hidden":!0,children:"No more history to load"}):(0,l.jsx)(w,(0,a._)({},e)),[w]),H=(0,o.useCallback)(e=>g(e.rowNode.data)||A,[A]),F=(0,o.useCallback)(e=>g(e.data)?52:S,[S]),M=(0,o.useCallback)(()=>(0,l.jsx)(u.A,{text:f}),[f]),Y=A?"card":"table",P=0===t.length;return(0,l.jsxs)("div",{ref:k,className:"gridWrapper-XEolBS",children:[(0,l.jsx)(s.WO,{className:(0,m.g)(p.m,"borrowHistoryGrid-Krojv4",A?"borrowHistoryGridCard-A9fcE8":void 0,P?p.n:void 0,P?"borrowHistoryGridEmpty-DiWGCG":void 0),cardMode:A,autoHeight:!0,children:(0,l.jsx)(n.W6,{rowData:z,columnDefs:r,defaultColDef:d.y,context:L,onGridReady:D,getRowId:I,getRowHeight:F,headerHeight:B,domLayout:"autoHeight",suppressCellFocus:!0,suppressContextMenu:!0,animateRows:!1,loading:!!y&&P,noRowsOverlayComponent:M,isFullWidthRow:H,fullWidthCellRenderer:G},Y)}
1),(0,l.jsx)("div",{ref:O,"aria-hidden":!0,className:"loadMoreSentinel-iFg6eM"})]})}},95519(e,t,r){r.d(t,{P:()=>l,e:()=>n});var a=r(76760);let l=()=>[{headerName:"Assets",field:"borrowCurrency",cellRenderer:a.Fc,width:220,minWidth:200,pinned:"left",comparator:(e,t,r,a)=>{var l,n,o,s;return(null!=(l=null==(o=r.data)?void 0:o.borrowCurrency)?l:"").localeCompare(null!=(n=null==(s=a.data)?void 0:s.borrowCurrency)?n:"")}},{headerName:"Status",field:"status",cellRenderer:a.E,minWidth:120,flex:1},{headerName:"Loan date",field:"openedAt",cellRenderer:a.Iu,minWidth:150,flex:1.2,comparator:(e,t,r,a)=>{var l,n,o,s;return new Date(null!=(l=null==(o=r.data)?void 0:o.openedAt)?l:0).getTime()-new Date(null!=(n=null==(s=a.data)?void 0:s.openedAt)?n:0).getTime()}},{headerName:"Total amount borrowed",field:"totalBorrowedAmount",cellRenderer:a.Cr,minWidth:150,flex:1.4,pushRight:!0,comparator:(e,t,r,a)=>{var l,n,o,s;return Number(null!=(l=null==(o=r.data)?void 0:o.totalBorrowedAmount)?l:0)-Number(null!=(n=null==(s=a.data)?void 0:s.totalBorrowedAmount)?n:0)}},{headerName:"Action",colId:"action",cellRenderer:a.dt,width:75,minWidth:75,pushRight:!0,sortable:!1,pinned:"right"}],n=()=>[{headerName:"Type",field:"operationType",cellRenderer:a.zV,cellClass:"borrowTypeCell",minWidth:180,flex:2,sortable:!1},{headerName:"LTV",field:"ltv",cellRenderer:a.d2,minWidth:80,flex:1,sortable:!1},{headerName:"Loan payout date",field:"eventAt",cellRenderer:a.bj,minWidth:150,flex:1,sortable:!1},{headerName:"Fees",colId:"fees",cellRenderer:a.sz,cellClass:"borrowAmountCell",minWidth:160,flex:1,pushRight:!0,sortable:!1},{headerName:"In",colId:"in",cellRenderer:a.Kd,cellClass:"borrowAmountCell",minWidth:200,flex:1.2,pushRight:!0,sortable:!1},{headerName:"Out",colId:"out",cellRenderer:a.hD,cellClass:"borrowAmountCell",minWidth:200,flex:1.2,pushRight:!0,sortable:!1}]},93563(e,t,r){r.d(t,{GF:()=>c,QA:()=>u,X4:()=>d,Z:()=>h,Z9:()=>g,ZJ:()=>p,eN:()=>v,ek:()=>x,ey:()=>f,mo:()=>y});var a=r(31803),l=r.n(a),n=r(92368),o=r.n(n),s=r(10655),i=r(64930);let d=100,c={[i.vT.COLLATERAL_POSTED]:"Collateral added",[i.vT.BORROW_DRAWN]:"Borrow",[i.vT.COLLATERAL_REMOVED]:"Collateral removed",[i.vT.DEBT_REPAID_VIA_TRANSFER]:"Repayment (transfer)",[i.vT.REPAY_TRADE_COLLATERAL_SOLD]:"Repayment (collateral sold)",[i.vT.STAGE_1_LIQUIDATION_COLLATERAL_SOLD]:"Liquidation (collateral sold)",[i.vT.INTEREST_CHARGED]:"Interest charge",[i.vT.STAGE_1_LIQUIDATION_FEE]:"Liquidation fee",[i.vT.BORROW_CURRENCY_RETURNED]:"Borrow returned",[i.vT.STAGE_1_LIQUIDATION_DEBT_REPAID]:"Liquidation (debt repaid)",[i.vT.DEBT_REPAID_VIA_TRADE]:"Repayment (via trade)",[i.vT.REPAY_TRADE_FEE]:"Repayment trade fee",[i.vT.STAGE_1_LIQUIDATION_COLLATERAL_POSTED]:"Liquidation (collateral added)",[i.vT.STAGE_2_TAKEOVER_ASSET_TAKEN]:"Takeover (asset taken)",[i.vT.STAGE_2_TAKEOVER_DEBT_TAKEN]:"Takeover (debt taken)"},u=e=>{if(null==e||""===e)return null;let t=new(l())(e);return t.isFinite()?"".concat(t.times(100).toFixed(0),"%"):null},m={COMPLETED:"Completed",PENDING:"Pending",FAILED:"Failed"},p=(e,t,r)=>{if(0===r.length)return"â";let a=t?r.find(e=>e.shortName.toLowerCase()===t.toLowerCase()):void 0;return a?(0,s.BT)({amount:new(l())(e),currency:a}):"".concat(e," ").concat(t)},h=(e,t,r,a)=>{if(null==e||null==t)return null;let l=p(e,t,r);return"â"===l?null:"".concat(a).concat(l)},g=[{label:"7D",days:7},{label:"30D",days:30},{label:"90D",days:90},{label:"Year to date",days:null}],x={from:null,to:null,currency:null,operationTypes:[]},v={from:null,to:null,currency:null,operationTypes:Object.values(i.vT).filter(e=>e!==i.vT.INTEREST_CHARGED)},f=e=>!!(e.from||e.to||e.currency||e.operationTypes.length>0),y=e=>e?e.map(e=>{var t,r;return{date:'"'.concat(o()(e.eventAt).format("DD MMM YYYY HH:mm"),'"'),operationType:c[e.operationType],direction:null!=(t=e.direction)?t:"",currency:null!=(r=e.currency)?r:"",amount:null===e.amount?"":'"'.concat(e.amount,'"'),status:m[e.
1status]}}):[]},37536(e,t,r){r.d(t,{y:()=>s});var a=r(87529),l=r(72701),n=r(13417),o=r(18438);let s={sortable:!0,resizable:!1,suppressMovable:!0,headerComponent:e=>{let t=e.column.getColDef(),r=!!t.pushRight,s=!1!==t.sortable,[i,d]=(0,l.useState)(e.column.getSort());(0,l.useEffect)(()=>{let t=()=>{d(e.column.getSort())};return e.column.addEventListener("sortChanged",t),()=>{e.column.removeEventListener("sortChanged",t)}},[e.column]);let c=s&&i&&(0,a.jsx)(n.A,{name:"icon-line-arrow-down",size:12,style:{transform:"asc"===i?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease"}});return(0,a.jsxs)("div",{onClick:()=>{s&&e.progressSort()},className:"headerCell-TtarVd",style:{justifyContent:r?"flex-end":"flex-start",cursor:s?"pointer":"default"},children:[r&&c,(0,a.jsx)(o.A,{variant:"text-sm-semibold",color:"foreground.900",font:"Manrope, sans-serif",children:e.displayName}),!r&&c]})},suppressHeaderMenuButton:!0,minWidth:120,cellStyle:e=>{if(e.colDef.pushRight)return{justifyContent:"flex-end",textAlign:"right"}}}},83952(e,t,r){r.d(t,{A:()=>y});var a=r(33469),l=r(97160),n=r(87529);r(72701);var o=r(72045),s=r.n(o);r(24222);var i=r(6525),d=r(13417),c=r(46292),u=r.n(c),m=r(53833);let p=u().label.withConfig({displayName:"styles__Label"})(["color:",";font-variant-numeric:lining-nums tabular-nums;font-size:12px;font-style:normal;font-weight:500;line-height:16px;margin-bottom:4px;"],e=>(0,m.g6)("foreground.900",e.theme)),h=u().span.withConfig({displayName:"styles__Caption"})(["color:",";font-variant-numeric:lining-nums tabular-nums;font-size:10px;font-style:normal;font-weight:400;line-height:12px;margin-top:4px;"],e=>(0,m.g6)("foreground.700",e.theme)),g=u().span.withConfig({displayName:"styles__ErrorCaption"})(["color:",";font-variant-numeric:lining-nums tabular-nums;font-size:12px;font-style:normal;margin-top:2px;font-weight:400;line-height:12px;"],e=>(0,m.g6)("negative.900",e.theme)),x=u().span.withConfig({displayName:"styles__ErrorContainer"})(["font-variant-numeric:lining-nums tabular-nums;display:grid;grid-template-columns:16px auto;margin-top:0px;margin-bottom:-18px;padding-top:4px;"]),v=u().div.withConfig({displayName:"styles__Container"})(["display:flex;flex-direction:column;.react-datepicker{box-shadow:0px 2px 4px 0px rgba(0,0,0,0.04);border-radius:4px;border:1px solid ",";background:",";}.react-datepicker__input-container{input{transition:box-shadow 0.1s ease-in-out;background:",";width:100%;outline:none;border:1px solid ",";padding:13px 16px;border-radius:4px;box-shadow:none;color:",";font-variant-numeric:lining-nums tabular-nums;font-size:14px;font-style:normal;font-weight:400;line-height:22px;&:hover{box-shadow:0px 0px 0px 4px rgba(0,0,0,0.05);}&:focus{box-shadow:0px 0px 0px 4px ",";}::placeholder{color:",";}","}.react-datepicker__close-icon::after{background-color:transparent;color:",";font-size:24px;font-weight:400;}}.react-datepicker__current-month{margin-bottom:16px;font-size:16px;font-style:normal;font-weight:600;line-height:24px;color:",";}.react-datepicker__header{background-color:",";border-bottom:1px solid ",";}.react-datepicker__day-names{padding:9px 0;display:flex !important;align-items:center;justify-content:space-evenly;border-top:1px solid ",";}.react-datepicker__day-name{font-size:14px;font-style:normal;font-weight:600;line-height:22px;color:",";}.react-datepicker__month-container{border-radius:4px;background-color:",";padding:24px 24px 0 24px;}.react-datepicker__navigation--previous{margin-top:20px;margin-left:16px;}.react-datepicker__navigation--next{margin-top:20px;margin-right:16px;}.react-datepicker__day{color:",";display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;text-align:center;font-variant-numeric:lining-nums tabular-nums;font-size:12px;font-style:normal;font-weight:500;line-height:16px;&.react-datepicker__day--in-range,&.react-datepicker__day--in-selecting-range{background-color:",";color:",";border-radius:100px;}&.react-datepicker__day--keyboard-selected,&:focus,&:focus-visible{outline:none !important;border:none;border-radius:100px;background-color:",";color:"," !important;}&.react-datepicker__day--range-start,&.react-datepicker__day--range-end,&.react-datepicker__day:hover,&.react-datepicker__day--selected:hover,&.react-datepicker__day--in-range:hover,&.react-datepicker__day--in-selecting-range:hover{outline:0;background-color:",";color:",";border-radius:100px;}}.react-datepicker__today-button{background-color:",";padding:20px 0;margin:0 24px;border:0;border-top:1px solid ",";}.react-datepicker__triangle{display:none;}.react-datepicker__day--range-start,.react-datepicker__day--range-end,.react-datepicker__day:hover,.react-datepicker__day--selected:hover,.react-datepicker__day--in-range:hover,.react-datepicker__day--in-selecting-range:hover{outline:0;background-color:",";color:",";border-radius:100px;}.react-datepicker__day--outside-month,.react-datepicker__day--disabled,.react-datepicker__day--disabled:hover{color:"," !important;background-color:inherit !important;}.react-datepicker__day--selected{color:",";border-radius:100px;background-color:",";}"],e=>(0,m.g6)("foreground.400",e.theme),e=>(0,m.g6)("background.900",e.theme),e=>(0,m.g6)("background.900",e.theme),e=>(0,m.g6)("foreground.400",e.theme),e=>(0,m.g6)("foreground.800",e.theme),e=>(0,m.g6)("primary.300",e.theme),e=>(0,m.g6)("foreground.600",e.theme),e=>e.disabled&&(0,c.css)(["background-color:",";pointer-events:none;"],(0,m.g6)("foreground.300",e.theme)),e=>(0,m.g6)("foreground.600",e.theme),e=>(0,m.g6)("foreground.900",e.theme),e=>(0,m.g6)("background.900",e.theme),e=>(0,m.g6)("foreground.400",e.theme),e=>(0,m.g6)("foreground.400",e.theme),e=>(0,m.g6)("foreground.900",e.theme),e=>(0,m.g6)("background.900",e.theme),e=>(0,m.g6)("foreground.800",e.theme),e=>
1(0,m.g6)("overrides.buttonBackgroundHover",e.theme),e=>(0,m.g6)("foreground.800",e.theme),e=>(0,m.g6)("overrides.buttonBackground",e.theme),e=>(0,m.g6)("foreground",e.theme),e=>(0,m.g6)("overrides.buttonBackground",e.theme),e=>(0,m.g6)("foreground",e.theme),e=>(0,m.g6)("background.900",e.theme),e=>(0,m.g6)("foreground.400",e.theme),e=>(0,m.g6)("overrides.buttonBackground",e.theme),e=>(0,m.g6)("foreground",e.theme),e=>(0,m.g6)("foreground.600",e.theme),e=>(0,m.g6)("foreground",e.theme),e=>(0,m.g6)("overrides.buttonBackground",e.theme)),f=u().button.withConfig({displayName:"styles__TodayButton"})(["cursor:pointer;outline:0;border:0;background-color:",";color:",";text-align:center;font-variant-numeric:lining-nums tabular-nums;font-size:14px;font-style:normal;font-weight:500;line-height:22px;"],e=>(0,m.g6)("background.900",e.theme),e=>(0,m.g6)("primary.900",e.theme)),y=e=>{let{label:t="",caption:r="",error:o="",placeholder:c="Please select a date",disabled:u=!1,onChange:m=()=>{},onClear:y=()=>{},reactDatePickerProps:b={}}=e,{selected:j=""}=b;return(0,n.jsxs)(v,{disabled:u,children:[t&&(0,n.jsx)(p,{children:t}),(0,n.jsx)(s(),(0,l._)((0,a._)({},b),{disabled:u,placeholderText:c,todayButton:(0,n.jsx)(f,{children:"Today"}),formatWeekDay:e=>e.slice(0,1),onChange:m,customInput:(0,n.jsx)(i.A,(0,a._)({isClearable:!0,onClear:y,width:"100%",suffix:(0,n.jsx)(d.A,{name:"icon-calendar",size:"22px",cursor:"pointer"}),value:j},b))})),r&&(0,n.jsx)(h,{children:r}),o&&(0,n.jsxs)(x,{children:[(0,n.jsx)(d.A,{name:"alert-circle",size:"14"}),(0,n.jsx)(g,{children:o})]})]})}},57043(e,t,r){r.d(t,{A:()=>d});var a=r(87529);r(72701);var l=r(46292),n=r.n(l),o=r(13417),s=r(53833);let i=n().div.withConfig({displayName:"styles__Container"})(["width:100%;display:flex;gap:32px;flex-direction:column;align-items:center;justify-content:center;> div{color:",";}"],(0,s.Ry)("foreground","800")),d=e=>{let{text:t}=e,r=(0,l.useTheme)();return(0,a.jsxs)(i,{children:[(0,a.jsx)(o.A,{name:(null==r?void 0:r.name)==="light"?"icon-empty-message":"icon-empty-message-dark",size:127}),(0,a.jsx)("div",{className:"md medium",children:t})]})}},19815(e,t,r){r.d(t,{A:()=>h});var a=r(33469),l=r(97160),n=r(96395),o=r(87529),s=r(28291),i=r(42432),d="icon-KGAwH8";let c=()=>(0,o.jsxs)("svg",{className:d,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,o.jsx)("rect",{width:"16",height:"16",rx:"3",fill:"currentColor"}),(0,o.jsx)("path",{d:"M3.5 8L6.5 11L12.5 5",stroke:"var(--palette-background-900)",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),u=()=>(0,o.jsxs)("svg",{className:d,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,o.jsx)("rect",{x:"2",y:"2",width:"20",height:"20",rx:"8",fill:"
1currentColor"}),(0,o.jsx)("path",{d:"M8 12.5L10.5 15L16 9.5",stroke:"var(--palette-background-900)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),m=()=>(0,o.jsx)("svg",{className:d,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,o.jsx)("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"2.5",fill:"var(--palette-background-900)",stroke:"currentColor",strokeOpacity:"0.32"})}),p=()=>(0,o.jsx)("svg",{className:d,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,o.jsx)("rect",{x:"2.5",y:"2.5",width:"19",height:"19",rx:"7.5",fill:"var(--palette-background-900)",stroke:"currentColor",strokeOpacity:"0.32"})}),h=e=>{let{size:t="md",label:r,className:d,"data-qa":h}=e,g=(0,n._)(e,["size","label","className","data-qa"]);return(0,o.jsx)(s.Sc,(0,l._)((0,a._)({className:(0,i.g)("checkbox-T1EGP7","sm"===t?"sizeSm-m9TZ5H":"sizeMd-anyUQn",d),"data-qa":h},g),{children:e=>{let{isSelected:a}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"indicator-bwlkyt",children:"sm"===t?a?(0,o.jsx)(c,{}):(0,o.jsx)(m,{}):a?(0,o.jsx)(u,{}):(0,o.jsx)(p,{})}),null!=r&&(0,o.jsx)("span",{className:"label-p6sSOL",children:r})]})}}))}}}]); 2//# sourceMappingURL=1708.e1f2ffba.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.