{"version":3,"file":"static/chunks/app/(browse & nav)/b/layout-fd333a927483147d.js","mappings":"6JAIO,IAAMA,EAAe,CACxBC,OAAQ,IACZ,EAAE,EAG6B,CAACC,EAAOC,IACnC,cAAQA,EAAOC,IAAI,CAEU,CACrB,GAAGF,CAAK,CACRG,IAAKF,EAAOG,IAAI,EAGJJ,ECZXK,EAAiBC,CAAAA,EAAAA,EAAAA,aAAAA,CAAaA,CAAC,CAAC,GAAG,EAIV,OAAC,UAAEC,CAAQ,CAAE,GACzC,CAAEP,EAAOQ,EAAU,CAAGC,CAAAA,EAAAA,EAAAA,UAAAA,CAAUA,CAACC,EAAgBZ,GAEvD,MACI,GAHiDY,EAGjD,KAACL,EAAeM,QAAQ,EAACC,MAAO,CAAEZ,EAAOQ,EAAU,UAC9CD,GAGb,EAAE,iBCjBF,uCAA8L","sources":["webpack://_N_E/./components/applications/plp/_contexts/ListingReducer.js","webpack://_N_E/./components/applications/plp/_contexts/ListingContext.js","webpack://_N_E/?e945"],"sourcesContent":["/**\n* Cart Widget State Manager:\n*/\n\nexport const InitialState = {\n widget: null\n};\n\n\nexport const ListingReducer = ((state, action) => {\n switch (action.type) {\n\n case \"updateQty\": return {\n ...state,\n qty: action.data\n };\n\n default: return state;\n }\n})","\"use client\"\n\nimport React, { useReducer, createContext } from 'react';\nimport { ListingReducer, InitialState } from './ListingReducer';\n\nexport const ListingContext = createContext({});\n\n\n// Create our Provider with our Reducer as our state manager\nexport const ListingContextProvider = ({ children }) => {\n const [ state, dispatch ] = useReducer(ListingReducer, InitialState);\n \n return (\n \n {children}\n \n );\n};\n\n","import(/* webpackMode: \"eager\", webpackExports: [\"ListingContextProvider\"] */ \"/codebuild/output/src4062338159/src/GardenRoute.store/components/applications/plp/_contexts/ListingContext.js\");\n"],"names":["InitialState","widget","state","action","type","qty","data","ListingContext","createContext","children","dispatch","useReducer","ListingReducer","Provider","value"],"sourceRoot":""}