import * as actions from './actions'
import getters from './getters'
import mutations from './mutations'
import { ESHOP_FOCPWP_SELECTED_IDS, ESHOP_FOCPWP_ELIGIBLE_PROMOTIONS } from '../../../utils/localStorageKeys'

const state = {
  orderFees: [],
  products: [],
  kittings: [],
  promotion: JSON.parse(localStorage.getItem(ESHOP_FOCPWP_ELIGIBLE_PROMOTIONS)) || [],
  selectedFocItems: [],
  selectedPwpItems: [],
  selectedFocPwpItems: JSON.parse(localStorage.getItem(ESHOP_FOCPWP_SELECTED_IDS)) || [],
  focSelectionComplete: false,
  pwpSelectionComplete: false,
  pwpFocSelectionComplete: false,
}

export default {
  state,
  actions,
  mutations,
  getters,
}
