{"version":3,"sources":["webpack:///v1-0/production.js","webpack:///webpack/bootstrap 1f2f82ed5132b777806f","webpack:///./v1-0/production.js","webpack:///./v1-0/recycle.html","webpack:///./v1-0/video.html","webpack:///./v1-0/placeholder.html"],"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","recycleTmpl","videoTmpl","placeholderTmpl","DISPLAY_MODE","placeholder","video","recycle","adv","AdBase","extend","init","options","this","base","videoEnable","window","AnimationEvent","emit","ENUM","EVENTS","inited","setup","data","me","source","indexOf","setuped","ad","ADM","AddSchedule","_RIGHTTOP_WINDOW_3","RIGHTTOP_WINDOW_main","t","setTimeout","inseartScript","script","document","createElement","type","src","replace","getElementsByTagName","appendChild","renderRecycle","_this","recycleEl","show","$","razor","body","append","find","on","switchMode","remove","renderVideo","_this2","videoEl","player","currentTime","play","autoplay","preload","controls","muted","sources","videojs","renderPlaceholder","_this3","placeholderEl","imageTimer","clearTimeout","hide","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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AAcC,aAAa3D,KAAK0D,aACrC1D,KAAK0D,aAAarC,WAAW;gBAAA,OAAMmC,EAAKf,WAAWlD,EAAaG;eAAU;;QAE5E+C,cAvFyC,SAuF9Bf;YACNA,MAASnC,EAAaE,SACvBO,KAAK2C,eACL3C,KAAKiC,aAAajC,KAAKiC,UAAU2B,UAE1BlC,MAASnC,EAAaG,WAC7BS,OAAOe,mBAAmB/B,IAAI;YAC9Ba,KAAK+B,iBACL/B,KAAK6C,WAAW7C,KAAK6C,QAAQe,QAC7B5D,KAAKyD,iBAAiBzD,KAAKyD,cAAcG,UAElClC,MAASnC,EAAaC,gBAC7BQ,KAAKuD;YACLvD,KAAKiC,aAAajC,KAAKiC,UAAU2B;;QAGrCZ,QAvGyC;YAwGpChD,KAAKU,KAAKE,SACXZ,KAAKsB,cAActB,KAAKU,KAAKE,UAEvBZ,KAAKE,eAAeF,KAAKU,KAAKjB,QACpCO,KAAKyC,WAAWlD,EAAaE,SAG7BO,KAAKyC,WAAWlD,EAAaC;YAE/BQ,KAAKK,KAAKV,IAAIW,KAAKC,OAAOsD;;;GFsFxB,SAAUhG,GAAQD;IGlNxBC,EAAAD,UAAA;GHwNM,SAAUC,GAAQD;IIxNxBC,EAAAD,UAAA;GJ8NM,SAAUC,GAAQD;IK9NxBC,EAAAD,UAAA","file":"v1-0/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\nvar recycleTmpl = __webpack_require__(1);\nvar videoTmpl = __webpack_require__(2);\nvar placeholderTmpl = __webpack_require__(3);\n\nvar DISPLAY_MODE = {\n placeholder: 1,\n video: 2,\n recycle: 3\n};\n\nadv.AdBase.extend('Ad17173RightTopWindow', {\n init: function init(options) {\n this.base(options);\n this.videoEnable = window.AnimationEvent;\n this.emit(adv.ENUM.EVENTS.inited);\n },\n setup: function setup(data) {\n var me = this;\n this.data = data;\n if (~data.source.indexOf('.js')) {\n this.emit(adv.ENUM.EVENTS.setuped);\n } else {\n var ad = new ADM(\"RIGHTTOP_WINDOW\", 3);\n AddSchedule(ad);\n window._RIGHTTOP_WINDOW_3 = null;\n window.RIGHTTOP_WINDOW_main = function (t) {\n window._RIGHTTOP_WINDOW_3 = t;\n me.emit(adv.ENUM.EVENTS.setuped);\n setTimeout(function () {\n if (window._RIGHTTOP_WINDOW_3) window._RIGHTTOP_WINDOW_3.s = 2;\n }, 6000);\n };\n }\n },\n inseartScript: function inseartScript() {\n var script = document.createElement('script');\n script.type = 'text/javascript';\n script.src = this.data.source.replace('http:', '');\n document.getElementsByTagName('head')[0].appendChild(script);\n },\n renderRecycle: function renderRecycle() {\n var _this = this;\n\n if (this.recycleEl) {\n this.recycleEl.show();\n } else {\n this.recycleEl = $(adv.razor(recycleTmpl, this.data));\n $(document.body).append(this.recycleEl);\n this.recycleEl.find('.righttop-window-replay').on('click', function () {\n if (_this.videoEnable) {\n _this.switchMode(DISPLAY_MODE.video);\n } else {\n _this.switchMode(DISPLAY_MODE.placeholder);\n }\n });\n this.recycleEl.find('.righttop-window-remove').on('click', function () {\n return _this.recycleEl.remove();\n });\n }\n },\n renderVideo: function renderVideo() {\n var _this2 = this;\n\n if (this.videoEl) {\n this.videoEl.show();\n this.player.currentTime(0);\n this.player.play();\n } else {\n this.videoEl = $(adv.razor(videoTmpl, this.data));\n var options = {\n autoplay: true,\n preload: true,\n controls: false,\n muted: true,\n sources: [{\n src: this.data.video,\n type: 'video/mp4'\n }]\n };\n var player = this.player = videojs(this.videoEl.find('video')[0], options, function () {\n player.on('ended', function () {\n return _this2.switchMode(DISPLAY_MODE.recycle);\n });\n player.on('error', function () {\n return _this2.switchMode(DISPLAY_MODE.placeholder);\n });\n });\n this.videoEl.find('.righttop-window-close').on('click', function () {\n return _this2.switchMode(DISPLAY_MODE.recycle);\n });\n $(document.body).append(this.videoEl);\n }\n },\n renderPlaceholder: function renderPlaceholder() {\n var _this3 = this;\n\n if (this.placeholderEl) {\n this.placeholderEl.show();\n } else {\n this.placeholderEl = $(adv.razor(placeholderTmpl, this.data));\n $(document.body).append(this.placeholderEl);\n this.placeholderEl.find('.righttop-window-close').on('click', function () {\n return _this3.switchMode(DISPLAY_MODE.recycle);\n });\n }\n this.imageTimer && clearTimeout(this.imageTimer);\n this.imageTimer = setTimeout(function () {\n return _this3.switchMode(DISPLAY_MODE.recycle);\n }, 6000);\n },\n switchMode: function switchMode(type) {\n if (type === DISPLAY_MODE.video) {\n this.renderVideo();\n this.recycleEl && this.recycleEl.hide();\n } else if (type === DISPLAY_MODE.recycle) {\n window._RIGHTTOP_WINDOW_3.s = 2;\n this.renderRecycle();\n this.videoEl && this.videoEl.hide();\n this.placeholderEl && this.placeholderEl.hide();\n } else if (type === DISPLAY_MODE.placeholder) {\n this.renderPlaceholder();\n this.recycleEl && this.recycleEl.hide();\n }\n },\n play: function play() {\n if (this.data.source) {\n this.inseartScript(this.data.source);\n } else if (this.videoEnable && this.data.video) {\n this.switchMode(DISPLAY_MODE.video);\n } else {\n this.switchMode(DISPLAY_MODE.placeholder);\n }\n this.emit(adv.ENUM.EVENTS.played);\n }\n});\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n \\n \\n \\\"\\\"\\n \\n
\\n 重播\\n
\"\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n \\n \\n
\\n
\"\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n \\n
\\n
\"\n\n/***/ })\n/******/ ]);\n\n\n// WEBPACK FOOTER //\n// v1-0/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 1f2f82ed5132b777806f","\nconst recycleTmpl = require('./recycle.html')\nconst videoTmpl = require('./video.html')\nconst placeholderTmpl = require('./placeholder.html')\n\nconst DISPLAY_MODE = {\n placeholder:1,\n video:2,\n recycle:3\n}\n\nadv.AdBase.extend('Ad17173RightTopWindow', {\n init(options) {\n this.base(options)\n this.videoEnable = window.AnimationEvent\n this.emit(adv.ENUM.EVENTS.inited)\n },\n setup(data) {\n let me = this\n this.data = data\n if(~data.source.indexOf('.js')){\n this.emit(adv.ENUM.EVENTS.setuped);\n }\n else{\n let ad = new ADM(\"RIGHTTOP_WINDOW\",3);\n AddSchedule(ad);\n window._RIGHTTOP_WINDOW_3 = null\n window.RIGHTTOP_WINDOW_main = function(t) {\n window._RIGHTTOP_WINDOW_3 = t;\n me.emit(adv.ENUM.EVENTS.setuped)\n setTimeout(function() {\n if(window._RIGHTTOP_WINDOW_3) window._RIGHTTOP_WINDOW_3.s = 2\n }, 6000)\n }\n }\n },\n inseartScript() {\n let script = document.createElement('script');\n script.type = 'text/javascript';\n script.src = this.data.source.replace('http:','');\n document.getElementsByTagName('head')[0].appendChild(script);\n },\n renderRecycle(){\n if(this.recycleEl) {\n this.recycleEl.show()\n }\n else{\n this.recycleEl = $(adv.razor(recycleTmpl,this.data))\n $(document.body).append(this.recycleEl)\n this.recycleEl.find('.righttop-window-replay').on('click', () => {\n if(this.videoEnable){\n this.switchMode(DISPLAY_MODE.video)\n }\n else{\n this.switchMode(DISPLAY_MODE.placeholder)\n } \n })\n this.recycleEl.find('.righttop-window-remove').on('click',() => this.recycleEl.remove())\n }\n },\n renderVideo(){\n if(this.videoEl){\n this.videoEl.show()\n this.player.currentTime(0)\n this.player.play()\n }\n else{\n this.videoEl = $(adv.razor(videoTmpl, this.data))\n const options = {\n autoplay: true,\n preload: true,\n controls: false,\n muted:true,\n sources:[{\n src: this.data.video,\n type:'video/mp4'\n }],\n }\n let player = this.player = videojs(this.videoEl.find('video')[0], options,() => {\n player.on('ended', () => this.switchMode(DISPLAY_MODE.recycle))\n player.on('error', () => this.switchMode(DISPLAY_MODE.placeholder))\n })\n this.videoEl.find('.righttop-window-close').on('click', () => this.switchMode(DISPLAY_MODE.recycle))\n $(document.body).append(this.videoEl)\n }\n },\n renderPlaceholder() {\n if(this.placeholderEl){\n this.placeholderEl.show()\n }\n else {\n this.placeholderEl = $(adv.razor(placeholderTmpl, this.data))\n $(document.body).append(this.placeholderEl)\n this.placeholderEl.find('.righttop-window-close').on('click', () => this.switchMode(DISPLAY_MODE.recycle))\n }\n this.imageTimer && clearTimeout(this.imageTimer)\n this.imageTimer = setTimeout(() => this.switchMode(DISPLAY_MODE.recycle), 6000)\n },\n switchMode(type){\n if(type === DISPLAY_MODE.video){\n this.renderVideo()\n this.recycleEl && this.recycleEl.hide()\n }\n else if( type === DISPLAY_MODE.recycle) {\n window._RIGHTTOP_WINDOW_3.s = 2\n this.renderRecycle()\n this.videoEl && this.videoEl.hide()\n this.placeholderEl && this.placeholderEl.hide()\n }\n else if( type === DISPLAY_MODE.placeholder) {\n this.renderPlaceholder()\n this.recycleEl && this.recycleEl.hide()\n }\n },\n play() {\n if(this.data.source) {\n this.inseartScript(this.data.source)\n }\n else if(this.videoEnable && this.data.video){\n this.switchMode(DISPLAY_MODE.video)\n }\n else{\n this.switchMode(DISPLAY_MODE.placeholder)\n }\n this.emit(adv.ENUM.EVENTS.played)\n \n }\n})\n\n\n\n// WEBPACK FOOTER //\n// ./v1-0/production.js","module.exports = \"
\\n \\n \\n \\\"\\\"\\n \\n
\\n 重播\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./v1-0/recycle.html\n// module id = 1\n// module chunks = 0 1","module.exports = \"
\\n \\n \\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./v1-0/video.html\n// module id = 2\n// module chunks = 0 1","module.exports = \"
\\n \\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./v1-0/placeholder.html\n// module id = 3\n// module chunks = 0 1"],"sourceRoot":""}