PageSourceSearch

https://goexpired.com/assets/Sponsors-CIVukr-x.js

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

1import{_ as W,r as i,s as _,j as e,G as O,h as R}from"./index-DocTL6Xp.js";import{C as Y}from"./circle-check-conwmP9q.js";import{U as I}from"./upload-Dbv5oUVA.js";const L=1,J="fc2bfc9c-07a7-46c4-86f3-55066ba8a6cc",H="25210763-c931-4df9-aca0-d42b22c5597f",z="/__l5e/assets-v1/fc2bfc9c-07a7-46c4-86f3-55066ba8a6cc/goexpired-newsletter-logo.png",K="a/v1/25210763-c931-4df9-aca0-d42b22c5597f/fc2bfc9c-07a7-46c4-86f3-55066ba8a6cc/goexpired-newsletter-logo.png",Z="goexpired-newsletter-logo.png",V=137807,X="image/png",q="2026-07-11T18:55:01Z",Q={version:L,asset_id:J,project_id:H,url:z,r2_key:K,original_filename:Z,size:V,content_type:X,created_at:q},t={bg:"#FAF9F5",surface:"#FFFFFF",ink:"#1A1A1A",inkMuted:"#6B6B68",border:"#E8E5DD",accent:"#2563EB"},F="'Cormorant', serif",ee=30,P=c=>50+25*(c-1),f={backgroundColor:t.surface,border:`1px solid ${t.border}`,color:t.ink},T=c=>`${c.getUTCFullYear()}-${String(c.getUTCMonth()+1).padStart(2,"0")}-${String(c.getUTCDate()).padStart(2,"0")}`,te=["January","February","March","April","May","June","July","August","September","October","November","December"],se=["Mo","Tu","We","Th","Fr","Sa","Su"];function re({booked:c,selected:N,onSelect:w}){const C=T(new Date),[j,x]=i.useState(()=>{const r=new Date;return new Date(Date.UTC(r.getUTCFullYear(),r.getUTCMonth(),1))}),u=j.getUTCFullYear(),n=j.getUTCMonth(),v=(new Date(Date.UTC(u,n,1)).getUTCDay()+6)%7,b=new Date(Date.UTC(u,n+1,0)).getUTCDate(),g=[...Array(v).fill(null),...Array.from({length:b},(r,y)=>T(new Date(Date.UTC(u,n,y+1))))],k=r=>x(new Date(Date.UTC(u,n+r,1)));return e.jsxs("div",{className:"p-4 rounded-xl",style:{backgroundColor:t.surface,border:`1px solid ${t.border}`},children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsx("button",{type:"button",onClick:()=>k(-1),className:"h-8 w-8 rounded-full text-sm font-medium",style:{...f},children:"←"}),e.jsxs("div",{className:"text-sm font-semibold",children:[te[n]," ",u]}),e.jsx("button",{type:"button",onClick:()=>k(1),className:"h-8 w-8 rounded-full text-sm font-medium",style:{...f},children:"→"})]}),e.jsx("div",{className:"grid grid-cols-7 gap-1 text-center text-xs",style:{color:t.inkMuted},children:se.map(r=>e.jsx("div",{className:"py-1",children:r},r))}),e.jsx("div",{className:"grid grid-cols-7 gap-1 text-center",children:g.map((r,y)=>{if(!r)return e.jsx("div",{},`e${y}`);const d=r<C||c.has(r),D=r===N;return e.jsx("button",{type:"button",disabled:d,onClick:()=>w(r),className:"h-8 rounded-md text-xs font-medium transition-colors",style:D?{backgroundColor:t.accent,color:"#FFFFFF"}:d?{backgroundColor:"#F3F2EE",color:"#C9C6BE",textDecoration:"line-through"}:{...f},title:d&&c.has(r)?"Booked":void 0,children:Number(r.slice(8))},r)})}),e.jsx("p",{className:"text-xs mt-3",style:{color:t.inkMuted},children:"Greyed-out dates are already booked. Only one top banner runs per day."})]})}function le(){const[c]=W(),N=c.get("booked")==="1",w=c.get("canceled")==="1",[C,j]=i.useState(new Set),[x,u]=i.useState(""),[n,S]=i.useState(null),[v,b]=i.useState(!1),[g,k]=i.useState(""),[r,y]=i.useState(""),[d,D]=i.useState(1),[E,l]=i.useState(null),[B,M]=i.useState(!1);i.useEffect(()=>{_.functions.invoke("create-sponsor-checkout",{method:"GET"}).then(({data:s})=>{if(!(s!=null&&s.booked))return;const a=new Set;for(const m of s.booked){let o=m.start_date;const p=m.end_date;let h=0;for(;o<=p&&h<400;){a.add(o);const A=new Date(`${o}T00:00:00Z`);A.setUTCDate(A.getUTCDate()+1),o=T(A),h+=1}}j(a)}).catch(()=>{})},[]);const $=i.useMemo(()=>P(d),[d]),U=s=>{if(l(null),S(null),!s)return;if(!/^image\/(png|jpe?g)$/i.test(s.type)){l("The banner must be a PNG or JPG image.");return}if(s.size>45e5){l("The banner image is too large (max 4 MB).");return}const a=new FileReader;a.onload=()=>{const m=String(a.result),o=new Image;o.onload=()=>{const p=o.naturalWidth/o.naturalHeight;if(o.naturalWidth<600||p<2.85||p>3.15){l("The banner must be at least 600 px wide and in 3:1 format - 1200 x 400 px gives the best result.");return}S(m)},o.onerror=()=>l("Could not read the image. Please try another file."),o.src=m},a.readAsDataURL(s)},G=async s=>{var a,m;if(s.preventDefault(),l(null),!n){l("Please upload your banner - 1200 x 400 px gives the best result.");return}if(!x){l("Please pick a start date on the calendar.");return}if(!g.trim()){l("Please enter the link the banner should point to.");return}if(!r.trim()){l("Please enter your email for the receipt.");return}M(!0);try{const{data:o,error:p}=await _.functions.invoke("create-sponsor-checkout",{body:{image:n,link:g,email:r,start_date:x,issues:d,origin:window.location.origin}});if(p){let h="Something went wrong. Please try again.";try{h=((m=await((a=p.context)==null?void 0:a.json()))==null?void 0:m.error)||h}catch{}l(h);return}o!=null&&o.url?window.location.href=o.url:l((o==null?void 0:o.error)||"Something went wrong. Please try again.")}finally{M(!1)}};return e.jsxs("div",{style:{backgroundColor:t.bg,color:t.ink,fontFamily:"'Inter', system-ui, sans-serif"},className:"min-h-screen flex flex-col",children:[e.jsx(O,{activeLink:"advertise"}),e.jsx("main",{className:"flex-grow",children:e.jsx("section",{className:"max-w-6xl mx-auto px-6 md:px-8 pt-16 md:pt-24 pb-16",children:e.jsxs("div",{className:"grid gap-12 lg:grid-cols-[minmax(0,3fr)_minmax(0,2fr)] lg:gap-16 items-start",children:[e.jsxs("div",{className:"max-w-2xl",children:[e.jsx("h1",{className:"text-5xl md:text-7xl leading-[1.05] tracking-tight mb-6",style:{fontFamily:F,fontWeight:600},children:"Book the top banner"}),e.jsx("p",{className:"text-lg md:text-xl leading-relaxed",style:{color:t.inkMuted,fontFamily:F,fontWeight:500},children:"Put your brand at the very top of our newsletter, in front of more than 1,500 domain investors - $50 for the first issue, $25 for each consecutive issue."}),N&&e.jsxs("div",{className:"mt-8 p-4 rounded-xl flex gap-3",style:{backgroundColor:"#ECFDF5",border:"1px solid #A7F3D0"},children:[e.jsx(Y,{className:"w-5 h-5 mt-0.5",style:{color:"#059669"}}),e.jsx("div",{className:"text-sm",children:"Payment received - your banner booking is in. We review the banner before it runs, and a receipt is on its way to your inbox."})]}),w&&e.jsx("div",{className:"mt-8 p-4 rounded-xl text-sm",style:{backgroundColor:t.surface,border:`1px solid ${t.border}`},children:"Payment was canceled. Nothing was charged."}),e.jsxs("form",{onSubmit:G,className:"mt-12 p-6 md:p-9 rounded-2xl space-y-10",style:{backgroundColor:t.surface,border:`1px solid ${t.border}`,boxShadow:"0 18px 44px -32px rgba(26,26,26,0.28)"},children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl md:text-4xl leading-tight",style:{fontFamily:F,fontWeight:600},children:"Upload your banner"}),e.jsx("p",{className:"text-sm md:text-base mt-3 leading-relaxed",style:{color:t.inkMuted},children:"and watch it appear in the newsletter preview to the right."}),e.jsx("label",{htmlFor:"sponsor-banner-file",onDragOver:s=>{s.preventDefault(),b(!0)},onDragLeave:()=>b(!1),onDrop:s=>{var a;s.preventDefault(),b(!1),U(((a=s.dataTransfer.files)==null?void 0:a[0])??null)},className:"mt-6 block rounded-xl overflow-hidden cursor-pointer transition-colors",style:{border:`1px dashed ${v?t.accent:t.border}`,backgroundColor:v?"#F4F7FF":"#FBFAF6"},children:n?e.jsxs("span",{className:"block relative",children:[e.jsx("img",{src:n,alt:"Your banner",className:"w-full block",style:{aspectRatio:"3 / 1",objectFit:"cover"}}),e.jsx("span",{className:"absolute bottom-3 right-3 text-[11px] font-semibold px-3.5 py-1.5 rounded-full",style:{backgroundColor:t.accent,color:"#FFFFFF",boxShadow:"0 4px 12px -4px rgba(26,26,26,0.45)"},children:"Replace banner"})]}):e.jsxs("span",{className:"block px-6 py-10 text-center",children:[e.jsx(I,{className:"w-6 h-6 mx-auto",style:{color:t.accent}}
1),e.jsx("span",{className:"block text-sm font-medium mt-3",children:"Drop your banner here"}),e.jsx("span",{className:"block text-xs mt-1.5",style:{color:t.inkMuted},children:"or click to choose a PNG or JPG file"})]})}),e.jsx("input",{id:"sponsor-banner-file",type:"file",accept:"image/png,image/jpeg",className:"sr-only",onChange:s=>{var a;U(((a=s.target.files)==null?void 0:a[0])??null),s.target.value=""}}),e.jsx("p",{className:"text-xs mt-3 leading-relaxed",style:{color:t.inkMuted},children:"Best result at 1200 x 400 px - at least 600 px wide, always in 3:1 format. PNG or JPG."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-semibold",children:"Pick your start date"}),e.jsx("div",{className:"mt-4",children:e.jsx(re,{booked:C,selected:x,onSelect:u})}),x&&e.jsxs("p",{className:"text-xs mt-3",style:{color:t.inkMuted},children:["Starts ",x]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"sponsor-issues",className:"block text-sm font-semibold",children:"Number of consecutive issues"}),e.jsx("select",{id:"sponsor-issues",value:d,onChange:s=>D(Number(s.target.value)),className:"mt-4 w-full h-12 px-4 rounded-lg text-sm outline-none",style:f,children:Array.from({length:ee},(s,a)=>a+1).map(s=>e.jsxs("option",{value:s,children:[s," issue",s>1?"s":""," - $",P(s)]},s))})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"sponsor-link",className:"block text-sm font-semibold",children:"Link the banner should point to"}),e.jsx("input",{id:"sponsor-link",value:g,onChange:s=>k(s.target.value),placeholder:"https://your-site.com",className:"mt-4 w-full h-12 px-4 rounded-lg text-sm outline-none",style:f})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"sponsor-email",className:"block text-sm font-semibold",children:"Your email (for the receipt)"}),e.jsx("input",{id:"sponsor-email",type:"email",value:r,onChange:s=>y(s.target.value),placeholder:"[email protected]",className:"mt-4 w-full h-12 px-4 rounded-lg text-sm outline-none",style:f})]}),e.jsxs("div",{className:"flex items-center justify-between pt-8",style:{borderTop:`1px solid ${t.border}`},children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-[11px] uppercase tracking-[0.16em]",style:{color:t.inkMuted},children:"Total"}),e.jsxs("div",{className:"text-3xl mt-1",style:{fontFamily:F,fontWeight:600},children:["$",$]}),d>1&&e.jsxs("div",{className:"text-xs mt-1.5",style:{color:t.inkMuted},children:["$50 + ",d-1," x $25"]})]}),e.jsx("button",{type:"submit",disabled:B,className:"h-12 px-7 rounded-full text-sm font-medium disabled:opacity-70 transition-colors hover:bg-[#1D4FD8]",style:{backgroundColor:t.accent,color:"#FFFFFF"},children:B?"Redirecting...":"Pay & book"})]}),E&&e.jsx("p",{className:"text-sm",style:{color:"#B91C1C"},children:E})]}),e.jsx("p",{className:"text-xs mt-6 leading-relaxed",style:{color:t.inkMuted,opacity:.75},children:"Your banner appears at the top of the newsletter, right after the intro, at 600 x 200 pixels. Every banner is reviewed before it goes out; if it is not approved, you get a full refund. Secure payment via Stripe."}),e.jsx("p",{className:"text-xs mt-3 leading-relaxed",style:{color:t.inkMuted,opacity:.75},children:"All purchases are final. We do not offer refunds on paid bookings - not even if an issue is delayed. If your banner is not approved, you are refunded in full."})]}),e.jsxs("div",{className:"lg:sticky lg:top-12",children:[e.jsx("p",{className:"text-xs font-semibold tracking-[0.18em] uppercase mb-3",style:{color:t.inkMuted},children:n?"Your banner in the newsletter":"Where your banner appears"}),e.jsxs("div",{className:"relative rounded-2xl overflow-hidden",style:{backgroundColor:"#FFFFFF",border:`1px solid ${t.border}`,boxShadow:"0 12px 32px -16px rgba(26,26,26,0.18)",maxHeight:640},children:[e.jsxs("div",{className:"px-6 pt-4 pb-10",style:{fontFamily:"Georgia, serif"},children:[e.jsx("div",{className:"text-center text-[11px] underline",style:{color:"#6B6B68",fontFamily:"Arial, sans-serif"},children:"View in browser"}),e.jsx("img",{src:Q.url,alt:"GoExpired",className:"mx-auto mt-5 h-10 w-auto"}),e.jsx("div",{className:"text-center text-[10px] tracking-[0.08em] uppercase mt-3",style:{color:"#6B6B68",fontFamily:"Arial, sans-serif"},children:"Premium auctions added today"}),e.jsx("p",{className:"text-[14px] leading-relaxed mt-5",style:{color:"#1A1A1A"},children:"21 premium domain auctions curated today. Here's what's worth a look."}),e.jsx("div",{className:"mt-5",children:n?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"text-center text-[9px] tracking-[0.14em] uppercase mb-1",style:{color:"#9A9A96",fontFamily:"Arial, sans-serif"},children:"Sponsored"}),e.jsx("img",{src:n,alt:"Your banner",className:"w-full block rounded-md",style:{aspectRatio:"3 / 1",objectFit:"cover"}})]}):e.jsxs("div",{className:"w-full flex flex-col items-center justify-center text-center rounded-md px-4",style:{aspectRatio:"3 / 1",backgroundColor:"#F7F8FB",border:"1px dashed #D5D9E2"},children:[e.jsx("div",{className:"text-[9px] font-bold tracking-[0.16em] uppercase",style:{color:"#6B6B68",fontFamily:"Arial, sans-serif"},children:"Your banner here"}),e.jsx("div",{className:"text-[15px] font-bold leading-tight mt-1",style:{color:"#1A1A1A"},children:"1200 x 400 px recommended"}),e.jsx("div",{className:"text-[10px] mt-1",style:{color:"#6B6B68",fontFamily:"Arial, sans-serif"},children:"Minimum 600 px wide, 3:1 format - shown at 600 x 200"})]})}),e.jsx("div",{className:"mt-6 pl-2 text-[10px] font-bold tracking-[0.14em] uppercase",style:{color:"#6B6B68",borderLeft:`3px solid ${t.accent}`,fontFamily:"Arial, sans-serif"},children:"Editor's pick"}),e.jsxs("div",{className:"mt-3 rounded-lg p-4",style:{backgroundColor:"#F7F8FB",border:"1px solid #E5E7EB"},children:[e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsx("span",{className:"text-[9px] font-bold tracking-[0.1em] px-2 py-1 rounded-full",style:{backgroundColor:"#E6EEF9",color:"#2F4A7A",fontFamily:"Arial, sans-serif"},children:"EDITOR'S PICK"}),e.jsx("span",{className:"text-[10px] uppercase",style:{color:"#6B6B68",fontFamily:"Arial, sans-serif"},children:"Ends in"})]}),e.jsx("div",{className:"text-xl font-bold mt-3",style:{color:"#1A1A1A"},children:"Focks.com"})]})]}),e.jsx("div",{className:"absolute inset-x-0 bottom-0 h-24 pointer-events-none",style:{background:"linear-gradient(to bottom, rgba(255,255,255,0), #FFFFFF)"}})]}),e.jsx("p",{className:"text-xs mt-3 leading-relaxed",style:{color:t.inkMuted},children:"The top banner is the first thing every reader sees - right after the intro, above the editor's pick. One banner per day keeps it exclusive. Upload yours to preview it live."})]})]})})}),e.jsx(R,{})]})}
1export{le 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.