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