{"remainingRequest":"/Users/admin/projects/dms/src/dealer_admin/node_modules/thread-loader/dist/cjs.js!/Users/admin/projects/dms/src/dealer_admin/node_modules/babel-loader/lib/index.js!/Users/admin/projects/dms/src/dealer_admin/src/store/modules/app.js","dependencies":[{"path":"/Users/admin/projects/dms/src/dealer_admin/src/store/modules/app.js","mtime":1713161556000},{"path":"/Users/admin/projects/dms/src/dealer_admin/babel.config.js","mtime":1713161556000},{"path":"/Users/admin/projects/dms/src/dealer_admin/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/admin/projects/dms/src/dealer_admin/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/admin/projects/dms/src/dealer_admin/node_modules/babel-loader/lib/index.js","mtime":456789000000}],"contextDependencies":[],"result":["import Cookies from 'js-cookie';\nvar state = {\n  sidebar: {\n    opened: Cookies.get('sidebarStatus') ? !!+Cookies.get('sidebarStatus') : true,\n    withoutAnimation: false\n  },\n  device: 'desktop',\n  size: Cookies.get('size') || 'medium'\n};\nvar mutations = {\n  TOGGLE_SIDEBAR: function TOGGLE_SIDEBAR(state) {\n    state.sidebar.opened = !state.sidebar.opened;\n    state.sidebar.withoutAnimation = false;\n    if (state.sidebar.opened) {\n      Cookies.set('sidebarStatus', 1);\n    } else {\n      Cookies.set('sidebarStatus', 0);\n    }\n  },\n  CLOSE_SIDEBAR: function CLOSE_SIDEBAR(state, withoutAnimation) {\n    Cookies.set('sidebarStatus', 0);\n    state.sidebar.opened = false;\n    state.sidebar.withoutAnimation = withoutAnimation;\n  },\n  TOGGLE_DEVICE: function TOGGLE_DEVICE(state, device) {\n    state.device = device;\n  },\n  SET_SIZE: function SET_SIZE(state, size) {\n    state.size = size;\n    Cookies.set('size', size);\n  }\n};\nvar actions = {\n  toggleSideBar: function toggleSideBar(_ref) {\n    var commit = _ref.commit;\n    commit('TOGGLE_SIDEBAR');\n  },\n  closeSideBar: function closeSideBar(_ref2, _ref3) {\n    var commit = _ref2.commit;\n    var withoutAnimation = _ref3.withoutAnimation;\n    commit('CLOSE_SIDEBAR', withoutAnimation);\n  },\n  toggleDevice: function toggleDevice(_ref4, device) {\n    var commit = _ref4.commit;\n    commit('TOGGLE_DEVICE', device);\n  },\n  setSize: function setSize(_ref5, size) {\n    var commit = _ref5.commit;\n    commit('SET_SIZE', size);\n  }\n};\nexport default {\n  namespaced: true,\n  state: state,\n  mutations: mutations,\n  actions: actions\n};",null]}