UNPKG

@choerodon/master

Version:
783 lines (695 loc) 34.4 kB
var _dec, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22; function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; } function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); } import { action, computed, observable } from 'mobx'; import omit from 'object.omit'; import sortBy from 'lodash/sortBy'; import findIndex from 'lodash/findIndex'; import pick from 'lodash/pick'; import queryString from 'query-string'; import { handleResponseError } from "../../../utils"; import store from "../../components/c7n/tools/store"; import axios from "../../../components/axios"; var ORGANIZATION_TYPE = 'organization'; var PROJECT_TYPE = 'project'; function findDataIndex(collection, value) { return collection ? collection.findIndex(function (_ref) { var id = _ref.id, organizationId = _ref.organizationId; return String(id) === String(value.id) && (!organizationId && !value.organizationId || String(organizationId) === String(value.organizationId)); }) : -1; } // 保留多少recent内容 function saveRecent() { var collection = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; var value = arguments.length > 1 ? arguments[1] : undefined; var number = arguments.length > 2 ? arguments[2] : undefined; var index = findDataIndex(collection, value); if (index !== -1) { collection.splice(index, 1); return [value].concat(collection.slice()); } collection.unshift(value); return collection.slice(0, number); } var HeaderStore = (_dec = store('HeaderStore'), _dec(_class = (_class2 = /*#__PURE__*/function () { function HeaderStore() { _classCallCheck(this, HeaderStore); _initializerDefineProperty(this, "roles", _descriptor, this); _initializerDefineProperty(this, "announcementLists", _descriptor2, this); _initializerDefineProperty(this, "orgData", _descriptor3, this); _initializerDefineProperty(this, "proData", _descriptor4, this); _initializerDefineProperty(this, "selected", _descriptor5, this); _initializerDefineProperty(this, "recentItem", _descriptor6, this); _initializerDefineProperty(this, "userPreferenceVisible", _descriptor7, this); _initializerDefineProperty(this, "menuTypeVisible", _descriptor8, this); _initializerDefineProperty(this, "inboxVisible", _descriptor9, this); _initializerDefineProperty(this, "inboxDetailVisible", _descriptor10, this); _initializerDefineProperty(this, "inboxDetail", _descriptor11, this); _initializerDefineProperty(this, "inboxData", _descriptor12, this); _initializerDefineProperty(this, "inboxActiveKey", _descriptor13, this); _initializerDefineProperty(this, "stickData", _descriptor14, this); _initializerDefineProperty(this, "inboxLoaded", _descriptor15, this); _initializerDefineProperty(this, "currentMsgType", _descriptor16, this); _initializerDefineProperty(this, "announcement", _descriptor17, this); _initializerDefineProperty(this, "inboxLoading", _descriptor18, this); _initializerDefineProperty(this, "isTodo", _descriptor19, this); _initializerDefineProperty(this, "showSiteMenu", _descriptor20, this); _initializerDefineProperty(this, "unreadMessageCount", _descriptor21, this); _initializerDefineProperty(this, "notificationKeyList", _descriptor22, this); } _createClass(HeaderStore, [{ key: "setInboxActiveKey", value: function setInboxActiveKey(flag) { this.inboxActiveKey = flag; } // 插入公告 }, { key: "innsertAnnouncement", value: function innsertAnnouncement(identity, data) { var _this$announcementLis; (_this$announcementLis = this.announcementLists) === null || _this$announcementLis === void 0 ? void 0 : _this$announcementLis.set(identity, data); } // 删除公告 }, { key: "deleteAnnouncement", value: function deleteAnnouncement(identity) { var _this$announcementLis2; (_this$announcementLis2 = this.announcementLists) === null || _this$announcementLis2 === void 0 ? void 0 : _this$announcementLis2["delete"](identity); } // 获取公告列表,Map }, { key: "getAnnouncementLists", get: function get() { return this.announcementLists; } // 是否公告列表中有某个key, 默认是公告的key }, { key: "existAnnouncement", value: function existAnnouncement(key) { return this.announcementLists.has(key || 'platform_announcement'); } }, { key: "setIsTodo", value: function setIsTodo(_isTodo) { this.isTodo = _isTodo; } }, { key: "setInboxDetailVisible", value: function setInboxDetailVisible(value) { this.inboxDetailVisible = value; } }, { key: "setInboxDetail", value: function setInboxDetail(value) { this.inboxDetail = value; } }, { key: "setInboxLoaded", value: function setInboxLoaded(flag) { this.inboxLoaded = flag; } }, { key: "setInboxLoading", value: function setInboxLoading(flag) { this.inboxLoading = flag; } }, { key: "getRoles", get: function get() { return this.roles; } }, { key: "setRoles", value: function setRoles(data) { this.roles = data; } }, { key: "axiosGetRoles", value: function axiosGetRoles() { var _this = this; axios({ url: 'iam/hzero/v1/member-roles/self-roles', method: 'get' }).then(function (res) { _this.setRoles(res); }); } }, { key: "getInboxActiveKey", get: function get() { return this.inboxActiveKey; } }, { key: "getIsTodo", get: function get() { return this.isTodo; } }, { key: "getUnreadAll", get: function get() { return this.inboxData.slice(); } }, { key: "getUnreadMsg", get: function get() { var _this2 = this; return sortBy(this.inboxData.filter(function (item) { return !_this2.isTodo || item.backlogFlag; }), ['read']); } }, { key: "getUnreadNotice", get: function get() { return sortBy(this.inboxData, ['read']); } }, { key: "getUnreadOther", get: function get() { return this.stickData; } }, { key: "getCurrentMsgType", get: function get() { return this.currentMsgType; } }, { key: "setCurrentMsgType", value: function setCurrentMsgType(newType) { this.currentMsgType = newType; } }, { key: "getSelected", get: function get() { return this.selected; } }, { key: "setSelected", value: function setSelected(data) { this.selected = data; } }, { key: "getOrgData", get: function get() { return this.orgData; } }, { key: "setOrgData", value: function setOrgData(data) { this.orgData = data; } }, { key: "getProData", get: function get() { return this.proData; } }, { key: "setUserPreferenceVisible", value: function setUserPreferenceVisible(userPreferenceVisible) { this.userPreferenceVisible = userPreferenceVisible; } }, { key: "setMenuTypeVisible", value: function setMenuTypeVisible(menuTypeVisible) { this.menuTypeVisible = menuTypeVisible; } }, { key: "setInboxVisible", value: function setInboxVisible(inboxVisible) { this.inboxVisible = inboxVisible; } }, { key: "getShowSiteMenu", get: function get() { return this.showSiteMenu; } }, { key: "setShowSiteMenu", value: function setShowSiteMenu(flag) { this.showSiteMenu = flag; } }, { key: "getUnreadMessageCount", get: function get() { return this.unreadMessageCount; } }, { key: "setUnreadMessageCount", value: function setUnreadMessageCount(data) { this.unreadMessageCount = data; } }, { key: "axiosGetPro", value: function axiosGetPro(key, value) { var _this3 = this; return axios.post('/iam/choerodon/v1/projects/query_by_option', _defineProperty({}, key, value)).then(function (res) { _this3.addProject(res[0]); return res[0]; }); } }, { key: "axiosGetOrgAndPro", value: function axiosGetOrgAndPro(userId) { var _this4 = this; return axios({ method: 'get', url: '/iam/choerodon/v1/users/self-tenants' }).then(function (data) { data.forEach(function (value) { value.id = value.tenantId; value.name = value === null || value === void 0 ? void 0 : value.tenantName; value.organizationId = value.id; value.type = ORGANIZATION_TYPE; }); _this4.setOrgData(data); return data; }); } }, { key: "axiosGetStick", value: function axiosGetStick() { var _this5 = this; return axios.get("/hmsg/choerodon/v1/system_notice/completed?".concat(queryString.stringify({ page: 1, size: 9999 }))).then(action(function (_ref2) { var content = _ref2.content; _this5.stickData = content || []; }))["catch"](handleResponseError); } }, { key: "axiosGetUserMsg", value: function axiosGetUserMsg(userId) { var _this6 = this; var params = new URLSearchParams(); params.append('user_id', userId); params.append('page', 0); params.append('size', 9999); params.append('sort', 'read_flag,asc'); params.append('sort', 'creationDate,desc'); params.append('withContent', 1); var request = { params: params }; return axios.get('/hmsg/v1/0/messages/user', request).then(action(function (_ref3) { var list = _ref3.list; if (list && list.length) { list.forEach(function (item) { var messageId = item.messageId, subject = item.subject, creationDate = item.creationDate, readFlag = item.readFlag; item.read = readFlag === 1; item.id = messageId; item.title = subject; item.sendTime = creationDate; }); } _this6.inboxData = list || []; _this6.inboxLoading = false; _this6.inboxLoaded = true; }))["catch"](handleResponseError)["finally"](function () { _this6.inboxLoading = false; }); } }, { key: "axiosShowSiteMenu", value: function axiosShowSiteMenu() { var _this7 = this; return axios({ url: '/iam/choerodon/v1/menus/site_menu_flag', method: 'get' }).then(action(function (data) { _this7.setShowSiteMenu(data); }))["catch"](function () { _this7.setShowSiteMenu(false); }); } }, { key: "axiosGetUnreadMessageCount", value: function axiosGetUnreadMessageCount() { var _this8 = this; return axios({ url: 'hmsg/v1/0/messages/user/count', method: 'get' }).then(action(function (data) { _this8.setUnreadMessageCount(data ? data.unreadMessageCount : 0); }))["catch"](function () { _this8.setUnreadMessageCount(0); }); } }, { key: "setProData", value: function setProData(data) { this.proData = data; } }, { key: "addProject", value: function addProject(project) { project.type = PROJECT_TYPE; if (this.proData) { this.proData.unshift(project); } else { this.proData = [project]; } } }, { key: "updateProject", value: function updateProject(project) { project.type = PROJECT_TYPE; if (this.proData) { var index = this.proData.findIndex(function (_ref4) { var id = _ref4.id; return id === project.id; }); if (index !== -1) { this.proData.splice(index, 1, project); } } this.updateRecentItem(project); } }, { key: "addOrg", value: function addOrg(org) { org.type = ORGANIZATION_TYPE; if (this.orgData) { this.orgData.unshift(org); } else { this.orgData = [org]; } } }, { key: "updateOrg", value: function updateOrg(org) { org.type = ORGANIZATION_TYPE; if (this.orgData) { var index = this.orgData.findIndex(function (_ref5) { var id = _ref5.id; return id === org.id; }); if (index !== -1) { this.orgData.splice(index, 1, org); } } this.updateRecentItem(org); } }, { key: "getRecentItem", get: function get() { var recents = []; if (this.recentItem) { recents = this.recentItem; } else if (localStorage.recentItem) { recents = JSON.parse(localStorage.recentItem).map(function (recent) { return omit(recent, 'children'); }); } return recents; } }, { key: "readMsg", value: function readMsg(userId, data, readAll) { // const body = (data ? [].concat(data) : this.inboxData).map(({ id }) => id); var param = data && data.userMessageId ? "&userMessageIdList=".concat(data.userMessageId) : ''; this.lookMsg(data); return axios.post("/hmsg/v1/0/messages/user/read-flag?readAll=".concat(readAll, "&user_id=").concat(userId).concat(param)); } }, { key: "deleteMsg", value: function deleteMsg(userId, data) { // const body = (data ? [].concat(data) : this.inboxData).map(({ id }) => id); var param = data && data.userMessageId ? "&userMessageIdList=".concat(data.userMessageId) : ''; this.clearMsg(data); return axios["delete"]("/hmsg/v1/0/messages/user?user_id=".concat(userId).concat(param)); } }, { key: "cleanAllMsg", value: function cleanAllMsg(userId, data) { // const body = (data ? [].concat(data) : this.inboxData).map(({ id }) => id); this.clearMsg(data); return axios["delete"]("/hmsg/choerodon/v1/messages/user/delete_all?user_id=".concat(userId)); } }, { key: "lookMsg", value: function lookMsg(data) { if (data) { var findData = pick(data, ['id']); var index = findIndex(this.inboxData, findData); if (index !== -1) { this.inboxData[index].read = true; } } else { this.inboxData.forEach(function (list) { list.read = true; }); } } }, { key: "clearMsg", value: function clearMsg(data) { if (data) { var index = this.inboxData.indexOf(data); if (index !== -1) { this.inboxData.splice(index, 1); this.inboxData = _toConsumableArray(this.inboxData); } } else { this.inboxData = []; } } }, { key: "loadMsgDetail", value: function () { var _loadMsgDetail = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(messageId) { var res; return regeneratorRuntime.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: _context.prev = 0; _context.next = 3; return axios.get("/hmsg/choerodon/v1/messages/".concat(messageId)); case 3: res = _context.sent; if (!(res && !res.failed)) { _context.next = 6; break; } return _context.abrupt("return", _objectSpread(_objectSpread({}, res), {}, { id: res.messageId, title: res.subject, sendTime: res.creationDate })); case 6: return _context.abrupt("return", false); case 9: _context.prev = 9; _context.t0 = _context["catch"](0); return _context.abrupt("return", false); case 12: case "end": return _context.stop(); } } }, _callee, null, [[0, 9]]); })); function loadMsgDetail(_x) { return _loadMsgDetail.apply(this, arguments); } return loadMsgDetail; }() }, { key: "updateRecentItem", value: function updateRecentItem(recent) { if (recent) { var recentItem = JSON.parse(localStorage.recentItem); var index = recentItem.findIndex(function (_ref6) { var id = _ref6.id, organizationId = _ref6.organizationId; return id === recent.id && (!organizationId || organizationId === recent.organizationId); }); if (index !== -1) { recentItem.splice(index, 1, recent); localStorage.recentItem = JSON.stringify(recentItem); this.recentItem = recentItem; } } } }, { key: "setRecentItem", value: function setRecentItem(recent) { if (recent) { var recentItem = saveRecent(this.getRecentItem, omit(recent, 'children'), 10); localStorage.recentItem = JSON.stringify(recentItem); this.recentItem = recentItem; } } }]); return HeaderStore; }(), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "roles", [observable], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return []; } }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "announcementLists", [observable], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return new Map([]); } }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "orgData", [observable], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "proData", [observable], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "selected", [observable], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "recentItem", [observable], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "userPreferenceVisible", [observable], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return false; } }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "menuTypeVisible", [observable], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return false; } }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "inboxVisible", [observable], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return false; } }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "inboxDetailVisible", [observable], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return false; } }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "inboxDetail", [observable], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "inboxData", [observable], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return []; } }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "inboxActiveKey", [observable], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return '1'; } }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "stickData", [observable], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return []; } }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "inboxLoaded", [observable], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return false; } }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "currentMsgType", [observable], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return 'msg'; } }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, "announcement", [observable], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return {}; } }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, "inboxLoading", [observable], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return true; } }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, "isTodo", [observable], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return false; } }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, "showSiteMenu", [observable], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return false; } }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, "unreadMessageCount", [observable], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return 0; } }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, "notificationKeyList", [observable], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return new Set(); } }), _applyDecoratedDescriptor(_class2.prototype, "setInboxActiveKey", [action], Object.getOwnPropertyDescriptor(_class2.prototype, "setInboxActiveKey"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "innsertAnnouncement", [action], Object.getOwnPropertyDescriptor(_class2.prototype, "innsertAnnouncement"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "deleteAnnouncement", [action], Object.getOwnPropertyDescriptor(_class2.prototype, "deleteAnnouncement"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "getAnnouncementLists", [computed], Object.getOwnPropertyDescriptor(_class2.prototype, "getAnnouncementLists"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "setIsTodo", [action], Object.getOwnPropertyDescriptor(_class2.prototype, "setIsTodo"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "setInboxDetailVisible", [action], Object.getOwnPropertyDescriptor(_class2.prototype, "setInboxDetailVisible"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "setInboxDetail", [action], Object.getOwnPropertyDescriptor(_class2.prototype, "setInboxDetail"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "setInboxLoaded", [action], Object.getOwnPropertyDescriptor(_class2.prototype, "setInboxLoaded"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "setInboxLoading", [action], Object.getOwnPropertyDescriptor(_class2.prototype, "setInboxLoading"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "getRoles", [computed], Object.getOwnPropertyDescriptor(_class2.prototype, "getRoles"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "setRoles", [action], Object.getOwnPropertyDescriptor(_class2.prototype, "setRoles"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "getInboxActiveKey", [computed], Object.getOwnPropertyDescriptor(_class2.prototype, "getInboxActiveKey"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "getIsTodo", [computed], Object.getOwnPropertyDescriptor(_class2.prototype, "getIsTodo"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "getUnreadAll", [computed], Object.getOwnPropertyDescriptor(_class2.prototype, "getUnreadAll"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "getUnreadMsg", [computed], Object.getOwnPropertyDescriptor(_class2.prototype, "getUnreadMsg"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "getUnreadNotice", [computed], Object.getOwnPropertyDescriptor(_class2.prototype, "getUnreadNotice"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "getUnreadOther", [computed], Object.getOwnPropertyDescriptor(_class2.prototype, "getUnreadOther"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "getCurrentMsgType", [computed], Object.getOwnPropertyDescriptor(_class2.prototype, "getCurrentMsgType"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "setCurrentMsgType", [action], Object.getOwnPropertyDescriptor(_class2.prototype, "setCurrentMsgType"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "getSelected", [computed], Object.getOwnPropertyDescriptor(_class2.prototype, "getSelected"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "setSelected", [action], Object.getOwnPropertyDescriptor(_class2.prototype, "setSelected"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "getOrgData", [computed], Object.getOwnPropertyDescriptor(_class2.prototype, "getOrgData"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "setOrgData", [action], Object.getOwnPropertyDescriptor(_class2.prototype, "setOrgData"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "getProData", [computed], Object.getOwnPropertyDescriptor(_class2.prototype, "getProData"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "setUserPreferenceVisible", [action], Object.getOwnPropertyDescriptor(_class2.prototype, "setUserPreferenceVisible"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "setMenuTypeVisible", [action], Object.getOwnPropertyDescriptor(_class2.prototype, "setMenuTypeVisible"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "setInboxVisible", [action], Object.getOwnPropertyDescriptor(_class2.prototype, "setInboxVisible"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "getShowSiteMenu", [computed], Object.getOwnPropertyDescriptor(_class2.prototype, "getShowSiteMenu"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "setShowSiteMenu", [action], Object.getOwnPropertyDescriptor(_class2.prototype, "setShowSiteMenu"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "getUnreadMessageCount", [computed], Object.getOwnPropertyDescriptor(_class2.prototype, "getUnreadMessageCount"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "setUnreadMessageCount", [action], Object.getOwnPropertyDescriptor(_class2.prototype, "setUnreadMessageCount"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "setProData", [action], Object.getOwnPropertyDescriptor(_class2.prototype, "setProData"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "addProject", [action], Object.getOwnPropertyDescriptor(_class2.prototype, "addProject"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "updateProject", [action], Object.getOwnPropertyDescriptor(_class2.prototype, "updateProject"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "addOrg", [action], Object.getOwnPropertyDescriptor(_class2.prototype, "addOrg"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "updateOrg", [action], Object.getOwnPropertyDescriptor(_class2.prototype, "updateOrg"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "getRecentItem", [computed], Object.getOwnPropertyDescriptor(_class2.prototype, "getRecentItem"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "readMsg", [action], Object.getOwnPropertyDescriptor(_class2.prototype, "readMsg"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "deleteMsg", [action], Object.getOwnPropertyDescriptor(_class2.prototype, "deleteMsg"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "cleanAllMsg", [action], Object.getOwnPropertyDescriptor(_class2.prototype, "cleanAllMsg"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "lookMsg", [action], Object.getOwnPropertyDescriptor(_class2.prototype, "lookMsg"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "clearMsg", [action], Object.getOwnPropertyDescriptor(_class2.prototype, "clearMsg"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "loadMsgDetail", [action], Object.getOwnPropertyDescriptor(_class2.prototype, "loadMsgDetail"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "updateRecentItem", [action], Object.getOwnPropertyDescriptor(_class2.prototype, "updateRecentItem"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "setRecentItem", [action], Object.getOwnPropertyDescriptor(_class2.prototype, "setRecentItem"), _class2.prototype)), _class2)) || _class); var headerStore = new HeaderStore(); export default headerStore;