{"remainingRequest":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/mer.ws.baibaodun.com.cn/src/store/modules/app.js","dependencies":[{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/src/store/modules/app.js","mtime":1701742078551},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/babel.config.js","mtime":1701742078504},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/babel-loader/lib/index.js","mtime":456789000000}],"contextDependencies":[],"result":["// +----------------------------------------------------------------------\n// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]\n// +----------------------------------------------------------------------\n// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.\n// +----------------------------------------------------------------------\n// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权\n// +----------------------------------------------------------------------\n// | Author: CRMEB Team <admin@crmeb.com>\n// +----------------------------------------------------------------------\n\nimport 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') || 'mini'\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]}