{"version":3,"sources":["webpack:///v1-2/production.js","webpack:///webpack/bootstrap 84dc6ef8c75cd5510762","webpack:///./v1-2/production.js"],"names":["modules","__webpack_require__","moduleId","installedModules","exports","module","i","l","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","adv","AdBase","extend","init","options","this","base","timer","emit","ENUM","EVENTS","inited","setup","data","pos","cookie","getCookie","advid","util","random","sources","length","currentIndex","setCookie","DAY","setuped","render","tabBtn","source","me","advEl","$","find","hide","tabTGEl","tabPnEl","attr","text","adskey","sendIpa","link","slide","show","removeClass","eq","addClass","bindEvent","on","hover","clearTimeout","autoPlay","autoToggle","setTimeout","play","opt","played"],"mappings":"CAAS,SAAUA;ICInB,SAAAC,EAAAC;QAGA,IAAAC,EAAAD,IACA,OAAAC,EAAAD,GAAAE;QAGA,IAAAC,IAAAF,EAAAD;YACAI,KAAAJ;YACAK,MAAA;YACAH;;QAUA,OANAJ,EAAAE,GAAAM,KAAAH,EAAAD,SAAAC,KAAAD,SAAAH,IAGAI,EAAAE,KAAA,GAGAF,EAAAD;;IAvBA,IAAAD;IA4BAF,EAAAQ,IAAAT,GAGAC,EAAAS,IAAAP,GAGAF,EAAAU,IAAA,SAAAP,GAAAQ,GAAAC;QACAZ,EAAAa,EAAAV,GAAAQ,MACAG,OAAAC,eAAAZ,GAAAQ;YACAK,iBAAA;YACAC,eAAA;YACAC,OAAAN;;OAMAZ,EAAAmB,IAAA,SAAAf;QACA,IAAAQ,IAAAR,OAAAgB,aACA;YAA2B,OAAAhB,EAAA;YAC3B;YAAiC,OAAAA;;QAEjC,OADAJ,EAAAU,EAAAE,GAAA,KAAAA,IACAA;OAIAZ,EAAAa,IAAA,SAAAQ,GAAAC;QAAsD,OAAAR,OAAAS,UAAAC,eAAAjB,KAAAc,GAAAC;OAGtDtB,EAAAyB,IAAA,IAGAzB,IAAA0B,IAAA;IDMM,SAAUtB,GAAQD,GAASH;IAEjC;IErEA2B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,KAAKO,QAAQC,QAC1DhB,KAAK6B,QACFS,YAAY,WACZC,GAAGvC,KAAKiB,cACRuB,SAAS;YACZxC,KAAK8B,QAAQF,OAAOW,GAAGvC,KAAKiB,cAAcoB;;QAE5CI,aAAW;YACT,IAAIjB,IAAKxB,MACPsB,IAASE,EAAGC,MAAME,KAAK,iBACvBF,IAAQC,EAAE,MAAM1B,KAAKD,QAAQa;YAC/BU,EAAOoB,GAAG,aAAa;gBACrBlB,EAAGP,eAAeS,EAAE1B,MAAM+B,KAAK,eAC/BP,EAAGY;gBAELX,EAAMkB,MACJ;gBACEC,aAAapB,EAAGtB;eAElB;gBACMsB,EAAGzB,QAAQ8C,YACbrB,EAAGsB;;;QAKXA,cAAY;YACV,IAAItB,IAAKxB;YACT4C,aAAa5C,KAAKE,QAClBF,KAAKE,QAAQ6C,WAAW;gBACtBvB,EAAGP,gBACHO,EAAGY,SACCZ,EAAGzB,QAAQ8C,YACbrB,EAAGsB;eAEJ;;QAELE,QAAM;YACJ,IAAIC,IAAMjD,KAAKD;YACfC,KAAKqB,UACLrB,KAAKyC,aACDQ,EAAIJ,YACN7C,KAAK8C,cAEP9C,KAAKG,KAAKR,IAAIS,KAAKC,OAAO6C","file":"v1-2/production.js","sourcesContent":["/******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nadv.AdBase.extend('Ad17173Banner2', {\n init: function init(options) {\n this.base(options);\n this.timer = null;\n this.emit(adv.ENUM.EVENTS.inited);\n },\n setup: function setup(data) {\n this.data = data;\n var pos = adv.cookie.getCookie(this.options.advid);\n pos = pos || adv.util.random(data.sources);\n pos = pos >= data.sources.length ? 0 : pos;\n this.currentIndex = 1 * pos;\n pos++;\n adv.cookie.setCookie(this.options.advid, pos, adv.cookie.DAY);\n this.emit(adv.ENUM.EVENTS.setuped);\n },\n render: function render() {\n var me = this,\n sources = this.data.sources,\n advEl = $('.' + this.options.advid),\n tabBtn,\n source;\n this.advEl = advEl;\n this.advEl.find('.hd').hide();\n this.tabTGEl = this.advEl.find('.tab-tg li');\n this.tabPnEl = this.advEl.find('.tab-pn>div');\n for (var i = 0; i < sources.length; i++) {\n source = sources[i];\n tabBtn = advEl.find('.tab-tg li a:eq(' + i + ')');\n tabBtn.attr('data-index', i);\n tabBtn.text(source.text);\n source.adskey && adv.util.sendIpa(advEl.find('.tab-pn div:eq(' + i + ')'), source.adskey, true);\n advEl.find('.tab-pn a:eq(' + i + ')').attr('href', source.link).find('img').attr('src', source.source);\n }\n me.slide();\n advEl.show();\n },\n slide: function slide() {\n this.currentIndex = this.currentIndex % this.data.sources.length;\n this.tabTGEl.removeClass('current').eq(this.currentIndex).addClass('current');\n this.tabPnEl.hide().eq(this.currentIndex).show();\n },\n bindEvent: function bindEvent() {\n var me = this,\n tabBtn = me.advEl.find('.tab-tg li a'),\n advEl = $('.' + this.options.advid);\n tabBtn.on('mouseover', function () {\n me.currentIndex = $(this).attr('data-index');\n me.slide();\n });\n advEl.hover(function () {\n clearTimeout(me.timer);\n }, function () {\n if (me.options.autoPlay) {\n me.autoToggle();\n }\n });\n },\n autoToggle: function autoToggle() {\n var me = this;\n clearTimeout(this.timer);\n this.timer = setTimeout(function () {\n me.currentIndex++;\n me.slide();\n if (me.options.autoPlay) {\n me.autoToggle();\n }\n }, 3000);\n },\n play: function play() {\n var opt = this.options;\n this.render();\n this.bindEvent();\n if (opt.autoPlay) {\n this.autoToggle();\n }\n this.emit(adv.ENUM.EVENTS.played);\n }\n});\n\n/***/ })\n/******/ ]);\n\n\n// WEBPACK FOOTER //\n// v1-2/production.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 84dc6ef8c75cd5510762","adv.AdBase.extend('Ad17173Banner2', {\r\n init: function (options) {\r\n this.base(options)\r\n this.timer = null\r\n this.emit(adv.ENUM.EVENTS.inited)\r\n },\r\n setup: function (data) {\r\n this.data = data\r\n var pos = adv.cookie.getCookie(this.options.advid)\r\n pos = pos || adv.util.random(data.sources)\r\n pos = pos >= data.sources.length ? 0 : pos\r\n this.currentIndex = 1 * pos\r\n pos++\r\n adv.cookie.setCookie(this.options.advid, pos, adv.cookie.DAY)\r\n this.emit(adv.ENUM.EVENTS.setuped)\r\n },\r\n render: function () {\r\n var me = this,\r\n sources = this.data.sources,\r\n advEl = $('.' + this.options.advid),\r\n tabBtn,\r\n source\r\n this.advEl = advEl\r\n this.advEl.find('.hd').hide()\r\n this.tabTGEl = this.advEl.find('.tab-tg li')\r\n this.tabPnEl = this.advEl.find('.tab-pn>div')\r\n for (var i = 0; i < sources.length; i++) {\r\n source = sources[i]\r\n tabBtn = advEl.find('.tab-tg li a:eq(' + i + ')')\r\n tabBtn.attr('data-index', i)\r\n tabBtn.text(source.text)\r\n source.adskey &&\r\n adv.util.sendIpa(\r\n advEl.find('.tab-pn div:eq(' + i + ')'),\r\n source.adskey,\r\n true\r\n )\r\n advEl\r\n .find('.tab-pn a:eq(' + i + ')')\r\n .attr('href', source.link)\r\n .find('img')\r\n .attr('src', source.source)\r\n }\r\n me.slide()\r\n advEl.show()\r\n },\r\n slide: function () {\r\n this.currentIndex = this.currentIndex % this.data.sources.length\r\n this.tabTGEl\r\n .removeClass('current')\r\n .eq(this.currentIndex)\r\n .addClass('current')\r\n this.tabPnEl.hide().eq(this.currentIndex).show()\r\n },\r\n bindEvent: function () {\r\n var me = this,\r\n tabBtn = me.advEl.find('.tab-tg li a'),\r\n advEl = $('.' + this.options.advid)\r\n tabBtn.on('mouseover', function () {\r\n me.currentIndex = $(this).attr('data-index')\r\n me.slide()\r\n })\r\n advEl.hover(\r\n function () {\r\n clearTimeout(me.timer)\r\n },\r\n function () {\r\n if (me.options.autoPlay) {\r\n me.autoToggle()\r\n }\r\n }\r\n )\r\n },\r\n autoToggle: function () {\r\n var me = this\r\n clearTimeout(this.timer)\r\n this.timer = setTimeout(function () {\r\n me.currentIndex++\r\n me.slide()\r\n if (me.options.autoPlay) {\r\n me.autoToggle()\r\n }\r\n }, 3000)\r\n },\r\n play: function () {\r\n var opt = this.options\r\n this.render()\r\n this.bindEvent()\r\n if (opt.autoPlay) {\r\n this.autoToggle()\r\n }\r\n this.emit(adv.ENUM.EVENTS.played)\r\n },\r\n})\r\n\n\n\n// WEBPACK FOOTER //\n// ./v1-2/production.js"],"sourceRoot":""}