[]
Use left and right arrow keys to navigate between menu items. Use escape to exit the menu.
Sign In
Sign InUp with your social account
We won’t post to any of your accounts
Sign Up
Create a free account to access exclusive content, play games, solve puzzles, test your pop-culture knowledge and receive special offers. Already have an account? Login
Sign InUp with your social account
We won’t post to any of your accounts
var inline;(()=>{var e={317:e=>{e.exports=XMLHttpRequest}},o={};function t(n){var s=o[n];if(void 0!==s)return s.exports;var i=o[n]={exports:{}};return e[n](i,i.exports,t),i.exports}t.d=(e,o)=>{for(var n in o)t.o(o,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:o[n]})},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),t.r=e=>{“undefined”!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:”Module”}),Object.defineProperty(e,”__esModule”,{value:!0})};var n={};(()=>{“use strict”;t.r(n),t.d(n,{browser:()=>e,greeter:()=>r,prompt:()=>o,ssoBroker:()=>i,state:()=>c,utility:()=>a});const e={is3rdPartyCookieSet:()=>!!localStorage.getItem(a.getPrefix()+”3rd_party_cookie”),set3rdPartyCookie(e){this.setLocalStorageItem(a.getPrefix()+”3rd_party_cookie”,e,31536e3)},get3rdPartyCookie(){return this.getLocalStorageItem(a.getPrefix()+”3rd_party_cookie”)},socialNetworkAuth(e){console.log(“AA1 socialNetworkAuth”,e);let o=window._cognito.ssoServer+”/?back_to=”+window.location.protocol+”//”+window.location.host+”/”;window._cognito.is_shopify||this.get3rdPartyCookie()||(o+=”?sso_login”);const t=encodeURIComponent(o),n=window._cognito.poolUrl+”/oauth2/authorize?identity_provider=”+e+”&redirect_uri=”+t+”&response_type=CODE&client_id=”+window._cognito.clientId+”&scope=aws.cognito.signin.user.admin email openid profile”;if(“/”!==location.pathname){const e=location.protocol+”//”+location.host+location.pathname;console.log(“AA2 socialNetworkAuth setting back url to “,e),localStorage.setItem(a.getPrefix()+”ipa”,e),window.location.href=n}else console.log(“AA3 socialNetworkAuth”,n),window.location.href=n;return!0},getTokenFromLocalStorage(){const e=window.localStorage.getItem(a.getPrefix()+”accessToken”),o=window.localStorage.getItem(a.getPrefix()+”refreshToken”);return”null”==e||null==e||”null”==o||null==o?{accessToken:null,refreshToken:null,idToken:null}:{accessToken:e,refreshToken:o,idToken:window.localStorage.getItem(a.getPrefix()+”idToken”)}},setLocalStorageItem(e,o,t){if(-1==e.indexOf(“3rd_party_cookie”)&&-1==e.indexOf(“consent”)&&-1==e.indexOf(“a360-non_commerce-variant”)&&-1==e.indexOf(“a360-spanish-variant”)&&-1==e.indexOf(“a360-commerce-variant”)&&-1==e.indexOf(“a360-recipe-variant”)&&!this.isConsent())return void console.log(“AA refusing to store “+e+” because there is no consent”);const n={value:o,expiry:t?Date.now()+1e3*t:null};localStorage.setItem(e,JSON.stringify(n))},getLocalStorageItem(e){let o=localStorage.getItem(e);return o?(o=JSON.parse(o),o.expiry&&Date.now()>o.expiry?(localStorage.removeItem(e),null):o.value):null},removeLocalStorageItem(e){localStorage.removeItem(e)},setUserInLocalStorage(e){this.isConsent()?window.localStorage.setItem(a.getPrefix()+”user”,JSON.stringify(e)):console.log(“AA refusing to store user in ls because there is no consent”,window.OnetrustActiveGroups)},getUserFromLocalStorage(){const e=window.localStorage.getItem(a.getPrefix()+”user”);return e?JSON.parse(e):null},setTokenInLocalStorage(e,o,t){if(!this.isConsent())return void console.log(“AA refusing to store tokens in ls because there is no consent”,window.OnetrustActiveGroups);const n=”cognito_”+window._cognito.clientId+”_”;if(window.localStorage.setItem(n+”accessToken”,e),window.localStorage.setItem(n+”refreshToken”,o),window.localStorage.setItem(n+”idToken”,t),t&&”undefined”!==t){console.log(“AA viafoura broadcasting ‘id_token_defined’ event”);const e=new CustomEvent(“id_token_defined”,{detail:{idToken:t}});document.dispatchEvent(e)}},hasSSO:()=>!!localStorage.getItem(“cognito_”+window._cognito.clientId+”_last”),setLastInLocalStorage(e){const o=”cognito_”+window._cognito.clientId+”_last”;if(!e)return console.log(“AA removing ‘last’ from local storage”),void window.localStorage.removeItem(o);this.isConsent()?window.localStorage.setItem(o,e):console.log(“AA refusing to store ‘last’ in ls because there is no consent”,window.OnetrustActiveGroups)},removeTokens(){const e=a.getPrefix();[“accessToken”,”refreshToken”,”idToken”,”user”,”synced”,”subscriptions”,”3rd_party_cookie”,”celebs”,”shows”].forEach((o=>localStorage.removeItem(e+o)))},isLoggedIn(){return null!==this.getTokenFromLocalStorage().accessToken},getCookieByName(e){const o=document.cookie.split(“;”);for(const t of o){const o=t.trim();if(o.startsWith(e+”=”))return o.substring(e.length+1)}return null},isCM:()=>[“womansworld”,”firstforwomen”,”soapoperadigest”].some((e=>window.location.hostname.includes(e))),isConsent(){return!!window._cognito.is_shopify||!(!window.location.href.includes(“/digital-editions/”)&&!window.location.href.includes(“/library/si-swim/”))||(this.isCM()?this.havePurposeStorageConsent():!!window.OnetrustActiveGroups&&window.OnetrustActiveGroups.includes(“,C0003,”))},havePurposeStorageConsent_v2(){const e=window.cmpConsentPurposes;return void 0!==e&&”string”==typeof e&&e.includes(“,1,”)},hasTargetingConsent_v2(){if(!window.cmpConsentPurposes)return!1;for(let e=2;e<=11;e++)if(!window.cmpConsentPurposes.includes(","+e+","))return!1;return!0},havePurposeStorageConsent(){let e=this.getLocalStorageItem(a.getPrefix()+"consent");return!(!e||e.length<2)&&e[0]},hasTargetingConsent(){let e=this.getLocalStorageItem(a.getPrefix()+"consent");return!(!e||e.length<2)&&e[1]},saveTCFConsent(){const e=(window.cmpConsentPurposes||"").split(",").filter(Boolean).map(Number),o=e.includes(1);let t=!0;for(let o=2;o<=11;o++)if(!e.includes(o)){t=!1;break}const n=[o,t];console.log("AA TCF saveTCFConsent",n),this.setLocalStorageItem(`${a.getPrefix()}consent`,n,31536e3)},saveTCFConsent_v1(e){const o=e?.purpose?.consents||{},t=o[1]||!1;let n=!0;for(let e=2;e{if(console.log("AA usNow 000"),!e.isLoggedIn())return console.log("AA usNow 1"),void window.open("https://"+window._cognito.shopifyStore);this.popTitle().textContent="You are leaving "+window.location.hostname+" for UsNow",this.subTitle().textContent="Do you want to be automatically logged in there?",this.cancelBtn().textContent="No, thanks",this.confirmBtn().textContent="Yes, please",this.popUp().classList.add("active"),s()}));let t=e=>{const o=window._cognito.ssoServer+”?checkout=”+encodeURIComponent(“https://”+window._cognito.shopifyStore);e.preventDefault(),console.log(“AA1.0 window.open with “+o),window.open(o,”_blank”),this.popUp().classList.remove(“active”)},n=e=>{e.preventDefault(),window.open(“https://”+window._cognito.shopifyStore,”_blank”),this.popUp().classList.remove(“active”)},s=()=>{this.confirmBtn().addEventListener(“click”,t),this.cancelBtn().addEventListener(“click”,n)};this.closePopUpBtn().addEventListener(“click”,(()=>{this.popUp().classList.remove(“active”),this.cancelBtn().removeEventListener(“click”,n),this.confirmBtn().removeEventListener(“click”,t)}))},customConfirm(e,o,t=”OK”,n=”Cancel”,s=!0){this.popTitle().textContent=e,this.subTitle().textContent=o,this.confirmBtn().textContent=t,this.cancelBtn().textContent=n,s&&this.closePopup();let i=this;return new Promise((e=>{function o(t){t.preventDefault(),i.popUp().classList.remove(“active”),i.cancelBtn().removeEventListener(“click”,o),i.closePopUpBtn().removeEventListener(“click”,o),e(!1)}i.popUp().classList.add(“active”),i.confirmBtn().addEventListener(“click”,(function t(n){n.preventDefault(),i.popUp().classList.remove(“active”),i.confirmBtn().removeEventListener(“click”,t),i.closePopUpBtn().removeEventListener(“click”,o),e(!0)})),i.cancelBtn().addEventListener(“click”,o),i.closePopUpBtn().addEventListener(“click”,o)}))},customMessage(e=””,o){this.popUp().classList.add(“active”),this.cancelBtn().style.display=”none”,this.popTitle().textContent=e,this.subTitle().textContent=o;let t=this;return new Promise((e=>{function o(n){n.preventDefault(),t.cancelBtn().style.display=”block”,t.popUp().classList.remove(“active”),t.confirmBtn().removeEventListener(“click”,o),t.closePopUpBtn().removeEventListener(“click”,o),e(!0)}t.confirmBtn().addEventListener(“click”,o),t.closePopUpBtn().addEventListener(“click”,o)}))},closePopup(){document.getElementById(“login-body”).style.display=”none”,document.body.style.overflow=””}},s=(e,o={})=>new Promise(((n,s)=>{const i=t(317),r=new i;r.onreadystatechange=function(){r.readyState===i.DONE&&(200===this.status?(console.log(`AA XHR [${e}] HTTP[200]`),n(this.responseText)):(console.log(`AA XHR [${e}] HTTP[non-200] [${this.status}] [${this.statusText}]`),s(`Call to [${e}] failed with [${this.status}] [${this.statusText}]`)))},r.open(“POST”,window._cognito.ssoServer+”/”),r.withCredentials=!0,r.setRequestHeader(“Content-Type”,”application/json”);let a=””;if(window.inline&&window.inline.browser){const e=window.inline.browser.getTokenFromLocalStorage();a=e?e.accessToken:””}const c={action:e,token:a,…o};r.send(JSON.stringify(c))})),i={probe(){let o=this;console.log(“AAP start SETTING probe cookie”),o.setProbe().then((function(t){console.log(“AAP1 end SETTING probe cookie, success”,t),console.log(“AAP2 start GETTING probe cookie”),o.getProbe().then((function(o){console.log(“AAP3 end GETTING probe cookie, success”,o),e.set3rdPartyCookie(o.probe)})).catch((function(o){console.log(“AAP3 end GETTING probe cookie, error”,o),e.set3rdPartyCookie(!1)}))})).catch((e=>console.log(“AAP3 end SETTING probe cookie, error”,e)))},pullTokensFromCache:e=>(console.log(“AA SSOBroker.pullTokensFromCache by code: “+e),s(“pullTokensFromCache”,{code:e})),setTokensViaRedirect(o=””,t=””,n=””,i=””,r=!1){t&&!r&&e.setLastInLocalStorage(Math.floor(Date.now()/1e3));let a=[];window.location.href.includes(“/library/si-swim/”)?(console.log(“AA PWA SI: no 3rd party, setting cookie via redirect. setting ‘redirecing’ flag”),inline.state.redirecting_pwa=!0):o&&o&&a.push(“sso_msg=”+o),i||(i=window.location.href),(i=i.split(“?”)[0]).endsWith(“viafoura-comments”)&&(console.log(“AA setTokensViaRedirect: dropping viafoura-comments from the end of the back_to”,i),i=i.slice(0,-17)),i=i.replace(/#/g,””),a.length&&(i+=encodeURIComponent(“?”+a.join(“&”)));let c=window._cognito.ssoServer+”?sso=set”;c=c+”&back_to=”+i,r&&(c+=”&last=remove”),console.log(“AA setting tokens via redirect”,c),s(“pushTokensToCache”,{accessToken:t,refreshToken:n}).then((e=>{console.log(“AA SSBroker.setTokensViaRedirect pushed tokens to remote memcache, got code back “+e+”, redirecting to”,c+”&auth_code=”+e),window.location.href=c+”&auth_code=”+e})).catch((e=>{console.log(“AA setting tokens via redirect on remote memcache”,e)}))},getTokensViaRedirect(){let e=window.location.href.split(“?”)[0];e.endsWith(“viafoura-comments”)&&(console.log(“AA getTokensViaRedirect: dropping viafoura-comments from the end of the back_to”,e),e=e.slice(0,-17)),e=e.replace(/#/g,””);let o=window._cognito.ssoServer+”?sso=get&back_to=”+e;console.log(“AA getting tokens via redirect”,o),window.location.href=o},setProbe:async()=>new Promise((function(e,o){var n=new(t(317));n.open(“POST”,window._cognito.ssoServer+”/”),n.onload=function(){200==n.status?e(n.response):o({status:n.status,statusText:n.statusText})},n.onerror=function(){o({status:n.status,statusText:n.statusText})},n.withCredentials=!0,n.setRequestHeader(“Content-Type”,”application/json”),n.send(JSON.stringify({action:”setProbe”}))})),getProbe:async()=>new Promise((function(e,o){var n=new(t(317));n.open(“POST”,window._cognito.ssoServer+”/”),n.onload=function(){if(200==n.status){if(!n.responseText)return console.log(“AA2.0 SSBroker get no probe found, browser does not support 3rd party cookies”),void o({status:0,statusText:”Probe Not Found”});var t=JSON.parse(n.responseText);return””===t.probe?(console.log(“AA2.1 SSBroker get no probe found, browser does not support 3rd party cookies”),void o({status:0,statusText:”Probe Not Found”})):(console.log(“AA3 SSBroker get probe found (browser supports 3rd part cookie):”+t.probe),void e({probe:t.probe}))}console.log(“AA4 SSBroker probe returned non-200 code: “+n.status+” “+n.statusText),o({status:n.status,statusText:n.statusText})},n.onerror=function(){console.log(“AA5 SSBroker probe returned non-200 code: “+n.status+” “+n.statusText),o({status:n.status,statusText:n.statusText})},console.log(“AAP0 sending get probe request”),n.open(“POST”,window._cognito.ssoServer+”/”),n.withCredentials=!0,n.setRequestHeader(“Content-Type”,”application/json”),n.send(JSON.stringify({action:”getProbe”}))})),async setTokenOnSSO(o=null,n=null,s=!1){if(e.isConsent())return!s&&o&&e.setLastInLocalStorage(Math.floor(Date.now()/1e3)),new Promise((function(e,i){var r=new(t(317));r.open(“POST”,window._cognito.ssoServer+”/”),r.onload=function(){200==r.status?e(r.response):i({status:r.status,statusText:r.statusText})},r.onerror=function(){i({status:r.status,statusText:r.statusText})},r.withCredentials=!0,r.setRequestHeader(“Content-Type”,”application/json”);const a={action:”set”,accessToken:o,refreshToken:n};s&&(a.deleteEverLastingCookie=!0),r.send(JSON.stringify(a))}));console.log(“AA refusing to store tokens on SSO server because there is no consent”)},getTokenFromSSO:async()=>new Promise((function(e,o){var n=new(t(317));n.open(“POST”,window._cognito.ssoServer+”/”),n.onload=function(){if(200==n.status){if(!n.responseText)return console.log(“AA1 SSBroker get No Tokens Found”),void o({status:0,statusText:”Tokens Not Found”});var t=JSON.parse(n.responseText);return””!==t.accessToken&&t.accessToken?(console.log(“AA3 SSBroker get Tokens Found!!!”),void e({accessToken:t.accessToken,refreshToken:t.refreshToken,last:t.last})):(console.log(“AA2.1 SSBroker get No Tokens Found”),void o({status:0,statusText:”Tokens Not Found”}))}console.log(“AA4 SSBroker returned non-200 code: “+n.status+” “+n.statusText),o({status:n.status,statusText:n.statusText})},n.onerror=function(){console.log(“AA5 SSBroker returned non-200 code: “+n.status+” “+n.statusText),o({status:n.status,statusText:n.statusText})},n.open(“POST”,window._cognito.ssoServer+”/”),n.withCredentials=!0,n.setRequestHeader(“Content-Type”,”application/json”),n.send(JSON.stringify({action:”get”}))}))},r={populateFromBlueConicEmail(o){const t=document.getElementsByClassName(“bcMedium textInput”);if(t&&t.length>0){const n=t[0].value;n&&document.getElementById(“emailInputRegister”)&&(document.getElementById(o).value=n,e.setLocalStorageItem(“BCDialogueCandidate”,!0,300))}},showSignIn(e=!0){document.getElementById(“login”).style.display=”flex”,document.getElementById(“profile”).style.display=”none”,document.getElementById(“login-body”).style.display=”flex”,document.getElementById(“register”).style.display=”none”,document.getElementById(“forgot”).style.display=”none”,document.getElementById(“profile”).style.display=”none”,document.querySelector(“.login-forgot__step-2”).classList.remove(“active”),document.querySelector(“.login-forgot__step-3”).classList.remove(“active”),document.querySelector(“.login-forgot__step-1”).classList.add(“active”),void 0!==this.populateFromBlueConicEmail?this.populateFromBlueConicEmail(“inputUsername”):window.inline&&window.inline.greeter.populateFromBlueConicEmail(“inputUsername”),e&&a.feedback(),a.showOverlay()},show(){if(e.isConsent())”showSignIn”!=window.cognito_popupOpener.name||e.get3rdPartyCookie()?window.cognito_popupOpener():i.getTokensViaRedirect();else{const t=’This website uses cookies in order to make the “Preference Center” section work. Please click the shield badge at the bottom left and consent to “Functional Cookies” to access your preferences and then reload this page.’,n=’This website uses cookies in order to make the “Preference Center” section work. Please click on the “Update Privacy Preferences” link at the bottom of the home page and consent to “Store and/or access information on a device” purpose to access your preferences.’,s=e.isCM()?n:t;o.customMessage(void 0,s).then((()=>{}))}},setLoginLink(e,o){window.cognito_isLoginLinkSet=!0,window._cognito.timeout&&clearTimeout(window._cognito.timeout),window.cognito_popupOpener=o,e&&document.body.classList.add(“sso-logged-in”),document.querySelectorAll(“.js-cognito-login”).forEach((o=>{e?(o.classList.remove(“user-logged-out”),o.classList.add(“user-logged-in”),o.setAttribute(“aria-label”,”Account”)):(o.classList.remove(“user-logged-in”),o.classList.add(“user-logged-out”),o.setAttribute(“aria-label”,”Login”))})),e&&window.cognito_user&&window.cognito_user.picture&&this.setAvatar(window.cognito_user.picture)},setAvatar(e){let o=e.replace(“s96-c”,”s300-c”),t=document.getElementById(“sso-logo-wrapper”);t.classList.add(“sso-user-avatar”),t.innerHTML=”“},closeProfilePopup(){document.getElementById(“login-body”).style.display=”none”,document.body.style.overflow=””,a.hideOverlay(),window._cognito.is_shopify&&”function”==typeof go_back_to_checkout&&go_back_to_checkout()},showForgotPassword(){document.getElementById(“login”).style.display=”none”,document.getElementById(“register”).style.display=”none”,document.getElementById(“forgot”).style.display=”flex”,a.feedback()},showSignUp(){console.log(“AA85 running inline.greeter.showSignUp()”),document.getElementById(“profile”).style.display=”none”,document.getElementById(“login-body”).style.display=”flex”,document.getElementById(“login”).style.display=”none”,document.getElementById(“register”).style.display=”flex”,a.feedback(),void 0!==this.populateFromBlueConicEmail?this.populateFromBlueConicEmail(“emailInputRegister”):window.inline&&window.inline.greeter.populateFromBlueConicEmail(“emailInputRegister”),a.showOverlay()},showRestorePassword(e){document.getElementById(“login”).style.display=”none”,document.getElementById(“register”).style.display=”none”,document.querySelector(“.login-forgot__step-1”).classList.remove(“active”),document.querySelector(“.login-forgot__step-2”).classList.add(“active”),document.querySelectorAll(“.recovery-code__input”).forEach((e=>e.value=””)),document.getElementById(“passwordReset”).value=””,document.getElementById(“confirmPasswordReset”).value=””,document.getElementById(“restoreEmail”).innerHTML=e,a.feedback()}},a={showPassword(e){let o;switch(e){case”signin”:o=document.querySelector(“#inputPassword”);break;case”signup”:o=document.querySelector(“#passwordInputRegister”);break;case”reset”:o=document.querySelector(“#passwordReset”)}let t=o.closest(“.login-form”),n=t.querySelector(“.view-password-button”);if(“password”===o.getAttribute(“type”)){let e=t.querySelectorAll(“.js-password”);for(let o of e)o.setAttribute(“type”,”text”);n.setAttribute(“aria-pressed”,”true”),n.style.setProperty(“–eye”,”none”),n.style.setProperty(“–eye-crossed”,”block”)}else{let e=t.querySelectorAll(“.js-password”);for(let o of e)o.setAttribute(“type”,”password”);n.setAttribute(“aria-pressed”,”false”),n.style.setProperty(“–eye”,”block”),n.style.setProperty(“–eye-crossed”,”none”)}},doze(e){var o=1e3*e,t=new Date,n=null;console.log((new Date).toLocaleTimeString()+” AA starting to doze for “+e);do{n=new Date}while(n-t(e.match(/(.*){/)||[e])[1],extractKey:e=>(e.match(/{(.*)}/)||[e])[1],setInputValue(e,o){const t=document.getElementById(e);if(t)if(“INPUT”===t.tagName)”checkbox”===t.getAttribute(“type”)?t.checked=!(“Y”!==o&&”on”!==o):t.value=o;else if(“SELECT”===t.tagName)for(let e=0;e”cognito_”+window._cognito.clientId+”_”,feedback(e=null,o=!1){const t=document.getElementById(“feedback-wrapper”);if(null==e)return void(t.innerHTML=””);let n={‘”Incorrect username or password.”‘:”Incorrect email or password.”,'”Attributes updated.”‘:”Your changes were saved”,'”New password is set successfully”‘:”Your password was reset”,”Account Deleted”:”Your account has been deleted”,”Enter a valid phone number”:”Your changes were saved. Please note that we were unable to propagate phone number to Shopify account because of its restrictive phone number policies.”,”country – is required”:”This service is available only in the U.S.”,”province is not valid”:”This service is available only in the U.S.”,”province – is not valid”:”This service is available only in the U.S.”,”signature – has already been taken”:”Sorry, something went wrong”,”base – Customer address cannot be blank.”:”Customer address cannot be blank”,”address blank”:”Customer address cannot be blank”,”address removed”:”Address has been removed”,”address remove failed”:”Address has not been removed due to error”,”unsubscribed all”:”You have been unsubscribed from all subscriptions”,”Maximal address number”:”The maximal address number is 5″,InvalidParameterException:”One or more fields have an error. Please check and try again.”,InvalidCreditCard:”Please fill in a correct payment card details”,SubscriptionFailed79:”Something went wrong. Please contact Subscription Customer Service at firstforwomen@emailcustomerservice.com.nPlease be sure to include your full name, complete mailing address, and description of your inquiry/problem that you’re experiencing so that customer service is able to look up your subscription account file and assist you properly.”,SubscriptionFailed80:”Something went wrong. Please contact Subscription Customer Service at womansworld@emailcustomerservice.com.nPlease be sure to include your full name, complete mailing address, and description of your inquiry/problem that you’re experiencing so that customer service is able to look up your subscription account file and assist you properly.”},s=e;if(“object”==typeof e&&(s=e.message||JSON.stringify(e)),s in n&&(s=n[s]),s.indexOf(“TypeError”)>-1)return void console.log(“AA random TypeError message, ignoring”,(new Error).stack);let a=document.createElement(“span”);if(a.classList.add(“active”,”feedback-message”),a.innerHTML=s,o?a.classList.add(“feedback-success”):a.classList.add(“feedback-error”),setInterval((()=>{a.classList.remove(“active”),setInterval((()=>{a.remove()}),1500)}),7e3),s.indexOf(“Refresh Token has expired”)>-1||s.indexOf(“User does not exist”)>-1||s.indexOf(“Error Removing Account”)>-1||window.location.href.indexOf(“a360-force-logout”)>-1)return window.location.href.indexOf(“a360-force-logout”)>-1?console.log(“AAE Forcing logout because url is “+window.location.href):console.log(“AAE Fatal error message, logging user out”,s),inline.browser.get3rdPartyCookie()?(inline.browser.removeTokens(),i.setTokenOnSSO(null,null).then((e=>{console.log(“AA tokens on sso server were forcefully removed “+e)})),r.setLoginLink(!1,r.showSignIn),void inline.greeter.showSignIn()):(inline.browser.removeTokens(),void i.setTokensViaRedirect());t.append(a)},updateSubmitButtonState(e){const o=e.querySelector(“.js-submit-form”);e.querySelectorAll(“.error”).length>0?o.setAttribute(“disabled”,”disabled”):o.removeAttribute(“disabled”)},validatePassword(e){const o=e.querySelector(“.js-validate-password”),t=e.querySelector(“.password-requirements”),n=e.querySelector(“.error-message__password”);if(!o)return;let s=!1;const i=e=>e.length>=8,r=e=>/[a-z]/.test(e),a=e=>/[A-Z]/.test(e),c=e=>/[0-9]/.test(e),l=()=>{const l=o.value.trim();if(t){const o=e.querySelector(“.pswd-length”),t=e.querySelector(“.pswd-lowercase”),n=e.querySelector(“.pswd-uppercase”),s=e.querySelector(“.pswd-number”);o.classList.toggle(“validation-success”,i(l)),t.classList.toggle(“validation-success”,r(l)),n.classList.toggle(“validation-success”,a(l)),s.classList.toggle(“validation-success”,c(l))}const d=i(l)&&r(l)&&a(l)&&c(l);s&&(d?(o.classList.remove(“error”),n.textContent=””):(o.classList.add(“error”),n.textContent=”Password must be at least 8 characters long and contain at least one lowercase letter, one uppercase letter, and one digit.”),this.updateSubmitButtonState(e))};o.addEventListener(“input”,(()=>{s&&l()})),o.addEventListener(“blur”,(()=>{s=!0,l()}))},validatePasswordMatch(e){const o=e.querySelector(“.js-validate-password”),t=e.querySelector(“.js-password-confirm”);let n=e.querySelector(“.error-message__password-confirm”);if(!t)return;let s=!1;const i=()=>{const i=o.value.trim(),r=t.value.trim(),a=i===r&&r.length>0;s&&(a?(t.classList.remove(“error”),n.textContent=””):(t.classList.add(“error”),n.textContent=”Passwords do not match.”),this.updateSubmitButtonState(e))};t.addEventListener(“input”,(()=>{s&&i()})),t.addEventListener(“blur”,(()=>{s=!0,i()}))},validateEmail(e){const o=e.querySelector(“.js-validate-email”);let t=e.querySelector(“.error-message__email”);if(!o)return;let n=!1;const s=()=>{const s=(i=o.value,/^w+([.-]?w+)*@w+([.-]?w+)*(.w{2,})+$/.test(i));var i;n&&(s?(o.classList.remove(“error”),t.textContent=””):(o.classList.add(“error”),t.textContent=”Please enter a valid email address.”),this.updateSubmitButtonState(e))};o.addEventListener(“input”,(()=>{n&&s()})),o.addEventListener(“blur”,(()=>{n=!0,s()}))},validateNameField(e){const o=e.querySelector(“.js-validate-name”);let t=e.querySelector(“.error-message__name”);if(!o)return;let n=!1;const s=()=>{const s=o.value.trim(),i=/^[a-zA-Z]+([-s]?[a-zA-Z]+)*$/.test(s);n&&(i?(o.classList.remove(“error”),t.textContent=””):(o.classList.add(“error”),t.textContent=”Please enter a valid name (letters, spaces, or hyphens only).”),this.updateSubmitButtonState(e))};o.addEventListener(“input”,(()=>{n&&s()})),o.addEventListener(“blur”,(()=>{n=!0,s()}))},showOverlay(){document.getElementById(“profile-popup-overlay”).classList.add(“active”),document.body.classList.add(“overlay-active”)},hideOverlay(){document.getElementById(“profile-popup-overlay”).classList.remove(“active”),document.body.classList.remove(“overlay-active”)},subsGoToStep1(){document.querySelector(“.subscriptions-wrapper”).classList.remove(“active-step-2”)},subsGoToStep2(){document.querySelector(“.subscriptions-wrapper”).classList.add(“active-step-2”)},goToTab(e){document.querySelectorAll(“.account-menu__item”).forEach((e=>{e.classList.remove(“active”)})),document.querySelectorAll(“.account-info__tab”).forEach((e=>{e.classList.remove(“active”)})),document.querySelector(`[data-target-tab=”${e}”]`).classList.add(“active”),document.querySelector(`[data-tab=”${e}”]`).classList.add(“active”)},openSubscriptionPlans(e,o=”digital”,t=”US”){const n=document.getElementById(“subscription-plans__list”),s=n.querySelectorAll(“.subscription-plan”),i=n.querySelectorAll(`.subscription-plan[data-subscription-target=”${e}-${o}-${t}”]`);s.forEach((e=>{e.classList.remove(“visible”),e.querySelector(“input”).removeAttribute(“checked”)})),i.forEach(((e,o)=>{e.classList.add(“visible”),0===o&&e.querySelector(“input”).setAttribute(“checked”,”checked”)})),inline.utility.subsGoToStep2()},openDigitalSubscriptionOptions(e=33){try{console.log(“AA PWA openDigitalSubscriptionOptions 33”),this.showOverlay(),this.goToTab(“subscription”),this.openSubscriptionPlans(e),document.getElementById(“login-body”).style.display=”flex”}catch(e){console.log(“AA PWA Trying to call openDigitalSubscription, something went wrong:”,e)}}};var c={return_url:!1,subsCurrentProductId:79,currentIssueRegion:”US”,subsCurrentIssueBundleId:””,subsShippingAddress:””,subsBillingAddress:””,subsAddressesChanged:!1,onConsentChanged(e){setTargettingCookie(e.detail.includes(“C0004”))}};if(“#ipa”===window.location.hash||”#ipa_with_popup”===window.location.hash){if(history.pushState(“”,document.title,window.location.pathname+window.location.search),localStorage.getItem(a.getPrefix()+”ipa”)){let e=localStorage.getItem(a.getPrefix()+”ipa”);localStorage.removeItem(a.getPrefix()+”ipa”),console.log(“AA4 socialNetworkAuth got back URL”,e),”#ipa_with_popup”===window.location.hash&&(e+=”#ipa_with_popup”),window.location.href=e}}else localStorage.removeItem(a.getPrefix()+”ipa”);if(window._cognito.is_shopify=-1!==window.location.host.indexOf(“.myshopify.com”)||-1!==window.location.host.indexOf(“usnow.com”)||”magazineshop.us”==window.location.host||-1!==window.location.search.indexOf(“is_shopify”),window.cognito_isLoginLinkSet=!1,window.location.search&&window.location.search.indexOf(“sso_show_signin”)>-1){console.log(“AA LAST about to set”),window.location.search.indexOf(“last”)>-1&&(console.log(“AA LAST setting to local storage”),e.setLastInLocalStorage(Math.floor(Date.now()/1e3)));let o=window.location.href.split(“?”)[0];history.pushState(null,null,o),document.body.classList.contains(“single-games”)||document.body.classList.contains(“premium-template-post”)?r.showSignUp():e.getLocalStorageItem(a.getPrefix()+”subsForceProductId”)||r.showSignIn()}if(window.location.href.indexOf(“sso_msg=”)>-1){console.log(“AA1 sso_msg”,window.location.href);let e=new URLSearchParams(window.location.search).get(“sso_msg”),o=window.location.href.split(“?”)[0];history.pushState(null,null,o),console.log(“AA2 sso_msg”,e),e&&(a.feedback(decodeURIComponent(e),!0),console.log(“AA3 sso_msg”),”Account Created”==e&&r.setLoginLink(!0,r.showSignIn))}var l=window.localStorage.getItem(“cognito_”+window._cognito.clientId+”_accessToken”);if(“null”==l&&(l=null),null===l)if(console.log(“AAU0 js user logged in? “+(null!==l),(new Date).toLocaleTimeString()),window.location.search.indexOf(“auth_code”)>-1){const e=new URLSearchParams(window.location.search).get(“auth_code”);i.pullTokensFromCache(e).then((o=>{let t=JSON.parse(o);if(console.log(`AA [head embedded code] exchanged code ${e} with tokens`,t),t.accessToken&&t.refreshToken){let o=t.accessToken,n=t.refreshToken;console.log(`AA2 [head embedded code] got tokens from remote cache by code ${e}`),window.localStorage.setItem(“cognito_”+window._cognito.clientId+”_accessToken”,o),window.localStorage.setItem(“cognito_”+window._cognito.clientId+”_refreshToken”,n),window.cognito_pop_account=!0}else console.log(`AA [head embedded code] error exchanging code with tokens ${e}`,t),d()})).catch((o=>{console.log(`AA3 [head embedded code] error exchanging code with tokens ${e}`,o),d()}));let o=window.location.href.split(“?”)[0];”#ipa”===window.location.hash&&(o+=”#ipa_with_popup”),history.pushState(null,null,o)}else d();function d(){console.log(“AAU01 js creating ssoBroker.getTokenFromSSO() promise and starting to wait on it”,(new Date).toLocaleTimeString()),window.cognito_token_promise=i.getTokenFromSSO(),window.cognito_token_promise.then((o=>{o.last&&e.setLastInLocalStorage(o.last),localStorage.getItem(a.getPrefix()+”3rd_party_cookie”)||i.getProbe().then((o=>{console.log(“AAP3 end GETTING probe cookie, success”,o),e.set3rdPartyCookie(o.probe)})).catch((o=>{console.log(“AAP3 end GETTING probe cookie, error”,o),e.set3rdPartyCookie(!1)}));let t=o.accessToken,n=o.refreshToken;if(!t)return console.log(“AAU01 js wait for window.cognito_token_promise is over. Token NOT found”,(new Date).toLocaleTimeString()),e.removeTokens(),void(window._sso_uid_reject&&window._sso_uid_reject({“reason:”:”AAU07 wait is over”}));console.log(“AAU02 inline.js token found”,(new Date).toLocaleTimeString()),e.setTokenInLocalStorage(t,n)})).catch((o=>{console.log(“AAU03 js token NOT found”,(new Date).toLocaleTimeString(),o),localStorage.getItem(a.getPrefix()+”3rd_party_cookie”)||i.getProbe().then((o=>{console.log(“AAP03 end GETTING probe cookie, success”,o),e.set3rdPartyCookie(o.probe)})).catch((o=>{console.log(“AAP03 end GETTING probe cookie, error”,o),e.set3rdPartyCookie(!1)})),e.removeTokens(),r.setLoginLink(!1,r.showSignIn),window._sso_uid_reject({“reason:”:”AAU03 wait is over”})}))}document.addEventListener(“DOMContentLoaded”,(function(e){window._cognito.timeout=setTimeout((function(){window.cognito_isLoginLinkSet||r.setLoginLink(!1,r.showSignIn)}),1e3),window.cognito_popupOpener=r.showSignIn}))})(),inline=n})(); document.addEventListener(‘DOMContentLoaded’, () => { setTimeout(() => { //console.log(“AA SSO init delayed for 0.5 second.”); var dashboard = document.createElement(‘script’); let dashboard_path = ‘/sso-dashboard.js’; dashboard.src = dashboard_path+”?v3b17ec7890d0733bbf2678f77dcfa7b93q”; document.head.appendChild(dashboard); }, 500); }, false); ]]> {{ data.text }} – Learn More