{"version":3,"file":"index.cI6EGt3f.mjs","sources":["../src/store/index.ts"],"sourcesContent":["import { configureStore } from \"@reduxjs/toolkit\";\nimport { combineReducers } from \"redux\";\n\nimport { applicationSlice, ApplicationState, chatSlice, ChatState } from \"./slices/index.ts\";\nexport * from \"./slices/index.ts\";\n\nexport const allReducers = combineReducers({\n application: applicationSlice.reducer,\n chat: chatSlice.reducer,\n});\n\nexport const store = configureStore({\n reducer: allReducers,\n middleware: (getDefaultMiddleware) =>\n getDefaultMiddleware({\n serializableCheck: {\n // TODO: should not simply ignore these non-serializable warnings\n ignoredActions: [\n \"chat/history/fulfilled\",\n \"chat/history/rejected\",\n \"chat/history/pending\",\n \"chat/sendMessage/fulfilled\",\n \"chat/sendMessage/rejected\",\n \"chat/sendMessage/pending\",\n ],\n // Ignore these field paths in all actions\n ignoredActionPaths: [\"payload.payload.timestamp\", /payload\\.[0-9]+\\.payload\\.timestamp/],\n // Ignore these paths in the state\n ignoredPaths: [\n \"chat.history.chat-unavailable.payload.timestamp\",\n /chat\\.messages\\.[0-9]+\\.payload\\.timestamp/,\n /chat\\.history\\.data\\.[0-9]+\\.messages\\.[0-9]+\\.payload\\.timestamp/,\n ],\n },\n }),\n});\n\n// Infer the `RootState` and `AppDispatch` types from the store itself\nexport type RootState = {\n application: ApplicationState;\n chat: ChatState;\n};\n// Inferred type: {posts: PostsState, comments: CommentsState, users: UsersState}\nexport type AppDispatch = typeof store.dispatch;\n"],"names":["allReducers","combineReducers","applicationSlice","chatSlice","store","configureStore","getDefaultMiddleware"],"mappings":"8TAMO,MAAMA,EAAcC,EAAgB,CACvC,YAAaC,EAAiB,QAC9B,KAAMC,EAAU,OACpB,CAAC,EAEYC,EAAQC,EAAe,CAChC,QAASL,EACT,WAAaM,GACTA,EAAqB,CACjB,kBAAmB,CAEf,eAAgB,CACZ,yBACA,wBACA,uBACA,6BACA,4BACA,0BACJ,EAEA,mBAAoB,CAAC,4BAA6B,qCAAqC,EAEvF,aAAc,CACV,kDACA,6CACA,mEAAA,CACJ,CAEP,CAAA,CACT,CAAC"}