{"version":3,"file":"wwwroot_App_src_js_widgets_HomepageCarouselBanner_js.4efa0c82b1889a07bd81.chunk.js","mappings":";;;;;;;;;AAAmC;AACR;AAC2B;AACtD;AACA,4EAAmB;AACnB,qBAAqB,cAAc;AACnC;AACA;AACA;AACA;AACA,cAAc;AACd;AACA,qBAAqB,8DAAM;AAC3B;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,oCAAoC,cAAc;AAClD;AACA;AACA;AACA;AACA,YAAY;AACZ,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL,CAAC","sources":["webpack://smrtcore/./wwwroot/App/src/js/widgets/HomepageCarouselBanner.js"],"sourcesContent":["import Swiper from 'swiper/bundle';\r\nimport 'swiper/css/bundle';\r\nimport { onReadyWidgetOfType } from '../utils/helper';\r\n\r\nonReadyWidgetOfType(\"HomepageCarouselBanner\", (widget, data) => {\r\n // console.log({ widget, data })\r\n const swiperElement = widget.querySelector(\".homepage-carousel-banner-swipper\")\r\n const pagination = widget.querySelector(\".swiper-pagination\")\r\n\r\n /**\r\n * @type {import('swiper').Swiper}\r\n */\r\n var swiper = new Swiper(swiperElement, {\r\n slidesPerView: 1,\r\n // spaceBetween: 28,\r\n pagination: {\r\n el: pagination,\r\n clickable: true,\r\n },\r\n loop: data.loop,\r\n autoplay: data.autoplay ? { delay: 5000 } : false,\r\n resizeEvent: 'auto'\r\n // navigation: {\r\n // nextEl: nextEl,\r\n // prevEl: prevEl,\r\n // },\r\n })\r\n\r\n swiper.on(\"slideChange\", () => {\r\n console.log(\"HomepageCarouselBanner Slide Change\")\r\n })\r\n})\r\n"],"names":[],"sourceRoot":""}