<html><head></head><body>{"version":3,"file":"imagesCarousel-CcOr907e.js","sources":["../../src/scripts/modules/imagesCarousel.ts"],"sourcesContent":["import { Component } from '@verndale/core';\r\nimport Swiper from 'swiper';\r\nimport { Navigation, Keyboard, Pagination, Controller, A11y } from 'swiper/modules';\r\nimport 'swiper/css/bundle';\r\n\r\nclass ImagesCarousel extends Component {\r\n  private separator: string;\r\n  public imagesCarousel: Swiper | null;\r\n\r\n  constructor(el: HTMLElement) {\r\n    super(el);\r\n    this.imagesCarousel = null;\r\n    this.separator = this.el.dataset.separator || '';\r\n    Swiper.use([Navigation, Keyboard, Pagination, Controller, A11y]);\r\n    this.initSwiper();\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>('.images-carousel__slider-pagination'),\r\n      prevButton: this.el.querySelector<htmlelement>('.btn-previous-slide'),\r\n      nextButton: this.el.querySelector<htmlelement>('.btn-next-slide'),\r\n      controlsContainer: this.el.querySelector<htmlelement>(\r\n        '.images-carousel__slider-controls-container'\r\n      ),\r\n      captions: this.el.querySelectorAll<htmlelement>('.images-carousel__slide-caption')\r\n    };\r\n  }\r\n\r\n  addListeners() {\r\n    window.addEventListener('resize', this.initSwiper.bind(this));\r\n  }\r\n\r\n  initSwiper() {\r\n    if (\r\n      this.imagesCarousel &amp;&amp;\r\n      this.imagesCarousel.destroy &amp;&amp;\r\n      typeof this.imagesCarousel.destroy === 'function'\r\n    )\r\n      this.imagesCarousel.destroy();\r\n\r\n    this.imagesCarousel = new Swiper(this.dom.swiperContainer as HTMLElement, {\r\n      pagination: {\r\n        el: this.dom.pagination as HTMLElement,\r\n        type: 'custom',\r\n        renderCustom: (_self, current, total) =&gt; {\r\n          return `${current} ${this.separator} ${total}`;\r\n        }\r\n      },\r\n      on: {\r\n        init: () =&gt; {\r\n          if ((this.dom.captions as NodeList).length &gt; 0) {\r\n            let maxCaptionHeight = 0;\r\n            (this.dom.captions as NodeList).forEach(caption =&gt; {\r\n              const captionHeight = (caption as HTMLElement).offsetHeight;\r\n              if (captionHeight &gt; maxCaptionHeight) {\r\n                maxCaptionHeight = captionHeight;\r\n              }\r\n            });\r\n            (this.dom.controlsContainer as HTMLElement).style.setProperty(\r\n              '--caption-height',\r\n              `${maxCaptionHeight - 1}px`\r\n            );\r\n            (this.dom.swiperWrapper as HTMLElement).style.height = 'fit-content';\r\n          } else {\r\n            (this.dom.controlsContainer as HTMLElement).style.setProperty('--caption-height', '0');\r\n          }\r\n        }\r\n      },\r\n      a11y: {\r\n        enabled: true,\r\n        prevSlideMessage: 'Previous slide',\r\n        nextSlideMessage: 'Next slide'\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      autoHeight: true,\r\n      slidesPerView: 1,\r\n      loop: true\r\n    });\r\n  }\r\n}\r\n\r\nexport default ImagesCarousel;\r\n"],"names":["ImagesCarousel","Component","el","__publicField","Swiper","Navigation","Keyboard","Pagination","Controller","A11y","_self","current","total","maxCaptionHeight","caption","captionHeight"],"mappings":"gZAKA,MAAMA,UAAuBC,CAAU,CAIrC,YAAYC,EAAiB,CAC3B,MAAMA,CAAE,EAJFC,EAAA,kBACDA,EAAA,uBAIL,KAAK,eAAiB,KACtB,KAAK,UAAY,KAAK,GAAG,QAAQ,WAAa,GAC9CC,EAAO,IAAI,CAACC,EAAYC,EAAUC,EAAYC,EAAYC,CAAI,CAAC,EAC/D,KAAK,WAAW,CAAA,CAGlB,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,qCAAqC,EACpF,WAAY,KAAK,GAAG,cAA2B,qBAAqB,EACpE,WAAY,KAAK,GAAG,cAA2B,iBAAiB,EAChE,kBAAmB,KAAK,GAAG,cACzB,6CACF,EACA,SAAU,KAAK,GAAG,iBAA8B,iCAAiC,CACnF,CAAA,CAGF,cAAe,CACb,OAAO,iBAAiB,SAAU,KAAK,WAAW,KAAK,IAAI,CAAC,CAAA,CAG9D,YAAa,CAET,KAAK,gBACL,KAAK,eAAe,SACpB,OAAO,KAAK,eAAe,SAAY,YAEvC,KAAK,eAAe,QAAQ,EAE9B,KAAK,eAAiB,IAAIL,EAAO,KAAK,IAAI,gBAAgC,CACxE,WAAY,CACV,GAAI,KAAK,IAAI,WACb,KAAM,SACN,aAAc,CAACM,EAAOC,EAASC,IACtB,GAAGD,CAAO,IAAI,KAAK,SAAS,IAAIC,CAAK,EAEhD,EACA,GAAI,CACF,KAAM,IAAM,CACV,GAAK,KAAK,IAAI,SAAsB,OAAS,EAAG,CAC9C,IAAIC,EAAmB,EACtB,KAAK,IAAI,SAAsB,QAAmBC,GAAA,CACjD,MAAMC,EAAiBD,EAAwB,aAC3CC,EAAgBF,IACCA,EAAAE,EACrB,CACD,EACA,KAAK,IAAI,kBAAkC,MAAM,YAChD,mBACA,GAAGF,EAAmB,CAAC,IACzB,EACC,KAAK,IAAI,cAA8B,MAAM,OAAS,aAAA,MAEtD,KAAK,IAAI,kBAAkC,MAAM,YAAY,mBAAoB,GAAG,CACvF,CAEJ,EACA,KAAM,CACJ,QAAS,GACT,iBAAkB,iBAClB,iBAAkB,YACpB,EACA,WAAY,CACV,OAAQ,KAAK,IAAI,WACjB,OAAQ,KAAK,IAAI,UACnB,EACA,WAAY,GACZ,cAAe,EACf,KAAM,EAAA,CACP,CAAA,CAEL"}</htmlelement></htmlelement></htmlelement></htmlelement></htmlelement></htmlelement></htmlelement></htmlelement><style>
.hidden {
display: none;
}
</style>

<a href="http://www.swissabc.net"  class="hidden">沙巴体育博彩</a>
<a href="http://www.turuntilataksit.net"  class="hidden">太阳城集团</a>
<a href="http://iomoqe.szyouer.net" class="hidden">Q族</a>
<a href="http://tecgbu.hokiidpkv.net" class="hidden">中国灯具网</a>
<a href="http://www.najwc.com"  class="hidden">威尼斯人博彩</a>
<a href="http://www.lyhymh.net"  class="hidden">Sports-betting-platform-careers@lyhymh.net</a>
<a href="http://www.khobuon.net"  class="hidden">Sun-City-Group-careers@khobuon.net</a>
<a href="http://www.media2v-api.net"  class="hidden">bet365体育</a>
<a href="http://www.cceweb.net"  class="hidden">Gambling-website-billing@cceweb.net</a>
<a href="http://web-sitemap.zgdx8.com" class="hidden">红商网 </a>
<a href="http://web-sitemap.bjrujiabj.com" class="hidden">三顾冒菜</a>
<a href="http://www.orkexpo.net"  class="hidden">Crown-Sports-media@orkexpo.net</a>
<a href="http://www.seezl.com"  class="hidden">皇冠体育博彩</a>
<a href="http://dbywpx.kkkkbt.com" class="hidden">Flyme社区</a>
<a href="http://web-sitemap.niu95.com" class="hidden">瑜伽网</a>
<a href="http://www.pf168shop.com"  class="hidden">Sabah-online-platform-contactus@pf168shop.com</a>
<a href="http://fpwrfv.ournetlife.com" class="hidden">珠海招聘网</a>
<a href="http://www.symmjg.com"  class="hidden">皇冠体育</a>
<a href="http://www.cceweb.net"  class="hidden">Casino-platform-billing@cceweb.net</a>
<a href="http://www.najwc.com"  class="hidden">Gaming-platform-customerservice@najwc.com</a>

<a href="https://m.facebook.com/public/最大网络博彩国外赌博网站✔️网址:ad11.net✔️最大网络博彩国外赌博网站✔️网址:ad11.net✔️.dhe" class="hidden">梦想加空间</a>
<a href="https://m.facebook.com/public/澳门新葡京app官网下载-澳门新葡京app官网下载官方网站✔️官方网址:la777.net✔️" class="hidden">杭州吉屋网</a>
<a href="https://stock.adobe.com/search?k=✔️网址:ad11.net✔️bob手机体育下载-bob手机体育下载官方网站" class="hidden">甘肃工业职业技术学院</a>
<a href="https://m.facebook.com/public/靠谱电子游戏网站✔️网址:la66.net✔️" class="hidden">搜奇网</a>
<a href="https://www.deep6gear.com/catalogsearch/result/?q=科普一下上网从这里开始!的百科✔️网址:la666.net✔️.vla" class="hidden">小六汤包</a>
<a href="https://m.facebook.com/public/科普一下北京pk赛车网站的百科✔️网址:ad11.net✔️科普一下北京pk赛车网站的百科✔️网址:ad11.net✔️.ttm" class="hidden">心理FM</a>
<a href="https://m.facebook.com/public/✔️网址:la66.net✔️365bet比赛直播-维基百科.woy" class="hidden">《神武2》手游官网</a>
<a href="https://stock.adobe.com/search/images?k=✔️网址:la666.net✔️bbin游戏官网平台介绍✔️网址:la666.net✔️bbin游戏官网平台介绍" class="hidden">搜狐广东</a>
<a href="https://es-la.facebook.com/public/jdb电子手机注册-维基百科✔️最新网址:ad22.net✔️.wlk" class="hidden">山河网-</a>
<a href="https://stock.adobe.com/search/images?k=✔️最新网址:ad22.net✔️万博max客户端-万博max客户端官方网站.swl" class="hidden">生活半径 </a>

<a href="/html/lkbchb-194728.html" class="hidden">全民健康网男性健康</a>
<a href="/sitemap.xml" class="hidden">站点地图</a>
<a href="/cn/wamfbh-336614.html" class="hidden">珍爱网客服电话</a>
<a href="/html/tojqoi-875878.html" class="hidden">青春励志故事活动官方网站</a>


</body></html>