import"./CartItem-DoYV7sXc-v4.7.9.js";import"./LandscapeProducts-BdtI2HIw-v4.7.9.js";import"./swiper-AEc_2BbQ-v4.7.9.js";import"./ProductCard-CHb1HPq2-v4.7.9.js";import"./ProductMixin-D4Z8_OKx-v4.7.9.js";import"./ProductRating-Jsih_aOL-v4.7.9.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)})}}));
