vendor: 4,569 bytes, lines 1-21
1import{a as We,u as He,j as e,P as Ae,f as je,d as Ta,s as Da,t as Ke,v as za,b as La,x as Fa,I as qa}from"./ui-vendor-Bdc-wmwK.js";import{r as x,f as Ba,L as Oa}from"./react-vendor-BlPEP_KM.js";import{g as ne,E as Ga,r as J,B as E,t as Ua,A as ae,a as ke,u as Ye,W as Z,e as Qe,j as z,X as _a,h as Va,U as Ne,N as Q,T as ge,S as Xe,Y as xe}from"./index-CY2niXIo.js";import{C,b as L,c as F,d as we,a as R}from"./card-x0_b3n_t.js";import{B}from"./badge-BgeQjDcI.js";import{P as ze}from"./progress-D3lfMYWk.js";import{C as $a}from"./circle-C-zK75fZ.js";import{L as M}from"./label-BOf8SqAr.js";import{T as Wa}from"./textarea-sk0iBqGY.js";import{S as Ha}from"./square-check-big-BW6cPQO6.js";import{F as X}from"./Footer-ENFqPBJd.js";import{F as V,T as Ka,a as Ya,e as Qa}from"./useCaseMapping-5kRDkLnp.js";import{T as Xa,a as Ja,b as $,c as W}from"./tabs-C0Lq1PnY.js";import{C as Se}from"./clock-sm0rwTyl.js";import{U as Je}from"./users-CDHpavVr.js";import{C as ee}from"./circle-check-big-DhHRKUn8.js";import{D as Ze}from"./database-B8-zRTGb.js";import{W as ea}from"./workflow-CHavoCJh.js";import{B as aa}from"./brain-circuit-bLDyBAhT.js";import{C as ie}from"./chart-column-B1FcCgW0.js";import{I as H}from"./input-BmSGwHXs.js";import{M as Le}from"./mail-3_Lgmx9k.js";import{S as he,a as ye,b as fe,c as ve,d as be}from"./select-IsKJHgHi.js";import{B as se}from"./building-CvrtBBQF.js";import{S as Za}from"./seededRandom-BE1Y08N-.js";import{S as Fe}from"./star-CWkpnrP3.js";import{D as es}from"./dollar-sign-DWRHHZLp.js";import{T as te}from"./target-DxOW26qF.js";import{B as qe}from"./building-2-DbXvtm8V.js";import{A as as}from"./award-52lob9Tx.js";import{Z as Be}from"./zap-Bw1paLYr.js";import{C as ss}from"./cog-CfVSIfwy.js";import{T as ts}from"./trophy-D1Xc5FRi.js";import{A as Oe}from"./arrow-left-Blhj9osQ.js";import{E as is}from"./eye-BxV8e13x.js";import{M as Ge}from"./message-square-Ch0aBsSq.js";import"./globe-D6vowvNp.js";import"./html-sanitizer-BUwWjyXa.js";import"./scroll-area-CtEHU8u-.js";import"./info-DswxdINr.js";import"./search-s9Vs5k9i.js";import"./calendar-DsL8aj1D.js";import"./triangle-alert-CE5Ooy25.js";import"./gauge-BSrtetgF.js";import"./lightbulb-B5AxJ3da.js";import"./skeleton-CZVjRQE6.js";/** 2 * @license lucide-react v0.462.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const ns=ne("CircuitBoard",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M11 9h4a2 2 0 0 0 2-2V3",key:"1ve2rv"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"M7 21v-4a2 2 0 0 1 2-2h4",key:"1fwkro"}],["circle",{cx:"15",cy:"15",r:"2",key:"3i40o0"}]]);/** 7 * @license lucide-react v0.462.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const rs=ne("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);/** 12 * @license lucide-react v0.462.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */const sa=ne("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]);/** 17 * @license lucide-react v0.462.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */const os=ne("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);var Ie="Radio",[ls,ta]=We(Ie),[cs,ds]=ls(Ie),ia=x.forwardRef((n,l)=>{const{__scopeRadio:t,name:c,checked:a=!1,required:r,disabled:p,value:g="on",onCheck:b,form:j,...u}=n,[w,h]=x.useState(null),N=He(l,k=>h(k)),i=x.useRef(!1),S=w?j||!!w.closest("form"):!0;return e.jsxs(cs,{scope:t,checked:a,disabled:p,children:[e.jsx(Ae.button,{type:"button",role:"radio","aria-checked":a,"data-state":oa(a),"data-disabled":p?"":void 0,disabled:p,value:g,...u,ref:N,onClick:je(n.onClick,k=>{a||b?.(),S&&(i.current=k.isPropagationStopped(),i.current||k.stopPropagation())})}),S&&e.jsx(ms,{control:w,bubbles:!i.current,name:c,value:g,checked:a,required:r,disabled:p,form:j,style:{transform:"translateX(-100%)"}})]})});ia.displayName=Ie;var na="RadioIndicator",ra=x.forwardRef((n,l)=>{const{__scopeRadio:t,forceMount:c,...a}=n,r=ds(na,t);
21return e.jsx(Ta,{present:c||r.checked,children:e.jsx(Ae.span,{"data-state":oa(r.checked),"data-disabled":r.disabled?"":void 0,...a,ref:l})})});ra.displayName=na;var ms=n=>{const{control:l,checked:t,bubbles:c=!0,...a}=n,r=x.useRef(null),p=Ga(t),g=Da(l);return x.useEffect(()=>{const b=r.current,j=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(j,"checked").set;if(p!==t&&w){const h=new Event("click",{bubbles:c});w.call(b,t),b.dispatchEvent(h)}},[p,t,c]),e.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:t,...a,tabIndex:-1,ref:r,style:{...n.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function oa(n){return n?"checked":"unchecked"}var us=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ce="RadioGroup",[ps,wt]=We(Ce,[Ke,ta]),la=Ke(),ca=ta(),[gs,xs]=ps(Ce),da=x.forwardRef((n,l)=>{const{__scopeRadioGroup:t,name:c,defaultValue:a,value:r,required:p=!1,disabled:g=!1,orientation:b,dir:j,loop:u=!0,onValueChange:w,...h}=n,N=la(t),i=za(j),[S,k]=La({prop:r,defaultProp:a,onChange:w});return e.jsx(gs,{scope:t,name:c,required:p,disabled:g,value:S,onValueChange:k,children:e.jsx(Fa,{asChild:!0,...N,orientation:b,dir:i,loop:u,children:e.jsx(Ae.div,{role:"radiogroup","aria-required":p,"aria-orientation":b,"data-disabled":g?"":void 0,dir:i,...h,ref:l})})})});da.displayName=Ce;var ma="RadioGroupItem",ua=x.forwardRef((n,l)=>{const{__scopeRadioGroup:t,disabled:c,...a}=n,r=xs(ma,t),p=r.disabled||c,g=la(t),b=ca(t),j=x.useRef(null),u=He(l,j),w=r.value===a.value,h=x.useRef(!1);return x.useEffect(()=>{const N=S=>{us.includes(S.key)&&(h.current=!0)},i=()=>h.current=!1;return document.addEventListener("keydown",N),document.addEventListener("keyup",i),()=>{document.removeEventListener("keydown",N),document.removeEventListener("keyup",i)}},[]),e.jsx(qa,{asChild:!0,...g,focusable:!p,active:w,children:e.jsx(ia,{disabled:p,required:r.required,checked:w,...b,...a,name:r.name,ref:u,onCheck:()=>r.onValueChange(a.value),onKeyDown:je(N=>{N.key==="Enter"&&N.preventDefault()}),onFocus:je(a.onFocus,()=>{h.current&&j.current?.click()})})})});ua.displayName=ma;var hs="RadioGroupIndicator",pa=x.forwardRef((n,l)=>{const{__scopeRadioGroup:t,...c}=n,a=ca(t);return e.jsx(ra,{...a,...c,ref:l})});pa.displayName=hs;var ga=da,xa=ua,ys=pa;const ha=x.forwardRef(({className:n,...l},t)=>e.jsx(ga,{className:J("grid gap-2",n),...l,ref:t}));ha.displayName=ga.displayName;const ya=x.forwardRef(({className:n,...l},t)=>e.jsx(xa,{ref:t,className:J("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",n),...l,children:e.jsx(ys,{className:"flex items-center justify-center",children:e.jsx($a,{className:"h-2.5 w-2.5 fill-current text-current"})})}));ya.displayName=xa.displayName;const fa=({id:n,checked:l,disabled:t=!1,onCheckedChange:c,className:a})=>{const r=()=>{t||c(!l)};return e.jsx("div",{className:J("flex items-center justify-center cursor-pointer",t&&"cursor-not-allowed opacity-50",a),onClick:r,children:l?e.jsx(Ha,{size:20,className:J("text-primary",!t&&"hover:text-primary/80",t&&"text-muted-foreground")}):e.jsx(os,{size:20,className:J("text-muted-foreground",!t&&"hover:text-foreground",t&&"text-muted-foreground/50")})})},fs=[{id:"ai-ml",title:"AI & Machine Learning Readiness",description:"Comprehensive assessment of your AI/ML capabilities and transformation potential",icon:ke,badge:"Core AI",duration:"2-3 mins",questionsCount:7,primaryFocus:["AI Strategy & Governance","Machine Learning Capabilities","Data Science Maturity","AI Infrastructure","Team Readiness"],benefits:["AI readiness score and maturity level","Custom ML implementation roadmap","Technology stack recommendations","ROI projections for AI initiatives"],color:"primary",type:"custom"},{id:"data-solutions",title:"Data Architecture & Analytics",description:"Evaluate your data infrastructure, governance, and analytics capabilities",icon:Ze,badge:"Data Focus",duration:"2-3 mins",questionsCount:7,primaryFocus:["Data Architecture & Infrastru
21cture","Data Quality & Governance","Analytics Capabilities","Cloud Data Strategy","Real-time Processing"],benefits:["Data maturity assessment","Modern data stack roadmap","Analytics implementation plan","Data governance framework"],color:"blue",type:"custom"},{id:"process-automation",title:"Process Automation & RPA",description:"Assess your automation potential and process optimization opportunities",icon:ea,badge:"Automation",duration:"2-3 mins",questionsCount:7,primaryFocus:["Process Automation Readiness","RPA Implementation Potential","Workflow Optimization","Integration Capabilities","Change Management"],benefits:["Automation opportunity assessment","RPA implementation roadmap","Process optimization recommendations","ROI calculations for automation"],color:"green",type:"custom"},{id:"genai-rag",title:"Generative AI & RAG Systems",description:"Evaluate readiness for GenAI, LLMs, and Retrieval-Augmented Generation",icon:aa,badge:"GenAI",duration:"2-3 mins",questionsCount:7,primaryFocus:["GenAI Strategy & Use Cases","LLM Implementation Readiness","RAG System Requirements","Content Generation Needs","AI Safety & Governance"],benefits:["GenAI readiness evaluation","Custom LLM deployment plan","RAG architecture recommendations","Content automation strategy"],color:"purple",type:"custom"},{id:"business-intelligence",title:"Business Intelligence & Analytics",description:"Assess your BI capabilities and strategic analytics requirements",icon:ie,badge:"Analytics",duration:"2-3 mins",questionsCount:7,primaryFocus:["BI Infrastructure & Tools","Reporting & Dashboards","Self-Service Analytics","Data Visualization","Performance Metrics"],benefits:["BI maturity assessment","Analytics strategy roadmap","Dashboard implementation plan","Self-service analytics framework"],color:"orange",type:"custom"},{id:"kpixpert",title:"KPIXpert",description:"Assess your KPI management capabilities and optimization potential",icon:ie,badge:"KPIXpert",duration:"2-3 mins",questionsCount:7,primaryFocus:["KPI Optimization & Monitoring","LLM Based Guided Analysis","Business Strategy Optimization","Data-Driven Decision Making","Performance Benchmarking","Actionable Insights Generation"],benefits:["KPI maturity assessment","Performance optimization roadmap","Data-driven insights strategy","KPI alignment framework"],color:"cyan",type:"product"}],Ue=({onSelect:n})=>e.jsxs("div",{className:"max-w-7xl mx-auto",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsx("h2",{className:"text-3xl lg:text-4xl font-bold mb-4",children:"Choose Your Assessment Focus"}),e.jsx("p",{className:"text-lg text-muted-foreground max-w-3xl mx-auto",children:"Select the area you'd like to assess. Each assessment provides specialized insights and recommendations tailored to your specific domain needs."})]}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:fs.map(l=>e.jsxs(C,{className:"glass-card hover:shadow-elevation transition-all duration-300 group",children:[e.jsxs(L,{children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsx("div",{className:`p-3 rounded-xl bg-${l.color}/10 group-hover:bg-${l.color}/20 transition-colors`,children:e.jsx(l.icon,{className:`w-8 h-8 text-${l.color}`})}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(B,{variant:"secondary",className:"text-xs",children:l.badge}),e.jsx(B,{variant:l.type==="product"?"default":"secondary",className:`text-xs ${l.type==="custom"?"bg-blue-100 text-blue-700 hover:bg-blue-200":""}`,children:l.type==="product"?"Product":"Custom Solution"})]})]}),e.jsx(F,{className:"text-xl mb-2",children:l.title}),e.jsx(we,{className:"text-sm",children:l.description})]}),e.jsxs(R,{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Se,{className:"w-4 h-4"}),e.jsx("span",{children:l.duration})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Je,{className:"w-4 h-4"}),e.jsxs("span",{children:[l.questionsCount," questions"]})]})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-sm mb-2",children:"Focus Areas:"}),e.jsx("ul",{className:"space-y-1",children:l.primaryFocus.slice(0,4).map((t,c)=>e.jsxs("li",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx(ee,{className:"w-3 h-3 text-primary"}),e.jsx("span",{children:t})]},c))})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-sm mb-2",children:"You'll Receive:"}),e.jsx("ul",{className:"space-y-1",children:l.benefits.slice(0,3).map((t,c)=>e.jsxs("li",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx(ee,{className:"w-3 h-3 text-primary"}),e.jsx("span",{children:t})]},c))})]}),e.jsxs(E,{className:"w-full mt-4 group",variant:"hero",onClick:()=>{Ua(`click_ai_assessment_start_${l.type}`,`Start ${l.title}`,"Assessment Type Selector",`/ai-readiness-assessment?type=${l.id}`),n(l.id)},children:["Start Assessment",e.jsx(ae,{className:"w-4 h-4 ml-2 group-hover:translate-x-1 transition-transform"})]})]})]},l.id))}),e.jsx("div",{className:"text-center mt-12",children:e.jsxs("div",{className:"bg-gradient-to-r from-primary/10 to-accent/10 rounded-xl p-6",children:[e.jsx("h3",{className:"text-lg font-semibold mb-2",children:"Need Multiple Assessments?"}),e.jsx("p",{className:"text-muted-foreground mb-4",children:"You can take multiple assessments to get comprehensive insights across different domains. Each assessment takes 2-3 minutes and provides specialized recommendations."}),e.jsx(E,{variant:"outline",size:"sm",children:"Learn More About Our Assessment Process"})]})})]}),vs=({onVerificationSuccess:n})=>
21{const[l,t]=x.useState("form"),[c,a]=x.useState(!1),[r,p]=x.useState(""),[g,b]=x.useState({name:"",email:"",company:""}),{toast:j}=Ye(),u=i=>{const S=["gmail.com","yahoo.com","hotmail.com","outlook.com","aol.com","icloud.com","me.com","live.com","msn.com","ymail.com","rocketmail.com","protonmail.com","tutanota.com"],k=i.toLowerCase().split("@")[1];return!S.includes(k)},w=async i=>{if(i.preventDefault(),!g.name||!g.email||!g.company){j({title:"Missing Information",description:"Please fill in all required fields.",variant:"destructive"});return}if(!u(g.email)){j({title:"Invalid Email",description:"Please use a work email address. Personal email providers (Gmail, Yahoo, Hotmail, etc.) are not allowed.",variant:"destructive"});return}a(!0);try{const{error:S}=await z.functions.invoke("send-verification-email",{body:g});if(S)throw S;j({title:"Verification Email Sent",description:"Please check your email and enter the 6-digit verification code."}),t("verify")}catch(S){j({title:"Error",description:S.message||"Failed to send verification email. Please try again.",variant:"destructive"})}finally{a(!1)}},h=async i=>{if(i.preventDefault(),r.length!==6){j({title:"Invalid Code",description:"Please enter the complete 6-digit verification code.",variant:"destructive"});return}a(!0);try{const{data:S,error:k}=await z.functions.invoke("verify-email-code",{body:{email:g.email,code:r}});if(k)throw k;if(S.success)j({title:"Email Verified",description:"Your email has been successfully verified. You can now start the assessment."}),n(S.userData);else throw new Error(S.error||"Verification failed")}catch(S){j({title:"Verification Failed",description:S.message||"Invalid or expired verification code. Please try again.",variant:"destructive"})}finally{a(!1)}},N=async()=>{a(!0);try{const{error:i}=await z.functions.invoke("send-verification-email",{body:g});if(i)throw i;j({title:"Code Resent",description:"A new verification code has been sent to your email."})}catch{j({title:"Error",description:"Failed to resend verification code. Please try again.",variant:"destructive"})}finally{a(!1)}};return l==="verify"?e.jsxs(C,{className:"w-full max-w-md mx-auto",children:[e.jsxs(L,{className:"text-center",children:[e.jsx("div",{className:"mx-auto w-12 h-12 bg-primary/10 rounded-full flex items-center justify-center mb-4",children:e.jsx(Le,{className:"w-6 h-6 text-primary"})}),e.jsx(F,{children:"Verify Your Email"}),e.jsxs(we,{children:["We've sent a 6-digit verification code to ",e.jsx("strong",{children:g.email})]})]}),e.jsx(R,{children:e.jsxs("form",{onSubmit:h,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx(M,{htmlFor:"code",children:"Verification Code"}),e.jsx(H,{id:"code",type:"text",placeholder:"Enter 6-digit code",value:r,onChange:i=>p(i.target.value.replace(/\D/g,"").slice(0,6)),className:"text-center text-lg tracking-widest",maxLength:6,required:!0})]}),e.jsx(E,{type:"submit",className:"w-full",disabled:c||r.length!==6,children:c?e.jsxs(e.Fragment,{children:[e.jsx(Z,{className:"w-4 h-4 mr-2 animate-spin"}),"Verifying..."]}):e.jsxs(e.Fragment,{children:[e.jsx(Qe,{className:"w-4 h-4 mr-2"}),"Verify Email"]})}),e.jsx("div",{className:"text-center",children:e.jsx(E,{type:"button",variant:"ghost",size:"sm",onClick:N,disabled:c,children:"Didn't receive the code? Resend"})}),e.jsx("div",{className:"text-center",children:e.jsx(E,{type:"button",variant:"outline",size:"sm",onClick:()=>t("form"),disabled:c,children:"Change Email Address"})})]})})]}):e.jsxs(C,{className:"w-full max-w-md mx-auto",children:[e.jsxs(L,{className:"text-center",children:[e.jsx("div",{className:"mx-auto w-12 h-12 bg-primary/10 rounded-full flex items-center justify-center mb-4",children:e.jsx(ee,{className:"w-6 h-6 text-primary"})}),e.jsx(F,{children:"Get Started with AI Assessment"}),e.jsx(we,{children:"Please provide your details to begin the assessment. We'll send a verification code to your work email."})]}),e.jsx(R,{children:e.jsxs("form",{onSubmit:w,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx(M,{htmlFor:"name",children:"Full Name *"}),e.jsx(H,{id:"name",type:"text",placeholder:"Enter your full name",value:g.name,onChange:i=>b({...g,name:i.target.value}),required:!0})]}),e.jsxs("div",{children:[e.jsx(M,{htmlFor:"email",children:"Work Email *"}),e.jsx(H,{id:"email",type:"email",placeholder:"Enter your work email",value:g.email,onChange:i=>b({...g,email:i.target.value}),required:!0}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Personal email providers (Gmail, Yahoo, etc.) are not allowed"})]}),e.jsxs("div",{children:[e.jsx(M,{htmlFor:"company",children:"Company Name *"}),e.jsx(H,{id:"company",type:"text",placeholder:"Enter your company name",value:g.company,onChange:i=>b({...g,company:i.target.value}),required:!0})]}
21),e.jsx(E,{type:"submit",className:"w-full",disabled:c,children:c?e.jsxs(e.Fragment,{children:[e.jsx(Z,{className:"w-4 h-4 mr-2 animate-spin"}),"Sending Verification..."]}):e.jsxs(e.Fragment,{children:[e.jsx(Le,{className:"w-4 h-4 mr-2"}),"Send Verification Code"]})}),e.jsx("p",{className:"text-xs text-center text-muted-foreground",children:"By continuing, you agree to receive emails related to the AI assessment process."})]})})]})},bs={Technology:["Software Development","Cloud Computing","Cybersecurity","Artificial Intelligence","Mobile Apps","SaaS Platforms","E-commerce Technology","DevOps & Infrastructure","Data Analytics","Blockchain & Crypto","IoT & Smart Devices","AR/VR Technology","Fintech","EdTech","HealthTech","Other Technology"],Healthcare:["Hospitals & Health Systems","Pharmaceuticals","Medical Devices","Biotechnology","Digital Health","Telemedicine","Clinical Research","Medical Diagnostics","Mental Health Services","Long-term Care","Health Insurance","Medical Equipment","Laboratory Services","Rehabilitation Services","Preventive Care","Other Healthcare"],"Financial Services":["Banking","Investment Management","Insurance","Credit & Lending","Payment Processing","Cryptocurrency","Financial Planning","Risk Management","Regulatory Compliance","Trading & Brokerage","Real Estate Finance","Corporate Finance","Wealth Management","Pension Funds","Credit Unions","Other Financial Services"],Manufacturing:["Automotive","Electronics","Chemicals & Petrochemicals","Food & Beverage","Textiles & Apparel","Aerospace & Defense","Industrial Equipment","Consumer Goods","Pharmaceuticals","Steel & Metals","Plastics & Rubber","Medical Devices","Energy Equipment","Construction Materials","Packaging","Other Manufacturing"],Retail:["Fashion & Apparel","Electronics & Technology","Home & Garden","Grocery & Food","Health & Beauty","Sports & Outdoors","Automotive Parts","Books & Media","Jewelry & Accessories","Toys & Games","Department Stores","Specialty Retail","Luxury Goods","Pet Products","Online Marketplace","Other Retail"],Education:["K-12 Schools","Higher Education","Online Learning","Corporate Training","Vocational Training","Language Learning","Test Preparation","Educational Technology","Research Institutions","Libraries & Information","Early Childhood Education","Special Education","Adult Education","Educational Consulting","Educational Publishing","Other Education"],Energy:["Oil & Gas","Renewable Energy","Solar Power","Wind Power","Nuclear Energy","Coal & Mining","Energy Storage","Utilities","Smart Grid","Hydroelectric","Geothermal","Biomass & Biofuels","Energy Trading","Energy Efficiency","Power Generation","Other Energy"],Transportation:["Airlines","Railways","Shipping & Maritime","Trucking & Logistics","Public Transit","Ride Sharing","Delivery Services","Freight & Cargo","Automotive Services","Fleet Management","Warehousing","Supply Chain","Air Cargo","Port Operations","Transportation Technology","Other Transportation"],"Real Estate":["Residential Sales","Commercial Real Estate","Property Management","Real Estate Development","Real Estate Investment","Property Technology","Construction","Architecture & Design","Real Estate Finance","Facility Management","Coworking Spaces","Vacation Rentals","Land Development","Real Estate Consulting","Property Ins
21pection","Other Real Estate"],Agriculture:["Crop Production","Livestock & Dairy","Aquaculture & Fisheries","Agricultural Technology","Food Processing","Agricultural Equipment","Seeds & Genetics","Fertilizers & Chemicals","Organic Farming","Precision Agriculture","Agricultural Finance","Farm Management","Agricultural Research","Sustainable Agriculture","Agricultural Trading","Other Agriculture"],"Media & Entertainment":["Film & Television","Music & Audio","Publishing & Books","Gaming","Digital Media","Advertising & Marketing","Event Management","Sports & Recreation","News & Journalism","Content Creation","Social Media","Broadcasting","Animation & VFX","Podcast & Audio","Streaming Services","Other Media & Entertainment"],Government:["Federal Government","State Government","Local Government","Military & Defense","Public Safety","Social Services","Regulatory Agencies","Tax & Revenue","Urban Planning","Environmental Services","Healthcare Services","Education Services","Transportation Services","Public Works","Emergency Services","Other Government"],"Non-Profit":["Healthcare & Medical","Education & Research","Social Services","Environmental","Religious Organizations","Arts & Culture","Human Rights","Animal Welfare","International Development","Community Development","Youth Development","Senior Services","Mental Health","Disaster Relief","Advocacy & Policy","Other Non-Profit"],Consulting:["Management Consulting","Technology Consulting","Financial Consulting","Strategy Consulting","HR Consulting","Marketing Consulting","Operations Consulting","Digital Transformation","Change Management","Risk & Compliance","Sustainability Consulting","Healthcare Consulting","Legal Consulting","Engineering Consulting","Business Development","Other Consulting"],Other:["Professional Services","Legal Services","Accounting & Finance","Human Resources","Marketing & Advertising","Design & Creative","Research & Development","Quality Assurance","Customer Service","Sales & Business Development","Operations & Logistics","Project Management","Data & Analytics","Security Services","Facilities Management","Other Services"]},js=n=>bs[n]||[],_e=[{value:"Technology",label:"Technology"},{value:"Healthcare",label:"Healthcare"},{value:"Financial Services",label:"Financial Services"},{value:"Manufacturing",label:"Manufacturing"},{value:"Retail",label:"Retail"},{value:"Education",label:"Education"},{value:"Energy",label:"Energy"},{value:"Transportation",label:"Transportation"},{value:"Real Estate",label:"Real Estate"},{value:"Agriculture",label:"Agriculture"},{value:"Media & Entertainment",label:"Media & Entertainment"},{value:"Government",label:"Government"},{value:"Non-Profit",label:"Non-Profit"},{value:"Consulting",label:"Consulting"},{value:"Other",label:"Other"}],Ve=[{value:"Startup (1-10)",label:"Startup (1-10 employees)"},{value:"Small (11-50)",label:"Small Business (11-50 employees)"},{value:"Medium (51-200)",label:"Medium Business (51-200 employees)"},{value:"Large (201-1000)",label:"Large Enterprise (201-1,000 employees)"},{value:"Enterprise (1000+)",label:"Enterprise (1,000+ employees)"}];function $e({profile:n,onUpdate:l}){const[t,c]=x.useState(!1),[a,r]=x.useState(n),[p,g]=x.useState([]);x.useEffect(()=>{if(a.industry){const h=js(a.industry);g(h),a.subIndustry&&!h.includes(a.subIndustry)&&r(N=>({...N,subIndustry:void 0}))}else g([]),r(h=>({...h,subIndustry:void 0}))},[a.industry]);const b=()=>{l(a),c(!1)},j=()=>{r(n),c(!1)},u=h=>_e.find(N=>N.value===h)?.label||"Not specified",w=h=>Ve.find(N=>N.value===h)?.label||"Not specified";return e.jsxs(C,{className:"mb-6",children:[e.jsxs(L,{className:"pb-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(F,{className:"text-lg",children:"Profile Summary"}),t?e.jsxs("div",{className:"flex gap-2",children:[e.jsxs(E,{variant:"outline",size:"sm",onClick:j,className:"flex items-center gap-2",children:[e.jsx(_a,{className:"h-4 w-4"}),"Cancel"]}),e.jsxs(E,{size:"sm",onClick:b,className:"flex items-center gap-2",children:[e.jsx(Va,{className:"h-4 w-4"}),"Save"]})]}):e.jsxs(E,{variant:"outline",size:"sm",onClick:()=>c(!0),className:"flex items-center gap-2",children:[e.jsx(sa,{className:"h-4 w-4"}),"Edit"]})]}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"We've inferred some details from your information. Please review and edit if needed."})]}),e.jsx(R,{className:"space-y-4",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(Ne,{className:"h-5 w-5 text-muted-foreground"}),e.jsxs("div",{className:"flex-1",children:[e.jsx(M,{className:"text-sm font-medium",children:"Name"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:n.name})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(se,{className:"h-5 w-5 text-muted-foreground"}),e.jsxs("div",{className:"flex-1",children:[e.jsx(M,{className:"text-sm font-medium",children:"Company"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:n.company})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(Ne,{className:"h-5 w-5 text-muted-foreground"}),e.jsxs("div",{className:"flex-1",children:[e.jsx(M,{className:"text-sm font-medium",children:"Role"}),t?e.jsx(H,{value:a.role||"",onChange:h=>r(N=>({...N,role:h.target.value})),placeholder:"Enter your role",className:"mt-1"}):e.jsx("p",{className:"text-sm text-muted-foreground",children:n.role||"Not specified"})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(se,{className:"h-5 w-5 text-muted-foreground"}),e.jsxs("div",{className:"flex-1",children:[e.jsx(M,{className:"text-sm font-medium",children:"Industry"}),t?e.jsxs(he,{value:a.industry||"",onValueChange:h=>r(N=>({...N,industry:h})),children:[e.jsx(ye,{className:"mt-1",children:e.jsx(fe,{placeholder:"Select industry"})}),e.jsx(ve,{children:_e.map(h=>e.jsx(be,{value:h.value,children:h.label},h.value))})]}):e.jsx("p",{className:"text-sm text-muted-foreground",children:u(n.industry)})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(se,{className:"h-5 w-5 text-muted-foreground"}),e.jsxs("div",{className:"flex-1",children:[e.jsx(M,{className:"text-sm font-medium",children:"Sub-Industry"}),t?e.jsxs(he,{value:a.subIndustry||"",onValueChange:h=>r(N=>({...N,subIndustry:h})),disabled:!a.industry||p.length===0,children:[e.jsx(ye,{className:"mt-1",children:e.jsx(fe,{placeholder:a.industry?p.length===0?"N
21o sub-industries available":"Select sub-industry":"Select industry first"})}),e.jsx(ve,{children:p.map(h=>e.jsx(be,{value:h,children:h},h))})]}):e.jsx("p",{className:"text-sm text-muted-foreground",children:n.subIndustry||"Not specified"})]})]}),e.jsxs("div",{className:"flex items-center gap-3 md:col-span-2",children:[e.jsx(Je,{className:"h-5 w-5 text-muted-foreground"}),e.jsxs("div",{className:"flex-1",children:[e.jsx(M,{className:"text-sm font-medium",children:"Company Size"}),t?e.jsxs(he,{value:a.companySize||"",onValueChange:h=>r(N=>({...N,companySize:h})),children:[e.jsx(ye,{className:"mt-1",children:e.jsx(fe,{placeholder:"Select company size"})}),e.jsx(ve,{children:Ve.map(h=>e.jsx(be,{value:h.value,children:h.label},h.value))})]}):e.jsx("p",{className:"text-sm text-muted-foreground",children:w(n.companySize)})]})]})]})})]})}const Ns=[{id:"main-challenges",question:"What are your organization's primary business challenges? (Select up to 3)",type:"multiselect",category:"challenges",required:!0,assessmentTypes:["ai-ml","data-solutions","process-automation","genai-rag","business-intelligence","kpixpert"],options:[]},{id:"current-pain-point",question:"What are your biggest operational pain points? (Select up to 3)",type:"multiselect",category:"challenges",required:!0,assessmentTypes:["ai-ml","data-solutions","process-automation","genai-rag","business-intelligence","kpixpert"],options:[]},{id:"budget-range",question:"What is your estimated budget range?",type:"radio",category:"budget",required:!0,assessmentTypes:["ai-ml","data-solutions","process-automation","genai-rag","business-intelligence","kpixpert"],options:[{value:"under-100k",label:"Under $100,000",score:1},{value:"100k-500k",label:"$100,000 - $500,000",score:2},{value:"500k-2m",label:"$500,000 - $2,000,000",score:3},{value:"over-2m",label:"Over $2,000,000",score:4}]},{id:"timeline-expectation",question:"When do you need to see initial results?",type:"radio",category:"timeline",required:!0,assessmentTypes:["ai-ml","data-solutions","process-automation","genai-rag","business-intelligence","kpixpert"],options:[{value:"immediate",label:"Within 3 months",score:1},{value:"short",label:"3-6 months",score:2},{value:"medium",label:"6-12 months",score:3},{value:"long",label:"Over 12 months",score:4}]},{id:"ai-experience",question:"What's your organization's current AI/ML experience?",type:"radio",category:"current-state",required:!0,assessmentTypes:["ai-ml"],options:[{value:"none",label:"No AI/ML experience",score:1},{value:"pilot",label:"Pilot projects or POCs completed",score:2},{value:"production",label:"AI solutions in production",score:3},{value:"advanced",label:"Mature AI/ML operations",score:4}]},{id:"data-readiness",question:"How would you rate your data quality and availability?",type:"radio",category:"current-state",required:!0,assessmentTypes:["ai-ml"],options:[{value:"poor",label:"Poor quality, significant cleanup needed",score:1},{value:"fair",label:"Fair quality, some preparation needed",score:2},{value:"good",label:"Good quality, minimal preparation",score:3},{value:"excellent",label:"Excellent, AI-ready data",score:4}]},{id:"data-maturity",question:"How would you describe your current data infrastructure?",type:"radio",category:"current-state",required:!0,assessmentTypes:["data-solutions","business-intelligence"],options:[{value:"basic",label:"Spreadsheets & manual processes",score:1},{value:"databases",label:"Centralized databases",score:2},{value:"warehouse",label:"Data warehouse with BI tools",score:3},{value:"advanced",label:"Modern data stack with real-time analytics",score:4}]},{id:"data-challenges",question:"What are your biggest data challenges? (Select up to 3)",type:"multiselect",category:"domain-specific",required:!0,assessmentTypes:["data-solutions"],options:[{value:"data-quality",label:"Data Quality & Consistency"},{value:"data-silos",label:"Data Silos & Integration"},{value:"real-time-processing",label:"Real-time Processing"},{value:"scalability",label:"Scalability & Performance"},{value:"governance",label:"Data Governance"}
21,{value:"analytics-adoption",label:"Self-Service Analytics Adoption"}]},{id:"data-volume",question:"What's your approximate daily data volume?",type:"radio",category:"domain-specific",required:!0,assessmentTypes:["data-solutions"],options:[{value:"small",label:"Less than 10GB per day",score:1},{value:"medium",label:"10GB - 1TB per day",score:2},{value:"large",label:"1TB - 10TB per day",score:3},{value:"enterprise",label:"Over 10TB per day",score:4}]},{id:"automation-experience",question:"What's your experience with process automation?",type:"radio",category:"current-state",required:!0,assessmentTypes:["process-automation"],options:[{value:"none",label:"No automation experience",score:1},{value:"basic",label:"Basic workflow tools",score:2},{value:"rpa-pilot",label:"RPA pilot projects",score:3},{value:"advanced",label:"Enterprise automation program",score:4}]},{id:"automation-processes",question:"Which processes would benefit most from automation? (Select up to 3)",type:"multiselect",category:"domain-specific",required:!0,assessmentTypes:["process-automation"],options:[{value:"invoice-processing",label:"Invoice Processing"},{value:"data-entry",label:"Data Entry & Validation"},{value:"customer-onboarding",label:"Customer Onboarding"},{value:"report-generation",label:"Report Generation"},{value:"compliance-monitoring",label:"Compliance Monitoring"},{value:"hr-processes",label:"HR & Payroll Processes"}]},{id:"manual-processes-percentage",question:"What percentage of your key processes are manual?",type:"radio",category:"current-state",required:!0,assessmentTypes:["process-automation"],options:[{value:"0-25",label:"Less than 25%",score:4},{value:"25-50",label:"25-50%",score:3},{value:"50-75",label:"50-75%",score:2},{value:"75-100",label:"More than 75%",score:1}]},{id:"genai-familiarity",question:"How familiar is your team with generative AI?",type:"radio",category:"current-state",required:!0,assessmentTypes:["genai-rag"],options:[{value:"none",label:"No experience",score:1},{value:"basic",label:"Basic understanding",score:2},{value:"some-usage",label:"Some tool usage (ChatGPT, etc.)",score:3},{value:"experienced",label:"Experienced with implementation",score:4}]},{id:"genai-use-cases",question:"Which GenAI applications interest you most? (Select up to 3)",type:"multiselect",category:"domain-specific",required:!0,assessmentTypes:["genai-rag"],options:[{value:"content-generation",label:"Content Generation"},{value:"document-processing",label:"Document Processing"},{value:"customer-support",label:"Customer Support Chatbots"},{value:"code-generation",label:"Code Generation"},{value:"knowledge-management",label:"Knowledge Management"},{value:"data-analysis",label:"Data Analysis & Insights"}]},{id:"document-volume",question:"How much unstructured data/documents do you have?",type:"radio",category:"current-state",required:!0,assessmentTypes:["genai-rag"],options:[{value:"minimal",label:"Minimal (< 1GB)",score:1},{value:"moderate",label:"Moderate (1-100GB)",score:2},{value:"substantial",label:"Substantial (100GB-1TB)",score:3},{value:"massive",label:"Massive (> 1TB)",score:4}]},{id:"bi-tools-current",question:"Which BI tools do you currently use?",type:"radio",category:"current-state",required:!0,assessmentTypes:["business-intelligence"],options:[{value:"excel",label:"Excel & Spreadsheets",score:1},{value:"basic-bi",label:"Basic BI tools (Power BI, Tableau)",score:2},{value:"advanced-bi",label:"Advanced BI platforms",score:3},{value:"custom",label:"Custom dashboards & analytics",score:4}]},{id:"reporting-challenges",question:"What are your biggest reporting challenges? (Select up to 3)",type:"multiselect",category:"domain-specific",required:!0,assessmentTypes:["business-intelligence"],options:[{value:"manual-reporting",label:"Manual Report Creation"},{value:"data-accuracy",label:"Data Accuracy Issues"},{value:"real-time-needs",label:"Need for Real-time Data"},{value:"self-service",label:"Self-Service Analytics"},{value:"mobile-access",label:"Mobile Access"},{value:"integration",label:"Data Source Integration"}]},{id:"decision-speed",question:"How quickly can leadership access critical decision data?",type:"radio",category:"current-state",required:!0,assessmentTypes:["business-intelligence"],options:[{value:"weeks",label:"Days to weeks",score:1},{value:"days",label:"Hours to days",score:2},{value:"hours",label:"Minutes to hours",score:3},{value:"real-time",label:"Real-time",score:4}]},{id:"kpi-tracking-maturity",question:"How mature is your KPI tracking?",type:"radio",category:"current-state",required:!0,assessmentTypes:["kpixpert"],options:[{value:"informal",label:"Informal tracking",score:1},{value:"basic",label:"Basic framework",score:2},{value:"structured",label:"Well-structured system",score:3},{value:"advanced",label:"Advanced real-time monitoring",score:4}]},{id:"kpi-challenges",question:"What are your biggest KPI management challenges? (Select up to 3)",type:"multiselect",category:"domain-specific",required:!0,assessmentTypes:["kpixpert"],options:[{value:"data-collection",label:"Manual Data Collection"},{value:"alignment",label:"KPI Alignment Across Teams"},{value:"real-time-tracking",label:"Real-time Tracking"},{value:"actionable-insights",label:"Actionable Insights"},{value:"benchmark-comparison",label:"Benchmark Comparisons"},{value:"reporting-automation",label:"Automated Reporting"}]},{id:"kpi-count",question:"How many KPIs do you currently track?",type:"radio",category:"current-state",required:!0,assessmentTypes:["kpixpert"],options:[{value:"0-10",label:"0-10 KPIs",score:2},{value:"11-25",label:"11-25 KPIs",score:4},{value:"26-50",label:"26-50 KPIs",score:3},{value:"50+",label:"More than 50 KPIs",score:1}]}],ws=n=>Ns.filter(l=>l.assessmentTypes.includes(n));function Ss({industry:n,subIndustry:l,geography:t,companySize:c,role:a,selectedPainPoints:r,onPainPointsChange:p,assessmentType:g,companyName:b,selectedChallenges:j}){const[u,w]=x.useState([]),[h,N]=x.useState(!1),[i,S]=x.useState(null),[k,O]=x.use
21State(""),U=()=>{let y=[];return g==="data-solutions"?y=[{value:"data-quality-issues",label:"Poor data quality and inconsistent data across systems",category:"data-quality"},{value:"data-silos",label:"Data scattered across disconnected systems and departments",category:"data-integration"},{value:"lack-data-governance",label:"Lack of data governance and data management policies",category:"governance"},{value:"slow-data-access",label:"Slow access to data for decision making",category:"accessibility"},{value:"manual-data-processes",label:"Manual data extraction, transformation, and reporting processes",category:"automation"},{value:"outdated-data-infrastructure",label:"Outdated data infrastructure and legacy systems",category:"infrastructure"},{value:"lack-real-time-data",label:"Inability to access real-time or near real-time data",category:"real-time"},{value:"data-security-compliance",label:"Data security and compliance concerns",category:"security"},{value:"limited-analytics-capabilities",label:"Limited self-service analytics and business intelligence capabilities",category:"analytics"},{value:"data-integration-challenges",label:"Difficulty integrating data from multiple sources and formats",category:"integration"}]:g==="process-automation"?y=[{value:"manual-repetitive-tasks",label:"High volume of manual, repetitive tasks consuming staff time",category:"manual-processes"},{value:"workflow-bottlenecks",label:"Inefficient workflows causing delays and bottlenecks",category:"workflow-inefficiency"},{value:"inconsistent-processes",label:"Lack of standardized processes across departments",category:"process-standardization"},{value:"slow-approval-cycles",label:"Time-consuming approval and review processes",category:"approval-bottlenecks"},{value:"error-prone-data-entry",label:"Manual data entry leading to errors and rework",category:"data-entry"},{value:"disconnected-systems",label:"Systems requiring manual intervention to transfer data",category:"system-integration"},{value:"compliance-tracking-manual",label:"Manual compliance tracking and audit trail management",category:"compliance-tracking"},{value:"resource-allocation-inefficiency",label:"Difficulty in optimizing resource allocation and workload distribution",category:"resource-planning"},{value:"cross-department-communication",label:"Poor communication and coordination between departments",category:"communication"},{value:"legacy-system-constraints",label:"Legacy systems limiting process automation opportunities",category:"legacy-systems"}]:g==="genai-rag"?y=[{value:"document-search-challenges",label:"Difficulty finding relevant information in documents and knowledge bases",category:"knowledge-management"},{value:"content-creation-bottlenecks",label:"Time-consuming content creation and documentation processes",category:"content-generation"},{value:"inconsistent-responses",label:"Inconsistent responses to customer inquiries and support requests",category:"customer-support"},{value:"knowledge-silos",label:"Knowledge trapped in individual experts or departments",category:"knowledge-sharing"},{value:"manual-research-processes",label:"Manual research and information gathering processes",category:"research-automation"},{value:"outdated-documentation",label:"Outdated or incomplete documentation and knowledge bases",category:"content-management"}]:g==="business-intelligence"?y=[{value:"manual-reporting",label:"Time-consuming manual report creation and distribution",category:"reporting-automation"},{value:"delayed-insights",label:"Delayed access to business insights for decision making",category:"real-time-analytics"},{value:"inconsistent-metrics",label:"Inconsistent metrics and KPIs across departments",category:"standardization"},{value:"limited-self-service",label:"Limited self-service analytics capabilities for business users",category:"user-empowerment"},{value:"dashboard-overload",label:"Too many dashboards without clear actionable insights",category:"insight-clarity"},{value:"data-visualization-gaps",label:"Poor data visualization hindering understanding",category:"visualization"}]:y=[{value:"manual-processes",label:"Too many manual processes slowing operations",category:"operational"},{value:"data-silos",label:"Data scattered across multiple systems",category:"data"},{value:"lack-real-time-insights",label:"Lack of real-time business insights",category:"data"},{value:"inefficient-workflows",label:"Inefficient workflows and bottlenecks",category:"process"},{value:"high-operational-costs",label:"High operational costs",category:"cost"},{value:"poor-customer-experience",label:"Inconsistent customer experience",category:"customer"},{value:"compliance-challenges",label:"Compliance and regulatory challenges",category:"compliance"},{value:"scalability-issues",label:"Difficulty scaling operations",category:"scalability"}],[..._(a,g),...y].filter((ce,de,me)=>de===me.findIndex(ue=>ue.value===ce.value)).slice(0,12)},_=(y,P)=>{if(!y)return[];const I=y.toLowerCase();return I.includes("ceo")||I.includes("founder")||I.includes("president")||I.includes("executive")?[{value:"strategic-visibility-gaps",label:"Lack of strategic visibility into business performance",category:"leadership"},{value:"competitive-disadvantage",label:"Falling behind competitors in digital transformation",category:"competition"},{value:"roi-measurement-challenges",label:"Difficulty measuring ROI of technology investments",category:"financial"},{value:"talent-acquisition-retention",label:"Challenges in acquiring and retaining skilled talent",category:"human-resources"}]:I.includes("cto")||I.includes("technical")||I.includes("engineering")||I.includes("it director")?P==="data-solutions"?[{value:"technical-debt-data",label:"Growing technical debt in data infrastru
21cture",category:"technical"},{value:"scalability-bottlenecks",label:"Data infrastructure scalability bottlenecks",category:"infrastructure"},{value:"integration-complexity",label:"Complex data integration challenges across systems",category:"integration"}]:P==="process-automation"?[{value:"system-integration-complexity",label:"Complex system integration requirements for automation",category:"technical"},{value:"legacy-modernization",label:"Legacy system modernization challenges",category:"infrastructure"},{value:"automation-governance",label:"Lack of automation governance and standards",category:"governance"}]:[{value:"technical-debt",label:"Accumulating technical debt slowing innovation",category:"technical"},{value:"system-complexity",label:"Increasing system complexity and maintenance burden",category:"infrastructure"},{value:"security-vulnerabilities",label:"Security vulnerabilities in current systems",category:"security"}]:I.includes("manager")||I.includes("operations")||I.includes("director")?[{value:"team-productivity-bottlenecks",label:"Team productivity bottlenecks and inefficiencies",category:"operations"},{value:"resource-optimization",label:"Difficulty optimizing resource allocation and utilization",category:"resource-management"},{value:"performance-monitoring-gaps",label:"Gaps in performance monitoring and tracking",category:"monitoring"},{value:"cross-team-coordination",label:"Poor coordination between teams and departments",category:"collaboration"}]:I.includes("analyst")||I.includes("data")?[{value:"data-access-bottlenecks",label:"Slow data access hindering analysis workflows",category:"data-access"},{value:"analysis-tool-limitations",label:"Limited tools for advanced data analysis",category:"tooling"},{value:"insight-communication-gaps",label:"Difficulty communicating insights to stakeholders",category:"communication"},{value:"ad-hoc-requests-overload",label:"Overwhelming ad-hoc data requests consuming time",category:"workflow"}]:I.includes("cfo")||I.includes("financial")||I.includes("finance")?[{value:"budget-optimization",label:"Difficulty optimizing operational budgets and spend",category:"financial"},{value:"cost-visibility-gaps",label:"Lack of visibility into true operational costs",category:"cost-management"},{value:"financial-reporting-delays",label:"Delayed financial reporting and analysis",category:"reporting"},{value:"investment-roi-tracking",label:"Challenges tracking ROI of technology investments",category:"roi-measurement"}]:[]};x.useEffect(()=>{n&&c?Re():w(U())},[n,l,t,c,a,g,b,j]);const Re=async()=>{N(!0),S(null);try{const{data:y,error:P}=await z.functions.invoke("get-competitor-pain-points",{body:{industry:n,subIndustry:l,geography:t,companySize:c,role:a,assessmentType:g,companyName:b,selectedChallenges:j}});if(P)throw P;y.success&&y.painPoints?w(y.painPoints):w(U())}catch(y){console.error("Error fetching pain points:",y),w(U())}finally{N(!1)}},K=y=>{const P=r.includes(y)?r.filter(I=>I!==y):r.length<3?[...r,y]:r;p(P)},re=()=>{if(k.trim()&&r.length<3&&!r.includes(k.trim())){const y=[...r,k.trim()];p(y),O("")}},oe=y=>{y.key==="Enter"&&re()};return h?e.jsxs("div",{className:"flex items-center justify-center p-8",children:[e.jsx(Z,{className:"h-6 w-6 animate-spin"}),e.jsx("span",{className:"ml-2",children:"Loading industry-specific pain points..."})]}):e.jsx("div",{className:"space-y-6",children:e.jsxs("div",{children:[e.jsx("div",{className:"grid grid-cols-1 gap-3",children:u.map(y=>e.jsxs("div",{className:"flex items-start space-x-3",children:[e.jsx(fa,{id:y.value,checked:r.includes(y.value),onCheckedChange:()=>K(y.value),disabled:!r.includes(y.value)&&r.length>=3}),e.jsx(M,{htmlFor:y.value,className:`text-sm leading-5 cursor-pointer ${!r.includes(y.value)&&r.length>=3?"text-muted-foreground":""}`,children:y.label})]},y.value))}),e.jsxs("div",{className:"mt-4 p-4 border border-border rounded-lg bg-card",children:[e.jsx(M,{htmlFor:"custom-pain-point",className:"text-sm font-medium mb-2 block",children:"Add your own specific pain point:"}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(H,{id:"custom-pain-point",type:"text",placeholder:"Describe your specific operational challenge...",value:k,onChange:y=>O(y.target.value),onKeyPress:oe,disabled:r.length>=3,className:"flex-1"}),e.jsx("button",{onClick:re,disabled:!k.trim()||r.length>=3,className:"px-4 py-2 bg-primary text-primary-foreground rounded-md disabled:bg-muted disabled:text-muted-foreground text-sm font-medium hover:bg-primary/90 transition-colors",children:"Add"})]})]}
21),r.some(y=>!u.find(P=>P.value===y))&&e.jsxs("div",{className:"mt-3",children:[e.jsx(M,{className:"text-sm font-medium mb-2 block",children:"Selected custom pain points:"}),e.jsx("div",{className:"space-y-2",children:r.filter(y=>!u.find(P=>P.value===y)).map(y=>e.jsxs("div",{className:"flex items-center justify-between p-2 bg-muted rounded-md",children:[e.jsx("span",{className:"text-sm",children:y}),e.jsx("button",{onClick:()=>K(y),className:"text-xs text-destructive hover:text-destructive/80 font-medium",children:"Remove"})]},y))})]}),r.length>=3&&e.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:"Maximum of 3 pain points selected."})]})})}const As=n=>/\$(\d{5,})([KM])/gi.test(n)?n.replace(/\$(\d{5,})M/gi,(t,c)=>{const a=parseInt(c);return a>=1e6?`$${(a/1e6).toFixed(1)}M`:`$${(a/1e3).toFixed(0)}K`}).replace(/\$(\d{5,})K/gi,(t,c)=>`$${(parseInt(c)/1e3).toFixed(0)}K`):n,ks=n=>{console.log("[formatInvestmentRange] Input:",n);try{const l=As(n);l!==n&&console.warn("[formatInvestmentRange] Corrected malformed input:",{original:n,corrected:l});const t=l.replace(/[^\d\-k,mK,M\$\s]/gi,"").trim();if(!t||t.length===0)return n;const c=p=>{const g=p.replace(/[^\d.kKmM]/g,""),b=parseFloat(g.replace(/[kKmM]/g,""));return p.toLowerCase().includes("k")?b*1e3:p.toLowerCase().includes("m")?b*1e6:b},a=t.split(/[-ââ]/);if(a.length===2){const p=c(a[0].trim()),g=c(a[1].trim());if(!isNaN(p)&&!isNaN(g))return g>5e7?(console.warn(`[formatInvestmentRange] Investment range too high (${g}), capping at 50000000`),`${G(Math.min(p,5e7))} - ${G(5e7)}`):p<1e4?(console.warn(`[formatInvestmentRange] Investment range too low (${p}), setting minimum to 10000`),`${G(1e4)} - ${G(Math.max(g,1e4*2))}`):`${G(p)} - ${G(g)}`}const r=c(t);return isNaN(r)?n:G(r)}catch(l){return console.warn("Failed to format investment range:",l),n}},G=n=>n>=1e6?`$${(n/1e6).toFixed(n%1e6===0?0:1)}M`:n>=1e3?`$${(n/1e3).toFixed((n%1e3===0,0))}K`:new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:0}).format(n),Is=n=>{if(!n)return n;const l=[/(\d+[-â]\d+\s*(?:months?|weeks?|quarters?|years?))/i,/(\d+\s*(?:months?|weeks?|quarters?|years?))/i,/(immediate(?:ly)?)/i,/(asap|now)/i,/(within\s+\d+[-â]?\d*\s*(?:months?|weeks?|quarters?|years?))/i];for(const t of l){const c=n.match(t);if(c)return c[1].trim()}return n},Cs=n=>({"ai-ml":{title:"Your AI & Machine Learning Readiness",subtitle:"Comprehensive analysis of your AI/ML capabilities and transformation potential",scoreLabel:"AI & ML Readiness Score"},"data-solutions":{title:"Your Data Architecture & Analytics Readiness",subtitle:"In-depth evaluation of your data infrastructure, governance, and analytics capabilities",scoreLabel:"Data Maturity Score"},"process-automation":{title:"Your Process Automation & RPA Readiness",subtitle:"Comprehensive assessment of your automation potential and process optimization opportunities",scoreLabel:"Automation Readiness Score"},"genai-rag":{title:"Your Generative AI & RAG Systems Readiness",subtitle:"Detailed evaluation of your GenAI, LLM, and Retrieval-Augmented Generation capabilities",scoreLabel:"GenAI Readiness Score"},"business-intelligence":{title:"Your Business Intelligence & Analytics Readiness",subtitle:"Comprehensive assessment of your BI capabilities and strategic analytics requirements",scoreLabel:"BI & Analytics Maturity Score"},kpixpert:{title:"Your KPIXpert Readiness",subtitle:"Comprehensive assessment of your KPI management capabilities and optimization potential",scoreLabel:"KPI Management Maturity Score"}})[n]||{title:"Your AI Readiness",subtitle:"Personalized insights and strategic recommendations for your AI transformation journey",scoreLabel:"AI Readiness Score"},Rs=n=>{const l=n.email.split("@")[1]?.toLowerCase()||"",t=n.company.toLowerCase();let c="";t.includes("health")||t.includes("medical")||t.includes("hospital")?c="healthcare":t.includes("bank")||t.includes("financial")||t.includes("insurance")?c="financial":t.includes("retail")||t.includes("shop")||t.includes("store")?c="retail":t.includes("tech")||t.includes("software")||t.includes("digital")?c="technology":t.includes("energy")||t.includes("power")||t.includes("oil")?c="energy":t.includes("transport")||t.includes("logistic")||t.includes("shipping")?c="transportation":t.includes("education")||t.includes("university")||t.includes("school")?c="education":(l.includes(".gov")||t.includes("government"))&&(c="government");let a="";const r=n.email.split("@")[0]?.toLowerCase()||"";n.name.toLowerCase().split(" "),r.includes("ceo")||r.includes("president")||r.includes("founder")?a="CEO/Founder":r.includes("cto")||r.includes("tech")?a="CTO/Technical Leader":r.includes("cfo")||r.includes("finance")?a="CFO/Financial Leader":r.includes("vp")||r.includes("director")?a="VP/Director":r.includes("manager")||r.includes("lead")?a="Manager/Lead":(r.includes("analyst")||r.includes("data"))&&(a="Analyst");let p="";return t.includes("startup")||t.includes("llc")?p="startup":l.includes(".com")&&!t.includes("corp")&&!t.includes("inc")?p="small":t.includes("corp")||t.includes("corporation")?p="large":(t.includes("enterprises")||t.includes("group")||t.includes("international"))&&(p="enterprise"),{...n,role:a,industry:c,companySize:p}},Es=[{id:"artificial-intelligence",name:"Artificial Intelligence & Machine Learning",description:"Comprehensive AI/ML solutions for enterprise transformation",icon:ke,pageUrl:"/artificial-intelligence",useCases:["Predictive analytics and forecasting","Intelligent decision support systems","Automated pattern recognition","Risk asse
21ssment and fraud detection","Customer behavior analysis","Supply chain optimization"],capabilities:["Machine Learning model development","Deep Learning implementation","AI strategy and consulting","Model deployment and monitoring","Data science and engineering","AI governance frameworks"],benefits:["40-60% improvement in decision accuracy","30-50% reduction in operational costs","2-3x faster time-to-insights","Enhanced competitive advantage","Scalable AI infrastructure","Future-ready technology stack"]},{id:"data-solutions",name:"Data Architecture & Analytics",description:"Transform your data into strategic business assets",icon:Ze,pageUrl:"/datasolutions",useCases:["Real-time data processing and analytics","Data warehouse modernization","Business intelligence dashboards","Data governance and quality management","Cloud data migration","Self-service analytics platforms"],capabilities:["Modern data architecture design","ETL/ELT pipeline development","Data visualization and BI","Cloud data platform implementation","Data security and compliance","Advanced analytics and reporting"],benefits:["70% faster data processing","85% improvement in data quality","50% reduction in reporting time","360-degree business visibility","Democratized data access","Compliance-ready infrastructure"]},{id:"genai",name:"Generative AI & Large Language Models",description:"Harness the power of generative AI for content and automation",icon:aa,pageUrl:"/genai",useCases:["Automated content generation","Intelligent document processing","Code generation and review","Customer service automation","Research and knowledge synthesis","Creative design assistance"],capabilities:["Custom LLM fine-tuning","Prompt engineering and optimization","RAG system implementation","Multi-modal AI integration","AI safety and alignment","Enterprise LLM deployment"],benefits:["80% reduction in content creation time","90% improvement in document processing","5x faster code development","24/7 intelligent customer support","Enhanced creativity and innovation","Scalable knowledge management"]},{id:"computer-vision",name:"Computer Vision & Image Recognition",description:"Advanced visual AI for automation and insights",icon:is,pageUrl:"/computer-vision",useCases:["Quality control and inspection","Security and surveillance systems","Medical image analysis","Autonomous vehicle systems","Retail analytics and monitoring","Manufacturing defect detection"],capabilities:["Object detection and classification","Facial recognition systems","OCR and document digitization","Video analytics and processing","Real-time image processing","Edge AI deployment"],benefits:["95% accuracy in defect detection","60% reduction in inspection time","24/7 automated monitoring","Enhanced safety and security","Improved product quality","Reduced operational costs"]},{id:"nlp",name:"Natural Language Processing",description:"Intelligent text analysis and language understanding",icon:Ge,pageUrl:"/natural-language-processing",useCases:["Sentiment analysis and monitoring","Automated text classification","Language translation services","Voice-to-text conversion","Document summarization","Chatbot and virtual assistants"],capabilities:["Named entity recognition","Text mining and extraction","Language model training","Speech recognition systems","Multilingual processing","Semantic search implementation"],benefits:["75% faster document processing","90% accuracy in text analysis","Real-time language understanding","Automated content moderation","Enhanced customer interactions","Multilingual business operations"]},{id:"process-automation",name:"Process Automation & RPA",description:"Intelligent automation for operational excellence",icon:ea,pageUrl:"/process-automation",useCases:["Invoice processing automation","Customer onboarding workflows","Data entry and validation","Report generation automation","Compliance monitoring","Supply chain automation"],capabilities:["Robotic Process Automation (RPA)","Intelligent Process Automation (IPA)","Workflow optimization","Exception handling systems","Process mining and analysis","API integration and orchestration"],benefits:["80% reduction in manual tasks","99.5% accuracy in processing","24/7 continuous operations","70% faster processing times","Improved compliance adherence","Significant cost savings"]},{id:"predictive-maintenance",name:"Predictive Maintenance",description:"AI-powered maintenance optimization for industrial assets",
21icon:Xe,pageUrl:"/predictive-maintenance",useCases:["Equipment failure prediction","Maintenance scheduling optimization","Asset performance monitoring","Spare parts inventory management","Energy consumption optimization","Production line efficiency"],capabilities:["IoT sensor data analysis","Machine learning anomaly detection","Predictive modeling","Real-time monitoring dashboards","Maintenance workflow automation","Asset lifecycle management"],benefits:["50% reduction in unplanned downtime","30% decrease in maintenance costs","25% increase in asset lifespan","Improved safety and reliability","Optimized maintenance schedules","Enhanced operational efficiency"]},{id:"recommendation-engines",name:"Recommendation Systems",description:"Personalized recommendations for enhanced user experience",icon:te,pageUrl:"/recommendation-engines",useCases:["Product recommendation systems","Content personalization","Customer segmentation","Cross-selling and upselling","Dynamic pricing optimization","Personalized marketing campaigns"],capabilities:["Collaborative filtering algorithms","Content-based recommendations","Hybrid recommendation models","Real-time personalization","A/B testing frameworks","Recommendation performance analytics"],benefits:["40% increase in conversion rates","25% improvement in customer satisfaction","35% boost in average order value","Enhanced user engagement","Improved customer retention","Data-driven personalization"]},{id:"ai-chatbots",name:"AI Chatbots & Conversational AI",description:"Intelligent conversational interfaces for customer engagement",icon:Ge,pageUrl:"/ai-chatbots",useCases:["Customer support automation","Sales qualification and lead generation","Internal help desk systems","Appointment scheduling","FAQ and knowledge base queries","Voice-enabled assistants"],capabilities:["Natural language understanding","Multi-channel deployment","Intent recognition and fulfillment","Context-aware conversations","Integration with business systems","Continuous learning and improvement"],benefits:["80% reduction in response time","24/7 customer service availability","60% decrease in support costs","Improved customer satisfaction","Scalable support operations","Consistent service quality"]},{id:"multimodal-ai",name:"Multimodal AI Solutions",description:"Advanced AI combining text, image, voice, and video processing",icon:ns,pageUrl:"/multimodal-ai",useCases:["Video content analysis","Document understanding with images","Voice and visual search","AR/VR applications","Medical diagnostics","Autonomous systems"],capabilities:["Multi-modal data fusion","Cross-modal learning","Vision-language models","Audio-visual processing","Sensor data integration","Real-time multimodal inference"],benefits:["Comprehensive data understanding","Enhanced accuracy and insights","Rich interactive experiences","Advanced automation capabilities","Improved decision making","Next-generation AI applications"]}],St=()=>{const{toast:n}=Ye(),l=Ba(),[t,c]=x.useState(!1),[a,r]=x.useState(null),[p,g]=x.useState(null),[b,j]=x.useState(0),[u,w]=x.useState({}),[h,N]=x.useState(!1),[i,S]=x.useState(null),[k,O]=x.useState([]);x.useState(!1);const[U,_]=x.useState(!1),[Re,K]=x.useState(!1),[re,oe]=x.useState(!1),[y,P]=x.useState(""),[I,le]=x.useState(!1),[ce,de]=x.useState(null),[me,ue]=x.useState(0),va=s=>{console.log("ð Session data updated:",s),de(s),ue(s.userInteractions?.length||0)},ba=async s=>{try{console.log("ð handleUseCaseGeneration called with",s.length,"use cases"),console.log("ð Use cases received:",s.map(f=>f.name||"Unnamed"));const d={timeline:u["budget-timeline"]||"Not specified",budget:u["budget-allocation"]||"Not specified",company:a?.company||"Not specified",industry:a?.industry||"Not specified",size:a?.companySize||"Not specified",currentTech:"Not specified",priorities:Array.isArray(u["ai-priorities"])?u["ai-priorities"]:[]};console.log("ð¤ User context for prioritization:",d);const{data:m,error:o}=await z.functions.invoke("prioritize-use-cases",{body:{useCases:s,userContext:d}});if(o){console.error("â AI prioritization failed:",o),n({title:"Failed to prioritize use cases",variant:"destructive"});const f=s.slice(0,5).map((A,D)=>({title:A.name||`Use Case ${D+1}`,description:A.implementation||"Implementation details available",priority:A.priority==="Quick Win"?"High":A.priority==="Major Project"?"Medium":"Low",timeline:A.timeline||"Timeline TBD",impact:A.expectedROI||"Impact TBD"}));console.log("ð Using fallback recommendations:",f),O(f);return}console.log("ð¥ Prioritization response:",m);let v;if(m?.success&&m.prioritizedRecommendations)console.log("â
AI prioritization successful:",m.prioritizedRecommendations.length,"recommendations"),v=m.prioritizedRecommendations,O(m.prioritizedRecommendations);else{console.warn("â ï¸ No prioritized recommendations in response, using fallback");const f=s.slice(0,5).map((A,D)=>({title:A.name||`Use Case ${D+1}`,description:A.implementation||"Implementation details available",priority:A.priority==="Quick Win"?"High":A.priority==="Major Project"?"Medium":"Low",timeline:A.timeline||"Timeline TBD",impact:A.expectedROI||"Impact TBD"}));v=f,O(f)}if(S(f=>({...f,prioritizedRecommendations:v})),a)try{const{error:f}=await z.from("assessment_submissions").update({assessment_data:{...i||{},prioritizedRecommendations:v}}).eq("email",a.email).eq("name",a.name).eq("company",a.company).order("created_at",{ascending:!1}).limit(1);f?console.error("Error updating assessment with prioritized recommendations:",f):console.log("â
Assessment updated with prioritized recommendations")}catch(f){console.error("Error updating assessment in database:",f)}n({title:"AI-prioritized recommendations generated!"})}catch(d){console.error("â Error in AI prioritization:",d),n({title:"Failed to generate AI priorities",variant:"destructive"});const m=s.slice(0,5).map((o,v)=>({title:o.name||`Use Case ${v+1}`,description:o.implementation||"Implementation details available",priority:"Medium",timeline:o.timeline||"Timeline TBD",impact:o.expectedROI||"Impact TBD"}));O(m)}},q=p?ws(p):[],Ee=q.length>0?(b+1)/q.length*100:0,T={PROFILE:"ai_assessment_profile",ASSESSMENT_TYPE:"ai_assessment_type",CURRENT_QUESTION:"ai_assessment_current_question",ANSWERS:"ai_assessment_answers",EMAIL_VERIFIED:"ai_assessment_email_verified"},ja=async s=>{try{const{data:d,error:m}=await z.functions.invoke("assessment-profile-manager",{body:{action:"checkRateLimit",email:s.email,name:s.name,company:s.company,ipAddress:null,userAgent:navigator.userAgent}});return m?(console.error("Rate limit check error:",m),!0):!d.success||!d.data.allowed?(oe(!0),P(d.data.message||"Too many attempts"),d.data.redirect_to_contact&&setTimeout(()=>{l("/contact")},3e3),!1):!0}catch(d){return console.error("Rate limit check failed:",d),!0}},Me=async s=>{try{K(!0);const{data:d,error:m}=await z.functions.invoke("assessment-profile-manager",{body:{action:"getProfile",email:s.email,name:s.name,company:s.company}});if(m)return console.error("Profile load error:",m),s;if(d.success&&d.data){const o={name:d.data.name,email:d.data.email,company:d.data.company,role:d.data.role,industry:d.data.industry,subIndustry:d.data.sub_industry,companySize:d.data.company_
21size};return localStorage.setItem(T.PROFILE,JSON.stringify(o)),o}return s}catch(d){return console.error("Failed to load user profile:",d),s}finally{K(!1)}},Na=async s=>{try{await z.functions.invoke("assessment-profile-manager",{body:{action:"saveProfile",email:s.email,name:s.name,company:s.company,role:s.role,industry:s.industry,subIndustry:s.subIndustry,companySize:s.companySize}}),localStorage.setItem(T.PROFILE,JSON.stringify(s))}catch(d){console.error("Failed to save user profile:",d)}},wa=async s=>{try{await z.functions.invoke("assessment-profile-manager",{body:{action:"markCompleted",email:s.email,name:s.name,company:s.company,assessmentType:p}})}catch(d){console.error("Failed to mark assessment as completed:",d)}};x.useEffect(()=>{(()=>{try{const d=localStorage.getItem(T.EMAIL_VERIFIED)==="true",m=localStorage.getItem(T.PROFILE),o=localStorage.getItem(T.ASSESSMENT_TYPE),v=localStorage.getItem(T.CURRENT_QUESTION),f=localStorage.getItem(T.ANSWERS);if(d&&m){const A=JSON.parse(m);c(!0),r(A),Me(A).then(D=>{r(D);const Y={};if(D.role&&(Y.role=D.role),D.industry&&(Y.industry=D.industry),D.companySize&&(Y["company-size"]=D.companySize),f){const Pa=JSON.parse(f);w({...Y,...Pa})}else w(Y)})}o&&g(o),v&&d&&o&&j(parseInt(v,10))}catch(d){console.error("Failed to load session data:",d)}})()},[]),x.useEffect(()=>{t&&a&&(localStorage.setItem(T.EMAIL_VERIFIED,"true"),localStorage.setItem(T.PROFILE,JSON.stringify(a)))},[t,a]),x.useEffect(()=>{p&&localStorage.setItem(T.ASSESSMENT_TYPE,p)},[p]),x.useEffect(()=>{b>0&&localStorage.setItem(T.CURRENT_QUESTION,b.toString())},[b]),x.useEffect(()=>{Object.keys(u).length>0&&localStorage.setItem(T.ANSWERS,JSON.stringify(u))},[u]);const Pe=()=>{Object.values(T).forEach(s=>{localStorage.removeItem(s)})},Sa=async s=>{const d=Rs(s);if(!await ja(d))return;const o=await Me(d);r(o);const v={};o.role&&(v.role=o.role),o.industry&&(v.industry=o.industry),o.companySize&&(v["company-size"]=o.companySize),w(v),c(!0)},Te=async s=>{r(s),await Na(s);const d={...u};s.role&&(d.role=s.role),s.industry&&(d.industry=s.industry),s.companySize&&(d["company-size"]=s.companySize),w(d)},pe=(s,d)=>{w(m=>({...m,[s]:d}))},De=(s,d,m)=>{w(o=>{const v=o[s]||[];return m?v.length<3?{...o,[s]:[...v,d]}:(xe({title:"Selection Limit Reached",description:"You can select up to 3 options maximum.",variant:"destructive"}),o):{...o,[s]:v.filter(f=>f!==d)}})},Aa=async()=>{b<q.length-1?j(s=>s+1):await ka()},ka=async()=>{_(!0);try{const s=z.functions.invoke("ai-assessment-analysis",{body:{assessmentType:p,answers:u,userInfo:{name:a?.name,email:a?.email,company:a?.company,role:a?.role},industry:a?.industry||u.industry||"",industrySegment:a?.subIndustry||"",subSegment:a?.subIndustry||"",geography:a?.geography||u.geography||"",companyName:a?.company||"",companySize:a?.companySize||u["company-size"]||"",mainChallenges:Array.isArray(u["main-challenges"])?u["main-challenges"]:[],selectedSolutions:[p],solutionModules:[],sessionData:ce,matrixInteractionCount:me}}),d=z.functions.invoke("industry-geographic-intelligence",{body:{industry:a?.industry||u.industry||"",subIndustry:a?.subIndustry||"",geography:a?.geography||u.geography||"",companySize:a?.companySize||u["company-size"]||"",role:a?.role||u.role||"",company:a?.company||"",selectedSolutions:[p],assessmentAnswers:u}}),[m,o]=await Promise.all([s,d]);if(m.error){console.error("Error calling AI analysis:",m.error),xe({title:"Analysis Error",description:"Unable to generate AI analysis. Please try again.",variant:"destructive"});return}if(m.data.success){let v=m.data.analysis;if(o.data?.success&&o.data.data){const f=o.data.data;v={...v,industryInsights:f.industryInsights||v.industryInsights,geographyFactors:f.geographyFactors||v.geographyFactors,competitiveAnalysis:f.competitiveAnalysis||v.competitiveAnalysis,marketOpportunity:f.marketOpportunity||v.marketOpportunity,industryBenchmarks:f.industryBenchmarks||v.industryBenchmarks,quickWins:f.actionableRecommendations?.length>0?[...v.quickWins||[],...f.actionableRecommendations.slice(0,2)]:v.quickWins}}else o.error&&console.warn("Enhanced intelligence failed, using basic analysis:",o.error);S(v),N(!0),a&&(await wa(a),Pe())}else throw new Error(m.data.error||"Analysis failed")}catch(s){console.error("AI Analysis error:",s),xe({title:"Analysis Error",description:"Unable to generate personalized analysis. Please try again.",variant:"destructive"})}finally{_(!1)}},Ia=()=>{b>0&&j(s=>s-1)},Ca=()=>{j(0),w({}),N(!1),S(null),_(!1)},Ra=()=>{g(null),j(0),w({}),N(!1),S(null),_(!1)},Ea=s=>{const d=u[s.id];if(s.id==="current-pain-point"||s.id==="main-challenges")return e.jsx(Ss,{industry:a?.industry||u.industry||"",subIndustry:a?.subIndustry||u["sub-industry"],geography:a?.geography||u.geography||"",companySize:a?.companySize||u["company-size"]||"",role:a?.role||"",selectedPainPoints:Array.isArray(u[s.id])?u[s.id]:[],onPainPointsChange:m=>pe(s.id,m),assessmentType:p||void 0,companyName:a?.name||u.company||"",selectedChallenges:s.id==="current-pain-point"?Array.isArray(u["main-challenges"])?u["main-challenges"]:[]:void 0});switch(s.type){case"radio":return e.jsx(ha,{value:d||"",onValueChange:o=>pe(s.id,o),children:s.options?.map(o=>e.jsxs("div",{className:"flex items-center space-x-3 p-4 rounded-xl hover:bg-muted/50 transition-colors",children:[e.jsx(ya,{value:o.value,id:o.value}),e.jsx(M,{htmlFor:o.value,className:"flex-1 cursor-pointer",children:o.label})]},o.value))});case"text":return e.jsx(Wa,{value:d||"",onChange:o=>pe(s.id,o.target.value),placeholder:"Please provide details...",className:"min-h-[100px]"});case"multiselect":const m=d||[];return m.length>=3,e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4 p-3 bg-muted/30 rounded-lg border",children:[e.jsx(rs,{className:"w-4 h-4 text-primary"}),e.jsxs("span",{className:"text-sm font-medium",children:["Select up to 3 options (",m.length,"/3 selected)"]})]}),s.options?.map(o=>{const v=m.includes(o.value),f=!v&&m.length>=3;return e.jsxs("div",{className:`flex items-center space-x-3 p-3 rounded-lg transition-colors ${f?"opacity-50 cursor-not-allowed bg-muted/20":"hover:bg-muted/50 cursor-pointer"}`,onClick:()=>!f&&De(s.id,o.value,!v),children:[e.jsx(fa,{id:o.value,checked:v,disabled:f,onCheckedChange:A=>!f&&De(s.id,o.value,A)}),e.jsx(M,{htmlFor:o.value,className:`flex-1 ${f?"cursor-not-allowed":"cursor-pointer"}`,children:o.label})]},o.value)})]});default:return null}},Ma=()=>{const s=u[q[b].id],d=q[b];return d.id==="current-pain-point"||d.type==="multiselect"?Array.isArray(s)&&s.length>0:s&&s!==""};if(h&&i){const s={answers:u,industry:u.industry,subSegment:u["sub-segment"],geography:u.geography,companySize:u["company-size"],revenue:u.revenue,growthRate:u["growth-rate"],mainCh
21allenges:u["main-challenges"]||[]},d=Cs(p||"ai-ml");return e.jsxs("div",{className:"min-h-screen bg-background overflow-hidden",children:[e.jsx(Q,{}),e.jsxs("div",{className:"fixed inset-0 pointer-events-none",children:[e.jsx("div",{className:"absolute top-20 left-10 w-72 h-72 bg-primary/5 rounded-full blur-3xl animate-pulse"}),e.jsx("div",{className:"absolute top-40 right-20 w-96 h-96 bg-secondary/5 rounded-full blur-3xl animate-pulse",style:{animationDelay:"1s"}}),e.jsx("div",{className:"absolute bottom-20 left-1/3 w-80 h-80 bg-accent/5 rounded-full blur-3xl animate-pulse",style:{animationDelay:"2s"}})]}),e.jsx("section",{className:"relative py-20 px-6",children:e.jsxs("div",{className:"container mx-auto max-w-7xl",children:[e.jsxs("div",{className:"text-center mb-16 animate-fade-in",children:[e.jsxs("div",{className:"inline-flex items-center gap-3 mb-6 p-4 bg-card/60 backdrop-blur-sm rounded-full border border-primary/20 shadow-lg",children:[e.jsx("div",{className:"w-3 h-3 bg-success rounded-full animate-pulse"}),e.jsx(B,{variant:"outline",className:"border-primary/30 bg-primary/5 text-primary font-semibold px-6 py-2 text-base",children:"ð¯ Assessment Complete"}),e.jsx("div",{className:"w-3 h-3 bg-success rounded-full animate-pulse"})]}),e.jsxs("h1",{className:"text-5xl md:text-7xl font-bold gradient-text mb-8 tracking-tight",children:[d.title," ",e.jsx("span",{className:"text-primary",children:"Results"})]}),e.jsx("p",{className:"hero-description text-xl max-w-3xl mx-auto leading-relaxed",children:d.subtitle})]}),e.jsx(C,{className:"glass-card mb-8 text-center border-2 border-primary/20 shadow-2xl hover-scale animate-scale-in",style:{animationDelay:"0.2s"},children:e.jsx(R,{className:"p-6",children:e.jsxs("div",{className:"flex items-center justify-center gap-8",children:[e.jsxs("div",{className:"relative w-32 h-32",children:[e.jsxs("svg",{className:"w-full h-full transform -rotate-90",viewBox:"0 0 100 100",children:[e.jsx("circle",{cx:"50",cy:"50",r:"45",stroke:"currentColor",strokeWidth:"2",fill:"none",className:"text-border"}),e.jsx("circle",{cx:"50",cy:"50",r:"45",stroke:"url(#gradient)",strokeWidth:"4",fill:"none",strokeDasharray:`${i.readinessScore/100*283} 283`,strokeLinecap:"round",className:"transition-all duration-1000 ease-out",style:{animationDelay:"0.5s"}}),e.jsx("defs",{children:e.jsxs("linearGradient",{id:"gradient",x1:"0%",y1:"0%",x2:"100%",children:[e.jsx("stop",{offset:"0%",stopColor:"hsl(var(--primary))"}),e.jsx("stop",{offset:"100%",stopColor:"hsl(var(--secondary))"})]})})]}),e.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:[e.jsxs("div",{className:"text-4xl font-bold gradient-text",children:[(()=>{const o=`${a?.email||"default"}-${i.readinessScore}`.split("").reduce((A,D)=>
21A+D.charCodeAt(0),0),f=new Za(o).nextFloat(-3,7);return Math.round(i.readinessScore+f)})(),"%"]}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"AI Ready"})]})]}),e.jsxs("div",{className:"text-left",children:[e.jsx("h3",{className:"text-2xl font-bold mb-2",children:"AI Readiness Score"}),e.jsxs(B,{variant:i.readinessLevel==="Expert"?"default":"secondary",className:"text-base px-4 py-2 rounded-full shadow-lg",children:[e.jsx(Fe,{className:"w-4 h-4 mr-2"}),i.readinessLevel," Level"]})]})]})})}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-8",children:[e.jsx(C,{className:"glass-card hover-scale group transition-all duration-300 animate-fade-in",style:{animationDelay:"0.3s"},children:e.jsxs(R,{className:"p-4 text-center",children:[e.jsx("div",{className:"w-14 h-14 bg-gradient-primary rounded-xl flex items-center justify-center mx-auto mb-3 group-hover:scale-110 transition-transform duration-300 shadow-lg",children:e.jsx(Se,{className:"w-7 h-7 text-white"})}),e.jsx("h3",{className:"text-lg font-bold mb-2",children:"Time to Market"}),e.jsx("p",{className:"text-xl font-bold gradient-text mb-2",children:Is(i.timeToMarket)})]})}),e.jsx(C,{className:"glass-card hover-scale group transition-all duration-300 animate-fade-in",style:{animationDelay:"0.4s"},children:e.jsxs(R,{className:"p-4 text-center",children:[e.jsx("div",{className:"w-14 h-14 bg-gradient-primary rounded-xl flex items-center justify-center mx-auto mb-3 group-hover:scale-110 transition-transform duration-300 shadow-lg",children:e.jsx(es,{className:"w-7 h-7 text-white"})}),e.jsx("h3",{className:"text-lg font-bold mb-2",children:"Estimated Investment"}),e.jsx("p",{className:"text-xl font-bold gradient-text mb-2",children:ks(i.investmentRange)})]})}),e.jsx(C,{className:"glass-card hover-scale group transition-all duration-300 animate-fade-in",style:{animationDelay:"0.5s"},children:e.jsxs(R,{className:"p-4 text-center",children:[e.jsx("div",{className:"w-14 h-14 bg-gradient-primary rounded-xl flex items-center justify-center mx-auto mb-3 group-hover:scale-110 transition-transform duration-300 shadow-lg",children:e.jsx(te,{className:"w-7 h-7 text-white"})}),e.jsx("h3",{className:"text-lg font-bold mb-2",children:"Success Probability"}),e.jsx("p",{className:"text-xl font-bold gradient-text mb-2",children:i.readinessScore>=60?"High":i.readinessScore>=40?"Medium":"Low"})]})})]}),e.jsxs(C,{className:"glass-card mb-8 border border-primary/20 shadow-xl animate-fade-in",style:{animationDelay:"0.6s"},children:[e.jsxs(L,{className:"pb-4",children:[e.jsxs(F,{className:"flex items-center gap-3 text-xl",children:[e.jsx("div",{className:"w-8 h-8 bg-gradient-primary rounded-lg flex items-center justify-center",children:e.jsx(ie,{className:"w-5 h-5 text-white"})}),"AI Readiness Breakdown"]}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Detailed analysis across key dimensions"})]}),e.jsx(R,{children:e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:Object.entries(i.customMetrics).map(([m,o],v)=>e.jsxs("div",{className:"group hover:bg-card/20 p-4 rounded-lg transition-all duration-300 border border-border/10",children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-5 h-5 bg-primary/10 rounded-md flex items-center justify-center group-hover:bg-primary/20 transition-colors",children:e.jsx("div",{className:"w-2 h-2 bg-primary rounded-full"})}),e.jsx("span",{className:"font-semibold text-sm capitalize",children:m.replace(/([A-Z])/g," $1").toLowerCase()})]}),e.jsx("div",{className:"text-right",children:e.jsxs("span",{className:"font-bold text-lg gradient-text",children:[Math.round(o),"%"]})})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"relative",children:[e.jsx(ze,{value:o,className:"h-2 bg-border/50"}),e.jsx("div",{className:"absolute top-0 left-0 h-2 bg-gradient-primary rounded-full transition-all duration-1000 ease-out",style:{width:`${o}%`,animationDelay:`${v*.1+.7}s`}})]}),e.jsx("div",{className:"text-xs text-muted-foreground text-center",children:o>=80?"Excellent":o>=60?"Good":o>=40?"Fair":"Needs Improvement"})]})]},m))})})]}),e.jsxs(C,{className:"glass-card mb-12 border-l-4 border-l-primary shadow-xl animate-fade-in",style:{animationDelay:"0.7s"},children:[e.jsxs(L,{className:"pb-6",children:[e.jsxs(F,{className:"flex items-center gap-3 text-2xl",children:[e.jsx("div",{className:"w-10 h-10 bg-gradient-to-br from-primary to-primary/70 rounded-xl flex items-center justify-center shadow-lg",children:e.jsx(ke,{className:"w-6 h-6 text-white"})}),"Executive Summary"]}),e.jsx("p",{className:"text-muted-foreground",children:"Strategic overview of your AI readiness and potential"})]}),e.jsxs(R,{children:[e.jsx("div",{className:"bg-gradient-to-r from-primary/5 via-secondary/5 to-accent/5 p-8 rounded-xl border border-primary/10 shadow-inner",children:e.jsx("p",{className:"text-xl leading-relaxed font-medium text-foreground
21/90",children:i.executiveSummary})}),(i.competitiveAnalysis||i.marketOpportunity||i.industryInsights||i.geographyFactors||i.industryBenchmarks||i.strategicAdvantages)&&e.jsxs(C,{className:"glass-card mb-8",children:[e.jsxs(L,{children:[e.jsxs(F,{className:"flex items-center gap-3",children:[e.jsx(ie,{className:"w-6 h-6 text-primary"}),"Market Intelligence & Strategic Analysis"]}),e.jsx("p",{className:"text-muted-foreground",children:"Comprehensive insights across key business dimensions"})]}),e.jsx(R,{children:e.jsxs(Xa,{defaultValue:"competitive",className:"w-full",children:[e.jsxs(Ja,{className:"grid w-full grid-cols-6 h-12 p-1",children:[i.competitiveAnalysis&&e.jsx($,{value:"competitive",className:"text-xs",children:"Competitive Positioning"}),i.marketOpportunity&&e.jsx($,{value:"market",className:"text-xs",children:"Market Opportunity"}),i.industryInsights&&e.jsx($,{value:"analysis",className:"text-xs",children:"Market Analysis"}),i.geographyFactors&&e.jsx($,{value:"regional",className:"text-xs",children:"Regional Analysis"}),i.industryBenchmarks&&e.jsx($,{value:"benchmarks",className:"text-xs",children:"Industry Benchmarks"}),i.strategicAdvantages&&e.jsx($,{value:"advantages",className:"text-xs",children:"Strategic Advantages"})]}),i.competitiveAnalysis&&e.jsx(W,{value:"competitive",className:"mt-6",children:e.jsxs("div",{className:"p-6 bg-card/40 backdrop-blur-sm rounded-xl border border-primary/20",children:[e.jsxs("h4",{className:"font-semibold text-lg mb-4 flex items-center gap-3",children:[e.jsx("div",{className:"w-8 h-8 bg-primary/10 rounded-lg flex items-center justify-center",children:e.jsx(te,{className:"w-4 h-4 text-primary"})}),"Competitive Positioning Analysis"]}),e.jsx("div",{className:"h-[400px] overflow-auto pr-3",children:e.jsx(V,{content:i.competitiveAnalysis,type:"competitive-analysis",className:"text-muted-foreground leading-relaxed"})})]})}),i.marketOpportunity&&e.jsx(W,{value:"market",className:"mt-6",children:e.jsxs("div",{className:"p-6 bg-card/40 backdrop-blur-sm rounded-xl border border-primary/20",children:[e.jsxs("h4",{className:"font-semibold text-lg mb-4 flex items-center gap-3",children:[e.jsx("div",{className:"w-8 h-8 bg-primary/10 rounded-lg flex items-center justify-center",children:e.jsx(ge,{className:"w-4 h-4 text-primary"})}),"Market Opportunity Assessment"]}),e.jsx("div",{className:"h-[400px] overflow-auto pr-3",children:e.jsx(V,{content:i.marketOpportunity,type:"market-opportunity",className:"text-muted-foreground leading-relaxed"})})]})}),i.industryInsights&&e.jsx(W,{value:"analysis",className:"mt-6",children:e.jsxs("div",{className:"p-6 bg-card/40 backdrop-blur-sm rounded-xl border border-primary/20",children:[e.jsxs("h4",{className:"font-semibold text-lg mb-4 flex items-center gap-3",children:[e.jsx("div",{className:"w-8 h-8 bg-primary/10 rounded-lg flex items-center justify-center",children:e.jsx(se,{className:"w-4 h-4 text-primary"})}),"Market Analysis for ",s.industry]}),e.jsx("div",{className:"h-[400px] overflow-auto pr-3",children:e.jsx(V,{content:i.industryInsights,type:"general",className:"text-muted-foreground leading-relaxed"})})]})}),i.geographyFactors&&e.jsx(W,{value:"regional",className:"mt-6",children:e.jsxs("div",{className:"p-6 bg-card/40 backdrop-blur-sm rounded-xl border border-primary/20",children:[e.jsxs("h4",{className:"font-semibold text-lg mb-4 flex items-center gap-3",children:[e.jsx("div",{className:"w-8 h-8 bg-primary/10 rounded-lg flex items-center justify-center",children:e.jsx(qe,{className:"w-4 h-4 text-primary"})}),"Regional Analysis for ",s.geography||"your location"]}),e.jsx("div",{className:"h-[400px] overflow-auto pr-3",children:e.jsx(V,{content:i.geographyFactors,type:"general",className:"text-muted-foreground leading-relaxed"})})]})}),i.industryBenchmarks&&e.jsx(W,{value:"benchmarks",className:"mt-6",children:e.jsxs("div",{className:"p-6 bg-card/40 backdrop-blur-sm rounded-xl border border-primary/20",children:[e.jsxs("h4",{className:"font-semibold text-lg mb-4 flex items-center gap-3",children:[e.jsx("div",{className:"w-8 h-8 bg-primary/10 rounded-lg flex items-center justify-center",children:e.jsx(as,{className:"w-4 h-4 text-primary"})}),"Industry Benchmarks & Standards"]}),e.jsx("div",{className:"h-[400px] overflow-auto pr-3",children:e.jsx(V,{content:i.industryBenchmarks,type:"general",className:"text-muted-foreground leading-relaxed"})})]})}),i.strategicAdvantages&&e.jsx(W,{value:"advantages",className:"mt-6",children:e.jsxs("div",{className:"p-6 bg-card/40 backdrop-blur-sm rounded-xl border border-primary/20",children:[e.jsxs("h4",{className:"font-semibold text-lg mb-4 flex items-center gap-3",children:[e.jsx("div",{className:"w-8 h-8 bg-primary/10 rounded-lg flex items-center justify-center",children:e.jsx(Qe,{className:"w-4 h-4 text-primary"})}),"Strategic Advantages & Differentiators"]}),e.jsx("div",{className:"h-[400px] overflow-auto pr-3",children:e.jsx(V,{content:i.strategicAdvantages,type:"general",className:"text-muted-foreground leading-relaxed"})})]})})]})})]})]})]}),u["solution-modules"]&&u["solution-modules"].length>0&&e.jsxs(C,{className:"glass-card mb-8",children:[e.jsxs(L,{children:[e.jsxs(F,{className:"flex items-center gap-3",children:[e.jsx(Be,{className:"w-6 h-6 text-primary"}),"Recommended Solutions for Your Business"]}),e.jsx("p",{className:"text-muted-foreground",children:"Based on your selected solution areas, here are tailored recommendations and use cases"})]}),e.jsx(R,{children:e.jsx("div",{className:"space-y-8",children:u["solution-modules"].map(m=>{const o=Es.find(f=>f.id===m);if(!o)return null;const v=o.icon;return e.jsxs("div",{className:"border border-border rounded-lg p-6 hover:shadow-lg transition-shadow",children:[e.jsxs("div",{className:"flex items-start gap-4 mb-4",children:[e.jsx("div",{className:"w-12 h-12 bg-gradient-primary rounded-xl flex items-center justify-center flex-shrink-0",children:e.jsx(v,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"text-xl font-bold gradient-text mb-2",children:o.name}),e.jsx("p",{className:"text-muted-foreground mb-4",children:o.description})]})]}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[e.jsxs("div",{children:[e.jsxs("h4",{className:"font-semibold mb-3 flex items-center gap-2",children:[e.jsx(te,{className:"w-4 h-4 text-primary"}),"Top Use Cases for Your Industry"]}),e.jsx("ul",{className:"space-y-2",children:o.useCases.slice(0,4).map((f,A)=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(ee,{className:"w-3 h-3 text-green-500 mt-1 flex-shrink-0"}),e.jsx("span",{className:"text-sm text-muted-foreground",children:f})]},A))})]}),e.jsxs("div",{children:[e.jsxs("h4",{className:"font-semibold mb-3 flex items-center gap-2",children:[e.jsx(Xe,{className:"w-4 h-4 text-primary"}),"Key Capabilities"]}),e.jsx("ul",{className:"space-y-2",children:o.capabilities.slice(0,4).map((f,A)=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(ss,{className:"w-3 h-3 text-blue-500 mt-1 flex-shrink-0"}),e.jsx("span",{className:"text-sm text-muted-foreground",children:f})]},A))})]}),e.jsxs("div",{children:[e.jsxs("h4",{className:"font-semibold mb-3 flex items-center gap-2",children:[e.jsx(ge,{className:"w-4 h-4 text-primary"}),"Expected Benefits"]}
21),e.jsx("ul",{className:"space-y-2",children:o.benefits.slice(0,4).map((f,A)=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(Fe,{className:"w-3 h-3 text-yellow-500 mt-1 flex-shrink-0"}),e.jsx("span",{className:"text-sm text-muted-foreground",children:f})]},A))})]})]}),e.jsx("div",{className:"mt-6 pt-4 border-t border-border",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(B,{variant:"outline",className:"text-primary border-primary/30",children:[Math.round(Math.random()*20+75),"% Fit Score"]}),e.jsxs("span",{className:"text-sm text-muted-foreground",children:["Based on your ",s.industry," profile"]})]}),e.jsxs(E,{variant:"outline",size:"sm",onClick:()=>window.open(o.pageUrl,"_blank"),className:"group",children:["Learn More",e.jsx(ae,{className:"ml-2 h-3 w-3 group-hover:translate-x-1 transition-transform"})]})]})})]},m)})})})]}),e.jsxs(C,{className:"glass-card mb-12 border border-accent/20 shadow-xl animate-fade-in",style:{animationDelay:"0.9s"},children:[e.jsxs(L,{className:"pb-6",children:[e.jsxs(F,{className:"flex items-center gap-3 text-2xl",children:[e.jsx("div",{className:"w-10 h-10 bg-gradient-to-br from-accent to-accent/70 rounded-xl flex items-center justify-center shadow-lg",children:e.jsx(Be,{className:"w-6 h-6 text-white"})}),"AI-Prioritized Use Cases"]}),e.jsx("p",{className:"text-muted-foreground",children:"Top use cases selected by AI based on your timeline and budget constraints"})]}),e.jsxs(R,{children:[(console.log("ð DEBUG: aiPrioritizedUseCases array:",k),console.log("ð DEBUG: aiPrioritizedUseCases length:",k?.length),null),k&&k.length>0?e.jsx("div",{className:"space-y-6",children:k.map((m,o)=>(console.log("ð DEBUG: Processing recommendation:",m),console.log("ð DEBUG: rec.impact value:",m.impact),e.jsxs("div",{className:"group relative overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-primary/5 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300 rounded-xl"}),e.jsxs("div",{className:"relative bg-card/40 backdrop-blur-sm border border-border/30 rounded-xl p-6 hover:border-primary/30 transition-all duration-300 shadow-sm hover:shadow-lg",children:[e.jsx("div",{className:"flex flex-col sm:flex-row sm:items-start sm:justify-between mb-4 gap-3",children:e.jsxs("div",{className:"flex items-start gap-4 flex-1",children:[e.jsx("div",{className:"w-8 h-8 bg-primary/10 rounded-lg flex items-center justify-center mt-1 group-hover:bg-primary/20 transition-colors flex-shrink-0",children:e.jsx("span",{className:"text-sm font-bold text-primary",children:o+1})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-2 mb-2",children:[e.jsx("h4",{className:"font-bold text-xl text-foreground group-hover:text-primary transition-colors",children:m.title}),e.jsxs(B,{variant:m.priority==="High"?"destructive":m.priority==="Medium"?"default":"secondary",className:"text-sm px-3 py-1 shadow-sm self-start sm:self-center flex-shrink-0",children:[m.priority," Priority"]})]}),e.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:m.description})]})]})}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-7 h-7 bg-info/20 rounded-lg flex items-center justify-center",children:e.jsx(Se,{className:"w-4 h-4 text-info"})}),e.jsxs("div",{children:[e.jsx("span",{className:"font-semibold text-sm text-foreground",children:"Timeline: "}),e.jsx("span",{className:"text-muted-foreground",children:m.timeline||"To be determined"})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-7 h-7 bg-success/20 rounded-lg flex items-center justify-center",children:e.jsx(ge,{className:"w-4 h-4 text-success"})}),e.jsxs("div",{children:[e.jsx("span",{className:"font-semibold text-sm text-foreground",children:"Expected Impact: "}),e.jsx("span",{className:"text-muted-foreground",children:m.impact||"Impact analysis pending"})]})]})]})]})]},o)))}):e.jsxs("div",{className:"text-center py-12",children:[e.jsx("div",{className:"w-16 h-16 bg-muted/20 rounded-xl flex items-center justify-center mx-auto mb-4",children:e.jsx(Z,{className:"w-8 h-8 text-muted-foreground animate-spin"})}),e.jsx("h3",{className:"text-lg font-semibold mb-2",children:"Generating AI-Prioritized Use Cases"}),e.jsx("p",{className:"text-muted-foreground",children:"Please wait while we analyze your assessment and generate personalized recommendations..."})]})]})]}),e.jsx("div",{className:"mb-16",children:e.jsx(Ka,{recommendations:i.solutionSpecificRecommendations,prioritizedRecommendations:i.prioritizedRecommendations,companyContext:{industry:a?.industry,size:a?.companySize,currentTech:"Not specified"},assessmentType:p,userRole:a?.role,assessmentData:{responses:s.answers,questions:q?.map(m=>({question:m.question,answer:s.answers?.[m.id]||"Not answered"}))||[]},generatedAnalysis:{industryInsights:i.industryInsights,geographyFactors:i.geographyFactors,industryBenchmarks:i.industryBenchmarks,strategicAdvantages:i.strategicAdvantages,competitiveAnalysis:i.competitiveAnalysis,marketOpportunity:i.marketOpportunity},onSessionDataUpdate:va,onUseCasesGenerated:ba})}),e.jsxs(C,{className:"glass-card mb-8 mt-12 border-2 border-primary/30 shadow-2xl bg-gradient-to-br from-card/90 to-card/70 backdrop-blur-sm animate-fade-in",style:{animationDelay:"1.2s"},children:[e.jsxs(L,{className:"pb-8 bg-gradient-to-r from-primary/5 to-secondary/5 border-b border-border/50",children:[e.jsxs(F,{className:"flex items-center gap-4 text-3xl",children:[e.jsx("div",{className:"w-12 h-12 bg-gradient-primary rounded-xl flex items-center justify-center shadow-xl",children:e.jsx(qe,{className:"w-7 h-7 text-white"})}),"Why Finarb is Your Ideal AI Partner"]}),e.jsx("p",{className:"text-muted-foreground text-lg leading-relaxed",children:"Proven track record delivering the exact AI solutions recommended for your industry and challenges"})]}),e.jsxs(R,{className:"space-y-8 p-8",children:[e.jsxs("div",{className:"text-center p-8 bg-gradient-to-r from-card/80 to-card/60 backdrop-blur-sm rounded-xl border border-primary/30 shadow-lg",children:[e.jsxs("div",{className:"text-5xl font-bold text-primary mb-3",children:[Math.round((i.customMetrics.dataReadiness+i.customMetrics.teamCapability+i.customMetrics.infrastru
21ctureMaturity)/3+15),"%"]}),e.jsx("p",{className:"text-xl font-bold text-foreground mb-2",children:"Partnership Fit Score"}),e.jsx("div",{className:"mt-4 flex justify-center",children:e.jsx(B,{className:"bg-success/20 text-success border-success/30 px-4 py-2 text-sm font-bold",children:"Excellent Match"})})]}),e.jsx(Ya,{suggestedCategories:i?.selectedSolutions?Qa(i.selectedSolutions.map(m=>({title:m}))):[],userIndustry:a?.industry||s.industry,limit:6,showAll:!1,userProfile:a?{name:a.name,email:a.email,company:a.company,role:a.role,industry:a.industry,companySize:a.companySize}:void 0,assessmentData:{selectedSolutions:i?.selectedSolutions||[],challenges:s.mainChallenges?.join(", "),readinessScore:i?.readinessScore}}),e.jsxs("div",{className:"bg-gradient-to-r from-primary/10 to-secondary/10 border border-primary/20 p-6 rounded-lg",children:[e.jsxs("h4",{className:"font-semibold text-lg mb-4 flex items-center gap-2 text-foreground",children:[e.jsx(ts,{className:"w-5 h-5 text-primary"}),"Specialized Expertise in Your Industry"]}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-4",children:[e.jsxs("div",{className:"text-center p-4 bg-card/40 rounded-lg",children:[e.jsx("div",{className:"text-2xl font-bold text-primary mb-1",children:"25%"}),e.jsx("div",{className:"text-sm text-muted-foreground",children:"Average efficiency improvement"}),e.jsxs("div",{className:"text-xs text-muted-foreground mt-1",children:["in ",s.industry," projects"]})]}),e.jsxs("div",{className:"text-center p-4 bg-card/40 rounded-lg",children:[e.jsx("div",{className:"text-2xl font-bold text-success mb-1",children:"$850K"}),e.jsx("div",{className:"text-sm text-muted-foreground",children:"Average annual cost savings"}),e.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:"per implementation"})]}),e.jsxs("div",{className:"text-center p-4 bg-card/40 rounded-lg",children:[e.jsx("div",{className:"text-2xl font-bold text-info mb-1",children:"12mo"}),e.jsx("div",{className:"text-sm text-muted-foreground",children:"Average payback period"}),e.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:"for AI investments"})]})]})]}),e.jsxs("div",{className:"bg-gradient-to-r from-secondary/10 to-primary/10 border border-secondary/20 p-6 rounded-lg",children:[e.jsxs("h4",{className:"font-semibold text-lg mb-3 flex items-center gap-2 text-foreground",children:[e.jsx(ee,{className:"w-5 h-5 text-secondary"}),"Your Personalized AI Transformation Path"]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-6 h-6 bg-primary/20 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",children:e.jsx("span",{className:"text-xs font-bold text-primary",children:"1"})}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold text-sm mb-1",children:"Quick Wins Implementation (Months 1-3)"}),e.jsx("div",{className:"text-sm text-muted-foreground",children:"Deploy 2-3 high-impact, low-effort solutions from your assessment results"})]})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-6 h-6 bg-primary/20 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",children:e.jsx("span",{className:"text-xs font-bold text-primary",children:"2"})}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold text-sm mb-1",children:"Major Project Launch (Months 4-12)"}),e.jsx("div",{className:"text-sm text-muted-foreground",children:"Execute 1-2 transformational AI projects with proven ROI"})]})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-6 h-6 bg-primary/20 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",children:e.jsx("span",{className:"text-xs font-bold text-primary",children:"3"})}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold text-sm mb-1",children:"Strategic Innovation (Year 2+)"}),e.jsx("div",{className:"text-sm text-muted-foreground",children:"Build competitive advantage with cutting-edge AI capabilities"})]})]})]})]})]})]}),e.jsx(C,{className:"glass-card mb-8 border border-muted/30 bg-muted/10",children:e.jsx(R,{className:"p-6",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-5 h-5 bg-muted/30 rounded-full flex items-center justify-center mt-1 flex-shrink-0",children:e.jsx("div",{className:"w-2 h-2 bg-muted-foreground rounded-full"})}),e.jsx("div",{children:e.jsxs("p",{className:"text-sm text-muted-foreground leading-relaxed",children:[e.jsx("strong",{className:"text-foreground",children:"Disclaimer:"})," All recommendations and insights provided in this assessment are based on your profile information and survey responses. These suggestions may vary slightly following a personalized consultation call or detailed discovery session with our team."]})})]})})}),e.jsxs("div",{className:"text-center space-y-6",children:[e.jsx("h3",{className:"text-2xl font-bold gradient-text",children:"Ready to Start Your AI Journey?"}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsx(E,{size:"lg",className:"bg-gradient-primary",asChild:!0,children:e.jsxs(Oa,{to:"/contact",onClick:()=>setTimeout(()=>window.scrollTo({top:0,behavior:"smooth"}),100),children:["Schedule Free Consultation",e.jsx(ae,{className:"ml-2 h-5 w-5"})]})}),e.jsx(E,{variant:"outline",size:"lg",onClick:Ca,children:"Retake This Assessment"}),e.jsx(E,{variant:"secondary",size:"lg",onClick:Ra,children:"Take Another Assessment"})]})]})]})}),e.jsx(X,{})]})}return t?t&&!p&&a?e.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-background via-background to-muted",children:[e.jsx(Q,{}),e.jsx("div",{className:"pt-24 pb-12 px-6 lg:px-8",children:e.jsxs("div",{className:"max-w-7xl mx-auto",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsxs("h1",{className:"text-4xl lg:text-5xl font-bold mb-6",children:["AI Readiness ",e.jsx("span",{className:"gradient-text",children:"Assessment"})]}),e.jsx("p",{className:"text-lg text-muted-foreground max-w-3xl mx-auto",children:"Let's customize your assessment based on your profile"})]}
21),e.jsx($e,{profile:a,onUpdate:Te}),e.jsx(Ue,{onSelect:g})]})}),e.jsx(X,{})]}):p?e.jsxs("div",{className:"min-h-screen bg-gradient-subtle",children:[e.jsx(Q,{}),e.jsx("section",{className:"py-20 px-6",children:e.jsxs("div",{className:"container mx-auto max-w-7xl",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsxs(E,{variant:"ghost",onClick:()=>{g(null),j(0),w({}),Pe()},className:"flex items-center gap-2",children:[e.jsx(Oe,{className:"w-4 h-4"}),"Back to Assessment Selection"]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(B,{variant:"secondary",className:"text-sm",children:[a?.company," ⢠",a?.email]}),e.jsxs(E,{variant:"outline",size:"sm",onClick:()=>le(!I),className:"flex items-center gap-2",children:[e.jsx(sa,{className:"w-4 h-4"}),"Edit Profile"]})]})]}),e.jsxs(B,{variant:"outline",className:"mb-4 px-6 py-2 text-base border-primary/30",children:["ð§ ",p?.toUpperCase()," Assessment"]}),e.jsx("h1",{className:"text-4xl md:text-5xl font-bold gradient-text mb-6",children:"Discover Your Potential"}),e.jsx("p",{className:"hero-description mb-8",children:"Take our comprehensive assessment to understand your organization's readiness, timeline, and investment requirements."}),q.length>0&&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 ",b+1," of ",q.length]}),e.jsxs("span",{children:[Math.round(Ee),"% Complete"]})]}),e.jsx(ze,{value:Ee,className:"h-3"})]})]}),I&&a&&e.jsxs(C,{className:"glass-card mb-8",children:[e.jsx(L,{children:e.jsxs(F,{className:"flex items-center gap-3",children:[e.jsx(Ne,{className:"w-5 h-5 text-primary"}),"Edit Profile Information"]})}),e.jsx(R,{children:e.jsx($e,{profile:a,onUpdate:s=>{Te(s),le(!1)}})})]}),e.jsxs(C,{className:"glass-card mb-8",children:[e.jsx(L,{children:e.jsx(F,{className:"text-xl",children:q[b].question})}),e.jsx(R,{children:Ea(q[b])})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsxs(E,{variant:"outline",onClick:Ia,disabled:b===0,children:[e.jsx(Oe,{className:"mr-2 h-4 w-4"}),"Previous"]}),e.jsx(E,{onClick:Aa,disabled:!Ma()||U,className:"bg-gradient-primary",children:U?e.jsxs(e.Fragment,{children:[e.jsx(Z,{className:"mr-2 h-4 w-4 animate-spin"}),"Generating Analysis..."]}):e.jsxs(e.Fragment,{children:[b===q.length-1?"Generate AI Analysis":"Next",e.jsx(ae,{className:"ml-2 h-4 w-4"})]})})]})]})}),e.jsx(X,{})]}):e.jsxs("div",{className:"min-h-screen bg-gradient-subtle",children:[e.jsx(Q,{}),e.jsx("section",{className:"py-20 px-6",children:e.jsxs("div",{className:"max-w-7xl mx-auto",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsxs("h1",{className:"text-4xl lg:text-5xl font-bold mb-6",children:["Welcome, ",e.jsx("span",{className:"gradient-text",children:a?.name})]}),e.jsx("p",{className:"text-lg text-muted-foreground mb-4",children:"Choose your assessment type to get started with personalized AI readiness insights"}),e.jsxs(B,{variant:"secondary",className:"text-sm",children:[a?.company," ⢠",a?.email]})]}),e.jsx(Ue,{onSelect:g})]})}),e.jsx(X,{})]}):e.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-background via-background to-muted",children:[e.jsx(Q,{}),e.jsx("div",{className:"pt-24 pb-12 px-6 lg:px-8",children:e.jsxs("div",{className:"max-w-7xl mx-auto",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsxs("h1",{className:"text-4xl lg:text-5xl font-bold mb-6",children:["AI Readiness ",e.jsx("span",{className:"gradient-text",children:"Assessment"})]}),e.jsx("p",{className:"text-lg text-muted-foreground max-w-3xl mx-auto",children:"Get a comprehensive analysis of your organization's AI readiness with personalized recommendations"})]}),e.jsx(vs,{onVerificationSuccess:Sa})]})}),e.jsx(X,{})]})};export{St 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.