{"version":3,"sources":["webpack://frontendplaceholder/./Src/Scripts/components/short-content.js"],"names":["Swiper","use","Navigation","Pagination","Controller","Autoplay","constructor","elm","args","swiperElem","querySelector","creditContainer","options","loop","autoHeight","lazy","speed","spaceBetween","pagination","el","type","formatFractionCurrent","number","formatFractionTotal","on","slideChange","x","window","loadResource","target","slide","slides","activeIndex","innerHTML","dataset","creditText","autoplay","delay","disableOnInteraction","navigation","nextEl","prevEl","this","swiper"],"mappings":"wMAAA,M,wbAAA,U,+HACAA,UAAOC,IAAI,CAACC,aAAYC,aAAYC,aAAYC,a,UACjC,MACXC,YAAYC,EAAKC,GACb,MAAMC,EAAaF,EAAIG,cAAc,qBAC/BC,EAAkBJ,EAAIG,cAAc,2BACpCE,EAAU,CACZC,MAAM,EACNC,YAAY,EACZC,MAAM,EACNC,MAAO,IACPC,aAAc,GACdC,WAAY,CACRC,GAAIZ,EAAIG,cAAc,sBACtBU,KAAM,WACNC,sBAAuB,SAAUC,GAC7B,OAAQA,EAAS,GAAK,IAAM,IAAMA,GAEtCC,oBAAqB,SAAUD,GAC3B,OAAQA,EAAS,GAAK,IAAM,IAAMA,IAG1CE,GAAI,CACAC,YAAa,SAAUC,GACnBC,OAAOC,aAAa,CAAEC,OAAQpB,IAC9B,MAAMqB,EAAQJ,aAAH,EAAGA,EAAGK,OAAOL,aAAV,EAAUA,EAAGM,aAC3BrB,EAAgBsB,UAAYH,EAAMI,QAAQC,YAAc,WAGhEC,SAAU,CACNC,MAAO,IACPC,sBAAsB,GAE1BC,WAAY,CACRC,OAAQjC,EAAIG,cAAc,uBAC1B+B,OAAQlC,EAAIG,cAAc,2BAE3BF,GAGPkC,KAAKC,OAAS,IAAI3C,UAAOS,EAAYG","file":"8235.0fac2c80ae99fcd8c3be.js","sourcesContent":["import Swiper, { Navigation, Pagination, Controller, Autoplay } from 'swiper';\nSwiper.use([Navigation, Pagination, Controller, Autoplay]);\nexport default class ShortContent {\n constructor(elm, args) {\n const swiperElem = elm.querySelector('.swiper-container');\n const creditContainer = elm.querySelector('[data-credit-container]');\n const options = {\n loop: true,\n autoHeight: false,\n lazy: false,\n speed: 700,\n spaceBetween: 20,\n pagination: {\n el: elm.querySelector('.swiper-pagination'),\n type: 'fraction',\n formatFractionCurrent: function (number) {\n return (number < 10 ? '0' : '') + number;\n },\n formatFractionTotal: function (number) {\n return (number < 10 ? '0' : '') + number;\n },\n },\n on: {\n slideChange: function (x) {\n window.loadResource({ target: swiperElem });\n const slide = x?.slides[x?.activeIndex];\n creditContainer.innerHTML = slide.dataset.creditText || ' ';\n },\n },\n autoplay: {\n delay: 4000,\n disableOnInteraction: true,\n },\n navigation: {\n nextEl: elm.querySelector('.swiper-button-next'),\n prevEl: elm.querySelector('.swiper-button-prev'),\n },\n ...args,\n };\n\n this.swiper = new Swiper(swiperElem, options);\n }\n\n}\n"],"sourceRoot":""}