1import{r,a as M,c as Q,j as e,y as V,G as Y,P as K,F as X,E as ee,h as te,s as k,Q as w}from"./index-DocTL6Xp.js";import{P as se,a as ae,b as C,c as ne,d as re,e as oe,f as le}from"./pagination-v-dvXuWQ.js";import"./chevron-left-DuzCoyNm.js";const s={bg:"#FAF9F5",surface:"#FFFFFF",ink:"#1A1A1A",inkMuted:"#6B6B68",accent:"#2563EB",border:"#E8E5DD",borderStrong:"#D8D3C5"};function pe(){const[g,_]=r.useState(null),[D,P]=r.useState(!0),[S,$]=r.useState([]),[y,E]=r.useState("alphabetical_asc"),[p,T]=r.useState(""),[x,L]=r.useState("all"),[u,I]=r.useState("all"),[n,h]=r.useState(1),[l,B]=r.useState(50),[F,W]=r.useState(null),[G,U]=r.useState(new Date);M(g);const A=Q(),b={background:s.surface,color:s.ink,border:`1px solid ${s.borderStrong}`,borderRadius:"16px",fontFamily:"'Inter', system-ui, sans-serif"},O={success:(t,a)=>w.success(t,{description:a,style:b}),error:(t,a)=>w.error(t,{description:a,style:b}),info:(t,a)=>w(t,{description:a,style:b})};M(g),r.useEffect(()=>{document.title="Top 100 Drops - GoExpired.com"},[]),r.useEffect(()=>{(async()=>{const{data:{user:a}}=await k.auth.getUser();_(a||null),a&&await R(),P(!1)})()},[]),r.useEffect(()=>{h(1)},[p,y,x,u]);const R=async()=>{try{const{data:t,error:a}=await k.from("premium_dropped").select("domain, description, length, taken, available_api").order("domain",{ascending:!0}).limit(500);if(a)throw a;const o=(t||[]).map(d=>({domain:d.domain,description:d.description,length:d.length,taken:!!d.taken,available_api:d.available_api??null}));$(o);const{data:i}=await k.from("premium_dropped").select("created_at").order("created_at",{ascending:!1}).limit(1).maybeSingle();if(i!=null&&i.created_at){const d=new Date(i.created_at);W(new Date(d.getTime()+24*60*60*1e3))}}catch(t){console.error(t),O.error("Error","Failed to load curated drops")}};r.useEffect(()=>{const t=setInterval(()=>U(new Date),1e3);return()=>clearInterval(t)},[]);const m=r.useMemo(()=>{let t=[...S];if(p.trim()&&(t=t.filter(a=>a.domain.toLowerCase().includes(p.toLowerCase()))),x!=="all"){const a=parseInt(x);t=t.filter(o=>o.length===a)}return u==="available"?t=t.filter(a=>!a.taken&&a.available_api===!0):u==="taken"&&(t=t.filter(a=>a.taken||a.available_api===!1)),t.sort((a,o)=>{switch(y){case"length_asc":return(a.length||0)-(o.length||0);case"length_desc":return(o.length||0)-(a.length||0);case"alphabetical_asc":return a.domain.localeCompare(o.domain);case"alphabetical_desc":return o.domain.localeCompare(a.domain)}return 0}),t},[S,p,y,x,u]),c=l==="all"?1:Math.ceil(m.length/l),v=l==="all"?m:m.slice((n-1)*l,n*l),Z=()=>{const t=[];if(c<=7)for(let a=1;a<=c;a++)t.push(a);else{t.push(1),n>3&&t.push("ellipsis");const a=Math.max(2,n-1),o=Math.min(c-1,n+1);for(let i=a;i<=o;i++)t.push(i);n<c-2&&t.push("ellipsis"),t.push(c)}return t},q=t=>`https://www.dynadot.com/domain/search?domain=${t.toLowerCase()}&rscreg=domaindingo`;if(D)return e.jsx("div",{style:{backgroundColor:s.bg,color:s.inkMuted},className:"min-h-screen flex items-center justify-center",children:e.jsx(V,{className:"h-8 w-8 animate-spin"})});const f={backgroundColor:s.surface,border:`1px solid ${s.border}`,color:s.ink};return e.jsxs("div",{style:{backgroundColor:s.bg,color:s.ink,fontFamily:"'Inter', system-ui, sans-serif"},className:"min-h-screen",children:[e.jsx(Y,{}),e.jsxs("main",{children:[e.jsx(K,{title:"Top 100 Drops | GoExpired",description:"Fresh premium expired domains dropping every day - the 100 opportunities worth checking.",path:"/top100drops"}),e.jsxs("section",{className:"max-w-7xl mx-auto px-6 md:px-8 pt-16 md:pt-20 pb-10",children:[e.jsx("h1",{className:"text-5xl md:text-6xl leading-[1.05] tracking-tight mb-4",style:{fontFamily:"'Cormorant', serif",fontWeight:600},children:"Top 100 Drops"}),e.jsx("p",{className:"text-lg max-w-2xl mb-8",style:{color:s.inkMuted,fontFamily:"'Cormorant', serif",fontWeight:500},children:"We scan more than 100,000 dropping domains every day and surface only the best."}),g&&F&&(()=>{const t=Math.max(0,F.getTime()-G.getTime()),a=Math.floor(t/1e3),o=Math.floor(a/3600),i=Math.floor(a%3600/60),d=a%60,N=J=>String(J).padStart(2,"0"),j=t===0,z=j?"#16A34A":s.accent,H=j?"rgba(22,163,74,0.5)":"rgba(37,99,235,0.5)";return e.jsxs("div",{className:"inline-flex items-center gap-2.5 rounded-full px-3.5 py-2 text-xs md:text-[13.5px] mb-6",style:{backgroundColor:s.surface,border:`1px solid ${s.border}`,color:s.inkMuted},children:[e.jsxs("span",{className:"relative inline-flex flex-shrink-0","aria-hidden":!0,
1children:[e.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full",style:{backgroundColor:z}}),e.jsx("span",{className:"absolute inset-0 rounded-full animate-ping",style:{boxShadow:`0 0 0 1.5px ${H}`,opacity:.6}})]}),e.jsx("span",{children:j?"New drop arriving":"Next drop in approximately"}),!j&&e.jsxs("span",{className:"font-semibold tabular-nums tracking-tight",style:{color:s.ink,fontVariantNumeric:"tabular-nums"},children:[N(o),"h",e.jsx("span",{style:{color:s.border},className:"mx-0.5",children:":"}),N(i),"m",e.jsx("span",{style:{color:s.border},className:"mx-0.5",children:":"}),N(d),"s"]})]})})()]}),e.jsx("section",{className:"max-w-7xl mx-auto px-6 md:px-8 pb-24",children:g?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-6",children:[e.jsxs("div",{className:"flex items-center gap-2 px-4 py-2.5 rounded-full flex-1 min-w-[240px]",style:f,children:[e.jsx(X,{className:"w-4 h-4",style:{color:s.inkMuted}}),e.jsx("input",{type:"text",value:p,onChange:t=>T(t.target.value),placeholder:"Search domainsâ¦",className:"bg-transparent outline-none text-sm flex-1",style:{color:s.ink}})]}),e.jsxs("select",{value:y,onChange:t=>E(t.target.value),className:"px-4 py-2.5 rounded-full text-sm outline-none cursor-pointer",style:f,children:[e.jsx("option",{value:"length_asc",children:"Shortest first"}),e.jsx("option",{value:"length_desc",children:"Longest first"}),e.jsx("option",{value:"alphabetical_asc",children:"A-Z"}),e.jsx("option",{value:"alphabetical_desc",children:"Z-A"})]}),e.jsxs("select",{value:x,onChange:t=>L(t.target.value),className:"px-4 py-2.5 rounded-full text-sm outline-none cursor-pointer",style:f,children:[e.jsx("option",{value:"all",children:"Any length"}),e.jsx("option",{value:"6",children:"6 chars"}),e.jsx("option",{value:"7",children:"7 chars"}),e.jsx("option",{value:"8",children:"8 chars"}),e.jsx("option",{value:"9",children:"9 chars"}),e.jsx("option",{value:"10",children:"10 chars"})]}),e.jsxs("select",{value:u,onChange:t=>I(t.target.value),className:"px-4 py-2.5 rounded-full text-sm outline-none cursor-pointer",style:f,children:[e.jsx("option",{value:"all",children:"All domains"}),e.jsx("option",{value:"available",children:"Available only"}),e.jsx("option",{value:"taken",children:"Taken only"})]}),e.jsxs("select",{value:String(l),onChange:t=>{B(t.target.value==="all"?"all":parseInt(t.target.value)),h(1)},className:"px-4 py-2.5 rounded-full text-sm outline-none cursor-pointer",style:f,children:[e.jsx("option",{value:"25",children:"25 per page"}),e.jsx("option",{value:"50",children:"50 per page"}),e.jsx("option",{value:"100",children:"100 per page"}),e.jsx("option",{value:"all",children:"Show all"})]})]}),e.jsxs("p",{className:"text-sm mb-6",style:{color:s.inkMuted},children:[l==="all"?`Showing all ${m.length} drops`:`Showing ${m.length===0?0:(n-1)*l+1}-${Math.min(n*l,m.length)} of ${m.length} drops (Page ${n} of ${Math.max(c,1)})`,p&&` matching "${p}"`]}),v.length===0?e.jsxs("div",{className:"text-center py-20 rounded-2xl",style:{backgroundColor:s.surface,border:`1px solid ${s.border}`},children:[e.jsx("h3",{className:"text-2xl mb-2",style:{fontFamily:"'Cormorant', serif",fontWeight:600},children:"No drops found"}),e.jsx("p",{className:"text-sm",style:{color:s.inkMuted},children:p?"Try adjusting your search criteria.":"No drops are currently available."})]}):e.jsx("div",{className:"rounded-2xl overflow-hidden",style:{backgroundColor:s.surface,border:`1px solid ${s.border}`},children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{style:{backgroundColor:"#F5F2EA",borderBottom:`1px solid ${s.border}`,color:s.inkMuted},children:[e.jsx("th",{className:"text-left font-medium px-4 py-3",children:"Domain"}),e.jsx("th",{className:"text-left font-medium px-4 py-3",children:"Appraise"}),e.jsx("th",{className:"text-left font-medium px-4 py-3",children:"Description"}),e.jsx("th",{className:"text-right font-medium px-4 py-3",children:"Length"}),e.jsx("th",{className:"text-left font-medium px-4 py-3",children:"Available"})]})}),e.jsx("tbody",{children:v.map((t,a)=>{const o=t.taken;return e.jsxs("tr",{style:{borderBottom:a<v.length-1?`1px solid ${s.border}`:void 0},className:"hover:bg-[#FAF7EF] transition-colors",children:[e.jsx("td",{className:"px-4 py-3",children:o?e.jsxs("span",{className:"inline-flex items-center gap-2 font-medium opacity-60",style:{color:s.ink},children:[e.jsx("span",{className:"truncate max-w-[220px] line-through",children:t.domain.toLowerCase()}),e.jsx("span",{className:"text-[10px] uppercase tracking-wide px-1.5 py-0.5 rounded",style:{backgroundColor:s.border,color:s.inkMuted},children:"Taken"})]}):e.jsxs("a",{href:q(t.domain),target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 font-medium hover:underline",style:{color:s.accent},children:[e.jsx("span",{className:"truncate max-w-[220px]",children:t.domain.toLowerCase()}),e.jsx(ee,{className:"w-3 h-3 opacity-60"})]})}),e.jsx("td",{className:"px-4 py-3",children:e.jsx("a",{href:`/appraise-your-domain?domain=${encodeURIComponent(t.domain)}`,target:"_blank",rel:"noopener noreferrer",className:"text-xs hover:underline transition-colors",style:{color:s.accent,fontWeight:500},children:"Appraise"})}),e.jsx("td",{className:"px-4 py-3 max-w-[360px]",style:{color:s.inkMuted},children:e.jsx("span",{className:"line-clamp-2",children:t.description||"Premium domain - perfect for launching your next big idea"})}),e.jsx("td",{className:"px-4 py-3 text-right",style:{color:s.inkMuted},children:t.length??"-"}),e.jsx("td",{className:"px-4 py-3",children:(t.taken?!1:t.available_api)===!0?e.jsx("span",{className:"text-xs font-semibold",style:{color:"#16A34A"},children:"Yes"}):(t.taken?!1:t.available_api)===!1?e.jsx("span",{className:"text-xs font-semibold",style:{color:"#DC2626"},children:"No"}):e.jsx("span",{className:"text-xs",style:{color:s.inkMuted},children:"â"})})]},`${t.domain}-${a}`)})})]})})}),l!=="all"&&c>1&&e.jsx("div",{className:"flex justify-center mt-8",children:e.jsx(se,{children:e.jsxs(ae,{children:[e.jsx(C,{children:e.jsx(ne,{onClick:()=>{n>1&&(h(n-1),window.scrollTo({top:0,behavior:"smooth"}))},className:n===1?"pointer-events-none opacity-50":"cursor-pointer"})}),Z().map((t,a)=>e.jsx(C,{children:t==="ellipsis"?e.jsx(re,{}):e.jsx(oe,{onClick:()=>{h(t),window.scrollTo({top:0,behavior:"smooth"})},isActive:n===t,className:"cursor-pointer",children:t})},a)),e.jsx(C,{children:e.jsx(le,{onClick:()=>{n<c&&(h(n+1),window.scrollTo({top:0,behavior:"smooth"}))},className:n===c?"pointer-events-none opacity-50":"cursor-pointer"})})]})})})]}):e.jsxs("div",{className:"rounded-3xl p-10 md:p-14 text-center max-w-3xl mx-auto",style:{backgroundColor:s.surface,border:`1px solid ${s.border}`,boxShadow:"0 12px 40px rgba(0,0,0,0.06)"},children:[e.jsx("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full text-xs font-medium mb-6",style:{backgroundColor:"#EEF2FF",color:s.accent},children:"Free account required"}),e.jsx("h2",{className:"text-4xl md:text-5xl leading-[1.05] tracking-tight mb-4",style:{fontFamily:"'Cormorant', serif",fontWeight:600},children:"Unlock the Top 100 Drops."}),e.jsx("p",{className:"text-lg mb-8 max-w-xl mx-auto",style:{color:s.inkMuted,fontFamily:"'Cormorant', serif",fontWeight:500},children:"Create a free GoExpired account in seconds and get instant access to our AI-curated list of the top 100 dropped domains - searchable, sortable, and updated daily."}),e.jsx("ul",{className:"text-left max-w-md mx-auto mb-8 space-y-3 text-sm",style:{color:s.ink},children:["Browse the top 100 dropped domains every day","Filter by length, score, and availability","One
1-click straight to register dropped domains","100% free - no credit card, no commitment"].map(t=>e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"inline-flex items-center justify-center w-5 h-5 rounded-full mt-0.5 flex-shrink-0",style:{backgroundColor:s.accent,color:"#fff",fontSize:12},children:"â"}),e.jsx("span",{children:t})]},t))}),e.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-3",children:[e.jsx("button",{onClick:()=>A("/auth"),className:"px-6 py-3 rounded-full text-sm font-medium transition-opacity hover:opacity-90",style:{backgroundColor:s.accent,color:"#fff"},children:"Create free account"}),e.jsx("button",{onClick:()=>A("/auth"),className:"px-6 py-3 rounded-full text-sm font-medium",style:{border:`1px solid ${s.borderStrong}`,color:s.ink,backgroundColor:s.surface},children:"Sign in"})]}),e.jsx("p",{className:"text-xs mt-6",style:{color:s.inkMuted},children:"Already trusted by 1,900+ domain investors worldwide."})]})})]}),e.jsx(te,{})]})}export{pe 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.