<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://igbpty.aswwl.com" class="hidden">医疗商务网</a> <a href="http://educoncepts-sdr.com" class="hidden">石家庄新闻网</a> <a href="http://www.haerbinjiudian.com" class="hidden">Sabah-Sports-website-sales@haerbinjiudian.com</a> <a href="http://www.noujcf.com" class="hidden">博彩app</a> <a href="http://www.kongtiao11.com" class="hidden">Sports-betting-contact@kongtiao11.com</a> <a href="http://web-sitemap.championroofingmidga.net" class="hidden">晋城百姓网</a> <a href="http://safemm.ct-mall.com" class="hidden">大江网萍乡频道</a> <a href="http://evvcxp.pingguozs.com" class="hidden">捷税宝</a> <a href="http://www.akingdum.net" class="hidden">银河集团app下载</a> <a href="http://web-sitemap.546qc.com" class="hidden">JZ5U绿色下载站</a> <a href="http://hkzfod.chojyy.com" class="hidden">什么值得买_消费众测 </a> <a href="http://rgcowf.cdnihan.com" class="hidden">奥普节能</a> <a href="http://www.yezi-studio.com" class="hidden">Venetian-Online-support@yezi-studio.com</a> <a href="http://www.juxiangart.com" class="hidden">Venice-Macao-service@juxiangart.com</a> <a href="http://www.chapterdesign.net" class="hidden">Sabah-Official-website-support@chapterdesign.net</a> <a href="http://web-sitemap.acquitycxo.com" class="hidden">中工网国际</a> <a href="http://www.anetalaya.com" class="hidden">Gaming-app-Download-service@anetalaya.com</a> <a href="http://www.iconfuture.net" class="hidden">Sun-City-app-admin@iconfuture.net</a> <a href="http://teknikindustriunjani.net" class="hidden">绿森林硅藻泥官网</a> <a href="http://www.tnrstarsdakdoa.net" class="hidden">皇冠博彩</a> <a href="https://stock.adobe.com/search/images?k=✔️最新网址:ad22.net✔️韦德体育全新官网注册官方-维基百科✔️最新网址:ad22.net✔️韦德体育全新官网注册官方-维基百科.zxq" class="hidden">无锡工艺职业技术学院</a> <a href="https://www.deep6gear.com/catalogsearch/result/?q=✔️官方网址:la777.net✔️十大在线博彩在线赌博软件平台介绍✔️官方网址:la777.net✔️十大在线博彩在线赌博软件平台介绍.rha" class="hidden">浙江财经大学东方学院</a> <a href="https://tw.dictionary.yahoo.com/dictionary?p=>>✔️网址:la666.net✔️手输<<欧洲杯押注平台>>✔️网址:la666.net✔️手输<<欧洲杯押注平台.zmd" class="hidden">搜球吧</a> <a href="https://es-la.facebook.com/public/最靠谱的网络博彩平台>>✔️官方网址:la777.net✔️手输<<" class="hidden">决胜网资讯频道</a> <a href="https://m.facebook.com/public/>>✔️网址:la66.net✔️手输<<老虎机单机游戏>>✔️网址:la66.net✔️手输<<老虎机单机游戏.rml" class="hidden">中国菜谱网</a> <a href="https://stock.adobe.com/search/images?k=✔️网址:la666.net✔️(关于lol博彩app的简介)lol博彩app" class="hidden">天台教育信息网</a> <a href="https://acrmc.com/search/✔️网址:la66.net✔️手机软件app下载" class="hidden">乐清上班族论坛 </a> <a href="https://stock.adobe.com/search?k=科普一下推荐在线赌博在线赌博软件的百科✔️最新网址:ad22.net✔️" class="hidden">中国商务信用平台</a> <a href="https://es-la.facebook.com/public/✔️官方网址:la777.net✔️爱游戏官方网站✔️官方网址:la777.net✔️爱游戏官方网站" class="hidden">元贝驾考科目一模拟考试</a> <a href="https://es-la.facebook.com/public/澳门金沙博彩娱乐平台✔️官方网址:la777.net✔️.yvq" class="hidden">黑河学院 </a> <a href="/sitemap.xml" class="hidden">站点地图</a> <a href="/html/pwahll-524801" class="hidden">河南福彩网-</a> <a href="/sttcs/hot-news/lithuresis.html" class="hidden">金力泰</a> <a href="/sttcs/hot-news/gonotype.html" class="hidden">拉手网</a> </body></html>