@corva/ui 3.79.0-1 → 3.79.0-11
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/cjs-bundle/clients/api/apiCore.js +1 -1
- package/cjs-bundle/clients/api/apiCore.js.map +1 -1
- package/cjs-bundle/clients/subscriptions/socket-client.v2.js +1 -1
- package/cjs-bundle/clients/subscriptions/socket-client.v2.js.map +1 -1
- package/cjs-bundle/clients/subscriptions/subscriptions-auth-recovery.js +2 -0
- package/cjs-bundle/clients/subscriptions/subscriptions-auth-recovery.js.map +1 -0
- package/cjs-bundle/clients/subscriptions/subscriptions-client.dummy.js +1 -1
- package/cjs-bundle/clients/subscriptions/subscriptions-client.dummy.js.map +1 -1
- package/cjs-bundle/clients/subscriptions/subscriptions-client.factory.js +1 -1
- package/cjs-bundle/clients/subscriptions/subscriptions-client.factory.js.map +1 -1
- package/cjs-bundle/clients/subscriptions/subscriptions-client.js +1 -1
- package/cjs-bundle/clients/subscriptions/subscriptions-client.js.map +1 -1
- package/cjs-bundle/components/AddComment/Popover.js +1 -1
- package/cjs-bundle/components/AddComment/Popover.js.map +1 -1
- package/cjs-bundle/components/AddComment/components/Content.js +1 -1
- package/cjs-bundle/components/AddComment/components/Content.js.map +1 -1
- package/cjs-bundle/components/AssetEditor/AssetEditorAutocomplete.js +1 -1
- package/cjs-bundle/components/AssetEditor/AssetEditorAutocomplete.js.map +1 -1
- package/cjs-bundle/components/AssetEditorV2/components/MultipleAssetsToggle.js +1 -1
- package/cjs-bundle/components/AssetEditorV2/components/MultipleAssetsToggle.js.map +1 -1
- package/cjs-bundle/components/AssetEditorV2/components/SelectItem.js +1 -1
- package/cjs-bundle/components/AssetEditorV2/components/SelectItem.js.map +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/AssetSearch.js +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/AssetSearch.js.map +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/SectionItem.js +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/SectionItem.js.map +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/index.js +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/index.js.map +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/index.js.map +1 -1
- package/cjs-bundle/components/Casing/CasingTable/CasingComponent.js +1 -1
- package/cjs-bundle/components/Casing/CasingTable/CasingComponent.js.map +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js.map +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/EditComponentDialog.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/EditComponentDialog.js.map +1 -1
- package/cjs-bundle/components/CollapsableSidebar.js +1 -1
- package/cjs-bundle/components/CollapsableSidebar.js.map +1 -1
- package/cjs-bundle/components/CommentComposer/CommentReplyInput.js +1 -1
- package/cjs-bundle/components/CommentComposer/CommentReplyInput.js.map +1 -1
- package/cjs-bundle/components/CommentComposer/replyDrafts.js +2 -0
- package/cjs-bundle/components/CommentComposer/replyDrafts.js.map +1 -0
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js.map +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.js.map +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js.map +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/LegacyAppActions.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/LegacyAppActions.js.map +1 -1
- package/cjs-bundle/components/DocumentViewer/DocumentViewer.js +1 -1
- package/cjs-bundle/components/DocumentViewer/DocumentViewer.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/EditComponentDialog.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/EditComponentDialog.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/CancelButton.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/CancelButton.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/MoreButton.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/MoreButton.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/SaveButton.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/SaveButton.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHATable/BHAComponent.js +1 -1
- package/cjs-bundle/components/Drillstring/BHATable/BHAComponent.js.map +1 -1
- package/cjs-bundle/components/FeedCard/useActivityInteractions.js +1 -1
- package/cjs-bundle/components/FeedCard/useActivityInteractions.js.map +1 -1
- package/cjs-bundle/components/FeedCard/useFeedActivity.js +1 -1
- package/cjs-bundle/components/FeedCard/useFeedActivity.js.map +1 -1
- package/cjs-bundle/components/FeedItem/FeedItem.js +1 -1
- package/cjs-bundle/components/FeedItem/FeedItem.js.map +1 -1
- package/cjs-bundle/components/IconMenu/index.js +1 -1
- package/cjs-bundle/components/IconMenu/index.js.map +1 -1
- package/cjs-bundle/components/OffsetWellChips/Chip.js +1 -1
- package/cjs-bundle/components/OffsetWellChips/Chip.js.map +1 -1
- package/cjs-bundle/components/OffsetWellMap/OffsetWellMap.js +1 -1
- package/cjs-bundle/components/OffsetWellMap/OffsetWellMap.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleFiltersButton.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleFiltersButton.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/index.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AssetSearch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AssetSearch.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableRows.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableRows.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/index.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js.map +1 -1
- package/cjs-bundle/components/PadOffsetsPicker/OffsetAssetChip.js +1 -1
- package/cjs-bundle/components/PadOffsetsPicker/OffsetAssetChip.js.map +1 -1
- package/cjs-bundle/components/PadOffsetsPicker/OffsetAssetsListExpander.js +1 -1
- package/cjs-bundle/components/PadOffsetsPicker/OffsetAssetsListExpander.js.map +1 -1
- package/cjs-bundle/components/PadOffsetsPicker/PadOffsetsPicker.js +1 -1
- package/cjs-bundle/components/PadOffsetsPicker/PadOffsetsPicker.js.map +1 -1
- package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js +1 -1
- package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
- package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
- package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js.map +1 -1
- package/cjs-bundle/components/Search/Search.js +1 -1
- package/cjs-bundle/components/Search/Search.js.map +1 -1
- package/cjs-bundle/components/StatusBadge/components/DQAccordionDetailsContent.js +1 -1
- package/cjs-bundle/components/StatusBadge/components/DQAccordionDetailsContent.js.map +1 -1
- package/cjs-bundle/components/Template/TemplatePopover/index.js +1 -1
- package/cjs-bundle/components/Template/TemplatePopover/index.js.map +1 -1
- package/cjs-bundle/components/VirtualizedTable/VirtualizedTable.js +1 -1
- package/cjs-bundle/components/VirtualizedTable/VirtualizedTable.js.map +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/AssetFilters/AssetFilters.js +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/AssetFilters/AssetFilters.js.map +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/AssetSearchInput/AssetSearchInput.js +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/AssetSearchInput/AssetSearchInput.js.map +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js.map +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/Map/Map.js +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/Map/Map.js.map +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.js +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.js.map +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadTableRow.js +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadTableRow.js.map +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTable.js +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTable.js.map +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableBody.js +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableBody.js.map +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableHead.js +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableHead.js.map +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/TableSortLabel.js +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/TableSortLabel.js.map +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.js +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.js.map +1 -1
- package/cjs-bundle/componentsV2/DragHandle/DragHandle.js +1 -1
- package/cjs-bundle/componentsV2/DragHandle/DragHandle.js.map +1 -1
- package/cjs-bundle/hocs/withAssetEditorLockHOC.js +1 -1
- package/cjs-bundle/hocs/withAssetEditorLockHOC.js.map +1 -1
- package/cjs-bundle/permissions/withPermissionsHOC.js +1 -1
- package/cjs-bundle/permissions/withPermissionsHOC.js.map +1 -1
- package/clients/api/apiCore.d.ts +2 -0
- package/clients/api/apiCore.d.ts.map +1 -1
- package/clients/api/apiCore.js +1 -1
- package/clients/api/apiCore.js.map +1 -1
- package/clients/subscriptions/__tests__/subscriptions-auth-recovery.test.d.ts +2 -0
- package/clients/subscriptions/__tests__/subscriptions-auth-recovery.test.d.ts.map +1 -0
- package/clients/subscriptions/socket-client.v2.d.ts +8 -0
- package/clients/subscriptions/socket-client.v2.d.ts.map +1 -1
- package/clients/subscriptions/socket-client.v2.js +1 -1
- package/clients/subscriptions/socket-client.v2.js.map +1 -1
- package/clients/subscriptions/subscriptions-auth-recovery.d.ts +53 -0
- package/clients/subscriptions/subscriptions-auth-recovery.d.ts.map +1 -0
- package/clients/subscriptions/subscriptions-auth-recovery.js +2 -0
- package/clients/subscriptions/subscriptions-auth-recovery.js.map +1 -0
- package/clients/subscriptions/subscriptions-client.d.ts +6 -1
- package/clients/subscriptions/subscriptions-client.d.ts.map +1 -1
- package/clients/subscriptions/subscriptions-client.dummy.d.ts +2 -1
- package/clients/subscriptions/subscriptions-client.dummy.d.ts.map +1 -1
- package/clients/subscriptions/subscriptions-client.dummy.js +1 -1
- package/clients/subscriptions/subscriptions-client.dummy.js.map +1 -1
- package/clients/subscriptions/subscriptions-client.factory.d.ts +8 -0
- package/clients/subscriptions/subscriptions-client.factory.d.ts.map +1 -1
- package/clients/subscriptions/subscriptions-client.factory.js +1 -1
- package/clients/subscriptions/subscriptions-client.factory.js.map +1 -1
- package/clients/subscriptions/subscriptions-client.js +1 -1
- package/clients/subscriptions/subscriptions-client.js.map +1 -1
- package/clients/subscriptions/types.d.ts +5 -0
- package/clients/subscriptions/types.d.ts.map +1 -1
- package/components/AddComment/Popover.js +1 -1
- package/components/AddComment/Popover.js.map +1 -1
- package/components/AddComment/components/Content.js +1 -1
- package/components/AddComment/components/Content.js.map +1 -1
- package/components/AssetEditor/AssetEditorAutocomplete.js +1 -1
- package/components/AssetEditor/AssetEditorAutocomplete.js.map +1 -1
- package/components/AssetEditorV2/components/MultipleAssetsToggle.js +1 -1
- package/components/AssetEditorV2/components/MultipleAssetsToggle.js.map +1 -1
- package/components/AssetEditorV2/components/SelectItem.d.ts.map +1 -1
- package/components/AssetEditorV2/components/SelectItem.js +1 -1
- package/components/AssetEditorV2/components/SelectItem.js.map +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/AssetSearch.js +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/AssetSearch.js.map +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/SectionItem.js +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/SectionItem.js.map +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/index.js +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/index.js.map +1 -1
- package/components/BICOffsetPickerDialog/index.js +1 -1
- package/components/BICOffsetPickerDialog/index.js.map +1 -1
- package/components/Casing/CasingTable/CasingComponent.js +1 -1
- package/components/Casing/CasingTable/CasingComponent.js.map +1 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
- package/components/Casing/CasingTableV2/components/Component.js +1 -1
- package/components/Casing/CasingTableV2/components/Component.js.map +1 -1
- package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
- package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
- package/components/Casing/CasingTableV2/components/EditComponentDialog.d.ts.map +1 -1
- package/components/Casing/CasingTableV2/components/EditComponentDialog.js +1 -1
- package/components/Casing/CasingTableV2/components/EditComponentDialog.js.map +1 -1
- package/components/CollapsableSidebar.js +1 -1
- package/components/CollapsableSidebar.js.map +1 -1
- package/components/CommentComposer/CommentReplyInput.d.ts +3 -1
- package/components/CommentComposer/CommentReplyInput.d.ts.map +1 -1
- package/components/CommentComposer/CommentReplyInput.js +1 -1
- package/components/CommentComposer/CommentReplyInput.js.map +1 -1
- package/components/CommentComposer/__tests__/CommentReplyInput.draft.test.d.ts +2 -0
- package/components/CommentComposer/__tests__/CommentReplyInput.draft.test.d.ts.map +1 -0
- package/components/CommentComposer/replyDrafts.d.ts +12 -0
- package/components/CommentComposer/replyDrafts.d.ts.map +1 -0
- package/components/CommentComposer/replyDrafts.js +2 -0
- package/components/CommentComposer/replyDrafts.js.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.js.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/LegacyAppActions.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/LegacyAppActions.js.map +1 -1
- package/components/DocumentViewer/DocumentViewer.js +1 -1
- package/components/DocumentViewer/DocumentViewer.js.map +1 -1
- package/components/Drillstring/BHAComponentDetail/constants.d.ts +2 -2
- package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/EditComponentDialog.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/EditComponentDialog.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/EditComponentDialog.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/CancelButton.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/CancelButton.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/MoreButton.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/MoreButton.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/SaveButton.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/SaveButton.js.map +1 -1
- package/components/Drillstring/BHATable/BHAComponent.js +1 -1
- package/components/Drillstring/BHATable/BHAComponent.js.map +1 -1
- package/components/FeedCard/useActivityInteractions.d.ts.map +1 -1
- package/components/FeedCard/useActivityInteractions.js +1 -1
- package/components/FeedCard/useActivityInteractions.js.map +1 -1
- package/components/FeedCard/useFeedActivity.d.ts.map +1 -1
- package/components/FeedCard/useFeedActivity.js +1 -1
- package/components/FeedCard/useFeedActivity.js.map +1 -1
- package/components/FeedItem/FeedItem.js +1 -1
- package/components/FeedItem/FeedItem.js.map +1 -1
- package/components/IconMenu/index.js +1 -1
- package/components/IconMenu/index.js.map +1 -1
- package/components/OffsetWellChips/Chip.js +1 -1
- package/components/OffsetWellChips/Chip.js.map +1 -1
- package/components/OffsetWellMap/OffsetWellMap.d.ts.map +1 -1
- package/components/OffsetWellMap/OffsetWellMap.js +1 -1
- package/components/OffsetWellMap/OffsetWellMap.js.map +1 -1
- package/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js.map +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ToggleFiltersButton.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ToggleFiltersButton.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ToggleFiltersButton.js.map +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
- package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/index.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/index.js.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AssetSearch.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AssetSearch.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AssetSearch.js.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
- package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
- package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
- package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
- package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
- package/components/OffsetWellPickerV3/components/shared/OffsetWellTableRows.js +1 -1
- package/components/OffsetWellPickerV3/components/shared/OffsetWellTableRows.js.map +1 -1
- package/components/OffsetWellPickerV3/index.js +1 -1
- package/components/OffsetWellPickerV3/index.js.map +1 -1
- package/components/OffsetWellPickerV4/OffsetWellPickerV4.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js +1 -1
- package/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js.map +1 -1
- package/components/PadOffsetsPicker/OffsetAssetChip.js +1 -1
- package/components/PadOffsetsPicker/OffsetAssetChip.js.map +1 -1
- package/components/PadOffsetsPicker/OffsetAssetsListExpander.d.ts.map +1 -1
- package/components/PadOffsetsPicker/OffsetAssetsListExpander.js +1 -1
- package/components/PadOffsetsPicker/OffsetAssetsListExpander.js.map +1 -1
- package/components/PadOffsetsPicker/PadOffsetsPicker.js +1 -1
- package/components/PadOffsetsPicker/PadOffsetsPicker.js.map +1 -1
- package/components/PadOffsetsPicker/StagesSelector.js +1 -1
- package/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
- package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
- package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js.map +1 -1
- package/components/Search/Search.js +1 -1
- package/components/Search/Search.js.map +1 -1
- package/components/StatusBadge/components/DQAccordionDetailsContent.d.ts.map +1 -1
- package/components/StatusBadge/components/DQAccordionDetailsContent.js +1 -1
- package/components/StatusBadge/components/DQAccordionDetailsContent.js.map +1 -1
- package/components/Template/TemplatePopover/index.d.ts.map +1 -1
- package/components/Template/TemplatePopover/index.js +1 -1
- package/components/Template/TemplatePopover/index.js.map +1 -1
- package/components/VirtualizedTable/VirtualizedTable.d.ts.map +1 -1
- package/components/VirtualizedTable/VirtualizedTable.js +1 -1
- package/components/VirtualizedTable/VirtualizedTable.js.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/AssetFilters/AssetFilters.d.ts.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/AssetFilters/AssetFilters.js +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/AssetFilters/AssetFilters.js.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/AssetSearchInput/AssetSearchInput.d.ts.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/AssetSearchInput/AssetSearchInput.js +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/AssetSearchInput/AssetSearchInput.js.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.d.ts.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/Map/Map.d.ts.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/Map/Map.js +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/Map/Map.js.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.d.ts.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.js +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.js.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadTableRow.d.ts.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadTableRow.js +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadTableRow.js.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTable.js +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTable.js.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableBody.d.ts.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableBody.js +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableBody.js.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableHead.d.ts.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableHead.js +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableHead.js.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/TableSortLabel.d.ts.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/TableSortLabel.js +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/TableSortLabel.js.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.d.ts +1 -0
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.d.ts.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.js +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.js.map +1 -1
- package/componentsV2/DragHandle/DragHandle.d.ts +1 -0
- package/componentsV2/DragHandle/DragHandle.d.ts.map +1 -1
- package/componentsV2/DragHandle/DragHandle.js +1 -1
- package/componentsV2/DragHandle/DragHandle.js.map +1 -1
- package/componentsV2/DragHandle/DragHandle.stories.d.ts +1 -0
- package/componentsV2/DragHandle/DragHandle.stories.d.ts.map +1 -1
- package/hocs/withAssetEditorLockHOC.d.ts.map +1 -1
- package/hocs/withAssetEditorLockHOC.js +1 -1
- package/hocs/withAssetEditorLockHOC.js.map +1 -1
- package/mcp-server/server.mjs +34 -15
- package/package.json +1 -2
- package/permissions/__tests__/withPermissionsHOC.test.d.ts.map +1 -1
- package/permissions/withPermissionsHOC.d.ts.map +1 -1
- package/permissions/withPermissionsHOC.js +1 -1
- package/permissions/withPermissionsHOC.js.map +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/cjs-bundle/ext-esm/@material-ui/icons/esm/ExpandLess.js +0 -2
- package/cjs-bundle/ext-esm/@material-ui/icons/esm/ExpandLess.js.map +0 -1
- package/cjs-bundle/ext-esm/@material-ui/icons/esm/ExpandMore.js +0 -2
- package/cjs-bundle/ext-esm/@material-ui/icons/esm/ExpandMore.js.map +0 -1
- package/cjs-bundle/ext-esm/@material-ui/icons/esm/Map.js +0 -2
- package/cjs-bundle/ext-esm/@material-ui/icons/esm/Map.js.map +0 -1
- package/cjs-bundle/ext-esm/@material-ui/icons/esm/UnfoldLess.js +0 -2
- package/cjs-bundle/ext-esm/@material-ui/icons/esm/UnfoldLess.js.map +0 -1
- package/cjs-bundle/ext-esm/@material-ui/icons/esm/UnfoldMore.js +0 -2
- package/cjs-bundle/ext-esm/@material-ui/icons/esm/UnfoldMore.js.map +0 -1
- package/cjs-bundle/ext-esm/@material-ui/icons/esm/utils/createSvgIcon.js +0 -2
- package/cjs-bundle/ext-esm/@material-ui/icons/esm/utils/createSvgIcon.js.map +0 -1
- package/ext-esm/@material-ui/icons/esm/ExpandLess.js +0 -2
- package/ext-esm/@material-ui/icons/esm/ExpandLess.js.map +0 -1
- package/ext-esm/@material-ui/icons/esm/ExpandMore.js +0 -2
- package/ext-esm/@material-ui/icons/esm/ExpandMore.js.map +0 -1
- package/ext-esm/@material-ui/icons/esm/Map.js +0 -2
- package/ext-esm/@material-ui/icons/esm/Map.js.map +0 -1
- package/ext-esm/@material-ui/icons/esm/UnfoldLess.js +0 -2
- package/ext-esm/@material-ui/icons/esm/UnfoldLess.js.map +0 -1
- package/ext-esm/@material-ui/icons/esm/UnfoldMore.js +0 -2
- package/ext-esm/@material-ui/icons/esm/UnfoldMore.js.map +0 -1
- package/ext-esm/@material-ui/icons/esm/utils/createSvgIcon.js +0 -2
- package/ext-esm/@material-ui/icons/esm/utils/createSvgIcon.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"prop-types";import{withStyles as o,Button as t,makeStyles as s}from"@material-ui/core";import{isMobileDetected as i}from"../../../../../utils/mobileDetect.js";import n from"../../../../Modal/Modal.js";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import"../../../../AppIcon/AppIcon.js";import"../../../../DevCenter/AppHeader/AppHeader.js";import"../../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../../DevCenter/AppContext.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"react";import"lodash";import"../../../../DevCenter/AppsDataProvider/effects/utils.js";import"@babel/runtime/helpers/toConsumableArray";import"query-string";import"../../../../../constants/goals.js";import"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import"../../../../../constants/apps.js";import"../../../../../constants/drillstring.js";import"../../../../../constants/completion.js";import"../../../../../constants/appPackages.js";import"../../../../../constants/notifications.js";import"../../../../../constants/feed.js";import"../../../../../constants/bha.js";import"../../../../../constants/corvaCompanyId.js";import"../../../../GradientManager/configuration/constants.js";import{jsx as r,jsxs as p,Fragment as m}from"react/jsx-runtime";import"classnames";import"../../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router-dom";import"../../../../UserMention/utils/index.js";import"../../../../../utils/convert.js";import"moment";import"../../../../../utils/casing/validation.js";import"lodash/mean";import"../../../../../constants/streamSourceType.js";import"lodash/get";import"file-saver";import"../../../../../utils/drillstring/conversion.js";import"lodash/set";import"lodash/cloneDeep";import"lodash/isNumber";import"lodash/has";import"../../../../../utils/ga.js";import"../../../../../utils/goalsConfig/goalsConfig.js";import"../../../../../utils/lasParser.js";import"../../../../../utils/main.js";import"../../../../../utils/metrics/metricsConfig.js";import"../../../../../utils/feed.js";import"../../../../../utils/reports.js";import"moment-timezone";import"@babel/runtime/helpers/typeof";import"../../../../../utils/dashboardReports.js";import"../../../../../utils/env.js";import"file-extension";import"image-extensions";import"video-extensions";import"../../../../../utils/jsonaDataFormatter.js";import"../../../../../utils/bha.js";import"jsona";import"../../../../../clients/jsonApi/index.js";import"../../../../../utils/charts/Styles.scss.js";import"../../../../../utils/getSingleAsset.js";import"../../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"@material-ui/icons";import"../../../../EmptyState/EmptyState.js";import"../../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.js";import"../../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/styles.js";import"@material-ui/pickers";import"@date-io/moment";import"../../../../../config/theme/index.js";import"../../../../../hocs/withAssetEditorLockHOC.js";import"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../../Button/components/Button/index.js";import"../../../../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../../../../Button/components/LiveButton/styles.js";import"@icon-park/react/es/all";import"../../../../../icons/IconParkProvider.js";import"../../../../../icons/customIcons/icons/AddMessage.js";import"../../../../../icons/customIcons/icons/DragOne.js";import"../../../../../icons/customIcons/icons/Attention.js";import"../../../../../icons/customIcons/icons/Collapse.js";import"../../../../../icons/customIcons/icons/Dashboard.js";import"../../../../../icons/customIcons/icons/Expand.js";import"../../../../../icons/customIcons/icons/FolderClosed.js";import"../../../../../icons/customIcons/icons/FolderClosedFilled.js";import"../../../../../icons/customIcons/icons/FolderOpened.js";import"../../../../../icons/customIcons/icons/GreaterOrEqual.js";import"../../../../../icons/customIcons/icons/LessOrEqual.js";import"../../../../../icons/customIcons/icons/Search.js";import"../../../../../icons/customIcons/icons/SearchOne.js";import"../../../../../icons/customIcons/icons/Wellhub.js";import"../../../../../icons/customIcons/icons/MultiRuler.js";import"../../../../../icons/customIcons/icons/Checkbox.js";import"../../../../../icons/customIcons/icons/CheckboxChecked.js";import"../../../../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../../../../icons/customIcons/icons/Radio.js";import"../../../../../icons/customIcons/icons/RadioChecked.js";import"../../../../../icons/customIcons/icons/SimulFrac.js";import"../../../../../icons/customIcons/icons/ZipperFrac.js";import"../../../../../icons/customIcons/icons/CautionFilled.js";import"../../../../../icons/customIcons/icons/InfoRounded.js";import"../../../../../icons/customIcons/icons/FlameFilled.js";import"../../../../../icons/customIcons/icons/MoreApp.js";import"../../../../../icons/customIcons/icons/Pad.js";import"../../../../../icons/customIcons/icons/DrilloutUnit.js";import"../../../../../icons/customIcons/icons/FracFleet.js";import"../../../../../icons/customIcons/icons/Global.js";import"../../../../../icons/customIcons/icons/Program.js";import"../../../../../icons/customIcons/icons/Rig.js";import"../../../../../icons/customIcons/icons/Well.js";import"../../../../../icons/customIcons/icons/Gap.js";import"../../../../../icons/customIcons/icons/Pin.js";import"../../../../../icons/customIcons/icons/PinOne.js";import"../../../../../icons/customIcons/icons/PinOneCrossed.js";import"../../../../../icons/customIcons/icons/CloseOneFilled.js";import"../../../../../icons/customIcons/icons/AttentionFilled.js";import"../../../../../icons/customIcons/icons/CheckOneFilled.js";import"../../../../../icons/customIcons/icons/Archive.js";import"../../../../../icons/customIcons/icons/ArchiveCancel.js";import"../../../../../icons/customIcons/icons/Unarchive.js";import"../../../../../icons/customIcons/icons/Archived.js";import"../../../../../icons/customIcons/icons/InterventionUnit.js";import"../../../../../icons/customIcons/icons/CloudDelete.js";import"../../../../../icons/customIcons/icons/Lasso.js";import"../../../../../icons/customIcons/icons/Radius.js";import"../../../../../icons/customIcons/icons/ErrorOps.js";import"../../../../../icons/customIcons/icons/DataTypeOps.js";import"../../../../../icons/customIcons/icons/FalsePositiveOps.js";import"../../../../../icons/customIcons/icons/CalibrationOps.js";import"../../../../../icons/customIcons/icons/CriticalOps.js";import"../../../../../icons/customIcons/icons/Company.js";import"../../../../../icons/customIcons/icons/ArchiveOne.js";import"../../../../../icons/customIcons/icons/ParseBotFusion.js";import"../../../../../icons/customIcons/icons/Connect.js";import"../../../../../icons/customIcons/icons/PuzzleOne.js";import"../../../../../icons/customIcons/icons/Feed.js";import"../../../../../icons/customIcons/icons/Prompt.js";import"../../../../../icons/customIcons/icons/Companies.js";import"../../../../../icons/customIcons/icons/ClipboardAi.js";import"../../../../../icons/customIcons/icons/Key.js";import"../../../../../icons/customIcons/icons/AtSignCrossed.js";import"../../../../../icons/customIcons/icons/MappingManual.js";import"../../../../../icons/customIcons/icons/Mapping.js";import"../../../../../icons/customIcons/icons/Metrics.js";import"../../../../../icons/customIcons/icons/Drops.js";import"../../../../../icons/customIcons/icons/ClipboardSearch.js";import"../../../../../icons/customIcons/icons/Template.js";import"../../../../../icons/customIcons/icons/ClipboardMetrics.js";import"../../../../../icons/customIcons/icons/ClipboardBuilder.js";import"../../../../../icons/customIcons/icons/UnitConversion.js";import"../../../../../icons/customIcons/icons/NPT.js";import"../../../../../icons/customIcons/icons/GuidedFrac.js";import"../../../../AssetEditorV2/index.js";import"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../../ConfirmationDialog.js";import"../../../../../permissions/PermissionsContext.js";import"../../../../../permissions/constants/index.js";import"../../../../../permissions/withPermissionsHOC.js";import"../../../../../permissions/ProvidePermissions.js";import"../../../../../componentsV2/AppHeader/V3/VersionSelect/VersionSelect.constants.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../../../componentsV2/AppContainer/AppContainer.js";import"../../../../../componentsV2/AppContainer/AppContainer.constants.js";import"../../../../../componentsV2/Text/Text.js";import"../../../../../componentsV2/Header/Header.scss.js";import"../../../../DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider.js";import"uuid";import"../../../../../componentsV2/Tooltip/Tooltip.scss.js";import"../../../../../componentsV2/TextEndTruncated/TextEndTruncated.scss.js";import"../../../../../componentsV2/AppCommonsProvider/AppCommonsContext.js";import"../../../../../componentsV2/AppHeader/AppHeader.constants.js";import"../../../../../componentsV2/AppHeader/AppBadge/AppBadge.scss.js";import"../../../../../componentsV2/Chip/Chip.js";import"../../../../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.constants.js";import"../../../../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.scss.js";import"../../../../../componentsV2/AppHeader/AppAssets/utils.js";import"../../../../../componentsV2/AppHeader/AppAssets/AppAssets.scss.js";import"../../../../PadModeSelect/PadModeSelect.js";import"../../../../../componentsV2/AppHeader/PadMode/PadMode.scss.js";import"../../../../../componentsV2/PadModeSelect/PadModeSelect.js";import"../../../../../componentsV2/PadModeSelect/PadModeSelect.constants.js";import"../../../../../componentsV2/AppCommonsProvider/AppCommonsProvider.js";import"../../../../../componentsV2/utils.js";import"../../../../../componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js";import"../../../../../componentsV2/UniversalLink/UniversalLink.scss.js";import"../../../../../componentsV2/AppHeader/V3/AssetChips/AssetChips.scss.js";import"../../../../../componentsV2/Button/Button.js";import"../../../../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js";import"../../../../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.constants.js";import"../../../../../componentsV2/Popover/Popover.js";import"../../../../../componentsV2/Accordion/Accordion.scss.js";import"../../../../../componentsV2/ButtonIcon/ButtonIcon.js";import"../../../../../componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js";import"../../../../../componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.scss.js";import"../../../../../componentsV2/AppDqPopover/DqAlert/DqAlert.scss.js";import"../../../../../componentsV2/AppDqPopover/DqAsset/DqAsset.scss.js";import"../../../../../componentsV2/AppDqPopover/AppDqPopover.scss.js";import"../../../../../componentsV2/Menu/Menu.js";import"../../../../../componentsV2/ModalWindow/ModalWindow.js";import"../../../../../componentsV2/Modal/Modal.scss.js";import"../../../../../componentsV2/LoaderLogo/LoaderLogo.constants.js";import"../../../../../componentsV2/LoaderLogo/LoaderLogo.scss.js";import"../../../../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js";import"../../../../../componentsV2/TextInput/TextInput.js";import"../../../../../componentsV2/AppHeader/V3/AssetSelector/constants.js";import"../../../../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorSelect.scss.js";import"../../../../../componentsV2/ChipIndicator/ChipIndicator.js";import"../../../../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/loadAssets.js";import"../../../../../componentsV2/AppHeader/V3/AssetSelector/AssetSelector.scss.js";import"querystring";import"../../../../../clients/subscriptions/subscriptions-client.factory.js";import"../../../../StatusBadge/constants.js";import"lodash/unset";import"../../../../../clients/api/apiCore.js";import"../../../../../clients/constants.js";import"../../../../../clients/sso/auth0.js";import"../../../../../clients/sso/oauth2.js";import"../../../../../clients/api/rateLimiter.js";import"lodash/isEmpty";import"lodash/sortBy";import"../../../../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../../../../../componentsV2/AppPanel/AppPanelsContext.js";import"../../../../../componentsV2/AppHeader/V3/AppTitle/AppTitle.constants.js";import"../../../../../componentsV2/AppHeader/V3/AppTitle/AppTitle.scss.js";import"../../../../../componentsV2/AppHeader/V3/constants.scss.js";import"../../../../../componentsV2/AppHeader/V3/SettingsButton/SettingsButton.constants.js";import"../../../../../componentsV2/AppHeader/V3/Actions/Actions.constants.js";import"../../../../../componentsV2/AppHeader/V3/Actions/Actions.scss.js";import"../../../../../componentsV2/AppHeader/V3/AppHeaderV3.scss.js";import"../../../../../componentsV2/AppHeader/AppHeader.scss.js";import"../../../../../componentsV2/EmptyState/EmptyState.scss.js";import"../../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton.js";import"../../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.scss.js";import"../../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.scss.js";import"../../../../../componentsV2/Grid/Grid.js";import"../../../../../componentsV2/Grid/Cell.js";import"../../../../../componentsV2/PopoverPanel/PopoverPanel.js";import"../../../../../componentsV2/Radio/Radio.js";import"../../../../../componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js";import"../../../../../componentsV2/Checkbox/Checkbox.js";import"../../../../../componentsV2/TextInputNext/TextInputNext.js";import"../../../../../componentsV2/TextArea/TextArea.js";import"../../../../../componentsV2/Label/Label.js";import"../../../../../componentsV2/TextLink/TextLink.js";import"../../../../../componentsV2/ChipAlert/ChipAlert.js";import"../../../../../componentsV2/Avatar/Avatar.js";import"../../../../../componentsV2/AvatarGroup/AvatarGroup.js";import"@material-ui/lab";import"../../../../../componentsV2/ToggleButtons/ToggleButtons.scss.js";import"../../../../../componentsV2/Paper/Paper.js";import"../../../../../componentsV2/Hint/Hint.scss.js";import"../../../../../componentsV2/Counter/Counter.js";import"../../../../../componentsV2/BadgeBase/BadgeBase.scss.js";import"../../../../../componentsV2/TemplatesControl/TemplatesControl.js";import"zustand";import"../../../../../componentsV2/TemplatesControl/utils.js";import"../../../../../componentsV2/TemplatesControl/icons/folder/index.js";import"../../../../../componentsV2/TemplatesControl/Store/utils.js";import"../../../../../componentsV2/TemplatesControl/types.js";import"../../../../../componentsV2/BadgeDot/BadgeDot.scss.js";import"../../../../../componentsV2/LoaderLinear/LoaderLinear.scss.js";import"../../../../../componentsV2/Switch/Switch.js";import"../../../../../componentsV2/Tabs/Tabs.js";import"../../../../../componentsV2/FileIcon/FileIcon.js";import"../../../../../componentsV2/Tag/Tag.js";import"react-dropzone";import"../../../../../componentsV2/FilesDropzone/FilesDropzone.scss.js";import"../../../../../componentsV2/FilesLoader/FilesLoader.scss.js";import"../../../../../componentsV2/FilesProcessor/FilesProcessor.scss.js";import"../../../../../componentsV2/Skeleton/Skeleton.scss.js";import"../../../../../componentsV2/CopyToClipboard/CopyToClipboard.scss.js";import"../../../../../componentsV2/Stepper/Step/Step.scss.js";import"../../../../../componentsV2/Stepper/Stepper.scss.js";import"../../../../../componentsV2/ButtonLive/ButtonLive.js";import"../../../../../componentsV2/ButtonText/ButtonText.js";import"../../../../../componentsV2/IndicatorLive/IndicatorLive.js";import"../../../../../componentsV2/Breadcrumbs/Breadcrumbs.scss.js";import"../../../../../componentsV2/BadgeComment/BadgeComment.js";import"../../../../../componentsV2/AppFooter/AppFooter.js";import"../../../../../componentsV2/OffsetWellsButton/OffsetWellsButton.js";import"../../../../../componentsV2/ChartAxisExtreme/ChartAxisExtreme.scss.js";import"highcharts";import"../../../../../componentsV2/ChartAxisExtreme/ChartAxisExtremeDragTracker.js";import"../../../../../componentsV2/Autocomplete/Autocomplete.js";import"../../../../../componentsV2/Select/Select.js";import"../../../../../componentsV2/AppPanel/AppPanel.js";import"../../../../../componentsV2/AppSettingsDivider/AppSettingsDivider.scss.js";import"../../../../../componentsV2/WellArchivedMessage/WellArchivedMessage.js";import"../../../../../componentsV2/DatePicker/DatePicker.js";import"../../../../../componentsV2/DragHandle/DragHandle.js";import"../../../../../componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js";import"../../../../../componentsV2/Slider/constants.js";import"../../../../../componentsV2/Slider/components/SliderThumb.js";import"../../../../../componentsV2/Slider/Slider.scss.js";import"../../../../../componentsV2/SliderAdvanced/SliderAdvanced.js";import"react-color";import"../../../../../componentsV2/ColorPicker/Swatches/Swatches.scss.js";import"../../../../../componentsV2/ColorPicker/OpacityDragtracker/OpacityDragTracker.scss.js";import"../../../../../componentsV2/ColorPicker/ColorPicker.scss.js";import"../../../../../componentsV2/ChartHelper/ChartHelper.scss.js";import"../../../../../componentsV2/Hotkey/Hotkey.js";import"@tanstack/react-query";import"../../../../../componentsV2/InterventionEventSelector/useInterventionUnitEvents.js";import"../../../../../componentsV2/InterventionEventSelector/InterventionEventSelector.scss.js";import"../../../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.css.js";import"../../../../Icons/AnnotationIcon.js";import"../../../../HelpCenter/HelpCenterIcon.js";import"../../../../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/RestoreAppSizeButton.css.js";import"../../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.scss.js";import"../../../../Toaster/Toaster.js";import"../../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../../DevCenter/SideBar/SideBar.js";import"../../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../../AssetEditor/index.js";import"../../../../LoadingIndicator/LoadingIndicator.js";import{Regular16 as c}from"../../../../Typography.js";import"../../../../RealTimeValuesSidebar/RealTimeSidebar.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import"../../../../SlateFormattedText/RenderElements.js";import"slate";import"../../../../ParameterCharts/ParameterCharts.js";import"../../../../ParameterCharts/AddEditTrack.js";import"../../../../ChartActionsList/ChartActionsList.js";import"../../../../CopyToClipboard/CopyToClipboard.js";import"../../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../../AssetEditor/SingleAssetEditor.js";import"../../../../SettingEditors/ColorEditor/style.css.js";import"../../../../SettingEditors/DropdownEditor/index.js";import"../../../../SwitchControl/index.js";import"../../../../ColorPicker/ColorPicker.js";import"../../../../Chart/components/ChartButton.js";import"../../../../Chart/components/ChartButtons.js";import"../../../../Chart/components/ChartWrapper.js";import"../../../../Chart/components/AxisDropdown.js";import"../../../../Chart/components/ChartSelect.js";import"../../../../Chart/ChartWrapperContext.js";import"../../../../Chart/effects/useChartModifier.js";import"../../../../Chart/components/buttons/HideAxesButton.js";import"../../../../Chart/components/buttons/ChartTypeButton.js";import"../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../TruncatedText/index.js";import"../../../../MiddleTruncatedText/MiddleTruncatedText.js";import"../../../../RangeSlider/constants.js";import"../../../../RangeSlider/Input.css.js";import"../../../../RangeSlider/RangeSlider.css.js";import"../../../../AdvancedSlider/AdvancedSlider.js";import"../../../../Breadcrumbs/index.js";import"../../../../VirtualizedTable/index.js";import"../../../../EmptyView/EmptyView.js";import"../../../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../../../ContextMenuItem/index.js";import"../../../../FolderMenuItem/index.js";import"../../../../EditableItem/EditableItem/index.js";import"../../../../EditableItem/EditableItemWithBadge/index.js";import"../../../../Checkbox/index.js";import"../../../../FolderMenuItemWithLinks/index.js";import"../../../../IconButton/index.js";import"../../../../TextField/index.js";import"../../../../Chip/index.js";import"../../../../Counter/index.js";import"../../../../AnchorsList/AnchorsList.js";import"../../../../Select/index.js";import"../../../../Select/SelectFilterBy.js";import"../../../../CustomSelect/index.js";import"../../../../Tabs/Tabs.js";import"../../../../Tabs/Tab.js";import"../../../../ResizableTable/ResizableTable.js";import"../../../../GradientPicker/GradientPicker.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"../../../../GradientManager/GradientPreview/GradientPreview.js";import"../../../../GradientManager/GradientSelect.scss.js";import"../../../../GradientManager/GradientManager.styles.js";import"../../../BHASchematic.js";import"../../../BHATable/index.js";import"../../../BHAComponentIcon.js";import"../../../BHAComponentDetail/index.js";import"../../../BHATileIcon.js";import"../../../BHATile/BHATile.js";import"../../../BHAList/BHAList.js";import"../../BHAComponentsTable.js";import"../../../../Casing/CasingTable/index.js";import"../../../../Casing/CasingComponentIcon.js";import"../../../../Casing/CasingTileIcon.js";import"../../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../../Casing/CasingTile/CasingTile.js";import"../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../WellSummary/WellSummaryItemValue.js";import"../../../../WellSummary/ActivitySummaryChart.js";import"../../../../WellSummary/FracWirelineTimeChart.js";import"../../../../BICOffsetPickerDialog/index.js";import"../../../../OffsetWellButton/OffsetWellButton.js";import"../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../OffsetWellPickerV3/index.js";import"../../../../OffsetWellChips/Chip.js";import"../../../../OffsetWellChips/ChipsContainer.js";import"../../../../OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/OffsetWellPickerV5WithStore.js";import"mapbox-gl/dist/mapbox-gl.css";import"@material-ui/icons/Info";import"@material-ui/icons/Block";import"../../../../OffsetWellMap/WellTooltip.module.css.js";import"../../../../OffsetWellMap/OffsetWellMap.module.css.js";import"../../../../../config/mapboxGl/index.js";import"../../../../../config/mapbox/index.js";import"react-dom";import"@material-ui/core/Snackbar";import"../../../../Notifications/Toast.js";import"../../../../Notifications/Notifications.scss.js";import"../../../../TextLink/index.js";import"../../../../Avatar/index.js";import"../../../../Template/TemplatePopover/index.js";import"../../../../Template/TemplateSharingDialog/index.js";import"../../../../MenuItem/index.js";import"../../../../MiddleTruncate/MiddleTruncate.js";import"../../../../PinnableFilters/PinnableFilters.js";import"../../../../HeaderLayout/HeaderLayout.js";import"../../../../PadOffsetsPicker/PadOffsetsPicker.js";import"../../../../PadOffsetsPicker/OffsetAssetChip.js";import"../../../../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../../../PadOffsetsPicker/StagesSelector.js";import"../../../../PadOffsetsPickerV2/PadOffsetsPickerV2.js";import"../../../../Table/TableToolbar/TableToolbar.js";import"../../../../Table/TableContainer/TableContainer.js";import"../../../../Table/TableCell/TableCell.js";import"../../../../Table/TablePagination/TablePagination.js";import"../../../../Table/TablePaginationActions/TablePaginationActions.js";import"../../../../Tooltip/ScrollableTooltip.js";import"../../../../PriceInput/PriceInput.js";import"../../../../LabelsCounter/LabelsCounter.js";import"../../../../Stepper/Stepper.js";import"../../../../Stepper/Step/Step.js";import"../../../../Stepper/StepsWrapper.js";import"../../../../Comment/CommentIcon/index.js";import"../../../../FilesLoader/FilesLoader.js";import"../../../../../componentsV2/FileIcon/icons/ArchiveFileIcon.js";import"../../../../../componentsV2/FileIcon/icons/CSVFileIcon.js";import"../../../../../componentsV2/FileIcon/icons/DocFileIcon.js";import"../../../../../componentsV2/FileIcon/icons/EDMFileIcon.js";import"../../../../../componentsV2/FileIcon/icons/ExcelFileIcon.js";import"../../../../../componentsV2/FileIcon/icons/ImageFileIcon.js";import"../../../../../componentsV2/FileIcon/icons/JsonFileIcon.js";import"../../../../../componentsV2/FileIcon/icons/LasFileIcon.js";import"../../../../../componentsV2/FileIcon/icons/OtherFileIcon.js";import"../../../../../componentsV2/FileIcon/icons/PdfFileIcon.js";import"../../../../../componentsV2/FileIcon/icons/PowerPointFileIcon.js";import"../../../../../componentsV2/FileIcon/icons/TxtFileIcon.js";import"../../../../../componentsV2/FileIcon/icons/UnknownFileIcon.js";import"../../../../../componentsV2/FileIcon/icons/VideoFileIcon.js";import"../../../../../componentsV2/FileIcon/icons/XmlFileIcon.js";import"../../../../SearchInput/index.js";import"../../../../FeedItem/FeedItem.js";import"../../../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../../../../PostInput/PostInput.js";import"../../../../KeyboardDateTimePicker.js";import"../../../../AddComment/Popover.js";import"../../../../AddComment/Popup.js";import"../../../../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../../../../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../../../../StageDesignVActual/ComparisonHeader.js";import"../../../../StageDesignVActual/ComparisonRow.js";import"../../../../EmbeddedApp/DevCenterEmbeddedApp.js";import"../../../../EmbeddedApp/EmbeddedApp.js";import"../../../../Autocomplete/Autocomplete.js";import"../../../../DocumentViewer/DocumentViewer.js";import"../../../../ColorPickerPalette/ColorPickerPalette.js";import"../../../../Search/Search.js";import"../../../../Search/components/Listbox.js";import"../../../../Search/components/Paper.js";import"../../../../Search/components/RecentSearches.js";import"../../../../Search/components/Groups.js";import"../../../../Search/components/SelectAllListItem.js";import"../../../../StatusBadge/index.js";import"../../../../Attachment/index.js";import"../../../../EmojiIconButton.js";import"../../../../FileUploadIconButton.js";import"../../../../FilePreview/index.js";import"../../../../FailedFileUploading.js";import"../../../../UserMention/index.js";import"../../../../CommentsInfo/index.js";import"../../../../CommentInput/index.js";import"../../../../Comment/index.js";import"../../../../CommentLoader.js";import"../../../../AssetNameLabel/AssetStatusBadge.js";import"../../../../AssetEditorV2/components/PrimaryAssetSelect.js";import"../../../../AssetEditorV2/components/SecondaryAssetSelect.js";import"../../../../AssetEditorV2/components/SelectItem.js";import"../../../../AssetEditorV2/components/MultipleAssetsToggle.js";import"../../../../AssetEditorV2/components/PrimaryAssetSelectV2.js";import"../../../../EChartsWrapper/EChartsWrapper.js";import"../../../../AssetsMultipleSelector/AssetsMultipleSelector.js";import"@material-ui/icons/Close";import"@material-ui/icons/GetApp";import"../../../../GoogleDocsViewer/index.js";import"../../../../NewDocumentViewer/effects/useFileContent.js";import"../../../../NewDocumentViewer/styles.js";import"../../../../FilesLoaderV2/styles.js";import"../../../../FilesDropzone/styles.js";import"../../../../FilesProcessor/styles.js";import"../../../../Hint/styles.js";import"@babel/runtime/helpers/taggedTemplateLiteral";import"fparser";import"../../../../Formula/useFormulaStyles.js";import"../../../../Formula/RootXIcon.js";import"../../../../Formula/FormulaTextEditor.js";import"../../../../Formula/CloseSuggestion.js";import"../../../../Formula/SuggestionsMenu.js";import"../../../../CommentCard/CommentCard.js";import"@material-ui/icons/AlternateEmail";import"../../../../AttachFileButton/AttachFileButton.scss.js";import"../../../../CommentInputNext/CommentInputNext.js";import"../../../../WellhubFilePicker/components/WellhubFileCard/WellhubFileCard.scss.js";import"../../../../WellhubFilePicker/components/WellhubFilePickerView/WellhubFilePickerView.scss.js";import"react-s3-uploader/s3upload";import"../../../../CommentComposer/CommentMetaLine.scss.js";import"../../../../CommentComposer/ChatChannelSelector.scss.js";import"../../../../CommentComposer/ShareToChatRow.scss.js";import"../../../../CommentComposer/CommentComposer.scss.js";import"../../../../AttachmentPreview/AttachmentPreview.js";import"../../../../AttachmentPreview/AttachmentImage.js";import"../../../../AttachmentPreview/AttachmentPreview.scss.js";import"../../../../CommentPin/CommentPin.js";import"../../../../FeedCard/FeedCard.js";import"../../../../FeedItemCard/FeedItemCard.js";import"../../../../NewCommentCursor/NewCommentCursor.js";import"../../../../LinkedText/LinkedText.js";import"../../../../FeedItem/feedItemTypes/AlertFeedItem.js";import"../../../../FeedItem/feedItemTypes/PostFeedItem.js";import"../../../../FeedItem/feedItemTypes/GeosteeringFeedItem.js";import"../../../../FeedItem/feedItemTypes/DrillingOperationalNoteFeedItem.js";import"../../../../FeedItem/feedItemTypes/DrillingOperationSummaryFeedItem.js";import"../../../../FeedItem/feedItemTypes/DrillingDailyCostFeedItem.js";import"../../../../FeedItem/feedItemTypes/DocumentFeedItem.js";import"../../../../FeedItem/feedItemTypes/DrillerMemoFeedItem.js";import"../../../../FeedItem/feedItemTypes/NptFeedItem.js";import"../../../../FeedItem/feedItemTypes/SurveyStationFeedItem/index.js";import"../../../../FeedItem/feedItemTypes/LessonsLearnedFeedItem/index.js";import"../../../../FeedItem/feedItemTypes/TracesMemoFeedItem.js";import"../../../../FeedItem/feedItemTypes/DepthCommentFeedItem.js";import"../../../../FeedItem/feedItemTypes/CompletionOperationalNoteFeedItem.js";import"../../../../FeedItem/feedItemTypes/CompletionOperationSummaryFeedItem.js";import"../../../../FeedItem/feedItemTypes/CompletionDailyCostFeedItem.js";import"../../../../FeedItem/feedItemTypes/CompletionDocumentFeedItem.js";import"../../../../FeedItem/feedItemTypes/CompletionNptFeedItem.js";import"../../../../FeedItem/feedItemTypes/StageOverviewFeedItem/index.js";import"../../../../FeedItem/feedItemTypes/AppAnnotationFeedItem/index.js";import"../../../../FeedItem/feedItemTypes/WellPlanFeedItem/index.js";import"../../../../FeedItem/feedItemTypes/FluidReportFeedItem.js";import"../../../../FeedItem/feedItemTypes/BhaFeedItem/BhaFeedItem.js";import"../../../../FeedItem/feedItemTypes/DvDCommentFeedItem.js";import"../../../../FeedItem/feedItemTypes/PCCommentFeedItem.js";import"../../../../FeedItem/feedItemTypes/HookloadCommentFeedItem.js";import"../../../../FeedItem/feedItemTypes/NptLessonsCommentFeedItem.js";import"../../../../FeedItem/feedItemTypes/GenericDataCommentFeedItem.js";var a=o({root:{height:"36px"}})(t),l=o({root:{margin:"0 16px 0 auto"}})(a),d=o({root:{color:"#bdbdbd"}})(c),j=s((function(e){return{paper:{minWidth:function(e){return e.isMobile?0:"416px"},minHeight:function(e){return e.isMobile&&"240px !important"},maxWidth:function(e){return e.isMobile&&"calc(100% - 24px)"}},content:{width:function(e){return e.isMobile?"auto":"300px"},color:e.palette.primary.text6}}})),u=function(e){var o=e.title,t=e.text,s=e.okText,c=e.handleClose,u=e.handleOk,C=j({isMobile:i});return r(n,{open:!0,onClose:c,title:o,isMobile:!1,actions:p(m,{children:[r(l,{color:"primary",onClick:c,children:"Cancel"}),r(a,{variant:"contained",color:"primary",onClick:u,children:s||"OK"})]}),contentContainerClassName:C.paper,children:r("div",{className:C.content,children:r(d,{children:t})})})};u.propTypes={title:e.string.isRequired,okText:e.string.isRequired,text:e.string.isRequired,handleClose:e.func.isRequired,handleOk:e.func.isRequired};export{u as ConfirmationPopup,j as useStyles};
|
|
1
|
+
import e from"prop-types";import{withStyles as o,Button as t,makeStyles as s}from"@material-ui/core";import{isMobileDetected as i}from"../../../../../utils/mobileDetect.js";import n from"../../../../Modal/Modal.js";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import"../../../../AppIcon/AppIcon.js";import"../../../../DevCenter/AppHeader/AppHeader.js";import"../../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../../DevCenter/AppContext.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"react";import"lodash";import"../../../../DevCenter/AppsDataProvider/effects/utils.js";import"@babel/runtime/helpers/toConsumableArray";import"query-string";import"../../../../../constants/goals.js";import"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import"../../../../../constants/apps.js";import"../../../../../constants/drillstring.js";import"../../../../../constants/completion.js";import"../../../../../constants/appPackages.js";import"../../../../../constants/notifications.js";import"../../../../../constants/feed.js";import"../../../../../constants/bha.js";import"../../../../../constants/corvaCompanyId.js";import"../../../../GradientManager/configuration/constants.js";import{jsx as r,jsxs as p,Fragment as m}from"react/jsx-runtime";import"classnames";import"../../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router-dom";import"../../../../UserMention/utils/index.js";import"../../../../../utils/convert.js";import"moment";import"../../../../../utils/casing/validation.js";import"lodash/mean";import"../../../../../constants/streamSourceType.js";import"lodash/get";import"file-saver";import"../../../../../utils/drillstring/conversion.js";import"lodash/set";import"lodash/cloneDeep";import"lodash/isNumber";import"lodash/has";import"../../../../../utils/ga.js";import"../../../../../utils/goalsConfig/goalsConfig.js";import"../../../../../utils/lasParser.js";import"../../../../../utils/main.js";import"../../../../../utils/metrics/metricsConfig.js";import"../../../../../utils/feed.js";import"../../../../../utils/reports.js";import"moment-timezone";import"@babel/runtime/helpers/typeof";import"../../../../../utils/dashboardReports.js";import"../../../../../utils/env.js";import"file-extension";import"image-extensions";import"video-extensions";import"../../../../../utils/jsonaDataFormatter.js";import"../../../../../utils/bha.js";import"jsona";import"../../../../../clients/jsonApi/index.js";import"../../../../../utils/charts/Styles.scss.js";import"../../../../../utils/getSingleAsset.js";import"../../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"@material-ui/icons/ArrowForward";import"../../../../EmptyState/EmptyState.js";import"../../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.js";import"../../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/styles.js";import"@material-ui/pickers";import"@date-io/moment";import"../../../../../config/theme/index.js";import"../../../../../hocs/withAssetEditorLockHOC.js";import"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../../Button/components/Button/index.js";import"../../../../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../../../../Button/components/LiveButton/styles.js";import"@icon-park/react/es/all";import"../../../../../icons/IconParkProvider.js";import"../../../../../icons/customIcons/icons/AddMessage.js";import"../../../../../icons/customIcons/icons/DragOne.js";import"../../../../../icons/customIcons/icons/Attention.js";import"../../../../../icons/customIcons/icons/Collapse.js";import"../../../../../icons/customIcons/icons/Dashboard.js";import"../../../../../icons/customIcons/icons/Expand.js";import"../../../../../icons/customIcons/icons/FolderClosed.js";import"../../../../../icons/customIcons/icons/FolderClosedFilled.js";import"../../../../../icons/customIcons/icons/FolderOpened.js";import"../../../../../icons/customIcons/icons/GreaterOrEqual.js";import"../../../../../icons/customIcons/icons/LessOrEqual.js";import"../../../../../icons/customIcons/icons/Search.js";import"../../../../../icons/customIcons/icons/SearchOne.js";import"../../../../../icons/customIcons/icons/Wellhub.js";import"../../../../../icons/customIcons/icons/MultiRuler.js";import"../../../../../icons/customIcons/icons/Checkbox.js";import"../../../../../icons/customIcons/icons/CheckboxChecked.js";import"../../../../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../../../../icons/customIcons/icons/Radio.js";import"../../../../../icons/customIcons/icons/RadioChecked.js";import"../../../../../icons/customIcons/icons/SimulFrac.js";import"../../../../../icons/customIcons/icons/ZipperFrac.js";import"../../../../../icons/customIcons/icons/CautionFilled.js";import"../../../../../icons/customIcons/icons/InfoRounded.js";import"../../../../../icons/customIcons/icons/FlameFilled.js";import"../../../../../icons/customIcons/icons/MoreApp.js";import"../../../../../icons/customIcons/icons/Pad.js";import"../../../../../icons/customIcons/icons/DrilloutUnit.js";import"../../../../../icons/customIcons/icons/FracFleet.js";import"../../../../../icons/customIcons/icons/Global.js";import"../../../../../icons/customIcons/icons/Program.js";import"../../../../../icons/customIcons/icons/Rig.js";import"../../../../../icons/customIcons/icons/Well.js";import"../../../../../icons/customIcons/icons/Gap.js";import"../../../../../icons/customIcons/icons/Pin.js";import"../../../../../icons/customIcons/icons/PinOne.js";import"../../../../../icons/customIcons/icons/PinOneCrossed.js";import"../../../../../icons/customIcons/icons/CloseOneFilled.js";import"../../../../../icons/customIcons/icons/AttentionFilled.js";import"../../../../../icons/customIcons/icons/CheckOneFilled.js";import"../../../../../icons/customIcons/icons/Archive.js";import"../../../../../icons/customIcons/icons/ArchiveCancel.js";import"../../../../../icons/customIcons/icons/Unarchive.js";import"../../../../../icons/customIcons/icons/Archived.js";import"../../../../../icons/customIcons/icons/InterventionUnit.js";import"../../../../../icons/customIcons/icons/CloudDelete.js";import"../../../../../icons/customIcons/icons/Lasso.js";import"../../../../../icons/customIcons/icons/Radius.js";import"../../../../../icons/customIcons/icons/ErrorOps.js";import"../../../../../icons/customIcons/icons/DataTypeOps.js";import"../../../../../icons/customIcons/icons/FalsePositiveOps.js";import"../../../../../icons/customIcons/icons/CalibrationOps.js";import"../../../../../icons/customIcons/icons/CriticalOps.js";import"../../../../../icons/customIcons/icons/Company.js";import"../../../../../icons/customIcons/icons/ArchiveOne.js";import"../../../../../icons/customIcons/icons/ParseBotFusion.js";import"../../../../../icons/customIcons/icons/Connect.js";import"../../../../../icons/customIcons/icons/PuzzleOne.js";import"../../../../../icons/customIcons/icons/Feed.js";import"../../../../../icons/customIcons/icons/Prompt.js";import"../../../../../icons/customIcons/icons/Companies.js";import"../../../../../icons/customIcons/icons/ClipboardAi.js";import"../../../../../icons/customIcons/icons/Key.js";import"../../../../../icons/customIcons/icons/AtSignCrossed.js";import"../../../../../icons/customIcons/icons/MappingManual.js";import"../../../../../icons/customIcons/icons/Mapping.js";import"../../../../../icons/customIcons/icons/Metrics.js";import"../../../../../icons/customIcons/icons/Drops.js";import"../../../../../icons/customIcons/icons/ClipboardSearch.js";import"../../../../../icons/customIcons/icons/Template.js";import"../../../../../icons/customIcons/icons/ClipboardMetrics.js";import"../../../../../icons/customIcons/icons/ClipboardBuilder.js";import"../../../../../icons/customIcons/icons/UnitConversion.js";import"../../../../../icons/customIcons/icons/NPT.js";import"../../../../../icons/customIcons/icons/GuidedFrac.js";import"../../../../AssetEditorV2/index.js";import"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../../ConfirmationDialog.js";import"../../../../../permissions/PermissionsContext.js";import"../../../../../permissions/constants/index.js";import"../../../../../permissions/withPermissionsHOC.js";import"../../../../../permissions/ProvidePermissions.js";import"../../../../../componentsV2/AppHeader/V3/VersionSelect/VersionSelect.constants.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../../../componentsV2/AppContainer/AppContainer.js";import"../../../../../componentsV2/AppContainer/AppContainer.constants.js";import"../../../../../componentsV2/Text/Text.js";import"../../../../../componentsV2/Header/Header.scss.js";import"../../../../DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider.js";import"uuid";import"../../../../../componentsV2/Tooltip/Tooltip.scss.js";import"../../../../../componentsV2/TextEndTruncated/TextEndTruncated.scss.js";import"../../../../../componentsV2/AppCommonsProvider/AppCommonsContext.js";import"../../../../../componentsV2/AppHeader/AppHeader.constants.js";import"../../../../../componentsV2/AppHeader/AppBadge/AppBadge.scss.js";import"../../../../../componentsV2/Chip/Chip.js";import"../../../../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.constants.js";import"../../../../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.scss.js";import"../../../../../componentsV2/AppHeader/AppAssets/utils.js";import"../../../../../componentsV2/AppHeader/AppAssets/AppAssets.scss.js";import"../../../../PadModeSelect/PadModeSelect.js";import"../../../../../componentsV2/AppHeader/PadMode/PadMode.scss.js";import"../../../../../componentsV2/PadModeSelect/PadModeSelect.js";import"../../../../../componentsV2/PadModeSelect/PadModeSelect.constants.js";import"../../../../../componentsV2/AppCommonsProvider/AppCommonsProvider.js";import"../../../../../componentsV2/utils.js";import"../../../../../componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js";import"../../../../../componentsV2/UniversalLink/UniversalLink.scss.js";import"../../../../../componentsV2/AppHeader/V3/AssetChips/AssetChips.scss.js";import"../../../../../componentsV2/Button/Button.js";import"../../../../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js";import"../../../../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.constants.js";import"../../../../../componentsV2/Popover/Popover.js";import"../../../../../componentsV2/Accordion/Accordion.scss.js";import"../../../../../componentsV2/ButtonIcon/ButtonIcon.js";import"../../../../../componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js";import"../../../../../componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.scss.js";import"../../../../../componentsV2/AppDqPopover/DqAlert/DqAlert.scss.js";import"../../../../../componentsV2/AppDqPopover/DqAsset/DqAsset.scss.js";import"../../../../../componentsV2/AppDqPopover/AppDqPopover.scss.js";import"../../../../../componentsV2/Menu/Menu.js";import"../../../../../componentsV2/ModalWindow/ModalWindow.js";import"../../../../../componentsV2/Modal/Modal.scss.js";import"../../../../../componentsV2/LoaderLogo/LoaderLogo.constants.js";import"../../../../../componentsV2/LoaderLogo/LoaderLogo.scss.js";import"../../../../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js";import"../../../../../componentsV2/TextInput/TextInput.js";import"../../../../../componentsV2/AppHeader/V3/AssetSelector/constants.js";import"../../../../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorSelect.scss.js";import"../../../../../componentsV2/ChipIndicator/ChipIndicator.js";import"../../../../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/loadAssets.js";import"../../../../../componentsV2/AppHeader/V3/AssetSelector/AssetSelector.scss.js";import"querystring";import"../../../../../clients/subscriptions/subscriptions-client.factory.js";import"../../../../StatusBadge/constants.js";import"lodash/unset";import"../../../../../clients/api/apiCore.js";import"../../../../../clients/constants.js";import"../../../../../clients/sso/auth0.js";import"../../../../../clients/sso/oauth2.js";import"../../../../../clients/api/rateLimiter.js";import"lodash/isEmpty";import"lodash/sortBy";import"../../../../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../../../../../componentsV2/AppPanel/AppPanelsContext.js";import"../../../../../componentsV2/AppHeader/V3/AppTitle/AppTitle.constants.js";import"../../../../../componentsV2/AppHeader/V3/AppTitle/AppTitle.scss.js";import"../../../../../componentsV2/AppHeader/V3/constants.scss.js";import"../../../../../componentsV2/AppHeader/V3/SettingsButton/SettingsButton.constants.js";import"../../../../../componentsV2/AppHeader/V3/Actions/Actions.constants.js";import"../../../../../componentsV2/AppHeader/V3/Actions/Actions.scss.js";import"../../../../../componentsV2/AppHeader/V3/AppHeaderV3.scss.js";import"../../../../../componentsV2/AppHeader/AppHeader.scss.js";import"../../../../../componentsV2/EmptyState/EmptyState.scss.js";import"../../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton.js";import"../../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.scss.js";import"@material-ui/icons/BugReport";import"../../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.scss.js";import"../../../../../componentsV2/Grid/Grid.js";import"../../../../../componentsV2/Grid/Cell.js";import"../../../../../componentsV2/PopoverPanel/PopoverPanel.js";import"../../../../../componentsV2/Radio/Radio.js";import"../../../../../componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js";import"../../../../../componentsV2/Checkbox/Checkbox.js";import"../../../../../componentsV2/TextInputNext/TextInputNext.js";import"../../../../../componentsV2/TextArea/TextArea.js";import"../../../../../componentsV2/Label/Label.js";import"../../../../../componentsV2/TextLink/TextLink.js";import"../../../../../componentsV2/ChipAlert/ChipAlert.js";import"../../../../../componentsV2/Avatar/Avatar.js";import"../../../../../componentsV2/AvatarGroup/AvatarGroup.js";import"@material-ui/lab";import"../../../../../componentsV2/ToggleButtons/ToggleButtons.scss.js";import"../../../../../componentsV2/Paper/Paper.js";import"../../../../../componentsV2/Hint/Hint.scss.js";import"../../../../../componentsV2/Counter/Counter.js";import"../../../../../componentsV2/BadgeBase/BadgeBase.scss.js";import"../../../../../componentsV2/TemplatesControl/TemplatesControl.js";import"zustand";import"../../../../../componentsV2/TemplatesControl/utils.js";import"../../../../../componentsV2/TemplatesControl/icons/folder/index.js";import"../../../../../componentsV2/TemplatesControl/Store/utils.js";import"../../../../../componentsV2/TemplatesControl/types.js";import"../../../../../componentsV2/BadgeDot/BadgeDot.scss.js";import"../../../../../componentsV2/LoaderLinear/LoaderLinear.scss.js";import"../../../../../componentsV2/Switch/Switch.js";import"../../../../../componentsV2/Tabs/Tabs.js";import"../../../../../componentsV2/FileIcon/FileIcon.js";import"../../../../../componentsV2/Tag/Tag.js";import"react-dropzone";import"../../../../../componentsV2/FilesDropzone/FilesDropzone.scss.js";import"../../../../../componentsV2/FilesLoader/FilesLoader.scss.js";import"../../../../../componentsV2/FilesProcessor/FilesProcessor.scss.js";import"../../../../../componentsV2/Skeleton/Skeleton.scss.js";import"../../../../../componentsV2/CopyToClipboard/CopyToClipboard.scss.js";import"../../../../../componentsV2/Stepper/Step/Step.scss.js";import"../../../../../componentsV2/Stepper/Stepper.scss.js";import"../../../../../componentsV2/ButtonLive/ButtonLive.js";import"../../../../../componentsV2/ButtonText/ButtonText.js";import"../../../../../componentsV2/IndicatorLive/IndicatorLive.js";import"../../../../../componentsV2/Breadcrumbs/Breadcrumbs.scss.js";import"../../../../../componentsV2/BadgeComment/BadgeComment.js";import"../../../../../componentsV2/AppFooter/AppFooter.js";import"../../../../../componentsV2/OffsetWellsButton/OffsetWellsButton.js";import"../../../../../componentsV2/ChartAxisExtreme/ChartAxisExtreme.scss.js";import"highcharts";import"../../../../../componentsV2/ChartAxisExtreme/ChartAxisExtremeDragTracker.js";import"../../../../../componentsV2/Autocomplete/Autocomplete.js";import"../../../../../componentsV2/Select/Select.js";import"../../../../../componentsV2/AppPanel/AppPanel.js";import"../../../../../componentsV2/AppSettingsDivider/AppSettingsDivider.scss.js";import"../../../../../componentsV2/WellArchivedMessage/WellArchivedMessage.js";import"../../../../../componentsV2/DatePicker/DatePicker.js";import"../../../../../componentsV2/DragHandle/DragHandle.js";import"../../../../../componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js";import"../../../../../componentsV2/Slider/constants.js";import"../../../../../componentsV2/Slider/components/SliderThumb.js";import"../../../../../componentsV2/Slider/Slider.scss.js";import"../../../../../componentsV2/SliderAdvanced/SliderAdvanced.js";import"react-color";import"../../../../../componentsV2/ColorPicker/Swatches/Swatches.scss.js";import"../../../../../componentsV2/ColorPicker/OpacityDragtracker/OpacityDragTracker.scss.js";import"../../../../../componentsV2/ColorPicker/ColorPicker.scss.js";import"../../../../../componentsV2/ChartHelper/ChartHelper.scss.js";import"../../../../../componentsV2/Hotkey/Hotkey.js";import"@tanstack/react-query";import"../../../../../componentsV2/InterventionEventSelector/useInterventionUnitEvents.js";import"../../../../../componentsV2/InterventionEventSelector/InterventionEventSelector.scss.js";import"@material-ui/icons/Launch";import"../../../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.css.js";import"../../../../Icons/AnnotationIcon.js";import"../../../../HelpCenter/HelpCenterIcon.js";import"../../../../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/RestoreAppSizeButton.css.js";import"../../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.scss.js";import"../../../../Toaster/Toaster.js";import"../../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../../DevCenter/SideBar/SideBar.js";import"../../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../../AssetEditor/index.js";import"../../../../LoadingIndicator/LoadingIndicator.js";import{Regular16 as c}from"../../../../Typography.js";import"../../../../RealTimeValuesSidebar/RealTimeSidebar.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import"../../../../SlateFormattedText/RenderElements.js";import"slate";import"../../../../ParameterCharts/ParameterCharts.js";import"../../../../ParameterCharts/AddEditTrack.js";import"../../../../ChartActionsList/ChartActionsList.js";import"../../../../CopyToClipboard/CopyToClipboard.js";import"../../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../../AssetEditor/SingleAssetEditor.js";import"../../../../SettingEditors/ColorEditor/style.css.js";import"../../../../SettingEditors/DropdownEditor/index.js";import"../../../../SwitchControl/index.js";import"../../../../ColorPicker/ColorPicker.js";import"../../../../Chart/components/ChartButton.js";import"../../../../Chart/components/ChartButtons.js";import"../../../../Chart/components/ChartWrapper.js";import"../../../../Chart/components/AxisDropdown.js";import"../../../../Chart/components/ChartSelect.js";import"../../../../Chart/ChartWrapperContext.js";import"../../../../Chart/effects/useChartModifier.js";import"../../../../Chart/components/buttons/HideAxesButton.js";import"../../../../Chart/components/buttons/ChartTypeButton.js";import"../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../TruncatedText/index.js";import"../../../../MiddleTruncatedText/MiddleTruncatedText.js";import"../../../../RangeSlider/constants.js";import"../../../../RangeSlider/Input.css.js";import"../../../../RangeSlider/RangeSlider.css.js";import"../../../../AdvancedSlider/AdvancedSlider.js";import"../../../../Breadcrumbs/index.js";import"../../../../VirtualizedTable/index.js";import"../../../../EmptyView/EmptyView.js";import"../../../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../../../ContextMenuItem/index.js";import"../../../../FolderMenuItem/index.js";import"../../../../EditableItem/EditableItem/index.js";import"../../../../EditableItem/EditableItemWithBadge/index.js";import"../../../../Checkbox/index.js";import"../../../../FolderMenuItemWithLinks/index.js";import"../../../../IconButton/index.js";import"../../../../TextField/index.js";import"../../../../Chip/index.js";import"../../../../Counter/index.js";import"../../../../AnchorsList/AnchorsList.js";import"../../../../Select/index.js";import"../../../../Select/SelectFilterBy.js";import"../../../../CustomSelect/index.js";import"../../../../Tabs/Tabs.js";import"../../../../Tabs/Tab.js";import"../../../../ResizableTable/ResizableTable.js";import"../../../../GradientPicker/GradientPicker.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"../../../../GradientManager/GradientPreview/GradientPreview.js";import"../../../../GradientManager/GradientSelect.scss.js";import"../../../../GradientManager/GradientManager.styles.js";import"../../../BHASchematic.js";import"../../../BHATable/index.js";import"../../../BHAComponentIcon.js";import"../../../BHAComponentDetail/index.js";import"../../../BHATileIcon.js";import"../../../BHATile/BHATile.js";import"../../../BHAList/BHAList.js";import"../../BHAComponentsTable.js";import"../../../../Casing/CasingTable/index.js";import"../../../../Casing/CasingComponentIcon.js";import"../../../../Casing/CasingTileIcon.js";import"../../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../../Casing/CasingTile/CasingTile.js";import"../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../WellSummary/WellSummaryItemValue.js";import"../../../../WellSummary/ActivitySummaryChart.js";import"../../../../WellSummary/FracWirelineTimeChart.js";import"../../../../BICOffsetPickerDialog/index.js";import"../../../../OffsetWellButton/OffsetWellButton.js";import"../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../OffsetWellPickerV3/index.js";import"../../../../OffsetWellChips/Chip.js";import"../../../../OffsetWellChips/ChipsContainer.js";import"../../../../OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/OffsetWellPickerV5WithStore.js";import"@material-ui/icons/Add";import"@material-ui/icons/Remove";import"mapbox-gl/dist/mapbox-gl.css";import"@material-ui/icons/Info";import"@material-ui/icons/Block";import"../../../../OffsetWellMap/WellTooltip.module.css.js";import"../../../../OffsetWellMap/OffsetWellMap.module.css.js";import"../../../../../config/mapboxGl/index.js";import"../../../../../config/mapbox/index.js";import"react-dom";import"@material-ui/core/Snackbar";import"../../../../Notifications/Toast.js";import"../../../../Notifications/Notifications.scss.js";import"../../../../TextLink/index.js";import"../../../../Avatar/index.js";import"../../../../Template/TemplatePopover/index.js";import"../../../../Template/TemplateSharingDialog/index.js";import"../../../../MenuItem/index.js";import"../../../../MiddleTruncate/MiddleTruncate.js";import"../../../../PinnableFilters/PinnableFilters.js";import"../../../../HeaderLayout/HeaderLayout.js";import"../../../../PadOffsetsPicker/PadOffsetsPicker.js";import"../../../../PadOffsetsPicker/OffsetAssetChip.js";import"../../../../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../../../PadOffsetsPicker/StagesSelector.js";import"../../../../PadOffsetsPickerV2/PadOffsetsPickerV2.js";import"../../../../Table/TableToolbar/TableToolbar.js";import"../../../../Table/TableContainer/TableContainer.js";import"../../../../Table/TableCell/TableCell.js";import"../../../../Table/TablePagination/TablePagination.js";import"../../../../Table/TablePaginationActions/TablePaginationActions.js";import"../../../../Tooltip/ScrollableTooltip.js";import"../../../../PriceInput/PriceInput.js";import"../../../../LabelsCounter/LabelsCounter.js";import"../../../../Stepper/Stepper.js";import"../../../../Stepper/Step/Step.js";import"../../../../Stepper/StepsWrapper.js";import"../../../../Comment/CommentIcon/index.js";import"../../../../FilesLoader/FilesLoader.js";import"../../../../../componentsV2/FileIcon/icons/ArchiveFileIcon.js";import"../../../../../componentsV2/FileIcon/icons/CSVFileIcon.js";import"../../../../../componentsV2/FileIcon/icons/DocFileIcon.js";import"../../../../../componentsV2/FileIcon/icons/EDMFileIcon.js";import"../../../../../componentsV2/FileIcon/icons/ExcelFileIcon.js";import"../../../../../componentsV2/FileIcon/icons/ImageFileIcon.js";import"../../../../../componentsV2/FileIcon/icons/JsonFileIcon.js";import"../../../../../componentsV2/FileIcon/icons/LasFileIcon.js";import"../../../../../componentsV2/FileIcon/icons/OtherFileIcon.js";import"../../../../../componentsV2/FileIcon/icons/PdfFileIcon.js";import"../../../../../componentsV2/FileIcon/icons/PowerPointFileIcon.js";import"../../../../../componentsV2/FileIcon/icons/TxtFileIcon.js";import"../../../../../componentsV2/FileIcon/icons/UnknownFileIcon.js";import"../../../../../componentsV2/FileIcon/icons/VideoFileIcon.js";import"../../../../../componentsV2/FileIcon/icons/XmlFileIcon.js";import"../../../../SearchInput/index.js";import"../../../../FeedItem/FeedItem.js";import"../../../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../../../../PostInput/PostInput.js";import"../../../../KeyboardDateTimePicker.js";import"../../../../AddComment/Popover.js";import"../../../../AddComment/Popup.js";import"../../../../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../../../../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../../../../StageDesignVActual/ComparisonHeader.js";import"../../../../StageDesignVActual/ComparisonRow.js";import"../../../../EmbeddedApp/DevCenterEmbeddedApp.js";import"../../../../EmbeddedApp/EmbeddedApp.js";import"../../../../Autocomplete/Autocomplete.js";import"../../../../DocumentViewer/DocumentViewer.js";import"../../../../ColorPickerPalette/ColorPickerPalette.js";import"../../../../Search/Search.js";import"../../../../Search/components/Listbox.js";import"../../../../Search/components/Paper.js";import"../../../../Search/components/RecentSearches.js";import"../../../../Search/components/Groups.js";import"../../../../Search/components/SelectAllListItem.js";import"../../../../StatusBadge/index.js";import"../../../../Attachment/index.js";import"../../../../EmojiIconButton.js";import"../../../../FileUploadIconButton.js";import"../../../../FilePreview/index.js";import"../../../../FailedFileUploading.js";import"../../../../UserMention/index.js";import"../../../../CommentsInfo/index.js";import"../../../../CommentInput/index.js";import"../../../../Comment/index.js";import"../../../../CommentLoader.js";import"../../../../AssetNameLabel/AssetStatusBadge.js";import"../../../../AssetEditorV2/components/PrimaryAssetSelect.js";import"../../../../AssetEditorV2/components/SecondaryAssetSelect.js";import"../../../../AssetEditorV2/components/SelectItem.js";import"../../../../AssetEditorV2/components/MultipleAssetsToggle.js";import"../../../../AssetEditorV2/components/PrimaryAssetSelectV2.js";import"../../../../EChartsWrapper/EChartsWrapper.js";import"../../../../AssetsMultipleSelector/AssetsMultipleSelector.js";import"@material-ui/icons/Close";import"@material-ui/icons/GetApp";import"../../../../GoogleDocsViewer/index.js";import"../../../../NewDocumentViewer/effects/useFileContent.js";import"../../../../NewDocumentViewer/styles.js";import"../../../../FilesLoaderV2/styles.js";import"../../../../FilesDropzone/styles.js";import"../../../../FilesProcessor/styles.js";import"../../../../Hint/styles.js";import"@babel/runtime/helpers/taggedTemplateLiteral";import"fparser";import"../../../../Formula/useFormulaStyles.js";import"../../../../Formula/RootXIcon.js";import"../../../../Formula/FormulaTextEditor.js";import"../../../../Formula/CloseSuggestion.js";import"../../../../Formula/SuggestionsMenu.js";import"../../../../CommentCard/CommentCard.js";import"@material-ui/icons/AlternateEmail";import"../../../../AttachFileButton/AttachFileButton.scss.js";import"../../../../CommentInputNext/CommentInputNext.js";import"../../../../WellhubFilePicker/components/WellhubFileCard/WellhubFileCard.scss.js";import"../../../../WellhubFilePicker/components/WellhubFilePickerView/WellhubFilePickerView.scss.js";import"react-s3-uploader/s3upload";import"../../../../CommentComposer/CommentMetaLine.scss.js";import"../../../../CommentComposer/ChatChannelSelector.scss.js";import"../../../../CommentComposer/ShareToChatRow.scss.js";import"../../../../CommentComposer/CommentComposer.scss.js";import"../../../../AttachmentPreview/AttachmentPreview.js";import"../../../../AttachmentPreview/AttachmentImage.js";import"../../../../AttachmentPreview/AttachmentPreview.scss.js";import"../../../../CommentPin/CommentPin.js";import"../../../../FeedCard/FeedCard.js";import"../../../../FeedItemCard/FeedItemCard.js";import"../../../../NewCommentCursor/NewCommentCursor.js";import"../../../../LinkedText/LinkedText.js";import"../../../../FeedItem/feedItemTypes/AlertFeedItem.js";import"../../../../FeedItem/feedItemTypes/PostFeedItem.js";import"../../../../FeedItem/feedItemTypes/GeosteeringFeedItem.js";import"../../../../FeedItem/feedItemTypes/DrillingOperationalNoteFeedItem.js";import"../../../../FeedItem/feedItemTypes/DrillingOperationSummaryFeedItem.js";import"../../../../FeedItem/feedItemTypes/DrillingDailyCostFeedItem.js";import"../../../../FeedItem/feedItemTypes/DocumentFeedItem.js";import"../../../../FeedItem/feedItemTypes/DrillerMemoFeedItem.js";import"../../../../FeedItem/feedItemTypes/NptFeedItem.js";import"../../../../FeedItem/feedItemTypes/SurveyStationFeedItem/index.js";import"../../../../FeedItem/feedItemTypes/LessonsLearnedFeedItem/index.js";import"../../../../FeedItem/feedItemTypes/TracesMemoFeedItem.js";import"../../../../FeedItem/feedItemTypes/DepthCommentFeedItem.js";import"../../../../FeedItem/feedItemTypes/CompletionOperationalNoteFeedItem.js";import"../../../../FeedItem/feedItemTypes/CompletionOperationSummaryFeedItem.js";import"../../../../FeedItem/feedItemTypes/CompletionDailyCostFeedItem.js";import"../../../../FeedItem/feedItemTypes/CompletionDocumentFeedItem.js";import"../../../../FeedItem/feedItemTypes/CompletionNptFeedItem.js";import"../../../../FeedItem/feedItemTypes/StageOverviewFeedItem/index.js";import"../../../../FeedItem/feedItemTypes/AppAnnotationFeedItem/index.js";import"../../../../FeedItem/feedItemTypes/WellPlanFeedItem/index.js";import"../../../../FeedItem/feedItemTypes/FluidReportFeedItem.js";import"../../../../FeedItem/feedItemTypes/BhaFeedItem/BhaFeedItem.js";import"../../../../FeedItem/feedItemTypes/DvDCommentFeedItem.js";import"../../../../FeedItem/feedItemTypes/PCCommentFeedItem.js";import"../../../../FeedItem/feedItemTypes/HookloadCommentFeedItem.js";import"../../../../FeedItem/feedItemTypes/NptLessonsCommentFeedItem.js";import"../../../../FeedItem/feedItemTypes/GenericDataCommentFeedItem.js";var a=o({root:{height:"36px"}})(t),l=o({root:{margin:"0 16px 0 auto"}})(a),d=o({root:{color:"#bdbdbd"}})(c),j=s((function(e){return{paper:{minWidth:function(e){return e.isMobile?0:"416px"},minHeight:function(e){return e.isMobile&&"240px !important"},maxWidth:function(e){return e.isMobile&&"calc(100% - 24px)"}},content:{width:function(e){return e.isMobile?"auto":"300px"},color:e.palette.primary.text6}}})),u=function(e){var o=e.title,t=e.text,s=e.okText,c=e.handleClose,u=e.handleOk,C=j({isMobile:i});return r(n,{open:!0,onClose:c,title:o,isMobile:!1,actions:p(m,{children:[r(l,{color:"primary",onClick:c,children:"Cancel"}),r(a,{variant:"contained",color:"primary",onClick:u,children:s||"OK"})]}),contentContainerClassName:C.paper,children:r("div",{className:C.content,children:r(d,{children:t})})})};u.propTypes={title:e.string.isRequired,okText:e.string.isRequired,text:e.string.isRequired,handleClose:e.func.isRequired,handleOk:e.func.isRequired};export{u as ConfirmationPopup,j as useStyles};
|
|
2
2
|
//# sourceMappingURL=ConfirmationPopup.js.map
|
package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmationPopup.js","sources":["../../../../../../src/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js"],"sourcesContent":["import PropTypes from 'prop-types';\nimport { Button, withStyles, makeStyles } from '@material-ui/core';\n\nimport { isMobileDetected } from '~/utils/mobileDetect';\nimport { Modal, Typography } from '~/components';\n\nconst StyledButton = withStyles({ root: { height: '36px' } })(Button);\nconst ClearAllButton = withStyles({ root: { margin: '0 16px 0 auto' } })(StyledButton);\nconst StyledText = withStyles({ root: { color: '#bdbdbd' } })(Typography.Regular16);\n\nexport const useStyles = makeStyles(theme => ({\n paper: {\n minWidth: ({ isMobile }) => (isMobile ? 0 : '416px'),\n minHeight: ({ isMobile }) => isMobile && '240px !important',\n maxWidth: ({ isMobile }) => isMobile && 'calc(100% - 24px)',\n },\n content: {\n width: ({ isMobile }) => (isMobile ? 'auto' : '300px'),\n color: theme.palette.primary.text6,\n },\n}));\n\nexport const ConfirmationPopup = ({ title, text, okText, handleClose, handleOk }) => {\n const styles = useStyles({ isMobile: isMobileDetected });\n\n return (\n <Modal\n open\n onClose={handleClose}\n title={title}\n isMobile={false}\n actions={\n <>\n <ClearAllButton color=\"primary\" onClick={handleClose}>\n Cancel\n </ClearAllButton>\n\n <StyledButton variant=\"contained\" color=\"primary\" onClick={handleOk}>\n {okText || 'OK'}\n </StyledButton>\n </>\n }\n contentContainerClassName={styles.paper}\n >\n <div className={styles.content}>\n <StyledText>{text}</StyledText>\n </div>\n </Modal>\n );\n};\n\nConfirmationPopup.propTypes = {\n title: PropTypes.string.isRequired,\n okText: PropTypes.string.isRequired,\n text: PropTypes.string.isRequired,\n handleClose: PropTypes.func.isRequired,\n handleOk: PropTypes.func.isRequired,\n};\n"],"names":["StyledButton","withStyles","root","height","Button","ClearAllButton","margin","StyledText","color","Typography","useStyles","makeStyles","theme","paper","minWidth","_ref","isMobile","minHeight","_ref2","maxWidth","_ref3","content","width","_ref4","palette","primary","text6","ConfirmationPopup","_ref5","title","text","okText","handleClose","handleOk","styles","isMobileDetected","_jsx","Modal","open","onClose","actions","_jsxs","_Fragment","children","onClick","variant","contentContainerClassName","className","propTypes","PropTypes","string","isRequired","func"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConfirmationPopup.js","sources":["../../../../../../src/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js"],"sourcesContent":["import PropTypes from 'prop-types';\nimport { Button, withStyles, makeStyles } from '@material-ui/core';\n\nimport { isMobileDetected } from '~/utils/mobileDetect';\nimport { Modal, Typography } from '~/components';\n\nconst StyledButton = withStyles({ root: { height: '36px' } })(Button);\nconst ClearAllButton = withStyles({ root: { margin: '0 16px 0 auto' } })(StyledButton);\nconst StyledText = withStyles({ root: { color: '#bdbdbd' } })(Typography.Regular16);\n\nexport const useStyles = makeStyles(theme => ({\n paper: {\n minWidth: ({ isMobile }) => (isMobile ? 0 : '416px'),\n minHeight: ({ isMobile }) => isMobile && '240px !important',\n maxWidth: ({ isMobile }) => isMobile && 'calc(100% - 24px)',\n },\n content: {\n width: ({ isMobile }) => (isMobile ? 'auto' : '300px'),\n color: theme.palette.primary.text6,\n },\n}));\n\nexport const ConfirmationPopup = ({ title, text, okText, handleClose, handleOk }) => {\n const styles = useStyles({ isMobile: isMobileDetected });\n\n return (\n <Modal\n open\n onClose={handleClose}\n title={title}\n isMobile={false}\n actions={\n <>\n <ClearAllButton color=\"primary\" onClick={handleClose}>\n Cancel\n </ClearAllButton>\n\n <StyledButton variant=\"contained\" color=\"primary\" onClick={handleOk}>\n {okText || 'OK'}\n </StyledButton>\n </>\n }\n contentContainerClassName={styles.paper}\n >\n <div className={styles.content}>\n <StyledText>{text}</StyledText>\n </div>\n </Modal>\n );\n};\n\nConfirmationPopup.propTypes = {\n title: PropTypes.string.isRequired,\n okText: PropTypes.string.isRequired,\n text: PropTypes.string.isRequired,\n handleClose: PropTypes.func.isRequired,\n handleOk: PropTypes.func.isRequired,\n};\n"],"names":["StyledButton","withStyles","root","height","Button","ClearAllButton","margin","StyledText","color","Typography","useStyles","makeStyles","theme","paper","minWidth","_ref","isMobile","minHeight","_ref2","maxWidth","_ref3","content","width","_ref4","palette","primary","text6","ConfirmationPopup","_ref5","title","text","okText","handleClose","handleOk","styles","isMobileDetected","_jsx","Modal","open","onClose","actions","_jsxs","_Fragment","children","onClick","variant","contentContainerClassName","className","propTypes","PropTypes","string","isRequired","func"],"mappings":"ukgCAMA,IAAMA,EAAeC,EAAW,CAAEC,KAAM,CAAEC,OAAQ,SAA7BF,CAAyCG,GACxDC,EAAiBJ,EAAW,CAAEC,KAAM,CAAEI,OAAQ,kBAA7BL,CAAkDD,GACnEO,EAAaN,EAAW,CAAEC,KAAM,CAAEM,MAAO,YAA5BP,CAA2CQ,GAEjDC,EAAYC,GAAW,SAAAC,GAAK,MAAK,CAC5CC,MAAO,CACLC,SAAU,SAAAC,GAAW,SAARC,SAA2B,EAAI,OAAQ,EACpDC,UAAW,SAAAC,GAAW,SAARF,UAA2B,kBAAkB,EAC3DG,SAAU,SAAAC,GAAW,SAARJ,UAA2B,mBAAmB,GAE7DK,QAAS,CACPC,MAAO,SAAAC,GAAW,SAARP,SAA2B,OAAS,OAAQ,EACtDR,MAAOI,EAAMY,QAAQC,QAAQC,OAEhC,IAEYC,EAAoB,SAAoDC,GAAA,IAAjDC,IAAAA,MAAOC,IAAAA,KAAMC,IAAAA,OAAQC,IAAAA,YAAaC,IAAAA,SAC9DC,EAASxB,EAAU,CAAEM,SAAUmB,IAErC,OACEC,EAACC,EAAK,CACJC,MAAI,EACJC,QAASP,EACTH,MAAOA,EACPb,UAAU,EACVwB,QACEC,EAAAC,EAAA,CAAAC,SAAA,CACEP,EAAC/B,EAAc,CAACG,MAAM,UAAUoC,QAASZ,EAAYW,SAAA,WAIrDP,EAACpC,EAAY,CAAC6C,QAAQ,YAAYrC,MAAM,UAAUoC,QAASX,EAASU,SACjEZ,GAAU,UAIjBe,0BAA2BZ,EAAOrB,MAAM8B,SAExCP,EAAA,MAAA,CAAKW,UAAWb,EAAOb,QAAQsB,SAC7BP,EAAC7B,EAAU,CAAAoC,SAAEb,OAIrB,EAEAH,EAAkBqB,UAAY,CAC5BnB,MAAOoB,EAAUC,OAAOC,WACxBpB,OAAQkB,EAAUC,OAAOC,WACzBrB,KAAMmB,EAAUC,OAAOC,WACvBnB,YAAaiB,EAAUG,KAAKD,WAC5BlB,SAAUgB,EAAUG,KAAKD"}
|
package/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpandCollapseButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.js"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"ExpandCollapseButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.js"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAKnC,wBAAgB,oBAAoB,CAAC,EAAE,UAAkB,EAAE,OAAO,EAAE,oBAAoB,EAAE;;;;CAAA,+BAYzF;yBAZe,oBAAoB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"prop-types";import{Tooltip as a,IconButton as o}from"@material-ui/core";import
|
|
1
|
+
import e from"prop-types";import{Tooltip as a,IconButton as o}from"@material-ui/core";import i from"@material-ui/icons/ExpandMore";import r from"@material-ui/icons/ExpandLess";import{jsx as s}from"react/jsx-runtime";function n(e){var n=e.isExpanded,p=void 0!==n&&n,l=e.classes,t=e.handleExpandCollapse;return s(a,{title:p?"Collapse":"Expand",children:s(o,{className:l.actionButton,onClick:t,children:s(p?r:i,{className:l.actionIcon})})})}n.propTypes={isExpanded:e.bool,classes:e.shape({}).isRequired,handleExpandCollapse:e.func.isRequired};export{n as ExpandCollapseButton};
|
|
2
2
|
//# sourceMappingURL=ExpandCollapseButton.js.map
|
package/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpandCollapseButton.js","sources":["../../../../../../src/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.js"],"sourcesContent":["import PropTypes from 'prop-types';\nimport { Tooltip, IconButton } from '@material-ui/core';\nimport
|
|
1
|
+
{"version":3,"file":"ExpandCollapseButton.js","sources":["../../../../../../src/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.js"],"sourcesContent":["import PropTypes from 'prop-types';\nimport { Tooltip, IconButton } from '@material-ui/core';\nimport ExpandMoreIcon from '@material-ui/icons/ExpandMore';\nimport ExpandLessIcon from '@material-ui/icons/ExpandLess';\n\nexport function ExpandCollapseButton({ isExpanded = false, classes, handleExpandCollapse }) {\n return (\n <Tooltip title={isExpanded ? 'Collapse' : 'Expand'}>\n <IconButton className={classes.actionButton} onClick={handleExpandCollapse}>\n {!isExpanded ? (\n <ExpandMoreIcon className={classes.actionIcon} />\n ) : (\n <ExpandLessIcon className={classes.actionIcon} />\n )}\n </IconButton>\n </Tooltip>\n );\n}\n\nExpandCollapseButton.propTypes = {\n isExpanded: PropTypes.bool,\n classes: PropTypes.shape({}).isRequired,\n handleExpandCollapse: PropTypes.func.isRequired,\n};\n"],"names":["ExpandCollapseButton","_ref","_ref$isExpanded","isExpanded","classes","handleExpandCollapse","_jsx","Tooltip","title","children","IconButton","className","actionButton","onClick","ExpandLessIcon","ExpandMoreIcon","actionIcon","propTypes","PropTypes","bool","shape","isRequired","func"],"mappings":"wNAKO,SAASA,EAA4EC,GAAA,IAAAC,EAAAD,EAArDE,WAAAA,cAAkBD,EAAEE,IAAAA,QAASC,IAAAA,qBAClE,OACEC,EAACC,EAAO,CAACC,MAAOL,EAAa,WAAa,SAASM,SACjDH,EAACI,EAAU,CAACC,UAAWP,EAAQQ,aAAcC,QAASR,EAAqBI,SAIvEH,EAHAH,EAGCW,EAFAC,EAEc,CAACJ,UAAWP,EAAQY,gBAK7C,CAEAhB,EAAqBiB,UAAY,CAC/Bd,WAAYe,EAAUC,KACtBf,QAASc,EAAUE,MAAM,CAAA,GAAIC,WAC7BhB,qBAAsBa,EAAUI,KAAKD"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"prop-types";import r from"classnames";import{Tooltip as o,IconButton as i}from"@material-ui/core";import
|
|
1
|
+
import e from"prop-types";import r from"classnames";import{Tooltip as o,IconButton as i}from"@material-ui/core";import t from"@material-ui/icons/MoreVert";import{jsx as n}from"react/jsx-runtime";function a(e){var a=e.classes,s=e.handleOpenActionMenu;return n(o,{title:"More",children:n(i,{className:r(a.actionButton,a.moreButton),"aria-haspopup":"true",onClick:s,children:n(t,{className:a.actionIcon})})})}a.propTypes={classes:e.shape({}).isRequired,handleOpenActionMenu:e.func.isRequired};export{a as MoreButton};
|
|
2
2
|
//# sourceMappingURL=MoreButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MoreButton.js","sources":["../../../../../../src/components/Drillstring/BHAComponentsTable/components/shared/MoreButton.js"],"sourcesContent":["import PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport { Tooltip, IconButton } from '@material-ui/core';\nimport
|
|
1
|
+
{"version":3,"file":"MoreButton.js","sources":["../../../../../../src/components/Drillstring/BHAComponentsTable/components/shared/MoreButton.js"],"sourcesContent":["import PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport { Tooltip, IconButton } from '@material-ui/core';\nimport MoreVertIcon from '@material-ui/icons/MoreVert';\n\nexport function MoreButton({ classes, handleOpenActionMenu }) {\n return (\n <Tooltip title=\"More\">\n <IconButton\n className={classNames(classes.actionButton, classes.moreButton)}\n aria-haspopup=\"true\"\n onClick={handleOpenActionMenu}\n >\n <MoreVertIcon className={classes.actionIcon} />\n </IconButton>\n </Tooltip>\n );\n}\n\nMoreButton.propTypes = {\n classes: PropTypes.shape({}).isRequired,\n handleOpenActionMenu: PropTypes.func.isRequired,\n};\n"],"names":["MoreButton","_ref","classes","handleOpenActionMenu","_jsx","Tooltip","title","children","IconButton","className","classNames","actionButton","moreButton","onClick","MoreVertIcon","actionIcon","propTypes","PropTypes","shape","isRequired","func"],"mappings":"mMAKO,SAASA,EAA8CC,GAAA,IAAjCC,IAAAA,QAASC,IAAAA,qBACpC,OACEC,EAACC,EAAO,CAACC,MAAM,OAAMC,SACnBH,EAACI,EAAU,CACTC,UAAWC,EAAWR,EAAQS,aAAcT,EAAQU,YACpD,gBAAc,OACdC,QAASV,EAAqBI,SAE9BH,EAACU,EAAY,CAACL,UAAWP,EAAQa,gBAIzC,CAEAf,EAAWgB,UAAY,CACrBd,QAASe,EAAUC,MAAM,CAAA,GAAIC,WAC7BhB,qBAAsBc,EAAUG,KAAKD"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"prop-types";import{Tooltip as r,IconButton as i}from"@material-ui/core";import
|
|
1
|
+
import e from"prop-types";import{Tooltip as r,IconButton as i}from"@material-ui/core";import o from"@material-ui/icons/Check";import{useStyles as a}from"../sharedStyles.js";import{jsx as t}from"react/jsx-runtime";function l(e){var l=e.handleSave,s=e.disabled,m=void 0!==s&&s,n=a();return t(r,{title:m?"":"Save Changes",children:t(i,{className:n.actionButton,onClick:l,disabled:m,children:t(o,{className:n.actionIcon,color:m?"disabled":"primary"})})})}l.propTypes={handleSave:e.func.isRequired,disabled:e.bool};export{l as SaveButton};
|
|
2
2
|
//# sourceMappingURL=SaveButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SaveButton.js","sources":["../../../../../../src/components/Drillstring/BHAComponentsTable/components/shared/SaveButton.js"],"sourcesContent":["import PropTypes from 'prop-types';\nimport { Tooltip, IconButton } from '@material-ui/core';\nimport
|
|
1
|
+
{"version":3,"file":"SaveButton.js","sources":["../../../../../../src/components/Drillstring/BHAComponentsTable/components/shared/SaveButton.js"],"sourcesContent":["import PropTypes from 'prop-types';\nimport { Tooltip, IconButton } from '@material-ui/core';\nimport CheckIcon from '@material-ui/icons/Check';\n\nimport { useStyles } from '../sharedStyles';\n\nexport function SaveButton({ handleSave, disabled = false }) {\n const classes = useStyles();\n\n return (\n <Tooltip title={disabled ? '' : 'Save Changes'}>\n <IconButton className={classes.actionButton} onClick={handleSave} disabled={disabled}>\n <CheckIcon className={classes.actionIcon} color={disabled ? 'disabled' : 'primary'} />\n </IconButton>\n </Tooltip>\n );\n}\n\nSaveButton.propTypes = {\n handleSave: PropTypes.func.isRequired,\n disabled: PropTypes.bool,\n};\n"],"names":["SaveButton","_ref","handleSave","_ref$disabled","disabled","classes","useStyles","_jsx","Tooltip","title","children","IconButton","className","actionButton","onClick","CheckIcon","actionIcon","color","propTypes","PropTypes","func","isRequired","bool"],"mappings":"qNAMO,SAASA,EAA6CC,GAAA,IAAhCC,IAAAA,WAAUC,EAAAF,EAAEG,SAAAA,cAAgBD,EACjDE,EAAUC,IAEhB,OACEC,EAACC,EAAO,CAACC,MAAOL,EAAW,GAAK,eAAeM,SAC7CH,EAACI,EAAU,CAACC,UAAWP,EAAQQ,aAAcC,QAASZ,EAAYE,SAAUA,EAASM,SACnFH,EAACQ,EAAS,CAACH,UAAWP,EAAQW,WAAYC,MAAOb,EAAW,WAAa,eAIjF,CAEAJ,EAAWkB,UAAY,CACrBhB,WAAYiB,EAAUC,KAAKC,WAC3BjB,SAAUe,EAAUG"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{memo as e}from"react";import{shape as n,number as r,func as i}from"prop-types";import{makeStyles as o,TableRow as
|
|
1
|
+
import{memo as e}from"react";import{shape as n,number as r,func as i}from"prop-types";import{makeStyles as o,TableRow as t,TableCell as c}from"@material-ui/core";import l from"@material-ui/icons/InfoOutlined";import a from"../BHAComponentIcon.js";import{jsxs as m,jsx as s}from"react/jsx-runtime";var d=o({tableBodyCell:{padding:0,borderBottom:"none",height:49,fontSize:"13px"},componentIconCell:{padding:0,borderBottom:"none",height:49,display:"flex",alignItems:"center",fontSize:"13px"},infoIcon:{fontSize:16,color:"#ccc",cursor:"pointer"},iconWrapper:{width:"40px",height:"48px",display:"flex",justifyContent:"center",marginRight:"4px"}}),p=function(e){var n=e.component,r=e.order,i=e.onSelect,o=d(),p=o.tableBodyCell,h=o.componentIconCell,f=o.iconWrapper,u=o.infoIcon;return m(t,{children:[s(c,{className:p,children:r}),m(c,{className:h,children:[s("div",{className:f,children:s(a,{component:n})}),s("div",{children:n.family_name||n.family})]}),s(c,{className:p,children:n.name}),s(c,{className:p,children:n.outer_diameter}),s(c,{className:p,children:n.inner_diameter}),s(c,{className:p,children:n.linear_weight}),s(c,{className:p,children:n.length}),s(c,{className:p,children:n.weight}),s(c,{className:p,children:Number.isFinite(n.c_length)?n.c_length.toFixed(2):""}),s(c,{className:p,children:n.grade}),s(c,{className:p,children:s(l,{className:u,onClick:function(){return i(n)}})})]})};p.propTypes={component:n({}).isRequired,order:r.isRequired,onSelect:i.isRequired};var h=e(p);export{h as default};
|
|
2
2
|
//# sourceMappingURL=BHAComponent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BHAComponent.js","sources":["../../../../src/components/Drillstring/BHATable/BHAComponent.js"],"sourcesContent":["import { memo } from 'react';\nimport { shape, number, func } from 'prop-types';\nimport { TableCell, TableRow, makeStyles } from '@material-ui/core';\nimport
|
|
1
|
+
{"version":3,"file":"BHAComponent.js","sources":["../../../../src/components/Drillstring/BHATable/BHAComponent.js"],"sourcesContent":["import { memo } from 'react';\nimport { shape, number, func } from 'prop-types';\nimport { TableCell, TableRow, makeStyles } from '@material-ui/core';\nimport InfoOutlined from '@material-ui/icons/InfoOutlined';\n\nimport BHAComponentIcon from '../BHAComponentIcon';\n\nconst useStyles = makeStyles({\n tableBodyCell: { padding: 0, borderBottom: 'none', height: 49, fontSize: '13px' },\n componentIconCell: {\n padding: 0,\n borderBottom: 'none',\n height: 49,\n display: 'flex',\n alignItems: 'center',\n fontSize: '13px',\n },\n infoIcon: {\n fontSize: 16,\n color: '#ccc',\n cursor: 'pointer',\n },\n iconWrapper: {\n width: '40px',\n height: '48px',\n display: 'flex',\n justifyContent: 'center',\n marginRight: '4px',\n },\n});\n\nconst BHAComponent = ({ component, order, onSelect }) => {\n const { tableBodyCell, componentIconCell, iconWrapper, infoIcon } = useStyles();\n\n return (\n <TableRow>\n <TableCell className={tableBodyCell}>{order}</TableCell>\n <TableCell className={componentIconCell}>\n <div className={iconWrapper}>\n <BHAComponentIcon component={component} />\n </div>\n <div>{component.family_name || component.family}</div>\n </TableCell>\n <TableCell className={tableBodyCell}>{component.name}</TableCell>\n <TableCell className={tableBodyCell}>{component.outer_diameter}</TableCell>\n <TableCell className={tableBodyCell}>{component.inner_diameter}</TableCell>\n <TableCell className={tableBodyCell}>{component.linear_weight}</TableCell>\n <TableCell className={tableBodyCell}>{component.length}</TableCell>\n <TableCell className={tableBodyCell}>{component.weight}</TableCell>\n <TableCell className={tableBodyCell}>\n {Number.isFinite(component.c_length) ? component.c_length.toFixed(2) : ''}\n </TableCell>\n <TableCell className={tableBodyCell}>{component.grade}</TableCell>\n <TableCell className={tableBodyCell}>\n <InfoOutlined className={infoIcon} onClick={() => onSelect(component)} />\n </TableCell>\n </TableRow>\n );\n};\n\nBHAComponent.propTypes = {\n component: shape({}).isRequired,\n order: number.isRequired,\n onSelect: func.isRequired,\n};\n\nexport default memo(BHAComponent);\n"],"names":["useStyles","makeStyles","tableBodyCell","padding","borderBottom","height","fontSize","componentIconCell","display","alignItems","infoIcon","color","cursor","iconWrapper","width","justifyContent","marginRight","BHAComponent","_ref","component","order","onSelect","_useStyles","_jsxs","TableRow","children","_jsx","TableCell","className","BHAComponentIcon","family_name","family","name","outer_diameter","inner_diameter","linear_weight","length","weight","Number","isFinite","c_length","toFixed","grade","InfoOutlined","on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zEf,EAACC,EAAS,CAACC,UAAW1B,EAAcuB,SAAEN,EAAUuB,QAChDhB,EAACC,EAAS,CAACC,UAAW1B,EAAcuB,SAClCC,EAACiB,EAAY,CAACf,UAAWlB,EAAUkC,QAAS,WAAA,OAAMvB,EAASF,EAAU,QAI7E,EAEAF,EAAa4B,UAAY,CACvB1B,UAAW2B,EAAM,CAAE,GAAEC,WACrB3B,MAAO4B,EAAOD,WACd1B,SAAU4B,EAAKF,YAGjB,IAAeG,EAAAA,EAAKjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useActivityInteractions.d.ts","sourceRoot":"","sources":["../../../src/components/FeedCard/useActivityInteractions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useActivityInteractions.d.ts","sourceRoot":"","sources":["../../../src/components/FeedCard/useActivityInteractions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAcrE,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE;YAAE,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,CAAA;KAAE,EAAE,CAAC;IAC9C,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;CAC5B,CAAC;AAGF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,WAAW,EAAE;QAAE,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,YAAY,CAAC,EAAE;QAAE,SAAS,EAAE,OAAO,CAAC;QAAC,YAAY,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAA;KAAE,CAAC;CACnF,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,YAAY,EAAE,aAAa,GAAG,IAAI,CAAC;IACnC,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,WAAW,EAAE,CACX,OAAO,EAAE,MAAM,GAAG,MAAM,EACxB,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,KACxD,OAAO,CAAC,OAAO,CAAC,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,UAAU,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAChC,iFAAiF;IACjF,SAAS,EAAE,CACT,IAAI,EAAE,MAAM,EACZ,WAAW,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,KACzD,OAAO,CAAC,OAAO,CAAC,CAAC;CACvB,CAAC;AAGF,eAAO,MAAM,uBAAuB,wDAKjC,8BAA8B,KAAG,6BAiOnC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import n from"@babel/runtime/helpers/asyncToGenerator";import
|
|
1
|
+
import n from"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/toConsumableArray";import e from"@babel/runtime/helpers/slicedToArray";import i from"@babel/runtime/regenerator";import{useRef as u,useCallback as o,useState as l,useMemo as a,useEffect as c}from"react";import s from"moment-timezone";import{getActivityReplyDraftKey as p,hasReplyDraft as f}from"../CommentComposer/replyDrafts.js";import{buildCommentReply as d}from"../CommentCard/buildCommentReply.js";import{patchFeedItemComment as m,deleteFeedItemComment as v,toggleFeedItemLike as h,postFeedItemComment as g}from"../../clients/jsonApi/index.js";import{showErrorNotification as b,showSuccessNotification as y}from"../../utils/notificationToasts.js";function S(n,r){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);r&&(e=e.filter((function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),t.push.apply(t,e)}return t}function w(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?S(Object(e),!0).forEach((function(t){r(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):S(Object(e)).forEach((function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(e,r))}))}return n}var x=function(S){var x,O,k,j=S.activity,R=S.currentUser,C=S.onChanged,P=S.loadingState,A=u(C);A.current=C;var D=o((function(){var n;return null===(n=A.current)||void 0===n?void 0:n.call(A)}),[]),z=l(!1),L=e(z,2),E=L[0],F=L[1],M=P?P.isLoading:E,_=P?P.setIsLoading:F,T=void 0!==j.id?p(j.id,null==R?void 0:R.id):void 0,I=l((function(){return!!T&&f(T)})),N=e(I,2),U=N[0],G=N[1],q=l(T),B=e(q,2),H=B[0],J=B[1];H!==T&&(J(T),G(!!T&&f(T)));var K=l(null),Q=e(K,2),V=Q[0],W=Q[1],X=l(3),Y=e(X,2),Z=Y[0],$=Y[1],nn=l([]),rn=e(nn,2),tn=rn[0],en=rn[1],un=l({}),on=e(un,2),ln=on[0],an=on[1],cn=u(tn);cn.current=tn;var sn=l([]),pn=e(sn,2),fn=pn[0],dn=pn[1],mn=l(null),vn=e(mn,2),hn=vn[0],gn=vn[1],bn=a((function(){var n;return null!==(n=null==j?void 0:j.comments)&&void 0!==n?n:[]}),[null==j?void 0:j.comments]),yn=a((function(){var n=new Set(bn.map((function(n){return String(n.id)}))),r=[].concat(t(bn.map((function(n){return w(w({},n),ln[String(n.id)])}))),t(tn.filter((function(r){return!n.has(String(r.id))}))));return fn.length?r.filter((function(n){return!fn.some((function(r){return String(r)===String(n.id)}))})):r}),[bn,tn,ln,fn]);c((function(){if(tn.length){var n=new Set(bn.map((function(n){return String(n.id)}))),r=tn.filter((function(r){return!n.has(String(r.id))}));r.length!==tn.length&&en(r)}}),[bn,tn]),c((function(){if(fn.length){var n=new Set(bn.map((function(n){return String(n.id)}))),r=fn.filter((function(r){return n.has(String(r))}));r.length!==fn.length&&dn(r)}}),[bn,fn]);var Sn=(null!==(x=null==j?void 0:j.likes)&&void 0!==x?x:[]).some((function(n){var r;return Number(null===(r=n.user)||void 0===r?void 0:r.id)===Number(null==R?void 0:R.id)})),wn=null!=hn?hn:Sn,xn=null!==(O=null==j?void 0:j.likes_count)&&void 0!==O?O:0,On=null===hn||hn===Sn?xn:Math.max(0,xn+(hn?1:-1));c((function(){null!==hn&&hn===Sn&&gn(null)}),[Sn,hn]);var kn=function(){var r=n(i.mark((function n(){return i.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(null!=(null==j?void 0:j.id)){n.next=2;break}return n.abrupt("return");case 2:return gn(!wn),_(!0),n.prev=5,n.next=8,h(j.id);case 8:D(),n.next=15;break;case 11:n.prev=11,n.t0=n.catch(5),gn(null),b("Failed to update the like");case 15:return n.prev=15,_(!1),n.finish(15);case 18:case"end":return n.stop()}}),n,null,[[5,11,15,18]])})));return function(){return r.apply(this,arguments)}}(),jn=function(){var r=n(i.mark((function n(r){var e,u,o,l,a=arguments;return i.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e=a.length>1&&void 0!==a[1]?a[1]:[],null!=(null==j?void 0:j.id)){n.next=3;break}return n.abrupt("return",!1);case 3:return _(!0),n.prev=4,u=e.map((function(n){return{url:n.url,size:n.size,file_name:n.name}})),o=w({body:r},u.length?{attachments:u,attachment:u[0]}:{}),n.next=9,g(j.id,{comment:o});case 9:return null!=(l=n.sent)&&l.id&&en((function(n){return[].concat(t(n),[l])})),D(),n.abrupt("return",!0);case 15:return n.prev=15,n.t0=n.catch(4),b("Failed to post the reply"),n.abrupt("return",!1);case 19:return n.prev=19,_(!1),n.finish(19);case 22:case"end":return n.stop()}}),n,null,[[4,15,19,22]])})));return function(n){return r.apply(this,arguments)}}(),Rn=o(function(){var t=n(i.mark((function n(t,e,u){var o,l,a;return i.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(null!=(null==j?void 0:j.id)){n.next=2;break}return n.abrupt("return",!1);case 2:return _(!0),n.prev=3,l=u.map((function(n){return{url:n.url,size:n.size,file_name:n.name}})),a={body:e,attachments:l,attachment:null!==(o=l[0])&&void 0!==o?o:null},n.next=8,m(j.id,t,{comment:a});case 8:return an((function(n){var i;return w(w({},n),{},r({},String(t),{body:e,attachments:l,attachment:null!==(i=l[0])&&void 0!==i?i:null}))})),W(null),D(),n.abrupt("return",!0);case 14:return n.prev=14,n.t0=n.catch(3),b("Failed to update the reply"),n.abrupt("return",!1);case 18:return n.prev=18,_(!1),n.finish(18);case 21:case"end":return n.stop()}}),n,null,[[3,14,18,21]])})));return function(n,r,e){return t.apply(this,arguments)}}(),[null==j?void 0:j.id,D,_]),Cn=o(function(){var r=n(i.mark((function n(r){var e;return i.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(null!=(null==j?void 0:j.id)){n.next=2;break}return n.abrupt("return");case 2:return _(!0),e=cn.current.find((function(n){return String(n.id)===String(r)})),en((function(n){return n.filter((function(n){return String(n.id)!==String(r)}))})),dn((function(n){return[].concat(t(n),[r])})),n.prev=6,n.next=9,v(j.id,r);case 9:D(),y("Reply was deleted"),n.next=18;break;case 13:n.prev=13,n.t0=n.catch(6),dn((function(n){return n.filter((function(n){return String(n)!==String(r)}))})),e&&en((function(n){return[].concat(t(n),[e])})),b("Failed to delete the reply");case 18:return n.prev=18,_(!1),n.finish(18);case 21:case"end":return n.stop()}}),n,null,[[6,13,18,21]])})));return function(n){return r.apply(this,arguments)}}(),[null==j?void 0:j.id,D,_]),Pn=a((function(){return yn.length?yn.map((function(n){return{reply:n,sortAt:s(n.created_at).unix()}})).sort((function(n,r){return r.sortAt-n.sortAt})).slice(0,Z).map((function(n){var r=n.reply;return d(r,{currentUserId:null==R?void 0:R.id,onDelete:Cn,onEdit:W})})):[]}),[yn,Z,Cn,null==R?void 0:R.id]);return{isLoading:M,isLiked:wn,likesCount:On,commentsCount:yn.length,isReplyOpen:U,toggleReplyOpen:function(){return G((function(n){return!n}))},replies:Pn,editingReply:null!==(k=yn.find((function(n){return String(n.id)===String(V)})))&&void 0!==k?k:null,cancelReplyEdit:function(){return W(null)},hasMoreReplies:yn.length>Z,moreRepliesCount:Math.max(0,yn.length-Z),showMoreReplies:function(){return $((function(n){return n+10}))},toggleLike:kn,postReply:jn,updateReply:Rn}};export{x as useActivityInteractions};
|
|
2
2
|
//# sourceMappingURL=useActivityInteractions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useActivityInteractions.js","sources":["../../../src/components/FeedCard/useActivityInteractions.ts"],"sourcesContent":["import { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport moment from 'moment-timezone';\n\nimport type { ActivityReply } from '../CommentCard/buildCommentReply';\nimport { buildCommentReply } from '../CommentCard/buildCommentReply';\nimport type { CommentReply } from '../CommentCard/CommentCard.types';\n\nimport {\n deleteFeedItemComment,\n patchFeedItemComment,\n postFeedItemComment,\n toggleFeedItemLike,\n} from '~/clients/jsonApi';\nimport { showErrorNotification, showSuccessNotification } from '~/utils/notificationToasts';\n\nconst INITIAL_VISIBLE_REPLIES = 3;\nconst MORE_REPLIES_INCREMENT = 10;\n\n/* eslint-disable camelcase -- mirrors the platform's snake_case activity payload. */\nexport type InteractionActivity = {\n id?: string | number;\n likes_count?: number;\n likes?: { user?: { id?: string | number } }[];\n comments?: ActivityReply[];\n};\n/* eslint-enable camelcase */\n\nexport type UseActivityInteractionsOptions = {\n activity: InteractionActivity;\n currentUser: { id?: string | number };\n onChanged?: () => void;\n loadingState?: { isLoading: boolean; setIsLoading: (isLoading: boolean) => void };\n};\n\nexport type UseActivityInteractionsResult = {\n isLoading: boolean;\n isLiked: boolean;\n likesCount: number;\n commentsCount: number;\n isReplyOpen: boolean;\n toggleReplyOpen: () => void;\n replies: CommentReply[];\n editingReply: ActivityReply | null;\n cancelReplyEdit: () => void;\n updateReply: (\n replyId: string | number,\n body: string,\n attachments: { url: string; name: string; size?: number }[]\n ) => Promise<boolean>;\n hasMoreReplies: boolean;\n moreRepliesCount: number;\n showMoreReplies: () => void;\n toggleLike: () => Promise<void>;\n /** Resolves `false` when the post failed, so the composer can keep the draft. */\n postReply: (\n body: string,\n attachments?: { url: string; name: string; size?: number }[]\n ) => Promise<boolean>;\n};\n\n// Optimistic like / reply / reply-delete, reconciled once the host's refetch lands.\nexport const useActivityInteractions = ({\n activity,\n currentUser,\n onChanged,\n loadingState,\n}: UseActivityInteractionsOptions): UseActivityInteractionsResult => {\n // Read through a ref so an inline callback doesn't invalidate the memoized replies.\n const onChangedRef = useRef(onChanged);\n onChangedRef.current = onChanged;\n const notifyChanged = useCallback(() => onChangedRef.current?.(), []);\n\n const [localIsLoading, setLocalIsLoading] = useState(false);\n const isLoading = loadingState ? loadingState.isLoading : localIsLoading;\n const setIsLoading = loadingState ? loadingState.setIsLoading : setLocalIsLoading;\n\n const [isReplyOpen, setIsReplyOpen] = useState(false);\n const [editingReplyId, setEditingReplyId] = useState<string | number | null>(null);\n const [visibleReplies, setVisibleReplies] = useState(INITIAL_VISIBLE_REPLIES);\n const [optimisticReplies, setOptimisticReplies] = useState<ActivityReply[]>([]);\n const [updatedReplies, setUpdatedReplies] = useState<Record<string, Partial<ActivityReply>>>({});\n // Read through a ref so deleting a reply doesn't have to re-create its memoized handler.\n const optimisticRepliesRef = useRef(optimisticReplies);\n optimisticRepliesRef.current = optimisticReplies;\n const [deletedReplyIds, setDeletedReplyIds] = useState<(string | number)[]>([]);\n const [optimisticLiked, setOptimisticLiked] = useState<boolean | null>(null);\n\n const serverReplies = useMemo(() => activity?.comments ?? [], [activity?.comments]);\n const replies = useMemo(() => {\n // Ids arrive as string or number, so compare them as strings.\n const serverIds = new Set(serverReplies.map(reply => String(reply.id)));\n const merged = [\n ...serverReplies.map(reply => ({ ...reply, ...updatedReplies[String(reply.id)] })),\n ...optimisticReplies.filter(reply => !serverIds.has(String(reply.id))),\n ];\n\n if (!deletedReplyIds.length) return merged;\n\n return merged.filter(reply => !deletedReplyIds.some(id => String(id) === String(reply.id)));\n }, [serverReplies, optimisticReplies, updatedReplies, deletedReplyIds]);\n\n useEffect(() => {\n if (!optimisticReplies.length) return;\n const serverIds = new Set(serverReplies.map(reply => String(reply.id)));\n const stillPending = optimisticReplies.filter(reply => !serverIds.has(String(reply.id)));\n if (stillPending.length !== optimisticReplies.length) setOptimisticReplies(stillPending);\n }, [serverReplies, optimisticReplies]);\n\n // Drop a deleted id once the refetch has removed it server-side.\n useEffect(() => {\n if (!deletedReplyIds.length) return;\n const serverIds = new Set(serverReplies.map(reply => String(reply.id)));\n const stillPresent = deletedReplyIds.filter(id => serverIds.has(String(id)));\n if (stillPresent.length !== deletedReplyIds.length) setDeletedReplyIds(stillPresent);\n }, [serverReplies, deletedReplyIds]);\n\n const serverLiked = (activity?.likes ?? []).some(\n like => Number(like.user?.id) === Number(currentUser?.id)\n );\n const isLiked = optimisticLiked ?? serverLiked;\n const serverLikesCount = activity?.likes_count ?? 0;\n // Clamp: a stale likes array (count 0 while already liked) would render < 0.\n const likesCount =\n optimisticLiked === null || optimisticLiked === serverLiked\n ? serverLikesCount\n : Math.max(0, serverLikesCount + (optimisticLiked ? 1 : -1));\n\n useEffect(() => {\n if (optimisticLiked !== null && optimisticLiked === serverLiked) setOptimisticLiked(null);\n }, [serverLiked, optimisticLiked]);\n\n const toggleLike = async () => {\n if (activity?.id == null) return;\n const next = !isLiked;\n setOptimisticLiked(next);\n setIsLoading(true);\n try {\n await toggleFeedItemLike(activity.id);\n notifyChanged();\n } catch (err) {\n setOptimisticLiked(null);\n showErrorNotification('Failed to update the like');\n } finally {\n setIsLoading(false);\n }\n };\n\n const postReply = async (\n body: string,\n attachments: { url: string; name: string; size?: number }[] = []\n ) => {\n if (activity?.id == null) return false;\n setIsLoading(true);\n try {\n const files = attachments.map(file => ({\n url: file.url,\n size: file.size,\n file_name: file.name,\n }));\n // `attachment` mirrors the first file for clients still reading the legacy field.\n const comment = {\n body,\n ...(files.length ? { attachments: files, attachment: files[0] } : {}),\n };\n const created = await postFeedItemComment(activity.id, { comment });\n if (created?.id) setOptimisticReplies(prev => [...prev, created]);\n notifyChanged();\n\n return true;\n } catch (err) {\n showErrorNotification('Failed to post the reply');\n\n return false;\n } finally {\n setIsLoading(false);\n }\n };\n\n const updateReply = useCallback(\n async (\n replyId: string | number,\n body: string,\n attachments: { url: string; name: string; size?: number }[]\n ) => {\n if (activity?.id == null) return false;\n setIsLoading(true);\n try {\n const files = attachments.map(file => ({\n url: file.url,\n size: file.size,\n file_name: file.name,\n }));\n const comment = {\n body,\n attachments: files,\n attachment: files[0] ?? null,\n };\n await patchFeedItemComment(activity.id, replyId, { comment });\n setUpdatedReplies(prev => ({\n ...prev,\n [String(replyId)]: {\n body,\n attachments: files,\n attachment: files[0] ?? null,\n },\n }));\n setEditingReplyId(null);\n notifyChanged();\n\n return true;\n } catch (err) {\n showErrorNotification('Failed to update the reply');\n\n return false;\n } finally {\n setIsLoading(false);\n }\n },\n [activity?.id, notifyChanged, setIsLoading]\n );\n\n const deleteReply = useCallback(\n async (replyId: string | number) => {\n if (activity?.id == null) return;\n setIsLoading(true);\n // A reply posted in this session is not in the server list yet, so hiding it by id alone\n // would be undone by the reconciliation above: drop the local copy as well.\n const pendingCopy = optimisticRepliesRef.current.find(\n reply => String(reply.id) === String(replyId)\n );\n setOptimisticReplies(prev => prev.filter(reply => String(reply.id) !== String(replyId)));\n setDeletedReplyIds(prev => [...prev, replyId]); // hide immediately; the refetch drops it a moment later\n try {\n await deleteFeedItemComment(activity.id, replyId);\n notifyChanged();\n showSuccessNotification('Reply was deleted');\n } catch (err) {\n setDeletedReplyIds(prev => prev.filter(id => String(id) !== String(replyId)));\n if (pendingCopy) setOptimisticReplies(prev => [...prev, pendingCopy]);\n showErrorNotification('Failed to delete the reply');\n } finally {\n setIsLoading(false);\n }\n },\n [activity?.id, notifyChanged, setIsLoading]\n );\n\n const mappedReplies = useMemo<CommentReply[]>(() => {\n if (!replies.length) return [];\n\n return replies\n .map(reply => ({ reply, sortAt: moment(reply.created_at).unix() }))\n .sort((a, b) => b.sortAt - a.sortAt)\n .slice(0, visibleReplies)\n .map(({ reply }) =>\n buildCommentReply(reply, {\n currentUserId: currentUser?.id,\n onDelete: deleteReply,\n onEdit: setEditingReplyId,\n })\n );\n }, [replies, visibleReplies, deleteReply, currentUser?.id]);\n\n return {\n isLoading,\n isLiked,\n likesCount,\n commentsCount: replies.length,\n isReplyOpen,\n toggleReplyOpen: () => setIsReplyOpen(open => !open),\n replies: mappedReplies,\n editingReply: replies.find(reply => String(reply.id) === String(editingReplyId)) ?? null,\n cancelReplyEdit: () => setEditingReplyId(null),\n hasMoreReplies: replies.length > visibleReplies,\n moreRepliesCount: Math.max(0, replies.length - visibleReplies),\n showMoreReplies: () => setVisibleReplies(prev => prev + MORE_REPLIES_INCREMENT),\n toggleLike,\n postReply,\n updateReply,\n };\n};\n"],"names":["useActivityInteractions","_ref","_activity$likes","_activity$likes_count","_replies$find","activity","currentUser","onChanged","loadingState","onChangedRef","useRef","current","notifyChanged","useCallback","_onChangedRef$current","call","useState","_useState2","_slicedToArray","_useState","localIsLoading","setLocalIsLoading","isLoading","setIsLoading","_useState4","_useState3","isReplyOpen","setIsReplyOpen","_useState6","_useState5","editingReplyId","setEditingReplyId","_useState8","_useState7","visibleReplies","setVisibleReplies","_useState10","_useState9","optimisticReplies","setOptimisticReplies","_useState11","_useState12","updatedReplies","setUpdatedReplies","optimisticRepliesRef","_useState14","_useState13","deletedReplyIds","setDeletedReplyIds","_useState16","_useState15","optimisticLiked","setOptimisticLiked","serverReplies","useMemo","_activity$comments","comments","replies","serverIds","Set","map","reply","String","id","merged","filter","has","length","some","useEffect","stillPending","stillPresent","serverLiked","likes","like","_like$user","Number","user","isLiked","serverLikesCount","likes_count","likesCount","Math","max","toggleLike","_ref2","_asyncToGenerator","_regeneratorRuntime","mark","_callee","wrap","_context","prev","next","abrupt","toggleFeedItemLike","t0","showErrorNotification","finish","stop","apply","this","arguments","postReply","_ref3","body","attachments","files","comment","created","_args2","_context2","file","url","size","file_name","name","_objectSpread","attachment","postFeedItemComment","sent","_callee2","_x","updateReply","_ref4","replyId","_files$","_context3","patchFeedItemComment","_files$2","_callee3","_x2","_x3","_x4","deleteReply","_ref5","pendingCopy","_context4","find","deleteFeedItemComment","showSuccessNotification","_callee4","_x5","mappedReplies","sortAt","moment","created_at","unix","sort","a","b","slice","_ref6","buildCommentReply","currentUserId","onDelete","onEdit","commentsCount","toggleReplyOpen","open","editingReply","cancelReplyEdit","hasMoreReplies","moreRepliesCount","showMoreReplies"],"mappings":"2vCAeA,IA8CaA,EAA0B,SAK8BC,GAAA,IAAAC,EAAAC,EAAAC,EAJnEC,IAAAA,SACAC,IAAAA,YACAC,IAAAA,UACAC,IAAAA,aAGMC,EAAeC,EAAOH,GAC5BE,EAAaE,QAAUJ,EACvB,IAAMK,EAAgBC,GAAY,WAAA,IAAAC,EAAA,OAAM,QAANA,EAAML,EAAaE,eAAb,IAAAG,OAAA,EAAAA,EAAAC,KAAAN,EAAwB,GAAE,IAEtBO,EAAAA,GAAS,GAAMC,EAAAC,EAAAC,EAAA,GAApDC,EAAcH,EAAA,GAAEI,EAAiBJ,EAAA,GAClC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AA,EAAOmF,OAAQC,EAAOpF,EAAMqF,YAAYC,OAAS,IACjEC,MAAK,SAACC,EAAGC,GAAC,OAAKA,EAAEN,OAASK,EAAEL,UAC5BO,MAAM,EAAGrH,GACT0B,KAAI,SAAA4F,GAAA,IAAG3F,IAAAA,MAAK,OACX4F,EAAkB5F,EAAO,CACvB6F,cAAepJ,aAAAA,EAAAA,EAAayD,GAC5B4F,SAAUrB,GACVsB,OAAQ7H,OAVc,EAa7B,GAAE,CAAC0B,GAASvB,EAAgBoG,GAAahI,aAAAA,EAAAA,EAAayD,KAEvD,MAAO,CACLzC,UAAAA,EACAwD,QAAAA,GACAG,WAAAA,GACA4E,cAAepG,GAAQU,OACvBzC,YAAAA,EACAoI,gBAAiB,WAAA,OAAMnI,GAAe,SAAAoI,GAAI,OAAKA,IAAK,EACpDtG,QAASsF,GACTiB,uBAAcvG,GAAQiF,MAAK,SAAA7E,GAAK,OAAIC,OAAOD,EAAME,MAAQD,OAAOhC,EAAe,mBAAK,KACpFmI,gBAAiB,WAAA,OAAMlI,EAAkB,KAAK,EAC9CmI,eAAgBzG,GAAQU,OAASjC,EACjCiI,iBAAkBjF,KAAKC,IAAI,EAAG1B,GAAQU,OAASjC,GAC/CkI,gBAAiB,WAAA,OAAMjI,GAAkB,SAAAyD,GAAI,OAAIA,EAnQtB,KAmQoD,EAC/ER,WAAAA,GACAmB,UAAAA,GACAoB,YAAAA,GAEJ"}
|
|
1
|
+
{"version":3,"file":"useActivityInteractions.js","sources":["../../../src/components/FeedCard/useActivityInteractions.ts"],"sourcesContent":["import { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport moment from 'moment-timezone';\n\nimport { getActivityReplyDraftKey, hasReplyDraft } from '../CommentComposer/replyDrafts';\nimport type { ActivityReply } from '../CommentCard/buildCommentReply';\nimport { buildCommentReply } from '../CommentCard/buildCommentReply';\nimport type { CommentReply } from '../CommentCard/CommentCard.types';\n\nimport {\n deleteFeedItemComment,\n patchFeedItemComment,\n postFeedItemComment,\n toggleFeedItemLike,\n} from '~/clients/jsonApi';\nimport { showErrorNotification, showSuccessNotification } from '~/utils/notificationToasts';\n\nconst INITIAL_VISIBLE_REPLIES = 3;\nconst MORE_REPLIES_INCREMENT = 10;\n\n/* eslint-disable camelcase -- mirrors the platform's snake_case activity payload. */\nexport type InteractionActivity = {\n id?: string | number;\n likes_count?: number;\n likes?: { user?: { id?: string | number } }[];\n comments?: ActivityReply[];\n};\n/* eslint-enable camelcase */\n\nexport type UseActivityInteractionsOptions = {\n activity: InteractionActivity;\n currentUser: { id?: string | number };\n onChanged?: () => void;\n loadingState?: { isLoading: boolean; setIsLoading: (isLoading: boolean) => void };\n};\n\nexport type UseActivityInteractionsResult = {\n isLoading: boolean;\n isLiked: boolean;\n likesCount: number;\n commentsCount: number;\n isReplyOpen: boolean;\n toggleReplyOpen: () => void;\n replies: CommentReply[];\n editingReply: ActivityReply | null;\n cancelReplyEdit: () => void;\n updateReply: (\n replyId: string | number,\n body: string,\n attachments: { url: string; name: string; size?: number }[]\n ) => Promise<boolean>;\n hasMoreReplies: boolean;\n moreRepliesCount: number;\n showMoreReplies: () => void;\n toggleLike: () => Promise<void>;\n /** Resolves `false` when the post failed, so the composer can keep the draft. */\n postReply: (\n body: string,\n attachments?: { url: string; name: string; size?: number }[]\n ) => Promise<boolean>;\n};\n\n// Optimistic like / reply / reply-delete, reconciled once the host's refetch lands.\nexport const useActivityInteractions = ({\n activity,\n currentUser,\n onChanged,\n loadingState,\n}: UseActivityInteractionsOptions): UseActivityInteractionsResult => {\n // Read through a ref so an inline callback doesn't invalidate the memoized replies.\n const onChangedRef = useRef(onChanged);\n onChangedRef.current = onChanged;\n const notifyChanged = useCallback(() => onChangedRef.current?.(), []);\n\n const [localIsLoading, setLocalIsLoading] = useState(false);\n const isLoading = loadingState ? loadingState.isLoading : localIsLoading;\n const setIsLoading = loadingState ? loadingState.setIsLoading : setLocalIsLoading;\n\n // Reopen a reply left unsent when the card last unmounted, so the restored draft is visible.\n const replyDraftKey =\n activity.id !== undefined ? getActivityReplyDraftKey(activity.id, currentUser?.id) : undefined;\n const [isReplyOpen, setIsReplyOpen] = useState(\n () => !!replyDraftKey && hasReplyDraft(replyDraftKey)\n );\n // Re-derive for a reused card, so the open state tracks the activity it now shows.\n const [replyOpenKey, setReplyOpenKey] = useState(replyDraftKey);\n if (replyOpenKey !== replyDraftKey) {\n setReplyOpenKey(replyDraftKey);\n setIsReplyOpen(!!replyDraftKey && hasReplyDraft(replyDraftKey));\n }\n const [editingReplyId, setEditingReplyId] = useState<string | number | null>(null);\n const [visibleReplies, setVisibleReplies] = useState(INITIAL_VISIBLE_REPLIES);\n const [optimisticReplies, setOptimisticReplies] = useState<ActivityReply[]>([]);\n const [updatedReplies, setUpdatedReplies] = useState<Record<string, Partial<ActivityReply>>>({});\n // Read through a ref so deleting a reply doesn't have to re-create its memoized handler.\n const optimisticRepliesRef = useRef(optimisticReplies);\n optimisticRepliesRef.current = optimisticReplies;\n const [deletedReplyIds, setDeletedReplyIds] = useState<(string | number)[]>([]);\n const [optimisticLiked, setOptimisticLiked] = useState<boolean | null>(null);\n\n const serverReplies = useMemo(() => activity?.comments ?? [], [activity?.comments]);\n const replies = useMemo(() => {\n // Ids arrive as string or number, so compare them as strings.\n const serverIds = new Set(serverReplies.map(reply => String(reply.id)));\n const merged = [\n ...serverReplies.map(reply => ({ ...reply, ...updatedReplies[String(reply.id)] })),\n ...optimisticReplies.filter(reply => !serverIds.has(String(reply.id))),\n ];\n\n if (!deletedReplyIds.length) return merged;\n\n return merged.filter(reply => !deletedReplyIds.some(id => String(id) === String(reply.id)));\n }, [serverReplies, optimisticReplies, updatedReplies, deletedReplyIds]);\n\n useEffect(() => {\n if (!optimisticReplies.length) return;\n const serverIds = new Set(serverReplies.map(reply => String(reply.id)));\n const stillPending = optimisticReplies.filter(reply => !serverIds.has(String(reply.id)));\n if (stillPending.length !== optimisticReplies.length) setOptimisticReplies(stillPending);\n }, [serverReplies, optimisticReplies]);\n\n // Drop a deleted id once the refetch has removed it server-side.\n useEffect(() => {\n if (!deletedReplyIds.length) return;\n const serverIds = new Set(serverReplies.map(reply => String(reply.id)));\n const stillPresent = deletedReplyIds.filter(id => serverIds.has(String(id)));\n if (stillPresent.length !== deletedReplyIds.length) setDeletedReplyIds(stillPresent);\n }, [serverReplies, deletedReplyIds]);\n\n const serverLiked = (activity?.likes ?? []).some(\n like => Number(like.user?.id) === Number(currentUser?.id)\n );\n const isLiked = optimisticLiked ?? serverLiked;\n const serverLikesCount = activity?.likes_count ?? 0;\n // Clamp: a stale likes array (count 0 while already liked) would render < 0.\n const likesCount =\n optimisticLiked === null || optimisticLiked === serverLiked\n ? serverLikesCount\n : Math.max(0, serverLikesCount + (optimisticLiked ? 1 : -1));\n\n useEffect(() => {\n if (optimisticLiked !== null && optimisticLiked === serverLiked) setOptimisticLiked(null);\n }, [serverLiked, optimisticLiked]);\n\n const toggleLike = async () => {\n if (activity?.id == null) return;\n const next = !isLiked;\n setOptimisticLiked(next);\n setIsLoading(true);\n try {\n await toggleFeedItemLike(activity.id);\n notifyChanged();\n } catch (err) {\n setOptimisticLiked(null);\n showErrorNotification('Failed to update the like');\n } finally {\n setIsLoading(false);\n }\n };\n\n const postReply = async (\n body: string,\n attachments: { url: string; name: string; size?: number }[] = []\n ) => {\n if (activity?.id == null) return false;\n setIsLoading(true);\n try {\n const files = attachments.map(file => ({\n url: file.url,\n size: file.size,\n file_name: file.name,\n }));\n // `attachment` mirrors the first file for clients still reading the legacy field.\n const comment = {\n body,\n ...(files.length ? { attachments: files, attachment: files[0] } : {}),\n };\n const created = await postFeedItemComment(activity.id, { comment });\n if (created?.id) setOptimisticReplies(prev => [...prev, created]);\n notifyChanged();\n\n return true;\n } catch (err) {\n showErrorNotification('Failed to post the reply');\n\n return false;\n } finally {\n setIsLoading(false);\n }\n };\n\n const updateReply = useCallback(\n async (\n replyId: string | number,\n body: string,\n attachments: { url: string; name: string; size?: number }[]\n ) => {\n if (activity?.id == null) return false;\n setIsLoading(true);\n try {\n const files = attachments.map(file => ({\n url: file.url,\n size: file.size,\n file_name: file.name,\n }));\n const comment = {\n body,\n attachments: files,\n attachment: files[0] ?? null,\n };\n await patchFeedItemComment(activity.id, replyId, { comment });\n setUpdatedReplies(prev => ({\n ...prev,\n [String(replyId)]: {\n body,\n attachments: files,\n attachment: files[0] ?? null,\n },\n }));\n setEditingReplyId(null);\n notifyChanged();\n\n return true;\n } catch (err) {\n showErrorNotification('Failed to update the reply');\n\n return false;\n } finally {\n setIsLoading(false);\n }\n },\n [activity?.id, notifyChanged, setIsLoading]\n );\n\n const deleteReply = useCallback(\n async (replyId: string | number) => {\n if (activity?.id == null) return;\n setIsLoading(true);\n // A reply posted in this session is not in the server list yet, so hiding it by id alone\n // would be undone by the reconciliation above: drop the local copy as well.\n const pendingCopy = optimisticRepliesRef.current.find(\n reply => String(reply.id) === String(replyId)\n );\n setOptimisticReplies(prev => prev.filter(reply => String(reply.id) !== String(replyId)));\n setDeletedReplyIds(prev => [...prev, replyId]); // hide immediately; the refetch drops it a moment later\n try {\n await deleteFeedItemComment(activity.id, replyId);\n notifyChanged();\n showSuccessNotification('Reply was deleted');\n } catch (err) {\n setDeletedReplyIds(prev => prev.filter(id => String(id) !== String(replyId)));\n if (pendingCopy) setOptimisticReplies(prev => [...prev, pendingCopy]);\n showErrorNotification('Failed to delete the reply');\n } finally {\n setIsLoading(false);\n }\n },\n [activity?.id, notifyChanged, setIsLoading]\n );\n\n const mappedReplies = useMemo<CommentReply[]>(() => {\n if (!replies.length) return [];\n\n return replies\n .map(reply => ({ reply, sortAt: moment(reply.created_at).unix() }))\n .sort((a, b) => b.sortAt - a.sortAt)\n .slice(0, visibleReplies)\n .map(({ reply }) =>\n buildCommentReply(reply, {\n currentUserId: currentUser?.id,\n onDelete: deleteReply,\n onEdit: setEditingReplyId,\n })\n );\n }, [replies, visibleReplies, deleteReply, currentUser?.id]);\n\n return {\n isLoading,\n isLiked,\n likesCount,\n commentsCount: replies.length,\n isReplyOpen,\n toggleReplyOpen: () => setIsReplyOpen(open => !open),\n replies: mappedReplies,\n editingReply: replies.find(reply => String(reply.id) === String(editingReplyId)) ?? null,\n cancelReplyEdit: () => setEditingReplyId(null),\n hasMoreReplies: replies.length > visibleReplies,\n moreRepliesCount: Math.max(0, replies.length - visibleReplies),\n showMoreReplies: () => setVisibleReplies(prev => prev + MORE_REPLIES_INCREMENT),\n toggleLike,\n postReply,\n updateReply,\n };\n};\n"],"names":["useActivityInteractions","_ref","_activity$likes","_activity$likes_count","_replies$find","activity","currentUser","onChanged","loadingState","onChangedRef","useRef","current","notifyChanged","useCallback","_onChangedRef$current","call","useState","_useState2","_slicedToArray","_useState","localIsLoading","setLocalIsLoading","isLoading","setIsLoading","replyDraftKey","undefined","id","getActivityReplyDraftKey","_useState3","hasReplyDraft","_useState4","isReplyOpen","setIsReplyOpen","_useState6","_useState5","replyOpenKey","setReplyOpenKey","_useState8","_useState7","editingReplyId","setEditingReplyId","_useState10","_useState9","visibleReplies","setVisibleReplies","_useState12","_useState11","optimisticReplies","setOptimisticReplies","_useState13","_useState14","updatedReplies","setUpdatedReplies","optimisticRepliesRef","_useState16","_useState15","deletedReplyIds","setDeletedReplyIds","_useState18","_useState17","optimisticLiked","setOptimisticLiked","serverReplies","useMemo","_activity$comments","comments","replies","serverIds","Set","map","reply","String","merged","filter","has","length","some","useEffect","stillPending","stillPresent","serverLiked","likes","like","_like$user","Number","user","isLiked","serverLikesCount","likes_count","likesCount","Math","max","toggleLike","_ref2","_asyncToGenerator","_regeneratorRuntime","mark","_callee","wrap","_context","prev","next","abrupt","toggleFeedItemLike","t0","showErrorNotification","finish","stop","apply","this","arguments","postReply","_ref3","body","attachments","files","comment","created","_args2","_context2","file","url","size","file_name","name","_objectSpread","attachment","postFeedItemComment","sent","_callee2","_x","updateReply","_ref4","replyId","_files$","_context3","patchFeedItemComment","_files$2","_callee3","_x2","_x3","_x4","deleteReply","_ref5","pendingCopy","_context4","find","deleteFeedItemComment","showSuccessNotification","_callee4","_x5","mappedReplies","sortAt","moment","created_at","unix","sort","a","b","slice","_ref6","buildCommentReply","currentUserId","onDelete","onEdit","commentsCount","toggleReplyOpen","open","editingReply","cancelReplyEdit","hasMoreReplies","moreRepliesCount","showMoreReplies"],"mappings":"21CAgBA,IA8CaA,EAA0B,SAK8BC,GAAA,IAAAC,EAAAC,EAAAC,EAJnEC,IAAAA,SACAC,IAAAA,YACAC,IAAAA,UACAC,IAAAA,aAGMC,EAAeC,EAAOH,GAC5BE,EAAaE,QAAUJ,EACvB,IAAMK,EAAgBC,GAAY,WAAA,IAAAC,EAAA,OAAM,QAANA,EAAML,EAAaE,eAAb,IAAAG,OAAA,EAAAA,EAAAC,KAAAN,EAAwB,GAAE,IAEtBO,EAAAA,GAAS,GAAMC,EAAAC,EAAAC,EAAA,GAApDC,EAAcH,EAAA,GAAEI,EAAiBJ,EAAA,GAClCK,EAAYd,EAAeA,EAAac,UAAYF,EACpDG,EAAef,EAAeA,EAAae,aAAeF,EAG1DG,OACYC,IAAhBpB,EAASqB,GAAmBC,EAAyBtB,EAASqB,GAAIpB,aAAW,EAAXA,EAAaoB,SAAMD,EACvFG,EAAsCZ,GACpC,WAAA,QAAQQ,GAAiBK,EAAcL,MACxCM,EAAAZ,EAAAU,EAAA,GAFMG,EAAWD,EAAA,GAAEE,EAAcF,EAAA,GAIMd,EAAAA,EAASQ,GAAcS,EAAAf,EAAAgB,EAAA,GAAxDC,EAAYF,EAAA,GAAEG,EAAeH,EAAA,GAChCE,IAAiBX,IACnBY,EAAgBZ,GAChBQ,IAAiBR,GAAiBK,EAAcL,KAElD,IAA4CR,EAAAA,EAAiC,MAAKqB,EAAAnB,EAAAoB,EAAA,GAA3EC,EAAcF,EAAA,GAAEG,EAAiBH,EAAA,GACIrB,EAAAA,EA1Ed,GA0E+CyB,EAAAvB,EAAAwB,EAAA,GAAtEC,EAAcF,EAAA,GAAEG,EAAiBH,EAAA,GACUzB,GAAAA,EAA0B,IAAG6B,GAA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A,EAAaoB,KAEvD,MAAO,CACLJ,UAAAA,EACAgE,QAAAA,GACAG,WAAAA,GACA4E,cAAenG,GAAQS,OACvB5C,YAAAA,EACAuI,gBAAiB,WAAA,OAAMtI,GAAe,SAAAuI,GAAI,OAAKA,IAAK,EACpDrG,QAASqF,GACTiB,uBAActG,GAAQgF,MAAK,SAAA5E,GAAK,OAAIC,OAAOD,EAAM5C,MAAQ6C,OAAOhC,EAAe,mBAAK,KACpFkI,gBAAiB,WAAA,OAAMjI,EAAkB,KAAK,EAC9CkI,eAAgBxG,GAAQS,OAAShC,EACjCgI,iBAAkBjF,KAAKC,IAAI,EAAGzB,GAAQS,OAAShC,GAC/CiI,gBAAiB,WAAA,OAAMhI,GAAkB,SAAAwD,GAAI,OAAIA,EA9QtB,KA8QoD,EAC/ER,WAAAA,GACAmB,UAAAA,GACAoB,YAAAA,GAEJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFeedActivity.d.ts","sourceRoot":"","sources":["../../../src/components/FeedCard/useFeedActivity.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"useFeedActivity.d.ts","sourceRoot":"","sources":["../../../src/components/FeedCard/useFeedActivity.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAQjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAIrE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAA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