PageSourceSearch

https://goexpired.com/assets/ExpiredAltTLDsNew-DHvgOO9L.js

js goexpired.com collected 2026-10-09 22:42:50 UTC 12,480 bytes, 1 lines download raw bytes

1import{r,a as K,s as F,j as t,y as Q,G as V,F as X,E as Y,h as ee,bp as te,Q as T}from"./index-DocTL6Xp.js";import{W as se}from"./WatchlistStar-MGMHUZ8K.js";import{P as ne,a as ae,b as A,c as oe,d as re,e as le,f as ie}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 ce(c){return c===null?null:c<1e10?c*1e3:c}function _(c,y){if(c){let i=c.replace(" ","T");/(Z|[+-]\d{2}:?\d{2})$/.test(i)||(i+="Z");const x=Date.parse(i);if(!isNaN(x))return x}return ce(y)}const de=({endTimestamp:c,endTime:y})=>{const[i,x]=r.useState(null);return r.useEffect(()=>{if(!y&&!c)return;const N=()=>{const j=_(y,c);if(!j)return x({days:0,hours:0,minutes:0,seconds:0});const k=j-Date.now();if(k<=0)return x({days:0,hours:0,minutes:0,seconds:0});x({days:Math.floor(k/864e5),hours:Math.floor(k%864e5/36e5),minutes:Math.floor(k%36e5/6e4),seconds:Math.floor(k%6e4/1e3)})};N();const w=setInterval(N,1e3);return()=>clearInterval(w)},[c,y]),i?!i.days&&!i.hours&&!i.minutes&&!i.seconds?t.jsx("span",{className:"text-xs font-medium",style:{color:a.inkMuted},children:"Ended"}):t.jsxs("span",{className:"inline-flex items-center gap-1 text-xs font-mono",style:{color:a.ink},children:[t.jsx(te,{className:"w-3 h-3"}),i.days,"d ",i.hours,"h ",i.minutes,"m ",i.seconds,"s"]}):t.jsx("span",{className:"text-xs",style:{color:a.inkMuted},children:"-"})};function ge(){const[c,y]=r.useState(null),[i,x]=r.useState(!0),[N,w]=r.useState([]),[j,k]=r.useState("time_desc"),[g,B]=r.useState(""),[f,I]=r.useState("all"),[z,R]=r.useState([]),[D,U]=r.useState({});r.useState(null);const[d,b]=r.useState(1),[p,W]=r.useState(50);K(c);const M={background:a.surface,color:a.ink,border:`1px solid ${a.borderStrong}`,borderRadius:"16px",boxShadow:"0 8px 32px rgba(0,0,0,0.08)"},G={success:(e,s)=>T.success(e,{description:s,style:M}),error:(e,s)=>T.error(e,{description:s,style:M}),info:(e,s)=>T.info(e,{description:s,style:M})};r.useEffect(()=>{document.title="Expired Alt TLD Auctions - GoExpired.com"},[]),r.useEffect(()=>{(async()=>{const{data:{user:s}}=await F.auth.getUser();y(s||null),s&&await O(s.id),await $(),x(!1)})()},[]),r.useEffect(()=>{b(1)},[g,j,f]),r.useEffect(()=>{const e=setInterval(()=>{const s=Date.now();w(n=>{const l=n.filter(u=>{const S=_(u.end_time,u.end_timestamp);return S&&S>s});return l.length!==n.length?($(),l):n})},1e3);return()=>clearInterval(e)},[]);const O=async e=>{const{data:s}=await F.from("user_appraisal_history").select("domain, appraisal_value, appraisal_source").eq("user_id",e).order("appraised_at",{ascending:!1}).limit(1e3);if(!s)return;const n={};for(const l of s){const u=(l.domain||"").toLowerCase().trim();u&&!n[u]&&(n[u]={value:Number(l.appraisal_value),source:l.appraisal_source||"AI Assistant"})}U(n)},$=async()=>{try{let s=0,n=[];for(;;){const{data:o,error:m}=await F.from("expired_alt_auctions").select("domain, url, end_timestamp, end_time, dynadot_appraisal, links, age, length").range(s,s+1e3-1);if(m)throw m;if(!o||o.length===0||(n=n.concat(o),o.length<1e3))break;s+=1e3}const l=Date.now(),u=n.filter(o=>{const m=_(o.end_time,o.end_timestamp);return m&&m>l}).map(o=>({domain:o.domain,url:o.url,end_timestamp:o.end_timestamp,end_time:o.end_time,dynadot_appraisal:o.dynadot_appraisal,links:o.links,age:o.age,length:o.length})).sort((o,m)=>{const H=_(o.end_time,o.end_timestamp)||1/0,J=_(m.end_time,m.end_timestamp)||1/0;return H-J}).slice(0,100),S=Array.from(new Set(u.map(o=>{const m=o.domain.split(".");return m.length>1?m[m.length-1]:""}).filter(Boolean))).sort();R(S),w(u)}catch(e){console.error(e),G.error("Failed to load expired alt TLD auctions")}},v=r.useMemo(()=>{let e=[...N];return g.trim()&&(e=e.filter(s=>s.domain.toLowerCase().includes(g.toLowerCase()))),f!=="all"&&(e=e.filter(s=>{const n=s.domain.split(".");return(n.length>1?n[n.length-1]:"")===f})),e.sort((s,n)=>{const l=_(s.end_time,s.end_timestamp)||0,u=_(n.end_time,n.end_timestamp)||0;switch(j){case"links_desc":return(n.links||0)-(s.links||0);case"links_asc":return(s.links||0)-(n.links||0);case"alphabetical_asc":return s.domain.localeCompare(n.domain);case"alphabetical_desc":return n.domain.localeCompare(s.domain);case"time_asc":return u-l;case"time_desc":return l-u;case"age_desc":return(n.age||0)-(s.age||0);case"age_asc":return(s.age||0)-(n.age||0);case"length_asc":return(s.length||0)-(n.length||0);case"length_desc":return(n.length||0)-(s.length||0)}return 0}),e},[N,g,j,f]),h=p==="all"?1:Math.ceil(v.length/p),C=p==="all"?v:v.slice((d-1)*p,d*p),Z=()=>{const e=[];
1if(h<=7)for(let s=1;s<=h;s++)e.push(s);else{e.push(1),d>3&&e.push("ellipsis");const s=Math.max(2,d-1),n=Math.min(h-1,d+1);for(let l=s;l<=n;l++)e.push(l);d<h-2&&e.push("ellipsis"),e.push(h)}return e},q=e=>e==null?"-":e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:String(e),L=e=>`https://www.dynadot.com/market/auction/${e.toLowerCase()}?rsc=domaindingo`;if(i)return t.jsx("div",{style:{backgroundColor:a.bg,color:a.inkMuted},className:"min-h-screen flex items-center justify-center",children:t.jsx(Q,{className:"h-8 w-8 animate-spin"})});const P={backgroundColor:a.surface,border:`1px solid ${a.border}`,color:a.ink},E={...P,appearance:"none",WebkitAppearance:"none",MozAppearance:"none",backgroundImage:`url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e")`,backgroundRepeat:"no-repeat",backgroundPosition:"right 0.85rem center",backgroundSize:"12px 12px",paddingRight:"2.25rem"};return t.jsxs("div",{style:{backgroundColor:a.bg,color:a.ink,fontFamily:"'Inter', system-ui, sans-serif"},className:"min-h-screen",children:[t.jsx(V,{}),t.jsxs("main",{children:[t.jsxs("section",{className:"max-w-7xl mx-auto px-6 md:px-8 pt-16 md:pt-20 pb-10",children:[t.jsx("h1",{className:"text-5xl md:text-6xl leading-[1.05] tracking-tight mb-4",style:{fontFamily:"'Cormorant', serif",fontWeight:600},children:"Alt TLD Expired Auctions"}),t.jsx("p",{className:"text-lg max-w-2xl",style:{color:a.inkMuted,fontFamily:"'Cormorant', serif",fontWeight:500},children:"We scan thousands of alternative TLD auctions every day and surface only the highest-quality opportunities."})]}),t.jsxs("section",{className:"max-w-7xl mx-auto px-6 md:px-8 pb-24",children:[t.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-6",children:[t.jsxs("div",{className:"flex items-center gap-2 px-4 py-2.5 rounded-full flex-1 min-w-[240px]",style:P,children:[t.jsx(X,{className:"w-4 h-4",style:{color:a.inkMuted}}),t.jsx("input",{type:"text",value:g,onChange:e=>B(e.target.value),placeholder:"Search domains…",className:"bg-transparent outline-none text-sm flex-1",style:{color:a.ink}})]}),t.jsxs("select",{value:f,onChange:e=>I(e.target.value),className:"px-4 py-2.5 rounded-full text-sm outline-none cursor-pointer",style:E,children:[t.jsx("option",{value:"all",children:"All TLDs"}),z.map(e=>t.jsxs("option",{value:e,children:[".",e]},e))]}),t.jsxs("select",{value:j,onChange:e=>k(e.target.value),className:"px-4 py-2.5 rounded-full text-sm outline-none cursor-pointer",style:E,children:[t.jsx("option",{value:"time_desc",children:"Ending soon"}),t.jsx("option",{value:"time_asc",children:"Ending later"}),t.jsx("option",{value:"links_desc",children:"Links: High to low"}),t.jsx("option",{value:"links_asc",children:"Links: Low to high"}),t.jsx("option",{value:"alphabetical_asc",children:"A-Z"}),t.jsx("option",{value:"alphabetical_desc",children:"Z-A"}),t.jsx("option",{value:"age_desc",children:"Age: Old to new"}),t.jsx("option",{value:"age_asc",children:"Age: New to old"}),t.jsx("option",{value:"length_asc",children:"Length: Short to long"}),t.jsx("option",{value:"length_desc",children:"Length: Long to short"})]}),t.jsxs("select",{value:String(p),onChange:e=>{W(e.target.value==="all"?"all":parseInt(e.target.value)),b(1)},className:"px-4 py-2.5 rounded-full text-sm outline-none cursor-pointer",style:E,children:[t.jsx("option",{value:"25",children:"25 per page"}),t.jsx("option",{value:"50",children:"50 per page"}),t.jsx("option",{value:"100",children:"100 per page"}),t.jsx("option",{value:"all",children:"Show all"})]})]}),t.jsxs("p",{className:"text-sm mb-6",style:{color:a.inkMuted},children:[p==="all"?`Showing all ${v.length} live auctions`:`Showing ${(d-1)*p+1}-${Math.min(d*p,v.length)} of ${v.length} live auctions (Page ${d} of ${h})`,g&&` matching "${g}"`,f!=="all"&&` .${f} TLD`]}),C.length===0?t.jsxs("div",{className:"text-center py-20 rounded-2xl",style:{backgroundColor:a.surface,border:`1px solid ${a.border}`},children:[t.jsx("h3",{className:"text-2xl mb-2",style:{fontFamily:"'Cormorant', serif",fontWeight:600}
1,children:"No auctions found"}),t.jsx("p",{className:"text-sm",style:{color:a.inkMuted},children:g||f!=="all"?"Try adjusting your search criteria or filters.":"No live alt TLD auctions are currently available."})]}):t.jsx("div",{className:"rounded-2xl overflow-hidden",style:{backgroundColor:a.surface,border:`1px solid ${a.border}`},children:t.jsx("div",{className:"overflow-x-auto",children:t.jsxs("table",{className:"w-full text-sm",children:[t.jsx("thead",{children:t.jsxs("tr",{style:{backgroundColor:"#F5F2EA",borderBottom:`1px solid ${a.border}`,color:a.inkMuted},children:[t.jsx("th",{className:"text-left font-medium px-4 py-3 w-10"}),t.jsx("th",{className:"text-left font-medium px-4 py-3",children:"Domain"}),t.jsx("th",{className:"text-left font-medium px-4 py-3",children:"Appraise"}),t.jsx("th",{className:"text-left font-medium px-4 py-3 whitespace-nowrap",children:"Time left"}),t.jsx("th",{className:"text-right font-medium px-4 py-3",children:"Links"}),t.jsx("th",{className:"text-right font-medium px-4 py-3",children:"Age"})]})}),t.jsx("tbody",{children:C.map((e,s)=>t.jsxs("tr",{className:"transition-colors",style:{borderBottom:s<C.length-1?`1px solid ${a.border}`:void 0},onMouseEnter:n=>{n.currentTarget.style.backgroundColor="#FAFAF8"},onMouseLeave:n=>{n.currentTarget.style.backgroundColor="transparent"},children:[t.jsx("td",{className:"px-4 py-3",children:t.jsx(se,{payload:{domain:e.domain,source_table:"expired_alt_auctions",end_time:e.end_time,auction_url:L(e.domain),source_type:"dynadot",snapshot:{dynadot_appraisal:e.dynadot_appraisal,links:e.links,age:e.age,length:e.length}},size:16})}),t.jsx("td",{className:"px-4 py-3",children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("a",{href:L(e.domain),target:"_blank",rel:"noopener noreferrer",className:"font-medium hover:underline",style:{color:a.accent},children:e.domain}),t.jsx("a",{href:L(e.domain),target:"_blank",rel:"noopener noreferrer",className:"opacity-0 hover:opacity-100 transition-opacity",children:t.jsx(Y,{className:"w-3.5 h-3.5",style:{color:a.inkMuted}})})]})}),t.jsx("td",{className:"px-4 py-3",children:D[e.domain.toLowerCase()]?t.jsxs("span",{className:"font-semibold",style:{color:a.accent},children:["$",D[e.domain.toLowerCase()].value.toLocaleString()]}):t.jsx("a",{href:`/appraise-your-domain?domain=${encodeURIComponent(e.domain)}`,target:"_blank",rel:"noopener noreferrer",className:"text-sm font-medium hover:underline",style:{color:"#2563EB"},onMouseEnter:n=>n.currentTarget.style.color="#1D4FD8",onMouseLeave:n=>n.currentTarget.style.color="#2563EB",children:"Appraise"})}),t.jsx("td",{className:"px-4 py-3 whitespace-nowrap",children:t.jsx(de,{endTimestamp:e.end_timestamp,endTime:e.end_time})}),t.jsx("td",{className:"px-4 py-3 text-right font-mono",style:{color:a.inkMuted},children:q(e.links)}),t.jsx("td",{className:"px-4 py-3 text-right font-mono",style:{color:a.inkMuted},children:e.age!=null?e.age:"-"})]},e.domain))})]})})}),h>1&&t.jsx("div",{className:"mt-8 flex justify-center",children:t.jsx(ne,{children:t.jsxs(ae,{children:[t.jsx(A,{children:t.jsx(oe,{onClick:()=>b(e=>Math.max(1,e-1)),className:d===1?"pointer-events-none opacity-50":"cursor-pointer"})}),Z().map((e,s)=>e==="ellipsis"?t.jsx(A,{children:t.jsx(re,{})},`ellipsis-${s}`):t.jsx(A,{children:t.jsx(le,{onClick:()=>b(e),isActive:d===e,className:"cursor-pointer",children:e})},e)),t.jsx(A,{children:t.jsx(ie,{onClick:()=>b(e=>Math.min(h,e+1)),className:d===h?"pointer-events-none opacity-50":"cursor-pointer"})})]})})})]})]}),t.jsx(ee,{})]})}export{ge 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.