1import{r as b,b as Q,j as e,H as Ce,L as Fe}from"./app-CMA1vbDN.js";import{D as Le}from"./dashboard-page-header-DmonTxix.js";import{T as Pe}from"./TextInput-CODipsqD.js";import{m as J,o as de,D as Te}from"./DashboardLayout-BjBbze9h.js";import{B as Y}from"./button-BHTmALIZ.js";import{T as z,a as I,b as h,c as d,d as M,e as n}from"./table-DImFfIkA.js";import{T as $e,a as ze,b as U,c as W}from"./tabs-DpCXT4gI.js";import{W as B,a as Ie}from"./user-workspace-tBHcFzJJ.js";import{c as l}from"./utils-BZuWSw2u.js";import{A as Me}from"./arrow-left-GjKMCBCk.js";import{L as y}from"./loader-circle-P_czZNeT.js";import{c as N}from"./createLucideIcon-7EDCEQZi.js";import{S as Ue}from"./search-CPtzOAZa.js";import{D as ce}from"./download-DFldmJJ3.js";import{E as We}from"./external-link-BbAneXWj.js";import"./icon-tile-classes-DtW_Hode.js";import"./Dropdown-BBYKOrJz.js";import"./transition-Bw7n0fDw.js";import"./theme-B09gkxci.js";import"./inertia-flash-toaster-FC0pyOlw.js";import"./key-round-Df1A-mwi.js";import"./card-Cbw7ZrH2.js";import"./activity-kBKpR6OJ.js";/** 2 * @license lucide-react v1.7.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const Be=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Ee=N("arrow-right",Be);/** 7 * @license lucide-react v1.7.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const Re=[["path",{d:"M13.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v11.5",key:"4pqfef"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 12v-1",key:"1ej8lb"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["path",{d:"M8 7V6",key:"1nbb54"}],["circle",{cx:"8",cy:"20",r:"2",key:"ckkr5m"}]],me=N("file-archive",Re);/** 12 * @license lucide-react v1.7.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */const qe=[["path",{d:"M2 21a8 8 0 0 1 13.292-6",key:"bjp14o"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 19h-6",key:"vcuq98"}]],xe=N("user-round-minus",qe);/** 17 * @license lucide-react v1.7.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */const Ae=[["path",{d:"M2 21a8 8 0 0 1 13.292-6",key:"bjp14o"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M19 16v6",key:"tddt3s"}],["path",{d:"M22 19h-6",key:"vcuq98"}]],fe=N("user-round-plus",Ae);/** 22 * @license lucide-react v1.7.0 - ISC 23 * 24 * This source code is licensed under the ISC license. 25 * See the LICENSE file in the root directory of this source tree. 26 */const Oe=[["path",{d:"M2 21a8 8 0 0 1 11.873-7",key:"74fkxq"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"m17 17 5 5",key:"p7ous7"}],["path",{d:"m22 17-5 5",key:"gqnmv0"}]],he=N("user-round-x",Oe);/** 27 * @license lucide-react v1.7.0 - ISC 28 * 29 * This source code is licensed under the ISC license. 30 * See the LICENSE file in the root directory of this source tree. 31 */const De=[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]],pe=N("users-round",De),ee=[.22,1,.36,1],ge="paper-grain relative min-w-0 overflow-hidden rounded-[1.4rem] border border-sky-200/60 bg-[var(--app-surface-elevated)] shadow-[0_1px_1px_rgba(15,23,42,0.03),0_14px_34px_rgba(59,130,246,0.08)] transition-colors duration-500 dark:border-indigo-500/22 dark:bg-[var(--app-surface-elevated)]",He="flex min-w-0 flex-col gap-4 roun
31ded-[1.25rem] border border-sky-200/45 bg-[var(--app-surface-elevated)] px-4 py-4 shadow-[0_1px_2px_rgba(15,23,42,0.04)] transition-colors duration-500 dark:border-indigo-500/22 dark:bg-[var(--app-surface-elevated)] sm:flex-row sm:flex-wrap sm:items-center sm:justify-between sm:gap-5 sm:px-6 sm:py-4",Ke="rounded-xl border border-slate-200/75 bg-white/98 px-3 py-2.5 shadow-sm ring-1 ring-slate-200/25 dark:border-slate-800 dark:bg-slate-950/98 dark:ring-white/[0.04] sm:px-4 sm:py-3",E="flex h-7 w-7 shrink-0 items-center justify-center rounded-lg border border-slate-200/80 bg-gradient-to-b from-white to-slate-50 text-slate-700 shadow-sm dark:border-white/[0.08] dark:from-slate-800 dark:to-slate-900 dark:text-slate-200 sm:h-8 sm:w-8",R="h-4 w-4 sm:h-[1.125rem] sm:w-[1.125rem]";function q(s){const r=14+Math.abs(s)%22;return Array.from({length:7},(c,i)=>Math.max(4,Math.round(r+Math.sin(i*.85)*5+i*s%7)))}function Ve(s){if(s==null||!Number.isFinite(s))return"â";try{return new Date(s*1e3).toLocaleString()}catch{return String(s)}}function A(s){if(s==null||!Number.isFinite(s))return"â";try{return new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}).format(new Date(s*1e3))}catch{return Ve(s)}}function O(s){if(!s)return"â";const r=s.trim();return r.startsWith("@")?r:`@${r}`}function Ze(s){if(!s)return"â";try{const r=new URL(s),c=r.pathname.match(/\/_u\/([^/]+)/);if(c)return`@${c[1]}`;const i=r.pathname.split("/").filter(Boolean),p=i[i.length-1];if(p)return`@${p.replace(/^@/,"")}`}catch{}return s.length>36?`${s.slice(0,33)}â¦`:s}function se(s,r=42){const c=s.displayLabel.length>r?`${s.displayLabel.slice(0,r-3)}â¦`:s.displayLabel;return`#${s.id} ${c} · ${s.uploadedAtFormatted}`}function Qe(s){const r=s[0];return r==null?"No previous export yet":se(r)}function D(s,r,c){const i="value"in r?`${r.value??""}-${r.href??""}-${r.timestamp??c}`:`${r.title??""}-${r.href??""}-${r.timestamp??c}`;return`${s}-${i}-${c}`}function H(s,r){return s.from!=null?s.from+r:(s.current_page-1)*s.per_page+r+1}function K({href:s}){return s?e.jsxs("a",{href:s,target:"_blank",rel:"noreferrer",className:"group inline-flex max-w-full items-center gap-1.5 text-[0.8125rem] font-semibold text-sky-600 underline-offset-2 transition hover:text-sky-800 hover:underline dark:text-sky-400 dark:hover:text-sky-200 sm:text-sm",children:[e.jsx("span",{className:"min-w-0 truncate tracking-tight",children:Ze(s)}),e.jsx(We,{className:"h-3.5 w-3.5 shrink-0 opacity-60 transition group-hover:opacity-100",strokeWidth:2,"aria-hidden":!0})]}):e.jsx("span",{className:"text-sm font-medium text-slate-400 dark:text-slate-500",children:"â"})}function V({label:s,paginator:r,pageParam:c,uploadId:i,q:p,perPage:o,pages:g,unfollowerBaseline:u}){const{current_page:m,last_page:k}=r,v=j=>{Q.get(route("audit.upload.show",i),{q:p||void 0,per_page:o,unfollower_baseline:u||void 0,followers_page:c==="followers_page"?j:g.followers_page,following_page:c==="following_page"?j:g.following_page,non_followers_page:c==="non_followers_page"?j:g.non_followers_page,unfollowers_page:c==="unfollowers_page"?j:g.unfollowers_page,new_followers_page:c==="new_followers_page"?j:g.new_followers_page},{preserveState:!0,preserveScroll:!0})};return k<=1?e.jsxs("p",{className:"border-t border-zinc-200/60 px-4 py-3 text-center text-[12px] font-medium leading-relaxed text-slate-500 dark:border-white/[0.06] dark:text-slate-400",children:[r.total.toLocaleString()," ",s,r.total===1?"":"s"," total"]}):e.jsxs("nav",{className:"flex flex-col gap-3 border-t border-zinc-200/60 px-4 py-3 dark:border-white/[0.06] sm:flex-row sm:items-center sm:justify-between","aria-label":"Table pagination",children:[e.jsxs("p",{className:"text-[12px] font-medium leading-relaxed text-slate-500 dark:text-slate-400",children:["Showing"," ",e.jsxs("span",{className:"tabular-nums font-semibold text-slate-700 dark:text-slate-300",children:[r.from??0,"â",r.to??0]})," ","of ",r.total.toLocaleString()]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2 sm:justify-end",children:[e.jsx(Y,{type:"button",variant:"outline",size:"sm",className:"h-9 border-zinc-200/80 bg-white text-zinc-700 shadow-sm hover:bg-zinc-50 dark:border-white/[0.1] dark:bg-zinc-900 dark:text-zinc-200 dark:hover:bg-zinc-800",disabled:m<=1,onClick:()=>v(m-1),children:"Previous"}),e.jsxs("span",{className:"tabular-nums text-[12px] font-medium text-slate-600 dar
31k:text-slate-400",children:["Page ",m," / ",k]}),e.jsx(Y,{type:"button",variant:"outline",size:"sm",className:"h-9 border-zinc-200/80 bg-white text-zinc-700 shadow-sm hover:bg-zinc-50 dark:border-white/[0.1] dark:bg-zinc-900 dark:text-zinc-200 dark:hover:bg-zinc-800",disabled:m>=k,onClick:()=>v(m+1),children:"Next"})]})]})}function Z({uploadId:s,listExportKey:r,perPage:c,perPageOptions:i,disabled:p,qTrim:o,unfollowerBaseline:g}){const u=`${route("audit.upload.export-csv",s)}?list=${encodeURIComponent(r)}`;return e.jsx("div",{className:"mb-4 sm:mb-5",children:e.jsxs("div",{className:"flex flex-col gap-3 rounded-xl border border-slate-200/70 bg-slate-50/60 px-3 py-3 sm:flex-row sm:items-center sm:justify-between sm:gap-6 sm:px-4 dark:border-white/[0.08] dark:bg-white/[0.03]",children:[e.jsxs("label",{className:"flex w-fit max-w-full flex-wrap items-center gap-2.5 text-xs font-medium text-slate-600 dark:text-slate-400 sm:text-sm",children:[e.jsx("span",{className:"whitespace-nowrap",children:"Rows / page"}),e.jsx("select",{className:l("h-9 min-w-[6rem] cursor-pointer rounded-lg border border-slate-200/90 bg-white py-1 pl-3 pr-12 text-sm font-medium tabular-nums text-slate-900 shadow-sm","focus:border-sky-500 focus:outline-none focus:ring-2 focus:ring-sky-500/20","disabled:cursor-not-allowed disabled:opacity-50","dark:border-white/10 dark:bg-[#0d1117] dark:text-slate-100"),value:c,disabled:p,onChange:m=>{const k=Number(m.target.value);Q.get(route("audit.upload.show",s),{q:o||void 0,per_page:k,unfollower_baseline:g||void 0,followers_page:1,following_page:1,non_followers_page:1,unfollowers_page:1,new_followers_page:1},{preserveState:!0,preserveScroll:!0})},"aria-label":"Rows per page",children:i.map(m=>e.jsx("option",{value:m,children:m},m))})]}),e.jsx("div",{className:"flex shrink-0 justify-start sm:justify-end",children:p?e.jsxs(Y,{type:"button",variant:"outline",size:"sm",disabled:!0,className:"h-9 border-zinc-200/80 bg-white text-zinc-700 shadow-sm dark:border-white/[0.1] dark:bg-zinc-900 dark:text-zinc-200",children:[e.jsx(ce,{className:"mr-2 h-4 w-4 opacity-50",strokeWidth:2,"aria-hidden":!0}),"Export CSV"]}):e.jsx(Y,{asChild:!0,variant:"outline",size:"sm",className:"h-9 border-zinc-200/80 bg-white text-zinc-700 shadow-sm hover:bg-zinc-50 dark:border-white/[0.1] dark:bg-zinc-900 dark:text-zinc-200 dark:hover:bg-zinc-800",children:e.jsxs("a",{href:u,className:"inline-flex items-center",children:[e.jsx(ce,{className:"mr-2 h-4 w-4",strokeWidth:2,"aria-hidden":!0}),"Export CSV"]})})})]})})}const Ye=({upload:s})=>{var le,oe,ne,ie;const[r,c]=b.useState(s.filters.q??""),[i,p]=b.useState("unfollowers"),o=r.trim(),g=s.status==="processing",u=s.status==="completed"&&(s.analyticsStatus==="pending"||s.analyticsStatus==="processing");s.status==="completed"&&s.analyticsStatus;const m=b.useMemo(()=>({followers_page:s.followers.current_page,following_page:s.following.current_page,non_followers_page:s.nonFollowers.current_page,unfollowers_page:s.unfollowers.current_page,new_followers_page:s.newFollowers.current_page}),[s.followers.current_page,s.following.current_page,s.nonFollowers.current_page,s.unfollowers.current_page,s.newFollowers.current_page]);b.useEffect(()=>{if(!g&&!u)return;const t=window.setInterval(()=>{Q.reload({only:["upload"]})},2500);return()=>window.clearInterval(t)},[g,u]),b.useEffect(()=>{const t=window.setTimeout(()=>{(s.filters.q??"")!==o&&Q.get(route("audit.upload.show",s.id),{q:o||void 0,per_page:s.filters.perPage,unfollower_baseline:s.filters.unfollower_baseline||void 0,followers_page:1,following_page:1,non_followers_page:1,unfollowers_page:1,new_followers_page:1},{preserveState:!0,preserveScroll:!0,replace:!0})},400);return()=>window.clearTimeout(t)},[o,s.id,s.filters.q,s.filters.perPage,s.filters.unfollower_baseline]);const k=s.followers.data??[],v=s.following.data??[],j=s.nonFollowers.data??[],te=s.unfollowers.data??[],re=s.newFollowers.data??[],we=o?`${(s.followers.total??0).toLocaleString()}/${s.followersCount.toLocaleString()}`:s.followersCount.toLocaleString(),ue=o?`${(s.following.total??0).toLocaleString()}
31/${s.followingCount.toLocaleString()}`:s.followingCount.toLocaleString(),be=o?`${(s.nonFollowers.total??0).toLocaleString()}/${s.nonFollowersCount.toLocaleString()}`:s.nonFollowersCount.toLocaleString(),ke=o?`${(s.unfollowers.total??0).toLocaleString()}/${s.unfollowersCount.toLocaleString()}`:s.unfollowersCount.toLocaleString(),je=o?`${(s.newFollowers.total??0).toLocaleString()}/${s.newFollowersCount.toLocaleString()}`:s.newFollowersCount.toLocaleString(),X=b.useMemo(()=>{const t=s.unfollowerBaseline;return t==="none"?"none":t==="auto"?"auto":t==="specific"&&s.comparedWithUploadId!=null||t==null&&s.comparedWithUploadId!=null?String(s.comparedWithUploadId):"auto"},[s.unfollowerBaseline,s.comparedWithUploadId]),[_,ae]=b.useState(()=>s.filters.unfollower_baseline??X);b.useEffect(()=>{ae(s.filters.unfollower_baseline??X)},[s.id,s.filters.unfollower_baseline,X]);const G=s.filters.unfollower_baseline??X,ye=g||u||_===G,Ne=b.useMemo(()=>Qe(s.compareFromOptions),[s.compareFromOptions]),ve=()=>{Q.get(route("audit.upload.show",s.id),{unfollower_baseline:_,q:o||void 0,per_page:s.filters.perPage,followers_page:1,following_page:1,non_followers_page:1,unfollowers_page:1,new_followers_page:1},{preserveScroll:!0})},S="paper-grain overflow-hidden rounded-[1.25rem] border border-sky-200/60 bg-[var(--app-surface-elevated)] shadow-[0_1px_1px_rgba(15,23,42,0.03)] transition-colors duration-500 dark:border-indigo-500/22 dark:bg-[var(--app-surface-elevated)]",C="border-zinc-200/80 bg-[var(--app-table-head)] hover:bg-[var(--app-table-head)] dark:border-white/[0.06] dark:bg-white/[0.03] dark:hover:bg-white/[0.03]",F="border-zinc-100 dark:border-white/[0.04] hover:bg-zinc-50/70 dark:hover:bg-white/[0.03]",_e="font-display",x="whitespace-nowrap px-4 py-3 text-[11px] font-semibold leading-none tracking-wide text-slate-500 sm:px-5 sm:text-[0.8125rem] dark:text-slate-400",L="text-[0.8125rem] font-semibold leading-snug tracking-tight text-slate-900 sm:text-sm dark:text-slate-100",P="whitespace-nowrap text-[0.8125rem] font-medium tabular-nums leading-snug text-slate-600 sm:text-sm dark:text-slate-400",f="px-4 py-3 sm:px-5 sm:py-3.5",T=l(x,"w-12 text-center sm:w-16"),$=l(f,"w-12 text-center text-[0.8125rem] font-semibold tabular-nums text-slate-600 sm:w-16 sm:text-sm dark:text-slate-400"),a=s.status==="completed",Se=s.status==="processing"?"Hang tightâlarger ZIPs take a minute. This page updates on its own; you can leave the tab open.":"Everything you see here belongs to this upload only. Older exports never get blended into these lists.";return e.jsxs(e.Fragment,{children:[e.jsx(Ce,{title:`Import #${s.id}`}),e.jsx("div",{className:"min-w-0",children:e.jsxs(Le,{className:"gap-7 sm:gap-9",children:[e.jsxs(J.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.38,ease:ee},className:He,children:[e.jsxs("div",{className:"min-w-0 max-w-2xl space-y-1",children:[e.jsx("p",{className:"text-[11px] font-semibold uppercase tracking-[0.12em] text-slate-400 dark:text-slate-500",children:"This upload"}),e.jsx("p",{className:"text-sm leading-relaxed text-slate-600 dark:text-slate-400",children:Se})]}),e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4",children:[e.jsxs(Fe,{href:"/audit/upload",className:"inline-flex items-center gap-2 rounded-lg px-2 py-1.5 text-sm font-medium text-indigo-700 transition hover:bg-indigo-50/90 hover:text-indigo-900 dark:text-indigo-300 dark:hover:bg-indigo-950/40 dark:hover:text-indigo-100",children:[e.jsx(Me,{className:"h-4 w-4 shrink-0",strokeWidth:2}),"Back to uploads"]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("span",{className:"rounded-full border border-slate-200/90 bg-white px-2.5 py-0.5 text-[10px] font-semibold uppercase tracking-[0.12em] text-slate-600 dark:border-slate-700 dark:bg-slate-900 dark:text-slate-400",children:"Snapshot"}),e.jsxs("span",{className:"rounded-full border border-slate-200/80 bg-white/80 px-2.5 py-0.5 font-mono text-[11px] text-slate-600 dark:border-white/10 dark:bg-white/5 dark:text-slate-400",children:["#",s.id]}),g?e.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-amber-200/90 bg-amber-50/90 px-2.5 py-0.5 text-[11px] font-semibold text-amber-900 dark:border-amber-500/30 dark:bg-amber-950/40 dark:text-amber-100",children:[e.jsx(y,{className:"h-3.5 w-3.5 animate-spin",strokeWidth:2}),"Importingâ¦"]}
31):null,s.status==="completed"&&u?e.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-indigo-200/90 bg-indigo-50/90 px-2.5 py-0.5 text-[11px] font-semibold text-indigo-900 dark:border-indigo-500/30 dark:bg-indigo-950/40 dark:text-indigo-100",children:[e.jsx(y,{className:"h-3.5 w-3.5 animate-spin",strokeWidth:2}),"Computing insightsâ¦"]}):null,s.status==="failed"?e.jsx("span",{className:"rounded-full border border-red-200/90 bg-red-50/90 px-2.5 py-0.5 text-[11px] font-semibold text-red-900 dark:border-red-500/30 dark:bg-red-950/40 dark:text-red-100",children:"Failed"}):null]})]})]}),s.status==="failed"&&s.processingError?e.jsx("p",{className:"rounded-xl border border-red-200/80 bg-red-50/80 px-4 py-3 text-sm text-red-900 dark:border-red-500/25 dark:bg-red-950/30 dark:text-red-100",children:s.processingError}):null,s.analyticsStatus==="failed"&&s.analyticsError?e.jsx("p",{className:"rounded-xl border border-amber-200/80 bg-amber-50/80 px-4 py-3 text-sm text-amber-950 dark:border-amber-500/25 dark:bg-amber-950/30 dark:text-amber-100",children:s.analyticsError}):null,e.jsxs("section",{"aria-label":"Snapshot counts",className:"grid min-w-0 grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-5 lg:grid-cols-3 xl:grid-cols-5 xl:gap-6",children:[e.jsx("button",{type:"button",onClick:()=>p("unfollowers"),disabled:!a,className:l("w-full rounded-xl text-left transition focus:outline-none focus-visible:ring-2 focus-visible:ring-sky-500/40 focus-visible:ring-offset-2 focus-visible:ring-offset-slate-50 dark:focus-visible:ring-offset-slate-950",!a&&"cursor-not-allowed opacity-60",i==="unfollowers"&&"ring-2 ring-sky-500/35 ring-offset-2 ring-offset-slate-50 dark:ring-sky-400/30 dark:ring-offset-slate-950"),children:e.jsx(B,{label:"Unfollowers",value:!a||u?"â¦":s.unfollowersCount.toLocaleString(),helper:"In last export â not in this one",icon:he,tone:"slate",sparkline:q(s.unfollowersCount+s.id*11)})}),e.jsx("button",{type:"button",onClick:()=>p("non-followers"),disabled:!a,className:l("w-full rounded-xl text-left transition focus:outline-none focus-visible:ring-2 focus-visible:ring-sky-500/40 focus-visible:ring-offset-2 focus-visible:ring-offset-slate-50 dark:focus-visible:ring-offset-slate-950",!a&&"cursor-not-allowed opacity-60",i==="non-followers"&&"ring-2 ring-sky-500/35 ring-offset-2 ring-offset-slate-50 dark:ring-sky-400/30 dark:ring-offset-slate-950"),children:e.jsx(B,{label:"Non-followers",value:!a||u?"â¦":s.nonFollowersCount.toLocaleString(),helper:"You follow â they donât follow back",icon:xe,tone:"amber",sparkline:q(s.nonFollowersCount+s.id*13)})}),e.jsx("button",{type:"button",onClick:()=>p("new-followers"),disabled:!a,className:l("w-full rounded-xl text-left transition focus:outline-none focus-visible:ring-2 focus-visible:ring-sky-500/40 focus-visible:ring-offset-2 focus-visible:ring-offset-slate-50 dark:focus-visible:ring-offset-slate-950",!a&&"cursor-not-allowed opacity-60",i==="new-followers"&&"ring-2 ring-sky-500/35 ring-offset-2 ring-offset-slate-50 dark:ring-sky-400/30 dark:ring-offset-slate-950"),children:e.jsx(B,{label:"New followers",value:!a||u?"â¦":s.newFollowersCount.toLocaleString(),helper:"In this export â not in baseline",icon:de,tone:"violet",sparkline:q(s.newFollowersCount+s.id*15)})}),e.jsx("button",{type:"button",onClick:()=>p("followers"),disabled:!a,className:l("w-full rounded-xl text-left transition focus:outline-none focus-visible:ring-2 focus-visible:ring-sky-500/40 focus-visible:ring-offset-2 focus-visible:ring-offset-slate-50 dark:focus-visible:ring-offset-slate-950",!a&&"cursor-not-allowed opacity-60",i==="followers"&&"ring-2 ring-sky-500/35 ring-offset-2 ring-offset-slate-50 dark:ring-sky-400/30 dark:ring-offset-slate-950"),children:e.jsx(B,{label:"Followers",value:g?"â¦":s.followersCount.toLocaleString(),helper:"Opens this list below",icon:pe,tone:"sky",sparkline:q(s.followersCount+s.id*17),emphasis:i==="followers"?"primary":"default"})}),e.jsx("button",{type:"button",onClick:()=>p("following"),disabled:!a,className:l("w-full rounded-xl text-left transition focus:outline-none focus-visible:ring-2 focus-visible:ring-sky-500/40 focu
31s-visible:ring-offset-2 focus-visible:ring-offset-slate-50 dark:focus-visible:ring-offset-slate-950",!a&&"cursor-not-allowed opacity-60",i==="following"&&"ring-2 ring-sky-500/35 ring-offset-2 ring-offset-slate-50 dark:ring-sky-400/30 dark:ring-offset-slate-950"),children:e.jsx(B,{label:"Following",value:g?"â¦":s.followingCount.toLocaleString(),helper:"Opens this list below",icon:fe,tone:"emerald",sparkline:q(s.followingCount+s.id*19)})})]}),a?e.jsxs(J.div,{initial:{opacity:0,y:14},animate:{opacity:1,y:0},transition:{duration:.4,delay:.04,ease:ee},className:l(ge,"px-3 py-3 sm:px-4 sm:py-3"),children:[e.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-12 bg-gradient-to-r from-cyan-400/10 via-violet-400/8 to-transparent"}),e.jsx("div",{className:"relative",children:e.jsxs("div",{className:Ke,children:[e.jsx("h2",{className:"mb-2 text-sm font-semibold tracking-tight text-slate-900 dark:text-white",children:e.jsx("span",{className:"bg-gradient-to-br from-slate-950 via-sky-800 to-slate-800 bg-clip-text text-transparent dark:from-white dark:via-sky-300 dark:to-slate-200",children:"How this snapshot is compared"})}),e.jsxs("div",{className:"rounded-lg border border-slate-200/60 bg-slate-50/90 p-2 dark:border-white/[0.06] dark:bg-black/20 sm:p-2.5",children:[e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:gap-2",children:[e.jsxs("div",{className:"min-w-0 flex-1 space-y-1",children:[e.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-[0.1em] text-slate-500 dark:text-slate-400",children:"Baseline"}),e.jsx("label",{className:"sr-only",htmlFor:"unfollower-baseline",children:"Choose baseline export for unfollowers and new followers"}),e.jsxs("select",{id:"unfollower-baseline",className:l("h-9 w-full rounded-lg border border-slate-200/90 bg-white px-2.5 py-1 text-xs font-medium text-slate-900 shadow-sm sm:text-sm","focus:border-sky-500 focus:outline-none focus:ring-2 focus:ring-sky-500/20","disabled:cursor-not-allowed disabled:opacity-60","dark:border-white/10 dark:bg-[#0d1117] dark:text-slate-100"),value:_,disabled:u,onChange:t=>ae(t.target.value),title:G==="none"?"Unfollower comparison is off when baseline is none.":_==="auto"&&s.compareFromOptions[0]?`Auto compares to: ${se(s.compareFromOptions[0],500)}`:void 0,children:[e.jsx("option",{value:"auto",children:Ne}),e.jsx("option",{value:"none",children:"None â donât compare unfollowers"}),s.compareFromOptions.map(t=>e.jsx("option",{value:String(t.id),children:se(t)},t.id))]})]}),e.jsx("div",{className:"hidden shrink-0 items-center justify-center text-slate-400 sm:flex sm:pb-1","aria-hidden":!0,children:e.jsx(Ee,{className:"h-4 w-4",strokeWidth:2})}),e.jsxs("div",{className:"min-w-0 flex-1 space-y-1",children:[e.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-[0.1em] text-slate-500 dark:text-slate-400",children:"This export"}),e.jsxs("div",{className:"flex h-9 min-w-0 items-center gap-2 rounded-lg border border-sky-200/75 bg-white px-2.5 shadow-sm dark:border-sky-500/20 dark:bg-sky-950/20",title:s.displayName&&s.originalFilename?s.originalFilename:s.displayLabel,children:[e.jsx(me,{className:"h-3.5 w-3.5 shrink-0 text-sky-500/80",strokeWidth:1.5}),e.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-xs text-slate-900 dark:text-slate-100",children:s.displayLabel}),(le=s.exportAccountName)!=null&&le.trim()?e.jsx("span",{className:"hidden max-w-[6rem] shrink-0 truncate rounded-md border border-sky-200/60 bg-sky-50/90 px-1.5 py-0.5 text-[10px] font-semibold text-sky-900 dark:border-sky-500/20 dark:bg-sky-950/40 dark:text-sky-200 sm:inline",title:s.exportAccountName,children:s.exportAccountName}):null,e.jsx("time",{className:"shrink-0 tabular-nums text-[11px] text-slate-500 dark:text-slate-400",dateTime:s.uploadedAt,children:s.uploadedAtFormatted})]})]}),e.jsx(Y,{type:"button",className:"h-9 w-full shrink-0 rounded-lg px-4 text-sm font-semibold shadow-sm sm:w-auto sm:min-w-[5.5rem]",disabled:ye,onClick:ve,children:"Find"})]}),_!==G?e.jsx("p",{className:"mt-1.5 text-center text-[11px] text-sky-800 dark:text-sky-300/90 sm:text-left",children:"Unsaved baseline â press Find to apply."}):null]})]})})]}):e.jsxs(J.div,{initial:{opacity:0,y:14}
31,animate:{opacity:1,y:0},transition:{duration:.4,delay:.04,ease:ee},className:l(ge,"flex flex-wrap items-center gap-3 px-5 py-4 text-sm leading-6 text-slate-600 dark:text-slate-400"),children:[e.jsxs("span",{className:"inline-flex min-w-0 items-center gap-2 rounded-xl border border-slate-200/80 bg-white px-3 py-2 font-mono text-[13px] text-slate-800 shadow-sm dark:border-white/10 dark:bg-slate-900 dark:text-slate-200",children:[e.jsx(me,{className:"h-4 w-4 shrink-0 text-slate-400",strokeWidth:1.5}),e.jsx("span",{className:"truncate",children:s.displayLabel})]}),(oe=s.exportAccountName)!=null&&oe.trim()?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-slate-300 dark:text-slate-600",children:"·"}),e.jsx("span",{className:"inline-flex max-w-[14rem] items-center truncate rounded-full border border-sky-200/80 bg-sky-50 px-2.5 py-1 text-xs font-semibold text-sky-900 dark:border-sky-500/25 dark:bg-sky-950/50 dark:text-sky-100",title:s.exportAccountName,children:s.exportAccountName})]}):null,e.jsx("span",{className:"text-slate-300 dark:text-slate-600",children:"·"}),e.jsx("time",{className:"tabular-nums",dateTime:s.uploadedAt,children:s.uploadedAtFormatted})]}),e.jsx($e,{value:i,defaultValue:"unfollowers",onValueChange:t=>p(t),className:"w-full",children:e.jsxs(Ie,{title:"Lists in this export",headerClassName:"border-b border-slate-200/50 pb-3 pt-3 sm:items-center sm:px-5 sm:pb-3 sm:pt-4 dark:border-white/[0.06]",titleClassName:"bg-gradient-to-br from-slate-950 via-sky-700 to-slate-800 bg-clip-text text-lg font-semibold tracking-[-0.03em] text-transparent sm:text-xl dark:from-white dark:via-sky-300 dark:to-slate-200",className:l(_e,"paper-grain rounded-[1.25rem] border-sky-200/55 bg-[var(--app-surface-elevated)] shadow-[0_1px_2px_rgba(15,23,42,0.04),0_12px_32px_-18px_rgba(59,130,246,0.06)] dark:border-indigo-500/22 dark:bg-[var(--app-surface-elevated)]"),contentClassName:"space-y-4 px-3 pb-4 pt-3 sm:space-y-4 sm:px-5 sm:pb-4 sm:pt-4",actions:e.jsxs("div",{className:"relative w-full min-w-0 sm:max-w-[min(100%,20rem)] lg:max-w-sm",children:[e.jsx(Ue,{className:"pointer-events-none absolute left-3 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-slate-400 sm:left-3.5 sm:h-4 sm:w-4",strokeWidth:2}),e.jsx(Pe,{type:"search",value:r,onChange:t=>c(t.target.value),placeholder:"Search username, link, dateâ¦",className:"h-9 w-full border-slate-200/90 py-2 pl-9 pr-3 text-sm dark:border-white/10 sm:pl-10 sm:pr-3.5",autoComplete:"off",disabled:!a})]}),children:[e.jsx("div",{className:"min-w-0",children:e.jsxs(ze,{className:"grid min-h-[2.5rem] w-full grid-cols-2 gap-0.5 rounded-xl border border-slate-200/60 bg-slate-100/60 p-0.5 shadow-[inset_0_1px_2px_rgba(15,23,42,0.035)] dark:border-white/[0.07] dark:bg-slate-900/60 sm:grid-cols-3 xl:grid-cols-5",children:[e.jsx(U,{value:"unfollowers",className:"h-full w-full justify-start gap-0 rounded-[0.65rem] px-2 py-1.5 text-xs font-semibold tracking-tight sm:px-3 sm:py-2 sm:text-sm",disabled:!a,children:e.jsxs("span",{className:"flex w-full min-w-0 items-center gap-2 sm:gap-2.5",children:[e.jsx("span",{className:l(E,"border-slate-300/70 from-white to-slate-100/95 text-slate-800 dark:border-slate-600 dark:from-slate-800 dark:to-slate-950 dark:text-slate-100"),children:e.jsx(he,{className:R,strokeWidth:2,"aria-hidden":!0})}),e.jsx("span",{className:"min-w-0 flex-1 truncate text-left",children:"Unfollowers"}),e.jsx("span",{className:"shrink-0 rounded-md bg-white/90 px-1.5 py-0.5 text-[10px] font-semibold tabular-nums text-slate-800 shadow-sm dark:bg-white/10 dark:text-slate-100 sm:px-2 sm:text-[11px]",children:ke})]})}),e.jsx(U,{value:"non-followers",className:"h-full w-full justify-start gap-0 rounded-[0.65rem] px-2 py-1.5 text-xs font-semibold tracking-tight sm:px-3 sm:py-2 sm:text-sm",disabled:!a,children:e.jsxs("span",{className:"flex w-full min-w-0 items-center gap-2 sm:gap-2.5",children:[e.jsx("span",{className:l(E,"border-amber-200/90 from-amber-50/95 to-amber-100/60 text-amber-950 dark:border-amber-900/35 dark:from-amber-950/45 dark:to-amber-950/25 dark:text-amber-100"),children:e.jsx(xe,{className:R,strokeWidth:2,"aria-hidden":!0})}),e.jsx("span",{className:"min-w-0 flex-1 truncate text-left",children:"Non-followers"}),e.jsx("span",{className:"shrink-0 rounded-md bg-white/90 px-1.5 py-0.5 text-[10px] font-semibold tabular-nums text-slate-800 shadow-sm dark:bg-white/10 dark:text-slate-100 sm:px-2 sm:text-[11px]",children:be})]})}),e.jsx(U,{value:"new-followers",className:"h-full w-full justify-start gap-0 rounded-[0.65rem] px-2 py-1.5 text-xs font-semibold tracking-tight sm:px-3 sm:py-2 sm:text-sm",disabled:!a,children:e.jsxs("span",{className:"flex w-full min-w-0 items-center gap-2 sm:gap-2.5",children:[e.jsx("span",{className:l(E,"border-violet-200/90 from-violet-50/95 to-violet-100/55 text-violet-950 dar
31k:border-violet-800/40 dark:from-violet-950/50 dark:to-violet-950/25 dark:text-violet-100"),children:e.jsx(de,{className:R,strokeWidth:2,"aria-hidden":!0})}),e.jsx("span",{className:"min-w-0 flex-1 truncate text-left",children:"New followers"}),e.jsx("span",{className:"shrink-0 rounded-md bg-white/90 px-1.5 py-0.5 text-[10px] font-semibold tabular-nums text-slate-800 shadow-sm dark:bg-white/10 dark:text-slate-100 sm:px-2 sm:text-[11px]",children:je})]})}),e.jsx(U,{value:"followers",className:"h-full w-full justify-start gap-0 rounded-[0.65rem] px-2 py-1.5 text-xs font-semibold tracking-tight sm:px-3 sm:py-2 sm:text-sm",disabled:!a,children:e.jsxs("span",{className:"flex w-full min-w-0 items-center gap-2 sm:gap-2.5",children:[e.jsx("span",{className:l(E,"border-sky-200/90 from-sky-50/95 to-sky-100/55 text-sky-950 dark:border-sky-800/40 dark:from-sky-950/50 dark:to-sky-950/25 dark:text-sky-100"),children:e.jsx(pe,{className:R,strokeWidth:2,"aria-hidden":!0})}),e.jsx("span",{className:"min-w-0 flex-1 truncate text-left",children:"Followers"}),e.jsx("span",{className:"shrink-0 rounded-md bg-white/90 px-1.5 py-0.5 text-[10px] font-semibold tabular-nums text-slate-800 shadow-sm dark:bg-white/10 dark:text-slate-100 sm:px-2 sm:text-[11px]",children:we})]})}),e.jsx(U,{value:"following",className:"h-full w-full justify-start gap-0 rounded-[0.65rem] px-2 py-1.5 text-xs font-semibold tracking-tight sm:px-3 sm:py-2 sm:text-sm",disabled:!a,children:e.jsxs("span",{className:"flex w-full min-w-0 items-center gap-2 sm:gap-2.5",children:[e.jsx("span",{className:l(E,"border-emerald-200/90 from-emerald-50/95 to-emerald-100/55 text-emerald-950 dark:border-emerald-900/35 dark:from-emerald-950/45 dark:to-emerald-950/25 dark:text-emerald-100"),children:e.jsx(fe,{className:R,strokeWidth:2,"aria-hidden":!0})}),e.jsx("span",{className:"min-w-0 flex-1 truncate text-left",children:"Following"}),e.jsx("span",{className:"shrink-0 rounded-md bg-white/90 px-1.5 py-0.5 text-[10px] font-semibold tabular-nums text-slate-800 shadow-sm dark:bg-white/10 dark:text-slate-100 sm:px-2 sm:text-[11px]",children:ue})]})})]})}),o&&a?e.jsx("p",{className:"text-[12px] font-medium leading-relaxed text-slate-500 dark:text-slate-400",children:i==="unfollowers"?e.jsxs(e.Fragment,{children:["Matching"," ",e.jsx("strong",{className:"font-semibold text-slate-800 dark:text-slate-200",children:(s.unfollowers.total??0).toLocaleString()})," ","unfollower rows (of ",s.unfollowersCount.toLocaleString()," total)"]}):i==="non-followers"?e.jsxs(e.Fragment,{children:["Matching"," ",e.jsx("strong",{className:"font-semibold text-slate-800 dark:text-slate-200",children:(s.nonFollowers.total??0).toLocaleString()})," ","non-follower rows (of ",s.nonFollowersCount.toLocaleString()," total)"]}):i==="new-followers"?e.jsxs(e.Fragment,{children:["Matching"," ",e.jsx("strong",{className:"font-semibold text-slate-800 dark:text-slate-200",children:(s.newFollowers.total??0).toLocaleString()})," ","new follower rows (of ",s.newFollowersCount.toLocaleString()," total)"]}):i==="followers"?e.jsxs(e.Fragment,{children:["Matching"," ",e.jsx("strong",{className:"font-semibold text-slate-800 dark:text-slate-200",children:(s.followers.total??0).toLocaleString()})," ","follower rows (of ",s.followersCount.toLocaleString()," total)"]}):e.jsxs(e.Fragment,{children:["Matching"," ",e.jsx("strong",{className:"font-semibold text-slate-800 dark:text-slate-200",children:(s.following.total??0).toLocaleString()})," ","following rows (of ",s.followingCount.toLocaleString()," total)"]})}):null,e.jsx("div",{className:"min-w-0",children:a?e.jsxs(e.Fragment,{children:[e.jsx(W,{value:"unfollowers",className:"m-0 outline-none",children:s.analyticsStatus==="failed"?e.jsx("p",{className:"px-4 py-10 text-center text-sm text-red-600 dark:text-red-400",children:s.analyticsError??"Could not compute unfollowers."}):s.analyticsStatus==="pending"||s.analyticsStatus==="processing"?e.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 rounded-2xl border border-dashed border-slate-200/90 py-16 text-center dark:border-white/10",children:[e.jsx(y,{className:"h-10 w-10 animate-spin text-rose-600 dar
31k:text-rose-400",strokeWidth:1.5}),e.jsx("p",{className:"max-w-md text-sm text-slate-600 dark:text-slate-400",children:"Comparing this export to your previous oneâ¦"})]}):e.jsxs(e.Fragment,{children:[e.jsx(Z,{uploadId:s.id,listExportKey:"unfollowers",perPage:s.perPage,perPageOptions:s.perPageOptions,disabled:!a,qTrim:o,unfollowerBaseline:s.filters.unfollower_baseline}),e.jsxs("div",{className:S,children:[e.jsx("div",{className:"max-h-[min(28rem,70vh)] overflow-auto",children:e.jsx("div",{className:"overflow-x-auto overscroll-x-contain [-webkit-overflow-scrolling:touch]",children:e.jsxs(z,{className:"min-w-[360px]",children:[e.jsx(I,{children:e.jsxs(h,{className:C,children:[e.jsx(d,{className:T,children:"S.No"}),e.jsx(d,{className:x,children:"Username"}),e.jsx(d,{className:x,children:"Profile"}),e.jsx(d,{className:x,children:"Recorded"})]})}),e.jsx(M,{children:te.length===0?e.jsx(h,{children:e.jsx(n,{colSpan:4,className:"py-16 text-center text-[0.8125rem] font-medium leading-relaxed text-slate-500 sm:text-sm dark:text-slate-400",children:o?"No rows match your search.":s.completedExportsForAccount<=1?"At least two completed exports are required to find unfollowersâwe compare this upload to your previous file. Upload another ZIP for this account when you're ready.":((ne=s.analyticsMeta)==null?void 0:ne.previousUploadId)==null?"Unfollowers comparison isnât active. Use the comparison options above to set Auto or choose a previous export to compare against.":s.unfollowersCount===0?"No unfollowers detected between this export and the previous one.":"No rows match your search."})}):te.map((t,w)=>e.jsxs(h,{className:F,children:[e.jsx(n,{className:$,children:H(s.unfollowers,w)}),e.jsx(n,{className:f,children:e.jsx("span",{className:L,children:O(t.value)})}),e.jsx(n,{className:l("max-w-[1px]",f),children:e.jsx(K,{href:t.href})}),e.jsx(n,{className:l(f,P),children:A(t.timestamp)})]},D("u",t,w)))})]})})}),e.jsx(V,{label:"unfollower",paginator:s.unfollowers,pageParam:"unfollowers_page",uploadId:s.id,q:o,perPage:s.perPage,pages:m,unfollowerBaseline:s.filters.unfollower_baseline??void 0})]})]})}),e.jsx(W,{value:"non-followers",className:"m-0 outline-none",children:s.analyticsStatus==="failed"?e.jsx("p",{className:"px-4 py-10 text-center text-sm text-red-600 dark:text-red-400",children:s.analyticsError??"Could not compute non-followers."}):s.analyticsStatus==="pending"||s.analyticsStatus==="processing"?e.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 rounded-2xl border border-dashed border-slate-200/90 py-16 text-center dark:border-white/10",children:[e.jsx(y,{className:"h-10 w-10 animate-spin text-amber-600 dark:text-amber-400",strokeWidth:1.5}),e.jsx("p",{className:"max-w-md text-sm text-slate-600 dark:text-slate-400",children:"Computing who you follow that doesnât follow you backâ¦"})]}):e.jsxs(e.Fragment,{children:[e.jsx(Z,{uploadId:s.id,listExportKey:"non_followers",perPage:s.perPage,perPageOptions:s.perPageOptions,disabled:!a,qTrim:o,unfollowerBaseline:s.filters.unfollower_baseline}),e.jsxs("div",{className:S,children:[e.jsx("div",{className:"max-h-[min(28rem,70vh)] overflow-auto",children:e.jsx("div",{className:"overflow-x-auto overscroll-x-contain [-webkit-overflow-scrolling:touch]",children:e.jsxs(z,{className:"min-w-[360px]",children:[e.jsx(I,{children:e.jsxs(h,{className:C,children:[e.jsx(d,{className:T,children:"S.No"}),e.jsx(d,{className:x,children:"Username"}),e.jsx(d,{className:x,children:"Profile"}),e.jsx(d,{className:x,children:"Recorded"})]})}),e.jsx(M,{children:j.length===0?e.jsx(h,{children:e.jsx(n,{colSpan:4,className:"py-16 text-center text-[0.8125rem] font-medium leading-relaxed text-slate-500 sm:text-sm dark:text-slate-400",children:s.nonFollowersCount===0?"Everyone you follow follows you back, or lists are still loading.":"No rows match your search."})}):j.map((t,w)=>e.jsxs(h,{className:F,children:[e.jsx(n,{className:$,children:H(s.nonFollowers,w)}),e.jsx(n,{className:f,children:e.jsx("span",{className:L,children:O(t.title)})}),e.jsx(n,{className:l("max-w-[1px]",f),children:e.jsx(K,{href:t.href})}),e.jsx(n,{className:l(f,P),children:A(t.timestamp)})]},D("n",t,w)))})]})})}),e.jsx(V,{label:"non-follower",paginator:s.nonFollowers,pageParam:"non_followers_page",uploadId:s.id,q:o,perPage:s.perPage,pages:m,unfollowerBaseline:s.filters.unfollower_baseline??void 0})]})]})}),e.jsx(W,{value:"new-followers",className:"m-0 outline-none",children:s.analyticsStatus==="failed"?e.jsx("p",{className:"px-4 py-10 text-center text-sm text-red-600 dark:text-red-400",children:s.analyticsError??"Could not compute new followers."}):s.analyticsStatus==="pending"||s.analyticsStatus==="processing"?e.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 rounded-2xl border border-dashed border-slate-200/90 py-16 text-center dark:border-white/10",children:[e.jsx(y,{className:"h-10 w-10 animate-spin text-violet-600 dar
31k:text-violet-400",strokeWidth:1.5}),e.jsx("p",{className:"max-w-md text-sm text-slate-600 dark:text-slate-400",children:"Comparing this export to your baselineâ¦"})]}):e.jsxs(e.Fragment,{children:[e.jsx(Z,{uploadId:s.id,listExportKey:"new_followers",perPage:s.perPage,perPageOptions:s.perPageOptions,disabled:!a,qTrim:o,unfollowerBaseline:s.filters.unfollower_baseline}),e.jsxs("div",{className:S,children:[e.jsx("div",{className:"max-h-[min(28rem,70vh)] overflow-auto",children:e.jsx("div",{className:"overflow-x-auto overscroll-x-contain [-webkit-overflow-scrolling:touch]",children:e.jsxs(z,{className:"min-w-[360px]",children:[e.jsx(I,{children:e.jsxs(h,{className:C,children:[e.jsx(d,{className:T,children:"S.No"}),e.jsx(d,{className:x,children:"Username"}),e.jsx(d,{className:x,children:"Profile"}),e.jsx(d,{className:x,children:"Recorded"})]})}),e.jsx(M,{children:re.length===0?e.jsx(h,{children:e.jsx(n,{colSpan:4,className:"py-16 text-center text-[0.8125rem] font-medium leading-relaxed text-slate-500 sm:text-sm dark:text-slate-400",children:((ie=s.analyticsMeta)==null?void 0:ie.previousUploadId)==null?"Choose a baseline export above to see who started following you since then.":s.newFollowersCount===0?"No new followers detected between this export and the baseline.":"No rows match your search."})}):re.map((t,w)=>e.jsxs(h,{className:F,children:[e.jsx(n,{className:$,children:H(s.newFollowers,w)}),e.jsx(n,{className:f,children:e.jsx("span",{className:L,children:O(t.value)})}),e.jsx(n,{className:l("max-w-[1px]",f),children:e.jsx(K,{href:t.href})}),e.jsx(n,{className:l(f,P),children:A(t.timestamp)})]},D("nf",t,w)))})]})})}),e.jsx(V,{label:"new follower",paginator:s.newFollowers,pageParam:"new_followers_page",uploadId:s.id,q:o,perPage:s.perPage,pages:m,unfollowerBaseline:s.filters.unfollower_baseline??void 0})]})]})}),e.jsx(W,{value:"followers",className:"m-0 outline-none",children:e.jsxs(e.Fragment,{children:[e.jsx(Z,{uploadId:s.id,listExportKey:"followers",perPage:s.perPage,perPageOptions:s.perPageOptions,disabled:!a,qTrim:o,unfollowerBaseline:s.filters.unfollower_baseline}),e.jsxs("div",{className:S,children:[e.jsx("div",{className:"max-h-[min(28rem,70vh)] overflow-auto",children:e.jsx("div",{className:"overflow-x-auto overscroll-x-contain [-webkit-overflow-scrolling:touch]",children:e.jsxs(z,{className:"min-w-[360px]",children:[e.jsx(I,{children:e.jsxs(h,{className:C,children:[e.jsx(d,{className:T,children:"S.No"}),e.jsx(d,{className:x,children:"Username"}),e.jsx(d,{className:x,children:"Profile"}),e.jsx(d,{className:x,children:"Recorded"})]})}),e.jsx(M,{children:k.length===0?e.jsx(h,{children:e.jsx(n,{colSpan:4,className:"py-16 text-center text-[0.8125rem] font-medium leading-relaxed text-slate-500 sm:text-sm dark:text-slate-400",children:s.followersCount===0?"No follower rows in this export.":"No rows match your search."})}):k.map((t,w)=>e.jsxs(h,{className:F,children:[e.jsx(n,{className:$,children:H(s.followers,w)}),e.jsx(n,{className:f,children:e.jsx("span",{className:L,children:O(t.value)})}),e.jsx(n,{className:l("max-w-[1px]",f),children:e.jsx(K,{href:t.href})}),e.jsx(n,{className:l(f,P),children:A(t.timestamp)})]},D("f",t,w)))})]})})}),e.jsx(V,{label:"follower",paginator:s.followers,pageParam:"followers_page",uploadId:s.id,q:o,perPage:s.perPage,pages:m,unfollowerBaseline:s.filters.unfollower_baseline??void 0})]})]})}),e.jsx(W,{value:"following",className:"m-0 outline-none",children:e.jsxs(e.Fragment,{children:[e.jsx(Z,{uploadId:s.id,listExportKey:"following",perPage:s.perPage,perPageOptions:s.perPageOptions,disabled:!a,qTrim:o,unfollowerBaseline:s.filters.unfollower_baseline}),e.jsxs("div",{className:S,children:[e.jsx("div",{className:"max-h-[min(28rem,70vh)] overflow-auto",children:e.jsx("div",{className:"overflow-x-auto overscroll-x-contain [-webkit-overflow-scrolling:touch]",children:e.jsxs(z,{className:"min-w-[360px]",children:[e.jsx(I,{children:e.jsxs(h,{className:C,children:[e.jsx(d,{className:T,children:"S.No"}),e.jsx(d,{className:x,children:"Username"}),e.jsx(d,{className:x,children:"Profile"}),e.jsx(d,{className:x,children:"Recorded"})]})}),e.jsx(M,{children:v.length===0?e.jsx(h,{children:e.jsx(n,{colSpan:4,className:"py-16 text-center text-[0.8125rem] font-medium leading-relaxed text-slate-500 sm:text-sm dark:text-slate-400",children:s.followingCount===0?"No following rows in this export.":"No rows match your search."})}):v.map((t,w)=>e.jsxs(h,{className:F,children:[e.jsx(n,{className:$,children:H(s.following,w)}),e.jsx(n,{className:f,children:e.jsx("span",{className:L,children:O(t.title)})}),e.jsx(n,{className:l("max-w-[1px]",f),children:e.jsx(K,{href:t.href})}),e.jsx(n,{className:l(f,P),children:A(t.timestamp)})]},D("g",t,w)))})]})})}),e.jsx(V,{label:"following",paginator:s.following,pageParam:"following_page",uploadId:s.id,q:o,perPage:s.perPage,pages:m,unfollowerBaseline:s.filters.unfollower_baseline??void 0})]})]})})]}):e.jsx("div",{className:"flex flex-col items-center justify-center gap-3 rounded-2xl border border-dashed border-slate-200/90 py-20 text-center dark:border-white/10",children:s.status==="processing"?e.jsxs(e.Fragment,{children:[e.jsx(y,{className:"h-10 w-10 animate-spin text-sky-600 dark:text-sky-400",strokeWidth:1.5}
31),e.jsx("p",{className:"max-w-sm text-sm text-slate-600 dark:text-slate-400",children:"Parsing your ZIP and saving lists to the database. You can leave this page openâcounts will appear when finished."})]}):e.jsx("p",{className:"text-sm text-slate-600 dark:text-slate-400",children:"No list data to display for this import."})})})]})})]})})]})};Ye.layout=s=>e.jsx(Te,{children:s});export{Ye 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.