1"use strict";(self.webpackChunktexasmonthly=self.webpackChunktexasmonthly||[]).push([[5649],{5649:(e,t,a)=>{a.r(t),a.d(t,{default:()=>p});var l=a(6630),o=a(3783),n=a(4692);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function r(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function s(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?r(Object(a),!0).forEach((function(t){u(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):r(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function u(e,t,a){return(t=d(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function c(e,t){for(var a=0;a<t.length;a++){var l=t[a];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,d(l.key),l)}}function d(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var l=a.call(e,t||"default");if("object"!=i(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}const p=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$paywallWrapper=document.querySelector(".bcjs-pw-wrapper"),this.bcContainer=".bcpNotificationBar"},t=[{key:"initListeners",value:function(){var e,t,a,l=this;this.initScrollMarker(),window.addEventListener("showPaywall",(function(e){var t,a,o;console.debug("tm:paywall: Show Paywall"),l.togglePaywall("show",null===(t=e.detail)||void 0===t?void 0:t.paywall_type),l.pushPaywallData(null===(a=e.detail)||void 0===a?void 0:a.paywall_type,null===(o=e.detail)||void 0===o?void 0:o.is_soft)})),window._showPaywall&&(console.debug("tm:paywall: Show Paywall"),this.togglePaywall("show",null===(e=window._showPaywall.detail)||void 0===e?void 0:e.paywall_type),this.pushPaywallData(null===(t=window._showPaywall.detail)||void 0===t?void 0:t.paywall_type,null===(a=window._showPaywall.detail)||void 0===a?void 0:a.is_soft)),window.addEventListener("removePaywall",(function(e){var t,a;l.togglePaywall("remove",null===(t=e.detail)||void 0===t?void 0:t.paywall_type),null!==(a=e.detail)&&void 0!==a&&a.submitted_email&&l.pushConfirmationEvent()})),window.addEventListener("showStatusMsg",(function(e){var t;l.showStatusMsg(null===(t=e.detail)||void 0===t?void 0:t.user)})),window.addEventListener("showBBQClubStatusMsg",(function(e){var t;l.showBBQClubStatusMsg(null===(t=e.detail)||void 0===t?void 0:t.user)}))}},{key:"initScrollMarker",value:function(){var e="txmo-scroll-marker",t=function t(){return!(window.scrollY<window.innerHeight||(function(){if(!document.getElementById(e)){var t=document.createElement("div");t.id=e,t.hidden=!0,t.setAttribute("aria-hidden","true");var a=document.createElement("span");t.appendChild(a),document.body.appendChild(t)}}(),window.removeEventListener("scroll",t),0))};t()||window.addEventListener("scroll",t,{passive:!0})}},{key:"togglePaywall",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"show",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";if(console.debug("tm:paywall: ".concat("show"===e?"Showing":"Hiding"," Paywall")),console.debug("tm:paywall: Paywall Type: ".concat(t)),"show"===e){var a;if("undefined"!=typeof jwplayer){n("span.video__hero-main-player-overlay").removeClass("hidden");try{var l;null===(l=jwplayer())||void 0===l||l.stop()}catch(e){}}if(this.$paywallWrapper&&(this.$paywallWrapper.classList.add("paywall-lockdown"),"inline"===t)){this.$paywallWrapper.classList.add("paywall-lockdown--inline");var o=document.querySelector(".sticky-video-player__wrapper");o&&(o.style.display="none");var i=document.querySelector(".issue-tease-article-bottom");i&&(i.style.display="none")}"interactive"===(null===(a=window.txmoPageMeta)||void 0===a?void 0:a.page_type)&&n("body").addClass("inactive")}else{var r;if(this.$paywallWrapper&&this.$paywallWrapper.classList.remove("paywall-lockdown"),null!==n(this.bcContainer)&&n(this.bcContainer).remove(),"bbq_club"===t){var s=document.querySelector(".fancybox-overlay");null!==s&&s.remove(),document.querySelector("html").classList.remove("fancybox-margin","fancybox-lock")}else if("inline"===t){this.$paywallWrapper&&(this.$paywallWrapper.classList.remove("paywall-lockdown--inline"),this.$paywallWrapper.style.maxHeight="");var u=document.querySelector(".tm-bc-meter--inline");u&&u.remove();var c=document.querySelector(".sticky-video-player__wrapper");c&&(c.style.display="block");var d=document.querySelector(".issue-tease-article-bottom");d&&(d.style.display="block")}"undefined"!=typeof jwplayer&&(n("span.video__hero-main-player-overlay").addClass("hidden"),jwplayer().play()),"interactive"===(null===(r=window.txmoPageMeta)||void 0===r?void 0:r.page_type)&&n("body").removeClass("inactive"),setTimeout((function(){window.scrollTo({top:0,behavior:"instant"})}),250)}}},{key:"pushPaywallData",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",a=arguments.length>1?arguments[1]:void 0;if(null!==window.blueConicClient){window.txmoUserMeta.paywall_visible=!0,window.txmoUserMeta.paywall_type=t;var l=a?"tmsoftpaywall":"tmpaywall";o.q.then((function(t){var n=t.profile.getProfile();n.incrementValue("txmo_paywall_view_count",1),n.setValue("txmo_last_paywall_view_date",blueConicClient.getCurrentDate());var i=e.getPaywallName();i&&n.addValue("txmo_paywalls_seen",i);var r={referrer:document.referrer,url:document.location.href};a&&(r=s(s({},r),{},{content_meter:n.getValue("txmo_pw_views"),pw_views_left:n.getValue("txmo_pw_views_left"),dialogue_name:i})),(0,o.Z)(l,new Date,r),t.profile.updateProfile()}
1))}}},{key:"pushConfirmationEvent",value:function(){null!==window.blueConicClient&&o.q.then((function(e){var t=e.profile.getProfile(),a=t.getValue("txmo_pw_views"),l=t.getValue("txmo_pw_views_left");(0,o.Z)("tmsoftpaywall_confirmation",new Date,{referrer:document.referrer,url:document.location.href,content_meter:a,pw_views_left:l})}))}},{key:"getPaywallName",value:function(){var e=blueConicClient.getInteractions();return window.loadedDialogue=null,e.length&&(window.loadedDialogue=e[0]),window.loadedDialogue?window.loadedDialogue.name:""}},{key:"showStatusMsg",value:function(e){var t=n("body").find(".tm-bc-meter__login-cta");if(t){var a,o,i,r="";if(null!==(a=e.userData)&&void 0!==a&&null!==(a=a.entitlements)&&void 0!==a&&a.hasDigital||"Active"!==(null===(o=e.userData)||void 0===o||null===(o=o.entitlements)||void 0===o?void 0:o.planStatus))if("Expired"===(null===(i=e.userData)||void 0===i||null===(i=i.entitlements)||void 0===i?void 0:i.planStatus))r='Your subscription has expired. <a href="'.concat(l.pu,'">Manage subscription</a>');else{r="There is no active subscription tied to this account.";var s=document.querySelector(".tm-bc-meter__or");s&&s.classList.add("hidden")}else r='Your account does not have digital access. <a href="'.concat(l.pu,'">Manage subscription</a>');t.empty().html(r)}}},{key:"showBBQClubStatusMsg",value:function(e){var t=n("body").find(".popup-content .bc-login-cta");if(t){var a,o,i,r,s="";s=null!==(a=e.userData)&&void 0!==a&&null!==(a=a.entitlements)&&void 0!==a&&a.hasBbqClub||"Active"!==(null===(o=e.userData)||void 0===o||null===(o=o.entitlements)||void 0===o?void 0:o.planStatus)?null!==(i=e.userData)&&void 0!==i&&null!==(i=i.entitlements)&&void 0!==i&&i.hasBbqClub&&"Expired"===(null===(r=e.userData)||void 0===r||null===(r=r.entitlements)||void 0===r?void 0:r.planStatus)?'Your <em>TM</em> BBQ Club subscription has expired. <a href="'.concat(l.pu,'">Manage subscription</a>'):'It looks like you arenât in the club. <a href="https://www.texasmonthly.com/join-tm-bbq-club/">Learn more</a>':'Your account does not have <em>TM</em> BBQ Club access. <a href="https://www.texasmonthly.com/join-tm-bbq-club/">Learn more</a>',s+='<span>|</span> <a href="https://www.texasmonthly.com/bbq/">Back to TexasMonthly.com</a>',t.empty().html(s)}}}],t&&c(e.prototype,t),a&&c(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,a}()}}]); 2//# sourceMappingURL=5649.0bd3ded46ed65100.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.