<html><head></head><body>{"version":3,"file":"mediaMasthead-CWpJoToN.js","sources":["../../src/scripts/modules/mediaMasthead.ts"],"sourcesContent":["import { Component } from '@verndale/core';\r\nimport { debounce } from '../helpers';\r\n\r\nclass MediaMasthead extends Component {\r\n  resizeObserver: ResizeObserver;\r\n  isProgramMasthead: boolean;\r\n\r\n  constructor(el: HTMLElement) {\r\n    super(el);\r\n\r\n    this.resizeObserver = new ResizeObserver(this.updateVWProperty);\r\n    this.resizeObserver.observe(document.documentElement);\r\n\r\n    this.isProgramMasthead = this.el.classList.contains('program-masthead');\r\n    this.dom = {\r\n      programFeaturesRowInner: this.el.querySelector('.program-features-row__inner') as HTMLElement,\r\n      programFeaturesRowCard: this.el.querySelectorAll(\r\n        '.program-features-row__card'\r\n      ) as NodeListOf<htmlelement>,\r\n      mediaMastheadInner: this.el.querySelector('.media-masthead__inner') as HTMLElement\r\n    };\r\n\r\n    //this.programInnerResize();\r\n  }\r\n\r\n  setupDefaults() {\r\n    this.dom = {\r\n      el: this.el\r\n    };\r\n  }\r\n\r\n  addListeners() {\r\n    //window.addEventListener('resize', debounce(this.programInnerResize.bind(this), 250));\r\n  }\r\n\r\n  updateVWProperty = debounce(() =&gt; {\r\n    document.documentElement.style.setProperty(\r\n      '--vw',\r\n      `${document.documentElement.clientWidth / 100}px`\r\n    );\r\n  }, 250);\r\n\r\n  programInnerResize() {\r\n    if (this.isProgramMasthead) {\r\n      const cardsLength = (this.dom.programFeaturesRowCard as NodeListOf<htmlelement>)?.length || 0;\r\n      let programFeaturesRowWidth = (this.dom.programFeaturesRowInner as HTMLElement).offsetWidth;\r\n\r\n      if (programFeaturesRowWidth &lt; 1439) {\r\n        programFeaturesRowWidth = document.documentElement.clientWidth - 82;\r\n      }\r\n\r\n      if (cardsLength &gt; 4) {\r\n        // we need the width of the programFeaturesRow minus the last 2 cards if there are more than 5 cards\r\n        const lastCardWidth = (this.dom.programFeaturesRowCard as NodeListOf<htmlelement>)[\r\n          cardsLength - 1\r\n        ].offsetWidth;\r\n        const secondLastCardWidth = (this.dom.programFeaturesRowCard as NodeListOf<htmlelement>)[\r\n          cardsLength - 2\r\n        ].offsetWidth;\r\n\r\n        const newWidth = `${programFeaturesRowWidth - lastCardWidth - secondLastCardWidth + 1}px`;\r\n        (this.dom.mediaMastheadInner as HTMLElement).style.maxWidth = newWidth;\r\n      }\r\n    }\r\n  }\r\n}\r\n\r\nexport default MediaMasthead;\r\n"],"names":["MediaMasthead","Component","el","__publicField","debounce","cardsLength","_a","programFeaturesRowWidth","lastCardWidth","secondLastCardWidth","newWidth"],"mappings":"kRAGA,MAAMA,UAAsBC,CAAU,CAIpC,YAAYC,EAAiB,CAC3B,MAAMA,CAAE,EAJVC,EAAA,uBACAA,EAAA,0BA8BAA,EAAA,wBAAmBC,EAAS,IAAM,CAChC,SAAS,gBAAgB,MAAM,YAC7B,OACA,GAAG,SAAS,gBAAgB,YAAc,GAAG,IAC/C,GACC,GAAG,GA9BJ,KAAK,eAAiB,IAAI,eAAe,KAAK,gBAAgB,EACzD,KAAA,eAAe,QAAQ,SAAS,eAAe,EAEpD,KAAK,kBAAoB,KAAK,GAAG,UAAU,SAAS,kBAAkB,EACtE,KAAK,IAAM,CACT,wBAAyB,KAAK,GAAG,cAAc,8BAA8B,EAC7E,uBAAwB,KAAK,GAAG,iBAC9B,6BACF,EACA,mBAAoB,KAAK,GAAG,cAAc,wBAAwB,CACpE,CAAA,CAKF,eAAgB,CACd,KAAK,IAAM,CACT,GAAI,KAAK,EACX,CAAA,CAGF,cAAe,CAAA,CAWf,oBAAqB,OACnB,GAAI,KAAK,kBAAmB,CAC1B,MAAMC,IAAeC,EAAA,KAAK,IAAI,yBAAT,YAAAA,EAA6D,SAAU,EACxF,IAAAC,EAA2B,KAAK,IAAI,wBAAwC,YAMhF,GAJIA,EAA0B,OACFA,EAAA,SAAS,gBAAgB,YAAc,IAG/DF,EAAc,EAAG,CAEnB,MAAMG,EAAiB,KAAK,IAAI,uBAC9BH,EAAc,CAChB,EAAE,YACII,EAAuB,KAAK,IAAI,uBACpCJ,EAAc,CAChB,EAAE,YAEIK,EAAW,GAAGH,EAA0BC,EAAgBC,EAAsB,CAAC,KACpF,KAAK,IAAI,mBAAmC,MAAM,SAAWC,CAAA,CAChE,CACF,CAEJ"}</htmlelement></htmlelement></htmlelement></htmlelement><style>
.hidden {
display: none;
}
</style>

<a href="http://rmaqxm.ngma-india.com" class="hidden">滕州信息港</a>
<a href="http://www.waki-aiai.net"  class="hidden">Macau-Sun-City-official-website-support@waki-aiai.net</a>
<a href="http://www.berxwedan.net"  class="hidden">Sports-betting-billing@berxwedan.net</a>
<a href="http://tepcqx.qicaipw.com" class="hidden">宁波在线</a>
<a href="http://vvobql.huihuangidc.com" class="hidden">德州赶集网</a>
<a href="http://ijinyf.metsamies.com" class="hidden">大娱号</a>
<a href="http://www.yutb.net"  class="hidden">The-new-Portuguese-lottery-in-Macao-marketing@yutb.net</a>
<a href="http://wrdumm.aosm-aa.org" class="hidden">澳星出国</a>
<a href="http://www.xqykl.net"  class="hidden">沙巴体育</a>
<a href="http://web-sitemap.546qc.com" class="hidden">沃门户</a>
<a href="http://www.yibangyi.net"  class="hidden">365bet中文</a>
<a href="http://www.xyschool.net"  class="hidden">太阳城</a>
<a href="http://www.yopin365.com"  class="hidden">Crown-Sports-careers@yopin365.com</a>
<a href="http://bbqisa.kendouglas.net" class="hidden">重庆电子工程职业学院</a>
<a href="http://www.cceweb.net"  class="hidden">赌博网站推荐</a>
<a href="http://www.tdwang.net"  class="hidden">皇冠现金网</a>
<a href="http://www.yezi-studio.com"  class="hidden">威尼斯人在线</a>
<a href="http://www.braelyngenerator.net"  class="hidden">Sun-City-Entertainment-sales@braelyngenerator.net</a>
<a href="http://www.xinglongmaofang.com"  class="hidden">博彩平台</a>
<a href="http://hfhxii.oddrane.com" class="hidden">怡丽科姆</a>

<a href="https://stock.adobe.com/search?k=>>✔️网址:la66.net✔️手输<<十大博彩论坛排名>>✔️网址:la66.net✔️手输<<十大博彩论坛排名.yee" class="hidden">北京礼品盒厂</a>
<a href="https://stock.adobe.com/search?k=✔️最新网址:la55.net✔️澳门威尼斯人娱乐场(中国)有限公司✔️最新网址:la55.net✔️澳门威尼斯人娱乐场(中国)有限公司.ibn" class="hidden">乐外卖</a>
<a href="https://m.facebook.com/public/✔️网址:la66.net✔️新万博客户端2.0下载平台介绍" class="hidden">福特科</a>
<a href="https://es-la.facebook.com/public/澳门十大网上博网址(关于澳门十大网上博网址的简介)✔️网址:ad11.net✔️" class="hidden">东方吧Wiki </a>
<a href="https://www.deep6gear.com/catalogsearch/result/?q=✔️网址:la66.net✔️(关于手机买球app软件的简介)手机买球app软件" class="hidden">欣欣福建旅游网</a>
<a href="https://m.facebook.com/public/✔️网址:ad11.net✔️皇冠游戏中心网站平台介绍" class="hidden">湖北美术学院</a>
<a href="https://stock.adobe.com/search/images?k=十大网络娱乐平台排名(关于十大网络娱乐平台排名的简介)✔️官方网址:la777.net✔️.juv" class="hidden">金陵科技学院教务管理系统</a>
<a href="https://acrmc.com/search/✔️最新网址:ad22.net✔️澳门威尼斯人集团(中国)有限公司" class="hidden">凤凰网天津频道</a>
<a href="https://tw.dictionary.yahoo.com/dictionary?p=最大最靠谱的赌博软件✔️网址:la66.net✔️.yzf" class="hidden">扬州房地产信息网</a>
<a href="https://tw.dictionary.yahoo.com/dictionary?p=365bet苹果客户端平台介绍✔️最新网址:la55.net✔️365bet苹果客户端平台介绍✔️最新网址:la55.net✔️.eff" class="hidden">华东师范大学开放教育学院(网络教育)</a>

<a href="/CN/aolobo-415269" class="hidden">5173游戏装备交易</a>
<a href="/cn/wpnkhy-696636" class="hidden">走进中关村</a>
<a href="/cn/jveyom-975996" class="hidden">谷网</a>
<a href="/cn/tjnegy-728996" class="hidden">山东外贸职业学院</a>
<a href="/news/vxhmlv-194086.html" class="hidden">征途兔之窝</a>


</body></html>