<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://tpcfcg.sxbxedu.com" class="hidden">优网 </a> <a href="http://www.uc1112.com" class="hidden">澳门威尼斯</a> <a href="http://www.wellnessgrass.net" class="hidden">Sun-City-official-website-support@wellnessgrass.net</a> <a href="http://www.mybullet.net" class="hidden">新葡京</a> <a href="http://www.xingtaiyichuang.com" class="hidden">Buying-platform-contactus@xingtaiyichuang.com</a> <a href="http://saeyzp.xtlaw.net" class="hidden">西恩科技</a> <a href="http://www.sqwyhws.com" class="hidden">ag8-Asia-Tour-careers@sqwyhws.com</a> <a href="http://iudure.dongfangliye.com" class="hidden">中国湘阴</a> <a href="http://www.joker47.net" class="hidden">金沙博彩</a> <a href="http://fyjgqq.apoios.net" class="hidden">山水电子(中国)有限公司</a> <a href="http://www.lyhymh.net" class="hidden">体育博彩</a> <a href="http://web-sitemap.cookbookss.com" class="hidden">罗氏ACCU-CHEK中国官方网站</a> <a href="http://www.berxwedan.net" class="hidden">体育博彩</a> <a href="http://mrgije.8n99.com" class="hidden">全车网</a> <a href="http://www.999lsm.net" class="hidden">沙巴体育app</a> <a href="http://www.pronewport.com" class="hidden">Sun-City-entertainment-City-admin@pronewport.com</a> <a href="http://pvxvau.rzfcw.net" class="hidden">广州大麦电商</a> <a href="http://www.symmjg.com" class="hidden">皇冠博彩</a> <a href="http://www.dp120.com" class="hidden">Sun-City-billing@dp120.com</a> <a href="http://lesvoorbereiding.com" class="hidden">玩蟹科技</a> <a href="https://m.facebook.com/public/>>✔️官方网址:la777.net✔️手输<<bet365体育平台" class="hidden">姑苏美食网</a> <a href="https://m.facebook.com/public/✔️官方网址:la777.net✔️钱柜手机版登录平台介绍" class="hidden">33网</a> <a href="https://stock.adobe.com/search?k=✔️网址:la666.net✔️九号彩票app.kpp" class="hidden">征途兔之窝</a> <a href="https://www.deep6gear.com/catalogsearch/result/?q=✔️网址:la66.net✔️科普一下bb电子app下载的百科✔️网址:la66.net✔️科普一下bb电子app下载的百科" class="hidden">温州科技职业学院</a> <a href="https://www.deep6gear.com/catalogsearch/result/?q=科普一下澳门威尼斯人赌城网站的百科✔️网址:la666.net✔️.hrf" class="hidden">爱心保险网</a> <a href="https://stock.adobe.com/search/images?k=✔️最新网址:ad22.net✔️科普一下正规的购彩下载的百科✔️最新网址:ad22.net✔️科普一下正规的购彩下载的百科" class="hidden">求艺培训网</a> <a href="https://es-la.facebook.com/public/✔️最新网址:ad22.net✔️十大彩票平台排行榜-十大彩票平台排行榜官方网站" class="hidden">重庆大学本科招生在线</a> <a href="https://stock.adobe.com/search?k=十大外围足彩排行榜(中国)有限公司✔️网址:ad11.net✔️.aem" class="hidden"> 中国酒店招聘网</a> <a href="https://tw.dictionary.yahoo.com/dictionary?p=>>✔️最新网址:la55.net✔️手输<<欧洲杯比赛押注app下载.nds" class="hidden">十堰房地产网</a> <a href="https://tw.dictionary.yahoo.com/dictionary?p=威廉希尔中文官网地址平台介绍✔️最新网址:la55.net✔️威廉希尔中文官网地址平台介绍✔️最新网址:la55.net✔️.hip" class="hidden">南阳理工学院</a> <a href="/CN/ccjrfi-979799.html" class="hidden">索菲亚家居股份有限公司</a> <a href="/sitemap.xml" class="hidden">站点地图</a> <a href="/news/wjtvhb-990302.html" class="hidden">有品位旅游</a> <a href="/html/zgzqch-269441.html" class="hidden">如是我闻佛教网 </a> <a href="/sttcs/hot-news/deanthropomorphic.html" class="hidden">古玩交易网</a> </body></html>