import{s as R,p as j,q,e as f,a as C,t as M,c as _,k as z,b as A,j as E,d,l as O,f as p,m as x,i as $,g as m,K as w,y as N,r as B,z as F}from"./scheduler.NvvBUJNK.js";import{S as H,i as J,c as K,a as P,m as G,t as L,b as Q,d as W}from"./index.BjobFbD-.js";import{T as X}from"./trinket.Da0Aurql.js";import{s as Y,p as I,m as Z,f as tt}from"./0.CMTQMBFK.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,r,c,g="Address",y,a,v,u,S="Ask",k,h,T,D,U;return{c(){t=f("header"),t.textContent=l,e=C(),s=f("div"),r=f("div"),c=f("div"),c.textContent=g,y=C(),a=f("input"),v=C(),u=f("button"),u.textContent=S,k=C(),h=f("div"),T=M(o[1]),this.h()},l(n){t=_(n,"HEADER",{style:!0,"data-svelte-h":!0}),z(t)!=="svelte-1esnkz2"&&(t.textContent=l),e=A(n),s=_(n,"DIV",{style:!0});var i=E(s);r=_(i,"DIV",{style:!0,class:!0});var b=E(r);c=_(b,"DIV",{class:!0,"data-svelte-h":!0}),z(c)!=="svelte-8vsth"&&(c.textContent=g),y=A(b),a=_(b,"INPUT",{style:!0,type:!0,placeholder:!0}),b.forEach(d),v=A(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=A(n),h=_(n,"DIV",{});var V=E(h);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"),x(a,"text-indent","10px"),p(a,"type","text"),p(a,"placeholder","Address"),x(r,"height","40px"),x(r,"background","none"),x(r,"margin-right","10px"),p(r,"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"),x(u,"height","40px"),p(s,"style",I({display:"flex","justify-content":"center"}))},m(n,i){$(n,t,i),$(n,e,i),$(n,s,i),m(s,r),m(r,c),m(r,y),m(r,a),w(a,o[0]),m(s,v),m(s,u),$(n,k,i),$(n,h,i),m(h,T),D||(U=[N(a,"input",o[3]),N(u,"click",o[2])],D=!0)},p(n,i){i&1&&a.value!==n[0]&&w(a,n[0]),i&2&&B(T,n[1])},d(n){n&&(d(t),d(e),d(s),d(k),d(h)),D=!1,F(U)}}}function rt(o){let t,l;return t=new X({props:{styles:{width:"100%"},$$slots:{default:[nt]},$$scope:{ctx:o}}}),{c(){K(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,s){G(t,e,s),l=!0},p(e,[s]){const r={};s&259&&(r.$$scope={dirty:s,ctx:e}),t.$set(r)},i(e){l||(L(t.$$.fragment,e),l=!0)},o(e){Q(t.$$.fragment,e),l=!1},d(e){W(t,e)}}}function at(o,t,l){I({padding:".3cm","font-size":"2em"});let e="",s="";const r=async()=>{const a=await g.aptos.getAccountTransactions({accountAddress:e});if(a.length===0){l(1,s="0 tx found");return}console.log({transactions:a}),l(1,s=st({committed_transaction:a}))};let c,g;j(async()=>{g=tt().freight,c=Z(v=>{g=v})}),q(()=>{c.stop()});function y(){e=this.value,l(0,e)}return[e,s,r,y]}class ut extends H{constructor(t){super(),J(this,t,at,rt,R,{})}}export{ut as default};
//# sourceMappingURL=Trinket.BIx--VSV.js.map
