{"version":3,"sources":["webpack:///./packages/webterminal-plugin/src/redux/reducers/cloud-shell-reducer.ts","webpack:///./packages/webterminal-plugin/src/redux/reducer.ts"],"names":["initialState","isExpanded","isActive","command","state","action","type","SetCloudShellExpanded","payload","SetCloudShellActive","SetCloudShellCommand"],"mappings":"8FAAA,aAQA,MAAMA,EAAsB,CAC1BC,YAAY,EACZC,UAAU,EACVC,QAAS,MAGI,KAACC,EAAQJ,EAAcK,KACpC,OAAQA,EAAOC,MACb,KAAK,IAAQC,sBACX,OAAO,OAAP,wBACKH,GAAK,CACRH,WAAYI,EAAOG,QAAQP,aAE/B,KAAK,IAAQQ,oBACX,OAAO,OAAP,wBACKL,GAAK,CACRF,SAAUG,EAAOG,QAAQN,WAE7B,KAAK,IAAQQ,qBAAsB,CACjC,MAAM,WAAET,GAAeG,GAErBI,SAAS,QAAEL,IACTE,EACJ,OAAO,OAAP,wBACKD,GAAK,CACRH,aAAcE,GAAWF,EACzBE,YAGJ,QACE,OAAOC,K,kCCtCb,wCAIe,oCAAgB,CAC7B,CAAC,KAAwB","file":"webterminal-plugin/code-refs/reduxReducer-chunk-7e26163101c1def64b0e.min.js","sourcesContent":["import { CloudShellActions, Actions } from '../actions/cloud-shell-actions';\n\ntype State = {\n isExpanded: boolean;\n isActive: boolean;\n command: string | null;\n};\n\nconst initialState: State = {\n isExpanded: false,\n isActive: false,\n command: null,\n};\n\nexport default (state = initialState, action: CloudShellActions): State => {\n switch (action.type) {\n case Actions.SetCloudShellExpanded:\n return {\n ...state,\n isExpanded: action.payload.isExpanded,\n };\n case Actions.SetCloudShellActive:\n return {\n ...state,\n isActive: action.payload.isActive,\n };\n case Actions.SetCloudShellCommand: {\n const { isExpanded } = state;\n const {\n payload: { command },\n } = action;\n return {\n ...state,\n isExpanded: !!command || isExpanded,\n command,\n };\n }\n default:\n return state;\n }\n};\n","import { combineReducers } from 'redux';\nimport cloudShellReducer from './reducers/cloud-shell-reducer';\nimport { cloudShellReducerName } from './reducers/cloud-shell-selectors';\n\nexport default combineReducers({\n [cloudShellReducerName]: cloudShellReducer,\n});\n"],"sourceRoot":""}