PageSourceSearch

https://smart-health-benefits.vercel.app/_next/static/chunks/app/apply/page-64dc3b8241c6c4b3.js

js smart-health-benefits.vercel.app collected 2026-10-03 07:45:43 UTC 43,962 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[385],{89:(e,s,a)=>{"use strict";a.d(s,{p:()=>t});let t={AL:"Alabama",AK:"Alaska",AZ:"Arizona",AR:"Arkansas",CA:"California",CO:"Colorado",CT:"Connecticut",DE:"Delaware",FL:"Florida",GA:"Georgia",HI:"Hawaii",ID:"Idaho",IL:"Illinois",IN:"Indiana",IA:"Iowa",KS:"Kansas",KY:"Kentucky",LA:"Louisiana",ME:"Maine",MD:"Maryland",MA:"Massachusetts",MI:"Michigan",MN:"Minnesota",MS:"Mississippi",MO:"Missouri",MT:"Montana",NE:"Nebraska",NV:"Nevada",NH:"New Hampshire",NJ:"New Jersey",NM:"New Mexico",NY:"New York",NC:"North Carolina",ND:"North Dakota",OH:"Ohio",OK:"Oklahoma",OR:"Oregon",PA:"Pennsylvania",RI:"Rhode Island",SC:"South Carolina",SD:"South Dakota",TN:"Tennessee",TX:"Texas",UT:"Utah",VT:"Vermont",VA:"Virginia",WA:"Washington",WV:"West Virginia",WI:"Wisconsin",WY:"Wyoming"}},2143:(e,s,a)=>{"use strict";a.d(s,{default:()=>X});var t=a(5155),l=a(2115),n=a(2619),i=a.n(n),r=a(8455),o=a(9837);let c={width:28,height:28,viewBox:"0 0 24 24",fill:"none","aria-hidden":!0},d={stroke:"currentColor",strokeWidth:1.6,strokeLinecap:"round",strokeLinejoin:"round"},u=()=>(0,t.jsxs)("svg",{...c,children:[(0,t.jsx)("rect",{x:"3",y:"7.5",width:"18",height:"12",rx:"2.2",...d}),(0,t.jsx)("path",{d:"M9 7.5V6a1.8 1.8 0 0 1 1.8-1.8h2.4A1.8 1.8 0 0 1 15 6v1.5",...d}),(0,t.jsx)("path",{d:"M3 12.5h18",...d})]}),p=()=>(0,t.jsxs)("svg",{...c,children:[(0,t.jsx)("circle",{cx:"12",cy:"8",r:"3.4",...d}),(0,t.jsx)("path",{d:"M5.5 20c.8-3.4 3.4-5.2 6.5-5.2s5.7 1.8 6.5 5.2",...d})]}),h=()=>(0,t.jsxs)("svg",{...c,children:[(0,t.jsx)("rect",{x:"3.5",y:"6.5",width:"17",height:"12",rx:"2.5",...d}),(0,t.jsx)("path",{d:"M3.5 10h17",...d}),(0,t.jsx)("circle",{cx:"16.5",cy:"14.5",r:"1.1",fill:"currentColor"})]}),y=()=>(0,t.jsxs)("svg",{...c,children:[(0,t.jsx)("path",{d:"M12 3.5 5 6.2v5.4c0 4.3 2.9 7.4 7 8.9 4.1-1.5 7-4.6 7-8.9V6.2L12 3.5Z",...d}),(0,t.jsx)("path",{d:"m8.8 12 2.2 2.2 4.2-4.4",...d})]}),m=()=>(0,t.jsxs)("svg",{...c,children:[(0,t.jsx)("path",{d:"M12 3.5 5 6.2v5.4c0 4.3 2.9 7.4 7 8.9 4.1-1.5 7-4.6 7-8.9V6.2L12 3.5Z",...d}),(0,t.jsx)("path",{d:"M12 8v5M12 15.8v.01",...d})]}),x=()=>(0,t.jsxs)("svg",{...c,children:[(0,t.jsx)("path",{d:"M6 4v5a4 4 0 0 0 8 0V4",...d}),(0,t.jsx)("path",{d:"M10 13v2.5a5 5 0 0 0 10 0V13",...d}),(0,t.jsx)("circle",{cx:"20",cy:"10.5",r:"2",...d})]}),b=()=>(0,t.jsxs)("svg",{...c,children:[(0,t.jsx)("rect",{x:"3.5",y:"9.5",width:"17",height:"8",rx:"4",transform:"rotate(-25 12 13.5)",...d}),(0,t.jsx)("path",{d:"m8.5 9.2 5.4 5.6",...d})]}),f=()=>(0,t.jsxs)("svg",{...c,children:[(0,t.jsx)("circle",{cx:"12",cy:"6",r:"2.2",...d}),(0,t.jsx)("circle",{cx:"6",cy:"17",r:"2.2",...d}),(0,t.jsx)("circle",{cx:"18",cy:"17",r:"2.2",...d}),(0,t.jsx)("path",{d:"m10.9 8 -3.7 6.9M13.1 8l3.7 6.9M8.2 17h7.6",...d})]}),g=()=>(0,t.jsxs)("svg",{...c,children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"8.5",...d}),(0,t.jsx)("path",{d:"m15.2 8.8-1.8 4.6-4.6 1.8 1.8-4.6 4.6-1.8Z",...d})]}),j=()=>(0,t.jsx)("svg",{...c,children:(0,t.jsx)("path",{d:"M12 20s-7.5-4.6-7.5-10A4.3 4.3 0 0 1 12 7.4 4.3 4.3 0 0 1 19.5 10c0 5.4-7.5 10-7.5 10Z",...d})}),v=e=>{let{size:s=14}=e;return(0,t.jsx)("svg",{width:s,height:s,viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M3 8.5L6.5 12L13 4.5",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})},k=e=>{let{size:s=14}=e;return(0,t.jsx)("svg",{width:s,height:s,viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M13 8H3m0 0l5-5m-5 5l5 5",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})};function N(e){var s;let{groups:a,stepLabel:l,progress:n}=e;return(0,t.jsxs)("aside",{className:"pf-rail","aria-label":"Progress",children:[(0,t.jsx)("div",{className:"pf-rail-track-mobile","aria-hidden":!0,children:(0,t.jsx)("div",{className:"pf-rail-track-fill",style:{width:"".concat(Math.round(100*n),"%")}})}),(0,t.jsxs)("div",{className:"pf-rail-mobile-meta","aria-hidden":!0,children:[(0,t.jsx)("span",{children:null==(s=a.find(e=>"current"===e.state))?void 0:s.label}),(0,t.jsx)("span",{children:l})]}),(0,t.jsx)("ol",{className:"pf-rail-list",children:a.map(e=>(0,t.jsxs)("li",{className:"pf-rail-item ".concat(e.state),children:[(0,t.jsx)("span",{className:"pf-rail-dot","aria-hidden":!0,
1children:"complete"===e.state&&(0,t.jsx)(v,{size:11})}),(0,t.jsx)("span",{className:"pf-rail-label",children:e.label})]},e.key))})]})}function w(e){let{icon:s,label:a,desc:l,selected:n,onSelect:i}=e;return(0,t.jsxs)("button",{type:"button",className:"pf-option ".concat(n?"selected":""),"aria-pressed":n||void 0,onClick:i,children:[s&&(0,t.jsx)("span",{className:"pf-option-icon",children:s}),(0,t.jsxs)("span",{className:"pf-option-text",children:[(0,t.jsx)("span",{className:"pf-option-label",children:a}),l&&(0,t.jsx)("span",{className:"pf-option-desc",children:l})]})]})}function M(e){let{eyebrow:s,stepLabel:a,title:l,sub:n,options:i,value:r,onSelect:o,onBack:c,backLabel:d,columns:u=2}=e;return(0,t.jsxs)("div",{className:"pf-step",children:[(0,t.jsxs)("div",{className:"pf-step-meta",children:[(0,t.jsx)("span",{className:"pf-eyebrow",children:s}),(0,t.jsx)("span",{className:"pf-step-count",children:a})]}),(0,t.jsx)("h1",{className:"pf-title",children:l}),n&&(0,t.jsx)("p",{className:"pf-sub",children:n}),(0,t.jsx)("div",{className:"pf-options pf-options--".concat(u),children:i.map(e=>(0,t.jsx)(w,{icon:e.icon,label:e.label,desc:e.desc,selected:r===e.value,onSelect:()=>o(e.value)},e.value))}),c&&(0,t.jsxs)("button",{type:"button",className:"pf-back",onClick:c,children:[(0,t.jsx)(k,{}),d]})]})}function S(e){let{icon:s,tone:a,title:l,body:n,points:i,cta:r,onBack:o,backLabel:c,children:d}=e;return(0,t.jsxs)("div",{className:"pf-step pf-interstitial",children:[s&&(0,t.jsx)("div",{className:"pf-int-icon ".concat("warn"===a?"warn":""),children:s}),(0,t.jsx)("h1",{className:"pf-title",children:l}),n&&(0,t.jsx)("p",{className:"pf-sub",children:n}),i&&i.length>0&&(0,t.jsx)("ul",{className:"pf-int-points",children:i.map(e=>(0,t.jsxs)("li",{children:[(0,t.jsx)(v,{}),(0,t.jsx)("span",{children:e})]},e))}),r&&(0,t.jsx)("div",{className:"pf-int-ctas",children:r}),d,o&&(0,t.jsxs)("button",{type:"button",className:"pf-back",onClick:o,children:[(0,t.jsx)(k,{}),c]})]})}function A(e){let{eyebrow:s,stepLabel:a,title:l,sub:n,options:i,value:r=[],onChange:o,onContinue:c,onBack:d,backLabel:u,continueLabel:p,noneLabel:h,columns:y=2}=e;return(0,t.jsxs)("div",{className:"pf-step",children:[(0,t.jsxs)("div",{className:"pf-step-meta",children:[(0,t.jsx)("span",{className:"pf-eyebrow",children:s}),(0,t.jsx)("span",{className:"pf-step-count",children:a})]}),(0,t.jsx)("h1",{className:"pf-title",children:l}),n&&(0,t.jsx)("p",{className:"pf-sub",children:n}),(0,t.jsx)("div",{className:"pf-options pf-options--".concat(y),children:i.map(e=>(0,t.jsx)(w,{icon:e.icon,label:e.label,desc:e.desc,selected:r.includes(e.value),onSelect:()=>{var s;return!e.disabled&&(s=e.value,void(r.includes(s)?o(r.filter(e=>e!==s)):o([...r,s])))}},e.value))}),(0,t.jsxs)("div",{className:"pf-int-ctas",children:[(0,t.jsx)("button",{type:"button",className:"btn btn-primary btn-lg",onClick:c,children:p}),r.length>0&&(0,t.jsx)("button",{type:"button",className:"btn btn-ghost",onClick:()=>o([]),children:h})]}),d&&(0,t.jsxs)("button",{type:"button",className:"pf-back",onClick:d,children:[(0,t.jsx)(k,{}),u]})]})}var O=a(5137),C=a(7024),B=a(9101);let T={ind:1e4,family:12e3},I={ind:1,spouse:1.8,children:1.8,family:2.6},L={none:{rxGeneric:0,rxBrand:0,rxSpecialty:0},generics:{rxGeneric:12,rxBrand:0,rxSpecialty:0},brand:{rxGeneric:6,rxBrand:12,rxSpecialty:0},specialty:{rxGeneric:6,rxBrand:6,rxSpecialty:12}},D={rarely:"healthy",often:"chronic",bigYear:"heavy"},Y={pcp:3,specialist:1,urgentCare:1,labs:2},H={pregnancy:{specialist:12,labs:6,imaging:2,maternity:1,inpatientDays:2},surgery:{specialist:4,labs:4,imaging:2,outpatientSurgery:1},therapy:{mentalHealth:24}},E=["Costs are an estimate for a full year, using national average prices for each service. Your actual bills will differ.","For households, everyday care is scaled up (1.8x for a couple or a parent with children, 2.6x for a family) but prescriptions are not, because they belong to one person.","Silver is ranked using the higher $10,000 out-of-pocket maximum shown on Benefit Airship's plan card, not the $6,000 on their detail page, until they confirm which is correct.","Plans over your budget are still shown, ranked below the ones that fit, because the cheapest monthly price is often not the cheapest year."];function P(e,s){let a=O.BB[e];
1return a?"silver"===e&&s?{...a.cost,oop:T}:a.cost:null}let W=new Intl.DateTimeFormat("en-US",{timeZone:"America/New_York",year:"numeric",month:"numeric",day:"numeric"});var V=a(6743);let R={rail:{you:"About you",care:"Your care",extras:"Extras",results:"Your match"},stepOf:(e,s)=>"Question ".concat(e," of ").concat(s),back:"Back",continue:"Continue",skip:"None of these",q:{audience:{title:"Who is this coverage for?",sub:"Individuals and families enroll here. Setting a plan up for a team works a little differently."},household:{title:"Who needs coverage?",sub:"Benefit Airship prices by household, not by age, so this is the only thing that changes your premium."},care:{title:"How do you want to see a doctor?",sub:"This decides whether a full medical plan is right for you, or whether virtual care is enough."},usage:{title:"How often do you see a doctor?",sub:"A rough answer is fine. We use it to estimate what a year actually costs you, not just the monthly premium."},rx:{title:"Do you take any prescriptions?",sub:"This matters more than most people expect. One plan covers drugs with a discount card rather than real coverage."},budget:{title:"What would you like to keep it under?",sub:"We will still show you everything. Plans over your budget just rank lower."},hsa:{title:"Do you want an HSA-qualified plan?",sub:"An HSA lets you pay for care with pre-tax money. It pairs with a higher deductible."},state:{title:"What state do you live in?",sub:"Pricing is the same nationwide. We ask so we have it on file for your application."},lifeEvents:{title:"Anything coming up in the next year?",sub:"Choose any that apply. This changes which plan comes out cheapest by a lot."},addOns:{title:"Want to add anything?",sub:"Optional, and you can decide later. Prices shown are for your household."}},options:{audience:{individual:{label:"Just me or my family",desc:"You are buying your own coverage"},business:{label:"My business and employees",desc:"You are setting up a group for a team"}},household:{ind:{label:"Just me",desc:"Individual coverage"},spouse:{label:"Me and my spouse",desc:"Two adults"},children:{label:"Me and my children",desc:"One adult plus children"},family:{label:"My whole family",desc:"Two adults plus children"}},care:{inPerson:{label:"I want real doctors and hospitals",desc:"In person visits, specialists, and hospital cover"},virtualOk:{label:"Virtual visits are enough for me",desc:"Video appointments and prescriptions only"}},usage:{rarely:{label:"Rarely",desc:"A check-up and the occasional sick visit"},sometimes:{label:"A few times a year",desc:"Some visits, the odd test"},often:{label:"Regularly",desc:"Ongoing care or a condition I manage"},bigYear:{label:"It is going to be a big year",desc:"Surgery, a baby, or ongoing treatment"}},rx:{none:{label:"None",desc:"No regular medication"},generics:{label:"Generics only",desc:"Low cost, widely available drugs"},brand:{label:"A brand-name drug",desc:"Something without a generic version"},specialty:{label:"A specialty medication",desc:"Biologics, infusions, or similar"}},hsa:{yes:{label:"Yes",desc:"I want to save pre-tax for medical costs"},no:{label:"No",desc:"I would rather have lower out-of-pocket costs"},any:{label:"Not sure",desc:"Show me whatever fits best"}},lifeEvents:{pregnancy:{label:"Planning a pregnancy",desc:"Prenatal care and a delivery"},surgery:{label:"A surgery or procedure",desc:"Something already on the calendar"},therapy:{label:"Regular therapy",desc:"Weekly or fortnightly sessions"}},addOns:{visionDental:{label:"Dental and vision",desc:"Cleanings, fillings, orthodontics, glasses"},accident:{label:"Accident cover",desc:"Cash benefit for injuries, plus $50,000 accidental death"},hospital:{label:"Hospital cover",desc:"Pays a fixed amount if you are admitted"}}},employer:{title:"Employer plans work a little differently",body:"You do not pick a plan for your team here. You register the business first, Benefit Airship sets up the group, and then your employees enroll themselves and choose their own plan.",points:["No census and no headcount minimum to register","Employees pick their own plan and tier","You can offer access without paying premiums, or pay them yourself"],cta:"Register my business",back:"Actually, this is just for me"},virtualOnly:{title:"Virtual care only, then",body:"BASE is Benefit Airship's virtual plan. It covers unlimited video visits with primary care, urgent care, specialists and mental health at no cost per visit.",warnTitle:"Be clear on what this is not",warn:["It does not cover in-person visits, hospital stays, or surgery.","It is not major medical coverage.","Its prescription benefit is a discount, not insurance."],switch:"Show me medical plans instead"},results:{eyebrow:"Your match",title:"Here is what fits best",subFor:(e,s)=>"Based on what you told us, for ".concat(e," at $").concat(s.toLocaleStr
1ing()," a month."),recommended:"Best fit",perMonth:"/mo",estYear:"Estimated cost for the year",estYearHelp:"Premiums plus what you would likely pay out of pocket, using national average prices for the care you described. Your real bills will differ.",seeAll:"Compare all five plans",hideAll:"Hide comparison",alternates:"Also worth a look",whyThis:"Why this one",addOnsTitle:"Add-ons",addOnsSub:"Optional. Prices are per month for your household.",suggestedTag:"Worth considering",requiresMedical:"Needs a medical plan",monthlyTotal:"Your monthly total",restart:"Start over",teamNudge:"Setting this up for a team instead?",teamNudgeLink:"Register your business",reasons:{lowestTotal:"Lowest estimated cost for the year",bestOverall:"Best overall fit for what you described",fitsBudget:"Within your budget",hsaMatch:"HSA-qualified, as you wanted",absorbsBigYear:"Holds up in an expensive year",rxNotCovered:"Ranked lower: its prescription benefit is a discount card, not coverage"},flags:{hitsMoop:"You would hit the out-of-pocket maximum",discountRx:"Prescriptions are a discount card, not coverage",overBudget:"Over your budget",disputedRange:"Benefit Airship lists two different out-of-pocket maximums for this plan"},excluded:{noSpecialtyRx:"MVP is not shown because it does not cover specialty medication."}},contact:{title:"Want a copy of this?",sub:"Optional. If you give us an email we will send your plan choice and this estimate, so you can pick it back up if you do not finish today.",firstName:"First name",lastName:"Last name",email:"Email",phone:"Phone",optional:"Optional",badEmail:"That does not look like an email address"},disclosures:{title:"Before you continue",effective:e=>"Coverage starts ".concat(e,"."),effectiveHelp:e=>"Benefit Airship runs on a monthly cycle. Enroll by the ".concat(e,"th and coverage begins the 1st of next month; after that it begins the month following."),zeroToday:e=>"Their checkout will show $0.00 due today. That is not an error. Your first payment of $".concat(e.toLocaleString()," is taken on the 15th, then monthly."),lockTitle:"This is a 12-month commitment",lockBody:"Medical plans run for 12 months. If you cancel before the term is up, Benefit Airship applies a 24-month waiting period before you can enroll again. Add-ons like dental, accident and hospital can be cancelled any time before the 15th.",lockAck:"I understand this is a 12-month commitment with a 24-month wait if I cancel early.",openTitle:"Worth confirming first",openHelp:"These are stated inconsistently in Benefit Airship's own materials. Check them before you enroll.",natureTitle:"What these plans are",natureBody:"These are group plans arranged through Benefit Airship, not plans bought on the ACA marketplace. Benefit Airship states they meet federal ACA requirements and include the essential health benefits. Coverage, eligibility and final rates are governed by the controlling plan documents and their underwriting.",cta:"Continue to enrollment",ctaSending:"Setting up your enrollment…",ctaHelp:"You will finish on benefitairship.com, which is where payment is taken.",errorTitle:"We could not set that up just now",errorBody:"This is on our side, not yours. You can go straight to the plan on Benefit Airship instead, or try again in a moment.",errorDirect:"Go to the plan on Benefit Airship",errorAddOnNote:"Note that add-ons will not carry across, so add them on their site."},modelNotesTitle:"How we worked this out"},F=e=>0==Math.round(100*e)%100?"$".concat(Math.round(e).toLocaleString()):"$".concat(e.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})),K=e=>"$".concat(Math.round(e).toLocaleString());function q(e){var s,a,n,r,o;let{locale:c="en",answers:d,onBack:u,onRestart:p}=e,h=(0,l.useMemo)(()=>(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=B.zl.length&&e.household?e.household:"ind",a=function(){var e,s;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,C.OD)(),l=a.household||"ind";for(let[s,l]of Object.entries("sometimes"===a.usage?Y:(null==(e=C.eI[D[a.usage]||"healthy"])?void 0:e.use)||{}))s.startsWith("rx")||(t[s]=(t[s]||0)+l);for(let e of Array.isArray(a.lifeEvents)?a.lifeEvents:[])for(let[s,a]of Object.entries(H[e]||{}))t[s]=(t[s]||0)+a;let n=null!=(s=I[l])?s:1;if(1!==n)for(let e of Object.keys(t))e.startsWith("rx")||(t[e]=Math.round(t[e]*n));return Object.assign(t,L[a.rx]||L.none),t}(e),t="number"==typeof e.budget?e.budget:null,l=[],n=[];for(let i of O.wS){let r=(0,B.VA)(i.key,s);if(null==r)continue;if("specialty"===e.rx&&"mvp"===i.key){l.push({key:i.key,reason:"noSpecialtyRx"});continue}let o=(0,C.FB)(P(i.key,!0),r,s,a),c=(0,C.FB)(P(i.key,!1),r,s,a);if(!o)continue;let d=[];
1o.hitMoop&&d.push("hitsMoop"),o.discountSpend>0&&d.push("discountRx"),null!=t&&r>t&&d.push("overBudget");let u="silver"===i.key&&c&&c.total!==o.total?{low:c.total,high:o.total}:null;u&&d.push("disputedRange"),n.push({key:i.key,name:i.name,blurb:i.blurb,premium:r,annual:o,disputedRange:u,flags:d,caveats:i.caveats||[],hsa:"Yes"===i.rows.hsa,inBudget:null==t||r<=t,reasons:[]})}let i="brand"===e.rx||"specialty"===e.rx;for(let e of n)i&&e.flags.includes("discountRx")&&e.reasons.push("rxNotCovered");let r="yes"===e.hsa,o=e=>i&&e.flags.includes("discountRx")?1:0;n.sort((e,s)=>{if(e.inBudget!==s.inBudget)return e.inBudget?-1:1;let a=o(e),t=o(s);return a!==t?a-t:r&&e.hsa!==s.hsa?e.hsa?-1:1:e.annual.total-s.annual.total});let c=n.reduce((e,s)=>e&&e.annual.total<=s.annual.total?e:s,null);for(let s of n)s.inBudget&&null!=t&&s.reasons.push("fitsBudget"),s.hsa&&r&&s.reasons.push("hsaMatch"),s.annual.hitMoop||"bigYear"!==e.usage||s.reasons.push("absorbsBigYear"),c&&s.key===c.key&&s.reasons.push("lowestTotal"),s.key===n[0].key&&c&&s.key!==c.key&&s.reasons.push("bestOverall");let d="virtualOk"===e.care,u=n.length?Math.min(...n.map(e=>e.premium)):1/0,p=d&&(null==t||t<u)?"virtualOnly":"ok";return{status:p,tier:s,use:a,budgetCap:t,ranked:n,primary:"virtualOnly"===p?null:n[0]||null,alternates:n.slice(1,3),excluded:l,addons:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ind",t=Array.isArray(e.addOns)?e.addOns.filter(e=>e in B.M8):[],l=!!s,n=[],i=[],r=t.filter(e=>!B.M8[e].requiresMedical||!!l||(n.push({key:e,reason:"requiresMedical"}),!1));l&&("bronze"===s.key||"mvp"===s.key)&&!r.includes("hospital")&&i.push({key:"hospital",reason:"highDeductible"}),r.includes("accident")||"family"!==e.household&&"children"!==e.household||i.push({key:"accident",reason:"kidsAtHome"});let o=e=>e.map(e=>{let s="string"==typeof e?e:e.key,t=B.M8[s];return{..."string"==typeof e?{key:s}:e,name:t.name,tier:(0,B.lT)(t,a),price:(0,B.VA)(s,a)}});return{selected:o(r),blocked:n,suggested:o(i)}}(e,n[0],s),notes:E}})(d),[d]),y=h.tier,[m,x]=(0,l.useState)(null!=(n=null==(s=h.primary)?void 0:s.key)?n:null),[b,f]=(0,l.useState)(()=>h.addons.selected.map(e=>e.key)),[g,j]=(0,l.useState)(!1),[N,w]=(0,l.useState)(!1),[M,S]=(0,l.useState)({firstName:"",lastName:"",email:"",phone:""}),[A,T]=(0,l.useState)("idle"),[q,$]=(0,l.useState)(null),G="virtualOnly"===h.status,U=m?h.ranked.find(e=>e.key===m):null,z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,{year:s,month:a,day:t}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,s=Object.fromEntries(W.formatToParts(e).map(e=>[e.type,e.value]));return{year:Number(s.year),month:Number(s.month),day:Number(s.day)}}(e),l=t<=15,n=new Date(Date.UTC(s,a-1+(l?1:2),1));return{onTime:l,cutoffDay:15,cutoff:new Date(Date.UTC(s,a-1,15)),effective:n,iso:n.toISOString().slice(0,10)}}(),Z=b.filter(e=>!(B.M8[e].requiresMedical&&!m)),_=(null!=(r=null==U?void 0:U.premium)?r:0)+Z.reduce((e,s)=>e+((0,B.VA)(s,(0,B.lT)(B.M8[s],y))||0),0)+(G&&!m&&(0,B.VA)("base",(0,B.lT)(B.M8.base,y))||0),J=(0,l.useMemo)(()=>{var e;let s=new Map;for(let a of null!=(e=null==U?void 0:U.caveats)?e:[])s.set(a.id,a);return[...s.values()]},[U]),X=async()=>{T("sending"),$(null);try{var e;let s=await fetch("/api/airship-checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({planKey:G&&!m?null:m,tier:y,addOns:G&&!m?[...Z,"base"]:Z,state:null!=(e=d.state)?e:null,contact:M,locale:c,answers:d})}),a=await s.json();if(!s.ok){$(a),T("error");return}window.location.assign(a.checkoutUrl)}catch(e){$(null),T("error")}},Q=null!=(o=null==(a=B.iB.find(e=>e.key===y))?void 0:a.short)?o:y;return(0,t.jsxs)("div",{className:"pf-step",children:[(0,t.jsx)("div",{className:"pf-step-meta",children:(0,t.jsx)("span",{className:"pf-eyebrow",children:R.results.eyebrow})}),(0,t.jsx)("h1",{className:"pf-title",children:R.results.title}),(0,t.jsx)("p",{className:"pf-sub",children:R.results.subFor(Q,_)}),G&&(0,t.jsxs)("div",{className:"apply-warnbox",style:{marginBottom:20},children:[(0,t.jsx)("strong",{children:R.virtualOnly.warnTitle}),(0,t.jsx)("ul",{children:R.virtualOnly.warn.map(e=>(0,t.jsx)("li",{children:e},e))})]}),h.excluded.map(e=>(0,t.jsx)("p",{className:"apply-note",children:R.results.excluded[e.reason]},e.key)),U&&(0,t.jsxs)("div",{className:"apply-plan apply-plan--primary",children:[(0,t.jsxs)("div",{className:"apply-plan-head",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"pill pill-green",children:R.results.recommended}),(0,t.jsx)("h2",{className:"apply-plan-name",children:U.name}),(0,t.jsx)("p",{className:"apply-plan-blurb",children:U.blurb})]}),(0,t.jsxs)("div",{className:"apply-plan-price",children:[(0,t.jsx)("strong",{children:F(U.premium)}),(0,t.jsx)("span",{children:R.results.perMonth})]})]}),(0,t.jsxs)("div",{className:"apply-plan-est",children:[(0,t.jsx)("span",{children:R.results.estYear}),(0,t.jsx)("strong",{children:U.disputedRange?"".concat(K(U.disputedRange.low)," to ").concat(K(U.disputedRange.high)):K(U.annual.total)})]}),(0,t.jsx)("p",{className:"apply-help",children:R.results.estYearHelp}),(0,t.jsx)("ul",{className:"pf-int-points",style:{marginTop:14},children:U.reasons.map(e=>(0,t.jsxs)("li",{children:[(0,t.jsx)(v,{}),(0,t.jsx)("span",{children:R.results.reasons[e]})]},e))}),U.flags.length>0&&(0,t.jsx)("div",{className:"apply-flags",children:U.flags.map(e=>(0,t.jsx)("span",{className:"pill",children:R.results.flags[e]},e))})]}),h.alternates.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h3",{className:"apply-subhead",children:R.results.alternates}),(0,t.jsx)("div",{className:"apply-alts",children:h.alternates.map(e=>(0,t.jsxs)("button",{type:"button",className:"apply-plan apply-plan--alt ".concat(m===e.key?"selected":""),onClick:()=>x(e.key),children:[(0,t.jsxs)("div",{className:"apply-plan-head",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"apply-plan-name",children:e.name}),(0,t.jsx)("p",{className:"apply-plan-blurb",children:e.blurb})]}),(0,t.jsxs)("div",{className:"apply-plan-price",children:[(0,t.jsx)("strong",{children:F(e.premium)}),(0,t.jsx)("span",{children:R.results.perMonth})]})]}),(0,t.jsxs)("div",{className:"apply-plan-est",children:[(0,t.jsx)("span",{children:R.results.estYear}),(0,t.jsx)("strong",{children:K(e.annual.total)})]})]},e.key))})]}),(0,t.jsx)("button",{type:"button",className:"btn btn-ghost",onClick:()=>j(e=>!e),children:g?R.results.hideAll:R.results.seeAll}),g&&(0,t.jsx)("div",{className:"apply-table-wrap",children:(0,t.jsxs)("table",{className:"apply-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:"Plan"}),(0,t.jsx)("th",{children:"Monthly"}),(0,t.jsx)("th",{children:"Deductible"}),(0,t.jsx)("th",{children:"Out-of-pocket max"}),(0,t.jsx)("th",{children:"Est. year"})]})}),(0,t.jsx)("tbody",{children:h.ranked.map(e=>{let s=O.BB[e.key].rows,a="ind"!==y;return(0,t.jsxs)("tr",{className:e.key===m?"selected":"",children:[(0,t.jsx)("td",{children:(0,t.jsx)("button",{type:"button",className:"apply-linkbtn",onClick:()=>x(e.key),children:e.name})}),(0,t.jsx)("td",{children:F(e.premium)}),(0,t.jsx)("td",{children:K(a?s.dedFam:s.dedInd)}),(0,t.jsx)("td",{children:K(a?s.oopFam:s.oopInd)}),(0,t.jsx)("td",{children:K(e.annual.total)})]},e.key)})})]})}),(0,t.jsx)("h3",{className:"apply-subhead",children:R.results.addOnsTitle}),(0,t.jsx)("p",{className:"apply-help",children:R.results.addOnsSub}),(0,t.jsx)("div",{className:"apply-addons",children:Object.values(B.M8).filter(e=>!("base"===e.key&&G)).map(e=>{let s=e.requiresMedical&&!m,a=(0,B.VA)(e.key,(0,B.lT)(e,y)),l=h.addons.suggested.some(s=>s.key===e.key),n=O.CL[e.key];return(0,t.jsxs)("label",{className:"apply-addon ".concat(s?"blocked":""),children:[(0,t.jsx)("input",{type:"checkbox",checked:b.includes(e.ke
1y)&&!s,disabled:s,onChange:()=>{let s;return s=e.key,f(e=>e.includes(s)?e.filter(e=>e!==s):[...e,s])}}),(0,t.jsxs)("span",{className:"apply-addon-body",children:[(0,t.jsxs)("span",{className:"apply-addon-top",children:[(0,t.jsx)("strong",{children:e.name}),l&&!b.includes(e.key)&&(0,t.jsx)("span",{className:"pill pill-green",children:R.results.suggestedTag}),(0,t.jsxs)("span",{className:"apply-addon-price",children:[F(a),R.results.perMonth]})]}),(0,t.jsx)("span",{className:"apply-addon-desc",children:s?R.results.requiresMedical:null==n?void 0:n.blurb})]})]},e.key)})}),(0,t.jsxs)("div",{className:"apply-disclose",children:[(0,t.jsx)("h3",{className:"apply-subhead",style:{marginTop:0},children:R.disclosures.title}),(0,t.jsxs)("div",{className:"apply-total",children:[(0,t.jsx)("span",{children:R.results.monthlyTotal}),(0,t.jsxs)("strong",{children:[F(_),R.results.perMonth]})]}),(0,t.jsxs)("p",{className:"apply-disclose-line",children:[(0,t.jsx)("strong",{children:R.disclosures.effective(function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";return new Intl.DateTimeFormat("es"===s?"es-US":"en-US",{timeZone:"UTC",month:"long",day:"numeric",year:"numeric"}).format(e)}(z.effective,c))})," ",R.disclosures.effectiveHelp(15)]}),(0,t.jsx)("p",{className:"apply-disclose-line",children:R.disclosures.zeroToday(_)}),J.length>0&&(0,t.jsxs)("div",{className:"apply-warnbox",children:[(0,t.jsx)("strong",{children:R.disclosures.openTitle}),(0,t.jsx)("p",{className:"apply-help",style:{margin:"4px 0 8px"},children:R.disclosures.openHelp}),(0,t.jsx)("ul",{children:J.map(e=>(0,t.jsxs)("li",{children:[(0,t.jsxs)("strong",{children:[e.label,"."]})," ",e.text]},e.id))})]}),(0,t.jsxs)("div",{className:"apply-contact",children:[(0,t.jsx)("strong",{children:R.contact.title}),(0,t.jsx)("p",{className:"apply-help",style:{margin:"4px 0 12px"},children:R.contact.sub}),(0,t.jsx)("div",{className:"apply-contact-grid",children:[["firstName",R.contact.firstName,"given-name","text"],["lastName",R.contact.lastName,"family-name","text"],["email",R.contact.email,"email","email"],["phone",R.contact.phone,"tel","tel"]].map(e=>{let[s,a,l,n]=e;return(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"field-label",htmlFor:"apply-".concat(s),children:[a," ",(0,t.jsxs)("span",{className:"ck-field-optional",children:["\xb7 ",R.contact.optional]})]}),(0,t.jsx)("input",{id:"apply-".concat(s),className:"input",type:n,autoComplete:l,value:M[s],onChange:e=>S(a=>({...a,[s]:e.target.value}))})]},s)})})]}),(0,t.jsxs)("div",{className:"apply-lock",children:[(0,t.jsx)("strong",{children:R.disclosures.lockTitle}),(0,t.jsx)("p",{children:R.disclosures.lockBody}),(0,t.jsxs)("label",{className:"apply-ack",children:[(0,t.jsx)("input",{type:"checkbox",checked:N,onChange:e=>w(e.target.checked)}),(0,t.jsx)("span",{children:R.disclosures.lockAck})]})]}),(0,t.jsxs)("p",{className:"apply-help",children:[(0,t.jsxs)("strong",{children:[R.disclosures.natureTitle,"."]})," ",R.disclosures.natureBody]}),"error"===A&&(0,t.jsxs)("div",{className:"ck-submit-error",role:"alert",children:[(0,t.jsx)("strong",{children:R.disclosures.errorTitle}),(0,t.jsx)("p",{children:R.disclosures.errorBody}),(null==q?void 0:q.fallbackUrl)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("a",{className:"btn btn-dark",href:q.fallbackUrl,target:"_blank",rel:"noopener noreferrer",children:R.disclosures.errorDirect}),q.droppedAddOns&&(0,t.jsx)("p",{children:R.disclosures.errorAddOnNote})]})]}),(0,t.jsx)("button",{type:"button",className:"btn btn-primary btn-lg",disabled:!N||"sending"===A||!m&&!G,onClick:X,children:"sending"===A?R.disclosures.ctaSending:R.disclosures.cta}),(0,t.jsx)("p",{className:"apply-help",style:{marginTop:10},children:R.disclosures.ctaHelp})]}),(0,t.jsxs)("details",{className:"apply-assumptions",children:[(0,t.jsx)("summary",{children:R.modelNotesTitle}),(0,t.jsx)("ul",{children:h.notes.map(e=>(0,t.jsx)("li",{children:e},e))})]}),(0,t.jsxs)("div",{className:"pf-int-ctas",style:{marginTop:18},children:[(0,t.jsxs)("button",{type:"button",className:"pf-back",onClick:u,children:[(0,t.jsx)(k,{}),R.back]}),(0,t.jsx)("button",{type:"button",className:"apply-linkbtn",onClick:p,children:R.results.restart})]}),(0,t.jsxs)("p",{className:"apply-help",style:{marginTop:14},children:[R.results.teamNudge," ",(0,t.jsx)(i(),{href:(0,V.A$)(c),className:"apply-linkbtn",children:R.results.teamNudgeLink})]})]})}var $=a(89);let G="shb:apply:v1",U=[{id:"audience",group:"you"},{id:"household",group:"you"},{id:"care",group:"you"},{id:"usage",group:"care"}
1,{id:"rx",group:"care",skip:e=>"virtualOk"===e.care},{id:"budget",group:"care"},{id:"hsa",group:"care",skip:e=>"virtualOk"===e.care},{id:"lifeEvents",group:"care",multi:!0},{id:"state",group:"extras"},{id:"addOns",group:"extras",multi:!0}],z=U.map(e=>e.id),Z=["you","care","extras","results"],_={audience:{individual:(0,t.jsx)(p,{}),business:(0,t.jsx)(u,{})},household:{ind:(0,t.jsx)(p,{}),spouse:(0,t.jsx)(()=>(0,t.jsxs)("svg",{...c,children:[(0,t.jsx)("circle",{cx:"9",cy:"8.5",r:"3",...d}),(0,t.jsx)("circle",{cx:"16.5",cy:"9.5",r:"2.4",...d}),(0,t.jsx)("path",{d:"M3.5 19.5c.7-2.9 2.9-4.5 5.5-4.5s4.8 1.6 5.5 4.5",...d}),(0,t.jsx)("path",{d:"M15.5 15.4c2.3.2 4.1 1.6 4.9 4.1",...d})]}),{}),children:(0,t.jsx)(()=>(0,t.jsxs)("svg",{...c,children:[(0,t.jsx)("circle",{cx:"9.5",cy:"7.5",r:"3",...d}),(0,t.jsx)("path",{d:"M4 19.5c.7-3 2.9-4.6 5.5-4.6s4.8 1.6 5.5 4.6",...d}),(0,t.jsx)("circle",{cx:"17",cy:"11.5",r:"2",...d}),(0,t.jsx)("path",{d:"M14.7 19.5c.4-2 1.6-3.2 3.3-3.4",...d})]}),{}),family:(0,t.jsx)(()=>(0,t.jsxs)("svg",{...c,children:[(0,t.jsx)("circle",{cx:"7.5",cy:"7.5",r:"2.6",...d}),(0,t.jsx)("circle",{cx:"16.5",cy:"7.5",r:"2.6",...d}),(0,t.jsx)("path",{d:"M2.8 18.6c.6-2.6 2.4-4 4.7-4 1.2 0 2.3.4 3.1 1.1",...d}),(0,t.jsx)("path",{d:"M12.6 18.6c.6-2.6 2.4-4 4.7-4 1.7 0 3.2.8 4 2.3",...d}),(0,t.jsx)("circle",{cx:"12",cy:"13.5",r:"1.8",...d}),(0,t.jsx)("path",{d:"M9.5 19.8c.4-1.7 1.3-2.6 2.5-2.6s2.1.9 2.5 2.6",...d})]}),{})},care:{inPerson:(0,t.jsx)(x,{}),virtualOk:(0,t.jsx)(f,{})},usage:{rarely:(0,t.jsx)(m,{}),sometimes:(0,t.jsx)(g,{}),often:(0,t.jsx)(x,{}),bigYear:(0,t.jsx)(y,{})},rx:{none:(0,t.jsx)(m,{}),generics:(0,t.jsx)(b,{}),brand:(0,t.jsx)(b,{}),specialty:(0,t.jsx)(b,{})},hsa:{yes:(0,t.jsx)(()=>(0,t.jsxs)("svg",{...c,children:[(0,t.jsx)("path",{d:"M5.5 12.5c0-3.3 2.9-5.5 6.5-5.5 3.7 0 6.5 2.2 6.5 5.3 0 1.7-.8 3-2 4v2.2h-2.3c-.7.2-1.4.3-2.2.3-.8 0-1.5-.1-2.2-.3H7.5v-2.1c-1.2-.9-2-2.2-2-3.9Z",...d}),(0,t.jsx)("path",{d:"M18.5 11.5h1.7v3h-1.5M9 7.4V5.2h2.6",...d}),(0,t.jsx)("circle",{cx:"9.7",cy:"11.3",r:".9",fill:"currentColor"})]}),{}),no:(0,t.jsx)(h,{}),any:(0,t.jsx)(g,{})},lifeEvents:{pregnancy:(0,t.jsx)(j,{}),surgery:(0,t.jsx)(y,{}),therapy:(0,t.jsx)(g,{})},addOns:{visionDental:(0,t.jsx)(j,{}),accident:(0,t.jsx)(y,{}),hospital:(0,t.jsx)(m,{})}};function J(e){return Object.entries(R.options[e]).map(s=>{var a;let[t,l]=s;return{value:t,label:l.label,desc:l.desc,icon:null==(a=_[e])?void 0:a[t]}})}function X(e){var s,a;let n,{locale:c="en"}=e,[d,p]=(0,l.useState)({}),[y,m]=(0,l.useState)("audience"),[x,b]=(0,l.useState)([]),[g,j]=(0,l.useState)(!1);(0,l.useEffect)(()=>{try{let e=JSON.parse(sessionStorage.getItem(G)||"null");e&&e.answers&&"string"==typeof e.stepId&&(p(e.answers),m(e.stepId))}catch(e){}j(!0)},[]),(0,l.useEffect)(()=>{if(g)try{sessionStorage.setItem(G,JSON.stringify({answers:d,stepId:y}))}catch(e){}},[d,y,g]),(0,l.useEffect)(()=>{let e=U.find(e=>e.id===y);(null==e?void 0:e.multi)&&b(Array.isArray(d[y])?d[y]:[])},[y,d]);let v=(0,l.useMemo)(()=>U.filter(e=>!e.skip||!e.skip(d)),[d]),k=v.findIndex(e=>e.id===y),w=v.length,O=(e,s)=>{let a=U.filter(e=>!e.skip||!e.skip(s)),t=a.findIndex(s=>s.id===e);t===a.length-1?m("results"):m(a[t+1].id)},C=(e,s)=>{let a=z.indexOf(e),t={};for(let[e,s]of Object.entries(d))z.indexOf(e)<a&&(t[e]=s);t[e]=s,p(t),O(e,t)},T=()=>{if("results"===y)return void m(v[v.length-1].id);k>0&&m(v[k-1].id)};if(!g)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.A,{locale:c}),(0,t.jsx)("main",{className:"pf-main",children:(0,t.jsx)("div",{className:"container"})}),(0,t.jsx)(o.A,{locale:c})]});let I=d.household||"ind",L=Z.indexOf("results"===y?"results":null==(s=U.find(e=>e.id===y))?void 0:s.group),D=Z.map((e,s)=>({key:e,label:R.rail[e],state:s<L?"complete":s===L?"current":"upcoming"})),Y="results"===y?R.rail.results:R.stepOf(k+1,w),H="results"===y?1:(k+1)/(w+1),E="audience"===y?{}:{onBack:T,backLabel:R.back};if("results"===y)n=(0,t.jsx)(q,{locale:c,answers:d,onBack:T,onRestart:()=>{p({}),m("audience");try{sessionStorage.removeItem(G)}catch(e){}}});else if("employer"===y)n=(0,t.jsx)(S,{icon:(0,t.jsx)(u,{}),title:R.employer.title,body:R.employer.body,points:R.employer.points,onBack:T,backLabel:R.back,cta:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i(),{href:(0,V.A$)(c),className:"btn btn-primary btn-lg",children:R.employer.cta}),(0,t.jsx)("button",{type:"button",className:"btn btn-ghost",onClick:()=>C("audience","individual"),children:R.employer.back})]})},"employer");else if("virtualOnly"===y)n=(0,t.jsx)(S,{icon:(0,t.jsx)(f,{}),tone:"warn",title:R.virtualOnly.title,body:R.virtualOnly.body,onBack:T,backLabel:R.back,cta:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button",className:"btn btn-primary btn-lg",onClick:()=>O("care",d),children:R.continue}),(0,t.jsx)("button",{type:"button",className:"btn btn-ghost",onClick:()=>C("care","inPerson"),children:R.virtualOnly.switch})]}),children:(0,t.jsxs)("div",{className:"apply-warnbox",children:[(0,t.jsx)("strong",{children:R.virtualOnly.warnTitle}),(0,t.jsx)("ul",{children:R.virtualOnly.warn.map(e=>(0,t.jsx)("li",{children:e},e))})]})},"virtualOnly");else if("budget"===y){let e=function(e){let s=B.zl.map(s=>(0,B.VA)(s,e)).filter(e=>null!=e).sort((e,s)=>e-s),a=s[0],t=s[s.length-1],l=e=>25*Math.round(e/25),n=l(a+(t-a)*.25),i=l(a+(t-a)*.55),r=l(t);
1return[{key:"low",cap:n,label:"Under $".concat(n.toLocaleString())},{key:"mid",cap:i,label:"$".concat(n.toLocaleString()," to $").concat(i.toLocaleString())},{key:"high",cap:r,label:"$".concat(i.toLocaleString()," to $").concat(r.toLocaleString())},{key:"any",cap:null,label:"Show me everything"}]}(I);n=(0,t.jsx)(M,{eyebrow:R.rail.care,stepLabel:Y,title:R.q.budget.title,sub:R.q.budget.sub,columns:2,options:e.map(e=>{var s;return{value:String(null!=(s=e.cap)?s:"any"),label:e.label,icon:(0,t.jsx)(h,{})}}),value:null==d.budget?void 0:String(null!=(a=d.budget)?a:"any"),onSelect:e=>C("budget","any"===e?null:Number(e)),...E},"budget")}else if("state"===y)n=(0,t.jsxs)("div",{className:"pf-step",children:[(0,t.jsxs)("div",{className:"pf-step-meta",children:[(0,t.jsx)("span",{className:"pf-eyebrow",children:R.rail.extras}),(0,t.jsx)("span",{className:"pf-step-count",children:Y})]}),(0,t.jsx)("h1",{className:"pf-title",children:R.q.state.title}),(0,t.jsx)("p",{className:"pf-sub",children:R.q.state.sub}),(0,t.jsxs)("div",{style:{maxWidth:340,marginBottom:26},children:[(0,t.jsx)("label",{className:"field-label",htmlFor:"apply-state",children:"State"}),(0,t.jsxs)("select",{id:"apply-state",className:"select",value:d.state||"",onChange:e=>e.target.value&&C("state",e.target.value),children:[(0,t.jsx)("option",{value:"",children:"Select a state"}),Object.keys($.p).sort().map(e=>(0,t.jsx)("option",{value:e,children:$.p[e]},e))]})]}),(0,t.jsx)("button",{type:"button",className:"pf-back",onClick:T,children:R.back})]});else if("lifeEvents"===y||"addOns"===y){let e="addOns"===y,s=J(y).map(s=>{if(!e)return s;let a=B.M8[s.value],t=(0,B.VA)(s.value,(0,B.lT)(a,I)),l="virtualOk"===d.care,n=a.requiresMedical&&l;return{...s,label:n?"".concat(s.label," — ").concat(R.results.requiresMedical):"".concat(s.label," \xb7 $").concat(t).concat(R.results.perMonth),disabled:n}});n=(0,t.jsx)(A,{eyebrow:R.rail[U.find(e=>e.id===y).group],stepLabel:Y,title:R.q[y].title,sub:R.q[y].sub,options:s,value:x,onChange:b,onContinue:()=>C(y,x),continueLabel:R.continue,noneLabel:R.skip,columns:2,...E},y)}else n=(0,t.jsx)(M,{eyebrow:R.rail[U.find(e=>e.id===y).group],stepLabel:Y,title:R.q[y].title,sub:R.q[y].sub,options:J(y),columns:2,value:d[y],onSelect:e=>{if("audience"===y&&"business"===e){p(s=>({...s,audience:e})),m("employer");return}if("care"===y&&"virtualOk"===e){p(s=>({...s,care:e})),m("virtualOnly");return}C(y,e)},...E},y);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.A,{locale:c}),(0,t.jsx)("main",{className:"pf-main",children:(0,t.jsx)("div",{className:"container",children:(0,t.jsxs)("div",{className:"pf-layout",children:[(0,t.jsx)(N,{groups:D,stepLabel:Y,progress:H}),(0,t.jsx)("div",{className:"pf-content",children:n})]})})}),(0,t.jsx)(o.A,{locale:c})]})}},7024:(e,s,a)=>{"use strict";a.d(s,{Be:()=>t,Bg:()=>l,FB:()=>d,OD:()=>o,Ud:()=>i,Vx:()=>p,eI:()=>r,nB:()=>c,pq:()=>h});let t={pcp:150,specialist:300,urgentCare:250,er:2600,mentalHealth:180,labs:200,imaging:1400,outpatientSurgery:8e3,inpatientDays:3e3,maternity:14e3,rxGeneric:25,rxBrand:450,rxSpecialty:4e3},l=[{key:"pcp",label:"Primary care visits",unit:"visits",copayKey:"pcp"},{key:"specialist",label:"Specialist visits",unit:"visits",copayKey:"specialist"},{key:"urgentCare",label:"Urgent care visits",unit:"visits",copayKey:"urgentCare"},{key:"er",label:"Emergency room visits",unit:"visits",copayKey:"er"},{key:"mentalHealth",label:"Mental health visits",unit:"visits",copayKey:"mentalHealth"},{key:"labs",label:"Lab and X-ray orders",unit:"orders",copayKey:null},{key:"imaging",label:"MRI / CT / PET scans",unit:"scans",copayKey:null},{key:"outpatientSurgery",label:"Outpatient surgeries",unit:"procedures",copayKey:null},{key:"inpatientDays",label:"Hospital inpatient days",unit:"days",copayKey:null},{key:"maternity",label:"Maternity and delivery",unit:"episodes",copayKey:null},{key:"rxGeneric",label:"Generic prescription fills",unit:"fills",copayKey:null,rx:"generic"},{key:"rxBrand",label:"Brand prescription fills",unit:"fills",copayKey:null,rx:"brand"},{key:"rxSpecialty",label:"Specialty prescription fills",unit:"fills",copayKey:null,rx:"specialty"}],n=Object.fromEntries(l.map(e=>[e.key,0])),i=[{key:"healthy",label:"Healthy & young",note:"An annual physical, one sick visit, one generic prescription.",use:{...n,pcp:1,rxGeneric:2}},{key:"chronic",label:"56, managing a condition",note:"Regular specialist care, routine labs, one scan, and a brand-name medication every month.",use:{...n,pcp:2,specialist:4,labs:3,imaging:1,rxBrand:12}},{key:"maternity",label:"Planning a baby",note:"Prenatal visits, routine labs and ultrasounds, and a hospital delivery.",use:{...n,pcp:1,specialist:12,labs:6,imaging:2,maternity:1,inpatientDays:2,rxGeneric:4}},{key:"family",label:"Family with kids",note:"Pediatric visits, a couple of urgent care trips, one ER visit, and generic prescriptions.",use:{...n,pcp:6,specialist:2,urgentCare:2,er:1,labs:2,rxGeneric:8}},{key:"heavy",label:"A serious year",note:"A surgery, a hospital stay, imaging, and ongoing specialty medication.",use:{...n,pcp:4,specialist:8,er:1,labs:8,imaging:3,outpatientSurgery:1,inpatientDays:4,rxBrand:6,rxSpecialty:6}}],r=Object.fromEntries(i.map(e=>[e.key,e]));function o(){return{...n}}function c(e){return l.reduce((s,a)=>s+(e[a.key]||0)*t[a.key],0)}function d(e,s,a,n){var i,r,o,d,p,h,y,m;if(!e||null==s)return null;let x="ind"===a?"ind":"family",b=null!=(i=e.ded[x])?i:e.ded.ind,f=null!=(r=e.oop[x])?r:e.oop.ind,g=(null!=(o=e.memberCoins)?o:0)/100,j=0,v=0,k=0,N=0,w=b,M=[],S=[];for(let s of l){let a=n[s.key]||0;if(a<=0)continue;let l=a*t[s.key];if(s.rx){let n=e.rx||{mode:"coinsurance",generic:0,brand:20,nonPreferred:40,specialty:30};"copay"===n.mode?j+=a*(null!=(p=n[s.rx])?p:0):"copayAfterDeductible"===n.mode?S.push({unit:t[s.key],count:a,copay:null!=(h=n[s.rx])?h:0,covered:"specialty"!==s.rx||!1!==n.specialtyCovered}):"discount"===n.mode?N+="specialty"!==s.rx||!1!==n.specialtyCovered?l*(1-(null!=(y=n.discountRate)?y:0)):l:M.push({billed:l,rate:(null!=(m=n[s.rx])?m:0)/100});continue}let i=s.copayKey?null==(d=e.copays)?void 0:d[s.copayKey]:null;if(null!=i){j+=a*i,"er"===s.copayKey&&e.erCopayThenCoins&&M.push({billed:Math.max(0,l-a*i),rate:g});continue}M.push({billed:l,rate:g})}for(let e of M){let s=Math.min(e.billed,w);w-=s,v+=s,k+=(e.billed-s)*e.rate}for(let e of S)for(let s=0;s<e.count;s+=1){if(!e.covered){N+=e.unit;continue}if(w<=0){j+=e.copay;continue}let s=Math.min(e.unit,w);w-=s,v+=s,e.unit>s&&(j+=e.copay)}let A=j+v+k,O=Math.min(A,f),C=A>0?O/A:0,B=12*s,T=O+N;return{premium:u(B),copaySpend:u(j*C),deductibleSpend:u(v*C),coinsuranceSpend:u(k*C),discountSpend:u(N),oop:u(T),total:u(B+T),hitMoop:A>f,moop:f,deductible:b,billed:u(c(n))}}function u(e){return Math.round(e)}function p(e,s,a,t){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1e5,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:60;if(!e||null==s)return[];let o=[];for(let u=0;u<=r;u+=1){let p=i*u/r,h=d(e,s,a,function(e,s){let a=c(e);if(a<=0)return{...n};let t=s/a,i={};for(let s of l)i[s.key]=(e[s.key]||0)*t;return i}(t,p));h&&o.push({billed:p,total:h.total})}return o}let h=["All care is assumed to be in-network. Out-of-network use costs more on every plan here, and is not covered at all on MVP.","Preventive care is $0 on all six plans and is excluded from the utilization counts.","Copays are assumed to count toward the out-of-pocket maximum and not toward the deductible. That is the common design, but confirm it against the plan documents.","MVP's prescription discount card is treated as an out-of-pocket cost that does not count toward the maximum, because a discount card is not insurance.","Balance billing, formulary tiers, prior authorization, and credit carried over from a prior plan year are not included."]},8013:(e,s,a)=>{Promise.resolve().then(a.bind(a,2143))}},e=>{e.O(0,[619,875,137,441,255,358],()=>e(e.s=8013)),_N_E=e.O()}]);

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.