import{s as N,o as R,m as q,d,z as B,B as j,p as M,i as x,k as f,l as w,a as p,b as $,c as _,g as z,f as C,h as E,q as O,e as m,j as A,t as F}from"./Cl1o3nVP.js";import{S as H,i as J,d as P,t as G,a as K,m as L,c as Q,b as W}from"./nb9JOxVX.js";import{T as X}from"./D8OQT3CP.js";import{e as Y,p as I,c as Z,j as tt}from"./B7v8dEzq.js";const et=(o,t)=>typeof t=="bigint"?t.toString():t instanceof Uint8Array?Y(t):t,st=({committed_transaction:o})=>JSON.stringify(o,et,4);function nt(o){let t,l="Transactions",e,s,a,c,h="Address",y,r,v,u,S="Ask",k,g,T,D,U;return{c(){t=m("header"),t.textContent=l,e=A(),s=m("div"),a=m("div"),c=m("div"),c.textContent=h,y=A(),r=m("input"),v=A(),u=m("button"),u.textContent=S,k=A(),g=m("div"),T=F(o[1]),this.h()},l(n){t=_(n,"HEADER",{style:!0,"data-svelte-h":!0}),z(t)!=="svelte-1esnkz2"&&(t.textContent=l),e=C(n),s=_(n,"DIV",{style:!0});var i=E(s);a=_(i,"DIV",{style:!0,class:!0});var b=E(a);c=_(b,"DIV",{class:!0,"data-svelte-h":!0}),z(c)!=="svelte-8vsth"&&(c.textContent=h),y=C(b),r=_(b,"INPUT",{style:!0,type:!0,placeholder:!0}),b.forEach(d),v=C(i),u=_(i,"BUTTON",{type:!0,class:!0,style:!0,"data-svelte-h":!0}),z(u)!=="svelte-1gog9g9"&&(u.textContent=S),i.forEach(d),k=C(n),g=_(n,"DIV",{});var V=E(g);T=O(V,o[1]),V.forEach(d),this.h()},h(){p(t,"style",I({padding:".3cm","font-size":"2em","text-align":"center"})),p(c,"class","input-group-shim"),$(r,"text-indent","10px"),p(r,"type","text"),p(r,"placeholder","Address"),$(a,"height","40px"),$(a,"background","none"),$(a,"margin-right","10px"),p(a,"class","input-group input-group-divider grid-cols-[auto_1fr_auto]"),p(u,"type","button"),p(u,"class","btn bg-gradient-to-br variant-gradient-primary-secondary"),$(u,"height","40px"),p(s,"style",I({display:"flex","justify-content":"center"}))},m(n,i){x(n,t,i),x(n,e,i),x(n,s,i),f(s,a),f(a,c),f(a,y),f(a,r),j(r,o[0]),f(s,v),f(s,u),x(n,k,i),x(n,g,i),f(g,T),D||(U=[w(r,"input",o[3]),w(u,"click",o[2])],D=!0)},p(n,i){i&1&&r.value!==n[0]&&j(r,n[0]),i&2&&M(T,n[1])},d(n){n&&(d(t),d(e),d(s),d(k),d(g)),D=!1,B(U)}}}function at(o){let t,l;return t=new X({props:{styles:{width:"100%"},$$slots:{default:[nt]},$$scope:{ctx:o}}}),{c(){W(t.$$.fragment)},l(e){Q(t.$$.fragment,e)},m(e,s){L(t,e,s),l=!0},p(e,[s]){const a={};s&259&&(a.$$scope={dirty:s,ctx:e}),t.$set(a)},i(e){l||(K(t.$$.fragment,e),l=!0)},o(e){G(t.$$.fragment,e),l=!1},d(e){P(t,e)}}}function rt(o,t,l){I({padding:".3cm","font-size":"2em"});let e="",s="";const a=async()=>{const r=await h.aptos.getAccountTransactions({accountAddress:e});if(r.length===0){l(1,s="0 tx found");return}console.log({transactions:r}),l(1,s=st({committed_transaction:r}))};let c,h;R(async()=>{h=Z().freight,c=tt(v=>{h=v})}),q(()=>{c.stop()});function y(){e=this.value,l(0,e)}return[e,s,a,y]}class ut extends H{constructor(t){super(),J(this,t,rt,at,N,{})}}export{ut as default};
//# sourceMappingURL=CSP_zGk0.js.map
