{"version":3,"sources":["webpack:///webpack/bootstrap 4271f45f0b996f874d81?2a70*****","webpack:///./assets/scripts/carousel.js","webpack:///./assets/scripts/components/carousel.js"],"names":["carouselRunner","carousel","Carousel","slides","$","items","navText","carousels","element","breakpoints","small","medium","large","count","isScrollable","setting","margin","responsive"],"mappings":"aAIA,cAGA,QACA,oBAGA,YACA,UADA,CAEA,IAFA,CAGA,SAHA,EAaA,MANA,mCAMA,CAHA,WAGA,UACA,CAxBA,SAqCA,MATA,MASA,CANA,KAMA,CAHA,MAGA,K,oICtCA,Q,wDAQMA,EAAN,GALI,aAAc,WACVC,iC,6hBCJFC,E,uFACgB,CAClB,GAAIC,GAASC,EAAb,yBAAaA,CAAb,CACAD,cAAmB,gBAGjBE,MAHiB,EAIjBC,QAAS,OAJQ,CAAnBH,CAFkB,CASlBA,iCACD,C,+CACsB,YACjBI,EAAYH,EAAhB,4BAAgBA,CADK,CAErBG,OAAe,aAAY,CACzBH,iBAAkB,EAAlBA,UAAkB,GAAlBA,CADFG,EAFqB,CAKrBA,iCACD,C,0BAEUC,WAAQ,OACbC,EAAc,CAChBC,MADgB,EAEhBC,OAFgB,IAGhBC,MAAO,IAHS,CADD,CAMbC,EAAQT,yBAAZ,GAAYA,CANK,CAObU,EAAeV,UAAnB,YAAmBA,CAPF,CAQbW,EAAU,SAEZC,OAFY,GAGZV,QAAS,IAHG,EAGH,CAHG,yBAMZW,qBACGR,EADHQ,MACuB,gBAGnBZ,MAAOQ,IAHY,CADvBI,MAMGR,EANHQ,OAMwB,gBAGpBZ,MAAOQ,IAHa,CANxBI,MAWGR,EAXHQ,MAWuB,gBAGnBZ,MAAOQ,IAHY,CAXvBI,IANY,CARG,CAgCjB,QACD,C,SAEGhB,EAAN,K,GACeA,O","file":"carousel.min.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 4271f45f0b996f874d81","import carousel from './components/carousel';\n\nclass CarouselRunner {\n constructor() {\n carousel.initCarouselComponent();\n }\n}\n\nconst carouselRunner = new CarouselRunner();\n\n\n\n// WEBPACK FOOTER //\n// ./assets/scripts/carousel.js","class Carousel {\n quickviewCarousel() {\n let slides = $('#quickViewModal .slides');\n slides.owlCarousel({\n loop: false,\n nav: true,\n items: 1,\n navText: ['', '']\n });\n\n slides.trigger('refresh.owl.carousel');\n }\n initCarouselComponent(){\n let carousels = $('.products-carousel .slides');\n carousels.each((id, el) => {\n $(el).owlCarousel(this.getSetting(el));\n });\n carousels.trigger('refresh.owl.carousel');\n }\n\n getSetting(element){\n let breakpoints = {\n small: 0,\n medium: 640,\n large: 1024,\n };\n let count = $(element).data('count').split('-');\n let isScrollable = $(element).data('scrollable');\n let setting = {\n loop: true,\n margin: 10,\n navText: ['', ''],\n mouseDrag: isScrollable,\n touchDrag: isScrollable,\n responsive: {\n [breakpoints.small]: {\n nav: false,\n dots: true,\n items: count[2]\n },\n [breakpoints.medium]: {\n nav: true,\n dots: false,\n items: count[1]\n },\n [breakpoints.large]: {\n nav: true,\n dots: false,\n items: count[0]\n }\n }\n }\n return setting;\n }\n}\nconst carousel = new Carousel();\nexport default carousel;\n\n\n\n// WEBPACK FOOTER //\n// ./assets/scripts/components/carousel.js"],"sourceRoot":""}