UNPKG

947 BSource Map (JSON)View Raw
1{"version":3,"file":"slices-by-template.js","names":["slicesByTemplateReducer","state","Map","action","type","set","payload","componentPath","slices"],"sources":["../../../src/redux/reducers/slices-by-template.ts"],"sourcesContent":["import { ActionsUnion, IGatsbyState } from \"../types\"\n\nexport const slicesByTemplateReducer = (\n state: IGatsbyState[\"slicesByTemplate\"] = new Map(),\n action: ActionsUnion\n): IGatsbyState[\"slicesByTemplate\"] => {\n switch (action.type) {\n case `SET_SLICES_BY_TEMPLATE`: {\n return state.set(action.payload.componentPath, action.payload.slices)\n }\n\n default:\n return state\n }\n}\n"],"mappings":";;;;AAEO,MAAMA,uBAAuB,GAAG,CACrCC,KAAuC,GAAG,IAAIC,GAAG,EAAE,EACnDC,MAAoB,KACiB;EACrC,QAAQA,MAAM,CAACC,IAAI;IACjB,KAAM,wBAAuB;MAAE;QAC7B,OAAOH,KAAK,CAACI,GAAG,CAACF,MAAM,CAACG,OAAO,CAACC,aAAa,EAAEJ,MAAM,CAACG,OAAO,CAACE,MAAM,CAAC;MACvE;IAEA;MACE,OAAOP,KAAK;EAAA;AAElB,CAAC;AAAA"}
\No newline at end of file