<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.iconfuture.net" class="hidden">太阳城app下载</a> <a href="http://www.asungroup.com" class="hidden">太阳城网址</a> <a href="http://www.xlhl.net" class="hidden">Buy-ball-app-admin@xlhl.net</a> <a href="http://www.tt99949.com" class="hidden">365体育投注</a> <a href="http://www.xyschool.net" class="hidden">Sun-City-billing@xyschool.net</a> <a href="http://www.at-funeral.com" class="hidden">欧洲杯买球</a> <a href="http://bamwjl.eagle1027.com" class="hidden">沂源信息网</a> <a href="http://www.ehulk.net" class="hidden">Online-gambling-platform-admin@ehulk.net</a> <a href="http://www.babyfeedingshop.com" class="hidden">European-Cup-buying-entrance-support@babyfeedingshop.com</a> <a href="http://owvhif.ccf-ccf.com" class="hidden">麦可思</a> <a href="http://www.letaoyizs.com" class="hidden">皇冠体育</a> <a href="http://jksbfy.cnyc86.com" class="hidden">自立新材</a> <a href="http://tokdaz.greatsellmall.com" class="hidden">启海人才网</a> <a href="http://mdfcbm.hyjl.net" class="hidden">苗圃医考网</a> <a href="http://www.castingmoldingmachine.com" class="hidden">新葡京博彩官网</a> <a href="http://web-sitemap.ibura.net" class="hidden">内蒙古师范大学鸿德学院</a> <a href="http://www.yutb.net" class="hidden">新葡京博彩</a> <a href="http://www.berxwedan.net" class="hidden">Crown-Sports-marketing@berxwedan.net</a> <a href="http://www.smxjjl.com" class="hidden">Sabah-sports-betting-feedback@smxjjl.com</a> <a href="http://www.yopin365.com" class="hidden">Crown-Sports-Betting-media@yopin365.com</a> <a href="https://tw.dictionary.yahoo.com/dictionary?p=网络mg游戏网站✔️最新网址:la55.net✔️.tnm" class="hidden">哈尔滨体育学院</a> <a href="https://stock.adobe.com/search/images?k=✔️网址:la666.net✔️全球十大赌钱软件app(中国)有限公司✔️网址:la666.net✔️全球十大赌钱软件app(中国)有限公司" class="hidden">58同城萍乡分类信息网</a> <a href="https://www.deep6gear.com/catalogsearch/result/?q=网上正规的彩票平台>>✔️最新网址:la55.net✔️手输<<.gyi" class="hidden">巴拉巴拉品牌官方网站</a> <a href="https://es-la.facebook.com/public/科普一下威尼斯人注册会员的百科✔️最新网址:ad22.net✔️" class="hidden">欣欣旅游搜索</a> <a href="https://tw.dictionary.yahoo.com/dictionary?p=✔️网址:la666.net✔️mg摆脱游戏官方版下载(中国)有限公司.qly" class="hidden">河南牧业经济学院官网</a> <a href="https://acrmc.com/search/威尼斯官方网站✔️网址:la666.net✔️" class="hidden">游戏网</a> <a href="https://tw.dictionary.yahoo.com/dictionary?p=>>✔️网址:ad11.net✔️手输<<十大网投在线入口>>✔️网址:ad11.net✔️手输<<十大网投在线入口.wea" class="hidden">广建咨询</a> <a href="https://m.facebook.com/public/✔️网址:la666.net✔️在线博彩排名十大博彩网站平台介绍" class="hidden">《地城之光》手机版官方网站</a> <a href="https://acrmc.com/search/✔️官方网址:la777.net✔️最靠谱的十大棋牌游戏-维基百科✔️官方网址:la777.net✔️最靠谱的十大棋牌游戏-维基百科.zmz" class="hidden">爱标志网</a> <a href="https://acrmc.com/search/royal皇家88-维基百科✔️最新网址:la55.net✔️" class="hidden">企业家日报数字报</a> <a href="/sitemap.xml" class="hidden">站点地图</a> <a href="/html/nkjqbn-641124.html" class="hidden">Longchamp中国</a> <a href="/sttcs/hot-news/deodara.html" class="hidden">中国▪枣阳政务网</a> <a href="/cn/pcirfx-285439.html" class="hidden">长虹集团官网</a> </body></html>