{"version":3,"sources":["webpack:///./js/components/init-review-carousel.ts"],"names":["whenDomReady","then","elements","Array","from","document","querySelectorAll","forEach","element","controls","querySelector","track","tns","autoplay","autoplayButtonOutput","autoplayHoverPause","center","container","controlsContainer","loop","nav","touch","items","slideBy","speed","responsive","768","1024","1280","fixedWidth"],"mappings":"2FAAA,4BAyCAA,cAAeC,MAvCf,WACI,IAAMC,EAAWC,MAAMC,KAAKC,SAASC,iBAAiB,wBACjDJ,GAGLA,EAASK,SAAQ,SAAAC,GACb,IAAMC,EAAWD,EAAQE,cAAc,uBACjCC,EAAQH,EAAQE,cAAc,oBACpCE,YAAI,CACAC,UAAU,EACVC,sBAAsB,EACtBC,oBAAoB,EACpBC,QAAQ,EACRC,UAAWN,EACXO,kBAAmBT,EACnBU,MAAM,EACNC,KAAK,EACLC,OAAO,EACPC,MAAO,EACPC,QAAS,EACTC,MAAO,KACPC,WAAY,CACRC,IAAK,CACDb,UAAU,EACVG,QAAQ,EACRK,OAAO,EACPC,MAAO,GAEXK,KAAM,CACFL,MAAO,GAEXM,KAAM,CACFN,MAAO,EACPO,WAAY","file":"27-4f0f441847ad89989ed4.js","sourcesContent":["import { tns } from 'tiny-slider/src/tiny-slider';\r\nimport whenDomReady from 'when-dom-ready';\r\nfunction initialise() {\r\n const elements = Array.from(document.querySelectorAll('.js-review-carousel'));\r\n if (!elements) {\r\n return;\r\n }\r\n elements.forEach(element => {\r\n const controls = element.querySelector('.js-review-controls');\r\n const track = element.querySelector('.js-review-track');\r\n tns({\r\n autoplay: false,\r\n autoplayButtonOutput: false,\r\n autoplayHoverPause: true,\r\n center: true,\r\n container: track,\r\n controlsContainer: controls,\r\n loop: true,\r\n nav: false,\r\n touch: true,\r\n items: 1,\r\n slideBy: 1,\r\n speed: 1500,\r\n responsive: {\r\n 768: {\r\n autoplay: true,\r\n center: false,\r\n touch: false,\r\n items: 2,\r\n },\r\n 1024: {\r\n items: 2,\r\n },\r\n 1280: {\r\n items: 4,\r\n fixedWidth: 400,\r\n },\r\n },\r\n });\r\n });\r\n}\r\nwhenDomReady().then(initialise);\r\n"],"sourceRoot":""}