{"version":3,"file":"featured-banner-slider-DGhiRVlc.js","sources":["../../src/project/AramcoLife/featured/featured-banner-slider.ts"],"sourcesContent":["import Swiper from \"swiper\";\r\nimport \"./featured-banner-slider.scss\";\r\nimport { type Module } from \"~/foundation/Bootstrapper/types\";\r\nimport { Autoplay, EffectCreative, Navigation, Pagination } from \"swiper/modules\";\r\n\r\nexport const FeaturedBannerSlider: Module = (container) => {\r\n\tconst swiperContainer = container.querySelector(\".swiper-container\");\r\n\tconst pagination = container.querySelector(\".swiper-pagination\");\r\n\tconst nextButton = container.querySelector(\".swiper-button-next\");\r\n\r\n\tif (!swiperContainer) return;\r\n\r\n\tnew Swiper(swiperContainer, {\r\n\t\tmodules: [Navigation, Pagination, EffectCreative, Autoplay],\r\n\t\tdirection: \"vertical\",\r\n\t\teffect: \"creative\",\r\n\t\tloop: true,\r\n\t\tnoSwiping: true,\r\n\t\tnoSwipingClass: \"swiper-slide\",\r\n\t\tspeed: 1000,\r\n\t\tautoplay: {\r\n\t\t\tdelay: 4000,\r\n\t\t},\r\n\t\tcreativeEffect: {\r\n\t\t\tprev: {\r\n\t\t\t\ttranslate: [0, \"0%\", -1],\r\n\t\t\t},\r\n\t\t\tnext: {\r\n\t\t\t\ttranslate: [0, \"-100%\", 0],\r\n\t\t\t},\r\n\t\t},\r\n\t\tpagination: {\r\n\t\t\tel: pagination,\r\n\t\t\tclickable: true,\r\n\t\t},\r\n\t\tnavigation: {\r\n\t\t\tnextEl: nextButton,\r\n\t\t},\r\n\t\ton: {\r\n\t\t\tinit: (swiper) => {\r\n\t\t\t\tswiper.el.classList.remove(\"init\");\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\r\n\tpagination?.classList.remove(\"swiper-pagination-vertical\");\r\n\tpagination?.classList.add(\"swiper-pagination-horizontal\");\r\n};\r\n\r\nexport default FeaturedBannerSlider;"],"names":["FeaturedBannerSlider","container","swiperContainer","pagination","nextButton","Swiper","Navigation","Pagination","EffectCreative","Autoplay","swiper"],"mappings":"mEAKa,MAAAA,EAAgCC,GAAc,CACpD,MAAAC,EAAkBD,EAAU,cAA2B,mBAAmB,EAC1EE,EAAaF,EAAU,cAA2B,oBAAoB,EACtEG,EAAaH,EAAU,cAA2B,qBAAqB,EAExEC,IAEL,IAAIG,EAAOH,EAAiB,CAC3B,QAAS,CAACI,EAAYC,EAAYC,EAAgBC,CAAQ,EAC1D,UAAW,WACX,OAAQ,WACR,KAAM,GACN,UAAW,GACX,eAAgB,eAChB,MAAO,IACP,SAAU,CACT,MAAO,GACR,EACA,eAAgB,CACf,KAAM,CACL,UAAW,CAAC,EAAG,KAAM,EAAE,CACxB,EACA,KAAM,CACL,UAAW,CAAC,EAAG,QAAS,CAAC,CAC1B,CACD,EACA,WAAY,CACX,GAAIN,EACJ,UAAW,EACZ,EACA,WAAY,CACX,OAAQC,CACT,EACA,GAAI,CACH,KAAOM,GAAW,CACVA,EAAA,GAAG,UAAU,OAAO,MAAM,CAClC,CACD,CAAA,CACA,EAEWP,GAAA,MAAAA,EAAA,UAAU,OAAO,8BACjBA,GAAA,MAAAA,EAAA,UAAU,IAAI,gCAC3B"}