1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[7940],{1791(e,t,o){o.r(t),o.d(t,{default:()=>f});var i=o(77066),a=o(54719),n=o(96540),r=o(16370),l=o(98449),s=o(52558),c=o(54540),h=o(66133),u=o(83113),m=o(56256),p=o(12424),d=o(85723),w=o(20949).h;const g=(0,h.lk)(),f=(0,l.af)((0,m.Rv)((0,d.A)(null,e=>{let{driver:t}=e;const{calculator:o,headline:l,subheading:u,articlePlacement:m,productId:d}=t,[f,y]=(0,n.useState)(!1),[I,T]=(0,n.useState)(g),[v,N]=(0,n.useState)(null),C={buttonStyles:(0,i.AH)({display:"block",fontSize:"16px",lineHeight:"20px",maxWidth:"100%",padding:"16px",width:"335px",borderRadius:"26px"}),containerStyles:(0,i.AH)({display:"flex",flexDirection:"column",width:"100%",maxWidth:"100%",boxSizing:"border-box"}),titleStyles:void 0,descriptionStyles:void 0,privacyPolicyClassName:(0,i.AH)({color:p.colors["gray-dark"],textAlign:"left"})},b=(0,n.useCallback)(e=>{var t;if(y(!0),null==e||!e.tagularDetails)return;const i="bloodPressure"===o||"bmi"===o,{tagularDetails:a}=e;i||(0,r.FU)({actionOutcome:"INTERNALLINK",correlationId:I,elementType:"LINK",location:a.location,outboundUrl:`https://activation-stage.healthline.com/api/activate/site?correlationId=${I}`,name:a.name,position:"Confirmation Screen",text:"Thanks for signing up!",viewCorrelationId:I}),(0,r.y3)({elementType:"LINK",location:a.location,name:a.name,position:"Confirmation Screen",text:"Thanks for signing up!",viewCorrelationId:I,...null==a||null==(t=a.confirmation)?void 0:t.viewed})},[I,o]),L=(0,n.useMemo)(()=>({a1c:{tagularDetails:{category:"Newsletter Acquisition",correlationId:I,formatType:"email",location:"A1C Calculator",name:d,position:1,productId:d,text:"JOIN NOW",variant:"",viewCorrelationId:I},newsLetterFormTitle:"Lower A1C levels with these lifestyle changes",newsLetterFormDescription:"Sign up for our free email series to receive straightforward tips to manage A1C levels every day.",confirmationTitle:"Thanks for signing up!",confirmationMessage:"Look out for the first email. In the meantime, visit our hub for more information on navigating type 2 diabetes.",confirmationLink:"https://www.healthline.com/type-2-diabetes",newsletterCampaign:"e:cc_s:hl_p:series_n:t2d_v:a1c",newsletterList:["e:cc_s:hl_p:series_n:t2d_v:a1c"]},bmi:{underweight:{tagularDetails:{category:"Newsletter Acquisition",correlationId:I,formatType:"email",location:"BMI Calculator",name:d,position:1,productId:d,text:"JOIN NOW",variant:"underweight",viewCorrelationId:I}},healthy:{tagularDetails:{category:"Newsletter Acquisition",correlationId:I,formatType:"email",location:"BMI Calculator",name:d,position:2,productId:d,text:"JOIN NOW",variant:"healthy",viewCorrelationId:I,confirmation:{clicked:{elementType:"LINK",position:d,text:"Thanks for signing up!",location:"Confirmation Screen"}}},newsLetterFormTitle:"Master healthy eating with our Nutrition Edition",newsLetterFormDescription:"Join our Nutrition newsletter for honest insights, research updates, and tasty solutions to your food dilemmas 3 times a week.",confirmationTitle:"Thanks for signing up!",confirmationMessage:"Look out for your first newsletter. In the meantime, check out our hub for tips, tools, and support for sustainable weight management.",confirmationLink:"https://www.healthline.com/weight-management",newsletterCampaign:"Nutrition",newsletterList:["Nutrition"],CTA:"JOIN NOW"},overweight:{tagularDetails:{category:"Newsletter Acquisition",correlationId:I,formatType:"email",location:"BMI Calculator",name:d,position:3,productId:d,text:"JOIN NOW",variant:"overweight",viewCorrelationId:I,confirmation:{clicked:{elementType:"LINK",position:d,text:"Thanks for signing up!",location:"Confirmation Screen"}}},newsLetterFormTitle:"Get our Weight Management newsletter",newsLetterFormDescription:"Receive expert advice, tips to build healthy habits, and the latest on nutrition and fitness delivered straight to your inbox.",confirmationTitle:"Thanks for signing up!",confirmationMessage:"Look out for your first newsletter. In the meantime, check out our hub for tips, tools, and support for sustainable weight management.",confirmationLink:"https://www.healthline.com/weight-management",newsletterCampaign:"e:cc_s:hl_p:series_n:weightmgt_v:mindfuleating",newsletterList:["e:cc_s:hl_p:series_n:weightmgt_v:mindfuleating"],CTA:"JOIN NOW"},obesity:{tagularDetails:{category:"Newsletter Acquisition",correlationId:I,formatType:"email",location:"BM
1I Calculator",name:d,position:4,productId:d,text:"JOIN NOW",variant:"obesity",viewCorrelationId:I,confirmation:{clicked:{elementType:"LINK",position:d,text:"Thanks for signing up!",location:"Confirmation Screen"}}},newsLetterFormTitle:"Get our Weight Management newsletter",newsLetterFormDescription:"Receive expert advice, tips to build healthy habits, and the latest on nutrition and fitness delivered straight to your inbox.",confirmationTitle:"Thanks for signing up!",confirmationMessage:"Look out for your first newsletter. In the meantime, check out our hub for tips, tools, and support for sustainable weight management.",confirmationLink:"https://www.healthline.com/weight-management",newsletterCampaign:"e:cc_s:hl_p:series_n:weightmgt_v:mindfuleating",newsletterList:["e:cc_s:hl_p:series_n:weightmgt_v:mindfuleating"],CTA:"JOIN NOW"}},macro:{recommended:{tagularDetails:{category:"Newsletter Acquisition",correlationId:I,formatType:"email",location:"Macro Calculator",name:d,position:1,productId:d,text:"JOIN NOW",variant:m,viewCorrelationId:I}},lowFat:{tagularDetails:{category:"Newsletter Acquisition",correlationId:I,formatType:"email",location:"Macro Calculator",name:d,position:2,productId:d,text:"JOIN NOW",variant:m,viewCorrelationId:I},newsLetterFormTitle:"Follow a low fat diet with the help of tips from our experts",newsLetterFormDescription:"Sign up for our free email series to learn more about good and bad fats, how they affect your health, and ways to incorporate low fat foods into your diet. ",confirmationTitle:"Thanks for signing up!",confirmationMessage:"Look out for the first email. In the meantime, visit our Recipes hub for a full collection of meal ideas based on your health goals.",confirmationLink:"https://www.healthline.com/recipes",newsletterCampaign:"e:cc_s:hl_p:series_n:weightmgt_v:lowfat",newsletterList:["e:cc_s:hl_p:series_n:weightmgt_v:lowfat"],CTA:"JOIN NOW"},lowCarb:{tagularDetails:{category:"Newsletter Acquisition",correlationId:I,formatType:"email",location:"Macro Calculator",name:d,position:3,productId:d,text:"JOIN NOW",variant:m,viewCorrelationId:I}},highProtein:{tagularDetails:{category:"Newsletter Acquisition",correlationId:I,formatType:"email",location:"Macro Calculator",name:d,position:4,productId:d,text:"JOIN NOW",variant:m,viewCorrelationId:I}}},bloodPressure:{normal:{tagularDetails:{elementType:"LINK",name:d,location:"BP Calculator",text:"VISIT HUB",confirmation:{clicked:{position:"Normal Blood Pressure",text:"VISIT HUB"}}},newsLetterFormTitle:"",newsLetterFormDescription:"",confirmationTitle:"Discover expert-backed tips to live a heart-healthy lifestyle",confirmationMessage:"Our Heart Health hub offers in-depth guid
1ance on nutrition, prevention, and more to help with making healthy choices and reducing the risk of heart disease.",confirmationLink:"https://www.healthline.com/heart-health",newsletterCampaign:"",newsletterList:[""],showConfirmationOnly:!0},elevated:{tagularDetails:{brand:"Healthline",category:"Newsletter Acquisition",formatType:"email",location:"BP Calculator",name:d,productId:d,position:1,text:"Get extra support to help lower blood pressure with these tips",variant:m,confirmation:{clicked:{outboundUrl:"https://www.healthline.com/heart-health",actionOutcome:"INTERNALLINK",elementType:"LINK",position:"Confirmation Screen",text:"VISIT HUB",location:"BP Calculator",name:d},viewed:{elementType:"LINK",position:"Confirmation Screen",location:"BP Calculator",name:d,text:"Thanks for signing up!"}}},newsLetterFormTitle:"Get extra support to help lower blood pressure with these tips",newsLetterFormDescription:"Sign up for our free email series to learn more about blood pressure readings, dietary strategies, and lifestyle changes for long-term success. ",confirmationTitle:"Thanks for signing up!",confirmationMessage:"Look out for the first email. In the meantime, visit our Heart Health hub for a full collection of resources on high blood pressure, high cholesterol, and more.",confirmationLink:"https://www.healthline.com/heart-health",newsletterCampaign:"e:cc_s:hl_p:series_n:hearthealth_v:bloodpressure",newsletterList:["e:cc_s:hl_p:series_n:hearthealth_v:bloodpressure"],CTA:"JOIN NOW"},stage1:{tagularDetails:{brand:"Healthline",category:"Newsletter Acquisition",formatType:"email",location:"BP Calculator",name:d,productId:d,position:1,text:"Get extra support to help lower blood pressure with these tips",variant:m,confirmation:{clicked:{outboundUrl:"https://www.healthline.com/heart-health",actionOutcome:"INTERNALLINK",elementType:"LINK",position:"Confirmation Screen",text:"VISIT HUB",location:"BP Calculator",name:d},viewed:{elementType:"LINK",position:"Confirmation Screen",location:"BP Calculator",name:d,text:"Thanks for signing up!"}}},newsLetterFormTitle:"Get extra support to help lower blood pressure with these tips",newsLetterFormDescription:"Sign up for our free email series to learn more about blood pressure readings, dietary strategies, and lifestyle changes for long-term success. ",confirmationTitle:"Thanks for signing up!",confirmationMessage:"Look out for the first email. In the meantime, visit our Heart Health hub for a full collection of resources on high blood pressure, high cholesterol, and more.",confirmationLink:"https://www.healthline.com/heart-health",newsletterCampaign:"e:cc_s:hl_p:series_n:hearthealth_v:bloodpressure",newsletterList:["e:cc_s:hl_p:series_n:hearthealth_v:bloodpressure"],CTA:"JOIN NOW"},stage2:{tagularDetails:{brand:"Healthline",category:"Newsletter Acquisition",formatType:"email",location:"BP Calculator",name:d,productId:d,position:1,text:"Get extra support to help lower blood pressure with these tips",variant:m,confirmation:{clicked:{outboundUrl:"https://www.healthline.com/heart-health",actionOutcome:"INTERNALLINK",elementType:"LINK",position:"Confirmation Screen",text:"VISIT HUB",location:"BP Calculator",name:d},viewed:{elementType:"LINK",position:"Confirmation Screen",location:"BP Calculator",name:d,text:"Thanks for signing up!"}}},newsLetterFormTitle:"Get extra support to help lower blood pressure with these tips",newsLetterFormDescription:"Sign up for our free email series to learn more about blood pressure readings, dietary strategies, and lifestyle changes for long-term success. ",confirmationTitle:"Thanks for signing up!",confirmationMessage:"Look out for the first email. In the meantime, visit our Heart Health hub for a full collection of resources on high blood pressure, high cholesterol, and more.",confirmationLink:"https://www.healthline.com/heart-health",newsletterCampaign:"e:cc_s:hl_p:series_n:hearthealth_v:bloodpressure",newsletterList:["e:cc_s:hl_p:series_n:hearthealth_v:bloodpressure"],CTA:"JOIN NOW"},"hypertensive-crisis":{tagularDetails:{brand:"Healthline",category:"Newsletter Acquisition",formatType:"email",location:"BP Calculator",name:d,productId:d,position:1,text:"Get extra support to help lower blood pressure with these tips",variant:m,confirmation:{clicked:{outboundUrl:"https://www.healthline.com/heart-health",actionOutcome:"INTERNALLINK",elementType:"LINK",position:"Confirmation Screen",text:"VISIT HUB",location:"BP Calculator",name:d},viewed:{elementType:"LINK",position:"Confirmation Screen",location:"BP Calculator",name:d,text:"Thanks for signing up!"}}},newsLetterFormTitle:"Get extra support to help lower blood pressure with these tips",newsLetterFormDescription:"Sign up for our free email series to learn more about blood pressure readings, dietary strategies, and lifestyle changes for long-term success. ",confirmationTitle:"Thanks for signing up!",confirmationMessage:"Look out for the first email. In the meantime, visit our Heart Health hub for a full collection of resources on high blood pressure, high cholesterol, and more.",confirmationLink:"https://www.healthline.com/heart-health",newsletterCampaign:"e:cc_s:hl_p:series_n:hearthealth_v:bloodpressure",newsletterList:["e:cc_s:hl_p:series_n:hearthealth_v:bloodpressure"],CTA:"JOIN NOW"}},calorie:{lose:{tagularDetails:{category:"Newsletter Acquisition",correlationId:I,formatType:"email",location:"Calorie Calculator",name:d,position:1,productId:d,text:"GET STARTED",variant:m,viewCorrelationId:I},newsLetterFormTitle:"Change the way you eat",newsLetterFormDescription:"Sign up for our Mindful Eating Guide miniseries and learn how to become more aware of your thoughts, emotions, and behaviors around food.",confirmationTitle:"Thanks for signing up!",confirmationMessage:"Look out for the first email. In the meantime, visit our Weight Management hub for a full collection of tips, tools, resources, and more for weight loss.",confirmationLink:"https://www.healthline.com/weight-management",newsletterCampaign:"e:cc_s:hl_p:series_n:weightmgt_v:mindfuleating",newsletterList:["e:cc_s:hl_p:series_n:weightmgt_v:mindfuleating"],CTA:"GET STARTED"},maintain:{tagularDetails:{category:"Newsletter Acquisition",correlationId:I,formatType:"email",location:"Calorie Calculator",name:d,position:2,productId:d,text:"START TODAY",variant:m,viewCorrelationId:I},newsLetterFormTitle:"Build a new healthy habit",newsLetterFormDescription:"Our New Habits, New You miniseries will show you how to develop healthy habits that will actually stick. Sign up below, and keep an eye on your inbox!",confirmationTitle:"Thanks for signing up!",confirmationMessage:"Look out for the first email. In the meantime, visit our Weight Management hub for a full collection of tips, tools, resources, and more to supp
1ort your goals.",confirmationLink:"https://www.healthline.com/weight-management",newsletterCampaign:"e:cc_s:hl_p:series_v:newhabitsnewyou_i:weightmgt",newsletterList:["e:cc_s:hl_p:series_v:newhabitsnewyou_i:weightmgt"],CTA:"START TODAY"},gain:{tagularDetails:{category:"Newsletter Acquisition",correlationId:I,formatType:"email",location:"Calorie Calculator",name:d,position:3,productId:d,text:"START TODAY",variant:m,viewCorrelationId:I},newsLetterFormTitle:"Build a new healthy habit",newsLetterFormDescription:"Our New Habits, New You miniseries will show you how to develop healthy habits that will actually stick. Sign up below, and keep an eye on your inbox!",confirmationTitle:"Thanks for signing up!",confirmationMessage:"Look out for the first email. In the meantime, visit our Weight Management hub for a full collection of tips, tools, resources, and more to support your goals.",confirmationLink:" https://www.healthline.com/weight-management",newsletterCampaign:"e:cc_s:hl_p:series_v:newhabitsnewyou_i:weightmgt",newsletterList:["e:cc_s:hl_p:series_v:newhabitsnewyou_i:weightmgt"],CTA:"START TODAY"}},default:{tagularDetails:{category:"Newsletter Acquisition",formatType:"No Calculator",name:"No Calculator",productId:"No Calculator",text:"No Calculator",variant:"No Calculator"},newsLetterFormTitle:"",newsLetterFormDescription:"",confirmationTitle:"",confirmationMessage:"",confirmationLink:""}}),[I,m,d]),_=(0,n.useCallback)(e=>{N(e)},[]),k=(e,o)=>{const i=null==e?void 0:e.showConfirmationOnly;return(null==e?void 0:e.newsletterCampaign)||i?o||i?w("div",{className:C.containerStyles},w("h2",{className:C.titleStyles},e.confirmationTitle),w("p",{className:C.descriptionStyles},e.confirmationMessage),w(c.A,{className:C.buttonStyles,href:e.confirmationLink,onClick:()=>{var t;(0,r.FU)({actionOutcome:"INTERNALLINK",outboundUrl:e.confirmationLink,elementType:"LINK",location:e.tagularDetails.location,name:e.tagularDetails.name,position:2,text:"VISIT HUB",viewCorrelationId:I,...null==(t=e.tagularDetails)||null==(t=t.confirmation)?void 0:t.clicked})}},"VISIT HUB")):w("div",{className:C.containerStyles},w("h2",{className:C.titleStyles},e.newsLetterFormTitle),w("p",{className:C.descriptionStyles},e.newsLetterFormDescription),w(s.q,{campaign:e.newsletterCampaign,ctaText:e.CTA||"JOIN NOW",inCalculator:!0,lists:e.newsletterList,vertical:t.verticalName,onSuccess:()=>b(e),sailthruAccount:"hl",submitCallback:()=>{},tagularDetails:e.tagularDetails,privacyPolicyClassName:C.privacyPolicyClassName,parentCorrelationId:I})):null};let x=null;if("a1c"===o){x=k(L.a1c,f)}else if(v){const e=L[o];if(e){x=k(e[v.value],f)}}return w(a.Calculator,{key:I,type:o,headline:l,subheadline:u,onReset:()=>{T((0,h.lk)()),N(null),y(!1)},viewCorrelationId:I,onSelectionChange:_,articlePlacement:m,driverId:d},x)},{handleInViewEvent:async e=>{var t;if(null==e||null==(t=e.driver)||null==(t=t.adTagIds)?void 0:t.includes("68efc4a8-77e5-4a12-9d40-8e57d023f3c6")){var o,i,a;const t={toolName:null==e||null==(o=e.driver)?void 0:o.productId,topic:null!=(i=null==e||null==(a=e.contentMeta)||null==(a=a.targeting)?void 0:a.k1)?i:"",jtbd:"",exposureType:"decisiontool_view"};(0,r.o7)(await(0,u.A)(null==e?void 0:e.authContext,g,t))}}})))}}]); 2//# sourceMappingURL=calculator-817d061b.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.