import{j as e}from"./vendor-radix-DNxwLykc.js";import{r as a}from"./vendor-react-BsBmf7g_.js";import{u as b,m as y,r as j,B as h,A as k}from"./index-E4maWKVN.js";import{L as x}from"./vendor-router-CYowL1Ry.js";const d=[{key:"office",en:"Office Cleaning",fr:"Nettoyage de bureau",low:.1,high:.25},{key:"commercial",en:"Commercial Cleaning",fr:"Nettoyage commercial",low:.08,high:.2},{key:"industrial",en:"Industrial Cleaning",fr:"Nettoyage industriel",low:.06,high:.18},{key:"medical",en:"Medical / Healthcare",fr:"Médical / Santé",low:.2,high:.4},{key:"specialized",en:"Specialized / Deep Clean",fr:"Spécialisé / Grand ménage",low:.15,high:.35}],m=[{key:"1",en:"1x / week",fr:"1x / semaine",multiplier:4.33},{key:"2",en:"2x / week",fr:"2x / semaine",multiplier:8.66},{key:"3",en:"3x / week",fr:"3x / semaine",multiplier:13},{key:"5",en:"5x / week (daily)",fr:"5x / semaine (quotidien)",multiplier:21.66}];function E(){const{language:i}=b(),[l,u]=a.useState(""),[n,p]=a.useState("office"),[o,w]=a.useState("2"),s=d.find(t=>t.key===n),c=m.find(t=>t.key===o),r=Math.max(0,parseInt(l)||0),f=r*s.low*c.multiplier,g=r*s.high*c.multiplier;return e.jsxs(y,{className:"p-6 border-accent-blue bg-accent-blue text-white",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[e.jsx(j,{className:"w-5 h-5 text-white shrink-0"}),e.jsx("h3",{className:"text-lg font-bold text-white",children:i==="fr"?"Estimez votre coût de nettoyage":"Estimate Your Cleaning Cost"})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-sm text-white/70 block mb-1",children:i==="fr"?"Superficie (pi²)":"Square Footage"}),e.jsx("input",{type:"number",min:"0",max:"999999",value:l,onChange:t=>u(t.target.value.slice(0,6)),placeholder:i==="fr"?"ex: 5000":"e.g. 5000",className:"w-full rounded-lg border border-white/30 bg-white/10 px-3 py-2 text-sm text-white placeholder:text-white/50 focus:outline-none focus:ring-2 focus:ring-white/50"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-sm text-white/70 block mb-1",children:i==="fr"?"Type de nettoyage":"Cleaning Type"}),e.jsx("div",{className:"flex flex-wrap gap-1.5",children:d.map(t=>e.jsx("button",{onClick:()=>p(t.key),className:`text-xs px-2.5 py-1.5 rounded-md border transition-colors ${n===t.key?"border-white bg-white/20 text-white":"border-white/30 text-white/80 hover:border-white/60"}`,children:i==="fr"?t.fr:t.en},t.key))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-sm text-white/70 block mb-1",children:i==="fr"?"Fréquence":"Frequency"}),e.jsx("div",{className:"flex flex-wrap gap-1.5",children:m.map(t=>e.jsx("button",{onClick:()=>w(t.key),className:`text-xs px-2.5 py-1.5 rounded-md border transition-colors ${o===t.key?"border-white bg-white/20 text-white":"border-white/30 text-white/80 hover:border-white/60"}`,children:i==="fr"?t.fr:t.en},t.key))})]}),r>0&&e.jsxs("div",{className:"bg-white/15 border border-white/25 rounded-lg p-4 text-center",children:[e.jsx("p",{className:"text-sm text-white/70 mb-1",children:i==="fr"?"Estimation mensuelle":"Estimated Monthly Cost"}),e.jsxs("p",{className:"text-2xl font-bold text-white",children:["$",Math.round(f).toLocaleString()," – $",Math.round(g).toLocaleString(),e.jsxs("span",{className:"text-sm font-normal text-white/70",children:[" / ",i==="fr"?"mois":"mo"]})]}),e.jsxs("p",{className:"text-xs text-white/70 mt-1",children:["$",s.low.toFixed(2)," – $",s.high.toFixed(2)," / ",i==="fr"?"pi²":"sq ft"]})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx(h,{size:"sm",asChild:!0,className:"bg-white text-accent-blue hover:bg-white/90",children:e.jsxs(x,{to:"/pricing-calculator",children:[i==="fr"?"Calculateur détaillé":"Detailed Calculator",e.jsx(k,{className:"w-4 h-4 ml-1"})]})}),e.jsx(h,{variant:"outline",size:"sm",asChild:!0,className:"border-white/40 text-white bg-transparent hover:bg-white/15",children:e.jsx(x,{to:"/#contact",children:i==="fr"?"Soumission exacte gratuite":"Get an Exact Free Quote"})})]})]})]})}export{E as B};