"use strict";(self["webpackChunksuperhero_wallet"]=self["webpackChunksuperhero_wallet"]||[]).push([[8841],{50730:(n,t,a)=>{a.r(t),a.d(t,{default:()=>C});var o=a(20641),e={class:"transaction-details"};function s(n,t,a,s,r,i){var u=(0,o.g2)("TransactionAssetRows"),c=(0,o.g2)("TransactionDetailsBase"),l=(0,o.g2)("IonContent"),d=(0,o.g2)("IonPage");return(0,o.uX)(),(0,o.Wv)(d,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",e,[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.solana,"hide-amount-total":!n.isTransactionCoin,"hide-fiat":!n.isTransactionCoin,"show-header":""},{tokens:(0,o.k6)(function(){return[(0,o.bF)(u,{assets:n.transactionAssets,protocol:n.PROTOCOLS.solana,"icon-size":"rg","multiple-rows":""},null,8,["assets","protocol"])]}),_:1},8,["transaction","amount","amount-total","fee","hash","protocol","hide-amount-total","hide-fiat"])):(0,o.Q3)("",!0)])]}),_:1})]}),_:1})}var r=a(6986),i=(a(98992),a(72577),a(50113),a(44114),a(18111),a(20116),a(26099),a(50953)),u=a(75220),c=a(27360),l=a(37772),d=a(27800),f=a(87087),v=a(85854),h=a(15271),m=a(32133),p=a(11969),w=function(n,t,a,o){function e(n){return n instanceof a?n:new a(function(t){t(n)})}return new(a||(a=Promise))(function(a,s){function r(n){try{u(o.next(n))}catch(t){s(t)}}function i(n){try{u(o["throw"](n))}catch(t){s(t)}}function u(n){n.done?a(n.value):e(n.value).then(r,i)}u((o=o.apply(n,t||[])).next())})};const T=(0,o.pM)({components:{TransactionDetailsBase:m.A,TransactionAssetRows:p.A,IonContent:c.W9,IonPage:c.AO},setup:function(){var n=this,t=(0,u.rd)(),a=(0,u.lq)(),e=a.params.hash,s=a.params.transactionOwner,c=f.C.getAdapter(l.yv.solana),m=(0,i.KR)(),p=(0,d.mv)(),T=p.setLoaderVisible,A=(0,d.oV)(),O=A.activeAccount,C=(0,d.rb)(),k=C.accountsTransactionsPending,g=(0,d.my)({transaction:m,transactionCustomOwner:(0,i.lW)(function(){return s})}),_=g.amountTotal,b=g.transactionAssets,y=g.isTransactionCoin,L=g.innerTx,P=(0,d._8)({accountAddress:s||O.value.address,protocol:l.yv.solana}),x=P.transactionsLoaded,I=(0,o.EW)(function(){var n,t;return(null===(t=null===(n=m.value)||void 0===n?void 0:n.tx)||void 0===t?void 0:t.fee)||0}),R=(0,o.EW)(function(){var n,t;return(null===(t=null===(n=m.value)||void 0===n?void 0:n.tx)||void 0===t?void 0:t.amount)||0});return(0,o.wB)(m,function(n){T(!n)},{immediate:!0}),(0,o.sV)(function(){return w(n,void 0,void 0,(0,r.A)().m(function n(){var a,o=this;return(0,r.A)().w(function(n){while(1)switch(n.n){case 0:return n.n=1,function(){return w(o,void 0,void 0,(0,r.A)().m(function n(){var a,o;return(0,r.A)().w(function(n){while(1)switch(n.p=n.n){case 0:if(a=x.value.find(function(n){return n.hash===e}),!a){n.n=1;break}return n.a(2,a);case 1:if(o=(k.value[s]||[]).find(function(n){return n.hash===e}),!o){n.n=2;break}return n.a(2,o);case 2:return n.p=2,n.a(2,c.fetchTransactionByHash(e,s));case 3:return n.p=3,n.v,T(!1),t.push({name:v.hN}),n.a(2,null)}},n,null,[[2,3]])}))}();case 1:a=n.v,a&&(m.value=a);case 2:return n.a(2)}},n)}))}),{SOL_COIN_SYMBOL:h.m2,PROTOCOLS:l.yv,amount:R,amountTotal:_,innerTx:L,isTransactionCoin:y,hash:e,fee:I,transaction:m,transactionAssets:b}}});var A=a(66262);const O=(0,A.A)(T,[["render",s],["__scopeId","data-v-ee21793e"]]),C=O}}]);