"use strict";(self["webpackChunksuperhero_wallet"]=self["webpackChunksuperhero_wallet"]||[]).push([[3838],{7047:(n,t,e)=>{e.r(t),e.d(t,{default:()=>T});var o=e(20641),a={class:"transaction-details"};function r(n,t,e,r,u,i){var s=(0,o.g2)("TransactionAssetRows"),c=(0,o.g2)("TransactionDetailsBase"),l=(0,o.g2)("IonContent"),v=(0,o.g2)("IonPage");return(0,o.uX)(),(0,o.Wv)(v,null,{default:(0,o.k6)(function(){return[(0,o.bF)(l,{class:"ion-padding ion-content-bg"},{default:(0,o.k6)(function(){return[(0,o.Lk)("div",a,[n.transaction?((0,o.uX)(),(0,o.Wv)(c,{key:0,transaction:n.transaction,amount:n.amount,"amount-total":n.amountTotal,fee:n.fee,hash:n.hash,protocol:n.PROTOCOLS.bitcoin,"show-header":""},{tokens:(0,o.k6)(function(){return[(0,o.bF)(s,{assets:n.assets,"is-rounded":!!n.assets,protocol:n.PROTOCOLS.bitcoin,"icon-size":"rg","multiple-rows":""},null,8,["assets","is-rounded","protocol"])]}),_:1},8,["transaction","amount","amount-total","fee","hash","protocol"])):(0,o.Q3)("",!0)])]}),_:1})]}),_:1})}var u=e(6986),i=(e(44114),e(26099),e(50953)),s=e(75220),c=e(27360),l=e(37772),v=e(27800),d=e(87087),f=e(85854),h=e(74731),p=e(19923),m=e(32133),w=e(11969),b=function(n,t,e,o){function a(n){return n instanceof e?n:new e(function(t){t(n)})}return new(e||(e=Promise))(function(e,r){function u(n){try{s(o.next(n))}catch(t){r(t)}}function i(n){try{s(o["throw"](n))}catch(t){r(t)}}function s(n){n.done?e(n.value):a(n.value).then(u,i)}s((o=o.apply(n,t||[])).next())})};const k=(0,o.pM)({components:{TransactionDetailsBase:m.A,TransactionAssetRows:w.A,IonContent:c.W9,IonPage:c.AO},setup:function(){var n=this,t=(0,s.rd)(),e=(0,s.lq)(),a=(0,v.mv)(),r=a.setLoaderVisible,c=e.params.hash,m=e.params.transactionOwner,w=d.C.getAdapter(l.yv.bitcoin),k=(0,i.KR)(),O=(0,o.EW)(function(){var n,t;return(null===(t=null===(n=k.value)||void 0===n?void 0:n.tx)||void 0===t?void 0:t.senderId)!==m}),g=(0,o.EW)(function(){var n,t;return(null===(t=null===(n=k.value)||void 0===n?void 0:n.tx)||void 0===t?void 0:t.fee)||0}),T=(0,o.EW)(function(){var n,t;return(null===(t=null===(n=k.value)||void 0===n?void 0:n.tx)||void 0===t?void 0:t.amount)||0}),A=(0,o.EW)(function(){var n;return(null===(n=k.value)||void 0===n?void 0:n.tx)?(0,p.nG)(k.value,O.value):0}),C=(0,o.EW)(function(){return O.value?l.NX.received:l.NX.sent}),W=(0,o.EW)(function(){return[{amount:T.value,symbol:h.HF,name:h.NS,isReceived:C.value===l.NX.received,contractId:w.coinContractId}]});return(0,o.wB)(k,function(n){r(!n)},{immediate:!0}),(0,o.sV)(function(){return b(n,void 0,void 0,(0,u.A)().m(function n(){return(0,u.A)().w(function(n){while(1)switch(n.p=n.n){case 0:return n.p=0,n.n=1,w.fetchTransactionByHash(c,m);case 1:k.value=n.v,n.n=3;break;case 2:n.p=2,n.v,r(!1),t.push({name:f.hN});case 3:return n.a(2)}},n,null,[[0,2]])}))}),{PROTOCOLS:l.yv,amount:T,amountTotal:A,fee:g,hash:c,assets:W,transaction:k}}});var O=e(66262);const g=(0,O.A)(k,[["render",r]]),T=g}}]);