{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"jQuery\"","webpack:///./src/scripts/popup.js","webpack:///./src/scripts/cookie.js","webpack:///./src/scripts/menu.js","webpack:///./src/scripts/bottom-menu.js","webpack:///./src/scripts/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","jQuery","popup","close","$","fadeOut","removeClass","bodyScrollLock","clearAllBodyScrollLocks","open","$obj","disableBodyScroll","find","allowTouchMove","el","document","body","getAttribute","parentNode","fadeToggle","toggleClass","toggle","obj","hasClass","this","click","data","length","evt","target","querySelector","handleOverlayClose","addEventListener","matches","cookie","match","RegExp","replace","decodeURIComponent","undefined","element","createElement","classList","add","container","wrapper","buttonYES","textContent","options","expires","currentDate","Date","setTime","getTime","toUTCString","updatedCookie","encodeURIComponent","propertyName","propertyValue","jsSetCookie","path","remove","text","appendChild","menu","$burger","$menu","$closeButton","$link","opened","addClass","handleClose","event","console","log","init","_this","e","window","width","preventDefault","keyup","bottomMenu","$button","selectric","arrowButtonMarkup"],"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,SA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WACC8E,EAAWP,UAGdvE,KAAE,WAEC4D,EAAKW,OAGLvE,IAAE,gBAAgBgF,UAAU,CACpBC,kBAAmB,KAI3BjF,IAAE,uBAAuBqB,OAAM,WAC3BrB,IAAE,sBAAsBgB,YAAY,2BACpChB,IAAE,sBAAsBgB,YAAY","file":"app.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 = 3);\n","module.exports = jQuery;","var popup = {\r\n close: function () {\r\n $('.popup').fadeOut().removeClass('js-isShowed');\r\n bodyScrollLock.clearAllBodyScrollLocks();\r\n },\r\n open: function ($obj) {\r\n bodyScrollLock.disableBodyScroll($obj.find('.popup__body'),{\r\n allowTouchMove: el => {\r\n while (el && el !== document.body) {\r\n if (el.getAttribute('data-body-scroll-lock-ignore') !== null) {\r\n return true\r\n }\r\n\r\n el = el.parentNode\r\n }\r\n }\r\n });\r\n $obj.fadeToggle().toggleClass('js-isShowed');\r\n },\r\n toggle: function (obj) {\r\n var $obj = $(obj);\r\n if($obj.hasClass('js-isShowed')){\r\n this.close();\r\n }else{\r\n this.open($obj);\r\n }\r\n }\r\n};\r\n$(function () {\r\n\r\n $('[data-modal]').click(function () {\r\n if ($('.' + $(this).data('modal')).length) {\r\n popup.close();\r\n popup.toggle('.' + $(this).data('modal'));\r\n }\r\n });\r\n $('.js-closePopup').click(function () {\r\n popup.close();\r\n });\r\n\r\n var handleOverlayClose = function (evt) {\r\n var target = evt.target;\r\n if ($('.js-isShowed').length > 0) {\r\n if (target !== document.querySelector('.popup__body') && target === document.querySelector('.js-isShowed').querySelector('.popup__overlay')) {\r\n popup.close();\r\n }\r\n }\r\n\r\n };\r\n $('.js-watchPopup').click(function (evt) {\r\n handleOverlayClose(evt);\r\n });\r\n});\r\n","(function () {\r\n var jsGetCookie = function (name) {\r\n var matches = document.cookie.match(new RegExp(\r\n \"(?:^|; )\" + name.replace(/([\\.$?*|{}\\(\\)\\[\\]\\\\\\/\\+^])/g, '\\\\$1') + \"=([^;]*)\"\r\n ));\r\n\r\n return matches ? decodeURIComponent(matches[1]) : undefined;\r\n }\r\n\r\n var jsSetCookie = function (name, value, options) {\r\n\r\n options = options || {};\r\n\r\n var expires = options.expires;\r\n if (typeof(expires) == \"number\" && expires)\r\n {\r\n var currentDate = new Date();\r\n currentDate.setTime(currentDate.getTime() + expires * 1000);\r\n expires = options.expires = currentDate;\r\n }\r\n\r\n if (expires && expires.toUTCString)\r\n {\r\n options.expires = expires.toUTCString();\r\n }\r\n\r\n value = encodeURIComponent(value);\r\n\r\n var updatedCookie = name + \"=\" + value;\r\n\r\n for (var propertyName in options)\r\n {\r\n if (!options.hasOwnProperty(propertyName))\r\n {\r\n continue;\r\n }\r\n updatedCookie += \"; \" + propertyName;\r\n var propertyValue = options[propertyName];\r\n if (propertyValue !== true)\r\n {\r\n updatedCookie += \"=\" + propertyValue;\r\n }\r\n }\r\n\r\n document.cookie = updatedCookie;\r\n\r\n return true;\r\n }\r\n document.addEventListener('DOMContentLoaded', function () {\r\n var getCookie = jsGetCookie('checkcookie');\r\n\r\n if (!getCookie) {\r\n var element = document.createElement('div');\r\n element.classList.add('checkcookie');\r\n\r\n var container = document.createElement('div');\r\n container.classList.add('container');\r\n\r\n var wrapper = document.createElement('div');\r\n wrapper.classList.add('checkcookie__wrapper');\r\n\r\n var buttonYES = document.createElement('button');\r\n buttonYES.classList.add('checkcookie-button');\r\n\r\n buttonYES.textContent = 'OK';\r\n buttonYES.addEventListener('click', function () {\r\n jsSetCookie('checkcookie', '1', {expires: 97200, path: '/'});\r\n document.querySelector('.checkcookie').remove();\r\n });\r\n\r\n var text = document.createElement('div');\r\n text.classList.add('checkcookie-text');\r\n text.textContent = 'Мы используем файлы cookie для оптимизации работы сайта и получения статистики. Мы также используем сторонние файлы cookie от наших партнеров \\n' +\r\n 'в маркетинговых и аналитических целях. Продолжая навигацию по сайту, вы соглашаетесь на использование файлов cookie. Чтобы узнать подробнее о файлах cookie и способах управления ими, пожалуйста, ознакомьтесь с нашей Политикой конфиденциальности.';\r\n\r\n wrapper.appendChild(text);\r\n wrapper.appendChild(buttonYES);\r\n container.appendChild(wrapper);\r\n element.appendChild(container);\r\n document.body.appendChild(element);\r\n }\r\n })\r\n})();\r\n","const menu = {\r\n $burger: $('.header-burger'),\r\n $menu: $('.header-mobile'),\r\n $closeButton: $('.header-mobile__close-button'),\r\n $link: $('.header-mobile__link_blank'),\r\n opened: false,\r\n open: function () {\r\n if (!this.opened) {\r\n this.$burger.addClass('header-burger_open');\r\n this.$menu.addClass('header-mobile_open');\r\n this.opened = true\r\n }\r\n },\r\n close: function () {\r\n if (this.opened) {\r\n this.$burger.removeClass('header-burger_open');\r\n this.$menu.removeClass('header-mobile_open');\r\n this.opened = false\r\n }\r\n },\r\n toggle: function () {\r\n if (this.opened) {\r\n this.close();\r\n } else {\r\n this.open();\r\n }\r\n },\r\n handleClose: function (event) {\r\n let target = event.target;\r\n console.log(event);\r\n if (target === document.querySelector('.header-mobile') && this.opened) {\r\n this.close();\r\n }\r\n },\r\n init: function () {\r\n let _this = this;\r\n // this.initTimeline()\r\n this.$burger.click(function () {\r\n _this.toggle();\r\n });\r\n this.$closeButton.click(function () {\r\n _this.close();\r\n });\r\n this.$link.click(function () {\r\n _this.close();\r\n });\r\n this.$menu.click(function (event) {\r\n _this.handleClose(event);\r\n });\r\n\r\n $('.header-mobile__list li').click(function (e) {\r\n if($(window).width() <= 1024){\r\n var submenu = $(this).find('ul');\r\n if(submenu.length > 0){\r\n if(!$(this).hasClass('is-open')){\r\n $(this).addClass('is-open');\r\n e.preventDefault();\r\n return false;\r\n }\r\n }\r\n }\r\n\r\n });\r\n\r\n $(document).keyup(function (e) {\r\n if (e.key === \"Escape\") {\r\n _this.close();\r\n }\r\n })\r\n }\r\n};\r\n\r\nexport default menu;\r\n","const bottomMenu = {\r\n $button: $('.service-button-toggle'),\r\n $menu: $('.service-menu'),\r\n opened: false,\r\n open: function () {\r\n if (!this.opened) {\r\n this.$button.addClass('service-button_open');\r\n this.$menu.addClass('service-menu_open');\r\n this.opened = true\r\n }\r\n },\r\n close: function () {\r\n if (this.opened) {\r\n this.$button.removeClass('service-button_open');\r\n this.$menu.removeClass('service-menu_open');\r\n this.opened = false\r\n }\r\n },\r\n toggle: function () {\r\n if (this.opened) {\r\n this.close();\r\n } else {\r\n this.open();\r\n }\r\n },\r\n\r\n handleClose: function (event) {\r\n let target = event.target;\r\n console.log(event);\r\n if (target === document.querySelector('.service-menu') && this.opened) {\r\n this.close();\r\n }\r\n },\r\n\r\n init: function () {\r\n let _this = this;\r\n // this.initTimeline()\r\n this.$button.click(function () {\r\n _this.toggle();\r\n });\r\n this.$menu.click(function (event) {\r\n _this.handleClose(event);\r\n });\r\n\r\n $(document).keyup(function (e) {\r\n if (e.key === \"Escape\") {\r\n _this.close();\r\n }\r\n })\r\n }\r\n};\r\nexport default bottomMenu;\r\n","import $ from 'jquery';\r\n\r\nimport './popup'\r\nimport './cookie'\r\n\r\nimport menu from './menu';\r\nimport bottomMenu from './bottom-menu';\r\n\r\n($(function () {\r\n bottomMenu.init();\r\n}));\r\n\r\n($(function () {\r\n\r\n menu.init();\r\n\r\n\r\n $('.select-unit').selectric({\r\n arrowButtonMarkup: '',\r\n }\r\n );\r\n\r\n $('.service-background').click(function () {\r\n $('.button-background').toggleClass('button-background_black');\r\n $('.select-background').toggleClass('select-background_black');\r\n });\r\n}));\r\n"],"sourceRoot":""}