<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://hplkcr.aegso.com" class="hidden">沃门户</a>
<a href="http://www.educoncepts-sdr.com"  class="hidden">太阳城官方入口</a>
<a href="http://mdyxsi.madeintlh.com" class="hidden">中国服饰加工网</a>
<a href="http://www.yuke100.net"  class="hidden">365-Sports-admin@yuke100.net</a>
<a href="http://web-sitemap.gw168.net" class="hidden">扬州生活网</a>
<a href="http://www.xqykl.net"  class="hidden">体育博彩</a>
<a href="http://walwyi.ahmedsahin.com" class="hidden">要我玩</a>
<a href="http://www.silvamkt.com"  class="hidden">Crown-Sports-official-website-customerservice@silvamkt.com</a>
<a href="http://www.andersontxrealty.net"  class="hidden">银河集团app下载</a>
<a href="http://www.smxjjl.com"  class="hidden">Sports-in-Sabah-service@smxjjl.com</a>
<a href="http://www.eduftp.net"  class="hidden">Sun-City-contactus@eduftp.net</a>
<a href="http://www.jayconscious.com"  class="hidden">Crown-Sports-contact@jayconscious.com</a>
<a href="http://www.tassahil.net"  class="hidden">威尼斯人体育</a>
<a href="http://ktisrc.booking-rail.com" class="hidden">汕头E家数码</a>
<a href="http://xiqmfj.dgcomputer.net" class="hidden">四利通</a>
<a href="http://www.866045.com"  class="hidden">Crown-Sports-feedback@866045.com</a>
<a href="http://www.tassahil.net"  class="hidden">体育平台</a>
<a href="http://www.swissabc.net"  class="hidden">Sports-platform-help@swissabc.net</a>
<a href="http://www.yezi-studio.com"  class="hidden">Venetian-Online-careers@yezi-studio.com</a>
<a href="http://ewxqmt.tamcaosu.net" class="hidden">全球购</a>

<a href="https://m.facebook.com/public/✔️最新网址:la55.net✔️mgm美高梅官网登录" class="hidden">如酒网</a>
<a href="https://www.deep6gear.com/catalogsearch/result/?q=冰球突破破解专家安卓版>>✔️官方网址:la777.net✔️手输<<冰球突破破解专家安卓版>>✔️官方网址:la777.net✔️手输<<" class="hidden">尚品宅配</a>
<a href="https://acrmc.com/search/✔️官方网址:la777.net✔️推荐赌博十大app排行平台介绍.kqw" class="hidden">大公网</a>
<a href="https://stock.adobe.com/search/images?k=✔️网址:la66.net✔️(关于电子游艺信誉排行榜的简介)电子游艺信誉排行榜.bpz" class="hidden">合肥列表网 </a>
<a href="https://tw.dictionary.yahoo.com/dictionary?p=正规网赌软件大全(中国)有限公司✔️网址:la666.net✔️.gkb" class="hidden">权健自然医学</a>
<a href="https://stock.adobe.com/search/images?k=最靠谱的网络博彩365平台-维基百科✔️官方网址:la777.net✔️" class="hidden">枣庄天气预报</a>
<a href="https://tw.dictionary.yahoo.com/dictionary?p=✔️最新网址:la55.net✔️金沙电子游戏app下载.qgy" class="hidden">爱丽时装</a>
<a href="https://es-la.facebook.com/public/电子游戏娱乐网页(中国)有限公司✔️网址:la66.net✔️电子游戏娱乐网页(中国)有限公司✔️网址:la66.net✔️" class="hidden">钱站</a>
<a href="https://stock.adobe.com/search/images?k=科普一下澳门威尼斯人app官网的百科✔️最新网址:ad22.net✔️科普一下澳门威尼斯人app官网的百科✔️最新网址:ad22.net✔️.gkr" class="hidden">中国娱乐网电视剧频道</a>
<a href="https://tw.dictionary.yahoo.com/dictionary?p=凤凰彩票平台app下载平台介绍✔️网址:ad11.net✔️凤凰彩票平台app下载平台介绍✔️网址:ad11.net✔️" class="hidden">营口热线</a>

<a href="/sttcs/hot-news/gallows.html" class="hidden">泰捷WEBOX官方网站</a>
<a href="/sttcs/hot-news/pallograph.html" class="hidden">腾龙电子</a>
<a href="/html/fbitbb-839870.html" class="hidden">中公潍坊人事考试中心</a>
<a href="/cn/sbfbvr-944139.html" class="hidden">歌力思</a>
<a href="/sttcs/hot-news/loglet.html" class="hidden">中凯股份</a>


</body></html>