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SAASQ,cAAc,IAAIT,EAAW,GAAGa,MAAMH,UAAUC,IAAI,eACjE,IAIJR,EAAYW,SAASC,IACjBA,EAAKX,iBAAiB,SAAUY,IAC5B,IAAIV,EAAOU,EAAEC,OAAOJ,GAEhBN,OAAOW,WAAW,uBAAuBC,UACzCb,EAAOA,EAAKM,MAAM,GAAI,IAG1BQ,QAAQC,UAAU,KAAM,KAAM,IAAMf,GAEpCN,EAAWc,SAASC,IAChBA,EAAKL,UAAUY,OAAO,cAAc,IAGxCnB,EAAYW,SAASC,IACjBA,EAAKL,UAAUY,OAAO,SAAS,IAGnCrB,SAASQ,cAAc,IAAMH,GAAMI,UAAUC,IAAI,UACjDV,SAASQ,cAAc,IAAMH,EAAO,KAAKI,UAAUC,IAAI,UACvDV,SAASQ,cAAc,WAAaH,EAAKM,MAAM,IAAIF,UAAUC,IAAI,cAAc,GACjF,G","sources":["webpack:///./js/nav-swiper.js","webpack:///webpack/bootstrap","webpack:///webpack/runtime/compat get default export","webpack:///webpack/runtime/define property getters","webpack:///webpack/runtime/hasOwnProperty shorthand","webpack:///./js/index.js"],"sourcesContent":["const swiper = new Swiper(\".navSwiper\", {\r\n slidesPerView: 'auto',\r\n spaceBetween: 0,\r\n navigation: {\r\n nextEl: \".main__block-nav__tabs-wrapper__arrow-right\",\r\n prevEl: \".main__block-nav__tabs-wrapper__arrow-left\",\r\n },\r\n});","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","import '../style/style.scss';\r\nimport './nav-swiper';\r\n\r\nconst allContent = document.querySelectorAll('.capital__markets-content');\r\nconst allTabLinks = document.querySelectorAll('.main__block-nav__tabs-wrapper__tab');\r\n\r\nconst setTab = () => {\r\n const hash = window.location.hash;\r\n\r\n if (hash) {\r\n document.querySelector(hash).classList.add('active');\r\n document.querySelector(hash + 'm').classList.add('active');\r\n document.querySelector(`#content${hash.slice(5)}`).classList.add('active-tabs');\r\n } else {\r\n document.querySelector(`#${allTabLinks[0].id}`).classList.add('active');\r\n document.querySelector(`#${allTabLinks[0].id}m`).classList.add('active');\r\n document.querySelector(`#${allContent[0].id}`).classList.add('active-tabs');\r\n }\r\n}\r\ndocument.addEventListener('DOMContentLoaded', setTab)\r\n\r\nallTabLinks.forEach((item) => {\r\n item.addEventListener('click', (e) => {\r\n let hash = e.target.id\r\n\r\n if (window.matchMedia(\"(max-width: 1023px)\").matches) {\r\n hash = hash.slice(0, -1)\r\n }\r\n\r\n history.pushState(null, null, '#' + hash);\r\n\r\n allContent.forEach((item) => {\r\n item.classList.remove('active-tabs');\r\n });\r\n\r\n allTabLinks.forEach((item) => {\r\n item.classList.remove('active');\r\n });\r\n\r\n document.querySelector('#' + hash).classList.add('active');\r\n document.querySelector('#' + hash + 'm').classList.add('active');\r\n document.querySelector('#content' + hash.slice(4)).classList.add('active-tabs');\r\n })\r\n})\r\n"],"names":["Swiper","slidesPerView","spaceBetween","navigation","nextEl","prevEl","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","allContent","document","querySelectorAll","allTabLinks","addEventListener","setTab","hash","window","location","querySelector","classList","add","slice","id","forEach","item","e","target","matchMedia","matches","history","pushState","remove"],"sourceRoot":""}