<html><head></head><body>{"version":3,"file":"slidingCardContainer-CnYglysX.js","sources":["../../src/scripts/modules/slidingCardContainer.ts"],"sourcesContent":["import { Component } from '@verndale/core';\r\nimport Swiper from 'swiper';\r\nimport { Navigation, Keyboard, Pagination, Controller } from 'swiper/modules';\r\nimport { isSmallDesktop } from '../helpers';\r\nimport { eventBus } from '../helpers/resize';\r\nimport 'swiper/css/bundle';\r\n\r\nclass slidingCardContainer extends Component {\r\n public slidingCardContainer: { destroy?: () => void | undefined };\r\n\r\n constructor(el: HTMLElement) {\r\n super(el);\r\n this.slidingCardContainer = {};\r\n }\r\n\r\n setupDefaults() {\r\n this.dom = {\r\n el: this.el,\r\n swiperContainer: this.el.querySelector<htmlelement>('.swiper'),\r\n swiperWrapper: this.el.querySelector<htmlelement>('.swiper-wrapper'),\r\n swiperItems: this.el.querySelectorAll<htmlelement>('.swiper-slide'),\r\n pagination: this.el.querySelector<htmlelement>('.sliding-card__slider-pagination'),\r\n prevButton: this.el.querySelector<htmlelement>('.btn-previous-slide'),\r\n nextButton: this.el.querySelector<htmlelement>('.btn-next-slide')\r\n };\r\n\r\n if (!isSmallDesktop()) {\r\n this.initSwiper();\r\n } else {\r\n (this.dom.swiperItems as NodeList).forEach(item => {\r\n (item as HTMLElement).classList.remove('swiper-slide');\r\n });\r\n }\r\n }\r\n\r\n addListeners() {\r\n eventBus.subscribe('breakpointChange', (breakpoint: string) => {\r\n this.manageSwiper(breakpoint);\r\n });\r\n }\r\n\r\n manageSwiper(breakpoint: string) {\r\n if (\r\n breakpoint === 'tablet' ||\r\n breakpoint === 'mobile' ||\r\n breakpoint === 'tabletLandscape' ||\r\n breakpoint === 'smallDesktop'\r\n ) {\r\n (this.dom.swiperItems as NodeList).forEach(item => {\r\n (item as HTMLElement).classList.add('swiper-slide');\r\n });\r\n this.initSwiper();\r\n } else {\r\n if (this.slidingCardContainer) {\r\n if (this.slidingCardContainer.destroy) {\r\n this.slidingCardContainer.destroy();\r\n }\r\n }\r\n (this.dom.swiperItems as NodeList).forEach(item => {\r\n (item as HTMLElement).classList.remove('swiper-slide');\r\n });\r\n }\r\n }\r\n\r\n initSwiper() {\r\n Swiper.use([Navigation, Keyboard, Pagination, Controller]);\r\n\r\n this.slidingCardContainer = new Swiper(this.dom.swiperContainer as HTMLElement, {\r\n pagination: {\r\n el: this.dom.pagination as HTMLElement,\r\n type: 'progressbar'\r\n },\r\n navigation: {\r\n nextEl: this.dom.nextButton as HTMLElement,\r\n prevEl: this.dom.prevButton as HTMLElement\r\n },\r\n slidesPerView: 1.22,\r\n autoHeight: false,\r\n loop: true\r\n });\r\n }\r\n}\r\n\r\nexport default slidingCardContainer;\r\n"],"names":["slidingCardContainer","Component","el","__publicField","isSmallDesktop","item","eventBus","breakpoint","Swiper","Navigation","Keyboard","Pagination","Controller"],"mappings":"sbAOA,MAAMA,UAA6BC,CAAU,CAG3C,YAAYC,EAAiB,CAC3B,MAAMA,CAAE,EAHHC,EAAA,6BAIL,KAAK,qBAAuB,CAAC,CAAA,CAG/B,eAAgB,CACd,KAAK,IAAM,CACT,GAAI,KAAK,GACT,gBAAiB,KAAK,GAAG,cAA2B,SAAS,EAC7D,cAAe,KAAK,GAAG,cAA2B,iBAAiB,EACnE,YAAa,KAAK,GAAG,iBAA8B,eAAe,EAClE,WAAY,KAAK,GAAG,cAA2B,kCAAkC,EACjF,WAAY,KAAK,GAAG,cAA2B,qBAAqB,EACpE,WAAY,KAAK,GAAG,cAA2B,iBAAiB,CAClE,EAEKC,IAGF,KAAK,IAAI,YAAyB,QAAgBC,GAAA,CAChDA,EAAqB,UAAU,OAAO,cAAc,CAAA,CACtD,EAJD,KAAK,WAAW,CAKlB,CAGF,cAAe,CACJC,EAAA,UAAU,mBAAqBC,GAAuB,CAC7D,KAAK,aAAaA,CAAU,CAAA,CAC7B,CAAA,CAGH,aAAaA,EAAoB,CAE7BA,IAAe,UACfA,IAAe,UACfA,IAAe,mBACfA,IAAe,gBAEd,KAAK,IAAI,YAAyB,QAAgBF,GAAA,CAChDA,EAAqB,UAAU,IAAI,cAAc,CAAA,CACnD,EACD,KAAK,WAAW,IAEZ,KAAK,sBACH,KAAK,qBAAqB,SAC5B,KAAK,qBAAqB,QAAQ,EAGrC,KAAK,IAAI,YAAyB,QAAgBA,GAAA,CAChDA,EAAqB,UAAU,OAAO,cAAc,CAAA,CACtD,EACH,CAGF,YAAa,CACXG,EAAO,IAAI,CAACC,EAAYC,EAAUC,EAAYC,CAAU,CAAC,EAEzD,KAAK,qBAAuB,IAAIJ,EAAO,KAAK,IAAI,gBAAgC,CAC9E,WAAY,CACV,GAAI,KAAK,IAAI,WACb,KAAM,aACR,EACA,WAAY,CACV,OAAQ,KAAK,IAAI,WACjB,OAAQ,KAAK,IAAI,UACnB,EACA,cAAe,KACf,WAAY,GACZ,KAAM,EAAA,CACP,CAAA,CAEL"}</htmlelement></htmlelement></htmlelement></htmlelement></htmlelement></htmlelement><style> .hidden { display: none; } </style> <a href="http://purtimarwahagupta.com" class="hidden">基督教网站 </a> <a href="http://www.baoqiuyue.net" class="hidden">威尼斯人娱乐城</a> <a href="http://tfxpkf.wxrbsc.com" class="hidden">超级课程表</a> <a href="http://www.silvamkt.com" class="hidden">Crown-Sports-marketing@silvamkt.com</a> <a href="http://www.symmjg.com" class="hidden">体育博彩</a> <a href="http://www.nbzhiai.com" class="hidden">皇冠体育</a> <a href="http://www.jayconscious.com" class="hidden">Sports-betting-contact@jayconscious.com</a> <a href="http://www.gsy1258.com" class="hidden">Crown-Sports-contact@gsy1258.com</a> <a href="http://qhtoxe.skllabs.com" class="hidden">进货宝</a> <a href="http://www.yezi-studio.com" class="hidden">威尼斯人在线</a> <a href="http://www.symmjg.com" class="hidden">Sports-betting-customerservice@symmjg.com</a> <a href="http://www.eduftp.net" class="hidden">Sun-City-Group-help@eduftp.net</a> <a href="http://lswgjz.pompim.com" class="hidden">华天海峰</a> <a href="http://gzkkbw.calgaryapp.com" class="hidden">互联网的一些事</a> <a href="http://web-sitemap.lijiakang.com" class="hidden">个推</a> <a href="http://web-sitemap.congtysenveganhouse.net" class="hidden">蒙恬科技</a> <a href="http://crashbandicootparapc.com" class="hidden">康安途海外医疗</a> <a href="http://www.xingtaiyichuang.com" class="hidden">Buying-platform-contactus@xingtaiyichuang.com</a> <a href="http://web-sitemap.runpengtc.com" class="hidden">广东新安职业技术学院官网</a> <a href="http://www.mygril-yaoyao.com" class="hidden">博彩平台</a> <a href="https://es-la.facebook.com/public/mg冰球突破网址(中国)有限公司✔️最新网址:ad22.net✔️.gsg" class="hidden">快吧单机游戏</a> <a href="https://stock.adobe.com/search?k=立博在线体育投注-立博在线体育投注官方网站✔️网址:la66.net✔️" class="hidden">37wan妖精的尾巴OL游戏官网</a> <a href="https://stock.adobe.com/search?k=✔️网址:la66.net✔️(关于jdb电子游戏的简介)jdb电子游戏" class="hidden">腾升装饰</a> <a href="https://tw.dictionary.yahoo.com/dictionary?p=✔️最新网址:ad22.net✔️科普一下十大正规赌博网站排名的百科✔️最新网址:ad22.net✔️科普一下十大正规赌博网站排名的百科" class="hidden">易房网</a> <a href="https://es-la.facebook.com/public/m88体育手机>>✔️网址:la666.net✔️手输<<m88体育手机>>✔️网址:la666.net✔️手输<<" class="hidden">临沂易登网</a> <a href="https://www.deep6gear.com/catalogsearch/result/?q=✔️网址:la66.net✔️(关于bet8九州入口的简介)bet8九州入口" class="hidden">西南政法大学</a> <a href="https://acrmc.com/search/明陞体育m88✔️官方网址:la777.net✔️明陞体育m88✔️官方网址:la777.net✔️" class="hidden">超玩三国杀站</a> <a href="https://stock.adobe.com/search?k=yb全站app下载平台介绍✔️网址:la666.net✔️" class="hidden">坦克世界官网合作专区</a> <a href="https://es-la.facebook.com/public/最大在线赌博赌博网站大全(中国)有限公司✔️最新网址:ad22.net✔️.qpq" class="hidden">量化派</a> <a href="https://stock.adobe.com/search/images?k=✔️网址:la666.net✔️科普一下澳博在手app安卓下载的百科✔️网址:la666.net✔️科普一下澳博在手app安卓下载的百科" class="hidden">甘肃信鸽网</a> <a href="/sitemap.xml" class="hidden">站点地图</a> <a href="/sttcs/hot-news/sublighted.html" class="hidden">金山顶尖</a> <a href="/news/ztpkff-952267.html" class="hidden">山西晚报</a> <a href="/html/ltogia-546885" class="hidden">妙书坊</a> <a href="/html/natxrb-920986" class="hidden">一览船舶英才网-</a> </body></html>