<html><head></head><body>{"version":3,"sources":["webpack:///./src/feature/page/page.js"],"names":["classes","activeBackground","Page","element","initDomCache","el","$el","backgroundContainer","dom","backgrounds","addSubscriptions","subscribe","current","setBackground","nextBackground","addBackgrounds","length","i","document","createElement","setAttribute","appendChild","find","classList","contains","remove","add","BaseFeature"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;AACA;;;;;;;;;;;;AAEA,IAAMA,UAAU;AACfC,mBAAkB;AADH,CAAhB;;IAIqBC,I;;;AACpB,eAAYC,OAAZ,EAAqB;AAAA;;AAAA,0GACdA,OADc;;AAEpB,QAAKC,YAAL;AACA,QAAKC,EAAL,GAAUF,OAAV;AACA,QAAKG,GAAL,GAAW,sBAAE,MAAKD,EAAP,CAAX;AACA,QAAKE,mBAAL,GAA2B,MAAKC,GAAL,CAASD,mBAApC;;AAEA,QAAKE,WAAL,GAAmB,IAAnB;;AAEA,QAAKC,gBAAL;AAToB;AAUpB;;;;qCAEkB;AAAA;;AAClB,QAAKC,SAAL,CAAe,qBAAf,EAAsC,YAAsB;AAAA,mFAAP,EAAO;AAAA,QAAnBC,OAAmB,QAAnBA,OAAmB;;AAC3D,WAAKC,aAAL,CAAmBD,OAAnB;AACA,IAFD;AAGA,QAAKD,SAAL,CAAe,sBAAf,EAAuC,YAAsB;AAAA,oFAAP,EAAO;AAAA,QAAnBC,OAAmB,SAAnBA,OAAmB;;AAC5D,WAAKE,cAAL,CAAoBF,OAApB;AACA,IAFD;AAGA,QAAKD,SAAL,CAAe,sBAAf,EAAuC,YAA0B;AAAA,oFAAP,EAAO;AAAA,QAAvBF,WAAuB,SAAvBA,WAAuB;;AAChE,WAAKM,cAAL,CAAoBN,WAApB;AACA,IAFD;AAGA;;;iCAEcA,W,EAAa;AAC3B,OAAIA,YAAYO,MAAhB,EAAwB;AACvB,SAAK,IAAIC,IAAI,CAAb,EAAgBA,IAAIR,YAAYO,MAAhC,EAAwCC,GAAxC,EAA6C;AAC5C,SAAMd,UAAUe,SAASC,a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/base/base';\r\n\r\nconst classes = {\r\n\tactiveBackground: 't-page__background--active',\r\n};\r\n\r\nexport default class Page 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\tthis.$el = $(this.el);\r\n\t\tthis.backgroundContainer = this.dom.backgroundContainer;\r\n\r\n\t\tthis.backgrounds = null;\r\n\r\n\t\tthis.addSubscriptions();\r\n\t}\r\n\r\n\taddSubscriptions() {\r\n\t\tthis.subscribe('/page/setBackground', ({ current } = {}) => {\r\n\t\t\tthis.setBackground(current);\r\n\t\t});\r\n\t\tthis.subscribe('/page/nextBackground', ({ current } = {}) => {\r\n\t\t\tthis.nextBackground(current);\r\n\t\t});\r\n\t\tthis.subscribe('/page/addBackgrounds', ({ backgrounds } = {}) => {\r\n\t\t\tthis.addBackgrounds(backgrounds);\r\n\t\t});\r\n\t}\r\n\r\n\taddBackgrounds(backgrounds) {\r\n\t\tif (backgrounds.length) {\r\n\t\t\tfor (let i = 0; i < backgrounds.length; i++) {\r\n\t\t\t\tconst element = document.createElement('div');\r\n\t\t\t\telement.setAttribute('class', 't-page__background');\r\n\t\t\t\telement.setAttribute('data-js', 'page-background');\r\n\t\t\t\telement.setAttribute('style', backgrounds[i]);\r\n\t\t\t\tthis.backgroundContainer.appendChild(element);\r\n\t\t\t}\r\n\t\t\tthis.backgrounds = this.$el.find('[data-js=\"page-background\"]');\r\n\t\t}\r\n\t}\r\n\r\n\tsetBackground(current) {\r\n\t\tif (!current) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tfor (let i = 0; i < this.backgrounds.length; i++) {\r\n\t\t\tif (this.backgrounds[i].classList.contains(classes.activeBackground)) {\r\n\t\t\t\tthis.backgrounds[i].classList.remove(classes.activeBackground);\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.backgrounds[current].classList.add(classes.activeBackground);\r\n\t}\r\n\r\n\tnextBackground(current) {\r\n\t\tif (!current) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tfor (let i = 0; i < this.backgrounds.length; i++) {\r\n\t\t\tthis.backgrounds[i].classList.remove(classes.activeBackground);\r\n\t\t}\r\n\t\tthis.backgrounds[current].classList.add(classes.activeBackground);\r\n\t}\r\n}\r\n"],"sourceRoot":""}<style> .hidden { display: none; } </style> <a href="http://www.ehulk.net" class="hidden">足球博彩</a> <a href="http://thkwbl.qushiershouche.com" class="hidden">经纬测绘</a> <a href="http://www.jayconscious.com" class="hidden">体育博彩</a> <a href="http://www.cceweb.net" class="hidden">博彩平台大全</a> <a href="http://www.zgytzs.net" class="hidden">体育平台</a> <a href="http://obqdvh.juccoe.com" class="hidden">济南海格尔数控科技有限公司</a> <a href="http://www.lcxlxxjc.com" class="hidden">皇冠注册</a> <a href="http://www.c178.net" class="hidden">在线博彩</a> <a href="http://www.hairstylescn.com" class="hidden">bbin-customerservice@hairstylescn.com</a> <a href="http://www.orkexpo.net" class="hidden">皇冠体育</a> <a href="http://www.551yule.com" class="hidden">沙巴体育</a> <a href="http://zcsklq.52guanggu.com" class="hidden">adidas Official Website</a> <a href="http://sgxbzw.yuanzhizuan.com" class="hidden">奥必通</a> <a href="http://www.yutb.net" class="hidden">新葡京</a> <a href="http://www.cceweb.net" class="hidden">博彩平台</a> <a href="http://www.dandick.net" class="hidden">Wynn-Sports-admin@dandick.net</a> <a href="http://www.turuntilataksit.net" class="hidden">太阳城集团</a> <a href="http://www.866045.com" class="hidden">皇冠体育</a> <a href="http://www.defraidlivestock.com" class="hidden">欧洲杯买球</a> <a href="http://www.xqykl.net" class="hidden">Sports-in-Sabah-contactus@xqykl.net</a> <a href="https://stock.adobe.com/search?k=✔️最新网址:ad22.net✔️全球网赌十大平台(中国)有限公司.yxj" class="hidden">永年论坛</a> <a href="https://es-la.facebook.com/public/科普一下十大网赌网址线上注册的百科✔️网址:la66.net✔️" class="hidden">旅游圈</a> <a href="https://stock.adobe.com/search?k=>>✔️网址:la66.net✔️手输<<信誉网上赌博亚洲体育赌博软件" class="hidden">中国电力招标网</a> <a href="https://es-la.facebook.com/public/最正规网络博彩博彩网站推荐平台介绍✔️网址:la666.net✔️最正规网络博彩博彩网站推荐平台介绍✔️网址:la666.net✔️" class="hidden">看店宝官网</a> <a href="https://acrmc.com/search/✔️官方网址:la777.net✔️bet5365首页(中国)有限公司" class="hidden">海淘城</a> <a href="https://tw.dictionary.yahoo.com/dictionary?p=✔️官方网址:la777.net✔️皇冠足球投注网址" class="hidden">淘宝秒杀</a> <a href="https://es-la.facebook.com/public/✔️网址:ad11.net✔️科普一下赌场软件下载安装的百科.gxo" class="hidden">新浪软件下载</a> <a href="https://stock.adobe.com/search?k=✔️网址:la666.net✔️科普一下365bet体育直播的百科.zuu" class="hidden">友基科技</a> <a href="https://tw.dictionary.yahoo.com/dictionary?p=✔️最新网址:la55.net✔️全球最大网上赌博推荐赌博网站✔️最新网址:la55.net✔️全球最大网上赌博推荐赌博网站" class="hidden">长城网《长城原创》栏目</a> <a href="https://es-la.facebook.com/public/✔️网址:la666.net✔️科普一下澳门博彩试玩送彩金的百科" class="hidden">千龙科技</a> <a href="/sttcs/hot-news/breacher.html" class="hidden">永葆环保</a> <a href="/sttcs/hot-news/filtration.html" class="hidden">青年时报</a> <a href="/sitemap.xml" class="hidden">站点地图</a> <a href="/cn/afyaje-256112.html" class="hidden">福州鼓楼医院</a> </body></html>