1import{p as C,r as m,j as e,m as n,C as k,d as T,A as I,I as o,B as u,o as F,c as D}from"./index-QiiZ-xPT.js";import{N as P}from"./Navigation-r93ZBuy6.js";import{F as U}from"./Footer-3JNsJayo.js";import{L as r}from"./label-BA9Xin3m.js";import{S as g,a as j,b as f,c as y,d as N}from"./select-B1P2Vx_w.js";import{u as $}from"./useTranslation-XedzLvcK.js";import{U as A}from"./users-JkJLChox.js";import{T as L}from"./trending-up-BLnfQQLk.js";import{S as q}from"./shield-BMABX0Pd.js";import{C as x}from"./circle-check-BOGFOgJv.js";import{D as B}from"./download-D-fGOqS3.js";import"./checkbox-CrGTwbPu.js";import"./index-DqZlRfV5.js";import"./check-KTa2Xihg.js";import"./dialog-D2VXyQJN.js";import"./Combination-TP2Egp2x.js";import"./save-BsB7cS8F.js";import"./dropdown-menu-D4zjGRmc.js";import"./index-BMyKsIJE.js";import"./index-Bj3iuRQR.js";import"./chevron-right-f4G5e4zR.js";import"./circle-2nw1jhuN.js";import"./globe-3tsuvpPT.js";import"./chevron-down-BWOHa16b.js";import"./log-out-CqAuLeet.js";import"./building-2-Bz-h5bHH.js";import"./BrandSponsor-DEW6i_On.js";import"./card-DkXabqFf.js";import"./mail-Cr62Xklx.js";import"./twitter-BzZd48jL.js";const E=[{icon:k,key:"dataDrivenDiagnosis"},{icon:A,key:"intersectionalAnalysis"},{icon:L,key:"measurableInterventions"},{icon:q,key:"sustainableChange"}],R=["size1to50","size51to200","size201to1000","size1001to5000","size5000plus"],V=["technology","healthcare","financialServices","retailConsumer","manufacturing","professionalServices","education","nonProfit","government","other"];function ye(){const{t:a}=$(),{toast:c}=C(),[p,h]=m.useState(!1),[b,v]=m.useState(!1),[G,S]=m.useState(""),[t,w]=m.useState({firstName:"",lastName:"",email:"",company:"",jobTitle:"",companySize:"",industry:""}),z=async s=>{if(s.preventDefault(),!t.email||!t.firstName||!t.lastName){c({title:a("leadGen.requiredFieldsMissing"),description:a("leadGen.fillNameEmail"),variant:"destructive"});return}h(!0);try{const i=await fetch("/api/lead-gen/fair-workplace-guide",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),credentials:"include"}),d=await i.json();if(i.ok&&d.success)v(!0),S(d.downloadUrl),c({title:a("leadGen.success"),description:a("leadGen.guideReady")});else throw new Error(d.message||"Failed to submit")}catch{c({title:a("leadGen.somethingWrong"),description:a("leadGen.tryAgainContact"),variant:"destructive"})}finally{h(!1)}},l=(s,i)=>{w(d=>({...d,[s]:i}))};return e.jsxs("div",{className:"bg-background text-foreground min-h-screen",children:[e.jsx(P,{}),e.jsx("section",{className:"pt-32 pb-20 bg-gradient-to-b from-primary/10 to-background bg-grain",children:e.jsx("div",{className:"max-w-7xl mx-auto px-6",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-start",children:[e.jsxs(n.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.5},children:[e.jsx("span",{className:"inline-block px-4 py-1.5 rounded-full bg-primary/20 text-primary text-sm font-medium mb-6",children:a("leadGen.badge")}),e.jsxs("h1",{className:"font-display text-4xl md:text-5xl font-bold leading-tight mb-6",children:[a("leadGen.heroTitle")," ",e.jsx("span",{className:"text-gradient",children:a("leadGen.heroTitleHighlight")})]}),e.jsx("p",{className:"text-xl text-muted-foreground mb-8",children:a("leadGen.heroSubtitle")}),e.jsx("div",{className:"grid sm:grid-cols-2 gap-4 mb-8",children:E.map((s,i)=>e.jsxs(n.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.2+i*.1},className:"flex items-start gap-3 p-4 rounded-xl bg-card/50 border border-border/50",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/20 flex items-center justify-center shrink-0",children:e.jsx(s.icon,{size:20,className:"text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-sm",children:a(`leadGen.highlights.${s.key}.title`)}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:a(`leadGen.highlights.${s.key}.description`)})]})]},s.key))}),e.jsxs("div",{className:"flex items-center gap-6 text-sm text-muted-foreground",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(T,{size:16,className:"text-primary"}),e.jsx("span",{children:a("leadGen.pageGuide")})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(x,{size:16,className:"text-green-500"}),e.jsx("span",{children:a("leadGen.instantDownload")})]})]})]}),e.jsx(n.div,{initial:{opacity:0,x:20}
1,animate:{opacity:1,x:0},transition:{duration:.5,delay:.2},className:"bg-card rounded-2xl border border-border p-8 shadow-2xl",children:e.jsx(I,{mode:"wait",children:b?e.jsxs(n.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"text-center py-8",children:[e.jsx("div",{className:"w-20 h-20 rounded-full bg-green-500/20 flex items-center justify-center mx-auto mb-6",children:e.jsx(x,{size:40,className:"text-green-500"})}),e.jsx("h2",{className:"text-2xl font-bold mb-2",children:a("leadGen.thankYou")}),e.jsx("p",{className:"text-muted-foreground mb-6",children:a("leadGen.guideReadyClick")}),e.jsx("a",{href:G,download:!0,children:e.jsxs(u,{size:"lg",className:"rounded-full","data-testid":"button-download",children:[e.jsx(B,{size:18,className:"mr-2"}),a("leadGen.downloadYourGuide")]})}),e.jsx("p",{className:"text-sm text-muted-foreground mt-6",children:a("leadGen.emailCopySent")})]},"success"):e.jsxs(n.div,{initial:{opacity:1},exit:{opacity:0},children:[e.jsx("h2",{className:"text-2xl font-bold mb-2",children:a("leadGen.formTitle")}),e.jsx("p",{className:"text-muted-foreground mb-6",children:a("leadGen.formSubtitle")}),e.jsxs("form",{onSubmit:z,className:"space-y-4",children:[e.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsxs(r,{htmlFor:"firstName",children:[a("leadGen.form.firstName")," *"]}),e.jsx(o,{id:"firstName",value:t.firstName,onChange:s=>l("firstName",s.target.value),placeholder:a("leadGen.form.firstNamePlaceholder"),className:"mt-1","data-testid":"input-first-name",required:!0})]}),e.jsxs("div",{children:[e.jsxs(r,{htmlFor:"lastName",children:[a("leadGen.form.lastName")," *"]}),e.jsx(o,{id:"lastName",value:t.lastName,onChange:s=>l("lastName",s.target.value),placeholder:a("leadGen.form.lastNamePlaceholder"),className:"mt-1","data-testid":"input-last-name",required:!0})]})]}),e.jsxs("div",{children:[e.jsxs(r,{htmlFor:"email",children:[a("leadGen.form.email")," *"]}),e.jsx(o,{id:"email",type:"email",value:t.email,onChange:s=>l("email",s.target.value),placeholder:a("leadGen.form.emailPlaceholder"),className:"mt-1","data-testid":"input-email",required:!0})]}),e.jsxs("div",{children:[e.jsx(r,{htmlFor:"company",children:a("leadGen.form.company")}),e.jsx(o,{id:"company",value:t.company,onChange:s=>l("company",s.target.value),placeholder:a("leadGen.form.companyPlaceholder"),className:"mt-1","data-testid":"input-company"})]}),e.jsxs("div",{children:[e.jsx(r,{htmlFor:"jobTitle",children:a("leadGen.form.jobTitle")}),e.jsx(o,{id:"jobTitle",value:t.jobTitle,onChange:s=>l("jobTitle",s.target.value),placeholder:a("leadGen.form.jobTitlePlaceholder"),className:"mt-1","data-testid":"input-job-title"})]}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx(r,{children:a("leadGen.form.companySize")}),e.jsxs(g,{value:t.companySize,onValueChange:s=>l("companySize",s),children:[e.jsx(j,{className:"mt-1","data-testid":"select-company-size",children:e.jsx(f,{placeholder:a("leadGen.form.selectSize")})}),e.jsx(y,{children:R.map(s=>e.jsx(N,{value:a(`leadGen.companySizes.${s}`),children:a(`leadGen.companySizes.${s}`)},s))})]})]}),e.jsxs("div",{children:[e.jsx(r,{children:a("leadGen.form.industry")}),e.jsxs(g,{value:t.industry,onValueChange:s=>l("industry",s),children:[e.jsx(j,{className:"mt-1","data-testid":"select-industry",children:e.jsx(f,{placeholder:a("leadGen.form.selectIndustry")})}),e.jsx(y,{children:V.map(s=>e.jsx(N,{value:a(`leadGen.industries.${s}`),children:a(`leadGen.industries.${s}`)},s))})]})]})]}),e.jsx(u,{type:"submit",size:"lg",className:"w-full rounded-full mt-2",disabled:p,"data-testid":"button-submit-lead",children:p?e.jsxs(e.Fragment,{children:[e.jsx(F,{size:18,className:"mr-2 animate-spin"}),a("leadGen.processing")]}):e.jsxs(e.Fragment,{children:[a("leadGen.downloadFreeGuide"),e.jsx(D,{size:18,className:"ml-2"})]})}),e.jsx("p",{className:"text-xs text-muted-foreground text-center",children:a("leadGen.privacyNotice")})]})]},"form")})})]})})}),e.jsx("section",{className:"py-20 bg-card",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-6 text-center",children:[e.jsx("h2",{className:"font-display text-3xl md:text-4xl font-bold mb-6",children:a("leadGen.whatYoullLearn")}),e.jsx("div",{className:"grid md:grid-cols-2 gap-6 text-left mt-12",children:[a("leadGen.learnItems.diagnose"),a("leadGen.learnItems.intersectional"),a("leadGen.learnItems.evidenceBased"),a("leadGen.learnItems.accountability"),a("leadGen.learnItems.performance"),a("leadGen.learnItems.sustainable")].map((s,i)=>e.jsxs(n.div,{initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.1},className:"flex items-start gap-3",children:[e.jsx(x,{size:20,className:"text-primary shrink-0 mt-0.5"}),e.jsx("span",{children:s})]},i))})]})}),e.jsx(U,{})]})}
1export{ye 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.