<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.wowarmony.com" class="hidden">Sun-City-Entertainment-service@wowarmony.com</a> <a href="http://www.cceweb.net" class="hidden">Gambling-website-contact@cceweb.net</a> <a href="http://www.defraidlivestock.com" class="hidden">欧洲杯买球</a> <a href="http://web-sitemap.estellaaesthetics.net" class="hidden">笔趣阁</a> <a href="http://jwqmmq.810zc.com" class="hidden">红袋鼠亲子网</a> <a href="http://www.yopin365.com" class="hidden">皇冠体育</a> <a href="http://www.baoqiuyue.net" class="hidden">威尼斯人网上赌场</a> <a href="http://www.hairstylescn.com" class="hidden">bbin</a> <a href="http://www.jayconscious.com" class="hidden">Crown-Sports-careers@jayconscious.com</a> <a href="http://www.izuanhui.net" class="hidden">Buy-ball-app-help@izuanhui.net</a> <a href="http://www.smart-launch.net" class="hidden">Buying-platform-support@smart-launch.net</a> <a href="http://www.smxjjl.com" class="hidden">沙巴体育博彩</a> <a href="http://www.babyfeedingshop.com" class="hidden">欧洲杯买球</a> <a href="http://www.bigtrecords.com" class="hidden">欧洲杯竞猜官网</a> <a href="http://www.tnrstarsdakdoa.net" class="hidden">Crown-betting-contact@tnrstarsdakdoa.net</a> <a href="http://fqadas.phptrick.com" class="hidden">赶火车网</a> <a href="http://www.zgdx8.com" class="hidden">威廉希尔体育</a> <a href="http://www.xlhl.net" class="hidden">买球app</a> <a href="http://www.hairstylescn.com" class="hidden">bbin-video-contactus@hairstylescn.com</a> <a href="http://www.mygril-yaoyao.com" class="hidden">博彩平台</a> <a href="https://stock.adobe.com/search?k=✔️最新网址:ad22.net✔️正规线上博彩365平台平台介绍✔️最新网址:ad22.net✔️正规线上博彩365平台平台介绍.zde" class="hidden">西安生活网</a> <a href="https://stock.adobe.com/search/images?k=365bet台湾(中国)有限公司✔️网址:la66.net✔️.stu" class="hidden">长隆旅游 </a> <a href="https://tw.dictionary.yahoo.com/dictionary?p=好玩的手游推荐(关于好玩的手游推荐的简介)✔️网址:la66.net✔️.ltu" class="hidden">武汉解放军161医院</a> <a href="https://stock.adobe.com/search?k=>>✔️网址:la666.net✔️手输<<网上十大网赌娱乐大全.zuh" class="hidden">中国木业网</a> <a href="https://stock.adobe.com/search?k=欧洲杯买球app下载✔️最新网址:ad22.net✔️欧洲杯买球app下载✔️最新网址:ad22.net✔️.bsj" class="hidden">新鲜中文网</a> <a href="https://es-la.facebook.com/public/正规网赌软件在哪里下载(关于正规网赌软件在哪里下载的简介)✔️官方网址:la777.net✔️.xxv" class="hidden">起点读书客户端官方网站</a> <a href="https://tw.dictionary.yahoo.com/dictionary?p=伟德体育app>>✔️网址:la66.net✔️手输<<伟德体育app>>✔️网址:la66.net✔️手输<<.mth" class="hidden">58同城萍乡分类信息网</a> <a href="https://stock.adobe.com/search/images?k=✔️最新网址:la55.net✔️betvictor中文平台介绍✔️最新网址:la55.net✔️betvictor中文平台介绍" class="hidden">恒信启华</a> <a href="https://m.facebook.com/public/科普一下推荐一个买球网站的百科✔️网址:la666.net✔️科普一下推荐一个买球网站的百科✔️网址:la666.net✔️.yzo" class="hidden">中国教育在线在职硕士频道</a> <a href="https://tw.dictionary.yahoo.com/dictionary?p=ag亚游集团下载平台介绍✔️官方网址:la777.net✔️.reg" class="hidden">河源天气预报</a> <a href="/news/oepzcn-806912" class="hidden">飞毛腿(福建)电子有限公司</a> <a href="/sttcs/hot-news/source.html" class="hidden">中公招警考试网</a> <a href="/news/jpfozo-840234" class="hidden">东风本田 CR-V 官方网站</a> <a href="/html/ipkrvl-636074" class="hidden">北京信息港官网</a> <a href="/sttcs/hot-news/overdigest.html" class="hidden">浙江旅游新闻网</a> </body></html>