1import { t as api } from "../chunks/page-BvcorWMV.js"; 2import { n as utils } from "../chunks/tegna-storage-BGZLdD41.js"; 3import { t as Bem } from "../chunks/bem-DRONJtun.js"; 4//#region Modules/Common/watch-live/watch-live.mjs 5var module = { 6 "name": "watch-live", 7 "class": ".watch-live" 8}; 9utils.broadcast(module.name, "loaded"); 10function Module(el) { 11 const that = this; 12 this.el = el; 13 this.module = module; 14 this.bem = new Bem(el, module.name); 15 this.init = function() { 16 that.broadcast("init"); 17 if (api.model.isElvsDisabled === "true") { 18 that.listen("mini-live-video", "started", function(source, action, data) { 19 that.bem.selectElements("cta", (ctaEl) => { 20 ctaEl.textContent = "Watch Live"; 21 ctaEl.setAttribute("href", `/watch?vid=${data.id}`); 22 }); 23 that.bem.selectElements("video-link", (linkEl) => { 24 linkEl.setAttribute("href", `/watch?vid=${data.id}`); 25 }); 26 that.bem.selectBlock().setModifier("active", true); 27 el.style.display = "flex"; 28 }); 29 that.listen("mini-live-video", "stopped", function(_source, _action, _data) { 30 that.bem.selectElements("cta", (ctaEl) => { 31 ctaEl.textContent = "Watch"; 32 }); 33 that.bem.selectBlock().setModifier("active", false); 34 }); 35 } 36 that.broadcast("ready"); 37 }; 38} 39utils.createModule(module.name, Module); 40//#endregion 41 42//# sourceMappingURL=watch-live.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.