1import{u as k,d as _,r as d,j as e,L as D,O as F}from"./react-core-bWLI75Fw.js";import{gc as M,cS as B,o as K,a as x,S as y,eD as W,jq as q,fn as G,fo as V,cV as Y}from"./index-Cuw9rIcM.js";import{o as J}from"./firebase-BwZ4hkwm.js";import{S as Q,a as X,b as $,c as S,d as H,e as Z,f as N,g as ee,h as te,i as ae}from"./shadowbanHubTheme-CEX8alay.js";import{m}from"./framer-motion-C0wpNkKn.js";import{a as se}from"./ThrilOrnaments-Crzziwcl.js";import"./lucide-U8ZTX028.js";function re(){const s=k(),a=_(),i=s.state?.showShadowban30Boot===!0;return d.useEffect(()=>{if(!i)return;const o=setTimeout(()=>{a({pathname:s.pathname,search:s.search||"",hash:s.hash||""},{replace:!0,state:{}})},1600);return()=>clearTimeout(o)},[i,s.pathname,s.search,s.hash,a]),i?e.jsx("div",{className:"thril-root fixed inset-0 z-[95] flex items-center justify-center bg-[var(--thril-paper)] p-6","aria-live":"polite","aria-busy":"true",children:e.jsxs(m.div,{initial:{opacity:0,scale:.94,y:12},animate:{opacity:1,scale:1,y:0},transition:{type:"spring",damping:18},className:`w-full max-w-sm p-6 text-center ${Q}`,children:[e.jsxs("div",{className:"mb-5 flex items-center justify-center gap-2",children:[e.jsx(m.div,{animate:{y:[0,-6,0]},transition:{duration:1,repeat:1/0,ease:"easeInOut"},className:`flex h-14 w-14 items-center justify-center rounded-xl border-2 border-[var(--thril-ink)] ${X} ${$}`,children:e.jsx(M,{size:26,weight:"fill",className:"text-[#12201A]"})}),e.jsx("div",{className:"flex items-center gap-1.5 px-1",children:[0,1,2].map(o=>e.jsx(m.span,{className:"h-2 w-2 rounded-full border border-[var(--thril-ink)]/30 bg-[var(--thril-pulse)]",animate:{scale:[.65,1.2,.65],opacity:[.35,1,.35]},transition:{duration:.9,repeat:1/0,delay:o*.18,ease:"easeInOut"}},o))}),e.jsx(m.div,{animate:{y:[0,-6,0]},transition:{duration:1,repeat:1/0,ease:"easeInOut",delay:.5},className:`flex h-14 w-14 items-center justify-center rounded-xl border-2 border-[var(--thril-ink)] bg-[var(--thril-coral)] text-white ${$}`,children:e.jsx(B,{size:26,weight:"fill"})})]}),e.jsx("p",{className:`text-[10px] font-black uppercase tracking-[0.18em] ${S}`,children:"Alur kesehatan akun"}),e.jsx("h2",{className:`text-2xl font-black tracking-tight ${H}`,style:{fontFamily:"var(--thril-display)"},children:"Shadowban Hub"}),e.jsx("p",{className:`mt-1.5 text-sm font-bold ${S}`,children:"Menyiapkan profil & pemindaianâ¦"}),e.jsx("div",{className:"mx-auto mt-5 h-2 w-full max-w-[240px] overflow-hidden rounded-full border border-[var(--thril-ink)]/20 bg-[var(--thril-mist)]/40",children:e.jsx(m.div,{className:"h-full rounded-full bg-[var(--thril-pulse)]",initial:{width:"0%"},animate:{width:"100%"},transition:{duration:1.45,ease:"easeInOut"}})})]})}):null}function f(s){const a=String(s||"").replace(/^@+/,"").trim().toLowerCase();return/^[a-z0-9_]{1,15}$/.test(a)?a:void 0}function de({suggestedUsername:s}){const a=_(),i=k(),{isDark:o}=K(),E=Y(o),r=y,n=`${r}/hub/`,c=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),A=new RegExp(`^${c(n)}([^/]+)/performance$`),I=new RegExp(`^${c(n)}([^/]+)/audit$`),O=new RegExp(`^${c(n)}([^/]+)/monetization-appeal$`),U=new RegExp(`^${c(n)}([^/]+)/memorizer$`),R=new RegExp(`^${c(n)}([^/]+)/alat/`),T=new RegExp(`^${c(n)}[^/]+$`),[b,L]=d.useState(()=>!!x.currentUser&&!x.currentUser.isAnonymous);d.useEffect(()=>J(x,t=>L(!!t&&!t.isAnonymous)),[]);const u=()=>a("/"),z=()=>{const t=(i.pathname||"/").replace(/\/$/,"")||"/";if(t===r){u();return}if(t===`${r}/check`){b?u():a(r);return}const l=t.match(A);if(l){a(`${r}/hub/${l[1]}`);return}const g=t.match(I);if(g){a(`${r}/hub/${g[1]}`);return}const v=t.match(O);if(v){a(`${r}/hub/${v[1]}`);return}const j=t.match(U);if(j){a(`${r}/hub/${j[1]}`);return}const w=t.match(R);if(w){a(`${r}/hub/${w[1]}`);return}if(T.test(t)){u();return}a(-1)},p=(i.pathname||"/").replace(/\/$/,"")||"/",C=p.startsWith(n)&&p.length>n.length,h=/\/alat\/performa(?:\/|$)/.test(p),P=f(s)?{username:f(s)}:void 0;return d.useEffect(()=>{const t="thril-display-font";if(document.getElementById(t))return;const l=document.createElement("link");l.id=t,l.rel="stylesheet",l.href=W,document.head.appendChild(l)},[]),e.jsxs("div",{className:"thril-root relative min-h-[100dvh] w-full max-w-none overflow-x-clip text-[var(--thril-ink)] ",style:h?void 0:E,children:[e.jsx(q,{xStats:P,preferAppShell:!0}),e.jsx(re,{}),!h&&e.jsx(se,{}),!h&&e.jsx("header",{className:Z,children:e.jsxs("div",{className:"mx-auto flex w-full max-w-none items-center justify-between gap-2 px-3 py-2.5 sm:gap-3 sm:px-6 sm:py-3",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-2 sm:gap-2.5",children:[e.jsxs("button",{type:"button",onClick:z,className:N,"aria-label":"Kembali ke beranda",children:[e.jsx(G,{size:14,weight:"bold"}),e.jsx("span",{className:"hidden sm:inline",children:"Kembali"})]}),e.jsx("span",{className:ee,children:e.jsx(B,{size:18,weight:"fill"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h1",{className:`truncate text-sm font-extrabold tracking-tight sm:text-base ${H}`,style:{fontFamily:"var(--thril-display)",fontStyle:"normal"},children:"Shadowban Hub"}),e.jsx("p",{className:`hidden truncate text-[10px] font-bold uppercase tracking-widest sm:block ${ae}`,children:te.subtitle})]})]}),e.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[e.jsx(V,{compact:!0,className:"border-[var(--thril-ink)]/25 bg-[var(--thril-surface)] shadow-none dark:border-[var(--thril-ink)]/35 dark:bg-[var(--thril-surface)]"}),C&&!b&&e.jsx(D,{to:`${r}/check`,className:`${N} text-[10px] sm:px-3 sm:text-[11px]`,children:"Cek username lain"})]})]})}),e.jsx(F,{context:{basePath:y,suggestedUsername:f(s)}},i.pathname)]})}export{de 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.