1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8122],{78122:function(e,a,l){l.r(a);var s=l(31549),t=l(44194),i=l(12235),n=l.n(i),o=l(55893),r=l(72457),m=l(67360),c=l(62670),d=l(83585),u=l(548),g=l(16360),p=l(91005),v=l(6727);let x=[{label:"25% Individual / 75% Family",value:"0.25"},{label:"50% Individual / 50% Family",value:"0.5"},{label:"75% Individual / 25% Family",value:"0.75"}],h=[{label:"10%",value:"0.1"},{label:"20%",value:"0.2"},{label:"30%",value:"0.3"},{label:"40%",value:"0.4"},{label:"50%",value:"0.5"}],y=e=>{let{instanceId:a}=e,{trackEvent:l}=(0,v.C)(),[i,n]=(0,t.useState)(!1),[u,g]=(0,t.useState)(!1),[p,y]=(0,t.useState)(""),[f,j]=(0,t.useState)(""),[b,N]=(0,t.useState)({savings:"0",lowerRange:"0",upperRange:"0"});return(0,s.jsxs)("div",{className:"grid gap-y-6 lg:max-w-lg bg-white p-6 rounded-2xl",children:[(0,s.jsx)("p",{className:"text-sm",children:"Tell us your employee size and select your desired criteria to see the estimated cost savings.*"}),(0,s.jsxs)(o.l,{className:"gap-y-4",mode:"onSubmit",defaultValues:{employees:100,engagement:f,ratio:p},onSubmit:(e,a)=>{let{employees:l}=e,{clearErrors:s,setError:t}=a;if(g(!0),s(),!l){t("employees",{type:"client",message:"Please insert a valid number"}),g(!1);return}if(!f){t("engagement",{type:"client",message:"Please select a valid value"}),g(!1);return}if(!p){t("ratio",{type:"client",message:"Please select a valid ratio"}),g(!1);return}let i=parseFloat(l)*parseFloat(f),o=i*parseFloat(p)*6296+i*(1-parseFloat(p))*19276;N({savings:(.04*o).toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2}),lowerRange:(.032*o).toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2}),upperRange:(.048*o).toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})}),g(!1),n(!0)},children:[(0,s.jsxs)("div",{className:"grid gap-y-2 relative",children:[(0,s.jsx)("p",{className:"font-medium",children:"Number of employees"}),(0,s.jsx)(r.a,{className:"rounded-lg",name:"employees",placeholder:"Number of employees",type:"number",min:1,max:99999,validations:["required"]})]}),(0,s.jsxs)("div",{className:"grid gap-y-2 relative",children:[(0,s.jsx)("p",{className:"font-medium",children:"Expected employee engagement"}),(0,s.jsx)(m.j,{name:"engagement",children:(0,s.jsx)(c.t,{"aria-label":"Expected employee engagement",placeholder:"Employee engagement",options:h,disabled:!1,onSelect:e=>{j(e.value),n(!1)}})})]}),(0,s.jsxs)("div",{className:"grid gap-y-2 relative",children:[(0,s.jsx)("p",{className:"font-medium",children:"Ratio of health insurance plan types (Individual vs. Family)"}),(0,s.jsx)(m.j,{name:"ratio",children:(0,s.jsx)(c.t,{"aria-label":"Ratio of health insurance plan types",placeholder:"Ratio of health insurance plan",options:x,disabled:!1,onSelect:e=>{y(e.value),n(!1)}})})]}),(0,s.jsx)("div",{className:"mt-2",children:(0,s.jsx)(d.z,{disabled:!1,type:"submit",label:"Calculate your savings",variant:"primary",className:"w-full !text-lg rounded-lg font-medium font-sans",loading:u,onClick:()=>{l({event:"select_content",content_type:"Calculate your savings",item_id:"CostSavingsCalculator-".concat(a),action:"CostSavingsCalculator-calculate-savings"})}})})]}),i&&parseFloat(null==b?void 0:b.savings)>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("p",{className:"text-xl text-center",children:["You could save ",(0,s.jsxs)("strong",{children:["$",null==b?void 0:b.savings]})," per year!"]}),(0,s.jsx)("p",{className:"text-xs text-center",children:"Range: \xb120%"}),(0,s.jsxs)("div",{className:"relative h-1.5 bg-gray-400 rounded-md -mt-4",children:[(0,s.jsx)("div",{className:"absolute h-1.5 w-1/2 top-0 left-1/4 bg-green-600 rounded-md"}),(0,s.jsxs)("div",{className:"absolute top-4 left-1/4 -translate-x-1/2 p-3 sm:p-1 font-medium text-xs",children:["$",null==b?void 0:b.lowerRange]}),(0,s.jsxs)("div",{className:"absolute top-4 left-1/2 -translate-x-1/2 p-3 sm:p-1 font-medium text-xs",children:["$",null==b?void 0:b.savings]}),(0,s.jsxs)("div",{className:"absolute top-4 left-3/4 -translate-x-1/2 p-3 sm:p-1 font-medium text-xs",children:["$",null==b?void 0:b.upperRange]})]}),(0,s.jsx)(d.z,{href:"#contact-us-employers-form",label:"Enquire today",variant:"secondary",className:"w-full !text-lg rounded-lg font-medium font-sans mt-8",onClick:()=>{l({event:"select_content",content_type:"Enquire today",item_id:"CostSavingsCalculator-".concat(a),origin:"CostSavingsCalculator-apply-employee-benefits"})}})]}):null,(0,s.jsxs)("p",{className:"text-sm",children:["*Estimated savings are based off the national average of individual and family health insurance plan costs for employers in 2024. Data is from the Kaiser Family Foundation's 2024 Employer Health Benefits Survey. Savings are based on a 3% reduction in health insurance plan costs using evidence published in the journal"," ",(0,s.jsx)("em",{children:"Applied Health Economics and Health Policy"})," (Doucette et al., 2024)"]})]})};a.default=e=>{let{sectionId:a,instanceId:l,title:t,subtitle:i}=e;return(0,s.jsx)("section",{id:a,className:"bg-green-50 my-12 md:my-16",itemID:"CostSavingsCalculator-".concat(l),children:(0,s.jsxs)(u.E,{className:"grid lg:grid-cols-2 gap-x-24 items-start",children:[(0,s.jsxs)("div",{className:"grid gap-y-6",children:[(0,s.jsx)(p.Z,{className:"font-semibold",level:"2",title:t}),(0,s.jsx)(g.n,{size:"large",children:i}),(0,s.jsx)(n(),{src:"/tax-calculator-employers.svg",width:247,height:194,alt:"",className:"mt-10"})]}),(0,s.jsx)(y,{instanceId:l})]})})}}}]);
2//# sourceMappingURL=8122.e2b39243c7d38212.js.map
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.