PageSourceSearch

https://www.happiesthealth.com/main-site/_next/static/js/1365.c174ed4b3e987e1e-2.2.0-21.09.2026.js

js happiesthealth.com collected 2026-09-24 11:13:56 UTC 3,402 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1365],{11365:function(e,l,o){o.r(l),o.d(l,{default:function(){return P}});var i=o(57437),s=o(2265),t=o(31013),n=o(24033),r=o(50116),a=o(87570),d=o(28651),c=o(84315),h=o(61413),u=o(24970),x=o(84744),p=o(28192);function P(e){var l,o,P,E;let[m,T]=(0,s.useState)(""),[v,y]=(0,s.useState)(""),[j,H]=(0,s.useState)(!1),[L,A]=(0,s.useState)(!1),[O,I]=(0,s.useState)(""),[g,N]=(0,s.useState)(!1),_=(0,n.useRouter)(),B=(0,r.useTranslations)("EVOLUTION"),C=(0,t.useTheme)(),U=(0,r.useLocale)();(0,s.useEffect)(()=>{var l;T(null===(l=e.loginData)||void 0===l?void 0:l.regEmail)},[]);let b=async()=>{if(!O&&L){N(!0);let l=await (0,p.rO)({email:m,phone:v,lang:U});N(!1),400===l.code?I(B("HEALTHZINEPOPUP.EMAIL_ALREADY_SUBSCRIBED")):e.handleClose()}},k=(e,l)=>{"email"==l?T(e):y(e)},w=l=>{e.handleClose(),_.push(h.E5+l)},f="en"!==U?"/"+U+u.Bz:u.Bz,S="en"!==U?"/"+U+u.LJ:u.LJ,Z=[{href:h.E5+f,target:"_blank",rel:"noreferrer"},{href:h.E5+S,target:"_blank",rel:"noreferrer"}];return(0,i.jsxs)(t.Box,{padding:1,mt:5,sx:c.euM,children:[(0,i.jsx)(t.Box,{id:"close-icon",onClick:e.handleClose,mt:1,mr:1,sx:c.Ma0,children:(0,i.jsx)(a.Tw,{})}),(0,i.jsxs)(t.Box,{pl:"1.5rem",pr:"1.5rem",mt:-2,mb:2,children:[(0,i.jsx)(t.Box,{children:(0,i.jsx)(t.Typography,{id:"popup-title",sx:c.DSy,children:B("HEALTHZINEPOPUP.POPUP_TITLE")})}),(0,i.jsx)(t.Box,{mb:3,mt:1,children:(0,i.jsx)(t.Typography,{id:"popup-subtext",sx:c.VD7,children:B("HEALTHZINEPOPUP.POPUP_SUBTEXT")})}),(0,i.jsx)(t.Box,{mt:1,children:(0,i.jsx)(t.TextFieldInput,{id:"email-input",isDisabled:!1,value:m,maxLength:100,rows:1,multiline:!1,placeholder:B("HEALTHZINEPOPUP.ENTER_EMAIL"),onChange:e=>k(e,"email"),otherProps:{size:"small",onBlur:()=>{(0,x.oH)(m)?I(""):I(B("HEALTHZINEPOPUP.VALID_EMAIL"))},sx:{...c.KNj,input:{...c.B$M,...c.zQP}}}})}),O&&(0,i.jsx)(t.Typography,{id:"email-error",ml:.2,mt:1,sx:{color:d.yz},children:O}),!1,!1,(0,i.jsxs)(t.Box,{mb:2,ml:-1.4,sx:c.KPz,children:[(0,i.jsx)(t.Checkbox,{id:"privacy-policy-checkbox",style:{color:null===(l=C.palette)||void 0===l?void 0:l.common.white},onChange:()=>A(!L),checked:L}),(0,i.jsx)(t.Typography,{mt:1.5,sx:{...c.dl4,color:null===(o=C.palette)||void 0===o?void 0:o.common.white},children:(0,i.jsx)("span",{id:"privacy-policy",children:B.rich("HEALTHZINEPOPUP.PRIVACY_POLICY",{link:e=>{var l,o;return(0,i.jsx)("a",{style:{color:null===(o=C.palette)||void 0===o?void 0:null===(l=o.customYellow)||void 0===l?void 0:l.light,...c.OHA},...Z[0],children:e})},link2:e=>{var l,o;return(0,i.jsx)("a",{style:{color:null===(o=C.palette)||void 0===o?void 0:null===(l=o.customYellow)||void 0===l?void 0:l.light,...c.OHA},...Z[1],children:e})}})})})]}),(0,i.jsx)(t.Box,{mb:2,children:(0,i.jsxs)(t.Button,{id:"newsletter-signup-button",onClick:b,disabled:!m||!L||g,sx:{...c.W1E,...c.Ki1,...c.sYo},children:[g&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.CircularProgress,{size:20})," \xa0\xa0"]}),B("HEALTHZINEPOPUP.OPT_IN_NOW")]})}),"en"==U&&(0,i.jsxs)(t.Typography,{sx:{todaysNewsLetterStyle:c.cUy},children:[(0,i.jsx)("span",{id:"todays-newsletter",style:{color:null===(P=C.palette)||void 0===P?void 0:P.common.white},children:B("HEALTHZINEPOPUP.OR")}),"\xa0",(0,i.jsx)("span",{onClick:()=>w(u.Xn),style:{...c.OHA,color:null===(E=C.palette)||void 0===E?void 0:E.common.white},children:B("HEALTHZINEPOPUP.READ_TODAYS_HEALTHZINE")})]})]})]})}}}]);

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.