@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompletionsOffsetWellPicker.js","sources":["../../../src/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.tsx"],"sourcesContent":["import { FC, memo, useMemo, useState } from 'react';\nimport classnames from 'classnames';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\n\nimport { Modal } from '../Modal';\nimport { OffsetWellsButton } from '../OffsetWellsButton';\nimport { Button } from '../Button';\n\nimport ModalTitle from './ModalTitle/ModalTitle';\nimport AssetFilters from './AssetFilters/AssetFilters';\nimport PadsTable from './PadsTable/PadsTable';\nimport { usePads } from './hooks/usePads';\nimport Map from './Map/Map';\nimport { CompletionsOffsetWellPickerProps as Props, Filters, PadStatus } from './types';\nimport { useModalHandlers } from './useModalHandlers';\nimport { BASE_FILTERS, DEFAULT_RADIUS_MILES } from './constants';\nimport { usePadsByRadius } from './hooks/usePadsByRadius';\n\nimport styles from './CompletionsOffsetWellPicker.scss';\n\nimport { Global } from '~/icons';\n\nconst CompletionsOffsetWellPickerInner: FC<Props> = memo(\n ({\n selectedPadId,\n selectedOffsetWellIds,\n onOffsetWellsSelect,\n companyId,\n maxRadiusInMiles,\n well,\n wells,\n isGlobalSelector,\n testId,\n buttonLabel,\n }) => {\n // state\n const [isMapVisible, setIsMapVisible] = useState(true);\n const [isFiltersVisible, setIsFiltersVisible] = useState(true);\n\n const [currentFilters, setFilters] = useState<Filters>(() => ({\n ...BASE_FILTERS,\n radiusMiles:\n maxRadiusInMiles === undefined\n ? DEFAULT_RADIUS_MILES\n : Math.min(DEFAULT_RADIUS_MILES, maxRadiusInMiles),\n }));\n\n const [defaultFilters] = useState<Filters>(() => ({\n ...currentFilters,\n padStatus: PadStatus.All,\n }));\n\n // Hiding the filters panel resets only the panel's filters; the radius input\n // lives on the map, which stays visible, so it must keep tracking user edits\n const filters = useMemo(\n () =>\n isFiltersVisible\n ? currentFilters\n : { ...defaultFilters, radiusMiles: currentFilters.radiusMiles },\n [isFiltersVisible, currentFilters, defaultFilters]\n );\n\n // data\n const { pads, isBackgroundDataLoading, isSelectedPadsLoading } = usePads({\n companyId,\n padStatus: filters.padStatus,\n well,\n wells,\n selectedOffsetWellIds,\n });\n\n const padsByRadius = usePadsByRadius({\n pads,\n selectedPadId,\n radiusMiles: filters.radiusMiles,\n });\n\n // handlers\n const {\n isModalOpen,\n handleOpenModal,\n handleCloseModal,\n handleSaveSelectedWellIds,\n handleCancelButtonClick,\n handleResetSelection,\n localSelectedOffsetWellIds,\n setLocalSelectedOffsetWellIds,\n } = useModalHandlers({\n // Unfiltered pads: saving must not drop selected wells outside the current radius\n pads,\n selectedOffsetWellIds,\n onOffsetWellsSelect,\n });\n\n // memo\n const allWellIds = useMemo(() => {\n if (!padsByRadius) return [];\n\n return padsByRadius\n .filter(pad => pad.id.toString() !== selectedPadId?.toString())\n .flatMap(pad => pad.wells.map(well => well.id));\n }, [padsByRadius, selectedPadId]);\n\n const selectedPads = useMemo(() => {\n if (!padsByRadius) return [];\n\n return padsByRadius.filter(pad =>\n pad.wells.some(well => localSelectedOffsetWellIds.includes(well.id))\n );\n }, [padsByRadius, localSelectedOffsetWellIds]);\n\n return (\n <>\n <OffsetWellsButton\n wells={selectedOffsetWellIds.length}\n data-testid={testId}\n icon={isGlobalSelector ? <Global size={20} className={styles.buttonIcon} /> : undefined}\n onClick={handleOpenModal}\n label={buttonLabel}\n />\n <Modal\n open={isModalOpen}\n size=\"fullscreen\"\n onClose={handleCloseModal}\n primaryActionText={`Select Wells (${localSelectedOffsetWellIds.length})`}\n primaryActionHandler={handleSaveSelectedWellIds}\n secondaryActionText=\"Cancel\"\n secondaryActionHandler={handleCancelButtonClick}\n actions={[\n <Button key=\"clear-filters\" type=\"secondaryDestructive\" onClick={handleResetSelection}>\n Reset\n </Button>,\n ]}\n title={\n <ModalTitle\n total={padsByRadius.length ? padsByRadius.length - 1 : 0} // excluding main pad\n selected={selectedPads.length}\n isMapVisible={isMapVisible}\n isFiltersVisible={isFiltersVisible}\n toggleMapVisibility={() => setIsMapVisible(prev => !prev)}\n toggleFiltersVisibility={() => setIsFiltersVisible(prev => !prev)}\n onModalClose={handleCloseModal}\n isBackgroundDataLoading={isBackgroundDataLoading}\n />\n }\n >\n <div className={styles.modalContent}>\n {isMapVisible && (\n <Map\n wells={wells}\n well={well}\n pads={padsByRadius}\n selectedOffsetWellsIds={localSelectedOffsetWellIds}\n onOffsetWellIdsSelect={setLocalSelectedOffsetWellIds}\n radiusMiles={filters.radiusMiles}\n setFilters={setFilters}\n maxRadiusInMiles={maxRadiusInMiles}\n />\n )}\n <div\n className={classnames(\n styles.tableContainer,\n isMapVisible ? styles.tableContainerWithMap : styles.tableContainerWithoutMap\n )}\n >\n {isFiltersVisible && (\n <AssetFilters\n pads={padsByRadius}\n selectedPadId={selectedPadId}\n filters={filters}\n setFilters={setFilters}\n />\n )}\n <PadsTable\n allWellIds={allWellIds}\n pads={padsByRadius}\n selectedPadId={selectedPadId}\n selectedOffsetWellIds={localSelectedOffsetWellIds}\n onOffsetWellIdsSelect={setLocalSelectedOffsetWellIds}\n filters={filters}\n isSelectedPadsLoading={isSelectedPadsLoading}\n />\n </div>\n </div>\n </Modal>\n </>\n );\n }\n);\n\nexport const CompletionsOffsetWellPicker: FC<Props> = props => {\n const queryClient = useMemo(() => new QueryClient(), []);\n\n return (\n <QueryClientProvider client={queryClient}>\n <CompletionsOffsetWellPickerInner {...props} />\n </QueryClientProvider>\n );\n};\n"],"names":["CompletionsOffsetWellPickerInner","memo","_ref","selectedPadId","selectedOffsetWellIds","onOffsetWellsSelect","companyId","maxRadiusInMiles","well","wells","isGlobalSelector","testId","buttonLabel","useState","_useState2","_slicedToArray","_useState","isMapVisible","setIsMapVisible","_useState4","_useState3","isFiltersVisible","setIsFiltersVisible","_useState5","_objectSpread","BASE_FILTERS","radiusMiles","undefined","DEFAULT_RADIUS_MILES","Math","min","_useState6","currentFilters","setFilters","_useState7","padStatus","PadStatus","All","defaultFilters","filters","useMemo","_usePads","usePads","pads","isBackgroundDataLoading","isSelectedPadsLoading","padsByRadius","usePadsByRadius","_useModalHandlers","useModalHandlers","isModalOpen","handleOpenModal","handleCloseModal","handleSaveSelectedWellIds","handleCancelButtonClick","handleResetSelection","localSelectedOffsetWellIds","setLocalSelectedOffsetWellIds","allWellIds","filter","pad","id","toString","flatMap","map","selectedPads","some","includes","_jsxs","_Fragment","children","_jsx","OffsetWellsButton","length","icon","Global","size","className","styles","buttonIcon","onClick","label","Modal","open","onClose","primaryActionText","primaryActionHandler","secondaryActionText","secondaryActionHandler","actions","Button","type","title","ModalTitle","total","selected","toggleMapVisibility","prev","toggleFiltersVisibility","onModalClose","modalContent","Map","selectedOffsetWellsIds","onOffsetWellIdsSelect","classnames","tableContainer","tableContainerWithMap","tableContainerWithoutMap","AssetFilters","PadsTable","CompletionsOffsetWellPicker","props","queryClient","QueryClient","QueryClientProvider","client"],"mappings":"i8KAsBA,IAAMA,EAA8CC,GAClD,SAWMC,GAAA,IAVJC,IAAAA,cACAC,IAAAA,sBACAC,IAAAA,oBACAC,IAAAA,UACAC,IAAAA,iBACAC,IAAAA,KACAC,IAAAA,MACAC,IAAAA,iBACAC,IAAAA,OACAC,IAAAA,YAGwCC,EAAAA,GAAS,GAAKC,EAAAC,EAAAC,EAAA,GAA/CC,EAAYH,EAAA,GAAEI,EAAeJ,EAAA,GACYD,EAAAA,GAAS,GAAKM,EAAAJ,EAAAK,EAAA,GAAvDC,EAAgBF,EAAA,GAAEG,EAAmBH,EAAA,GAE5CI,EAAqCV,GAAkB,WAAA,OAAAW,EAAAA,EAAA,CAAA,EAClDC,GAAY,CAAA,EAAA,CACfC,iBACuBC,IAArBpB,EACIqB,EACAC,KAAKC,IAAIF,EAAsBrB,IAAiB,IACrDwB,EAAAhB,EAAAQ,EAAA,GANIS,EAAcD,EAAA,GAAEE,EAAUF,EAAA,GAQjCG,EAAyBrB,GAAkB,WAAA,OAAAW,EAAAA,EAAA,CAAA,EACtCQ,GAAc,CAAA,EAAA,CACjBG,UAAWC,EAAUC,KAAG,IAFnBC,EAGJvB,EAAAmB,EAAA,GAHkB,GAOfK,EAAUC,GACd,WAAA,OACEnB,EACIW,EAAcR,EAAAA,EAAA,GACTc,GAAc,GAAA,CAAEZ,YAAaM,EAAeN,aAAa,GACpE,CAACL,EAAkBW,EAAgBM,IAIrCG,EAAiEC,EAAQ,CACvEpC,UAAAA,EACA6B,UAAWI,EAAQJ,UACnB3B,KAAAA,EACAC,MAAAA,EACAL,sBAAAA,IALMuC,IAAAA,KAAMC,IAAAA,wBAAyBC,IAAAA,sBAQjCC,EAAeC,EAAgB,CACnCJ,KAAAA,EACAxC,cAAAA,EACAuB,YAAaa,EAAQb,cAIvBsB,GASIC,EAAiB,CAEnBN,KAAAA,EACAvC,sBAAAA,EACAC,oBAAAA,IAZA6C,MAAAA,YACAC,MAAAA,gBACAC,MAAAA,iBACAC,MAAAA,0BACAC,MAAAA,wBACAC,MAAAA,qBACAC,MAAAA,2BACAC,MAAAA,8BASIC,GAAalB,GAAQ,WACzB,OAAKM,EAEEA,EACJa,QAAO,SAAAC,GAAG,OAAIA,EAAIC,GAAGC,cAAe3D,aAAa,EAAbA,EAAe2D,WAAU,IAC7DC,SAAQ,SAAAH,GAAG,OAAIA,EAAInD,MAAMuD,KAAI,SAAAxD,GAAI,OAAIA,EAAKqD,SAJnB,EAK5B,GAAG,CAACf,EAAc3C,IAEZ8D,GAAezB,GAAQ,WAC3B,OAAKM,EAEEA,EAAaa,QAAO,SAAAC,GAAG,OAC5BA,EAAInD,MAAMyD,MAAK,SAAA1D,GAAI,OAAIgD,GAA2BW,SAAS3D,EAAKqD,UAHxC,EAK5B,GAAG,CAACf,EAAcU,KAElB,OACEY,EAAAC,EAAA,CAAAC,SAAA,CACEC,EAACC,EAAiB,CAChB/D,MAAOL,EAAsBqE,OAC7B,cAAa9D,EACb+D,KAAMhE,EAAmB6D,EAACI,EAAM,CAACC,KAAM,GAAIC,UAAWC,EAAOC,kBAAiBpD,EAC9EqD,QAAS7B,GACT8B,MAAOrE,IAET2D,EAACW,EAAK,CACJC,KAAMjC,GACN0B,KAAK,aACLQ,QAAShC,GACTiC,kBAAoC7B,iBAAAA,OAAAA,GAA2BiB,OAAU,KACzEa,qBAAsBjC,GACtBkC,oBAAoB,SACpBC,uBAAwBlC,GACxBmC,QAAS,CACPlB,EAACmB,EAAM,CAAqBC,KAAK,uBAAuBX,QAASzB,GAAqBe,SAAA,SAA1E,kBAIdsB,MACErB,EAACsB,EAAU,CACTC,MAAOhD,EAAa2B,OAAS3B,EAAa2B,OAAS,EAAI,EACvDsB,SAAU9B,GAAaQ,OACvBxD,aAAcA,EACdI,iBAAkBA,EAClB2E,oBAAqB,WAAA,OAAM9E,GAAgB,SAAA+E,GAAI,OAAKA,IAAM,EAC1DC,wBAAyB,WAAA,OAAM5E,GAAoB,SAAA2E,GAAI,OAAKA,IAAM,EAClEE,aAAc/C,GACdR,wBAAyBA,IAE5B0B,SAEDF,EAAA,MAAA,CAAKS,UAAWC,EAAOsB,aAAa9B,SACjCrD,CAAAA,GACCsD,EAAC8B,EAAG,CACF5F,MAAOA,EACPD,KAAMA,EACNmC,KAAMG,EACNwD,uBAAwB9C,GACxB+C,sBAAuB9C,GACvB/B,YAAaa,EAAQb,YACrBO,WAAYA,EACZ1B,iBAAkBA,IAGtB6D,EAAA,MAAA,CACES,UAAW2B,EACT1B,EAAO2B,eACPxF,EAAe6D,EAAO4B,sBAAwB5B,EAAO6B,0BACrDrC,SAEDjD,CAAAA,GACCkD,EAACqC,EAAY,CACXjE,KAAMG,EACN3C,cAAeA,EACfoC,QAASA,EACTN,WAAYA,IAGhBsC,EAACsC,EAAS,CACRnD,WAAYA,GACZf,KAAMG,EACN3C,cAAeA,EACfC,sBAAuBoD,GACvB+C,sBAAuB9C,GACvBlB,QAASA,EACTM,sBAAuBA,cAOrC,IAGWiE,EAAyC,SAAAC,GACpD,IAAMC,EAAcxE,GAAQ,WAAA,OAAM,IAAIyE,CAAa,GAAE,IAErD,OACE1C,EAAC2C,EAAmB,CAACC,OAAQH,EAAY1C,SACvCC,EAACvE,EAAgCwB,EAAA,CAAA,EAAKuF,KAG5C"}
|
|
1
|
+
{"version":3,"file":"CompletionsOffsetWellPicker.js","sources":["../../../src/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.tsx"],"sourcesContent":["import { FC, memo, useMemo, useState } from 'react';\nimport classnames from 'classnames';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\n\nimport { Modal } from '../Modal';\nimport { OffsetWellsButton } from '../OffsetWellsButton';\nimport { Button } from '../Button';\n\nimport ModalTitle from './ModalTitle/ModalTitle';\nimport AssetFilters from './AssetFilters/AssetFilters';\nimport PadsTable from './PadsTable/PadsTable';\nimport { usePads } from './hooks/usePads';\nimport Map from './Map/Map';\nimport { CompletionsOffsetWellPickerProps as Props, Filters, PadStatus } from './types';\nimport { useModalHandlers } from './useModalHandlers';\nimport { BASE_FILTERS, DEFAULT_RADIUS_MILES } from './constants';\nimport { usePadsByRadius } from './hooks/usePadsByRadius';\n\nimport styles from './CompletionsOffsetWellPicker.scss';\n\nimport { Global } from '~/icons';\n\nconst CompletionsOffsetWellPickerInner: FC<Props> = memo(\n ({\n selectedPadId,\n selectedOffsetWellIds,\n onOffsetWellsSelect,\n companyId,\n maxRadiusInMiles,\n well,\n wells,\n isGlobalSelector,\n testId,\n buttonLabel,\n }) => {\n // state\n const [isMapVisible, setIsMapVisible] = useState(true);\n const [isFiltersVisible, setIsFiltersVisible] = useState(true);\n\n const [currentFilters, setFilters] = useState<Filters>(() => ({\n ...BASE_FILTERS,\n radiusMiles:\n maxRadiusInMiles === undefined\n ? DEFAULT_RADIUS_MILES\n : Math.min(DEFAULT_RADIUS_MILES, maxRadiusInMiles),\n }));\n\n const [defaultFilters] = useState<Filters>(() => ({\n ...currentFilters,\n padStatus: PadStatus.All,\n }));\n\n // Hiding the filters panel resets only the panel's filters; the radius input\n // lives on the map, which stays visible, so it must keep tracking user edits\n const filters = useMemo(\n () =>\n isFiltersVisible\n ? currentFilters\n : { ...defaultFilters, radiusMiles: currentFilters.radiusMiles },\n [isFiltersVisible, currentFilters, defaultFilters]\n );\n\n // data\n const { pads, isBackgroundDataLoading, isSelectedPadsLoading } = usePads({\n companyId,\n padStatus: filters.padStatus,\n well,\n wells,\n selectedOffsetWellIds,\n });\n\n const padsByRadius = usePadsByRadius({\n pads,\n selectedPadId,\n radiusMiles: filters.radiusMiles,\n });\n\n // handlers\n const {\n isModalOpen,\n handleOpenModal,\n handleCloseModal,\n handleSaveSelectedWellIds,\n handleCancelButtonClick,\n handleResetSelection,\n localSelectedOffsetWellIds,\n setLocalSelectedOffsetWellIds,\n } = useModalHandlers({\n // Unfiltered pads: saving must not drop selected wells outside the current radius\n pads,\n selectedOffsetWellIds,\n onOffsetWellsSelect,\n });\n\n // memo\n const allWellIds = useMemo(() => {\n if (!padsByRadius) return [];\n\n return padsByRadius\n .filter(pad => pad.id.toString() !== selectedPadId?.toString())\n .flatMap(pad => pad.wells.map(well => well.id));\n }, [padsByRadius, selectedPadId]);\n\n const selectedPads = useMemo(() => {\n if (!padsByRadius) return [];\n\n return padsByRadius.filter(pad =>\n pad.wells.some(well => localSelectedOffsetWellIds.includes(well.id))\n );\n }, [padsByRadius, localSelectedOffsetWellIds]);\n\n return (\n <>\n <OffsetWellsButton\n wells={selectedOffsetWellIds.length}\n testId={testId}\n icon={isGlobalSelector ? <Global size={20} className={styles.buttonIcon} /> : undefined}\n onClick={handleOpenModal}\n label={buttonLabel}\n />\n <Modal\n open={isModalOpen}\n size=\"fullscreen\"\n testId=\"completionsOffsetWellPickerModal\"\n onClose={handleCloseModal}\n primaryActionText={`Select Wells (${localSelectedOffsetWellIds.length})`}\n primaryActionHandler={handleSaveSelectedWellIds}\n primaryActionProps={{ testId: 'selectWellsButton' }}\n secondaryActionText=\"Cancel\"\n secondaryActionHandler={handleCancelButtonClick}\n secondaryActionProps={{ testId: 'cancelButton' }}\n actions={[\n <Button\n key=\"clear-filters\"\n type=\"secondaryDestructive\"\n onClick={handleResetSelection}\n testId=\"resetButton\"\n >\n Reset\n </Button>,\n ]}\n title={\n <ModalTitle\n total={padsByRadius.length ? padsByRadius.length - 1 : 0} // excluding main pad\n selected={selectedPads.length}\n isMapVisible={isMapVisible}\n isFiltersVisible={isFiltersVisible}\n toggleMapVisibility={() => setIsMapVisible(prev => !prev)}\n toggleFiltersVisibility={() => setIsFiltersVisible(prev => !prev)}\n onModalClose={handleCloseModal}\n isBackgroundDataLoading={isBackgroundDataLoading}\n />\n }\n >\n <div className={styles.modalContent}>\n {isMapVisible && (\n <Map\n wells={wells}\n well={well}\n pads={padsByRadius}\n selectedOffsetWellsIds={localSelectedOffsetWellIds}\n onOffsetWellIdsSelect={setLocalSelectedOffsetWellIds}\n radiusMiles={filters.radiusMiles}\n setFilters={setFilters}\n maxRadiusInMiles={maxRadiusInMiles}\n />\n )}\n <div\n className={classnames(\n styles.tableContainer,\n isMapVisible ? styles.tableContainerWithMap : styles.tableContainerWithoutMap\n )}\n >\n {isFiltersVisible && (\n <AssetFilters\n pads={padsByRadius}\n selectedPadId={selectedPadId}\n filters={filters}\n setFilters={setFilters}\n />\n )}\n <PadsTable\n allWellIds={allWellIds}\n pads={padsByRadius}\n selectedPadId={selectedPadId}\n selectedOffsetWellIds={localSelectedOffsetWellIds}\n onOffsetWellIdsSelect={setLocalSelectedOffsetWellIds}\n filters={filters}\n isSelectedPadsLoading={isSelectedPadsLoading}\n />\n </div>\n </div>\n </Modal>\n </>\n );\n }\n);\n\nexport const CompletionsOffsetWellPicker: FC<Props> = props => {\n const queryClient = useMemo(() => new QueryClient(), []);\n\n return (\n <QueryClientProvider client={queryClient}>\n <CompletionsOffsetWellPickerInner {...props} />\n </QueryClientProvider>\n );\n};\n"],"names":["CompletionsOffsetWellPickerInner","memo","_ref","selectedPadId","selectedOffsetWellIds","onOffsetWellsSelect","companyId","maxRadiusInMiles","well","wells","isGlobalSelector","testId","buttonLabel","useState","_useState2","_slicedToArray","_useState","isMapVisible","setIsMapVisible","_useState4","_useState3","isFiltersVisible","setIsFiltersVisible","_useState5","_objectSpread","BASE_FILTERS","radiusMiles","undefined","DEFAULT_RADIUS_MILES","Math","min","_useState6","currentFilters","setFilters","_useState7","padStatus","PadStatus","All","defaultFilters","filters","useMemo","_usePads","usePads","pads","isBackgroundDataLoading","isSelectedPadsLoading","padsByRadius","usePadsByRadius","_useModalHandlers","useModalHandlers","isModalOpen","handleOpenModal","handleCloseModal","handleSaveSelectedWellIds","handleCancelButtonClick","handleResetSelection","localSelectedOffsetWellIds","setLocalSelectedOffsetWellIds","allWellIds","filter","pad","id","toString","flatMap","map","selectedPads","some","includes","_jsxs","_Fragment","children","_jsx","OffsetWellsButton","length","icon","Global","size","className","styles","buttonIcon","onClick","label","Modal","open","onClose","primaryActionText","primaryActionHandler","primaryActionProps","secondaryActionText","secondaryActionHandler","secondaryActionProps","actions","Button","type","title","ModalTitle","total","selected","toggleMapVisibility","prev","toggleFiltersVisibility","onModalClose","modalContent","Map","selectedOffsetWellsIds","onOffsetWellIdsSelect","classnames","tableContainer","tableContainerWithMap","tableContainerWithoutMap","AssetFilters","PadsTable","CompletionsOffsetWellPicker","props","queryClient","QueryClient","QueryClientProvider","client"],"mappings":"i8KAsBA,IAAMA,EAA8CC,GAClD,SAWMC,GAAA,IAVJC,IAAAA,cACAC,IAAAA,sBACAC,IAAAA,oBACAC,IAAAA,UACAC,IAAAA,iBACAC,IAAAA,KACAC,IAAAA,MACAC,IAAAA,iBACAC,IAAAA,OACAC,IAAAA,YAGwCC,EAAAA,GAAS,GAAKC,EAAAC,EAAAC,EAAA,GAA/CC,EAAYH,EAAA,GAAEI,EAAeJ,EAAA,GACYD,EAAAA,GAAS,GAAKM,EAAAJ,EAAAK,EAAA,GAAvDC,EAAgBF,EAAA,GAAEG,EAAmBH,EAAA,GAE5CI,EAAqCV,GAAkB,WAAA,OAAAW,EAAAA,EAAA,CAAA,EAClDC,GAAY,CAAA,EAAA,CACfC,iBACuBC,IAArBpB,EACIqB,EACAC,KAAKC,IAAIF,EAAsBrB,IAAiB,IACrDwB,EAAAhB,EAAAQ,EAAA,GANIS,EAAcD,EAAA,GAAEE,EAAUF,EAAA,GAQjCG,EAAyBrB,GAAkB,WAAA,OAAAW,EAAAA,EAAA,CAAA,EACtCQ,GAAc,CAAA,EAAA,CACjBG,UAAWC,EAAUC,KAAG,IAFnBC,EAGJvB,EAAAmB,EAAA,GAHkB,GAOfK,EAAUC,GACd,WAAA,OACEnB,EACIW,EAAcR,EAAAA,EAAA,GACTc,GAAc,GAAA,CAAEZ,YAAaM,EAAeN,aAAa,GACpE,CAACL,EAAkBW,EAAgBM,IAIrCG,EAAiEC,EAAQ,CACvEpC,UAAAA,EACA6B,UAAWI,EAAQJ,UACnB3B,KAAAA,EACAC,MAAAA,EACAL,sBAAAA,IALMuC,IAAAA,KAAMC,IAAAA,wBAAyBC,IAAAA,sBAQjCC,EAAeC,EAAgB,CACnCJ,KAAAA,EACAxC,cAAAA,EACAuB,YAAaa,EAAQb,cAIvBsB,GASIC,EAAiB,CAEnBN,KAAAA,EACAvC,sBAAAA,EACAC,oBAAAA,IAZA6C,MAAAA,YACAC,MAAAA,gBACAC,MAAAA,iBACAC,MAAAA,0BACAC,MAAAA,wBACAC,MAAAA,qBACAC,MAAAA,2BACAC,MAAAA,8BASIC,GAAalB,GAAQ,WACzB,OAAKM,EAEEA,EACJa,QAAO,SAAAC,GAAG,OAAIA,EAAIC,GAAGC,cAAe3D,aAAa,EAAbA,EAAe2D,WAAU,IAC7DC,SAAQ,SAAAH,GAAG,OAAIA,EAAInD,MAAMuD,KAAI,SAAAxD,GAAI,OAAIA,EAAKqD,SAJnB,EAK5B,GAAG,CAACf,EAAc3C,IAEZ8D,GAAezB,GAAQ,WAC3B,OAAKM,EAEEA,EAAaa,QAAO,SAAAC,GAAG,OAC5BA,EAAInD,MAAMyD,MAAK,SAAA1D,GAAI,OAAIgD,GAA2BW,SAAS3D,EAAKqD,UAHxC,EAK5B,GAAG,CAACf,EAAcU,KAElB,OACEY,EAAAC,EAAA,CAAAC,SAAA,CACEC,EAACC,EAAiB,CAChB/D,MAAOL,EAAsBqE,OAC7B9D,OAAQA,EACR+D,KAAMhE,EAAmB6D,EAACI,EAAM,CAACC,KAAM,GAAIC,UAAWC,EAAOC,kBAAiBpD,EAC9EqD,QAAS7B,GACT8B,MAAOrE,IAET2D,EAACW,EAAK,CACJC,KAAMjC,GACN0B,KAAK,aACLjE,OAAO,mCACPyE,QAAShC,GACTiC,kBAAoC7B,iBAAAA,OAAAA,GAA2BiB,OAAU,KACzEa,qBAAsBjC,GACtBkC,mBAAoB,CAAE5E,OAAQ,qBAC9B6E,oBAAoB,SACpBC,uBAAwBnC,GACxBoC,qBAAsB,CAAE/E,OAAQ,gBAChCgF,QAAS,CACPpB,EAACqB,EAAM,CAELC,KAAK,uBACLb,QAASzB,GACT5C,OAAO,cAAa2D,SAAA,SAHhB,kBAQRwB,MACEvB,EAACwB,EAAU,CACTC,MAAOlD,EAAa2B,OAAS3B,EAAa2B,OAAS,EAAI,EACvDwB,SAAUhC,GAAaQ,OACvBxD,aAAcA,EACdI,iBAAkBA,EAClB6E,oBAAqB,WAAA,OAAMhF,GAAgB,SAAAiF,GAAI,OAAKA,IAAM,EAC1DC,wBAAyB,WAAA,OAAM9E,GAAoB,SAAA6E,GAAI,OAAKA,IAAM,EAClEE,aAAcjD,GACdR,wBAAyBA,IAE5B0B,SAEDF,EAAA,MAAA,CAAKS,UAAWC,EAAOwB,aAAahC,SACjCrD,CAAAA,GACCsD,EAACgC,EAAG,CACF9F,MAAOA,EACPD,KAAMA,EACNmC,KAAMG,EACN0D,uBAAwBhD,GACxBiD,sBAAuBhD,GACvB/B,YAAaa,EAAQb,YACrBO,WAAYA,EACZ1B,iBAAkBA,IAGtB6D,EAAA,MAAA,CACES,UAAW6B,EACT5B,EAAO6B,eACP1F,EAAe6D,EAAO8B,sBAAwB9B,EAAO+B,0BACrDvC,SAEDjD,CAAAA,GACCkD,EAACuC,EAAY,CACXnE,KAAMG,EACN3C,cAAeA,EACfoC,QAASA,EACTN,WAAYA,IAGhBsC,EAACwC,EAAS,CACRrD,WAAYA,GACZf,KAAMG,EACN3C,cAAeA,EACfC,sBAAuBoD,GACvBiD,sBAAuBhD,GACvBlB,QAASA,EACTM,sBAAuBA,cAOrC,IAGWmE,EAAyC,SAAAC,GACpD,IAAMC,EAAc1E,GAAQ,WAAA,OAAM,IAAI2E,CAAa,GAAE,IAErD,OACE5C,EAAC6C,EAAmB,CAACC,OAAQH,EAAY5C,SACvCC,EAACvE,EAAgCwB,EAAA,CAAA,EAAKyF,KAG5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Map.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/Map/Map.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAQ,cAAc,EAAwB,MAAM,OAAO,CAAC;AAIjF,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAIpD,KAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB,sBAAsB,EAAE,MAAM,EAAE,CAAC;IACjC,qBAAqB,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACzD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC9C,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,QAAA,MAAM,GAAG,EAAE,EAAE,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"Map.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/Map/Map.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAQ,cAAc,EAAwB,MAAM,OAAO,CAAC;AAIjF,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAIpD,KAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB,sBAAsB,EAAE,MAAM,EAAE,CAAC;IACjC,qBAAqB,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACzD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC9C,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,QAAA,MAAM,GAAG,EAAE,EAAE,CAAC,KAAK,CA8FlB,CAAC;eAEa,GAAG"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import s from"@babel/runtime/helpers/toConsumableArray";import o from"@babel/runtime/helpers/defineProperty";import{memo as t,useMemo as i,useCallback as e}from"react";import{Text as r}from"../../Text/Text.js";import"../../Grid/Grid.js";import"../../Grid/Cell.js";import"classnames";import"../../Header/Header.scss.js";import{jsxs as n,jsx as c}from"react/jsx-runtime";import"../../Button/Button.js";import"../../ButtonIcon/ButtonIcon.js";import"@babel/runtime/helpers/objectWithoutProperties";import"@material-ui/core";import"../../../components/DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider.js";import"../../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"@babel/runtime/helpers/slicedToArray";import"uuid";import"../../Tooltip/Tooltip.scss.js";import"../../Popover/Popover.js";import"../../PopoverPanel/PopoverPanel.js";import"../../Radio/Radio.js";import"../../RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js";import"../../Checkbox/Checkbox.js";import{TextInput as p}from"../../TextInput/TextInput.js";import"../../TextInputNext/TextInputNext.js";import"../../TextArea/TextArea.js";import"../../Label/Label.js";import"lodash";import"../../TextEndTruncated/TextEndTruncated.scss.js";import"../../TextMiddleTruncated/TextMiddleTruncated.constants.js";import"../../TextMiddleTruncated/TextMiddleTruncated.scss.js";import"../../TextLink/TextLink.js";import"../../Chip/Chip.js";import"../../ChipAlert/ChipAlert.js";import"../../ChipIndicator/ChipIndicator.js";import"../../Avatar/Avatar.js";import"../../AvatarGroup/AvatarGroup.js";import"@material-ui/lab";import"../../ToggleButtons/ToggleButtons.scss.js";import"../../Paper/Paper.js";import"../../ModalWindow/ModalWindow.js";import"../../Modal/Modal.scss.js";import"../../Menu/Menu.js";import"../../utils.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"../../Hint/Hint.scss.js";import"../../Counter/Counter.js";import"../../BadgeBase/BadgeBase.scss.js";import"../../TemplatesControl/TemplatesControl.js";import"zustand";import"../../TemplatesControl/utils.js";import"../../TemplatesControl/icons/folder/index.js";import"../../TemplatesControl/Store/utils.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../TemplatesControl/types.js";import"../../../components/UserMention/utils/index.js";import"../../../utils/convert.js";import"../../../constants/completion.js";import"moment";import"../../../constants/alerts.js";import"../../../utils/casing/validation.js";import"lodash/mean";import"../../../constants/streamSourceType.js";import"lodash/get";import"file-saver";import"query-string";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/appPackages.js";import"../../../constants/notifications.js";import"../../../constants/feed.js";import"../../../constants/bha.js";import"../../../constants/corvaCompanyId.js";import"../../../components/GradientManager/configuration/constants.js";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/mobileDetect.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"../../../permissions/PermissionsContext.js";import"../../../permissions/constants/index.js";import"../../../permissions/withPermissionsHOC.js";import"../../../permissions/ProvidePermissions.js";import"../../BadgeDot/BadgeDot.scss.js";import"../../LoaderLinear/LoaderLinear.scss.js";import"../../LoaderLogo/LoaderLogo.constants.js";import"../../LoaderLogo/LoaderLogo.scss.js";import"../../Switch/Switch.js";import"../../Tabs/Tabs.js";import"../../EmptyState/EmptyState.scss.js";import"../../FileIcon/FileIcon.js";import"../../Tag/Tag.js";import"react-dropzone";import"../../FilesDropzone/FilesDropzone.scss.js";import"../../FilesLoader/FilesLoader.scss.js";import"../../FilesProcessor/FilesProcessor.scss.js";import"../../Skeleton/Skeleton.scss.js";import"../../CopyToClipboard/CopyToClipboard.scss.js";import"../../Stepper/Step/Step.scss.js";import"../../Stepper/Stepper.scss.js";import"../../ButtonLive/ButtonLive.js";import"../../ButtonText/ButtonText.js";import"../../IndicatorLive/IndicatorLive.js";import"../../Accordion/Accordion.scss.js";import"../../Breadcrumbs/Breadcrumbs.scss.js";import"../../BadgeComment/BadgeComment.js";import"../../AppContainer/AppContainer.js";import"../../AppContainer/AppContainer.constants.js";import"../../AppFooter/AppFooter.js";import"../../AppCommonsProvider/AppCommonsContext.js";import"../../AppHeader/AppHeader.constants.js";import"../../AppHeader/AppBadge/AppBadge.scss.js";import"../../../components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react-router-dom";import"../../AppHeader/AppAssets/utils.js";import"../../AppHeader/AppAssets/AppAssets.scss.js";import"../../../components/PadModeSelect/PadModeSelect.js";import"../../AppHeader/PadMode/PadMode.scss.js";import"../../PadModeSelect/PadModeSelect.js";import"../../PadModeSelect/PadModeSelect.constants.js";import"../../AppCommonsProvider/AppCommonsProvider.js";import"../../AppHeader/V3/VersionSelect/VersionSelect.js";import"../../UniversalLink/UniversalLink.scss.js";import"../../AppHeader/V3/AssetChips/AssetChips.scss.js";import"../../AppHeader/V3/DqStatusIcon/DqStatusIcon.js";import"../../AppHeader/V3/DqStatusIcon/DqStatusIcon.constants.js";import"../../AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js";import"../../AppDqPopover/DqAlertTooltip/DqAlertTooltip.scss.js";import"../../AppDqPopover/DqAlert/DqAlert.scss.js";import"../../AppDqPopover/DqAsset/DqAsset.scss.js";import"../../AppDqPopover/AppDqPopover.scss.js";import"../../../components/AppIcon/AppIcon.js";import"../../AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js";import"../../AppHeader/V3/AssetSelector/constants.js";import"../../AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorSelect.scss.js";import"../../AppHeader/V3/AssetSelector/AssetSelectorSelect/loadAssets.js";import"../../AppHeader/V3/AssetSelector/AssetSelector.scss.js";import"querystring";import"../../../clients/subscriptions/subscriptions-client.factory.js";import"../../../components/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"../../../components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../../AppPanel/AppPanelsContext.js";import"../../AppHeader/V3/AppTitle/AppTitle.constants.js";import"../../AppHeader/V3/AppTitle/AppTitle.scss.js";import"../../AppHeader/V3/constants.scss.js";import"../../AppHeader/V3/SettingsButton/SettingsButton.constants.js";import"../../AppHeader/V3/Actions/Actions.constants.js";import"../../AppHeader/V3/Actions/Actions.scss.js";import"../../AppHeader/V3/AppHeaderV3.scss.js";import"../../AppHeader/AppHeader.scss.js";import"../../OffsetWellsButton/OffsetWellsButton.js";import"../../ChartAxisExtreme/ChartAxisExtreme.scss.js";import"highcharts";import"../../ChartAxisExtreme/ChartAxisExtremeDragTracker.js";import"../../Autocomplete/Autocomplete.js";import"../../Select/Select.js";import"../../AppPanel/AppPanel.js";import"../../AppSettingsDivider/AppSettingsDivider.scss.js";import"../../WellArchivedMessage/WellArchivedMessage.js";import"../../DatePicker/DatePicker.js";import"../../DragHandle/DragHandle.js";import"../CompletionsOffsetWellPicker.js";import"../../Slider/constants.js";import"../../Slider/components/SliderThumb.js";import"../../Slider/Slider.scss.js";import"../../SliderAdvanced/SliderAdvanced.js";import"react-color";import"../../ColorPicker/Swatches/Swatches.scss.js";import"../../ColorPicker/OpacityDragtracker/OpacityDragTracker.scss.js";import"../../ColorPicker/ColorPicker.scss.js";import"../../ChartHelper/ChartHelper.scss.js";import"../../Hotkey/Hotkey.js";import"@tanstack/react-query";import"../../InterventionEventSelector/useInterventionUnitEvents.js";import"../../InterventionEventSelector/InterventionEventSelector.scss.js";import m from"../../../components/OffsetWellMap/OffsetWellMap.js";import a from"./Map.scss.js";function l(s,o){var t=Object.keys(s);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(s);o&&(i=i.filter((function(o){return Object.getOwnPropertyDescriptor(s,o).enumerable}))),t.push.apply(t,i)}return t}function j(s){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?l(Object(i),!0).forEach((function(t){o(s,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(i,o))}))}return s}var u=t((function(o){var t=o.well,l=o.wells,u=o.pads,d=o.selectedOffsetWellsIds,A=o.onOffsetWellIdsSelect,I=o.radiusMiles,C=o.setFilters,v=o.maxRadiusInMiles,h=i((function(){return u?u.flatMap((function(s){return s.wells})):[]}),[u]),f=i((function(){return t?j({},h.find((function(s){return s.id.toString()===t.id.toString()}))):l?j({},h.find((function(s){return s.id.toString()===l[0].id.toString()}))):void 0}),[h,t,l]),S=e((function(o){var t=u.find((function(s){return s.wells.some((function(s){return s.id===o}))})),i=t?t.wells.map((function(s){return s.id})):[],e=d.some((function(s){return i.includes(s)}));A(e?d.filter((function(s){return!i.includes(s)})):[].concat(s(d),s(i)))}),[A,u,d]),g=e((function(s){var o=""===s?void 0:Number(s);C((function(s){return j(j({},s),{},{radiusMiles:o})}))}),[C]);return n("div",{className:a.map,children:[n("div",{className:a.radiusContainer,children:[c(r,{color:"T6",children:"Radius (mi):"}),c(p,{className:a.textInputWrapper,value:null!=I?I:"",placeholder:"0",onChange:g,inputType:"number",htmlAttributes:{min:0,max:v}})]}),c(m,{classes:{root:a.offsetWellMapRoot,map:a.offsetWellMapRoot},isClickable:!0,isViewOnly:!1,subjectWell:f,wells:h,offsetWellIds:d,radius:null!=I?I:0,activeWellId:(null==f?void 0:f.id)||0,handleChangeOffsetWell:function(s){return s&&S(s.id)}})]})}));export{u as default};
|
|
1
|
+
import s from"@babel/runtime/helpers/toConsumableArray";import o from"@babel/runtime/helpers/defineProperty";import{memo as t,useMemo as i,useCallback as e}from"react";import{Text as r}from"../../Text/Text.js";import"../../Grid/Grid.js";import"../../Grid/Cell.js";import"classnames";import"../../Header/Header.scss.js";import{jsxs as n,jsx as c}from"react/jsx-runtime";import"../../Button/Button.js";import"../../ButtonIcon/ButtonIcon.js";import"@babel/runtime/helpers/objectWithoutProperties";import"@material-ui/core";import"../../../components/DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider.js";import"../../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"@babel/runtime/helpers/slicedToArray";import"uuid";import"../../Tooltip/Tooltip.scss.js";import"../../Popover/Popover.js";import"../../PopoverPanel/PopoverPanel.js";import"../../Radio/Radio.js";import"../../RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js";import"../../Checkbox/Checkbox.js";import{TextInput as p}from"../../TextInput/TextInput.js";import"../../TextInputNext/TextInputNext.js";import"../../TextArea/TextArea.js";import"../../Label/Label.js";import"lodash";import"../../TextEndTruncated/TextEndTruncated.scss.js";import"../../TextMiddleTruncated/TextMiddleTruncated.constants.js";import"../../TextMiddleTruncated/TextMiddleTruncated.scss.js";import"../../TextLink/TextLink.js";import"../../Chip/Chip.js";import"../../ChipAlert/ChipAlert.js";import"../../ChipIndicator/ChipIndicator.js";import"../../Avatar/Avatar.js";import"../../AvatarGroup/AvatarGroup.js";import"@material-ui/lab";import"../../ToggleButtons/ToggleButtons.scss.js";import"../../Paper/Paper.js";import"../../ModalWindow/ModalWindow.js";import"../../Modal/Modal.scss.js";import"../../Menu/Menu.js";import"../../utils.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"../../Hint/Hint.scss.js";import"../../Counter/Counter.js";import"../../BadgeBase/BadgeBase.scss.js";import"../../TemplatesControl/TemplatesControl.js";import"zustand";import"../../TemplatesControl/utils.js";import"../../TemplatesControl/icons/folder/index.js";import"../../TemplatesControl/Store/utils.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../TemplatesControl/types.js";import"../../../components/UserMention/utils/index.js";import"../../../utils/convert.js";import"../../../constants/completion.js";import"moment";import"../../../constants/alerts.js";import"../../../utils/casing/validation.js";import"lodash/mean";import"../../../constants/streamSourceType.js";import"lodash/get";import"file-saver";import"query-string";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/appPackages.js";import"../../../constants/notifications.js";import"../../../constants/feed.js";import"../../../constants/bha.js";import"../../../constants/corvaCompanyId.js";import"../../../components/GradientManager/configuration/constants.js";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/mobileDetect.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"../../../permissions/PermissionsContext.js";import"../../../permissions/constants/index.js";import"../../../permissions/withPermissionsHOC.js";import"../../../permissions/ProvidePermissions.js";import"../../BadgeDot/BadgeDot.scss.js";import"../../LoaderLinear/LoaderLinear.scss.js";import"../../LoaderLogo/LoaderLogo.constants.js";import"../../LoaderLogo/LoaderLogo.scss.js";import"../../Switch/Switch.js";import"../../Tabs/Tabs.js";import"../../EmptyState/EmptyState.scss.js";import"../../FileIcon/FileIcon.js";import"../../Tag/Tag.js";import"react-dropzone";import"../../FilesDropzone/FilesDropzone.scss.js";import"../../FilesLoader/FilesLoader.scss.js";import"../../FilesProcessor/FilesProcessor.scss.js";import"../../Skeleton/Skeleton.scss.js";import"../../CopyToClipboard/CopyToClipboard.scss.js";import"../../Stepper/Step/Step.scss.js";import"../../Stepper/Stepper.scss.js";import"../../ButtonLive/ButtonLive.js";import"../../ButtonText/ButtonText.js";import"../../IndicatorLive/IndicatorLive.js";import"../../Accordion/Accordion.scss.js";import"../../Breadcrumbs/Breadcrumbs.scss.js";import"../../BadgeComment/BadgeComment.js";import"../../AppContainer/AppContainer.js";import"../../AppContainer/AppContainer.constants.js";import"../../AppFooter/AppFooter.js";import"../../AppCommonsProvider/AppCommonsContext.js";import"../../AppHeader/AppHeader.constants.js";import"../../AppHeader/AppBadge/AppBadge.scss.js";import"../../../components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react-router-dom";import"../../AppHeader/AppAssets/utils.js";import"../../AppHeader/AppAssets/AppAssets.scss.js";import"../../../components/PadModeSelect/PadModeSelect.js";import"../../AppHeader/PadMode/PadMode.scss.js";import"../../PadModeSelect/PadModeSelect.js";import"../../PadModeSelect/PadModeSelect.constants.js";import"../../AppCommonsProvider/AppCommonsProvider.js";import"../../AppHeader/V3/VersionSelect/VersionSelect.js";import"../../UniversalLink/UniversalLink.scss.js";import"../../AppHeader/V3/AssetChips/AssetChips.scss.js";import"../../AppHeader/V3/DqStatusIcon/DqStatusIcon.js";import"../../AppHeader/V3/DqStatusIcon/DqStatusIcon.constants.js";import"../../AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js";import"../../AppDqPopover/DqAlertTooltip/DqAlertTooltip.scss.js";import"../../AppDqPopover/DqAlert/DqAlert.scss.js";import"../../AppDqPopover/DqAsset/DqAsset.scss.js";import"../../AppDqPopover/AppDqPopover.scss.js";import"../../../components/AppIcon/AppIcon.js";import"../../AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js";import"../../AppHeader/V3/AssetSelector/constants.js";import"../../AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorSelect.scss.js";import"../../AppHeader/V3/AssetSelector/AssetSelectorSelect/loadAssets.js";import"../../AppHeader/V3/AssetSelector/AssetSelector.scss.js";import"querystring";import"../../../clients/subscriptions/subscriptions-client.factory.js";import"../../../components/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"../../../components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../../AppPanel/AppPanelsContext.js";import"../../AppHeader/V3/AppTitle/AppTitle.constants.js";import"../../AppHeader/V3/AppTitle/AppTitle.scss.js";import"../../AppHeader/V3/constants.scss.js";import"../../AppHeader/V3/SettingsButton/SettingsButton.constants.js";import"../../AppHeader/V3/Actions/Actions.constants.js";import"../../AppHeader/V3/Actions/Actions.scss.js";import"../../AppHeader/V3/AppHeaderV3.scss.js";import"../../AppHeader/AppHeader.scss.js";import"../../OffsetWellsButton/OffsetWellsButton.js";import"../../ChartAxisExtreme/ChartAxisExtreme.scss.js";import"highcharts";import"../../ChartAxisExtreme/ChartAxisExtremeDragTracker.js";import"../../Autocomplete/Autocomplete.js";import"../../Select/Select.js";import"../../AppPanel/AppPanel.js";import"../../AppSettingsDivider/AppSettingsDivider.scss.js";import"../../WellArchivedMessage/WellArchivedMessage.js";import"../../DatePicker/DatePicker.js";import"../../DragHandle/DragHandle.js";import"../CompletionsOffsetWellPicker.js";import"../../Slider/constants.js";import"../../Slider/components/SliderThumb.js";import"../../Slider/Slider.scss.js";import"../../SliderAdvanced/SliderAdvanced.js";import"react-color";import"../../ColorPicker/Swatches/Swatches.scss.js";import"../../ColorPicker/OpacityDragtracker/OpacityDragTracker.scss.js";import"../../ColorPicker/ColorPicker.scss.js";import"../../ChartHelper/ChartHelper.scss.js";import"../../Hotkey/Hotkey.js";import"@tanstack/react-query";import"../../InterventionEventSelector/useInterventionUnitEvents.js";import"../../InterventionEventSelector/InterventionEventSelector.scss.js";import m from"../../../components/OffsetWellMap/OffsetWellMap.js";import a from"./Map.scss.js";function l(s,o){var t=Object.keys(s);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(s);o&&(i=i.filter((function(o){return Object.getOwnPropertyDescriptor(s,o).enumerable}))),t.push.apply(t,i)}return t}function j(s){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?l(Object(i),!0).forEach((function(t){o(s,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(i,o))}))}return s}var u=t((function(o){var t=o.well,l=o.wells,u=o.pads,d=o.selectedOffsetWellsIds,A=o.onOffsetWellIdsSelect,I=o.radiusMiles,C=o.setFilters,v=o.maxRadiusInMiles,h=i((function(){return u?u.flatMap((function(s){return s.wells})):[]}),[u]),f=i((function(){return t?j({},h.find((function(s){return s.id.toString()===t.id.toString()}))):l?j({},h.find((function(s){return s.id.toString()===l[0].id.toString()}))):void 0}),[h,t,l]),S=e((function(o){var t=u.find((function(s){return s.wells.some((function(s){return s.id===o}))})),i=t?t.wells.map((function(s){return s.id})):[],e=d.some((function(s){return i.includes(s)}));A(e?d.filter((function(s){return!i.includes(s)})):[].concat(s(d),s(i)))}),[A,u,d]),g=e((function(s){var o=""===s?void 0:Number(s);C((function(s){return j(j({},s),{},{radiusMiles:o})}))}),[C]);return n("div",{className:a.map,"data-testid":"offsetWellsMap",children:[n("div",{className:a.radiusContainer,children:[c(r,{color:"T6",children:"Radius (mi):"}),c(p,{className:a.textInputWrapper,value:null!=I?I:"",placeholder:"0",onChange:g,inputType:"number",testId:"radiusInput",htmlAttributes:{min:0,max:v}})]}),c(m,{classes:{root:a.offsetWellMapRoot,map:a.offsetWellMapRoot},isClickable:!0,isViewOnly:!1,subjectWell:f,wells:h,offsetWellIds:d,radius:null!=I?I:0,activeWellId:(null==f?void 0:f.id)||0,handleChangeOffsetWell:function(s){return s&&S(s.id)}})]})}));export{u as default};
|
|
2
2
|
//# sourceMappingURL=Map.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Map.js","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/Map/Map.tsx"],"sourcesContent":["import { Dispatch, FC, memo, SetStateAction, useCallback, useMemo } from 'react';\n\nimport { Text, TextInput } from '../../../componentsV2';\nimport OffsetWellMap from '../../../components/OffsetWellMap';\nimport { Filters, MappedPad, Well } from '../types';\n\nimport styles from './Map.scss';\n\ntype Props = {\n well?: Well;\n wells?: Well[];\n pads: MappedPad[];\n selectedOffsetWellsIds: number[];\n onOffsetWellIdsSelect: (offsetWellIds: number[]) => void;\n radiusMiles?: number;\n setFilters: Dispatch<SetStateAction<Filters>>;\n maxRadiusInMiles?: number;\n};\n\nconst Map: FC<Props> = memo(\n ({\n well,\n wells,\n pads,\n selectedOffsetWellsIds,\n onOffsetWellIdsSelect,\n radiusMiles,\n setFilters,\n maxRadiusInMiles,\n }) => {\n const allWells = useMemo(() => {\n if (pads) {\n return pads.flatMap(pad => pad.wells);\n }\n return [];\n }, [pads]);\n\n const subjectWell = useMemo(() => {\n if (well) {\n return {\n ...allWells.find(w => w.id.toString() === well.id.toString()),\n };\n }\n\n if (wells) {\n return {\n ...allWells.find(w => w.id.toString() === wells[0].id.toString()),\n };\n }\n\n return undefined;\n }, [allWells, well, wells]);\n\n const handleChangeOffsetWell = useCallback(\n (wellId: number) => {\n const pad = pads.find(p => p.wells.some(w => w.id === wellId));\n\n const wellIds = pad ? pad.wells.map(w => w.id) : [];\n\n const isSelected = selectedOffsetWellsIds.some(wellId => wellIds.includes(wellId));\n\n if (isSelected) {\n onOffsetWellIdsSelect(selectedOffsetWellsIds.filter(id => !wellIds.includes(id)));\n } else {\n onOffsetWellIdsSelect([...selectedOffsetWellsIds, ...wellIds]);\n }\n },\n [onOffsetWellIdsSelect, pads, selectedOffsetWellsIds]\n );\n\n const handleChangeRadius = useCallback(\n (value: string) => {\n const numeric = value === '' ? undefined : Number(value);\n setFilters(prev => ({ ...prev, radiusMiles: numeric }));\n },\n [setFilters]\n );\n\n return (\n <div className={styles.map}>\n <div className={styles.radiusContainer}>\n <Text color=\"T6\">Radius (mi):</Text>\n <TextInput\n className={styles.textInputWrapper}\n // Use empty string when undefined so the component stays controlled\n value={radiusMiles ?? ''}\n placeholder=\"0\"\n onChange={handleChangeRadius}\n inputType=\"number\"\n htmlAttributes={{\n min: 0,\n max: maxRadiusInMiles,\n }}\n />\n </div>\n <OffsetWellMap\n classes={{\n root: styles.offsetWellMapRoot,\n map: styles.offsetWellMapRoot,\n }}\n isClickable\n isViewOnly={false}\n subjectWell={subjectWell}\n wells={allWells}\n offsetWellIds={selectedOffsetWellsIds}\n radius={radiusMiles ?? 0}\n activeWellId={subjectWell?.id || 0}\n handleChangeOffsetWell={params => params && handleChangeOffsetWell(params.id)}\n />\n </div>\n );\n }\n);\n\nexport default Map;\n"],"names":["Map","memo","_ref","well","wells","pads","selectedOffsetWellsIds","onOffsetWellIdsSelect","radiusMiles","setFilters","maxRadiusInMiles","allWells","useMemo","flatMap","pad","subjectWell","_objectSpread","find","w","id","toString","handleChangeOffsetWell","useCallback","wellId","p","some","wellIds","map","isSelected","includes","filter","handleChangeRadius","value","numeric","undefined","Number","prev","_jsxs","className","styles","children","radiusContainer","_jsx","Text","color","TextInput","textInputWrapper","placeholder","onChange","inputType","htmlAttributes","min","max","OffsetWellMap","classes","root","offsetWellMapRoot","isClickable","isViewOnly","offsetWellIds","radius","activeWellId","params"],"mappings":"0sbAmBA,IAAMA,EAAiBC,GACrB,SASMC,GAAA,IARJC,IAAAA,KACAC,IAAAA,MACAC,IAAAA,KACAC,IAAAA,uBACAC,IAAAA,sBACAC,IAAAA,YACAC,IAAAA,WACAC,IAAAA,iBAEMC,EAAWC,GAAQ,WACvB,OAAIP,EACKA,EAAKQ,SAAQ,SAAAC,GAAG,OAAIA,EAAIV,SAE1B,EACT,GAAG,CAACC,IAEEU,EAAcH,GAAQ,WAC1B,OAAIT,EACFa,EAAA,CAAA,EACKL,EAASM,MAAK,SAAAC,GAAC,OAAIA,EAAEC,GAAGC,aAAejB,EAAKgB,GAAGC,UAAW,KAI7DhB,EACFY,EAAA,CAAA,EACKL,EAASM,MAAK,SAAAC,GAAC,OAAIA,EAAEC,GAAGC,aAAehB,EAAM,GAAGe,GAAGC,UAAW,UAFrE,CAOD,GAAE,CAACT,EAAUR,EAAMC,IAEdiB,EAAyBC,GAC7B,SAACC,GACC,IAAMT,EAAMT,EAAKY,MAAK,SAAAO,GAAC,OAAIA,EAAEpB,MAAMqB,MAAK,SAAAP,GAAC,OAAIA,EAAEC,KAAOI,QAEhDG,EAAUZ,EAAMA,EAAIV,MAAMuB,KAAI,SAAAT,GAAC,OAAIA,EAAEC,EAAE,IAAI,GAE3CS,EAAatB,EAAuBmB,MAAK,SAAAF,GAAM,OAAIG,EAAQG,SAASN,MAGxEhB,EADEqB,EACoBtB,EAAuBwB,QAAO,SAAAX,GAAE,OAAKO,EAAQG,SAASV,EAAG,IAErDb,GAAAA,OAAAA,EAAAA,GAA2BoB,EAAAA,IAExD,GACD,CAACnB,EAAuBF,EAAMC,IAG1ByB,EAAqBT,GACzB,SAACU,GACC,IAAMC,EAAoB,KAAVD,OAAeE,EAAYC,OAAOH,GAClDvB,GAAW,SAAA2B,GAAI,OAAApB,EAAAA,EAAA,CAAA,EAAUoB,GAAI,CAAA,EAAA,CAAE5B,YAAayB,GAAO,GACrD,GACA,CAACxB,IAGH,OACE4B,EAAA,MAAA,CAAKC,UAAWC,EAAOZ,
|
|
1
|
+
{"version":3,"file":"Map.js","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/Map/Map.tsx"],"sourcesContent":["import { Dispatch, FC, memo, SetStateAction, useCallback, useMemo } from 'react';\n\nimport { Text, TextInput } from '../../../componentsV2';\nimport OffsetWellMap from '../../../components/OffsetWellMap';\nimport { Filters, MappedPad, Well } from '../types';\n\nimport styles from './Map.scss';\n\ntype Props = {\n well?: Well;\n wells?: Well[];\n pads: MappedPad[];\n selectedOffsetWellsIds: number[];\n onOffsetWellIdsSelect: (offsetWellIds: number[]) => void;\n radiusMiles?: number;\n setFilters: Dispatch<SetStateAction<Filters>>;\n maxRadiusInMiles?: number;\n};\n\nconst Map: FC<Props> = memo(\n ({\n well,\n wells,\n pads,\n selectedOffsetWellsIds,\n onOffsetWellIdsSelect,\n radiusMiles,\n setFilters,\n maxRadiusInMiles,\n }) => {\n const allWells = useMemo(() => {\n if (pads) {\n return pads.flatMap(pad => pad.wells);\n }\n return [];\n }, [pads]);\n\n const subjectWell = useMemo(() => {\n if (well) {\n return {\n ...allWells.find(w => w.id.toString() === well.id.toString()),\n };\n }\n\n if (wells) {\n return {\n ...allWells.find(w => w.id.toString() === wells[0].id.toString()),\n };\n }\n\n return undefined;\n }, [allWells, well, wells]);\n\n const handleChangeOffsetWell = useCallback(\n (wellId: number) => {\n const pad = pads.find(p => p.wells.some(w => w.id === wellId));\n\n const wellIds = pad ? pad.wells.map(w => w.id) : [];\n\n const isSelected = selectedOffsetWellsIds.some(wellId => wellIds.includes(wellId));\n\n if (isSelected) {\n onOffsetWellIdsSelect(selectedOffsetWellsIds.filter(id => !wellIds.includes(id)));\n } else {\n onOffsetWellIdsSelect([...selectedOffsetWellsIds, ...wellIds]);\n }\n },\n [onOffsetWellIdsSelect, pads, selectedOffsetWellsIds]\n );\n\n const handleChangeRadius = useCallback(\n (value: string) => {\n const numeric = value === '' ? undefined : Number(value);\n setFilters(prev => ({ ...prev, radiusMiles: numeric }));\n },\n [setFilters]\n );\n\n return (\n <div className={styles.map} data-testid=\"offsetWellsMap\">\n <div className={styles.radiusContainer}>\n <Text color=\"T6\">Radius (mi):</Text>\n <TextInput\n className={styles.textInputWrapper}\n // Use empty string when undefined so the component stays controlled\n value={radiusMiles ?? ''}\n placeholder=\"0\"\n onChange={handleChangeRadius}\n inputType=\"number\"\n testId=\"radiusInput\"\n htmlAttributes={{\n min: 0,\n max: maxRadiusInMiles,\n }}\n />\n </div>\n <OffsetWellMap\n classes={{\n root: styles.offsetWellMapRoot,\n map: styles.offsetWellMapRoot,\n }}\n isClickable\n isViewOnly={false}\n subjectWell={subjectWell}\n wells={allWells}\n offsetWellIds={selectedOffsetWellsIds}\n radius={radiusMiles ?? 0}\n activeWellId={subjectWell?.id || 0}\n handleChangeOffsetWell={params => params && handleChangeOffsetWell(params.id)}\n />\n </div>\n );\n }\n);\n\nexport default Map;\n"],"names":["Map","memo","_ref","well","wells","pads","selectedOffsetWellsIds","onOffsetWellIdsSelect","radiusMiles","setFilters","maxRadiusInMiles","allWells","useMemo","flatMap","pad","subjectWell","_objectSpread","find","w","id","toString","handleChangeOffsetWell","useCallback","wellId","p","some","wellIds","map","isSelected","includes","filter","handleChangeRadius","value","numeric","undefined","Number","prev","_jsxs","className","styles","children","radiusContainer","_jsx","Text","color","TextInput","textInputWrapper","placeholder","onChange","inputType","testId","htmlAttributes","min","max","OffsetWellMap","classes","root","offsetWellMapRoot","isClickable","isViewOnly","offsetWellIds","radius","activeWellId","params"],"mappings":"0sbAmBA,IAAMA,EAAiBC,GACrB,SASMC,GAAA,IARJC,IAAAA,KACAC,IAAAA,MACAC,IAAAA,KACAC,IAAAA,uBACAC,IAAAA,sBACAC,IAAAA,YACAC,IAAAA,WACAC,IAAAA,iBAEMC,EAAWC,GAAQ,WACvB,OAAIP,EACKA,EAAKQ,SAAQ,SAAAC,GAAG,OAAIA,EAAIV,SAE1B,EACT,GAAG,CAACC,IAEEU,EAAcH,GAAQ,WAC1B,OAAIT,EACFa,EAAA,CAAA,EACKL,EAASM,MAAK,SAAAC,GAAC,OAAIA,EAAEC,GAAGC,aAAejB,EAAKgB,GAAGC,UAAW,KAI7DhB,EACFY,EAAA,CAAA,EACKL,EAASM,MAAK,SAAAC,GAAC,OAAIA,EAAEC,GAAGC,aAAehB,EAAM,GAAGe,GAAGC,UAAW,UAFrE,CAOD,GAAE,CAACT,EAAUR,EAAMC,IAEdiB,EAAyBC,GAC7B,SAACC,GACC,IAAMT,EAAMT,EAAKY,MAAK,SAAAO,GAAC,OAAIA,EAAEpB,MAAMqB,MAAK,SAAAP,GAAC,OAAIA,EAAEC,KAAOI,QAEhDG,EAAUZ,EAAMA,EAAIV,MAAMuB,KAAI,SAAAT,GAAC,OAAIA,EAAEC,EAAE,IAAI,GAE3CS,EAAatB,EAAuBmB,MAAK,SAAAF,GAAM,OAAIG,EAAQG,SAASN,MAGxEhB,EADEqB,EACoBtB,EAAuBwB,QAAO,SAAAX,GAAE,OAAKO,EAAQG,SAASV,EAAG,IAErDb,GAAAA,OAAAA,EAAAA,GAA2BoB,EAAAA,IAExD,GACD,CAACnB,EAAuBF,EAAMC,IAG1ByB,EAAqBT,GACzB,SAACU,GACC,IAAMC,EAAoB,KAAVD,OAAeE,EAAYC,OAAOH,GAClDvB,GAAW,SAAA2B,GAAI,OAAApB,EAAAA,EAAA,CAAA,EAAUoB,GAAI,CAAA,EAAA,CAAE5B,YAAayB,GAAO,GACrD,GACA,CAACxB,IAGH,OACE4B,EAAA,MAAA,CAAKC,UAAWC,EAAOZ,IAAK,cAAY,iBAAgBa,SACtD,CAAAH,EAAA,MAAA,CAAKC,UAAWC,EAAOE,gBAAgBD,SAAA,CACrCE,EAACC,EAAI,CAACC,MAAM,KAAIJ,SAAA,iBAChBE,EAACG,EAAS,CACRP,UAAWC,EAAOO,iBAElBd,MAAOxB,QAAAA,EAAe,GACtBuC,YAAY,IACZC,SAAUjB,EACVkB,UAAU,SACVC,OAAO,cACPC,eAAgB,CACdC,IAAK,EACLC,IAAK3C,QAIXgC,EAACY,EAAa,CACZC,QAAS,CACPC,KAAMjB,EAAOkB,kBACb9B,IAAKY,EAAOkB,mBAEdC,aAAW,EACXC,YAAY,EACZ5C,YAAaA,EACbX,MAAOO,EACPiD,cAAetD,EACfuD,OAAQrD,QAAAA,EAAe,EACvBsD,cAAc/C,eAAAA,EAAaI,KAAM,EACjCE,uBAAwB,SAAA0C,GAAM,OAAIA,GAAU1C,EAAuB0C,EAAO5C,GAAG,MAIrF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalTitle.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAQ,MAAM,OAAO,CAAC;AAWjC,KAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,uBAAuB,EAAE,MAAM,IAAI,CAAC;IACpC,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,YAAY,EAAE,OAAO,CAAC;IACtB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,uBAAuB,EAAE,OAAO,CAAC;CAClC,CAAC;AAEF,QAAA,MAAM,UAAU,EAAE,EAAE,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"ModalTitle.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAQ,MAAM,OAAO,CAAC;AAWjC,KAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,uBAAuB,EAAE,MAAM,IAAI,CAAC;IACpC,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,YAAY,EAAE,OAAO,CAAC;IACtB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,uBAAuB,EAAE,OAAO,CAAC;CAClC,CAAC;AAEF,QAAA,MAAM,UAAU,EAAE,EAAE,CAAC,KAAK,CAqDzB,CAAC;eAEa,UAAU"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Divider as o}from"@material-ui/core";import{memo as s}from"react";import{Tooltip as c}from"../../Tooltip/Tooltip.js";import{ButtonIcon as i}from"../../ButtonIcon/ButtonIcon.js";import{Text as n}from"../../Text/Text.js";import{LoaderCircular as t}from"../../LoaderCircular/LoaderCircular.js";import r from"./ModalTitle.scss.js";import{LocalIcon as m,FilterIcon as e}from"../../../icons/iconParkIcons.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{jsxs as p,jsx as l}from"react/jsx-runtime";var u=s((function(s){var u=s.total,a=s.selected,
|
|
1
|
+
import{Divider as o}from"@material-ui/core";import{memo as s}from"react";import{Tooltip as c}from"../../Tooltip/Tooltip.js";import{ButtonIcon as i}from"../../ButtonIcon/ButtonIcon.js";import{Text as n}from"../../Text/Text.js";import{LoaderCircular as t}from"../../LoaderCircular/LoaderCircular.js";import r from"./ModalTitle.scss.js";import{LocalIcon as m,FilterIcon as e}from"../../../icons/iconParkIcons.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{jsxs as p,jsx as l}from"react/jsx-runtime";var u=s((function(s){var u=s.total,a=s.selected,I=s.toggleMapVisibility,d=s.toggleFiltersVisibility,j=s.isMapVisible,C=s.isFiltersVisible,h=s.isBackgroundDataLoading;return p("div",{className:r.title,children:[p("div",{className:r.subTitle,children:[l(n,{size:20,children:"All Pads"}),l(o,{orientation:"vertical",className:r.divider}),p(n,{size:14,color:"T6",testId:"totalPadsCount",children:["Total Pads: ",u||"-"]}),l(o,{orientation:"vertical",className:r.divider}),p(n,{size:14,color:"T6",testId:"selectedPadsCount",children:["Selected: ",a||"-"]})]}),p("div",{className:r.subTitle,children:[h&&l(c,{title:"Active and Non-active pads are loading in the background",children:l("div",{"data-testid":"backgroundLoader",children:l(t,{})})}),l(c,{title:"Toggle Map View",children:l(i,{onClick:I,type:j?"secondary":"tertiary",testId:"mapToggleButton",children:l(m,{})})}),l(c,{title:"Toggle Filters",children:l(i,{onClick:d,type:C?"secondary":"tertiary",testId:"filtersToggleButton",children:l(e,{})})})]})]})}));export{u as default};
|
|
2
2
|
//# sourceMappingURL=ModalTitle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalTitle.js","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.tsx"],"sourcesContent":["import { Divider } from '@material-ui/core';\nimport { FC, memo } from 'react';\n\nimport { Tooltip } from '../../Tooltip/Tooltip';\nimport { ButtonIcon } from '../../ButtonIcon';\nimport { Text } from '../../Text';\nimport { LoaderCircular } from '../../LoaderCircular';\n\nimport styles from './ModalTitle.scss';\n\nimport { FilterIcon, LocalIcon } from '~/icons';\n\ntype Props = {\n total?: number;\n selected: number;\n toggleMapVisibility: () => void;\n toggleFiltersVisibility: () => void;\n onModalClose: () => void;\n isMapVisible: boolean;\n isFiltersVisible: boolean;\n isBackgroundDataLoading: boolean;\n};\n\nconst ModalTitle: FC<Props> = memo(\n ({\n total,\n selected,\n toggleMapVisibility,\n toggleFiltersVisibility,\n isMapVisible,\n isFiltersVisible,\n isBackgroundDataLoading,\n }) => {\n return (\n <div className={styles.title}>\n <div className={styles.subTitle}>\n <Text size={20}>All Pads</Text>\n <Divider orientation=\"vertical\" className={styles.divider} />\n <Text size={14} color=\"T6\">\n Total Pads: {total || '-'}\n </Text>\n <Divider orientation=\"vertical\" className={styles.divider} />\n <Text size={14} color=\"T6\">\n Selected: {selected || '-'}\n </Text>\n </div>\n <div className={styles.subTitle}>\n {isBackgroundDataLoading && (\n <Tooltip title=\"Active and Non-active pads are loading in the background\">\n <div>\n <LoaderCircular />\n </div>\n </Tooltip>\n )}\n <Tooltip title=\"Toggle Map View\">\n <ButtonIcon\n onClick={toggleMapVisibility}\n type={isMapVisible ? 'secondary' : 'tertiary'}\n >\n <LocalIcon />\n </ButtonIcon>\n </Tooltip>\n <Tooltip title=\"Toggle Filters\">\n <ButtonIcon\n onClick={toggleFiltersVisibility}\n type={isFiltersVisible ? 'secondary' : 'tertiary'}\n >\n <FilterIcon />\n </ButtonIcon>\n </Tooltip>\n </div>\n </div>\n );\n }\n);\n\nexport default ModalTitle;\n"],"names":["ModalTitle","memo","_ref","total","selected","toggleMapVisibility","toggleFiltersVisibility","isMapVisible","isFiltersVisible","isBackgroundDataLoading","_jsxs","className","styles","title","children","subTitle","_jsx","Text","size","Divider","orientation","divider","color","Tooltip","LoaderCircular","ButtonIcon","onClick","type","LocalIcon","FilterIcon"],"mappings":"+8IAuBA,IAAMA,EAAwBC,GAC5B,SAQMC,GAAA,IAPJC,IAAAA,MACAC,IAAAA,SACAC,IAAAA,oBACAC,IAAAA,wBACAC,IAAAA,aACAC,IAAAA,iBACAC,IAAAA,wBAEA,OACEC,EAAA,MAAA,CAAKC,UAAWC,EAAOC,MAAMC,SAC3B,CAAAJ,EAAA,MAAA,CAAKC,UAAWC,EAAOG,SAASD,SAAA,CAC9BE,EAACC,EAAI,CAACC,KAAM,GAAGJ,SAAA,aACfE,EAACG,EAAO,CAACC,YAAY,WAAWT,UAAWC,EAAOS,UAClDX,EAACO,EAAI,CAACC,KAAM,GAAII,MAAM,
|
|
1
|
+
{"version":3,"file":"ModalTitle.js","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.tsx"],"sourcesContent":["import { Divider } from '@material-ui/core';\nimport { FC, memo } from 'react';\n\nimport { Tooltip } from '../../Tooltip/Tooltip';\nimport { ButtonIcon } from '../../ButtonIcon';\nimport { Text } from '../../Text';\nimport { LoaderCircular } from '../../LoaderCircular';\n\nimport styles from './ModalTitle.scss';\n\nimport { FilterIcon, LocalIcon } from '~/icons';\n\ntype Props = {\n total?: number;\n selected: number;\n toggleMapVisibility: () => void;\n toggleFiltersVisibility: () => void;\n onModalClose: () => void;\n isMapVisible: boolean;\n isFiltersVisible: boolean;\n isBackgroundDataLoading: boolean;\n};\n\nconst ModalTitle: FC<Props> = memo(\n ({\n total,\n selected,\n toggleMapVisibility,\n toggleFiltersVisibility,\n isMapVisible,\n isFiltersVisible,\n isBackgroundDataLoading,\n }) => {\n return (\n <div className={styles.title}>\n <div className={styles.subTitle}>\n <Text size={20}>All Pads</Text>\n <Divider orientation=\"vertical\" className={styles.divider} />\n <Text size={14} color=\"T6\" testId=\"totalPadsCount\">\n Total Pads: {total || '-'}\n </Text>\n <Divider orientation=\"vertical\" className={styles.divider} />\n <Text size={14} color=\"T6\" testId=\"selectedPadsCount\">\n Selected: {selected || '-'}\n </Text>\n </div>\n <div className={styles.subTitle}>\n {isBackgroundDataLoading && (\n <Tooltip title=\"Active and Non-active pads are loading in the background\">\n <div data-testid=\"backgroundLoader\">\n <LoaderCircular />\n </div>\n </Tooltip>\n )}\n <Tooltip title=\"Toggle Map View\">\n <ButtonIcon\n onClick={toggleMapVisibility}\n type={isMapVisible ? 'secondary' : 'tertiary'}\n testId=\"mapToggleButton\"\n >\n <LocalIcon />\n </ButtonIcon>\n </Tooltip>\n <Tooltip title=\"Toggle Filters\">\n <ButtonIcon\n onClick={toggleFiltersVisibility}\n type={isFiltersVisible ? 'secondary' : 'tertiary'}\n testId=\"filtersToggleButton\"\n >\n <FilterIcon />\n </ButtonIcon>\n </Tooltip>\n </div>\n </div>\n );\n }\n);\n\nexport default ModalTitle;\n"],"names":["ModalTitle","memo","_ref","total","selected","toggleMapVisibility","toggleFiltersVisibility","isMapVisible","isFiltersVisible","isBackgroundDataLoading","_jsxs","className","styles","title","children","subTitle","_jsx","Text","size","Divider","orientation","divider","color","testId","Tooltip","LoaderCircular","ButtonIcon","onClick","type","LocalIcon","FilterIcon"],"mappings":"+8IAuBA,IAAMA,EAAwBC,GAC5B,SAQMC,GAAA,IAPJC,IAAAA,MACAC,IAAAA,SACAC,IAAAA,oBACAC,IAAAA,wBACAC,IAAAA,aACAC,IAAAA,iBACAC,IAAAA,wBAEA,OACEC,EAAA,MAAA,CAAKC,UAAWC,EAAOC,MAAMC,SAC3B,CAAAJ,EAAA,MAAA,CAAKC,UAAWC,EAAOG,SAASD,SAAA,CAC9BE,EAACC,EAAI,CAACC,KAAM,GAAGJ,SAAA,aACfE,EAACG,EAAO,CAACC,YAAY,WAAWT,UAAWC,EAAOS,UAClDX,EAACO,EAAI,CAACC,KAAM,GAAII,MAAM,KAAKC,OAAO,iBAAgBT,SACnCX,CAAAA,eAAAA,GAAS,OAExBa,EAACG,EAAO,CAACC,YAAY,WAAWT,UAAWC,EAAOS,UAClDX,EAACO,EAAI,CAACC,KAAM,GAAII,MAAM,KAAKC,OAAO,oBAAmBT,SACxCV,CAAAA,aAAAA,GAAY,UAG3BM,EAAA,MAAA,CAAKC,UAAWC,EAAOG,SAASD,SAC7BL,CAAAA,GACCO,EAACQ,EAAO,CAACX,MAAM,2DAA0DC,SACvEE,EAAA,MAAA,CAAK,cAAY,mBAAkBF,SACjCE,EAACS,EAAc,QAIrBT,EAACQ,EAAO,CAACX,MAAM,kBAAiBC,SAC9BE,EAACU,EAAU,CACTC,QAAStB,EACTuB,KAAMrB,EAAe,YAAc,WACnCgB,OAAO,kBAAiBT,SAExBE,EAACa,EAAS,QAGdb,EAACQ,EAAO,CAACX,MAAM,iBAAgBC,SAC7BE,EAACU,EAAU,CACTC,QAASrB,EACTsB,KAAMpB,EAAmB,YAAc,WACvCe,OAAO,sBAAqBT,SAE5BE,EAACc,EAAU,aAMvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PadTableRow.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadTableRow.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAW,MAAM,OAAO,CAAC;AAMpC,OAAO,EAAE,gCAAgC,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAGvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAIpE,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,SAAS,CAAC;IAChB,eAAe,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,iBAAiB,CAAC,CAAC;IAC3E,kBAAkB,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,oBAAoB,CAAC,CAAC;IACjF,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB,GAAG,IAAI,CAAC,gCAAgC,EAAE,uBAAuB,CAAC,CAAC;AAEpE,QAAA,MAAM,WAAW,EAAE,EAAE,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"PadTableRow.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadTableRow.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAW,MAAM,OAAO,CAAC;AAMpC,OAAO,EAAE,gCAAgC,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAGvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAIpE,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,SAAS,CAAC;IAChB,eAAe,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,iBAAiB,CAAC,CAAC;IAC3E,kBAAkB,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,oBAAoB,CAAC,CAAC;IACjF,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB,GAAG,IAAI,CAAC,gCAAgC,EAAE,uBAAuB,CAAC,CAAC;AAEpE,QAAA,MAAM,WAAW,EAAE,EAAE,CAAC,KAAK,CAqD1B,CAAC;eAEa,WAAW"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{useMemo as e}from"react";import
|
|
1
|
+
import{useMemo as e}from"react";import t from"classnames";import{TableCell as l}from"../../../components/Table/TableCell/TableCell.js";import{TableRow as r}from"@material-ui/core";import{Checkbox as d}from"../../Checkbox/Checkbox.js";import{COLUMNS as a}from"./helpers/columns.js";import i from"./PadTableRow.scss.js";import{jsx as n,jsxs as c}from"react/jsx-runtime";var s=function(s){var o=s.data,m=s.handleSelectPad,u=s.handleSelectWellId,f=s.isExpanded,h=s.isMainPad,p=s.selectedOffsetWellIds,C=s.searchText,x=e((function(){var e=o.wells.every((function(e){return p.includes(e.id)}));return{indeterminate:o.wells.some((function(e){return p.includes(e.id)}))&&!e,checked:e}}),[o.wells,p]),b=x.indeterminate,v=x.checked;return n(r,{"data-testid":"padRow_".concat(o.id),children:a.map((function(e,r){var a=e.id,s=e.title,x=e.render,w=e.width;return n(l,{className:t(i.cell,h?i.blueCell:i.greyCell),style:{width:w},"data-testid":"".concat(a,"Cell"),children:c("div",{className:i.cellContent,children:[!r&&!h&&n(d,{size:"medium",onChange:function(e){return m(o.id,e)},checked:v,indeterminate:b,testId:"padCheckbox"}),n("div",{children:x({data:o,isSelected:v||b,selectedOffsetWellIds:p,handleSelectWellId:u,isExpanded:f,isMainPad:h,searchText:C})})]})},s)}))})};export{s as default};
|
|
2
2
|
//# sourceMappingURL=PadTableRow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PadTableRow.js","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadTableRow.tsx"],"sourcesContent":["import { FC, useMemo } from 'react';\nimport classnames from 'classnames';\n\nimport { TableCell } from '../../../components/Table/TableCell/TableCell';\nimport { TableRow } from '../../../components/Table/TableRow';\nimport { Checkbox } from '../../../componentsV2/Checkbox';\nimport { CompletionsOffsetWellPickerProps, MappedPad } from '../types';\n\nimport { COLUMNS } from './helpers/columns';\nimport { usePadTableHandlers } from './helpers/usePadTableHandlers';\n\nimport styles from './PadTableRow.scss';\n\ntype Props = {\n data: MappedPad;\n handleSelectPad: ReturnType<typeof usePadTableHandlers>['handleSelectPad'];\n handleSelectWellId: ReturnType<typeof usePadTableHandlers>['handleSelectWellId'];\n isExpanded: boolean;\n isMainPad: boolean;\n searchText: string;\n} & Pick<CompletionsOffsetWellPickerProps, 'selectedOffsetWellIds'>;\n\nconst PadTableRow: FC<Props> = ({\n data,\n handleSelectPad,\n handleSelectWellId,\n isExpanded,\n isMainPad,\n selectedOffsetWellIds,\n searchText,\n}) => {\n const { indeterminate, checked } = useMemo(() => {\n const checked = data.wells.every(well => selectedOffsetWellIds.includes(well.id));\n\n const indeterminate =\n data.wells.some(well => selectedOffsetWellIds.includes(well.id)) && !checked;\n\n return { indeterminate, checked };\n }, [data.wells, selectedOffsetWellIds]);\n\n return (\n <TableRow>\n {COLUMNS.map(({ title, render, width }, index) => (\n <TableCell\n key={title}\n className={classnames(styles.cell, isMainPad ? styles.blueCell : styles.greyCell)}\n style={{ width }}\n >\n <div className={styles.cellContent}>\n {!index && !isMainPad && (\n <Checkbox\n size=\"medium\"\n onChange={checked => handleSelectPad(data.id, checked)}\n checked={checked}\n indeterminate={indeterminate}\n />\n )}\n <div>\n {render({\n data,\n isSelected: checked || indeterminate,\n selectedOffsetWellIds,\n handleSelectWellId,\n isExpanded,\n isMainPad,\n searchText,\n })}\n </div>\n </div>\n </TableCell>\n ))}\n </TableRow>\n );\n};\n\nexport default PadTableRow;\n"],"names":["PadTableRow","_ref","data","handleSelectPad","handleSelectWellId","isExpanded","isMainPad","selectedOffsetWellIds","searchText","useMemo","checked","wells","every","well","includes","id","indeterminate","some","_jsx","TableRow","children","COLUMNS","map","index","title","render","width","TableCell","className","classnames","styles","cell","blueCell","greyCell","style","_jsxs","cellContent","Checkbox","size","onChange","isSelected"],"mappings":"gXAsBA,IAAMA,EAAyB,SAQzBC,GAAA,IAPJC,IAAAA,KACAC,IAAAA,gBACAC,IAAAA,mBACAC,IAAAA,WACAC,IAAAA,UACAC,IAAAA,sBACAC,IAAAA,WAEmCC,EAAAA,GAAQ,WACzC,IAAMC,EAAUR,EAAKS,MAAMC,OAAM,SAAAC,GAAI,OAAIN,EAAsBO,SAASD,EAAKE,OAK7E,MAAO,CAAEC,cAFPd,EAAKS,MAAMM,MAAK,SAAAJ,GAAI,OAAIN,EAAsBO,SAASD,EAAKE,SAASL,EAE/CA,QAAAA,EACzB,GAAE,CAACR,EAAKS,MAAOJ,IAPRS,IAAAA,cAAeN,IAAAA,QASvB,OACEQ,EAACC,EAAQ,
|
|
1
|
+
{"version":3,"file":"PadTableRow.js","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadTableRow.tsx"],"sourcesContent":["import { FC, useMemo } from 'react';\nimport classnames from 'classnames';\n\nimport { TableCell } from '../../../components/Table/TableCell/TableCell';\nimport { TableRow } from '../../../components/Table/TableRow';\nimport { Checkbox } from '../../../componentsV2/Checkbox';\nimport { CompletionsOffsetWellPickerProps, MappedPad } from '../types';\n\nimport { COLUMNS } from './helpers/columns';\nimport { usePadTableHandlers } from './helpers/usePadTableHandlers';\n\nimport styles from './PadTableRow.scss';\n\ntype Props = {\n data: MappedPad;\n handleSelectPad: ReturnType<typeof usePadTableHandlers>['handleSelectPad'];\n handleSelectWellId: ReturnType<typeof usePadTableHandlers>['handleSelectWellId'];\n isExpanded: boolean;\n isMainPad: boolean;\n searchText: string;\n} & Pick<CompletionsOffsetWellPickerProps, 'selectedOffsetWellIds'>;\n\nconst PadTableRow: FC<Props> = ({\n data,\n handleSelectPad,\n handleSelectWellId,\n isExpanded,\n isMainPad,\n selectedOffsetWellIds,\n searchText,\n}) => {\n const { indeterminate, checked } = useMemo(() => {\n const checked = data.wells.every(well => selectedOffsetWellIds.includes(well.id));\n\n const indeterminate =\n data.wells.some(well => selectedOffsetWellIds.includes(well.id)) && !checked;\n\n return { indeterminate, checked };\n }, [data.wells, selectedOffsetWellIds]);\n\n return (\n <TableRow data-testid={`padRow_${data.id}`}>\n {COLUMNS.map(({ id, title, render, width }, index) => (\n <TableCell\n key={title}\n className={classnames(styles.cell, isMainPad ? styles.blueCell : styles.greyCell)}\n style={{ width }}\n data-testid={`${id}Cell`}\n >\n <div className={styles.cellContent}>\n {!index && !isMainPad && (\n <Checkbox\n size=\"medium\"\n onChange={checked => handleSelectPad(data.id, checked)}\n checked={checked}\n indeterminate={indeterminate}\n testId=\"padCheckbox\"\n />\n )}\n <div>\n {render({\n data,\n isSelected: checked || indeterminate,\n selectedOffsetWellIds,\n handleSelectWellId,\n isExpanded,\n isMainPad,\n searchText,\n })}\n </div>\n </div>\n </TableCell>\n ))}\n </TableRow>\n );\n};\n\nexport default PadTableRow;\n"],"names":["PadTableRow","_ref","data","handleSelectPad","handleSelectWellId","isExpanded","isMainPad","selectedOffsetWellIds","searchText","useMemo","checked","wells","every","well","includes","id","indeterminate","some","_jsx","TableRow","children","COLUMNS","map","index","title","render","width","TableCell","className","classnames","styles","cell","blueCell","greyCell","style","concat","_jsxs","cellContent","Checkbox","size","onChange","testId","isSelected"],"mappings":"gXAsBA,IAAMA,EAAyB,SAQzBC,GAAA,IAPJC,IAAAA,KACAC,IAAAA,gBACAC,IAAAA,mBACAC,IAAAA,WACAC,IAAAA,UACAC,IAAAA,sBACAC,IAAAA,WAEmCC,EAAAA,GAAQ,WACzC,IAAMC,EAAUR,EAAKS,MAAMC,OAAM,SAAAC,GAAI,OAAIN,EAAsBO,SAASD,EAAKE,OAK7E,MAAO,CAAEC,cAFPd,EAAKS,MAAMM,MAAK,SAAAJ,GAAI,OAAIN,EAAsBO,SAASD,EAAKE,SAASL,EAE/CA,QAAAA,EACzB,GAAE,CAACR,EAAKS,MAAOJ,IAPRS,IAAAA,cAAeN,IAAAA,QASvB,OACEQ,EAACC,EAAQ,CAAC,cAAuBjB,UAAAA,OAAAA,EAAKa,IAAKK,SACxCC,EAAQC,KAAI,WAA+BC,GAAK,IAAjCR,IAAAA,GAAIS,IAAAA,MAAOC,IAAAA,OAAQC,IAAAA,MAAK,OACtCR,EAACS,EAAS,CAERC,UAAWC,EAAWC,EAAOC,KAAMzB,EAAYwB,EAAOE,SAAWF,EAAOG,UACxEC,MAAO,CAAER,MAAAA,GACT,cAAA,GAAAS,OAAgBpB,EAAS,QAAAK,SAEzBgB,EAAA,MAAA,CAAKR,UAAWE,EAAOO,YAAYjB,SAAA,EAC/BG,IAAUjB,GACVY,EAACoB,EAAQ,CACPC,KAAK,SACLC,SAAU,SAAA9B,GAAO,OAAIP,EAAgBD,EAAKa,GAAIL,EAAS,EACvDA,QAASA,EACTM,cAAeA,EACfyB,OAAO,gBAGXvB,EAAA,MAAA,CAAAE,SACGK,EAAO,CACNvB,KAAAA,EACAwC,WAAYhC,GAAWM,EACvBT,sBAAAA,EACAH,mBAAAA,EACAC,WAAAA,EACAC,UAAAA,EACAE,WAAAA,UAvBDgB,OA+Bf"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import s from"@babel/runtime/helpers/slicedToArray";import{memo as o,useState as c}from"react";import"@babel/runtime/helpers/defineProperty";import{TableHead as i}from"@material-ui/core";import"@babel/runtime/helpers/objectWithoutProperties";import"@icon-park/react/es/all";import{jsxs as n,Fragment as t,jsx as e}from"react/jsx-runtime";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"../../../components/Table/TableToolbar/TableToolbar.js";import"../../../components/Table/TableContainer/TableContainer.js";import"../../../components/Table/TableCell/TableCell.js";import"../../../components/Table/TablePagination/TablePagination.js";import"../../../components/Table/TablePaginationActions/TablePaginationActions.js";import{Table as r}from"../../../components/Table/Table/Table.js";import m from"../AssetSearchInput/AssetSearchInput.js";import l from"./PadsTableHead.js";import{DEFAULT_SORT_BY as a,SortDirection as p}from"./helpers/sortPads.js";import{usePadTableHandlers as d}from"./helpers/usePadTableHandlers.js";import{PadsTableBody as u}from"./PadsTableBody.js";import{useDebouncedValues as I}from"./helpers/useDebouncedValues.js";import j from"./PadsTable.scss.js";var b=o((function(o){var b=o.allWellIds,h=o.selectedOffsetWellIds,T=o.pads,f=o.selectedPadId,C=o.isSelectedPadsLoading,P=o.onOffsetWellIdsSelect,O=o.filters,S=c(a),F=s(S,2),A=F[0],W=F[1],g=c(p.ASC),v=s(g,2),x=v[0],D=v[1],y=c(""),k=s(y,2),M=k[0],B=k[1],R=I({searchText:M,filters:O}),E=R.debouncedSearchText,G=R.debouncedFilters,L=d({pads:T,onOffsetWellIdsSelect:P,selectedOffsetWellIds:h,allWellIds:b}),N=L.handleSelectPad,U=L.handleSelectPads,H=L.handleSelectWellId;return n(t,{children:[e(m,{searchText:M,onChange:B}),e(r,{className:j.headTable,"data-testid":"padsTableHead",children:e(i,{children:e(l,{allWellIds:b,handleSelectPads:U,sortBy:A,sortDirection:x,selectedOffsetWellIds:h,setSortBy:W,setSortDirection:D})})}),e("div",{className:j.tableWrapper,"data-testid":"padsTable",children:e(r,{className:j.table,children:e(u,{pads:T,selectedPadId:f,searchText:E,sortBy:A,sortDirection:x,selectedOffsetWellIds:h,isSelectedPadsLoading:C,filters:G,handleSelectPad:N,handleSelectWellId:H})})})]})}));export{b as default};
|
|
2
2
|
//# sourceMappingURL=PadsTable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PadsTable.js","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTable.tsx"],"sourcesContent":["import { FC, memo, useState } from 'react';\n\nimport { Table } from '../../../components/Table';\nimport { TableHead } from '../../../components/Table/TableHead';\nimport AssetSearchInput from '../AssetSearchInput/AssetSearchInput';\nimport { CompletionsOffsetWellPickerProps, Filters, MappedPad } from '../types';\n\nimport PadsTableHead from './PadsTableHead';\nimport { DEFAULT_SORT_BY, SortBy, SortDirection } from './helpers/sortPads';\nimport { usePadTableHandlers } from './helpers/usePadTableHandlers';\nimport { PadsTableBody } from './PadsTableBody';\nimport { useDebouncedValues } from './helpers/useDebouncedValues';\n\nimport styles from './PadsTable.scss';\n\ntype Props = {\n allWellIds: number[];\n pads: MappedPad[];\n onOffsetWellIdsSelect: (offsetWellIds: number[]) => void;\n filters: Filters;\n isSelectedPadsLoading: boolean;\n} & Pick<CompletionsOffsetWellPickerProps, 'selectedOffsetWellIds' | 'selectedPadId'>;\n\nconst PadsTable: FC<Props> = memo(\n ({\n allWellIds,\n selectedOffsetWellIds,\n pads,\n selectedPadId,\n isSelectedPadsLoading,\n onOffsetWellIdsSelect,\n filters,\n }) => {\n const [sortBy, setSortBy] = useState<SortBy | null>(DEFAULT_SORT_BY);\n const [sortDirection, setSortDirection] = useState(SortDirection.ASC);\n const [searchText, setSearchText] = useState('');\n\n const { debouncedSearchText, debouncedFilters } = useDebouncedValues({\n searchText,\n filters,\n });\n\n const { handleSelectPad, handleSelectPads, handleSelectWellId } = usePadTableHandlers({\n pads,\n onOffsetWellIdsSelect,\n selectedOffsetWellIds,\n allWellIds,\n });\n\n return (\n <>\n <AssetSearchInput searchText={searchText} onChange={setSearchText} />\n <Table className={styles.headTable}>\n <TableHead>\n <PadsTableHead\n allWellIds={allWellIds}\n handleSelectPads={handleSelectPads}\n sortBy={sortBy}\n sortDirection={sortDirection}\n selectedOffsetWellIds={selectedOffsetWellIds}\n setSortBy={setSortBy}\n setSortDirection={setSortDirection}\n />\n </TableHead>\n </Table>\n <div className={styles.tableWrapper}>\n <Table className={styles.table}>\n <PadsTableBody\n pads={pads}\n selectedPadId={selectedPadId}\n searchText={debouncedSearchText}\n sortBy={sortBy}\n sortDirection={sortDirection}\n selectedOffsetWellIds={selectedOffsetWellIds}\n isSelectedPadsLoading={isSelectedPadsLoading}\n filters={debouncedFilters}\n handleSelectPad={handleSelectPad}\n handleSelectWellId={handleSelectWellId}\n />\n </Table>\n </div>\n </>\n );\n }\n);\n\nexport default PadsTable;\n"],"names":["PadsTable","memo","_ref","allWellIds","selectedOffsetWellIds","pads","selectedPadId","isSelectedPadsLoading","onOffsetWellIdsSelect","filters","useState","DEFAULT_SORT_BY","_useState2","_slicedToArray","_useState","sortBy","setSortBy","_useState3","SortDirection","ASC","_useState4","sortDirection","setSortDirection","_useState6","_useState5","searchText","setSearchText","_useDebouncedValues","useDebouncedValues","debouncedSearchText","debouncedFilters","_usePadTableHandlers","usePadTableHandlers","handleSelectPad","handleSelectPads","handleSelectWellId","_jsxs","_Fragment","children","_jsx","AssetSearchInput","onChange","Table","className","styles","headTable","TableHead","PadsTableHead","tableWrapper","table","PadsTableBody"],"mappings":"0pKAuBA,IAAMA,EAAuBC,GAC3B,SAQMC,GAAA,IAPJC,IAAAA,WACAC,IAAAA,sBACAC,IAAAA,KACAC,IAAAA,cACAC,IAAAA,sBACAC,IAAAA,sBACAC,IAAAA,QAE4BC,EAAAA,EAAwBC,GAAgBC,EAAAC,EAAAC,EAAA,GAA7DC,EAAMH,EAAA,GAAEI,EAASJ,EAAA,GACxBK,EAA0CP,EAASQ,EAAcC,KAAIC,EAAAP,EAAAI,EAAA,GAA9DI,EAAaD,EAAA,GAAEE,EAAgBF,EAAA,GACFV,EAAAA,EAAS,IAAGa,EAAAV,EAAAW,EAAA,GAAzCC,EAAUF,EAAA,GAAEG,EAAaH,EAAA,GAEhCI,EAAkDC,EAAmB,CACnEH,WAAAA,EACAhB,QAAAA,IAFMoB,IAAAA,oBAAqBC,IAAAA,iBAK7BC,EAAkEC,EAAoB,CACpF3B,KAAAA,EACAG,sBAAAA,EACAJ,sBAAAA,EACAD,WAAAA,IAJM8B,IAAAA,gBAAiBC,IAAAA,iBAAkBC,IAAAA,mBAO3C,OACEC,EAAAC,EAAA,CAAAC,SAAA,CACEC,EAACC,EAAgB,CAACf,WAAYA,EAAYgB,SAAUf,IACpDa,EAACG,EAAK,CAACC,UAAWC,EAAOC,
|
|
1
|
+
{"version":3,"file":"PadsTable.js","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTable.tsx"],"sourcesContent":["import { FC, memo, useState } from 'react';\n\nimport { Table } from '../../../components/Table';\nimport { TableHead } from '../../../components/Table/TableHead';\nimport AssetSearchInput from '../AssetSearchInput/AssetSearchInput';\nimport { CompletionsOffsetWellPickerProps, Filters, MappedPad } from '../types';\n\nimport PadsTableHead from './PadsTableHead';\nimport { DEFAULT_SORT_BY, SortBy, SortDirection } from './helpers/sortPads';\nimport { usePadTableHandlers } from './helpers/usePadTableHandlers';\nimport { PadsTableBody } from './PadsTableBody';\nimport { useDebouncedValues } from './helpers/useDebouncedValues';\n\nimport styles from './PadsTable.scss';\n\ntype Props = {\n allWellIds: number[];\n pads: MappedPad[];\n onOffsetWellIdsSelect: (offsetWellIds: number[]) => void;\n filters: Filters;\n isSelectedPadsLoading: boolean;\n} & Pick<CompletionsOffsetWellPickerProps, 'selectedOffsetWellIds' | 'selectedPadId'>;\n\nconst PadsTable: FC<Props> = memo(\n ({\n allWellIds,\n selectedOffsetWellIds,\n pads,\n selectedPadId,\n isSelectedPadsLoading,\n onOffsetWellIdsSelect,\n filters,\n }) => {\n const [sortBy, setSortBy] = useState<SortBy | null>(DEFAULT_SORT_BY);\n const [sortDirection, setSortDirection] = useState(SortDirection.ASC);\n const [searchText, setSearchText] = useState('');\n\n const { debouncedSearchText, debouncedFilters } = useDebouncedValues({\n searchText,\n filters,\n });\n\n const { handleSelectPad, handleSelectPads, handleSelectWellId } = usePadTableHandlers({\n pads,\n onOffsetWellIdsSelect,\n selectedOffsetWellIds,\n allWellIds,\n });\n\n return (\n <>\n <AssetSearchInput searchText={searchText} onChange={setSearchText} />\n <Table className={styles.headTable} data-testid=\"padsTableHead\">\n <TableHead>\n <PadsTableHead\n allWellIds={allWellIds}\n handleSelectPads={handleSelectPads}\n sortBy={sortBy}\n sortDirection={sortDirection}\n selectedOffsetWellIds={selectedOffsetWellIds}\n setSortBy={setSortBy}\n setSortDirection={setSortDirection}\n />\n </TableHead>\n </Table>\n <div className={styles.tableWrapper} data-testid=\"padsTable\">\n <Table className={styles.table}>\n <PadsTableBody\n pads={pads}\n selectedPadId={selectedPadId}\n searchText={debouncedSearchText}\n sortBy={sortBy}\n sortDirection={sortDirection}\n selectedOffsetWellIds={selectedOffsetWellIds}\n isSelectedPadsLoading={isSelectedPadsLoading}\n filters={debouncedFilters}\n handleSelectPad={handleSelectPad}\n handleSelectWellId={handleSelectWellId}\n />\n </Table>\n </div>\n </>\n );\n }\n);\n\nexport default PadsTable;\n"],"names":["PadsTable","memo","_ref","allWellIds","selectedOffsetWellIds","pads","selectedPadId","isSelectedPadsLoading","onOffsetWellIdsSelect","filters","useState","DEFAULT_SORT_BY","_useState2","_slicedToArray","_useState","sortBy","setSortBy","_useState3","SortDirection","ASC","_useState4","sortDirection","setSortDirection","_useState6","_useState5","searchText","setSearchText","_useDebouncedValues","useDebouncedValues","debouncedSearchText","debouncedFilters","_usePadTableHandlers","usePadTableHandlers","handleSelectPad","handleSelectPads","handleSelectWellId","_jsxs","_Fragment","children","_jsx","AssetSearchInput","onChange","Table","className","styles","headTable","TableHead","PadsTableHead","tableWrapper","table","PadsTableBody"],"mappings":"0pKAuBA,IAAMA,EAAuBC,GAC3B,SAQMC,GAAA,IAPJC,IAAAA,WACAC,IAAAA,sBACAC,IAAAA,KACAC,IAAAA,cACAC,IAAAA,sBACAC,IAAAA,sBACAC,IAAAA,QAE4BC,EAAAA,EAAwBC,GAAgBC,EAAAC,EAAAC,EAAA,GAA7DC,EAAMH,EAAA,GAAEI,EAASJ,EAAA,GACxBK,EAA0CP,EAASQ,EAAcC,KAAIC,EAAAP,EAAAI,EAAA,GAA9DI,EAAaD,EAAA,GAAEE,EAAgBF,EAAA,GACFV,EAAAA,EAAS,IAAGa,EAAAV,EAAAW,EAAA,GAAzCC,EAAUF,EAAA,GAAEG,EAAaH,EAAA,GAEhCI,EAAkDC,EAAmB,CACnEH,WAAAA,EACAhB,QAAAA,IAFMoB,IAAAA,oBAAqBC,IAAAA,iBAK7BC,EAAkEC,EAAoB,CACpF3B,KAAAA,EACAG,sBAAAA,EACAJ,sBAAAA,EACAD,WAAAA,IAJM8B,IAAAA,gBAAiBC,IAAAA,iBAAkBC,IAAAA,mBAO3C,OACEC,EAAAC,EAAA,CAAAC,SAAA,CACEC,EAACC,EAAgB,CAACf,WAAYA,EAAYgB,SAAUf,IACpDa,EAACG,EAAK,CAACC,UAAWC,EAAOC,UAAW,cAAY,gBAAeP,SAC7DC,EAACO,EAAS,CAAAR,SACRC,EAACQ,EAAa,CACZ5C,WAAYA,EACZ+B,iBAAkBA,EAClBnB,OAAQA,EACRM,cAAeA,EACfjB,sBAAuBA,EACvBY,UAAWA,EACXM,iBAAkBA,QAIxBiB,EAAA,MAAA,CAAKI,UAAWC,EAAOI,aAAc,cAAY,YAAWV,SAC1DC,EAACG,EAAK,CAACC,UAAWC,EAAOK,MAAMX,SAC7BC,EAACW,EAAa,CACZ7C,KAAMA,EACNC,cAAeA,EACfmB,WAAYI,EACZd,OAAQA,EACRM,cAAeA,EACfjB,sBAAuBA,EACvBG,sBAAuBA,EACvBE,QAASqB,EACTG,gBAAiBA,EACjBE,mBAAoBA,UAMhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PadsTableBody.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableBody.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAmD,MAAM,OAAO,CAAC;AAO5E,OAAO,EAAE,gCAAgC,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAMhF,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAMpE,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,aAAa,EAAE,aAAa,CAAC;IAC7B,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IACpC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,eAAe,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,iBAAiB,CAAC,CAAC;IAC3E,kBAAkB,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,oBAAoB,CAAC,CAAC;CAClF,GAAG,IAAI,CAAC,gCAAgC,EAAE,uBAAuB,GAAG,eAAe,CAAC,CAAC;AAEtF,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"PadsTableBody.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableBody.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAmD,MAAM,OAAO,CAAC;AAO5E,OAAO,EAAE,gCAAgC,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAMhF,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAMpE,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,aAAa,EAAE,aAAa,CAAC;IAC7B,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IACpC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,eAAe,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,iBAAiB,CAAC,CAAC;IAC3E,kBAAkB,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,oBAAoB,CAAC,CAAC;CAClF,GAAG,IAAI,CAAC,gCAAgC,EAAE,uBAAuB,GAAG,eAAe,CAAC,CAAC;AAEtF,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,KAAK,CAuFnC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/slicedToArray";import{memo as r,useState as o,useCallback as n,useMemo as l,useEffect as i}from"react";import{Button as a}from"../../Button/Button.js";import{TableBody as
|
|
1
|
+
import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/slicedToArray";import{memo as r,useState as o,useCallback as n,useMemo as l,useEffect as i}from"react";import{Button as a}from"../../Button/Button.js";import{TableBody as d,TableRow as s}from"@material-ui/core";import{TableCell as c}from"../../../components/Table/TableCell/TableCell.js";import{LoaderLogo as m}from"../../LoaderLogo/LoaderLogo.js";import{MAX_TVD as u}from"../constants.js";import f from"./PadTableRow.js";import{COLUMNS as p}from"./helpers/columns.js";import{useFilteredData as h}from"./helpers/useFilteredData.js";import g from"./PadsTableBody.scss.js";import{jsx as S,jsxs as b}from"react/jsx-runtime";var v=r((function(r){var v,j=r.pads,I=r.selectedPadId,T=r.searchText,x=r.sortBy,L=r.sortDirection,P=r.selectedOffsetWellIds,B=r.filters,M=r.isSelectedPadsLoading,y=r.handleSelectPad,C=r.handleSelectWellId,W=o(50),F=t(W,2),D=F[0],A=F[1],O=n((function(){A((function(e){return e+50}))}),[]),k=l((function(){return j.filter((function(e){return e.id.toString()!==(null==I?void 0:I.toString())}))}),[j,I]),w=l((function(){return j.find((function(e){return e.id.toString()===(null==I?void 0:I.toString())}))}),[j,I]),E=l((function(){return!!(T||B.selectedFormations.length||B.selectedFracFleets.length||B.tvdMin||B.tvdMax!==u)}),[T,B]),N=h({data:k,searchText:T,sortBy:x,sortDirection:L,selectedWellIds:P,filters:B,mainItem:w});i((function(){A(50)}),[T,B]);var R=l((function(){return N.slice(0,D)}),[N,D]);return!w||M?S(m,{testId:"padsLoader"}):b(d,{children:[null===(v=[w].concat(e(R)))||void 0===v?void 0:v.map((function(e){return S(f,{isMainPad:e.id.toString()===(null==I?void 0:I.toString()),data:e,isExpanded:E,searchText:T,handleSelectPad:y,selectedOffsetWellIds:P,handleSelectWellId:C},e.id)})),N.length>50&&D<N.length&&S(s,{children:S(c,{colSpan:p.length,className:g.loadMoreCell,children:S(a,{onClick:O,testId:"loadMoreButton",children:"Load More"})})})]})}));export{v as PadsTableBody};
|
|
2
2
|
//# sourceMappingURL=PadsTableBody.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PadsTableBody.js","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableBody.tsx"],"sourcesContent":["import { FC, memo, useCallback, useEffect, useMemo, useState } from 'react';\n\nimport { Button } from '../../Button';\nimport { TableBody } from '../../../components/Table/TableBody';\nimport { TableCell } from '../../../components/Table/TableCell/TableCell';\nimport { TableRow } from '../../../components/Table/TableRow';\nimport { LoaderLogo } from '../../../componentsV2/LoaderLogo';\nimport { CompletionsOffsetWellPickerProps, Filters, MappedPad } from '../types';\nimport { MAX_TVD } from '../constants';\n\nimport PadTableRow from './PadTableRow';\nimport { COLUMNS } from './helpers/columns';\nimport { useFilteredData } from './helpers/useFilteredData';\nimport { SortBy, SortDirection } from './helpers/sortPads';\nimport { usePadTableHandlers } from './helpers/usePadTableHandlers';\n\nimport styles from './PadsTableBody.scss';\n\nconst DEFAULT_SLICE_SIZE = 50;\n\ntype Props = {\n pads: MappedPad[];\n searchText: string;\n sortBy: SortBy | null;\n sortDirection: SortDirection;\n filters: Omit<Filters, 'padStatus'>;\n isSelectedPadsLoading: boolean;\n handleSelectPad: ReturnType<typeof usePadTableHandlers>['handleSelectPad'];\n handleSelectWellId: ReturnType<typeof usePadTableHandlers>['handleSelectWellId'];\n} & Pick<CompletionsOffsetWellPickerProps, 'selectedOffsetWellIds' | 'selectedPadId'>;\n\nexport const PadsTableBody: FC<Props> = memo(\n ({\n pads,\n selectedPadId,\n searchText,\n sortBy,\n sortDirection,\n selectedOffsetWellIds,\n filters,\n isSelectedPadsLoading,\n handleSelectPad,\n handleSelectWellId,\n }) => {\n const [slice, setSlice] = useState(DEFAULT_SLICE_SIZE);\n\n const increaseSlice = useCallback(() => {\n setSlice(prevSlice => prevSlice + DEFAULT_SLICE_SIZE);\n }, []);\n\n const padsWithoutMainItem = useMemo(\n () => pads.filter(pad => pad.id.toString() !== selectedPadId?.toString()),\n [pads, selectedPadId]\n );\n\n const mainItem = useMemo(\n () => pads.find(pad => pad.id.toString() === selectedPadId?.toString()),\n [pads, selectedPadId]\n );\n\n // Radius is a pad-level filter and always has a default value, so it doesn't\n // expand rows — only well-level narrowing (search, formation, fleet, TVD) does\n const isExpanded = useMemo(\n () =>\n !!searchText ||\n !!filters.selectedFormations.length ||\n !!filters.selectedFracFleets.length ||\n !!filters.tvdMin ||\n filters.tvdMax !== MAX_TVD,\n [searchText, filters]\n );\n\n const filteredData = useFilteredData({\n data: padsWithoutMainItem,\n searchText,\n sortBy,\n sortDirection,\n selectedWellIds: selectedOffsetWellIds,\n filters,\n mainItem,\n });\n\n useEffect(() => {\n setSlice(DEFAULT_SLICE_SIZE);\n }, [searchText, filters]);\n\n const slicedFilteredData = useMemo(() => filteredData.slice(0, slice), [filteredData, slice]);\n\n if (!mainItem || isSelectedPadsLoading) {\n return <LoaderLogo />;\n }\n\n return (\n <TableBody>\n {[mainItem, ...slicedFilteredData]?.map(pad => (\n <PadTableRow\n isMainPad={pad.id.toString() === selectedPadId?.toString()}\n key={pad.id}\n data={pad}\n isExpanded={isExpanded}\n searchText={searchText}\n handleSelectPad={handleSelectPad}\n selectedOffsetWellIds={selectedOffsetWellIds}\n handleSelectWellId={handleSelectWellId}\n />\n ))}\n {filteredData.length > DEFAULT_SLICE_SIZE && slice < filteredData.length && (\n <TableRow>\n <TableCell colSpan={COLUMNS.length} className={styles.loadMoreCell}>\n <Button onClick={increaseSlice}
|
|
1
|
+
{"version":3,"file":"PadsTableBody.js","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableBody.tsx"],"sourcesContent":["import { FC, memo, useCallback, useEffect, useMemo, useState } from 'react';\n\nimport { Button } from '../../Button';\nimport { TableBody } from '../../../components/Table/TableBody';\nimport { TableCell } from '../../../components/Table/TableCell/TableCell';\nimport { TableRow } from '../../../components/Table/TableRow';\nimport { LoaderLogo } from '../../../componentsV2/LoaderLogo';\nimport { CompletionsOffsetWellPickerProps, Filters, MappedPad } from '../types';\nimport { MAX_TVD } from '../constants';\n\nimport PadTableRow from './PadTableRow';\nimport { COLUMNS } from './helpers/columns';\nimport { useFilteredData } from './helpers/useFilteredData';\nimport { SortBy, SortDirection } from './helpers/sortPads';\nimport { usePadTableHandlers } from './helpers/usePadTableHandlers';\n\nimport styles from './PadsTableBody.scss';\n\nconst DEFAULT_SLICE_SIZE = 50;\n\ntype Props = {\n pads: MappedPad[];\n searchText: string;\n sortBy: SortBy | null;\n sortDirection: SortDirection;\n filters: Omit<Filters, 'padStatus'>;\n isSelectedPadsLoading: boolean;\n handleSelectPad: ReturnType<typeof usePadTableHandlers>['handleSelectPad'];\n handleSelectWellId: ReturnType<typeof usePadTableHandlers>['handleSelectWellId'];\n} & Pick<CompletionsOffsetWellPickerProps, 'selectedOffsetWellIds' | 'selectedPadId'>;\n\nexport const PadsTableBody: FC<Props> = memo(\n ({\n pads,\n selectedPadId,\n searchText,\n sortBy,\n sortDirection,\n selectedOffsetWellIds,\n filters,\n isSelectedPadsLoading,\n handleSelectPad,\n handleSelectWellId,\n }) => {\n const [slice, setSlice] = useState(DEFAULT_SLICE_SIZE);\n\n const increaseSlice = useCallback(() => {\n setSlice(prevSlice => prevSlice + DEFAULT_SLICE_SIZE);\n }, []);\n\n const padsWithoutMainItem = useMemo(\n () => pads.filter(pad => pad.id.toString() !== selectedPadId?.toString()),\n [pads, selectedPadId]\n );\n\n const mainItem = useMemo(\n () => pads.find(pad => pad.id.toString() === selectedPadId?.toString()),\n [pads, selectedPadId]\n );\n\n // Radius is a pad-level filter and always has a default value, so it doesn't\n // expand rows — only well-level narrowing (search, formation, fleet, TVD) does\n const isExpanded = useMemo(\n () =>\n !!searchText ||\n !!filters.selectedFormations.length ||\n !!filters.selectedFracFleets.length ||\n !!filters.tvdMin ||\n filters.tvdMax !== MAX_TVD,\n [searchText, filters]\n );\n\n const filteredData = useFilteredData({\n data: padsWithoutMainItem,\n searchText,\n sortBy,\n sortDirection,\n selectedWellIds: selectedOffsetWellIds,\n filters,\n mainItem,\n });\n\n useEffect(() => {\n setSlice(DEFAULT_SLICE_SIZE);\n }, [searchText, filters]);\n\n const slicedFilteredData = useMemo(() => filteredData.slice(0, slice), [filteredData, slice]);\n\n if (!mainItem || isSelectedPadsLoading) {\n return <LoaderLogo testId=\"padsLoader\" />;\n }\n\n return (\n <TableBody>\n {[mainItem, ...slicedFilteredData]?.map(pad => (\n <PadTableRow\n isMainPad={pad.id.toString() === selectedPadId?.toString()}\n key={pad.id}\n data={pad}\n isExpanded={isExpanded}\n searchText={searchText}\n handleSelectPad={handleSelectPad}\n selectedOffsetWellIds={selectedOffsetWellIds}\n handleSelectWellId={handleSelectWellId}\n />\n ))}\n {filteredData.length > DEFAULT_SLICE_SIZE && slice < filteredData.length && (\n <TableRow>\n <TableCell colSpan={COLUMNS.length} className={styles.loadMoreCell}>\n <Button onClick={increaseSlice} testId=\"loadMoreButton\">\n Load More\n </Button>\n </TableCell>\n </TableRow>\n )}\n </TableBody>\n );\n }\n);\n"],"names":["PadsTableBody","memo","_ref","_ref2","pads","selectedPadId","searchText","sortBy","sortDirection","selectedOffsetWellIds","filters","isSelectedPadsLoading","handleSelectPad","handleSelectWellId","useState","_useState2","_slicedToArray","_useState","slice","setSlice","increaseSlice","useCallback","prevSlice","padsWithoutMainItem","useMemo","filter","pad","id","toString","mainItem","find","isExpanded","selectedFormations","length","selectedFracFleets","tvdMin","tvdMax","MAX_TVD","filteredData","useFilteredData","data","selectedWellIds","useEffect","slicedFilteredData","_jsx","LoaderLogo","testId","_jsxs","TableBody","children","map","PadTableRow","isMainPad","TableRow","TableCell","colSpan","COLUMNS","className","styles","loadMoreCell","Button","onClick"],"mappings":"0sBAkBA,IAaaA,EAA2BC,GACtC,SAWMC,GAAA,IAAAC,EAVJC,IAAAA,KACAC,IAAAA,cACAC,IAAAA,WACAC,IAAAA,OACAC,IAAAA,cACAC,IAAAA,sBACAC,IAAAA,QACAC,IAAAA,sBACAC,IAAAA,gBACAC,IAAAA,mBAE0BC,EAAAA,EA1BH,IA0B+BC,EAAAC,EAAAC,EAAA,GAA/CC,EAAKH,EAAA,GAAEI,EAAQJ,EAAA,GAEhBK,EAAgBC,GAAY,WAChCF,GAAS,SAAAG,GAAS,OAAIA,EA7BD,KA8BtB,GAAE,IAEGC,EAAsBC,GAC1B,WAAA,OAAMpB,EAAKqB,QAAO,SAAAC,GAAG,OAAIA,EAAIC,GAAGC,cAAevB,aAAa,EAAbA,EAAeuB,cAAW,GACzE,CAACxB,EAAMC,IAGHwB,EAAWL,GACf,WAAA,OAAMpB,EAAK0B,MAAK,SAAAJ,GAAG,OAAIA,EAAIC,GAAGC,cAAevB,aAAa,EAAbA,EAAeuB,cAAW,GACvE,CAACxB,EAAMC,IAKH0B,EAAaP,GACjB,WAAA,SACIlB,GACAI,EAAQsB,mBAAmBC,QAC3BvB,EAAQwB,mBAAmBD,QAC3BvB,EAAQyB,QACVzB,EAAQ0B,SAAWC,EAAO,GAC5B,CAAC/B,EAAYI,IAGT4B,EAAeC,EAAgB,CACnCC,KAAMjB,EACNjB,WAAAA,EACAC,OAAAA,EACAC,cAAAA,EACAiC,gBAAiBhC,EACjBC,QAAAA,EACAmB,SAAAA,IAGFa,GAAU,WACRvB,EAjEqB,GAkEvB,GAAG,CAACb,EAAYI,IAEhB,IAAMiC,EAAqBnB,GAAQ,WAAA,OAAMc,EAAapB,MAAM,EAAGA,EAAM,GAAE,CAACoB,EAAcpB,IAEtF,OAAKW,GAAYlB,EACRiC,EAACC,EAAU,CAACC,OAAO,eAI1BC,EAACC,EAAS,CAAAC,SACNpB,CAA+B,QAA/BA,EAAAA,CAAAA,YAAac,WAAkB,IAAAxC,OAAA,EAAhCA,EAAmC+C,KAAI,SAAAxB,GAAG,OACzCkB,EAACO,EAAW,CACVC,UAAW1B,EAAIC,GAAGC,cAAevB,aAAAA,EAAAA,EAAeuB,YAEhDY,KAAMd,EACNK,WAAYA,EACZzB,WAAYA,EACZM,gBAAiBA,EACjBH,sBAAuBA,EACvBI,mBAAoBA,GANfa,EAAIC,GAOT,IAEHW,EAAaL,OAxFK,IAwF0Bf,EAAQoB,EAAaL,QAChEW,EAACS,EAAQ,CAAAJ,SACPL,EAACU,EAAS,CAACC,QAASC,EAAQvB,OAAQwB,UAAWC,EAAOC,aAAaV,SACjEL,EAACgB,EAAM,CAACC,QAASzC,EAAe0B,OAAO,iBAAgBG,SAAA,oBAQnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PadsTableHead.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableHead.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAQ,cAAc,EAAwB,MAAM,OAAO,CAAC;AAKjF,OAAO,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AAG5D,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAE3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAIpE,KAAK,KAAK,GAAG;IACX,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,gBAAgB,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,kBAAkB,CAAC,CAAC;IAC7E,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC3C,gBAAgB,EAAE,QAAQ,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC,CAAC;IAC1D,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,aAAa,EAAE,aAAa,CAAC;CAC9B,GAAG,IAAI,CAAC,gCAAgC,EAAE,uBAAuB,CAAC,CAAC;AAEpE,QAAA,MAAM,aAAa,EAAE,EAAE,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"PadsTableHead.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableHead.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAQ,cAAc,EAAwB,MAAM,OAAO,CAAC;AAKjF,OAAO,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AAG5D,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAE3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAIpE,KAAK,KAAK,GAAG;IACX,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,gBAAgB,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,kBAAkB,CAAC,CAAC;IAC7E,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC3C,gBAAgB,EAAE,QAAQ,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC,CAAC;IAC1D,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,aAAa,EAAE,aAAa,CAAC;CAC9B,GAAG,IAAI,CAAC,gCAAgC,EAAE,uBAAuB,CAAC,CAAC;AAEpE,QAAA,MAAM,aAAa,EAAE,EAAE,CAAC,KAAK,CAkE5B,CAAC;eAEa,aAAa"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{memo as e,useMemo as t,useCallback as l}from"react";import{Checkbox as r}from"../../Checkbox/Checkbox.js";import{TableCell as o}from"../../../components/Table/TableCell/TableCell.js";import{TableRow as i}from"@material-ui/core";import
|
|
1
|
+
import{memo as e,useMemo as t,useCallback as l}from"react";import{Checkbox as r}from"../../Checkbox/Checkbox.js";import{TableCell as o}from"../../../components/Table/TableCell/TableCell.js";import{TableRow as i}from"@material-ui/core";import s from"./TableSortLabel.js";import{SortDirection as n}from"./helpers/sortPads.js";import{COLUMNS as a}from"./helpers/columns.js";import d from"./PadsTableHead.scss.js";import{jsx as c,jsxs as m}from"react/jsx-runtime";var h=e((function(e){var h=e.handleSelectPads,u=e.allWellIds,f=e.selectedOffsetWellIds,p=e.setSortBy,C=e.setSortDirection,S=e.sortBy,b=e.sortDirection,v=t((function(){return{padsIntermediate:(null==u?void 0:u.length)!==(null==f?void 0:f.length)&&!(null==f||!f.length),isAllPadsSelected:f.length===(null==u?void 0:u.length)}}),[u,f]),j=v.padsIntermediate,g=v.isAllPadsSelected,P=l((function(e){p(e),C(e===S&&b===n.ASC?n.DESC:n.ASC)}),[p,C,S,b]);return c(i,{children:a.map((function(e,t){var l=e.id,i=e.title,u=e.sortBy;return c(o,{className:d.headCell,style:{width:a[t].width},"data-testid":"".concat(l,"Header"),children:m("div",{className:d.cellContent,children:[!t&&c(r,{size:"medium",onChange:function(e){return h(e)},checked:g,indeterminate:j,testId:"selectAllPadsCheckbox"}),c(s,{title:"Sort",active:S===u,sortBy:u,direction:S===u&&b===n.DESC?"desc":"asc",onClick:P,children:i})]})},i)}))})}));export{h as default};
|
|
2
2
|
//# sourceMappingURL=PadsTableHead.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PadsTableHead.js","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableHead.tsx"],"sourcesContent":["import { Dispatch, FC, memo, SetStateAction, useCallback, useMemo } from 'react';\n\nimport { Checkbox } from '../../../componentsV2/Checkbox';\nimport { TableCell } from '../../../components/Table/TableCell/TableCell';\nimport { TableRow } from '../../../components/Table/TableRow';\nimport { CompletionsOffsetWellPickerProps } from '../types';\n\nimport TableSortLabel from './TableSortLabel';\nimport { SortBy, SortDirection } from './helpers/sortPads';\nimport { COLUMNS } from './helpers/columns';\nimport { usePadTableHandlers } from './helpers/usePadTableHandlers';\n\nimport styles from './PadsTableHead.scss';\n\ntype Props = {\n allWellIds: number[];\n handleSelectPads: ReturnType<typeof usePadTableHandlers>['handleSelectPads'];\n setSortBy: (sortBy: SortBy | null) => void;\n setSortDirection: Dispatch<SetStateAction<SortDirection>>;\n sortBy: SortBy | null;\n sortDirection: SortDirection;\n} & Pick<CompletionsOffsetWellPickerProps, 'selectedOffsetWellIds'>;\n\nconst PadsTableHead: FC<Props> = memo(\n ({\n handleSelectPads,\n allWellIds,\n selectedOffsetWellIds,\n setSortBy,\n setSortDirection,\n sortBy,\n sortDirection,\n }) => {\n const { padsIntermediate, isAllPadsSelected } = useMemo(() => {\n const padsIntermediate =\n allWellIds?.length !== selectedOffsetWellIds?.length && !!selectedOffsetWellIds?.length;\n\n const isAllPadsSelected = selectedOffsetWellIds.length === allWellIds?.length;\n return { padsIntermediate, isAllPadsSelected };\n }, [allWellIds, selectedOffsetWellIds]);\n\n const handleChangeSortBy = useCallback(\n (nsortBy: SortBy) => {\n setSortBy(nsortBy);\n setSortDirection(\n nsortBy === sortBy && sortDirection === SortDirection.ASC\n ? SortDirection.DESC\n : SortDirection.ASC\n );\n },\n [setSortBy, setSortDirection, sortBy, sortDirection]\n );\n\n return (\n <TableRow>\n {COLUMNS.map(({ title, sortBy: columnSortBy }, index) => (\n <TableCell\n key={title}\n className={styles.headCell}\n style={{ width: COLUMNS[index].width }}\n >\n <div className={styles.cellContent}>\n {!index && (\n <Checkbox\n size=\"medium\"\n onChange={checked => handleSelectPads(checked)}\n checked={isAllPadsSelected}\n indeterminate={padsIntermediate}\n />\n )}\n <TableSortLabel\n title=\"Sort\"\n active={sortBy === columnSortBy}\n sortBy={columnSortBy}\n direction={\n sortBy === columnSortBy && sortDirection === SortDirection.DESC ? 'desc' : 'asc'\n }\n onClick={handleChangeSortBy}\n >\n {title}\n </TableSortLabel>\n </div>\n </TableCell>\n ))}\n </TableRow>\n );\n }\n);\n\nexport default PadsTableHead;\n"],"names":["PadsTableHead","memo","_ref","handleSelectPads","allWellIds","selectedOffsetWellIds","setSortBy","setSortDirection","sortBy","sortDirection","useMemo","padsIntermediate","length","isAllPadsSelected","handleChangeSortBy","useCallback","nsortBy","SortDirection","ASC","DESC","_jsx","TableRow","children","COLUMNS","map","index","title","columnSortBy","TableCell","className","styles","headCell","style","width","_jsxs","cellContent","Checkbox","size","onChange","checked","indeterminate","TableSortLabel","active","direction","onClick"],"mappings":"4cAuBA,IAAMA,EAA2BC,GAC/B,SAQMC,GAAA,IAPJC,IAAAA,iBACAC,IAAAA,WACAC,IAAAA,sBACAC,IAAAA,UACAC,IAAAA,iBACAC,IAAAA,OACAC,IAAAA,cAEgDC,EAAAA,GAAQ,WAKtD,MAAO,CAAEC,kBAHPP,aAAU,EAAVA,EAAYQ,WAAWP,aAAqB,EAArBA,EAAuBO,WAAYP,UAAAA,EAAuBO,QAGxDC,kBADDR,EAAsBO,UAAWR,aAAU,EAAVA,EAAYQ,QAEzE,GAAG,CAACR,EAAYC,IANRM,IAAAA,iBAAkBE,IAAAA,kBAQpBC,EAAqBC,GACzB,SAACC,GACCV,EAAUU,GACVT,EACES,IAAYR,GAAUC,IAAkBQ,EAAcC,IAClDD,EAAcE,KACdF,EAAcC,IAErB,GACD,CAACZ,EAAWC,EAAkBC,EAAQC,IAGxC,OACEW,EAACC,EAAQ,CAAAC,SACNC,EAAQC,KAAI,
|
|
1
|
+
{"version":3,"file":"PadsTableHead.js","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableHead.tsx"],"sourcesContent":["import { Dispatch, FC, memo, SetStateAction, useCallback, useMemo } from 'react';\n\nimport { Checkbox } from '../../../componentsV2/Checkbox';\nimport { TableCell } from '../../../components/Table/TableCell/TableCell';\nimport { TableRow } from '../../../components/Table/TableRow';\nimport { CompletionsOffsetWellPickerProps } from '../types';\n\nimport TableSortLabel from './TableSortLabel';\nimport { SortBy, SortDirection } from './helpers/sortPads';\nimport { COLUMNS } from './helpers/columns';\nimport { usePadTableHandlers } from './helpers/usePadTableHandlers';\n\nimport styles from './PadsTableHead.scss';\n\ntype Props = {\n allWellIds: number[];\n handleSelectPads: ReturnType<typeof usePadTableHandlers>['handleSelectPads'];\n setSortBy: (sortBy: SortBy | null) => void;\n setSortDirection: Dispatch<SetStateAction<SortDirection>>;\n sortBy: SortBy | null;\n sortDirection: SortDirection;\n} & Pick<CompletionsOffsetWellPickerProps, 'selectedOffsetWellIds'>;\n\nconst PadsTableHead: FC<Props> = memo(\n ({\n handleSelectPads,\n allWellIds,\n selectedOffsetWellIds,\n setSortBy,\n setSortDirection,\n sortBy,\n sortDirection,\n }) => {\n const { padsIntermediate, isAllPadsSelected } = useMemo(() => {\n const padsIntermediate =\n allWellIds?.length !== selectedOffsetWellIds?.length && !!selectedOffsetWellIds?.length;\n\n const isAllPadsSelected = selectedOffsetWellIds.length === allWellIds?.length;\n return { padsIntermediate, isAllPadsSelected };\n }, [allWellIds, selectedOffsetWellIds]);\n\n const handleChangeSortBy = useCallback(\n (nsortBy: SortBy) => {\n setSortBy(nsortBy);\n setSortDirection(\n nsortBy === sortBy && sortDirection === SortDirection.ASC\n ? SortDirection.DESC\n : SortDirection.ASC\n );\n },\n [setSortBy, setSortDirection, sortBy, sortDirection]\n );\n\n return (\n <TableRow>\n {COLUMNS.map(({ id, title, sortBy: columnSortBy }, index) => (\n <TableCell\n key={title}\n className={styles.headCell}\n style={{ width: COLUMNS[index].width }}\n data-testid={`${id}Header`}\n >\n <div className={styles.cellContent}>\n {!index && (\n <Checkbox\n size=\"medium\"\n onChange={checked => handleSelectPads(checked)}\n checked={isAllPadsSelected}\n indeterminate={padsIntermediate}\n testId=\"selectAllPadsCheckbox\"\n />\n )}\n <TableSortLabel\n title=\"Sort\"\n active={sortBy === columnSortBy}\n sortBy={columnSortBy}\n direction={\n sortBy === columnSortBy && sortDirection === SortDirection.DESC ? 'desc' : 'asc'\n }\n onClick={handleChangeSortBy}\n >\n {title}\n </TableSortLabel>\n </div>\n </TableCell>\n ))}\n </TableRow>\n );\n }\n);\n\nexport default PadsTableHead;\n"],"names":["PadsTableHead","memo","_ref","handleSelectPads","allWellIds","selectedOffsetWellIds","setSortBy","setSortDirection","sortBy","sortDirection","useMemo","padsIntermediate","length","isAllPadsSelected","handleChangeSortBy","useCallback","nsortBy","SortDirection","ASC","DESC","_jsx","TableRow","children","COLUMNS","map","index","id","title","columnSortBy","TableCell","className","styles","headCell","style","width","concat","_jsxs","cellContent","Checkbox","size","onChange","checked","indeterminate","testId","TableSortLabel","active","direction","onClick"],"mappings":"4cAuBA,IAAMA,EAA2BC,GAC/B,SAQMC,GAAA,IAPJC,IAAAA,iBACAC,IAAAA,WACAC,IAAAA,sBACAC,IAAAA,UACAC,IAAAA,iBACAC,IAAAA,OACAC,IAAAA,cAEgDC,EAAAA,GAAQ,WAKtD,MAAO,CAAEC,kBAHPP,aAAU,EAAVA,EAAYQ,WAAWP,aAAqB,EAArBA,EAAuBO,WAAYP,UAAAA,EAAuBO,QAGxDC,kBADDR,EAAsBO,UAAWR,aAAU,EAAVA,EAAYQ,QAEzE,GAAG,CAACR,EAAYC,IANRM,IAAAA,iBAAkBE,IAAAA,kBAQpBC,EAAqBC,GACzB,SAACC,GACCV,EAAUU,GACVT,EACES,IAAYR,GAAUC,IAAkBQ,EAAcC,IAClDD,EAAcE,KACdF,EAAcC,IAErB,GACD,CAACZ,EAAWC,EAAkBC,EAAQC,IAGxC,OACEW,EAACC,EAAQ,CAAAC,SACNC,EAAQC,KAAI,WAAsCC,GAAK,IAAxCC,IAAAA,GAAIC,IAAAA,MAAeC,IAARpB,OAAM,OAC/BY,EAACS,EAAS,CAERC,UAAWC,EAAOC,SAClBC,MAAO,CAAEC,MAAOX,EAAQE,GAAOS,OAC/B,cAAA,GAAAC,OAAgBT,EAAW,UAAAJ,SAE3Bc,EAAA,MAAA,CAAKN,UAAWC,EAAOM,YAAYf,SAAA,EAC/BG,GACAL,EAACkB,EAAQ,CACPC,KAAK,SACLC,SAAU,SAAAC,GAAO,OAAItC,EAAiBsC,EAAS,EAC/CA,QAAS5B,EACT6B,cAAe/B,EACfgC,OAAO,0BAGXvB,EAACwB,EAAc,CACbjB,MAAM,OACNkB,OAAQrC,IAAWoB,EACnBpB,OAAQoB,EACRkB,UACEtC,IAAWoB,GAAgBnB,IAAkBQ,EAAcE,KAAO,OAAS,MAE7E4B,QAASjC,EAAmBQ,SAE3BK,QAxBAA,OA+Bf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableSortLabel.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/PadsTable/TableSortLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAQ,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAKpD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AAEF,QAAA,MAAM,cAAc,EAAE,EAAE,CAAC,iBAAiB,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"TableSortLabel.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/PadsTable/TableSortLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAQ,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAKpD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AAEF,QAAA,MAAM,cAAc,EAAE,EAAE,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAahD,CAAC;eAEa,cAAc"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{memo as t}from"react";import{TableSortLabel as r}from"@material-ui/core";import{Tooltip as i}from"../../Tooltip/Tooltip.js";import{jsx as
|
|
1
|
+
import{memo as t}from"react";import{TableSortLabel as r}from"@material-ui/core";import{Tooltip as i}from"../../Tooltip/Tooltip.js";import{jsx as o}from"react/jsx-runtime";var e=t((function(t){var e=t.title,n=t.active,a=t.direction,c=t.onClick,l=t.children,m=t.sortBy;return o(i,{placement:"top-end",title:e,children:o(r,{active:n,direction:a,onClick:function(){return c(m)},"data-testid":"sortButton",children:l})})}));export{e as default};
|
|
2
2
|
//# sourceMappingURL=TableSortLabel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableSortLabel.js","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/PadsTable/TableSortLabel.tsx"],"sourcesContent":["import { FC, memo, PropsWithChildren } from 'react';\nimport { TableSortLabel as MuiTableSortLabel } from '@material-ui/core';\n\nimport { Tooltip } from '../../Tooltip';\n\nimport { SortBy } from './helpers/sortPads';\n\ntype Props = {\n title: string;\n active: boolean;\n direction?: 'asc' | 'desc';\n sortBy: SortBy;\n onClick: (sortBy: SortBy) => void;\n};\n\nconst TableSortLabel: FC<PropsWithChildren<Props>> = memo(\n ({ title, active, direction, onClick, children, sortBy }) => (\n <Tooltip placement=\"top-end\" title={title}>\n <MuiTableSortLabel
|
|
1
|
+
{"version":3,"file":"TableSortLabel.js","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/PadsTable/TableSortLabel.tsx"],"sourcesContent":["import { FC, memo, PropsWithChildren } from 'react';\nimport { TableSortLabel as MuiTableSortLabel } from '@material-ui/core';\n\nimport { Tooltip } from '../../Tooltip';\n\nimport { SortBy } from './helpers/sortPads';\n\ntype Props = {\n title: string;\n active: boolean;\n direction?: 'asc' | 'desc';\n sortBy: SortBy;\n onClick: (sortBy: SortBy) => void;\n};\n\nconst TableSortLabel: FC<PropsWithChildren<Props>> = memo(\n ({ title, active, direction, onClick, children, sortBy }) => (\n <Tooltip placement=\"top-end\" title={title}>\n <MuiTableSortLabel\n active={active}\n direction={direction}\n onClick={() => onClick(sortBy)}\n data-testid=\"sortButton\"\n >\n {children}\n </MuiTableSortLabel>\n </Tooltip>\n )\n);\n\nexport default TableSortLabel;\n"],"names":["TableSortLabel","memo","_ref","title","active","direction","onClick","children","sortBy","_jsx","Tooltip","placement","MuiTableSortLabel"],"mappings":"2KAeMA,IAAAA,EAA+CC,GACnD,SAAAC,GAAA,IAAGC,IAAAA,MAAOC,IAAAA,OAAQC,IAAAA,UAAWC,IAAAA,QAASC,IAAAA,SAAUC,IAAAA,OAAM,OACpDC,EAACC,EAAO,CAACC,UAAU,UAAUR,MAAOA,EAAMI,SACxCE,EAACG,EAAiB,CAChBR,OAAQA,EACRC,UAAWA,EACXC,QAAS,WAAA,OAAMA,EAAQE,EAAQ,EAC/B,cAAY,aAAYD,SAEvBA,KAEK"}
|