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AAA,EAAA,MADdlD,CAAG,IAJJF,CAAO,MAAPA,CAAO,MAFA","names":["name","$.state","email","platform","audienceSize","website","promoIdea","why","submitted","sending","error","platforms","audiences","submit","$.get","$.set","fd","res","result","deserialize","section","root","div","div_1","root_1","div_2","$.sibling","$.first_child","fragment","div_3","input","$.child","$.remove_input_defaults","div_4","input_1","fieldset","div_5","$.each","p","button","root_3","text","$.reset","$.set_class","$.append","$$anchor","fieldset_1","div_6","a","button_1","root_4","text_1","div_7","input_2","div_8","textarea","$.remove_textarea_child","div_9","textarea_1","button_2","text_2","node_1","p_1","root_5","p_2","root_6","$$render","consequent_1","alternate","$$value","$.delegated","consequent","alternate_1"],"sources":["../../../../../../src/routes/affiliate/+page.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport { deserialize } from '$app/forms';\n\n\tlet name = $state('');\n\tlet email = $state('');\n\tlet platform = $state('');\n\tlet audienceSize = $state('');\n\tlet website = $state('');\n\tlet promoIdea = $state('');\n\tlet why = $state('');\n\tlet submitted = $state(false);\n\tlet sending = $state(false);\n\tlet error = $state('');\n\n\tconst platforms = ['TikTok', 'Instagram', 'YouTube', 'Twitter', 'Other'];\n\tconst audiences = ['1k–10k', '10k–50k', '50k–100k', '100k+'];\n\n\tasync function submit() {\n\t\tif (!name || !email || !platform || !audienceSize) return;\n\t\terror = '';\n\t\tsending = true;\n\n\t\tconst fd = new FormData();\n\t\tfd.append('name', name);\n\t\tfd.append('email', email);\n\t\tfd.append('platform', platform);\n\t\tfd.append('audienceSize', audienceSize);\n\t\tfd.append('website', website);\n\t\tfd.append('promoIdea', promoIdea);\n\t\tfd.append('why', why);\n\n\t\tconst res = await fetch('/affiliate', { method: 'POST', body: fd });\n\t\tconst result = deserialize(await res.text());\n\n\t\tif (result.type === 'success') {\n\t\t\tsubmitted = true;\n\t\t} else if (result.type === 'failure') {\n\t\t\terror = (result.data as Record<string, string>)?.error || 'something went wrong.';\n\t\t}\n\t\tsending = false;\n\t}\n</script>\n\n<section class=\"relative min-h-screen overflow-hidden px-5 pt-20 pb-20 md:pt-32 md:pb-28\">\n\t<div class=\"pointer-events-none absolute inset-0 bg-[linear-gradient(rgba(255,255,255,.006)_1px,transparent_1px),linear-gradient(90deg,rgba(255,255,255,.006)_1px,transparent_1px)] bg-[size:60px_60px]\"></div>\n\t<div class=\"pointer-events-none absolute -top-40 -right-40 h-[500px] w-[500px] rounded-full bg-coral/5 blur-[150px]\"></div>\n\n\t<div class=\"relative mx-auto max-w-xl\">\n\t\t{#if submitted}\n\t\t\t<!-- success -->\n\t\t\t<div class=\"flex min-h-[60vh] flex-col items-center justify-center text-center\">\n\t\t\t\t<span class=\"text-5xl\">🤝</span>\n\t\t\t\t<h1 class=\"mt-6 font-display text-[clamp(1.8rem,5vw,3rem)] font-bold leading-[0.95] tracking-tighter\">\n\t\t\t\t\tyou're <span class=\"text-coral\">in.</span>\n\t\t\t\t</h1>\n\t\t\t\t<p class=\"mt-4 max-w-sm text-sm leading-relaxed text-muted\">\n\t\t\t\t\twe just sent you an email with a link — open it, set your password, and you'll land straight on your affiliate dashboard.\n\t\t\t\t</p>\n\t\t\t\t<div class=\"mt-8 flex flex-col items-center gap-3\">\n\t\t\t\t\t<a\n\t\t\t\t\t\thref=\"/affiliate/login\"\n\t\t\t\t\t\tclass=\"inline-flex rounded-xl border border-border px-7 py-3.5 font-display text-sm font-semibold text-muted no-underline transition-all hover:border-muted/60 hover:text-text\"\n\t\t\t\t\t>\n\t\t\t\t\t\talready set up? log in →\n\t\t\t\t\t</a>\n\t\t\t\t\t<a\n\t\t\t\t\t\thref=\"/\"\n\t\t\t\t\t\tclass=\"inline-flex rounded-xl bg-coral px-7 py-3.5 font-display text-sm font-semibold text-white no-underline transition-all hover:bg-coral-dark\"\n\t\t\t\t\t>\n\t\t\t\t\t\tback to home\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t{:else}\n\t\t\t<!-- hero + offer -->\n\t\t\t<h1 class=\"font-display text-[clamp(2rem,6vw,3.5rem)] font-bold leading-[0.95] tracking-tighter\">\n\t\t\t\tpromote dicks.<br /><span class=\"text-muted\">get paid for it.</span>\n\t\t\t</h1>\n\t\t\t<p class=\"mt-4 max-w-md text-sm leading-relaxed text-muted\">\n\t\t\t\tjoin the ratemyd. affiliate program. share your link, earn every time someone buys tokens. yes, this is a real revenue stream. no, your parents won't understand.\n\t\t\t</p>\n\n\t\t\t<!-- feature cards -->\n\t\t\t<div class=\"mt-8 grid grid-cols-1 gap-3 sm:grid-cols-3\">\n\t\t\t\t<div class=\"rounded-xl border border-border bg-surface p-4\">\n\t\t\t\t\t<p class=\"font-display text-2xl font-bold text-coral\">30%</p>\n\t\t\t\t\t<p class=\"mt-1 text-xs text-muted\">recurring revenue share on every token purchase from your referrals.</p>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"rounded-xl border border-border bg-surface p-4\">\n\t\t\t\t\t<p class=\"font-display text-2xl font-bold text-coral\">unique link</p>\n\t\t\t\t\t<p class=\"mt-1 text-xs text-muted\">personalized tracking link + dashboard to see your earnings in real time.</p>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"rounded-xl border border-border bg-surface p-4\">\n\t\t\t\t\t<p class=\"font-display text-2xl font-bold text-coral\">14 days</p>\n\t\t\t\t\t<p class=\"mt-1 text-xs text-muted\">cookie window. if they buy within 14 days of clicking, you get paid.</p>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<p class=\"mt-4 text-xs text-muted/50\">\n\t\t\t\tno minimum payout. monthly payouts via PayPal or Stripe. zero hassle.\n\t\t\t</p>\n\n\t\t\t<!-- form -->\n\t\t\t<div class=\"mt-10 flex flex-col gap-5\">\n\t\t\t\t<div class=\"mb-2 border-b border-border pb-4\">\n\t\t\t\t\t<p class=\"font-display text-lg font-bold tracking-tight\">apply now</p>\n\t\t\t\t\t<p class=\"mt-1 text-xs text-muted\">takes 60 seconds. instant access — we'll email you a setup link the moment you submit.</p>\n\t\t\t\t</div>\n\n\t\t\t\t<!-- name -->\n\t\t\t\t<div>\n\t\t\t\t\t<label for=\"aff-name\" class=\"mb-1.5 block text-[11px] font-semibold uppercase tracking-widest text-muted/50\">name</label>\n\t\t\t\t\t<input\n\t\t\t\t\t\tid=\"aff-name\"\n\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\tbind:value={name}\n\t\t\t\t\t\tplaceholder=\"your name or brand\"\n\t\t\t\t\t\tclass=\"w-full rounded-xl border border-border bg-surface px-4 py-3 text-sm text-text placeholder:text-muted/30 focus:border-muted focus:outline-none\"\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\n\t\t\t\t<!-- email -->\n\t\t\t\t<div>\n\t\t\t\t\t<label for=\"aff-email\" class=\"mb-1.5 block text-[11px] font-semibold uppercase tracking-widest text-muted/50\">email</label>\n\t\t\t\t\t<input\n\t\t\t\t\t\tid=\"aff-email\"\n\t\t\t\t\t\ttype=\"email\"\n\t\t\t\t\t\tbind:value={email}\n\t\t\t\t\t\tplaceholder=\"you@example.com\"\n\t\t\t\t\t\tclass=\"w-full rounded-xl border border-border bg-surface px-4 py-3 text-sm text-text placeholder:text-muted/30 focus:border-muted focus:outline-none\"\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\n\t\t\t\t<!-- platform -->\n\t\t\t\t<fieldset>\n\t\t\t\t\t<legend class=\"mb-1.5 block text-[11px] font-semibold uppercase tracking-widest text-muted/50\">main platform</legend>\n\t\t\t\t\t<div class=\"grid grid-cols-3 gap-2 sm:grid-cols-5\">\n\t\t\t\t\t\t{#each platforms as p (p)}\n\t\t\t\t\t\t\t<button\n\t\t\t\t\t\t\t\tclass=\"cursor-pointer rounded-lg border px-3 py-2.5 text-xs font-semibold transition-all\n\t\t\t\t\t\t\t\t\t{platform === p ? 'border-coral/40 bg-coral/10 text-coral' : 'border-border text-muted hover:border-muted hover:text-text'}\"\n\t\t\t\t\t\t\t\tonclick={() => (platform = p)}\n\t\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{p}\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t</div>\n\t\t\t\t</fieldset>\n\n\t\t\t\t<!-- audience size -->\n\t\t\t\t<fieldset>\n\t\t\t\t\t<legend class=\"mb-1.5 block text-[11px] font-semibold uppercase tracking-widest text-muted/50\">audience size</legend>\n\t\t\t\t\t<div class=\"grid grid-cols-2 gap-2 sm:grid-cols-4\">\n\t\t\t\t\t\t{#each audiences as a (a)}\n\t\t\t\t\t\t\t<button\n\t\t\t\t\t\t\t\tclass=\"cursor-pointer rounded-lg border px-3 py-2.5 text-xs font-semibold transition-all\n\t\t\t\t\t\t\t\t\t{audienceSize === a ? 'border-coral/40 bg-coral/10 text-coral' : 'border-border text-muted hover:border-muted hover:text-text'}\"\n\t\t\t\t\t\t\t\tonclick={() => (audienceSize = a)}\n\t\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{a}\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t</div>\n\t\t\t\t</fieldset>\n\n\t\t\t\t<!-- website -->\n\t\t\t\t<div>\n\t\t\t\t\t<label for=\"aff-website\" class=\"mb-1.5 block text-[11px] font-semibold uppercase tracking-widest text-muted/50\">website / profile link <span class=\"text-muted/30\">(optional)</span></label>\n\t\t\t\t\t<input\n\t\t\t\t\t\tid=\"aff-website\"\n\t\t\t\t\t\ttype=\"url\"\n\t\t\t\t\t\tbind:value={website}\n\t\t\t\t\t\tplaceholder=\"https://your-page.com\"\n\t\t\t\t\t\tclass=\"w-full rounded-xl border border-border bg-surface px-4 py-3 text-sm text-text placeholder:text-muted/30 focus:border-muted focus:outline-none\"\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\n\t\t\t\t<!-- promo idea -->\n\t\t\t\t<div>\n\t\t\t\t\t<label for=\"aff-promo\" class=\"mb-1.5 block text-[11px] font-semibold uppercase tracking-widest text-muted/50\">promo idea <span class=\"text-muted/30\">(optional)</span></label>\n\t\t\t\t\t<textarea\n\t\t\t\t\t\tid=\"aff-promo\"\n\t\t\t\t\t\tbind:value={promoIdea}\n\t\t\t\t\t\tplaceholder=\"how would you promote ratemyd.? tiktok series, tweet thread, discord raid...\"\n\t\t\t\t\t\trows=\"2\"\n\t\t\t\t\t\tclass=\"w-full resize-none rounded-xl border border-border bg-surface px-4 py-3 text-sm text-text placeholder:text-muted/30 focus:border-muted focus:outline-none\"\n\t\t\t\t\t></textarea>\n\t\t\t\t</div>\n\n\t\t\t\t<!-- why -->\n\t\t\t\t<div>\n\t\t\t\t\t<label for=\"aff-why\" class=\"mb-1.5 block text-[11px] font-semibold uppercase tracking-widest text-muted/50\">why should we pick you? <span class=\"text-muted/30\">(optional)</span></label>\n\t\t\t\t\t<textarea\n\t\t\t\t\t\tid=\"aff-why\"\n\t\t\t\t\t\tbind:value={why}\n\t\t\t\t\t\tplaceholder=\"sell us on your vibe...\"\n\t\t\t\t\t\trows=\"2\"\n\t\t\t\t\t\tclass=\"w-full resize-none rounded-xl border border-border bg-surface px-4 py-3 text-sm text-text placeholder:text-muted/30 focus:border-muted focus:outline-none\"\n\t\t\t\t\t></textarea>\n\t\t\t\t</div>\n\n\t\t\t\t<!-- submit -->\n\t\t\t\t<button\n\t\t\t\t\tclass=\"mt-2 w-full rounded-xl bg-coral py-3.5 font-display text-base font-semibold text-white transition-all hover:bg-coral-dark disabled:opacity-50\"\n\t\t\t\t\tonclick={submit}\n\t\t\t\t\tdisabled={sending || !name || !email || !platform || !audienceSize}\n\t\t\t\t>\n\t\t\t\t\t{sending ? 'sending...' : 'apply to partner program'}\n\t\t\t\t</button>\n\n\t\t\t\t{#if error}\n\t\t\t\t\t<p class=\"text-center text-[11px] text-coral\">{error}</p>\n\t\t\t\t{:else}\n\t\t\t\t\t<p class=\"text-center text-[11px] text-muted/40\">\n\t\t\t\t\t\tinstant approval. check your inbox for a one-time setup link.\n\t\t\t\t\t</p>\n\t\t\t\t{/if}\n\t\t\t</div>\n\t\t{/if}\n\t</div>\n</section>\n"],"version":3}