PageSourceSearch

https://lassecash.pages.dev/_app/immutable/nodes/3.BQxKmniu.js

js lassecash.pages.dev collected 2026-10-03 05:21:56 UTC 6,182 bytes, 4 lines download raw bytes

1import{a as l,s as o,f as n}from"../chunks/D9sGZGkf.js";import{p as Ua,b as I,w as Wa,n as Ba,f as j,t as S,a as ja,g as a,v as m,s as i,c as r,r as s,o as oa,d as E}from"../chunks/CN4tyA6q.js";import{i as q}from"../chunks/C5sdDPiI.js";import{S as za,m as Fa,a as z,b as la,p as F,e as Ja,s as Ka}from"../chunks/8mUhvwNQ.js";import{s as na}from"../chunks/pf6Xs9Ff.js";import{i as va,f as J,c as da,d as K,s as Qa,h as Va}from"../chunks/BEQGXt1Q.js";import{S as Xa}from"../chunks/2Hd2hf89.js";var Ya=n('<span class="pill warn">consensus seat</span>'),Za=n('<span class="pill info">you</span>'),$a=n('<p class="empty svelte-1mfqloi"><strong>Could not read this account.</strong> </p>'),at=n('<p class="empty svelte-1mfqloi">Loading…</p>'),tt=n('<section class="stats svelte-1mfqloi"><div class="panel stat"><div class="label">Liquid</div> <div class="value"> </div> <div class="sub">LASSECASH</div></div> <div class="panel stat"><div class="label">Open mints</div> <div class="value"> </div> <div class="sub"> </div></div> <div class="panel stat svelte-1mfqloi"><div class="label">Thresholds</div> <div> </div> <div class="sub"> </div></div></section>'),et=n(`<p class="empty svelte-1mfqloi"><strong>Nothing in the last month.</strong> That is not the same as nothing published — posts older than the window
2        this page can read are still live at their own address.</p>`),st=n('<span class="dim">earns from the first vote</span>'),rt=n('<span class="pill ok">paid out</span>'),it=n('<span class="mono gold"> </span> <span> </span>',1),ot=n('<span class="mono"> </span> <!>',1),lt=n('<p class="blurb svelte-1mfqloi"> </p>'),nt=n('<li class="svelte-1mfqloi"><a class="svelte-1mfqloi"><span> </span> <span class="title svelte-1mfqloi"> </span></a> <div class="line dim svelte-1mfqloi"><span> </span> <!></div> <!></li>'),vt=n('<ul class="posts svelte-1mfqloi"></ul>'),dt=n(`<!> <div class="grid"><section class="panel head svelte-1mfqloi"><div class="who svelte-1mfqloi"><h1 class="mono svelte-1mfqloi"> </h1> <div class="badges svelte-1mfqloi"><!> <!></div></div> <div class="hero svelte-1mfqloi"><div class="value gold svelte-1mfqloi"> </div> <div class="cap svelte-1mfqloi">L-Shares</div></div></section> <!> <section class="panel"><h2>Recent posts</h2> <p class="scope dim svelte-1mfqloi">Registered on LasseCash in the last month. Older posts are still live at
3      their own address — this list cannot reach back past the chain history
4      the page reads.</p> <!></section></div>`,1);function gt(ca,v){Ua(v,!0);const f=m(()=>v.data.account);let b=I(null),Q=I(Wa([])),N=I(!0),C=I(null);async function pa(t){E(N,!0);try{const[e,p]=await Promise.all([da.accountOf(t),da.posts(200)]);E(b,e,!0),E(Q,p.filter(d=>d.author===t),!0),E(C,null)}catch(e){E(C,e instanceof Error?e.message:String(e),!0)}finally{E(N,!1)}}Ba(()=>{pa(a(f))});const _a=m(()=>{var t;return((t=K.info)==null?void 0:t.height)??0}),ma=m(()=>new Map(a(Q).map(t=>[t.permlink,t]))),k=m(()=>{var t;return((t=K.info)==null?void 0:t.consensus_group.includes(a(f)))??!1}),fa=m(()=>K.account===a(f)),V=m(()=>{var t;return(((t=a(b))==null?void 0:t.mints)??[]).filter(e=>!e.ended).length}),ua=m(()=>Fa(v.data.postCount>0?`@${v.data.handle} publishes on ${z} — ${v.data.postCount} post${v.data.postCount===1?"":"s"}. Earning LASSECASH from Proof-of-Brain rewards.`:`@${v.data.handle} on ${z} — LASSECASH balance, L-Shares and published work.`)),ha=m(()=>({"@context":"https://schema.org","@type":"ProfilePage",url:F(a(f)),mainEntity:{"@type":"Person",name:`@${v.data.handle}`,alternateName:va(a(f)),identifier:a(f),url:F(a(f))},...v.data.posts.length?{hasPart:v.data.posts.map(t=>({"@type":"Article",headline:t.title,url:la+t.path,datePublished:t.created}))}:{},isPartOf:{"@type":"WebSite",name:z,url:la}}));var X=dt(),Y=j(X);{let t=m(()=>`@${v.data.handle}`),e=m(()=>F(a(f)));Xa(Y,{get title(){return a(t)},get description(){return a(ua)},get canonical(){return a(e)},type:"profile",get image(){return za},get schema(){return a(ha)}})}var Z=i(Y,2),R=r(Z),D=r(R),G=r(D),ga=r(G,!0);s(G);var $=i(G,2),aa=r($);{var ba=t=>{var e=Ya();l(t,e)};q(aa,t=>{a(k)&&t(ba)})}var ya=i(aa,2);{var Sa=t=>{var e=Za();l(t,e)};q(ya,t=>{a(fa)&&t(Sa)})}s($),s(D);
4var ta=i(D,2),ea=r(ta),qa=r(ea,!0);s(ea),oa(2),s(ta),s(R);var sa=i(R,2);{var wa=t=>{var e=$a(),p=i(r(e),1,!0);s(e),S(()=>o(p,a(C))),l(t,e)},xa=t=>{var e=at();l(t,e)},Ea=t=>{var e=tt(),p=r(e),d=i(r(p),2),_=r(d,!0);s(d),oa(2),s(p);var y=i(p,2),u=i(r(y),2),w=r(u,!0);s(u);var P=i(u,2),M=r(P);s(P),s(y);var O=i(y,2),h=i(r(O),2),A=r(h,!0);s(h);var T=i(h,2),U=r(T,!0);s(T),s(O),s(e),S(W=>{o(_,W),o(w,a(V)),o(M,`time-locked position${a(V)===1?"":"s"}`),na(h,1,`value ${a(k)?"green":"dim"}`,"svelte-1mfqloi"),o(A,a(k)?"Seated":"—"),o(U,a(k)?"one of the ten standing preferences":"L-Shares buy a seat, not extra weight in one")},[()=>J(a(b).balance)]),l(t,e)};q(sa,t=>{a(C)?t(wa):a(N)&&!a(b)?t(xa,1):a(b)&&t(Ea,2)})}var ra=i(sa,2),Aa=i(r(ra),4);{var La=t=>{var e=et();l(t,e)},Ca=t=>{var e=vt();Ja(e,21,()=>v.data.posts,p=>p.permlink,(p,d)=>{const _=m(()=>a(ma).get(a(d).permlink));var y=nt(),u=r(y),w=r(u),P=r(w,!0);s(w);var M=i(w,2),O=r(M,!0);s(M),s(u);var h=i(u,2),A=r(h),T=r(A,!0);s(A);var U=i(A,2);{var W=c=>{var g=st();l(c,g)},ka=c=>{var g=ot(),L=j(g),Oa=r(L);s(L);var Ta=i(L,2);{var Ha=x=>{var H=rt();l(x,H)},Ia=x=>{var H=it(),B=j(H),Na=r(B);s(B);var ia=i(B,2),Ra=r(ia,!0);s(ia),S((Da,Ga)=>{o(Na,`${Da??""} LASSECASH`),o(Ra,Ga)},[()=>J(a(_).pending_payout),()=>a(_).payable?"window closed":`pays in ${Va(a(_).payout_height-a(_a))}`]),l(x,H)};q(Ta,x=>{a(_).paid_out?x(Ha):x(Ia,-1)})}S(()=>o(Oa,`${a(_).votes??""} vote${a(_).votes===1?"":"s"}`)),l(c,g)};q(U,c=>{a(_)&&!a(_).registered?c(W):a(_)&&c(ka,1)})}s(h);var Pa=i(h,2);{var Ma=c=>{var g=lt(),L=r(g,!0);s(g),S(()=>o(L,a(d).summary)),l(c,g)};q(Pa,c=>{a(d).summary&&c(Ma)})}s(y),S(c=>{Ka(u,"href",a(d).path),na(w,1,`pill ${a(d).window==="deep"?"info":"warn"}`),o(P,a(d).window),o(O,a(d).title),o(T,c)},[()=>Qa(a(d).created)]),l(p,y)}),s(e),l(t,e)};q(Aa,t=>{v.data.posts.length===0?t(La):t(Ca,-1)})}s(ra),s(Z),S((t,e)=>{o(ga,t),o(qa,e)},[()=>va(a(f)),()=>a(b)?J(a(b).shares):"—"]),l(ca,X),ja()}export{gt as component};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.