"use strict";(self.webpackChunkapp_container=self.webpackChunkapp_container||[]).push([[5420],{5420:(t,a,e)=>{e.a(t,(async(t,d)=>{try{e.r(a),e.d(a,{default:()=>p,setDeletedProduct:()=>r,setShopifyCartData:()=>l,setShopifyProuctData:()=>o});const{createSlice:t}=await e.e(5717).then(e.t.bind(e,5717,23)).then((t=>({createSlice:t.createSlice}))),c=t({name:"storeFrontShopifyData",initialState:{productData:{},cartData:-1,deletedProduct:null},reducers:{setShopifyProuctData:(t,a)=>{let e=a.payload.handle,d=a.payload.data;t.productData[e]={...t.productData[e],...d}},setShopifyCartData:(t,a)=>{t.cartData=a.payload},setDeletedProduct:(t,a)=>{t.deletedProduct?t.deletedProduct={...t.deletedProduct,[a.payload.handle]:!0}:t.deletedProduct={[a.payload.handle]:!0}}}});window.shopifyState=t=>c.actions[t];const{setShopifyProuctData:o,setDeletedProduct:r,setShopifyCartData:l}=c.actions,p=c.reducer;d()}catch(t){d(t)}}),1)}}]);