1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},l=(new e.Error).stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="278755b2-bed0-4c14-aef8-d83dd474f876",e._sentryDebugIdIdentifier="sentry-dbid-278755b2-bed0-4c14-aef8-d83dd474f876")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1224,50167,78403],{7393:(e,l,t)=>{"use strict";t.d(l,{t:()=>o});var n=t(74848),i=t(92599);let o=e=>{let{symbol:l,coinUrl:t=""}=e;return(0,n.jsxs)("div",{className:"self-center h-[40px] relative",children:[(0,n.jsx)(i.t,{symbol:l,width:"40",coinUrl:t}),(0,n.jsx)("img",{width:17,height:17,className:"absolute top-0 right-0 -translate-y-1/4 translate-x-1/4",src:"/images/coinstash/earn/cs-black.svg",alt:"Crypto Icon"})]})}},7224:(e,l,t)=>{"use strict";t.d(l,{m:()=>u});var n=t(74848),i=t(76582),o=t(96540),r=t(92599),d=t(7393),a=t(1276),s=t(80809);let u=e=>{var l,t,u;let{coinData:c,quoteData:v,balance:m,title:x,incFee:g=!0,details:f,className:b="",textColour:h="black",textSize:y="sm",cPoints:p=!1,earnRateEnabled:w=!1,isFiat:j=!1,convertedBalance:C,displayConvertedBalance:A=!0}=e,[N,I]=(0,o.useState)("0");(0,o.useEffect)(()=>{var e,l,t;I(new i.A(m||0).div((null==v?void 0:null===(t=v.getLast)||void 0===t?void 0:null===(e=t.prices[null==c?void 0:null===(l=c.getCoinBySymbol)||void 0===l?void 0:l.symbol.toLowerCase()])||void 0===e?void 0:e.tickerPricePrecise)||1).toFixed())},[c,v,m]);let B=()=>{var e;return g?new i.A(m||0).add((null==c?void 0:null===(e=c.getCoinBySymbol)||void 0===e?void 0:e.tradeNetworkFee)||0):new i.A(m||0)},S=(()=>{var e,l,t;if(C)return C;let n=B();return new i.A(n||0).mul((null==v?void 0:null===(t=v.getLast)||void 0===t?void 0:null===(e=t.prices[null==c?void 0:null===(l=c.getCoinBySymbol)||void 0===l?void 0:l.symbol.toLowerCase()])||void 0===e?void 0:e.tickerPricePrecise)||0).toFixed()})(),L=()=>"white"===h?"text-text-inverted":"text-text-title-primary",D=()=>"white"===h?"text-text-inverted":"text-text-title-secondary",k=()=>"base"===y?"text-base":"text-sm";return(0,n.jsx)(s.A,{children:(0,n.jsxs)("div",{className:"".concat(b," border border-grey-light rounded-lg pr-5 pl-5 pt-4 pb-4"),children:[(0,n.jsxs)("div",{className:"flex justify-between",children:[(0,n.jsxs)("div",{className:"flex basis-5/12 space-x-4 items-center",children:[(0,n.jsx)("div",{className:"flex-shrink-0 items-center justify-center flex",children:j?(0,n.jsx)(r.t,{symbol:"AUD"}):(0,n.jsx)(n.Fragment,{children:(null==c?void 0:c.getCoinBySymbol)?(0,n.jsx)(n.Fragment,{children:p?(0,n.jsx)(d.t,{symbol:c.getCoinBySymbol.symbol,coinUrl:c.getCoinBySymbol.coinUrl}):(0,n.jsx)(r.t,{symbol:c.getCoinBySymbol.symbol,coinUrl:c.getCoinBySymbol.coinUrl})}):null})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"".concat(k()," ").concat(L()," font-semibold whitespace-pre"),children:x}),w?(0,n.jsxs)("span",{className:"bg-bg-inverted text-xs px-2 py-[2px] rounded font-bold mt-1",children:[new i.A((null==c?void 0:null===(l=c.getCoinBySymbol)||void 0===l?void 0:l.earnRewardRate)||0).mul(100).toDP(2).toFixed(2),"% p.a."]}):null]})]}),j?(0,n.jsxs)("div",{className:"text-right basis-7/12 flex items-end justify-center flex-col",children:[(0,n.jsx)("div",{className:"text-lg font-semibold ".concat(L()),children:(0,n.jsx)(a.ZI,{amount:m,fiatDisplay:a.f3.AUD})}),A?(0,n.jsx)("div",{className:"".concat(k()," ").concat(D()," font-semibold"),children:(0,n.jsx)(a.ZI,{prefix:"â ",decimals:8,amount:null!=C?C:N,suffix:" ".concat(null==c?void 0:null===(t=c.getCoinBySymbol)||void 0===t?void 0:t.symbol)})}):null]}):(0,n.jsxs)("div",{className:"text-right basis-7/12 flex items-end justify-center flex-col",children:[(0,n.jsx)("div",{className:"text-lg font-semibold ".concat(L()),children:(0,n.jsx)(a.ZI,{amount:m,decimals:8,removeTrailing:!0,suffix:" ".concat(null==c?void 0:null===(u=c.getCoinBySymbol)||void 0===u?void 0:u.symbol)})}),A?(0,n.jsx)("div",{className:"".concat(k()," ").concat(D()," font-semibold"),children:(0,n.jsx)(a.ZI,{prefix:"â $",amount:null!=C?C:S})}):null]})]}),f&&(0,n.jsx)("div",{className:"mt-2",children:(0,n.jsx)("div",{className:"".concat(D()," font-semibold ").concat(k()," text-center"),children:f})})]})})}},92599:(e,l,t)=>{"use strict";t.d(l,{t:()=>o});var n=t(74848),i=t(60134);let o=e=>
1{let{coinUrl:l,symbol:t,width:o="40"}=e;switch(t){case"AUD":return(0,n.jsx)(i._,{src:l||"icons/au-flag-rounded.svg",className:"self-center",rounded:!0,server:!1,height:o,width:o,alt:t});case"XAUD":return(0,n.jsxs)("div",{className:"self-center h-[40px] relative",children:[(0,n.jsx)(i._,{src:"icons/au-flag-rounded.svg",className:"self-center",rounded:!0,server:!1,height:o,width:o,alt:t}),(0,n.jsx)("img",{width:17,height:17,className:"absolute top-0 right-0 -translate-y-1/4 translate-x-1/4",src:"/images/coinstash/earn/xaud.webp",alt:"Crypto Icon"})]});default:return(0,n.jsx)(i._,{src:l||"fallback-coin-blue.svg",rounded:!0,server:!!l,height:o,width:o,alt:t})}}},44465:(e,l,t)=>{"use strict";t.d(l,{w:()=>r});var n=t(74848),i=t(7224),o=t(42258);let r=e=>{let{title:l="Trading\nAccount",coinData:t,quoteData:r,balance:d,textSize:a="base",convertedBalance:s}=e;return(0,n.jsx)(i.m,{title:(0,o.t)(l),coinData:t,quoteData:r,balance:d,textSize:a,incFee:!1,convertedBalance:s})}},26806:(e,l,t)=>{"use strict";t.d(l,{B:()=>d});var n=t(74848),i=t(7224),o=t(31346),r=t.n(o);let d=e=>{let{coinData:l,quoteData:t,balance:o,textSize:d,title:a,cPoints:s,earnRateEnabled:u=!1,convertedBalance:c,displayConvertedBalance:v}=e;return(0,n.jsx)(i.m,{className:"".concat(r().orangeGradient),title:a||"Savings\nAccount",coinData:l,quoteData:t,balance:o,textSize:d,textColour:"white",incFee:!1,cPoints:s,earnRateEnabled:u,convertedBalance:c,displayConvertedBalance:v})}},1224:(e,l,t)=>{"use strict";t.r(l),t.d(l,{WithdarawConfirmation:()=>h});var n=t(74848),i=t(76582),o=t(44526),r=t(46751),d=t(44465),a=t(26806),s=t(80809),u=t(78403),c=t(50850),v=t(94379),m=t(26535),x=t(50167),g=t(42258),f=t(91529),b=t(79797);let h=e=>{var l,t,h,y,p,w,j,C;let{onClose:A,onSuccess:N,symbol:I,onBack:B,transferPayload:S}=e,{data:L}=(0,x.A)({symbols:[I]}),{data:D}=(0,v.Zqt)({variables:{symbol:I}}),{data:k}=(0,v.fyO)({}),{data:_,refetch:P}=(0,m.os)(null==k?void 0:null===(l=k.userProfile)||void 0===l?void 0:l.userId),{data:F}=(0,v.kWI)({skip:!(null==k?void 0:null===(t=k.userProfile)||void 0===t?void 0:t.userId),variables:{accountId:null==k?void 0:null===(h=k.userProfile)||void 0===h?void 0:h.userId}}),[Q,{data:q,loading:E,error:U}]=(0,c.R0y)({refetchQueries:[{query:v.M2l,variables:{accountId:null==_?void 0:null===(y=_.getAccountInfo)||void 0===y?void 0:y.accountId,currencyCode:"AUD",days:7}}],onCompleted:async e=>{var l,t,n;(null==e?void 0:null===(l=e.transferAsset)||void 0===l?void 0:l.isSuccessful)?(N(),setTimeout(()=>{P()},2e3),P()):(null==e?void 0:null===(t=e.transferAsset)||void 0===t?void 0:t.errors)?(0,g.ug)(null==e?void 0:null===(n=e.transferAsset)||void 0===n?void 0:n.errors):g.oR.error((0,g.t)("Transfer error, please contact support"))},onError:e=>{b.Ay.error("[transferAssetMutation] error ",e),(0,g.p8)(e,(0,g.t)("Failed to withdraw. Please try again later or contact support"))}}),R=(null==S?void 0:S.amount)||0,W=new i.A((null==F?void 0:null===(w=F.accountBalances)||void 0===w?void 0:null===(p=w.data)||void 0===p?void 0:p.assetBalances[I.toLowerCase()])||0).add(R||0).toFixed(),z=(null==_?void 0:null===(C=_.accountBalances)||void 0===C?void 0:null===(j=C.data)||void 0===j?void 0:j.assetBalances[I.toLocaleLowerCase()])||0;return(0,n.jsx)(s.A,{children:(0,n.jsxs)("div",{className:"p-5",children:[(0,n.jsx)(a.B,{textSize:"base",coinData:D,quoteData:L,balance:new i.A(z||0).sub(R||0).toFixed()}),(0,n.jsx)(u.VerticalSeparator,{className:"!m-auto",colour:"grey",height:"small"}),(0,n.jsx)(d.w,{textSize:"base",title:"Withdraw\nAmount",coinData:D,quoteData:L,balance:R}),(0,n.jsx)("div",{className:"mt-5 mb-4 text-center",children:(0,n.jsx)("p",{className:"text-[#353945] font-semibold",children:"Your new Trading ".concat(I," Balance will be:")})}),(0,n.jsx)(d.w,{textSize:"base",coinData:D,quoteData:L,balance:W}),(0,n.jsx)(r.A,{onClick:()=>{var e,l,t,n,r;Q({variables:{accountId:null==_?void 0:null===(l=_.accountBalances)||void 0===l?void 0:null===(e=l.data)||void 0===e?void 0:e.accountId,transferAssetPayloadInput:{amount:R,destinationAccountId:null==k?void 0:null===(t=k.userProfile)||void 0===t?void 0:t.userId,idempotentId:(0,o.A)(),reference:"WEB",symbol:I}}}),(0,f.sx)("earn_transfer",{amount:R,amountAud:new i.A(R||0).mul((null==L?void 0:null===(r=L.getLast)||void 0===r?void 0:null===(n=r.prices[I.toLowerCase()])||void 0===n?void 0:n.tickerPricePrecise)||1).toNumber(),operation:"Withdraw",symbol:I})},loading:E,className:"w-full mt-4",rounded:!0,color:"dark-purple",children:(0,g.t)("Confirm Withdrawal")})]})})}},78403:(e,l,t)=>{"use strict";t.r(l),t.d(l,{VerticalSeparator:()=>i});var n=t(74848);t(96540);let i=e=>{let{className:l="",colour:t="white",height:i="normal"}=e;return(0,n.jsx)("div",{className:"".concat(l," ").concat("grey"===t?"bg-grey-light":"bg-bg-inverted"," w-px ").concat((()=>{switch(i){case"small":return"h-5";case"normal":return"h-10";default:return i}})()," mr-4")})}},50167:(e,l,t)=>{"use strict";t.d(l,{A:()=>r});var n=t(96540),i=t(44526),o=t(33319);let r=e=>{let{symbols:l=[]}=e,{smartQuoteData:t,smartQuoteUpdated:r,symbols:d,quoteData:a,focusedSubscriptions:s}=(0,n.useContext)(o.v),u=(0,n.useRef)((0,i.A)()),c=e=>{var l,t,n;let i=null!==(n=null==d?void 0:null===(l=d.current)||void 0===l?void 0:l.get(u.current))&&void 0!==n?n:new Set;i.add(e),null==d||null===(t=d.current)||void 0===t||t.set(u.current,i)},v=e=>{var l,t,n;let i=null!==(n=null==d?void 0:null===(l=d.current)||void 0===l?void 0:l.get(u.current))&&void 0!==n?n:new Set;i.delete(e),null==d||null===(t=d.current)||void 0===t||t.set(u.current,i)};(0,n.useEffect)(()=>{var e;return null==s||null===(e=s.current)||void 0===e||e.add(u.current),()=>{var e;null==s||null===(e=s.current)||void 0===e||e.delete(u.current)}},[]),(0,n.useEffect)(()=>{for(let e of l.map(e=>null==e?void 0:e.toLowerCase()))c(e)},[l]);let m=(0,n.useCallback)(function(e){var l,n,i,o;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unsubscribe:d}=r,s=null==e?void 0:e.toLowerCase();if(d){v(s);return}return s&&c(s),{data:{getLast:(null==t?void 0:null===(n=t.current)||void 0===n?void 0:null===(l=n.smartQuoteChanged)||void 0===l?void 0:l.prices)?null==t?void 0:null===(i=t.current)||void 0===i?void 0:i.smartQuoteChanged:(null==a?void 0:null===(o=a.getLast)||void 0===o?void 0:o.prices)?null==a?void 0:a.getLast:void 0}}},[a,r]),x=(0,n.useCallback)(function(e){var l,n,i,o,r,d,s,u,m,x,g,f,b;let h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unsubscribe:y,field:p,priceSSR:w}=h,j=null==e?void 0:e.toLowerCase();if(y){v(j);return}return(c(j),p)?(null==t?void 0:null===(o=t.current)||void 0===o?void 0:null===(i=o.smartQuoteChanged)||void 0===i?void 0:null===(n=i.prices)||void 0===n?void 0:null===(l=n[j])||void 0===l?void 0:l[p])?null==t?void 0:null===(x=t.current)||void 0===x?void 0:null===(m=x.smartQuoteChanged.prices)||void 0===m?void 0:null===(u=m[j])||void 0===u?void 0:u[p]:(null==a?void 0:null===(s=a.getLast)||void 0===s?void 0:null===(d=s.prices)||void 0===d?void 0:null===(r=d[j])||void 0===r?void 0:r[p])?null==a?void 0:null===(b=a.getLast)||void 0===b?void 0:null===(f=b.prices)||void 0===f?void 0:null===(g=f[j])||void 0===g?void 0:g[p]:(null==w?void 0:w[p])?null==w?void 0:w[p]:void 0:void 0},[a,r]),g=(0,n.useMemo)(()=>{var e,l,n,i,o,r,s,c,v,m,x,g,f,b,h,y,p,w,j,C,A,N,I,B,S,L,D,k;if(!(null==t?void 0:null===(l=t.current)||void 0===l?void 0:null===(e=l.smartQuoteChanged)||void 0===e?void 0:e.prices)&&!(null==a?void 0:null===(n=a.getLast)||void 0===n?void 0:n.prices))return;let _={prices:{...null!==(h=null==a?void 0:null===(i=a.getLast)||void 0===i?void 0:i.prices)&&void 0!==h?h:{}},quoteId:null!==(p=null!==(y=null==t?void 0:null===(r=t.current)||void 0===r?void 0:null===(o=r.smartQuoteChanged)||void 0===o?void 0:o.quoteId)&&void 0!==y?y:null==a?void 0:null===(s=a.getLast)||void 0===s?void 0:s.quoteId)&&void 0!==p?p:null,targetCurrency:null!==(j=null!==(w=null==t?void 0:null===(v=t.current)||void 0===v?void 0:null===(c=v.smartQuoteChanged)||void 0===c?void 0:c.targetCurrency)&&void 0!==w?w:null==a?void 0:null===(m=a.getLast)||void 0===m?void 0:m.targetCurrency)&&void 0!==j?j:null,issuedOn:null!==(A=null!==(C=null==t?void 0:null===(g=t.current)||void 0===g?void 0:null===(x=g.smartQuoteChanged)||void 0===x?void 0:x.issuedOn)&&void 0!==C?C:null==a?void 0:null===(f=a.getLast)||void 0===f?void 0:f.issuedOn)&&void 0!==A?A:null};for(let e of Array.from(null!==(N=null==d?void 0:null===(b=d.current)||void 0===b?void 0:b.get(u.current))&&void 0!==N?N:new Set))(null==t?void 0:null===(S=t.current)||void 0===S?void 0:null===(B=S.smartQuoteChanged)||void 0===B?void 0:null===(I=B.prices)||void 0===I?void 0:I[e])&&(_.prices[e]=null==t?void 0:null===(k=t.current)||void 0===k?void 0:null===(D=k.smartQuoteChanged)||void 0===D?void 0:null===(L=D.prices)||void 0===L?void 0:L[e]);return _},[r,a]),f=!(null==t?void 0:t.current),b=!a;return{data:{getLast:g},loading:!g&&f||b,quoteLoading:b,smartQuoteLoading:f,getQuote:m,q:x}}},31346:e=>{e.exports={orangeGradient:"EarnBalance_orangeGradient__lOMr9"}}}]);
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.