1import{r as c,j as e,L as x}from"./index-DVkwpmat.js";import{A as b}from"./arrow-left-D188bbVl.js";import{m as s}from"./proxy-CVSNGcSw.js";import{D as u}from"./dollar-sign-6FR7acdB.js";const g=["#FFD700","#FFA500","#FFB800","#0066CC","#003399","#1E90FF","#000000","#333333","#1F3928"],v=["rgba(255, 200, 0, 0.8)","rgba(50, 110, 179, 0.75)","rgba(100, 200, 255, 0.78)","rgba(255, 165, 0, 0.75)","rgba(0, 150, 220, 0.72)","rgba(255, 220, 50, 0.75)","rgba(255, 180, 0, 0.7)","rgba(0, 100, 200, 0.7)","rgba(100, 180, 255, 0.72)","rgba(255, 210, 50, 0.7)"],f=[{left:5,top:5},{left:85,top:8},{left:15,top:20},{left:75,top:15},{left:45,top:10},{left:25,top:35},{left:65,top:30},{left:10,top:45},{left:80,top:40},{left:50,top:25}],j=()=>[...Array(80)].map((a,n)=>{const l=30-Math.random()*60,i=40-Math.random()*80,o=-40+Math.random()*80,p=50-Math.random()*100;return{color:g[Math.floor(Math.random()*g.length)],x:Math.random()*100,y:Math.random()*100,duration:8+Math.random()*6,delay:Math.random()*3,xMove1:l,xMove2:i,yMove1:o,yMove2:p}}),h=j(),k=()=>{let a="";return h.forEach((n,l)=>{a+=` 2 @keyframes aff-particle-${l} { 3 0% { transform: translate3d(0, 0, 0); opacity: 0.3; } 4 33% { transform: translate3d(${n.xMove1}px, ${n.yMove1}px, 0); opacity: 0.7; } 5 66% { transform: translate3d(${n.xMove2}px, ${n.yMove2}px, 0); opacity: 0.4; } 6 100% { transform: translate3d(0, 0, 0); opacity: 0.3; } 7 } 8 `}),f.forEach((n,l)=>{const i=80+l*10,o=-60-l*5,p=-70-l*8,d=100+l*5;a+=` 9 @keyframes aff-orb-${l} { 10 0% { transform: translate3d(0, 0, 0); opacity: 0.4; } 11 33% { transform: translate3d(${i}px, ${p}px, 0); opacity: 0.75; } 12 66% { transform: translate3d(${o}px, ${d}px, 0); opacity: 0.4; } 13 100% { transform: translate3d(0, 0, 0); opacity: 0.4; } 14 } 15 `}),a+=` 16 @keyframes aff-yellow-splash { 17 0% { transform: translate3d(-200px, -100px, 0); opacity: 0.6; } 18 25% { transform: translate3d(150px, 100px, 0); opacity: 0.85; } 19 50% { transform: translate3d(200px, 150px, 0); opacity: 0.9; } 20 75% { transform: translate3d(-150px, -80px, 0); opacity: 0.75; } 21 100% { transform: translate3d(-200px, -100px, 0); opacity: 0.6; } 22 } 23 @keyframes aff-blue-splash { 24 0% { transform: translate3d(180px, 80px, 0); opacity: 0.5; } 25 25% { transform: translate3d(-120px, -100px, 0); opacity: 0.7; } 26 50% { transform: translate3d(-180px, 120px, 0); opacity: 0.75; } 27 75% { transform: translate3d(150px, -80px, 0); opacity: 0.6; } 28 100% { transform: translate3d(180px, 80px, 0); opacity: 0.5; } 29 } 30 @keyframes aff-gradient-shift { 31 0%, 100% { 32 background: radial-gradient(ellipse 1000px 800px at 10% 5%, rgba(50, 110, 179, 0.75) 0%, transparent 55%), 33 radial-gradient(ellipse 950px 750px at 90% 8%, rgba(255, 200, 0, 0.7) 0%, transparent 55%), 34 radial-gradient(ellipse 900px 700px at 5% 25%, rgba(0, 102, 204, 0.65) 0%, transparent 55%), 35 radial-gradient(ellipse 850px 650px at 95% 20%, rgba(255, 165, 0, 0.65) 0%, transparent 55%), 36 radial-gradient(ellipse 800px 600px at 50% 12%, rgba(100, 200, 255, 0.6) 0%, transparent 55%), 37 radial-gradient(ellipse 750px 550px at 30% 35%, rgba(255, 220, 50, 0.6) 0%, transparent 55%), 38 radial-gradient(ellipse 700px 500px at 70% 30%, rgba(0, 150, 220, 0.6) 0%, transparent 55%), 39 radial-gradient(ellipse 850px 650px at 50% 40%, rgba(100, 180, 255, 0.5) 0%, transparent 55%), 40 radial-gradient(ellipse 600px 450px at 15% 45%, rgba(255, 180, 0, 0.5) 0%, transparent 55%), 41 radial-gradient(ellipse 650px 500px at 85% 45%, rgba(50, 150, 255, 0.5) 0%, transparent 55%); 42 } 43 50% { 44 background: radial-gradient(ellipse 1020px 820px at 90% 8%, rgba(255, 180, 0, 0.75) 0%, transparent 55%), 45 radial-gradient(ellipse 980px 780px at 10% 5%, rgba(0, 120, 200, 0.7) 0%, transparent 55%), 46 radial-gradient(ellipse 900px 700px at 95% 25%, rgba(50, 150, 255, 0.65) 0%, transparent 55%), 47 radial-gradient(ellipse 850px 650px at 5% 20%, rgba(255, 200, 50, 0.65) 0%, transparent 55%), 48 radial-gradient(ellipse 800px 600px at 50% 15%, rgba(0, 180, 255, 0.6) 0%, transparent 55%), 49 radial-gradient(ellipse 750px 550px at 70% 35%, rgba(255, 210, 100, 0.6) 0%, transparent 55%), 50 radial-gradient(ellipse 700px 500px at 30% 30%, rgba(0, 100, 220, 0.55) 0%, transparent 55%), 51 radial-gradient(ellipse 850px 650px at 50% 42%, rgba(255, 150, 0, 0.5) 0%, transparent 55%), 52 radial-gradient(ellipse 600px 450px at 85% 48%, rgba(100, 200, 255, 0.5) 0%, transparent 55%), 53 radial-gradient(ellipse 650px 500px at 15% 42%, rgba(255, 200, 0, 0.5) 0%, transparent 55%); 54 } 55 } 56 `,a},w=k();function $(){const[a,n]=c.useState({name:"",email:"",skoolUsername:"",paymentMethod:"paypal",paymentHandle:""}),[l,i]=c.useState(!1),[o,p]=c.useState(!1),[d,m]=c.useState("");return e.jsxs("div",{className:"min-h-screen relative",children:[e.jsx("style",{dangerouslySetInnerHTML:{__html:w}}),e.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",style:{contain:"strict",isolation:"isolate"},children:[e.jsx("div",{className:"absolute inset-0",style:{animation:"aff-gradient-shift 10.5s ease-in-out infinite",willChange:"background",backfaceVisibility:"hidden",transform:"translateZ(0)"}}),f.map((t,r)=>e.jsx("div",{className:"absolute rounded-full",style:{width:`${120+r%4*40}px`,height:`${120+r%4*40}px`,background:v[r],filter:"blur(45px)",left:`${t.left}%`,top:`${t.top}%`,animation:`aff-orb-${r} ${8+r*1.5}s ease-in-out infinite`,animationDelay:`${r*.8}s`,willChange:"transform, opacity",backfaceVisibility:"hidden",transform:"translateZ(0)"}},r)),e.jsx("div",{className:"absolute rounded-full",style:{width:"400px",height:"400px",background:"radial-gradient(circle, rgba(255, 210, 0, 0.8) 0%, rgba(255, 180, 0, 0.5) 50%, transparent 100%)",filter:"blur(70px)",left:"50%",top:"25%",marginLeft:"-200px",marginTop:"-200px",animation:"aff-yellow-splash 14s ease-in-out infinite",willChange:"transform, opacity",backfaceVisibility:"hidden",transform:"translateZ(0)"}}),e.jsx("div",{className:"absolute rounded-full",style:{width:"350px",height:"350px",background:"radial-gradient(circle, rgba(50, 150, 255, 0.75) 0%, rgba(0, 100, 200, 0.45) 50%, transparent 100%)",filter:"blur(65px)",left:"50%",top:"20%",marginLeft:"-175px",marginTop:"-175px",animation:"aff-blue-splash 18s ease-in-out infinite",animationDelay:"2s",
56willChange:"transform, opacity",backfaceVisibility:"hidden",transform:"translateZ(0)"}}),h.map((t,r)=>e.jsx("div",{className:"absolute rounded-full",style:{width:"1.5px",height:"1.5px",background:t.color,left:`${t.x}%`,top:`${t.y}%`,boxShadow:`0 0 2px ${t.color}`,animation:`aff-particle-${r} ${t.duration}s ease-in-out infinite`,animationDelay:`${t.delay}s`,willChange:"transform, opacity",backfaceVisibility:"hidden",transform:"translateZ(0)"}},`particle-${r}`))]}),e.jsx("div",{className:"border-b border-white/10 relative z-10 bg-black/50 backdrop-blur-sm",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 py-4",children:e.jsxs(x,{href:"/affiliates",className:"inline-flex items-center gap-2 text-gray-400 hover:text-white transition-colors font-space-grotesk",children:[e.jsx(b,{className:"w-4 h-4"}),"Back to Affiliates"]})})}),e.jsxs("div",{className:"max-w-2xl mx-auto px-4 py-12 relative z-10",children:[e.jsxs(s.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"text-center mb-12",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 bg-green-600 text-white px-4 py-2 rounded-full mb-6 font-space-grotesk text-sm font-bold shadow-lg",children:[e.jsx(u,{className:"w-4 h-4"}),"100% Commission Registration"]}),e.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-white mb-4 font-space-grotesk",children:"Register for 100% Payouts"}),e.jsxs("p",{className:"text-white font-space-grotesk max-w-lg mx-auto bg-gray-900/80 px-4 py-3 rounded-lg",children:[e.jsx("span",{className:"font-bold",children:"Skool caps commissions at 50%."})," Fill out this form so I can send you the other 50% every other Monday."]})]}),e.jsxs(s.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.1},className:"grid grid-cols-2 gap-4 mb-8",children:[e.jsxs("div",{className:"bg-gray-900/90 rounded-xl p-5 border border-blue-500/50",children:[e.jsx("div",{className:"text-2xl mb-2",children:"ð¤"}),e.jsx("h3",{className:"text-lg font-bold text-blue-400 mb-1 font-space-grotesk",children:"Automatic (50%)"}),e.jsx("p",{className:"text-gray-300 font-space-grotesk text-sm",children:"Skool pays you instantly"})]}),e.jsxs("div",{className:"bg-gray-900/90 rounded-xl p-5 border border-green-500/50",children:[e.jsx("div",{className:"text-2xl mb-2",children:"ð¸"}),e.jsx("h3",{className:"text-lg font-bold text-green-400 mb-1 font-space-grotesk",children:"Manual (50%)"}),e.jsx("p",{className:"text-gray-300 font-space-grotesk text-sm",children:"I pay you every other Monday"})]})]}),e.jsx(s.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.3},children:e.jsx("form",{onSubmit:async t=>{t.preventDefault(),i(!0),m("");try{const y=await(await fetch("/api/affiliate/payment-info",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:a.name,email:a.email,skoolUsername:a.skoolUsername,paymentMethod:a.paymentMethod,paymentHandle:a.paymentHandle})})).json();y.success?p(!0):m(y.error||"Failed to submit. Please try again.")}catch{m("Failed to submit. Please try again.")}finally{i(!1)}},className:"bg-gray-900/90 rounded-2xl p-6 sm:p-8 space-y-5 border border-gray-800",children:o?e.jsxs("div",{className:"text-center py-8",children:[e.jsxs(s.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200,damping:15},className:"relative w-24 h-24 mx-auto mb-6",children:[e.jsx(s.div,{initial:{scale:.8,opacity:0}
56,animate:{scale:1.5,opacity:0},transition:{duration:1,repeat:1/0,ease:"easeOut"},className:"absolute inset-0 rounded-full bg-green-500/30"}),e.jsx(s.div,{initial:{scale:.8,opacity:0},animate:{scale:1.3,opacity:0},transition:{duration:1,repeat:1/0,ease:"easeOut",delay:.2},className:"absolute inset-0 rounded-full bg-green-500/40"}),e.jsx(s.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:300,damping:20,delay:.1},className:"absolute inset-0 rounded-full bg-gradient-to-br from-green-400 to-green-600 flex items-center justify-center shadow-lg shadow-green-500/50",children:e.jsx(s.svg,{initial:{pathLength:0,opacity:0},animate:{pathLength:1,opacity:1},transition:{duration:.5,delay:.3,ease:"easeOut"},className:"w-12 h-12 text-white",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx(s.path,{initial:{pathLength:0},animate:{pathLength:1},transition:{duration:.4,delay:.4},d:"M5 13l4 4L19 7"})})}),[...Array(6)].map((t,r)=>e.jsx(s.div,{initial:{scale:0,opacity:1},animate:{scale:1,opacity:0,x:Math.cos(r*60*Math.PI/180)*60,y:Math.sin(r*60*Math.PI/180)*60},transition:{duration:.6,delay:.3,ease:"easeOut"},className:"absolute top-1/2 left-1/2 w-2 h-2 -ml-1 -mt-1 rounded-full bg-yellow-400"},r))]}),e.jsx(s.h3,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.5},className:"text-2xl font-bold text-green-400 mb-3 font-space-grotesk",children:"You're All Set!"}),e.jsxs(s.p,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.6},className:"text-gray-400 font-space-grotesk mb-8",children:["Your payment information has been saved. Check your ",a.paymentMethod.charAt(0).toUpperCase()+a.paymentMethod.slice(1)," every other Monday for payouts."]}),e.jsxs(s.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.7},className:"flex flex-col sm:flex-row gap-3 justify-center",children:[e.jsx(x,{href:"/affiliates",className:"inline-flex items-center justify-center gap-2 px-6 py-3 bg-yellow-500 hover:bg-yellow-600 text-black font-bold rounded-lg transition-all font-space-grotesk",children:"Get Your Affiliate Link"}),e.jsx("a",{href:"https://www.skool.com/bbc",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2 px-6 py-3 bg-white/10 hover:bg-white/20 text-white font-bold rounded-lg transition-all font-space-grotesk border border-white/20",children:"Return to the AI Tools and Training Club"})]})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-gray-400 mb-2 font-space-grotesk text-sm",children:"Full Name *"}),e.jsx("input",{type:"text",required:!0,value:a.name,onChange:t=>n({...a,name:t.target.value}),className:"w-full px-4 py-3 rounded-lg bg-white/10 border border-gray-700 text-white placeholder-gray-500 focus:outline-none focus:border-yellow-500 font-space-grotesk",placeholder:"Your name"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-gray-400 mb-2 font-space-grotesk text-sm",children:"Email *"}),e.jsx("input",{type:"email",required:!0,value:a.email,onChange:t=>n({...a,email:t.target.value}),className:"w-full px-4 py-3 rounded-lg bg-white/10 border border-gray-700 text-white placeholder-gray-500 focus:outline-none focus:border-yellow-500 font-space-grotesk",placeholder:"[email protected]"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-gray-400 mb-2 font-space-grotesk text-sm",children:"Skool Username *"}),e.jsx("input",{type:"text",required:!0,value:a.skoolUsername,onChange:t=>n({...a,skoolUsername:t.target.value}),className:"w-full px-4 py-3 rounded-lg bg-white/10 border border-gray-700 text-white placeholder-gray-500 focus:outline-none focus:border-yellow-500 font-space-grotesk",placeholder:"Your Skool username"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-gray-400 mb-2 font-space-grotesk text-sm",children:"Payment Method *"}),e.jsx("div",{className:"grid grid-cols-3 gap-3",children:["paypal","venmo","zelle"].map(t=>e.jsx("button",{type:"button",onClick:()=>n({...a,paymentMethod:t}
56),className:`py-3 px-4 rounded-lg font-bold font-space-grotesk transition-all ${a.paymentMethod===t?"bg-yellow-500 text-black":"bg-white/10 text-white hover:bg-white/20"}`,children:t.charAt(0).toUpperCase()+t.slice(1)},t))})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-gray-400 mb-2 font-space-grotesk text-sm",children:[a.paymentMethod==="paypal"?"PayPal Email":a.paymentMethod==="venmo"?"Venmo Username":"Zelle Phone or Email"," *"]}),e.jsx("input",{type:"text",required:!0,value:a.paymentHandle,onChange:t=>n({...a,paymentHandle:t.target.value}),className:"w-full px-4 py-3 rounded-lg bg-white/10 border border-gray-700 text-white placeholder-gray-500 focus:outline-none focus:border-yellow-500 font-space-grotesk",placeholder:a.paymentMethod==="paypal"?"[email protected]":a.paymentMethod==="venmo"?"@YourVenmo":"Phone or email for Zelle"})]}),d&&e.jsx("p",{className:"text-red-400 text-sm font-space-grotesk",children:d}),e.jsx("button",{type:"submit",disabled:l,className:"w-full py-4 rounded-lg bg-green-500 hover:bg-green-600 text-white font-bold text-lg transition-all font-space-grotesk disabled:opacity-50 disabled:cursor-not-allowed",children:l?"Submitting...":"Register for Payouts"}),e.jsx("p",{className:"text-gray-500 text-xs text-center font-space-grotesk",children:"Payouts go out every other Monday. You'll receive 50% via Skool automatically, and 50% from me via your chosen method."})]})})}),e.jsx(s.div,{initial:{opacity:0}
56,animate:{opacity:1},transition:{duration:.5,delay:.5},className:"text-center mt-8",children:e.jsxs("p",{className:"text-gray-500 font-space-grotesk text-sm",children:["Need your affiliate link? ",e.jsx(x,{href:"/affiliates",className:"text-yellow-500 hover:underline",children:"Go to the affiliates page"})]})})]})]})}export{$ 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.