PageSourceSearch

https://assets.healthline.com/_next/chunks/wbw-insta-popup-8bc51781.js

js healthline.com collected 2026-09-24 08:30:35 UTC 14,832 bytes, 13 lines download raw bytes

1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[3269],{13864(e,t,a){a.d(t,{A:()=>l});var i=a(77066),n=a(93743),s=a(20949).h;function r(e,t,a,i){return s("svg",{className:"logo",viewBox:`0 0 ${t} ${a}`},s("title",null,i),s("use",{xmlnsXlink:"http://www.w3.org/1999/xlink",xlinkHref:`#${e}`}))}function o(e,t,a){return s("div",{className:(0,i.AH)((0,n.mq)({height:Array.isArray(t)?t.map(e=>`${e}px`):`${t}px`,marginTop:Array.isArray(a)?a.map(e=>`${e}px`):`${a}px`,background:`center/contain url("${e}") no-repeat`}))})}const l=function(e){let{id:t,title:a}=e;if("logo-hl-parenthood-desktop"===t)return o("https://assets.medicalnewstoday.com/content/parenthood-desktop-logo.svg",26,3);if("logo-hl-parenthood-mobile"===t)return o("https://assets.medicalnewstoday.com/content/parenthood-header-logo.svg",36,10);if("logo-hl-red"===t)return o("https://assets.medicalnewstoday.com/content/logo-hl-hiv-r3d.svg",[26,36],[2,4]);let i="2500",n="400";return"logo-gr8"===t?(i="843.4",n="234.5",r(t,i,n,a)):"logo-mnt"===t?(i="500",n="42",r(t,i,n,a)):"logo-psy"===t?(i="222",n="32",r(t,i,n,a)):r(t,i,n,a)}},4019(e,t,a){a.d(t,{A:()=>s});var i=a(13680),n=a(16370);function s(e){let{isHeader:t,campaignName:a="2nd Page Popup",tagularDetails:s,viewCorrelationId:r}=e;if((0,n.K8)(s),(0,n.Z3)(s,r),t){const e={category:"Newsletter Acquisition",action:a,label:"click"};(0,i.HX)(e.action,e.label)}}},77624(e,t,a){a.r(t),a.d(t,{WeekByWeekModal:()=>W,default:()=>R});var i=a(96540),n=(a(5556),a(77066)),s=a(93743),r=a(65428),o=a(7125),l=a(70431),d=a(96036),c=a(97976),p=a(69064),h=a(70328),g=a(50566),m=a(20949).h;const u=e=>(0,n.AH)({width:"100%",height:s.Ay.components.newsletterWeekByWeekStep2Wrapper.emailInputHeight,outline:"none",borderRadius:0,borderColor:e?"#fe2626":void 0}),x=(0,n.AH)({width:["auto",450],margin:"0 auto",textAlign:"center"}),k=n.Ay.p({color:"#fe2626",fontSize:14,lineHeight:1,position:"absolute",top:15,left:0,right:0,margin:0});function w(e){const{handleSubmit:t,handleDatePickerChange:a,handleChange:i,selectedMonth:r,selectedDay:o,selectedYear:l,email:w,isOptionalNewsletter:f,isLoading:y,isExpecting:b,isError:A,error:S}=e,{startYearDate:v,endYearDate:N}=(0,g.A)({isExpecting:b}),C=b?"Enter due date":"Enter child’s birthdate";return m("div",{className:x},m("form",{onSubmit:t,className:(0,n.AH)({marginTop:15})},m(p.JU,{required:!0,disabled:y,className:(0,n.AH)({display:"inline"})},m(p.ks,{className:u(S&&S.isEmail),name:"email",onChange:i,disabled:y,type:"email",value:w,placeholder:"Enter your email"})),m("p",{className:(0,n.AH)([s.Ay.font.bodyFontSemiBold,{textAlign:"left",marginTop:20,marginBottom:15,fontSize:17}])},C),m("div",{className:(0,n.AH)({marginBottom:20})},m(c.A,{selectedMonth:r,selectedDay:o,selectedYear:l,handleOnChange:a,startDate:v,endDate:N,isError:S&&S.isDate})),m(p.JU,{className:(0,n.AH)({marginTop:0,marginBottom:A?0:30}),checkboxStyle:!0,disabled:y},m(p.Sc,{className:(0,n.AH)({outline:"none"}),defaultChecked:f,disabled:y,name:"isOptionalNewsletter",onChange:i}),m("span",null,"Send me offers from Healthline Media partners.")),A&&m(k,{className:(0,n.AH)({position:"relative",top:"auto",marginBottom:10,marginTop:5})},S.message),m(h.A,{title:"SUBSCRIBE",className:(0,n.AH)({background:"#02838d",width:"100%",maxWidth:["none",130],minWidth:"auto",height:50,display:["block","block","block","inline"],marginTop:0}),loading:y}),m("div",{className:(0,n.AH)({textAlign:"center",marginBottom:"6px"})},m(d.PrivacyPolicy,{color:"grayDark"}))))}const f=[4,6],y=[19,24].map((e,t)=>e-f[t]);var b=a(13864),A=a(73966),S=a(35879),v=a(13680),N=a(99120),C=a(83),H=a(35413),E=a(27331),D=a(4019),B=a(41306),M=a(56256),I=a(20949).h;const L=(0,E.Ay)(()=>new(a(6055).A)((e,t)=>{Promise.all([a.e(4708),a.e(2111)]).then((i=>{try{let t=a(62405);e(t)}catch(e){t(e)}}).bind(null,a)).catch(t)}),{name:"modal"}),P=()=>I("div",{className:(0,n.AH)([{margin:"0 auto",width:"140px","@media(min-width:768px)":{margin:"0 auto 10px auto"}}])},I(b.A,{id:"logo-hl-parenthood-mobile"})),T=(0,n.AH)([{width:"auto",marginLeft:"auto",marginRight:"auto",marginBottom:"20px","@media(min-width:768px)":{width:"450px"}}]),Y=e=>{let{isExpecting:t,descStyles:a,handleStep2BackClick:i}=e;
1const s=`Science-backed guidance to support you ${t?"throughout pregnancy":"as a new parent"}. `,r="I’m "+(t?"a new parent":"expecting");return I("p",{className:(0,n.cx)((0,n.AH)(a),T)},s,I(p.A,{onClick:i},r))};class W extends i.Component{constructor(e){super(e),this.handleExpectingClick=()=>{this.setState({isExpecting:!0,isNewParent:!1})},this.handleNewParentClick=()=>{this.setState({isNewParent:!0,isExpecting:!1})},this.handleStep1Click=()=>{this.setState({isStep1:!1,isStep2:!0})},this.handleStep2Submit=()=>{this.setState({isSuccess:!0})},this.handleStep2BackClick=()=>{const{isExpecting:e}=this.state;this.setState({isExpecting:!e})},this.handleClose=()=>{const{onClose:e}=this.props;e?e():this.setState({hide:!0})},this.handleServiceError=e=>{this.setState({error:e,isError:!0,isLoading:!1})},this.handleChange=e=>{let{target:t}=e;"checkbox"===t.type?this.setState({isOptionalNewsletter:t.checked}):this.setState({[t.name]:t.value})},this.handleDatePickerChange=e=>{let{month:t,day:a,year:i}=e;t&&this.setState({selectedMonth:t}),a&&this.setState({selectedDay:a}),i&&this.setState({selectedYear:i})},this.handleSubmit=e=>{e.preventDefault();const{contentIndex:t,newsletterMeta:a}=this.props,{isOptionalNewsletter:i,email:n,selectedMonth:s,selectedDay:r,selectedYear:o,isExpecting:l}=this.state,{newsletterLists:d}=a,c=a.source,p=i?d.concat(["Parenthood Offers"]):d,h=l?"due_date":"childs_birth_date",g={};if(!((m=n)&&m.length>=3&&-1!==m.indexOf("@")))return void this.handleServiceError({isEmail:!0,message:"Enter email address"});var m;if(!o||!s||!r)return g.isDate=!0,g.message=l?"Enter due date":"Enter birthdate",void this.handleServiceError(g);const u=`${o}-${s.padStart(2,"0")}-${r.padStart(2,"0")}`,x={[h]:u};this.setState({isError:!1,error:{},isLoading:!0,isSuccess:!1}),(0,A.B1)({email:n,source:c,lists:p,profileData:x,contentIndex:t,vertical:a.verticalName}).then(e=>{let{error:t}=e;t?this.handleServiceError({message:"Something went wrong, try again soon"}):(this.setState({isLoading:!1,isSuccess:!0,isStep2:!1}),(0,N.hZ)("email",n),(0,v.HX)("NewsletterSignup",p))}).catch(this.handleServiceError),this.trackTagularClick({customOutboundUrl:`${S.A.activationHost}/api/activate/site`,name:p.join(",")})},this.state={isExpecting:!0,isNewParent:!1,isStep1:!0,isStep2:!1,email:"",isOptionalNewsletter:!1,selectedMonth:void 0,selectedDay:void 0,selectedYear:void 0,isLoading:!1}}componentDidMount(){const{newsletterMeta:e,isHeader:t,onLoaded:a,tagularDetails:i}=this.props,{newsletterLists:n}=e;(0,H.nQ)("newsletter.modal.shown",{isHeader:t}),(0,D.A)({isHeader:t,tagularDetails:i,...e}),a&&a({newsletterLists:n})}render(){const{newsletterMeta:e,hasImage:t,tagularDetails:a}=this.props,{error:i,isError:d,isLoading:c,isStep1:p,isStep2:h,isSuccess:g,hide:m,isExpecting:u,isNewParent:x,email:k,isOptionalNewsletter:b,selectedMonth:A,selectedDay:S,selectedYear:v}=this.state;if(!(0,C.r)("C0004")||m)return null;const N=g,H=(0,n.AH)((0,o.A)({hasImage:t,isSuccess:g}));return I(B.TagularTrackProductClick,{...a,render:a=>{let{correlationId:o,trackTagularClick:m}=a;return this.correlationId=o,this.trackTagularClick=m,I(L,{onClose:this.handleClose,className:H,render:a=>{let{close:o}=a;const m=function(e){let{newsletterMeta:t}=e;const a={smallMargins:{marginTop:0,marginBottom:5},description:{marginTop:[10,10],paddingLeft:[0,20],paddingRight:[0,20],textAlign:"center"},emailInputWrapper:{marginBottom:s.Ay.components.newsletterModal.step1.textOnly.emailInputMarginBottom,textAlign:"center"},label:{display:"inline"},emailInput:{width:["100%","260"],height:s.Ay.components.newsletterModal.step1.textOnly.emailInputHeight,borderRadius:0},button:{width:["100%","140"],height:s.Ay.components.newsletterModal.step1.textOnly.buttonHeight,verticalAlign:"bottom",outline:"none",marginTop:[20,0]},otherSubheading:{marginTop:0,marginBottom:[5,10]},checkboxInput:{},privacyWrapper:{"> p":{textAlign:"center",marginBottom:6}}};
1let{color:i}=t;return i||(i="#02838d"),a.formWrapper={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:[540,"100%"],minHeight:[540,"100%"],padding:y,paddingTop:[36,34],paddingBottom:[12,8],borderColor:i,borderStyle:"solid",borderWidth:f},a.title={color:i,paddingTop:[20,0],marginTop:0,marginLeft:0,marginRight:0,paddingLeft:[0,20],paddingRight:[0,20],marginBottom:[0,0],fontSize:36,lineHeight:"38px",textAlign:"center"},a}({newsletterMeta:e}),{title:C,description:H,formWrapper:E}=m,{title:D,callToAction:B,callToActionHexColor:M,descriptionModal:L,descriptionModalMobile:T}=e;if(g)return I(r.A,{color:"#f0533a",hasImage:N,instagramLink:"https://www.instagram.com/hlparenthood/",image:"https://images-prod.healthline.com/hlcmsresource/images/e116f31966eb71c096760ba1a33be987-parenthood-newsletter-sign-up-popup-4x3.png"});const W={close:o,email:k,isOptionalNewsletter:b,selectedMonth:A,selectedDay:S,selectedYear:v,isError:d,error:i,handleChange:this.handleChange,handleDatePickerChange:this.handleDatePickerChange,handleSubmit:this.handleSubmit,isLoading:c,newsletterMeta:e,hasImage:t,styles:m,buttonTitle:B,buttonBackground:M,isExpecting:u};if(h)return I("div",{className:(0,n.AH)([E,{paddingLeft:"15px",paddingRight:"15px"}])},I("div",{className:(0,n.AH)([{width:"auto","@media(min-width:768px)":{width:"450px"}}])},I(P,null),I("h3",{className:(0,n.cx)("h1",(0,n.AH)([C,{paddingLeft:[0,0],paddingRight:[0,0]}]))},D),I(Y,{isExpecting:u,descStyles:H,handleStep2BackClick:this.handleStep2BackClick}),I(w,{...W})));const R={close:o,newsletterMeta:e,hasImage:t,styles:m,buttonTitle:B,buttonBackground:M,isExpecting:u,isNewParent:x,handleExpectingClick:this.handleExpectingClick,handleNewParentClick:this.handleNewParentClick,handleStep1Click:this.handleStep1Click,wrapperStyle:{marginTop:"15px",marginLeft:"auto",marginRight:"auto",marginBottom:"50px",display:["block","flex"],width:["auto","490px"],flexWrap:"wrap"},buttonStyle:{background:"#02838d",width:["100%","200px"],height:"50px",display:["block","block","block","inline"],marginTop:["15px","30px"],flexGrow:0,marginLeft:[0,"auto"],marginRight:"auto"}};return p?I("div",{className:(0,n.AH)([E,{paddingLeft:"15px",paddingRight:"15px"}])},I(P,null),I("h3",{className:(0,n.cx)("h1",(0,n.AH)(C))},D),I("p",{className:(0,n.AH)((0,s.mq)([H,{display:["none",void 0,"block"],width:["auto","450px"],marginLeft:"auto",marginRight:"auto"}]))},L),I("p",{className:(0,n.AH)((0,s.mq)([H,{display:["block",void 0,"none"]}]))},T||L),I(l.A,{isButtonImage:!0,...R})):void 0}})}})}}const R=(0,M.Rv)(W)},50566(e,t,a){function i(e){let t,a,{isExpecting:i}=e;const n=(new Date).toDateString(),s=new Date;return i?(s.setMonth(s.getMonth()+9),t=n,a=s.toDateString()):(s.setFullYear(s.getFullYear()-18),t=s.toDateString(),a=n),{startYearDate:t,endYearDate:a}}a.d(t,{A:()=>i})},70431(e,t,a){a.d(t,{A:()=>c});var i=a(77066),n=a(70328),s=a(93743),r=a(69064),o=a(20949).h;const l=e=>{let{isClicked:t,clickHandler:a,title:n,image:l,isFirstPhase:d,isButtonImage:c}=e;return o(r.A,{disableColors:!0,className:(0,i.AH)((0,s.mq)({userSelect:"none",border:"solid 1px #81b9bf",width:c?["auto","240px"]:["auto","auto","181px","250px"],height:["70px",c?"70px":"50px"],display:"flex",alignItems:"center",justifyContent:"space-between",marginLeft:d?void 0:[0,"10px"],marginTop:d?void 0:["15px",0],paddingRight:[0,c?0:"15px"],"&:hover":{borderColor:"#08565c"}})),onClick:a},o("div",{className:(0,i.AH)((0,s.mq)({display:"flex",alignItems:"center",width:c?["auto","150px"]:"auto"}))},o("div",{className:(0,i.AH)({display:"inline-block",width:"20px",height:"20px",marginLeft:"15px"})},o("div",{className:(0,i.AH)({display:"inline-block"})},o("span",{className:(0,i.AH)({display:"inline-block",borderWidth:t?"5px":"1px",borderStyle:"solid",borderColor:t?"text-black":"gray",borderRadius:"50%",width:"5px",height:"5px",padding:t?"5px":"10px"})}))),o("div",{className:(0,i.AH)((0,s.mq)({display:"inline-block",marginLeft:"10px",marginRight:c?"15px":0,lineHeight:["26px","26px","23px","26px"]}))},n)),o("div",{className:(0,i.AH)((0,s.mq)({display:["block",c?"inline-flex":"none"],float:"right",width:"90px",height:"68px"}))},o("img",{alt:"",src:l})))};var d=a(20949).h;function c(e){const{buttonTitle:t,isButtonImage:a,isExpecting:s,isNewParent:r,handleExpectingClick:o,handleNewParentClick:c,handleStep1Click:p,wrapperStyle:h,buttonStyle:g}=e;return d("div",{className:(0,i.AH)(h)},d(l,{isClicked:s,clickHandler:o,title:"I’m Expecting",image:"https://images-prod.healthline.com/hlcmsresource/images/hl-newsletter-new/img/parenthoodWeekByWeekExpecting.jpg",isFirstPhase:!0,isButtonImage:a}),d(l,{isClicked:r,clickHandler:c,title:"I’m A New Parent",image:"https://images-prod.healthline.com/hlcmsresource/images/hl-newsletter-new/img/parenthoodWeekByWeekNewParent.jpg",isButtonImage:a}),d(n.A,{title:t,className:(0,i.AH)(g),onClick:p}
1))}},97976(e,t,a){a.d(t,{A:()=>d});var i=a(77066),n=a(93743),s=a(88669),r=a(20949).h;const o=i.AH`
2  background: white;
3  margin-bottom: 0;
4  font-size: 14px;
5  max-height: 50px;
6  @media (min-width: 375px) {
7    font-size: 17px;
8  }
9  select {
10    padding-left: 12px;
11  }
12`;function l(e){let{flexBasis:t,isError:a,...o}=e;return r(s.A,{chevronPadding:10,className:(0,i.AH)((0,n.mq)({flex:`1 0 ${t}`,marginLeft:"10px"})),borderStyle:"1px solid "+(a?"red":"color-gray"),...o})}function d(e){let{selectedMonth:t,selectedDay:a,selectedYear:s,handleOnChange:d,startDate:c,endDate:p,isError:h,onLoad:g,fontStyles:m,isEEA:u}=e;const x=c?new Date(c).getFullYear():(new Date).getFullYear()-10,k=p?new Date(p).getFullYear():(new Date).getFullYear()+10;return g&&g(),r("div",{className:(0,i.AH)([{display:"flex",marginLeft:"-10px"}]),onChange:e=>{d({[e.target.name]:e.target.value})}},r(l,{defaultValue:t,name:"month",className:(0,i.cx)(o,m,(0,i.AH)((0,n.mq)({order:u?2:1}))),flexBasis:"55px",isError:h},function(){const e=["January","February","March","April","May","June","July","August","September","October","November","December"],t=[];t.push(r("option",{key:"month",value:""},"Month"));for(let a=0,i=e.length;a<i;a++)t.push(r("option",{key:a+1,value:a+1},e[a]));return t}()),r(l,{defaultValue:a,name:"day",className:(0,i.cx)(o,m,(0,i.AH)((0,n.mq)({order:u?1:2}))),flexBasis:"20px",isError:h},function(){const e=[];e.push(r("option",{key:"day"},"Day"));for(let t=1;t<=31;t++)e.push(r("option",{key:t},t));return e}()),r(l,{defaultValue:s,name:"year",className:(0,i.cx)(o,m,(0,i.AH)([{order:3}])),flexBasis:"25px",isError:h},function(e,t){const a=[];a.push(r("option",{key:"year"},"Year"));for(let i=e;i<=t;i++)a.push(r("option",{key:i},i));return a}(x,k)))}}}]);
13//# sourceMappingURL=wbw-insta-popup-8bc51781.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.