27 Best Clothing Stores for Women Over 50 — Plus Our Favorite Summer Picks

[]
{ const userStr = localStorage.getItem( “cognito_1mhoelgmeuuf3koc56l6m6gvc4_user” ); if ( null != userStr ) { var userArr = JSON.parse(userStr); if (userArr.hash_email_sha256) { resolve({ SHA1:userArr.hash_email_sha1, SHA256:userArr.hash_email_sha256, MD5:userArr.hash_email_md5, email:userArr.email }); return; } } window._sso_uid_resolve = resolve; }); if (window.location.hostname === “caseys-dev.myshopify.com”) { window._cognito.ssoServer=”https://sso-develop.ami-admin.com”; } if (window.location.search.indexOf(“sso_login”) >-1 ) { const urlParams = new URLSearchParams(window.location.search); const accessToken = urlParams.get(“at”); const refreshToken = urlParams.get(“rt”); console.log(“AA1 [head embeddd code] got tokens from url.”,”[“+accessToken+”]”,”[“+refreshToken+”]”); if (accessToken && refreshToken) { console.log(“AA2 [head embeddd code] got tokens from url.”,accessToken,refreshToken); window.localStorage.setItem(“cognito_” +”1mhoelgmeuuf3koc56l6m6gvc4″ + “_” + “accessToken”, accessToken); window.localStorage.setItem(“cognito_” + “1mhoelgmeuuf3koc56l6m6gvc4” + “_” + “refreshToken”, refreshToken); window.cognito_pop_account=true; } //remove it from url so other JS libs cannot see it const url=window.location.href.split(“?”)[0]; if (window.location.hash === “#ipa”) { //uncomment to make ipa work url=url+”#ipa_with_popup”; } history.pushState(null, null, url); } ]]> 28 Best Clothing Stores for Women Over 50 – Woman’s World 0 ) { if ( typeof window.apstag != ‘object’ && !window.apstag ) { setTimeout( function(){ amzn_check( resolve, interval, retriesLeft ); }, interval ); console.log( ‘AMI jwp Amazon not loaded ‘ ); } } else { console.log( ‘AMI jwp No Retries left – Amazon not loaded’ ); return resolve(); } } window.jwVastTag = {}; window.prerollTag = {}; window.jwpDef = {}; window.jwpBids = {}; function adsParseUrlParams( val ) { var result = false, tmp = []; var items = location.search.substr( 1 ).split( “&” ); for ( var index = 0; index

Sign In

Sign In with your social account

We won’t post to any of your accounts without asking first

Sign Up

Already have an account? Login

Sign In with your social account

We won’t post to any of your accounts without asking first

Forgot your password?

Get back to the Sign In var inline;(()=>{var e={323: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:()=>i,prompt:()=>o,ssoBroker:()=>s,state:()=>l,utility:()=>r});const e={is3rdPartyCookieSet:()=>!!localStorage.getItem(r.getPrefix()+”3rd_party_cookie”),set3rdPartyCookie(e){this.setLocalStorageItem(r.getPrefix()+”3rd_party_cookie”,e,31536e3)},get3rdPartyCookie(){return this.getLocalStorageItem(r.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”);var 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){let e=location.protocol+”//”+location.host+location.pathname;console.log(“AA2 socialNetworkAuth setting back url to “,e),localStorage.setItem(r.getPrefix()+”ipa”,e),window.location.href=n}else console.log(“AA3 socialNetworkAuth”,n),window.location.href=n;return!0},getTokenFromLocalStorage(){var e=window.localStorage.getItem(r.getPrefix()+”accessToken”),o=window.localStorage.getItem(r.getPrefix()+”refreshToken”);return”null”==e||null==e||”null”==o||null==o?{accessToken:null,refreshToken:null}:{accessToken:e,refreshToken:o}},setLocalStorageItem(e,o,t){if(-1==e.indexOf(“3rd_party_cookie”)&&!this.isConsent())return void console.log(“AA refusing to store “+e+” in ls because there is no consent”);let 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},setUserInLocalStorage(e){this.isConsent()?window.localStorage.setItem(r.getPrefix()+”user”,JSON.stringify(e)):console.log(“AA refusing to store user in ls because there is no consent”,OnetrustActiveGroups)},getUserFromLocalStorage(){let e=window.localStorage.getItem(r.getPrefix()+”user”);return e?JSON.parse(e):null},setTokenInLocalStorage(e,o){this.isConsent()?(window.localStorage.setItem(“cognito_”+window._cognito.clientId+”_accessToken”,e),window.localStorage.setItem(“cognito_”+window._cognito.clientId+”_refreshToken”,o)):console.log(“AA refusing to store tokens in ls because there is no consent”,OnetrustActiveGroups)},removeTokens(){window.localStorage.removeItem(r.getPrefix()+”accessToken”),window.localStorage.removeItem(r.getPrefix()+”refreshToken”),window.localStorage.removeItem(r.getPrefix()+”user”),window.localStorage.removeItem(r.getPrefix()+”synced”)},isLoggedIn(){return null!==this.getTokenFromLocalStorage().accessToken},isConsent:()=>!!window._cognito.is_shopify||!!window.OnetrustActiveGroups&&window.OnetrustActiveGroups.indexOf(“,C0003,”)>-1,isShopifyNativeUserLoggedIn(){},getCookieByName(e){for(var o=document.cookie.split(“;”),t=0;t{if(console.log(“AA usNow 000”),!e.isLoggedIn())return console.log(“AA usNow 1”),void window.open(“https://”+window._cognito.shopifyStore);console.log(“this: “,this),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){this.popUp().classList.add(“active”),this.cancelBtn().style.display=”none”,this.popTitle().textContent=””,this.subTitle().textContent=e;let o=this;return new Promise((e=>{function t(n){n.preventDefault(),o.cancelBtn().style.display=”block”,o.popUp().classList.remove(“active”),o.confirmBtn().removeEventListener(“click”,t),o.closePopUpBtn().removeEventListener(“click”,t),e(!0)}o.confirmBtn().addEventListener(“click”,t),o.closePopUpBtn().addEventListener(“click”,t)}))},closePopup(){document.getElementById(“login-body”).style.display=”none”,document.body.style.overflow=””}},s={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)))},setTokensViaRedirect(e=””,o=””,t=””,n=””){let s=[];e&&e&&s.push(“sso_msg=”+e),n||(n=window.location.href),n=(n=n.split(“?”)[0]).replace(/#/g,””),s.length&&(n+=encodeURIComponent(“?”+s.join(“&”)));let i=window._cognito.ssoServer+”?sso=set”;i=i+”&at=”+o+”&rt=”+t,i=i+”&back_to=”+n,console.log(“AA setting tokens via redirect”,i),window.location.href=i},getTokensViaRedirect(){let e=window.location.href.split(“?”)[0];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(323));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(323));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){if(e.isConsent())return new Promise((function(e,s){var i=new(t(323));i.open(“POST”,window._cognito.ssoServer+”/”),i.onload=function(){200==i.status?e(i.response):s({status:i.status,statusText:i.statusText})},i.onerror=function(){s({status:i.status,statusText:i.statusText})},i.withCredentials=!0,i.setRequestHeader(“Content-Type”,”application/json”),i.send(JSON.stringify({action:”set”,accessToken:o,refreshToken:n}))}));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(323));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})):(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”}))}))},i={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(){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(“restore”).style.display=”none”,document.getElementById(“profile”).style.display=”none”,void 0!==this.populateFromBlueConicEmail?this.populateFromBlueConicEmail(“inputUsername”):window.inline&&window.inline.greeter.populateFromBlueConicEmail(“inputUsername”),r.feedback(),r.showOverlay()},show(){if(e.isConsent())”showSignIn”!=window.cognito_popupOpener.name||e.get3rdPartyCookie()?window.cognito_popupOpener():s.getTokensViaRedirect();else{let e=’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.’;o.customMessage(e).then((()=>{}))}},setLoginLink(e,o){window.cognito_isLoginLinkSet=!0,window._cognito.timeout&&(console.log(“AA100 canceling link timeout”),clearTimeout(window._cognito.timeout)),window.cognito_popupOpener=o,console.log(“AAB7 setting opener to “+o.name),document.querySelectorAll(“.js-cognito-login”).forEach((o=>{e?(o.classList.remove(“user-logged-out”),o.classList.add(“user-logged-in”)):(o.classList.remove(“user-logged-in”),o.classList.add(“user-logged-out”))})),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=””,r.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”,document.getElementById(“restore”).style.display=”none”,r.feedback()},showSignUp(){console.log(“AA85 running inline.greeter.showSignUp()”),document.getElementById(“login”).style.display=”none”,document.getElementById(“register”).style.display=”flex”,document.getElementById(“forgot”).style.display=”none”,document.getElementById(“restore”).style.display=”none”,r.feedback(),void 0!==this.populateFromBlueConicEmail?this.populateFromBlueConicEmail(“emailInputRegister”):window.inline&&window.inline.greeter.populateFromBlueConicEmail(“emailInputRegister”),r.showOverlay()},showRestorePassword(e){document.getElementById(“login”).style.display=”none”,document.getElementById(“register”).style.display=”none”,document.getElementById(“forgot”).style.display=”none”,document.getElementById(“restore”).style.display=”flex”,document.getElementById(“codeInputReset”).value=””,document.getElementById(“passwordReset”).value=””,document.getElementById(“confirmPasswordReset”).value=””,document.getElementById(“restoreEmail”).innerHTML=e,r.feedback()}},r={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.”},r=e;if(“object”==typeof e&&(r=e.message||JSON.stringify(e)),r in n&&(r=n[r]),r.indexOf(“TypeError”)>-1)return void console.log(“AA random TypeError message, ignoring”,(new Error).stack);let l=document.createElement(“span”);if(l.classList.add(“active”,”feedback-message”),l.innerHTML=r,o?l.classList.add(“feedback-success”):l.classList.add(“feedback-error”),setInterval((()=>{l.classList.remove(“active”),setInterval((()=>{l.remove()}),1500)}),7e3),r.indexOf(“Refresh Token has expired”)>-1||r.indexOf(“User does not exist”)>-1||r.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”,r),inline.browser.get3rdPartyCookie()?(inline.browser.removeTokens(),s.setTokenOnSSO(null,null).then((e=>{console.log(“AA tokens on sso server were forcefully removed “+e)})),i.setLoginLink(!1,i.showSignIn),void inline.greeter.showSignIn()):(inline.browser.removeTokens(),void s.setTokensViaRedirect());t.append(l)},validatePassword(e){const o=e.querySelector(“.js-validate-password”),t=e.querySelector(“.js-submit-form”);let n;if(!o)return;const s=e=>e.length>=8,i=e=>/[a-z]/.test(e),r=e=>/[A-Z]/.test(e),l=e=>/[0-9]/.test(e);o.addEventListener(“keyup”,(()=>{const c=o.value,a=e.querySelector(“.pswd-length”),d=e.querySelector(“.pswd-lowercase”),u=e.querySelector(“.pswd-uppercase”),g=e.querySelector(“.pswd-number”);s(c)?a.classList.add(“validation-success”):a.classList.remove(“validation-success”),i(c)?d.classList.add(“validation-success”):d.classList.remove(“validation-success”),r(c)?u.classList.add(“validation-success”):u.classList.remove(“validation-success”),l(c)?g.classList.add(“validation-success”):g.classList.remove(“validation-success”),n=s(c)&&i(c)&&r(c)&&l(c),n?(o.classList.remove(“input-error”),t.removeAttribute(“disabled”)):t.setAttribute(“disabled”,”disabled”)})),o.addEventListener(“focusout”,(()=>{n?(t.removeAttribute(“disabled”),o.classList.remove(“input-error”)):(t.setAttribute(“disabled”,”disabled”),o.classList.add(“input-error”))}))},validateEmail(e){const o=e.querySelector(“.js-validate-email”),t=e.querySelector(“.js-submit-form”);let n;o&&(o.addEventListener(“keyup”,(()=>{n=/^w+([.-]?w+)*@w+([.-]?w+)*(.w{2,3})+$/.test(o.value),n?(t.removeAttribute(“disabled”),o.classList.remove(“input-error”)):t.setAttribute(“disabled”,”disabled”)})),o.addEventListener(“focusout”,(()=>{n?(t.removeAttribute(“disabled”),o.classList.remove(“input-error”)):(t.setAttribute(“disabled”,”disabled”),o.classList.add(“input-error”))})))},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”)}};var l={return_url:!1};if(window._sso_uid.then((e=>console.log(“AA ID success obtaining sso uid”,e))),”#ipa”===window.location.hash||”#ipa_with_popup”===window.location.hash){if(history.pushState(“”,document.title,window.location.pathname+window.location.search),localStorage.getItem(r.getPrefix()+”ipa”)){let e=localStorage.getItem(r.getPrefix()+”ipa”);localStorage.removeItem(r.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(r.getPrefix()+”ipa”);if(window._cognito.is_shopify=-1!==window.location.host.indexOf(“.myshopify.com”)||-1!==window.location.host.indexOf(“usnow.com”)||-1!==window.location.host.indexOf(“magazineshop.us”)||-1!==window.location.search.indexOf(“is_shopify”),window.cognito_isLoginLinkSet=!1,window.location.search&&window.location.search.indexOf(“sso_show_signin”)>-1){let e=window.location.href.split(“?”)[0];history.pushState(null,null,e),i.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&&(r.feedback(decodeURIComponent(e),!0),console.log(“AA3 sso_msg”),”Account Created”==e&&i.setLoginLink(!0,i.showSignIn))}var c=window.localStorage.getItem(“cognito_”+window._cognito.clientId+”_accessToken”);if(“null”==c&&(c=null),c&&window._cognito.is_shopify&&(console.log(“AA SSS 0”),document.cookie&&document.cookie.indexOf(“customer_auth_session_created_at”))){const o=e.getCookieByName(“customer_auth_session_created_at”);if(console.log(“AA SSS 1 customer_auth_session_created_at:”,o),!o){const o=!0===e.getLocalStorageItem(r.getPrefix()+”shopify_logged_in”);console.log(“AA SSS 2 didWeLogShopifyUserIn”,o),o&&(console.log(“AA SSS 3 logging user out of SSO: removing tokens”),e.removeTokens(),window.localStorage.removeItem(r.getPrefix()+”shopify_logged_in”),e.get3rdPartyCookie()?(console.log(“AA SSS 5 removing tokens via xhr”),s.setTokenOnSSO()):(console.log(“AA SSS 4 removing tokens via redfirect”),s.setTokensViaRedirect()))}}null===c&&(console.log(“AAU0 js user logged in ? “+(null!==c),(new Date).toLocaleTimeString()),console.log(“AAU01 js creating ssoBroker.getTokenFromSSO() (window.cognito_token_promise) promise and starting to wait on it “+(new Date).toLocaleTimeString()),window.cognito_token_promise=s.getTokenFromSSO(),window.cognito_token_promise.then((o=>{localStorage.getItem(r.getPrefix()+”3rd_party_cookie”)||s.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)}));let t=o.accessToken,n=o.refreshToken;if(null==t)return console.log(“AAU01 js wait for window.cognito_token_promise is over. success, token NOT found “+(new Date).toLocaleTimeString()),void e.removeTokens();console.log(“AAU02 inline.js wait for window.cognito_token_promise is over. success, token found “+(new Date).toLocaleTimeString()),e.setTokenInLocalStorage(t,n),delete window.cognito_token_promise}),(o=>{console.log(“AAU03 js wait for window.cognito_token_promise is over. error, token NOT found “+(new Date).toLocaleTimeString(),o),localStorage.getItem(r.getPrefix()+”3rd_party_cookie”)||s.getProbe().then((function(o){console.log(“AAP03 end GETTING probe cookie, success”,o),e.set3rdPartyCookie(o.probe)})).catch((function(o){console.log(“AAP03 end GETTING probe cookie, error”,o),e.set3rdPartyCookie(!1)})),e.removeTokens(),i.setLoginLink(!1,i.showSignIn),delete window.cognito_token_promise}))),document.addEventListener(“DOMContentLoaded”,(function(o){if(window._cognito.timeout=setTimeout((function(){window.cognito_isLoginLinkSet||(console.log(‘AA100 setting link via timeout, defaulting to “not logged in”‘),i.setLoginLink(!1,i.showSignIn))}),1e3),window.cognito_popupOpener=i.showSignIn,window._cognito.is_shopify&&-1!==window.location.pathname.indexOf(“/checkouts/”)){let o=window._cognito.shopifyStore;”usw-marketplace.myshopify.com”==o?o=”usnow.com”:”bauer-media-group.myshopify.com”==o&&(o=”magazineshop.us”);var t=document.querySelector(‘[href^=”https://’+o+’/account/login”]’);t||”usnow.com”!=o&&”magazineshop.us”!=o||(t=document.querySelector(‘[href^=”https://usw-marketplace.myshopify.com/account/login”]’));var n=document.querySelector(‘[href^=”https://’+o+’/account/logout”]’);n||”usnow.com”!=o&&”magazineshop.us”!=o||(n=document.querySelector(‘[href^=”https://usw-marketplace.myshopify.com/account/logout”]’)),null===c?t&&(t.href=”#”,t.onclick=i.show):t?(t.href=”#”,t.onclick=i.show):(n.href=”#”,n.onclick=function(){e.removeTokens();let t=”https://”+o+”/account/logout”;s.setTokensViaRedirect(“”,””,””,t)})}else document.querySelectorAll(“.js-cognito-login”).forEach((e=>{e.addEventListener(“click”,i.show)}));document.getElementById(“signin-already-have-account”).onclick=i.showSignIn,document.getElementById(“signin-go-back”).onclick=i.showSignIn,document.getElementById(“show-sign-up”).onclick=i.showSignUp,document.getElementById(“profile-popup-close”).onclick=i.closeProfilePopup,document.getElementById(“profile-popup-overlay”).onclick=i.closeProfilePopup,document.getElementById(“show-forgot-password”).onclick=i.showForgotPassword,document.querySelectorAll(“.usnow-link”).forEach((e=>{e.addEventListener(“click”,(function(e){e.preventDefault(),window.open(“https://”+window._cognito.shopifyStore,”_blank”)}))})),document.addEventListener(“click”,(e=>{e.target&&(e.target.classList.contains(“js-accordion-panel”)||e.target.closest(“.js-accordion-panel”))&&e.target.closest(“.accordion-wrapper”).classList.toggle(“active”)})),document.querySelectorAll(“#login-body form”).forEach((e=>{e.addEventListener(“submit”,(e=>{e.preventDefault()})),r.validateEmail(e),r.validatePassword(e)}))}))})(),inline=n})(); //window.addEventListener(‘load’, () => { document.addEventListener(‘DOMContentLoaded’, () => { setTimeout(() => { console.log(“AA SSO init delayed for 0.5 second.”); var dashboard = document.createElement(‘script’); dashboard.src =”/sso-dashboard.js?2023-06-13-03-55-46″; document.head.appendChild(dashboard); }, 500); }, false); ]]>

Use left and right arrow keys to navigate between menu items. Use escape to exit the menu.

{ const cachedId = localStorage.getItem( ‘perClientId’ ); if ( null === cachedId || “” === cachedId ) { const clientId = Date.now() + Math.random(); if ( window.location.hostname.indexOf( ‘usmagazine’ ) !== -1 && !!window.Worker ) { //console.log(“WWW creating worker for permutive button “); var worker = new Worker( ‘/wp-content/themes/ajax-onload.js’ ); worker.onmessage = function( ev ) { const newClientId = ev.data; console.log( ‘%c Got via Worker: ‘ + newClientId, ‘background: #27ae60; color: #000; padding: 2px 10px 2px 5px’ ); if ( newClientId ) { localStorage.setItem( ‘perClientId’, newClientId ); let identities = [{ “id”: newClientId, “tag”: “publisherUserId”, “priority”: 0 } ]; try { if ( undefined !== window.cognito_user ) { identities.push( { “id”: window.cognito_user.hash_email, “tag”: “email_sha256”, “priority”: 1 } ); } else { let cognito_user = localStorage.getItem( ‘cognito_’+window._cognito.clientId+’_user’ ); if ( null != cognito_user ) { let cognito_user_json = JSON.parse(cognito_user); identities.push( { “id”: cognito_user_json.hash_email, “tag”: “email_sha256”, “priority”: 1 } ); } } if ( undefined !== window.cognito_user ) { identities.push({ “id”: window.cognito_user.id, “tag”: “mylo_username”, “priority”: 2 }); } else { let cognito_user = localStorage.getItem( ‘cognito_’+window._cognito.clientId+’_user’ ); if ( null != cognito_user ) { let cognito_user_json = JSON.parse(cognito_user); identities.push( { “id”: cognito_user_json.id, “tag”: “mylo_username”, “priority”: 1 } ); } } } catch ( e ) { console.log( ‘permutive identity: ‘, e ); } window.permutive.identify( identities ); console.log( ‘identity’, identities ); } }; worker.postMessage( [‘permutive’, clientId] ); } else { $.ajax( { url: ‘/wp-admin/admin-ajax.php?action=get_client_id&clientId=’ + clientId } ).done( ( ajaxResponse ) => { const parsedResponse = JSON.parse( ajaxResponse ); console.log( ‘%c Got: ‘ + parsedResponse.clientId, ‘background: #27ae60; color: #000; padding: 2px 10px 2px 5px’ ); if ( parsedResponse.hasOwnProperty( ‘clientId’ ) ) { localStorage.setItem( ‘perClientId’, parsedResponse.clientId ); let identities = [{ “id”: parsedResponse.clientId, “tag”: “publisherUserId”, “priority”: 0 } ]; try { if ( undefined !== window.cognito_user ) { identities.push( { “id”: window.cognito_user.hash_email, “tag”: “email_sha256”, “priority”: 1 } ); } else { let cognito_user = localStorage.getItem( ‘cognito_’+window._cognito.clientId+’_user’ ); if ( null != cognito_user ) { let cognito_user_json = JSON.parse(cognito_user); identities.push( { “id”: cognito_user_json.hash_email, “tag”: “email_sha256”, “priority”: 1 } ); } } if ( undefined !== window.cognito_user ) { identities.push({ “id”: window.cognito_user.id, “tag”: “mylo_username”, “priority”: 2 }); } else { let cognito_user = localStorage.getItem( ‘cognito_’+window._cognito.clientId+’_user’ ); if ( null != cognito_user ) { let cognito_user_json = JSON.parse(cognito_user); identities.push( { “id”: cognito_user_json.id, “tag”: “mylo_username”, “priority”: 1 } ); } } } catch ( e ) { console.log( ‘permutive identity: ‘, e ); } window.permutive.identify( identities ); console.log( ‘identity’, identities ); } } ); } } else { let identities = [{ “id”: cachedId, “tag”: “publisherUserId”, “priority”: 0 } ]; try { if ( undefined !== window.cognito_user ) { identities.push( { “id”: window.cognito_user.hash_email, “tag”: “email_sha256”, “priority”: 1 } ); } else { let cognito_user = localStorage.getItem( ‘cognito_’+window._cognito.clientId+’_user’ ); if ( null != cognito_user ) { let cognito_user_json = JSON.parse(cognito_user); identities.push( { “id”: cognito_user_json.hash_email, “tag”: “email_sha256”, “priority”: 1 } ); } } if ( undefined !== window.cognito_user ) { identities.push({ “id”: window.cognito_user.id, “tag”: “mylo_username”, “priority”: 2 }); } else { let cognito_user = localStorage.getItem( ‘cognito_’+window._cognito.clientId+’_user’ ); if ( null != cognito_user ) { let cognito_user_json = JSON.parse(cognito_user); identities.push( { “id”: cognito_user_json.id, “tag”: “mylo_username”, “priority”: 1 } ); } } } catch ( e ) { console.log( ‘permutive identity: ‘, e ); } window.permutive.identify( identities ); console.log( ‘identity’, identities ); } } ); } )( jQuery ); ]]>

You May Also Like

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다