{"version":3,"file":"/scripts/tab-slider.js","mappings":"4IAIMA,EAAAA,WACF,cAAc,eACVC,KAAA,Y,wCAGJ,WACI,ICTAC,EDSMC,EAASC,SAAAA,iBAAf,iBACA,IACA,KCXAF,GAAJ,EAEAG,GDQI,ECRJA,OAAiBH,GAAjBG,EAA+BC,QAAAA,KAA/BD,oBACA,GDSQF,EAAAA,SAAe,SAAAI,GACf,IAAIC,EAAeD,EAAAA,cAAnB,wCACIE,EAAaF,EAAAA,cAAjB,2CACIG,EAAJ,GACmBN,SAAAA,iBAAnB,sDAEAO,SAAqB,YACjB,IAAIC,EAAYC,EAAAA,aAAhB,cACA,GACIH,EAAAA,KAAAA,MAGO,IAAI,EAAJ,KAAyB,CACpCI,YADoC,EAEpCC,OAFoC,OAGpCC,cAHoC,OAIpCC,aAJoC,GAKpCC,MALoC,EAMpCT,WAAY,CACZF,GADY,EAEJY,WAFI,EAGJC,aAAc,cACd,MAAO,8LACuFV,EADvF,mBAIfW,GAAI,CACAC,OAAQ,WACDC,EAAAA,QAAAA,QAAH,MACItB,KAAKuB,WAEbC,YAAa,WACTxB,KAAA,oB,EAzClBD,GAqDN,IAAIA,G,iBEzDJ0B,EAAOC,QAAUC,OAAe,S","sources":["webpack://sage/./resources/scripts/modules/tab-slider.js","webpack://sage/./resources/scripts/exist.js","webpack://sage/external window \"jQuery\""],"sourcesContent":["import { exist } from './../exist';\nimport Swiper, { Pagination } from 'swiper';\n\n\nclass nestedTabClass {\n constructor() {\n this.nestedTab();\n }\n\n nestedTab() {\n const select = document.querySelectorAll('.m-nested-tab');\n switch(exist(select)) {\n case true:\n select.forEach(el => {\n let twoColSlider = el.querySelector('.m-nested-tab-slider__swiper-content');\n let pagination = el.querySelector('.m-nested-tab-slider__swiper-pagination');\n var values = [];\n var swiperSlides = document.querySelectorAll(\".m-nested-tab-slider__swiper-content .swiper-slide\");\n \n swiperSlides.forEach(function(slide) {\n var dataValue = slide.getAttribute(\"data-value\");\n if (dataValue) {\n values.push(dataValue);\n }\n });\n const swiper = new Swiper(twoColSlider, {\n autoHeight: true,\n effect: \"fade\",\n slidesPerView: \"auto\",\n spaceBetween: 22,\n loop: true,\n pagination: {\n el: pagination,\n clickable: true,\n renderBullet: function (index, className) {\n return '
';\n },\n },\n on: {\n resize: function(){\n if($(window).width() > 1025)\n this.destroy();\n },\n slideChange: function(){\n this.update();\n },\n },\n })\n });\n break;\n }\n }\n\n}\n\nexport default nestedTabClass;\nnew nestedTabClass();\n","export const exist = (e) => {\n let val = false;\n \n e.length != 0 ? (val = true) : console.warn(`Module not found`);\n return val;\n };\n ","module.exports = window[\"jQuery\"];"],"names":["nestedTabClass","this","val","select","document","e","console","el","twoColSlider","pagination","values","swiperSlides","dataValue","slide","autoHeight","effect","slidesPerView","spaceBetween","loop","clickable","renderBullet","on","resize","$","destroy","slideChange","module","exports","window"],"sourceRoot":""}