{ "version": 3, "sources": ["src/app/core/ngrx/segment/segment.consts.ts", "src/app/core/ngrx/segment/segment.lenses.ts", "src/app/core/ngrx/segment/segment.reducers.ts"], "sourcesContent": ["export const segmentFeatureKey = \"SEGMENT\";\n", "import { Lens } from \"src/app/shared/utilities/state/Optics\";\nimport { SegmentState } from \"./segment.models\";\n\nconst stateLensProp = Lens.fromProp();\nexport const pageViewLens = stateLensProp(\"pageView\");\n", "import { actionCreatorFactory } from \"src/app/shared/utilities/state/Actions\";\nimport {\n caseFn,\n reducerDefaultFn,\n} from \"src/app/shared/utilities/state/Reducers\";\nimport { segmentFeatureKey } from \"./segment.consts\";\nimport { pageViewLens } from \"./segment.lenses\";\nimport { PageView, SegmentState } from \"./segment.models\";\n\nconst actionCreator = actionCreatorFactory(segmentFeatureKey);\n\nexport const pageView = actionCreator.simple(\"PAGE_VIEW\");\nconst pageViewReducer = caseFn(pageView, (s: SegmentState, { value }) =>\n pageViewLens.set(value)(s)\n);\n\nexport const segmentReducer = reducerDefaultFn(\n { pageView: null },\n pageViewReducer\n);\n"], "mappings": "iEAAO,IAAMA,EAAoB,UCGjC,IAAMC,EAAgBC,EAAKC,SAAQ,EACtBC,EAAeH,EAAc,UAAU,ECKpD,IAAMI,EAAgBC,EAAqBC,CAAiB,EAE/CC,EAAWH,EAAcI,OAAiB,WAAW,EAC5DC,EAAkBC,EAAOH,EAAU,CAACI,EAAiB,CAAEC,MAAAA,CAAK,IAChEC,EAAaC,IAAIF,CAAK,EAAED,CAAC,CAAC,EAGfI,EAAiBC,EAC5B,CAAET,SAAU,IAAI,EAChBE,CAAe", "names": ["segmentFeatureKey", "stateLensProp", "Lens", "fromProp", "pageViewLens", "actionCreator", "actionCreatorFactory", "segmentFeatureKey", "pageView", "simple", "pageViewReducer", "caseFn", "s", "value", "pageViewLens", "set", "segmentReducer", "reducerDefaultFn"] }