File: //home/arjun/projects/buyercall/buyercall/assets/vue/widgets/CommWidget/store/root/index.js
import mutations from './mutations.js';
import actions from './actions.js';
import getters from './getters.js';
import { SCREEN_WELCOME } from '../../constants';
// import { globalConfig } from '../../InitialConfig';
export const initialState = {
isOpen: false,
position: 'LEFT', // RIGHT, LEFT
loadingWidgetConfiguration: false,
widgetThemeColor: [72, 90, 255],
screenInfo: {
name: SCREEN_WELCOME,
prev: '',
},
bottomTabOptions: [
{
name: 'financing',
},
{
name: 'hours',
},
{
name: 'map',
},
{
name: 'trade',
},
],
bottomTabSelectedOption: null,
error: null,
partnershipID: null,
widgetId: null,
partnership_account_id: null,
config: {
isWidgetIcon: true, //identify the widget is an icon or icon plus image,
leftAligned: true,
screenTitleOne: 'Hi there!',
screenTitleTwo: 'How can we help you?',
screenSubTitle: "Here's a few quick ways to connect with us.",
},
agents: [],
showPoweredBCIcon: true,
windowWidth: window.innerWidth,
rasaInitialMessages: [],
};
export default {
namespaced: true,
state: initialState,
getters,
actions,
mutations,
};