import"./CartItem-ZUHjF_qN-v4.7.2.js";import"./LandscapeProducts-CvLeZmNd-v4.7.2.js";import"./swiper-C8ZQRgZ4-v4.7.2.js";import"./ProductCard-D7i7ejMC-v4.7.2.js";import"./ProductMixin-Bb5mlqS4-v4.7.2.js";import"./ProductRating-B-YFAG_Q-v4.7.2.js";Alpine.data("Cart",()=>({shippingMethodName:null,get cartFetched(){return this.$store.cart.fetched},get cartIsEmpty(){return this.$store.cart.isEmpty},init(){Alpine.effect(()=>{this.cartFetched&&this.hideSkeleton()})},hideSkeleton(){document.querySelector(".cart-skeleton").remove()},clearCart(){this.$store.cart.clearCart(),axios.delete("/cart/clear").then(({data:t})=>{this.$store.cart.updateCart(t)}).catch(t=>{notify(t.response.data.message)})}}));
