{"version":3,"sources":["webpack:///webpack/bootstrap 34848dc54187d1e3c1ae","webpack:///./src/js/olympiad.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","nc","promokit","Preloader","game","video","$","document","on","olympiad","Base","this","players","init","setPlayer","hover","field","Player","selector","videoId","mute","loop","buff","promise_field","promise_buff","_this","$field","$buff","play","undefined","then","_","pause","catch","error","window","setTimeout","console","log","location","reload","ready","TopBtn","Folding","open","remote","element","margin","top","fix","show","quick","cspeed","el","$tab_list","attr","addClass","getAttribute"],"mappings":";;;;gBACA,IAAAA,KAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE,GACA,OAAAF,EAAAE,GAAAC,QAGA,IAAAC,EAAAJ,EAAAE,IACAG,EAAAH,EACAI,GAAA,EACAH,YAUA,OANAI,EAAAL,GAAAM,KAAAJ,EAAAD,QAAAC,IAAAD,QAAAF,GAGAG,EAAAE,GAAA,EAGAF,EAAAD,QAKAF,EAAAQ,EAAAF,EAGAN,EAAAS,EAAAV,EAGAC,EAAAU,EAAA,SAAAR,EAAAS,EAAAC,GACAZ,EAAAa,EAAAX,EAAAS,IACAG,OAAAC,eAAAb,EAAAS,GACAK,cAAA,EACAC,YAAA,EACAC,IAAAN,KAMAZ,EAAAmB,EAAA,SAAAhB,GACA,IAAAS,EAAAT,KAAAiB,WACA,WAA2B,OAAAjB,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAH,EAAAU,EAAAE,EAAA,IAAAA,GACAA,GAIAZ,EAAAa,EAAA,SAAAQ,EAAAC,GAAsD,OAAAR,OAAAS,UAAAC,eAAAjB,KAAAc,EAAAC,IAGtDtB,EAAAyB,EAAA,GAGAzB,IAAA0B,EAAA,mBC7DU,IAAIC,GAAGC,SAASC,WACtBC,KAAQ,WACRC,OACI,0DACA,6DAmBRC,EAAEC,UAAUC,GAAG,aAAc,WACzB,IA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AAM,EACNC,OAAO,MAGX,IAvBO,SAASC,GACN/C,EAAE+C,GACR7C,GAAG,QAAQ,oBAAqB,WAChC,IAAI8C,EAAYhD,EAAE,UAClBgD,EAAUC,KAAK,QAAQ,SACvBD,EAAUE,SAAS,UAAY7C,KAAK8C,aAAa,eAkBrD,CAAS","file":"olympiad.js","sourcesContent":[" \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 34848dc54187d1e3c1ae","var pre = new nc.promokit.Preloader({\r\n 'game': 'lineage2',\r\n 'video': [\r\n 'https://vod.plaync.com/lineage2/update/1105/Field_1.mp4',\r\n 'https://vod.plaync.com/lineage2/update/1105/Field_2.mp4',\r\n ],\r\n});\r\n\r\n/*\r\nif(document.cookie == ''){\r\n location.reload();\r\n console.log('reload');\r\n}\r\n*/\r\n// console.log(pre)\r\n\r\n/*\r\nif(pre.store.progress !== 0){\r\n location.reload();\r\n console.log('reload');\r\n}\r\n*/\r\n\r\n$(document).on('preloadend', function(){\r\n var olympiad = (function () {\r\n function Base() {\r\n this.players = {};\r\n this.init();\r\n }\r\n Base.prototype = {\r\n init:function () {\r\n this.setPlayer();\r\n this.hover();\r\n },\r\n setPlayer:function() {\r\n this.players.field = new nc.promokit.Player({\r\n selector: '#player-field',\r\n videoId:'https://vod.plaync.com/lineage2/update/1105/Field_1.mp4',\r\n mute: true,\r\n loop: true\r\n });\r\n this.players.buff = new nc.promokit.Player({\r\n selector: '#player-buff',\r\n videoId:'https://vod.plaync.com/lineage2/update/1105/Field_2.mp4',\r\n mute: true,\r\n loop: true\r\n });\r\n },\r\n hover:function () {\r\n var _this = this;\r\n var promise_field;\r\n var promise_buff;\r\n var $field = $('.player-list__item-field');\r\n var $buff = $('.player-list__item-buff');\r\n $field.on('mouseover',function () {\r\n promise_field = _this.players.field.play();\r\n });\r\n $buff.on('mouseover',function () {\r\n promise_buff = _this.players.buff.play();\r\n });\r\n $field.on('mouseleave',function () {\r\n if(promise_field !== undefined){\r\n promise_field.then(_ => {\r\n _this.players.field.pause();\r\n }).catch(error => {\r\n _this.players.field.play();\r\n });}\r\n else {\r\n _this.players.field.pause();\r\n }\r\n });\r\n $buff.on('mouseleave',function () {\r\n if(promise_buff !== undefined){\r\n promise_buff.then(_ => {\r\n _this.players.buff.pause();\r\n }).catch(error => {\r\n _this.players.buff.play();\r\n });}\r\n else {\r\n _this.players.buff.pause();\r\n }\r\n });\r\n }\r\n };\r\n return Base;\r\n })();\r\n window.olympiad = new olympiad();\r\n\r\n/*\r\n var cookies = document.cookie.split(\";\");\r\n if(cookies.length <= 1) {\r\n console.log('reload');\r\n window.location.reload(true);\r\n }\r\n else if(!cookies[2].includes(' _gat_UA-')) {\r\n window.location.reload(true);\r\n } else if(!cookies[2].includes(' _gat_UA-'))\r\n*/\r\n setTimeout(function () {\r\n if($('.loader')[0]){\r\n console.log('reload');\r\n window.location.reload(true);\r\n }\r\n }, 800);\r\n});\r\n\r\nvar Ptab = function(el) {\r\n var $el = $(el);\r\n $el.on('click','.p-tab-list__item', function () {\r\n var $tab_list = $('.p-tab');\r\n $tab_list.attr('class','p-tab');\r\n $tab_list.addClass('p-tab--' + this.getAttribute('data-tab'));\r\n });\r\n};\r\n\r\n$(document).ready(function () {\r\n $('body').TopBtn();\r\n $('.toggle-caution').Folding({open: true});\r\n\r\n new nc.promokit.remote({\r\n element:\"#remoteMenu\",\r\n margin:-100,\r\n top:920,\r\n fix:287,\r\n show:true,\r\n quick:true,\r\n cspeed:600\r\n });\r\n\r\n new Ptab(\"#how-apply\");\r\n});\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/js/olympiad.js"],"sourceRoot":""}