PageSourceSearch

https://goexpired.com/assets/FourLetterDomainsNew-DNtBKQ7H.js

js goexpired.com collected 2026-10-09 22:42:49 UTC 13,071 bytes, 1 lines download raw bytes

1import{r,c as ne,a as ae,j as e,y as oe,G as re,F as ie,E as le,h as ce,bp as de,s as P,Q as E}from"./index-DocTL6Xp.js";import{W as me}from"./WatchlistStar-MGMHUZ8K.js";import{P as ue,a as pe,b as M,c as xe,d as he,e as fe,f as ge}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 B(i){const u=new Set(["a","e","i","o","u"]),d=i.toLowerCase().replace(/\.com$/i,"");return d.length!==4?"":d.split("").map(y=>u.has(y)?"V":"C").join("")}function ye(i){return new Date(i).getTimezoneOffset()*6e4}function k(i){if(i===null)return null;const u=i<1e10?i*1e3:i;return u-ye(u)}const be=({endTimestamp:i,endTime:u})=>{const[d,y]=r.useState(null);return r.useEffect(()=>{if(!u&&!i)return;const v=()=>{let g;if(u)g=new Date(u).getTime();else if(i){const p=k(i);if(!p)return y({days:0,hours:0,minutes:0,seconds:0});g=p}else return;const b=g-Date.now();if(b<=0)return y({days:0,hours:0,minutes:0,seconds:0});y({days:Math.floor(b/864e5),hours:Math.floor(b%864e5/36e5),minutes:Math.floor(b%36e5/6e4),seconds:Math.floor(b%6e4/1e3)})};v();const S=setInterval(v,1e3);return()=>clearInterval(S)},[i,u]),d?!d.days&&!d.hours&&!d.minutes&&!d.seconds?e.jsx("span",{className:"text-xs font-medium",style:{color:a.inkMuted},children:"Ended"}):e.jsxs("span",{className:"inline-flex items-center gap-1 text-xs font-mono",style:{color:a.ink},children:[e.jsx(de,{className:"w-3 h-3"}),d.days,"d ",d.hours,"h ",d.minutes,"m ",d.seconds,"s"]}):e.jsx("span",{className:"text-xs",style:{color:a.inkMuted},children:"-"})};function Ce(){const[i,u]=r.useState(null),[d,y]=r.useState(!0),[v,S]=r.useState([]),[g,b]=r.useState("time_desc"),[p,O]=r.useState(""),[C,je]=r.useState("all"),[we,U]=r.useState([]),[N,G]=r.useState("all"),[$,W]=r.useState([]),[z,X]=r.useState({});r.useState(null);const[l,_]=r.useState(1),[x,q]=r.useState(50),D=ne(),{isPro:Z,loading:H}=ae(i),L={background:a.surface,color:a.ink,border:`1px solid ${a.borderStrong}`,borderRadius:"16px",boxShadow:"0 8px 32px rgba(0,0,0,0.08)"},J={success:(t,n)=>E.success(t,{description:n,style:L}),error:(t,n)=>E.error(t,{description:n,style:L}),info:(t,n)=>E.info(t,{description:n,style:L})};r.useEffect(()=>{document.title="4 Letter Domains - GoExpired.com"},[]),r.useEffect(()=>{(async()=>{const{data:{user:n}}=await P.auth.getUser();u(n||null),n&&await Q(n.id),await V(),y(!1)})()},[]),r.useEffect(()=>{_(1)},[p,g,C,N]),r.useEffect(()=>{const t=setInterval(()=>{const n=Date.now();S(o=>{const c=o.filter(m=>{if(m.end_time)return new Date(m.end_time).getTime()>n;const w=k(m.end_timestamp);return w&&w>n});return c.length===o.length?o:c})},1e3);return()=>clearInterval(t)},[]);const Q=async t=>{const{data:n}=await P.from("user_appraisal_history").select("domain, appraisal_value, appraisal_source").eq("user_id",t).order("appraised_at",{ascending:!1}).limit(1e3);if(!n)return;const o={};for(const c of n){const m=(c.domain||"").toLowerCase().trim();m&&!o[m]&&(o[m]={value:Number(c.appraisal_value),source:c.appraisal_source||"AI Assistant"})}X(o)},V=async()=>{try{let n=0,o=[];for(;;){const{data:s,error:h}=await P.from("expired_auctions_dynadot").select("domain, url, end_timestamp, end_time, links, description, score, age, length, bids").order("score",{ascending:!1,nullsFirst:!1}).range(n,n+1e3-1);if(h)throw h;if(!s||s.length===0||(o=o.concat(s),s.length<1e3))break;n+=1e3}const{data:c,error:m}=await P.from("gname_auctions").select("domain, url, end_time, bids");m&&console.error("gname fetch error",m);const w=Date.now(),I=/^[a-z]{4}\.com$/i,Y=o.filter(s=>{if(!s.domain||!I.test(String(s.domain).trim()))return!1;if(s.end_time)return new Date(s.end_time).getTime()>w;const h=k(s.end_timestamp);return h&&h>w}).map(s=>({domain:s.domain,url:s.url,end_timestamp:s.end_timestamp,end_time:s.end_time,links:s.links,description:s.description,score:s.score,age:s.age,length:s.length,bids:s.bids})),ee=(c||[]).filter(s=>s.domain&&I.test(String(s.domain).trim())&&s.end_time).map(s=>({domain:s.domain,url:s.url,end_timestamp:null,end_time:s.end_time,links:null,description:null,score:null,age:null,length:String(s.domain).replace(/\.com$/i,"").length,bids:s.bids})).filter(s=>s.end_time&&new Date(s.end_time).getTime()>w),R=new Set,A=[];for(const s of[...Y,...ee]){const h=s.domain.toLowerCase();R.has(h)||(R.add(h),A.push(s))}const te=Array.from(new Set(A.map(s=>s.length).filter(s=>s!=null))).sort((s,h)=>s-h);U(te);const se=Array.from(new Set(A.map(s=>
1B(s.domain)).filter(Boolean))).sort();W(se),S(A)}catch(t){console.error(t),J.error("Failed to load expired auctions")}},j=r.useMemo(()=>{let t=[...v];if(p.trim()&&(t=t.filter(n=>n.domain.toLowerCase().includes(p.toLowerCase()))),C!=="all"){const n=parseInt(C);t=t.filter(o=>o.length===n)}return N!=="all"&&(t=t.filter(n=>B(n.domain)===N)),t.sort((n,o)=>{const c=n.end_time?new Date(n.end_time).getTime():k(n.end_timestamp)||0,m=o.end_time?new Date(o.end_time).getTime():k(o.end_timestamp)||0;switch(g){case"alphabetical_asc":return n.domain.localeCompare(o.domain);case"alphabetical_desc":return o.domain.localeCompare(n.domain);case"time_asc":return m-c;case"time_desc":return c-m}return 0}),t},[v,p,g,C,N]),f=x==="all"?1:Math.ceil(j.length/x),T=x==="all"?j:j.slice((l-1)*x,l*x),K=()=>{const t=[];if(f<=7)for(let n=1;n<=f;n++)t.push(n);else{t.push(1),l>3&&t.push("ellipsis");const n=Math.max(2,l-1),o=Math.min(f-1,l+1);for(let c=n;c<=o;c++)t.push(c);l<f-2&&t.push("ellipsis"),t.push(f)}return t};if(d)return e.jsx("div",{style:{backgroundColor:a.bg,color:a.inkMuted},className:"min-h-screen flex items-center justify-center",children:e.jsx(oe,{className:"h-8 w-8 animate-spin"})});const F={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(re,{}),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:"4 Letter Domains"}),e.jsx("p",{className:"text-lg max-w-2xl",style:{color:a.inkMuted,fontFamily:"'Cormorant', serif",fontWeight:500},children:"AI-curated expired 4-letter .com auctions - letters only, no digits, no hyphens. Searchable, sortable, ready to bid."})]}),e.jsx("section",{className:"max-w-7xl mx-auto px-6 md:px-8 pb-24",children:(!i||!Z)&&!H?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:"GX PRO required"}),e.jsx("h2",{className:"text-4xl md:text-5xl leading-[1.05] tracking-tight mb-4",style:{fontFamily:"Cormorant, serif",fontWeight:600},children:"Upgrade to GX PRO to view 4 Letter Domains."}),e.jsx("p",{className:"text-lg mb-8 max-w-xl mx-auto",style:{color:a.inkMuted,fontFamily:"Cormorant, serif",fontWeight:500},children:"The /4letterdomains page is exclusive to GX PRO members. Upgrade now to unlock the full curated list of expired 4-letter .com auctions - letters only, searchable, sortable, and updated continuously."}),e.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-3",children:[e.jsx("button",{onClick:()=>D("/gxpro"),className:"px-6 py-3 rounded-full text-sm font-medium transition-opacity hover:opacity-90",style:{backgroundColor:a.accent,color:"#fff"},children:"Upgrade to GX PRO"}),!i&&e.jsx("button",{onClick:()=>D("/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.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(ie,{className:"w-4 h-4",style:{color:a.inkMuted}}),e.jsx("input",{type:"text",value:p,onChange:t=>O(t.target.value),placeholder:"Search domains…",className:"bg-transparent outline-none text-sm flex-1",style:{color:a.ink}})]}),$.length>0&&e.jsxs("select",{value:N,onChange:t=>G(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 patterns"}),$.map(t=>e.jsx("option",{value:t,children:t},t))]}),e.jsxs("select",{value:g,onChange:t=>b(t.target.value),className:"px-4 py-2.5 rounded-full text-sm outline-none cursor-pointer",style:F,children:[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(x),onChange:t=>{q(t.target.value==="all"?"all":parseInt(t.target.value)),_(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:a.inkMuted},children:[x==="all"?`Showing all ${j.length} live auctions`:`Showing ${(l-1)*x+1}-${Math.min(l*x,j.length)} of ${j.length} live auctions (Page ${l} of ${f})`,p&&` matching "${p}"`]}),T.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:p?"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:"w-10 px-2 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 whitespace-nowrap",children:"Appraise"}),e.jsx("th",{className:"text-left font-medium px-4 py-3 whitespace-nowrap",children:"Time left"})]})}),e.jsx("tbody",{children:T.map((t,n)=>{const o=z[t.domain.toLowerCase()];return e.jsxs("tr",{style:{borderBottom:`1px solid ${a.border}`},className:"hover:bg-[#FAF7EF] transition-colors",children:[e.jsx("td",{className:"px-2 py-3 w-10",children:e.jsx(me,{payload:{domain:t.domain,source_table:"expired_auctions_dynadot",end_time:t.end_time,auction_url:t.url,source_type:"dynadot",snapshot:{links:t.links,description:t.description,score:t.score,age:t.age,length:t.length,bids:t.bids}}})}),e.jsx("td",{className:"px-4 py-3",children:t.url?e.jsxs("a",{href:t.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 font-medium hover:underline",style:{color:a.accent},children:[e.jsx("span",{className:"truncate max-w-[200px]",children:t.domain.toLowerCase()}),e.jsx(le,{className:"w-3 h-3 opacity-60"})]}):e.jsx("span",{className:"font-medium",children:t.domain.toLowerCase()})}),e.jsx("td",{className:"px-4 py-3 whitespace-nowrap",children:e.jsx("div",{className:"inline-flex items-center gap-2",children:o?e.jsxs("span",{className:"font-semibold",style:{color:a.accent},children:["$",o.value.toLocaleString()]}):e.jsx("a",{href:`/appraise-your-domain?domain=${encodeURIComponent(t.domain)}`,target:"_blank",rel:"noopener noreferrer",className:"text-xs hover:underline",style:{color:a.accent},children:"Appraise"})})}),e.jsx("td",{className:"px-4 py-3 whitespace-nowrap",children:e.jsx(be,{endTimestamp:t.end_timestamp,endTime:t.end_time})})]},`${t.domain}-${n}`)})})]})})}),x!=="all"&&f>1&&e.jsx("div",{className:"flex justify-center mt-8",children:e.jsx(ue,{children:e.jsxs(pe,{children:[e.jsx(M,{children:e.jsx(xe,{onClick:()=>{l>1&&(_(l-1),window.scrollTo({top:0,behavior:"smooth"}))},className:l===1?"pointer-events-none opacity-50":"cursor-pointer"})}),K().map((t,n)=>e.jsx(M,{children:t==="ellipsis"?e.jsx(he,{}):e.jsx(fe,{onClick:()=>{_(t),window.scrollTo({top:0,behavior:"smooth"})},isActive:l===t,className:"cursor-pointer",children:t})},n)),e.jsx(M,{children:e.jsx(ge,{onClick:()=>{l<f&&(_(l+1),window.scrollTo({top:0,behavior:"smooth"}))},className:l===f?"pointer-events-none opacity-50":"cursor-pointer"})})]})})})]})})]}),e.jsx(ce,{})]})}export{Ce 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.