1import{r as l,j as e,L as r}from"./vendor-react-rwTLq11e.js";import{B as o}from"./Construction-C-jOC9-n.js";import{a as A,B as u,L as d,I as h,s as N}from"./App-dPk54ARk.js";import{C as F}from"./checkbox-mlZDn02Y.js";import{dr as g,dw as c,cE as v,dp as H,cV as T,hI as M,dJ as L,cu as y,dV as B,dI as J,cL as R,dQ as D,dX as z,cx as W,cw as _}from"./vendor-DUEJizG2.js";import"./vendor-radix-ChnVWQGg.js";import"./vendor-jspdf-Cs9lx9fC.js";import"./vendor-motion-BMstwJc_.js";import"./vendor-livekit-II1ypI6U.js";const V="/assets/join-hero-Zs2M6vlo.jpg",ee=()=>{const[n,w]=l.useState(""),[m,k]=l.useState(""),[p,P]=l.useState(""),[x,S]=l.useState(!1),[a,b]=l.useState(!1),[G,f]=l.useState(!1),{toast:i}=A(),C=async s=>{if(s.preventDefault(),!n.trim()){i({title:"Email Required",description:"Please enter your email address.",variant:"destructive"});return}if(!x){i({title:"Agreement Required",description:"Please agree to the Terms of Service and Privacy Policy to continue.",variant:"destructive"});return}b(!0);try{await N.from("leads").insert({email:n.trim(),phone:m.trim()||null,source:"join_page"});const{data:t,error:j}=await N.functions.invoke("create-gps-member-account",{body:{email:n.trim(),phone:m.trim()||null,name:p.trim()||null}});if(j)throw j;if((t==null?void 0:t.error)==="account_exists"){i({title:"Account Already Exists",description:"Please log in to access your member portal."}),f(!0);return}if(!(t!=null&&t.success))throw new Error((t==null?void 0:t.error)||"Failed to create account");i({title:"Welcome to the Global Partnership Society!",description:"Check your email to set up your portal password."}),f(!0)}catch(t){console.error("GPS signup error:",t),i({title:"Submission Failed",description:t.message||"Please try again later.",variant:"destructive"})}finally{b(!1)}},E=[{icon:L,title:"Exclusive App Access",description:"Full access to all Hackley Global apps and platforms before public release."},{icon:y,title:"Leadership Development",description:"Priority access to courses, certificates, and leadership training programs."},{icon:B,title:"Partner Recognition",description:"Verified partner credentials and recognition across our global network."},{icon:J,title:"Scholarship Impact",description:"Direct participation in funding tech scholarships and educational initiatives."},{icon:R,title:"Conference Invitations",description:"Exclusive invitations to global conferences, summits, and leadership briefings."},{icon:D,title:"Priority Support",description:"Direct line to ministry leadership for prayer, guidance, and personalized attention."}],I=[{icon:z,label:"Ministry",color:"text-primary"},{icon:y,label:"Education",color:"text-gold"},{icon:W,label:"Charity",color:"text-destructive"},{icon:_,label:"Media",color:"text-secondary"}];return G?e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx("header",{className:"border-b border-border/40 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60",children:e.jsxs("div",{className:"container mx-auto px-4 py-4 flex items-center justify-between",children:[e.jsxs(r,{to:"/",className:"flex items-center gap-2",children:[e.jsx(g,{className:"h-8 w-8 text-gold"}),e.jsx("span",{className:"font-serif text-xl font-bold",children:"Hackley Global"})]}),e.jsx(r,{to:"/auth",children:e.jsx(o,{variant:"outline",children:"Sign In"})})]})}),e.jsx("main",{className:"container mx-auto px-4 py-20",children:e.jsxs("div",{className:"max-w-2xl mx-auto text-center",children:[e.jsx("div",{className:"mx-auto w-20 h-20 bg-gradient-to-br from-gold to-burgundy rounded-full flex items-center justify-center mb-8 animate-pulse",children:e.jsx(c,{className:"h-10 w-10 text-cream"})}),e.jsx(u,{className:"mb-4 bg-gold/20 text-gold border-gold/30",children:"Welcome to GPS"}),e.jsx("h1",{className:"text-4xl md:text-5xl font-serif font-bold mb-6",children:"Check Your Email!"}),e.jsx("p",{className:"text-xl text-muted-foreground mb-8",children:"We've sent you a welcome email with a link to set up your Member Portal password."}),e.jsxs("div",{className:"bg-card border border-gold/20 rounded-lg p-6 mb-8",children:[e.jsx("h3",{className:"font-semibold mb-4 text-gold",children:"What's Next?"}),e.jsxs("ol",{className:"text-left space-y-3 text-muted-foreground",children:[e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"flex-shrink-0 w-6 h-6 rounded-full bg-gold/20 text-gold flex items-center justify-center text-sm font-bold",children:"1"}),e.jsx("span",{children:"Check your email for the welcome message from Hackley Global"})]}),e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"flex-shrink-0 w-6 h-6 rounded-full bg-gold/20 text-gold flex items-center justify-center text-sm font-bold",children:"2"}),e.jsx("span",{children:"Click the link to set your password"})]}),e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"flex-shrink-0 w-6 h-6 rounded-full bg-gold/20 text-gold flex items-center justify-center text-sm font-bold",children:"3"}),e.jsx("span",{children:"Access your GPS Partner Portal with all your exclusive benef
1its"})]})]})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsx(r,{to:"/",children:e.jsx(o,{variant:"outline",children:"Return Home"})}),e.jsx(r,{to:"/auth",children:e.jsx(o,{className:"bg-gradient-to-r from-gold to-burgundy hover:opacity-90 text-cream",children:"Sign In to Portal"})})]})]})})]}):e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx("header",{className:"border-b border-border/40 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60",children:e.jsxs("div",{className:"container mx-auto px-4 py-4 flex items-center justify-between",children:[e.jsxs(r,{to:"/",className:"flex items-center gap-2",children:[e.jsx(g,{className:"h-8 w-8 text-gold"}),e.jsx("span",{className:"font-serif text-xl font-bold",children:"Hackley Global"})]}),e.jsx(r,{to:"/auth",children:e.jsx(o,{variant:"outline",children:"Sign In"})})]})}),e.jsxs("section",{className:"relative min-h-[90vh] flex items-center justify-center overflow-hidden pt-28",children:[e.jsxs("div",{className:"absolute inset-0",children:[e.jsx("img",{src:V,alt:"Global Partnership Society",className:"w-full h-full object-cover"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-navy/90 via-navy/80 to-burgundy/60"})]}),e.jsxs("div",{className:"container mx-auto px-4 relative z-10",children:[e.jsxs("div",{className:"max-w-4xl mx-auto text-center mb-12",children:[e.jsx("div",{className:"flex justify-center mb-8",children:e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute inset-0 bg-gold/30 rounded-full blur-xl animate-pulse"}),e.jsx("div",{className:"relative w-24 h-24 rounded-full bg-gradient-to-br from-gold to-burgundy flex items-center justify-center border-2 border-gold/50 shadow-2xl",children:e.jsx(c,{className:"h-12 w-12 text-cream"})})]})}),e.jsxs(u,{className:"mb-6 bg-gold/20 text-gold border-gold/30 backdrop-blur-md px-6 py-2 text-sm font-bold tracking-wider uppercase",children:[e.jsx(v,{className:"h-3 w-3 mr-2"}),"Global Fellowship"]}),e.jsxs("h1",{className:"text-5xl md:text-7xl lg:text-8xl font-serif font-bold mb-8 drop-shadow-2xl",children:["Join the ",e.jsx("span",{className:"gradient-text",children:"Global Partnership Society"})]}),e.jsx("p",{className:"text-xl md:text-2xl text-white/90 mb-8 max-w-3xl mx-auto font-light leading-relaxed",children:"A distinguished fellowship of leaders, innovators, and mission partners advancing the Kingdom through Ministry, Education, Charity, and Media."}),e.jsxs("div",{className:"flex justify-center items-center gap-4 text-gold mb-12 font-medium tracking-wide",children:[e.jsx("span",{children:"Investment in Destiny"}),e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-gold"}),e.jsx("span",{children:"Legacy of Excellence"}),e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-gold"}),e.jsx("span",{children:"Global Impact"})]}),e.jsx("div",{className:"flex justify-center gap-8 md:gap-12 mb-12",children:I.map(s=>e.jsxs("div",{className:"flex flex-col items-center gap-3 group",children:[e.jsx("div",{className:"w-16 h-16 rounded-full bg-black/30 backdrop-blur-md border-2 border-gold/30 flex items-center justify-center group-hover:border-gold group-hover:scale-110 transition-all duration-300",children:e.jsx(s.icon,{className:`h-8 w-8 ${s.color}`})}),e.jsx("span",{className:"text-sm font-semibold text-white/80",children:s.label})]},s.label))})]}),e.jsx("div",{className:"max-w-md mx-auto",children:e.jsxs("div",{className:"bg-card border-2 border-gold/30 rounded-xl p-8 shadow-2xl relative overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 right-0 w-24 h-24 bg-gradient-to-bl from-gold/20 to-transparent"}),e.jsxs("div",{className:"text-center mb-6",children:[e.jsx(H,{className:"h-8 w-8 text-gold mx-auto mb-2"}),e.jsx("h2",{className:"text-2xl font-serif font-bold",children:"Become a GPS Partner"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Join the movement. Make an impact."})]}),e.jsxs("form",{onSubmit:C,className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsxs(d,{htmlFor:"name",children:["Full Name ",e.jsx("span",{className:"text-muted-foreground text-xs",children:"(optional)"})]}),e.jsx(h,{id:"name",type:"text",placeholder:"Your name",value:p,onChange:s=>P(s.target.value),disabled:a,className:"border-gold/20 focus:border-gold"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs(d,{htmlFor:"email",children:["Email Address ",e.jsx("span",{className:"text-destructive",children:"*"})]}),e.jsx(h,{id:"email",type:"email",placeholder:"[email protected]",value:n,onChange:s=>w(s.target.value),disabled:a,required:!0,className:"border-gold/20 focus:border-gold"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs(d,{htmlFor:"phone",children:["Phone Number ",e.jsx("span",{className:"text-muted-foreground text-xs",children:"(optional)"})]}),e.jsx(h,{id:"phone",type:"tel",placeholder:"+1 (555) 123-4567",value:m,onChange:s=>k(s.target.value),disabled:a,className:"border-gold/20 focus:border-gold"})]}),e.jsxs("div",{className:"flex items-start gap-3 p-4 bg-gold/5 rounded-lg border border-gold/20",children:[e.jsx(F,{id:"terms",checked:x,onCheckedChange:s=>S(s),disabled:a,className:"mt-0.5"}),e.jsx("div",{className:"space-y-1",children:e.jsxs(d,{htmlFor:"terms",className:"text-sm font-normal cursor-pointer leading-relaxed",children:["I agree to the"," ",e.jsx(r,{to:"/terms",className:"text-gold hover:underline font-medium",target:"_blank",children:"Terms of Service"})," ","and"," ",e.jsx(r,{to:"/privacy",className:"text-gold hover:underline font-medium",target:"_blank",children:"Privacy Policy"})]})})]}),e.jsx(o,{type:"submit",className:"w-full bg-gradient-to-r from-gold to-burgundy hover:opacity-90 text-cream text-lg py-6",disabled:a||!x,children:a?e.jsxs(e.Fragment,{children:[e.jsx(T,{className:"mr-2 h-5 w-5 animate-spin"}),"Creating Account..."]}):e.jsxs(e.Fragment,{children:[e.jsx(c,{className:"mr-2 h-5 w-5"}),"Join GPS Partnership"]})}),e.jsx("p",{className:"text-xs text-center text-muted-foreground pt-2",children:"By joining, you agree to re
1ceive updates about Hackley Global's mission and ministry work."})]}),e.jsx("div",{className:"mt-6 pt-6 border-t border-gold/20 text-center",children:e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Already a partner?"," ",e.jsx(r,{to:"/auth",className:"text-gold hover:underline font-medium",children:"Sign in here"})]})})]})})]})]}),e.jsx("section",{className:"py-20 bg-gradient-to-b from-muted/30 to-background",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsxs(u,{className:"mb-4 bg-burgundy/20 text-burgundy border-burgundy/30",children:[e.jsx(M,{className:"h-3 w-3 mr-1"}),"Partner Benefits"]}),e.jsxs("h2",{className:"text-3xl md:text-4xl font-serif font-bold mb-4",children:["GPS Partnership ",e.jsx("span",{className:"text-gold",children:"Privileges"})]}),e.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"Your GPS membership unlocks exclusive access to our global network, resources, and leadership development ecosystem."})]}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6 max-w-5xl mx-auto",children:E.map(s=>e.jsxs("div",{className:"bg-card border border-gold/20 rounded-xl p-6 hover:border-gold/50 hover:shadow-lg hover:shadow-gold/5 transition-all group",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-gradient-to-br from-gold/20 to-burgundy/20 flex items-center justify-center mb-4 group-hover:scale-110 transition-transform",children:e.jsx(s.icon,{className:"h-6 w-6 text-gold"})}),e.jsx("h3",{className:"font-semibold text-lg mb-2",children:s.title}),e.jsx("p",{className:"text-muted-foreground text-sm",children:s.description})]},s.title))})]})}),e.jsx("section",{className:"py-20",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-3xl mx-auto text-center bg-gradient-to-br from-burgundy via-burgundy-light to-gold/20 rounded-2xl p-12 relative overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-32 h-32 bg-gold/30 rounded-full blur-[80px]"}),e.jsxs("div",{className:"relative z-10",children:[e.jsx(c,{className:"h-16 w-16 text-gold mx-auto mb-6"}),e.jsx("h2",{className:"text-3xl md:text-4xl font-serif font-bold text-cream mb-4",children:"Ready to Invest in Destiny?"}),e.jsx("p",{className:"text-cream/80 mb-8 text-lg",children:"Join thousands of global partners making eternal impact through Hackley Global."}),e.jsxs(o,{size:"lg",className:"bg-gold hover:bg-gold/90 text-navy",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),children:[e.jsx(v,{className:"h-4 w-4 mr-2"}),"Join GPS Now"]})]})]})})}),e.jsx("footer",{className:"border-t border-gold/20 py-8",children:e.jsxs("div",{className:"container mx-auto px-4 text-center",children:[e.jsxs(r,{to:"/",className:"inline-flex items-center gap-2 text-muted-foreground hover:text-foreground",children:[e.jsx(g,{className:"h-5 w-5 text-gold"}),e.jsx("span",{className:"font-serif",children:"Hackley Global"})]}),e.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:"Ministry ⢠Education ⢠Charity ⢠Media"})]})})]})};export{ee 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.