{"version":3,"file":"main-B91zHaKz.js","sources":["../../../app/javascript/apps/customer_page/store/products/main.js"],"sourcesContent":["const state = {\n map: {}\n}\n\nconst mutations = {\n store: (state, product) => {\n if (state.map[product.handle]) {\n state.map[product.handle]['data'] = product\n } else {\n state.map[product.handle] = { data: product }\n }\n },\n loaded: (state, handle) => {\n if (state.map[handle]) {\n state.map[handle]['loaded'] = true\n } else {\n state.map[handle] = { loaded: true }\n }\n },\n}\n\nexport default {\n namespaced: true,\n state,\n mutations\n}\n"],"names":["state","mutations","product","handle","productsModule"],"mappings":"AAAA,MAAMA,EAAQ,CACZ,IAAK,CAAA,CACP,EAEMC,EAAY,CAChB,MAAO,CAACD,EAAOE,IAAY,CACrBF,EAAM,IAAIE,EAAQ,MAAM,EAC1BF,EAAM,IAAIE,EAAQ,MAAM,EAAE,KAAUA,EAEpCF,EAAM,IAAIE,EAAQ,MAAM,EAAI,CAAE,KAAMA,CAAO,CAE9C,EACD,OAAQ,CAACF,EAAOG,IAAW,CACrBH,EAAM,IAAIG,CAAM,EAClBH,EAAM,IAAIG,CAAM,EAAE,OAAY,GAE9BH,EAAM,IAAIG,CAAM,EAAI,CAAE,OAAQ,EAAI,CAErC,CACH,EAEeC,EAAA,CACb,WAAY,GACZ,MAAAJ,EACA,UAAAC,CACF"}