PageSourceSearch

https://dakota.xyz/_next/static/chunks/pages/dashboard-30c7656f1d93d658.js

js dakota.xyz collected 2026-09-28 07:45:14 UTC 78,360 bytes, 5 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8c0856ef-97ea-497e-9761-90b651981b97",e._sentryDebugIdIdentifier="sentry-dbid-8c0856ef-97ea-497e-9761-90b651981b97")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5529,7758,9724],{186:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var i=a(37876),n=a(11394),s=a(47702),r=a(66877);let l=()=>(0,i.jsxs)(n.View,{style:s.r.dakotaInfo,fixed:!0,children:[(0,i.jsx)(n.Text,{children:r.hZ}),(0,i.jsx)(n.Text,{children:" | "}),(0,i.jsx)(n.Text,{children:r.W4}),(0,i.jsx)(n.Text,{children:" | "}),(0,i.jsxs)(n.Text,{children:[r.eY.street1," ",r.eY.city,", ",r.eY.state," ",r.eY.postalCode]})]})},5929:(e,t,a)=>{"use strict";function i(e){var t=e.width,a=e.height;if(t<0)throw Error("Negative width is not allowed for Size");if(a<0)throw Error("Negative height is not allowed for Size");return{width:t,height:a}}function n(e,t){return e.width===t.width&&e.height===t.height}a.d(t,{Dv:()=>l,zE:()=>n,Ej:()=>i,vb:()=>u});var s=function(){function e(e){var t=this;this._resolutionListener=function(){return t._onResolutionChanged()},this._resolutionMediaQueryList=null,this._observers=[],this._window=e,this._installResolutionListener()}return e.prototype.dispose=function(){this._uninstallResolutionListener(),this._window=null},Object.defineProperty(e.prototype,"value",{get:function(){return this._window.devicePixelRatio},enumerable:!1,configurable:!0}),e.prototype.subscribe=function(e){var t=this,a={next:e};return this._observers.push(a),{unsubscribe:function(){t._observers=t._observers.filter(function(e){return e!==a})}}},e.prototype._installResolutionListener=function(){if(null!==this._resolutionMediaQueryList)throw Error("Resolution listener is already installed");var e=this._window.devicePixelRatio;this._resolutionMediaQueryList=this._window.matchMedia("all and (resolution: ".concat(e,"dppx)")),this._resolutionMediaQueryList.addListener(this._resolutionListener)},e.prototype._uninstallResolutionListener=function(){null!==this._resolutionMediaQueryList&&(this._resolutionMediaQueryList.removeListener(this._resolutionListener),this._resolutionMediaQueryList=null)},e.prototype._reinstallResolutionListener=function(){this._uninstallResolutionListener(),this._installResolutionListener()},e.prototype._onResolutionChanged=function(){var e=this;this._observers.forEach(function(t){return t.next(e._window.devicePixelRatio)}),this._reinstallResolutionListener()},e}(),r=function(){function e(e,t,a){var n;this._canvasElement=null,this._bitmapSizeChangedListeners=[],this._suggestedBitmapSize=null,this._suggestedBitmapSizeChangedListeners=[],this._devicePixelRatioObservable=null,this._canvasElementResizeObserver=null,this._canvasElement=e,this._canvasElementClientSize=i({width:this._canvasElement.clientWidth,height:this._canvasElement.clientHeight}),this._transformBitmapSize=null!=t?t:function(e){return e},this._allowResizeObserver=null==(n=null==a?void 0:a.allowResizeObserver)||n,this._chooseAndInitObserver()}return e.prototype.dispose=function(){var e,t;if(null===this._canvasElement)throw Error("Object is disposed");null==(e=this._canvasElementResizeObserver)||e.disconnect(),this._canvasElementResizeObserver=null,null==(t=this._devicePixelRatioObservable)||t.dispose(),this._devicePixelRatioObservable=null,this._suggestedBitmapSizeChangedListeners.length=0,this._bitmapSizeChangedListeners.length=0,this._canvasElement=null},Object.defineProperty(e.prototype,"canvasElement",{get:function(){if(null===this._canvasElement)throw Error("Object is disposed");return this._canvasElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canvasElementClientSize",{get:function(){return this._canvasElementClientSize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bitmapSize",{get:function(){return i({width:this.canvasElement.width,height:this.canvasElement.height})},enumerable:!1,configurable:!0}),e.prototype.resizeCanvasElement=function(e){this._canvasElementClientSize=i(e),this.canvasElement.style.width="".concat(this._canvasElementClientSize.width,"px"),this.canvasElement.style.height="".concat(this._canvasElementClientSize.height,"px"),this._invalidateBitmapSize()},e.prototype.subscribeBitmapSizeChanged=function(e){this._bitmapSizeChangedListeners.push(e)},e.prototype.unsubscribeBitmapSizeChanged=function(e){this._bitmapSizeChangedListeners=this._bitmapSizeChangedListeners.filter(function(t){return t!==e})},Object.defineProperty(e.prototype,"suggestedBitmapSize",{get:function(){return this._suggestedBitmapSize}
1,enumerable:!1,configurable:!0}),e.prototype.subscribeSuggestedBitmapSizeChanged=function(e){this._suggestedBitmapSizeChangedListeners.push(e)},e.prototype.unsubscribeSuggestedBitmapSizeChanged=function(e){this._suggestedBitmapSizeChangedListeners=this._suggestedBitmapSizeChangedListeners.filter(function(t){return t!==e})},e.prototype.applySuggestedBitmapSize=function(){if(null!==this._suggestedBitmapSize){var e=this._suggestedBitmapSize;this._suggestedBitmapSize=null,this._resizeBitmap(e),this._emitSuggestedBitmapSizeChanged(e,this._suggestedBitmapSize)}},e.prototype._resizeBitmap=function(e){var t=this.bitmapSize;n(t,e)||(this.canvasElement.width=e.width,this.canvasElement.height=e.height,this._emitBitmapSizeChanged(t,e))},e.prototype._emitBitmapSizeChanged=function(e,t){var a=this;this._bitmapSizeChangedListeners.forEach(function(i){return i.call(a,e,t)})},e.prototype._suggestNewBitmapSize=function(e){var t=this._suggestedBitmapSize,a=i(this._transformBitmapSize(e,this._canvasElementClientSize)),s=n(this.bitmapSize,a)?null:a;(null!==t||null!==s)&&(null!==t&&null!==s&&n(t,s)||(this._suggestedBitmapSize=s,this._emitSuggestedBitmapSizeChanged(t,s)))},e.prototype._emitSuggestedBitmapSizeChanged=function(e,t){var a=this;this._suggestedBitmapSizeChangedListeners.forEach(function(i){return i.call(a,e,t)})},e.prototype._chooseAndInitObserver=function(){var e=this;if(!this._allowResizeObserver)return void this._initDevicePixelRatioObservable();new Promise(function(e){var t=new ResizeObserver(function(a){e(a.every(function(e){return"devicePixelContentBoxSize"in e})),t.disconnect()});t.observe(document.body,{box:"device-pixel-content-box"})}).catch(function(){return!1}).then(function(t){return t?e._initResizeObserver():e._initDevicePixelRatioObservable()})},e.prototype._initDevicePixelRatioObservable=function(){var e=this;if(null!==this._canvasElement){var t=o(this._canvasElement);if(null===t)throw Error("No window is associated with the canvas");this._devicePixelRatioObservable=new s(t),this._devicePixelRatioObservable.subscribe(function(){return e._invalidateBitmapSize()}),this._invalidateBitmapSize()}},e.prototype._invalidateBitmapSize=function(){if(null!==this._canvasElement){var e,t,a=o(this._canvasElement);if(null!==a){var n,s,r=null!=(t=null==(e=this._devicePixelRatioObservable)?void 0:e.value)?t:a.devicePixelRatio,l=this._canvasElement.getClientRects(),m=void 0!==l[0]?(n=l[0],s=r,i({width:Math.round(n.left*s+n.width*s)-Math.round(n.left*s),height:Math.round(n.top*s+n.height*s)-Math.round(n.top*s)})):i({width:this._canvasElementClientSize.width*r,height:this._canvasElementClientSize.height*r});this._suggestNewBitmapSize(m)}}},e.prototype._initResizeObserver=function(){var e=this;null!==this._canvasElement&&(this._canvasElementResizeObserver=new ResizeObserver(function(t){var a=t.find(function(t){return t.target===e._canvasElement});if(a&&a.devicePixelContentBoxSize&&a.devicePixelContentBoxSize[0]){var n=a.devicePixelContentBoxSize[0],s=i({width:n.inlineSize,height:n.blockSize});e._suggestNewBitmapSize(s)}}),this._canvasElementResizeObserver.observe(this._canvasElement,{box:"device-pixel-content-box"}))},e}();function l(e,t){if("device-pixel-content-box"===t.type)return new r(e,t.transform,t.options);throw Error("Unsupported binding target")}function o(e){return e.ownerDocument.defaultView}var m=function(){function e(e,t,a){if(0===t.width||0===t.height)throw TypeError("Rendering target could only be created on a media with positive width and height");if(this._mediaSize=t,0===a.width||0===a.height)throw TypeError("Rendering target could only be created using a bitmap with positive integer width and height");this._bitmapSize=a,this._context=e}return e.prototype.useMediaCoordinateSpace=function(e){try{return this._context.save(),this._context.setTransform(1,0,0,1,0,0),this._context.scale(this._horizontalPixelRatio,this._verticalPixelRatio),e({context:this._context,mediaSize:this._mediaSize})}finally{this._context.restore()}},e.prototype.useBitmapCoordinateSpace=function(e){try{return this._context.save(),this._context.setTransform(1,0,0,1,0,0),e({context:this._context,mediaSize:this._mediaSize,bitmapSize:this._bitmapSize,horizontalPixelRatio:this._horizontalPixelRatio,verticalPixelRatio:this._verticalPixelRatio})}
1finally{this._context.restore()}},Object.defineProperty(e.prototype,"_horizontalPixelRatio",{get:function(){return this._bitmapSize.width/this._mediaSize.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_verticalPixelRatio",{get:function(){return this._bitmapSize.height/this._mediaSize.height},enumerable:!1,configurable:!0}),e}();function u(e,t){var a=e.canvasElementClientSize;if(0===a.width||0===a.height)return null;var i=e.bitmapSize;if(0===i.width||0===i.height)return null;var n=e.canvasElement.getContext("2d",t);return null===n?null:new m(n,a,i)}},9814:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var i=a(37876),n=a(14060),s=a(14232),r=a(70350),l=a(69255);let o=()=>(0,i.jsx)(i.Fragment,{children:[,,,].fill(null).map((e,t)=>(0,i.jsxs)(s.Fragment,{children:[0!==t&&(0,i.jsx)(r.A,{light:!0}),(0,i.jsxs)(n.A,{gap:"40px",height:"64px",children:[(0,i.jsx)(l.EY,{width:"full"}),(0,i.jsx)(l.EY,{width:"full"}),(0,i.jsx)(l.EY,{width:"full"})]})]},t))})},15341:(e,t,a)=>{"use strict";a.d(t,{A:()=>m});var i=a(80817),n=a(46728),s=a(54481),r=a(97478),l=a(56557),o=a.n(l);let m=async(e,t)=>{let a={...(0,s.A)(),...(0,r.A)(),"Content-Type":"text/csv",Accept:"text/csv"},l=await i.Ay.get(`${n.C}/reporting/activity`,{responseType:"blob",params:e,headers:a});return((e,t)=>{let a=URL.createObjectURL(e);((e,t)=>{let a=document.createElement("a");a.download=t,a.href=e,document.body.appendChild(a),a.click(),a.remove()})(a,t),URL.revokeObjectURL(a)})(l.data,(()=>{let a=e?.fromDate&&e.toDate&&e.fromDate!==e.toDate?`${o()(e.fromDate).format("MMM D, YYYY")} to ${o()(e.toDate).format("MMM D, YYYY")}`:o()().format("MMM D, YYYY");return`Dakota ${t?"Transactions":"Activity"} - ${a}.csv`})()),l}},24323:(e,t,a)=>{"use strict";a.d(t,{c:()=>i});let i={family:"Aktiv",fonts:[{src:"/fonts/aktivRegular.ttf",fontWeight:"normal"},{src:"/fonts/aktivSemibold.ttf",fontWeight:"semibold"},{src:"/fonts/aktivBold.ttf",fontWeight:"bold"}]}},25921:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>b});var i=a(37876),n=a(14232),s=a(56557),r=a.n(s),l=a(69576),o=a(46808),m=a(50887),u=a(14060);a(78549),a(88933);var c=a(52128),d=a.n(c);let p=Object.values(function(e){return e.WEEK="1W",e.MONTH="1M",e.QUARTER="3M",e.YEAR="1Y",e.ALL="ALL",e.CUSTOM="CUSTOM",e}({})),h=r()(),v=h.subtract(6,"day"),S=h.subtract(1,"month"),D=h.subtract(3,"month"),x=h.subtract(1,"year"),g="rgba(0, 0, 0, 0.3)",I="rgba(0, 0, 0, 0.1)",f="rgba(0, 0, 0, 0.05)",A="MMM DD, YYYY",U="YYYY-MM-DD",b=({data:e,timeRange:t=!0})=>{let a=(0,n.useRef)(null),[s,c]=(0,n.useState)(e.length<7?"1W":"1M"),b=e.some(e=>e.value&&e.value.toString().length>5),y=(0,n.useMemo)(()=>{if(e.length>=365)return e;let t=e.reduce((e,t)=>t.time.isBefore(e.time)?t:e,e[0]);return[...Array.from({length:365-e.length},(e,a)=>({value:0,time:t.time.subtract(a+1,"day")})).reverse(),...e]},[e]);return(0,n.useEffect)(()=>{let e=a.current,t=y&&y.length>0;if(!e||!t)return;let i=document.createElement("div");i.id="chart-top-border",i.className=i.id;let n=document.createElement("div");n.id="chart-right-border",n.className=n.id;let o=document.createElement("div");o.id="chart-tooltip",o.className=o.id;let u=(0,l.R9)(e,{localization:{dateFormat:A,priceFormatter:b?void 0:e=>(0,m.A)(e)},leftPriceScale:{visible:!0,autoScale:!0,entireTextOnly:!0,borderColor:I,scaleMargins:{top:.1,bottom:.1}},rightPriceScale:{visible:!1},timeScale:{borderColor:I,fixRightEdge:!0,fixLeftEdge:!0,tickMarkFormatter:e=>r()(e).format("MMM D")},grid:{horzLines:{color:f},vertLines:{color:f}},layout:{fontFamily:d().style.fontFamily,background:{type:l.mE.Solid,color:"rgba(255,255,255,1)"},textColor:"rgba(0,0,0,0.5)",attributionLogo:!1},width:e.clientWidth,height:300,crosshair:{horzLine:{visible:!1,labelVisible:!1},vertLine:{labelVisible:!1,color:g,style:2}}});u.timeScale().fitContent();let c=u.addAreaSeries({lineColor:"rgba(0, 0, 0, 100)",topColor:g,bottomColor:"rgba(0, 0, 0, 0.025)",lineVisible:!1,lineType:0,lastValueVisible:!1,priceLineVisible:!1,priceFormat:{type:b?"volume":"price"}});c.setData(y.map(e=>({time:e.time.format(U),value:e.value})));let p=y.reduce((e,t)=>t.time.isBefore(e.time)?t:e,y[0]).time.format(U);switch(s){case"1W":p=v.format(U);break;case"1M":p=S.format(U);break;case"3M":p=D.format(U);break;case"1Y":p=x.format(U)}u.timeScale().setVisibleRange({from:p,to:h.format(U)}),u.timeScale().subscribeSizeChange(()=>void(i.style.left=c.priceScale().width()+"px",i.style.width=u.paneSize().width+"px",n.style.bottom=u.timeScale().height()+"px",n.style.height=u.paneSize().height+"px",e.appendChild(i),e.appendChild(n))),e.appendChild(o),u.subscribeCrosshairMove(t=>{if(!t.point){o.style.display="none";return}let{x:a,y:i}=t.point,n=a<0||a>e.clientWidth||i<0||i>e.clientHeight,s=t.seriesData.get(c),l=!s||!("value"in s);n||l?o.style.display="none":(o.style.display="block",o.innerHTML=`<div class='chart-tooltip-value'>
2          ${(0,m.A)(s.value)}
3          </div><div>
4          ${r()(String(t.time)).format(A)}
5          </div>`,o.style.left=a+"px",o.style.top=i+"px")});let j=()=>{u.applyOptions({width:e.clientWidth}
5)};return window.addEventListener("resize",j),()=>{window.removeEventListener("resize",j),document.getElementById(o.id)?.remove(),document.getElementById(i.id)?.remove(),document.getElementById(n.id)?.remove(),u.remove()}},[y,s,b]),(0,i.jsxs)(o.A,{marginRight:"-16px",width:"full",style:{marginBottom:"-23px"},children:[t&&(0,i.jsx)(u.A,{width:"full",justify:"flex-end",gap:"sm",marginBottom:"sm",children:p.filter(e=>"CUSTOM"!==e).map(e=>(0,i.jsx)(o.A,{onClick:()=>c(e),cursor:"pointer",padding:"xs",borderRadius:"medium",fontSize:"small",color:"primary50",backgroundColor:e===s?"primary10":"white",children:e},e))}),(0,i.jsx)(o.A,{position:"relative",ref:a,style:{cursor:"none"}})]})}},33911:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var i=a(48361),n=a.n(i);let s=(e=[])=>{let t=[];return e.forEach(({balances:e,networkID:a})=>{e.forEach(e=>{t.push({amount:e.amount,amountInUSD:e.amountInUSD,networkID:a})})}),n()(t,[e=>parseFloat(e.amountInUSD),e=>e.amount?.currency.symbol],["desc","asc"])}},41537:(e,t,a)=>{"use strict";a.d(t,{A:()=>U});var i=a(37876),n=a(14232),s=a(31413),r=a(75143),l=a(47002),o=a(76363),m=a(92482),u=a(53516),c=a(48616),d=a(46808),p=a(14060),h=a(70350),v=a(584),S=a(31057);let D={rule:!0},x="24px",g=({buttonVariant:e,label:t,items:a,disabled:s})=>{let[r,l]=(0,n.useState)(!1),o=(0,i.jsx)(v.A,{variant:e,disabled:s,children:(0,i.jsxs)(p.A,{alignItems:"center",children:[(0,i.jsx)(S.A,{marginRight:"xs",variant:"titleSmall",flex:"auto",children:t}),(0,i.jsx)(d.A,{width:x,height:x,marginRight:"-8px",transform:r?"rotate-180":"rotate-0",children:(0,i.jsx)(m.bD,{width:x})})]})}),u=(0,n.useMemo)(()=>(0,i.jsx)(p.A,{direction:"vertical",backgroundColor:"white",borderRadius:"large",paddingY:"xs",children:a.map((e,t)=>(0,i.jsx)(n.Fragment,{children:void 0!==e.rule?(0,i.jsx)(h.A,{marginY:"xs",light:!0}):(0,i.jsx)(d.A,{minWidth:"200px",padding:"sm",marginX:"xs",opacity:e.disabled?"50":void 0,backgroundColor:{hover:e.disabled?"white":"rowHoverDark"},cursor:e.disabled?"not-allowed":"pointer",borderRadius:"medium",onClick:e.disabled?void 0:e.onClick,children:(0,i.jsxs)(p.A,{children:[e.icon,(0,i.jsx)(S.A,{marginLeft:"sm",variant:"titleSmall",flex:"auto",children:e.label})]})},t)},t))}),[a]);return(0,i.jsx)(c.A,{trigger:o,content:u,align:"end",onOpenClose:()=>l(!r)})};var I=a(43039),f=a(40401),A=a(80670);let U=()=>{let{openModal:e,ModalType:t}=(0,l.A)(),{data:a}=(0,s.gqE)(),{data:c=[]}=(0,s.sUi)(),{flags:d}=(0,A.h)(),p=(0,u.A)(),{accounts:h}=(0,o.A)(r.JM.INITIATE_TRANSFER),{accounts:v}=(0,o.A)(r.JM.APPROVE_TRANSFER),S=(0,n.useMemo)(()=>p?c.some(e=>e.accountID===p&&0!==parseFloat(e.amountInUSD)):a&&0!==parseFloat(a.amountInUSD),[a,p,c]);if(!(0,n.useMemo)(()=>p?h.includes(p)||v.includes(p):h.length>0||v.length>0,[h,v,p]))return null;let x=[{label:"Send",icon:(0,i.jsx)(m.Au,{size:"18px"}),onClick:()=>{(0,I.u4)(I.qY.SEND.OPEN_MODAL),e(t.SelectSendType)}},{label:"Transfer",icon:(0,i.jsx)(m.pc,{size:"18px"}),onClick:()=>{(0,I.u4)(I.qY.TRANSFER.OPEN_MODAL),e(t.WithdrawCryptoFrom,{transferType:f.u.Internal})}},{label:"Deposit",icon:(0,i.jsx)(m.G4,{size:"18px"}),onClick:()=>{(0,I.u4)(I.qY.DEPOSITS.OPEN_MODAL),e(t.SelectDepositType)}}];return d.STABLECOIN_SWAP&&(x.push(D),x.push({label:"Swap stablecoins",icon:(0,i.jsx)(m.f6,{size:"18px"}),onClick:()=>{(0,I.u4)(I.qY.SWAP.OPEN_MODAL),e(t.SwapFrom)},disabled:!S})),(0,i.jsx)(g,{disabled:!1,label:"Move money",items:x})}},43494:(e,t,a)=>{"use strict";a.d(t,{A:()=>D});var i=a(37876),n=a(56557),s=a.n(n),r=a(14232),l=a(89099),o=a(94257),m=a(3775),u=a(12630),c=a(3345),d=a(72569),p=a(89689);let h=s()().format("YYYY-MM-DD"),v=function(e,t=!1){let a=s()(e),i=a.format("YYYY-MM-DD"),n=a.format("h:mm A"),r=a.format("MM/DD/YYYY");return t?`${r} ${n}`:h===i?n:r},S=(0,m.F)(),D=function({activities:e,hideAccountColumn:t,...a}){let{push:n,query:h}=(0,l.useRouter)(),D=h?.accountID?.toString(),{min1440:x}=(0,p.G)(),g=(0,r.useMemo)(()=>{let e=[S.accessor("label",{header:"Type",cell:e=>e.renderValue()}),S.accessor("initiator",{header:()=>"Initiated By",cell:e=>{let t=e.getValue();return(0,o.A)(t)?(0,i.jsx)(c.A,{address:t||"",trimmed:!0}):t}}),S.accessor("createdAt",{enableSorting:!0,header:()=>"Initiated At",cell:e=>{let t=s().unix(parseInt(e.getValue(),10)).format("MM/DD/YY h:mm A");return x?t:v(t)}})];return t||e.push(S.accessor("account",{header:()=>"Account"})),e.push(S.accessor("status",{header:()=>"Status",cell:e=>{let t=e.getValue();return t?(0,i.jsx)(u.Ay,{status:t}):"—"}})),e},[t,x]),I=(0,r.useMemo)(()=>e.sort((e,t)=>
5parseInt(t.createdAt,10)-parseInt(e.createdAt,10)),[e]),f=(0,r.useCallback)(e=>{let t=`${d.bw.activity}/${e.id}`;D&&(t+=`?accountID=${D}`),n(t)},[D,n]);return(0,i.jsx)(m.A,{columns:g,data:I,onRowClick:f,...a})}},47702:(e,t,a)=>{"use strict";a.d(t,{r:()=>s});var i=a(11394);let n="1px solid #ccc",s=i.StyleSheet.create({page:{fontFamily:"Aktiv",fontSize:9,lineHeight:1.3,paddingHorizontal:30,paddingTop:30,paddingBottom:60},flex:{flexDirection:"row"},header:{flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",fontSize:10,lineHeight:1.5},pagination:{marginTop:5,opacity:.5},bold:{fontWeight:"bold"},underline:{textDecoration:"underline"},largeBodyText:{fontSize:10,lineHeight:1.5},hr:{marginVertical:15,height:1,backgroundColor:"#eee"},logo:{width:75,height:"auto"},heading:{fontWeight:"bold",fontSize:16,marginBottom:20},balances:{width:"100%",fontSize:10,borderRadius:"5px",border:n,padding:20},detailLabel:{fontWeight:"semibold",width:100,marginRight:6},spacer:{height:20},table:{borderRadius:"5px",border:n},thead:{fontWeight:"semibold",flexDirection:"row",justifyContent:"space-between",alignItems:"flex-end",borderBottom:n,paddingVertical:10,paddingHorizontal:20},tbody:{padding:10},row:{flexDirection:"row",justifyContent:"space-between",alignItems:"flex-end",paddingHorizontal:10,paddingVertical:8},details:{alignItems:"flex-end"},dakotaInfo:{position:"absolute",bottom:20,left:0,width:"100%",marginTop:20,fontSize:8,flexDirection:"row",justifyContent:"center",gap:10,color:"#666"}})},50278:(e,t,a)=>{"use strict";a.d(t,{A:()=>x});var i=a(37876);a(14232);var n=a(11394),s=a(56557),r=a.n(s),l=a(71576),o=a.n(l),m=a(47702),u=a(66877),c=a(50887),d=a(68510),p=a(186),h=a(24323),v=a(56047),S=a(79280);r().extend(o());let D="LETTER";n.Font.register(h.c);let x=({organization:e,transactions:t,startingBalanceUSD:a,endingBalanceUSD:s,totalWithdrawnUSD:l,totalDepositedUSD:o,accountName:h,accountNumber:x,routingNumber:g,statementPeriod:I,marketAdjustmentsUSD:f,deletedAt:A,periodEnd:U})=>{let b=t?.length>0,y="Cards"===h,j=r().utc(I,"YYYY-MM"),w=j.startOf("month"),C=!!U,_=C?r().utc(U,"YYYY-MM-DD"):j.endOf("month"),k=w.format("MM/D/YYYY"),E=_.format("MM/D/YYYY"),L=_.diff(w,"day")+1,z=j.format("MMMM"),M=j.format("YYYY"),T=`${z} ${M} Statement`,R=r().utc(Number(A)),N=R&&R.isSame(j,"month"),O=({children:e})=>(0,i.jsx)(n.Text,{style:{width:"25%"},children:e}),B=t?t.reduce((e,t,a)=>(a%20==0&&e.push([]),e[e.length-1].push(t),e),[]):[];return(0,i.jsxs)(n.Document,{title:T,author:u.hZ,creator:u.hZ,producer:u.hZ,children:[(0,i.jsxs)(n.Page,{size:D,style:m.r.page,children:[(0,i.jsx)(d.A,{}),(0,i.jsx)(v.A,{count:2}),(0,i.jsxs)(n.View,{style:m.r.header,children:[(0,i.jsxs)(n.View,{children:[(0,i.jsx)(n.Text,{style:m.r.bold,children:e?.name}),(0,i.jsxs)(n.Text,{children:[e?.street1,e?.street2?`, ${e.street2}`:""]}),(0,i.jsxs)(n.Text,{children:[e?.city,", ",e?.region," ",e?.postalCode," ",e?.country]})]}),(0,i.jsxs)(n.View,{style:m.r.details,children:[(0,i.jsxs)(n.Text,{style:m.r.bold,children:[T,C?" (Partial)":""]}),(0,i.jsxs)(n.Text,{children:[k,"-",E," (",L," days)"]}),C&&(0,i.jsxs)(n.Text,{children:["Partial month — through ",E]}),(0,i.jsx)(n.Text,{children:"All dates in UTC"})]})]}),(0,i.jsx)(v.A,{count:4}),(0,i.jsxs)(n.View,{style:m.r.flex,children:[(0,i.jsx)(n.View,{}),(0,i.jsxs)(n.View,{style:{width:"50%"},children:[(0,i.jsx)(n.Text,{style:m.r.heading,children:"Account details"}),(0,i.jsxs)(n.View,{style:m.r.balances,children:[(0,i.jsx)(S.A,{label:"Account name",value:h,hr:!y}),!y&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(S.A,{label:"Account number",value:x,hr:!0}),(0,i.jsx)(S.A,{label:"Routing number",value:g,hr:N})]}),N&&(0,i.jsx)(S.A,{label:"Account closed",value:R.format("MM/D/YYYY")})]}),(0,i.jsx)(v.A,{}),(0,i.jsx)(n.Text,{style:m.r.heading,children:y?"Card activity":"Account activity"}),(0,i.jsxs)(n.View,{style:m.r.balances,children:[!y&&(0,i.jsx)(S.A,{label:"Starting balance",value:(0,c.A)(a),hr:!0}),(0,i.jsx)(S.A,{label:y?"Total purchases":"Total withdrawals",value:(0,c.A)(l),hr:!0}),(0,i.jsx)(S.A,{label:y?"Total refunds":"Total deposits",value:(0,c.A)(o),hr:!y}),!y&&f&&(0,i.jsx)(S.A,{label:"Market adjustments",value:(0,c.A)(f),hr:!0}),!y&&(0,i.jsx)(S.A,{label:"Ending balance",value:(0,c.A)(s)})]})]})]}),(0,i.jsx)(p.A,{})]}),(0,i.jsxs)(n.Page,{size:D,style:m.r.page,children:[(0,i.jsxs)(n.View,{fixed:!0,children:[(0,i.jsx)(d.A,{}),(0,i.jsx)(v.A,{count:2})]}),!b&&(0,i.jsx)(n.Text,{style:m.r.heading,children:"There were no transactions for this time period"}),B.map((e,t)=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(n.View,{style:m.r.flex,wrap:!1,children:[(0,i.jsx)(n.Text,{style:m.r.heading,children:1===B.length?"All transactions":"Transactions"}),(0,i.jsx)(n.Text,{style:m.r.pagination,children:B.length>1&&`Page ${t+1}`})]}),(0,i.jsxs)(n.View,{style:m.r.table,children:[(0,i.jsxs)(n.View,{style:m.r.thead,children:[(0,i.jsx)(O,{children:"Date (UTC)"}),(0,i.jsx)(O,{children:"Transaction"}),(0,i.jsx)(O,{children:"Amount"}),(0,i.jsx)(O,{children:"Amount in USD"})]}),(0,i.jsx)(n.View,{style:m.r.tbody,children:e.map((e,t)=>(0,i.jsxs)(n.View,{style:m.r.row,wrap:!1,children:[(0,i.jsx)(O,{children:r().utc(Number(e.date)).format("MMM D h:mm A")}),(0,i.jsx)(O,{children:e.transaction}),(0,i.jsxs)(O,{children:[e.amount?.value," ",e.amount?.currency.symbol]}),(0,i.jsx)(O,{children:(0,c.A)(e.amountInUSD)})]},t))})]},t)]})),(0,i.jsx)(p.A,{})]})]})}},50477:()=>{},53214:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var i=a(12630);let n=(e,t)=>{switch(e){case"Expired":case"Failed":return i.nW.Failed;case"Refunded":return i.nW.Refunded;case"Undeliverable":return i.nW.Undeliverable;case"Canceled":return i.nW.Canceled;case"Completed":return i.nW.Completed;case"Endorsing":return t?i.nW.Review:i.nW.Pending;
5case"Awaiting Login":return i.nW.AwaitingLogin;case"Reviewing":return i.nW.Review;case"Broadcasting":case"Initializing":case"Pending":case"Processing Funds":case"In Progress":return i.nW.Pending}return i.nW.Unknown}},56047:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var i=a(37876),n=a(47702),s=a(11394);let r=({count:e=1})=>(0,i.jsx)(i.Fragment,{children:Array.from({length:e},(e,t)=>(0,i.jsx)(s.View,{style:n.r.spacer},t))})},60296:()=>{},61199:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var i=a(37876);let n=(0,a(79855).A)((0,i.jsx)("path",{d:"M5.5 16.7834C5.08333 16.7834 4.72933 16.6374 4.438 16.3454C4.146 16.0541 4 15.7001 4 15.2834V13.7834H5.5V15.2834L14.5 15.2834V13.7834H16V15.2834C16 15.7001 15.854 16.0541 15.562 16.3454C15.2707 16.6374 14.9167 16.7834 14.5 16.7834H5.5ZM10 13.7834L6 9.78345L7.062 8.72145L9.25 10.9084V3.78345H10.75V10.9084L12.938 8.72145L14 9.78345L10 13.7834Z"}),"Download","0 0 20 20")},67580:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard",function(){return a(90452)}])},68510:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var i=a(37876),n=a(47702),s=a(11394);let r=()=>(0,i.jsxs)(s.Svg,{style:n.r.logo,viewBox:"0 0 153 24",fill:"black",children:[(0,i.jsx)(s.Path,{d:"M136.426 23.4234H129.26L136.682 0.575439H145.64L152.999 23.4234H145.672L144.649 19.7434H137.418L136.426 23.4234ZM141.033 6.49544L138.954 14.0794H143.113L141.033 6.49544Z"}),(0,i.jsx)(s.Path,{d:"M113.874 6.81544H107.507V0.575439H127.503V6.81544H121.136V23.4234H113.874V6.81544Z"}),(0,i.jsx)(s.Path,{d:"M78.7539 12.096C78.7539 8.27733 79.8093 5.312 81.9199 3.2C84.0528 1.06667 87.03 0 90.8514 0C94.6285 0 97.5501 1.03467 99.6163 3.104C101.705 5.17333 102.749 8.096 102.749 11.872C102.749 15.712 101.694 18.6987 99.583 20.832C97.4723 22.944 94.4951 24 90.6515 24C86.8745 24 83.9417 22.9653 81.8533 20.896C79.787 18.8267 78.7539 15.8933 78.7539 12.096Z"}),(0,i.jsx)(s.Path,{d:"M54.1387 0.575439H61.4012V8.15944L67.416 0.575439H75.0304L67.9279 9.08744L75.8623 23.4234H67.9599L63.1928 14.4314L61.4012 16.6074V23.4234H54.1387V0.575439Z"}),(0,i.jsx)(s.Path,{d:"M31.8003 23.4234H24.6338L32.0563 0.575439H41.0145L48.373 23.4234H41.0465L40.0227 19.7434H32.7921L31.8003 23.4234ZM36.4074 6.49544L34.3278 14.0794H38.487L36.4074 6.49544Z"}),(0,i.jsx)(s.Path,{d:"M0 0.575439H9.37409C13.2986 0.575439 16.2634 1.53544 18.2683 3.45544C20.2732 5.35411 21.2757 8.14877 21.2757 11.8394C21.2757 15.5941 20.2519 18.4634 18.2043 20.4474C16.178 22.4314 13.2346 23.4234 9.37409 23.4234H0V0.575439ZM13.9172 11.9354C13.9172 8.41544 12.4881 6.65544 9.63004 6.65544H7.10255V17.3434H9.63004C12.4881 17.3434 13.9172 15.5408 13.9172 11.9354Z"})]})},71576:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(i,n,s){var r=n.prototype;s.utc=function(e){var t={date:e,utc:!0,args:arguments};return new n(t)},r.utc=function(t){var a=s(this.toDate(),{locale:this.$L,utc:!0});return t?a.add(this.utcOffset(),e):a},r.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var l=r.parse;r.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),l.call(this,e)};var o=r.init;r.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else o.call(this)};var m=r.utcOffset;r.utcOffset=function(i,n){var s=this.$utils().u;if(s(i))return this.$u?0:s(this.$offset)?m.call(this):this.$offset;if("string"==typeof i&&null===(i=function(e){void 0===e&&(e="");var i=e.match(t);if(!i)return null;var n=(""+i[0]).match(a)||["-",0,0],s=n[0],r=60*n[1]+ +n[2];return 0===r?0:"+"===s?r:-r}(i)))return this;var r=16>=Math.abs(i)?60*i:i;if(0===r)return this.utc(n);var l=this.clone();if(n)return l.$offset=r,l.$u=!1,l;var o=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(l=this.local().add(r+o,e)).$offset=r,l.$x.$localOffset=o,l};var u=r.format;r.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},r.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},r.isUTC=function(){return!!this.$u},r.toISOString=function(){return this.toDate().toISOString()},r.toString=function(){return this.toDate().toUTCString()};var c=r.toDate;r.toDate=function(e){return"s"===e&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():c.call(this)};var d=r.diff;r.diff=function(e,t,a){if(e&&this.$u===e.$u)return d.call(this,e,t,a);var i=this.local(),n=s(e).local();return d.call(i,n,t,a)}}}()},75501:(e,t,a)=>{"use strict";a.d(t,{A:()=>f});var i=a(14232),n=a(31413),s=a(37876),r=a(2769),l=a(51357),o=a(53214),m=a(12536),u=a(12183),c=a(50887),d=a(14060),p=a(31057),h=a(64969),v=a(75143),S=a(12930),D=a(50640),x=a(99914);let g=e=>{if(!e)return D.dm.Unknown;for(let t of Object.values(D.dm))if(e.toLowerCase()===t)return t;return D.dm.Unknown};var I=a(90477);let f=(e=[],t)=>{let{data:a=[],isLoading:f}=(0,n.Cu6)(),{data:A=[],isLoading:U}=(0,n.GgW)(),{groupIDs:b,isLoading:y}=(0,I.A)(),{data:j,isLoading:w}=(0,n.wwj)(),{data:C=[]}=(0,n.qEN)(),_=(0,i.useMemo)(()=>C.reduce((e,t)=>
5(t.blockchainAddress&&(e[t.blockchainAddress.canonicalAddress]=t.name),e),{}),[C]),k=(0,i.useMemo)(()=>A.map(e=>({...e,accountName:a.find(t=>t.id===e.accountID)?.name||"Unknown"})),[A,a]);return{operations:(0,i.useMemo)(()=>t?.transactionsOnly?((e=[],t=[],a=[],i=[],n,m,d)=>{let I=(e="",t)=>t?.name||m?.[e]||(0,S.A)(e||"",!0,12);return e.map(({accountID:e,type:m,id:S,createdAt:f,policy:A,operation:U,initiator:b,status:y})=>{let j,w=n&&(A?.allowedEndorsers?.find(e=>e?.ownerID===n)||(0,u.A)(A?.groupIDs||[],i)),C=(0,o.A)(y,!!w),_=b.name,k=D.dm.Unknown;if("PRINCIPAL_TYPE_ADDRESS"===b.type){let e=a.find(e=>e.canonicalAddress===U?.source)?.accountName||U?.source;_=e?I(e):b.name}switch((0,l.A)(m.id,r.OM)&&(j=a.find(e=>e.canonicalAddress===U.stakedAddress)?.accountName),U.accountID&&(j=a.find(e=>e.accountID===U.accountID)?.accountName),e&&(j=t.find(t=>t.id===e)?.name||j),m.id){case v.b3.BLOCKCHAIN_DEPOSIT:k=D.dm.Crypto,_=(j=a.find(e=>e.canonicalAddress===U.source)?.accountName)?`Transfer from ${j}`:`Deposit from ${I(U?.source)}`;break;case v.b3.STABLE_CONVERSION:{k=D.dm.Crypto;let e=U?.amount?.currency.symbol,t=U?.destinationCurrency?.symbol;_=`${e} to ${t}`,j=a.find(e=>e.canonicalAddress===U?.source)?.accountName;break}case v.b3.BLOCKCHAIN_WITHDRAWAL:{k=D.dm.Crypto;let e=a.find(e=>e.canonicalAddress===U?.destination)?.accountName;j=a.find(e=>e.canonicalAddress===U?.source)?.accountName||e,_=h.kg.includes(U?.destination||"")?"Dakota Subscription":e?`Transfer to ${e}`:`Withdraw to ${I(U?.destination,d?.find(e=>e.id===U?.cryptoRecipientID))}`;break}case v.b3.BANK_WITHDRAWAL:case v.b3.BANK_DEPOSIT:k=g(U?.paymentType),_=U?.to&&U?.from?`${U.to}/${U.from}`:`${U?.bankName} ${U?.accountNumber?.slice(-4)}`;break;case v.b3.OFFRAMP:k=g(U?.paymentType),U&&(_=`${U.recipient?.friendlyName||U.recipient?.bankName} ${U.recipient?.last4}`);break;case v.b3.FUND_CREDIT_CARDS:k=D.dm.Crypto,j=a.find(e=>e.canonicalAddress===U?.source)?.accountName,U&&(_="Transfer to Cards");break;case v.b3.TRANSFER_FROM_CARDS:k=D.dm.Crypto,j=a.find(e=>e.canonicalAddress===U?.destination)?.accountName,U&&(_="Transfer from Cards");break;case v.b3.CARD_FUNDS_DEPOSIT:k=D.dm.Crypto,j=x.Sw,U&&(_="Funds added to Cards");break;case v.b3.WITHDRAW_CREDIT_CARDS:k=D.dm.Crypto,j=x.Sw,U&&(_="Funds removed from Cards");break;case v.b3.CREDIT_CARD_TRANSACTION:k=D.dm.Card,j=x.Sw;break;case v.b3.VA_MICRODEPOSIT:case v.b3.VA_DEPOSIT:_=U?.senderName||"Bank",k=g(U?.paymentType);break;case v.b3.BLOCKCHAIN_VAULT_DEPOSIT:case v.b3.BLOCKCHAIN_VAULT_WITHDRAWAL:k=D.dm.Crypto,_=`${r.dj[m.id]} from ${j||I(U?.sourceAddress)}`;break;case v.b3.BLOCKCHAIN_STAKE:k=D.dm.Crypto,_=`${r.dj[m.id]} from ${j}`;break;case v.b3.BLOCKCHAIN_CLAIM:k=D.dm.Crypto,_=`${r.dj[m.id]} to ${j}`;break;case v.b3.SWIFT_REQUEST:k=D.dm.SWIFT,_=`SWIFT request to ${j}`}return{account:j||"Organization",createdAt:f,id:S,toFrom:_,paymentType:k,status:C,type:m,amount:((e,t)=>{let a=r.N1.includes(t),i=e&&e.toString().startsWith("-");return(0,s.jsx)(p.A,{color:a?void 0:"success50",children:`${a&&!i?"-":""}${(0,c.A)(e)}`})})(U.amountInUSD,m.id)}})})(e,a,k,b,j?.id,_,C):((e=[],t=[],a=[],i=[],n,S)=>e.map(({accountID:e,type:D,id:x,createdAt:g,policy:I,operation:f,initiator:A,status:U})=>{let b,y=n&&(I?.allowedEndorsers?.find(e=>e?.ownerID===n)||(0,u.A)(I?.groupIDs||[],i)),j=(0,o.A)(U,!!y),w=A.name;return"PRINCIPAL_TYPE_ADDRESS"===A.type&&(w=S?.[A.id]||a.find(e=>e.canonicalAddress===A.id)?.accountName||A.name),D.id===v.b3.BLOCKCHAIN_WITHDRAWAL&&(b=a.find(e=>e.canonicalAddress===f.source)?.accountName),D.id===v.b3.BLOCKCHAIN_DEPOSIT&&(b=a.find(e=>e.canonicalAddress===f.destination)?.accountName),D.id===v.b3.TRANSFER_FROM_CARDS&&(b=a.find(e=>e.canonicalAddress===f.destination)?.accountName),D.id===v.b3.CREATE_ADDRESS&&(b=a.find(e=>e.canonicalAddress===f.address.canonicalAddress)?.accountName),D.id===v.b3.VA_DEPOSIT&&(w=f?.senderName||"Bank"),(0,l.A)(D.id,r.OM)&&(b=a.find(e=>e.canonicalAddress===f.stakedAddress)?.accountName),f.accountID&&(b=a.find(e=>e.accountID===f.accountID)?.accountName),e&&(b=t.find(t=>t.id===e)?.name||b),{account:b||"Organization",accountID:e||f.accountID||void 0,createdAt:g,id:x,initiator:w,status:j,type:D,label:((e,t)=>{if((0,l.A)(e.id,r.Y9)){let a=(0,m.A)(t.amount);(0,l.A)(e.id,r.qD)&&(a=(0,c.A)(t.amountInUSD));let i=e.name;return e.id===v.b3.BLOCKCHAIN_WITHDRAWAL&&h.kg.includes(t?.destination||"")&&(i="Dakota Subscription"),(0,s.jsxs)(d.A,{gap:"16px",children:[(0,s.jsx)(p.A,{children:i}),(0,s.jsx)(p.A,{color:"textDetail",children:a})]})}return e.id===v.b3.WC_REQUEST&&t?.dapp?.name?`${t.dapp.name} Activity`:e.name})(D,f)}}))(e,a,k,b,j?.id,_),[t?.transactionsOnly,e,a,C,k,_,b,j?.id]),isLoading:f||U||y||w}}},79280:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var i=a(37876),n=a(47702),s=a(11394);let r=({label:e,value:t,hr:a})=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(s.View,{style:n.r.flex,children:[(0,i.jsx)(s.Text,{style:n.r.detailLabel,children:e}),(0,i.jsx)(s.Text,{children:t})]}),a&&(0,i.jsx)(s.View,{style:n.r.hr})]})},86580:(e,t,a)=>{"use strict";a.d(t,{A:()=>m});var i=a(37876),n=a(14232),s=a(31413),r=a(72852),l=a(46808),o=a(24202);let m=({currencySymbol:e,networkID:t})=>{let{data:a=[]}=(0,s.dr5)(),m=(0,n.useCallback)(e=>a.find(t=>e.includes(t.name.toLowerCase()))?.symbol||"",[a]);return(0,i.jsxs)(l.A,{position:"relative",children:[(0,i.jsx)(o.h,{item:e}),t!==r.QN&&(e!==m(t)||!t.includes("mainnet"))&&(0,i.jsx)(l.A,{position:"absolute",bottom:"-4px",right:"-8px",borderRadius:"small",borderWidth:"1px",borderColor:"white",children:(0,i.jsx)(o.h,{size:"12px",item:t,type:o.A.Network})})]})}},88933:()=>{},89689:(e,t,a)=>{"use strict";a.d(t,{G:()=>s});var i=a(14232);let n=[0,320,375,425,475,640,768,1024,1200,1440,1600,1920];function s(){let[e,t]=(0,i.useState)({}),a=(0,i.useMemo)(()=>()=>{t(n.reduce((e,t)=>
5(e[`min${t}`]=window.innerWidth>=t,e),{}))},[]);return(0,i.useEffect)(()=>(window.addEventListener("resize",a),a(),()=>{window.removeEventListener("resize",a)}),[a]),e}},90452:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>e4});var i=a(37876),n=a(14232),s=a(31413),r=a(20966),l=a(72569),o=a(33911),m=a(20238),u=a(7101),c=a(31057),d=a(14060),p=a(98734),h=a(43494),v=a(41537),S=a(75501),D=a(70295),x=a(50887),g=a(70350),I=a(68041),f=a(72992),A=a(69255),U=a(92482),b=a(92465),y=a(12536),j=a(46808),w=a(81048),C=a(86580);a(60296);var _=a(9814);let k=({assetBalances:e,emptyState:t,isLoading:a})=>(0,i.jsx)(j.A,{overflowY:"scroll",scrollbarWidth:"none",marginBottom:"-16px",children:(0,i.jsxs)(d.A,{direction:"vertical",flex:"auto",textStyle:"bodyLarge",children:[!a&&e.map(({amount:e,amountInUSD:t,networkID:a},s)=>(0,i.jsxs)(n.Fragment,{children:[0!==s&&(0,i.jsx)(g.A,{light:!0}),(0,i.jsxs)(j.A,{className:"zlrma40",children:[(0,i.jsxs)(c.A,{children:[(0,i.jsx)(C.A,{currencySymbol:e?.currency.symbol,networkID:a}),(0,i.jsx)(c.A,{marginLeft:"sm",wrap:"nowrap",alignItems:"center",children:(0,i.jsx)(c.A,{children:e?.currency.name})})]}),(0,i.jsx)(c.A,{wrap:"nowrap",justifySelf:"flex-end",children:(0,y.A)(e)}),(0,i.jsxs)(c.A,{wrap:"nowrap",color:"textDetail",justifySelf:"flex-end",children:[(0,x.A)(t)," USD"]})]})]},`${e?.currency.name||""}${s}`)),a&&(0,i.jsx)(_.A,{}),!a&&!!t&&(0,i.jsx)(w.A,{...t})]})});var E=a(56557),L=a.n(E),z=a(25921),M=a(71576),T=a.n(M);let R=[{timestamp:"1711688400",valueInUSD:"70784.90"},{timestamp:"1711602000",valueInUSD:"69452.77"},{timestamp:"1711515600",valueInUSD:"69991.90"},{timestamp:"1711429200",valueInUSD:"69931.33"},{timestamp:"1711342800",valueInUSD:"67234.09"},{timestamp:"1711256400",valueInUSD:"64070.75"},{timestamp:"1711170000",valueInUSD:"63802.72"},{timestamp:"1711083600",valueInUSD:"65489.93"},{timestamp:"1710997200",valueInUSD:"67911.59"},{timestamp:"1710910800",valueInUSD:"61930.16"},{timestamp:"1710824400",valueInUSD:"67556.13"},{timestamp:"1710738000",valueInUSD:"68371.30"},{timestamp:"1710651600",valueInUSD:"65316.34"},{timestamp:"1710565200",valueInUSD:"69392.48"},{timestamp:"1710478800",valueInUSD:"71387.88"},{timestamp:"1710392400",valueInUSD:"73079.38"},{timestamp:"1710306000",valueInUSD:"71482.12"},{timestamp:"1710219600",valueInUSD:"72125.13"},{timestamp:"1710133200",valueInUSD:"69020.55"},{timestamp:"1710050400",valueInUSD:"68500.26"},{timestamp:"1709964000",valueInUSD:"68299.26"},{timestamp:"1709877600",valueInUSD:"66938.09"},{timestamp:"1709791200",valueInUSD:"66099.74"},{timestamp:"1709704800",valueInUSD:"63776.05"},{timestamp:"1709618400",valueInUSD:"68341.05"},{timestamp:"1709532000",valueInUSD:"63137.00"},{timestamp:"1709445600",valueInUSD:"62031.58"},{timestamp:"1709359200",valueInUSD:"62431.65"},{timestamp:"1709272800",valueInUSD:"61168.06"},{timestamp:"1709186400",valueInUSD:"62499.18"},{timestamp:"1709100000",valueInUSD:"57071.10"},{timestamp:"1709013600",valueInUSD:"54519.36"},{timestamp:"1708927200",valueInUSD:"51730.54"},{timestamp:"1708840800",valueInUSD:"51565.21"},{timestamp:"1708754400",valueInUSD:"50736.37"},{timestamp:"1708668000",valueInUSD:"51283.91"},{timestamp:"1708581600",valueInUSD:"51854.64"},{timestamp:"1708495200",valueInUSD:"52273.54"},{timestamp:"1708408800",valueInUSD:"51777.73"},{timestamp:"1708322400",valueInUSD:"52134.81"},{timestamp:"1708236000",valueInUSD:"51661.97"},{timestamp:"1708149600",valueInUSD:"52161.68"},{timestamp:"1708063200",valueInUSD:"51937.73"},{timestamp:"1707976800",valueInUSD:"51836.79"},{timestamp:"1707890400",valueInUSD:"49733.45"},{timestamp:"1707804000",valueInUSD:"49941.36"},{timestamp:"1707717600",valueInUSD:"48296.39"},{timestamp:"1707631200",valueInUSD:"47768.97"},{timestamp:"1707544800",valueInUSD:"47153.53"},{timestamp:"1707458400",valueInUSD:"45297.38"},{timestamp:"1707372000",valueInUSD:"44332.13"},{timestamp:"1707285600",valueInUSD:"43090.02"},{timestamp:"1707199200",valueInUSD:"42657.39"},{timestamp:"1707112800",valueInUSD:"42577.62"},{timestamp:"1707026400",valueInUSD:"42994.94"},{timestamp:"1706940000",valueInUSD:"43184.96"},{timestamp:"1706853600",valueInUSD:"43077.64"},{timestamp:"1706767200",valueInUSD:"42569.76"},{timestamp:"1706680800",valueInUSD:"42946.25"},{timestamp:"1706594400",valueInUSD:"43300.23"},{timestamp:"1706508000",valueInUSD:"42030.91"}
5,{timestamp:"1706421600",valueInUSD:"42126.13"},{timestamp:"1706335200",valueInUSD:"41815.63"},{timestamp:"1706248800",valueInUSD:"39936.82"},{timestamp:"1706162400",valueInUSD:"40075.55"},{timestamp:"1706076000",valueInUSD:"39877.59"},{timestamp:"1705989600",valueInUSD:"39518.71"},{timestamp:"1705903200",valueInUSD:"41553.65"},{timestamp:"1705816800",valueInUSD:"41671.49"},{timestamp:"1705730400",valueInUSD:"41624.59"},{timestamp:"1705644000",valueInUSD:"41278.46"},{timestamp:"1705557600",valueInUSD:"42742.31"},{timestamp:"1705471200",valueInUSD:"43132.10"},{timestamp:"1705384800",valueInUSD:"42499.34"},{timestamp:"1705298400",valueInUSD:"41715.07"},{timestamp:"1705212000",valueInUSD:"42842.26"},{timestamp:"1705125600",valueInUSD:"42799.45"},{timestamp:"1705039200",valueInUSD:"46354.79"},{timestamp:"1704952800",valueInUSD:"46656.07"},{timestamp:"1704866400",valueInUSD:"46121.54"},{timestamp:"1704780000",valueInUSD:"46987.64"},{timestamp:"1704693600",valueInUSD:"43948.71"},{timestamp:"1704607200",valueInUSD:"43998.46"},{timestamp:"1704520800",valueInUSD:"44178.95"},{timestamp:"1704434400",valueInUSD:"44192.98"},{timestamp:"1704348000",valueInUSD:"42855.82"},{timestamp:"1704261600",valueInUSD:"44961.60"},{timestamp:"1704175200",valueInUSD:"44187.14"},{timestamp:"1704088800",valueInUSD:"42280.23"},{timestamp:"1704002400",valueInUSD:"42152.10"},{timestamp:"1703916000",valueInUSD:"42091.75"},{timestamp:"1703829600",valueInUSD:"42614.64"},{timestamp:"1703743200",valueInUSD:"43468.20"},{timestamp:"1703656800",valueInUSD:"42518.47"},{timestamp:"1703570400",valueInUSD:"43599.85"},{timestamp:"1703484000",valueInUSD:"43010.57"},{timestamp:"1703397600",valueInUSD:"43728.37"},{timestamp:"1703311200",valueInUSD:"44012.20"},{timestamp:"1703224800",valueInUSD:"43868.99"},{timestamp:"1703138400",valueInUSD:"43648.13"},{timestamp:"1703052000",valueInUSD:"42261.30"},{timestamp:"1702965600",valueInUSD:"42641.51"},{timestamp:"1702879200",valueInUSD:"41348.20"},{timestamp:"1702792800",valueInUSD:"42236.11"},{timestamp:"1702706400",valueInUSD:"41937.74"},{timestamp:"1702620000",valueInUSD:"43028.25"},{timestamp:"1702533600",valueInUSD:"42884.26"},{timestamp:"1702447200",valueInUSD:"41468.46"},{timestamp:"1702360800",valueInUSD:"41238.73"},{timestamp:"1702274400",valueInUSD:"43792.02"},{timestamp:"1702188000",valueInUSD:"43728.38"},{timestamp:"1702101600",valueInUSD:"44180.02"},{timestamp:"1702015200",valueInUSD:"43293.14"},{timestamp:"1701928800",valueInUSD:"43769.13"},{timestamp:"1701842400",valueInUSD:"44080.02"},{timestamp:"1701756000",valueInUSD:"41986.27"},{timestamp:"1701669600",valueInUSD:"39978.63"},{timestamp:"1701583200",valueInUSD:"39472.21"},{timestamp:"1701496800",valueInUSD:"38689.28"},{timestamp:"1701410400",valueInUSD:"37718.01"},{timestamp:"1701324000",valueInUSD:"37861.12"},{timestamp:"1701237600",valueInUSD:"37826.11"},{timestamp:"1701151200",valueInUSD:"37247.99"},{timestamp:"1701064800",valueInUSD:"37454.19"},{timestamp:"1700978400",valueInUSD:"37796.83"},{timestamp:"1700892000",valueInUSD:"37721.41"},{timestamp:"1700805600",valueInUSD:"37296.32"},{timestamp:"1700719200",valueInUSD:"37420.43"},{timestamp:"1700632800",valueInUSD:"35756.55"},{timestamp:"1700546400",valueInUSD:"37469.16"},{timestamp:"1700460000",valueInUSD:"37374.07"},{timestamp:"1700373600",valueInUSD:"36585.77"},{timestamp:"1700287200",valueInUSD:"36625.37"},{timestamp:"1700200800",valueInUSD:"36164.82"},{timestamp:"1700114400",valueInUSD:"37879.98"},{timestamp:"1700028000",valueInUSD:"35548.11"},{timestamp:"1699941600",valueInUSD:"36491.79"},{timestamp:"1699855200",valueInUSD:"37070.30"},{timestamp:"1699768800",valueInUSD:"37133.99"},{timestamp:"1699682400",valueInUSD:"37310.07"},{timestamp:"1699596000",valueInUSD:"36702.25"},{timestamp:"1699509600",valueInUSD:"35633.63"},{timestamp:"1699423200",valueInUSD:"35419.48"},{timestamp:"1699336800",valueInUSD:"35047.79"},{timestamp:"1699250400",valueInUSD:"35044.79"},{timestamp:"1699160400",valueInUSD:"35090.01"},{timestamp:"1699074000",valueInUSD:"34736.32"},{timestamp:"1698987600",valueInUSD:"34942.47"},{timestamp:"1698901200",valueInUSD:"35441.58"},{timestamp:"1698814800",valueInUSD:"34657.27"},{timestamp:"1698728400",valueInUSD:"34500.08"},{timestamp:"1698642000",valueInUSD:"34531.74"},{timestamp:"1698555600",valueInUSD:"34089.37"},{timestamp:"1698469200",valueInUSD:"33907.72"},{timestamp:"1698382800",valueInUSD:"34156.50"},{timestamp:"1698296400",valueInUSD:"34504.29"},{timestamp:"1698210000",valueInUSD:"33916.04"},{timestamp:"1698123600",valueInUSD:"33077.30"},{timestamp:"1698037200",valueInUSD:"30140.69"},{timestamp:"1697950800",valueInUSD:"29918.65"},{timestamp:"1697864400",valueInUSD:"29683.38"},{timestamp:"1697778000",valueInUSD:"28732.81"},{timestamp:"1697691600",valueInUSD:"28332.42"},{timestamp:"1697605200",valueInUSD:"28413.53"},{timestamp:"1697518800",valueInUSD:"28522.10"},{timestamp:"1697432400",valueInUSD:"27162.63"},{timestamp:"1697346000",valueInUSD:"26858.01"},{timestamp:"1697259600",valueInUSD:"26866.20"},{timestamp:"1697173200",valueInUSD:"26752.88"},{timestamp:"1697086800",valueInUSD:"26873.29"},{timestamp:"1697000400",valueInUSD:"27392.08"},{timestamp:"1696914000",valueInUSD:"27589.20"},{timestamp:"1696827600",valueInUSD:"27934.47"},{timestamp:"1696741200",valueInUSD:"27971.68"},{timestamp:"1696654800",valueInUSD:"27946.78"},{timestamp:"1696568400",valueInUSD:"27412.12"},{timestamp:"1696482000",valueInUSD:"27798.65"},{timestamp:"1696395600",valueInUSD:"27429.07"},{timestamp:"1696309200",valueInUSD:"27508.25"},{timestamp:"1696222800",valueInUSD:"27976.80"},{timestamp:"1696136400",valueInUSD:"26967.40"},{timestamp:"1696050000",valueInUSD:"26911.69"},{timestamp:"1695963600",valueInUSD:"27024.84"},{timestamp:"1695877200",valueInUSD:"26355.81"},{timestamp:"1695790800",valueInUSD:"26209.50"},{timestamp:"1695704400",valueInUSD:"26294.76"},{timestamp:"1695618000",valueInUSD:"26253.78"},{timestamp:"1695531600",valueInUSD:"26579.37"},{timestamp:"1695445200",valueInUSD:"26578.56"},{timestamp:"1695358800",valueInUSD:"26564.06"},{timestamp:"1695272400",valueInUSD:"27129.84"},{timestamp:"1695186000",valueInUSD:"27210.23"},{timestamp:"1695099600",valueInUSD:"26760.85"},{timestamp:"1695013200",valueInUSD:"26532.99"},{timestamp:"1694926800",valueInUSD:"26567.93"},{timestamp:"1694840400",valueInUSD:"26606.20"},{timestamp:"1694754000",valueInUSD:"26533.82"},{timestamp:"1694667600",valueInUSD:"26228.28"},{timestamp:"1694581200",valueInUSD:"25837.55"},{timestamp:"1694494800",valueInUSD:"25160.66"},{timestamp:"1694408400",valueInUSD:"25831.71"},{timestamp:"1694322000",valueInUSD:"25895.21"},{timestamp:"1694235600",valueInUSD:"25905.43"},{timestamp:"1694149200",valueInUSD:"26245.21"},{timestamp:"1694062800",valueInUSD:"25748.31"},{timestamp:"1693976400",valueInUSD:"25783.93"},{timestamp:"1693890000",valueInUSD:"25814.96"},{timestamp:"1693803600",valueInUSD:"25968.17"},{timestamp:"1693717200",valueInUSD:"25869.47"},{timestamp:"1693630800",valueInUSD:"25800.91"},{timestamp:"1693544400",valueInUSD:"25934.02"},{timestamp:"1693458000",valueInUSD:"27301.93"},{timestamp:"1693371600",valueInUSD:"27726.08"},{timestamp:"1693285200",valueInUSD:"26102.49"},{timestamp:"1693198800",valueInUSD:"26089.62"},{timestamp:"1693112400",valueInUSD:"26008.24"},{timestamp:"1693026000",valueInUSD:"26047.23"},{timestamp:"1692939600",valueInUSD:"26163.68"},{timestamp:"1692853200",valueInUSD:"26431.52"}
5,{timestamp:"1692766800",valueInUSD:"26040.47"},{timestamp:"1692680400",valueInUSD:"26130.75"},{timestamp:"1692594000",valueInUSD:"26188.69"},{timestamp:"1692507600",valueInUSD:"26096.86"},{timestamp:"1692421200",valueInUSD:"26047.83"},{timestamp:"1692334800",valueInUSD:"26636.08"},{timestamp:"1692248400",valueInUSD:"28699.80"},{timestamp:"1692162000",valueInUSD:"29169.07"},{timestamp:"1692075600",valueInUSD:"29408.05"},{timestamp:"1691989200",valueInUSD:"29283.26"},{timestamp:"1691902800",valueInUSD:"29416.59"},{timestamp:"1691816400",valueInUSD:"29399.79"},{timestamp:"1691730000",valueInUSD:"29424.90"},{timestamp:"1691643600",valueInUSD:"29563.97"},{timestamp:"1691557200",valueInUSD:"29766.70"},{timestamp:"1691470800",valueInUSD:"29180.02"},{timestamp:"1691384400",valueInUSD:"29038.51"},{timestamp:"1691298000",valueInUSD:"29043.70"},{timestamp:"1691211600",valueInUSD:"29075.39"},{timestamp:"1691125200",valueInUSD:"29174.38"},{timestamp:"1691038800",valueInUSD:"29161.81"},{timestamp:"1690952400",valueInUSD:"29704.15"},{timestamp:"1690866000",valueInUSD:"29230.87"},{timestamp:"1690779600",valueInUSD:"29278.31"},{timestamp:"1690693200",valueInUSD:"29357.09"},{timestamp:"1690606800",valueInUSD:"29319.45"},{timestamp:"1690520400",valueInUSD:"29212.16"},{timestamp:"1690434000",valueInUSD:"29353.80"},{timestamp:"1690347600",valueInUSD:"29225.76"},{timestamp:"1690261200",valueInUSD:"29178.97"},{timestamp:"1690174800",valueInUSD:"30081.66"},{timestamp:"1690088400",valueInUSD:"29790.11"},{timestamp:"1690002000",valueInUSD:"29908.70"},{timestamp:"1689915600",valueInUSD:"29805.11"},{timestamp:"1689829200",valueInUSD:"29915.25"},{timestamp:"1689742800",valueInUSD:"29862.05"},{timestamp:"1689656400",valueInUSD:"30147.07"},{timestamp:"1689570000",valueInUSD:"30249.63"},{timestamp:"1689483600",valueInUSD:"30297.47"},{timestamp:"1689397200",valueInUSD:"30331.78"},{timestamp:"1689310800",valueInUSD:"31474.72"},{timestamp:"1689224400",valueInUSD:"30387.49"},{timestamp:"1689138000",valueInUSD:"30622.25"},{timestamp:"1689051600",valueInUSD:"30417.63"},{timestamp:"1688965200",valueInUSD:"30172.42"},{timestamp:"1688878800",valueInUSD:"30291.61"},{timestamp:"1688792400",valueInUSD:"30346.92"},{timestamp:"1688706000",valueInUSD:"29908.00"},{timestamp:"1688619600",valueInUSD:"30507.15"},{timestamp:"1688533200",valueInUSD:"30778.72"},{timestamp:"1688446800",valueInUSD:"31156.87"},{timestamp:"1688360400",valueInUSD:"30624.52"},{timestamp:"1688274000",valueInUSD:"30587.27"},{timestamp:"1688187600",valueInUSD:"30471.85"},{timestamp:"1688101200",valueInUSD:"30441.35"},{timestamp:"1688014800",valueInUSD:"30086.19"},{timestamp:"1687928400",valueInUSD:"30696.56"},{timestamp:"1687842000",valueInUSD:"30274.32"},{timestamp:"1687755600",valueInUSD:"30480.52"},{timestamp:"1687669200",valueInUSD:"30545.15"},{timestamp:"1687582800",valueInUSD:"30708.74"},{timestamp:"1687496400",valueInUSD:"29896.38"},{timestamp:"1687410000",valueInUSD:"29995.94"},{timestamp:"1687323600",valueInUSD:"28311.31"},{timestamp:"1687237200",valueInUSD:"26841.66"},{timestamp:"1687150800",valueInUSD:"26335.44"},{timestamp:"1687064400",valueInUSD:"26510.46"},{timestamp:"1686978000",valueInUSD:"26328.68"},{timestamp:"1686891600",valueInUSD:"25575.28"},{timestamp:"1686805200",valueInUSD:"25121.67"},{timestamp:"1686718800",valueInUSD:"25920.26"},{timestamp:"1686632400",valueInUSD:"25902.94"},{timestamp:"1686546000",valueInUSD:"25934.29"},{timestamp:"1686459600",valueInUSD:"25854.03"},{timestamp:"1686373200",valueInUSD:"26481.76"},{timestamp:"1686286800",valueInUSD:"26505.92"},{timestamp:"1686200400",valueInUSD:"26347.65"},{timestamp:"1686114000",valueInUSD:"27235.65"},{timestamp:"1686027600",valueInUSD:"25732.11"},{timestamp:"1685941200",valueInUSD:"27123.11"},{timestamp:"1685854800",valueInUSD:"27075.12"},{timestamp:"1685768400",valueInUSD:"27252.32"},{timestamp:"1685682000",valueInUSD:"26824.56"},{timestamp:"1685595600",valueInUSD:"27218.41"},{timestamp:"1685509200",valueInUSD:"27700.53"},{timestamp:"1685422800",valueInUSD:"27745.12"},{timestamp:"1685336400",valueInUSD:"28075.59"},{timestamp:"1685250000",valueInUSD:"26871.16"},{timestamp:"1685163600",valueInUSD:"26720.18"},{timestamp:"1685077200",valueInUSD:"26474.18"},{timestamp:"1684990800",valueInUSD:"26329.46"},{timestamp:"1684904400",valueInUSD:"27224.60"},{timestamp:"1684818000",valueInUSD:"26855.96"},{timestamp:"1684731600",valueInUSD:"26749.89"},{timestamp:"1684645200",valueInUSD:"27118.42"},{timestamp:"1684558800",valueInUSD:"26888.84"},{timestamp:"1684472400",valueInUSD:"26826.75"},{timestamp:"1684386000",valueInUSD:"27401.65"},{timestamp:"1684299600",valueInUSD:"27035.47"},{timestamp:"1684213200",valueInUSD:"27171.51"},{timestamp:"1684126800",valueInUSD:"26931.38"},{timestamp:"1684040400",valueInUSD:"26788.97"},{timestamp:"1683954000",valueInUSD:"26807.77"},{timestamp:"1683867600",valueInUSD:"26987.66"},{timestamp:"1683781200",valueInUSD:"27621.09"},{timestamp:"1683694800",valueInUSD:"27654.64"},{timestamp:"1683608400",valueInUSD:"27695.07"},{timestamp:"1683522000",valueInUSD:"28450.46"},{timestamp:"1683435600",valueInUSD:"28901.62"},{timestamp:"1683349200",valueInUSD:"29538.86"},{timestamp:"1683262800",valueInUSD:"28851.48"},{timestamp:"1683176400",valueInUSD:"29031.30"},{timestamp:"1683090000",valueInUSD:"28680.49"},{timestamp:"1683003600",valueInUSD:"28087.18"},{timestamp:"1682917200",valueInUSD:"29227.10"},{timestamp:"1682830800",valueInUSD:"29245.52"},{timestamp:"1682744400",valueInUSD:"29336.57"}
5,{timestamp:"1682658000",valueInUSD:"29481.01"},{timestamp:"1682571600",valueInUSD:"28428.46"},{timestamp:"1682485200",valueInUSD:"28300.06"},{timestamp:"1682398800",valueInUSD:"27514.87"},{timestamp:"1682312400",valueInUSD:"27591.73"},{timestamp:"1682226000",valueInUSD:"27816.14"},{timestamp:"1682139600",valueInUSD:"27265.89"},{timestamp:"1682053200",valueInUSD:"28249.23"},{timestamp:"1681966800",valueInUSD:"28823.68"},{timestamp:"1681880400",valueInUSD:"30394.19"},{timestamp:"1681794000",valueInUSD:"29449.09"},{timestamp:"1681707600",valueInUSD:"30317.15"},{timestamp:"1681621200",valueInUSD:"30315.98"},{timestamp:"1681534800",valueInUSD:"30490.75"},{timestamp:"1681448400",valueInUSD:"30409.56"},{timestamp:"1681362000",valueInUSD:"29892.74"},{timestamp:"1681275600",valueInUSD:"30231.58"},{timestamp:"1681189200",valueInUSD:"29653.68"},{timestamp:"1681102800",valueInUSD:"28336.03"},{timestamp:"1681016400",valueInUSD:"27952.37"},{timestamp:"1680930000",valueInUSD:"27920.51"},{timestamp:"1680843600",valueInUSD:"28038.97"},{timestamp:"1680757200",valueInUSD:"28175.23"},{timestamp:"1680670800",valueInUSD:"28169.73"},{timestamp:"1680584400",valueInUSD:"27795.27"},{timestamp:"1680498000",valueInUSD:"28183.08"},{timestamp:"1680411600",valueInUSD:"28462.85"},{timestamp:"1680325200",valueInUSD:"28473.33"},{timestamp:"1680238800",valueInUSD:"28032.26"},{timestamp:"1680152400",valueInUSD:"28350.14"},{timestamp:"1680066000",valueInUSD:"27267.03"}];var N=a(80670);let O=({balance:e})=>{L().extend(T());let{data:t=[],isLoading:a}=(0,s.pzh)({timeWindow:"all"}),{flags:r}=(0,N.h)(),l=(0,n.useMemo)(()=>{if(r.FAKE_BALANCES)return R.map((e,t)=>({time:L()().subtract(t,"day").utc(),value:parseFloat(e.valueInUSD)})).reverse();let a=L()().utc(),i=!1,n=t.map(t=>{let n=L().unix(parseInt(t.timestamp,10)).utc();return n.isSame(a.utc(),"day")?(i=!0,{time:n,value:e}):{time:n,value:parseFloat(t.valueInUSD)}});return!i&&e&&n.push({time:a,value:e}),n},[e,t,r]);return a||!l.length?null:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(z.Ay,{data:l})})};var B=function(e){return e[e.Graph=0]="Graph",e[e.List=1]="List",e}(B||{});let Y=({assetBalances:e,networkBalances:t,totalBalance:a,emptyState:s,isLoading:r})=>{let[l,o]=(0,n.useState)(0),m=parseFloat(a||"0"),u=0!==m;return(0,i.jsxs)(D.A,{display:"flex",flexDirection:"column",flexShrink:0,style:{height:"460px"},children:[(0,i.jsx)(d.A,{justifyContent:"space-between",children:r?(0,i.jsx)(d.A,{height:"64px",children:(0,i.jsx)(A.EY,{width:"160px"})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.A,{value:(0,x.A)(a),suffix:"Total"}),u&&(0,i.jsxs)(d.A,{gap:"sm",children:[(0,i.jsx)(b.A,{bordered:!0,selected:0===l,onClick:()=>o(0),children:(0,i.jsx)(U.Gd,{})}),(0,i.jsx)(b.A,{bordered:!0,selected:1===l,onClick:()=>o(1),children:(0,i.jsx)(U.EN,{})})]})]})}),(0,i.jsx)(I.A,{size:"20px"}),(0,i.jsx)(g.A,{extendBy:"24px"}),(0,i.jsx)(I.A,{size:"16px"}),u?(0,i.jsxs)(i.Fragment,{children:[0===l&&(0,i.jsx)(O,{balance:m}),1===l&&(0,i.jsx)(k,{assetBalances:e,networkBalances:t,isLoading:r})]}):!r&&s?(0,i.jsx)(w.A,{...s}):(0,i.jsx)(i.Fragment,{})]})};var $=a(48361),P=a.n($),F=a(47002),W=a(20708),H=a(83929);let V=({bgColor:e="pending10",children:t})=>(0,i.jsx)(d.A,{justifyContent:"center",borderRadius:"medium",backgroundColor:e,width:H.U,height:H.U,minWidth:H.U,minHeight:H.U,children:t});var K=a(68945),G=a(10889),Z=a(4479),q=a(584),X=a(99914);let Q=()=>{let{flags:e}=(0,N.h)(),{data:t=[],refetch:a,isLoading:r}=(0,s.Cu6)(),{data:o=[],refetch:m,isLoading:u}=(0,s.sUi)(),{data:h}=(0,s.iYe)(),v=(0,Z.A)(),S=!r&&0===t.length,I=(0,n.useMemo)(()=>r||u||!o?[]:P()(o.map(({accountID:e,amountInUSD:a},i)=>({name:t.find(t=>t.id===e)?.name||`Account ${i}`,balance:parseFloat(a),id:e})),["balance","name"],["desc","asc"]),[o,t,r,u]),{display:f}=(0,W.A)(),{openModal:A,ModalType:y,closeModal:j}=(0,F.A)(),C=(0,n.useCallback)(({name:e})=>{a(),m(),j(),f({title:"Account created",message:`Created new account: ${e}`})},[f,j,a,m]);return v&&S?(0,i.jsx)(D.A,{display:"flex",flexDirection:"column",flexShrink:0,flexBasis:"380px",minHeight:"390px",padding:"xl",justifyContent:"center",alignItems:"center",children:(0,i.jsx)(w.A,{title:"Create your first account",subtitle:"Set up an account with a traditional bank routing and account number and a modern blockchain address.",cta:(0,i.jsx)(q.A,{variant:"secondary",onClick:()=>A(y.AddAccount,{onSubmit:C}),children:"Create account"})})}):(0,i.jsxs)(D.A,{display:"flex",flexDirection:"column",flexShrink:0,flexBasis:"380px",minHeight:"390px",padding:"0",children:[(0,i.jsxs)(d.A,{justify:"space-between",marginTop:"28px",marginBottom:"28px",paddingX:"24px",children:[(0,i.jsx)(c.A,{as:"h2",variant:"headlineSmall",children:"Account Details"}),(0,i.jsx)(b.A,{bordered:!0,onClick:()=>A(y.AddAccount,{onSubmit:C}),children:(0,i.jsx)(U.c1,{})})]}),(0,i.jsx)(g.A,{}),(0,i.jsxs)(G.A,{height:"370px",children:[I.map(({name:e,balance:t,id:a},s)=>(0,i.jsxs)(n.Fragment,{children:[0!==s&&(0,i.jsx)(g.A,{light:!0}),(0,i.jsxs)(p.A,{justifyContent:"space-between",padding:"24px",paddingY:"16px",noDecoration:!0,display:"flex",flexGrow:1,backgroundColor:{hover:"rowHover"},href:`${l.bw.accounts}/${a}`,children:[(0,i.jsxs)(d.A,{children:[(0,i.jsx)(V,{bgColor:"primary100",children:(0,i.jsx)(K.A,{size:"20px",color:"white"})}),(0,i.jsx)(c.A,{marginLeft:"sm",children:e})]}),(0,i.jsx)(c.A,{variant:"titleMedium",children:(0,x.A)(t)})]},e)]},a)),e.CARDS&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(g.A,{light:!0}),(0,i.jsxs)(p.A,{justifyContent:"space-between",padding:"24px",paddingY:"16px",noDecoration:!0,display:"flex",flexGrow:1,backgroundColor:{hover:"rowHover"},href:l.bw.cards,children:[(0,i.jsxs)(d.A,{children:[(0,i.jsx)(V,{bgColor:"primary100",children:(0,i.jsx)(K.A,{size:"20px",color:"white"})}),(0,i.jsx)(c.A,{marginLeft:"sm",children:X.Sw})]}),(0,i.jsx)(c.A,{variant:"titleMedium",children:(0,x.A)(h?.available?.value||"0")})]},999)]})]})]})};var J=a(2769),ee=a(4685),et=a(43039),ea=a(85576);let ei=()=>{let{data:e,isLoading:t}=(0,s.gqE)(),{data:a}=(0,s.wwj)(),{openModal:n}=(0,F.A)(),{permissions:r,isLoading:x}=(0,m.A)(),g=!x&&0===r.length,{activities:I,isLoading:f}=(0,ee.A)({pageSize:J.ER,filters:{activityTypes:J.Y9}}),{operations:A=[],isLoading:b}=(0,S.A)(I),y=(0,o.A)(e?.networkBalances);return(0,i.jsxs)(u.A,{title:`Welcome${a?.name?", "+a.name.split(" ")[0]:""}`,action:(0,i.jsx)(v.A,{}),children:[(0,i.jsxs)(d.A,{gap:"24px",align:"stretch",marginBottom:"24px",children:[(0,i.jsx)(d.A,{direction:"vertical",ga
5p:"24px",flex:"auto",flexShrink:0,children:(0,i.jsx)(Y,{totalBalance:e?.amountInUSD,assetBalances:y,networkBalances:e?.networkBalances,isLoading:t,emptyState:{title:"Make a deposit",subtitle:"Move money into this account to get started.",cta:(0,i.jsxs)(q.A,{variant:"secondary",onClick:()=>{(0,et.u4)(et.qY.DEPOSITS.OPEN_MODAL),n(ea.q3.SelectDepositType)},children:[(0,i.jsx)(U.G4,{size:"18px"}),(0,i.jsx)(c.A,{marginLeft:"xs",children:"Deposit"})]})}})}),(0,i.jsx)(Q,{})]}),!g&&(0,i.jsxs)(D.A,{paddingBottom:"0",children:[(0,i.jsxs)(d.A,{justify:"space-between",marginBottom:"24px",alignItems:"center",children:[(0,i.jsx)(c.A,{as:"h2",variant:"headlineSmall",children:"Recent Transactions"}),(0,i.jsx)(p.A,{href:l.bw.activityTransactions,children:"View all"})]}),(0,i.jsx)(h.A,{fill:!0,loading:f||b,activities:A,emptyState:{title:"No transactions",subtitle:"You don't have any transactions yet."}})]})]})};var en=a(41877),es=a(3775),er=a(91316),el=a(15626),eo=a(49559);let em=({children:e,description:t,title:a})=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(eo.A,{title:a,description:t,noIndex:!0}),(0,i.jsxs)(j.A,{width:"full",height:"full",overflowY:"auto",paddingX:"40px",paddingTop:"28px",paddingBottom:"40px",children:[(0,i.jsxs)(d.A,{justify:"space-between",align:"center",marginBottom:"32px",children:[(0,i.jsx)(U.u5,{height:"24px"}),(0,i.jsx)(j.A,{backgroundColor:"navBackground",borderRadius:"large",paddingX:"12px",paddingBottom:"12px",children:(0,i.jsx)(el.A,{minimal:!0})})]}),a&&(0,i.jsx)(c.A,{as:"h1",variant:"headlineLarge",marginBottom:"8px",children:a}),t&&(0,i.jsx)(c.A,{color:"textDetail",marginBottom:"24px",children:t}),e]})]});var eu=a(61199),ec=a(15341),ed=a(90739),ep=a(12930),eh=a(42672),ev=a(27524),eS=a.n(ev),eD=a(49473),ex=a(11394),eg=a(50278),eI=a(64251);L().extend(T());let ef=async({accountID:e,accountName:t,statementPeriod:a})=>{let n="Cards"===t,r=L().utc(a,"YYYY-MM").startOf("month"),l=r.isSame(L().utc(),"month"),o=l?L().utc().format("YYYY-MM-DD"):void 0,{organization:m,operations:u,startingBalanceUSD:c,endingBalanceUSD:d,totalWithdrawnUSD:p,totalDepositedUSD:h,accountDeletedAt:v,marketAdjustmentsUSD:S,virtualAccountAccountNumber:D,virtualAccountRoutingNumber:x}=await (0,s.$6h)({...l?{fromDate:r.format("YYYY-MM-DD"),toDate:o}:{month:a},accountIDs:n?void 0:[e],useDefaultFilters:!0,inputType:n?"card":"account"});return{blob:await (0,ex.pdf)((0,i.jsx)(eg.A,{organization:m,transactions:u,statementPeriod:a,periodEnd:o,accountName:t,accountNumber:D||"—",routingNumber:x||"—",startingBalanceUSD:c,endingBalanceUSD:d,totalDepositedUSD:h,totalWithdrawnUSD:p,marketAdjustmentsUSD:S,deletedAt:v})).toBlob(),fileName:`dakota-statement-${(0,eI.A)(t)}-${r.format("MM-YYYY")}${l?"-partial":""}.pdf`}};var eA=a(77157),eU=a(12183),eb=a(75143),ey=function(e){return e[e.Approve=0]="Approve",e[e.Send=1]="Send",e[e.WaitingForApproval=2]="WaitingForApproval",e[e.Processing=3]="Processing",e[e.Blocked=4]="Blocked",e[e.Completed=5]="Completed",e}({});let ej=["Awaiting Login","Broadcasting","In Progress","Initializing","Pending","Processing Funds","Reviewing"],ew=[eb.b3.BLOCKCHAIN_WITHDRAWAL,eb.b3.STABLE_CONVERSION],eC=(e,t,a,i)=>`${e}|${t}|${a}|${i}`,e_=e=>{if(e.type.id===eb.b3.BLOCKCHAIN_WITHDRAWAL){let t=e.operation;return t?.source&&t.amount?{amount:t.amount,source:t.source,networkID:t.networkID,txhash:t.txhash}:null}if(e.type.id===eb.b3.STABLE_CONVERSION){let t=e.operation;return t?.source&&t.amount?{amount:t.amount,source:t.source,networkID:t.networkID,txhash:t.txhash}:null}return null},ek=e=>0===e||2===e||3===e,eE=e=>{switch(e){case 0:return 0;case 1:return 1;case 2:case 3:case 4:return 2;case 5:return 3}};var eL=a(90477);let ez=(0,es.F)(),eM=(0,es.F)(),eT=new Intl.NumberFormat("en-US",{maximumFractionDigits:4}),eR=({address:e})=>(0,i.jsxs)(d.A,{gap:"xs",children:[(0,ep.A)(e.canonicalAddress,!0,12),(0,i.jsx)(en.A,{string:e.canonicalAddress,toastCopy:{title:"Address copied",message:`Copied ${(0,ep.A)(e.canonicalAddress)} to clipboard.`}})]}),eN=()=>{let{ModalType:e,openModal:t}=(0,F.A)(),{display:a}=(0,W.A)(),{balances:r,isLoading:l,receipts:o}=(()=>{let{data:e=[],isLoading:t}=(0,s.Cu6)(),{data:a=[],isLoading:i}=(0,s.GgW)(),{data:r=[],isLoading:l}=(0,s.P9y)(void 0,{query:{refetchInterval:eA.ME}}),{data:o,isLoading:m}=(0,s.wwj)(),{groupIDs:u,isLoading:c}=(0,eL.A)(),{data:d,isLoading:p,refetch:h}=(0,s.o_8)({activityTypes:[eb.b3.BLOCKCHAIN_WITHDRAWAL,eb.b3.STABLE_CONVERSION],pageSize:1e3},{query:{refetchInterval:eA.ME}}),{balances:v,receipts:S}=(0,n.useMemo)(()=>(({accounts:e,addressBalances:t,addresses:a,dustThresholdUSD:i,myGroupIDs:n,myUserID:s,nowMs:r=Date.now(),operations:l,receiptsFromSeconds:o})=>{let m=new Map(e.map(e=>[e.id,e.name])),u=new Map(a.map(e=>[e.canonicalAddress,e]));t.forEach(({address:e})=>{u.has(e.canonicalAddress)||u.set(e.canonicalAddress,e)});let c=new Map;t.forEach(({address:e,balances:t})=>{t.forEach(t=>{if(!t.amount)return;let a=parseFloat(t.amountInUSD||"0");if(a<i)return;let n=eC(e.accountID,e.canonicalAddress,t.amount.currency.symbol,t.networkID);c.set(n,{accountID:e.accountID,accountName:m.get(e.accountID)||"Unknown",address:e,balance:t.amount,balanceInUSD:a,currency:t.amount.currency,key:n,networkID:t.networkID,state:1})})});let d=new Map;l.filter(e=>
5ew.includes(e.type.id)).forEach(e=>{let t=e_(e);if(!t)return;let a=u.get(t.source);if(!a)return;let i=((e,t,a)=>{if("Endorsing"===e.status){let i=!!a&&(!!e.policy?.allowedEndorsers?.find(e=>e?.ownerID===a)||(0,eU.A)(e.policy?.groupIDs||[],t)),n=!!a&&(e.endorsements||[]).some(({principalKey:e})=>e?.ownerID===a);return i&&!n?0:2}return ej.includes(e.status)?3:"Completed"===e.status?5:null})(e,n,s);if(null===i)return;let r=eC(a.accountID,t.source,t.amount?.currency.symbol||"",t.networkID),l=d.get(r);if(l){let t=ek(l.state),a=ek(i);if(t&&!a)return;if(t===a){let t=parseInt(l.op.createdAt,10),a=parseInt(e.createdAt,10);if(t>a||t===a&&l.op.id>=e.id)return}}d.set(r,{op:e,state:i})}),d.forEach(({op:e,state:t},a)=>{let i=c.get(a);if(5===t){if(i){let t=1e3*parseInt(e.updatedAt,10);!Number.isNaN(t)&&r-t<eA.dn&&c.delete(a)}return}if(i){i.state=t,i.operation=e,i.txhash=e_(e)?.txhash;return}let n=e_(e);if(!n?.amount)return;let s=u.get(n.source);s&&c.set(a,{accountID:s.accountID,accountName:m.get(s.accountID)||"Unknown",address:s,balanceInUSD:0,currency:n.amount.currency,key:a,networkID:n.networkID,operation:e,state:t,txhash:n.txhash})});let p=Array.from(c.values());p.forEach(e=>{if(1!==e.state||!eA.UU.includes(e.currency.symbol)||e.address.wallet===eb.Yi.ZERODEV)return;let t=p.filter(t=>t.networkID===e.networkID&&t.address.canonicalAddress===e.address.canonicalAddress&&t.currency.symbol!==e.currency.symbol&&(1===t.state||ek(t.state)));t.length&&(t.some(e=>e.balanceInUSD>=eA.Ej)?e.state=4:e.gasDependentsUSD=t.reduce((e,t)=>e+t.balanceInUSD,0))});let h=p.sort((e,t)=>eE(e.state)-eE(t.state)||t.balanceInUSD-e.balanceInUSD),v=[];return l.filter(e=>ew.includes(e.type.id)).forEach(e=>{if("Completed"!==e.status)return;let t=parseInt(e.updatedAt,10);if(Number.isNaN(t)||t<o)return;let a=e_(e);if(!a?.amount)return;let i=u.get(a.source);i&&v.push({accountID:i.accountID,accountName:m.get(i.accountID)||"Unknown",address:i,amount:a.amount,completedAtSeconds:t,currency:a.amount.currency,key:e.id,networkID:a.networkID,txhash:a.txhash})}),v.sort((e,t)=>t.completedAtSeconds-e.completedAtSeconds||t.key.localeCompare(e.key)),{balances:h,receipts:v}})({accounts:e,addressBalances:r,addresses:a,dustThresholdUSD:eA.Nz,myGroupIDs:u,myUserID:o?.id,operations:d?.results||[],receiptsFromSeconds:eA.K_}),[e,r,a,o?.id,u,d]);return{balances:v,isLoading:t||i||l||c||p||m,receipts:S,refetchOperations:h}})(),{download:m,isDownloading:u,statements:p}=(()=>{let{data:e=[]}=(0,s.No3)(),[t,a]=(0,n.useState)(!1);return{download:(0,n.useCallback)(async e=>{if(e.length){a(!0);try{if(1===e.length){let{blob:t,fileName:a}=await ef(e[0]);(0,eD.saveAs)(t,a);return}let t=new(eS());await Promise.all(e.map(async e=>{let{blob:a,fileName:i}=await ef(e);t.file(i,a)})),(0,eD.saveAs)(await t.generateAsync({type:"blob"}),"dakota-statements.zip")}finally{a(!1)}}},[]),isDownloading:t,statements:e}})(),{data:h=[]}=(0,s.d7k)(),{transactionTemplatesByNetworkID:v}=(0,eh.A)(),[S,D]=(0,n.useState)(!1),g=(0,n.useCallback)(async()=>{try{D(!0),await (0,ec.A)({activityTypes:J.k5.join(",")},!0)}catch{a({title:"Failed to export transactions",message:"Something went wrong, please try again."})}finally{D(!1)}},[a]),I=(0,n.useMemo)(()=>new Map(h.map(e=>[e.id,e.name])),[h]),f=(0,n.useCallback)(e=>I.get(e)||e,[I]),A=(0,n.useCallback)((e,t)=>{if(!e)return;let a=v.get(t);return a?.replace("{transaction}",e)},[v]),U=(0,n.useCallback)(a=>{switch(a.state){case ey.Approve:return(0,i.jsx)(q.A,{size:"small",onClick:()=>t(e.WinddownApprove,{row:a}),children:"Approve"});case ey.Send:return(0,i.jsx)(q.A,{size:"small",onClick:()=>t(e.WinddownSend,{row:a}),children:"Send"});case ey.WaitingForApproval:return(0,i.jsx)(c.A,{color:"textDetail",children:"Waiting for approval"});case ey.Processing:return(0,i.jsx)(c.A,{color:"textDetail",children:"Processing"});case ey.Blocked:return(0,i.jsxs)(d.A,{gap:"xs",children:[(0,i.jsx)(c.A,{color:"textDetail",children:"Pending"}),(0,i.jsx)(er.A,{content:`This wallet pays its own network fees. Move your other balances on this address first — if you send all the ${a.currency.symbol} now, there's nothing left to cover their transfer fees.`})]});case ey.Completed:return null}},[e,t]),b=(0,n.useMemo)(()=>[ez.accessor("accountName",{header:"Account"}),ez.accessor(e=>e.address.canonicalAddress,{id:"address",header:"Address",cell:({row:e})=>(0,i.jsx)(eR,{address:e.original.address})}),ez.accessor("networkID",{header:"Network",cell:({row:e})=>f(e.original.networkID)}),ez.accessor(e=>e.currency.symbol,{id:"currency",header:"Currency"}),ez.accessor("balanceInUSD",{header:"USD value",cell:({row:e})=>(0,x.A)(e.original.balanceInUSD,!1,!0)}),ez.display({id:"actions",header:"Actions",cell:({row:e})=>U(e.original)})],[f,U]),y=(0,n.useMemo)(()=>[eM.accessor("accountName",{header:"Account"}),eM.accessor(e=>e.address.canonicalAddress,{id:"address",header:"Address",cell:({row:e})=>(0,i.jsx)(eR,{address:e.original.address})}),eM.accessor("networkID",{header:"Network",cell:({row:e})=>f(e.original.networkID)}),eM.accessor(e=>e.currency.symbol,{id:"currency",header:"Currency"}),eM.accessor(e=>e.amount?.value,{id:"amount",header:"Amount sent",cell:({row:e})=>e.original.amount?eT.format(Number(e.original.amount.value)):"—"}),eM.accessor("completedAtSeconds",{header:"Date",cell:({row:e})=>L().unix(e.original.completedAtSeconds).format("MMM D, YYYY")}),eM.display({id:"receipt",header:"",cell:({row:e})=>{let t=A(e.original.txhash,e.original.networkID);return t?(0,i.jsx)(q.A,{size:"small",onClick:()=>(0,ed.A)(t,!0),children:"View transaction"}):(0,i.jsx)(c.A,{color:"textDetail",children:"Completed"})}})],[A,f]);return(0,i.jsxs)(em,{title:"Transfer your balances to the new Dakota Financial Account",description:"Dakota v1 is winding down so complete your KYB refresh by reaching out to supp
5[email protected] or move each balance below to another wallet you control.",children:[(0,i.jsx)(es.A,{columns:b,data:r,loading:l,emptyState:{title:"No balances to move",subtitle:"This organization has no remaining balances above the dust threshold."}}),(0,i.jsxs)(j.A,{marginTop:"40px",children:[(0,i.jsx)(c.A,{as:"h2",variant:"titleMedium",marginBottom:"8px",children:"Completed migrations"}),(0,i.jsx)(c.A,{color:"textDetail",marginBottom:"16px",children:"A receipt for each migration from Dakota v1."}),(0,i.jsx)(es.A,{columns:y,data:o,loading:l,emptyState:{title:"No completed migrations yet.",subtitle:"Receipts for the balances you move will appear here."}})]}),(0,i.jsxs)(j.A,{marginTop:"40px",children:[(0,i.jsx)(c.A,{as:"h2",variant:"titleMedium",marginBottom:"8px",children:"Download statements"}),(0,i.jsx)(c.A,{color:"textDetail",marginBottom:"16px",children:"Get a backup of all of your account statements."}),(0,i.jsx)(q.A,{icon:(0,i.jsx)(eu.A,{size:"20px"}),disabled:0===p.length,loading:u,onClick:()=>m(p),children:"Download"})]}),(0,i.jsxs)(j.A,{marginTop:"40px",children:[(0,i.jsx)(c.A,{as:"h2",variant:"titleMedium",marginBottom:"8px",children:"Export transactions"}),(0,i.jsx)(c.A,{color:"textDetail",marginBottom:"16px",children:"Download all of your historical transactions as a CSV."}),(0,i.jsx)(q.A,{icon:(0,i.jsx)(eu.A,{size:"20px"}),loading:S,onClick:g,children:"Export transactions"})]})]})};var eO=a(83059);let eB={src:"/_next/static/media/nux-background.fcf01d3f.png"};var eY=a(63461);let e$=({nav:e,content:t,description:a,title:n,indexPage:s,activeStep:r})=>{let l=r===eY.Kb.NUXComplete;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(eo.A,{title:n,description:a,noIndex:!s}),(0,i.jsxs)(d.A,{width:"full",color:"white",alignItems:"stretch",backgroundSize:"cover",style:{backgroundImage:`url(${eB.src})`},children:[(0,i.jsxs)(d.A,{direction:"vertical",flexShrink:0,flexGrow:0,padding:"xl",overflowY:"auto",position:"relative",style:{backgroundColor:"rgba(0, 0, 0, 0.95)"},children:[(0,i.jsx)(j.A,{marginBottom:"80px",children:(0,i.jsx)(U.u5,{height:"24px"})}),(0,i.jsx)(j.A,{children:e})]}),(0,i.jsx)(j.A,{width:"6px",style:{backgroundColor:"rgba(15, 15, 15, 0.90)"}}),(0,i.jsx)(d.A,{flexGrow:1,justify:"center",align:"center",padding:"xl",overflowY:"auto",position:"relative",transitionProperty:"all",transitionDuration:"200",style:{backgroundColor:l?"rgba(0, 0, 0, 0.75)":"rgba(0, 0, 0, 0.95)"},children:(0,i.jsx)(d.A,{direction:"vertical",flexGrow:1,flexShrink:0,maxWidth:"640px",children:t})})]})]})};var eP=a(61221),eF=a(19817),eW=a(67441),eH=a(23278),eV=a(43179),eK=a(43608);let eG=({name:e,address:t,...a})=>{let n=t?.split(",")||[];return(0,i.jsxs)(d.A,{direction:"vertical",...a,children:[(0,i.jsx)(c.A,{children:e}),(0,i.jsx)(c.A,{children:n[0]}),(0,i.jsx)(c.A,{children:n[1]}),(0,i.jsx)(c.A,{children:`${n[2]}, ${n[3]}`})]})};var eZ=a(93249),eq=a(23073),eX=a(40933),eQ=a(12331),eJ=a(72263),e0=a(66877);let e1={[eY.Kb.AccountSetupFresh]:({isFinalStep:e,onComplete:t})=>(0,i.jsx)(eW.A,{isNUX:!0,onSubmit:t,isFinalNUXStep:e}),[eY.Kb.AccountSetup]:({isFinalStep:e,onComplete:t})=>{let{data:a=[]}=(0,s.Cu6)(),r=(0,n.useCallback)(async e=>{let a=Object.entries(e).map(([e,t])=>(0,s.z0)(e,{name:t.trim()}));await Promise.all(a),t()},[t]);return(0,i.jsx)(eF.A,{step:eY.Kb.AccountSetup,onSubmit:r,onSkip:t,isFinalStep:e,children:a.map((e,t)=>(0,i.jsx)(eP.A,{name:e.id,label:`Account ${t+1}`,defaultValue:e.name,inverted:!0,required:!0},e.id))})},[eY.Kb.FirstDeposit]:({isFinalStep:e,onComplete:t})=>{let{data:a=[],isLoading:r}=(0,s.Dy_)(),[l,o]=(0,n.useState)(),{activeOrgName:m}=(0,eZ.A)();(0,n.useEffect)(()=>{r||0!==a.length||t()},[r,t,a.length]);let u=(0,n.useMemo)(()=>{let e=new Set;return a.forEach(t=>{e.add(t.linkedAddress.accountID)}),e},[a]),p=(0,n.useCallback)(e=>{o(a?.find(t=>t.linkedAddress.accountID===e.id))},[a]);return r?(0,i.jsx)(d.A,{justify:"center",alignSelf:"center",align:"center",children:(0,i.jsx)(eH.A,{inverted:!0})}):(0,i.jsxs)(eF.A,{step:eY.Kb.FirstDeposit,onSubmit:t,onSkip:e?void 0:t,isFinalStep:e,children:[(0,i.jsx)(eV.A,{required:!0,label:"Receiving Account",accountIDs:u,onChange:p,setFirstItemAsInitial:!0}),l&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(d.A,{gap:"md",children:[(0,i.jsx)(eK.A,{label:"Routing number",flex:"auto",inverted:!0,color:"textDetailInverted",value:l.accountData.wireRoutingNumber||l.accountData.routingNumber}),(0,i.jsx)(eK.A,{flex:"auto",inverted:!0,label:"Account number",color:"textDetailInverted",value:l.accountData.accountNumber})]}),(0,i.jsx)(g.A,{faint:!0}),(0,i.jsxs)(d.A,{align:"stretch",marginBottom:"24px",children:[(0,i.jsxs)(j.A,{flexBasis:"1/2",flexShrink:1,flexGrow:0,children:[(0,i.jsx)(c.A,{marginBottom:"md",children:"Receiving bank details"}),(0,i.jsxs)(d.A,{direction:"vertical",color:"textDetailInverted",gap:"xxs",children:[(0,i.jsx)(c.A,{children:l.bankName}),(0,i.jsx)(c.A,{children:l.bankPostalAddress.split(",")[0]}),(0,i.jsx)(c.A,{children:l.bankPostalAddress.slice(l.bankPostalAddress.indexOf(",")+1)})]})]}),(0,i.jsx)(j.A,{flexShrink:0,flexGrow:0,width:"1px",backgroundColor:"ruleFaint",marginRight:"lg",marginLeft:"-2px"}),(0,i.jsxs)(j.A,{flexBasis:"1/2",flexShrink:1,flexGrow:0,children:[(0,i.jsx)(c.A,{marginBottom:"md",children:"Beneficiary details"}),(0,i.jsx)(eG,{color:"primary20",gap:"xxs",address:l?.bankBeneficiaryAddress,name:m})]})]})]})]})},[eY.Kb.InviteAdmins]:({onComplete:e,isFinalStep:t})=>{let{refetch:a}=(0,s.EFg)(),{endorse:r}=(0,eX.A)(),l=(0,n.useCallback)(async({email:t})=>{let i={email:t,groupIDs:[eq.cT]},{operationID:n}=await (0,s.kgp)(i);r({payload:(0,eQ.A)({operationID:n,email:i.email},eb.b3.ADD_USER),operationID:n,verdict:eb.Iz.APPROVE,onComplete:()=>{a(),e()}})},[r,e,a]);return(0,i.jsxs)(eF.A,{step:eY.Kb.InviteAdmins,onSubmit:l,onSkip:e,isFinalStep:t,children:[(0,i.jsx)(eP.A,{name:"email",label:"Email",placeholder:"[email protected]",inverted:!0,required:!0}),(0,i.jsxs)(d.A,{gap:"xxs",color:"textDetailInverted",children:[(0,i.jsx)(eJ.A,{size:"22px"}),(0,i.jsx)(c.A,{children:"To securely invite an admin, you'll be prompted for your PIN and passkey."})]})]})},[eY.Kb.NUXComplete]:({onComplete:e})=>(0,i.jsxs)(d.A,{direction:"vertical",color:"white",align:"center",position:"relative",children:[(0,i.jsx)(c.A,{as:"h2",variant:"headlineLarge",children:"Welcome to Dakota"}),(0,i.jsxs)(c.A,{as:"p",textAlign:"center",variant:"bodyLarge",marginY:"32px",color:"primary20",children:["Your setup is complete. If you need any further help, contact",e0.W4,"."]}),(0,i.jsx)(q.A,{variant:"inverted",onClick:e,marginBottom:"48px",children:"Go to dashboard"})]})},e6=()=>{let{activeOrgID:e}=(0,eZ.A)(),{data:t=[],isLoading:a}=(0,s.Cu6)(),{dismissCampaigns:r}=(0,eO.A)({entityID:e,disabled:!e}),{refetch:l}=(0,eO.A)({}),{closeModal:o}
5=(0,F.A)(),[m,u]=(0,n.useState)(eY.Kb.AccountSetup),c=(0,n.useMemo)(()=>{let e=a||0!==t.length?eY.Kb.AccountSetup:eY.Kb.AccountSetupFresh;return u(e),[e,eY.Kb.FirstDeposit,eY.Kb.InviteAdmins,eY.Kb.NUXComplete]},[t.length,a]),d=(0,n.useMemo)(()=>e1[m],[m]),p=(0,n.useCallback)(async()=>{o();let e=c.indexOf(m);e===c.length-1?(await r(eO.p.NUX),l()):u(c[e+1])},[o,c,m,r,l]),h=(0,n.useCallback)(e=>{u(e)},[]);return(0,i.jsx)(e$,{activeStep:m,nav:(0,i.jsx)(eY.Ay,{steps:c,activeStep:m,onGoToStep:h}),content:(0,i.jsx)(d,{onComplete:p,isFinalStep:c.indexOf(m)===c.length-1})})},e2=()=>{let{flags:e,isLoading:t}=(0,N.h)(),{campaigns:a,isLoading:r}=(0,eO.A)({disabled:t||e.WINDDOWN}),{data:l,isLoading:o}=(0,s.wwj)(),{data:m,isLoading:u}=(0,s.o_8)({activityTypes:[eb.b3.CREATE_ORGANIZATION]}),c=(0,n.useMemo)(()=>t||o||u||!e.WINDDOWN&&r,[t,o,r,u,e.WINDDOWN]),d=(0,n.useMemo)(()=>{let e=m?.results[0];if(!e)return!1;let t=e.operation;return!!t?.organization?.users.some(e=>e.id===l?.id)},[l?.id,m]);return c?null:e.WINDDOWN?(0,i.jsx)(eN,{}):a.NUX&&d?(0,i.jsx)(e6,{}):(0,i.jsx)(ei,{})};e2.getLayout=e=>(0,i.jsx)(r.A,{children:e});let e4=e2}},e=>{e.O(0,[2039,4155,2591,8005,6341,9494,1329,2909,817,8230,4587,6445,5393,2970,2208,6357,9450,4922,9379,6180,1286,5829,9039,7002,8553,3081,7101,3775,636,6593,8792],()=>e(e.s=67580)),_N_E=e.O()}]);

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.