import{j as e}from"./ui-vendor-Dyu0xMC9.js";import{r as s,L as a}from"./react-vendor-BiKEbLqf.js";import{H as t,M as r,F as i}from"./Footer-BCdrvFQr.js";import{H as l,B as n}from"./button-F0c2zgfO.js";import{C as d,a as c,b as o,c as m,d as x}from"./card-D8XUAx1y.js";import{L as u,I as h}from"./client-Ccea0ZZ8.js";import{S as j}from"./slider-DpkpY2uB.js";import{A as v,a as f,b as p,c as g}from"./accordion-DK3ZPWHL.js";import{B as N,a as b,b as y,c as w,d as C,e as M}from"./breadcrumb-BZGpceck.js";import{r as k,s as S}from"./index-D2mkZfe8.js";import{D as A}from"./download-DlY6qDWe.js";import{a as I}from"./chevron-right-9d459eh4.js";import"./chart-vendor-V3pFlbOw.js";import"./index-D9xaiIhE.js";const F=()=>{const[F,$]=s.useState(1e3),[L,B]=s.useState(15),[E,O]=s.useState(50),[R,H]=s.useState(5e3),[Y,P]=s.useState(70),[_,D]=s.useState(2e3),[T,z]=s.useState(5e4),[V,q]=s.useState("expected"),G=s.useMemo(()=>{const e=F*L/60*E*12,s=R*(Y/100)*12,a=(e+s)*("conservative"===V?.7:"expected"===V?1:1.3),t=T+12*_,r=(a-t)/t*100,i=a-t,l=T/Math.max((a-12*_)/12,1);return{paybackMonths:Math.max(l,0),netBenefit:i,roi:r,benefits:a,costs:t,laborSavings:e,errorSavings:s}},[F,L,E,R,Y,_,T,V]);s.useEffect(()=>{F>0&&L>0&&k({scenario:"agentic",roi_pct:Math.round(100*G.roi)/100,payback_months:Math.round(10*G.paybackMonths)/10,npv_3yr:Math.round(G.netBenefit)})},[G.roi,G.paybackMonths,G.netBenefit,F,L]);return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsxs(l,{children:[e.jsx("title",{children:"Agentic AI Automation ROI Calculator | Allerin"}),e.jsx("meta",{name:"description",content:"Calculate Year-1 ROI and payback for agentic AI automation projects. Estimate labor savings and error reduction."})]}),e.jsx(t,{}),e.jsx("main",{className:"py-8 md:py-12",children:e.jsxs("div",{className:"container max-w-6xl",children:[e.jsx(N,{className:"mb-6",children:e.jsxs(b,{children:[e.jsx(y,{children:e.jsx(w,{asChild:!0,children:e.jsx(a,{to:"/",children:"Home"})})}),e.jsx(C,{}),e.jsx(y,{children:e.jsx(w,{asChild:!0,children:e.jsx(a,{to:"/roi-calculator",children:"ROI Calculator"})})}),e.jsx(C,{}),e.jsx(M,{children:"Agentic AI"})]})}),e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-3xl md:text-4xl font-bold mb-2",children:"Agentic AI Automation ROI Estimate"}),e.jsx("p",{className:"text-muted-foreground",children:"Calculate labor savings and error reduction from automated workflows."})]}),e.jsxs("div",{className:"grid lg:grid-cols-2 gap-8",children:[e.jsxs(d,{children:[e.jsxs(c,{children:[e.jsx(o,{children:"Your Inputs"}),e.jsx(m,{children:"Adjust values to match your environment"})]}),e.jsxs(x,{className:"space-y-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"tasks",children:"Tasks per month"}),e.jsx(h,{id:"tasks",type:"number",value:F,onChange:e=>$(Number(e.target.value))})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"minutes",children:"Minutes saved per task"}),e.jsx(h,{id:"minutes",type:"number",value:L,onChange:e=>B(Number(e.target.value))})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"hourly",children:"Hourly rate ($)"}),e.jsx(h,{id:"hourly",type:"number",value:E,onChange:e=>O(Number(e.target.value))})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"error",children:"Baseline error cost per month ($)"}),e.jsx(h,{id:"error",type:"number",value:R,onChange:e=>H(Number(e.target.value))})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs(u,{htmlFor:"reduction",children:["Error reduction (%): ",Y]}),e.jsx(j,{id:"reduction",min:0,max:100,step:5,value:[Y],onValueChange:e=>P(e[0])})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"monthly",children:"Monthly platform cost ($)"}),e.jsx(h,{id:"monthly",type:"number",value:_,onChange:e=>D(Number(e.target.value))})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"build",children:"One-time build cost ($)"}),e.jsx(h,{id:"build",type:"number",value:T,onChange:e=>z(Number(e.target.value))})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{children:"Confidence level"}),e.jsx("div",{className:"flex gap-2",children:[{value:"conservative",label:"Conservative (0.7×)"},{value:"expected",label:"Expected (1.0×)"},{value:"aggressive",label:"Aggressive (1.3×)"}].map(s=>e.jsx(n,{variant:V===s.value?"default":"outline",size:"sm",onClick:()=>q(s.value),className:"flex-1",children:s.label.split(" ")[0]},s.value))}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Conservative = 0.7×, Expected = 1.0×, Aggressive = 1.3× applied to benefits only."})]})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs(d,{children:[e.jsx(c,{children:e.jsx(o,{children:"Year-1 Results"})}),e.jsxs(x,{className:"space-y-6",role:"region","aria-live":"polite",children:[e.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-sm text-muted-foreground mb-1",children:"Payback"}),e.jsxs("div",{className:"text-2xl font-bold",children:[G.paybackMonths.toFixed(1)," mo"]})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-sm text-muted-foreground mb-1",children:"Net Benefit"}),e.jsxs("div",{className:"text-2xl font-bold",children:["$",Math.round(G.netBenefit).toLocaleString()]})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-sm text-muted-foreground mb-1",children:"ROI"}),e.jsxs("div",{className:"text-2xl font-bold",children:[G.roi.toFixed(0),"%"]})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"text-sm font-medium",children:"Costs vs Benefits (Year-1)"}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-20 text-xs text-muted-foreground",children:"Costs"}),e.jsxs("div",{className:"flex-1 h-8 bg-destructive/20 rounded relative overflow-hidden",children:[e.jsx("div",{className:"h-full bg-destructive transition-all",style:{width:G.costs/Math.max(G.benefits,G.costs)*100+"%"}}),e.jsxs("span",{className:"absolute inset-0 flex items-center px-2 text-xs font-medium",children:["$",Math.round(G.costs).toLocaleString()]})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-20 text-xs text-muted-foreground",children:"Benefits"}),e.jsxs("div",{className:"flex-1 h-8 bg-primary/20 rounded relative overflow-hidden",children:[e.jsx("div",{className:"h-full bg-primary transition-all",style:{width:G.benefits/Math.max(G.benefits,G.costs)*100+"%"}}),e.jsxs("span",{className:"absolute inset-0 flex items-center px-2 text-xs font-medium",children:["$",Math.round(G.benefits).toLocaleString()]})]})]})]})]})]})]}),e.jsxs(d,{children:[e.jsx(c,{children:e.jsx(o,{children:"Actions"})}),e.jsxs(x,{className:"flex flex-col gap-3",children:[e.jsxs(n,{onClick:()=>{alert("PDF download would trigger here with assumptions + results")},className:"w-full justify-start",children:[e.jsx(A,{className:"mr-2 h-4 w-4"}),"Download PDF"]}),e.jsxs(n,{onClick:()=>{alert("Email form would open here")},variant:"outline",className:"w-full justify-start",children:[e.jsx(r,{className:"mr-2 h-4 w-4"}),"Email me this"]}),e.jsxs(n,{onClick:()=>{S({scenario:"agentic",roi_pct:Math.round(100*G.roi)/100,payback_months:Math.round(10*G.paybackMonths)/10}),window.location.href="mailto:contact@allerin.com?subject=ROI Consult: Agentic AI Automation"},variant:"outline",className:"w-full justify-start",children:[e.jsx(I,{className:"mr-2 h-4 w-4"}),"Book 30-min consult"]})]})]}),e.jsx(v,{type:"single",collapsible:!0,children:e.jsxs(f,{value:"assumptions",children:[e.jsx(p,{children:"View all assumptions"}),e.jsx(g,{className:"space-y-2 text-sm",children:e.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[e.jsx("div",{className:"text-muted-foreground",children:"Tasks/month:"}),e.jsx("div",{className:"font-medium",children:F.toLocaleString()}),e.jsx("div",{className:"text-muted-foreground",children:"Min saved/task:"}),e.jsx("div",{className:"font-medium",children:L}),e.jsx("div",{className:"text-muted-foreground",children:"Hourly rate:"}),e.jsxs("div",{className:"font-medium",children:["$",E]}),e.jsx("div",{className:"text-muted-foreground",children:"Labor savings (Y1):"}),e.jsxs("div",{className:"font-medium",children:["$",Math.round(G.laborSavings).toLocaleString()]}),e.jsx("div",{className:"text-muted-foreground",children:"Error cost/mo:"}),e.jsxs("div",{className:"font-medium",children:["$",R.toLocaleString()]}),e.jsx("div",{className:"text-muted-foreground",children:"Error reduction:"}),e.jsxs("div",{className:"font-medium",children:[Y,"%"]}),e.jsx("div",{className:"text-muted-foreground",children:"Error savings (Y1):"}),e.jsxs("div",{className:"font-medium",children:["$",Math.round(G.errorSavings).toLocaleString()]}),e.jsx("div",{className:"text-muted-foreground",children:"Platform/mo:"}),e.jsxs("div",{className:"font-medium",children:["$",_.toLocaleString()]}),e.jsx("div",{className:"text-muted-foreground",children:"One-time build:"}),e.jsxs("div",{className:"font-medium",children:["$",T.toLocaleString()]}),e.jsx("div",{className:"text-muted-foreground",children:"Confidence:"}),e.jsx("div",{className:"font-medium capitalize",children:V})]})})]})}),e.jsx("p",{className:"text-xs text-muted-foreground text-center",children:"This is an estimate based on provided inputs and industry heuristics. It is not financial advice."})]})]})]})}),e.jsx(i,{})]})};export{F as default};