PageSourceSearch

https://kaza.ai/assets/Diagnostic-voFlZcdH.js

js kaza.ai collected 2026-10-05 14:08:17 UTC 40,376 bytes, 23 lines download raw bytes

1import{r as p,j as e}from"./vendor-react-BX9YElWi.js";import{u as S,I as _,B as P,b as re,c as V,d as ne,N as ie,F as le}from"./index-BOpgxDdn.js";import{L as F}from"./label-BoznDtLC.js";import{m as A,A as I}from"./vendor-motion-CEdvmc1c.js";import{m as de,j as ce,p as ue,F as me,q as T,a as Q,c as H,D as pe,C as xe,f as he,R as fe,n as ve,g as ge,r as be,s as je,t as ye,u as Ne,v as we,A as Ce}from"./vendor-icons-Bt1gZ05r.js";function ke({onComplete:s,onClose:n}){const{t:o}=S(),[d,i]=p.useState(""),[c,t]=p.useState(""),[l,u]=p.useState({}),x=()=>{const m={};return d.trim()||(m.name=o("Ce champ est requis","This field is required")),c.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(c)||(m.email=o("Email invalide","Invalid email")):m.email=o("Ce champ est requis","This field is required"),u(m),Object.keys(m).length===0},g=m=>{m.preventDefault(),x()&&s({name:d.trim(),email:c.trim()})};return e.jsxs(A.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},className:"text-center",children:[e.jsxs("div",{className:"mb-8",children:[e.jsx("div",{className:"w-12 h-12 rounded-2xl border border-border flex items-center justify-center mx-auto mb-4",children:e.jsx(de,{className:"w-6 h-6 text-foreground"})}),e.jsx("h3",{className:"text-xl font-semibold text-foreground mb-2",children:o("Avant de commencer","Before you begin")}),e.jsx("p",{className:"text-sm text-muted-foreground max-w-sm mx-auto leading-relaxed",children:o("Entrez votre nom et courriel pour recevoir votre rapport personnalisé à la fin du diagnostic.","Enter your name and email to receive your personalized report at the end of the assessment.")})]}),e.jsxs("form",{onSubmit:g,className:"max-w-sm mx-auto space-y-4",children:[e.jsxs("div",{className:"text-left space-y-1.5",children:[e.jsx(F,{htmlFor:"name",className:"text-sm font-medium",children:o("Nom complet","Full name")}),e.jsx(_,{id:"name",value:d,onChange:m=>{i(m.target.value),u({})},placeholder:o("Votre nom","Your name"),className:`h-11 ${l.name?"border-destructive":""}`}),l.name&&e.jsx("p",{className:"text-xs text-destructive",children:l.name})]}),e.jsxs("div",{className:"text-left space-y-1.5",children:[e.jsx(F,{htmlFor:"email",className:"text-sm font-medium",children:o("Courriel","Email")}),e.jsx(_,{id:"email",type:"email",value:c,onChange:m=>{t(m.target.value),u({})},placeholder:o("[email protected]","[email protected]"),className:`h-11 ${l.email?"border-destructive":""}`}),l.email&&e.jsx("p",{className:"text-xs text-destructive",children:l.email})]}),e.jsxs("div",{className:"pt-2 flex gap-3",children:[e.jsx(P,{type:"button",variant:"outline",className:"flex-1 h-11 rounded-full",onClick:n,children:o("Annuler","Cancel")}),e.jsx(P,{type:"submit",className:"flex-1 h-11 rounded-full bg-foreground text-background hover:bg-foreground
1/90",children:o("Commencer le diagnostic","Start the assessment")})]})]})]})}function Pe(s,n=[]){let o=[];function d(c,t){const l=p.createContext(t);l.displayName=c+"Context";const u=o.length;o=[...o,t];const x=m=>{var R;const{scope:j,children:y,...N}=m,w=((R=j==null?void 0:j[s])==null?void 0:R[u])||l,k=p.useMemo(()=>N,Object.values(N));return e.jsx(w.Provider,{value:k,children:y})};x.displayName=c+"Provider";function g(m,j){var w;const y=((w=j==null?void 0:j[s])==null?void 0:w[u])||l,N=p.useContext(y);if(N)return N;if(t!==void 0)return t;throw new Error(`\`${m}\` must be used within \`${c}\``)}return[x,g]}const i=()=>{const c=o.map(t=>p.createContext(t));return function(l){const u=(l==null?void 0:l[s])||c;return p.useMemo(()=>({[`__scope${s}`]:{...l,[s]:u}}),[l,u])}};return i.scopeName=s,[d,Ae(i,...n)]}function Ae(...s){const n=s[0];if(s.length===1)return n;const o=()=>{const d=s.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(c){const t=d.reduce((l,{useScope:u,scopeName:x})=>{const m=u(c)[`__scope${x}`];return{...l,...m}},{});return p.useMemo(()=>({[`__scope${n.scopeName}`]:t}),[t])}};return o.scopeName=n.scopeName,o}var Se=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],K=Se.reduce((s,n)=>{const o=re(`Primitive.${n}`),d=p.forwardRef((i,c)=>{const{asChild:t,...l}=i,u=t?o:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(u,{...l,ref:c})});return d.displayName=`Primitive.${n}`,{...s,[n]:d}},{}),O="Progress",L=100,[Re]=Pe(O),[$e,ze]=Re(O),W=p.forwardRef((s,n)=>{const{__scopeProgress:o,value:d=null,max:i,getValueLabel:c=qe,...t}=s;(i||i===0)&&!B(i)&&console.error(Ie(`${i}`,"Progress"));const l=B(i)?i:L;d!==null&&!U(d,l)&&console.error(Me(`${d}`,"Progress"));const u=U(d,l)?d:null,x=M(u)?c(u,l):void 0;return e.jsx($e,{scope:o,value:u,max:l,children:e.jsx(K.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":M(u)?u:void 0,"aria-valuetext":x,role:"progressbar","data-state":J(u,l),"data-value":u??void 0,"data-max":l,...t,ref:n})})});W.displayName=O;var G="ProgressIndicator",Y=p.forwardRef((s,n)=>{const{__scopeProgress:o,...d}=s,i=ze(G,o);return e.jsx(K.div,{"data-state":J(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...d,ref:n})});Y.displayName=G;function qe(s,n){return`${Math.round(s/n*100)}%`}function J(s,n){return s==null?"indeterminate":s===n?"complete":"loading"}function M(s){return typeof s=="number"}function B(s){return M(s)&&!isNaN(s)&&s>0}function U(s,n){return M(s)&&!isNaN(s)&&s<=n&&s>=0}function Ie(s,n){return`Invalid prop \`max\` of value \`${s}\` supplied to \`${n}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${L}\`.`}function Me(s,n){return`Invalid prop \`value\` of value \`${s}\` supplied to \`${n}\`. The \`value\` prop must be:
2  - a positive number
3  - less than the value passed to \`max\` (or ${L} if no \`max\` prop is set)
4  - \`null\` or \`undefined\` if the progress is indeterminate.
5
6Defaulting to \`null\`.`}var X=W,De=Y;const D=p.forwardRef(({className:s,value:n,...o},d)=>e.jsx(X,{ref:d,className:V("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",s),...o,children:e.jsx(De,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(n||0)}%)`}})}));D.displayName=X.displayName;const Ee=ne("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Z({className:s,variant:n,...o}){return e.jsx("div",{className:V(Ee({variant:n}),s),...o})}function Oe({question:s,current:n,total:o,selectedValue:d,onSelect:i,onNext:c,onPrev:t}){const{t:l}=S(),u=n/o*100;return e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(Z,{variant:"outline",className:"k-label rounded-full",children:s.category}),e.jsxs("span",{className:"text-xs font-mono text-muted-foreground",children:[n," / ",o]})]}),e.jsx(D,{value:u,className:"h-1.5 bg-secondary [&>div]:bg-foreground"})]}),e.jsx(I,{mode:"wait",children:e.jsxs(A.div,{initial:{opacity:0,x:20}
6,animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.25,ease:[.16,1,.3,1]},children:[e.jsx("h3",{className:"text-lg font-semibold text-foreground mb-6 leading-snug",children:s.question}),e.jsx("div",{className:"space-y-2.5",children:s.options.map((x,g)=>e.jsx("button",{onClick:()=>i(x.value),className:`w-full text-left p-4 rounded-xl border transition-all duration-200 text-sm leading-relaxed
7                  ${d===x.value?"border-foreground bg-foreground/[0.03]":"border-border hover:border-foreground/20 hover:bg-secondary/50"}`,children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:`w-5 h-5 rounded-full border-2 flex items-center justify-center flex-shrink-0 transition-all
8                      ${d===x.value?"border-foreground bg-foreground":"border-border"}`,children:d===x.value&&e.jsx("div",{className:"w-2 h-2 rounded-full bg-background"})}),e.jsx("span",{className:d===x.value?"text-foreground font-medium":"text-muted-foreground",children:x.label})]})},g))}),e.jsxs("div",{className:"flex gap-3 mt-8",children:[n>1&&e.jsx("button",{onClick:t,className:"flex-1 h-11 rounded-full border border-border text-sm font-medium text-muted-foreground hover:bg-secondary transition-colors",children:l("Retour","Back")}),e.jsx("button",{onClick:c,disabled:!d,className:`flex-1 h-11 rounded-full text-sm font-medium transition-all
9                ${d?"bg-foreground text-background hover:bg-foreground
9/90 cursor-pointer":"bg-secondary text-muted-foreground cursor-not-allowed"}`,children:n===o?l("Voir mes résultats","See my results"):l("Suivant","Next")})]})]},s.id)})]})}function Le({answers:s,questions:n,userInfo:o,onRestart:d,onClose:i,onSchedule:c}){const{t}=S(),[l,u]=p.useState(!1),x=n.length*5,g=s.reduce((a,r)=>a+(r.value||0),0),m=Math.round(g/x*100),y=[...new Set(n.map(a=>a.category))].map(a=>{const r=n.filter(v=>v.category===a),h=r.length*5,f=r.reduce((v,ae)=>{const E=s.find(oe=>oe.id===ae.id);return v+((E==null?void 0:E.value)||0)},0);return{name:a,score:Math.round(f/h*100),icon:a==="Croissance"||a==="Growth"?ce:a==="Opérations"||a==="Operations"?ue:me}}),N=y.reduce((a,r)=>r.score<a.score?r:a,y[0]),w=N.name==="Croissance"||N.name==="Growth"?t("Écart d'exécution","Execution gap"):t("Surcharge opérationnelle","Operational overload"),k=s.filter(a=>(a.value||5)<=2).map(a=>{var h,f;const r=n.find(v=>v.id===a.id);return{label:((h=r==null?void 0:r.question)==null?void 0:h.length)>60?((f=r==null?void 0:r.question)==null?void 0:f.slice(0,60))+"...":r==null?void 0:r.question,score:Math.round((a.value||0)/5*100)}}).slice(0,5);k.map(a=>a.label),k.map(a=>a.score);const R=s.map(a=>{var f;const r=n.find(v=>v.id===a.id),h=(f=r==null?void 0:r.options)==null?void 0:f.find(v=>v.value===a.value);return{id:a.id,question:(r==null?void 0:r.question)||"",answer:(h==null?void 0:h.label)||t("Non répondu","Not answered"),value:a.value||0,category:(r==null?void 0:r.category)||""}}),z=s.filter(a=>(a.value||5)<=3).slice(0,3).map(a=>{var h,f;const r=n.find(v=>v.id===a.id);return(r==null?void 0:r.category)+" — "+(((h=r==null?void 0:r.question)==null?void 0:h.length)>50?((f=r==null?void 0:r.question)==null?void 0:f.slice(0,50))+"...":r==null?void 0:r.question)}),C=[...R].filter(a=>a.value<=3).sort((a,r)=>a.value-r.value).slice(0,5),[b,q]=p.useState(!1),[$,ee]=p.useState(!1),se=()=>{const a=`${t("Rapport de diagnostic Kaza","Kaza assessment report")}
10
11${t("Nom","Name")}: ${o.name}
12${t("Courriel","Email")}: ${o.email}
13${t("Score d'autonomie","Autonomy score")}: ${m}%
14${t("Profil","Profile")}: ${w}
15
16${y.map(v=>`${v.name}: ${v.score}%`).join(`
17`)}`,r=new Blob([a],{type:"application/pdf"}),h=URL.createObjectURL(r),f=document.createElement("a");f.href=h,f.download="diagnostic-kaza.pdf",f.click(),URL.revokeObjectURL(h)},te=()=>{const a=t("Diagnostic Kaza — discussion","Kaza assessment — discussion"),r=`${t("Bonjour Kaza,","Hello Kaza,")}
18
19${t("Je viens de compléter le diagnostic.","I just completed the assessment.")}
20${t("Score d'autonomie","Autonomy score")}: ${m}%
21${t("Profil","Profile")}: ${w}
22
23${t("Je souhaite discuter des prochaines étapes.","I would like to discuss next steps.")}`;window.location.href=`mailto:[email protected]?subject=${encodeURIComponent(a)}&body=${encodeURIComponent(r)}`,u(!0)};return e.jsxs(A.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"space-y-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("p",{className:"k-eyebrow mb-4",children:t("Votre diagnostic","Your assessment")}),e.jsxs("div",{className:"relative inline-flex items-center justify-center mb-4",children:[e.jsxs("svg",{className:"w-36 h-36",viewBox:"0 0 140 140",children:[e.jsx("circle",{cx:"70",cy:"70",r:"60",fill:"none",stroke:"hsl(var(--border))",strokeWidth:"7"}),e.jsx("circle",{cx:"70",cy:"70",r:"60",fill:"none",stroke:"hsl(var(--foreground))",strokeWidth:"7",strokeLinecap:"round",strokeDasharray:`${m/100*2*Math.PI*60} ${2*Math.PI*60}`,transform:"rotate(-90 70 70)"})]}),e.jsxs("span",{className:"absolute text-4xl font-semibold text-foreground",children:[m,"%"]})]}),e.jsx("h3",{className:"text-lg font-semibold text-foreground mb-1",children:t("Autonomie opérationnelle","Operating autonomy")}
23),e.jsx(Z,{className:"bg-foreground/5 text-foreground border-0 font-medium text-xs mt-2",children:w})]}),e.jsx("div",{className:"border-t border-border"}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("h4",{className:"text-sm font-medium text-foreground",children:t("Performance par domaine","Performance by area")}),y.map(a=>e.jsxs("div",{className:"space-y-1.5",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(a.icon,{className:"w-4 h-4 text-muted-foreground"}),e.jsx("span",{className:"text-sm",children:a.name})]}),e.jsxs("span",{className:"text-sm font-mono text-foreground/60",children:[a.score,"%"]})]}),e.jsx(D,{value:a.score,className:"h-1.5 bg-secondary [&>div]:bg-foreground"})]},a.name))]}),e.jsx("div",{className:"border-t border-border"}),e.jsxs("div",{className:"space-y-3",children:[e.jsx("h4",{className:"text-sm font-medium text-foreground",children:t("Principaux points de friction","Main friction points")}),k.length>0?e.jsx("div",{className:"space-y-3",children:k.map((a,r)=>e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:a.label}),e.jsxs("span",{className:"text-xs font-mono text-foreground/50",children:[a.score,"%"]})]}),e.jsx(D,{value:a.score,className:"h-1.5 bg-secondary [&>div]:bg-destructive/60"})]},r))}):e.jsx("p",{className:"text-sm text-muted-foreground",children:t("Aucun point de friction critique identifié.","No critical friction point identified.")})]}),e.jsx("div",{className:"border-t border-border"}),e.jsxs("div",{className:"space-y-3",children:[e.jsx("h4",{className:"text-sm font-medium text-foreground",children:t("Opportunités prioritaires","Priority opportunities")}),e.jsx("div",{className:"space-y-2",children:z.map((a,r)=>e.jsxs("div",{className:"flex items-start gap-2 text-sm text-muted-foreground",children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-accent flex-shrink-0 mt-1.5"}),e.jsx("span",{className:"leading-relaxed",children:a})]},r))})]}),e.jsx("div",{className:"border-t border-border"}),C.length>0&&e.jsxs("div",{className:"space-y-3",children:[e.jsxs("button",{onClick:()=>q(!b),className:"w-full flex items-center justify-between text-sm font-medium text-foreground hover:text-foreground/70 transition-colors",children:[e.jsx("span",{children:t("Réponses clés du diagnostic","Key assessment responses")}),b?e.jsx(T,{className:"w-4 h-4"}):e.jsx(Q,{className:"w-4 h-4"})]}),e.jsx(I,{children:b&&e.jsx(A.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},className:"space-y-2 overflow-hidden",children:C.map((a,r)=>e.jsxs("div",{className:"p-3 rounded-lg border border-border bg-secondary/30",children:[e.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[e.jsx("span",{className:"text-[10px] text-muted-foreground uppercase tracking-wider",children:a.category}),e.jsxs("span",{className:`text-[10px] font-semibold px-2 py-0.5 rounded-full ${a.value<=2?"bg-red-100 text-red-700":"bg-yellow-100 text-yellow-700"}`,children:[a.value,"/5"]})]}),e.jsx("p",{className:"text-xs font-medium text-foreground mb-1",children:a.question}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:["→ ",a.answer]})]},r))})})]}),e.jsx("div",{className:"border-t border-border"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("button",{onClick:()=>ee(!$),className:"w-full flex items-center justify-between text-sm font-medium text-foreground hover:text-foreground/70 transition-colors",children:[e.jsx("span",{children:t("Ce que nous couvrirons lors de l'appel","What we will cover on the call")}),$?e.jsx(T,{className:"w-4 h-4"}):e.jsx(Q,{className:"w-4 h-4"})]}),e.jsx(I,{children:$&&e.jsx(A.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},className:"overflow-hidden",children:e.jsx("div",{className:"space-y-3",children:[{title:t("Lecture du diagnostic","Assessment review"),desc:t("Revue de chaque score, des points de friction et des opportunités prioritaires.","Review of every score, friction point, and priority opportunity.")},{title:t("Contexte et enjeux","Context and challenges"),desc:t("Vous partagez votre réalité terrain, vos blocages et vos objectifs à 6–12 mois.","You share your operational reality, blockers, and 6–12 month objectives.")},{title:t("Scénarios d'automatisation","Automation scenarios"),desc:t("Cas concrets d'automatisation adaptés à votre profil et votre secteur.","Concrete automation cases tailored to your profile and sector.")},{title:t("Feuille de route personnalisée","Personalized roadmap"),desc:t("Co-construction d'un plan d'action avec quick wins et trajectoire 3–6 mois.","A co-created action plan with quick wins and a 3–6 month path.")},{title:t("Prochaines étapes","Next steps"),desc:t("Recommandations claires et proposition adaptée à votre budget.","Clear recommendations and a proposal adapted to your budget.")}].map((a,r)=>
23e.jsxs("div",{className:"flex gap-3",children:[e.jsx("span",{className:"w-5 h-5 rounded-full bg-foreground/5 flex items-center justify-center text-[10px] font-semibold text-foreground flex-shrink-0 mt-0.5",children:r+1}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:a.title}),e.jsx("p",{className:"text-xs text-muted-foreground",children:a.desc})]})]},r))})})})]}),e.jsx("div",{className:"border-t border-border"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs(P,{onClick:c,className:"w-full h-12 rounded-full bg-foreground text-background hover:bg-foreground/90 font-medium",children:[e.jsx(H,{className:"w-4 h-4 mr-2"}),t("Réserver un appel gratuit de 30 min","Book a free 30-minute call")]}),e.jsxs(P,{onClick:se,variant:"outline",className:"w-full h-11 rounded-full",children:[e.jsx(pe,{className:"w-4 h-4 mr-2"}),t("Télécharger le rapport PDF","Download the PDF report")]}),e.jsxs(P,{variant:"outline",className:"w-full h-11 rounded-full",onClick:te,disabled:l,children:[l?e.jsx(xe,{className:"w-4 h-4 mr-2 text-green-600"}):e.jsx(he,{className:"w-4 h-4 mr-2"}),l?t("Courriel ouvert","Email opened"):t("Discuter du rapport","Discuss this report")]}),e.jsxs("div",{className:"flex gap-3 pt-1",children:[e.jsxs(P,{variant:"ghost",onClick:d,className:"flex-1 h-10 rounded-full text-muted-foreground text-sm",children:[e.jsx(fe,{className:"w-3.5 h-3.5 mr-1.5"}),t("Recommencer","Start again")]}),e.jsx(P,{variant:"ghost",onClick:i,className:"flex-1 h-10 rounded-full text-muted-foreground text-sm",children:t("Fermer","Close")})]})]})]})}const _e="https://tidycal.com/olivier-desjardins/kaza-ai-25min";function Fe({userName:s,userEmail:n,onBack:o}){const{t:d}=S(),[i,c]=p.useState(!1);return e.jsxs(A.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx("div",{className:"w-12 h-12 rounded-2xl border border-border flex items-center justify-center mx-auto mb-4",children:e.jsx(H,{className:"w-6 h-6 text-foreground"})}),e.jsx("h3",{className:"text-xl font-semibold text-foreground mb-2",children:d("Discutons de vos résultats","Let's discuss your results")}),e.jsx("p",{className:"text-sm text-muted-foreground max-w-sm mx-auto leading-relaxed",children:d("Prenez 25 minutes avec un expert Kaza pour analyser votre diagnostic et identifier vos opportunités prioritaires.","Take 25 minutes with a Kaza expert to review your assessment and identify your priority opportunities.")}),e.jsx("p",{className:"k-label mt-2",children:d("GRATUIT · 25 MIN · VISIOCONFÉRENCE","FREE · 25 MIN · VIDEO CALL")})]}),e.jsxs("div",{className:"rounded-xl overflow-hidden border border-border bg-background",style:{minWidth:"320px",height:"600px"},children:[!i&&e.jsx("div",{className:"flex items-center justify-center h-full",children:e.jsx("div",{className:"w-6 h-6 border-2 border-border border-t-foreground rounded-full animate-spin"})}),e.jsx("iframe",{src:_e,className:"w-full h-full border-0",style:{display:i?"block":"none"},title:d("Prendre rendez-vous","Book a meeting"),onLoad:()=>c(!0)})]}),e.jsx("div",{className:"mt-6 text-center",children:e.jsxs("button",{onClick:o,className:"inline-flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[e.jsx(ve,{className:"w-4 h-4"}),d("Retour aux résultats","Back to results")]})})]})}const Te=[{id:1,category:"Croissance",question:"Comment décririez-vous votre processus actuel de génération d'opportunités commerciales ?",options:[{label:"Inexistant ou informel",value:1},{label:"Basique, quelques actions ponctuelles",value:2},{label:"Structuré mais peu efficace",value:3},{label:"Efficace avec des résultats réguliers",value:4},{label:"Optimisé, prédictible et scalable",value:5}]},{id:2,category:"Croissance",question:"Quel est le niveau de suivi de vos prospects et clients potentiels ?",options:[{label:"Aucun suivi formel",value:1},{label:"Notes personnelles ou mémoire",value:2},{label:"Un fichier partagé ou spreadsheet",value:3},{label:"Un CRM avec suivi partiel",value:4},{label:"CRM intégré avec automatisation des relances",value:5}]},{id:3,category:"Croissance",question:"Comment gérez-vous la visibilité et le marketing de votre entreprise ?",options:[{label:"Aucune stratég
23ie définie",value:1},{label:"Quelques publications ponctuelles",value:2},{label:"Présence régulière sur 1-2 canaux",value:3},{label:"Stratégie multicanale cohérente",value:4},{label:"Stratégie omnicanale automatisée avec analytics",value:5}]},{id:4,category:"Croissance",question:"À quel point votre processus de vente est-il documenté et reproductible ?",options:[{label:"Chaque vente est unique et improvisée",value:1},{label:"Processus mental mais pas formalisé",value:2},{label:"Processus partiellement documenté",value:3},{label:"Processus documenté et suivi par l'équipe",value:4},{label:"Processus optimisé avec scripts, templates et analytics",value:5}]},{id:5,category:"Croissance",question:"Comment mesurez-vous la performance de vos efforts commerciaux ?",options:[{label:"Aucune mesure en place",value:1},{label:"Quelques indicateurs suivis mentalement",value:2},{label:"Tableaux de bord manuels",value:3},{label:"Dashboards automatisés avec KPIs clés",value:4},{label:"Analytics avancés avec prédictions et alertes",value:5}]},{id:6,category:"Opérations",question:"Quelle proportion du temps de votre équipe est consacrée à des tâches répétitives ?",options:[{label:"Plus de 60%",value:1},{label:"40-60%",value:2},{label:"20-40%",value:3},{label:"10-20%",value:4},{label:"Moins de 10%",value:5}]},{id:7,category:"Opérations",question:"Si une personne clé s'absente, comment les opérations sont-elles affectées ?",options:[{label:"Blocage complet, tout s'arrête",value:1},{label:"Ralentissement majeur",value:2},{label:"Quelques perturbations",value:3},{label:"Impact mineur, documentation existante",value:4},{label:"Aucun impact, processus totalement documentés et délégués",value:5}]},{id:8,category:"Opérations",question:"Identifiez-vous des goulots d'étranglement récurrents dans vos processus ?",options:[{label:"Constamment, tout est bloqué quelque part",value:1},{label:"Fréquemment, plusieurs points critiques",value:2},{label:"Parfois, sur certains processus",value:3},{label:"Rarement, la plupart des flux sont fluides",value:4},{label:"Jamais, nos processus sont optimisés en continu",value:5}]},{id:9,category:"Opérations",question:"Avez-vous identifié des opportunités d'automatisation dans vos processus ?",options:[{label:"Aucune idée par où commencer",value:1},{label:"Quelques idées mais pas de plan",value:2},{label:"Plusieurs opportunités identifiées",value:3},{label:"Plan d'automatisation en cours de déploiement",value:4},{label:"Automatisation continue avec roadmap claire",value:5}]},{id:10,category:"Opérations",question:"Comment se fait la coordination entre les différents services de l'entreprise ?",options:[{label:"Chaotique, chacun travaille en silo",value:1},{label:"Principalement par emails et messages",value:2},{label:"Réunions régulières mais peu outillées",value:3},{label:"Outils collaboratifs avec workflows définis",value:4},{label:"Système intégré avec visibilité transversale en temps réel",value:5}]},{id:11,category:"Administration",question:"Comment gérez-vous vos documents et fichiers importants ?",options:[{label:"Dossiers locaux, chacun fait comme il peut",value:1},{label:"Stockage cloud basique, peu de structure",value:2},{label:"Drive partagé avec une certaine organisation",value:3},{label:"Système structuré avec permissions et versioning",value:4},{label:"GED complète avec workflows documentaires automatisés",value:5}]},{id:12,category:"Administration",question:"Quel est le délai moyen de traitement d'une demande administrative interne ?",options:[{label:"Plusieurs jours, souvent oublié",value:1},{label:"1-2 jours",value:2},{label:"Quelques heures",value:3},{label:"Moins d'une heure",value:4},{label:"Instantané ou automatisé",value:5}]},{id:13,category:"Administration",question:"À quel point vos processus administratifs sont-ils standardisés ?",options:[{label:"Aucune standardisation",value:1},{label:"Quelques procédures documentées",value:2},{label:"La plupart des processus sont documentés",value:3},{label:"Processus standardisés avec contrôles qualité",value:4},{label:"Certification / normes qualité en place",value:5}]},{id:14,category:"Administration",question:"Comment circule l'information dans votre organisation ?",options:[{label:"De façon informelle et désorganisée",value:1},{label:"Principalement par email",value:2},{label:"Outils de messagerie instantanée",value:3},{label:"Plateforme collaborative structurée",value:4},{label:"Système de knowledge management avec IA",value:5}]},{id:15,category:"Administration",question:"Comment suivez-vous les tâches et les projets en cours ?",options:[{label:"Pas de suivi formel",value:1},{label:"Listes personnelles ou notes",value:2},{label:"Outils basiques (spreadsheet, todo list)",value:3},{label:"Outil de gestion de projet dédié",value:4},{label:"Suite intégrée avec automatisation, dashboards et alertes",value:5}]}
23],Qe=[["Growth","How would you describe your current process for generating sales opportunities?",["Non-existent or informal","Basic, with a few occasional actions","Structured but ineffective","Effective with regular results","Optimized, predictable, and scalable"]],["Growth","What is the level of follow-up for your prospects and potential clients?",["No formal follow-up","Personal notes or memory","A shared file or spreadsheet","A CRM with partial follow-up","Integrated CRM with automated follow-ups"]],["Growth","How do you manage your company's visibility and marketing?",["No defined strategy","A few occasional posts","Regular presence on one or two channels","A coherent multichannel strategy","Automated omnichannel strategy with analytics"]],["Growth","How documented and repeatable is your sales process?",["Every sale is unique and improvised","A mental process, but not formalized","Partially documented process","Process documented and followed by the team","Optimized process with scripts, templates, and analytics"]],["Growth","How do you measure the performance of your sales efforts?",["No measurement in place","A few metrics tracked mentally","Manual dashboards","Automated dashboards with key KPIs","Advanced analytics with predictions and alerts"]],["Operations","What proportion of your team's time is spent on repetitive tasks?",["More than 60%","40–60%","20–40%","10–20%","Less than 10%"]],["Operations","If a key person is absent, how are operations affected?",["Complete blockage; everything stops","Major slowdown","Some disruptions","Minor impact; documentation exists","No impact; processes are fully documented and delegated"]],["Operations","Do you identify recurring bottlenecks in your processes?",["Constantly; everything is blocked somewhere","Frequently; several critical points","Sometimes, in specific processes","Rarely; most flows are smooth","Never; our processes are continuously optimized"]],["Operations","Have you identified automation opportunities in your processes?",["No idea where to start","A few ideas but no plan","Several opportunities identified","Automation plan being deployed","Continuous automation with a clear roadmap"]],["Operations","How is coordination handled between the company's different departments?",["Chaotic; everyone works in silos","Mostly through email and messages","Regular meetings but few supporting tools","Collaborative tools with defined workflows","Integrated system with real-time cross-functional visibility"]],["Administration","How do you manage important documents and files?",["Local folders; everyone manages as they can","Basic cloud storage with little structure","Shared drive with some organization","Structured system with permissions and versioning","Full document management with automated workflows"]],["Administration","What is the average processing time for an internal administrative request?",["Several days; often forgotten","One to two days","A few hours","Less than an hour","Instant or automated"]],["Administration","How standardized are your administrative processes?",["No standardization","A few documented procedures","Most processes are documented","Standardized processes with quality controls","Certification or quality standards in place"]],["Administration","How does information flow through your organization?",["Informally and without structure","Mainly through email","Instant messaging tools","Structured collaboration platform","AI-enabled knowledge management system"]],["Administration","How do you track ongoing tasks and projects?",["No formal tracking","Personal lists or notes","Basic tools such as spreadsheets or to-do lists","Dedicated project-management tool","Integrated suite with automation, dashboards, and alerts"]]].map(([s,n,o],d)=>({id:d+1,category:s,question:n,options:o.map((i,c)=>({label:i,value:c+1}))}
23));function Be(s){return s==="en"?Qe:Te}function Ue({onClose:s}){var z;const{language:n}=S(),o=Be(n),[d,i]=p.useState("registration"),[c,t]=p.useState(null),[l,u]=p.useState(0),[x,g]=p.useState([]),m=()=>window.scrollTo({top:0,behavior:"smooth"}),j=C=>{t(C),i("quiz"),u(0),g([]),m()},y=C=>{const b=[...x],q=b.findIndex($=>$.id===o[l].id);q>=0?b[q]={id:o[l].id,value:C,category:o[l].category}:b.push({id:o[l].id,value:C,category:o[l].category}),g(b)},N=()=>{l<o.length-1?(u(l+1),m()):(i("results"),m())},w=()=>{l>0&&u(l-1)},k=()=>{i("registration"),t(null),u(0),g([]),m()},R=(z=x.find(C=>{var b;return C.id===((b=o[l])==null?void 0:b.id)}))==null?void 0:z.value;return e.jsx("div",{className:"w-full max-w-lg mx-auto bg-background border border-border rounded-2xl shadow-[0_20px_60px_rgba(0,0,0,0.06)] overflow-hidden",children:e.jsx("div",{className:"p-6 md:p-8",children:e.jsxs(I,{mode:"wait",children:[d==="registration"&&e.jsx(ke,{onComplete:j,onClose:s},"reg"),d==="quiz"&&e.jsx(Oe,{question:o[l],current:l+1,total:o.length,selectedValue:R,onSelect:y,onNext:N,onPrev:w},`q-${l}`),d==="results"&&e.jsx(Le,{answers:x,questions:o,userInfo:c,onRestart:k,onClose:s,onSchedule:()=>{i("scheduling"),m()}},"results"),d==="scheduling"&&e.jsx(Fe,{userName:c==null?void 0:c.name,userEmail:c==null?void 0:c.email,onBack:()=>{i("results"),m()}},"scheduling")]})})})}function Ve(){const{t:s}=S(),n=[{label:s("Suivis manuels","Manual follow-ups"),value:85},{label:s("Coordination","Coordination"),value:72},{label:s("Saisie de données","Data entry"),value:65}],o=[s("Automatisation CRM","CRM automation"),s("Rapports automatisés","Automated reporting"),s("Workflows documentaires","Document workflows")],d=[s("Phase 1 : Quick wins (0-30 jours)","Phase 1: Quick wins (0–30 days)"),s("Phase 2 : Automatisation (1-3 mois)","Phase 2: Automation (1–3 months)"),s("Phase 3 : IA avancée (3-6 mois)","Phase 3: Advanced AI (3–6 months)")];return e.jsxs(A.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},transition:{duration:.5,ease:[.16,1,.3,1]},className:"mt-20 text-left",children:[e.jsx("h2",{className:"text-xl md:text-2xl font-bold tracking-tight text-foreground text-center mb-8",children:s("Ce que vous recevrez","What you will receive")}),e.jsxs("div",{className:"rounded-2xl border border-border bg-card overflow-hidden shadow-[0_8px_30px_rgba(0,0,0,0.04)]",children:[e.jsxs("div",{className:"px-5 py-3.5 border-b border-border flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("div",{className:"flex gap-1.5",children:[e.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-red-400"}),e.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-yellow-400"}),e.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-green-400"})]}),e.jsxs("span",{className:"k-label",children:[s("Rapport diagnostic","Assessment report")," — kaza.ai"]})]}),e.jsx("span",{className:"text-[10px] font-bold text-foreground border border-border rounded-full px-2.5 py-0.5",children:"PDF"})]}),e.jsxs("div",{className:"p-6 md:p-8",children:[e.jsxs("div",{className:"text-center py-6",children:[e.jsx("p",{className:"k-label mb-6",children:s("Autonomie opérationnelle","Operating autonomy")}),e.jsxs("div",{className:"relative inline-flex items-center justify-center",children:[e.jsxs("svg",{className:"w-28 h-28 -rotate-90",viewBox:"0 0 100 100",children:[e.jsx("circle",{cx:"50",cy:"50",r:"42",fill:"none",stroke:"hsl(var(--border))",strokeWidth:"7"}),e.jsx("circle",{cx:"50",cy:"50",r:"42",fill:"none",stroke:"hsl(var(--foreground))",strokeWidth:"7",strokeLinecap:"round",strokeDasharray:`${.72*2*Math.PI*42} ${2*Math.PI*42}`})]}),e.jsx("span",{className:"absolute text-2xl font-bold text-foreground",children:"72%"})]}),e.jsx("p",{className:"text-sm text-muted-foreground mt-4",children:s("Score global","Overall score")})]}),e.jsxs("div",{className:"border-t border-border grid md:grid-cols-2 gap-x-10 gap-y-8 pt-8 pb-8",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold text-foreground mb-3",children:[e.jsx(ge,{className:"w-4 h-4"}),s("Profil dominant","Primary profile")]}),e.jsx("span",{className:"inline-flex items-center px-3 py-1.5 rounded-lg bg-secondary text-xs font-medium text-foreground",children:s("Surcharge opérationnelle","Operational overload")})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold text-foreground mb-3",children:[e.jsx(be,{className:"w-4 h-4"}),s("Principaux points de friction","Main friction points")]}),e.jsx("div",{className:"space-y-2.5",children:n.map(i=>e.jsxs("div",{children:[e.jsxs("div",{className:"flex justify-between text-xs text-muted-foreground mb-1",children:[e.jsx("span",{children:i.label}),e.jsxs("span",{children:[i.value,"%"]})]}),e.jsx("div",{className:"h-1.5 rounded-full bg-secondary overflow-hidden",children:e.jsx("div",{className:"h-full rounded-full bg-foreground",style:{width:`${i.value}%`}})})]},i.label))})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold text-foreground mb-3",children:[e.jsx(je,{className:"w-4 h-4"}),s("Opportunités prioritaires","Priority opportunities")]}),e.jsx("ul",{className:"space-y-1.5",children:o.map(i=>e.jsxs("li",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-accent flex-shrink-0"}),i]},i))})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold text-foreground mb-3",children:[e.jsx(ye,{className:"w-4 h-4"}),s("Feuille de route recommandée","Recommended roadmap")]}),e.jsx("ul",{className:"space-y-1.5",children:d.map((i,c)=>e.jsxs("li",{className:"flex items-center gap-2.5 text-xs text-muted-foreground",children:[e.jsx("span",{className:"font-mono text-muted-foreground
23/50",children:`0${c+1}`}),i]},i))})]})]}),e.jsxs("div",{className:"border-t border-border pt-6 flex flex-col sm:flex-row items-center justify-between gap-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-9 h-9 rounded-xl border border-border flex items-center justify-center",children:e.jsx(Ne,{className:"w-4 h-4 text-foreground"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold text-foreground",children:s("Rapport PDF personnalisé","Personalized PDF report")}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s("Téléchargeable immédiatement","Available to download immediately")})]})]}),e.jsxs("span",{className:"inline-flex items-center gap-2 px-5 py-2.5 rounded-full border border-border text-sm font-medium text-foreground",children:[e.jsx(we,{className:"w-4 h-4"}),s("Révision du rapport","Report review")]})]})]})]})]})}function Je(){const{t:s}=S(),[n,o]=p.useState(!1);return p.useEffect(()=>{document.title=s("Votre diagnostic · kaza.ai","Your assessment · kaza.ai"),window.scrollTo({top:0})},[s]),e.jsxs("div",{className:"min-h-screen bg-background text-foreground antialiased",children:[e.jsx(ie,{}),e.jsxs("section",{className:"relative overflow-hidden pt-32 pb-20 md:pt-40 md:pb-24 px-6",children:[e.jsx("div",{"aria-hidden":!0,className:"page-hero-bloom pointer-events-none absolute inset-x-0 top-0"}),e.jsx("div",{className:"max-w-2xl mx-auto text-center",children:n?e.jsx(Ue,{onClose:()=>o(!1)}):e.jsxs(A.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,ease:[.16,1,.3,1]},children:[e.jsx("p",{className:"k-eyebrow mb-4",children:s("Auto-évaluation gratuite · 2 minutes","Free self-assessment · 2 minutes")}),e.jsx("h1",{className:"k-title text-foreground mb-5",children:s("Évaluez le niveau actuel de capacité de votre organisation.","Assess your organization's current capacity level.")}),e.jsx("p",{className:"k-lede mb-10",children:s("Cette auto-évaluation facultative vous permet de situer votre organisation sur le parcours d'évolution vers l'entreprise augmentée.","This optional self-assessment helps you place your organization on the path toward an augmented organization.")}),e.jsx("div",{className:"mb-10",children:e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"h-px bg-border w-full absolute top-[11px]"}),e.jsx("div",{className:"flex justify-between relative",children:[s("Manuel","Manual"),s("Assisté","Assisted"),s("Automatisé","Automated"),s("Autonome","Autonomous")].map((d,i)=>e.jsxs("div",{className:"flex flex-col items-center gap-3",children:[e.jsx("div",{className:"w-[22px] h-[22px] rounded-full border-2 border-foreground bg-background"}),e.jsxs("div",{className:"text-center",children:[e.jsxs("p",{className:"text-[10px] font-mono text-muted-foreground/50 mb-0.5",children:[s("NIVEAU","LEVEL")," 0",i+1]}),e.jsx("p",{className:"text-xs sm:text-sm font-medium text-foreground",children:d})]})]},d))})]})}),e.jsxs(P,{size:"lg",onClick:()=>{o(!0),window.scrollTo({top:0,behavior:"smooth"})},className:"bg-accent text-white hover:bg-accent/90 rounded-full px-8 h-12 text-sm font-semibold group shadow-[0_0_35px_hsl(var(--accent)/0.45)] hover:shadow-[0_0_50px_hsl(var(--accent)/0.6)] transition-shadow duration-300",children:[s("Commencer l'auto-évaluation","Start the self-assessment"),e.jsx(Ce,{className:"w-4 h-4 ml-1.5 transition-transform group-hover:translate-x-0.5"})]}),e.jsx(Ve,{})]})})]}),e.jsx(le,{})]})}export{Je 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.