PageSourceSearch

https://www.hellomagazine.com/_next/static/chunks/629.e0240909ffa6f2b2.js

js hellomagazine.com collected 2026-09-24 08:29:30 UTC 13,020 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[629],{90629:(e,n,o)=>{let t;o.r(n),o.d(n,{default:()=>P});var r=o(80263),a=o(2102),i=o(8084),c=o(87886),s=o(53239),l=o(28150),d=o(98256),u=o(77735);let E=function(e){var n;(null==(n=e.detail)?void 0:n.loggedOut)===!1&&(0,d.aj)("https://www.hellomagazine.com/")},w=()=>{try{window.addEventListener("ev.ad.authorize",E),(0,l.zP)("OTP"),(0,l.Vc)()}catch(e){i.R.error("oneTimePassword","Error during onLoad",e.message)}},v=()=>{let e="https://".concat("myaccount.hellomagazine.com").concat("/myaccount/"),n="sorry-we-couldnt-verify-your-email";e&&n?(0,d.aj)("".concat(e).concat(n,"/")):console.error("Missing environment variables: EVOLOK_MYACCOUNT_BASEURL or VERIFICATION_EMAIL_KO_SLUG")},m=function(e){var n;let o="https://".concat("myaccount.hellomagazine.com").concat("/myaccount/","login/");(null==(n=e.detail)?void 0:n.loggedOut)===!0&&(0,d.aj)(o)},S=()=>{try{window.addEventListener("ev.ad.authorize",m),(0,l.zP)("social"),(0,l.Vc)(),(0,l.Vu)(),(()=>{let e="https://".concat("myaccount.hellomagazine.com").concat("/myaccount/"),n="your-email-has-been-successfully-verified";window.EV&&window.EV.Event&&(window.EV.Event.on(window.EV.Event.SOCIAL_LINKED_ACCOUNT_SUCCESS,()=>{e&&n?(performance.mark("[MyaccountEvolok] - SOCIAL_LINKED_ACCOUNT_SUCCESS"),(0,d.aj)("".concat(e).concat(n,"/"))):console.error("Missing environment variables: EVOLOK_MYACCOUNT_BASEURL or VERIFICATION_EMAIL_OK_SLUG")}),window.EV.Event.on(window.EV.Event.SOCIAL_LINKED_ACCOUNT_FAILED,()=>{performance.mark("[MyaccountEvolok] - SOCIAL_LINKED_ACCOUNT_FAILED"),v()}))})()}catch(e){i.R.error("linkGoogleAccount","Error during onLoad",e.message)}};var g=o(44544),y=o(19151),h=o(91022),_=o(1772);let L=!1,C=function(e){var n,o;(0,_.tC)(),(0,_.xc)(),!(null!=(o=null==(n=e.detail)?void 0:n.loggedOut)&&o)&&(0,d.Qq)()&&(L=!0)};var O=o(65237);let f=async e=>{if(!e)return;let{guid:n,attributes:o=[]}=e;if(function(e){return!!e&&["@hola.com","@hellomagazine.com"].some(n=>e.toLowerCase().endsWith(n))}(((e,n)=>{if(!Array.isArray(e))return;let o=e.find(e=>e.name===n);return o?o.value:void 0})(o,"email")||"")&&n)try{await fetch("".concat("/myaccount/","/api/myaccount/vipaccess/"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({guid:n})})}catch(e){console.error("Error sending VIP access request",e)}},V=function(e){var n,o;let t=document.getElementById("myaccount-profile");null==t||t.classList.add("hide"),(0,_.xc)(),null==(o=null==(n=e.detail)?void 0:n.loggedOut)||o||!(0,d.Qq)()?(window.EV.Core.UI.logout(),(0,d.aj)("".concat("".concat("/myaccount/","login/"),"?redirect_url=").concat(window.document.URL))):((0,_.W$)(),null==t||t.classList.remove("hide"))};var A=o(14312);let p=function(e){var n,o;let t=document.getElementById("myaccount-subscriptions");null==t||t.classList.add("hide"),(0,_.xc)(),null==(o=null==(n=e.detail)?void 0:n.loggedOut)||o||!(0,d.Qq)()?(window.EV.Core.UI.logout(),(0,d.aj)("".concat("".concat("/myaccount/","login/"),"?redirect_url=").concat(window.document.URL))):((0,_.W$)(),null==t||t.classList.remove("hide"))},I=null,N=()=>{if(window.EV&&window.EV.Event&&"function"==typeof I){let e=I;(0,A.Y_)().then(n=>{e(n||[]),I=null})}},k=function(e){var n;(0,_.tC)(),(0,_.xc)(),(null==(n=e.detail)?void 0:n.loggedOut)===!1&&(0,d.aj)("https://www.hellomagazine.com/")};var R=o(4958),T=o.n(R),b=o(72017),j=o(23727);let U=()=>{(0,b.Logout)()},x=e=>{let{data:{dataProps:n}}=e;window.currentHomeLink=n.currentHomeLink,window.parentHomeLink=n.parentHomeLink;let o=null;switch(n.mode){case"verificationEmail":(0,a.i5)(),o=(0,a.xl)();break;case"oneTimePassword":(0,d.bM)(w,()=>(()=>{let e="https://".concat("myaccount.hellomagazine.com").concat("/myaccount/"),n="sorry-we-couldnt-verify-your-email";e&&n?(0,d.aj)("".concat(e).concat(n,"/")):console.error("Missing environment variables: EVOLOK_MYACCOUNT_BASEURL or VERIFICATION_EMAIL_KO_SLUG")})()),o=(e=>
1{let[n,o]=(0,s.useState)(null),[t,a]=(0,s.useState)(!1);(0,s.useEffect)(()=>{let e;e=setInterval(()=>{var n,t,r,a,i;let c=null==(a=window.EV)||null==(r=a.util)||null==(t=r.Storage)||null==(n=t.session)?void 0:n.get("ev_identifier");if(c&&"string"==typeof c){let n=JSON.parse(c);o(Array.isArray(n)?null==(i=n[0])?void 0:i.value:null==n?void 0:n.value),clearInterval(e)}},500)},[]);let i="string"==typeof e.otpAfterSubmit?e.otpAfterSubmit.replace("{email}",n||""):e.otpAfterSubmit;return e.handleOtpSubmit=async()=>{let e=await fetch("".concat("/api/myaccount/oneTimePassword/"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({authenticationSchemeName:"default",identifiers:[{name:"email",value:n}],realmName:"helloRealm"})}),o=await e.json();o.message.includes("OTP request created")?(a(!0),performance.mark("[MagicLink] - Sent, all OK")):performance.mark("[MagicLink] - Fails: ".concat(o.message))},e.otpMessageWithReplacedEmail=i,e.showOtpMessage=t,e.email=n,(0,r.jsxs)(r.Fragment,{children:[(0,u.N1)(!0),(0,r.jsx)(c.u2,{...e})]})})(n);break;case"thankYouOtp":o=(e=>{let n="redirectUrl",[o,t]=(0,s.useState)(null);return(0,s.useEffect)(()=>{let e=(0,g.getCookie)(n);"string"==typeof e&&e.trim()&&((0,g.deleteCookie)(n),t(e))},[]),e.redirectUrl=o,(0,r.jsx)(c.u2,{...e})})(n);break;case"linkGoogleAccount":(0,d.bM)(S,()=>v()),o=(0,r.jsx)("div",{className:"link-google-account",children:(0,u.jr)()});break;case"login":(e=>{let n=e.myaccountTranslations;(0,d.bM)(()=>(e=>{try{!window.evolokLoaded&&(window.evolokLoaded=!0,window.addEventListener("ev.ad.authorize",C),(0,l.zP)(),(0,l.Vu)(),(0,l._1)(e),(0,l.Vc)(),window.EV&&window.EV.Event&&((0,d.WY)(),window.EV.Event.on(window.EV.Event.USER_IDENTIFIED,async()=>{h.P.emit("loginScreen",{eventCategory:"loginScreen",eventCode:"loginScreen",eventName:"submit",data:{}}),(0,_.xm)()}),window.EV.Event.on(window.EV.Event.USER_NOT_FOUND,e=>{h.P.emit("registrationScreen",{eventCategory:"registrationScreen",eventCode:"registrationScreen",eventName:"submit",data:{email:"".concat(e[0].value)}}),(0,_.By)()}),window.EV.Event.on("registration.widgetLoaded",function(){(0,d.z_)(),(0,d.bu)(),(0,d.cA)(),(0,d.I9)(),(0,d.LK)()}),window.EV.Event.on("eventRegisterSuccess",()=>{(0,d.Lh)()}),window.EV.Event.on(window.EV.Event.SOCIAL_REGISTER_SUCCESS,d.Lh),window.EV.Event.on(window.EV.Event.REGISTRATION_SUCCESS,d.Lh),window.EV.Event.on("loginSuccess",d.Ne),window.EV.Event.on(window.EV.Event.SOCIAL_LOGIN_SUCCESS,d.Ne),window.EV.Event.on(window.EV.Event.LOGIN_SUCCESS,d.Ne),window.EV.Event.on("showUserIdentifier",()=>{(0,_.of)()}),window.EV.Event.on(window.EV.Event.REGISTRATION_CANCELLED,_.of),window.EV.Event.on(window.EV.Event.LOGIN_CANCELLED,_.of),window.EV.Event.on(window.EV.Event.FORGOT_PASSWORD_CANCELLED,()=>{let e=(0,d.vA)();(null==e?void 0:e.showScreen)==="forgotpassword"?(history.replaceState({},"","".concat("/myaccount/","login/")),(0,_.of)()):(h.P.emit("loginScreen",{eventCategory:"loginScreen",eventCode:"loginScreen",eventName:"submit",data:{}}),(0,_.xm)())}),window.EV.Event.on(window.EV.Event.FORGOT_PASSWORD_SUCCESS,()=>{h.P.emit("forgotPasswordSuccessScreen",{eventCategory:"forgotPasswordSuccessScreen",eventCode:"forgotPasswordSuccessScreen",eventName:"submit",data:{}}),(0,_.tC)()}),window.EV.Event.on(window.EV.Event.OAUTH_REQUEST_FAILED,function(){window.EV.Core.UI.logout()}),h.P.on("UserDataRecoveryCompleteEvent",()=>{L&&(0,d.Nl)()})),(0,_.Dy)())}catch(e){i.R.error("login","Error during onLoad",e.message)}})(n),()=>(()=>{let e="https://".concat("myaccount.hellomagazine.com").concat("/myaccount/"),n="sorry-we-couldnt-verify-your-email";e&&n?(0,d.aj)("".concat(e).concat(n,"/")):console.error("Missing environment variables: EVOLOK_MYACCOUNT_BASEURL or VERIFICATION_EMAIL_KO_SLUG")})())})(n.myAccounttranslations),t=n.myAccounttranslations.myaccountTranslations,o=(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"evolok__wrapper-container",children:[(0,_.kz)(t),(0,r.jsxs)("div",{className:"evolok__main-container",children:[(0,u.DP)(),(0,u.N1)(!0,!0,!0),(0,u.E9)(),(0,u.d9)()]}),(0,r.jsx)("div",{id:"spinner-container",className:"hide",children:(0,r.jsx)(y.y,{})}),(0,_.I2)(t)]})});break;case"reset":(0,d.bM)(()=>(()=>{try{window.addEventListener("ev.ad.authorize",k),(0,l.zP)(),(0,l.Vu)(),(()=>{let e="https://".concat("myaccount.hellomagazine.com").concat("/myaccount/"),n="your-password-has-been-updated";window.EV&&window.EV.Event&&(window.EV.Event.on(window.EV.Event.RESET_PASSWORD_FORM_LOADED,function(){(0,d.zg)()}),window.EV.Event.on(window.EV.Event.RESET_PASSWORD_SUCCESS,function(){e&&n?((0,_.tC)(),(0,_.xc)(),performance.mark("[MyaccountEvolok] - RESET_PASSWORD_SUCCESS"),(0,d.aj)("".concat(e).concat(n,"/"))):console.error("Missing environment variables: EVOLOK_MYACCOUNT_BASEURL or VERIFICATION_EMAIL_OK_SLUG")}),window.EV.Event.on(window.EV.Event.RESET_PASSWORD_FAILED,function(){let e=document.querySelector('#resetpassword-widget div[ng-if="showErrorMsgs"]');null==e||e.removeAttribute("classname"),console.debug("CALL_BACK: RESET_PASSWORD_FAILED")}),window.EV.Event.on(window.EV.Event.FORGOT_PASSWORD_SUCCESS,()=>{h.P.emit("forgotPasswordSuccessScreen",{eventCategory:"forgotPasswordSuccessScreen",eventCode:"forgotPasswordSuccessScreen",eventName:"submit",data:{}}),(0,_.tC)()}))})()}catch(e){i.R.error("linkGoogleAccount","Error during onLoad",e.message)}})(),()=>(()=>{let e="https://".concat("myaccount.hellomagazine.com").concat("/myaccount/"),n="sorry-we-couldnt-verify-your-email";e&&n?(0,d.aj)("".concat(e).concat(n,"/")):console.error("Missing environment variables: EVOLOK_MYACCOUNT_BASEURL or VERIFICATION_EMAIL_KO_SLUG")})()),o=(()=>{{let e=(0,d.vA)();(null==e?void 0:e.resetAttributeKey)||(null==e?void 0:e.serviceName)==="resetpassword"||(0,d.aj)("https://www.hellomagazine.com/")}return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"evolok__wrapper-container",children:[(0,r.jsx)("div",{className:"evolok__main-container",children:(0,u.UN)()}),(0,r.jsx)("div",{id:"spinner-container",children:(0,r.jsx)(y.y,{})})]})})})();break;case"thankYouResetPassword":o=(e=>{let n="".concat("/myaccount/","/login/");return e.redirectUrl=n,(0,s.useEffect)(()=>{setTimeout(()=>{window.location.href=n},7e3)},[]),(0,r.jsx)(c.u2,{...e})})(n);break;case"checkoutSuccess":(0,d.WY)(),(0,s.useEffect)(()=>{(0,g.setCookie)("user-account-ev","success-checkout",{path:"/",maxAge:900});let e=setTimeout(()=>{(0,d.Nl)()},parseInt("5000",10));return()=>clearTimeout(e)},[]),o=(0,r.jsx)(y.y,{});break;case"profile":if((null==j||null==j.env?void 0:"true")!=="true")return(0,d.aj)(window.parentHomeLink),(0,r.jsx)("div",{id:"spinner-container",children:(0,r.jsx)(y.y,{})});(e=>{let n=e.myaccountTranslations;(0,d.bM)(()=>(e=>{try{!window.evolokLoaded&&(window.evolokLoaded=!0,window.addEventListener("ev.ad.authorize",V),(0,l.zP)(),(0,l.Vu)(),(0,l._1)(e),(0,l.Vc)(),window.EV&&window.EV.Event&&(window.EV.Event.on(window.EV.Event.EDIT_PROFILE_FORM_LOADED,function(e){if(Object.hasOwn(e,"profile")&&void 0!==e.profile){var n;null==(n=document.getElementById("email"))||n.setAttribute("readonly","readonly")}}),window.EV.Event.on(window.EV.Event.EDIT_PROFILE_COMPLETE_SUCCESS,async function(e){(0,O.S9)();try{var n;let o=null==e||null==(n=e.response)?void 0:n.userProfile;await f(o)}catch(e){console.error("Error sending VIP access request",e)}h.P.emit("restartEvolok",{eventCategory:"restartEvolok",eventCode:"restartEvolok",eventName:"restartEvolok",data:{}})})))}catch(e){i.R.error("profile","Error during onLoad",e.message)}})(n),()=>void console.error("Error when loading evolok library in profile"))})(n.myAccounttranslations),o=(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{id:"myaccount-profile",className:"myaccount-profile hide",children:(0,r.jsx)(c.u2,{...n})}),(0,r.jsx)("div",{id:"spinner-container",children:(0,r.jsx)(y.y,{})})]})});break;case"subscriptions":(e=>{var n;let o=null!=(n=e.myaccountTranslations)?n:{};(0,d.bM)(()=>(e=>{try{!window.evolokLoaded&&(window.evolokLoaded=!0,window.addEventListener("ev.ad.authorize",p),(0,l.zP)(),(0,l.Vu)(),(0,l._1)(e),(0,l.Vc)(),N())}catch(e){i.R.error("subscriptions","Error during onLoad",e.message)}})(o),()=>void console.error("Error when loading evolok library in subscriptions"))})(n.myAccounttranslations),o=(e=>
1{let[n,o]=(0,s.useState)([]),[t,a]=(0,s.useState)(!0);return(0,s.useEffect)(()=>{let e=!0;return new Promise(e=>{I=e,window.EV&&window.EV.Event&&N()}).then(function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e&&(o(n||[]),a(!1))}),()=>{e=!1}},[]),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{id:"myaccount-subscriptions",className:"myaccount-subscriptions hide",children:(0,r.jsx)(c.u2,{...e,roles:n,loadingRoles:t})}),(0,r.jsx)("div",{id:"spinner-container",children:(0,r.jsx)(y.y,{})})]})})(n)}return o},P=e=>{let{data:{dataProps:n}}=e;return n.onlogoutclick=U,(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(T(),{children:(0,r.jsx)("meta",{name:"robots",content:"noindex, nofollow"})}),(0,r.jsx)(x,{data:{dataProps:n}})]})}}}]);

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.