{"version":3,"sources":["webpack:///./Scripts/Reducers/LightboxImages.reducer.js"],"names":["defaultState","index","visible","lightboxImages","state","action","type","payload","LIGHTBOX_IMAGES_SET_CURRENT_IMAGE","LIGHTBOX_IMAGES_SHOW"],"mappings":"sIAKA,MAAMA,EAAe,CACjBC,MAAO,EACPC,SAAS,GAGAC,EAAiB,CAACC,EAAQJ,EAAcK,KACjD,MAAM,KAAEC,EAAF,QAAQC,GAAYF,EAC1B,OAAQC,GACJ,KAAKE,KACL,KAAKC,KACD,MAAO,IACAL,KACAG,GAEX,QACI,OAAOH","file":"929.d4cc3e6846b5ba59e2a1.js","sourcesContent":["import {\r\n    LIGHTBOX_IMAGES_SET_CURRENT_IMAGE,\r\n    LIGHTBOX_IMAGES_SHOW,\r\n} from '../constants';\r\n\r\nconst defaultState = {\r\n    index: 0,\r\n    visible: false,\r\n};\r\n\r\nexport const lightboxImages = (state = defaultState, action) => {\r\n    const { type, payload } = action;\r\n    switch (type) {\r\n        case LIGHTBOX_IMAGES_SET_CURRENT_IMAGE:\r\n        case LIGHTBOX_IMAGES_SHOW:\r\n            return {\r\n                ...state,\r\n                ...payload,\r\n            };\r\n        default:\r\n            return state;\r\n    }\r\n};\r\n"],"sourceRoot":""}