@titaui/pc 1.9.77 → 1.9.78

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 (114) hide show
  1. package/.eslintrc.js +3 -5
  2. package/lib/components/change-okr-modal/Filter.js +1 -1
  3. package/lib/components/change-okr-modal/Item.js +1 -1
  4. package/lib/components/change-okr-modal/filterTab.js +1 -1
  5. package/lib/components/change-okr-modal/index.js +1 -1
  6. package/lib/components/communication/CommunicationAttachments.js +1 -1
  7. package/lib/components/communication/ConvertUserName.js +1 -1
  8. package/lib/components/communication/index.js +1 -1
  9. package/lib/components/create-okr-modal/objectType.js +1 -1
  10. package/lib/components/date-picker/BodyItem.js +1 -1
  11. package/lib/components/date-picker/CalendarBody.js +1 -1
  12. package/lib/components/date-picker/CalendarHeader.js +1 -1
  13. package/lib/components/date-picker/index.js +1 -1
  14. package/lib/components/date-range-picker/index.js +1 -1
  15. package/lib/components/delete-confirm-pop/ConfirmPop.js +1 -1
  16. package/lib/components/eReport/eReportListEmpty.js +1 -1
  17. package/lib/components/eReport/eReportLists/reportList.js +1 -1
  18. package/lib/components/eReport/eReportShare/index.js +1 -1
  19. package/lib/components/eReport/eReportShare/toast/index.js +1 -1
  20. package/lib/components/edit-kr-wight/EditKrWightModal.js +1 -1
  21. package/lib/components/edit-kr-wight/FormItemV2.js +1 -1
  22. package/lib/components/emotions-selector/selector-content.js +1 -1
  23. package/lib/components/emotions-selector/selector-pop.js +1 -1
  24. package/lib/components/ereport-list/index.js +1 -1
  25. package/lib/components/error-boundary/index.js +1 -1
  26. package/lib/components/mblog/components/ConfirmPop.js +1 -1
  27. package/lib/components/mblog/components/MblogAction.js +1 -1
  28. package/lib/components/mblog/components/MblogContent.js +1 -1
  29. package/lib/components/mblog/index.js +1 -1
  30. package/lib/components/mblog/style.js +2 -2
  31. package/lib/components/okr-detail/auth.js +1 -1
  32. package/lib/components/okr-detail/components/base-okr-type/confirm/buttonv2.js +1 -1
  33. package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +1 -1
  34. package/lib/components/okr-detail/components/base-okr-type/object-type.js +1 -1
  35. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +1 -1
  36. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +1 -1
  37. package/lib/components/okr-detail/detail-header/confirm.js +1 -2
  38. package/lib/components/okr-detail/detail-header/index.js +10 -13
  39. package/lib/components/okr-flow/export-modal/index.js +62 -38
  40. package/lib/components/okr-progress-modal/helper.js +45 -59
  41. package/lib/components/okr-progress-modal/index.js +14 -19
  42. package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +1 -1
  43. package/lib/components/okr-review/ReviewPop/components/Toast/index.js +1 -1
  44. package/lib/components/okr-review/ReviewPop/index.js +1 -1
  45. package/lib/components/okr-review/components/ReviewItem/index.js +1 -1
  46. package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +1 -1
  47. package/lib/components/okr-review/index.js +1 -1
  48. package/lib/components/okr-share/index.js +2 -7
  49. package/lib/components/operation-records/OperationRecordItem.js +1 -1
  50. package/lib/components/operation-records/index.js +1 -1
  51. package/lib/components/period-selector/common.js +3 -3
  52. package/lib/components/point-demo/input/index.js +1 -1
  53. package/lib/components/praise-record/PraiseRecordItem.js +1 -1
  54. package/lib/components/praise-record/index.js +1 -1
  55. package/lib/components/range-picker-pop/index.js +1 -1
  56. package/lib/components/range-selector-pop/RangeList.js +1 -1
  57. package/lib/components/range-selector-pop/RangeSelectorPop.js +1 -1
  58. package/lib/components/select/Option.js +1 -1
  59. package/lib/components/select/index.js +1 -1
  60. package/lib/components/tita-chart/errorBoundary/index.js +1 -1
  61. package/lib/components/upload/components/uploadedPreview.js +1 -1
  62. package/lib/components/upload/index.js +1 -1
  63. package/lib/components/viewer/ImageListRender.js +1 -1
  64. package/lib/components/viewer/index.js +1 -1
  65. package/lib/components-v1/animate/AnimateChild.js +1 -1
  66. package/lib/components-v1/animate/animate.js +1 -1
  67. package/lib/components-v1/avatar/index.js +1 -1
  68. package/lib/components-v1/buttonv2/ButtonOutlined.js +1 -1
  69. package/lib/components-v1/buttonv2/ButtonRounded.js +1 -1
  70. package/lib/components-v1/buttonv2/DefaultButton.js +1 -1
  71. package/lib/components-v1/confirm/index.js +1 -1
  72. package/lib/components-v1/dropDownSelector/StatelessDropdown.js +1 -1
  73. package/lib/components-v1/dropDownSelector/dropDownSelector.js +1 -1
  74. package/lib/components-v1/input/Input.js +1 -1
  75. package/lib/components-v1/input/InputNumber.js +1 -1
  76. package/lib/components-v1/placement/placement.js +1 -1
  77. package/lib/components-v1/placement/placementInner.js +1 -1
  78. package/lib/components-v1/pop/Pop.js +1 -1
  79. package/lib/components-v1/pop/PopInner.js +1 -1
  80. package/lib/components-v1/portals/Portals.js +1 -1
  81. package/lib/components-v1/progress/CircleProgress.js +1 -1
  82. package/lib/components-v1/progress/LineProgress.js +1 -1
  83. package/lib/components-v1/progress/index.js +1 -1
  84. package/lib/components-v1/radio/radio.js +1 -1
  85. package/lib/components-v1/radio/radioGroup.js +1 -1
  86. package/lib/components-v1/search/index.js +1 -1
  87. package/lib/components-v1/select/Option.js +1 -1
  88. package/lib/components-v1/select/index.js +1 -1
  89. package/lib/components-v1/tabs/index.js +1 -1
  90. package/lib/components-v1/textarea/index.js +1 -1
  91. package/lib/components-v1/transition/index.js +1 -1
  92. package/lib/components-v1/userSelector/UserSelectorPop.js +1 -1
  93. package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +1 -1
  94. package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +1 -1
  95. package/lib/components-v1/userSelector/components/MultiMode/DepartmentTree.js +1 -1
  96. package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +1 -1
  97. package/lib/components-v1/userSelector/components/MultiMode/index.js +1 -1
  98. package/lib/components-v1/userSelector/components/SearchBar.js +1 -1
  99. package/lib/components-v1/userSelector/components/SingleMode.js +1 -1
  100. package/lib/components-v1/userSelector/components/UserItem.js +1 -1
  101. package/lib/components-v1/userSelector/index.js +1 -1
  102. package/lib/pages/appointment-demo/input/index.js +1 -1
  103. package/lib/pages/group-management/components/input-form/index.js +1 -1
  104. package/lib/utils/auth.js +1 -1
  105. package/package.json +1 -2
  106. package/src/components/mblog/style.ts +1 -4
  107. package/src/components/okr-detail/detail-header/confirm.tsx +1 -1
  108. package/src/components/okr-detail/detail-header/index.tsx +13 -19
  109. package/src/components/okr-flow/export-modal/index.tsx +50 -37
  110. package/src/components/okr-progress-modal/helper.js +41 -49
  111. package/src/components/okr-progress-modal/index.tsx +16 -17
  112. package/src/components/okr-share/index.tsx +4 -9
  113. package/src/components/period-selector/common.ts +3 -3
  114. package/yarn-error.log +0 -103
@@ -61,7 +61,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
61
61
 
62
62
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
63
63
 
64
- function ExportMapModal(props) {
64
+ var ExportMapModal = function ExportMapModal(props) {
65
65
  var _props$visible = props.visible,
66
66
  visible = _props$visible === void 0 ? false : _props$visible,
67
67
  onCloseHandler = props.onCloseHandler,
@@ -89,18 +89,25 @@ function ExportMapModal(props) {
89
89
 
90
90
  var modalRef = (0, _react.useRef)();
91
91
  (0, _react.useEffect)(function () {
92
- if ((0, _bsGlobal.isWx)()) {
93
- window.WWOpenData && window.WWOpenData.enableCanvasSharing && window.WWOpenData.enableCanvasSharing();
94
- window.WWOpenData && window.WWOpenData.initCanvas && window.WWOpenData.initCanvas();
92
+ if ((0, _bsGlobal.isWx)() && window.WWOpenData) {
93
+ if (window.WWOpenData.enableCanvasSharing) {
94
+ window.WWOpenData.enableCanvasSharing();
95
+ }
96
+
97
+ if (window.WWOpenData.initCanvas) {
98
+ window.WWOpenData.initCanvas();
99
+ }
95
100
  }
96
101
  }, []);
97
102
  (0, _react.useEffect)(function () {
98
- visible && mapInstance && mapInstance.fitView();
103
+ if (visible && mapInstance) {
104
+ mapInstance.fitView();
105
+ }
99
106
  }, [visible, mapInstance]);
100
107
 
101
108
  var downloadImg = /*#__PURE__*/function () {
102
109
  var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
103
- var okrMapRef, width, height, canvas, scale, opts, result, imgUrl, url, image;
110
+ var okrMapRef, width, height, canvas, scale, opts;
104
111
  return regeneratorRuntime.wrap(function _callee$(_context) {
105
112
  while (1) {
106
113
  switch (_context.prev = _context.next) {
@@ -136,52 +143,66 @@ function ExportMapModal(props) {
136
143
 
137
144
  };
138
145
  _context.next = 12;
139
- return (0, _html2canvas["default"])(okrMapRef, opts);
146
+ return (0, _html2canvas["default"])(okrMapRef, opts).then(function (result) {
147
+ if ((0, _bsGlobal.isWx)() && window.WWOpenData) {
148
+ if (window.WWOpenData.enableCanvasSharing) {
149
+ window.WWOpenData.enableCanvasSharing();
150
+ }
151
+
152
+ if (window.WWOpenData.initCanvas) {
153
+ window.WWOpenData.initCanvas();
154
+ }
155
+ }
140
156
 
141
- case 12:
142
- result = _context.sent;
157
+ var imgUrl = result.toDataURL("image/png"); // 得到图片的base64编码数据
143
158
 
144
- if ((0, _bsGlobal.isWx)()) {
145
- window.WWOpenData && window.WWOpenData.enableCanvasSharing && window.WWOpenData.enableCanvasSharing();
146
- window.WWOpenData && window.WWOpenData.initCanvas && window.WWOpenData.initCanvas();
147
- }
159
+ // 得到图片的base64编码数据
160
+ (0, _requestApis.getBase64DownloadUrl)(imgUrl.split(",")[1]).then(function (url) {
161
+ var image = new Image();
162
+ image.setAttribute("crossOrigin", "anonymous");
148
163
 
149
- imgUrl = result.toDataURL("image/png"); // 得到图片的base64编码数据
164
+ image.onload = function () {
165
+ if (!url.Data.obj) {
166
+ _toast["default"].Error("导出失败,请稍后重试", {
167
+ canClose: false
168
+ });
169
+ }
150
170
 
151
- _context.next = 17;
152
- return (0, _requestApis.getBase64DownloadUrl)(imgUrl.split(",")[1]);
171
+ var a = document.createElement("a"); // 生成一个a元素
153
172
 
154
- case 17:
155
- url = _context.sent;
156
- image = new Image();
157
- image.setAttribute("crossOrigin", "anonymous");
173
+ // 生成一个a元素
174
+ var event = new MouseEvent("click"); // 创建一个单击事件
158
175
 
159
- image.onload = function () {
160
- if (!url.Data.obj) {
161
- _toast["default"].Error("导出失败,请稍后重试", {
162
- canClose: false
163
- });
164
- }
176
+ // 创建一个单击事件
177
+ a.download = "okr地图"; // 设置图片名称
165
178
 
166
- var a = document.createElement("a"); // 生成一个a元素
179
+ // 设置图片名称
180
+ a.href = url.Data.obj; // 将生成的URL设置为a.href属性
167
181
 
168
- var event = new MouseEvent("click"); // 创建一个单击事件
182
+ // 将生成的URL设置为a.href属性
183
+ a.dispatchEvent(event); // 触发a的单击事件
169
184
 
170
- a.download = "okr地图"; // 设置图片名称
185
+ // 触发a的单击事件
186
+ _toast["default"].Success("导出成功");
171
187
 
172
- a.href = url.Data.obj; // 将生成的URL设置为a.href属性
188
+ setIsExport(false);
173
189
 
174
- a.dispatchEvent(event); // 触发a的单击事件
175
-
176
- _toast["default"].Success("导出成功");
190
+ if (onCloseHandler) {
191
+ onCloseHandler();
192
+ }
193
+ };
177
194
 
195
+ image.src = imgUrl;
196
+ });
197
+ })["catch"](function (err) {
178
198
  setIsExport(false);
179
- onCloseHandler && onCloseHandler();
180
- };
181
199
 
182
- image.src = imgUrl;
200
+ _toast["default"].Error(err, {
201
+ canClose: false
202
+ });
203
+ });
183
204
 
184
- case 22:
205
+ case 12:
185
206
  case "end":
186
207
  return _context.stop();
187
208
  }
@@ -267,7 +288,10 @@ function ExportMapModal(props) {
267
288
  background: bgColor
268
289
  }
269
290
  }))))));
270
- }
291
+ };
271
292
 
293
+ ExportMapModal.defaultProps = {
294
+ onCloseHandler: function onCloseHandler() {}
295
+ };
272
296
  var _default = ExportMapModal;
273
297
  exports["default"] = _default;
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.transProgress = exports.getOptions = exports.getOSetting = exports.getKrSetting = exports.getKrOptions = void 0;
8
+ exports.transProgress = exports.getOptions = exports.getO_SETTING = exports.getKrOptions = exports.getKR_SETTING = void 0;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
@@ -15,7 +15,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
15
15
 
16
16
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
17
 
18
- var getOSetting = function getOSetting() {
18
+ var getO_SETTING = function getO_SETTING() {
19
19
  return {
20
20
  settingTitle: (0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Setmatically"),
21
21
  switchLabel: (0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Setmatically"),
@@ -28,45 +28,38 @@ var getOSetting = function getOSetting() {
28
28
  key: 2,
29
29
  tooltip: (0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_SubO")
30
30
  }],
31
- getRecommandText: function getRecommandText(recommandProgressObj) {
32
- var autoUpdate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
33
- var updateWay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
31
+ getRecommandText: function getRecommandText() {
32
+ var autoUpdate = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
33
+ var updateWay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
34
+ var recommandProgressObj = arguments.length > 2 ? arguments[2] : undefined;
34
35
 
35
36
  if (autoUpdate) {
36
- if (updateWay === 1) return /*#__PURE__*/_react["default"].createElement("span", {
37
+ if (updateWay == 1) return /*#__PURE__*/_react["default"].createElement("span", {
37
38
  className: "auto-update__recommand-tip"
38
39
  }, (0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Automatic"));
39
- if (updateWay === 2) return /*#__PURE__*/_react["default"].createElement("span", {
40
+ if (updateWay == 2) return /*#__PURE__*/_react["default"].createElement("span", {
40
41
  className: "auto-update__recommand-tip"
41
42
  }, (0, _getLocale.getLocale)("OKR_MyO_calculationSubO"));
42
- return /*#__PURE__*/_react["default"].createElement("span", null);
43
- }
44
-
45
- var childOkrProgress = recommandProgressObj.childOkrProgress,
46
- childkrProgress = recommandProgressObj.childkrProgress;
47
- var textArr = [];
48
-
49
- if (childkrProgress !== -1) {
50
- textArr.push("".concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_KRCom")).concat(childkrProgress).concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Percentage")));
51
- }
52
-
53
- if (childOkrProgress !== -1) {
54
- textArr.push("".concat((0, _getLocale.getLocale)("OKR_MyO_Ew_SubobjCom")).concat(childOkrProgress).concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Percentage")));
43
+ } else {
44
+ var childOkrProgress = recommandProgressObj.childOkrProgress,
45
+ childkrProgress = recommandProgressObj.childkrProgress;
46
+ var textArr = [];
47
+ childkrProgress !== -1 && textArr.push("".concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_KRCom")).concat(childkrProgress).concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Percentage")));
48
+ childOkrProgress !== -1 && textArr.push("".concat((0, _getLocale.getLocale)("OKR_MyO_Ew_SubobjCom")).concat(childOkrProgress).concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Percentage")));
49
+ if (textArr.length == 0) return "";
50
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
51
+ className: "auto-update__recommand-icon"
52
+ }, (0, _getLocale.getLocale)("Per_Ass_Pop_title_Recommend")), /*#__PURE__*/_react["default"].createElement("span", {
53
+ className: "auto-update__recommand-tip"
54
+ }, "\uFF08", textArr.join(","), "\uFF09"));
55
55
  }
56
-
57
- if (textArr.length === 0) return "";
58
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
59
- className: "auto-update__recommand-icon"
60
- }, (0, _getLocale.getLocale)("Per_Ass_Pop_title_Recommend")), /*#__PURE__*/_react["default"].createElement("span", {
61
- className: "auto-update__recommand-tip"
62
- }, "\uFF08", textArr.join(","), "\uFF09"));
63
56
  }
64
57
  };
65
58
  };
66
59
 
67
- exports.getOSetting = getOSetting;
60
+ exports.getO_SETTING = getO_SETTING;
68
61
 
69
- var getKrSetting = function getKrSetting() {
62
+ var getKR_SETTING = function getKR_SETTING() {
70
63
  return {
71
64
  settingTitle: (0, _getLocale.getLocale)("OKR_MyO_KRCompletion"),
72
65
  switchLabel: (0, _getLocale.getLocale)("OKR_MyO_SetKRcompletion"),
@@ -79,49 +72,42 @@ var getKrSetting = function getKrSetting() {
79
72
  key: 2,
80
73
  tooltip: (0, _getLocale.getLocale)("OKR_MyO_KRcompletionde")
81
74
  }],
82
- getRecommandText: function getRecommandText(recommandProgressObj) {
83
- var autoUpdate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
84
- var updateWay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
75
+ getRecommandText: function getRecommandText() {
76
+ var autoUpdate = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
77
+ var updateWay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
78
+ var recommandProgressObj = arguments.length > 2 ? arguments[2] : undefined;
85
79
 
86
80
  if (autoUpdate) {
87
- if (updateWay === 1) return /*#__PURE__*/_react["default"].createElement("span", {
81
+ if (updateWay == 1) return /*#__PURE__*/_react["default"].createElement("span", {
88
82
  className: "auto-update__recommand-tip"
89
83
  }, (0, _getLocale.getLocale)("OKR_MyO_Automatic"));
90
- if (updateWay === 2) return /*#__PURE__*/_react["default"].createElement("span", {
84
+ if (updateWay == 2) return /*#__PURE__*/_react["default"].createElement("span", {
91
85
  className: "auto-update__recommand-tip"
92
86
  }, (0, _getLocale.getLocale)("OKR_MyO_calculationSubO"));
93
- return /*#__PURE__*/_react["default"].createElement("span", null);
87
+ } else {
88
+ var childOkrProgress = recommandProgressObj.childOkrProgress,
89
+ childEProgress = recommandProgressObj.childEProgress;
90
+ var textArr = [];
91
+ childEProgress !== -1 && textArr.push("".concat((0, _getLocale.getLocale)("OKR_MyO_Ecompletion")).concat(childEProgress).concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Percentage")));
92
+ childOkrProgress !== -1 && textArr.push("".concat((0, _getLocale.getLocale)("OKR_MyO_Ew_SubobjCom")).concat(childOkrProgress).concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Percentage")));
93
+ if (textArr.length == 0) return "";
94
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
95
+ className: "auto-update__recommand-icon"
96
+ }, (0, _getLocale.getLocale)("Per_Ass_Pop_title_Recommend")), /*#__PURE__*/_react["default"].createElement("span", {
97
+ className: "auto-update__recommand-tip",
98
+ style: {
99
+ marginLeft: 0
100
+ }
101
+ }, "(", textArr.join(","), ")"));
94
102
  }
95
-
96
- var childOkrProgress = recommandProgressObj.childOkrProgress,
97
- childEProgress = recommandProgressObj.childEProgress;
98
- var textArr = [];
99
-
100
- if (childEProgress !== -1) {
101
- textArr.push("".concat((0, _getLocale.getLocale)("OKR_MyO_Ecompletion")).concat(childEProgress).concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Percentage")));
102
- }
103
-
104
- if (childOkrProgress !== -1) {
105
- textArr.push("".concat((0, _getLocale.getLocale)("OKR_MyO_Ew_SubobjCom")).concat(childOkrProgress).concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Percentage")));
106
- }
107
-
108
- if (textArr.length === 0) return "";
109
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
110
- className: "auto-update__recommand-icon"
111
- }, (0, _getLocale.getLocale)("Per_Ass_Pop_title_Recommend")), /*#__PURE__*/_react["default"].createElement("span", {
112
- className: "auto-update__recommand-tip",
113
- style: {
114
- marginLeft: 0
115
- }
116
- }, "(", textArr.join(","), ")"));
117
103
  }
118
104
  };
119
105
  };
120
106
 
121
- exports.getKrSetting = getKrSetting;
107
+ exports.getKR_SETTING = getKR_SETTING;
122
108
 
123
109
  var transProgress = function transProgress(progress) {
124
- return progress === -1 ? 0 : progress;
110
+ return progress == -1 ? 0 : progress;
125
111
  };
126
112
 
127
113
  exports.transProgress = transProgress;
@@ -52,8 +52,6 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
52
52
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
53
53
 
54
54
  var ProgressModal = function ProgressModal(props) {
55
- var _window, _window$BSGlobal, _window$BSGlobal$OkrA, _window$BSGlobal$OkrA2;
56
-
57
55
  var maxLength = props.maxLength,
58
56
  okrInfo = props.okrInfo,
59
57
  onClose = props.onClose,
@@ -62,7 +60,7 @@ var ProgressModal = function ProgressModal(props) {
62
60
  title = _props$title === void 0 ? window.getLocale("OKR_MyO_Prog_Butt_Update") : _props$title,
63
61
  visible = props.visible,
64
62
  isKr = props.isKr;
65
- var configure = isKr ? (0, _helper.getKrSetting)() : (0, _helper.getOSetting)();
63
+ var configure = isKr ? (0, _helper.getKR_SETTING)() : (0, _helper.getO_SETTING)();
66
64
  var reg = /^[0-9]*[1-9][0-9]*$/;
67
65
 
68
66
  var _useState = (0, _react.useState)(false),
@@ -97,7 +95,11 @@ var ProgressModal = function ProgressModal(props) {
97
95
  selected = _useState12[0],
98
96
  setSelected = _useState12[1];
99
97
 
100
- var _useState13 = (0, _react.useState)((_window = window) === null || _window === void 0 ? void 0 : (_window$BSGlobal = _window.BSGlobal) === null || _window$BSGlobal === void 0 ? void 0 : (_window$BSGlobal$OkrA = _window$BSGlobal.OkrAdvancedSetting) === null || _window$BSGlobal$OkrA === void 0 ? void 0 : (_window$BSGlobal$OkrA2 = _window$BSGlobal$OkrA.KRSetting) === null || _window$BSGlobal$OkrA2 === void 0 ? void 0 : _window$BSGlobal$OkrA2.ShowKrProgress),
98
+ var _useState13 = (0, _react.useState)(function () {
99
+ return (// @ts-ignore
100
+ window.BSGlobal.OkrAdvancedSetting.KRSetting.ShowKrProgress
101
+ );
102
+ }),
101
103
  _useState14 = _slicedToArray(_useState13, 1),
102
104
  ShowKrProgress = _useState14[0];
103
105
 
@@ -134,11 +136,11 @@ var ProgressModal = function ProgressModal(props) {
134
136
  case 3:
135
137
  data = _context.sent;
136
138
 
137
- if (data.Code === 1) {
139
+ if (data.Code == 1) {
138
140
  _data$Data = data.Data, UpdateProgressWay = _data$Data.UpdateProgressWay, Progress = _data$Data.Progress;
139
141
  setRecommandProgressObj(data.Data);
140
- setUpdate(UpdateProgressWay !== 0);
141
- setUpdateWay(UpdateProgressWay === 0 ? 1 : UpdateProgressWay);
142
+ setUpdate(UpdateProgressWay != 0);
143
+ setUpdateWay(UpdateProgressWay == 0 ? 1 : UpdateProgressWay);
142
144
  setProgress(Progress);
143
145
  }
144
146
 
@@ -167,14 +169,8 @@ var ProgressModal = function ProgressModal(props) {
167
169
  var childOkrProgress = recommandProgressObj.childOkrProgress,
168
170
  childkrProgress = recommandProgressObj.childkrProgress,
169
171
  childEProgress = recommandProgressObj.childEProgress;
170
-
171
- if (updateWay === 1) {
172
- setProgress(isKr ? (0, _helper.transProgress)(childEProgress) : (0, _helper.transProgress)(childkrProgress));
173
- }
174
-
175
- if (updateWay === 2) {
176
- setProgress((0, _helper.transProgress)(childOkrProgress));
177
- }
172
+ updateWay == 1 && setProgress(isKr ? (0, _helper.transProgress)(childEProgress) : (0, _helper.transProgress)(childkrProgress));
173
+ updateWay == 2 && setProgress((0, _helper.transProgress)(childOkrProgress));
178
174
  }, [updateWay, autoUpdate, recommandProgressObj]);
179
175
 
180
176
  var descriptionText = /*#__PURE__*/_react["default"].createElement(_style.Item, null, /*#__PURE__*/_react["default"].createElement("span", {
@@ -233,8 +229,7 @@ var ProgressModal = function ProgressModal(props) {
233
229
  okDisabled: errorProgress || errorRemark,
234
230
  title: title,
235
231
  visible: visible,
236
- width: 600,
237
- zIndex: 2400
232
+ width: 600
238
233
  }, /*#__PURE__*/_react["default"].createElement(_style.List, null, /*#__PURE__*/_react["default"].createElement(_style.Item, null, /*#__PURE__*/_react["default"].createElement("span", {
239
234
  className: "auto-update__item-label"
240
235
  }, (0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Progresss1")), /*#__PURE__*/_react["default"].createElement("div", {
@@ -264,7 +259,7 @@ var ProgressModal = function ProgressModal(props) {
264
259
  }
265
260
  }, /*#__PURE__*/_react["default"].createElement(_style.Icon, {
266
261
  color: option.color,
267
- className: selected === option.id ? "tu-icon-singlebox-avtive" : "tu-icon-singlebox-have"
262
+ className: selected == option.id ? "tu-icon-singlebox-avtive" : "tu-icon-singlebox-have"
268
263
  }), /*#__PURE__*/_react["default"].createElement("p", null, option.text));
269
264
  }))), descriptionText, /*#__PURE__*/_react["default"].createElement("div", {
270
265
  className: "auto-update-setting"
@@ -283,7 +278,7 @@ var ProgressModal = function ProgressModal(props) {
283
278
  },
284
279
  className: "auto-update-setting__option"
285
280
  }, /*#__PURE__*/_react["default"].createElement("span", {
286
- className: (0, _classnames["default"])("auto-update-setting__radio", "auto-update-setting__radio".concat(updateWay === option.key ? "--selected" : ""))
281
+ className: (0, _classnames["default"])("auto-update-setting__radio", "auto-update-setting__radio".concat(updateWay == option.key ? "--selected" : ""))
287
282
  }), /*#__PURE__*/_react["default"].createElement("span", null, option.label), /*#__PURE__*/_react["default"].createElement(_titaUi.Tooltip, {
288
283
  content: option.tooltip,
289
284
  container: document.body,
@@ -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
 
@@ -76,8 +76,7 @@ var ShareContent = function ShareContent(_ref) {
76
76
  var OkrShare = function OkrShare(_ref2) {
77
77
  var data = _ref2.data,
78
78
  visible = _ref2.visible,
79
- onClose = _ref2.onClose,
80
- zIndex = _ref2.zIndex;
79
+ onClose = _ref2.onClose;
81
80
  var modalRef = (0, _react.useRef)();
82
81
  return /*#__PURE__*/_react["default"].createElement(_titaUi.Modal, {
83
82
  visible: visible,
@@ -88,8 +87,7 @@ var OkrShare = function OkrShare(_ref2) {
88
87
  onCancel: function onCancel() {
89
88
  return onClose();
90
89
  },
91
- ref: modalRef,
92
- zIndex: zIndex
90
+ ref: modalRef
93
91
  }, visible ? /*#__PURE__*/_react["default"].createElement(ShareContent, {
94
92
  closeModal: function closeModal() {
95
93
  return onClose();
@@ -101,8 +99,5 @@ var OkrShare = function OkrShare(_ref2) {
101
99
  }) : null);
102
100
  };
103
101
 
104
- OkrShare.defaultProps = {
105
- zIndex: 1300
106
- };
107
102
  var _default = OkrShare;
108
103
  exports["default"] = _default;
@@ -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 _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
23
23
 
24
24
  var dealSelectedPeriodData = function dealSelectedPeriodData(period) {
25
25
  var option = {};
26
- option.cycleType = period === "-1" ? "-1" : period.substring(0, 1);
26
+ option.cycleType = Number(period) === -1 ? "-1" : period.substring(0, 1);
27
27
  option.yqmNum = period.substring(2) === "" ? "0" : period.substring(2);
28
28
  return option;
29
29
  };
@@ -70,7 +70,7 @@ var formatPeriod = function formatPeriod(selected) {
70
70
  if (!selected) return "";
71
71
  var quarter = ["", "".concat((0, _getLocale.getLocale)("OKR_MyO_Pop_1stQuarter")), "".concat((0, _getLocale.getLocale)("OKR_MyO_Pop_2ndQuarter")), "".concat((0, _getLocale.getLocale)("OKR_MyO_Pop_3rdQuarter")), "".concat((0, _getLocale.getLocale)("OKR_MyO_Pop_4thQuarter"))];
72
72
  var cycleDate = "";
73
- var annualNum = selected.annualNum === "-1" ? "".concat((0, _getLocale.getLocale)("OKR_MyO_Butt_Allyears")) : "".concat(selected.annualNum).concat(_getLocale.isEn ? "" : "年");
73
+ var annualNum = Number("".concat(selected.annualNum)) === -1 ? "".concat((0, _getLocale.getLocale)("OKR_MyO_Butt_Allyears")) : "".concat(selected.annualNum).concat(_getLocale.isEn ? "" : "年");
74
74
  var month = (0, _constant.getMonth)();
75
75
 
76
76
  switch ("".concat(selected.cycleType)) {
@@ -96,7 +96,7 @@ var formatPeriod = function formatPeriod(selected) {
96
96
  break;
97
97
 
98
98
  case "5":
99
- cycleDate = selected.yqmNum === "1" ? "".concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Firsthalf")) : "".concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Secondhalf"));
99
+ cycleDate = Number("".concat(selected.yqmNum)) === 1 ? "".concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Firsthalf")) : "".concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Secondhalf"));
100
100
  break;
101
101
 
102
102
  default:
@@ -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
 
@@ -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
 
@@ -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