{ "version": 3, "sources": ["src/app/store/report/report.state.ts", "src/app/store/report/report.selectors.ts", "src/app/store/report/report.actions.ts"], "sourcesContent": ["import { createEntityAdapter, EntityState } from '@ngrx/entity';\nimport { Report } from 'src/app/report/models';\n\nexport interface ReportState extends EntityState {\n selected: Report | null;\n preview: Report | null;\n loaded: boolean;\n loading: boolean;\n}\nexport const adapter = createEntityAdapter();\nexport const initialState: ReportState = adapter.getInitialState({\n selected: null,\n preview: null,\n loaded: false,\n loading: false,\n});\n", "import { createSelector } from '@ngrx/store';\nimport { RootState } from '..';\nimport { adapter, ReportState } from './report.state';\n\nexport const selectFeature = (state: RootState) => state.reports;\n\nexport const { selectIds, selectEntities, selectAll, selectTotal } = adapter.getSelectors(selectFeature);\n\nexport const selectLoading = createSelector(selectFeature, (state: ReportState) => state.loading);\n\nexport const selectSelectedReport = createSelector(selectFeature, (state: ReportState) => state.selected);\nexport const selectGeneratedReport = createSelector(selectFeature, (state: ReportState) => state.preview);\n", "import { createAction, props } from '@ngrx/store';\nimport { Update } from '@ngrx/entity';\nimport { CreateReportInput } from 'src/app/report/models';\nimport { Report } from 'src/app/report/models/report.model';\n\nexport const getAll = createAction('[Map] Get All Reports');\nexport const getAllSuccess = createAction('[Report Effect] Get All Reports Success', props<{ reports: Report[] }>());\nexport const getAllFailed = createAction('[Report Effect] Get All Reports Failed');\n\nexport const getByUserId = createAction('[Map] Get Reports by User Id', props<{ userId: number }>());\nexport const getByUserIdSuccess = createAction('[Report Effect] Get Reports by User Id Success', props<{ reports: Report[] }>());\nexport const getByUserIdFailed = createAction('[Report Effect] Get Reports by User Id Failed');\n\nexport const create = createAction('[Report Form] Create Report Request', props<{ createReportInput: CreateReportInput }>());\nexport const createSuccess = createAction('[Report Effect] Create Report Success', props<{ report: Report }>());\nexport const createFailed = createAction('[Report Effect] Create Report Failed');\n\nexport const generatePreview = createAction('[Report Form] Generate Report Request', props<{ createReportInput: CreateReportInput }>());\nexport const generatePreviewSuccess = createAction('[Report Effect] Generate Report Success', props<{ report: Report }>());\nexport const generatePreviewFailed = createAction('[Report Effect] Generate Report Failed');\n\nexport const update = createAction('[Report Form] Update Report', props<{ report: Update }>());\nexport const updateSuccess = createAction('[Report Effect] Update Report Success', props<{ report: Update }>());\nexport const updateFailed = createAction('[Report Effect] Update Report Failed');\n\nexport const select = createAction('[Map Search Bar] Select Report', props<{ id: number }>());\nexport const selectSuccess = createAction('[Report Effect] Select Report Success', props<{ report: Report }>());\nexport const selectFailed = createAction('[Report Effect] Select Report Failed');\n\nexport const deselect = createAction('[Report Table] Deselect Report');\n"], "mappings": ";;;;;;;;AASO,IAAM,UAAU,oBAAmB;AACnC,IAAM,eAA4B,QAAQ,gBAAgB;EAC7D,UAAU;EACV,SAAS;EACT,QAAQ;EACR,SAAS;CACZ;;;ACXM,IAAM,gBAAgB,CAAC,UAAqB,MAAM;AAElD,IAAM,EAAE,WAAW,gBAAgB,WAAW,YAAW,IAAK,QAAQ,aAAa,aAAa;AAEhG,IAAM,gBAAgB,eAAe,eAAe,CAAC,UAAuB,MAAM,OAAO;AAEzF,IAAM,uBAAuB,eAAe,eAAe,CAAC,UAAuB,MAAM,QAAQ;AACjG,IAAM,wBAAwB,eAAe,eAAe,CAAC,UAAuB,MAAM,OAAO;;;ACNjG,IAAM,SAAS,aAAa,uBAAuB;AACnD,IAAM,gBAAgB,aAAa,2CAA2C,MAAK,CAAyB;AAC5G,IAAM,eAAe,aAAa,wCAAwC;AAE1E,IAAM,cAAc,aAAa,gCAAgC,MAAK,CAAsB;AAC5F,IAAM,qBAAqB,aAAa,kDAAkD,MAAK,CAAyB;AACxH,IAAM,oBAAoB,aAAa,+CAA+C;AAEtF,IAAM,SAAS,aAAa,uCAAuC,MAAK,CAA4C;AACpH,IAAM,gBAAgB,aAAa,yCAAyC,MAAK,CAAsB;AACvG,IAAM,eAAe,aAAa,sCAAsC;AAExE,IAAM,kBAAkB,aAAa,yCAAyC,MAAK,CAA4C;AAC/H,IAAM,yBAAyB,aAAa,2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