import{S as r,N as o,P as a}from"./swiper-AEc_2BbQ-v4.7.9.js";import"./ProductCard-CHb1HPq2-v4.7.9.js";Alpine.data("LandscapeProducts",({url:t,watchState:s})=>({products:[],init(){this.fetchProducts(),s&&this.$watch(s,e=>{e&&(this.products=[],this.$refs.landscapeProductsWrap.remove())})},hideLandscapeProductsSkeleton(){document.querySelectorAll(".landscape-products .swiper-slide-skeleton").forEach(i=>i.remove())},async fetchProducts(){try{const e=await axios.get(t);this.products=e.data,this.$nextTick(()=>{new r(".landscape-products",{modules:[o,a],slidesPerView:2,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},breakpoints:{576:{slidesPerView:3},830:{slidesPerView:4},991:{slidesPerView:5},1200:{slidesPerView:6},1400:{slidesPerView:7},1760:{slidesPerView:8}}})})}catch(e){notify(e.response.data.message)}finally{this.hideLandscapeProductsSkeleton()}}}));
