@titaui/pc 1.9.87 → 1.9.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/lib/components/change-okr-modal/Filter.js +1 -1
  2. package/lib/components/change-okr-modal/Item.js +1 -1
  3. package/lib/components/change-okr-modal/filterTab.js +1 -1
  4. package/lib/components/change-okr-modal/index.js +1 -1
  5. package/lib/components/communication/CommunicationAttachments.js +1 -1
  6. package/lib/components/communication/ConvertUserName.js +1 -1
  7. package/lib/components/communication/index.js +1 -1
  8. package/lib/components/create-okr-modal/objectType.js +1 -1
  9. package/lib/components/date-picker/BodyItem.js +1 -1
  10. package/lib/components/date-picker/CalendarBody.js +1 -1
  11. package/lib/components/date-picker/CalendarHeader.js +1 -1
  12. package/lib/components/date-picker/index.js +1 -1
  13. package/lib/components/date-range-picker/index.js +1 -1
  14. package/lib/components/delete-confirm-pop/ConfirmPop.js +1 -1
  15. package/lib/components/eReport/eReportListEmpty.js +1 -1
  16. package/lib/components/eReport/eReportLists/reportList.js +1 -1
  17. package/lib/components/eReport/eReportShare/index.js +1 -1
  18. package/lib/components/eReport/eReportShare/toast/index.js +1 -1
  19. package/lib/components/edit-kr-wight/EditKrWightModal.js +1 -1
  20. package/lib/components/edit-kr-wight/FormItemV2.js +1 -1
  21. package/lib/components/emotions-selector/selector-content.js +1 -1
  22. package/lib/components/emotions-selector/selector-pop.js +1 -1
  23. package/lib/components/ereport-list/index.js +1 -1
  24. package/lib/components/error-boundary/index.js +1 -1
  25. package/lib/components/mblog/components/ConfirmPop.js +1 -1
  26. package/lib/components/mblog/components/MblogAction.js +1 -1
  27. package/lib/components/mblog/components/MblogContent.js +1 -1
  28. package/lib/components/mblog/index.js +1 -1
  29. package/lib/components/menus/export-modules/demo-menus/index.js +125 -0
  30. package/lib/components/menus/export-modules/demo-menus/menu-highlight.js +74 -0
  31. package/lib/components/menus/export-modules/demo-menus/menus.js +147 -0
  32. package/lib/components/menus/index.js +15 -6
  33. package/lib/components/nav-top/constant.js +26 -2
  34. package/lib/components/nav-top/index.js +32 -30
  35. package/lib/components/nav-top/request.apis.js +5 -5
  36. package/lib/components/nav-top/utils.js +20 -3
  37. package/lib/components/okr-detail/auth.js +1 -1
  38. package/lib/components/okr-detail/components/base-okr-type/confirm/buttonv2.js +1 -1
  39. package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +1 -1
  40. package/lib/components/okr-detail/components/base-okr-type/object-type.js +1 -1
  41. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +1 -1
  42. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +1 -1
  43. package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +1 -1
  44. package/lib/components/okr-review/ReviewPop/components/Toast/index.js +1 -1
  45. package/lib/components/okr-review/ReviewPop/index.js +1 -1
  46. package/lib/components/okr-review/components/ReviewItem/index.js +1 -1
  47. package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +1 -1
  48. package/lib/components/okr-review/index.js +1 -1
  49. package/lib/components/operation-records/OperationRecordItem.js +1 -1
  50. package/lib/components/operation-records/index.js +1 -1
  51. package/lib/components/point-demo/input/index.js +1 -1
  52. package/lib/components/praise-record/PraiseRecordItem.js +1 -1
  53. package/lib/components/praise-record/index.js +1 -1
  54. package/lib/components/range-picker-pop/index.js +1 -1
  55. package/lib/components/range-selector-pop/RangeList.js +1 -1
  56. package/lib/components/range-selector-pop/RangeSelectorPop.js +1 -1
  57. package/lib/components/select/Option.js +1 -1
  58. package/lib/components/select/index.js +1 -1
  59. package/lib/components/tita-chart/errorBoundary/index.js +1 -1
  60. package/lib/components/upload/components/uploadedPreview.js +1 -1
  61. package/lib/components/upload/index.js +1 -1
  62. package/lib/components/viewer/ImageListRender.js +1 -1
  63. package/lib/components/viewer/index.js +1 -1
  64. package/lib/components-v1/animate/AnimateChild.js +1 -1
  65. package/lib/components-v1/animate/animate.js +1 -1
  66. package/lib/components-v1/avatar/index.js +1 -1
  67. package/lib/components-v1/buttonv2/ButtonOutlined.js +1 -1
  68. package/lib/components-v1/buttonv2/ButtonRounded.js +1 -1
  69. package/lib/components-v1/buttonv2/DefaultButton.js +1 -1
  70. package/lib/components-v1/confirm/index.js +1 -1
  71. package/lib/components-v1/dropDownSelector/StatelessDropdown.js +1 -1
  72. package/lib/components-v1/dropDownSelector/dropDownSelector.js +1 -1
  73. package/lib/components-v1/input/Input.js +1 -1
  74. package/lib/components-v1/input/InputNumber.js +1 -1
  75. package/lib/components-v1/placement/placement.js +1 -1
  76. package/lib/components-v1/placement/placementInner.js +1 -1
  77. package/lib/components-v1/pop/Pop.js +1 -1
  78. package/lib/components-v1/pop/PopInner.js +1 -1
  79. package/lib/components-v1/portals/Portals.js +1 -1
  80. package/lib/components-v1/progress/CircleProgress.js +1 -1
  81. package/lib/components-v1/progress/LineProgress.js +1 -1
  82. package/lib/components-v1/progress/index.js +1 -1
  83. package/lib/components-v1/radio/radio.js +1 -1
  84. package/lib/components-v1/radio/radioGroup.js +1 -1
  85. package/lib/components-v1/search/index.js +1 -1
  86. package/lib/components-v1/select/Option.js +1 -1
  87. package/lib/components-v1/select/index.js +1 -1
  88. package/lib/components-v1/tabs/index.js +1 -1
  89. package/lib/components-v1/textarea/index.js +1 -1
  90. package/lib/components-v1/transition/index.js +1 -1
  91. package/lib/components-v1/userSelector/UserSelectorPop.js +1 -1
  92. package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +1 -1
  93. package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +1 -1
  94. package/lib/components-v1/userSelector/components/MultiMode/DepartmentTree.js +1 -1
  95. package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +1 -1
  96. package/lib/components-v1/userSelector/components/MultiMode/index.js +1 -1
  97. package/lib/components-v1/userSelector/components/SearchBar.js +1 -1
  98. package/lib/components-v1/userSelector/components/SingleMode.js +1 -1
  99. package/lib/components-v1/userSelector/components/UserItem.js +1 -1
  100. package/lib/components-v1/userSelector/index.js +1 -1
  101. package/lib/index.js +14 -6
  102. package/lib/pages/appointment-demo/input/index.js +1 -1
  103. package/lib/pages/demo-free/index.js +27 -0
  104. package/lib/pages/group-management/components/input-form/index.js +1 -1
  105. package/lib/utils/auth.js +1 -1
  106. package/package.json +1 -1
  107. package/src/components/menus/export-modules/demo-menus/index.tsx +85 -0
  108. package/src/components/menus/export-modules/demo-menus/menu-highlight.ts +53 -0
  109. package/src/components/menus/export-modules/demo-menus/menus.tsx +136 -0
  110. package/src/components/menus/index.tsx +9 -5
  111. package/src/components/nav-top/constant.ts +24 -0
  112. package/src/components/nav-top/index.tsx +10 -9
  113. package/src/components/nav-top/request.apis.ts +5 -5
  114. package/src/components/nav-top/utils.ts +15 -2
  115. package/src/index.d.ts +1 -0
  116. package/src/index.js +2 -1
  117. package/src/pages/demo-free/index.tsx +15 -0
  118. package/yarn-error.log +0 -103
@@ -0,0 +1,147 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.defaultRefObject = exports["default"] = exports.PAGE_UNASSIGNED_DEMOFREE = exports.PAGE_RESERVED_DEMOFREE = exports.PAGE_IGNORED_DEMOFREE = exports.PAGE_DONE_DEMOFREE = exports.PAGE_ASSIGNED_DEMOFREE = void 0;
7
+
8
+ var _index = require("../../components/menu-tree/tree-node/index");
9
+
10
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
11
+
12
+ 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); } }
13
+
14
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
15
+
16
+ var defaultRefObject = {
17
+ menus: [],
18
+ getMenus: function getMenus() {}
19
+ };
20
+ exports.defaultRefObject = defaultRefObject;
21
+ var PAGE_UNASSIGNED_DEMOFREE = "unassigned";
22
+ exports.PAGE_UNASSIGNED_DEMOFREE = PAGE_UNASSIGNED_DEMOFREE;
23
+ var PAGE_ASSIGNED_DEMOFREE = "assigned";
24
+ exports.PAGE_ASSIGNED_DEMOFREE = PAGE_ASSIGNED_DEMOFREE;
25
+ var PAGE_RESERVED_DEMOFREE = "reserved";
26
+ exports.PAGE_RESERVED_DEMOFREE = PAGE_RESERVED_DEMOFREE;
27
+ var PAGE_DONE_DEMOFREE = "done";
28
+ exports.PAGE_DONE_DEMOFREE = PAGE_DONE_DEMOFREE;
29
+ var PAGE_IGNORED_DEMOFREE = "ignore";
30
+ exports.PAGE_IGNORED_DEMOFREE = PAGE_IGNORED_DEMOFREE;
31
+
32
+ var DemoMenuData = /*#__PURE__*/function () {
33
+ function DemoMenuData() {
34
+ _classCallCheck(this, DemoMenuData);
35
+
36
+ this.isManager = localStorage.getItem("DEMO_USER_IS_MANAGER") === "1";
37
+ this.menus = [{
38
+ icon: "kaohe",
39
+ label: "任务状态",
40
+ key: "demofree",
41
+ href: this.isManager ? "#/demofree/list?selected=unassigned" : "#/demofree/list?selected=assigned",
42
+ isShow: true,
43
+ children: [{
44
+ icon: "",
45
+ label: "未分配",
46
+ key: "unassigned",
47
+ href: "#/demofree/list?selected=unassigned",
48
+ isShow: this.isManager
49
+ }, {
50
+ icon: "",
51
+ label: "已分配",
52
+ key: "assigned",
53
+ href: "#/demofree/list?selected=assigned",
54
+ isShow: true
55
+ }, {
56
+ icon: "",
57
+ label: "已预约",
58
+ key: "reserved",
59
+ href: "#/demofree/list?selected=reserved",
60
+ isShow: true
61
+ }, {
62
+ icon: "",
63
+ label: "已完成",
64
+ key: "done",
65
+ href: "#/demofree/list?selected=done",
66
+ isShow: true
67
+ }, {
68
+ icon: "",
69
+ label: "已忽略",
70
+ key: "ignore",
71
+ href: "#/demofree/list?selected=ignore",
72
+ isShow: this.isManager
73
+ }]
74
+ } // {
75
+ // icon: "KH-help",
76
+ // label: "客户续费情况",
77
+ // key: "custom",
78
+ // href: "#/custom",
79
+ // isShow: true,
80
+ // type: MENU_ITEM_NOE,
81
+ // children:[{
82
+ // icon: "",
83
+ // label: "未处理",
84
+ // key: "ignore",
85
+ // href: "#/demofree/custom?selected=未处理",
86
+ // isShow: true,
87
+ // },{
88
+ // icon: "",
89
+ // label: "待定",
90
+ // key: "ignore",
91
+ // href: "#/demofree/custom?selected=待定",
92
+ // isShow: true,
93
+ // },{
94
+ // icon: "",
95
+ // label: "已续费",
96
+ // key: "ignore",
97
+ // href: "#/demofree/custom?selected=已续费",
98
+ // isShow: true,
99
+ // },{
100
+ // icon: "",
101
+ // label: "未续费",
102
+ // key: "ignore",
103
+ // href: "#/demofree/custom?selected=未续费",
104
+ // isShow: true,
105
+ // }]
106
+ // },
107
+ ];
108
+ }
109
+
110
+ _createClass(DemoMenuData, [{
111
+ key: "getMenus",
112
+ value: function getMenus() {
113
+ var menus = this.formateToTreeNodeData(this.menus);
114
+ return menus;
115
+ }
116
+ }, {
117
+ key: "formateToTreeNodeData",
118
+ value: function formateToTreeNodeData(menus) {
119
+ var treeNodes = [];
120
+
121
+ for (var i = 0; i < menus.length; i += 1) {
122
+ var menu = menus[i];
123
+ var hasChildren = !!(menu.children && menu.children.length);
124
+ var isLeaf = menu.isLeaf !== undefined ? menu.isLeaf : !hasChildren;
125
+ var nodeType = menu.type;
126
+ if (!nodeType) nodeType = !isLeaf ? _index.PARENT_MENU_NODE : _index.SUB_MENU_ITEM_NOE;
127
+
128
+ if (menu.isShow) {
129
+ treeNodes.push({
130
+ key: "".concat(menu.key),
131
+ title: menu.label,
132
+ data: menu,
133
+ isLeaf: isLeaf,
134
+ children: this.formateToTreeNodeData(menu.children || []),
135
+ nodeType: nodeType
136
+ });
137
+ }
138
+ }
139
+
140
+ return treeNodes;
141
+ }
142
+ }]);
143
+
144
+ return DemoMenuData;
145
+ }();
146
+
147
+ exports["default"] = DemoMenuData;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports["default"] = _default;
6
+ exports["default"] = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
@@ -17,6 +17,8 @@ var _manageMenus = _interopRequireDefault(require("./export-modules/manage-menus
17
17
 
18
18
  require("./index.css");
19
19
 
20
+ var _demoMenus = _interopRequireDefault(require("./export-modules/demo-menus"));
21
+
20
22
  var _excluded = ["type"];
21
23
 
22
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -27,27 +29,34 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
27
29
 
28
30
  var preCls = "titaui-menus";
29
31
 
30
- function _default(props) {
32
+ var Menus = function Menus(props) {
31
33
  var type = props.type,
32
34
  restProps = _objectWithoutProperties(props, _excluded);
33
35
 
34
36
  var renderMenuByType = function renderMenuByType() {
35
- if (type == "okr") {
37
+ if (type === "okr") {
36
38
  return /*#__PURE__*/_react["default"].createElement(_okrMenus["default"], restProps);
37
39
  }
38
40
 
39
- if (type == "appraisal") {
41
+ if (type === "appraisal") {
40
42
  return /*#__PURE__*/_react["default"].createElement(_appraisalMenus["default"], restProps);
41
43
  }
42
44
 
43
- if (type == "manage") {
45
+ if (type === "manage") {
44
46
  return /*#__PURE__*/_react["default"].createElement(_manageMenus["default"], restProps);
45
47
  }
46
48
 
49
+ if (type === "demofree") {
50
+ return /*#__PURE__*/_react["default"].createElement(_demoMenus["default"], restProps);
51
+ }
52
+
47
53
  return undefined;
48
54
  };
49
55
 
50
56
  return /*#__PURE__*/_react["default"].createElement("div", {
51
57
  className: (0, _classnames["default"])(preCls)
52
58
  }, renderMenuByType());
53
- }
59
+ };
60
+
61
+ var _default = Menus;
62
+ exports["default"] = _default;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.userId = exports.tm = exports.popupAlignPhoto = exports.getVersionTextMap = exports.apiServer = void 0;
6
+ exports.userId = exports.tm = exports.popupAlignPhoto = exports.getVersionTextMap = exports.apiServer = exports.DEMO_FREE_MENU_CONFIG = void 0;
7
7
 
8
8
  var _getLocale = require("../../utils/getLocale");
9
9
 
@@ -35,4 +35,28 @@ var getVersionTextMap = function getVersionTextMap() {
35
35
  return _ref = {}, _defineProperty(_ref, _constant.Versions.Standard, (0, _getLocale.getLocale)("Sw_ProEdit")), _defineProperty(_ref, _constant.Versions.WeixinAssess, (0, _getLocale.getLocale)("Sw_PerEdit")), _defineProperty(_ref, _constant.Versions.Professional, (0, _getLocale.getLocale)("Sw_OKREdit")), _defineProperty(_ref, _constant.Versions.Flagship, (0, _getLocale.getLocale)("Sw_Flagship")), _ref;
36
36
  };
37
37
 
38
- exports.getVersionTextMap = getVersionTextMap;
38
+ exports.getVersionTextMap = getVersionTextMap;
39
+ var DEMO_FREE_MENU_CONFIG = {
40
+ DataSource: null,
41
+ appCode: null,
42
+ appId: 119,
43
+ children: [],
44
+ code: "",
45
+ color: "#F28D49",
46
+ defaultExpand: false,
47
+ domain: "",
48
+ groupId: 0,
49
+ href: "#demofree/list?selected=assigned",
50
+ iconName: "",
51
+ id: 99998,
52
+ labelName: null,
53
+ menuPoint: null,
54
+ orderId: 2000,
55
+ originUrl: null,
56
+ signUrl: "",
57
+ status: 0,
58
+ tenantId: 0,
59
+ title: "demofree",
60
+ type: "hash"
61
+ };
62
+ exports.DEMO_FREE_MENU_CONFIG = DEMO_FREE_MENU_CONFIG;
@@ -73,39 +73,39 @@ var NavTop = function NavTop() {
73
73
  setActiveMenuId = _useState4[1];
74
74
 
75
75
  var ua = navigator.userAgent.toLowerCase();
76
- var showWxInvite = (0, _bsGlobal.getTenantInfo)().mainCorpId && ua.indexOf("micromessenger") != -1;
76
+ var showWxInvite = (0, _bsGlobal.getTenantInfo)().mainCorpId && ua.indexOf("micromessenger") !== -1;
77
77
  var openWxInvite = (0, _react.useCallback)(function () {
78
- // @ts-ignore
79
- WeixinJSBridge // @ts-ignore
80
- && WeixinJSBridge.invoke("selectPrivilegedContact", {
81
- fromDepartmentId: -1,
82
- // 必填,表示打开的通讯录从指定的部门开始展示,-1表示自己所在部门开始, 0表示从最上层开始
83
- mode: "multi",
84
- // 必填,选择模式,single表示单选,multi表示多选
85
- selectedContextContact: 0 // 是否勾选当前环境的参与者。例如在群+号聊天附件栏打开,默认勾选当前群成员。
86
- // "selectedOpenUserIds"["xxx","yyy"], // 非必填,已选用户OpenID列表。single模式忽略该参数。
87
- // "selectedTickets"["ticket1","ticket2"] // 非必填,已选ticket列表。single模式忽略该参数
88
-
89
- }, function (res) {
90
- if (res.err_msg == "selectPrivilegedContact:ok") {
91
- // var selectedUserList = res.result.userList; // 已选的成员列表
92
- // for (var i = 0; i < selectedUserList.length; i++) {
93
- // var openUserId = selectedUserList[i].openUserId; //成员openUserId
94
- // }
95
- var selectedTicket = res.result.selectedTicket.replace(/['"]/g, ""); // 已选的集合Ticket
96
-
97
- (0, _request.rpost)("v1")("wx/send/templateMessage?selectedTickets=".concat(selectedTicket)).then(function () {
98
- _toast["default"].Success("邀请成功");
99
- })["catch"](function (e) {
100
- _toast["default"].Error("邀请失败");
101
- });
102
- } else {// console.log(res);
103
- }
104
- });
78
+ if (window.WeixinJSBridge !== undefined) {
79
+ window.WeixinJSBridge.invoke("selectPrivilegedContact", {
80
+ fromDepartmentId: -1,
81
+ // 必填,表示打开的通讯录从指定的部门开始展示,-1表示自己所在部门开始, 0表示从最上层开始
82
+ mode: "multi",
83
+ // 必填,选择模式,single表示单选,multi表示多选
84
+ selectedContextContact: 0 // 是否勾选当前环境的参与者。例如在群+号聊天附件栏打开,默认勾选当前群成员。
85
+ // "selectedOpenUserIds"["xxx","yyy"], // 非必填,已选用户OpenID列表。single模式忽略该参数。
86
+ // "selectedTickets"["ticket1","ticket2"] // 非必填,已选ticket列表。single模式忽略该参数
87
+
88
+ }, function (res) {
89
+ if (res.err_msg === "selectPrivilegedContact:ok") {
90
+ // var selectedUserList = res.result.userList; // 已选的成员列表
91
+ // for (var i = 0; i < selectedUserList.length; i++) {
92
+ // var openUserId = selectedUserList[i].openUserId; //成员openUserId
93
+ // }
94
+ var selectedTicket = res.result.selectedTicket.replace(/['"]/g, ""); // 已选的集合Ticket
95
+
96
+ (0, _request.rpost)("v1")("wx/send/templateMessage?selectedTickets=".concat(selectedTicket)).then(function () {
97
+ _toast["default"].Success("邀请成功");
98
+ })["catch"](function () {
99
+ _toast["default"].Error("邀请失败");
100
+ });
101
+ } else {// console.log(res);
102
+ }
103
+ });
104
+ }
105
105
  }, []);
106
106
 
107
107
  var handleHashChange = function handleHashChange() {
108
- var hash = location.hash.split("?")[0] || "";
108
+ var hash = window.location.hash.split("?")[0] || "";
109
109
 
110
110
  if (hash) {
111
111
  var activeMenu = menu.find(function (item) {
@@ -140,11 +140,13 @@ var NavTop = function NavTop() {
140
140
  className: (0, _classnames["default"])("".concat(preCls, "__left")),
141
141
  href: hasOKRApp ? "#homepage" : ""
142
142
  }, /*#__PURE__*/_react["default"].createElement("img", {
143
+ alt: "logo",
143
144
  src: Logo,
144
145
  className: (0, _classnames["default"])("".concat(preCls, "__left-logo"), _defineProperty({}, "".concat(preCls, "__left-logo--hover"), hasOKRApp))
145
146
  }), hasOKRApp && /*#__PURE__*/_react["default"].createElement("span", {
146
- className: (0, _classnames["default"])("".concat(preCls, "__left-home"), (_classNames2 = {}, _defineProperty(_classNames2, "".concat(preCls, "__left-home--active"), activeMenuId == 99999), _defineProperty(_classNames2, "".concat(preCls, "__left-home--hover"), hasOKRApp), _classNames2))
147
+ className: (0, _classnames["default"])("".concat(preCls, "__left-home"), (_classNames2 = {}, _defineProperty(_classNames2, "".concat(preCls, "__left-home--active"), activeMenuId === 99999), _defineProperty(_classNames2, "".concat(preCls, "__left-home--hover"), hasOKRApp), _classNames2))
147
148
  }, /*#__PURE__*/_react["default"].createElement("img", {
149
+ alt: "home-img",
148
150
  src: _home["default"],
149
151
  className: (0, _classnames["default"])("".concat(preCls, "__left-home-img"))
150
152
  }))), /*#__PURE__*/_react["default"].createElement("div", {
@@ -12,13 +12,13 @@ var _request = require("../../utils/request");
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
13
 
14
14
  // @ts-ignore
15
- var tenantId = BSGlobal && BSGlobal.tenantInfo.Id || 0; // @ts-ignore
15
+ var tenantId = window.BSGlobal && window.BSGlobal.tenantInfo.Id || 0; // @ts-ignore
16
16
 
17
- var userId = BSGlobal && BSGlobal.loginUserInfo.Id || 0;
17
+ var userId = window.BSGlobal && window.BSGlobal.loginUserInfo.Id || 0;
18
18
 
19
19
  var requestDomain = function requestDomain() {
20
20
  if (!window.location.hostname.match(/dev/)) return "";
21
- return "".concat(location.protocol, "//www.tita.gift");
21
+ return "".concat(window.location.protocol, "//www.tita.gift");
22
22
  };
23
23
 
24
24
  var getTodos = function getTodos(pageNum) {
@@ -72,8 +72,8 @@ var getMessages = function getMessages() {
72
72
  var date = nowTime.getDate();
73
73
  return _axios["default"].get("".concat(requestDomain(), "/api/v1/").concat(tenantId, "/").concat(userId, "/RemindV2/Get?dateTime=").concat(year, "/").concat(month, "/").concat(date)).then(function (resp) {
74
74
  if (resp.code === 401) {
75
- location.href = "/Account/Logout";
76
- return;
75
+ window.location.href = "/Account/Logout";
76
+ return undefined;
77
77
  }
78
78
 
79
79
  return resp.data;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.getMenus = exports.getLogo = void 0;
6
+ exports.transMetasToTableData = exports.getMenus = exports.getLogo = void 0;
7
7
 
8
8
  var _bsGlobal = require("../../utils/bs-global");
9
9
 
@@ -13,7 +13,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
13
13
 
14
14
  var getMenus = function getMenus() {
15
15
  // @ts-ignore
16
- var navs = BSGlobal.newNavigation;
16
+ var navs = window.BSGlobal.newNavigation;
17
17
  navs.sort(function (pre, next) {
18
18
  return pre.orderId - next.orderId;
19
19
  });
@@ -28,4 +28,21 @@ var getLogo = function getLogo() {
28
28
  return tenantInfo.isNewIndex && /232637ab8a674427a1d6489329035d86_n/g.test(tenantInfo.Logo) || !tenantInfo.Logo ? _logoWhite["default"] : tenantInfo.Logo;
29
29
  };
30
30
 
31
- exports.getLogo = getLogo;
31
+ exports.getLogo = getLogo;
32
+
33
+ var transMetasToTableData = function transMetasToTableData() {
34
+ var dataSource = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
35
+ var listData = [];
36
+ dataSource.forEach(function (dataItem) {
37
+ var data = {};
38
+ dataItem.forEach(function (field) {
39
+ var name = field.name,
40
+ value = field.value;
41
+ data[name] = value;
42
+ });
43
+ listData.push(data);
44
+ });
45
+ return listData;
46
+ };
47
+
48
+ exports.transMetasToTableData = transMetasToTableData;
@@ -9,7 +9,7 @@ exports.OAuth = exports.KRAuth = exports.EAuth = exports.BaseAuth = void 0;
9
9
 
10
10
  var _bsGlobal = require("../../utils/bs-global");
11
11
 
12
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
12
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
13
13
 
14
14
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
15
15
 
@@ -23,7 +23,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
23
23
 
24
24
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25
25
 
26
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
26
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
27
27
 
28
28
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
29
29
 
@@ -31,7 +31,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
31
31
 
32
32
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
33
33
 
34
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
34
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
35
35
 
36
36
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
37
37
 
@@ -49,7 +49,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
49
49
 
50
50
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
51
51
 
52
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
52
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
53
53
 
54
54
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
55
55
 
@@ -37,7 +37,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
37
37
 
38
38
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
39
39
 
40
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
40
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
41
41
 
42
42
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
43
43
 
@@ -51,7 +51,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
51
51
 
52
52
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
53
53
 
54
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
54
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
55
55
 
56
56
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
57
57
 
@@ -65,7 +65,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
65
65
 
66
66
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
67
67
 
68
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
68
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
69
69
 
70
70
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
71
71
 
@@ -21,7 +21,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
21
21
 
22
22
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
23
23
 
24
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
24
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
25
25
 
26
26
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
27
27
 
@@ -39,7 +39,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
39
39
 
40
40
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
41
41
 
42
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
42
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
43
43
 
44
44
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
45
45
 
@@ -25,7 +25,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
25
25
 
26
26
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
27
27
 
28
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
28
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
29
29
 
30
30
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
31
31
 
@@ -27,7 +27,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
27
27
 
28
28
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
29
29
 
30
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
30
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
31
31
 
32
32
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
33
 
@@ -43,7 +43,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
43
43
 
44
44
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
45
45
 
46
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
46
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
47
47
 
48
48
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
49
49
 
@@ -27,7 +27,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
27
27
 
28
28
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
29
29
 
30
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
30
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
31
31
 
32
32
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
33
 
@@ -33,7 +33,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
33
33
 
34
34
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
35
35
 
36
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
36
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
37
37
 
38
38
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
39
39
 
@@ -23,7 +23,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
23
23
 
24
24
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25
25
 
26
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
26
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
27
27
 
28
28
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
29
29
 
@@ -27,7 +27,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
27
27
 
28
28
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
29
29
 
30
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
30
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
31
31
 
32
32
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
33
 
@@ -41,7 +41,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
41
41
 
42
42
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
43
43
 
44
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
44
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
45
45
 
46
46
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
47
47
 
@@ -35,7 +35,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
35
35
 
36
36
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
37
37
 
38
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
38
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
39
39
 
40
40
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
41
41