site stats
The 16 Best Instant Pot Accessories, According to 3 Instant Pot Obsessives |

The 16 Best Instant Pot Accessories, According to 3 Instant Pot Obsessives

0ps(p=s);for(var y=0;y

=0?(u=f.substr(0,v),c=f.substr(v+1)):(u=f,c=””),i=decodeURIComponent(u),l=decodeURIComponent(c),hasOwnProperty(o,i)?isArray(o[i])?o[i].push(l):o[i]=[o[i],l]:o[i]=l}return o};var isArray=Array.isArray||function(r){return”[object Array]”===Object.prototype.toString.call(r)};
}, {}];
window.modules[“1130”] = [function(require,module,exports){“use strict”;var stringifyPrimitive=function(r){switch(typeof r){case”string”:return r;case”boolean”:return r?”true”:”false”;case”number”:return isFinite(r)?r:””;default:return””}};module.exports=function(r,e,t,n){return e=e||””,t=t||”=”,null===r(r=void 0),”object”==typeof r?map(objectKeys(r),function(n){var i=encodeURIComponent(stringifyPrimitive(n))+t;return isArray(r[n])?map(r[n],function(r){return i+encodeURIComponent(stringifyPrimitive(r))}).join(e):i+encodeURIComponent(stringifyPrimitive(r[n]))}).join(e):n?encodeURIComponent(stringifyPrimitive(n))+t+encodeURIComponent(stringifyPrimitive(r)):””};var isArray=Array.isArray||function(r){return”[object Array]”===Object.prototype.toString.call(r)};function map(r,e){if(r.map)return r.map(e);for(var t=[],n=0;n=0;r–){var l=localStorage().key(r);e(read(l),l)}}function remove(e){return localStorage().removeItem(e)}function clearAll(){return localStorage().clear()}module.exports={name:”localStorage”,read:read,write:write,each:each,remove:remove,clearAll:clearAll};
}, {“1170”:1170}];
window.modules[“1172″] = [function(require,module,exports){module.exports={name:”memoryStorage”,read:read,write:write,each:each,remove:remove,clearAll:clearAll};var memoryStorage={};function read(e){return memoryStorage[e]}function write(e,r){memoryStorage[e]=r}function each(e){for(var r in memoryStorage)memoryStorage.hasOwnProperty(r)e(memoryStorage[r],r)}function remove(e){delete memoryStorage[e]}function clearAll(e){memoryStorage={}}
}, {}];
window.modules[“article-nav.client”] = [function(require,module,exports){“use strict”;var dom=require(1),_throttle=require(23),$visibility=require(26),$popup=require(41),$gtm=require(40);DS.controller(“article-nav”,[function(){return function(t){var e=dom.find(“.page-header”),i=dom.find(“.article-content”),o=dom.find(t,”.deepscroll-headline”),r=dom.find(t,”.deepscroll-rubric”),n=dom.find(t,”.deepscroll-rubric-sponsored”),l=dom.find(“.article .article-header .rubric”),s=dom.find(“#deepscroll_center_divider”),a=dom.find(“.clay-paragraph”),d=dom.find(t,”.logo”),c=dom.find(t,”.dyn-cut-logo”),p=dom.find(t,”.article-nav-top”),u=dom.find(t,”.article-nav-deepscroll”),m=dom.find(‘link[rel=”canonical”]’),f=mm.getAttribute(“href”),g=dom.find(‘meta[property=”og:image”]’)?dom.find(‘meta[property=”og:image”]’).getAttribute(“content”):””,h=dom.find(‘meta[property=”og:title”]’)?dom.find(‘meta[property=”og:title”]’).getAttribute(“content”):””,y=dom.find(t,”.share-link.facebook”),v=dom.find(t,”.share-link.twitter”),w=dom.find(t,”.share-link.pinterest”),b=t.classList.contains(“header-simple”),x=window.getComputedStyle(d,null).getPropertyValue(“–targetFlexBasis”),C=window.getComputedStyle(d,null).getPropertyValue(“–verticalStart”)||0,L=window.getComputedStyle(d,null).getPropertyValue(“–verticalEnd”)function _(){!1,$()}function $(){var o,r,n,l=t.getBoundingClientRect().top,s=window.getComputedStyle(d,null).getPropertyValue(“–baseFlexBasis”),m=s-x,f=(e.getBoundingClientRect().top-55)/-106,g=Math.abs(f),h=C-L-2,y=Math.round(C-(h*g+2)),v=Math.ceil(s-m*g);if(fl?t.classList.add(“after-scroll”):t.classList.remove(“after-scroll”),window.scrollYl?e.classList.add(“header-after-scroll”):e.classList.remove(“header-after-scroll”),$visibility.getViewportWidth()=1180i(o=a?$visibility.getPageOffset(a).top-70:0,r=$visibility.getPageOffset(i).top,n=Math.max(r,o),Math.max(window.scrollY,document.body.scrollTop)=n)?t.classList.add(“deep-scroll”):t.classList.remove(“deep-scroll”)}function k(t){var e=t.currentTarget,i=e.getAttribute(“href”),o=e.getAttribute(“data-handle”),r=$popup.getPopupClass(e.classList),n=$visibility.isBelowPrimaryContent(e)?”bottom”:”top”;$gtm.reportNow({event:”social-share-widget”,clickLocation:n,socialNetwork:r}),$visibility.getViewportWidth()=768r(t.preventDefault(),$popup.popWindow(r,o,i))}!function(){var e=_throttle($,30);if(dom.findAll(t,”.share-link”).forEach(function(t){return t.addEventListener(“click”,k)}),y(y.href=”http://www.facebook.com/sharer/sharer.php?u=”+f+”?utm_source=fbutm_medium=s3utm_campaign=sharebutton-t”),v(v.href=”https://twitter.com/share?text=”+encodeURIComponent(h)+”url=”+f+”?utm_source=twutm_medium=s3utm_campaign=sharebutton-tvia=”+v.getAttribute(“data-handle”)),w(w.href=”http://pinterest.com/pin/create/button/?url=”+f+”?utm_source=pinutm_medium=s3utm_campaign=sharebutton-tdescription=”+encodeURIComponent(h)+”media=”+g),b)return;window.addEventListener(“scroll”,e),window.addEventListener(“resize”,_),l?l.classList.contains(“rubric-sponsor-story”)n?(r.classList.remove(“visible”),n.classList.add(“visible”),n.textContent=l.text||l.textContent):(r.textContent=l.text||l.textContent,r.href=l.href||”#”):(s.style.display=”none”,r.style.display=”none”);_(),o.textContent=h}()}}]);
}, {“1″:1,”23″:23,”26″:26,”40″:40,”41”:41}];
window.modules[“nav-search-button.client”] = [function(require,module,exports){“use strict”;var dom=require(1),$gtm=require(40);DS.controller(“nav-search-button”,[function(){function t(t){var e=dom.find(“body”);this.el=t,this.button=dom.find(t,”.nav-search-button-trigger”),this.search=dom.find(t,”.nav-search-form”),this.inputField=dom.find(t,”.search-input”),e.addEventListener(“click”,this.collapseSearch.bind(this)),e.addEventListener(“touchend”,this.collapseSearch.bind(this)),document.addEventListener(“keydown”,this.escapeSearch.bind(this))}return t.prototype={events:{“.nav-search-button-trigger click”:”expandSearch”,”.nav-search-form submit”:”submitHandler”},toggleClasses:function(){var t=dom.find(“body”);this.el.classList.toggle(“closed”),this.el.classList.toggle(“open”),t.classList.toggle(“disabled”),t.classList.toggle(“search-active”)},expandSearch:function(){this.toggleClasses(),this.el.classList.contains(“open”)this.inputField.focus()},collapseSearch:function(t){!this.el.contains(t.target)this.el.classList.contains(“open”)this.toggleClasses()},escapeSearch:function(t){27===t.keyCodethis.el.classList.contains(“open”)this.toggleClasses()},submitHandler:function(t){t.preventDefault(),this.search.submit(),this.emitTrackingEvent()},emitTrackingEvent:function(){$gtm.reportCustomEvent({category:”search”,label:”on=”+window.location.href,action:this.inputField.value})}},t}]);
}, {“1″:1,”40”:40}];
window.modules[“nav-dropdown-button.client”] = [function(require,module,exports){“use strict”;var dom=require(1);function getNextSiblings(n){for(var t=[],e=n;e=e.nextElementSibling;)t.push(e);return t}module.exports=function(n){var t,e=n.querySelector(“.nav-dropdown-button-trigger”),o=dom.find(“body”),i=dom.find(“header.page-header”),s=dom.find(‘[data-editable=”main”]’);function d(){var e,d=window.innerWidth0(this.isNavVariatione1?”s”:””),this.el.classList.remove(“no-comments”))},n.prototype.shouldRenderCommentStream=function(){return-1!==e.indexOf(“@published”)},n}]);
}, {“1″:1,”34″:34,”79″:79,”80”:80}];
window.modules[“ad.client”] = [function(require,module,exports){“use strict”;var _forEach=require(28),_max=require(29),$visibility=require(26),flaggedComponentsOnPage=function(){var e,t=document.querySelector(“.article-content”),n=[];return t_forEach([‘.article-sidebar[data-width=”large”]’],function(a){e=t.querySelectorAll(a),_forEach(e,function(e){n.push(e)})}),n}();function getElementsVerticalOverlap(e,t){var n=e.getBoundingClientRect(),a=t.getBoundingClientRect();return!(n.topa.bottom||n.righta.right)?a.bottom-n.top:0}function getElementsOverlapAmount(e,t){var n,a=[];return _forEach(t,function(t){n=getElementsVerticalOverlap(e,t),a.push(n)}),_max(a)}function getCutAdChannel(e){return{all:””,animals:”Self/SoU”,beauty:”Style/Beauty”,”career money productivity”:”Power/Money”,celebrity:”Culture/Celebrity”,”crime-assault”:”Power”,”culture-media”:”Culture”,fashion:”Style/Fashion”,”feminism-politics-identity”:”Power/Politics”,”relationships-friends family”:”Self”,”health-wellness”:”Self/Health”,”home design”:”Style/Design_Hunting”,”learning creativity”:”Self/SoU”,living:”Style”,other:””,parenting:”Self/Motherhood”,”mental health personality social behavior”:”Self”,”relationships-sex dating marriage”:”Self/sex_relationships”,shopping:”Style/Shopping”,weddings:”Style/Weddings”}[e]||””}function getVultureAdChannel(e){var t=””;switch(e){case”tv”:case”music”:case”movies”:case”books”:case”comedy”:case”art”:case”theater”:t=e;break;default:t=””}return t}function getIntelligencerAdChannel(e){var t=””;switch(e){case”politics-domestic”:case”politics-international”:t=”Politics”;break;case”business”:case”internet-culture”:case”products-apps-software”:case”products-consumer-electronics”:t=”Business”;break;case”tech-industry”:case”tech-society”:t=”Technology”;break;default:t=””}return t}function getNYMagAdChannel(e){var t=””;switch(e){case”all”:t=e;break;case”company information”:t=”company”;break;case”new york guides things to do”:t=”to-do”;break;case”other”:t=e;break;case”sponsored guides”:t=”s-guides”;break;default:t=””}return t}function appendSectionToDfpAds(){var e,t,n,a=document.querySelector(“meta[property=’og:site_name’]”),i=document.querySelector(“article[data-content-channel]”),o=document.querySelectorAll(‘[data-name^=”/4088/”]’);a(e=a.content),i(t=i.getAttribute(“data-content-channel”).toLowerCase()),t(“The Cut”===e?n=getCutAdChannel(t):”Vulture”===e?n=getVultureAdChannel(t):”Intelligencer”===e?n=getIntelligencerAdChannel(t):”New York Magazine”===e(n=getNYMagAdChannel(t)),n_forEach(o,function(e){e.setAttribute(“data-name”,e.getAttribute(“data-name”)+”/”+n)}))}function injectGoogleScripts(){var e=document.createElement(“script”),t=document.createElement(“script”),n=document.createDocumentFragment();e.src=”//www.googletagservices.com/tag/js/gpt.js”,e.async=”async”,t.src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”,t.async=”async”,n.appendChild(e),n.appendChild(t),document.getElementsByTagName(“body”)[0].appendChild(n)}appendSectionToDfpAds(),injectGoogleScripts(),DS.controller(“ad”,[“adService”,function(e){return function(t){var n,a,i=e.create(t),o=t.getAttribute(“data-offload”),r=new $visibility.Visible(t,{preloadThreshold:o?window.innerHeight/2:200}),s=!1;function l(){window.innerWidth=1180t.parentElement.classList.contains(“ad-repeat”)flaggedComponentsOnPage.length(n=getElementsOverlapAmount(t,flaggedComponentsOnPage),a=parseInt(t.parentElement.getAttribute(“data-gap”),10),t.style.marginTop=a+30+n+”px”)}function c(){l(),e.refresh(i)}function d(){e.remove(i),s||(s=!0,r.on(“shown”,c))}r.preload$visibility.isElementNotHidden(t)?(e.addToPageLoadQueue(i),or.on(“hidden”,d)):(r.on(“preload”,function(){!i.slot$visibility.isElementNotHidden(t)(l(),e.load(i))}),or.on(“hidden”,d)),this.adData=i}}]);
}, {“26″:26,”28″:28,”29”:29}];
window.modules[“coral-talk.client”] = [function(require,module,exports){“use strict”;var coralEmbed,dom=require(1),store=require(89),visibility=require(26),auth0=require(7),TALK_AUTH=”talk:auth_token”,hasEmbedScriptLoaded=!1,hasCoralTalkRendered=!1;function renderComments(e){if(hasEmbedScriptLoaded!hasCoralTalkRendered){var t={talk:””.concat(window.location.protocol,”//”).concat(e.CORAL_TALK_HOST),auth_token:store.get(TALK_AUTH),asset_url:e.TALK_ASSET_URL};hasCoralTalkRendered=!0,coralEmbed=window.Coral.Talk.render(e.commentStreamContainer,t)}}function coralLogin(){coralEmbed.login(store.get(TALK_AUTH))}function embedScript(e,t){var n=document.createElement(“script”);n.type=”text/javascript”,n.async=!0,n.src=e,n.addEventListener(“load”,function(){hasEmbedScriptLoaded=!0,renderComments(t)}),document.getElementsByTagName(“head”)[0].appendChild(n)}function attemptScriptEmbedding(e){hasEmbedScriptLoaded?renderComments(e):embedScript(e.EMBED_URL,e)}function addVisibilityListener(e,t){new visibility.Visible(e,{preloadThreshold:750}).on(“preload”,function(){return attemptScriptEmbedding(t)})}function removeSignInButton(e){ee.parentNodedom.removeElement(e)}function init(e){var t=e.getAttribute(“data-coral-talk-host”),n=””.concat(window.location.protocol,”//”).concat(t,”/embed.js”),i=document.documentElement.getAttribute(“data-uri”),o=”http://”.concat(i,”.html”),r=”true”===e.getAttribute(“data-maintenance”),a=-1!==o.indexOf(“@published”),c=e.querySelector(“.coral-talk-container”),d=e.querySelector(“.coral-talk-btn-signin”),l={CORAL_TALK_HOST:t,EMBED_URL:n,commentStreamContainer:c,signInButton:d,TALK_ASSET_URL:o};!ra(auth0.on(“init”,function(){addVisibilityListener(e,l),d.addEventListener(“click”,function(){return auth0.showLogin()}),auth0.isAuthenticated()removeSignInButton(d)}),auth0.on(“login”,function(t,n){removeSignInButton(d),store.set(TALK_AUTH,t[“http://nymag.com/coral_talk”],n),visibility.isElementInViewport(e)attemptScriptEmbedding(l),hasCoralTalkRenderedcoralLogin()}),auth0.on(“logout”,function(){store.remove(TALK_AUTH)}))}module.exports=init;
}, {“1″:1,”7″:7,”26″:26,”89”:89}];
window.modules[“newsletter-slideout.client”] = [function(require,module,exports){“use strict”;var _throttle=require(23),dom=require(1);DS.controller(“newsletter-slideout”,[“$window”,”$document”,function(t,e){var s=”newsletter-slideout-“;function i(e){this.el=e,this.modal=dom.find(this.el,”.modal”),this.signUpView=dom.find(this.modal,”.sign-up-view”),this.successView=dom.find(this.modal,”.success-view”),this.form=dom.find(this.signUpView,”.cta”),this.email=dom.find(this.form,”.email”),this.source=dom.find(this.form,”.source”),this.errorMessage=dom.find(this.form,”.error-message”),this.newsletterId=dom.find(this.form,”.newsletterId”).value,this.local=t.localStorage,this.localStorageKey=s+this.newsletterId,this.newsletterId(this.getLocalStorageData(),this.localStorageData.signedUp||(this.shouldShowModal()(delete this.localStorageData.dismissed,delete this.localStorageData.paused,this.createModalVisibilityTrigger()),this.localStorageData.dismissed(this.localStorageData.paused+=1),this.localStorageData.last=Date.now().toString(),this.saveLocalStorageData()))}return i.prototype={events:{“.dismiss-modal click”:”dismissModal”,”.cta submit”:”submitForm”,”.email keypress”:”clearError”},getLocalStorageData:function(){try{this.localStorageData=JSON.parse(this.local.getItem(this.localStorageKey))||{}}catch(t){this.localStorageData={}}},saveLocalStorageData:function(){try{this.local.setItem(this.localStorageKey,JSON.stringify(this.localStorageData))}catch(t){}},shouldShowModal:function(){var t=void 0===this.localStorageData.last,e=!t,s=this.el.getAttribute(“data-repeat-visitor-visibility”),i=parseInt(this.el.getAttribute(“data-pause-duration”)),a=”true”==this.el.getAttribute(“data-show-again-after-dismissal”);return(!t||”onlyRepeat”!=s)((!e||”onlyFirstTime”!=s)(!(!athis.localStorageData.dismissed)!(i”undefined”!==this.localStorageData.pausedthis.localStorageData.paused=s(this.showModal(),e.removeEventListener(“scroll”,a))},200).bind(this);!s||is?this.showModal():e.addEventListener(“scroll”,a)},showModal:function(){this.signUpView.classList.remove(“hidden”),this.successView.classList.add(“hidden”),this.modal.classList.remove(“hidden”)},clearError:function(){this.errorMessage.classList.add(“hidden”),this.email.classList.remove(“error”)},submitForm:function(t){var e=new XMLHttpRequest;return t.preventDefault(),this.email.value.search(/b[A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{2,4}b/i)=200e1i.classList.add(“multi-children”),a=0;a=768window.addEventListener(“scroll”,_debounce(function(){document.body.getBoundingClientRect().topthis.scrollPos?this.newsletterSlideoutthis.newsletterSlideout.classList.contains(“modal-up”)?(this.hideNewsletterSlideOut(),setTimeout(function(){this.packageNavFixed(),this.newsletterSlideout.classList.remove(“modal-up”)}.bind(this),800)):setTimeout(function(){this.packageNavFixed()}.bind(this),500):(setTimeout(function(){this.packageNavVisible(),this.packageNavNotFixed()}.bind(this),500),this.newsletterSlideout!this.newsletterSlideout.classList.contains(“hidden”)this.newsletterSlideout.classList.add(“modal-up”)),this.scrollPos=document.body.getBoundingClientRect().top}.bind(this),50,{leading:!0}))}return t.prototype={events:{“.package-navigation-button click”:”scroll”,”.package-navigation-next keydown”:”nextKeypress”,”.package-navigation-previous keydown”:”prevKeypress”,”.package-navigation-article a keydown”:”articleKeypress”},packageNavNotFixed:function(){this.el.classList.remove(“package-navigation-fixed”)},packageNavFixed:function(){this.el.classList.add(“package-navigation-fixed”)},packageNavVisible:function(){this.el.classList.contains(“hide-on-page-load”)?this.el.classList.remove(“package-navigation-visible”):this.el.classList.add(“package-navigation-visible”)},hideNewsletterSlideOut:function(){this.newsletterSlideout.classList.add(“hidden”)},scroll:function(t){var e,i=t.target.getAttribute(“data-direction”)this.fixedContainer.scrollLeft=0,this.currentArticle=this.currentArticle+this.scrollBy*i,this.currentArticle=Math.max(this.currentArticle,0),this.currentArticle=Math.min(this.currentArticle,this.articles.length-1),0!==(e=this.articles[this.currentArticle].offsetLeft)(e=-1*e-1),this.scrollingContainer.setAttribute(“style”,”transform: translateX(“+e+”px)”),this.prevBtn.disabled=0===this.currentArticle,this.nextBtn.disabled=this.currentArticle===this.articles.length-1,this.currentArticle===this.articles.length-1dom.find(this.articles[this.currentArticle],”a”).focus()},nextKeypress:function(t){“Tab”!==t.key||t.shiftKey||(t.preventDefault(),dom.find(this.articles[this.currentArticle],”a”).focus())},prevKeypress:function(t){“Tab”===t.key!t.shiftKeythis.nextBtn.disabled(t.preventDefault(),dom.find(this.articles[this.currentArticle],”a”).focus())},articleKeypress:function(t){parseInt(t.target.parentNode.getAttribute(“data-index”),10)===this.currentArticle”Tab”===t.keyt.shiftKey(t.preventDefault(),this.nextBtn.disabled?this.prevBtn.focus():this.nextBtn.focus())}},t}]);
}, {“1″:1,”102”:102}];
window.modules[“article.client”] = [function(require,module,exports){“use strict”;var $visibility=require(26),$gtm=require(40);DS.controller(“article”,[function(){var e=40;function t(t){var i=document.querySelector(“.wrapper .tertiary”),n=t.querySelector(“.article-header”),r=n?n.querySelector(“img”):null,o=function(){i.style.paddingTop=n.getBoundingClientRect().height+e+”px”};in(window.innerWidth1void 0!==arguments[1]?arguments[1]:””,e=nn.querySelector(‘[data-template-id=”‘.concat(t,'”]’));return ee.content}module.exports=function(n,t){if(t){logger.group(),logger.h2(“Content Cliff”);var e,o=t.cliffOptions,r=t.viewCount,c=t.firstVisit,i=t.onWarn,a=t.onClickWarn,l=t.onShow,u=t.onClickCliff,f=o.contentCliffWarningTitle,s=o.contentCliffWarningBody,d=o.contentCliffWarningCTA,g=o.contentCliffWarningLink,v=o.contentCliffWarningScrollDepth,h=findTemplate(n,”content-cliff-warning-growl”),w=300,p=[“taboola”],m=”#content-cliff”,q=n,C=(e=0,document.querySelectorAll(“[data-word-count]”).forEach(function(n){e+=Number(n.getAttribute(“data-word-count”)||0,10)||0}),e),S=function(n,t){function e(n){return Math.round(n.getTime()/1e3/60)}var o=e(n),r=e(t);return o-r}(new Date,new Date(c))n n n n n “),document.createRange().createContextualFragment(q));var q;function C(){var n=new Date,t=n.getMonth(),e=n.getFullYear();return”content-cliff-warning-displayed-“.concat(e,”-“).concat(t)}return m.querySelector(“a”).addEventListener(“click”,a),{warn:function(){generateGrowl(n,”#content-cliff-warning-growl”,{content:m,onShow:function(){var n;i(),n=C(),setLocalStorage(n,”true”)},scrollDepth:h})},shouldWarn:function(n){return t=C(),!(“true”===getLocalStorage(t))||n0void 0!==arguments[0]?arguments[0]:””;return document.querySelectorAll(“”.concat(n,” ~ *”))}(m)).forEach(function(n){return n.remove()}),t=o.contentCliffStatus,e=o.contentCliffPromo,r=o.contentCliffCTA,c=o.contentCliffURL,i=n.querySelector(“[data-content-cliff-status]”),a=n.querySelector(“[data-content-cliff-promo]”),(f=n.querySelector(“[data-content-cliff-cta]”))f.setAttribute(“href”,c),ff.insertAdjacentHTML(“afterbegin”,r),ii.insertAdjacentHTML(“afterbegin”,t),aa.insertAdjacentHTML(“afterbegin”,e),ff.addEventListener(“click”,u),q.classList.remove(“collapsed”),p.forEach(function(n){var t=document.querySelector(‘[data-uri*=”/’.concat(n,’/”]’));tt.remove()}),b.addEventListener(“click”,function(){return auth0.showLogin()})}}[function(){if(C0void 0!==arguments[0]?arguments[0]:50,t=new IntersectionObserver(function(e){_some(e,”isIntersecting”)(c.style.top=”inherit”,c.classList.remove(“hidden”,”initial”),”function”==typeof rr(),t.unobserve(c))});c.style.top=””.concat(document.querySelector(“body”).scrollHeight/(100/e),”px”),t.observe(c)}(l),e.querySelector(“.dismiss-modal”).addEventListener(“click”,function(){return a?v():m()}),e.addEventListener(“growl:hide”,m),e.addEventListener(“growl:dismiss”,v))};
}, {“1″:1,”86″:86,”112″:112,”113”:113}];
window.modules[“speed-bump.client”] = [function(require,module,exports){“use strict”;var gtm=require(40),visibility=require(26);module.exports=function(e,i){if(ie){var o=i.name,r=i.speedbumpDescription,t=i.speedbumpMessage,n=i.speedbumpLink,s=i.baseTrackingData,c=new visibility.Visible(e,{shownThreshold:.5});e.querySelector(“.description”).innerHTML=r,e.querySelector(“.promo-link”).innerHTML=t,e.querySelector(“.promo-link”).href=n,e.classList.remove(“collapsed”),c.on(“shown”,function(){if(visibility.isElementNotHidden(e)){var i=s;i.event=”eec.promotionView”,i.ecommerce={promoView:{promotions:[{name:o,creative:r,id:”speed bump”,position:”in-article”}]}},gtm.reportNow(i),c.destroy()}}),e.querySelector(“.promo-link”).addEventListener(“click”,function(){var e=s;e.event=”eec.promotionClick”,e.ecommerce={promoClick:{promotions:[{name:o,creative:r,id:”speed bump”,position:”in-article”}]}},gtm.reportNow(e)})}};
}, {“26″:26,”40”:40}];
window.modules[“product.client”] = [function(require,module,exports){“use strict”;var thirdParty=require(75),page=require(110);module.exports=function(){“The Strategist”===page.getSiteName()thirdParty.includeScript(“http://assets.pinterest.com/js/pinit.js”)};
}, {“75″:75,”110”:110}];
window.modules[“newsletter-flex-text.client”] = [function(require,module,exports){“use strict”;var dom=require(1);DS.controller(“newsletter-flex-text”,[“$window”,function(e){function t(t){this.el=t,this.email=dom.find(t,”.email”),this.source=dom.find(t,”.source”),this.form=dom.find(t,”.form”),this.returnMsg=dom.find(t,”.return-message”),this.newsletterId=dom.find(t,”.newsletterId”).value,this.local=e.localStorage,this.session=e.sessionStorage,this.displayComponent()}return t.prototype={getRequestUrl:function(){return this.form.getAttribute(“action”)},getPayloadObject:function(){var e={};return e.email=this.email.value,e.source=this.source.value,e.lists={},e.lists[this.newsletterId]=!0,e},displayComponent:function(){var t,s=Object.keys(this.local),i=this,n=[];for(t=0;t-1n.push(s[t]);if(0===n.length){if(this.el.classList.remove(“initially-hidden”),this.form.classList.remove(“initially-hidden”),setTimeout(function(){i.el.classList.remove(“opacity-zero”)},100),this.session)try{this.session.setItem(“signUpColumn”,”displayed”)}catch(e){}}else i.el.parentElement.classList.add(“newsletter-collapsed”);e.addEventListener(“unload”,function(){i.session.removeItem(“signUpColumn”)})},events:{“.form submit”:”submitForm”,”.email keypress”:”clearMsg”},clearMsg:function(){this.returnMsg.innerHTML=””},submitForm:function(e){var t=new XMLHttpRequest,s=this.form.getAttribute(“data-error-msg”);this.email.value.search(/b[A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{2,4}b/i)=200t-1,o=new RegExp(“[\?]tag=[^]+”);if(rn)return(i=_get(e,”search”,””)).match(o)||(e.search=(i?i+””:”?”)+”tag=”+n),e.href}(u,r)||f(s,r,u))(u.href=i))}function h(e){var t,n,r=dom.closest(e.target,”a”),o=rr.href;oo.length(r.href=(n=(t=o).split(i)).length1?decodeURIComponent(n[1]):t)}return function(e){var i=function(e){return!!(r=e.getAttribute(“data-skimlinks”))}(e),a=function(e){return!!(n=e.getAttribute(“data-amazon”))}(e);visit.onceReady(function(e){o=e}),(i||a)(!function(e){t=(e.getAttribute(“data-excluded-hostnames”)||””).toLowerCase().split(“,”)}(e),globalClick.addHandler(_,h))}}]);
}, {“1″:1,”30″:30,”31″:31,”32″:32,”33″:33,”34″:34,”35″:35,”36”:36}];
window.modules[“gtm.client”] = [function(require,module,exports){“use strict”;var $gtm=require(40);DS.controller(“gtm”,[function(){return function(t){$gtm.init(t.getAttribute(“data-container-id”))}}]);
}, {“40”:40}];
window.modules[“sailthru-personalization-pixel.client”] = [function(require,module,exports){“use strict”;DS.controller(“sailthru-personalization-pixel”,[function(){return function(){var t,e=document.querySelector(“.sailthru-personalization-pixel”),o=e.getAttribute(“data-horizon”);(t=document.createElement(“script”)).type=”text/javascript”,t.async=!0,t.src=”https://ak.sail-horizon.com/horizon/v1.js”,t.onload=function(){Sailthru.setup({domain:o,useStoredTags:!1})},e.appendChild(t)}}]);
}, {}];
window.modules[“global-nav.client”] = [function(require,module,exports){“use strict”;var dom=require(1),auth0=require(7),signInButton=dom.find(“.user-signin”),signOutButton=dom.find(“.user-signout”),globalNav=dom.find(“.global-nav”),gtm=require(40),pageUri=require(110).getPageUri();function gtmSendReport(t,n,i){var e={eventCategory:”ecommerce”,eventAction:”componentClick”,brand:t,dimension23:”global-nav”,list:pageUri,pageZone:”header”,variant:”nav-link”};”vertical-link”===i(e.eventLabel=n.href),gtm.reportNow(e)}function init(t){auth0.on(“init”,function(){signInButton.addEventListener(“click”,function(t){auth0.showLogin(),gtmSendReport(“Sign In”,t.target,”user-info-link”)}),signOutButton.addEventListener(“click”,function(t){auth0.logout(),gtmSendReport(“Sign Out”,t.target,”user-info-link”)}),auth0.isAuthenticated()t.classList.add(“signed-in”),auth0.isSubscriber()t.classList.add(“subscribed”)}),auth0.on(“login”,function(){t.classList.add(“signed-in”),auth0.isSubscriber()t.classList.add(“subscribed”)}),auth0.on(“logout”,function(){t.classList.remove(“signed-in”),t.classList.remove(“subscribed”)})}globalNav.addEventListener(“click”,function(t){var n=t.target;n.classList.contains(“global-nav-track”)gtmSendReport(n.text,n,”vertical-link”)}),module.exports=init;
}, {“1″:1,”7″:7,”40″:40,”110”:110}];
window.modules[“aaa-module-mounting.legacy”] = [function(require,module,exports){“use strict”;var eventify=require(136),_pickBy=require(57),_each=require(210),fingerprintjs2=require(209),DS=require(208);function registerGlobals(){window.DS=DS,window.Eventify=eventify,window.Fingerprint2=fingerprintjs2,DS.value(“Eventify”,eventify),DS.value(“Fingerprint2”,fingerprintjs2),DS.value(“$document”,window.document),DS.value(“$window”,window)}function mountDollarSliceComponents(){DS.service(“components”,[“$document”,”$module”,function(e,n){var r=_pickBy(n.definitions,function(e){return e.providerStrategy===n.providers.controller}),o=Object.keys(r);function t(e){return function(r){try{n.get(e,r)}catch(e){logMountError(r,e)}}}_each(o,function(n){var r=e.querySelectorAll(‘[data-uri*=”/_components/’+n+’/”]’),o=e.querySelectorAll(‘[data-uri$=”/_components/’+n+'”]’);_each(r,t(n)),_each(o,t(n))}),this.components=o}]),DS.get(“components”)}function logMountError(e,n){var r=e.outerHTML.slice(0,e.outerHTML.indexOf(e.innerHTML));console.error(“Error attaching controller to “+r,n)}registerGlobals(),document.addEventListener(“DOMContentLoaded”,function(){mountDollarSliceComponents()});
}, {“57″:57,”136″:136,”208″:208,”209″:209,”210”:210}];
window.modules[“ads.legacy”] = [function(require,module,exports){“use strict”;var _map=require(37),_forEach=require(28),_isString=require(156),_each=require(210),_debounce=require(102),_sortBy=require(96),page=require(110),visit=require(35);DS.service(“adService”,[“Eventify”,”$cid”,”$document”,”$window”,function(e,t,a,i){var n,r,o,s,d,u,c={},l=this,g=[],f=visit.getQueryParamsObject([“utm_campaign”]);i.NYM={},i.NYM.analytics={},i.NYM.analytics.adStartTime=i.performance.now(),i.googletag=i.googletag||{},i.googletag.cmd=i.googletag.cmd||[],u=i.googletag,n=function(e){var t,a,n=e.data;return n.loaded?e:(n.loaded=!0,t=null,(t=n.sizes?u.defineSlot(n.name,n.sizes,n.id).addService(u.pubads()):u.defineOutOfPageSlot(n.name,n.id).addService(u.pubads())).setTargeting(“adid”,n.id),f.hasOwnProperty(“utm_campaign”)t.setTargeting(“utmcamp”,f.utm_campaign),a=l.getAdCount(n.label),t.setTargeting(“label”,n.label+”_”+n.site+”-“+a),u.display(n.id),u.pubads().addEventListener(“slotOnload”,function(){i.NYM.analytics.firstAdLoadTime||(i.NYM.analytics.firstAdLoadTime=i.performance.now(),i.NYM.analytics.firstAdLoadLabel=e.data.label)}),e.slot=t,e)},r=function(e){var a,i,n,r=t(),o=e.getAttribute(“data-name”),s=e.getAttribute(“data-sizes”),d=e.getAttribute(“data-label”),u=e.getAttribute(“data-site”);r=e.id,ss.length?(s=s.split(“,”),a=[],_map(s,function(e){e=e.split(“x”),i=parseInt(e[0]),n=parseInt(e[1]),a.push([i,n])})):(e.classList.add(“oop”),a=!1),this.data={id:r,name:o,sizes:a,loaded:!1,label:d,site:u},c[r]=this},s=function(e){u.cmd.push(function(){var t=n(e);c[e.data.id]=t})},o=function(e){e.slot?u.pubads().refresh([e.slot],{changeCorrelator:!1}):es(e)},u.cmd.push(function(){var e,t,n,r=page.getMeta(“article:tag”),o=page.getMeta(“author”),s=i.location.href,d=(e=a.head.querySelector(“.head-gtm”),t=a.body.querySelector(“.gtm”),e”top”===e.getAttribute(“data-gtm”)?”gtmtop”:t”bottom”===t.getAttribute(“data-gtm”)?”gtmbottom”:””);n=[],_forEach([r,o,d],function(e){_forEach(e.split(“,”),function(e){(e=e.trim().toLowerCase().replace(/s/g,”-“).replace(/’|’/g,””)).lengthn.push(e)})}),u.pubads().setTargeting(“kw”,n),s=s.slice(s.lastIndexOf(“/”)+1),u.pubads().setTargeting(“pn”,s),u.companionAds().setRefreshUnfilledSlots(!0),u.pubads().enableAsyncRendering(),u.enableServices()}),this.load=s,this.create=function(e){return new r(e)},this.refresh=function(e){var t;_isString(e)?(t=this.getById(e),o(t)):o(e)},this.remove=function(e){var t=e.data.id;a.getElementById(t).innerHTML=””},this.getAdCount=function(e){var t,a=0,i=Object.keys(c);return _each(i,function(i){(t=c[i]).data.loadedt.data.label===ea++}),a},this.getById=function(e){return c[e]},d=_debounce(function(){var e={TopLeaderboard:1,RightColTopMPU:2,outOfPage:99,”homepageTakeover/TopLeaderboard”:1},t=_sortBy(g,function(t){return e[t.data.label]||10});_forEach(t,function(e){return e.data.sizes?s(e):i.setTimeout(function(){s(e)},1200)}),g=[]},10),this.addToPageLoadQueue=function(e){g.push(e),d()}}]);
}, {“28″:28,”35″:35,”37″:37,”96″:96,”102″:102,”110″:110,”156″:156,”210”:210}];
window.modules[“chartbeat.legacy”] = [function(require,module,exports){“use strict”;var page=require(110),auth0=require(7);DS.service(“chartbeat”,[“$document”,”$window”,function(t,e){var a,n,o,i,c,s=t.getElementById(“cb-sponsor-data”);function r(){var a=t.createElement(“script”);e._sf_endpt=(new Date).getTime(),a.setAttribute(“language”,”javascript”),a.setAttribute(“type”,”text/javascript”),a.setAttribute(“src”,”//static.chartbeat.com/js/chartbeat.js”),t.body.appendChild(a)}e._sf_async_config={uid:19989,useCanonical:!0,domain:”nymag.com”,sections:(a=page.getSiteBase(),n=page.getSiteName(),o=n||a,”The Cut”!==o”Vulture”!==o||(o+=[“,”,o,page.getChannel()].join(” “)),o)},(i=page.getPrimaryPageComponent())”Sponsored Story”===i.getAttribute(“data-type”)?(e._sf_async_config.sponsorName=ss.getAttribute(“data-sponsor”),e._sf_async_config.type=”Sponsored”):e._sf_async_config.sponsorName=void 0,(c=t.querySelectorAll(“.article-author”)).length(e._sf_async_config.authors=c[0].textContent.trim()),e._cbq=e._cbq||[],auth0.on(“init”,function(){var a,n;e._cbq.push([“_acct”,auth0.isAuthenticated()?”lgdin”:”anon”]),a=r,”complete”===t.readyState?a():(n=”function”==typeof e.onload?e.onload:function(){},e.onload=function(){n(),a()})})}]),setTimeout(function(){DS.get(“chartbeat”)},0);
}, {“7″:7,”110”:110}];
window.modules[“cid.legacy”] = [function(require,module,exports){“use strict”;DS.service(“$cid”,function(){var r=Math.floor(100*Math.random());return function(){return”cid-“+ ++r}});
}, {}];
window.modules[“facebook.legacy”] = [function(require,module,exports){“use strict”;DS.service(“facebook”,[function(){this.fb=function(i){window.FBwindow.FB[i].apply(this,Array.prototype.slice.call(arguments,1))}}]);
}, {}];
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==”function”require;if(!ua)return a(o,!0);if(i)return i(o,!0);var f=new Error(“Cannot find module ‘”+o+”‘”);throw f.code=”MODULE_NOT_FOUND”,f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require==”function”require;for(var o=0;o typeof key === ‘string’ key.match(/.legacy$/))
.forEach((key) = window.require(key));
}

function tryToMount(fn, el, name) {
try {
fn(el); // init the controller
} catch (e) {
const elementTag = el.outerHTML.slice(0, el.outerHTML.indexOf(el.innerHTML));


console.error(`Error initializing controller for “${name}” on “${elementTag}”`, e);
}
}

/**
* mount client.js component controllers
*/
function mountComponentModules() {
Object.keys(window.modules)
.filter((key) = typeof key === ‘string’ key.match(/.client$/))
.forEach((key) = {
let controllerFn = window.require(key);

if (typeof controllerFn === ‘function’) {
const name = key.replace(‘.client’, ”),
instancesSelector = `[data-uri*=”_components/${name}/”]`,
defaultSelector = `[data-uri$=”_components${name}”]`,
instances = document.querySelectorAll(instancesSelector),
defaults = document.querySelectorAll(defaultSelector);

for (let el of instances) {
tryToMount(controllerFn, el, name);
}

for (let el of defaults) {
tryToMount(controllerFn, el, name);
}
}
});
}

// note: legacy controllers that require legacy services (e.g. dollar-slice) must
// wait for DOMContentLoaded to initialize themselves, as the files themselves must be mounted first
mountLegacyServices();
mountComponentModules();

// ]]

Category: Accessories  Tags: ,  Comments off
You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Comments are closed.