import{j as e}from"./ui-vendor-Dyu0xMC9.js";import{r as a}from"./react-vendor-BiKEbLqf.js";import{o as s,s as t,g as i,u as r,H as n,c as o,F as l,t as c,U as d}from"./Footer-BCdrvFQr.js";import{H as m,B as u}from"./button-F0c2zgfO.js";import{C as p,a as h,b as x,d as g}from"./card-D8XUAx1y.js";import{P as b}from"./progress-CHsnwzjE.js";import{B as v}from"./badge-rRfUgTqY.js";import{L as y,I as j,s as f}from"./client-Ccea0ZZ8.js";import{C as N}from"./checkbox-CIREr_ko.js";import{e as w}from"./index-D2mkZfe8.js";import{C as A}from"./circle-check-big-Bh3GJQos.js";import{A as C}from"./arrow-left-BGq1TsT3.js";import{B as I}from"./brain-CJojsnQn.js";import{A as S}from"./arrow-right-BJutILxB.js";import{D as M}from"./database-DfvLsiXE.js";import{C as q}from"./cog-Cizg07QQ.js";import{S as P}from"./shield-C31ECPnk.js";import{C as k}from"./chart-column-CwtWdjlv.js";import{T as B}from"./triangle-alert-6aReCDA8.js";import{C as L}from"./circle-x-g9GsYv9T.js";import"./chevron-right-9d459eh4.js";import"./chart-vendor-V3pFlbOw.js";const R=[{id:1,category:"Project Status",icon:I,question:"What is the current status of your AI initiative?",options:[{value:1,label:"Just exploring - no specific project yet",description:"Early research phase"},{value:2,label:"Defined use case - gathering requirements",description:"Planning phase"},{value:3,label:"Active POC or prototype in development",description:"Proof of concept"},{value:4,label:"Pilot running with limited users",description:"Validation phase"},{value:5,label:"Production deployment in progress or live",description:"Production"}]},{id:2,category:"Data Infrastructure",icon:M,question:"How would you describe your data infrastructure maturity?",options:[{value:1,label:"Data scattered across systems, no central access",description:"Fragmented"},{value:2,label:"Some data centralization, manual ETL processes",description:"Basic"},{value:3,label:"Data warehouse or lake with documented pipelines",description:"Structured"},{value:4,label:"Automated pipelines, data quality monitoring",description:"Mature"},{value:5,label:"ML-ready feature stores, versioned datasets",description:"Advanced"}]},{id:3,category:"Data Infrastructure",icon:M,question:"What is the state of your training/inference data?",options:[{value:1,label:"No data collected for this use case yet",description:"None"},{value:2,label:"Raw data exists but needs significant cleaning",description:"Raw"},{value:3,label:"Clean data available, not yet labeled/structured",description:"Clean"},{value:4,label:"Labeled dataset ready, some validation done",description:"Prepared"},{value:5,label:"Production-quality dataset with ongoing updates",description:"Production-ready"}]},{id:4,category:"Team Composition",icon:d,question:"What does your AI/ML team look like?",options:[{value:1,label:"No dedicated AI/ML resources",description:"None"},{value:2,label:"Data scientists only, no ML engineers",description:"Research-focused"},{value:3,label:"Mixed team, some production experience",description:"Developing"},{value:4,label:"Balanced data science + ML engineering",description:"Balanced"},{value:5,label:"Full MLOps team with production experience",description:"Full stack"}]},{id:5,category:"Team Composition",icon:d,question:"How would you rate stakeholder alignment on this AI project?",options:[{value:1,label:"No executive sponsorship or unclear ownership",description:"None"},{value:2,label:"Some interest but competing priorities",description:"Limited"},{value:3,label:"Executive sponsor identified, budget allocated",description:"Supported"},{value:4,label:"Cross-functional alignment, clear success metrics",description:"Aligned"},{value:5,label:"AI is strategic priority with board visibility",description:"Strategic"}]},{id:6,category:"Deployment Infrastructure",icon:q,question:"What is your deployment infrastructure readiness?",options:[{value:1,label:"No cloud or containerization in place",description:"None"},{value:2,label:"Basic cloud setup, manual deployments",description:"Basic"},{value:3,label:"CI/CD for applications, not yet for ML",description:"Partial"},{value:4,label:"ML pipelines defined, some automation",description:"Developing"},{value:5,label:"Full MLOps with automated training/deployment",description:"Mature"}]},{id:7,category:"Deployment Infrastructure",icon:q,question:"How do you currently handle model monitoring and retraining?",options:[{value:1,label:"Haven't thought about it yet",description:"Not considered"},{value:2,label:"Manual monitoring, reactive retraining",description:"Manual"},{value:3,label:"Basic dashboards, scheduled retraining",description:"Basic"},{value:4,label:"Drift detection, triggered retraining pipelines",description:"Automated"},{value:5,label:"Full observability, A/B testing, continuous learning",description:"Advanced"}]},{id:8,category:"Governance & Compliance",icon:P,question:"What governance and compliance requirements apply?",options:[{value:5,label:"No regulatory requirements apply",description:"None"},{value:4,label:"Basic data privacy (GDPR, CCPA)",description:"Standard"},{value:3,label:"Industry-specific (HIPAA, SOC 2, PCI)",description:"Regulated"},{value:2,label:"Financial services or healthcare with audits",description:"Highly regulated"},{value:1,label:"Government or defense with strict AI governance",description:"Critical"}]},{id:9,category:"Governance & Compliance",icon:P,question:"How mature is your AI governance framework?",options:[{value:1,label:"No AI governance policies exist",description:"None"},{value:2,label:"Informal guidelines, no enforcement",description:"Informal"},{value:3,label:"Documented policies, training in progress",description:"Developing"},{value:4,label:"Established framework, regular reviews",description:"Established"},{value:5,label:"Mature governance with AI ethics board",description:"Mature"}]},{id:10,category:"Business Metrics",icon:k,question:"How clearly are success metrics defined for this AI project?",options:[{value:1,label:"No metrics defined yet",description:"None"},{value:2,label:"Technical metrics only (accuracy, latency)",description:"Technical"},{value:3,label:"Business KPIs identified but not baselined",description:"Identified"},{value:4,label:"Clear KPIs with baseline measurements",description:"Baselined"},{value:5,label:"KPI tracking in production with dashboards",description:"Operational"}]},{id:11,category:"Business Metrics",icon:k,question:"What is your expected timeline to production?",options:[{value:1,label:"12+ months or no timeline",description:"Long-term"},{value:2,label:"9-12 months",description:"Extended"},{value:3,label:"6-9 months",description:"Standard"},{value:4,label:"3-6 months",description:"Accelerated"},{value:5,label:"Under 3 months",description:"Rapid"}]},{id:12,category:"Integration Complexity",icon:q,question:"How complex are the integration requirements?",options:[{value:5,label:"Standalone system, minimal integrations",description:"Simple"},{value:4,label:"1-2 system integrations via API",description:"Basic"},{value:3,label:"Multiple systems, documented APIs available",description:"Moderate"},{value:2,label:"Legacy systems, custom integrations needed",description:"Complex"},{value:1,label:"Real-time integrations with critical systems",description:"Critical"}]}],F=e=>e>=80?{level:"Production Ready",color:"text-green-600",bgColor:"bg-green-100",icon:A,description:"Your organization has strong foundations for AI production. Focus on optimization and scaling.",recommendations:["Optimize model performance and cost efficiency","Implement advanced monitoring and A/B testing","Consider expanding to additional use cases","Build internal AI Center of Excellence"]}:e>=60?{level:"Approaching Ready",color:"text-blue-600",bgColor:"bg-blue-100",icon:A,description:"Good progress! Address a few gaps to accelerate your path to production.",recommendations:["Strengthen MLOps and deployment automation","Improve data quality and pipeline reliability","Define clearer success metrics and KPIs","Consider partnering for accelerated delivery"]}:e>=40?{level:"Building Foundations",color:"text-amber-600",bgColor:"bg-amber-100",icon:B,description:"Critical foundations are in place but significant gaps remain.",recommendations:["Invest in data infrastructure and quality","Build or acquire ML engineering capabilities","Establish governance and compliance frameworks","Start with a focused pilot before scaling"]}:{level:"Early Stage",color:"text-red-600",bgColor:"bg-red-100",icon:L,description:"Significant preparation needed before production deployment.",recommendations:["Define a clear use case with measurable ROI","Invest in data collection and infrastructure","Build foundational ML team capabilities","Consider starting with a partner-led engagement"]},D=s({name:t().min(2,"Name is required").max(100),email:t().email("Valid email required").max(255),company:t().min(2,"Company is required").max(200),terms:i().refine(e=>!0===e,{message:"You must accept to continue"})}),z=()=>{const[s,t]=a.useState(0),[i,d]=a.useState({}),[M,q]=a.useState(!1),[P,k]=a.useState(!1),[B,L]=a.useState(!1),[z,E]=a.useState(!1),{register:O,handleSubmit:H,formState:{errors:T},setValue:_,watch:G}=r({resolver:c(D),defaultValues:{name:"",email:"",company:"",terms:!1}}),W=G("terms"),$=R.length,Y=(s+1)/$*100,J=R[s],K=()=>{const e=Object.values(i).reduce((e,a)=>e+a,0),a=5*$;return Math.round(e/a*100)},V=K(),U=F(V),Q=(e=>{const a={};return R.forEach(s=>{a[s.category]||(a[s.category]={total:0,count:0,max:0}),a[s.category].max+=5,void 0!==e[s.id]&&(a[s.category].total+=e[s.id],a[s.category].count+=1)}),Object.entries(a).map(([e,a])=>({name:e,score:a.count>0?Math.round(a.total/a.max*100):0,answered:a.count}))})(i),X=U.icon;return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsxs(m,{children:[e.jsx("title",{children:"AI Production Readiness Assessment | Allerin"}),e.jsx("meta",{name:"description",content:"Take our 5-minute assessment to evaluate your organization's AI production readiness. Get a personalized score and actionable recommendations."}),e.jsx("link",{rel:"canonical",href:"https://www.allerin.com/ai-readiness-assessment"})]}),e.jsx(n,{}),e.jsxs("main",{className:"pt-20",children:[e.jsx("section",{className:"bg-gradient-to-br from-primary via-primary/95 to-data-teal py-16",children:e.jsx("div",{className:"container",children:e.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[e.jsx(v,{className:"bg-white/10 text-white border-white/20 mb-4",children:"5-Minute Assessment"}),e.jsx("h1",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-white mb-4",children:"Is Your AI Ready for Production?"}),e.jsx("p",{className:"text-lg text-white/80",children:"Answer 12 questions to get a personalized readiness score and actionable recommendations based on industry benchmarks."})]})})}),e.jsx("section",{className:"py-12 md:py-16",children:e.jsxs("div",{className:"container max-w-3xl",children:[!M&&!P&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"mb-8",children:[e.jsxs("div",{className:"flex justify-between text-sm text-muted-foreground mb-2",children:[e.jsxs("span",{children:["Question ",s+1," of ",$]}),e.jsxs("span",{children:[Math.round(Y),"% Complete"]})]}),e.jsx(b,{value:Y,className:"h-2"})]}),e.jsxs(p,{className:"border-border/40 shadow-lg",children:[e.jsxs(h,{className:"pb-4",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[e.jsx("div",{className:"p-2 rounded-lg bg-primary/10",children:e.jsx(J.icon,{className:"w-5 h-5 text-primary"})}),e.jsx(v,{variant:"outline",className:"text-xs",children:J.category})]}),e.jsx(x,{className:"text-xl md:text-2xl font-semibold",children:J.question})]}),e.jsx(g,{className:"space-y-3",children:J.options.map(a=>e.jsx("button",{onClick:()=>{return e=a.value,d(a=>({...a,[J.id]:e})),void(s<$-1?setTimeout(()=>t(e=>e+1),300):k(!0));var e},className:"w-full text-left p-4 rounded-lg border-2 transition-all duration-200 hover:border-primary hover:bg-primary/5 "+(i[J.id]===a.value?"border-primary bg-primary/10":"border-border/40"),children:e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-foreground",children:a.label}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:a.description})]}),i[J.id]===a.value&&e.jsx(A,{className:"w-5 h-5 text-primary flex-shrink-0"})]})},a.value))})]}),e.jsxs("div",{className:"flex justify-between mt-6",children:[e.jsxs(u,{variant:"outline",onClick:()=>{s>0&&t(e=>e-1)},disabled:0===s,children:[e.jsx(C,{className:"w-4 h-4 mr-2"})," Previous"]}),e.jsxs("div",{className:"text-sm text-muted-foreground",children:[Object.keys(i).length," of ",$," answered"]})]})]}),P&&e.jsxs(p,{className:"border-border/40 shadow-lg",children:[e.jsxs(h,{className:"text-center pb-4",children:[e.jsx("div",{className:"w-16 h-16 bg-primary/10 rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(I,{className:"w-8 h-8 text-primary"})}),e.jsx(x,{className:"text-2xl",children:"Your Results Are Ready!"}),e.jsx("p",{className:"text-muted-foreground mt-2",children:"Enter your details to see your personalized AI readiness score and recommendations."})]}),e.jsx(g,{children:e.jsxs("form",{onSubmit:H(async e=>{L(!0);try{const a=K(),s=F(a);await f.from("demo_requests").insert({name:e.name.trim(),email:e.email.trim().toLowerCase(),company:e.company.trim(),intent:"readiness-assessment",message:`AI Readiness Score: ${a}/100 (${s.level}). Answers: ${JSON.stringify(i)}`,source_page:"/ai-readiness-assessment",source_button:"assessment_completion",user_agent:navigator.userAgent}),"undefined"!=typeof window&&window.gtag&&window.gtag("event","assessment_completed",{event_category:"Lead Generation",event_label:"AI Readiness Assessment",value:a}),E(!0),k(!1),q(!0),w({title:"Assessment Complete!",description:"Your personalized results are ready."})}catch(a){w({title:"Something went wrong",description:"Please try again.",variant:"destructive"})}finally{L(!1)}}),className:"space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(y,{htmlFor:"name",children:"Full Name *"}),e.jsx(j,{id:"name",placeholder:"Jane Smith",...O("name"),className:T.name?"border-destructive":""}),T.name&&e.jsx("p",{className:"text-xs text-destructive",children:T.name.message})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(y,{htmlFor:"email",children:"Work Email *"}),e.jsx(j,{id:"email",type:"email",placeholder:"jane@company.com",...O("email"),className:T.email?"border-destructive":""}),T.email&&e.jsx("p",{className:"text-xs text-destructive",children:T.email.message})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(y,{htmlFor:"company",children:"Company *"}),e.jsx(j,{id:"company",placeholder:"Acme Corp",...O("company"),className:T.company?"border-destructive":""}),T.company&&e.jsx("p",{className:"text-xs text-destructive",children:T.company.message})]}),e.jsxs("div",{className:"flex items-start space-x-3 pt-2",children:[e.jsx(N,{id:"terms",checked:W,onCheckedChange:e=>_("terms",!0===e)}),e.jsx(y,{htmlFor:"terms",className:"text-sm font-normal text-muted-foreground cursor-pointer",children:"I agree to receive my results and occasional AI insights. Unsubscribe anytime."})]}),T.terms&&e.jsx("p",{className:"text-xs text-destructive",children:T.terms.message}),e.jsx(u,{type:"submit",className:"w-full",disabled:B,children:B?e.jsxs(e.Fragment,{children:[e.jsx(o,{className:"w-4 h-4 mr-2 animate-spin"})," Calculating..."]}):e.jsxs(e.Fragment,{children:["See My Results ",e.jsx(S,{className:"w-4 h-4 ml-2"})]})})]})})]}),M&&e.jsxs("div",{className:"space-y-8",children:[e.jsxs(p,{className:"border-border/40 shadow-lg overflow-hidden",children:[e.jsxs("div",{className:`${U.bgColor} p-8 text-center`,children:[e.jsx("div",{className:"w-20 h-20 rounded-full bg-white flex items-center justify-center mx-auto mb-4 shadow-lg",children:e.jsx("span",{className:`text-3xl font-bold ${U.color}`,children:V})}),e.jsxs("div",{className:"flex items-center justify-center gap-2 mb-2",children:[e.jsx(X,{className:`w-6 h-6 ${U.color}`}),e.jsx("h2",{className:`text-2xl font-bold ${U.color}`,children:U.level})]}),e.jsx("p",{className:"text-muted-foreground max-w-md mx-auto",children:U.description})]}),e.jsxs(g,{className:"p-6",children:[e.jsx("h3",{className:"font-semibold text-lg mb-4",children:"Category Breakdown"}),e.jsx("div",{className:"space-y-4",children:Q.map(a=>e.jsxs("div",{children:[e.jsxs("div",{className:"flex justify-between text-sm mb-1",children:[e.jsx("span",{className:"font-medium",children:a.name}),e.jsxs("span",{className:"text-muted-foreground",children:[a.score,"%"]})]}),e.jsx(b,{value:a.score,className:"h-2"})]},a.name))})]})]}),e.jsxs(p,{className:"border-border/40 shadow-lg",children:[e.jsx(h,{children:e.jsx(x,{children:"Recommended Next Steps"})}),e.jsx(g,{children:e.jsx("ul",{className:"space-y-3",children:U.recommendations.map((a,s)=>e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx(A,{className:"w-5 h-5 text-primary flex-shrink-0 mt-0.5"}),e.jsx("span",{children:a})]},s))})})]}),e.jsx(p,{className:"border-primary/20 bg-gradient-to-br from-primary/5 to-data-teal/5",children:e.jsxs(g,{className:"p-8 text-center",children:[e.jsx("h3",{className:"text-xl font-bold mb-2",children:"Ready to Accelerate Your AI Journey?"}),e.jsx("p",{className:"text-muted-foreground mb-6",children:"Talk to our architects about a personalized roadmap based on your assessment."}),e.jsx(u,{size:"lg",asChild:!0,children:e.jsxs("a",{href:"/services",children:["Schedule Architecture Review ",e.jsx(S,{className:"ml-2 w-4 h-4"})]})})]})})]})]})})]}),e.jsx(l,{})]})};export{z as default};