PageSourceSearch

https://goexpired.com/assets/CuratedCloseoutsNew-C7HgN0Av.js

js goexpired.com collected 2026-10-09 22:42:51 UTC 9,382 bytes, 1 lines download raw bytes

1import{r,a as A,s as F,j as e,y as I,G as D,P as B,F as G,E as U,h as R,bp as W,Q as v}from"./index-DocTL6Xp.js";import{P as O,a as H,b as S,c as Z,d as J,e as K,f as Q}from"./pagination-v-dvXuWQ.js";import"./chevron-left-DuzCoyNm.js";const o={bg:"#FAF9F5",surface:"#FFFFFF",ink:"#1A1A1A",inkMuted:"#6B6B68",accent:"#2563EB",border:"#E8E5DD",borderStrong:"#D8D3C5"},q=({endTimestamp:h})=>{const[i,g]=r.useState(null);return r.useEffect(()=>{if(!h)return;const y=()=>{const d=h-Date.now();if(d<=0)return g({days:0,hours:0,minutes:0,seconds:0});g({days:Math.floor(d/864e5),hours:Math.floor(d%864e5/36e5),minutes:Math.floor(d%36e5/6e4),seconds:Math.floor(d%6e4/1e3)})};y();const j=setInterval(y,1e3);return()=>clearInterval(j)},[h]),i?!i.days&&!i.hours&&!i.minutes&&!i.seconds?e.jsx("span",{className:"text-xs font-medium",style:{color:o.inkMuted},children:"Ended"}):e.jsxs("span",{className:"inline-flex items-center gap-1 text-xs font-mono",style:{color:o.ink},children:[e.jsx(W,{className:"w-3 h-3"}),i.days,"d ",i.hours,"h ",i.minutes,"m ",i.seconds,"s"]}):e.jsx("span",{className:"text-xs",style:{color:o.inkMuted},children:"-"})};function Y(){const[h,i]=r.useState(null),[g,y]=r.useState(!0),[j,d]=r.useState([]),[N,T]=r.useState("time_desc"),[u,E]=r.useState(""),[n,f]=r.useState(1),[l,L]=r.useState(50),b={background:o.surface,color:o.ink,border:`1px solid ${o.borderStrong}`,borderRadius:"16px",fontFamily:"'Inter', system-ui, sans-serif"},P={success:(s,t)=>v.success(s,{description:t,style:b}),error:(s,t)=>v.error(s,{description:t,style:b}),info:(s,t)=>v(s,{description:t,style:b})};A(h),r.useEffect(()=>{document.title="Top 100 Expired Closeouts - GoExpired.com"},[]),r.useEffect(()=>{(async()=>{const{data:{user:t}}=await F.auth.getUser();i(t||null),await C(),y(!1)})()},[]),r.useEffect(()=>{f(1)},[u,N]),r.useEffect(()=>{const s=setInterval(()=>{const t=Date.now();d(a=>{const p=a.filter(c=>c.endTimeStamp?c.endTimeStamp>t:!0);return p.length===a.length?a:p})},1e3);return()=>clearInterval(s)},[]),r.useEffect(()=>{const s=setInterval(()=>{C()},6e4);return()=>clearInterval(s)},[]);const C=async()=>{try{const s=Date.now(),{data:t,error:a}=await F.from("premium_closeouts").select("domainName, domainPascal, auction_url, endTimeStamp, estibotAppraisal, inboundLinks, is_sold").gt("endTimeStamp",s).order("endTimeStamp",{ascending:!0,nullsFirst:!1}).limit(100);if(a)throw a;if(!t||t.length===0){d([]);return}const p=t.map(c=>({domainName:c.domainName,domainPascal:c.domainPascal,auction_url:c.auction_url,endTimeStamp:c.endTimeStamp,estibotAppraisal:c.estibotAppraisal,inboundLinks:c.inboundLinks,is_sold:c.is_sold}));d(p)}catch(s){console.error(s),P.error("Error","Failed to load curated closeouts")}},x=r.useMemo(()=>{let s=[...j];return u.trim()&&(s=s.filter(t=>t.domainName.toLowerCase().includes(u.toLowerCase()))),s.sort((t,a)=>{switch(N){case"links_desc":return(a.inboundLinks||0)-(t.inboundLinks||0);case"links_asc":return(t.inboundLinks||0)-(a.inboundLinks||0);case"alphabetical_asc":return t.domainName.localeCompare(a.domainName);case"alphabetical_desc":return a.domainName.localeCompare(t.domainName);case"time_asc":return(a.endTimeStamp||0)-(t.endTimeStamp||0);case"time_desc":return(t.endTimeStamp||0)-(a.endTimeStamp||0)}return 0}),s},[j,u,N]),m=l==="all"?1:Math.ceil(x.length/l),k=l==="all"?x:x.slice((n-1)*l,n*l),_=()=>{const s=[];if(m<=7)for(let t=1;t<=m;t++)s.push(t);else{s.push(1),n>3&&s.push("ellipsis");const t=Math.max(2,n-1),a=Math.min(m-1,n+1);for(let p=t;p<=a;p++)s.push(p);n<m-2&&s.push("ellipsis"),s.push(m)}return s},M=s=>s==null?"-":s>=1e6?`${(s/1e6).toFixed(1)}M`:s>=1e3?`${(s/1e3).toFixed(1)}K`:String(s),$=(s,t)=>t||`https://www.dynadot.com/market/auction/${s.toLowerCase()}?rsc=domaindingo`;if(g)return e.jsx("div",{style:{backgroundColor:o.bg,color:o.inkMuted},className:"min-h-screen flex items-center justify-center",children:e.jsx(I,{className:"h-8 w-8 animate-spin"})});const w={backgroundColor:o.surface,border:`1px solid ${o.border}`,color:o.ink};return e.jsxs("div",{style:{backgroundColor:o.bg,color:o.ink,fontFamily:"'Inter', system-ui, sans-serif"},className:"min-h-screen",children:[e.jsx(D,{}),e.jsxs("main",{children:[e.jsx(B,{title:"Top 100 Closeouts | GoExpired",description:"The 100 premium closeout domains ending soonest - hand-picked for domain investors.",path:"/top100closeouts"}),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 Expired Closeouts"}),e.jsx("p",{className:"text-lg max-w-2xl",style:{color:o.inkMuted,fontFamily:"'Cormorant', serif",fontWeight:500}
1,children:"We scan thousands of closeouts every day so you don't have to - only the 100 strongest opportunities make the list."})]}),e.jsxs("section",{className:"max-w-7xl mx-auto px-6 md:px-8 pb-24",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:w,children:[e.jsx(G,{className:"w-4 h-4",style:{color:o.inkMuted}}),e.jsx("input",{type:"text",value:u,onChange:s=>E(s.target.value),placeholder:"Search domains…",className:"bg-transparent outline-none text-sm flex-1",style:{color:o.ink}})]}),e.jsxs("select",{value:N,onChange:s=>T(s.target.value),className:"px-4 py-2.5 rounded-full text-sm outline-none cursor-pointer",style:w,children:[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:"time_desc",children:"Ending soon"}),e.jsx("option",{value:"time_asc",children:"Ending later"}),e.jsx("option",{value:"alphabetical_asc",children:"A-Z"}),e.jsx("option",{value:"alphabetical_desc",children:"Z-A"})]}),e.jsxs("select",{value:String(l),onChange:s=>{L(s.target.value==="all"?"all":parseInt(s.target.value)),f(1)},className:"px-4 py-2.5 rounded-full text-sm outline-none cursor-pointer",style:w,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:o.inkMuted},children:[l==="all"?`Showing all ${x.length} closeouts`:`Showing ${(n-1)*l+1}-${Math.min(n*l,x.length)} of ${x.length} closeouts (Page ${n} of ${m})`,u&&` matching "${u}"`]}),k.length===0?e.jsxs("div",{className:"text-center py-20 rounded-2xl",style:{backgroundColor:o.surface,border:`1px solid ${o.border}`},children:[e.jsx("h3",{className:"text-2xl mb-2",style:{fontFamily:"'Cormorant', serif",fontWeight:600},children:"No closeouts found"}),e.jsx("p",{className:"text-sm",style:{color:o.inkMuted},children:u?"Try adjusting your search criteria.":"No closeouts are currently available."})]}):e.jsx("div",{className:"rounded-2xl overflow-hidden",style:{backgroundColor:o.surface,border:`1px solid ${o.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 ${o.border}`,color:o.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 whitespace-nowrap",children:"Time left"}),e.jsx("th",{className:"text-right font-medium px-4 py-3",children:"Links"})]})}),e.jsx("tbody",{children:k.map((s,t)=>e.jsxs("tr",{style:{borderBottom:t<k.length-1?`1px solid ${o.border}`:void 0},className:"hover:bg-[#FAF7EF] transition-colors",children:[e.jsx("td",{className:"px-4 py-3",children:e.jsxs("a",{href:$(s.domainName,s.auction_url),target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 font-medium hover:underline",style:{color:o.accent},children:[e.jsx("span",{className:"truncate max-w-[200px]",children:s.domainName.toLowerCase()}),e.jsx(U,{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(s.domainName)}`,target:"_blank",rel:"noopener noreferrer",className:"text-xs hover:underline transition-colors",style:{color:o.accent},children:"Appraise"})}),e.jsx("td",{className:"px-4 py-3 whitespace-nowrap",children:e.jsx(q,{endTimestamp:s.endTimeStamp})}),e.jsx("td",{className:"px-4 py-3 text-right",style:{color:o.inkMuted},children:M(s.inboundLinks)})]},`${s.domainName}-${t}`))})]})})}),l!=="all"&&m>1&&e.jsx("div",{className:"flex justify-center mt-8",children:e.jsx(O,{children:e.jsxs(H,{children:[e.jsx(S,{children:e.jsx(Z,{onClick:()=>{n>1&&(f(n-1),window.scrollTo({top:0,behavior:"smooth"}))},className:n===1?"pointer-events-none opacity-50":"cursor-pointer"})}),_().map((s,t)=>e.jsx(S,{children:s==="ellipsis"?e.jsx(J,{}):e.jsx(K,{onClick:()=>{f(s),window.scrollTo({top:0,behavior:"smooth"})},isActive:n===s,className:"cursor-pointer",children:s})},t)),e.jsx(S,{children:e.jsx(Q,{onClick:()=>{n<m&&(f(n+1),window.scrollTo({top:0,behavior:"smooth"}))},className:n===m?"pointer-events-none opacity-50":"cursor-pointer"})})]})})})]})]}),e.jsx(R,{})]})}
1export{Y 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.