‘The Bold Type’ Cast: Where Are They Now? | First For Women



































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


Use escape to exit the menu.

“}o+=’

‘;for(let e=t=1;e<5&&n[e];e++){var d=”A_2_”+t;t++,o+=this.renderPostHTML(n[e],s,”non_commerce”,”AI”,d)}o=o+”

“+’

‘,t=1;for(let e=5;e<9&&n[e];e++){var h=”A_3_”+t;t++,o+=this.renderPostHTML(n[e],s,”non_commerce”,”AI”,h)}if(o+=”

“,a.length){o+=’

‘;let t=1;for(let e=0;e<4&&a[e];e++){var p=”E_4_”+t;t++,o+=this.renderPostHTML(a[e],s,”commerce”,”AI”,p)}o+=”

“}o+=’

‘,t=1;for(let e=9;e<13&&n[e];e++){var m=”A_5_”+t;t++,o+=this.renderPostHTML(n[e],s,”non_commerce”,”AI”,m)}o+=”

“,r.innerHTML=o,document.querySelector(“#taboola-below-article-thumbnails”).style.display=”none”}}renderPostHTML(e,t=””,o=”non_commerce”,s=”AI”,i=””){let n=””;return-1!==window.location.search.indexOf(“forceTaboolaAINewTab”)&&(n=’ target=”_blank”‘),`

`}populatePosts(){if(!this.currentPopulatePostsPromise||!this.isConsentChecked){this.getGA4ClientId()&&(this.isConsentChecked=!0);let e={ga4ClientId:this.getGA4ClientId()||”0″,attributionToken:this.getAttributionToken(),referrer:window.location.href,appName:this.appName,id:this.postId};this.currentPopulatePostsPromise=new Promise((t,o)=>{try{fetch(this.endpoint,{method:”POST”,headers:{“Content-Type”:”application/json”},body:JSON.stringify(e)}).then(e=>e.json()).then(e=>{this.handleAIPostsResponse(e),t()}).catch(e=>{this.showFallbackPosts(),o(e)})}catch(e){this.showFallbackPosts(),o(e)}})}return this.currentPopulatePostsPromise}handleAIPostsResponse(t){if(t&&t.data&&Array.isArray(t.data)&&0!==t.data.length){this.all_posts=t.data,this.all_posts=this.filterPosts(this.all_posts),this.all_ecommerce_posts=t.commerce_data&&t.commerce_data.length?t.commerce_data:[],this.attribution_token=t.attribution_token;let e=this.pickFreshPosts(this.all_posts,5);console.log(“AA AI Selected Posts: “,e),0“new-2”!==e.title),this.all_posts=this.all_posts.filter(t=>!e.some(e=>e.id===t.id)),this.renderPosts(e,t.attribution_token),this.attachClickEventListener(“AI”,this.postType),document.getElementById(“recommended-posts”).setAttribute(“data-variant”,”AI”),document.querySelector(“.recommended-posts-fallback”)&&document.querySelector(“.recommended-posts-fallback”).remove()):this.showFallbackPosts()}else this.showFallbackPosts()}pickFreshPosts(e,t){var o=JSON.parse(localStorage.getItem(this.storageKey))||[],e=e.slice(0,t),o=[…o,…e.map(e=>e.id)];return localStorage.setItem(this.storageKey,JSON.stringify(o)),e}renderPosts(e,t){var o=document.querySelector(“.recommended-posts-container”);o&&(o.innerHTML=e.map(e=>`

${e.title}

`).join(“”),o.style.display=”flex”)}showFallbackPosts(){var e=document.querySelector(“.recommended-posts-fallback”);e&&(e.style.display=”flex”,this.attachClickEventListener(“TOP GA”,this.postType),this.isAIVariant=!1)}attachClickEventListener(o,s){document.querySelectorAll(“.recommended-post-link”).forEach(t=>{t.setAttribute(“data-variant”,o),t.setAttribute(“data-content-type”,s),t.addEventListener(“click”,e=>{e.preventDefault(),console.log(“AA AI User clicked on post”,e);e=t.href;localStorage.setItem(this.postType+”-last-clicked-variant”,o),localStorage.setItem(this.postType+”-last-clicked-content-type”,s),window.location.href=e})})}handleGTMVariantEvent(){var e=localStorage.getItem(this.postType+”-last-clicked-variant”),t=localStorage.getItem(this.postType+”-last-clicked-content-type”);e&&(console.log(“AA AI GTM Event Variant:”,e),localStorage.removeItem(this.postType+”-last-clicked-variant”),localStorage.removeItem(this.postType+”-last-clicked-content-type”),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:this.trackingEvent,variant:e,postType:t}))}handleGTMPostView(){var e=this.isAIVariant?”AI”:”TOP GA”;this.postType&&e&&(console.log(“AA AI GTM Event Variant:”,e),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:”recommended_top_5_widget_viewed”,variant:e,postType:this.postType}))}getGA4ClientId(){if(window.origin.includes(“womansworld”)||window.origin.includes(“firstforwomen”)||window.origin.includes(“soapsindepth”)||window.origin.includes(“soapoperadigest”)){if(!this.checkAllowedPurposes())return console.log(“No targeting consent”),!1}else if(!window.OnetrustActiveGroups.includes(“,C0004,”))return console.log(“No targeting consent”),!1;var e=document.cookie.split(“; “).find(e=>e.startsWith(“_ga=”));return!!e&&e.split(“.”).slice(-2).join(“.”)}getAttributionToken(){var e=window.location.hash;return e&&e.startsWith(“#attrib-“)?(e=decodeURIComponent(e.substring(“#attrib-“.length)),console.log(“AA AI Token found in URL: “+e),e):(console.log(“AA AI No valid token found in URL.”),””)}getLinkUrl(e,t){e.match(/^[a-zA-Z]+:\/\//)||(e=” o=new URL(e);return o.hostname!==window.location.host&&(o.hostname=window.location.host),e=o.toString(),t&&(e+=”#attrib-“+t),e}getImageSrc(e){return(e?.split(“?”)[0]||”/wp-content/themes/us-weekly/assets/img/placeholders/default-usweekly.svg”)+”?w=600&h=600&quality=86&strip=all”}getImageSrcset(e){e=e?.split(“?”)[0]||”/wp-content/themes/us-weekly/assets/img/placeholders/default-usweekly.svg”;return e+`?w=200&h=200&quality=86&strip=all 200w,
${e}?w=300&h=300&quality=86&strip=all 300w,
${e}?w=400&h=400&quality=86&strip=all 400w,
${e}?w=600&h=600&quality=86&strip=all 600w,
${e}?w=800&h=800&quality=86&strip=all 800w,
${e}?w=900&h=900&quality=86&strip=all 900w,
${e}?w=1000&h=1000&quality=86&strip=all 1000w,
${e}?w=1200&h=1200&quality=86&strip=all 1200w`}isGBot(e=navigator.userAgent){let t=e.toLowerCase();return[“googlebot”,”google-site-verification”,”googlebot-mobile”,”googlebot-image”,”googlebot-news”,”googlebot-video”,”googlebot-ads”,”adsbot-google”,”mediapartners-google”,”apis-google”,”appengine-google”,”googleweblight”,”google.com/bot.html”,”google.com/adsbot.html”,”crawler”,”baiduspider-render”,”yandexrenderresourcesbot”,”bingbot”].some(e=>t.includes(e))}}window.initRecommendedPosts=function(t={}){var o=document.getElementById(“recommended-posts-config”);if(o)try{var s={…JSON.parse(o.dataset.config),…t};let e=new RecommendedPosts(s);return window.recommendedPosts=e,(window.origin.includes(“womansworld”)||window.origin.includes(“firstforwomen”)||window.origin.includes(“soapsindepth”)||window.origin.includes(“soapoperadigest”))&&(window.runRecommendedPostsCallback=()=>{e.runConsentCallback()}),e}catch(e){console.error(“Error initializing recommended posts:”,e)}else console.error(“Recommended posts config element not found”)},document.addEventListener(“DOMContentLoaded”,()=>{window.origin.includes(“womansworld”)||window.origin.includes(“firstforwomen”)||window.origin.includes(“soapsindepth”)||window.origin.includes(“soapoperadigest”)||window.initRecommendedPosts()});

Share.

Comments are closed.

Exit mobile version