PageSourceSearch

https://www.xgrind.pro/assets/ThrilHubPage--O0sMxfC.js

js xgrind.pro collected 2026-09-24 15:10:51 UTC 42,555 bytes, 2 lines download raw bytes

1import{j as e,r as i,i as ye,d as Se,u as Te}from"./react-core-bWLI75Fw.js";import{n as de,i as ue,c as ze,b as xe,a as Ce,d as Me,T as Fe,r as Pe,f as Re}from"./thrilFollowCheck-CWeDHYa9.js";import{T as J}from"./ThrilAvatar-CBMoCMCJ.js";import{T as W,a as $e}from"./ThrilOrnaments-Crzziwcl.js";import{eB as Le}from"./index-Cuw9rIcM.js";import{a as he,m as Ie,r as Ee,s as Ae,f as Be,c as De,b as Oe,w as Ue}from"./thrilHistory-D7xB1z1W.js";import{L as ee,s as Y,aN as qe,a as be,m as We,aE as te,ae as re,bR as Ge,E as K,X as He,aQ as fe,t as ve,a7 as ae,bz as Je,bS as Ke,r as Qe,R as Ze,i as Xe,bT as Ve,aa as se,af as me}from"./lucide-U8ZTX028.js";import"./XGrindBrand-VqSZuJ0H.js";import"./firebase-BwZ4hkwm.js";import"./framer-motion-C0wpNkKn.js";function q(t){const r=Number(t);return Number.isFinite(r)&&r>=0?r:0}function pe(t){const r=Math.max(0,Math.floor(q(t)));return r>=1e6?.12:r>=1e5?.2:r>=1e4?.4:r>=1e3?.8:r>=100?1.5:3}function Ye(t){return t>=85?"Sangat Bagus":t>=70?"Bagus":t>=55?"Cukup":t>=40?"Lemah":"Sangat Lemah"}function et(t){const r=Math.max(0,Math.floor(q(t?.follower_count))),a=(Array.isArray(t?.recent_posts)?t.recent_posts.filter(Boolean):[]).slice(0,12);if(!r||a.length===0)return{ok:!1,sample_size:a.length,followers:r,score:0,label:"Belum cukup data",avg_likes:0,avg_replies:0,avg_reposts:0,avg_quotes:0,avg_engagements:0,like_rate_pct:0,engagement_rate_pct:0,expected_rate_pct:pe(r),strongest:null,posts:[],explainer:r===0?"Jumlah followers belum tersedia — sinyal audiens belum bisa dihitung.":"Belum ada post publik di sampel — coba akun yang punya post terbaru."};let n=0,c=0,d=0,u=0,m=0,s=null;const k=a.map(v=>{const C=q(v.like_count),p=q(v.reply_count),y=q(v.repost_count),M=q(v.quote_count),E=C+p+y+M;n+=C,c+=p,d+=y,u+=M,m+=E;const F=E/r*100,o={id:v.id||v.code,code:v.code,text:String(v.text||"").slice(0,140),taken_at:v.taken_at,url:v.url,like_count:C,reply_count:p,repost_count:y,quote_count:M,engagements:E,vs_followers_pct:F};return(!s||E>s.engagements)&&(s=o),o}),x=a.length,g=n/x,b=c/x,N=d/x,B=u/x,_=m/x,U=g/r*100,T=_/r*100,$=pe(r);let f=40;const w=T/Math.max(.01,$);w>=2.2?f=92:w>=1.4?f=82:w>=1?f=72:w>=.65?f=60:w>=.35?f=48:w>=.15?f=36:f=24,x>=8&&(f=Math.min(100,f+3)),_<1&&r>=500&&(f=Math.max(15,f-8));const j=Ye(f);let L="Sinyal interaksi dari sampel post terbaru dibanding followers — berguna untuk brand, bukan data iklan resmi.";return T>=$?L=`Interaksi rata-rata ~${T.toFixed(2)}% followers — di atas atau setara patokan akun seukuran ini.`:T>=$*.5?L=`Interaksi rata-rata ~${T.toFixed(2)}% followers — masih wajar, sedikit di bawah patokan seukuran ini.`:L=`Interaksi rata-rata ~${T.toFixed(2)}% followers — lebih rendah dari patokan akun seukuran ini (cek konsistensi post).`,{ok:!0,sample_size:x,followers:r,score:Math.round(f),label:j,avg_likes:g,avg_replies:b,avg_reposts:N,avg_quotes:B,avg_engagements:_,like_rate_pct:U,engagement_rate_pct:T,expected_rate_pct:$,strongest:s,posts:k,explainer:L}}function tt(t){if(t==null||t==="")return"—";const r=Number(t);return Number.isFinite(r)?r.toLocaleString("id-ID"):"—"}function rt({user:t,cta:r="Follow",hubUser:l,opened:a,onOpen:n}){const c=a?.has?.(String(t.username||"").toLowerCase()),d=t.follower_count!=null?tt(t.follower_count):null;return e.jsxs("li",{className:`group flex min-w-0 items-center gap-2.5 rounded-xl px-1 py-1.5 transition ${c?"bg-[var(--thril-mist)]/50 opacity-80":"hover:bg-[var(--thril-paper)]"}`,children:[e.jsx(J,{username:t.username,size:"xs",className:"shadow-[1.5px_1.5px_0_var(--thril-ink)]"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("p",{className:"truncate text-[13px] font-black leading-tight text-[var(--thril-ink)]",children:["@",t.username,c?e.jsx("span",{className:"ml-1 text-[9px] font-black uppercase tracking-wide text-[var(--thril-ink)]/35",children:"dibuka"}):null]}),e.jsx("p",{className:"mt-0.5 truncate text-[10px] font-bold text-[var(--thril-ink)]/45",children:d?`${d} followers`:t.why||t.name||"Threads"})]}),e.jsxs("a",{href:t.threads_url||`https://www.threads.com/@${t.username}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>{Ie(l,t.username),n?.(t.username)},className:"inline-flex shrink-0 items-center gap-1 rounded-lg border-2 border-[var(--thril-ink)] bg-[var(--thril-pulse)] px-2 py-1 text-[10px] font-black text-[var(--thril-ink)] no-underline shadow-[1.5px_1.5px_0_var(--thril-ink)] transition group-hover:-translate-y-
1px",children:[r,e.jsx(K,{size:10})]})]})}const Z=[{id:"not_back",label:"Belum folbek",short:"Folbek",hint:"Kamu follow mereka, tapi belum dibalas.",empty:"Semua yang kamu follow sudah follow balik (dari sampel terbaru).",Icon:qe,cta:"Cek"},{id:"not_yet",label:"Belum follow",short:"Follow",hint:"Mereka follow kamu, tapi kamu belum follow balik.",empty:"Tidak ada follower yang belum kamu follow (dari sampel terbaru).",Icon:be,cta:"Follow"},{id:"suggest",label:"Saran",short:"Saran",hint:"Akun sejenis dari jaringan @asministratur.",empty:"Belum ada rekomendasi cocok saat ini.",Icon:We,cta:"Follow"}];function at({followGaps:t,suggestions:r,hubUser:l}){const a={not_back:t?.not_following_back||[],not_yet:t?.not_yet_followed||[],suggest:r||[]},n={not_back:t?.not_following_back_count!=null?Number(t.not_following_back_count):a.not_back.length,not_yet:t?.not_yet_followed_count!=null?Number(t.not_yet_followed_count):a.not_yet.length,suggest:a.suggest.length},c=n.not_back>0&&"not_back"||n.not_yet>0&&"not_yet"||"suggest",[d,u]=i.useState(c),[m,s]=i.useState(!1),[k,x]=i.useState("all"),[g,b]=i.useState(""),[N,B]=i.useState("default"),[_,U]=i.useState(()=>he(l)),[T,$]=i.useState(!1),[f,w]=i.useState(!1);i.useEffect(()=>{U(he(l))},[l]),i.useEffect(()=>{m||(n.not_back||n.not_yet||n.suggest)&&(u(c),s(!0))},[m,c,n.not_back,n.not_yet,n.suggest]);const j=Z.find(o=>o.id===d)||Z[0],L=a[j.id]||[],v=Number(g),p=[...L.filter(o=>!(k==="public"&&o.is_private||k==="private"&&!o.is_private||Number.isFinite(v)&&v>0&&(o.follower_count==null||Number(o.follower_count)<v)))];N==="followers"?p.sort((o,R)=>Number(R.follower_count||0)-Number(o.follower_count||0)):N==="name"&&p.sort((o,R)=>String(o.username||"").localeCompare(String(R.username||"")));const y=n[j.id]||0,M=p.length,E=j.id!=="suggest"&&y>(a[j.id]||[]).length?` Menampilkan ${M} (filter) dari ${y} di sampel.`:M!==(a[j.id]||[]).length?` ${M} setelah filter.`:j.id!=="suggest"&&y>0?` ${y} akun di sampel terbaru.`:"",F=async()=>{const o=p.map(R=>`@${R.username}`).join(`
2`);try{await navigator.clipboard.writeText(o),$(!0),window.setTimeout(()=>$(!1),1600)}catch{$(!1)}};return e.jsxs("div",{children:[e.jsx("div",{role:"tablist","aria-label":"Daftar mutual",className:"flex gap-1 overflow-x-auto rounded-xl border-2 border-[var(--thril-ink)] bg-[var(--thril-paper)] p-1 [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:Z.map(o=>{const R=n[o.id]||0,A=d===o.id;return e.jsxs("button",{type:"button",role:"tab","aria-selected":A,onClick:()=>u(o.id),className:`inline-flex min-w-0 flex-1 items-center justify-center gap-1 rounded-lg px-2 py-1.5 text-[10px] font-black uppercase tracking-wide transition sm:text-[11px] ${A?"bg-[var(--thril-pulse)] text-[var(--thril-ink)] shadow-[1.5px_1.5px_0_var(--thril-ink)]":"text-[var(--thril-ink)]/55 hover:bg-white/80"}`,children:[e.jsx(o.Icon,{size:12,strokeWidth:2.5,className:"hidden shrink-0 sm:inline"}),e.jsx("span",{className:"sm:hidden",children:o.short}),e.jsx("span",{className:"hidden truncate sm:inline",children:o.label}),e.jsx("span",{className:`rounded-md px-1 py-px text-[9px] tabular-nums ${A?"bg-[var(--thril-ink)] text-[var(--thril-pulse)]":"bg-[var(--thril-ink)]/10 text-[var(--thril-ink)]/55"}`,children:R})]},o.id)})}),e.jsxs("p",{className:"mt-2 text-[11px] font-semibold text-[var(--thril-ink)]/50",children:[j.hint,E]}),e.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-1.5",children:[e.jsxs("button",{type:"button",onClick:()=>w(o=>!o),className:"inline-flex items-center gap-1 rounded-lg border border-[var(--thril-ink)]/20 bg-white px-2 py-1 text-[10px] font-black text-[var(--thril-ink)]/70",children:["Filter",f?e.jsx(te,{size:12}):e.jsx(re,{size:12})]}),e.jsxs("button",{type:"button",onClick:()=>{F()},disabled:p.length===0,className:"inline-flex items-center gap-1 rounded-lg border-2 border-[var(--thril-ink)] bg-white px-2 py-1 text-[10px] font-black disabled:opacity-40",children:[e.jsx(Ge,{size:11}),T?"Tersalin":"Salin"]})]}),f?e.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-1.5 rounded-xl border border-[var(--thril-ink)]/12 bg-[var(--thril-paper)]/80 p-2",children:[e.jsxs("select",{value:k,onChange:o=>x(o.target.value),className:"rounded-lg border border-[var(--thril-ink)]/20 bg-white px-2 py-1 text-[10px] font-bold text-[var(--thril-ink)]",children:[e.jsx("option",{value:"all",children:"Semua"}),e.jsx("option",{value:"public",children:"Publik"}),e.jsx("option",{value:"private",children:"Privat"})]}),e.jsxs("select",{value:N,onChange:o=>B(o.target.value),className:"rounded-lg border border-[var(--thril-ink)]/20 bg-white px-2 py-1 text-[10px] font-bold text-[var(--thril-ink)]",children:[e.jsx("option",{value:"default",children:"Urutan default"}),e.jsx("option",{value:"followers",children:"Followers terbanyak"}),e.jsx("option",{value:"name",children:"Nama A–Z"})]}),e.jsx("input",{type:"number",min:0,inputMode:"numeric",placeholder:"Min followers",value:g,onChange:o=>b(o.target.value),className:"w-[7.5rem] rounded-lg border border-[var(--thril-ink)]/20 bg-white px-2 py-1 text-[10px] font-bold text-[var(--thril-ink)] outline-none"})]}):null,p.length>0?e.jsx("ul",{className:"mt-1 list-none p-0",children:p.map(o=>e.jsx(rt,{user:o,cta:j.cta,hubUser:l,opened:_,onOpen:R=>U(new Set([..._,String(R).toLowerCase()]))},o.username))}):e.jsx("p",{className:"mt-3 text-sm font-semibold text-[var(--thril-ink)]/55",children:L.length===0?j.empty:"Tidak ada akun yang cocok dengan filter."})]})}const X=[{id:"gate",label:"Memeriksa follow @asministratur"},{id:"lists",label:"Mengambil following & followers"}
2,{id:"gaps",label:"Menyusun belum folbek & belum follow"},{id:"enrich",label:"Melengkapi info akun"}];function st({stepId:t,username:r}){const l=Math.max(0,X.findIndex(n=>n.id===t)),a=Math.round((l+1)/X.length*100);return e.jsxs("div",{className:"rounded-xl border-2 border-[var(--thril-ink)] bg-[var(--thril-paper)] p-3.5",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs("p",{className:"text-[10px] font-black uppercase tracking-[0.14em] text-[var(--thril-ink)]/45",children:["Mutualan @",r]}),e.jsxs("span",{className:"text-[10px] font-black tabular-nums text-[var(--thril-ink)]/50",children:[a,"%"]})]}),e.jsx("div",{className:"mt-2 h-1.5 overflow-hidden rounded-full border border-[var(--thril-ink)]/15 bg-white",children:e.jsx("div",{className:"h-full rounded-full bg-[var(--thril-pulse)] transition-[width] duration-500 ease-out",style:{width:`${a}%`}})}),e.jsx("ol",{className:"mt-3 space-y-1.5 p-0 list-none",children:X.map((n,c)=>{const d=c<l,u=c===l;return e.jsxs("li",{className:"flex items-center gap-2.5",children:[e.jsx("span",{className:`flex h-5 w-5 shrink-0 items-center justify-center rounded-md border-2 ${d?"border-[var(--thril-ink)] bg-[var(--thril-pulse)]":u?"border-[var(--thril-ink)] bg-white":"border-[var(--thril-ink)]/20 bg-white"}`,children:d?e.jsx("span",{className:"text-[10px] font-black",children:"✓"}):u?e.jsx(ee,{size:11,className:"animate-spin text-[var(--thril-ink)]"}):null}),e.jsx("span",{className:`text-xs font-bold ${u||d?"text-[var(--thril-ink)]/80":"text-[var(--thril-ink)]/35"}`,children:n.label})]},n.id)})})]})}function nt({onStart:t,busy:r}){return e.jsxs("div",{className:"relative overflow-hidden rounded-xl border-2 border-dashed border-[var(--thril-ink)]/30 bg-[var(--thril-paper)] px-4 py-6 text-center",children:[e.jsx("div",{className:"thril-orn-b pointer-events-none absolute right-4 top-3 h-3.5 w-3.5 rotate-[14deg] rounded-md border-2 border-[var(--thril-ink)] bg-[var(--thril-coral)] shadow-[1px_1px_0_var(--thril-ink)]","aria-hidden":!0}),e.jsx("div",{className:"thril-orn-a pointer-events-none absolute -left-2 bottom-4 h-7 w-7 rounded-full border-2 border-[var(--thril-ink)] bg-[var(--thril-pulse)]/70 shadow-[1.5px_1.5px_0_var(--thril-ink)]","aria-hidden":!0}),e.jsx("span",{className:"relative z-[1] inline-flex h-11 w-11 items-center justify-center rounded-xl border-2 border-[var(--thril-ink)] bg-[var(--thril-pulse)] shadow-[2px_2px_0_var(--thril-ink)]",children:e.jsx(Y,{size:18,strokeWidth:2.5})}),e.jsx("h3",{className:"relative z-[1] mt-3 text-sm font-black text-[var(--thril-ink)]",children:"Siap cek mutualan?"}),e.jsx("p",{className:"relative z-[1] mx-auto mt-1.5 max-w-sm text-xs font-semibold leading-relaxed text-[var(--thril-ink)]/60",children:"Tekan tombol di bawah untuk menyusun daftar belum folbek, belum follow, dan saran akun."}),e.jsxs("button",{type:"button",disabled:r,onClick:t,className:"relative z-[1] mt-4 inline-flex items-center justify-center gap-2 rounded-xl border-2 border-[var(--thril-ink)] bg-[var(--thril-pulse)] px-4 py-2.5 text-xs font-black text-[var(--thril-ink)] shadow-[2px_2px_0_var(--thril-ink)] transition hover:-translate-y-0.5 disabled:cursor-wait disabled:opacity-70",children:[r?e.jsx(ee,{size:14,className:"animate-spin"}):e.jsx(Y,{size:14}),"Jalankan mutualan"]})]})}function z(t){if(t==null||t==="")return"—";const r=Number(t);return Number.isFinite(r)?r.toLocaleString("id-ID"):"—"}function G(t,r=2){const l=Number(t);return Number.isFinite(l)?`${l.toFixed(r)}%`:"—"}function lt(t){const r=Number(t);if(!Number.isFinite(r)||r<=0)return null;const l=new Date(r*1e3);if(Number.isNaN(l.getTime()))return null;const a=Date.now(),n=Math.max(0,a-l.getTime()),c=Math.floor(n/6e4);if(c<1)return"Baru saja";if(c<60)return`${c} mnt lalu`;const d=Math.floor(c/60);if(d<48)return`${d} jam lalu`;const u=Math.floor(d/24);return u<14?`${u} hari lalu`:l.toLocaleDateString("id-ID",{day:"numeric",month:"short",year:"numeric"})}function ke({open:t,onClose:r,title:l,children:a}){return i.useEffect(()=>{if(!t)return;const n=d=>{d.key==="Escape"&&r?.()},c=document.body.style.overflow;
2return document.body.style.overflow="hidden",window.addEventListener("keydown",n),()=>{document.body.style.overflow=c,window.removeEventListener("keydown",n)}},[t,r]),t?e.jsx("div",{className:"fixed inset-0 z-[80] flex items-end justify-center bg-[var(--thril-ink)]/40 p-3 sm:items-center sm:p-6",role:"dialog","aria-modal":"true","aria-label":l||"Detail",onClick:r,children:e.jsxs("div",{className:"relative max-h-[85vh] w-full max-w-md overflow-y-auto overflow-x-hidden rounded-2xl border-2 border-[var(--thril-ink)] bg-white p-4 shadow-[4px_4px_0_var(--thril-ink)] sm:p-5",onClick:n=>n.stopPropagation(),children:[e.jsx(W,{variant:"soft"}),e.jsx("div",{className:"thril-orn-b pointer-events-none absolute right-10 top-2 h-3 w-3 rotate-[14deg] rounded-sm border-2 border-[var(--thril-ink)] bg-[var(--thril-coral)] shadow-[1px_1px_0_var(--thril-ink)]","aria-hidden":!0}),e.jsxs("div",{className:"relative z-[1] flex items-start justify-between gap-3",children:[e.jsx("h3",{className:"text-sm font-black text-[var(--thril-ink)]",children:l}),e.jsx("button",{type:"button",onClick:r,className:"inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-lg border-2 border-[var(--thril-ink)] bg-[var(--thril-pulse)] shadow-[1.5px_1.5px_0_var(--thril-ink)]","aria-label":"Tutup",children:e.jsx(He,{size:14,strokeWidth:2.5})})]}),e.jsx("div",{className:"relative z-[1] mt-3",children:a})]})}):null}function ge({audience:t}){const[r,l]=i.useState(!1);return t?e.jsxs(e.Fragment,{children:[e.jsxs("button",{type:"button",onClick:()=>l(!0),className:"relative flex w-full items-center gap-3 overflow-hidden rounded-xl border-2 border-[var(--thril-ink)] bg-[var(--thril-paper)] px-3 py-2.5 text-left shadow-[2px_2px_0_var(--thril-ink)] transition hover:-translate-y-px hover:bg-white",children:[e.jsx(W,{variant:"soft"}),e.jsx("span",{className:"absolute bottom-2 left-0 top-2 w-1 rounded-r-full bg-[var(--thril-coral)]","aria-hidden":!0}),e.jsxs("div",{className:"relative z-[1] min-w-0 flex-1 pl-1.5",children:[e.jsx("p",{className:"text-[10px] font-black uppercase tracking-[0.14em] text-[var(--thril-ink)]/40",children:"Audiens"}),e.jsx("p",{className:"mt-0.5 truncate text-sm font-black text-[var(--thril-ink)]",children:t.label}),e.jsx("p",{className:"mt-0.5 text-[10px] font-bold text-[var(--thril-ink)]/45",children:t.ok?`Dari ${t.sample_size} post · ketuk detail`:"Ketuk untuk penjelasan"})]}),t.ok?e.jsxs("div",{className:"relative z-[1] shrink-0 rounded-lg border-2 border-[var(--thril-ink)] bg-[var(--thril-pulse)] px-2.5 py-1.5 text-center shadow-[1.5px_1.5px_0_var(--thril-ink)]",children:[e.jsx("p",{className:"text-base font-black leading-none tabular-nums text-[var(--thril-ink)]",children:G(t.engagement_rate_pct)}),e.jsx("p",{className:"mt-0.5 text-[8px] font-black uppercase tracking-wide text-[var(--thril-ink)]/55",children:"Interaksi"})]}):null]}),e.jsxs(ke,{open:r,onClose:()=>l(!1),title:"Detail audiens",children:[e.jsx("p",{className:"text-sm font-semibold leading-relaxed text-[var(--thril-ink)]/70",children:t.explainer}),t.ok?e.jsx("dl",{className:"mt-4 grid grid-cols-2 gap-2",children:[{k:"Skor",v:`${t.score}/100`},{k:"Sampel",v:`${t.sample_size} post`},{k:"Rata interaksi",v:z(Math.round(t.avg_engagements))},{k:"Patokan",v:`~${G(t.expected_rate_pct)}`},{k:"Like rate",v:G(t.like_rate_pct)},{k:"Followers",v:z(t.followers)}].map(a=>e.jsxs("div",{className:"rounded-xl border border-[var(--thril-ink)]/12 bg-[var(--thril-paper)] px-2.5 py-2",children:[e.jsx("dt",{className:"text-[9px] font-black uppercase tracking-wide text-[var(--thril-ink)]/40",children:a.k}),e.jsx("dd",{className:"mt-0.5 text-sm font-black tabular-nums text-[var(--thril-ink)]",children:a.v})]},a.k))}):null,t.strongest?e.jsxs("div",{className:"mt-4 rounded-xl border-2 border-[var(--thril-ink)]/15 bg-[var(--thril-paper)] p-3",children:[e.jsx("p",{className:"text-[10px] font-black uppercase tracking-wide text-[var(--thril-ink)]/40",children:"Post paling kuat"}),e.jsx("p",{className:"mt-1 text-xs font-semibold leading-snug text-[var(--thril-ink)]/75",children:t.strongest.text||"—"}),e.jsxs("p",{className:"mt-2 text-[11px] font-bold text-[var(--thril-ink)]/50",children:["~",z(t.strongest.engagements)," interaksi"]})]}):null,e.jsx("p",{className:"mt-4 text-[10px] font-semibold leading-relaxed text-[var(--thril-ink)]/45",children:"Sinyal dari sampel post — bukan data iklan resmi Threads."})]})]}):null}function it({insights:t}){const[r,l]=i.useState(!1);return t?e.jsxs("div",{className:"rounded-xl border border-[var(--thril-ink)]/12 bg-white shadow-[1.5px_1.5px_0_var(--thril-ink)]/20",children:[e.jsxs("button",{type:"button",onClick:()=>l(a=>!a),className:"flex w-full items-center justify-between gap-2 px-3 py-2 text-left",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-[11px] font-bold text-[var(--thril-ink)]/60",children:[e.jsx("span",{className:"inline-block h-2 w-2 rotate-45 border-2 border-[var(--thril-ink)] bg-[var(--thril-pulse)]","aria-hidden":!0}),"Insight · ",t.count," post",t.cadence?` · ${t.cadence}`:""]}),r?e.jsx(te,{size:14}):e.jsx(re,{size:14})]}),r?e.jsxs("div",{className:"flex flex-wrap gap-x-3 gap-y-1 border-t border-[var(--thril-ink)]/10 px-3 py-2 text-[11px] font-bold text-[var(--thril-ink)]/55",children:[e.jsxs("span",{children:["~",z(Math.round(t.avgLikes))," like"]}),e.jsxs("span",{children:["~",z(Math.round(t.avgReplies))," reply"]}),e.jsxs("span",{children:["~",z(Math.round(t.avgReposts))," repost"]})]}):null]}):null}function ot({post:t,dense:r=!1}){const l=r?"mt-2 flex flex-wrap items-center gap-x-2.5 gap-y-1 text-[10px] font-bold text-[var(--thril-ink)]/50":"mt-2.5 flex flex-wrap items-center gap-x-3 gap-y-1 text-[11px] font-bold text-[var(--thril-ink)]/55";return e.jsxs("div",{className:l,children:[e.jsxs("span",{className:"inline-flex items-center gap-1",children:[e.jsx(ve,{size:r?11:12}),z(t.like_count??t.likes??0)]}),e.jsxs("span",{className:"inline-flex items-center gap-1",children:[e.jsx(ae,{size:r?11:12}),z(t.reply_count??0)]}),e.jsxs("span",{className:"inline-flex items-center gap-1",children:[e.jsx(Je,{size:r?11:12}),z(t.repost_count??0)]}),t.quote_count!=null&&Number(t.quote_count)>0||t.quotes?e.jsxs("span",{className:"inline-flex items-center gap-1",children:[e.jsx(Ke,{size:r?11:12}),z(t.quote_count??t.quotes??0)]}):null]})}function je({post:t,username:r,displayName:l,showReach:a=!1}){const[n,c]=i.useState(!1),[d,u]=i.useState(!1),m=lt(t.taken_at),s=String(t.text||"—"),k=s.length>140,x=d||!k?s:`${s.slice(0,140)}…`,g=t.url?String(t.url).replace("threads.net","threads.com"):null,b=r||"user",N=l||`@${b}`;return e.jsxs("li",{className:"relative overflow-hidden rounded-xl border-2 border-[var(--thril-ink)]/12 bg-[var(--thril-paper)] px-3 py-2.5 shadow-[1.5px_1.5px_0_var(--thril-ink)]/15",children:[e.jsx("span",{className:"pointer-events-none absolute right-2 top-2 h-2 w-2 rotate-12 rounded-[2px] border border-[var(--thril-ink)] bg-[var(--thril-pulse)]","aria-hidden":!0}),e.jsxs("div",{className:"flex gap-2.5",children:[e.jsx(J,{username:b,size:"xs",className:"mt-0.5 shadow-[1.5px_1.5px_0_var(--thril-ink)]"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex min-w-0 flex-wrap items-baseline gap-x-1.5 gap-y-0.5 pr-3",children:[e.jsx("span",{className:"truncate text-[12px] font-black text-[var(--thril-ink)]",children:N}),e.jsxs("span",{className:"truncate text-[11px] font-bold text-[var(--thril-ink)]/40",children:["@",b]}),m?e.jsxs("span",{className:"inline-flex items-center gap-0.5 text-[10px] font-bold text-[var(--thril-ink)]/35",children:[e.jsx(fe,{size:10}),m]}):null]}),e.jsx("p",{className:"mt-1 text-[13px] font-semibold leading-snug text-[var(--thril-ink)]/80",children:x}),k?e.jsx("button",{type:"button",onClick:()=>u(B=>!B),className:"mt-1 text-[10px] font-black text-[var(--thril-ink)]/55 hover:text-[var(--thril-ink)]",children:d?"Sembunyikan":"Selengkapnya"}):null,e.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-2",children:[e.jsxs("span",{className:"inline-flex items-center gap-1 text-[10px] font-bold text-[var(--thril-ink)]/50",children:[e.jsx(ve,{size:11}),z(t.like_count??0)]}),e.jsxs("span",{className:"inline-flex items-center gap-1 text-[10px] font-bold text-[var(--thril-ink)]/50",children:[e.jsx(ae,{size:11}),z(t.reply_count??0)]}),a&&t.engagements!=null?e.jsxs("span",{className:"text-[10px] font-black tabular-nums text-[var(--thril-ink)]/70",children:[G(t.vs_followers_pct)," fol"]}):null,e.jsx("button",{type:"button",onClick:()=>c(!0),className:"ml-auto text-[10px] font-black uppercase tracking-wide text-[var(--thril-ink)]/55 hover:text-[var(--thril-ink)]",children:"Detail"})]})]})]}),e.jsxs(ke,{open:n,onClose:()=>c(!1),title:"Detail post",children:[e.jsxs("div",{className:"flex gap-2.5",children:[e.jsx(J,{username:b,size:"sm",className:"shadow-[2px_2px_0_var(--thril-ink)]"}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-sm font-black text-[var(--thril-ink)]",children:N}),e.jsxs("p",{className:"text-xs font-bold text-[var(--thril-ink)]/45",children:["@",b]})]})]}),e.jsx("p",{className:"mt-3 whitespace-pre-wrap text-sm font-semibold leading-relaxed text-[var(--thril-ink)]/85",children:s}),e.jsx(ot,{post:t}),a&&t.engagements!=null?e.jsxs("p",{className:"mt-3 text-[11px] font-bold text-[var(--thril-ink)]/55",children:[z(t.engagements)," interaksi · ",G(t.vs_followers_pct)," dibanding followers"]}):null,m?e.jsx("p",{className:"mt-2 text-[11px] font-bold text-[var(--thril-ink)]/40",children:m}):null,g?e.jsxs("a",{href:g,target:"_blank",rel:"noopener noreferrer",className:"mt-4 inline-flex items-center gap-1.5 rounded-xl border-2 border-[var(--thril-ink)] bg-[var(--thril-pulse)] px-3 py-2 text-xs font-black text-[var(--thril-ink)] no-underline shadow-[2px_2px_0_var(--thril-ink)]",children:["Buka di Threads",e.jsx(K,{size:12})]}):null]})]})}function ct({posts:t,username:r,displayName:l}){return!Array.isArray(t)||t.length===0?e.jsx("p",{className:"text-sm font-semibold text-[var(--thril-ink)]/60",children:"Belum ada post publik yang bisa ditampilkan."}):e.jsx("ul",{className:"space-y-2 list-none p-0",children:t.slice(0,8).map((a,n)=>e.jsx(je,{post:a,username:r,displayName:l},a.id||a.code||n))})}
2function dt({audience:t,username:r,displayName:l}){return t?e.jsxs("div",{className:"space-y-3",children:[e.jsx(ge,{audience:t}),e.jsx("p",{className:"text-[11px] font-semibold leading-relaxed text-[var(--thril-ink)]/50",children:"Sinyal interaksi dari sampel — bukan data iklan. Detail tiap post via tombol Detail."}),t.ok&&t.posts?.length?e.jsx("ul",{className:"space-y-2 list-none p-0",children:t.posts.map((a,n)=>e.jsx(je,{post:a,username:r,displayName:l,showReach:!0},a.id||a.code||n))}):null]}):e.jsx("p",{className:"text-sm font-semibold text-[var(--thril-ink)]/60",children:"Data belum siap."})}const H=[{id:"overview",Icon:Qe,title:"Ringkasan",short:"Ringkas",body:"Post & sinyal audiens.",status:"live"},{id:"mutual",Icon:Y,title:"Mutualan",short:"Mutual",body:"Belum folbek, belum follow, saran akun.",status:"live"},{id:"reach",Icon:Ze,title:"Jangkauan",short:"Reach",body:"Interaksi sampel vs followers.",status:"live"},{id:"find",Icon:Xe,title:"Ditemukan",short:"Cari",body:"Apakah profil muncul saat orang mencari.",status:"soon"},{id:"reply",Icon:ae,title:"Reply",short:"Reply",body:"Balasan tenggelam atau kebaca.",status:"soon"},{id:"topic",Icon:Ve,title:"Topik",short:"Topik",body:"Tag yang sering nempel di post.",status:"soon"}];function ut(t){if(!t)return null;try{const r=new Date(`${t}T00:00:00Z`);return Number.isNaN(r.getTime())?t:r.toLocaleDateString("id-ID",{day:"numeric",month:"long",year:"numeric",timeZone:"UTC"})}catch{return t}}function V(t){if(t==null||t==="")return"—";const r=Number(t);return Number.isFinite(r)?r.toLocaleString("id-ID"):"—"}function xt(t){const r=Array.isArray(t)?t.filter(Boolean).slice(0,12):[];if(r.length===0)return null;const l=r.map(s=>Number(s.taken_at)).filter(s=>Number.isFinite(s)&&s>0);let a=null;if(l.length>=2){const s=[...l].sort((g,b)=>b-g),k=Math.max(1,(s[0]-s[s.length-1])/86400),x=s.length/k*7;a=x>=1?`~${x.toFixed(1)} post/minggu`:`~${(x*4.3).toFixed(1)} post/bulan`}let n=0,c=0,d=0,u=null;r.forEach(s=>{const k=Number(s.like_count)||0,x=Number(s.reply_count)||0,g=Number(s.repost_count)||0,b=Number(s.quote_count)||0,N=k+x+g+b;n+=k,c+=x,d+=g,(!u||N>u.eng)&&(u={...s,eng:N})});const m=r.length;return{count:m,cadence:a,avgLikes:n/m,avgReplies:c/m,avgReposts:d/m,best:u}}function ht({profile:t,clean:r}){const[l,a]=i.useState(!1),n=ut(t?.threads_joined_at),c=t.username||r,d=t.name||`@${c}`,u=String(t.biography||"").trim(),m=u.length>110,s=t.thread_count!=null&&t.thread_count!==""?t.thread_count:Array.isArray(t.recent_posts)&&t.recent_posts.length?t.recent_posts.length:null,k=[{key:"followers",value:V(t.follower_count),label:"Followers"},{key:"following",value:V(t.following_count),label:"Following"},{key:"posts",value:V(s),label:"Post"}];return e.jsxs("div",{className:"thril-profile-card relative overflow-hidden rounded-2xl border-2 border-[var(--thril-ink)] bg-white shadow-[3px_3px_0_var(--thril-ink)]",children:[e.jsxs("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-[4.25rem] overflow-hidden","aria-hidden":!0,children:[e.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(115deg,var(--thril-mist)_0%,#ffffff_42%,rgba(200,245,66,0.35)_78%,var(--thril-coral)_140%)]"}),e.jsx("div",{className:"thril-profile-stripe absolute -left-8 top-2.5 h-7 w-[140%] rotate-[-4deg] bg-[var(--thril-pulse)]/35"}),e.jsx("div",{className:"absolute inset-x-0 bottom-0 h-7 bg-gradient-to-b from-transparent to-white"})]}),e.jsx(W,{variant:"card"}),e.jsxs("div",{className:"absolute left-2.5 top-2 z-[1] inline-flex items-center gap-1 rounded-md border-2 border-[var(--thril-ink)] bg-[var(--thril-ink)] px-1.5 py-0.5 text-[9px] font-black uppercase tracking-wider text-[var(--thril-pulse)] shadow-[1.5px_1.5px_0_var(--thril-ink)]","aria-hidden":!0,children:[e.jsx(Fe,{size:10,className:"text-[var(--thril-pulse)]"}),"Profile"]}),e.jsx("span",{className:"pointer-events-none absolute bottom-2 right-3 z-[1] select-none text-[9px] font-black uppercase tracking-[0.22em] text-[var(--thril-ink)]/12","aria-hidden":!0,children:"Thril"}),e.jsxs("div",{className:"relative z-[1] px-3 pb-3 pt-8 sm:px-3.5 sm:pb-3.5",children:[e.jsxs("div",{className:"flex items-end gap-3",children:[e.jsxs("div",{className:"relative shrink-0",children:[e.jsx("div",{className:"rounded-2xl border-2 border-[var(--thril-ink)] bg-[var(--thril-pulse)] p-0.5 shadow-[3px_3px_0_var(--thril-ink)]",children:e.jsx(J,{username:c,size:"hub",className:"!border-0 !shadow-none"})}),e.jsx("span",{className:"absolute -bottom-1 -right-1 flex h-5 w-5 items-center justify-center rounded-full border-2 border-[var(--thril-ink)] bg-[var(--thril-pulse)] shadow-[1px_1px_0_var(--thril-ink)]",title:t.is_private?"Privat":"Publik",children:t.is_private?e.jsx(se,{size:10,strokeWidth:3,className:"text-[var(--thril-ink)]"}):e.jsxs("span",{className:"relative inline-flex h-1.5 w-1.5",children:[e.jsx("span",{className:"absolute inset-0 rounded-full bg-[var(--thril-ink)] opacity-70",style:{animation:"thrilLivePing 1.8s cubic-bezier(0,0,0.2,1) infinite"}}),e.jsx("span",{className:"relative inline-flex h-1.5 w-1.5 rounded-full bg-[var(--thril-ink)]"})]})})]}),e.jsx("div",{className:"min-w-0 flex-1 pb-0.5",children:e.jsxs("div",{className:"flex min-w-0 items-start justify-between gap-2",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-1.5",children:[e.jsx("h1",{className:"truncate text-[17px] font-black leading-tight tracking-tight text-[var(--thril-ink)] sm:text-xl",style:{fontFamily:"var(--thril-display)"},children:d}),t.is_verified?e.jsx("span",{className:"inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full border-2 border-[var(--thril-ink)] bg-[var(--thril-pulse)] text-[9px] font-black shadow-[1px_1px_0_var(--thril-ink)]",children:"✓"}):null]}),e.jsx("span",{className:"mt-1 mb-1.5 block h-1.5 w-11 rounded-full border-2 border-[var(--thril-ink)] bg-[var(--thril-pulse)]","aria-hidden":!0}),e.jsxs("p",{className:"flex min-w-0 flex-wrap items-center gap-1.5 text-xs font-bold text-[var(--thril-ink)]/55",children:[e.jsxs("span",{className:"truncate",children:["@",c]}),n?e.jsxs("span",{className:"inline-flex items-center gap-0.5 text-[10px] font-bold text-[var(--thril-ink)]/40",children:[e.jsx(fe,{size:10}),n]}):null]})]}),e.jsxs("a",{href:`https://www.threads.com/@${c}`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex shrink-0 items-center gap-1 self-start rounded-xl border-2 border-[var(--thril-ink)] bg-[var(--thril-ink)] px-2.5 py-1.5 text-[10px] font-black text-[var(--thril-pulse)] no-underline shadow-[2px_2px_0_var(--thril-coral)] transition hover:-translate-y-0.5",children:["Buka",e.jsx(K,{size:11})]})]})})]}),e.jsx("div",{className:"mt-2.5 flex flex-wrap items-baseline gap-x-3 gap-y-1",children:k.map(x=>e.jsxs("p",{className:"inline-flex items-baseline gap-1",children:[e.jsx("span",{className:"text-sm font-black tabular-nums leading-none text-[var(--thril-ink)] sm:text-base",children:x.value}),e.jsx("span",{className:"text-[11px] font-bold text-[var(--thril-ink)]/45",children:x.label})]},x.key))}),u?e.jsxs("div",{className:"relative mt-2.5 overflow-hidden rounded-xl border-2 border-[var(--thril-ink)]/15 bg-[var(--thril-paper)]/90 pl-2.5 pr-2 py-2",children:[e.jsx("span",{className:"absolute bottom-2 left-0 top-2 w-1 rounded-r-full bg-[var(--thril-coral)]","aria-hidden":!0}),e.jsx("p",{className:`pl-1.5 text-[12px] font-semibold leading-snug text-[var(--thril-ink)]/65 ${l||!m?"":"line-clamp-2"}`,children:u}),m?e.jsx("button",{type:"button",onClick:()=>a(x=>!x),className:"mt-1 inline-flex items-center gap-0.5 pl-1.5 text-[10px] font-black text-[var(--thril-ink)]/50 hover:text-[var(--thril-ink)]",children:l?e.jsxs(e.Fragment,{children:["Sembunyikan ",e.jsx(te,{size:12})]}):e.jsxs(e.Fragment,{children:["Bio lengkap ",e.jsx(re,{size:12})]})}):null]}):null]})]})}function mt({title:t,body:r}){return e.jsxs("div",{className:"relative flex flex-col items-center justify-center overflow-hidden rounded-2xl border-2 border-dashed border-[var(--thril-ink)]/25 bg-[var(--thril-paper)] px-6 py-10 text-center",children:[e.jsx(W,{variant:"soft"}),e.jsx("div",{className:"thril-orn-a pointer-events-none absolute right-3 top-3 h-6 w-6 rounded-full border-2 border-[var(--thril-ink)] bg-[var(--thril-pulse)] shadow-[1.5px_1.5px_0_var(--thril-ink)]","aria-hidden":!0}),e.jsx("span",{className:"relative z-[1] inline-flex h-12 w-12 items-center justify-center rounded-xl border-2 border-[var(--thril-ink)] bg-white shadow-[2px_2px_0_var(--thril-ink)]",children:e.jsx(se,{size:20,strokeWidth:2.5,className:"text-[var(--thril-ink)]/70"})}),e.jsx("p",{className:"relative z-[1] mt-4 text-[10px] font-black uppercase tracking-[0.16em] text-[var(--thril-ink)]/45",children:"Coming soon"}),e.jsx("h3",{className:"relative z-[1] mt-1 text-base font-black text-[var(--thril-ink)]",children:t}),e.jsx("p",{className:"relative z-[1] mt-2 max-w-sm text-sm font-semibold leading-relaxed text-[var(--thril-ink)]/60",children:r})]})}function yt(){const{username:t}=ye(),r=Se(),l=Te(),a=de(t),n=Le(),c=l.state?.thrilProfile,d=c&&de(c.username)===a?c:null,[u,m]=i.useState(d?"ready":"loading"),[s,k]=i.useState(d),[x,g]=i.useState(""),[b,N]=i.useState("overview"),[B,_]=i.useState("idle"),[U,T]=i.useState([]),[$,f]=i.useState(null),[w,j]=i.useState(!1),[L,v]=i.useState(""),[C,p]=i.useState("idle"),y=i.useRef(null),M=i.useRef(""),E=i.useRef(d?a:""),F=i.useRef([]);i.useEffect(()=>()=>{if(y.current)try{y.current.abort()}catch{}F.current.forEach(h=>
2window.clearTimeout(h)),F.current=[]},[]),i.useEffect(()=>{if(!ue(a)){m("error"),g("Username Threads tidak valid.");return}if(E.current===a)return;let h=!1;return(async()=>{m("loading"),g(""),N("overview"),T([]),f(null),_("idle"),p("idle"),M.current="",F.current.forEach(D=>window.clearTimeout(D)),F.current=[];const S=await ze(a);if(!h){if(!S.ok){m("error"),g(S.error||"Gagal mengambil profil.");return}E.current=a,k(S.profile||S),m("ready")}})(),()=>{h=!0}},[a]);const[o,R]=i.useState(0),A=i.useMemo(()=>s?et(s):null,[s]),we=i.useMemo(()=>s?xt(s.recent_posts):null,[s]),ne=i.useMemo(()=>Ee(a),[a,o]);i.useEffect(()=>{u!=="ready"||!s||!A||(Ae({username:a,name:s.name,follower_count:s.follower_count,audience:A}),R(h=>h+1))},[u,s,A,a]);const Ne=async({force:h=!1}={})=>{if(y.current)try{y.current.abort()}catch{}const S=new AbortController;if(y.current=S,_("checking"),v(""),(h?null:Pe(a))?.follows)return _("allowed"),!0;const P=await Re(a,{force:h,signal:S.signal});return S.signal.aborted?!1:P.ok?P.follows_admin?(_("allowed"),!0):(_("denied"),!1):(_("idle"),v(P.error==="rate_limited"?"Cek terlalu cepat — tunggu sebentar lalu coba lagi.":"Gagal cek follow. Coba lagi sebentar."),!1)},le=()=>{F.current.forEach(h=>window.clearTimeout(h)),F.current=[]},Q=async({forceGate:h=!1,forceRefresh:S=!1}={})=>{if(le(),j(!0),v(""),p("gate"),!await Ne({force:h})){j(!1),p("idle");return}if(S)De(a);else{const I=Oe(a);if(I){T(I.suggestions||[]),f(I.followGaps||null),M.current=a,p("ready"),j(!1);return}}p("lists"),F.current.push(window.setTimeout(()=>p(I=>I==="lists"?"gaps":I),2200)),F.current.push(window.setTimeout(()=>p(I=>I==="gaps"||I==="lists"?"enrich":I),5200));const P=await Me(a,{limit:40});if(le(),!P.ok){P.error_code==="not_following"?_("denied"):v(P.error||"Gagal mengambil rekomendasi."),j(!1),p("idle");return}const oe=P.suggestions||[],ce=P.followGaps||null;T(oe),f(ce),Ue(a,{suggestions:oe,followGaps:ce}),M.current=a,p("ready"),j(!1)},_e=h=>{H.find(D=>D.id===h)&&N(h)},ie=M.current===a&&C==="ready"&&!w,O=i.useMemo(()=>H.find(h=>h.id===b)||H[0],[b]);return ue(a)?e.jsxs(xe,{children:[e.jsx($e,{}),e.jsxs("div",{className:"mx-auto max-w-[1100px] px-3 pb-12 pt-4 sm:px-5 lg:px-6",children:[e.jsx("button",{type:"button",onClick:()=>r(n),className:"text-[11px] font-black uppercase tracking-[0.16em] text-[var(--thril-ink)]/50 hover:text-[var(--thril-ink)]",children:"← Thril"}),u==="loading"?e.jsxs("p",{className:"mt-10 flex items-center gap-2 text-sm font-bold text-[var(--thril-ink)]/60",children:[e.jsx(ee,{size:16,className:"animate-spin"}),"Mengambil profil @",a,"…"]}):null,u==="error"?e.jsxs("div",{className:"mt-8 rounded-2xl border-2 border-[var(--thril-coral)] bg-white p-5",children:[e.jsx("p",{className:"text-sm font-bold text-[var(--thril-ink)]",children:x}),e.jsx("button",{type:"button",onClick:()=>r(n),className:"mt-4 font-black text-[var(--thril-ink)] underline",children:"Coba username lain"})]}):null,u==="ready"&&s?e.jsxs("div",{className:"mt-4 space-y-4",children:[e.jsx(ht,{profile:s,clean:a}),e.jsx("div",{role:"tablist","aria-label":"Alat Thril",className:"flex gap-1 overflow-x-auto rounded-xl border-2 border-[var(--thril-ink)] bg-[var(--thril-mist)]/50 p-1 [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:H.map(h=>{const S=h.status==="live",D=!S,P=b===h.id;return e.jsxs("button",{type:"button",role:"tab","aria-selected":P,onClick:()=>_e(h.id),className:`inline-flex min-w-[4.5rem] shrink-0 flex-1 items-center justify-center gap-1 rounded-lg px-2 py-2 text-[10px] font-black uppercase tracking-wide transition sm:min-w-0 sm:text-[11px] ${P?D?"border border-[var(--thril-ink)]/20 bg-white text-[var(--thril-ink)]/55 shadow-[1.5px_1.5px_0_var(--thril-ink)]/30":"bg-[var(--thril-pulse)] text-[var(--thril-ink)] shadow-[1.5px_1.5px_0_var(--thril-ink)]":S?"text-[var(--thril-ink)]/70 hover:bg-white/80":"text-[var(--thril-ink)]/40 hover:bg-white/60"}`,children:[D?e.jsx(se,{size:11,strokeWidth:2.5,className:"shrink-0 opacity-70"}):e.jsx(h.Icon,{size:13,strokeWidth:2.5,className:"hidden shrink-0 sm:inline"}),e.jsx("span",{className:"sm:hidden",children:h.short}),e.jsx("span",{className:"hidden sm:inline",children:h.title})]}
2,h.id)})}),e.jsxs("div",{className:"relative overflow-hidden rounded-2xl border-2 border-[var(--thril-ink)] bg-white p-3.5 shadow-[3px_3px_0_var(--thril-ink)] sm:p-5",children:[e.jsx(W,{variant:"panel"}),e.jsxs("div",{className:"relative z-[1] flex items-baseline justify-between gap-3 pr-10 sm:pr-14",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-[10px] font-black uppercase tracking-[0.16em] text-[var(--thril-ink)]/40",children:"Alat Thril"}),e.jsx("h2",{className:"mt-0.5 text-base font-black tracking-tight text-[var(--thril-ink)] sm:text-lg",children:O.title})]}),e.jsxs("span",{className:`relative shrink-0 rounded-md border-2 px-1.5 py-0.5 text-[9px] font-black uppercase tracking-wide shadow-[1.5px_1.5px_0_var(--thril-ink)] ${O.status==="live"?"border-[var(--thril-ink)] bg-[var(--thril-pulse)] text-[var(--thril-ink)]":"border-[var(--thril-ink)]/25 bg-white text-[var(--thril-ink)]/40 shadow-none"}`,children:[O.status==="live"?"Live":"Soon",O.status==="live"?e.jsx(W,{variant:"chip"}):null]})]}),e.jsxs("div",{className:"relative z-[1] mt-3.5 border-t-2 border-[var(--thril-ink)]/10 pt-3.5",children:[b==="overview"?e.jsxs("div",{className:"space-y-2.5",children:[ne?.checked_at?e.jsxs("p",{className:"text-[10px] font-bold text-[var(--thril-ink)]/40",children:["Terakhir dicek ",Be(ne.checked_at)]}):null,e.jsx(ge,{audience:A}),e.jsx(it,{insights:we}),e.jsxs("div",{className:"pt-1",children:[e.jsxs("p",{className:"mb-2 inline-flex items-center gap-1.5 text-[10px] font-black uppercase tracking-[0.14em] text-[var(--thril-ink)]/40",children:[e.jsx("span",{className:"inline-block h-1.5 w-5 rounded-full border border-[var(--thril-ink)] bg-[var(--thril-pulse)]","aria-hidden":!0}),"Post terbaru"]}),e.jsx(ct,{posts:s.recent_posts,username:s.username||a,displayName:s.name||`@${a}`})]})]}):null,b==="reach"?e.jsx(dt,{audience:A,username:s.username||a,displayName:s.name||`@${a}`}):null,b==="mutual"?e.jsxs("div",{className:"space-y-4",children:[w||C==="gate"||C==="lists"||C==="gaps"||C==="enrich"?e.jsx(st,{stepId:C==="gate"?"gate":C,username:a}):null,!w&&B==="denied"?e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(be,{size:18,className:"mt-0.5 shrink-0"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-black text-[var(--thril-ink)]",children:"Follow @asministratur di Threads dulu"}),e.jsx("p",{className:"mt-1 text-xs font-semibold text-[var(--thril-ink)]/65",children:"Alat ini gratis setelah follow — lalu jalankan lagi."}),e.jsxs("div",{className:"mt-3 flex flex-col gap-2 sm:flex-row",children:[e.jsxs("a",{href:Ce,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-1.5 rounded-xl border-2 border-[var(--thril-ink)] bg-[var(--thril-ink)] px-3 py-2 text-xs font-black text-[var(--thril-pulse)] no-underline",children:["Buka @asministratur",e.jsx(K,{size:12})]}),e.jsxs("button",{type:"button",onClick:()=>{Q({forceGate:!0})},className:"inline-flex items-center justify-center gap-1.5 rounded-xl border-2 border-[var(--thril-ink)] bg-[var(--thril-pulse)] px-3 py-2 text-xs font-black",children:[e.jsx(me,{size:12}),"Sudah follow — jalankan"]})]})]})]}):null,L?e.jsx("p",{className:"text-sm font-bold text-[var(--thril-coral)]",children:L}):null,!w&&B!=="denied"&&!ie?e.jsx(nt,{busy:w,onStart:()=>{Q({forceGate:!1})}}):null,!w&&ie?e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsx("p",{className:"text-[11px] font-bold text-[var(--thril-ink)]/50",children:"Hasil mutualan siap"}),e.jsxs("button",{type:"button",onClick:()=>{Q({forceGate:!1,forceRefresh:!0})},className:"inline-flex items-center gap-1.5 rounded-lg border-2 border-[var(--thril-ink)] bg-white px-2.5 py-1.5 text-[10px] font-black text-[var(--thril-ink)]",children:[e.jsx(me,{size:11}),"Cek ulang"]})]}),e.jsx(at,{followGaps:$,suggestions:U,hubUser:a})]}):null]}):null,O.status==="soon"?e.jsx(mt,{title:O.title,body:O.body}):null]})]})]}):null]})]}):e.jsx(xe,{children:e.jsxs("section",{className:"mx-auto max-w-lg px-4 py-16 text-center",children:[e.jsx("p",{className:"text-sm font-bold text-[var(--thril-ink)]/70",children:"Username tidak valid."}),e.jsx("button",{type:"button",onClick:()=>r(n),className:"mt-4 font-black text-[var(--thril-ink)] underline",children:"Kembali"})]})})}export{yt as default};

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.