-
-
Notifications
You must be signed in to change notification settings - Fork 193
/
4596-eedf9907db475ae1bd90.js.map
1 lines (1 loc) · 1.47 KB
/
4596-eedf9907db475ae1bd90.js.map
1
{"version":3,"file":"4596-eedf9907db475ae1bd90.js","mappings":"uIAAA,usC","sources":["webpack://embla-carousel-docs/./src/components/Sandbox/Vanilla/SandboxFilesDist/Progress/EmblaCarousel.ts"],"sourcesContent":["export default \"import EmblaCarousel, { EmblaOptionsType } from 'embla-carousel'\\nimport { setupProgressBar } from './EmblaCarouselProgressBar'\\nimport { addPrevNextBtnsClickHandlers } from '../EmblaCarouselArrowButtons'\\nimport '../css/base.css'\\nimport '../css/sandbox.css'\\nimport '../css/embla.css'\\n\\nconst OPTIONS: EmblaOptionsType = {}\\n\\nconst emblaNode = <HTMLElement>document.querySelector('.embla')\\nconst viewportNode = <HTMLElement>emblaNode.querySelector('.embla__viewport')\\nconst prevBtn = <HTMLElement>emblaNode.querySelector('.embla__button--prev')\\nconst nextBtn = <HTMLElement>emblaNode.querySelector('.embla__button--next')\\nconst progressNode = <HTMLElement>(\\n emblaNode.querySelector('.embla__progress__bar')\\n)\\n\\nconst emblaApi = EmblaCarousel(viewportNode, OPTIONS)\\nconst { applyProgress, removeProgress } = setupProgressBar(\\n emblaApi,\\n progressNode\\n)\\n\\nconst removePrevNextBtnsClickHandlers = addPrevNextBtnsClickHandlers(\\n emblaApi,\\n prevBtn,\\n nextBtn\\n)\\n\\nemblaApi\\n .on('init', applyProgress)\\n .on('reInit', applyProgress)\\n .on('scroll', applyProgress)\\n .on('slideFocus', applyProgress)\\n .on('destroy', removeProgress)\\n .on('destroy', removePrevNextBtnsClickHandlers)\\n\";"],"names":[],"sourceRoot":""}