1import{r,c as X,a as Y,s as B,j as e,y as ee,G as te,F as se,E as ne,h as ae,bp as re,Q as E}from"./index-DocTL6Xp.js";import{W as le}from"./WatchlistStar-MGMHUZ8K.js";import{P as oe,a as ie,b as A,c as ce,d as de,e as me,f as xe}from"./pagination-v-dvXuWQ.js";import"./useWatchlist-DnFwqyIo.js";import"./chevron-left-DuzCoyNm.js";const s={bg:"#FAF9F5",surface:"#FFFFFF",ink:"#1A1A1A",inkMuted:"#6B6B68",accent:"#2563EB",border:"#E8E5DD",borderStrong:"#D8D3C5"};function _(i){return i?new Date(i).getTime():null}const ue=({endTime:i})=>{const[c,b]=r.useState(null);return r.useEffect(()=>{if(!i)return;const w=()=>{const f=_(i);if(!f)return b({days:0,hours:0,minutes:0,seconds:0});const y=f-Date.now();if(y<=0)return b({days:0,hours:0,minutes:0,seconds:0});b({days:Math.floor(y/864e5),hours:Math.floor(y%864e5/36e5),minutes:Math.floor(y%36e5/6e4),seconds:Math.floor(y%6e4/1e3)})};w();const k=setInterval(w,1e3);return()=>clearInterval(k)},[i]),c?!c.days&&!c.hours&&!c.minutes&&!c.seconds?e.jsx("span",{className:"text-xs font-medium",style:{color:s.inkMuted},children:"Ended"}):e.jsxs("span",{className:"inline-flex items-center gap-1 text-xs font-mono",style:{color:s.ink},children:[e.jsx(re,{className:"w-3 h-3"}),c.days,"d ",c.hours,"h ",c.minutes,"m ",c.seconds,"s"]}):e.jsx("span",{className:"text-xs",style:{color:s.inkMuted},children:"-"})};function je(){const[i,c]=r.useState(null),[b,w]=r.useState(!0),k=X(),[f,y]=r.useState([]),[C,I]=r.useState("time_desc"),[u,D]=r.useState(""),[h,T]=r.useState("all"),[p,O]=r.useState("all"),[W,G]=r.useState([]),[R,U]=r.useState([]),[l,N]=r.useState(1),[d,q]=r.useState(50);Y(i);const S={background:s.surface,color:s.ink,border:`1px solid ${s.borderStrong}`,borderRadius:"16px",boxShadow:"0 8px 32px rgba(0,0,0,0.08)"},H={success:(t,n)=>E.success(t,{description:n,style:S}),error:(t,n)=>E.error(t,{description:n,style:S}),info:(t,n)=>E.info(t,{description:n,style:S})};r.useEffect(()=>{document.title="Top 100 Brandable Expired Auctions - GoExpired.com"},[]),r.useEffect(()=>{(async()=>{const{data:{user:n}}=await B.auth.getUser();c(n||null),await M(n),w(!1)})()},[]),r.useEffect(()=>{N(1)},[u,C,h,p]),r.useEffect(()=>{const t=setInterval(()=>{const n=Date.now();f.some(m=>{const g=_(m.end_time);return!g||g<=n})&&M(i)},1e3);return()=>clearInterval(t)},[f,i==null?void 0:i.id]);const M=async(t=i)=>{var n;try{const a=((n=t==null?void 0:t.email)==null?void 0:n.toLowerCase())==="[email protected]",m=new Date().toISOString(),g=B.from("expired_brandables").select("domain, end_time, age, links, pattern, length, score").gt("end_time",m).order("end_time",{ascending:!0,nullsFirst:!1});a||g.limit(100);const{data:J,error:P}=await g;if(P)throw P;const F=(J||[]).map(o=>({domain:o.domain,end_time:o.end_time,age:o.age,links:o.links,pattern:o.pattern,length:o.length,score:o.score})),K=Array.from(new Set(F.map(o=>o.pattern).filter(Boolean))).sort(),Q=Array.from(new Set(F.map(o=>o.length).filter(o=>o!=null))).sort((o,V)=>o-V);G(K),U(Q),y(F)}catch(a){console.error(a),H.error("Failed to load expired brandables")}},j=r.useMemo(()=>{let t=[...f];if(u.trim()&&(t=t.filter(n=>n.domain.toLowerCase().includes(u.toLowerCase()))),h!=="all"&&(t=t.filter(n=>n.pattern===h)),p!=="all"){const n=parseInt(p);t=t.filter(a=>a.length===n)}return t.sort((n,a)=>{const m=_(n.end_time)||0,g=_(a.end_time)||0;switch(C){case"links_desc":return(a.links||0)-(n.links||0);case"links_asc":return(n.links||0)-(a.links||0);case"alphabetical_asc":return n.domain.localeCompare(a.domain);case"alphabetical_desc":return a.domain.localeCompare(n.domain);case"time_asc":return g-m;case"time_desc":return m-g;case"length_asc":return(n.length||0)-(a.length||0);case"length_desc":return(a.length||0)-(n.length||0);case"age_desc":return(a.age||0)-(n.age||0);case"age_asc":return(n.age||0)-(a.age||0)}return 0}),t},[f,u,C,h,p]),x=d==="all"?1:Math.ceil(j.length/d),L=d==="all"?j:j.slice((l-1)*d,l*d),Z=()=>{const t=[];if(x<=7)for(let n=1;n<=x;n++)t.push(n);else{t.push(1),l>3&&t.push("ellipsis");const n=Math.max(2,l-1),a=Math.min(x-1,l+1);for(let m=n;m<=a;m++)t.push(m);l<x-2&&t.push("ellipsis"),t.push(x)}return t},z=t=>t==null?"-":t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:String(t),$=t=>`https://www.dynadot.com/market/auction/${t.toLowerCase()}?rsc=domaindingo`;if(b)return e.jsx("div",{style:{backgroundColor:s.bg,color:s.inkMuted},className:"min-h-screen flex items-center justify-center",children:e.jsx(ee,{className:"h-8 w-8 animate-spin"})});const v={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(te,{}),e.jsxs("main",{children:[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 Brandable Expired Auctions"}),e.jsx("p",{className:"text-lg max-w-2xl",style:{color:s.inkMuted,fontFamily:"'Cormorant', serif",fontWeight:500},children:"Only 100 names make the cut each day - selected for brandability, memorability, and resale potential."})]}),e.jsx("section",{className:"max-w-7xl mx-auto px-6 md:px-8 pb-24",children:i?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:v,children:[e.jsx(se,{className:"w-4 h-4",style:{color:s.inkMuted}}),e.jsx("input",{type:"text",value:u,onChange:t=>D(t.target.value),placeholder:"Search domainsâ¦",className:"bg-transparent outline-none text-sm flex-1",style:{color:s.ink}})]}),e.jsxs("select",{value:h,onChange:t=>T(t.target.value),className:"px-4 py-2.5 rounded-full text-sm outline-none cursor-pointer",style:v,children:[e.jsx("option",{value:"all",children:"All patterns"}),W.map(t=>e.jsx("option",{value:t,children:t},t))]}),e.jsxs("select",{value:p,onChange:t=>O(t.target.value),className:"px-4 py-2.5 rounded-full text-sm outline-none cursor-pointer",style:v,children:[e.jsx("option",{value:"all",children:"Any length"}),R.map(t=>e.jsxs("option",{value:String(t),children:[t," ",t===1?"char":"chars"]},t))]}),e.jsxs("select",{value:C,onChange:t=>I(t.target.value),className:"px-4 py-2.5 rounded-full text-sm outline-none cursor-pointer",style:v,children:[e.jsx("option",{value:"time_desc",children:"Ending soon"}),e.jsx("option",{value:"time_asc",children:"Ending later"}),e.jsx("option",{value:"links_desc",children:"Links: High to low"}),e.jsx("option",{value:"links_asc",children:"Links: Low to high"}),e.jsx("option",{value:"alphabetical_asc",children:"A-Z"}),e.jsx("option",{value:"alphabetical_desc",children:"Z-A"}),e.jsx("option",{value:"length_asc",children:"Length: Short to long"}),e.jsx("option",{value:"length_desc",children:"Length: Long to short"}),e.jsx("option",{value:"age_desc",children:"Age: Old to new"}),e.jsx("option",{value:"age_asc",children:"Age: New to old"})]}),e.jsxs("select",{value:String(d),onChange:t=>{q(t.target.value==="all"?"all":parseInt(t.target.value)),N(1)},className:"px-4 py-2.5 rounded-full text-sm outline-none cursor-pointer",style:v,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:[d==="all"?`Showing all ${j.length} live auctions`:`Showing ${(l-1)*d+1}-${Math.min(l*d,j.length)} of ${j.length} live auctions (Page ${l} of ${x})`,u&&` matching "${u}"`,h!=="all"&&` with pattern "${h}"`,p!=="all"&&` with ${p} characters`]}),L.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}
1,children:"No auctions found"}),e.jsx("p",{className:"text-sm",style:{color:s.inkMuted},children:u||h!=="all"||p!=="all"?"Try adjusting your search criteria or filters.":"No live brandable auctions 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:"w-10 px-4 py-3"}),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 whitespace-nowrap",children:"Time left"}),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:"Pattern"}),e.jsx("th",{className:"text-right font-medium px-4 py-3",children:"Age"}),e.jsx("th",{className:"text-right font-medium px-4 py-3",children:"Links"})]})}),e.jsx("tbody",{children:L.map((t,n)=>e.jsxs("tr",{style:{borderBottom:`1px solid ${s.border}`},className:"hover:bg-[#FAF7EF] transition-colors",children:[e.jsx("td",{className:"px-4 py-3",children:e.jsx(le,{payload:{domain:t.domain,source_table:"expired_brandables",end_time:t.end_time,auction_url:$(t.domain),source_type:"dynadot",snapshot:{age:t.age,links:t.links,pattern:t.pattern,length:t.length,score:t.score}}})}),e.jsx("td",{className:"px-4 py-3",children:e.jsxs("a",{href:$(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-[200px]",children:t.domain.toLowerCase()}),e.jsx(ne,{className:"w-3 h-3 opacity-60"})]})}),e.jsx("td",{className:"px-4 py-3 text-left",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},children:"Appraise"})}),e.jsx("td",{className:"px-4 py-3 whitespace-nowrap",children:e.jsx(ue,{endTime:t.end_time})}),e.jsx("td",{className:"px-4 py-3 text-right",children:t.length!=null?t.length:"-"}),e.jsx("td",{className:"px-4 py-3",children:t.pattern?e.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs",style:{border:`1px solid ${s.border}`,color:s.inkMuted},children:t.pattern}):"-"}),e.jsx("td",{className:"px-4 py-3 text-right",children:t.age!=null?t.age:"-"}),e.jsx("td",{className:"px-4 py-3 text-right",children:z(t.links)})]},`${t.domain}-${n}`))})]})})}),d!=="all"&&x>1&&e.jsx("div",{className:"flex justify-center mt-8",children:e.jsx(oe,{children:e.jsxs(ie,{children:[e.jsx(A,{children:e.jsx(ce,{onClick:()=>{l>1&&(N(l-1),window.scrollTo({top:0,behavior:"smooth"}))},className:l===1?"pointer-events-none opacity-50":"cursor-pointer"})}),Z().map((t,n)=>e.jsx(A,{children:t==="ellipsis"?e.jsx(de,{}):e.jsx(me,{onClick:()=>{N(t),window.scrollTo({top:0,behavior:"smooth"})},isActive:l===t,className:"cursor-pointer",children:t})},n)),e.jsx(A,{children:e.jsx(xe,{onClick:()=>{l<x&&(N(l+1),window.scrollTo({top:0,behavior:"smooth"}))},className:l===x?"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 brandable expired auctions."}),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 brandable expired auctions - catchy, memorable, and ready to bid."}),e.jsx("ul",{className:"text-left max-w-md mx-auto mb-8 space-y-3 text-sm",style:{color:s.ink},children:["Browse every brandable expired auction in one place","Filter by pattern, length and time left","One-click straight to the auction page","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:()=>k("/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:()=>k("/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(ae,{})]})}
1export{je 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.