{"version":3,"file":"locationsNearYouSlider-b237c9f2.js","sources":["../../../../app/frontend/components/b2c/locationsNearYouSlider.js"],"sourcesContent":["// set up five star slider if it exists\nimport Glide from \"@glidejs/glide\";\n\nconst fiveStarSliderSelector = '.locations-near-you.glide';\nif (document.querySelector(fiveStarSliderSelector)) {\n const config = {\n type: 'carousel',\n perView: 3,\n gap: 20,\n peek: {\n before: 10,\n after: 10,\n },\n breakpoints: {\n 500: {\n perView: 1.2,\n gap: 16,\n peek: {\n before: 16,\n after: 0,\n }\n },\n 767: {\n perView: 1.5,\n gap: 25,\n peek: {\n before: 25,\n after: 0,\n }\n },\n 1150: {\n perView: 2.2,\n gap: 50,\n peek: {\n before: 25,\n after: 25,\n },\n },\n }\n };\n\n if (document.body.classList.contains('faceted-search')) {\n config.breakpoints[1150].perView = 2;\n config.breakpoints[1150].gap = 25;\n }\n\n const fiveStarSlider = new Glide(fiveStarSliderSelector, config);\n fiveStarSlider.on('mount.after', () => {\n // This is needed to trigger the overflowExpandableController.\n // If we migrate to stimulus we can instead send the event directly to the controller\n window.dispatchEvent(new Event('resize'));\n });\n fiveStarSlider.mount();\n}\n"],"names":["fiveStarSliderSelector","config","fiveStarSlider","Glide"],"mappings":"4CAGA,MAAMA,EAAyB,4BAC/B,GAAI,SAAS,cAAcA,CAAsB,EAAG,CAChD,MAAMC,EAAS,CACX,KAAM,WACN,QAAS,EACT,IAAK,GACL,KAAM,CACF,OAAQ,GACR,MAAO,EACV,EACD,YAAa,CACT,IAAK,CACD,QAAS,IACT,IAAK,GACL,KAAM,CACF,OAAQ,GACR,MAAO,CACV,CACJ,EACD,IAAK,CACD,QAAS,IACT,IAAK,GACL,KAAM,CACF,OAAQ,GACR,MAAO,CACV,CACJ,EACD,KAAM,CACF,QAAS,IACT,IAAK,GACL,KAAM,CACF,OAAQ,GACR,MAAO,EACV,CACJ,CACJ,CACT,EAEQ,SAAS,KAAK,UAAU,SAAS,gBAAgB,IACjDA,EAAO,YAAY,IAAI,EAAE,QAAU,EACnCA,EAAO,YAAY,IAAI,EAAE,IAAM,IAGnC,MAAMC,EAAiB,IAAIC,EAAMH,EAAwBC,CAAM,EAC/DC,EAAe,GAAG,cAAe,IAAM,CAGnC,OAAO,cAAc,IAAI,MAAM,QAAQ,CAAC,CAChD,CAAK,EACDA,EAAe,MAAK,CACxB"}