@titaui/pc 1.15.21-beta.2 → 1.15.21
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.
- package/lib/components/avatar/icon-avatar/index.js +1 -1
- package/lib/components/avatar/num-avatar/index.js +1 -1
- package/lib/components/book-demo/components/pc/components/content/index.js +1 -1
- package/lib/components/button/default-button/index.js +1 -1
- package/lib/components/button/icon-btn/index.js +1 -1
- package/lib/components/cascader/index.js +1 -1
- package/lib/components/cascader/time.js +1 -1
- package/lib/components/change-okr-modal/Filter.js +2 -2
- package/lib/components/change-okr-modal/Item.js +2 -2
- package/lib/components/change-okr-modal/filterTab.js +2 -2
- package/lib/components/change-okr-modal/index.js +6 -4
- package/lib/components/common-share/publishMblog.js +4 -2
- package/lib/components/communication/CommunicationAttachments.js +2 -2
- package/lib/components/communication/ConvertUserName.js +2 -2
- package/lib/components/communication/index.js +2 -2
- package/lib/components/create-okr-modal/fields/okr-type-detail.js +4 -2
- package/lib/components/create-okr-modal/fields/okr-visibility-detail.js +4 -2
- package/lib/components/create-okr-modal/index.js +4 -2
- package/lib/components/create-okr-modal/objectType.js +2 -2
- package/lib/components/create-okr-modal/request-api.js +16 -12
- package/lib/components/create-okr-modal/utils/helper.js +6 -2
- package/lib/components/date-picker/BodyItem.js +3 -3
- package/lib/components/date-picker/CalendarBody.js +3 -3
- package/lib/components/date-picker/CalendarHeader.js +3 -3
- package/lib/components/date-picker/index.js +2 -2
- package/lib/components/date-range-picker/index.js +2 -2
- package/lib/components/delete-confirm-pop/ConfirmPop.js +2 -2
- package/lib/components/dialog/index.js +1 -1
- package/lib/components/dialog-confirm/index.js +1 -1
- package/lib/components/dialog-qq-docs/index.css +0 -6
- package/lib/components/dialog-qq-docs/index.js +11 -9
- package/lib/components/dialog-qq-docs/utils.js +6 -2
- package/lib/components/dialog-select/index.js +1 -1
- package/lib/components/dialog-upload/index.js +4 -2
- package/lib/components/dialog-upload-type/components/upload-type-item/index.js +1 -1
- package/lib/components/dialog-upload-type/index.js +1 -1
- package/lib/components/drawer/headerDrop.js +1 -1
- package/lib/components/drawer/index.js +1 -1
- package/lib/components/drawer-manager/drawerWrapper.js +5 -3
- package/lib/components/drawer-manager/index.js +1 -1
- package/lib/components/drop-selector/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +6 -4
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-discovery/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-learning/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +115 -91
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +51 -33
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/index.js +1 -1
- package/lib/components/dynamic/dynamic-list/index.js +1 -1
- package/lib/components/eReport/eReportListEmpty.js +2 -2
- package/lib/components/eReport/eReportLists/reportList.js +2 -2
- package/lib/components/eReport/eReportShare/index.js +2 -2
- package/lib/components/eReport/eReportShare/toast/index.js +2 -2
- package/lib/components/edit-kr-wight/EditKrWightModal.js +2 -2
- package/lib/components/edit-kr-wight/FormItemV2.js +2 -2
- package/lib/components/emotions-selector/selector-content.js +2 -2
- package/lib/components/emotions-selector/selector-pop.js +2 -2
- package/lib/components/ereport-list/index.js +2 -2
- package/lib/components/error-boundary/index.js +2 -2
- package/lib/components/firework/index.js +6 -2
- package/lib/components/form/form-fields/date/index.js +1 -1
- package/lib/components/form/form-fields/dropdown/index.js +1 -1
- package/lib/components/form/form-fields/input/index.js +1 -1
- package/lib/components/form/form-fields/input-verification-code/index.js +4 -2
- package/lib/components/form/form-fields/user/index.js +1 -1
- package/lib/components/grid-layout/util/network.js +10 -6
- package/lib/components/guide-tip/index.js +1 -1
- package/lib/components/help-card/index.js +1 -1
- package/lib/components/import-modal/import-task-modal/index.js +1 -1
- package/lib/components/import-modal/tree/okr-tree/index.js +4 -2
- package/lib/components/import-modal/tree-node/index.js +1 -1
- package/lib/components/mblog/components/ConfirmPop.js +2 -2
- package/lib/components/mblog/components/MblogAction.js +2 -2
- package/lib/components/mblog/components/MblogContent.js +2 -2
- package/lib/components/mblog/index.js +2 -2
- package/lib/components/menus/components/menu-tree/index.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/index.js +1 -1
- package/lib/components/nav-top/components/user-message/components/inform/index.css +1 -0
- package/lib/components/nav-top/index.js +4 -21
- package/lib/components/okr-detail/auth.js +2 -2
- package/lib/components/okr-detail/base-info/other-infos/principal/index.js +4 -2
- package/lib/components/okr-detail/components/ao-nice/index.js +6 -4
- package/lib/components/okr-detail/components/base-okr-type/confirm/buttonv2.js +2 -2
- package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +2 -2
- package/lib/components/okr-detail/components/base-okr-type/object-type.js +2 -2
- package/lib/components/okr-detail/components/header/edit-name.js +4 -2
- package/lib/components/okr-detail/components/header/o-avatar.js +4 -2
- package/lib/components/okr-detail/components/header/o-classify.js +4 -2
- package/lib/components/okr-detail/components/header/o-score.js +1 -1
- package/lib/components/okr-detail/components/icon-text/index.js +1 -1
- package/lib/components/okr-detail/components/o-classify.js +4 -2
- package/lib/components/okr-detail/components/o-progress-update/index.js +4 -2
- package/lib/components/okr-detail/components/okr-tree/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +4 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +4 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +4 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +4 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +2 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +3 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +4 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/edit-child-okr-weight.js +8 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +4 -2
- package/lib/components/okr-detail/detail-footer/index.js +4 -2
- package/lib/components/okr-detail/detail-header/index.js +12 -10
- package/lib/components/okr-detail/okr-list/index.js +4 -2
- package/lib/components/okr-detail/request-apis.js +6 -2
- package/lib/components/okr-flow/child-node/fields/creator.js +4 -2
- package/lib/components/okr-flow/child-node/work-node.js +4 -2
- package/lib/components/okr-flow/export-modal/index.js +6 -43
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +10 -8
- package/lib/components/okr-flow/mini-map/index.css +1 -1
- package/lib/components/okr-flow/request-apis.js +6 -2
- package/lib/components/okr-flow/root-node/index.js +4 -2
- package/lib/components/okr-progress/components/o-progress-update/index.js +4 -2
- package/lib/components/okr-progress-modal/index.js +4 -2
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +6 -4
- package/lib/components/okr-review/ReviewPop/components/Toast/index.js +2 -2
- package/lib/components/okr-review/ReviewPop/index.js +2 -2
- package/lib/components/okr-review/components/ReviewItem/index.js +2 -2
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +2 -2
- package/lib/components/okr-review/index.js +2 -2
- package/lib/components/okr-share/common-painter/darwAvatar.js +8 -4
- package/lib/components/okr-share/common-painter/openDataPainter.js +6 -2
- package/lib/components/okr-share/common-painter/utils.js +8 -4
- package/lib/components/okr-share/pink-card/drawDepartmentName.js +6 -2
- package/lib/components/okr-share/pink-card/drawKrs.js +6 -2
- package/lib/components/okr-share/pink-card/drawQuote.js +6 -2
- package/lib/components/okr-share/pink-card/drawUserName.js +6 -2
- package/lib/components/okr-share/pink-card/index.js +6 -2
- package/lib/components/okr-share/publishMblog.js +4 -2
- package/lib/components/okr-share/shareCardSelector.js +6 -4
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +4 -4
- package/lib/components/okrcase-library/server/network.js +24 -20
- package/lib/components/open-data-painter/index.js +6 -2
- package/lib/components/operation-records/OperationRecordItem.js +2 -2
- package/lib/components/operation-records/index.js +2 -2
- package/lib/components/pagination/pagination.js +1 -1
- package/lib/components/period-selector/components/button/index.js +1 -1
- package/lib/components/period-selector/helper/index.js +6 -2
- package/lib/components/period-selector/index.js +0 -1
- package/lib/components/picker/components/panels/date-panel/index.js +1 -1
- package/lib/components/picker/components/panels/month-panel/index.js +1 -1
- package/lib/components/picker/components/panels/month-panel/month-head.js +1 -1
- package/lib/components/picker/components/panels/week-panel/index.js +1 -1
- package/lib/components/picker/components/panels/year-panel/index.js +1 -1
- package/lib/components/picker/components/panels/year-panel/year-head.js +1 -1
- package/lib/components/picker/picker.js +1 -1
- package/lib/components/picker/range-picker/index.js +1 -1
- package/lib/components/point-demo/drop-down-box/index.js +1 -1
- package/lib/components/point-demo/input/index.js +3 -3
- package/lib/components/point-demo/popup/index.js +1 -1
- package/lib/components/popup/index.js +1 -1
- package/lib/components/praise-record/PraiseRecordItem.js +2 -2
- package/lib/components/praise-record/index.js +2 -2
- package/lib/components/range-picker-pop/index.js +3 -3
- package/lib/components/range-selector-pop/RangeList.js +2 -2
- package/lib/components/range-selector-pop/RangeSelectorPop.js +2 -2
- package/lib/components/rate/index.js +1 -1
- package/lib/components/rich-editor/models/schema.js +2 -2
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +2 -2
- package/lib/components/rich-editor/plugins/block/heading/index.js +2 -2
- package/lib/components/rich-editor/plugins/block/lists/index.js +2 -2
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +2 -2
- package/lib/components/rich-editor/plugins/core/index.js +2 -2
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +2 -2
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/color/commond.js +3 -3
- package/lib/components/rich-editor/plugins/inline/color/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/em/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/link/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/strong/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +2 -2
- package/lib/components/rich-editor/react/reactNodeView.js +4 -4
- package/lib/components/rich-editor/react/uiProvider.js +2 -2
- package/lib/components/rich-editor/ui/Popup/index.js +2 -2
- package/lib/components/scroll-container/index.js +2 -2
- package/lib/components/scrollbar/index.js +1 -1
- package/lib/components/scrollbar/scroll-mask/index.js +1 -1
- package/lib/components/scrollbar/simplebar-react.js +1 -1
- package/lib/components/search-dropdown/index.js +1 -1
- package/lib/components/select/Option.js +3 -3
- package/lib/components/select/index.js +3 -3
- package/lib/components/select-layer/index.js +1 -1
- package/lib/components/select-tags/index.js +1 -1
- package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +6 -2
- package/lib/components/superset-charts/fetch-assets-and-append/index.js +8 -4
- package/lib/components/survey-model/request-api.js +6 -2
- package/lib/components/switch/index.js +1 -1
- package/lib/components/table/index.js +1 -1
- package/lib/components/tabs/index.js +1 -1
- package/lib/components/task-relation-modal/index.js +7 -5
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.js +1 -1
- package/lib/components/task-relation-modal/okr-relation/relation-work-model/index.js +1 -1
- package/lib/components/task-relation-modal/tree/category-tree/index.js +4 -2
- package/lib/components/task-relation-modal/tree/okr-tree/index.js +4 -2
- package/lib/components/task-relation-modal/tree/work-tree/index.js +4 -2
- package/lib/components/task-relation-modal/tree-node/index.js +1 -1
- package/lib/components/task-relation-modal/work-relation/index.js +7 -5
- package/lib/components/task-tree/task-item-node/e-project.js +4 -2
- package/lib/components/task-tree/task-item-node/e-task.js +4 -2
- package/lib/components/task-tree/task-item-node/task-node-render.js +1 -1
- package/lib/components/task-tree/task-tree.js +1 -1
- package/lib/components/textarea/index.js +1 -1
- package/lib/components/time-picker/time-picker-selector.js +1 -1
- package/lib/components/time-picker/time-picker.js +1 -1
- package/lib/components/time-picker/timer-picker-input.js +1 -1
- package/lib/components/tita-chart/charts/liquid-ball.js +1 -1
- package/lib/components/tita-chart/charts/pie.js +1 -1
- package/lib/components/tita-chart/errorBoundary/index.js +2 -2
- package/lib/components/toast/index.js +12 -8
- package/lib/components/tooltip/error-tip.js +1 -1
- package/lib/components/tooltip/tooltip.js +1 -1
- package/lib/components/tree/index.js +1 -1
- package/lib/components/upload/components/uploadedPreview.js +2 -2
- package/lib/components/upload/index.js +6 -4
- package/lib/components/upload/index2.js +4 -2
- package/lib/components/upvote/index.js +7 -5
- package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.js +1 -1
- package/lib/components/user-selector/select-tree/choose-tree/index.js +1 -1
- package/lib/components/user-selector/select-tree/selected-tree/index.js +1 -1
- package/lib/components/version-change-modal/index.js +6 -4
- package/lib/components/version-change-modal/request-api.js +6 -2
- package/lib/components/viewer/ImageListRender.js +2 -2
- package/lib/components/viewer/index.js +2 -2
- package/lib/components/weekly-report/card.js +4 -12
- package/lib/components/weekly-report/common-painter/darwAvatar.js +10 -6
- package/lib/components/weekly-report/common-painter/drawName.js +6 -2
- package/lib/components/weekly-report/common-painter/openDataPainter.js +6 -2
- package/lib/components/weekly-report/index.js +6 -4
- package/lib/components-v1/animate/AnimateChild.js +2 -2
- package/lib/components-v1/animate/animate.js +2 -2
- package/lib/components-v1/avatar/index.js +2 -2
- package/lib/components-v1/buttonv2/ButtonOutlined.js +2 -2
- package/lib/components-v1/buttonv2/ButtonRounded.js +2 -2
- package/lib/components-v1/buttonv2/DefaultButton.js +2 -2
- package/lib/components-v1/confirm/index.js +2 -2
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +2 -2
- package/lib/components-v1/dropDownSelector/dropDownSelector.js +2 -2
- package/lib/components-v1/input/Input.js +3 -3
- package/lib/components-v1/input/InputNumber.js +2 -2
- package/lib/components-v1/placement/placement.js +2 -2
- package/lib/components-v1/placement/placementInner.js +2 -2
- package/lib/components-v1/pop/Pop.js +2 -2
- package/lib/components-v1/pop/PopInner.js +2 -2
- package/lib/components-v1/portals/Portals.js +2 -2
- package/lib/components-v1/progress/CircleProgress.js +2 -2
- package/lib/components-v1/progress/LineProgress.js +2 -2
- package/lib/components-v1/progress/index.js +2 -2
- package/lib/components-v1/radio/radio.js +2 -2
- package/lib/components-v1/radio/radioGroup.js +2 -2
- package/lib/components-v1/search/index.js +2 -2
- package/lib/components-v1/select/Option.js +3 -3
- package/lib/components-v1/select/index.js +3 -3
- package/lib/components-v1/tabs/index.js +2 -2
- package/lib/components-v1/textarea/index.js +2 -2
- package/lib/components-v1/transition/index.js +2 -2
- package/lib/components-v1/userSelector/UserSelectorPop.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentTree.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/index.js +2 -2
- package/lib/components-v1/userSelector/components/SearchBar.js +2 -2
- package/lib/components-v1/userSelector/components/SingleMode.js +2 -2
- package/lib/components-v1/userSelector/components/UserItem.js +2 -2
- package/lib/components-v1/userSelector/index.js +2 -2
- package/lib/pages/appointment-demo/drop-down-box/index.js +1 -1
- package/lib/pages/appointment-demo/input/index.js +3 -3
- package/lib/pages/appointment-demo/popup/index.js +1 -1
- package/lib/pages/group-management/components/input-form/index.js +3 -3
- package/lib/pages/group-management/components/radio/index.js +1 -1
- package/lib/pages/group-management/groupInterface.js +6 -2
- package/lib/pages/group-management/page-view/importGroupStaff/index.js +1 -1
- package/lib/pages/group-management/tree/index.js +1 -1
- package/lib/pages/new-okr-list/request-api.js +18 -14
- package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +5 -3
- package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +1 -1
- package/lib/pages/okr-map/request-apis.js +6 -2
- package/lib/pages/okr-map/share-dialog/index.js +1 -1
- package/lib/pages/personal-info/components/edit-base-info/index.js +3 -0
- package/lib/utils/auth.js +2 -2
- package/lib/utils/helpers.js +6 -2
- package/lib/utils/open-data.js +6 -4
- package/lib/utils/request-v1.js +6 -2
- package/lib/utils/request.js +6 -2
- package/package.json +1 -1
|
@@ -11,8 +11,12 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
+
var Sentry = _interopRequireWildcard(require("@sentry/browser"));
|
|
15
|
+
|
|
14
16
|
var _richEditor = _interopRequireWildcard(require("@titaui/rich-editor"));
|
|
15
17
|
|
|
18
|
+
var _reactIntersectionObserver = require("react-intersection-observer");
|
|
19
|
+
|
|
16
20
|
var _tooltip = _interopRequireDefault(require("../../../tooltip"));
|
|
17
21
|
|
|
18
22
|
var _context = require("../../context");
|
|
@@ -51,7 +55,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
51
55
|
|
|
52
56
|
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; }
|
|
53
57
|
|
|
54
|
-
function _extends() { _extends = Object.assign
|
|
58
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
55
59
|
|
|
56
60
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
57
61
|
|
|
@@ -73,14 +77,14 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
73
77
|
|
|
74
78
|
var getEReportType = function getEReportType(type) {
|
|
75
79
|
var reportTextMap = {
|
|
76
|
-
8: (0, _getLocale.getLocale)(
|
|
77
|
-
26: (0, _getLocale.getLocale)(
|
|
78
|
-
27: (0, _getLocale.getLocale)(
|
|
80
|
+
8: (0, _getLocale.getLocale)('Rep_Tab_Dailynewspaper'),
|
|
81
|
+
26: (0, _getLocale.getLocale)('Rep_Tab_Weeklynewspaper'),
|
|
82
|
+
27: (0, _getLocale.getLocale)('Rep_Tab_MonthlyReport')
|
|
79
83
|
};
|
|
80
84
|
return reportTextMap[type];
|
|
81
85
|
};
|
|
82
86
|
|
|
83
|
-
var prefix =
|
|
87
|
+
var prefix = 'titaui-dynamic-new-report-item';
|
|
84
88
|
var loginUserId = (0, _bsGlobal.getUserInfo)().Id;
|
|
85
89
|
|
|
86
90
|
var DynamicReply = function DynamicReply(_ref) {
|
|
@@ -134,18 +138,95 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
134
138
|
|
|
135
139
|
var renderSuffix = /*#__PURE__*/_react["default"].createElement("span", {
|
|
136
140
|
className: (0, _classnames["default"])("".concat(prefix, "__complete-type"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "__complete-type--normal"), submitState === 1), _defineProperty(_classNames, "".concat(prefix, "__complete-type--delay"), submitState === 2), _classNames))
|
|
137
|
-
}, submitState === 1 && (0, _getLocale.getLocale)(
|
|
141
|
+
}, submitState === 1 && (0, _getLocale.getLocale)('Rep_Tab_Mys_Submitontime'), submitState === 2 && (0, _getLocale.getLocale)('Tasks_Tab_DelaSubmission'));
|
|
138
142
|
|
|
139
143
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
140
144
|
var reportTextMap = {
|
|
141
|
-
8: (0, _getLocale.getLocale)(
|
|
142
|
-
26: (0, _getLocale.getLocale)(
|
|
143
|
-
27: (0, _getLocale.getLocale)(
|
|
145
|
+
8: (0, _getLocale.getLocale)('Rep_Tab_Mys_Dailynewsp'),
|
|
146
|
+
26: (0, _getLocale.getLocale)('Rep_Tab_Mys_sweeklyReport'),
|
|
147
|
+
27: (0, _getLocale.getLocale)('Rep_Tab_Sub_monthlyeport')
|
|
144
148
|
};
|
|
145
149
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
146
150
|
className: "".concat(prefix, "__operate-desc")
|
|
147
151
|
}, reportTextMap[reportType]);
|
|
148
152
|
}, [reportType]);
|
|
153
|
+
|
|
154
|
+
var renderContent = function renderContent() {
|
|
155
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
156
|
+
className: prefix
|
|
157
|
+
}, /*#__PURE__*/_react["default"].createElement(_summaryHeader["default"], _extends({
|
|
158
|
+
data: data
|
|
159
|
+
}, restProps, {
|
|
160
|
+
desc: renderDesc,
|
|
161
|
+
user: publishUser,
|
|
162
|
+
suffixContent: renderSuffix,
|
|
163
|
+
showDelete: showDelete,
|
|
164
|
+
showEdit: showEdit,
|
|
165
|
+
canEvaluate: canEvaluate && !currentEvalutes,
|
|
166
|
+
setEvaluates: setCurrentEvalutes
|
|
167
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
168
|
+
className: "".concat(prefix, "__content")
|
|
169
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
170
|
+
className: "".concat(prefix, "__content-title")
|
|
171
|
+
}, /*#__PURE__*/_react["default"].createElement(_title["default"], {
|
|
172
|
+
content: (0, _tools.htmlDecodeByRegExp)(data.name),
|
|
173
|
+
type: getEReportType(reportType),
|
|
174
|
+
typeBgColor: "rgba(92, 142, 255, 0.5)",
|
|
175
|
+
titleBgColor: "rgba(92, 142, 255, 0.1)",
|
|
176
|
+
contentColor: "#5C8EFF"
|
|
177
|
+
}), (motionValue === null || motionValue === void 0 ? void 0 : motionValue.img) && /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
178
|
+
overlay: motionValue.tips,
|
|
179
|
+
placement: "top",
|
|
180
|
+
align: {
|
|
181
|
+
offset: [0, 5]
|
|
182
|
+
}
|
|
183
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
184
|
+
src: motionValue.img,
|
|
185
|
+
className: "".concat(prefix, "__content-mind"),
|
|
186
|
+
alt: ""
|
|
187
|
+
}))), dailyContent.map(function (item) {
|
|
188
|
+
if (item.contentType === _constant.dailyContentType.richText) {
|
|
189
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, ((item === null || item === void 0 ? void 0 : item.richContent) || !(0, _util.isEmptyImage)(item === null || item === void 0 ? void 0 : item.richContent)) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
190
|
+
className: "".concat(prefix, "__work"),
|
|
191
|
+
key: item.richContent || Math.random()
|
|
192
|
+
}, item.title === '工作总结' ? (0, _getLocale.getLocale)('Tasks_Tab_MyS_JobSummary') : (0, _getLocale.getLocale)('Rep_Tab_Mys_NextWorkPlans'), /*#__PURE__*/_react["default"].createElement(_richEditor["default"], null, /*#__PURE__*/_react["default"].createElement(_richEditor.EditorComponent, {
|
|
193
|
+
editable: false,
|
|
194
|
+
initialState: !!item.richContent ? JSON.parse(item.richContent || '{}') : undefined,
|
|
195
|
+
placeholder: (0, _getLocale.getLocale)('Rep_NewS_Notfilled')
|
|
196
|
+
}))));
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
if (item.contentType === _constant.dailyContentType.okr) {
|
|
200
|
+
return item.content && /*#__PURE__*/_react["default"].createElement(_okrProgress["default"], {
|
|
201
|
+
data: item.content,
|
|
202
|
+
reportType: data.reportType
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
if (item.contentType === _constant.dailyContentType.task) {
|
|
207
|
+
return item.content && /*#__PURE__*/_react["default"].createElement(_taskProgress["default"], {
|
|
208
|
+
data: item.content,
|
|
209
|
+
reportType: data.reportType
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
}), files.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
213
|
+
className: "".concat(prefix, "__upload")
|
|
214
|
+
}, /*#__PURE__*/_react["default"].createElement(_richEditorUpload["default"], {
|
|
215
|
+
text: (0, _getLocale.getLocale)('Per_Ass_New_Err_Attachment'),
|
|
216
|
+
files: files,
|
|
217
|
+
editable: false,
|
|
218
|
+
enableDelete: false
|
|
219
|
+
})), /*#__PURE__*/_react["default"].createElement(_remindUserView["default"], {
|
|
220
|
+
data: atValue,
|
|
221
|
+
curAtUser: curAtUser
|
|
222
|
+
}), currentEvalutes && currentEvalutes.length !== 0 && /*#__PURE__*/_react["default"].createElement(_evalute["default"], {
|
|
223
|
+
evaluation: currentEvalutes[0],
|
|
224
|
+
feedId: feedId,
|
|
225
|
+
publishUser: publishUser,
|
|
226
|
+
canEvaluate: canEvaluate
|
|
227
|
+
})));
|
|
228
|
+
};
|
|
229
|
+
|
|
149
230
|
(0, _react.useEffect)(function () {
|
|
150
231
|
setCurrentEvalutes(evaluates);
|
|
151
232
|
}, [evaluates]);
|
|
@@ -169,7 +250,7 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
169
250
|
var motion = _constant.Motion.find(function (item) {
|
|
170
251
|
var _JSON$parse$SelectedV;
|
|
171
252
|
|
|
172
|
-
return item.id === (((_JSON$parse$SelectedV = JSON.parse(mindData.content ||
|
|
253
|
+
return item.id === (((_JSON$parse$SelectedV = JSON.parse(mindData.content || '{}').SelectedValues) === null || _JSON$parse$SelectedV === void 0 ? void 0 : _JSON$parse$SelectedV[0]) || 0);
|
|
173
254
|
});
|
|
174
255
|
|
|
175
256
|
setMotionValue(motion);
|
|
@@ -181,7 +262,7 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
181
262
|
return item.contentType === 5;
|
|
182
263
|
});
|
|
183
264
|
if (!(atData !== null && atData !== void 0 && atData.content)) return;
|
|
184
|
-
var atMotion = JSON.parse(atData.content ||
|
|
265
|
+
var atMotion = JSON.parse(atData.content || '{}');
|
|
185
266
|
setAtValue(atMotion);
|
|
186
267
|
}
|
|
187
268
|
}, [dailyContent]);
|
|
@@ -190,90 +271,33 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
190
271
|
setShowDelete(true);
|
|
191
272
|
setShowEdit(true);
|
|
192
273
|
}
|
|
193
|
-
}, []);
|
|
194
|
-
// if (inview) {
|
|
195
|
-
// window.titaTracker("planAction").record({
|
|
196
|
-
// actionName: "查看日报",
|
|
197
|
-
// actionGroup: "动态-查看日报",
|
|
198
|
-
// productName: "动态",
|
|
199
|
-
// feedId,
|
|
200
|
-
// });
|
|
201
|
-
// }
|
|
202
|
-
// }
|
|
203
|
-
|
|
204
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
205
|
-
className: prefix
|
|
206
|
-
}, /*#__PURE__*/_react["default"].createElement(_summaryHeader["default"], _extends({
|
|
207
|
-
data: data
|
|
208
|
-
}, restProps, {
|
|
209
|
-
desc: renderDesc,
|
|
210
|
-
user: publishUser,
|
|
211
|
-
suffixContent: renderSuffix,
|
|
212
|
-
showDelete: showDelete,
|
|
213
|
-
showEdit: showEdit,
|
|
214
|
-
canEvaluate: canEvaluate && !currentEvalutes,
|
|
215
|
-
setEvaluates: setCurrentEvalutes
|
|
216
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
217
|
-
className: "".concat(prefix, "__content")
|
|
218
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
219
|
-
className: "".concat(prefix, "__content-title")
|
|
220
|
-
}, /*#__PURE__*/_react["default"].createElement(_title["default"], {
|
|
221
|
-
content: (0, _tools.htmlDecodeByRegExp)(data.name),
|
|
222
|
-
type: getEReportType(reportType),
|
|
223
|
-
typeBgColor: "rgba(92, 142, 255, 0.5)",
|
|
224
|
-
titleBgColor: "rgba(92, 142, 255, 0.1)",
|
|
225
|
-
contentColor: "#5C8EFF"
|
|
226
|
-
}), (motionValue === null || motionValue === void 0 ? void 0 : motionValue.img) && /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
227
|
-
overlay: motionValue.tips,
|
|
228
|
-
placement: "top",
|
|
229
|
-
align: {
|
|
230
|
-
offset: [0, 5]
|
|
231
|
-
}
|
|
232
|
-
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
233
|
-
src: motionValue.img,
|
|
234
|
-
className: "".concat(prefix, "__content-mind"),
|
|
235
|
-
alt: ""
|
|
236
|
-
}))), dailyContent.map(function (item) {
|
|
237
|
-
if (item.contentType === _constant.dailyContentType.richText) {
|
|
238
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, ((item === null || item === void 0 ? void 0 : item.richContent) || !(0, _util.isEmptyImage)(item === null || item === void 0 ? void 0 : item.richContent)) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
239
|
-
className: "".concat(prefix, "__work"),
|
|
240
|
-
key: item.richContent || Math.random()
|
|
241
|
-
}, item.title === "工作总结" ? (0, _getLocale.getLocale)('Tasks_Tab_MyS_JobSummary') : (0, _getLocale.getLocale)('Rep_Tab_Mys_NextWorkPlans'), /*#__PURE__*/_react["default"].createElement(_richEditor["default"], null, /*#__PURE__*/_react["default"].createElement(_richEditor.EditorComponent, {
|
|
242
|
-
editable: false,
|
|
243
|
-
initialState: !!item.richContent ? JSON.parse(item.richContent || '{}') : undefined,
|
|
244
|
-
placeholder: (0, _getLocale.getLocale)('Rep_NewS_Notfilled')
|
|
245
|
-
}))));
|
|
246
|
-
}
|
|
274
|
+
}, []);
|
|
247
275
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
276
|
+
if (!window.IntersectionObserver) {
|
|
277
|
+
Sentry.withScope(function (scope) {
|
|
278
|
+
scope.setTag('error-level', "P0");
|
|
279
|
+
scope.setTag('error-type', '总结在 window 找不到 IntersectionObserver');
|
|
280
|
+
scope.setExtra('componentStack', '总结在 window 找不到 IntersectionObserver');
|
|
281
|
+
});
|
|
282
|
+
return renderContent();
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
var handleInView = function handleInView(inview) {
|
|
286
|
+
if (inview) {
|
|
287
|
+
window.titaTracker('planAction').record({
|
|
288
|
+
actionName: '查看日报',
|
|
289
|
+
actionGroup: '动态-查看日报',
|
|
290
|
+
productName: '动态',
|
|
291
|
+
feedId: feedId
|
|
252
292
|
});
|
|
253
293
|
}
|
|
294
|
+
};
|
|
254
295
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
}
|
|
261
|
-
}), files.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
262
|
-
className: "".concat(prefix, "__upload")
|
|
263
|
-
}, /*#__PURE__*/_react["default"].createElement(_richEditorUpload["default"], {
|
|
264
|
-
text: (0, _getLocale.getLocale)("Per_Ass_New_Err_Attachment"),
|
|
265
|
-
files: files,
|
|
266
|
-
editable: false,
|
|
267
|
-
enableDelete: false
|
|
268
|
-
})), /*#__PURE__*/_react["default"].createElement(_remindUserView["default"], {
|
|
269
|
-
data: atValue,
|
|
270
|
-
curAtUser: curAtUser
|
|
271
|
-
}), currentEvalutes && currentEvalutes.length !== 0 && /*#__PURE__*/_react["default"].createElement(_evalute["default"], {
|
|
272
|
-
evaluation: currentEvalutes[0],
|
|
273
|
-
feedId: feedId,
|
|
274
|
-
publishUser: publishUser,
|
|
275
|
-
canEvaluate: canEvaluate
|
|
276
|
-
})));
|
|
296
|
+
return /*#__PURE__*/_react["default"].createElement(_reactIntersectionObserver.InView, {
|
|
297
|
+
triggerOnce: true,
|
|
298
|
+
onChange: handleInView,
|
|
299
|
+
threshold: 0.5
|
|
300
|
+
}, renderContent());
|
|
277
301
|
};
|
|
278
302
|
|
|
279
303
|
var _default = DynamicReply;
|
|
@@ -27,7 +27,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
27
27
|
|
|
28
28
|
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; }
|
|
29
29
|
|
|
30
|
-
function _extends() { _extends = Object.assign
|
|
30
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
31
31
|
|
|
32
32
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
33
33
|
|
|
@@ -29,7 +29,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
29
29
|
|
|
30
30
|
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; }
|
|
31
31
|
|
|
32
|
-
function _extends() { _extends = Object.assign
|
|
32
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
33
33
|
|
|
34
34
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
35
35
|
|
|
@@ -45,7 +45,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
45
45
|
|
|
46
46
|
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; }
|
|
47
47
|
|
|
48
|
-
function _extends() { _extends = Object.assign
|
|
48
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
49
49
|
|
|
50
50
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
51
51
|
|
|
@@ -37,7 +37,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
37
37
|
|
|
38
38
|
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; }
|
|
39
39
|
|
|
40
|
-
function _extends() { _extends = Object.assign
|
|
40
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
41
41
|
|
|
42
42
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
43
43
|
|
|
@@ -51,7 +51,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
51
51
|
|
|
52
52
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
53
53
|
|
|
54
|
-
function _extends() { _extends = Object.assign
|
|
54
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
55
55
|
|
|
56
56
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
57
57
|
|
|
@@ -41,7 +41,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
41
41
|
|
|
42
42
|
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; }
|
|
43
43
|
|
|
44
|
-
function _extends() { _extends = Object.assign
|
|
44
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
45
45
|
|
|
46
46
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
47
47
|
|
|
@@ -11,6 +11,10 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
+
var Sentry = _interopRequireWildcard(require("@sentry/browser"));
|
|
15
|
+
|
|
16
|
+
var _reactIntersectionObserver = require("react-intersection-observer");
|
|
17
|
+
|
|
14
18
|
var _context = require("../../context");
|
|
15
19
|
|
|
16
20
|
var _header = _interopRequireDefault(require("../components/header"));
|
|
@@ -33,7 +37,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
33
37
|
|
|
34
38
|
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; }
|
|
35
39
|
|
|
36
|
-
function _extends() { _extends = Object.assign
|
|
40
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
37
41
|
|
|
38
42
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
39
43
|
|
|
@@ -43,14 +47,14 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
43
47
|
|
|
44
48
|
var getEReportType = function getEReportType(type) {
|
|
45
49
|
var reportTextMap = {
|
|
46
|
-
8: (0, _getLocale.getLocale)(
|
|
47
|
-
26: (0, _getLocale.getLocale)(
|
|
48
|
-
27: (0, _getLocale.getLocale)(
|
|
50
|
+
8: (0, _getLocale.getLocale)('Rep_Tab_Dailynewspaper'),
|
|
51
|
+
26: (0, _getLocale.getLocale)('Rep_Tab_Weeklynewspaper'),
|
|
52
|
+
27: (0, _getLocale.getLocale)('Rep_Tab_MonthlyReport')
|
|
49
53
|
};
|
|
50
54
|
return reportTextMap[type];
|
|
51
55
|
};
|
|
52
56
|
|
|
53
|
-
var prefix =
|
|
57
|
+
var prefix = 'titaui-dynamic-report-item';
|
|
54
58
|
|
|
55
59
|
var DynamicReply = function DynamicReply(_ref) {
|
|
56
60
|
var data = _ref.data,
|
|
@@ -68,16 +72,16 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
68
72
|
|
|
69
73
|
var handleClickTitle = function handleClickTitle() {
|
|
70
74
|
if (window.titaTracker) {
|
|
71
|
-
window.titaTracker(
|
|
72
|
-
actionName:
|
|
73
|
-
actionGroup:
|
|
74
|
-
productName:
|
|
75
|
+
window.titaTracker('planAction').record({
|
|
76
|
+
actionName: '查看日报',
|
|
77
|
+
actionGroup: '动态-推屏',
|
|
78
|
+
productName: '动态',
|
|
75
79
|
feedId: feedId
|
|
76
80
|
});
|
|
77
81
|
} // @ts-ignore
|
|
78
82
|
|
|
79
83
|
|
|
80
|
-
window.Talent.app.vent.trigger(
|
|
84
|
+
window.Talent.app.vent.trigger('global-daily-detail-pull-screen', feedId);
|
|
81
85
|
};
|
|
82
86
|
|
|
83
87
|
var renderSuffix = (0, _react.useMemo)(function () {
|
|
@@ -85,13 +89,13 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
85
89
|
|
|
86
90
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
87
91
|
className: (0, _classnames["default"])("".concat(prefix, "__complete-type"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "__complete-type--normal"), submitState === 1), _defineProperty(_classNames, "".concat(prefix, "__complete-type--delay"), submitState === 2), _classNames))
|
|
88
|
-
}, submitState === 1 ? (0, _getLocale.getLocale)(
|
|
92
|
+
}, submitState === 1 ? (0, _getLocale.getLocale)('Rep_Tab_Mys_Submitontime') : (0, _getLocale.getLocale)('Tasks_Tab_DelaSubmission'));
|
|
89
93
|
}, []);
|
|
90
94
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
91
95
|
var reportTextMap = {
|
|
92
|
-
8: (0, _getLocale.getLocale)(
|
|
93
|
-
26: (0, _getLocale.getLocale)(
|
|
94
|
-
27: (0, _getLocale.getLocale)(
|
|
96
|
+
8: (0, _getLocale.getLocale)('Rep_Tab_Mys_Dailynewsp'),
|
|
97
|
+
26: (0, _getLocale.getLocale)('Rep_Tab_Mys_sweeklyReport'),
|
|
98
|
+
27: (0, _getLocale.getLocale)('Rep_Tab_Sub_monthlyeport')
|
|
95
99
|
};
|
|
96
100
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
97
101
|
className: "".concat(prefix, "__operate-desc")
|
|
@@ -106,21 +110,10 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
106
110
|
parentDom: workPlanRichTextRef.current,
|
|
107
111
|
keyWord: searchKeyWord
|
|
108
112
|
});
|
|
109
|
-
}, [data, searchKeyWord]);
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
// actionGroup: "动态-查看日报",
|
|
114
|
-
// productName: "动态",
|
|
115
|
-
// feedId,
|
|
116
|
-
// });
|
|
117
|
-
// }
|
|
118
|
-
// }
|
|
119
|
-
|
|
120
|
-
return (
|
|
121
|
-
/*#__PURE__*/
|
|
122
|
-
// <InView triggerOnce={true} onChange={handleInView} threshold={0.5}>
|
|
123
|
-
_react["default"].createElement("div", {
|
|
113
|
+
}, [data, searchKeyWord]);
|
|
114
|
+
|
|
115
|
+
var renderContent = function renderContent() {
|
|
116
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
124
117
|
className: prefix
|
|
125
118
|
}, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
|
|
126
119
|
data: data
|
|
@@ -143,7 +136,7 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
143
136
|
className: "".concat(prefix, "__summary")
|
|
144
137
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
145
138
|
className: "".concat(prefix, "__block-title")
|
|
146
|
-
}, (0, _getLocale.getLocale)(
|
|
139
|
+
}, (0, _getLocale.getLocale)('Rep_Tab_Mys_Summaryobsta')), /*#__PURE__*/_react["default"].createElement("div", {
|
|
147
140
|
className: "".concat(prefix, "__content-text"),
|
|
148
141
|
ref: contentRichTextRef
|
|
149
142
|
}, /*#__PURE__*/_react["default"].createElement(_dangerousHtml["default"], {
|
|
@@ -152,14 +145,39 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
152
145
|
className: "".concat(prefix, "__work-plan")
|
|
153
146
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
154
147
|
className: "".concat(prefix, "__block-title")
|
|
155
|
-
}, (0, _getLocale.getLocale)(
|
|
148
|
+
}, (0, _getLocale.getLocale)('Rep_Tab_Mys_NextWorkPlans')), /*#__PURE__*/_react["default"].createElement("div", {
|
|
156
149
|
className: "".concat(prefix, "__content-text"),
|
|
157
150
|
ref: workPlanRichTextRef
|
|
158
151
|
}, /*#__PURE__*/_react["default"].createElement(_dangerousHtml["default"], {
|
|
159
152
|
htmlText: data.workPlanRichText
|
|
160
|
-
})))))
|
|
153
|
+
})))));
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
if (!window.IntersectionObserver) {
|
|
157
|
+
Sentry.withScope(function (scope) {
|
|
158
|
+
scope.setTag('error-level', "P0");
|
|
159
|
+
scope.setTag('error-type', '总结在 window 找不到 IntersectionObserver');
|
|
160
|
+
scope.setExtra('componentStack', '总结在 window 找不到 IntersectionObserver');
|
|
161
|
+
});
|
|
162
|
+
return renderContent();
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
var handleInView = function handleInView(inview) {
|
|
166
|
+
if (inview) {
|
|
167
|
+
window.titaTracker('planAction').record({
|
|
168
|
+
actionName: '查看日报',
|
|
169
|
+
actionGroup: '动态-查看日报',
|
|
170
|
+
productName: '动态',
|
|
171
|
+
feedId: feedId
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
};
|
|
161
175
|
|
|
162
|
-
|
|
176
|
+
return /*#__PURE__*/_react["default"].createElement(_reactIntersectionObserver.InView, {
|
|
177
|
+
triggerOnce: true,
|
|
178
|
+
onChange: handleInView,
|
|
179
|
+
threshold: 0.5
|
|
180
|
+
}, renderContent());
|
|
163
181
|
};
|
|
164
182
|
|
|
165
183
|
var _default = DynamicReply;
|
|
@@ -49,7 +49,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
49
49
|
|
|
50
50
|
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; }
|
|
51
51
|
|
|
52
|
-
function _extends() { _extends = Object.assign
|
|
52
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
53
53
|
|
|
54
54
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
55
55
|
|
|
@@ -39,7 +39,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
39
39
|
|
|
40
40
|
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; }
|
|
41
41
|
|
|
42
|
-
function _extends() { _extends = Object.assign
|
|
42
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
43
43
|
|
|
44
44
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
45
45
|
|
|
@@ -41,7 +41,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
41
41
|
|
|
42
42
|
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; }
|
|
43
43
|
|
|
44
|
-
function _extends() { _extends = Object.assign
|
|
44
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
45
45
|
|
|
46
46
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
47
47
|
|
|
@@ -95,7 +95,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
95
95
|
|
|
96
96
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
97
97
|
|
|
98
|
-
function _extends() { _extends = Object.assign
|
|
98
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
99
99
|
|
|
100
100
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
101
101
|
|
|
@@ -25,7 +25,7 @@ var _excluded = ["data", "dynamicShareIsShowToping", "onDeleteFeed", "height", "
|
|
|
25
25
|
|
|
26
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
27
|
|
|
28
|
-
function _extends() { _extends = Object.assign
|
|
28
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
29
29
|
|
|
30
30
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
31
31
|
|
|
@@ -29,7 +29,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
29
29
|
|
|
30
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
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
32
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
33
|
|
|
34
34
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
35
35
|
|
|
@@ -39,7 +39,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
39
39
|
|
|
40
40
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
41
41
|
|
|
42
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
42
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
43
43
|
|
|
44
44
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
45
45
|
|
|
@@ -37,7 +37,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
37
37
|
|
|
38
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
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
40
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
41
41
|
|
|
42
42
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
43
43
|
|
|
@@ -47,7 +47,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
47
47
|
|
|
48
48
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
49
49
|
|
|
50
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
50
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
51
51
|
|
|
52
52
|
var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
53
53
|
_inherits(EReportList, _React$Component);
|