1import{j as e}from"./index-DBtOtfnT.js";import{r}from"./react-vendor-Fno0bihe.js";import{C as Q,a as I,b as P,d as F}from"./card-BJJzt-PI.js";import{L as n}from"./label-KImUqBtf.js";import{I as j}from"./SEOHead-BkRE_tJt.js";import{S as M,a as T,b as U,c as B,d as i}from"./select-D9w4hPyZ.js";import{S as g}from"./slider-DwEEfK6C.js";import"./ui-vendor-BqRAAAnP.js";import"./router-BENx4gD_.js";import"./i18n-BvFo-Lqm.js";import"./index-DrH2Ekxy.js";import"./index-pCyEUhEu.js";import"./index-CsJqa-eX.js";const K=()=>{const[a,v]=r.useState(4),[c,N]=r.useState(500),[d,f]=r.useState(150),[o,C]=r.useState(0),[m,y]=r.useState("QAR"),S={QAR:1,USD:3.64,EUR:3.98,GBP:4.62},b=(s,A)=>s*S[A],x=c*a,l=x*(1-o/100),R=d*a,h=b(R,m),u=h*(1-o/100),t=l-u,p=l>0?(t/l*100).toFixed(1):0;return e.jsxs(Q,{className:"my-8",children:[e.jsx(I,{children:e.jsx(P,{children:"Therapy Cost Comparison Calculator"})}),e.jsx(F,{className:"space-y-6",children:e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsxs(n,{htmlFor:"sessions",children:["Sessions per Month: ",a]}),e.jsx(g,{id:"sessions",min:1,max:12,step:1,value:[a],onValueChange:s=>v(s[0]),className:"mt-2"})]}),e.jsxs("div",{children:[e.jsx(n,{htmlFor:"qatar-cost",children:"In-Person Qatar (QAR per session)"}),e.jsx(j,{id:"qatar-cost",type:"number",value:c,onChange:s=>N(Number(s.target.value)),className:"mt-2"})]}),e.jsxs("div",{children:[e.jsx(n,{htmlFor:"online-cost",children:"Online Therapy (per session)"}),e.jsx(j,{id:"online-cost",type:"number",value:d,onChange:s=>f(Number(s.target.value)),className:"mt-2"})]}),e.jsxs("div",{children:[e.jsx(n,{htmlFor:"currency",children:"Online Therapy Currency"}),e.jsxs(M,{value:m,onValueChange:y,children:[e.jsx(T,{id:"currency",className:"mt-2",children:e.jsx(U,{})}),e.jsxs(B,{children:[e.jsx(i,{value:"QAR",children:"QAR (Qatari Riyal)"}),e.jsx(i,{value:"USD",children:"USD (US Dollar)"}),e.jsx(i,{value:"EUR",children:"EUR (Euro)"}),e.jsx(i,{value:"GBP",children:"GBP (British Pound)"})]})]})]}),e.jsxs("div",{children:[e.jsxs(n,{htmlFor:"insurance",children:["Insurance Coverage: ",o,"%"]}),e.jsx(g,{id:"insurance",min:0,max:100,step:5,value:[o],onValueChange:s=>C(s[0]),className:"mt-2"})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"p-4 bg-muted rounded-lg",children:[e.jsx("h3",{className:"font-semibold mb-3 text-lg",children:"Monthly Cost Breakdown"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"In-Person Qatar"}),e.jsxs("p",{className:"text-2xl font-bold text-foreground",children:["QAR ",x.toFixed(0)]}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["After insurance: QAR ",l.toFixed(0)]})]}),e.jsxs("div",{className:"border-t pt-3",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Online International"}),e.jsxs("p",{className:"text-2xl font-bold text-foreground",children:["QAR ",h.toFixed(0)]}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["After insurance: QAR ",u.toFixed(0)]})]}),e.jsxs("div",{className:"border-t pt-3",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Monthly Savings"}),e.jsxs("p",{className:`text-2xl font-bold ${t>0?"text-green-600":"text-red-600"}`,children:[t>0?"+":"","QAR ",Math.abs(t).toFixed(0)]}),e.jsx("p",{className:"text-sm text-muted-foreground",children:t>0?`Save ${p}% with online`:`In-person is ${Math.abs(Number(p))}% cheaper`})]}),e.jsxs("div",{className:"border-t pt-3",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Annual Cost Difference"}),e.jsxs("p",{className:`text-xl font-semibold ${t>0?"text-green-600":"text-red-600"}`,children:[t>0?"+":"","QAR ",Math.abs(t*12).toFixed(0)]})]})]})]}),e.jsx("div",{className:"p-4 bg-muted/50 rounded-lg",children:e.jsxs("p",{className:"text-sm text-muted-foreground",children:[e.jsx("strong",{children:"Note:"})," Online therapy platforms like BetterHelp, Talkspace typically range $60-80 USD per session. Qatar in-person therapy ranges QAR 400-700 per session. Insurance coverage varies by provider."]})})]})]})})]})};export{K as TherapyCostCalculator};
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.