PageSourceSearch

https://lassecash.pages.dev/_app/immutable/nodes/4.DzZJwUXB.js

js lassecash.pages.dev collected 2026-10-03 05:21:57 UTC 24,673 bytes, 23 lines download raw bytes

1import{d as he,a,s as x,g as ve,b as Z,f as n,t as Gt,c as xe}from"../chunks/D9sGZGkf.js";import{o as _e}from"../chunks/WB-YkL4p.js";import{p as fe,b as H,w as Ie,d as m,c as i,s as l,g as t,r,a as ge,v as I,t as k,a0 as Le,o as Mt,f as V,n as ke}from"../chunks/CN4tyA6q.js";import{i as f}from"../chunks/C5sdDPiI.js";import{e as je,s as Xt,r as Re,m as Ne,a as Se,S as Be,g as We,b as Oe,p as Ve}from"../chunks/8mUhvwNQ.js";import{h as ce,S as Ue}from"../chunks/2Hd2hf89.js";import{s as ye}from"../chunks/pf6Xs9Ff.js";import{p as qe}from"../chunks/B0-1Zguu.js";import{b as $t,d as M,k as ue,c as zt,f as ct,w as de,i as Qt,s as ze,h as Ae,H as Fe,P as re}from"../chunks/BEQGXt1Q.js";import{r as pe}from"../chunks/B9L1Za3Y.js";import{s as Ge}from"../chunks/DyJcqSGM.js";import{b as Te}from"../chunks/BlnfMc48.js";import{b as Pe}from"../chunks/5qzM5Pem.js";import{r as Ce}from"../chunks/uB-BFCoo.js";import{H as be}from"../chunks/DfvTF37Y.js";import{V as me,P as Ye,a as Ke}from"../chunks/7bTzL_5g.js";var Je=n('<span class="count mono svelte-18zh55"> </span>'),Ze=n('<p class="gate dim svelte-18zh55">Sign in to reply.</p>'),Qe=n('<p class="gate dim svelte-18zh55">Reading the comment threshold from the chain…</p>'),Xe=n('<p class="gate refuse svelte-18zh55"><strong class="svelte-18zh55"> </strong> </p>'),$e=n('<p class="dim tiny replying svelte-18zh55">Replying to <b> </b> · <button class="linkish svelte-18zh55">reply to the post instead</button></p>'),ta=n('<button class="linkish svelte-18zh55">Add image</button> · or paste / drop one',1),ea=n('<input type="file" accept="image/*" multiple="" hidden=""/> <p class="dim tiny svelte-18zh55"><!></p>',1),aa=n('<div class="preview rendered svelte-18zh55"></div>'),ra=n(`<div class="box svelte-18zh55"><!> <textarea rows="4" placeholder="Reply in markdown. A comment worth reading is worth paying for. Paste or drop an image to upload it." class="svelte-18zh55"></textarea> <!> <!> <div class="boxactions svelte-18zh55"><button class="ghost small"> </button> <button class="small"> </button></div> <small class="dim svelte-18zh55">Published to the content layer first, then registered on-chain — in that
2        order, so a failed registration never leaves a payout window over
3        nothing.</small></div>`),sa=n('<p class="err svelte-18zh55"> </p>'),oa=n('<p class="dim empty-note svelte-18zh55">Reading the chain…</p>'),na=n('<p class="dim empty-note svelte-18zh55">No comments yet.</p>'),la=n('<span class="dim tiny svelte-18zh55"> </span>'),ia=n('<span class="pill dimpill svelte-18zh55"> </span>'),va=n('<span class="pill ok">paid out</span>'),da=n('<span class="reward mono gold svelte-18zh55"> </span> <!>',1),ca=n('<span class="dim tiny svelte-18zh55">written on Hive — reply to it there; its author can register it by replying here</span>'),ua=n('<span class="dim tiny svelte-18zh55">window closed — settles with the post</span>'),pa=n('<span class="dim tiny svelte-18zh55">settles on the 1st</span>'),ma=n('<button class="ghost small">Reply</button>'),ha=n('<li><div class="cmeta svelte-18zh55"><a class="author svelte-18zh55"> </a> <!> <span class="dim"> </span> <!></div> <div class="cbody rendered svelte-18zh55"></div> <div class="cactions svelte-18zh55"><!> <!></div></li>'),_a=n('<ul class="list svelte-18zh55"></ul>'),fa=n(`<section class="panel comments"><h2 class="svelte-18zh55">Comments <!></h2> <p class="rule dim svelte-18zh55">A registered reply earns like a viral post — 7 days, the viral pool, real
4    curation. That is why it takes stake to write one.</p> <!> <!> <!></section>`);function ga(Yt,C){fe(C,!0);let U=H(Ie([])),d=H(!0),s=H(null),T=H(""),L=H(null),F=H(null);function Dt(v,p){m(L,{author:v,permlink:p},!0),queueMicrotask(()=>{var c,y;(c=t(F))==null||c.scrollIntoView({behavior:"smooth",block:"center"}),(y=t(F))==null||y.focus()})}let At=H(!1),ut=H(null);async function gt(v){var y;const p=(y=M.account)==null?void 0:y.replace(/^hive:/,""),c=Array.from(v).filter(u=>u.type.startsWith("image/"));if(!de||!p||c.length===0)return!1;m(At,!0),m(s,null);try{for(const u of c){const D=await de.uploadImage(u,p);m(T,t(T)+`${t(T)&&!t(T).endsWith(`
5`)?`
6`:""}![${u.name.replace(/[\]\[]/g,"")}](${D})
7`)}}catch(u){m(s,`Image upload failed: ${u instanceof Error?u.message:String(u)}`)}finally{m(At,!1)}return!0}function Kt(v){var c;const p=Array.from(((c=v.clipboardData)==null?void 0:c.files)??[]);p.some(y=>y.type.startsWith("image/"))&&(v.preventDefault(),gt(p))}function It(v){var c;const p=Array.from(((c=v.dataTransfer)==null?void 0:c.files)??[]);p.some(y=>y.type.startsWith("image/"))&&(v.preventDefault(),gt(p))}let nt=H(!1),pt=H(!1),yt=H(null);const S=I(()=>M.me),B=I(()=>!t(S)||t(yt)===null?null:ue(t(S).shares,t(yt))>=0),Q=I(()=>{const v=`${C.post.author}/${C.post.permlink}`,p=new Set(t(U).map(b=>`${b.view.author}/${b.view.permlink}`)),c=new Map,y=[];for(const b of t(U)){const E=`${b.view.parent_author}/${b.view.parent_permlink}`;if(E!==v&&p.has(E)){const h=c.get(E)??[];h.push(b),c.set(E,h)}else y.push(b)}y.sort((b,E)=>{const h=b.view.registered===!1?1:0,g=E.view.registered===!1?1:0;if(h!==g)return h-g;
7const j=ue(E.view.pending_payout,b.view.pending_payout);return j!==0?j:b.view.created_height-E.view.created_height});const u=(b,E)=>b.view.created_time<E.view.created_time?-1:b.view.created_time>E.view.created_time?1:0,D=[],O=(b,E)=>{D.push({r:b,depth:E});for(const h of(c.get(`${b.view.author}/${b.view.permlink}`)??[]).sort(u))O(h,E+1)};for(const b of y)O(b,0);return D});async function lt(){try{const v=await zt.comments(C.post.author,C.post.permlink),p=await Promise.all(v.map(c=>zt.content(c.author,c.permlink).catch(()=>null)));m(U,v.map((c,y)=>{var u;return{view:c,body:((u=p[y])==null?void 0:u.body)||c.body_excerpt||""}}),!0),m(s,null)}catch(v){m(s,v instanceof Error?v.message:String(v),!0)}finally{m(d,!1)}}_e(async()=>{lt();const v=await Ce($t().paramPostThresholdComment);m(yt,v?v.value:null,!0)});async function Lt(){var v,p;if(t(T).trim()){m(s,null),m(pt,!0);try{const c=await zt.comment({body:t(T).trim(),parentAuthor:((v=t(L))==null?void 0:v.author)??C.post.author,parentPermlink:((p=t(L))==null?void 0:p.permlink)??C.post.permlink});if(!c.ok){m(s,c.msg,!0);return}if(c.txId){const y=await M.awaitVerdict(c.txId,JSON.stringify(M.me));if(y){m(s,y,!0);return}}m(T,""),m(L,null),m(nt,!1),await lt(),await M.refresh()}catch(c){m(s,c instanceof Error?c.message:String(c),!0)}finally{m(pt,!1)}}}var Y=fa(),K=i(Y),G=l(i(K));{var _=v=>{var p=Je(),c=i(p,!0);r(p),k(()=>x(c,t(U).length)),a(v,p)};f(G,v=>{t(d)||v(_)})}r(K);var q=l(K,4);{var it=v=>{var p=Ze();a(v,p)},X=v=>{var p=Qe();a(v,p)},bt=v=>{var p=Xe(),c=i(p),y=i(c);r(c);var u=l(c);r(p),k((D,O)=>{x(y,`You need ${D??""} L-Shares to comment.`),x(u,` You hold ${O??""}. The threshold is set by the top 10
8      inside hardcoded bounds — mint LASSECASH to earn L-Shares and grow into it.`)},[()=>ct(t(yt)??"0",0),()=>{var D;return ct(((D=t(S))==null?void 0:D.shares)??"0",0)}]),a(v,p)},Rt=v=>{var p=ra(),c=i(p);{var y=P=>{var N=$e(),et=l(i(N)),kt=i(et,!0);r(et);var Tt=l(et,2);r(N),k(Ct=>x(kt,Ct),[()=>Qt(t(L).author)]),Z("click",Tt,()=>m(L,null)),a(P,N)};f(c,P=>{t(L)&&P(y)})}var u=l(c,2);Le(u),Pe(u,P=>m(F,P),()=>t(F));var D=l(u,2);{var O=P=>{var N=ea(),et=V(N);Pe(et,W=>m(ut,W),()=>t(ut));var kt=l(et,2),Tt=i(kt);{var Ct=W=>{var J=Gt("Uploading to Hive's image server — your wallet signs…");a(W,J)},St=W=>{var J=ta(),Jt=V(J);Mt(),Z("click",Jt,()=>{var Ut;return(Ut=t(ut))==null?void 0:Ut.click()}),a(W,J)};f(Tt,W=>{t(At)?W(Ct):W(St,-1)})}r(kt),Z("change",et,W=>{const J=W.currentTarget;gt(J.files??[]),J.value=""}),a(P,N)};f(D,P=>{de&&P(O)})}var b=l(D,2);{var E=P=>{var N=aa();ce(N,()=>pe(t(T)),!0),r(N),a(P,N)},h=I(()=>t(nt)&&t(T).trim());f(b,P=>{t(h)&&P(E)})}var g=l(b,2),j=i(g),$=i(j,!0);r(j);var tt=l(j,2),xt=i(tt,!0);r(tt),r(g),Mt(2),r(p),k((P,N)=>{j.disabled=P,x($,t(nt)?"Edit":"Preview"),tt.disabled=N,x(xt,t(pt)?"Publishing…":"Comment")},[()=>!t(T).trim(),()=>!t(T).trim()||t(pt)||M.busy]),ve("paste",u,Kt),ve("drop",u,It),ve("dragover",u,P=>P.preventDefault()),Te(u,()=>t(T),P=>m(T,P)),Z("click",j,()=>m(nt,!t(nt))),Z("click",tt,Lt),a(v,p)};f(q,v=>{M.account?t(B)===null?v(X,1):t(B)?v(Rt,-1):v(bt,2):v(it)})}var Nt=l(q,2);{var wt=v=>{var p=sa(),c=i(p,!0);r(p),k(()=>x(c,t(s))),a(v,p)};f(Nt,v=>{t(s)&&v(wt)})}var Bt=l(Nt,2);{var Wt=v=>{var p=oa();a(v,p)},Ot=v=>{var p=na();a(v,p)},Vt=v=>{var p=_a();je(p,21,()=>t(Q),({r:{view:c,body:y},depth:u})=>c.author+"/"+c.permlink,(c,y)=>{let u=()=>t(y).r.view,D=()=>t(y).r.body,O=()=>t(y).depth;var b=ha();let E,h;var g=i(b),j=i(g),$=i(j,!0);r(j);var tt=l(j,2);{var xt=w=>{var z=la(),at=i(z);r(z),k(Et=>x(at,`→ ${Et??""}`),[()=>Qt(u().parent_author)]),a(w,z)};f(tt,w=>{O()>0&&w(xt)})}var P=l(tt,2),N=i(P,!0);r(P);var et=l(P,2);{var kt=w=>{var z=ia(),at=i(z,!0);r(z),k(()=>{Xt(z,"title",u().shown_for_context?"Written on Hive by an author below the comment threshold — shown because someone qualified replied to it. It earns nothing.":"Written on Hive, not registered with the contract — it earns nothing."),x(at,u().shown_for_context?"context":"from Hive")}),a(w,z)},Tt=w=>{var z=va();a(w,z)},Ct=w=>{var z=da(),at=V(z),Et=i(at);r(at);var ne=l(at,2);be(ne,{get amount(){return u().pending_payout}}),k(e=>x(Et,`${e??""} LASSECASH`),[()=>ct(u().pending_payout,3)]),a(w,z)};f(et,w=>{u().registered===!1?w(kt):u().paid_out?w(Tt,1):w(Ct,-1)})}r(g);var St=l(g,2);ce(St,()=>pe(D()),!0),r(St);var W=l(St,2),J=i(W);{var Jt=w=>{var z=ca();a(w,z)},Ut=w=>{me(w,{get post(){return u()},onvoted:lt})},te=w=>{var z=ua();a(w,z)},se=w=>{var z=pa();a(w,z)};f(J,w=>{u().registered===!1?w(Jt):!u().paid_out&&!u().payable?w(Ut,1):u().payable?w(te,2):w(se,-1)})}var ee=l(J,2);{var oe=w=>{var z=ma();Z("click",z,()=>Dt(u().author,u().permlink)),a(w,z)};f(ee,w=>{u().registered!==!1&&t(B)&&w(oe)})}r(W),r(b),k((w,z,at,Et)=>{E=ye(b,1,"comment svelte-18zh55",null,E,{settled:u().paid_out,offchain:u().registered===!1,context:u().shown_for_context,nested:O()>0}
8),h=Ge(b,"",h,w),Xt(j,"href",`/${z??""}`),x($,at),x(N,Et)},[()=>({"margin-left":`${Math.min(O(),3)*1.4}rem`}),()=>Qt(u().author),()=>Qt(u().author),()=>ze(u().created_time)]),a(c,b)}),r(p),a(v,p)};f(Bt,v=>{t(d)?v(Wt):t(Q).length===0?v(Ot,1):v(Vt,-1)})}r(Y),a(Yt,Y),ge()}he(["click","change"]);var ya=n('<button class="ghost small"> </button> <small class="dim note svelte-1842rxp"> </small>',1),ba=n('<span class="dim"> </span>'),wa=n('<span class="dim">Reading the minimum…</span>'),xa=n(`<div class="confirm svelte-1842rxp"><p class="svelte-1842rxp">You are about to burn <strong class="red"> </strong> to promote this post.</p> <p class="svelte-1842rxp"><strong>This cannot be undone.</strong></p> <p class="dim svelte-1842rxp">It buys a labelled slot in Trending until the post pays out. The
9            burn goes to <span class="mono">@null</span> — unspendable, and
10            visible on-chain forever.</p></div>`),ka=n('<p class="err svelte-1842rxp"> </p>'),Sa=n('<button class="ghost small">Cancel</button>'),qa=n('<div class="promote svelte-1842rxp"><div class="head svelte-1842rxp"><strong class="svelte-1842rxp">Promote this post</strong> <button class="ghost small" aria-label="Close">✕</button></div> <label class="field svelte-1842rxp"><span class="k svelte-1842rxp">LASSECASH to burn</span> <input inputmode="decimal" placeholder="0.00000000" class="svelte-1842rxp"/></label> <div class="hint svelte-1842rxp"><!> <!></div> <!> <!> <div class="actions svelte-1842rxp"><!> <button><!></button></div></div>'),Pa=n('<small class="dim note svelte-1842rxp"> </small>');function ja(Yt,C){fe(C,!0);let U=H(!1),d=H(!1),s=H(""),T=H(null),L=H(null);const F=I(()=>{var S;return((S=M.info)==null?void 0:S.height)??0}),Dt=I(()=>{if(!M.ready)return 0;const S=$t(),Q=(C.post.window==="deep"?S.deepPayoutDays:S.viralPayoutDays)*Number(S.heightsPerDay);return C.post.created_height+Math.floor(Q*S.promoteCutoffPct/100)}),At=I(()=>M.ready&&!C.post.paid_out&&!C.post.parent_permlink&&t(F)<t(Dt)),ut=I(()=>t(T)!==null&&Fe(t(s)||"0")&&ue(t(s)||"0",t(T))>=0);_e(async()=>{const S=await Ce($t().paramPromoteMinBurn);S&&(m(T,S.value,!0),m(s,S.value,!0))});function gt(){m(U,!0),m(d,!1),m(L,null)}async function Kt(){var S;if(m(L,null),!t(d)){m(d,!0);return}m(d,!1),m(L,await M.submit(()=>zt.promotePost(C.post.author,C.post.permlink,t(s))),!0),t(L)||(m(U,!1),(S=C.onpromoted)==null||S.call(C))}var It=xe(),nt=V(It);{var pt=S=>{var B=xe(),Q=V(B);{var lt=Y=>{var K=ya(),G=V(K),_=i(G,!0);r(G);var q=l(G,2),it=i(q);r(q),k(X=>{G.disabled=!M.account,x(_,M.account?"Promote":"Sign in to promote"),x(it,`Burn LASSECASH for a labelled slot in Trending. Closes in
11      ${X??""}.`)},[()=>Ae(t(Dt)-t(F))]),Z("click",G,gt),a(Y,K)},Lt=Y=>{var K=qa(),G=i(K),_=l(i(G),2);r(G);var q=l(G,2),it=l(i(q),2);Re(it),r(q);var X=l(q,2),bt=i(X);{var Rt=h=>{var g=ba(),j=i(g);r(g),k($=>x(j,`Minimum ${$??""} — set by the top 10, inside hardcoded bounds.`),[()=>ct(t(T))]),a(h,g)},Nt=h=>{var g=wa();a(h,g)};f(bt,h=>{t(T)!==null?h(Rt):h(Nt,-1)})}var wt=l(bt,2);be(wt,{get amount(){return t(s)}}),r(X);var Bt=l(X,2);{var Wt=h=>{var g=xa(),j=i(g),$=l(i(j)),tt=i($);r($),Mt(),r(j),Mt(4),r(g),k(xt=>x(tt,`${xt??""} LASSECASH`),[()=>ct(t(s),3)]),a(h,g)};f(Bt,h=>{t(d)&&h(Wt)})}var Ot=l(Bt,2);{var Vt=h=>{var g=ka(),j=i(g,!0);r(g),k(()=>x(j,t(L))),a(h,g)};f(Ot,h=>{t(L)&&h(Vt)})}var v=l(Ot,2),p=i(v);{var c=h=>{var g=Sa();Z("click",g,()=>m(d,!1)),a(h,g)};f(p,h=>{t(d)&&h(c)})}var y=l(p,2);let u;var D=i(y);{var O=h=>{var g=Gt();k(j=>x(g,`Minimum ${j??""}`),[()=>ct(t(T),0)]),a(h,g)},b=h=>{var g=Gt();k(j=>x(g,`Burn ${j??""} LASSECASH`),[()=>ct(t(s),3)]),a(h,g)},E=h=>{var g=Gt("Promote…");a(h,g)};f(D,h=>{!t(ut)&&t(T)!==null?h(O):t(d)?h(b,1):h(E,-1)})}r(y),r(v),r(K),k(()=>{u=ye(y,1,"small",null,u,{danger:t(d)}),y.disabled=!t(ut)||M.busy}),Z("click",_,()=>m(U,!1)),Te(it,()=>t(s),h=>m(s,h)),Z("click",y,Kt),a(Y,K)};f(Q,Y=>{t(U)?Y(Lt,-1):Y(lt)})}a(S,B)},yt=S=>{var B=Pa(),Q=i(B);r(B),k(lt=>x(Q,`Promotion closed — more than ${lt??""}% of the payout
12    window has elapsed.`),[()=>$t().promoteCutoffPct]),a(S,B)};f(nt,S=>{t(At)?S(pt):M.ready&&!C.post.paid_out&&!C.post.parent_permlink&&S(yt,1)})}a(Yt,It),ge()}he(["click"]);var za=n('<p class="empty"><strong>Not found.</strong>
12 This post is not registered on-chain.</p>'),Aa=n("<span> </span>"),Ta=n('<span class="dim"> </span>'),Ca=n('<span class="pill warn">burns rewards</span>'),Ea=n('<span class="pill ok">100% minted</span>'),Ha=n('<a class="edit svelte-1afqjy7">Edit</a>'),Ma=n('<div class="rendered svelte-1afqjy7"></div>'),Da=n(`<p class="unpublished svelte-1afqjy7">Registered on-chain, but the body was never published to the content
13            layer. The payout window is still open.</p>`),Ia=n('<span class="tag svelte-1afqjy7"> </span>'),La=n('<button class="tag more svelte-1afqjy7"> </button>'),Ra=n('<div class="tags svelte-1afqjy7"><!> <!></div>'),Na=n('<p class="auto dim svelte-1afqjy7">Reading the chain…</p>'),Ba=n('<p class="auto dim svelte-1afqjy7">Not registered on-chain — nothing to pay out.</p>'),Wa=n(`<p class="auto dim svelte-1afqjy7"><strong>Not registered yet</strong> — the first vote opens the
14              7-day window.</p>`),Oa=n('<small class="dim">— all of it into the monthly mint</small>'),Va=n('<small class="dim">— the author took nothing</small>'),Ua=n('<small class="dim">— 20% liquid, 80% into the monthly mint</small>'),Fa=n('<dt class="svelte-1afqjy7"> </dt> <dd class="mono svelte-1afqjy7"> <!></dd>',1),Ga=n('<dt class="svelte-1afqjy7">To curators</dt> <dd class="mono svelte-1afqjy7"> <small class="dim">— still unclaimed</small></dd>',1),Ya=n('<dt class="svelte-1afqjy7">Status</dt><dd class="svelte-1afqjy7"><span class="pill ok">paid out</span></dd> <!> <!>',1),Ka=n(`<dd class="hint svelte-1afqjy7">Zero because the chain's first day has not closed yet — the
15                    reward pools fill as each day settles, and this post's share
16                    is already recorded in its votes.</dd>`),Ja=n('<dt class="svelte-1afqjy7">Pending</dt> <dd class="mono gold svelte-1afqjy7"> <!></dd> <!> <dt class="svelte-1afqjy7">Pays</dt> <dd class="mono svelte-1afqjy7"> </dd>',1),Za=n('<div class="voters svelte-1afqjy7"><!></div> <dl class="svelte-1afqjy7"><!></dl>',1),Qa=n(`The author's 75% is <b>burned to @null</b> — the author chose to
17              take nothing. Curators still split 25% by vote weight.`,1),Xa=n(`<p class="auto svelte-1afqjy7"><strong class="green">Settled.</strong> Curators are paid automatically on the 1st — the chain remembers
18                what each one is owed, so nobody has to claim anything. Anything
19                still unclaimed after a year returns to the reward pool.</p>`),$a=n('<button class="svelte-1afqjy7">Settle payout</button> <small class="dim">Permissionless — an absent author must never strand their curators.</small>',1),tr=n('<div class="panel"><h2> </h2> <!></div>'),er=n(`<div class="panel"><h2>Promote</h2> <p class="auto svelte-1afqjy7">Burn LASSECASH to buy this post a clearly labelled slot in
20              Trending — every fifth row, ordered by burn, <strong>never above
21              the voted posts</strong>. Money and votes are not mixed.</p> <div class="promote-slot svelte-1afqjy7"><!></div></div>`),ar=n('<div class="panel err svelte-1afqjy7"> </div>'),rr=n(`<section class="panel"><p class="dim" style="margin:0">Comments open when the post is registered — the first vote registers
22          it and starts its 7-day window.</p></section>`),sr=n('<div class="row layout svelte-1afqjy7"><article class="panel article svelte-1afqjy7"><div class="meta svelte-1afqjy7"><!> <a class="author svelte-1afqjy7"> </a> <!> <!> <!> <!></div> <h1 class="svelte-1afqjy7"> </h1> <!> <!> <p class="raw svelte-1afqjy7"><a rel="alternate" type="text/markdown" class="svelte-1afqjy7">read as markdown</a></p></article> <aside class="side svelte-1afqjy7"><div class="panel"><h2>Rewards</h2> <!> <small class="dim"><!></small></div> <!> <!> <!></aside></div> <!>',1),or=n('<!> <div class="grid"><a class="back svelte-1afqjy7" href="/">← Feed</a> <!></div>',1);function xr(Yt,C){fe(C,!0);let U=H(!1);const d=I(()=>C.data.article);let s=H(null),T=H(!0),L=H(null);async function F(){try{const _=await zt.posts(200);m(s,_.find(q=>q.author===t(d).author&&q.permlink===t(d).permlink)??null,!0)}catch(_){m(L,_ instanceof Error?_.message:String(_),!0)}finally{m(T,!1)}}_e(F);const Dt=I(()=>{var _;
22return((_=M.info)==null?void 0:_.height)??0}),At=I(()=>{const _=M.info;if(!M.ready||!_)return!1;const q=Number($t().heightsPerDay);return q?_.height-_.genesis_height<q:!1});let ut=H(null),gt=H(null);ke(()=>{qe.url.searchParams.has("edited")&&(async()=>{try{const q=await zt.content(t(d).author,t(d).permlink);q&&(m(ut,q.title,!0),m(gt,q.body,!0))}catch{}const _=new URL(qe.url);_.searchParams.delete("edited"),history.replaceState(history.state,"",_.pathname+_.search)})()});const Kt=I(()=>{const _=t(gt)??t(d).body;return _?pe(_):""}),It=I(()=>!!M.account&&M.account.replace(/^hive:/,"")===t(d).handle),nt=I(()=>Ne(t(d).summary||`${t(d).title} — by @${t(d).handle} on ${Se}.`)),pt=I(()=>t(d).cover?We(t(d).cover):Be),yt=I(()=>({"@context":"https://schema.org","@type":"Article",headline:t(d).title,description:t(nt),author:{"@type":"Person",name:`@${t(d).handle}`,url:Ve(t(d).author)},...t(d).created?{datePublished:t(d).created}:{},image:[t(pt)],url:t(d).canonical,mainEntityOfPage:{"@type":"WebPage","@id":t(d).canonical},publisher:{"@type":"Organization",name:Se,url:Oe},...t(d).tags.length?{keywords:t(d).tags.join(", ")}:{}}));async function S(){t(s)&&(m(L,await M.submit(()=>zt.payout(t(s).author,t(s).permlink)),!0),await F())}let B=H(null);ke(()=>{const _=t(s);!(_!=null&&_.paid_out)||t(B)||zt.postPayout(_.author,_.permlink).then(q=>{q&&m(B,q.author,!0)}).catch(()=>{})});var Q=or(),lt=V(Q);{let _=I(()=>`@${t(d).handle}`);Ue(lt,{get title(){return t(d).title},get description(){return t(nt)},get canonical(){return t(d).canonical},get image(){return t(pt)},type:"article",get schema(){return t(yt)},get published(){return t(d).created},get author(){return t(_)},get tags(){return t(d).tags}})}var Lt=l(lt,2),Y=l(i(Lt),2);{var K=_=>{var q=za();a(_,q)},G=_=>{var q=sr(),it=V(q),X=i(it),bt=i(X),Rt=i(bt);{var Nt=e=>{var o=Aa(),A=i(o,!0);r(o),k(()=>{ye(o,1,`pill ${t(d).window==="deep"?"info":"warn"}`),x(A,t(d).window)}),a(e,o)};f(Rt,e=>{t(d).window&&e(Nt)})}var wt=l(Rt,2),Bt=i(wt,!0);r(wt);var Wt=l(wt,2);{var Ot=e=>{var o=Ta(),A=i(o,!0);r(o),k(mt=>x(A,mt),[()=>ze(t(d).created)]),a(e,o)};f(Wt,e=>{t(d).created&&e(Ot)})}var Vt=l(Wt,2);{var v=e=>{var o=Ca();a(e,o)},p=e=>{var o=Ea();a(e,o)};f(Vt,e=>{var o,A;((o=t(s))==null?void 0:o.payout_mode)===re.Burn?e(v):((A=t(s))==null?void 0:A.payout_mode)===re.PowerUp&&e(p,1)})}var c=l(Vt,2);{let e=I(()=>{var o;return(o=t(s))==null?void 0:o.promoted});Ye(c,{get promoted(){return t(e)}})}var y=l(c,2);{var u=e=>{var o=Ha();k(()=>Xt(o,"href",`/compose?edit=@${t(d).handle??""}/${t(d).permlink??""}`)),a(e,o)};f(y,e=>{t(It)&&e(u)})}r(bt);var D=l(bt,2),O=i(D,!0);r(D);var b=l(D,2);{var E=e=>{var o=Ma();ce(o,()=>t(Kt),!0),r(o),a(e,o)},h=e=>{var o=Da();a(e,o)};f(b,e=>{t(d).published?e(E):e(h,-1)})}var g=l(b,2);{var j=e=>{var o=Ra(),A=i(o);je(A,16,()=>t(U)?t(d).tags:t(d).tags.slice(0,10),rt=>rt,(rt,vt)=>{var ht=Ia(),dt=i(ht,!0);r(ht),k(()=>x(dt,vt)),a(rt,ht)});var mt=l(A,2);{var Ft=rt=>{var vt=La(),ht=i(vt);r(vt),k(()=>x(ht,`+${t(d).tags.length-10} more`)),Z("click",vt,()=>m(U,!0)),a(rt,vt)};f(mt,rt=>{t(d).tags.length>10&&!t(U)&&rt(Ft)})}r(o),a(e,o)};f(g,e=>{t(d).tags.length&&e(j)})}var $=l(g,2),tt=i($);r($),r(X);var xt=l(X,2),P=i(xt),N=l(i(P),2);{var et=e=>{var o=Na();a(e,o)},kt=e=>{var o=Ba();a(e,o)},Tt=e=>{var o=Wa();a(e,o)},Ct=e=>{var o=Za(),A=V(o),mt=i(A);Ke(mt,{get post(){return t(s)}}),r(A);var Ft=l(A,2),rt=i(Ft);{var vt=dt=>{var R=Ya(),st=l(V(R),3);{var Ht=_t=>{var qt=Fa(),Pt=V(qt),ft=i(Pt,!0);r(Pt);var jt=l(Pt,2),we=i(jt),Ee=l(we);{var He=ot=>{var Zt=Oa();a(ot,Zt)},Me=ot=>{var Zt=Va();a(ot,Zt)},De=ot=>{var Zt=Ua();a(ot,Zt)};f(Ee,ot=>{t(s).payout_mode===1?ot(He):t(s).payout_mode===2?ot(Me,1):ot(De,-1)})}r(jt),k(ot=>{x(ft,t(s).payout_mode===2?"Burned to @null":"To the author"),x(we,`${ot??""} `)},[()=>ct(t(B),0)]),a(_t,qt)};f(st,_t=>{t(B)&&_t(Ht)})}var le=l(st,2);{var ae=_t=>{var qt=Ga(),Pt=l(V(qt),2),ft=i(Pt);Mt(),r(Pt),k(jt=>x(ft,`${jt??""} `),[()=>ct(t(s).curator_pot,0)]),a(_t,qt)},ie=I(()=>Number(t(s).curator_pot)>0);f(le,_t=>{t(ie)&&_t(ae)})}a(dt,R)},ht=dt=>{var R=Ja(),st=l(V(R),2),Ht=i(st),le=l(Ht);be(le,{get amount(){return t(s).pending_payout},block:!0}),r(st);var ae=l(st,2);{var ie=ft=>{var jt=Ka();a(ft,jt)},_t=I(()=>t(At)&&Number(t(s).pending_payout)===0&&t(s).votes>0);f(ae,ft=>{t(_t)&&ft(ie)})}var qt=l(ae,4),Pt=i(qt,!0);r(qt),k((ft,jt)=>{x(Ht,`${ft??""} `),x(Pt,jt)},[()=>ct(t(s).pending_payout),()=>t(s).payable?"window closed":Ae(t(s).payout_height-t(Dt))]),a(dt,R)};f(rt,dt=>
22{t(s).paid_out?dt(vt):dt(ht,-1)})}r(Ft),a(e,o)};f(N,e=>{t(T)?e(et):t(s)?t(s).registered?e(Ct,-1):e(Tt,2):e(kt,1)})}var St=l(N,2),W=i(St);{var J=e=>{var o=Qa();Mt(2),a(e,o)},Jt=e=>{var o=Gt(`The author's 75% goes entirely into their monthly mint — nothing
23              liquid now. Curators split 25% by vote weight.`);a(e,o)},Ut=e=>{var o=Gt("75% to the author, 25% split among curators by vote weight.");a(e,o)};f(W,e=>{var o,A;((o=t(s))==null?void 0:o.payout_mode)===re.Burn?e(J):((A=t(s))==null?void 0:A.payout_mode)===re.PowerUp?e(Jt,1):e(Ut,-1)})}r(St),r(P);var te=l(P,2);{var se=e=>{var o=tr(),A=i(o),mt=i(A,!0);r(A);var Ft=l(A,2);{var rt=R=>{me(R,{get post(){return t(s)},onvoted:F})},vt=R=>{var st=Xa();a(R,st)},ht=R=>{var st=$a(),Ht=V(st);Mt(2),k(()=>Ht.disabled=M.busy),Z("click",Ht,S),a(R,st)},dt=R=>{me(R,{get post(){return t(s)},onvoted:F})};f(Ft,R=>{t(s).registered?t(s).paid_out?R(vt,1):t(s).payable?R(ht,2):R(dt,-1):R(rt)})}r(o),k(()=>x(mt,t(s).paid_out?"Curation":"Vote")),a(e,o)};f(te,e=>{t(s)&&e(se)})}var ee=l(te,2);{var oe=e=>{var o=er(),A=l(i(o),4),mt=i(A);ja(mt,{get post(){return t(s)},onpromoted:F}),r(A),r(o),a(e,o)};f(ee,e=>{t(s)&&t(s).registered&&!t(s).parent_permlink&&e(oe)})}var w=l(ee,2);{var z=e=>{var o=ar(),A=i(o,!0);r(o),k(()=>x(A,t(L))),a(e,o)};f(w,e=>{t(L)&&e(z)})}r(xt),r(it);var at=l(it,2);{var Et=e=>{ga(e,{get post(){return t(s)}})},ne=e=>{var o=rr();a(e,o)};f(at,e=>{t(s)&&t(s).registered&&!t(s).parent_permlink?e(Et):t(s)&&!t(s).registered&&!t(s).parent_permlink&&e(ne,1)})}k(e=>{Xt(wt,"href",`/@${t(d).handle??""}`),x(Bt,e),x(O,t(ut)??t(d).title),Xt(tt,"href",`${t(d).path??""}.md`)},[()=>Qt(t(d).author)]),a(_,q)};f(Y,_=>{!t(d).registered&&!t(d).published?_(K):_(G,-1)})}r(Lt),a(Yt,Q),ge()}he(["click"]);export{xr 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.