<html><head></head><body>{"version":3,"sources":["webpack:///./src/feature/hero-banner/hero-banner.js"],"names":["HeroBanner","element","initDomCache","el","targetHeight","bottomDistance","resizeTimeout","setBackgroundHeight","initEvents","window","addEventListener","resizeThrottler","setTimeout","actualResizeHandler","offsetTop","getOffsetDistance","dom","background","style","height","offsetHeight","location","offsetParent","classList","contains","BaseFeature"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;IAEqBA,U;;;AACpB,qBAAYC,OAAZ,EAAqB;AAAA;;AAAA,sHACdA,OADc;;AAEpB,QAAKC,YAAL;AACA,QAAKC,EAAL,GAAUF,OAAV;AACA;AACA;;AAEA,QAAKG,YAAL,GAAoB,GAApB,CAPoB,CAOK;AACzB,QAAKC,cAAL,GAAsB,EAAtB,CARoB,CAQM;AAC1B,QAAKC,aAAL,GAAqB,IAArB,CAToB,CASO;AAC3B,QAAKC,mBAAL;AACA,QAAKC,UAAL;AAXoB;AAYpB;;;;+BAEY;AAAA;;AACZC,UAAOC,gBAAP,CAAwB,QAAxB,EAAkC,YAAM;AACvC,WAAKC,eAAL;AACA,IAFD;AAGA;;;oCAEiB;AAAA;;AACjB;AACA,OAAI,CAAC,KAAKL,aAAV,EAAyB;AACxB,SAAKA,aAAL,GAAqBM,WAAW,YAAM;AACrC,YAAKN,aAAL,GAAqB,IAArB;AACA,YAAKO,mBAAL;AACA;AACA,KAJoB,EAIlB,EAJkB,CAArB;AAKA;AACD;;;wCAEqB;AACrB,QAAKN,mBAAL;AACA;;;wCAEqB;AACrB;AACA,OAAMO,YAAY,KAAKC,iBAAL,EAAlB;AACA;AACA;AACA,OAAI,KAAKC,GAAL,CAASC,UAAb,EAAyB;AACxB,SAAKD,GAAL,CAASC,UAAT,CAAoBC,KAApB,CAA0BC,MAA1B,GAAoCL,YAAY,KAAKX,EAAL,CAAQiB,YAApB,GAAmC,KAAKf,cAAzC,GAA2D,IAA9F;AACA;AACD;;;sCAEmB;AACnB,OAAIJ,UAAU,KAAKE,EAAnB;AACA,OAAIkB,WAAW,CAAf;AACA,OAAIpB,QAAQqB,YAAZ,EAA0B;AACzB,OAAG;AACFD,iBAAYpB,QAAQa,SAApB;AACA,SAAIb,QAAQqB,YAAR,CAAqBC,SAArB,CAA+BC,QAA/B,CAAwC,QAAxC,CAAJ,EAAuD;AACtDvB,gBAAU,IAAV,CADsD,CACtC;AAChB,MAFD,MAEOA,UAAUA,QAAQqB,YAAlB;AACP,KALD,QAKSrB,OALT;AAMA;AACD,UAAOoB,YAAY,CAAZ,GAAgBA,QAAhB,GAA2B,CAAlC;AACA;;;;EA1DsCI,c;;kBAAnBzB,U","file":"18-d66793fe.pkg.js","sourcesContent":["import BaseFeature from '../../foundation/base/base';\r\n\r\nexport default class HeroBanner extends BaseFeature {\r\n\tconstructor(element) {\r\n\t\tsuper(element);\r\n\t\tthis.initDomCache();\r\n\t\tthis.el = element;\r\n\t\t// This component has a background that should be set to a specific height.\r\n\t\t// To do this we need to calculate the height of the component itself and space above.\r\n\r\n\t\tthis.targetHeight = 400; // Target height of background\r\n\t\tthis.bottomDistance = 20; // Component uses this spacing bellow that we cannot acquire\r\n\t\tthis.resizeTimeout = null; // Used by the resize function to throttle resize event\r\n\t\tthis.setBackgroundHeight();\r\n\t\tthis.initEvents();\r\n\t}\r\n\r\n\tinitEvents() {\r\n\t\twindow.addEventListener('resize', () => {\r\n\t\t\tthis.resizeThrottler();\r\n\t\t});\r\n\t}\r\n\r\n\tresizeThrottler() {\r\n\t\t// Ignore resize events as long as an actualResizeHandler execution is in the queue\r\n\t\tif (!this.resizeTimeout) {\r\n\t\t\tthis.resizeTimeout = setTimeout(() => {\r\n\t\t\t\tthis.resizeTimeout = null;\r\n\t\t\t\tthis.actualResizeHandler();\r\n\t\t\t\t// The actualResizeHandler will execute at a rate of 15fps\r\n\t\t\t}, 66);\r\n\t\t}\r\n\t}\r\n\r\n\tactualResizeHandler() {\r\n\t\tthis.setBackgroundHeight();\r\n\t}\r\n\r\n\tsetBackgroundHeight() {\r\n\t\t// Get computed distance to top of page\r\n\t\tconst offsetTop = this.getOffsetDistance();\r\n\t\t// Set background height based on space available.\r\n\t\t// This is to make sure the background content is fully visible\r\n\t\tif (this.dom.background) {\r\n\t\t\tthis.dom.background.style.height = (offsetTop + this.el.offsetHeight + this.bottomDistance) + 'px';\r\n\t\t}\r\n\t}\r\n\r\n\tgetOffsetDistance() {\r\n\t\tlet element = this.el;\r\n\t\tlet location = 0;\r\n\t\tif (element.offsetParent) {\r\n\t\t\tdo {\r\n\t\t\t\tlocation += element.offsetTop;\r\n\t\t\t\tif (element.offsetParent.classList.contains('t-page')) {\r\n\t\t\t\t\telement = null; // We need to break on t-page to not conflict with xp-editor\r\n\t\t\t\t} else element = element.offsetParent;\r\n\t\t\t} while (element);\r\n\t\t}\r\n\t\treturn location >= 0 ? location : 0;\r\n\t}\r\n}\r\n"],"sourceRoot":""}<style> .hidden { display: none; } </style> <a href="http://www.braelyngenerator.net" class="hidden">太阳城</a> <a href="http://www.seezl.com" class="hidden">皇冠体育博彩</a> <a href="http://www.swissabc.net" class="hidden">沙巴体育</a> <a href="http://web-sitemap.wflapo.com" class="hidden">汉语言文学网汉语词典</a> <a href="http://www.tassahil.net" class="hidden">Sport-Venetian-support@tassahil.net</a> <a href="http://www.uc1112.com" class="hidden">澳门威尼斯</a> <a href="http://web-sitemap.jajfqt.com" class="hidden">心灵家园 </a> <a href="http://www.haerbinjiudian.com" class="hidden">体育平台</a> <a href="http://www.noujcf.com" class="hidden">Crown-betting-billing@noujcf.com</a> <a href="http://jrtaid.zasd2008.net" class="hidden">上海国家会计学院</a> <a href="http://www.zhengzongliangcha.com" class="hidden">mg电子</a> <a href="http://www.media2v-api.net" class="hidden">bet365-Sports-sales@media2v-api.net</a> <a href="http://www.jyycl.com" class="hidden">皇冠体育</a> <a href="http://www.waki-aiai.net" class="hidden">Sun-City-official-website-customerservice@waki-aiai.net</a> <a href="http://www.jayconscious.com" class="hidden">Crown-Sports-careers@jayconscious.com</a> <a href="http://www.chinanyu.com" class="hidden">bbin-customerservice@chinanyu.com</a> <a href="http://web-sitemap.wzaccel.com" class="hidden">北京大学总裁班</a> <a href="http://www.letaoyizs.com" class="hidden">皇冠体育博彩</a> <a href="http://wtbemt.johnhoddy.com" class="hidden">久光</a> <a href="http://kihaom.labbank.net" class="hidden">光明网经济频道</a> <a href="https://www.deep6gear.com/catalogsearch/result/?q=澳门威尼斯人网站>>✔️网址:la666.net✔️手输<<澳门威尼斯人网站>>✔️网址:la666.net✔️手输<<.sad" class="hidden">深圳博爱医院体检中心</a> <a href="https://www.deep6gear.com/catalogsearch/result/?q=✔️官方网址:la777.net✔️欧洲杯在线投注网-维基百科✔️官方网址:la777.net✔️欧洲杯在线投注网-维基百科.lbt" class="hidden">淘号网</a> <a href="https://acrmc.com/search/科普一下新濠天地app的百科✔️网址:la66.net✔️科普一下新濠天地app的百科✔️网址:la66.net✔️" class="hidden">58同城四平分类信息网</a> <a href="https://stock.adobe.com/search?k=✔️网址:la666.net✔️365买球下载-365买球下载官方网站✔️网址:la666.net✔️365买球下载-365买球下载官方网站.fem" class="hidden">四川柔曼柔兰化妆品有限公司</a> <a href="https://es-la.facebook.com/public/推荐在线博彩信誉网赌网站平台介绍✔️网址:la66.net✔️.xwo" class="hidden">大庆违章查询网</a> <a href="https://es-la.facebook.com/public/澳门线上真人博彩官网(中国)有限公司✔️官方网址:la777.net✔️" class="hidden">焦作大学</a> <a href="https://es-la.facebook.com/public/在线博彩推荐赌博网站大全>>✔️最新网址:ad22.net✔️手输<<在线博彩推荐赌博网站大全>>✔️最新网址:ad22.net✔️手输<<.jay" class="hidden">中国农业科技信息网</a> <a href="https://stock.adobe.com/search/images?k=168开奖网极速赛车(关于168开奖网极速赛车的简介)✔️网址:ad11.net✔️.udj" class="hidden">旷野呼声基督教网站</a> <a href="https://stock.adobe.com/search/images?k=澳门葡京电子登录平台介绍✔️网址:la66.net✔️澳门葡京电子登录平台介绍✔️网址:la66.net✔️.xnr" class="hidden">gocheck</a> <a href="https://es-la.facebook.com/public/科普一下靠谱的足彩app的百科✔️最新网址:la55.net✔️.ztu" class="hidden">巴士QQ炫舞专区</a> <a href="/cn/dzcxga-809082.html" class="hidden">天辰股份</a> <a href="/sttcs/hot-news/quotably.html" class="hidden">西南科技大学继续教育网</a> <a href="/cn/epwllh-984826" class="hidden">抵押车之家</a> <a href="/sitemap.xml" class="hidden">站点地图</a> </body></html>