{"version":3,"file":"common.slice-BhbCZt0M.js","sources":["../../../../../../../../app/frontend/entities/page/models/common.slice.ts"],"sourcesContent":["import { PayloadAction, createSlice } from '@reduxjs/toolkit'\n\nexport const THEME_KEY = 'theme'\n\nexport const commonSlice = createSlice({\n name: 'common',\n initialState: {\n isLanding: true,\n isEntryAppPage: true,\n activePage: '',\n },\n reducers: {\n setActiveComponent: (\n state,\n action: PayloadAction<{\n page: string\n isLanding: boolean\n isEntryAppPage: boolean\n }>\n ) => {\n state.activePage = action.payload.page\n state.isLanding = action.payload.isLanding\n state.isEntryAppPage = action.payload.isEntryAppPage\n },\n },\n})\n\nexport const { setActiveComponent } = commonSlice.actions\n\nexport default commonSlice.reducer\n"],"names":["commonSlice","createSlice","state","action","setActiveComponent","common"],"mappings":"sDAIO,MAAMA,EAAcC,EAAY,CACrC,KAAM,SACN,aAAc,CACZ,UAAW,GACX,eAAgB,GAChB,WAAY,EACd,EACA,SAAU,CACR,mBAAoB,CAClBC,EACAC,IAKG,CACGD,EAAA,WAAaC,EAAO,QAAQ,KAC5BD,EAAA,UAAYC,EAAO,QAAQ,UAC3BD,EAAA,eAAiBC,EAAO,QAAQ,cACxC,CACF,CACF,CAAC,EAEY,CAAE,mBAAAC,CAAmB,EAAIJ,EAAY,QAEnCK,EAAAL,EAAY"}