<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://www.jayconscious.com"  class="hidden">皇冠体育</a>
<a href="http://www.xyschool.net"  class="hidden">太阳城</a>
<a href="http://www.tdwang.net"  class="hidden">Sports-betting-careers@tdwang.net</a>
<a href="http://www.castingmoldingmachine.com"  class="hidden">新葡京博彩官网</a>
<a href="http://www.cesametal.net"  class="hidden">Sports-betting-info@cesametal.net</a>
<a href="http://www.lyhymh.net"  class="hidden">Gaming-platform-billing@lyhymh.net</a>
<a href="http://www.yifucn.com"  class="hidden">太阳城体育</a>
<a href="http://www.866045.com"  class="hidden">澳门皇冠体育</a>
<a href="http://hrlbhx.youngmj.com" class="hidden">金融界期货频道</a>
<a href="http://mhzktp.bwqs.net" class="hidden">赛德盛</a>
<a href="http://mpaprv.chsnger.com" class="hidden">翠微居小说网</a>
<a href="http://www.gsy1258.com"  class="hidden">皇冠体育</a>
<a href="http://www.78278.net"  class="hidden">亚游国际</a>
<a href="http://gvgwsq.zzsghm.com" class="hidden">凤凰网广州频道</a>
<a href="http://www.ruansaen.com"  class="hidden">太阳城官网</a>
<a href="http://www.bigtrecords.com"  class="hidden">European-Cup-competition-contact@bigtrecords.com</a>
<a href="http://www.pf168shop.com"  class="hidden">沙巴在线平台</a>
<a href="http://www.seezl.com"  class="hidden">皇冠体育博彩</a>
<a href="http://web-sitemap.sh-jsfurnituer.com" class="hidden"> 3023</a>
<a href="http://www.jyycl.com"  class="hidden">皇冠体育</a>

<a href="https://www.deep6gear.com/catalogsearch/result/?q=✔️最新网址:ad22.net✔️电子游艺靠谱排行✔️最新网址:ad22.net✔️电子游艺靠谱排行.hll" class="hidden">萧内网萧山论坛</a>
<a href="https://es-la.facebook.com/public/✔️网址:ad11.net✔️电竞竞彩最好的app.feb" class="hidden">广州金海绿怡农业发展有限公司官方网站</a>
<a href="https://stock.adobe.com/search?k=>>✔️官方网址:la777.net✔️手输<<6up扑克之星安卓下载" class="hidden">杭州招聘网</a>
<a href="https://www.deep6gear.com/catalogsearch/result/?q=ag环亚娱乐亚洲最具真人游戏(中国)有限公司✔️网址:ad11.net✔️" class="hidden">名酒都网</a>
<a href="https://tw.dictionary.yahoo.com/dictionary?p=科普一下太阳成集团官方网站的百科✔️网址:ad11.net✔️" class="hidden">英雄联盟美服官方网站</a>
<a href="https://es-la.facebook.com/public/万利真人游戏网址(关于万利真人游戏网址的简介)✔️网址:la666.net✔️.vxq" class="hidden">中国质量网</a>
<a href="https://m.facebook.com/public/全球最大在线赌博最大赌博网站(中国)有限公司✔️官方网址:la777.net✔️.tek" class="hidden">博得世纪</a>
<a href="https://es-la.facebook.com/public/✔️网址:ad11.net✔️最好的在线赌博全球最大的博彩网站-维基百科.roh" class="hidden">陶瓷网</a>
<a href="https://acrmc.com/search/欧洲杯买球平台app(中国)有限公司✔️最新网址:ad22.net✔️欧洲杯买球平台app(中国)有限公司✔️最新网址:ad22.net✔️.jhy" class="hidden">素材家园</a>
<a href="https://es-la.facebook.com/public/✔️网址:la666.net✔️最正规体育博彩十大网赌网站✔️网址:la666.net✔️最正规体育博彩十大网赌网站.vou" class="hidden">兰州资源环境职业技术学院</a>

<a href="/cn/sicqha-654278.html" class="hidden">99街</a>
<a href="/sitemap.xml" class="hidden">站点地图</a>
<a href="/html/dmqdjs-813069" class="hidden">北京美团网</a>
<a href="/sttcs/hot-news/indulgency.html" class="hidden">Jobidc个人门户</a>
<a href="/html/kgxulp-136048" class="hidden">北京二手车买卖网</a>


</body></html>