{"version":3,"file":"packages.slice-By0zlGC8.js","sources":["../../../../../../../../app/frontend/entities/packages/models/packages.slice.ts"],"sourcesContent":["import { PayloadAction, createSlice } from '@reduxjs/toolkit'\n\nimport { PackagesType } from './types'\n\nconst initialState: PackagesType = {\n activePackageId: undefined,\n}\nexport const packagesSlice = createSlice({\n name: 'packages',\n initialState,\n reducers: {\n setActivePackage: (\n state,\n action: PayloadAction<{\n activePackageId: string\n }>\n ) => {\n state.activePackageId = action.payload.activePackageId\n },\n },\n})\n\nexport const { setActivePackage } = packagesSlice.actions\n\nexport default packagesSlice.reducer\n"],"names":["initialState","packagesSlice","createSlice","state","action","setActivePackage","packages"],"mappings":"sDAIA,MAAMA,EAA6B,CACjC,gBAAiB,MACnB,EACaC,EAAgBC,EAAY,CACvC,KAAM,WACN,aAAAF,EACA,SAAU,CACR,iBAAkB,CAChBG,EACAC,IAGG,CACGD,EAAA,gBAAkBC,EAAO,QAAQ,eACzC,CACF,CACF,CAAC,EAEY,CAAE,iBAAAC,CAAiB,EAAIJ,EAAc,QAEnCK,EAAAL,EAAc"}