PageSourceSearch

https://goexpired.com/assets/BackorderAuctions-BXBggBL0.js

js goexpired.com collected 2026-10-09 22:43:03 UTC 14,455 bytes, 1 lines download raw bytes

1import{r as i,c as K,a as X,s as U,j as e,y as Y,G as ee,F as te,E as se,h as ne,bp as ae,Q as oe}from"./index-DocTL6Xp.js";import{W as re}from"./WatchlistStar-MGMHUZ8K.js";import{P as le,a as ie,b as M,c as ce,d as de,e as ue,f as me}from"./pagination-v-dvXuWQ.js";import"./useWatchlist-DnFwqyIo.js";import"./chevron-left-DuzCoyNm.js";const a={bg:"#FAF9F5",surface:"#FFFFFF",ink:"#1A1A1A",inkMuted:"#6B6B68",accent:"#2563EB",border:"#E8E5DD",borderStrong:"#D8D3C5"};function he(l){const r=l.match(/(\d{4})[/-](\d{2})[/-](\d{2})[ T](\d{2}):(\d{2})/);if(!r)return null;const[,c,v,j,N,g]=r,m=Date.UTC(+c,+v-1,+j,+N,+g),h=new Intl.DateTimeFormat("en-US",{timeZone:"America/Los_Angeles",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}),x={};h.formatToParts(new Date(m)).forEach(y=>{x[y.type]=y.value});const T=Date.UTC(+x.year,+x.month-1,+x.day,+(x.hour==="24"?"0":x.hour),+x.minute,+x.second)-m;return m-T}function S(l){if(l.end_timestamp!=null){const r=Number(l.end_timestamp);if(!isNaN(r)&&r>0)return r<1e10?r*1e3:r}if(l.end_time){const r=he(l.end_time);if(r!==null)return r;const c=new Date(l.end_time).getTime();if(!isNaN(c))return c}return null}function xe(l){const r=l.lastIndexOf(".");return r>0?r:l.length}function pe(l){const r=l.lastIndexOf(".");return r>0?l.slice(r+1).toLowerCase():""}function P(l){return`https://www.dynadot.com/market/backorder-auction/${encodeURIComponent(l.toLowerCase())}?rscbo=domaindingo`}const fe=({endTimestamp:l,endTime:r})=>{const[c,v]=i.useState(null);return i.useEffect(()=>{if(!r&&!l)return;const j=()=>{const g=S({end_timestamp:l,end_time:r});if(g===null)return;const m=g-Date.now();if(m<=0)return v({days:0,hours:0,minutes:0,seconds:0});v({days:Math.floor(m/864e5),hours:Math.floor(m%864e5/36e5),minutes:Math.floor(m%36e5/6e4),seconds:Math.floor(m%6e4/1e3)})};j();const N=setInterval(j,1e3);return()=>clearInterval(N)},[l,r]),c?!c.days&&!c.hours&&!c.minutes&&!c.seconds?e.jsx("span",{className:"text-xs font-medium",style:{color:a.accent},children:"Ended"}):e.jsxs("span",{className:"inline-flex items-center gap-1 text-xs font-mono",style:{color:a.accent},children:[e.jsx(ae,{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:a.inkMuted},children:"-"})};function Ne(){const[l,r]=i.useState(null),[c,v]=i.useState(!0),[j,N]=i.useState([]),[g,m]=i.useState("bids_desc"),[h,x]=i.useState(""),[w,T]=i.useState("all"),[y,W]=i.useState("all"),[F,R]=i.useState("all"),[O,z]=i.useState([]),[G,Z]=i.useState([]),[d,A]=i.useState(1),[p,H]=i.useState(50),$=K();X(l);const q={background:a.surface,color:a.ink,border:`1px solid ${a.borderStrong}`,borderRadius:"16px",boxShadow:"0 8px 32px rgba(0,0,0,0.08)"},J={error:(t,s)=>oe.error(t,{description:s,style:q})},D=i.useRef(!1);i.useEffect(()=>{document.title="Top 100 Backorder Auctions - GoExpired.com"},[]),i.useEffect(()=>{(async()=>{var o;const{data:{user:s}}=await U.auth.getUser();r(s||null),D.current=((o=s==null?void 0:s.email)==null?void 0:o.toLowerCase())==="[email protected]",await B(),v(!1)})()},[]),i.useEffect(()=>{A(1)},[h,g,w,y,F]),i.useEffect(()=>{const t=setInterval(()=>{const s=Date.now();let o=!1;N(u=>{const f=u.filter(L=>{const E=S(L);return E!==null&&E>s});return f.length!==u.length&&(o=!0),f.length===u.length?u:f}),o&&B()},1e3);return()=>clearInterval(t)},[]);const B=async()=>{try{let s=0,o=[];for(;;){const{data:n,error:C}=await U.from("backorder_auctions").select("domain, url, end_timestamp, end_time, bid_price, bids, dynadot_appraisal, tld, length").range(s,s+1e3-1);if(C)throw C;if(!n||n.length===0||(o=o.concat(n),n.length<1e3))break;s+=1e3}const u=Date.now(),f=o.map(n=>({row:n,endMs:S(n)})).filter(({endMs:n})=>n!==null&&n>u).map(({row:n})=>({domain:n.domain,url:n.url,end_timestamp:n.end_timestamp,end_time:n.end_time,bid_price:n.bid_price!=null?Number(n.bid_price):null,bids:n.bids!=null?Number(n.bids):null,dynadot_appraisal:n.dynadot_appraisal!=null?Number(n.dynadot_appraisal):null,tld:n.tld?String(n.tld).toLowerCase():pe(n.domain),length:n.length!=null?Number(n.length):xe(n.domain)}));f.sort((n,C)=>(C.bids||0)-(n.bids||0));const L=D.current?f:f.slice(0,100),E=Array.from(new Set(L.map(n=>n.length).filter(n=>n!=null))).sort((n,C)=>n-C),V=Array.from(new Set(L.map(n=>n.tld).filter(n=>!!n))).sort();z(E),Z(V),N(L)}catch(t){console.error(t),J.error("Failed to load backorder auctions")}},k=i.useMemo(()=>{let t=[...j];if(h.trim()&&(t=t.filter(s=>s.domain.toLowerCase().includes(h.toLowerCase()))),w!=="all"){const s=parseInt(w);t=t.filter(o=>o.length===s)}return y!=="all"&&(t=t.filter(s=>s.tld===y)),F==="with_bids"?t=t.filter(s=>(s.bids||0)>0):F==="no_bids"&&(t=t.filter(s=>!s.bids)),t.sort((s,o)=>{const u=S(s)??0,f=S(o)??0;switch(g){case"alphabetical_asc":return s.domain.localeCompare(o.domain);case"alphabetical_desc":return o.domain.localeCompare(s.domain);case"time_asc":return f-u;case"time_desc":return u-f;case"length_asc":return(s.length||0)-(o.length||0);case"length_desc":return(o.length||0)-(s.length||0);case"bids_desc":return(o.bids||0)-(s.bids||0);case"bids_asc":return(s.bids||0)-(o.bids||0)}return 0}),t},[j,h,g,w,y,F]),b=p==="all"?1:Math.ceil(k.length/p),I=p==="all"?k:k.slice((d-1)*p,d*p),Q=()=>{const t=[];if(b<=7)for(let s=1;s<=b;s++)t.push(s);else{t.push(1),d>3&&t.push("ellipsis");const s=Math.max(2,d-1),o=Math.min(b-1,d+1);for(let u=s;u<=o;u++)t.push(u);d<b-2&&t.push("ellipsis"),t.push(b)}return t};if(c)return e.jsx("div",{style:{backgroundColor:a.bg,color:a.inkMuted},className:"min-h-screen flex items-center justify-center",children:e.jsx(Y,{className:"h-8 w-8 animate-spin"})});const _={backgroundColor:a.surface,border:`1px solid ${a.border}`,color:a.ink};return e.jsxs("div",{style:{backgroundColor:a.bg,color:a.ink,fontFamily:"'Inter', system-ui, sans-serif"},className:"min-h-screen",children:[e.jsx(ee,{}),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 Backorder Auctions"}),e.jsx("p",{className:"text-lg max-w-2xl",style:{color:a.inkMuted,fontFamily:"'Cormorant', serif",fontWeight:500},children:"Thousands of domains enter backorder every day. We only surface the 100 most promising opportunities."})]}),e.jsx("section",{className:"max-w-7xl mx-auto px-6 md:px-8 pb-24",children:l?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:_,children:[e.jsx(te,{className:"w-4 h-4",style:{color:a.inkMuted}}),e.jsx("input",{type:"text",value:h,onChange:t=>x(t.target.value),placeholder:"Search domains…",className:"bg-transparent outline-none text-sm flex-1",style:{color:a.ink}})]}),e.jsxs("select",{value:y,onChange:t=>W(t.target.value),className:"px-4 py-2.5 rounded-full text-sm outline-none cursor-pointer",style:_,children:[e.jsx("option",{value:"all",children:"Any TLD"}),G.map(t=>e.jsxs("option",{value:t,children:[".",t]},t))]}),e.jsxs("select",{value:w,onChange:t=>T(t.target.value),className:"px-4 py-2.5 rounded-full text-sm outline-none cursor-pointer",style:_,children:[e.jsx("option",{value:"all",children:"Any length"}),O.map(t=>e.jsxs("option",{value:String(t),children:[t," ",t===1?"char":"chars"]},t))]}),e.jsxs("select",{value:F,onChange:t=>R(t.target.value),className:"px-4 py-2.5 rounded-full text-sm outline-none cursor-pointer",style:_,children:[e.jsx("option",{value:"all",children:"All bids"}),e.jsx("option",{value:"with_bids",children:"With bids"}),e.jsx("option",{value:"no_bids",children:"No bids"})]}),e.jsxs("select",{value:g,onChange:t=>m(t.target.value),className:"px-4 py-2.5 rounded-full text-sm outline-none cursor-pointer",style:_,children:[e.jsx("option",{value:"time_desc",children:"Ending soon"}),e.jsx("option",{value:"time_asc",children:"Ending later"}),e.jsx("option",{value:"bids_desc",children:"Bids: High to low"}),e.jsx("option",{value:"bids_asc",children:"Bids: 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.jsxs("select",{value:String(p),onChange:t=>{H(t.target.value==="all"?"all":parseInt(t.target.value)),A(1)},className:"px-4 py-2.5 rounded-full text-sm outline-none cursor-pointer",style:_,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:a.inkMuted},children:[p==="all"?`Showing all ${k.length} live auctions`:`Showing ${(d-1)*p+1}-${Math.min(d*p,k.length)} of ${k.length} live auctions (Page ${d} of ${b})`,h&&` matching "${h}"`]}),I.length===0?e.jsxs("div",{className:"text-center py-20 rounded-2xl",style:{backgroundColor:a.surface,border:`1px solid ${a.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:a.inkMuted},children:h?"Try adjusting your search criteria.":"No live auctions are currently available."})]}):e.jsx("div",{className:"rounded-2xl overflow-hidden",style:{backgroundColor:a.surface,border:`1px solid ${a.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 ${a.border}`,color:a.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 whitespace-nowrap",children:"Time left"}),e.jsx("th",{className:"text-left font-medium px-4 py-3",children:"Appraise"}),e.jsx("th",{className:"text-right font-medium px-4 py-3",children:"Action"})]})}),e.jsx("tbody",{children:I.map((t,s)=>e.jsxs("tr",{style:{borderBottom:`1px solid ${a.border}`},className:"hover:bg-[#FAF7EF] transition-colors",children:[e.jsx("td",{className:"px-4 py-3",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(re,{payload:{domain:t.domain,source_table:"backorder_auctions",end_time:(()=>{const o=S(t);return o!==null?new Date(o).toISOString():null})(),auction_url:P(t.domain),source_type:"backorder",snapshot:{bid_price:t.bid_price,bids:t.bids,dynadot_appraisal:t.dynadot_appraisal,tld:t.tld,length:t.length}},size:16}),e.jsx("a",{href:P(t.domain),target:"_blank",rel:"noopener noreferrer",className:"font-medium hover:underline",style:{color:a.accent},children:t.domain.toLowerCase()})]})}),e.jsx("td",{className:"px-4 py-3 whitespace-nowrap",children:e.jsx(fe,{endTimestamp:t.end_timestamp,endTime:t.end_time})}),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:a.accent},children:"Appraise"})}),e.jsx("td",{className:"px-4 py-3 text-right",children:e.jsxs("a",{href:P(t.domain),target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-xs font-medium hover:underline",style:{color:a.accent},children:["View Auction",e.jsx(se,{className:"w-3 h-3"})]})})]},`${t.domain}-${s}`))})]})})}),p!=="all"&&b>1&&e.jsx("div",{className:"flex justify-center mt-8",children:e.jsx(le,{children:e.jsxs(ie,{children:[e.jsx(M,{children:e.jsx(ce,{onClick:()=>{d>1&&(A(d-1),window.scrollTo({top:0,behavior:"smooth"}))},className:d===1?"pointer-events-none opacity-50":"cursor-pointer"})}),Q().map((t,s)=>e.jsx(M,{children:t==="ellipsis"?e.jsx(de,{}):e.jsx(ue,{onClick:()=>{A(t),window.scrollTo({top:0,behavior:"smooth"})},isActive:d===t,className:"cursor-pointer",children:t})},s)),e.jsx(M,{children:e.jsx(me,{onClick:()=>{d<b&&(A(d+1),window.scrollTo({top:0,behavior:"smooth"}))},className:d===b?"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:a.surface,border:`1px solid ${a.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:a.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 every live backorder auction."}),e.jsx("p",{className:"text-lg mb-8 max-w-xl mx-auto",style:{color:a.inkMuted,fontFamily:"'Cormorant', serif",fontWeight:500},children:"Create a free GoExpired account in seconds and get instant access to our AI-curated list of backorder auctions - searchable, sortable, and updated continuously."}),e.jsx("ul",{className:"text-left max-w-md mx-auto mb-8 space-y-3 text-sm",style:{color:a.ink},children:["Browse every live backorder auction in one place","Filter by TLD, length, bids 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:a.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:()=>$("/auth"),className:"px-6 py-3 rounded-full text-sm font-medium transition-opacity hover:opacity-90",style:{backgroundColor:a.accent,color:"#fff"},children:"Create free account"}),e.jsx("button",{onClick:()=>$("/auth"),className:"px-6 py-3 rounded-full text-sm font-medium",style:{border:`1px solid ${a.borderStrong}`,color:a.ink,backgroundColor:a.surface},children:"Sign in"})]}),e.jsx("p",{className:"text-xs mt-6",style:{color:a.inkMuted},children:"Already trusted by 1,900+ domain investors worldwide."})]})})]}),e.jsx(ne,{})]})}
1export{Ne 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.