import{bE as B,bF as y,aL as f,bq as i,o as x,c as T,a,t as h,u as N,bG as A,bu as W,b,w as $,bD as C,ba as c}from"./entry.816e6e91.js";import{_ as D}from"./card.924cd882.js";const S={class:"h-40"},k={class:"flex flex-col gap-4"},E=a("div",{class:"flex gap-12 border-b border-gray-400"},[a("h3",null,"Username"),a("h3",null,"Balance")],-1),F={class:"flex gap-24 px-2"},R={__name:"Transactoin",props:{pending:{type:Boolean},Transactoin:{type:Array,default:()=>[]},page:{type:Number,default:1},total:{type:Number,default:1}},setup(n){const t=B(),s=y(),o=n;let e=f();return e.value=o.page,i(()=>s.query,()=>{e.value=+s.query.page||o.page},{immediate:!0}),i(e,()=>{t.push({query:{page:e.value}})}),(l,r)=>(x(),T("section",S,[a("div",k,[E,a("div",F,[a("span",null,h(n.Transactoin.username),1),a("span",null,h(n.Transactoin.balance),1)])])]))}},V={class:"row mx-0"},G={class:"col-lg-12"},j={__name:"[id]",async setup(n){let t,s;N({title:"Wallets Transactoin"});const o=A();o.pageName="Wallets Transactoin";const e=y();let l=f();const{data:r,pending:v}=([t,s]=W(()=>C({url:`wallets/showWallet/${e.params.id}`,method:"get"},{immediate:!1,query:{page:l}})),t=await t,s(),t);return i(()=>e.query,()=>{var u;l.value=((u=e.query)==null?void 0:u.page)||1},{immediate:!0}),(u,H)=>{const w=R,q=D;return x(),T("div",V,[a("div",G,[b(q,{bodyClasses:"mt-2"},{body:$(()=>{var p,_,d,m,g;return[b(w,{pending:c(v),Transactoin:(p=c(r))==null?void 0:p.data,page:(d=(_=c(r))==null?void 0:_.meta)==null?void 0:d.current_page,total:(g=(m=c(r))==null?void 0:m.meta)==null?void 0:g.total},null,8,["pending","Transactoin","page","total"])]}),_:1})])])}}};export{j as default};
