@choerodon/master
Version:
A package of Master for Choerodon platform.
688 lines (607 loc) • 31.2 kB
JavaScript
var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20;
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 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 _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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure 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 _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 _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
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 axios from "../../../components/axios";
function getDefaultLanguage() {
var locale;
if (typeof window !== 'undefined') {// locale = navigator.language || navigator.userLanguage || navigator.systemLanguage;
}
return locale ? locale.replace('-', '_') : 'zh_CN';
}
var AppState = (_class = /*#__PURE__*/function () {
function AppState() {
var _this = this;
_classCallCheck(this, AppState);
_initializerDefineProperty(this, "isSaasList", _descriptor, this);
_initializerDefineProperty(this, "helpDocUrl", _descriptor2, this);
_initializerDefineProperty(this, "starProject", _descriptor3, this);
_initializerDefineProperty(this, "recentUse", _descriptor4, this);
_initializerDefineProperty(this, "dropDownPro", _descriptor5, this);
_initializerDefineProperty(this, "currentTheme", _descriptor6, this);
_initializerDefineProperty(this, "currentProject", _descriptor7, this);
_initializerDefineProperty(this, "menuType", _descriptor8, this);
_initializerDefineProperty(this, "expanded", _descriptor9, this);
_initializerDefineProperty(this, "guideExpanded", _descriptor10, this);
_initializerDefineProperty(this, "userInfo", _descriptor11, this);
_initializerDefineProperty(this, "userWizardList", _descriptor12, this);
_initializerDefineProperty(this, "userWizardStatus", _descriptor13, this);
_initializerDefineProperty(this, "siteInfo", _descriptor14, this);
_initializerDefineProperty(this, "debugger", _descriptor15, this);
_initializerDefineProperty(this, "isUser", _descriptor16, this);
_initializerDefineProperty(this, "modules", _descriptor17, this);
_initializerDefineProperty(this, "deployServices", _descriptor18, this);
_initializerDefineProperty(this, "projectCategorys", _descriptor19, this);
_initializerDefineProperty(this, "canShowRoute", _descriptor20, this);
this.getProjects = function () {
if (_this.currentMenuType.organizationId) {
var recentProjectPromise = axios.get("/iam/choerodon/v1/organizations/".concat(_this.currentMenuType.organizationId, "/projects/latest_visit"), {
enabledCancelCache: false,
enabledCancelRoute: false
});
var starProjectPromise = axios.get("/iam/choerodon/v1/organizations/".concat(_this.menuType.organizationId, "/star_projects"), {
enabledCancelCache: false,
enabledCancelRoute: false
});
Promise.all([recentProjectPromise, starProjectPromise]).then(function (res) {
var _res = _slicedToArray(res, 2),
_res$ = _res[0],
recentProjectData = _res$ === void 0 ? [] : _res$,
_res$2 = _res[1],
starProjectData = _res$2 === void 0 ? [] : _res$2; // recentProjectData?.splice(0, 3) 这里不清楚当时为什么只要3个 先注释看看问题
var tempRecentProjectData = recentProjectData === null || recentProjectData === void 0 ? void 0 : recentProjectData.map(function (i) {
return _objectSpread(_objectSpread({}, i), i.projectDTO);
}); // starProjectData.splice(0, 6)
var tempStarProjectData = starProjectData;
_this.setRecentUse(tempRecentProjectData);
_this.setStarProject(tempStarProjectData);
_this.setCurrentDropDown(tempRecentProjectData, tempStarProjectData);
});
}
};
this.setCurrentDropDown = function (data1, data2) {
var params = new URLSearchParams(window.location.hash.split('?')[1]);
var type = params.get('type');
var id = params.get('id');
if (type && type === 'project' && (data1 && data1.length > 0 || data2 && data2.length > 0)) {
var flag = data1.find(function (i) {
return String(i.id) === String(id);
}) || data2.find(function (i) {
return String(i.id) === String(id);
});
if (flag) {
// 最近使用
_this.setDropDownPro("\u9879\u76EE: ".concat(flag.name));
} else {
_this.setDropDownPro();
}
} else {
_this.setDropDownPro();
}
};
this.loadUserInfo = function () {
return axios.get('iam/choerodon/v1/users/self', {
enabledCancelCache: false,
enabledCancelRoute: false
}).then(function (res) {
var _res2, _res3;
res = _objectSpread(_objectSpread({}, res), {}, {
organizationName: (_res2 = res) === null || _res2 === void 0 ? void 0 : _res2.tenantName,
organizationCode: (_res3 = res) === null || _res3 === void 0 ? void 0 : _res3.tenantNum
});
_this.setUserInfo(res);
return res;
});
};
this.loadUserWizard = function (organizationId) {
return axios.get("/iam/choerodon/v1/organizations/".concat(organizationId, "/user_wizard/list"), {
enabledCancelCache: false,
enabledCancelRoute: false
}).then(function (res) {
if (Array.isArray(res)) {
_this.setUserWizardList(res);
} else {
_this.setUserWizardList('');
}
return res;
});
};
this.loadUserWizardStatus = function (organizationId) {
return axios.get("/iam/choerodon/v1/organizations/".concat(organizationId, "/user_wizard/list_status"), {
enabledCancelCache: false,
enabledCancelRoute: false
}).then(function (res) {
if (Array.isArray(res)) {
_this.setUserWizardStatus(res);
} else {
_this.setUserWizardStatus('');
}
return res;
});
};
this.loadSiteInfo = function () {
return axios.get('/iam/choerodon/v1/system/setting', {
enabledCancelCache: false,
enabledCancelRoute: false
});
};
this.checkEnterpriseInfo = function () {
return axios.get('/iam/choerodon/v1/enterprises/default', {
enabledCancelCache: false,
enabledCancelRoute: false
});
};
this.loadModules = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
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('/hadm/choerodon/v1/services/model', {
enabledCancelCache: false,
enabledCancelRoute: false
});
case 3:
res = _context.sent;
if (res && !res.failed) {
_this.modules = res;
}
_context.next = 9;
break;
case 7:
_context.prev = 7;
_context.t0 = _context["catch"](0);
case 9:
case "end":
return _context.stop();
}
}
}, _callee, null, [[0, 7]]);
}));
this.loadDeployServices = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
var res;
return regeneratorRuntime.wrap(function _callee2$(_context2) {
while (1) {
switch (_context2.prev = _context2.next) {
case 0:
_context2.prev = 0;
_context2.next = 3;
return axios.get('/hadm/choerodon/v1/services', {
enabledCancelCache: false,
enabledCancelRoute: false
});
case 3:
res = _context2.sent;
if (res && !res.failed) {
_this.deployServices = res;
}
_context2.next = 9;
break;
case 7:
_context2.prev = 7;
_context2.t0 = _context2["catch"](0);
case 9:
case "end":
return _context2.stop();
}
}
}, _callee2, null, [[0, 7]]);
}));
}
_createClass(AppState, [{
key: "getIsSaasList",
get: function get() {
return this.isSaasList;
}
}, {
key: "setIsSaasList",
value: function setIsSaasList(data) {
this.isSaasList = data;
}
}, {
key: "getDocUrl",
get: function get() {
return this.helpDocUrl;
}
}, {
key: "setDocUrl",
value: function setDocUrl(str) {
this.helpDocUrl = str;
}
}, {
key: "getDropDownPro",
get: function get() {
return this.dropDownPro;
}
}, {
key: "setDropDownPro",
value: function setDropDownPro(data) {
this.dropDownPro = data;
}
}, {
key: "getStarProject",
get: function get() {
return this.starProject;
}
}, {
key: "getRecentUse",
get: function get() {
return this.recentUse;
}
}, {
key: "setStarProject",
value: function setStarProject(data) {
this.starProject = data;
}
}, {
key: "setRecentUse",
value: function setRecentUse(data) {
this.recentUse = data;
}
}, {
key: "getCanShowRoute",
get: function get() {
return this.canShowRoute;
}
}, {
key: "setCanShowRoute",
value: function setCanShowRoute(data) {
this.canShowRoute = data;
}
}, {
key: "getProjectCategorys",
get: function get() {
return this.projectCategorys;
}
}, {
key: "setProjectCategorys",
value: function setProjectCategorys(id, categorys) {
this.projectCategorys[id] = categorys;
}
}, {
key: "getCurrentTheme",
get: function get() {
return this.currentTheme;
}
}, {
key: "setCurrentTheme",
value: function setCurrentTheme(data) {
this.currentTheme = data;
}
}, {
key: "getCurrentProject",
get: function get() {
return this.currentProject;
}
}, {
key: "setCurrentProject",
value: function setCurrentProject(data) {
this.currentProject = data;
}
}, {
key: "getUserId",
get: function get() {
return this.userInfo.id;
}
}, {
key: "getDebugger",
get: function get() {
return this["debugger"];
}
}, {
key: "setDebugger",
value: function setDebugger(data) {
this["debugger"] = data;
}
}, {
key: "getType",
get: function get() {
return this.currentMenuType.type;
}
}, {
key: "getUserInfo",
get: function get() {
return this.userInfo;
}
}, {
key: "setUserInfo",
value: function setUserInfo(user) {
this.userInfo = user;
}
}, {
key: "getUserWizardList",
get: function get() {
return this.userWizardList;
}
}, {
key: "setUserWizardList",
value: function setUserWizardList(list) {
this.userWizardList = list;
}
}, {
key: "getUserWizardStatus",
get: function get() {
return this.userWizardStatus;
}
}, {
key: "setUserWizardStatus",
value: function setUserWizardStatus(list) {
this.userWizardStatus = list;
}
}, {
key: "setSiteInfo",
value: function setSiteInfo(site) {
this.siteInfo = site;
}
}, {
key: "getSiteInfo",
get: function get() {
return this.siteInfo;
}
}, {
key: "getMenuExpanded",
get: function get() {
return this.expanded;
}
}, {
key: "setMenuExpanded",
value: function setMenuExpanded(data) {
this.expanded = data;
}
}, {
key: "getGuideExpanded",
get: function get() {
return this.guideExpanded;
}
}, {
key: "setGuideExpanded",
value: function setGuideExpanded(data) {
this.guideExpanded = data;
}
}, {
key: "currentLanguage",
get: function get() {
return this.userInfo.language || getDefaultLanguage();
}
}, {
key: "isAuth",
get: function get() {
return !!this.userInfo.loginName;
}
}, {
key: "currentMenuType",
get: function get() {
return this.menuType;
}
}, {
key: "currentOrginazationOrProjectId",
get: function get() {
var _this$menuType = this.menuType,
id = _this$menuType.id,
type = _this$menuType.type,
organizationId = _this$menuType.organizationId;
if (type === 'project') return id;
if (type === 'organization') return id || organizationId;
return null;
}
}, {
key: "setAuthenticated",
value: function setAuthenticated(flag) {
this.isAuthenticated = flag;
}
/**
* 根据menutype是否为项目层 设置项目categorys是否有变化 来判断是否重新查菜单
* @param data
*/
}, {
key: "setProjectMenuTypeCategorys",
value: function setProjectMenuTypeCategorys(data) {
var newData = data;
if (data.type === 'project') {
if (data.categories) {
if (this.projectCategorys[data === null || data === void 0 ? void 0 : data.projectId]) {
if (JSON.stringify(data.categories) !== JSON.stringify(this.projectCategorys[data === null || data === void 0 ? void 0 : data.projectId])) {
newData.hasChangeCategorys = true;
}
}
this.setProjectCategorys(data.projectId, data.categories);
}
}
return newData;
}
}, {
key: "changeMenuType",
value: function changeMenuType(type, func) {
var newType = this.setProjectMenuTypeCategorys(type);
sessionStorage.menType = JSON.stringify(newType);
sessionStorage.selectData = JSON.stringify(newType);
sessionStorage.type = newType.type;
sessionStorage.category = newType.category;
this.menuType = newType;
if (func) {
func();
}
}
}, {
key: "setTypeUser",
value: function setTypeUser(isUser) {
sessionStorage.user = isUser ? 'user' : '';
this.isUser = isUser;
}
}, {
key: "isTypeUser",
get: function get() {
return this.isUser;
}
}, {
key: "currentModules",
get: function get() {
return this.modules.slice();
}
}, {
key: "currentServices",
get: function get() {
return this.deployServices.slice();
}
}]);
return AppState;
}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "isSaasList", [observable], {
configurable: true,
enumerable: true,
writable: true,
initializer: function initializer() {
return undefined;
}
}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, "helpDocUrl", [observable], {
configurable: true,
enumerable: true,
writable: true,
initializer: function initializer() {
return '';
}
}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, "starProject", [observable], {
configurable: true,
enumerable: true,
writable: true,
initializer: function initializer() {
return [];
}
}), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, "recentUse", [observable], {
configurable: true,
enumerable: true,
writable: true,
initializer: function initializer() {
return [];
}
}), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, "dropDownPro", [observable], {
configurable: true,
enumerable: true,
writable: true,
initializer: function initializer() {
return null;
}
}), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, "currentTheme", [observable], {
configurable: true,
enumerable: true,
writable: true,
initializer: function initializer() {
return localStorage.getItem('theme') || 'theme4';
}
}), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, "currentProject", [observable], {
configurable: true,
enumerable: true,
writable: true,
initializer: function initializer() {
return null;
}
}), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, "menuType", [observable], {
configurable: true,
enumerable: true,
writable: true,
initializer: function initializer() {
return null;
}
}), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, "expanded", [observable], {
configurable: true,
enumerable: true,
writable: true,
initializer: function initializer() {
return false;
}
}), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, "guideExpanded", [observable], {
configurable: true,
enumerable: true,
writable: true,
initializer: function initializer() {
return false;
}
}), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, "userInfo", [observable], {
configurable: true,
enumerable: true,
writable: true,
initializer: function initializer() {
return {};
}
}), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, "userWizardList", [observable], {
configurable: true,
enumerable: true,
writable: true,
initializer: function initializer() {
return '';
}
}), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, "userWizardStatus", [observable], {
configurable: true,
enumerable: true,
writable: true,
initializer: function initializer() {
return '';
}
}), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, "siteInfo", [observable], {
configurable: true,
enumerable: true,
writable: true,
initializer: function initializer() {
return {};
}
}), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, "debugger", [observable], {
configurable: true,
enumerable: true,
writable: true,
initializer: function initializer() {
return false;
}
}), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, "isUser", [observable], {
configurable: true,
enumerable: true,
writable: true,
initializer: function initializer() {
return false;
}
}), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, "modules", [observable], {
configurable: true,
enumerable: true,
writable: true,
initializer: function initializer() {
return [];
}
}), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, "deployServices", [observable], {
configurable: true,
enumerable: true,
writable: true,
initializer: function initializer() {
return [];
}
}), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, "projectCategorys", [observable], {
configurable: true,
enumerable: true,
writable: true,
initializer: function initializer() {
return {};
}
}), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, "canShowRoute", [observable], {
configurable: true,
enumerable: true,
writable: true,
initializer: function initializer() {
return false;
}
}), _applyDecoratedDescriptor(_class.prototype, "getIsSaasList", [computed], Object.getOwnPropertyDescriptor(_class.prototype, "getIsSaasList"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "setIsSaasList", [action], Object.getOwnPropertyDescriptor(_class.prototype, "setIsSaasList"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "getDocUrl", [computed], Object.getOwnPropertyDescriptor(_class.prototype, "getDocUrl"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "setDocUrl", [action], Object.getOwnPropertyDescriptor(_class.prototype, "setDocUrl"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "getDropDownPro", [computed], Object.getOwnPropertyDescriptor(_class.prototype, "getDropDownPro"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "setDropDownPro", [action], Object.getOwnPropertyDescriptor(_class.prototype, "setDropDownPro"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "getStarProject", [computed], Object.getOwnPropertyDescriptor(_class.prototype, "getStarProject"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "getRecentUse", [computed], Object.getOwnPropertyDescriptor(_class.prototype, "getRecentUse"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "setStarProject", [action], Object.getOwnPropertyDescriptor(_class.prototype, "setStarProject"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "setRecentUse", [action], Object.getOwnPropertyDescriptor(_class.prototype, "setRecentUse"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "getCanShowRoute", [computed], Object.getOwnPropertyDescriptor(_class.prototype, "getCanShowRoute"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "setCanShowRoute", [action], Object.getOwnPropertyDescriptor(_class.prototype, "setCanShowRoute"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "getProjectCategorys", [computed], Object.getOwnPropertyDescriptor(_class.prototype, "getProjectCategorys"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "setProjectCategorys", [action], Object.getOwnPropertyDescriptor(_class.prototype, "setProjectCategorys"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "getCurrentTheme", [computed], Object.getOwnPropertyDescriptor(_class.prototype, "getCurrentTheme"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "setCurrentTheme", [action], Object.getOwnPropertyDescriptor(_class.prototype, "setCurrentTheme"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "getCurrentProject", [computed], Object.getOwnPropertyDescriptor(_class.prototype, "getCurrentProject"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "setCurrentProject", [action], Object.getOwnPropertyDescriptor(_class.prototype, "setCurrentProject"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "getUserId", [computed], Object.getOwnPropertyDescriptor(_class.prototype, "getUserId"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "getDebugger", [computed], Object.getOwnPropertyDescriptor(_class.prototype, "getDebugger"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "setDebugger", [action], Object.getOwnPropertyDescriptor(_class.prototype, "setDebugger"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "getType", [computed], Object.getOwnPropertyDescriptor(_class.prototype, "getType"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "getUserInfo", [computed], Object.getOwnPropertyDescriptor(_class.prototype, "getUserInfo"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "setUserInfo", [action], Object.getOwnPropertyDescriptor(_class.prototype, "setUserInfo"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "getUserWizardList", [computed], Object.getOwnPropertyDescriptor(_class.prototype, "getUserWizardList"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "setUserWizardList", [action], Object.getOwnPropertyDescriptor(_class.prototype, "setUserWizardList"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "getUserWizardStatus", [computed], Object.getOwnPropertyDescriptor(_class.prototype, "getUserWizardStatus"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "setUserWizardStatus", [action], Object.getOwnPropertyDescriptor(_class.prototype, "setUserWizardStatus"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "setSiteInfo", [action], Object.getOwnPropertyDescriptor(_class.prototype, "setSiteInfo"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "getSiteInfo", [computed], Object.getOwnPropertyDescriptor(_class.prototype, "getSiteInfo"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "getMenuExpanded", [computed], Object.getOwnPropertyDescriptor(_class.prototype, "getMenuExpanded"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "setMenuExpanded", [action], Object.getOwnPropertyDescriptor(_class.prototype, "setMenuExpanded"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "getGuideExpanded", [computed], Object.getOwnPropertyDescriptor(_class.prototype, "getGuideExpanded"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "setGuideExpanded", [action], Object.getOwnPropertyDescriptor(_class.prototype, "setGuideExpanded"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "currentLanguage", [computed], Object.getOwnPropertyDescriptor(_class.prototype, "currentLanguage"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "isAuth", [computed], Object.getOwnPropertyDescriptor(_class.prototype, "isAuth"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "currentMenuType", [computed], Object.getOwnPropertyDescriptor(_class.prototype, "currentMenuType"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "currentOrginazationOrProjectId", [computed], Object.getOwnPropertyDescriptor(_class.prototype, "currentOrginazationOrProjectId"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "setAuthenticated", [action], Object.getOwnPropertyDescriptor(_class.prototype, "setAuthenticated"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "changeMenuType", [action], Object.getOwnPropertyDescriptor(_class.prototype, "changeMenuType"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "setTypeUser", [action], Object.getOwnPropertyDescriptor(_class.prototype, "setTypeUser"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "isTypeUser", [computed], Object.getOwnPropertyDescriptor(_class.prototype, "isTypeUser"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "currentModules", [computed], Object.getOwnPropertyDescriptor(_class.prototype, "currentModules"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "currentServices", [computed], Object.getOwnPropertyDescriptor(_class.prototype, "currentServices"), _class.prototype)), _class);
var appState = new AppState();
export default appState;