PageSourceSearch

https://goexpired.com/assets/TodaysPicks-Cu84VTY_.js

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

1import{n as $,u as L,c as A,r as d,j as e,G as B,P as U,L as P,o as W,p as G,q as I,t as O,v as R,B as z,S as q,g as H,A as Y,C as J,E as V,h as K,s as Q}from"./index-DocTL6Xp.js";import{W as X}from"./WatchlistStar-MGMHUZ8K.js";import{i as Z,f as b,C as ee,s as te,a as se}from"./calendar-CNHSvOdV.js";import{C as re}from"./chevron-left-DuzCoyNm.js";import{C as oe}from"./calendar-BwAh82ST.js";import"./useWatchlist-DnFwqyIo.js";function u(o){return Z(o,$(o))}const s={bg:"#FAF9F5",surface:"#FFFFFF",ink:"#1A1A1A",inkMuted:"#6B6B68",accent:"#C96442",border:"#E8E5DD",borderStrong:"#D8D3C5"},ae=o=>{const a=o.split(".");return a.length>1?a.slice(1).join(".").toLowerCase():""},ne=o=>{const a=o.domain.split(".")[0],r=ae(o.domain),l=o.formatted_domain&&o.formatted_domain.toLowerCase()===a.toLowerCase()?o.formatted_domain:a.charAt(0).toUpperCase()+a.slice(1).toLowerCase();return r?`${l}.${r}`:l},le=o=>{const a=new Date(o).getTime()-Date.now();if(a<=0)return"Expired";const r=Math.floor(a/864e5),l=Math.floor(a%864e5/36e5),i=Math.floor(a%36e5/6e4);if(r>0)return`${r}d ${l}h ${i}m`;const m=Math.floor(a%6e4/1e3);return l>0?`${l}h ${i}m ${m}s`:`${i}m ${m}s`},ie=(o,a)=>{if(o==null)return null;const r=(a||"usd").toLowerCase()==="usd"?"$":"",l=Math.abs(o-Math.trunc(o))>1e-4;return`${r}${o.toLocaleString("en-US",{minimumFractionDigits:l?2:0,maximumFractionDigits:2})}`},ce=(o,a,r)=>{if(o==null)return null;const l=ie(o,r);return a&&a>0?`${l} · ${a} bid${a===1?"":"s"}`:l},de=o=>{if(!o)return null;const a=Date.now()-new Date(o).getTime();if(a<0)return"just now";const r=Math.floor(a/1e3);if(r<60)return"just now";const l=Math.floor(r/60);return l<60?`Updated ${l}m ago`:`Updated ${Math.floor(l/60)}h ago`},k=6;function ge(){const{user:o}=L(),a=A(),[r,l]=d.useState(new Date),[i,m]=d.useState([]),[g,j]=d.useState(!0),[_,N]=d.useState(!1),[,F]=d.useState(0),C=!o,w=Math.max(0,i.length-k);d.useEffect(()=>{document.title="Today's Picks - GoExpired.com"},[]),d.useEffect(()=>{const t=setInterval(()=>F(c=>c+1),1e3);return()=>clearInterval(t)},[]);const p=d.useMemo(()=>{const t=new Date(Date.UTC(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate(),0,0,0,0)),c=new Date(t);return c.setUTCDate(c.getUTCDate()+1),{start:t.toISOString(),end:c.toISOString()}},[r]);d.useEffect(()=>{let t=!1;return(async()=>{j(!0);try{const{data:n,error:x}=await Q.from("expired_auctions_hot").select("id, domain, expires, logo_url, dynadot_appraisal, atom_premium, formatted_domain, description, source_type, auction_url, current_bid_price, bid_count, auction_price_currency, price_last_checked_at").gte("created_at",p.start).lt("created_at",p.end).order("expires",{ascending:!0});if(x)throw x;const y=(n||[]).filter(f=>!f.expires||new Date(f.expires).getTime()>Date.now());t||m(y)}catch(n){console.error("Error loading today's picks:",n),t||m([])}finally{t||j(!1)}})(),()=>{t=!0}},[p.start,p.end]);const h=new Date;h.setHours(0,0,0,0);const E=r>h,M=()=>l(te(r,1)),S=()=>{const t=se(r,1);t<=h&&l(t)},D=()=>l(new Date),T=u(r)?`Today - ${b(r,"EEEE, MMMM d")}`:b(r,"EEEE, MMMM d, yyyy");return e.jsxs("div",{style:{backgroundColor:s.bg,color:s.ink,fontFamily:"'Inter', system-ui, sans-serif"},className:"min-h-screen",children:[e.jsx(B,{}),e.jsxs("main",{children:[e.jsx(U,{title:"Today's Picks | GoExpired",description:"The best expired domain auctions of the day, selected for serious domain investors.",path:"/todays-picks"}),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:"Today's Picks"}),e.jsxs("p",{className:"text-lg max-w-2xl",style:{color:s.inkMuted,fontFamily:"'Cormorant', serif",fontWeight:500},children:["A quick look at the hand-picked Expired & Backorder Auctions added today. Use the date picker to revisit earlier lists."," ",e.jsx(P,{to:"/stay-in-touch",className:"underline transition-colors text-blue-600",children:"Click here and never miss a pick!"})]})]}),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-8",children:[e.jsxs("div",{className:"inline-flex items-center rounded-full overflow-hidden",style:{backgroundColor:s.surface,border:`1px solid ${s.border}`},children:[e.jsx("button",{onClick:M,className:"px-3 py-2.5 hover:bg-[#F5F2EA] transition-colors","aria-label":"Previous day",children:e.jsx(re,{className:"w-4 h-4",style:{color:s.ink}})}),e.jsxs(W,{open:_,onOpenChange:N,children:[e.jsx(G,{asChild:!0,children:e.jsxs("button",{className:"px-4 py-2.5 inline-flex items-center gap-2 text-sm font-medium hover:bg-[#F5F2EA] transition-colors",style:{color:s.ink},children:[e.jsx(oe,{className:"w-4 h-4",style:{color:"#2563EB"}}),e.jsx("span",{children:T})]})}),e.jsx(I,{className:"w-auto p-0",align:"start",children:e.jsx(ee,{mode:"single",selected:r,onSelect:t=>{t&&(l(t),N(!1))},disabled:t=>t>h,initialFocus:!0,className:O("p-3 pointer-events-auto")})})]}),e.jsx("button",{onClick:S,disabled:E||u(r),className:"px-3 py-2.5 hover:bg-[#F5F2EA] transition-colors disabled:opacity-40 disabled:cursor-not-allowed","aria-label":"Next day",children:e.jsx(R,{className:"w-4 h-4",style:{color:s.ink}})})]}),!u(r)&&e.jsx(z,{variant:"ghost",size:"sm",onClick:D,className:"rounded-full text-sm",style:{color:"#2563EB"},children:"Jump to today"}),e.jsx("span",{className:"text-sm ml-auto",style:{color:s.inkMuted},children:g?"Loading…":`${i.length} ${i.length===1?"pick":"picks"}`})]}),g?e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8",children:Array.from({length:6}).map((t,c)=>e.jsxs("div",{className:"rounded-2xl overflow-hidden animate-pulse",style:{backgroundColor:s.surface,border:`1px solid ${s.border}`},children:[e.jsx("div",{className:"aspect-[3/2]",style:{backgroundColor:"#F0EDE5"}}),e.jsxs("div",{className:"p-5 space-y-3",children:[e.jsx("div",{className:"h-5 w-2/3 rounded",style:{backgroundColor:"#F0EDE5"}}),e.jsx("div",{className:"h-4 w-1/3 rounded",style:{backgroundColor:"#F0EDE5"}})]})]},c))}):i.length===0?e.jsxs("div",{className:"text-center py-20 rounded-2xl",style:{backgroundColor:s.surface,border:`1px solid ${s.border}`},children:[e.jsx(q,{className:"w-10 h-10 mx-auto mb-4",style:{color:"#2563EB"}}),e.jsx("h3",{className:"text-3xl mb-3",style:{fontFamily:"'Cormorant', serif",fontWeight:600},children:u(r)?"Coming soon":"All auctions have ended"}),e.jsx("p",{className:"text-base max-w-md mx-auto",style:{color:s.inkMuted}
1,children:u(r)?"No hand-picked auctions have been added yet today. Check back later - new picks are added daily.":`All hand-picked auctions added on ${b(r,"MMMM d, yyyy")} have ended.`})]}):e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8",children:(C?i.slice(0,k):i).map(t=>{const c=H(t.domain,t.source_type,t.auction_url);return e.jsxs("article",{className:"rounded-2xl overflow-hidden transition-all duration-200 hover:-translate-y-[2px] flex flex-col h-full",style:{backgroundColor:s.surface,border:`1px solid ${s.border}`,boxShadow:"0 1px 2px rgba(26,26,26,0.04)"},onMouseEnter:n=>n.currentTarget.style.boxShadow="0 12px 32px -12px rgba(26,26,26,0.15), 0 2px 6px rgba(26,26,26,0.05)",onMouseLeave:n=>n.currentTarget.style.boxShadow="0 1px 2px rgba(26,26,26,0.04)",children:[e.jsx("a",{href:c,target:"_blank",rel:"noopener noreferrer",className:"block",children:t.logo_url?e.jsx("div",{className:"aspect-[3/2] overflow-hidden flex items-center justify-center p-2",style:{backgroundColor:"#FFFFFF"},children:e.jsx("img",{src:t.logo_url,alt:`Logo for ${t.domain}`,className:"w-full h-full object-contain",loading:"lazy"})}):e.jsx("div",{className:"aspect-[3/2] flex items-center justify-center",style:{backgroundColor:"#F5F2EA",color:s.inkMuted,fontSize:"1.5rem",fontWeight:600},children:t.formatted_domain||t.domain.split(".")[0].charAt(0).toUpperCase()+t.domain.split(".")[0].slice(1).toLowerCase()})}),e.jsxs("div",{className:"p-5 md:p-6 flex-1 flex flex-col gap-4",children:[e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsx("h3",{className:"text-xl tracking-tight truncate",style:{fontWeight:600},title:t.domain,children:ne(t)}),e.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[t.atom_premium&&e.jsx(Y,{size:"sm"}),e.jsx(X,{payload:{domain:t.domain,source_id:t.id,end_time:t.expires,auction_url:c,source_type:t.source_type,logo_url:t.logo_url,formatted_domain:t.formatted_domain,snapshot:{dynadot_appraisal:t.dynadot_appraisal,atom_premium:t.atom_premium,description:t.description}}})]})]}),e.jsx("p",{className:"min-h-[2.5rem] text-sm line-clamp-2",style:{color:s.inkMuted},children:t.description||" "}),e.jsxs("div",{className:"mt-auto flex flex-col gap-4",children:[e.jsxs("div",{className:"flex flex-col gap-1 text-sm",style:{color:s.inkMuted},children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[e.jsx(J,{className:"w-3.5 h-3.5"}),le(t.expires)]}),e.jsx("a",{href:`/appraise-your-domain?domain=${encodeURIComponent(t.domain)}`,target:"_blank",rel:"noopener noreferrer",className:"text-sm hover:underline transition-colors",style:{color:"#2563EB",fontWeight:500},onMouseEnter:n=>n.currentTarget.style.color="#1D4FD8",onMouseLeave:n=>n.currentTarget.style.color="#2563EB",children:"Appraise"})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-xs uppercase tracking-wider",style:{color:s.inkMuted},children:"Current bid"}),(()=>{var v;const n=ce(t.current_bid_price,t.bid_count,t.auction_price_currency),x=de(t.price_last_checked_at),y=(v=t.domain)==null?void 0:v.toLowerCase().endsWith(".now"),f=t.source_type==="gname"||t.source_type==="namecheap";return n?e.jsxs("span",{className:"text-right",children:[e.jsx("span",{className:"tabular-nums",style:{color:s.ink,fontWeight:600},children:n}),x&&e.jsx("span",{className:"block text-[11px]",style:{color:s.inkMuted},children:x})]}):y?e.jsx("span",{className:"text-xs",style:{color:s.inkMuted},children:"—"}):f?e.jsxs("span",{className:"text-xs",style:{color:s.inkMuted},children:[t.source_type==="gname"?"Gname":"Namecheap"," prices not live-checked"]}):e.jsx("span",{className:"text-xs italic",style:{color:s.inkMuted},children:"Checking price..."})})()]})]}),e.jsx("a",{href:c,target:"_blank",rel:"noopener noreferrer",className:"block",children:e.jsxs("button",{className:"w-full py-2.5 rounded-full text-sm font-medium transition-all duration-200 flex items-center justify-center gap-2 hover:-translate-y-[1px]",style:{backgroundColor:"rgba(255,255,255,0.6)",backdropFilter:"blur(12px)",WebkitBackdropFilter:"blur(12px)",border:`1px solid ${s.borderStrong}`,color:s.ink,boxShadow:"0 4px 12px -6px rgba(26,26,26,0.1), inset 0 1px 0 rgba(255,255,255,0.7)"},onMouseEnter:n=>{n.currentTarget.style.backgroundColor="#2563EB",n.currentTarget.style.color="#FFFFFF",n.currentTarget.style.borderColor="#2563EB"},onMouseLeave:n=>{n.currentTarget.style.backgroundColor="rgba(255,255,255,0.6)",n.currentTarget.style.color=s.ink,n.currentTarget.style.borderColor=s.borderStrong},children:["View Auction",e.jsx(V,{className:"w-3.5 h-3.5"})]})})]})]})]},t.id)})}),C&&!g&&w>0&&e.jsxs("div",{className:"rounded-3xl p-10 md:p-14 text-center max-w-3xl mx-auto mt-12",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:"#2563EB"},children:"Free account required"}),e.jsxs("h2",{className:"text-4xl md:text-5xl leading-[1.05] tracking-tight mb-4",style:{fontFamily:"Cormorant, serif",fontWeight:600}
1,children:["Unlock ",w.toLocaleString()," more hand-picked domain auctions."]}),e.jsxs("p",{className:"text-lg mb-8 max-w-xl mx-auto",style:{color:s.inkMuted,fontFamily:"Cormorant, serif",fontWeight:500},children:["You're viewing just the top ",k,". Create your free GoExpired account in seconds to browse all ",i.length.toLocaleString()," expertly curated auctions, updated every day."]}),e.jsx("ul",{className:"text-left max-w-md mx-auto mb-8 space-y-3 text-sm",style:{color:s.ink},children:[`Browse all ${i.length.toLocaleString()} curated auctions`,"One click directly to the auction","Free forever — no credit card required"].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:"#2563EB",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:()=>a("/auth"),className:"px-6 py-3 rounded-full text-sm font-medium transition-opacity hover:opacity-90",style:{backgroundColor:"#2563EB",color:"#fff"},children:"Create free account"}),e.jsx("button",{onClick:()=>a("/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(K,{})]})}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.