{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/js/app.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","window","application","constructor","options","this","stepsCount","_currentStep","_currentStepPrevValue","parentNode","undefined","selector","rootElementSelector","progressBarSelector","currentStepContainerSelector","stepSelector","prevButtonSelector","nextButtonSelector","delay","fastSwitching","_init","_initTimer","document","querySelector","style","setProperty","console","error","currentStepContainer","progressBarNode","descriptionNode","imagesNode","progressBarDasheNodes","querySelectorAll","descriptionNodes","imageContainerNodes","length","_initEvents","update","addEventListener","event","srcElement","itemIndex","indexOf","children","currentStep","prevButton","prevStep","nextButton","nextStep","timer","clearTimeout","setTimeout","async","forEach","step","classList","remove","slice","add","_isFastSwitching","_updateDashesFast","_updateDashes","progressBarDasheNode","toggle","ym"],"mappings":"aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QAKfF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAA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xC,KAAKC,WAAa,EACzCD,KAAKwC,YAAc,EAEnBxC,KAAKwC,oBAGDxC,KAAKiC,SAGb,iBAC2B,IAArBjC,KAAKwC,YACPxC,KAAKwC,YAAcxC,KAAKC,WAAa,EAErCD,KAAKwC,oBAGDxC,KAAKiC,WAMa,CAC1B1B,oBAAsB,uCACtBC,oBAAsB,0BAGHS,SAASC,cAAe,2BAChCgB,iBAAiB,QAAUC,GACtClB,SACGC,cAAe,yBACfiC,UAAUQ,OAAQ,iCAGD1C,SAASC,cAAe,mCAChCgB,iBAAiB,QAAUC,GACvClB,SACGC,cAAe,iCACfiC,UAAUQ,OAAQ,yCAGF1C,SAASC,cAAe,2BAChCgB,iBAAiB,QAAUC,GACtClB,SACGC,cAAe,yBACfiC,UAAUQ,OAAQ,iCAGgB1C,SAASC,cAAe,wCAChCgB,iBAAiB,QAAUC,GACxDyB,GAAG,SAAS,YAAY,+CAGoB3C,SAASC,cAAe,gDAChCgB,iBAAiB,QAAUC,GAC/DyB,GAAG,SAAS,YAAY,uDAGY3C,SAASC,cAAe,wCAChCgB,iBAAiB,QAAUC,GACvDyB,GAAG,SAAS,YAAY,gD","file":"app.bundle.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, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\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\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n","if (module.hot) {\n module.hot.accept();\n}\n\nclass AdSlider {\n constructor(options = {}) {\n this.stepsCount = 0;\n this._currentStep = 0;\n this._currentStepPrevValue = 0;\n this.parentNode = undefined;\n this.selector = options.rootElementSelector;\n\n this.progressBarSelector =\n (options && options.progressBarSelector) || undefined;\n\n this.currentStepContainerSelector =\n (options && options.currentStepContainerSelector) || undefined;\n\n this.stepSelector = (options && options.stepSelector) || undefined;\n this.prevButtonSelector =\n (options && options.prevButtonSelector) || undefined;\n this.nextButtonSelector =\n (options && options.nextButtonSelector) || undefined;\n\n this.delay = 4000;\n this.fastSwitching = false;\n\n this._init();\n }\n\n get currentStepPrevValue() {\n return this._currentStepPrevValue;\n }\n\n get currentStep() {\n return this._currentStep;\n }\n\n set currentStep(value) {\n this._currentStepPrevValue = this._currentStep;\n this._currentStep = value;\n this._initTimer();\n }\n\n _init() {\n this.parentNode = document.querySelector(this.selector);\n\n if (this.parentNode) {\n this.parentNode.style.setProperty(\"--delay\", `${this.delay / 1000}s`);\n\n if (this.parentNode === undefined) {\n console.error(\"error\");\n return;\n }\n\n if (this.currentStepContainerSelector !== undefined) {\n this.currentStepContainer = this.parentNode.querySelector(\n this.currentStepContainerSelector\n );\n }\n\n this.progressBarNode = this.parentNode.querySelector(\n this.progressBarSelector\n );\n this.descriptionNode = this.parentNode.querySelector(\n \".stories__descriptions\"\n );\n this.imagesNode = this.parentNode.querySelector(\".stories__images\");\n\n this.progressBarDasheNodes = this.progressBarNode.querySelectorAll(\n \".stories-progress-bar__dash\"\n );\n this.descriptionNodes = this.descriptionNode.querySelectorAll(\n \".stories__description\"\n );\n this.imageContainerNodes = this.imagesNode.querySelectorAll(\n \".stories__image-container\"\n );\n\n this.stepsCount = this.progressBarDasheNodes.length;\n\n this._initTimer();\n this._initEvents();\n this.update();\n }\n }\n\n _initEvents() {\n this.progressBarNode.addEventListener(`click`, (event) => {\n if (this.progressBarNode === event.srcElement) {\n return;\n }\n\n let itemIndex = [].indexOf.call(\n this.progressBarNode.children,\n event.srcElement\n );\n this.currentStep = itemIndex;\n this.update();\n });\n\n if (this.prevButtonSelector !== undefined) {\n const prevButton = this.parentNode.querySelector(this.prevButtonSelector);\n\n if (prevButton) {\n prevButton.addEventListener(`click`, () => {\n this.prevStep();\n this.update();\n });\n }\n }\n\n if (this.nextButtonSelector !== undefined) {\n const nextButton = this.parentNode.querySelector(this.nextButtonSelector);\n\n if (nextButton) {\n nextButton.addEventListener(`click`, () => {\n this.nextStep();\n this.update();\n });\n }\n }\n }\n\n _initTimer() {\n if (this.timer) {\n clearTimeout(this.timer);\n }\n\n this.timer = setTimeout(async () => {\n await this.nextStep();\n this._initTimer();\n }, this.delay);\n }\n\n async update() {\n if (this.currentStepContainer !== undefined) {\n [].forEach.call(this.currentStepContainer.children, (step) =>\n step.classList.remove(`${this.stepSelector.slice(1)}--active`)\n );\n\n this.currentStepContainer.children[this.currentStep].classList.add(\n `${this.stepSelector.slice(1)}--active`\n );\n }\n\n this.descriptionNodes.forEach((descriptionNode) =>\n descriptionNode.classList.remove(\"stories__description--active\")\n );\n this.imageContainerNodes.forEach((descriptionNode) =>\n descriptionNode.classList.remove(\"stories__image-container--active\")\n );\n\n this.descriptionNodes[this.currentStep].classList.add(\n \"stories__description--active\"\n );\n this.imageContainerNodes[this.currentStep].classList.add(\n \"stories__image-container--active\"\n );\n\n if (this._isFastSwitching()) {\n await this._updateDashesFast();\n } else {\n await this._updateDashes();\n }\n\n this.fastSwitching = false;\n }\n\n _isFastSwitching() {\n if (this.fastSwitching) {\n return true;\n }\n\n if (this.currentStep === 0) {\n return true;\n }\n\n return false;\n }\n\n async _updateDashesFast() {\n this.parentNode.style.setProperty(\"--delay\", `0s`);\n this.progressBarDasheNodes.forEach((progressBarDasheNode) =>\n progressBarDasheNode.classList.remove(\n \"stories-progress-bar__dash--active\"\n )\n );\n this.progressBarDasheNodes[this.currentStep].classList.add(\n \"stories-progress-bar__dash--active\"\n );\n }\n\n _updateDashes() {\n this.progressBarDasheNodes.forEach((progressBarDasheNode) =>\n progressBarDasheNode.classList.remove(\n \"stories-progress-bar__dash--active\"\n )\n );\n this.progressBarDasheNodes[this.currentStep].classList.add(\n \"stories-progress-bar__dash--active\"\n );\n }\n\n async nextStep() {\n if (this.currentStep === this.stepsCount - 1) {\n this.currentStep = 0;\n } else {\n this.currentStep++;\n }\n\n await this.update();\n }\n\n async prevStep() {\n if (this.currentStep === 0) {\n this.currentStep = this.stepsCount - 1;\n } else {\n this.currentStep--;\n }\n\n await this.update();\n }\n}\n\nwindow.application = {};\n\nconst slider = new AdSlider({\n rootElementSelector: `.features-information-found__stories`,\n progressBarSelector: `.stories-progress-bar`,\n});\n\nconst qrCodeButton = document.querySelector(`.introducing__qr-button`);\nqrCodeButton.addEventListener('click', (event) =>\n document\n .querySelector(`.introducing__qr-code`)\n .classList.toggle(`introducing__qr-code--active`)\n);\n\nconst qrCodeCapture = document.querySelector(`.capture-information__qr-button`);\nqrCodeCapture.addEventListener(\"click\", (event) =>\n document\n .querySelector(`.capture-information__qr-code`)\n .classList.toggle(`capture-information__qr-code--active`)\n);\n\nconst qrCodeFooter = document.querySelector(`.page-footer__qr-button`);\nqrCodeFooter.addEventListener(\"click\", (event) =>\n document\n .querySelector(`.page-footer__qr-code`)\n .classList.toggle(`page-footer__qr-code--active`)\n);\n\nconst introducingDownloadButtonApple = document.querySelector(`.introducing__download-button--apple`);\nintroducingDownloadButtonApple.addEventListener('click', (event) =>\n ym(84789136,'reachGoal','introducing__download-button--apple__click')\n);\n\nconst captureInformationDownloadButtonApple = document.querySelector(`.capture-information__download-button--apple`);\ncaptureInformationDownloadButtonApple.addEventListener('click', (event) =>\n ym(84789136,'reachGoal','capture-information__download-button--apple__click')\n);\n\nconst pageFooterDownloadButtonApple = document.querySelector(`.page-footer__download-button--apple`);\npageFooterDownloadButtonApple.addEventListener('click', (event) =>\n ym(84789136,'reachGoal','page-footer__download-button--apple__click')\n);\n\n\n"],"sourceRoot":""}