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zCd,EAAYS,EAAII,WAAWC,cAAc,uBACzChB,EAAYW,EAAII,WAAWC,cAAc,qBAEzCC,EAAU,CACVC,aAAc,EACdC,gBAAgB,EAChBC,cAAe,IACfC,eAAgB,oBAChBC,UAAU,EACVC,gBAAgB,EAChBC,uBAAuB,EACvBC,qBAAqB,EACrBC,YAAa,CACT,IAAK,CACDN,cAAe,GAEnB,IAAK,CACDA,cAAe,MAGvBO,WAAY,CACRC,OAAQ3B,EACR4B,OAAQ3B,GAEZF,UAAW,CACP8B,GAAI,oBACJC,WAAW,EACXC,eAAe,GAEnBC,GAAI,CACAC,KAAM,WACFC,YAAW,KACPpC,EAAWC,EAAWC,EAAWC,EAAU,GAC5C,EACP,EACAkC,OAAQ,WACJrC,EAAWC,EAAWC,EAAWC,EACrC,IAIK,IAAIG,EAAAA,QAAOM,EAAKM,EACjC,CAEAoB,MAAAA,GACIC,KAAKC,OAAOF,QAChB,CAEAG,OAAAA,GACIF,KAAKC,OAAOC,SAChB,E","sources":["webpack://frontendplaceholder/./Src/Scripts/components/image-grid-swiper.js"],"sourcesContent":["import Swiper, { Navigation, Scrollbar } from 'swiper/core';\nSwiper.use([Navigation, Scrollbar]);\n\nfunction checkArrow(scrollbar, nextArrow, prevArrow) {\n if (scrollbar.style.display === 'none') {\n prevArrow.style.display = 'none';\n nextArrow.style.display = 'none';\n } else {\n prevArrow.style.display = 'block';\n nextArrow.style.display = 'block';\n }\n}\n\nexport default class ImageGridSlider {\n constructor(elm, args) {\n if (elm.querySelectorAll('.swiper-slide').length === 0) return;\n\n let nextArrow = elm.parentNode.querySelector('.swiper-button-next');\n let prevArrow = elm.parentNode.querySelector('.swiper-button-prev');\n let scrollbar = elm.parentNode.querySelector('.swiper-scrollbar');\n\n let options = {\n spaceBetween: 5,\n allowTouchMove: true,\n slidesPerView: 1.2,\n slideNextClass: 'swiper-slide-next',\n observer: true,\n observeParents: true,\n watchSlidesVisibility: true,\n watchSlidesProgress: true,\n breakpoints: {\n 992: {\n slidesPerView: 3,\n },\n 600: {\n slidesPerView: 2.2,\n },\n },\n navigation: {\n nextEl: nextArrow,\n prevEl: prevArrow,\n },\n scrollbar: {\n el: '.swiper-scrollbar',\n draggable: true,\n snapOnRelease: true,\n },\n on: {\n init: function () {\n setTimeout(() => {\n checkArrow(scrollbar, nextArrow, prevArrow);\n }, 1);\n },\n resize: function () {\n checkArrow(scrollbar, nextArrow, prevArrow);\n },\n },\n };\n\n let swiper = new Swiper(elm, options);\n }\n\n update() {\n this.swiper.update();\n }\n\n destroy() {\n this.swiper.destroy();\n }\n}\n"],"names":["_core","e","r","__esModule","default","t","_getRequireWildcardCache","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_interopRequireWildcard","require","WeakMap","checkArrow","scrollbar","nextArrow","prevArrow","style","display","Swiper","use","Navigation","Scrollbar","exports","constructor","elm","args","querySelectorAll","length","parentNode","querySelector","options","spaceBetween","allowTouchMove","slidesPerView","slideNextClass","observer","observeParents","watchSlidesVisibility","watchSlidesProgress","breakpoints","navigation","nextEl","prevEl","el","draggable","snapOnRelease","on","init","setTimeout","resize","update","this","swiper","destroy"],"sourceRoot":""}