1import{r as g,j as e}from"./vendor-CR4GEDXU.js";import{e as U,H as P,L as _,B as R}from"./index-DEH-EspT.js";import{i as F,l as h,s as a,o as L,Z as f,g as b,h as D,j as O,u as M,k as z,t as Y}from"./form-ByOlb__1.js";import{N as W}from"./Navbar-tOzc1LfG.js";import{F as V}from"./Footer-D5psJso-.js";import{I as q}from"./input-DokEs6ju.js";import{a as B}from"./ContactForm-DepiRU5V.js";import{a as H,C as J,b as K}from"./mutual-nda-DUrcH9VH.js";import{g as $}from"./consultant-app-check-DeJhN1Bc.js";import{N as G,n as Z}from"./nda-form-handlers-BN7e3AWD.js";import{F as X}from"./FormHoneypot-Dir-q2-e.js";import{h as Q,U as ee}from"./form-honeypot-H9fWLHNI.js";import{G as te}from"./graduation-cap-EACOZ2Cr.js";import{U as re}from"./users-BsIOobnr.js";import{S as ae}from"./shield-check-huqoaCnu.js";import{A as ie}from"./arrow-right-DHxjqloZ.js";import"./ui-C4oFTs1l.js";import"./query-DOtdOdQ4.js";import"./label-BVgsVZnH.js";import"./CogDetailModal-DG7TMr0D.js";import"./external-link-KY1DdKsQ.js";import"./lock-DvwRkkXo.js";import"./cognitum-logo-nav-Ab5-TKQ3.js";import"./search-DqP_1Y0P.js";import"./chevron-right-BX5NHfjR.js";import"./check-CqweXUBF.js";import"./code-C6nbiYvx.js";import"./sparkles-_bU26kwM.js";import"./gauge-CagVqRJN.js";import"./loader-circle-DzNOjQOo.js";import"./bot-CmTw7lot.js";import"./boxes-DrYmbB5j.js";import"./book-open-6GoY8iOl.js";import"./file-text-BT0Z1DR3.js";import"./store-Bt_NW7kz.js";import"./mail-D8JM50xB.js";import"./menu-BVmwL0l-.js";import"./user-4wq7CL7j.js";import"./send-fpPRiXLF.js";import"./firebase-app-check-CgFCZ7_J.js";import"./firebase-CI7RrEJE.js";const N=F([h(""),a().trim().max(300).url().refine(i=>i.startsWith("https://"),"Use a secure https:// URL")]),v=L({fullName:a().trim().min(2,"Enter your full name").max(120),email:a().trim().email("Enter a valid email address").max(254),phone:a().trim().max(40),countryTimezone:a().trim().min(2,"Enter your country and time zone").max(100),currentRole:a().trim().min(2,"Enter your current role").max(120),company:a().trim().max(120),profileUrl:N,website:N,expertise:a().trim().min(3,"List at least one area of expertise").max(500),certifications:a().trim().max(500),yearsExperience:O.number().int().min(0).max(70),experience:a().trim().min(40,"Tell us a little more about your experience").max(2e3),motivation:a().trim().min(40,"Tell us why you want to join").max(2e3),marketFocus:a().trim().min(10,"Describe the clients or market you intend to serve").max(1e3),availability:a().trim().min(2,"Describe your availability").max(300),referralSource:a().trim().max(200),notes:a().trim().max(1e3),privacyAccepted:h(!0,{errorMap:()=>({message:"Consent is required"})}),certificationTermsAcknowledged:h(!0,{errorMap:()=>({message:"Acknowledgement is required"})}),ndaEntityName:a().trim().min(2,"Enter the Counterpartyâs legal entity name").max(180),ndaEntityType:b(["corporation","limited_liability_company","partnership"],{required_error:"Select the entity type"}),ndaJurisdiction:a().trim().min(2,"Enter the entityâs formation jurisdiction").max(120),ndaPrincipalAddress:a().trim().min(8,"Enter the Counterpartyâs principal address").max(300),ndaSignerTitle:a().trim().min(2,"Enter your authorized signer title").max(120),ndaPurposes:D(b(H.map(i=>i.id))).min(1,"Initial at least one applicable purpose"),ndaAcknowledged:h(!0,{errorMap:()=>({message:"You must acknowledge and agree to the Mutual NDA"})}),ndaSignatureMethod:b(["typed","drawn"]),ndaSignature:a().min(2,"Your signature is required").max(12e4).superRefine((i,s)=>{i.startsWith("data:")&&!/^data:image\/png;base64,[A-Za-z0-9+/=]+$/.test(i)&&s.addIssue({code:f.custom,message:"Drawn signature must be a PNG image"})}),ndaSignedAt:a().datetime({message:"Signature timestamp is required"}),websiteCompany:a().max(0)}).superRefine((i,s)=>{i.ndaSignatureMethod==="typed"&&i.ndaSignature.trim().toLocaleLowerCase()!==i.fullName.trim().toLocaleLowerCase()&&s.addIssue({code:f.custom,path:["ndaSignature"],message:"Typed signature must match your full legal name"}),i.ndaSignatureMethod==="drawn"&&!i.ndaSignature.startsWith("data:image/png;base64,")&&s.addIssue({code:f.custom,path:["ndaSignature"],message:"Draw your signature in the signature box"})}),se="https://cognitum.one/cf/submitConsultantApplication";function j(){return crypto.randomUUID()}async function ne(i,s={}){const t=v.parse(i),m=await fetch(s.endpoint??se,{method:"POST",headers:{"Content-Type":"application/json","Idempotency-Key":s.idempotencyKey??j(),...s.appCheckToken?{"X-Firebase-AppCheck":s.appCheckToken}:{}}
1,body:JSON.stringify({schemaVersion:2,applicant:{name:t.fullName,email:t.email.toLowerCase(),phone:t.phone||void 0,countryTimezone:t.countryTimezone},professional:{role:t.currentRole,company:t.company||void 0,profileUrl:t.profileUrl||void 0,website:t.website||void 0,expertise:t.expertise.split(",").map(p=>p.trim()).filter(Boolean),certifications:t.certifications.split(",").map(p=>p.trim()).filter(Boolean),yearsExperience:t.yearsExperience},responses:{experience:t.experience,motivation:t.motivation,marketFocus:t.marketFocus,availability:t.availability,referralSource:t.referralSource||void 0,notes:t.notes||void 0},consent:{privacyAccepted:t.privacyAccepted,certificationTermsAcknowledged:t.certificationTermsAcknowledged,policyVersion:"2026-07",nda:{acknowledged:t.ndaAcknowledged,documentVersion:K,documentText:J,counterpartyKind:"entity",legalName:t.ndaEntityName,entityName:t.ndaEntityName,entityType:t.ndaEntityType,jurisdiction:t.ndaJurisdiction,noticeAddress:t.ndaPrincipalAddress,signerName:t.fullName,signerTitle:t.ndaSignerTitle,signerEmail:t.email.toLowerCase(),purposes:t.ndaPurposes,signatureMethod:t.ndaSignatureMethod,signature:t.ndaSignature,signedAt:t.ndaSignedAt}},antiAbuse:{honeypot:t.websiteCompany},source:{landingPageVersion:"1.0"}})});if(m.status!==202)throw new Error("Your application could not be submitted. Please try again shortly.");const x=await m.json();if(!x.referenceId)throw new Error("Your application was received, but the confirmation was incomplete. Please contact us.");return{referenceId:x.referenceId}}const oe="cognitum_consultant_completion";async function ce(i,s){if(!i.current){i.current=!0;try{return await s()}finally{i.current=!1}}}const le={fullName:"",email:"",phone:"",countryTimezone:"",currentRole:"",company:"",profileUrl:"",website:"",expertise:"",certifications:"",yearsExperience:0,experience:"",motivation:"",marketFocus:"",availability:"",referralSource:"",notes:"",privacyAccepted:!1,certificationTermsAcknowledged:!1,ndaEntityName:"",ndaEntityType:void 0,ndaJurisdiction:"",ndaPrincipalAddress:"",ndaSignerTitle:"",ndaPurposes:[],ndaAcknowledged:!1,ndaSignatureMethod:"typed",ndaSignature:"",ndaSignedAt:"",websiteCompany:""};function Ze(){const[i,s]=g.useState(""),t=g.useRef(j()),m=g.useRef(null),x=g.useRef(!1),p=U(),{register:d,handleSubmit:w,setValue:A,control:k,formState:{errors:n,isSubmitting:y}}=M({resolver:Y(v),defaultValues:le}),[S,C]=z({control:k,name:["fullName","email"]}),T=async r=>{s(""),await ce(x,async()=>{try{const c=await $();if(!c)throw new Error("Security verification is unavailable. Please refresh and try again.");const{referenceId:l}=await ne(r,{idempotencyKey:t.current,appCheckToken:c});try{sessionStorage.setItem(oe,JSON.stringify({referenceId:l,createdAt:Date.now(),journey:"consultant"}))}catch{}p("/thank-you/consultant",{state:{referenceId:l},replace:!0})}catch(c){s(c instanceof Error?c.message:"Your application could not be submitted."),window.requestAnimationFrame(()=>m.current?.focus())}})},E=r=>{if(!Q(r)){s("");return}s(ee),window.requestAnimationFrame(()=>m.current?.focus())},o=(r,c,l={})=>e.jsxs("div",{children:[e.jsx("label",{htmlFor:r,className:"mb-2 block text-sm font-medium",children:c}),e.jsx(q,{id:r,...d(r,r==="yearsExperience"?{valueAsNumber:!0}:void 0),"aria-invalid":!!n[r],"aria-describedby":n[r]?`${r}-error`:void 0,...l}),n[r]&&e.jsx("p",{id:`${r}-error`,role:"alert",className:"mt-1 text-sm text-destructive",children:n[r]?.message})]}),u=(r,c,l,I)=>e.jsxs("div",{children:[e.jsx("label",{htmlFor:r,className:"mb-2 block text-sm font-medium",children:c}),e.jsx("p",{className:"mb-2 text-xs text-muted-foreground",children:l}),e.jsx(B,{id:r,...d(r),maxLength:I,rows:5,"aria-invalid":!!n[r],"aria-describedby":n[r]?`${r}-error`:void 0}),n[r]&&e.jsx("p",{id:`${r}-error`,role:"alert",className:"mt-1 text-sm text-destructive",children:n[r]?.message})]});return e.jsxs(e.Fragment,{children:[e.jsxs(P,{children:[e.jsx("title",{children:"Become a Cognitum Certified Consultant | Cognitum"}),e.jsx("meta",{name:"description",content:"Apply to join the Cognitum Certified Consultant network and help organizations deploy accountable agentic systems."}),e.jsx("link",{rel:"canonical",href:"https://cognitum.one/consultant-application"})]}),e.jsx(W,{}),e.jsxs("main",{className:"bg-background",children:[e.jsxs("section",{className:"relative overflow-hidden border-b px-6 pb-20 pt-36",children:[e.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_75%_25%,hsl(var(--primary)/.16),transparent_38%)]"}),e.jsxs("div",{className:"relative mx-auto grid max-w-6xl gap-12 lg:grid-cols-[1.15fr_.85fr]",children:[e.jsxs("div",{children:[e.jsx("p",{className:"mb-4 text-sm font-semibold uppercase tracking-[.2em] text-primary",children:"Certified consultant network"}),e.jsx("h1",{className:"text-4xl font-bold tracking-tight sm:text-6xl",children:"Build the future of accountable AI with us."}),e.jsx("p",{className:"mt-6 max-w-2xl text-lg leading-8 text-muted-foreground",children:"Weâre looking for experienced professionals who can translate Cognitumâs agentic technology into measurable client outcomes."})]}),e.jsx("div",{className:"grid gap-4 sm:grid-cols-3 lg:grid-cols-1",children:[[te,"Learn","Structured certification and enablement"],[re,"Deliver","A network backed by Cognitum expertise"],[ae,"Prove","Trust, governance, and accountable outcomes"]].map(([r,c,l])=>
1e.jsxs("div",{className:"flex gap-4 rounded-xl border bg-card/80 p-5",children:[e.jsx(r,{className:"h-6 w-6 text-primary"}),e.jsxs("div",{children:[e.jsx("h2",{className:"font-semibold",children:c}),e.jsx("p",{className:"text-sm text-muted-foreground",children:l})]})]},String(c)))})]})]}),e.jsx("section",{className:"px-6 py-20",children:e.jsxs("div",{className:"mx-auto grid max-w-6xl gap-12 lg:grid-cols-[.65fr_1.35fr]",children:[e.jsxs("aside",{children:[e.jsx("h2",{className:"text-2xl font-bold",children:"What happens next"}),e.jsxs("ol",{className:"mt-6 space-y-5 text-sm text-muted-foreground",children:[e.jsxs("li",{children:[e.jsx("strong",{className:"block text-foreground",children:"1. Instant provisioning"}),"Your Cognitum consultant identity and address are reserved automatically."]}),e.jsxs("li",{children:[e.jsx("strong",{className:"block text-foreground",children:"2. Email activation"}),"Use the single-use link sent to your personal address."]}),e.jsxs("li",{children:[e.jsx("strong",{className:"block text-foreground",children:"3. Secure sign-in"}),"Accept current terms, configure an approved authenticator, and continue to the dashboard."]})]}),e.jsxs("p",{className:"mt-8 rounded-lg border p-4 text-sm text-muted-foreground",children:["Your personal address remains private and is used for activation, recovery, and security alerts. Applications are retained for up to 24 months. Read our ",e.jsx(_,{to:"/privacy",className:"underline",children:"Privacy Policy"}),"."]})]}),e.jsxs("form",{onSubmit:w(T,E),noValidate:!0,className:"space-y-9 rounded-2xl border bg-card p-6 shadow-lg sm:p-10","aria-label":"Consultant application",children:[e.jsxs("fieldset",{disabled:y,className:"space-y-9",children:[e.jsxs("section",{children:[e.jsx("h2",{className:"text-xl font-bold",children:"About you"}),e.jsxs("div",{className:"mt-5 grid gap-5 sm:grid-cols-2",children:[o("fullName","Full name *",{autoComplete:"name"}),o("email","Email *",{type:"email",autoComplete:"email"}),o("phone","Phone (optional)",{type:"tel",autoComplete:"tel"}),o("countryTimezone","Country and time zone *",{placeholder:"e.g. Canada / UTCâ5"})]})]}),e.jsxs("section",{children:[e.jsx("h2",{className:"text-xl font-bold",children:"Professional profile"}),e.jsxs("div",{className:"mt-5 grid gap-5 sm:grid-cols-2",children:[o("currentRole","Current role *"),o("company","Company or independent practice"),o("profileUrl","LinkedIn or professional profile",{type:"url",placeholder:"https://"}),o("website","Website (optional)",{type:"url",placeholder:"https://"}),o("expertise","Areas of expertise *",{placeholder:"Comma-separated"}),o("certifications","Relevant certifications",{placeholder:"Comma-separated"}),o("yearsExperience","Years of experience *",{type:"number",min:0,max:70})]})]}),e.jsxs("section",{className:"space-y-5",children:[e.jsx("h2",{className:"text-xl font-bold",children:"Your practice"}),u("experience","Relevant experience *","Share client outcomes, industries, and responsibilities (40â2,000 characters).",2e3),u("motivation","Why Cognitum? *","What draws you to the certified consultant network?",2e3),u("marketFocus","Intended clients and market focus *","Describe the organizations, sectors, or regions you plan to serve.",1e3),u("availability","Availability *","Typical weekly capacity and intended start date.",300),o("referralSource","How did you hear about us?"),u("notes","Anything else? (optional)","Do not include sensitive client information.",1e3)]}),e.jsx(X,{registration:d("websiteCompany")}),e.jsx(G,{...Z({register:d,setValue:A,errors:n}),signerName:S,signerEmail:C}),e.jsxs("section",{className:"space-y-4 border-t pt-7",children:[e.jsxs("label",{className:"flex items-start gap-3",children:[e.jsx("input",{type:"checkbox",className:"mt-1 h-4 w-4",...d("privacyAccepted")}),e.jsx("span",{className:"text-sm",children:"I consent to Cognitum processing this application and contacting me about the consultant program. *"})]}),n.privacyAccepted&&e.jsx("p",{role:"alert",className:"text-sm text-destructive",children:n.privacyAccepted.message}),e.jsxs("label",{className:"flex items-start gap-3",children:[e.jsx("input",{type:"checkbox",className:"mt-1 h-4 w-4",...d("certificationTermsAcknowledged")}),e.jsx("span",{className:"text-sm",children:"I accept the consultant program terms and understand that baseline consultant membership does not grant sensitive administrative capabilities. *"})]}),n.certificationTermsAcknowledged&&e.jsx("p",{role:"alert",className:"text-sm text-destructive",children:n.certificationTermsAcknowledged.message})]})]}),i&&e.jsx("div",{ref:m,tabIndex:-1,role:"alert",className:"rounded-lg border border-destructive/40 bg-destructive/10 p-4 text-sm text-destructive",children:i}),e.jsxs(R,{type:"submit",size:"lg",disabled:y,className:"w-full sm:w-auto",children:[y?"Starting onboardingâ¦":"Join and start onboarding",e.jsx(ie,{className:"ml-2 h-4 w-4"})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Encrypted in transit. Your electronic-signature evidence and the NDA document version are stored with your application. Safe retries resume the same onboarding workflow."})]})]})})]}),e.jsx(V,{})]})}
1export{oe as CONSULTANT_COMPLETION_STORAGE_KEY,Ze as default,ce as runConsultantSubmissionSingleFlight};
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.