1import{t as w,r as c,j as e,L as d}from"./vendor-CSpQeQFa.js";import{S as v,B as m,s as j}from"./entry-main-PLc9_a6q.js";import{u as _}from"./useReferralVerificationSettings-BrXU80ZR.js";import{u as N,A as y}from"./MarketingHeader-DURgYL2j.js";import{u as z}from"./useDiscordConnection-qA4zx1HS.js";import{m as i}from"./use-motion-value-DTB6dbb9.js";import{E as S}from"./perfConfigSelect-DHd8mvGs.js";import{L as k}from"./BonusExpiryCountdown-DZAQV4Wx.js";import{S as p}from"./signatureCeremonyModalGuard-vHUWzdXW.js";const n=(t=0,s)=>s?{}:{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.55,delay:t,ease:[.22,1,.36,1]}};function A(t){return t.split(/[\s+]+/).filter(Boolean).slice(0,2).map(s=>s[0]?.toUpperCase()??"").join("")}function I(){return e.jsx("header",{className:"absolute inset-x-0 top-0 z-20 border-b border-zinc-200/80 bg-white/80 backdrop-blur-sm",children:e.jsxs("div",{className:"mx-auto flex h-16 max-w-7xl items-center justify-between px-5 sm:px-8",children:[e.jsx(d,{to:"/",className:"opacity-90 transition-opacity hover:opacity-100",children:e.jsx("img",{src:"/logos/anthum-logo.png",alt:"Anthum",className:"h-auto w-[clamp(99px,19.8vw,132px)] brightness-0"})}),e.jsxs("span",{className:"hidden items-center gap-2 text-[11px] font-semibold uppercase tracking-[0.2em] text-zinc-500 sm:flex",children:[e.jsx(p,{className:"h-3.5 w-3.5 text-zinc-400"}),"You've been invited"]})]})})}function C({displayName:t,promoCode:s}){const l=A(t);return e.jsxs("div",{className:"inline-flex max-w-full flex-col gap-2",children:[e.jsxs("div",{className:"inline-flex max-w-full items-center gap-3 rounded-2xl border border-zinc-200 bg-zinc-50 px-4 py-3",children:[e.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-zinc-900 text-sm font-semibold text-white",children:l||"?"}),e.jsxs("p",{className:"text-left text-sm leading-snug text-zinc-700 sm:text-[15px]",children:[e.jsx("span",{className:"font-semibold text-zinc-900",children:t})," ","invited you to Anthum"]})]}),s&&e.jsxs("div",{className:"inline-flex w-fit items-center gap-2 rounded-full border border-zinc-200 bg-white px-3 py-1.5 text-xs text-zinc-600",children:[e.jsx(p,{className:"h-3.5 w-3.5 text-primary"}),"Promo: ",e.jsx("span",{className:"font-mono font-semibold text-zinc-900",children:s})]})]})}function L({reduceMotion:t}){return e.jsx(i.div,{className:"relative mx-auto mt-10 w-full max-w-md md:absolute md:inset-y-0 md:right-0 md:mt-0 md:mx-0 md:w-[min(52vw,48%)] md:max-w-none",...n(.15,t),children:e.jsxs("div",{className:"relative aspect-[4/5] overflow-hidden rounded-3xl border border-zinc-200 bg-zinc-950 shadow-[0_24px_60px_-32px_rgba(15,23,42,0.2)] sm:aspect-[5/6] md:h-full md:min-h-full md:rounded-none md:border-0 md:shadow-none",children:[e.jsxs("picture",{children:[e.jsx("source",{media:"(max-width: 767px)",srcSet:"/images/Authpage/auth-background-mobile-720.webp 720w, /images/Authpage/auth-background-mobile.webp 1080w",sizes:"(min-width: 640px) 448px, 100vw"}),e.jsx("img",{src:"/images/Authpage/auth-background.webp",srcSet:"/images/Authpage/auth-background-640.webp 640w, /images/Authpage/auth-background-1280.webp 1280w, /images/Authpage/auth-background-1920.webp 1920w, /images/Authpage/auth-background.webp 2560w",sizes:"(min-width: 768px) 52vw, 100vw",alt:"Showcase your skills on Anthum",className:"h-full w-full object-cover object-center md:object-left",loading:"eager",decoding:"async"})]}),e.jsx("div",{className:"pointer-events-none absolute inset-0 hidden bg-[linear-gradient(to_right,rgba(255,255,255,0.96)_0%,rgba(255,255,255,0.55)_16%,transparent_38%)] md:block","aria-hidden":!0}),e.jsx("div",{className:"pointer-events-none absolute inset-0 bg-[linear-gradient(to_bottom,rgba(255,255,255,0.35)_0%,rgba(255,255,255,0.82)_58%,rgb(255,255,255)_100%)] md:hidden","aria-hidden":!0})]})})}function E({scout:t}){const s=z();return e.jsxs(e.Fragment,{children:[e.jsx(v,{title:`${t.display_name} invited you to Anthum`,description:"Join the Anthum Creator Network â create AI-powered ads, compete in brand contests, and win cash rewards.",canonicalUrl:`https://anthum.ai/c/${t.handle}`}),e.jsxs("section",{className:"relative min-h-screen overflow-hidden bg-white text-zinc-900",children:[e.jsx(I,{}),e.jsx("div",{className:"pointer-events-none absolute inset-0 bg-[radial-gradient(ellipse_80%_50%_at_50%_-10%,rgba(59,130,246,0.06),transparent)]"}),e.jsxs("div",{className:"relative mx-auto min-h-screen max-w-7xl px-5 pb-16 pt-24 sm:px-8 sm:pb-20 sm:pt-28 md:px-8 md:pb-24 md:pt-28 lg:px-12",children:[e.jsxs("div",{className:"relative z-10 flex max-w-xl flex-col md:max-w-lg lg:max-w-xl",children:[e.jsx(i.div,{...n(0,s),children:e.jsx(C,{displayName:t.display_name,promoCode:t.promo_code})}),e.jsx(i.h1,{className:"mt-8 max-w-xl font-dm-sans text-[2rem] font-bold uppercase leading-[1.05] tracking-tight text-zinc-900 sm:text-5xl lg:text-[3.25rem]",...n(.08,s),children:"Join Anthum Creator Network"}),e.jsx(i.p,{className:"mt-5 max-w-lg text-base leading-relaxed text-zinc-600 sm:text-lg",...n(.14,s),children:"Create AI-powered ads. Compete in brand contests. Win cash rewards."}),e.jsxs(i.div,{className:"mt-8 flex flex-wrap items-center gap-4",...n(.2,s),children:[e.jsx(m,{asChild:!0,size:"lg",className:"h-12 rounded-full bg-zinc-900 px-7 text-sm font-semibold text-white shadow-lg hover:bg-zinc-800",children:e.jsxs(d,{to:"/auth?type=creator",children:["Join as creator",e.jsx(y,{className:"ml-2 h-4 w-4"})]})}),e.jsx(m,{asChild:!0,variant:"outline",size:"lg",className:"h-12 rounded-full border-zinc-300 bg-white px-6 text-sm text-zinc-700 hover:border-zinc-400 hover:bg-zinc-50",children:e.jsxs("a",{href:t.discord_invite_link,target:"_blank",rel:"noopener noreferrer",children:["Join Discord",e.jsx(S,{className:"ml-2 h-4 w-4"})]})})]}),e.jsxs(i.p,{className:"mt-6 text-sm text-zinc-500",...n(.26,s),children:["Already have an account?"," ",e.jsx(d,{to:"/auth?type=creator",className:"font-medium text-zinc-900 underline-offset-2 hover:underline",children:"Sign in"})]})]}),e.jsx(L,{reduceMotion:s})]})]})]})}function U(){return e.jsxs("div",{className:"flex min-h-screen flex-col items-center justify-center bg-white px-5 text-zinc-900",children:[e.jsx("img",{src:"/logos/anthum-logo.png",alt:"Anthum",className:"mb-10 h-auto w-[clamp(99px,19.8vw,132px)] brightness-0 opacity-80"}),e.jsx(k,{className:"h-8 w-8 animate-spin text-zinc-400"}),e.jsx("p",{className:"mt-4 text-sm text-zinc-500",children:"Loading your inviteâ¦"})]})}function $({message:t}){return e.jsxs("div",{className:"flex min-h-screen flex-col items-center justify-center bg-white px-5 text-center text-zinc-900",children:[e.jsx("img",{src:"/logos/anthum-logo.png",alt:"Anthum",className:"mb-10 h-auto w-[clamp(99px,19.8vw,132px)] brightness-0 opacity-80"}),e.jsx("h1",{className:"font-dm-serif text-2xl",children:"Invite unavailable"}),e.jsx("p",{className:"mt-2 max-w-sm text-sm text-zinc-600",children:t}),e.jsx(m,{asChild:!0,size:"lg",className:"mt-8 rounded-full bg-zinc-900 text-white hover:bg-zinc-800",children:e.jsx(d,{to:"/auth?type=creator",children:"Sign up as creator"})})]})}function D({children:t}){return e.jsx("div",{className:"min-h-screen font-dm-sans text-zinc-900",children:t})}const Y=()=>{N();const{handle:t}=w(),{data:s}=_(),[l,x]=c.useState(null),[g,u]=c.useState(!0),[h,f]=c.useState(null);return c.useEffect(()=>{if(!t){window.location.replace("/auth?type=creator");return}(async()=>{try{const r=crypto.randomUUID(),{data:a,error:b}=await j.functions.invoke("scout-handle-lookup-v1",{body:{scout_handle:t,session_id:r,user_agent:navigator.userAgent,referrer_url:document.referrer||null}});
1if(b||!a?.valid){x("This referral link is invalid or expired."),u(!1);return}localStorage.setItem("scout_handle",a.scout.handle),localStorage.setItem("scout_id",a.scout.id),localStorage.setItem("scout_display_name",a.scout.display_name),localStorage.setItem("scout_session_id",r);const o=new Date;o.setDate(o.getDate()+30),document.cookie=`scout_handle=${a.scout.handle};expires=${o.toUTCString()};path=/;SameSite=Lax`,document.cookie=`scout_id=${a.scout.id};expires=${o.toUTCString()};path=/;SameSite=Lax`,document.cookie=`scout_session_id=${r};expires=${o.toUTCString()};path=/;SameSite=Lax`,f({id:a.scout.id,handle:a.scout.handle,display_name:a.scout.display_name,discord_invite_link:a.scout.discord_invite_link||a.default_discord_invite_url||s?.default_discord_invite_url||"https://discord.com/invite/anthum",promo_code:a.scout.promo_code??null})}catch(r){console.error("Error validating scout:",r),x("Something went wrong loading this invite.")}finally{u(!1)}})()},[t,s?.default_discord_invite_url]),e.jsx(D,{children:g?e.jsx(U,{}):l||!h?e.jsx($,{message:l||"Invalid referral link"}):e.jsx(E,{scout:h})})};export{Y 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.