{"version":3,"file":"home.js","mappings":";;;;AAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX,SAAS;AACT,OAAO;AACP,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,uEAAuE,YAAY;AACnF,GAAG;AACH;;;ACxCe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP,KAAK;AACL;;;ACrBe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,WAAW;AACX;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,WAAW;AACX,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA,GAAG;AACH;;;ACvCe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;;;ACXe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;;;AC1B8C;AACO;AACJ;AACD;AACZ;AACpC;AACA;AACA;AACA;AACA;AACA,IAAI,aAAa;AACjB,IAAI,iBAAiB;AACrB,EAAE,WAAW;AACb,IAAI,QAAQ;AACZ;AACA,mCAAmC,gBAAgB;AACnD;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,CAAC","sources":["webpack://build/../malupires/assets/javascripts/pages/home/fullbanner.js","webpack://build/../malupires/assets/javascripts/pages/home/product_slider.js","webpack://build/../malupires/assets/javascripts/components/carousel.js","webpack://build/../malupires/assets/javascripts/pages/home/gridTopo.js","webpack://build/../malupires/assets/javascripts/pages/home/icons.js","webpack://build/../malupires/assets/javascripts/pages/home.js"],"sourcesContent":["export default function setFullbanner() {\r\n const fullbanners = document.querySelectorAll('[data-fullbanner]');\r\n\r\n fullbanners.forEach((section) => {\r\n const carousel = section.querySelector('.swiper');\r\n const pagination = section.querySelector('.swiper-pagination');\r\n const next = section.querySelector('.swiper-button-next');\r\n const prev = section.querySelector('.swiper-button-prev');\r\n\r\n const newFullbanner = new Swiper(carousel, {\r\n slidesPerView: 1,\r\n watchOverflow: true,\r\n speed: 1000,\r\n pagination: {\r\n el: pagination,\r\n type: 'bullets',\r\n clickable: true,\r\n },\r\n autoplay: {\r\n delay: 3000,\r\n disableOnInteraction: false,\r\n pauseOnMouseEnter: true,\r\n },\r\n breakpoints: {\r\n 992: {\r\n navigation: {\r\n nextEl: next,\r\n prevEl: prev,\r\n disabledClass: '-disabled',\r\n },\r\n },\r\n },\r\n });\r\n\r\n //Autoplay condicional\r\n newFullbanner.autoplay.stop();\r\n\r\n const eventType = window.mobile ? 'scroll' : 'mousemove';\r\n window.addEventListener(eventType, newFullbanner.autoplay.start, { once: true });\r\n });\r\n}\r\n","export default function setProductSlider() {\r\n const productSlider = document.querySelectorAll('[data-product-slider]');\r\n\r\n if (productSlider.length > 0)\r\n productSlider.forEach((section) => {\r\n const swiper = section.querySelector('.swiper');\r\n const pagination = section.querySelector('.swiper-pagination');\r\n\r\n const sliderSectionHome = new Swiper(swiper, {\r\n loop: false,\r\n slidesPerView: 1.2,\r\n spaceBetween: 16,\r\n watchOverflow: true,\r\n direction: 'horizontal',\r\n pagination: {\r\n el: pagination,\r\n type: 'bullets',\r\n clickable: true,\r\n },\r\n });\r\n });\r\n}\r\n","export default function setCarousel() {\r\n const productsCarousel = document.querySelectorAll('[data-products-carousel]');\r\n\r\n productsCarousel.forEach((section) => {\r\n const carousel = section.querySelector('.swiper');\r\n const pagination = section.querySelector('.swiper-pagination');\r\n const next = section.querySelector('.swiper-button-next');\r\n const prev = section.querySelector('.swiper-button-prev');\r\n\r\n if (carousel) {\r\n const swiper = new Swiper(carousel, {\r\n slidesPerView: 1.2,\r\n spaceBetween: 16,\r\n watchOverflow: true,\r\n speed: 1000,\r\n breakpoints: {\r\n 768: {\r\n slidesPerView: 4,\r\n navigation: {\r\n nextEl: next,\r\n prevEl: prev,\r\n },\r\n },\r\n 1440: {\r\n slidesPerView: 4,\r\n navigation: {\r\n nextEl: next,\r\n prevEl: prev,\r\n },\r\n },\r\n },\r\n pagination: {\r\n el: pagination,\r\n type: 'bullets',\r\n clickable: true,\r\n },\r\n });\r\n }\r\n });\r\n}\r\n","export default function setGridTopoSwiper() {\r\n const gridTopo = document.querySelectorAll('[data-grid-swiper]');\r\n\r\n if (gridTopo.length > 0) gridTopo.forEach(section => {\r\n const slide = new Swiper(section, {\r\n loop: false,\r\n slidesPerView: 1.2,\r\n spaceBetween: 16,\r\n watchOverflow: true,\r\n });\r\n });\r\n}\r\n","export default function setIcons() {\r\n const icons = document.querySelector('[data-icons-swiper]');\r\n\r\n if (icons) {\r\n const pagination = icons.querySelector(\".swiper-pagination\");\r\n\r\n const swiper = new Swiper(icons, {\r\n slidesPerView: 1,\r\n spaceBetween: 16,\r\n watchOverflow: true,\r\n speed: 1000,\r\n breakpoints: {\r\n 768: {\r\n slidesPerView: 4,\r\n },\r\n 1440: {\r\n slidesPerView: 4,\r\n },\r\n },\r\n pagination: {\r\n el: pagination,\r\n type: 'bullets',\r\n clickable: true,\r\n },\r\n });\r\n }\r\n}\r\n","import setFullbanner from './home/fullbanner';\r\nimport setProductSlider from './home/product_slider';\r\nimport setCarousel from '../components/carousel';\r\nimport setGridTopoSwiper from './home/gridTopo';\r\nimport setIcons from './home/icons';\r\n\r\n//addImports\r\n\r\nconst Home = {\r\n init: function () {\r\n setFullbanner()\r\n setGridTopoSwiper();\r\n\t\tsetCarousel();\r\n setIcons();\r\n\r\n if (window.innerWidth < 768) { setProductSlider();}\r\n\t\t\r\n\t\t//calls\r\n },\r\n};\r\n\r\nwindow.addEventListener('DOMContentLoaded', () => {\r\n Home.init()\r\n})\r\n"],"names":[],"sourceRoot":""}