PageSourceSearch

https://www.texasmonthly.com/wp-content/themes/texasmonthly-child/assets/dist/7938.3dcb99d1216c3650.js

js texasmonthly.com collected 2026-09-24 08:26:46 UTC 28,800 bytes, 3 lines download raw bytes

vendor: 5,443 bytes, lines 1-2
1/*! For license information please see 7938.3dcb99d1216c3650.js.LICENSE.txt */
2(self.webpackChunktexasmonthly=self.webpackChunktexasmonthly||[]).push([[7938],{7938:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var i=r(2215),o=r.n(i);function n(e){return n="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},n(e)}function a(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,n=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw n}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function l(){l=function(){return t};var e,t={},r=Object.prototype,i=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function h(e,t,r,i){var n=t&&t.prototype instanceof m?t:m,a=Object.create(n.prototype),s=new U(i||[]);return o(a,"_invoke",{value:_(e,r,s)}),a}function y(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var f="suspendedStart",p="suspendedYield",v="executing",g="completed",b={};function m(){}function w(){}function k(){}var E={};d(E,s,(function(){return this}));var P=Object.getPrototypeOf,x=P&&P(P(j([])));x&&x!==r&&i.call(x,s)&&(E=x);var B=k.prototype=m.prototype=Object.create(E);function L(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function V(e,t){function r(o,a,s,l){var c=y(e[o],e,a);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==n(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,s,l)}),(function(e){r("throw",e,s,l)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return r("throw",e,s,l)}))}l(c.arg)}var a;o(this,"_invoke",{value:function(e,i){function o(){return new t((function(t,o){r(e,i,t,o)}))}return a=a?a.then(o,o):o()}})}function _(t,r,i){var o=f;return function(n,a){if(o===v)throw Error("Generator is already running");if(o===g){if("throw"===n)throw a;return{value:e,done:!0}}for(i.method=n,i.arg=a;;){var s=i.delegate;if(s){var l=S(s,i);if(l){if(l===b)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(o===f)throw o=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);o=v;var c=y(t,r,i);if("normal"===c.type){if(o=i.done?g:p,c.arg===b)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(o=g,i.method="throw",i.arg=c.arg)}}}function S(t,r){var i=r.method,o=t.iterator[i];if(o===e)return r.delegate=null,"throw"===i&&t.iterator.return&&(r.method="return",r.arg=e,S(t,r),"throw"===r.method)||"return"!==i&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+i+"' method")),b;var n=y(o,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,b;var a=n.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function U(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[s];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(i.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(n(t)+" is not iterable")}return w.prototype=k,o(B,"constructor",{value:k,configurable:!0}),o(k,"constructor",{value:w,configurable:!0}),w.displayName=d(k,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,k):(e.__proto__=k,d(e,u,"GeneratorFunction")),e.prototype=Object.create(B),e},t.awrap=function(e){return{__await:e}},L(V.prototype),d(V.prototype,c,(function(){return this})),t.AsyncIterator=V,t.async=function(e,r,i,o,n){void 0===n&&(n=Prom
vendor: 4,333 bytes, line 2
2ise);var a=new V(h(e,r,i,o),n);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},L(B),d(B,u,"Generator"),d(B,s,(function(){return this})),d(B,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var i in t)r.push(i);return r.reverse(),function e(){for(;r.length;){var i=r.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},t.values=j,U.prototype={constructor:U,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(i,o){return s.type="throw",s.arg=t,r.next=i,o&&(r.method="next",r.arg=e),!!o}for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var n=o;break}}n&&("break"===e||"continue"===e)&&n.tryLoc<=t&&t<=n.finallyLoc&&(n=null);var a=n?n.completion:{};return a.type=e,a.arg=t,n?(this.method="next",this.next=n.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),D(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var i=r.completion;if("throw"===i.type){var o=i.arg;D(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,i){return this.delegate={iterator:j(t),resultName:r,nextLoc:i},"next"===this.method&&(this.arg=e),b}},t}function c(e,t,r,i,o,n,a){try{var s=e[n](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(i,o)}function u(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var n=e.apply(t,r);function a(e){c(n,i,o,a,s,"next",e)}function s(e){c(n,i,o,a,s,"throw",e)}a(void 0)}))}}function d(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,h(i.key),i)}}function h(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}const y=function(){return e=function e(){var t,r,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,i=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return function(){for(var i=arguments.length,o=new Array(i),n=0;n<i;n++)o[n]=arguments[n];clearTimeout(t),t=setTimeout((function(){e.apply(void 0,o)}),r)}},(r=h(r="debounce"))in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,this.DEBUG=!1,this.jwplayer=null,this.jwplayerEl=null,this.mediaId=null,this.mediaTitle=null,this.playlistId="fS5IWc5V",this.userClosed=!1,this.userUnmuted=!1,this.userPaused=!1,this.visible=!1,this.destroyed=!1,this.orderedPlaylist=Array(),this.pageType=null,this.smallScreen=null,this.bcBarOffsetHeight=0,this.belowTrigger=!1,this.watchedVideos=null,this.watchOverlapEls=Array(),this.observers={trigger:null,bcBar:null,resize:null,overlap:null,article:null,footer
2:null},this.scrollListeners=[],this.init()},t=[{key:"init",value:(n=u(l().mark((function e(){var t,r,i,o,n,a,s,c=this;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.debug("stickyVideoPlayer.init"),this.DEBUG&&console.debug("stickyVideoPlayer.vars:",stickyVideoVars),void 0!==stickyVideoVars&&stickyVideoVars.renderPlayer){e.next=4;break}return e.abrupt("return");case 4:if(stickyVideoVars.playlistId&&(this.playlistId=stickyVideoVars.playlistId),this.initPageAttributes(),this.initWatchedVideos(),t=this.getTriggerEl()){e.next=11;break}return this.DEBUG&&console.debug("stickyVideoPlayer: No trigger element found; not initializing player."),e.abrupt("return");case 11:this.insertMarkup(),document.addEventListener("hideStickyVideo",(function(){c.hidePlayer()})),document.addEventListener("showStickyVideo",(function(){c.showPlayer()})),r=function e(){c.DEBUG&&console.debug("stickyVideoPlayer.onFirstScroll"),document.removeEventListener("scroll",e),c.jwplayer||c.initPlayer()},document.addEventListener("scroll",r),this.scrollListeners.push({type:"scroll",handler:r}),this.observers.trigger=new IntersectionObserver((function(e){e.forEach(function(){var e=u(l().mark((function e(t){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c.DEBUG&&console.debug("stickyVideoPlayer.triggerObserver",t),!t.isIntersecting||c.userClosed){e.next=13;break}if(c.DEBUG&&console.debug("stickyVideoPlayer.triggerObserver: intersecting",t),c.jwplayer){e.next=8;break}return e.next=6,c.initPlayer();case 6:if(!c.destroyed){e.next=8;break}return e.abrupt("return");case 8:c.showPlayer(),c.pushToDataLayer("inView"),c.belowTrigger=!1,e.next=28;break;case 13:if(c.DEBUG&&console.debug("stickyVideoPlayer.triggerObserver: not intersecting",t,t.boundingClientRect.top),!(t.boundingClientRect.top>0&&c.jwplayer)){e.next=19;break}c.hidePlayer(),c.belowTrigger=!1,e.next=28;break;case 19:if(!(t.boundingClientRect.top<0)||c.userClosed){e.next=28;break}if(c.jwplayer){e.next=25;break}return e.next=23,c.initPlayer();case 23:if(!c.destroyed){e.next=25;break}return e.abrupt("return");case 25:c.showPlayer(),c.pushToDataLayer("inView"),c.belowTrigger=!0;case 28:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}),{root:null,threshold:.5}),this.observers.trigger.observe(t),this.observers.bcBar=new MutationObserver((function(e,t){e.forEach((function(e){e.addedNodes.forEach((function(e){if(void 0!==e.classList&&e.classList.contains("bcpNotificationBar")){c.bcBarOffsetHeight=e.offsetHeight,c.DEBUG&&console.debug("stickyVideoPlayer.bcBarObserver bcBarOffsetHeight (added)",c.bcBarOffsetHeight),t.disconnect(),c.visible&&c.checkForBottomElements();var r=document.querySelector(".bcpNotificationBar");if(r){var i=new ResizeObserver((function(e){e.forEach((function(e){c.bcBarOffsetHeight=e.contentRect.height,c.DEBUG&&console.debug("stickyVideoPlayer.resizeObserver bcBarOffsetHeight (resize)",c.bcBarOffsetHeight),c.visible&&c.checkForBottomElements()}))}));c.observers.resize=i,i.observe(r)}}}))}))})),this.observers.bcBar.observe(document.body,{subtree:!1,childList:!0}),document.querySelector(".sticky-video-player__close-button").addEventListener("click",(function(){c.jwplayer&&c.jwplayer.pause(),c.userClosed=!0,c.pushToDataLayer("closed");var e=document.querySelector(".sticky-video-player__wrapper");e.classList.remove("opacity-100","pointer-events-auto","[&_>_*]:pointer-events-auto"),e.classList.add("opacity-0","pointer-events-none","[&_*]:!pointer-events-none","hidden")})),document.querySelector(".sticky-video-player__watch-button").addEventListener("click",(function(){c.pushToDataLayer("clickThru")})),i=this.watchOverlap.bind(this),o=this.debounce(i,100),this.debouncedWatchOverlap=o,this.observers.overlap=new window.IntersectionObserver((function(e){e.forEach((function(e){c.DEBUG&&console.debug("stickyVideoPlayer.overlapObserver",e),"below"!=c.player_loc&&(e.isIntersecting?(c.DEBUG&&console.debug("stickyVideoPlayer.watching:",e.target),c.watchOverlapEls.push(e.target)):(c.DEBUG&&console.debug("stickyVideoPlayer.unwatch:",e.target),c.watchOverlapEls.splice(c.watchOverlapEls.indexOf(e.target),1)),c.watchOverlapEls.length>0?(c.DEBUG&&console.debug("stickyVideoPlayer.adding scroll listener"),document.addEventListener("scroll",o),c.scrollListeners.push({type:"scroll",handler:o})):("floating"==c.player_loc&&c.show_floating_el(),c.DEBUG&&console.debug("stickyVideoPlayer.removing scroll listener"),document.removeEventListener("scroll",o),c.scrollListeners=c.scrollListeners.filter((function(e){return e.handler!==o}))),c.DEBUG&&console.debug("stickyVideoPlayer.watch current",c.watchOverlapEls))}))}),{root:null,threshold:0}),this.smallScreen||document.querySelectorAll("div.article-content .wp-block-image.alignfull").forEach((function(e){c.observers.overlap.observe(e)})),"post"===this.pageType?(this.observers.article=new window.IntersectionObserver((function(e){e.forEach((function(e){c.DEBUG&&console.debug("stickyVideoPlayer.articleObserver",e),c.jwplayer&&!c.userClosed&&c.belowTrigger&&(e.boundingClientRect.bottom<0?c.hidePlayer():e.boundingClientRect.bottom>=0&&c.showPlayer())}))}),{root:null,threshold:0}),(n=document.querySelector("div.article-content"))&&this.observers.article.observe(n)):(a=document.querySelector("footer.footer"),s=window.innerHeight-a.clientHeight-230<0,(this.smallScreen||s)&&(this.observers.footer=new window.IntersectionObserver((function(e){c.DEBUG&&console.debug("stickyVideoPlayer.footerObserver"),e.forEach((function(e){e.isIntersecting&&!c.userClosed?c.hidePlayer():c.jwplayer&&!c.userClosed&&c.showPlayer()}))}),{root:null,threshold:[.01]}),a&&this.observers.footer.observe(a)));case 31:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"cleanup",value:function(){this.DEBUG&&console.debug("stickyVideoPlayer.cleanup"),this.destroyed=!0,Object.values(this.observers).forEac
2h((function(e){e&&e.disconnect()})),this.scrollListeners.forEach((function(e){var t=e.type,r=e.handler;document.removeEventListener(t,r)})),this.scrollListeners=[],document.removeEventListener("hideStickyVideo",this.hidePlayer),document.removeEventListener("showStickyVideo",this.showPlayer)}},{key:"checkForBottomElements",value:function(){this.DEBUG&&console.debug("stickyVideoPlayer.checkForBottomElements");var e=document.querySelector(":root"),t=10;if(this.bcBarOffsetHeight&&this.bcBarOffsetHeight>0)t+=this.bcBarOffsetHeight;else{var r=document.querySelector(".bcpNotificationBar");r&&(this.bcBarOffsetHeight=r.offsetHeight,t+=this.bcBarOffsetHeight)}var i=document.querySelector("#bottom-adhesion-banner");i||(i=document.querySelector(".promo-footer")),i&&(t+=i.offsetHeight),(window.matchMedia("(display-mode: standalone)").matches&&window.matchMedia("(max-width: 576px)").matches||window.is_iphone_app)&&(t+=parseInt(getComputedStyle(e).getPropertyValue("--pwa-toolbar-height"))),e.style.setProperty("--floated-video-bottom",t+"px")}},{key:"findNodeRecursively",value:function(e,t){var r,i=a(e.children);try{for(i.s();!(r=i.n()).done;){var o=r.value,n=o.getBoundingClientRect(),s=n.top+window.scrollY,l=n.bottom+window.scrollY;if(t>=s&&t<=l)return this.findNodeRecursively(o,t)}}catch(e){i.e(e)}finally{i.f()}return e}},{key:"findElementAtY",value:function(e){return this.findNodeRecursively(document.body,e)}},{key:"getTriggerEl",value:function(){if("post"!=this.pageType)return this.smallScreen?this.findElementAtY(2*window.innerHeight):this.findElementAtY(1.5*window.innerHeight);var e=document.querySelector("div.article-text");if(!e)return this.DEBUG&&console.debug("stickyVideoPlayer: No article text element found."),null;var t,r=0,i=a(e.querySelectorAll("p"));try{for(i.s();!(t=i.n()).done;){var o=t.value;if(r+=o.textContent.trim().length,this.DEBUG&&console.debug("stickyVideoPlayer: characterCount:",r,o),r>1750)return o}}catch(e){i.e(e)}finally{i.f()}return null}},{key:"hidePlayer",value:function(){var e;this.DEBUG&&console.debug("stickyVideoPlayer.hidePlayer"),"playing"==(null===(e=this.jwplayer)||void 0===e?void 0:e.getState())&&this.jwplayer.pause();var t=document.querySelector(".sticky-video-player__wrapper");t.classList.remove("opacity-100","pointer-events-auto","[&_>_*]:pointer-events-auto"),t.classList.add("opacity-0","pointer-events-none","[&_*]:!pointer-events-none","hidden"),this.visible=!1}},{key:"initPageAttributes",value:function(){var e=document.querySelector("body");this.smallScreen=e.clientWidth<965,this.pageType="unknown",e.classList.contains("page-template")?e.classList.contains("home")?this.pageType="home":this.pageType="page":e.classList.contains("single-post")?this.pageType="post":e.classList.contains("category")&&(this.pageType="category"),this.DEBUG&&console.debug("stickyVideoPlayer.initPageAttributes",{smallScreen:this.smallScreen,pageType:this.pageType})}},{key:"initPlayer",value:(i=u(l().mark((function e(){var t,r,i,n,a,s,c=this;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.DEBUG&&console.debug("stickyVideoPlayer.initPlayer"),e.prev=1,e.next=4,fetch("https://cdn.jwplayer.com/v2/playlists/"+this.playlistId);case 4:if(!(t=e.sent).ok){e.next=18;break}return e.next=8,t.json();case 8:for(r=e.sent,this.DEBUG&&console.debug("stickyVideoPlayer.playlistData: ",this.playlistId,r),i=Array(),n=Array(),a=0;a<r.playlist.length;a++)s=r.playlist[a],this.watchedVideos.has(s.mediaid)?i.push(s):n.push(s);0==n.length&&(this.DEBUG&&console.debug("stickyVideoPlayer: All videos watched; resetting cookie."),o().remove("watched_videos"),this.watchedVideos.clear()),this.orderedPlaylist=n.concat(i),this.DEBUG&&console.debug("stickyVideoPlayer.orderedPlaylist:",this.orderedPlaylist),e.next=22;break;case 18:return this.cleanup(),this.hidePlayer(),console.error("stickyVideoPlayer: Error fetching playlist data:",t),e.abrupt("return");case 22:e.next=30;break;case 24:return e.prev=24,e.t0=e.catch(1),this.cleanup(),this.hidePlayer(),console.error("stickyVideoPlayer: Error fetching playlist data:",e.t0),e.abrupt("return");case 30:try{this.jwplayer=jwplayer("sticky-video-player"),this.jwplayer.setup({playlist:this.orderedPlaylist,autostart:!1,mute:!0,repeat:!0,autoPause:{view
2ability:!0,pauseAds:!0}}),this.jwplayerEl=document.querySelector(".sticky-video-player__player"),this.jwplayer.on("ready",(function(e){c.onPlayerReady()}))}catch(e){this.cleanup(),this.hidePlayer(),console.error("stickyVideoPlayer: Error creating video player:",e)}case 31:case"end":return e.stop()}}),e,this,[[1,24]])}))),function(){return i.apply(this,arguments)})},{key:"initWatchedVideos",value:function(){var e=this;this.watchedVideos=new Set;var t=o().get("watched_videos");t&&t.split(",").forEach((function(t){e.watchedVideos.add(t)})),this.DEBUG&&console.debug("stickyVideoPlayer.initWatchedVideos",this.watchedVideos)}},{key:"insertMarkup",value:function(){document.body.insertAdjacentHTML("beforeend",'\n            <div class="sticky-video-player__wrapper opacity-0 pointer-events-none transition-opacity duration-500 ease-in-out !fixed !transform-none !left-auto p-0 z-[100] right-2.5 h-[unset] bottom-[var(--floated-video-bottom)] w-[220px] md:right-3.5 md:w-[300px] [&_*]:!pointer-events-none">\n                <button aria-label="Close Video" class="sticky-video-player__close-button flex items-center float-right z-[1] cursor-pointer rounded-sm p-1 bg-[rgba(255,255,255,0.9)] dark:bg-dm-900 font-rs-narrow text-xs leading-snug font-bold tracking-widest text-black dark:text-dm-100 dar
2k:hover:text-dm-100 uppercase border-none hover:text-red dark:hover:bg-dm-999 transition-colors after:inline-block after:w-3.5 after:h-3.5 after:ml-1 after:bg-black after:rounded-[50%] after:content-[\'\'] after:bg-close-icon">Close</button>\n                <div class="sticky-video-player__player" id="sticky-video-player"></div>\n                <div class="sticky-video-player__overlay-mask w-full absolute bottom-0 hidden h-[50px] bg-[rgba(0,0,0,0.5)] p-1 gap-x-1 justify-between items-center">\n                    <div class="sticky-video-player__overlay-title font-rs-regular text-xs leading-[14px] text-white dark:text-dm-100 line-clamp-3"></div>\n                    <div class="sticky-video-player__watch-button">\n                        <a class="font-rs-narrow inline-flex text-sm font-bold leading-4 tracking-widest items-center text-white bg-red uppercase text-center p-4 h-10 hover:bg-white hover:text-black transition-colors dark:text-dm-100 dark:bg-dm-tan dark:hover:bg-dm-990 dark:hover:text-dm-100" href="">More</a>\n                    </div>\n                </div>\n            </div>\n        ')}},{key:"isOverlapping",value:function(e){this.DEBUG&&console.debug("stickyVideoPlayer.isOverlapping",e,this);var t=document.querySelector(".sticky-video-player__wrapper").getBoundingClientRect(),r=e.getBoundingClientRect();this.DEBUG&&console.debug("stickyVideoPlayer.watch top:",r.top,"float bottom:",t.bottom),this.DEBUG&&console.debug("stickyVideoPlayer.watch right:",r.right,"float left:",t.left),this.DEBUG&&console.debug("stickyVideoPlayer.watch bottom:",r.bottom,"float top:",t.top),r.right>=t.left&&(this.floating_el_visible&&r.top>0&&r.top<=t.bottom||r.top<0&&r.bottom>t.top?(this.DEBUG&&console.debug("stickyVideoPlayer: is_overlapping hiding"),this.hidePlayer()):(!this.floating_el_visible&&r.top>t.bottom||r.bottom<=t.top)&&(this.DEBUG&&console.debug("stickyVideoPlayer: is_overlapping showing"),this.showPlayer()))}},{key:"onPlayerReady",value:function(){var e=this;this.DEBUG&&console.debug("stickyVideoPlayer.onPlayerReady"),this.jwplayer.on("playlistItem",(function(t){e.DEBUG&&console.debug("stickyVideoPlayer.playlistItem",t),e.mediaId=t.item.id,e.mediaTitle=t.item.title,e.setTitleAndLink(t.item.title,t.item.link);var r=document.querySelector(".sticky-video-player__overlay-mask");r.classList.remove("hidden"),r.classList.add("flex")})),this.jwplayer.on("adBreakEnd",(function(t){e.DEBUG&&console.debug("stickyVideoPlayer.adBreakEnd",t);var r=document.querySelector(".sticky-video-player__overlay-mask");r.classList.remove("hidden"),r.classList.add("flex")})),this.jwplayer.on("adBreakStart",(function(t){e.DEBUG&&console.debug("stickyVideoPlayer.adBreakStart",t);var r=document.querySelector(".sticky-video-player__overlay-mask");r.classList.remove("flex"),r.classList.add("hidden")})),this.jwplayer.on("adError",(function(t){e.DEBUG&&console.debug("stickyVideoPlayer.adError",t)})),this.jwplayer.on("adPause",(function(t){e.DEBUG&&console.debug("adPause",t)})),this.jwplayer.on("adWarning",(function(t){e.DEBUG&&console.debug("stickyVideoPlayer.adWarning",t)})),this.jwplayer.on("mute",(function(t){0==t.mute&&(e.DEBUG&&console.debug("stickyVideoPlayer.unmute",t),e.userUnmuted=!0,e.pushToDataLayer("unmuted"))})),this.jwplayer.on("play",(function(t){e.DEBUG&&console.debug("stickyVideoPlayer.play",t),e.watchedVideos.add(e.mediaId),o().set("watched_videos",Array.from(e.watchedVideos).toString()),e.userPaused=!1})),this.jwplayer.on("pause",(function(t){e.DEBUG&&console.debug("stickyVideoPlayer.pause",t),"interaction"==t.pauseReason&&(e.userPaused=!0)})),this.jwplayer.on("time",(function(t){t.position>30&&!e.userUnmuted&&e.jwplayer.playlistNext()})),window.addEventListener("pageshow",(function(t){e.DEBUG&&console.debug("stickyVideoPlayer: pageshow",t.persisted),-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome")&&t.persisted&&e.jwplayer.next()}))}},{key:"pushToDataLayer",value:function(e){if(e)if(this.destroyed)this.DEBUG&&console.debug("stickyVideoPlayer.pushToDataLayer: player destroyed, ignoring");else{window.dataLayer=window.dataLayer||[];var t={event:"stickyVideo",action:e,playlist:this.playlistId,videoTitle:this.mediaTitle,videoId:this.mediaId};this.DEBUG&&console.debug("stickyVideoPlayer.pushToDataLayer()",t),window.dataLayer.push(t)}}},{key:"setTitleAndLink",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;document.querySelector(".sticky-video-player__overlay-title").innerText=e;var r=document.querySelector(".sticky-video-player__watch-button a");if(t){var i=new URL(t),o=new URLSearchParams(i.search);o.append("autoplay",1),i.search=o.toString(),r.setAttribute("href",i.toString()),r.classList.remove("hidden")}else r.classList.add("hidden")}},{key:"showPlayer",value:function(){var e,t;if(this.DEBUG&&console.debug("stickyVideoPlayer.showPlayer"),this.destroyed)this.DEBUG&&console.debug("stickyVideoPlayer.showPlayer: player destroyed, ignoring");else if(this.userClosed)this.DEBUG&&console.debug("stickyVideoPlayer.showPlayer: user closed, ignoring");else{"paused"!=(null===(e=this.jwplayer)||void 0===e?void 0:e.getState())&&"idle"!=(null===(t=this.jwplayer)||void 0===t?void 0:t.getState())||this.userPaused||this.jwplayer.play(),this.checkForBottomElements();var r=document.querySelector(".sticky-video-player__wrapper");r.classList.remove("opacity-0","pointer-events-none","[&_*]:!pointer-events-none","hidden"),r.classList.add("opacity-100","pointer-events-auto","[&_>_*]:pointer-events-auto"),this.visible=!0}}},{key:"watchOverlap",value:function(){var e=this;
2this.watchOverlapEls.forEach((function(t){t&&(e.DEBUG&&console.debug("stickyVideoPlayer.watchOverlap",t),e.isOverlapping(t))}))}}],t&&d(e.prototype,t),r&&d(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r,i,n}()},2215:(e,t,r)=>{var i,o;!function(n){if(void 0===(o="function"==typeof(i=n)?i.call(t,r,t,e):i)||(e.exports=o),!0,e.exports=n(),!!0){var a=window.Cookies,s=window.Cookies=n();s.noConflict=function(){return window.Cookies=a,s}}}((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var r=arguments[e];for(var i in r)t[i]=r[i]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function r(i){function o(){}function n(t,r,n){if("undefined"!=typeof document){"number"==typeof(n=e({path:"/"},o.defaults,n)).expires&&(n.expires=new Date(1*new Date+864e5*n.expires)),n.expires=n.expires?n.expires.toUTCString():"";try{var a=JSON.stringify(r);/^[\{\[]/.test(a)&&(r=a)}catch(e){}r=i.write?i.write(r,t):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var l in n)n[l]&&(s+="; "+l,!0!==n[l]&&(s+="="+n[l].split(";")[0]));return document.cookie=t+"="+r+s}}function a(e,r){if("undefined"!=typeof document){for(var o={},n=document.cookie?document.cookie.split("; "):[],a=0;a<n.length;a++){var s=n[a].split("="),l=s.slice(1).join("=");r||'"'!==l.charAt(0)||(l=l.slice(1,-1));try{var c=t(s[0]);if(l=(i.read||i)(l,c)||t(l),r)try{l=JSON.parse(l)}catch(e){}if(o[c]=l,e===c)break}catch(e){}}return e?o[e]:o}}return o.set=n,o.get=function(e){return a(e,!1)},o.getJSON=function(e){return a(e,!0)},o.remove=function(t,r){n(t,"",e(r,{expires:-1}))},o.defaults={},o.withConverter=r,o}((function(){}))}))}}]);
3//# sourceMappingURL=7938.3dcb99d1216c3650.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.