@corva/ui 3.38.0-2 → 3.38.0-rc.0
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/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/BICOffsetPickerDialog/index.js +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/index.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/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/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/ConfirmationPopup.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.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/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/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/OffsetWellPickerV4.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/Filter.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/OffsetWellPickerV5.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/OffsetWellPickerV5.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/OffsetWellPickerV5WithStore.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/api/user-settings/constants.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/api/user-settings/constants.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/api/user-settings/fetchUserSettings.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/api/user-settings/fetchUserSettings.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/api/user-settings/saveUserSettings.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/api/user-settings/saveUserSettings.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/AppHeader.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/AppHeader.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/Filter.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/Filter.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/Filter.module.css.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.module.css.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/DrawControl/DrawControl.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/DrawControl/DrawControl.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LassoTip/LassoTip.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LassoTip/LassoTip.module.css.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/RadiusInput/RadiusInput.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ScaleIndicator/ScaleIndicator.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ScaleIndicator/ScaleIndicator.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ScaleIndicator/ScaleIndicator.module.css.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ScaleIndicator/ScaleIndicator.module.css.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/WellTooltip/WellTooltip.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/WellTooltip/WellTooltip.module.css.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/constants.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useLassoSelection.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useLassoSelection.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapBounds.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapViewState.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapViewState.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useWellMarkers.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getStatusColor.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getStatusColor.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.module.css.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTable.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableHead.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableHead.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableHead.module.css.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableRow.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableRow.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/SubjectWellMark.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/SubjectWellMark.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/constants.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/constants.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/effects/useAdvancedWells.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/effects/useAdvancedWells.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/effects/useAssetsData.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/effects/useAssetsData.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/effects/useFetchWells.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/effects/useFilteredWells.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/effects/useFilteredWells.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/effects/usePinnedWells.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/effects/usePinnedWells.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/effects/useSearchedWells.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/effects/useSearchedWells.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/effects/useTableColumns.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/effects/useTableColumns.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/stores/filter-store/FilterStoreProvider.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/stores/filter-store/FilterStoreProvider.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/stores/filter-store/createFilterStore.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/stores/user-settings-store/UserSettingsStoreContext.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/stores/user-settings-store/UserSettingsStoreContext.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/stores/user-settings-store/UserSettingsStoreProvider.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/stores/user-settings-store/UserSettingsStoreProvider.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/stores/user-settings-store/createUserSettingsStore.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/stores/user-settings-store/createUserSettingsStore.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/stores/user-settings-store/useUserSettingsStore.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/stores/user-settings-store/useUserSettingsStore.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/stores/view-store/ViewStoreProvider.js +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/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/BICOffsetPickerDialog/index.js +1 -1
- package/components/BICOffsetPickerDialog/index.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/DocumentViewer/DocumentViewer.js +1 -1
- package/components/DocumentViewer/DocumentViewer.js.map +1 -1
- 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/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/ConfirmationPopup.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.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/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.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/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
- package/components/OffsetWellPickerV4/OffsetWellPickerV4.js.map +1 -1
- package/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
- package/components/OffsetWellPickerV4/components/Filter/Filter.js.map +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js.map +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js.map +1 -1
- package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
- package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js.map +1 -1
- package/components/OffsetWellPickerV5/OffsetWellPickerV5.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/OffsetWellPickerV5.js +1 -1
- package/components/OffsetWellPickerV5/OffsetWellPickerV5.js.map +1 -1
- package/components/OffsetWellPickerV5/OffsetWellPickerV5.types.d.ts +2 -4
- package/components/OffsetWellPickerV5/OffsetWellPickerV5.types.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/OffsetWellPickerV5WithStore.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/OffsetWellPickerV5WithStore.js +1 -1
- package/components/OffsetWellPickerV5/api/user-settings/constants.d.ts +2 -0
- package/components/OffsetWellPickerV5/api/user-settings/constants.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/api/user-settings/constants.js +2 -0
- package/components/OffsetWellPickerV5/api/user-settings/constants.js.map +1 -0
- package/components/OffsetWellPickerV5/api/user-settings/fetchUserSettings.d.ts +3 -0
- package/components/OffsetWellPickerV5/api/user-settings/fetchUserSettings.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/api/user-settings/fetchUserSettings.js +2 -0
- package/components/OffsetWellPickerV5/api/user-settings/fetchUserSettings.js.map +1 -0
- package/components/OffsetWellPickerV5/api/user-settings/index.d.ts +4 -0
- package/components/OffsetWellPickerV5/api/user-settings/index.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/api/user-settings/saveUserSettings.d.ts +3 -0
- package/components/OffsetWellPickerV5/api/user-settings/saveUserSettings.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/api/user-settings/saveUserSettings.js +2 -0
- package/components/OffsetWellPickerV5/api/user-settings/saveUserSettings.js.map +1 -0
- package/components/OffsetWellPickerV5/components/AppHeader/AppHeader.js +1 -1
- package/components/OffsetWellPickerV5/components/AppHeader/AppHeader.js.map +1 -1
- package/components/OffsetWellPickerV5/components/Filter/Filter.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/Filter/Filter.js +1 -1
- package/components/OffsetWellPickerV5/components/Filter/Filter.js.map +1 -1
- package/components/OffsetWellPickerV5/components/Filter/Filter.module.css.js +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.js +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.module.css.js +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.types.d.ts +9 -9
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.types.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/DrawControl/DrawControl.d.ts +27 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/DrawControl/DrawControl.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/DrawControl/DrawControl.js +2 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/DrawControl/DrawControl.js.map +1 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/DrawControl/index.d.ts +2 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/DrawControl/index.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LassoTip/LassoTip.d.ts +3 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LassoTip/LassoTip.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LassoTip/LassoTip.js +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LassoTip/LassoTip.module.css.js +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/RadiusInput/RadiusInput.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/RadiusInput/RadiusInput.js +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ScaleIndicator/ScaleIndicator.d.ts +8 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ScaleIndicator/ScaleIndicator.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ScaleIndicator/ScaleIndicator.js +2 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ScaleIndicator/ScaleIndicator.js.map +1 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ScaleIndicator/ScaleIndicator.module.css.js +2 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ScaleIndicator/ScaleIndicator.module.css.js.map +1 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ScaleIndicator/index.d.ts +2 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ScaleIndicator/index.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/WellTooltip/WellTooltip.d.ts +0 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/WellTooltip/WellTooltip.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/WellTooltip/WellTooltip.js +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/WellTooltip/WellTooltip.module.css.js +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/constants.d.ts +13 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/constants.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/constants.js +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/index.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useLassoSelection.d.ts +19 -5
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useLassoSelection.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useLassoSelection.js +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useLassoSelection.js.map +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapBounds.d.ts +4 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapBounds.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapBounds.js +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapViewState.d.ts +24 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapViewState.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapViewState.js +2 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapViewState.js.map +1 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useTooltip.d.ts +0 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useTooltip.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useWellMarkers.d.ts +6 -4
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useWellMarkers.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useWellMarkers.js +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getStatusColor.d.ts +10 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getStatusColor.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getStatusColor.js +2 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getStatusColor.js.map +1 -0
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.d.ts +7 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.module.css.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.d.ts +7 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.js.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.d.ts +5 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTable.d.ts +3 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTable.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTable.js.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableHead.d.ts +3 -2
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableHead.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableHead.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableHead.js.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableHead.module.css.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableRow.d.ts +3 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableRow.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableRow.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableRow.js.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/SubjectWellMark.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/SubjectWellMark.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/SubjectWellMark.js.map +1 -1
- package/components/OffsetWellPickerV5/constants.js +1 -1
- package/components/OffsetWellPickerV5/constants.js.map +1 -1
- package/components/OffsetWellPickerV5/effects/index.d.ts +14 -12
- package/components/OffsetWellPickerV5/effects/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/effects/useAdvancedWells.d.ts +1 -1
- package/components/OffsetWellPickerV5/effects/useAdvancedWells.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/effects/useAdvancedWells.js +1 -1
- package/components/OffsetWellPickerV5/effects/useAdvancedWells.js.map +1 -1
- package/components/OffsetWellPickerV5/effects/useAssetsData.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/effects/useAssetsData.js +1 -1
- package/components/OffsetWellPickerV5/effects/useAssetsData.js.map +1 -1
- package/components/OffsetWellPickerV5/effects/useFetchWells.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/effects/useFetchWells.js +1 -1
- package/components/OffsetWellPickerV5/effects/useFilteredWells.d.ts +1 -1
- package/components/OffsetWellPickerV5/effects/useFilteredWells.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/effects/useFilteredWells.js +1 -1
- package/components/OffsetWellPickerV5/effects/useFilteredWells.js.map +1 -1
- package/components/OffsetWellPickerV5/effects/usePinnedWells.d.ts +11 -0
- package/components/OffsetWellPickerV5/effects/usePinnedWells.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/effects/usePinnedWells.js +2 -0
- package/components/OffsetWellPickerV5/effects/usePinnedWells.js.map +1 -0
- package/components/OffsetWellPickerV5/effects/useSearchedWells.d.ts +11 -0
- package/components/OffsetWellPickerV5/effects/useSearchedWells.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/effects/useSearchedWells.js +2 -0
- package/components/OffsetWellPickerV5/effects/useSearchedWells.js.map +1 -0
- package/components/OffsetWellPickerV5/effects/useTableColumns.d.ts +1 -1
- package/components/OffsetWellPickerV5/effects/useTableColumns.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/effects/useTableColumns.js +1 -1
- package/components/OffsetWellPickerV5/effects/useTableColumns.js.map +1 -1
- package/components/OffsetWellPickerV5/stores/filter-store/FilterStoreProvider.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/stores/filter-store/FilterStoreProvider.js +1 -1
- package/components/OffsetWellPickerV5/stores/filter-store/FilterStoreProvider.js.map +1 -1
- package/components/OffsetWellPickerV5/stores/filter-store/createFilterStore.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/stores/filter-store/createFilterStore.js +1 -1
- package/components/OffsetWellPickerV5/stores/filter-store/types.d.ts +3 -1
- package/components/OffsetWellPickerV5/stores/filter-store/types.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/stores/user-settings-store/UserSettingsStoreContext.d.ts +3 -0
- package/components/OffsetWellPickerV5/stores/user-settings-store/UserSettingsStoreContext.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/stores/user-settings-store/UserSettingsStoreContext.js +2 -0
- package/components/OffsetWellPickerV5/stores/user-settings-store/UserSettingsStoreContext.js.map +1 -0
- package/components/OffsetWellPickerV5/stores/user-settings-store/UserSettingsStoreProvider.d.ts +8 -0
- package/components/OffsetWellPickerV5/stores/user-settings-store/UserSettingsStoreProvider.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/stores/user-settings-store/UserSettingsStoreProvider.js +2 -0
- package/components/OffsetWellPickerV5/stores/user-settings-store/UserSettingsStoreProvider.js.map +1 -0
- package/components/OffsetWellPickerV5/stores/user-settings-store/createUserSettingsStore.d.ts +28 -0
- package/components/OffsetWellPickerV5/stores/user-settings-store/createUserSettingsStore.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/stores/user-settings-store/createUserSettingsStore.js +2 -0
- package/components/OffsetWellPickerV5/stores/user-settings-store/createUserSettingsStore.js.map +1 -0
- package/components/OffsetWellPickerV5/stores/user-settings-store/index.d.ts +5 -0
- package/components/OffsetWellPickerV5/stores/user-settings-store/index.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/stores/user-settings-store/useUserSettingsStore.d.ts +3 -0
- package/components/OffsetWellPickerV5/stores/user-settings-store/useUserSettingsStore.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/stores/user-settings-store/useUserSettingsStore.js +2 -0
- package/components/OffsetWellPickerV5/stores/user-settings-store/useUserSettingsStore.js.map +1 -0
- package/components/OffsetWellPickerV5/stores/utils/useSyncProps.d.ts +1 -1
- package/components/OffsetWellPickerV5/stores/utils/useSyncProps.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/stores/view-store/ViewStoreProvider.d.ts +4 -0
- package/components/OffsetWellPickerV5/stores/view-store/ViewStoreProvider.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/stores/view-store/ViewStoreProvider.js +1 -1
- package/components/OffsetWellPickerV5/stores/view-store/createViewStore.d.ts +1 -1
- package/components/OffsetWellPickerV5/stores/view-store/createViewStore.d.ts.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/package.json +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapZoom.js +0 -2
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapZoom.js.map +0 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getAllFormations.js +0 -2
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getAllFormations.js.map +0 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapZoom.d.ts +0 -13
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapZoom.d.ts.map +0 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapZoom.js +0 -2
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapZoom.js.map +0 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getAllFormations.d.ts +0 -3
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getAllFormations.d.ts.map +0 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getAllFormations.js +0 -2
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getAllFormations.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/toConsumableArray";import o from"@babel/runtime/helpers/asyncToGenerator";import s from"@babel/runtime/helpers/slicedToArray";import n from"@babel/runtime/regenerator";import{useState as r,useMemo as i,useEffect as p,useRef as c,useCallback as m}from"react";import l from"classnames";import{uniqBy as a,uniq as d,sortBy as u,isEmpty as j}from"lodash";import{Replay as f}from"@material-ui/icons";import{Table as C,TableHead as A}from"@material-ui/core";import{useFetchWells as v}from"./effects/useFetchWells.js";import{useAdvancedWells as h}from"./effects/useAdvancedWells.js";import{useBicWells as S}from"./effects/useBicWells.js";import{useCompanyMetricKey as g}from"./effects/useCompanyMetricKey.js";import{useFilterOptions as V}from"./effects/useFilterOptions.js";import{useFilteredWells as I}from"./effects/useFilteredWells.js";import{useSortedWells as b}from"./effects/useSortedWells.js";import"./effects/useAssetsData.js";import{useTableColumns as P}from"./effects/useTableColumns.js";import{useCompanyProvider as D}from"./effects/useCompanyProvider.js";import{useCompanies as T}from"./effects/useCompanies.js";import{useFetchSubjectWell as x}from"./effects/useFetchSubjectWell.js";import"uuid";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import"../../clients/jsonApi/index.js";import"../../clients/subscriptions/constants.js";import"../../clients/subscriptions.v1.js";import"../../clients/subscriptions/subscriptions-client.factory.js";import"../../clients/api/apiCore.js";import"../../clients/constants.js";import"../../clients/sso/auth0.js";import"../../clients/sso/oauth2.js";import"./api/shared/dataFormatter.js";import{fetchWellsByIds as y}from"./api/wells/fetchWellsByIds.js";import{fetchCompanyIdsByWellIds as W}from"./api/wells/fetchCompanyIdsByWellIds.js";import{FilterType as F,DEFAULT_RADIUS_MILES as B,ALL_SECTION_KEY as O,ColumnType as k,COMPANY_PROVIDERS_FOR_IDAS as w,ROWS_PER_PAGE as M,RESYNC_STATUS as E,MAX_OFFSET_SIZE as L}from"./constants.js";import{AppHeader as H}from"./components/AppHeader/AppHeader.js";import{Filter as N}from"./components/Filter/Filter.js";import{WellsMap as G}from"./components/Map/WellsMap.js";import{OffsetWellsTable as R}from"./components/OffsetWellsTable/OffsetWellsTable.js";import{OffsetWellsTableHead as q}from"./components/OffsetWellsTable/OffsetWellsTableHead.js";import{AdvancedSearch as z}from"./components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js";import{SEARCH_CATEGORIES as U}from"./components/OffsetWellsTable/AdvancedSearch/constants.js";import{getCoordinatedWells as K}from"./utils/index.js";import{getIsImperial as Z}from"./utils/getIsImperial.js";import{usePickerPropsStore as _}from"./stores/picker-props-store/usePickerPropsStore.js";import{useFilterStore as X}from"./stores/filter-store/useFilterStore.js";import{useViewStore as J}from"./stores/view-store/useViewStore.js";import Q from"./OffsetWellPickerV5.module.css.js";import Y from"./components/OffsetWellsTable/OffsetWellsTable.module.css.js";import"../../utils/index.js";import{jsx as $,jsxs as ee}from"react/jsx-runtime";import"@material-ui/core/Snackbar";import"../Notifications/Toast.js";import"../Notifications/Notifications.scss.js";import{NotificationsContainer as te}from"../Notifications/NotificationsContainer.js";import oe from"../../styles/typography/index.js";import"../../styles/counter/counter.module.scss.js";import"../DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider/IsInsideIsolatedDcAppProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"@icon-park/react/es/all";import"../../icons/IconParkProvider.js";import"../../icons/customIcons/icons/AddMessage.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/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/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/Lasso.js";import"../../utils/mobileDetect.js";import"../IconButton/index.js";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/appPackages.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import"../../constants/corvaCompanyId.js";import"../GradientManager/configuration/constants.js";import"../Modal/CorvaModal.css.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../AppIcon/AppIcon.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../DevCenter/AppContext.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.js";import"../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../componentsV2/Text/Text.js";import"../../componentsV2/Grid/Grid.js";import"../../componentsV2/Grid/Cell.js";import"../../componentsV2/Header/Header.scss.js";import"../../componentsV2/Button/Button.js";import"../../componentsV2/ButtonIcon/ButtonIcon.js";import"../../componentsV2/Tooltip/Tooltip.scss.js";import"../../componentsV2/Popover/Popover.js";import"../../componentsV2/Radio/Radio.js";import"../../componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js";import"../../componentsV2/Checkbox/Checkbox.js";import"../../componentsV2/TextInput/TextInput.js";import"../../componentsV2/Label/Label.js";import"../../componentsV2/TextEndTruncated/TextEndTruncated.scss.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.constants.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.scss.js";import"../../componentsV2/TextLink/TextLink.js";import"../../componentsV2/Chip/Chip.js";import"../../componentsV2/ChipAlert/ChipAlert.js";import"../../componentsV2/ChipIndicator/ChipIndicator.js";import"../../componentsV2/Avatar/Avatar.js";import"../../componentsV2/AvatarGroup/AvatarGroup.js";import"@material-ui/lab";import"../../componentsV2/ToggleButtons/ToggleButtons.scss.js";import"../../componentsV2/Paper/Paper.js";import"../../componentsV2/ModalWindow/ModalWindow.scss.js";import{Modal as se}from"../../componentsV2/Modal/Modal.js";import"../../componentsV2/Menu/Menu.js";import"../../componentsV2/utils.js";import"../../componentsV2/Hint/Hint.scss.js";import"../../componentsV2/Counter/Counter.js";import"../../componentsV2/BadgeBase/BadgeBase.scss.js";import"../../componentsV2/BadgeDot/BadgeDot.scss.js";import"../../componentsV2/LoaderLinear/LoaderLinear.scss.js";import"../../componentsV2/LoaderLogo/LoaderLogo.constants.js";import"../../componentsV2/LoaderLogo/LoaderLogo.scss.js";import"../../componentsV2/Switch/Switch.js";import"../../componentsV2/Tabs/Tabs.js";import"../../componentsV2/EmptyState/EmptyState.scss.js";import"../../componentsV2/FileIcon/FileIcon.js";import"../../componentsV2/Tag/Tag.js";import"react-dropzone";import"../../componentsV2/FilesDropzone/FilesDropzone.scss.js";import"../../componentsV2/FilesLoader/FilesLoader.scss.js";import"../../componentsV2/FilesProcessor/FilesProcessor.scss.js";import"../../componentsV2/Skeleton/Skeleton.scss.js";import"../../utils/main.js";import"../../componentsV2/CopyToClipboard/CopyToClipboard.scss.js";import"../../componentsV2/Stepper/Step/Step.scss.js";import"../../componentsV2/Stepper/Stepper.scss.js";import"../../componentsV2/ButtonLive/ButtonLive.js";import"../../componentsV2/ButtonText/ButtonText.js";import"../../componentsV2/IndicatorLive/IndicatorLive.js";import"../../componentsV2/Accordion/Accordion.scss.js";import"../../componentsV2/Breadcrumbs/Breadcrumbs.scss.js";import"../../componentsV2/BadgeComment/BadgeComment.js";import"../../componentsV2/AppContainer/AppContainer.js";import"../../componentsV2/AppContainer/AppContainer.constants.js";import"../../componentsV2/AppFooter/AppFooter.js";import"../../componentsV2/AppCommonsProvider/AppCommonsContext.js";import"../../componentsV2/AppHeader/AppHeader.constants.js";import"../../componentsV2/AppHeader/AppBadge/AppBadge.scss.js";import"../../componentsV2/AppHeader/AppAssets/utils.js";import"../../componentsV2/AppHeader/AppAssets/AppAssets.scss.js";import"../PadModeSelect/PadModeSelect.js";import"../../componentsV2/AppHeader/PadMode/PadMode.scss.js";import"../../constants/streamSourceType.js";import"../../types/shared/Completions.js";import"../PadModeSelect/types.js";import"lodash/flatten";import"lodash/partition";import"../../componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.js";import"../../componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.constants.js";import"../../componentsV2/PadModeSelect/WellStreamActivityStatus/WellStreamActivityStatus.scss.js";import"../../componentsV2/PadModeSelect/PadModeSelect.constants.js";import"../../componentsV2/PadModeSelect/PadModeSelect.scss.js";import"querystring";import"uuid/v1";import"jsona";import"../../utils/env.js";import"../StatusBadge/constants.js";import"lodash/isEmpty";import"lodash/sortBy";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import{useGlobalOffsetWellsSync as ne}from"../../effects/useGlobalOffsetWellsSync.js";import"../../componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js";import"../../componentsV2/UniversalLink/UniversalLink.scss.js";import"../../componentsV2/AppHeader/V3/AssetChips/AssetChips.scss.js";import"../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js";import"../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.constants.js";import"../../componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js";import"../../componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.scss.js";import"../../componentsV2/AppDqPopover/DqAlert/DqAlert.scss.js";import"../../componentsV2/AppDqPopover/DqAsset/DqAsset.scss.js";import"../../componentsV2/AppDqPopover/AppDqPopover.scss.js";import"../../utils/getSingleAsset.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js";import"../../componentsV2/AppHeader/V3/AssetSelector/constants.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorSelect.scss.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/loadAssets.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelector.scss.js";import"../../componentsV2/AppHeader/V3/AppTitle/AppTitle.constants.js";import"../../componentsV2/AppContainer/headerCommon.scss.js";import"../../componentsV2/AppHeader/V3/AppTitle/AppTitle.scss.js";import"../../componentsV2/AppHeader/V3/constants.scss.js";import"@babel/runtime/helpers/typeof";import"../../componentsV2/AppHeader/V3/SettingsButton/SettingsButton.js";import"../../componentsV2/AppHeader/V3/SettingsButton/SettingsButton.constants.js";import"../../componentsV2/AppSettings/AppSettings.js";import"../../componentsV2/AppSettings/AppSettings.constants.js";import"../../componentsV2/AppSettings/AppSettingsPinningContext.js";import"../../componentsV2/AppSizeProvider/AppSizeProvider.js";import"../../componentsV2/AppHeader/V3/Actions/Actions.constants.js";import"../../componentsV2/AppHeader/V3/Actions/Actions.scss.js";import"../../componentsV2/AppHeader/V3/AppHeaderV3.scss.js";import"../../componentsV2/AppHeader/AppHeader.scss.js";import"../../componentsV2/OffsetWellsButton/OffsetWellsButton.js";import"../../componentsV2/Autocomplete/Autocomplete.scss.js";import"../../componentsV2/Menu/MenuItem/MenuItem.js";import"../../componentsV2/Autocomplete/AutocompleteListBox.js";import"../../componentsV2/AppSettingsDivider/AppSettingsDivider.scss.js";import"../../componentsV2/WellArchivedMessage/WellArchivedMessage.js";import"../../componentsV2/DatePicker/DatePicker.js";import"../../componentsV2/DragHandle/DragHandle.js";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"rollbar";import"@rollbar/react";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.scss.js";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../Icons/AnnotationIcon.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../Annotations/AnnotationsContext.js";import"../Toaster/Toaster.js";import"../HelpCenter/HelpCenterIcon.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../AssetEditor/index.js";import"../AssetEditorV2/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import re from"../LoadingIndicator/LoadingIndicator.js";import"../Typography.js";import"../RealTimeValuesSidebar/RealTimeSidebar.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../ErrorBoundary/ErrorBoundary.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../SlateFormattedText/SlateFormattedText.js";import"../SlateFormattedText/RenderElements.js";import"slate";import"../EmptyState/EmptyState.js";import"../ParameterCharts/ParameterCharts.js";import"../ParameterCharts/AddEditTrack.js";import"../ChartActionsList/ChartActionsList.js";import"../CopyToClipboard/CopyToClipboard.js";import"../AssetEditor/AssetEditorAutocomplete.js";import"../AssetEditor/SingleAssetEditor.js";import"react-color";import"../SettingEditors/ColorEditor/style.css.js";import"../SettingEditors/DropdownEditor/index.js";import"../SwitchControl/index.js";import"../ColorPicker/ColorPicker.js";import"../Chart/components/ChartButton.js";import"../Chart/components/ChartButtons.js";import"../Chart/components/ChartWrapper.js";import"../Chart/components/AxisDropdown.js";import"../Chart/components/ChartSelect.js";import"../Chart/components/buttons/DragToZoomButton.js";import"../Chart/components/buttons/ZoomInButton.js";import"../Chart/components/buttons/ZoomOutButton.js";import"../Chart/components/buttons/PanButton.js";import"../Chart/components/buttons/ResetZoomButton.js";import"../Chart/components/buttons/HideAxesButton.js";import"../Chart/components/buttons/ChartTypeButton.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../TruncatedText/index.js";import"../MiddleTruncatedText/MiddleTruncatedText.js";import"../RangeSlider/constants.js";import"../RangeSlider/Input.css.js";import"../RangeSlider/RangeSlider.css.js";import"../AdvancedSlider/AdvancedSlider.js";import"../Breadcrumbs/index.js";import"../VirtualizedTable/index.js";import"../EmptyView/EmptyView.js";import"../EmptyView/EmptyAppView/EmptyAppView.js";import ie from"../Button/components/Button/index.js";import"moment-timezone";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import"../ContextMenuItem/index.js";import"../FolderMenuItem/index.js";import"../EditableItem/EditableItem/index.js";import"../EditableItem/EditableItemWithBadge/index.js";import"../Checkbox/index.js";import"../FolderMenuItemWithLinks/index.js";import"../TextField/index.js";import"../Chip/index.js";import"../Counter/index.js";import"../AnchorsList/AnchorsList.js";import"../Select/index.js";import"../Select/SelectFilterBy.js";import"../CustomSelect/index.js";import"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../ResizableTable/ResizableTable.js";import"../GradientPicker/GradientPicker.js";import"../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"../GradientManager/GradientPreview/GradientPreview.js";import"../GradientManager/GradientSelect.styles.js";import"../GradientManager/GradientManager.styles.js";import"../Drillstring/BHASchematic.js";import"../Drillstring/BHATable/index.js";import"../Drillstring/BHAComponentIcon.js";import"../Drillstring/BHAComponentDetail/index.js";import"../Drillstring/BHATileIcon.js";import"../Drillstring/BHATile/BHATile.js";import"../Drillstring/BHAList/BHAList.js";import"../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../Casing/CasingTable/index.js";import"../Casing/CasingComponentIcon.js";import"../Casing/CasingTileIcon.js";import"../Casing/CasingTableV2/CasingTableV2.js";import"../Casing/CasingTile/CasingTile.js";import"../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../WellSummary/WellSummaryItemLabel.js";import"../WellSummary/WellSummaryItemTitle.js";import"../WellSummary/WellSummaryItemValue.js";import"../WellSummary/ActivitySummaryChart.js";import"../WellSummary/FracWirelineTimeChart.js";import"../BICOffsetPickerDialog/index.js";import"../OffsetWellButton/OffsetWellButton.js";import"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../OffsetWellPickerV3/index.js";import"../OffsetWellChips/Chip.js";import"../OffsetWellChips/ChipsContainer.js";import"zustand";import"./stores/picker-props-store/PickerPropsStoreContext.js";import"lodash/isEqual";import"./stores/filter-store/FilterStoreContext.js";import"./stores/view-store/ViewStoreContext.js";import"../OffsetWellPickerV4/utils/apiCalls.js";import"../OffsetWellPickerV4/effects/useAdvancedWells.js";import"../OffsetWellPickerV4/constants.js";import"react-virtualized";import"../OffsetWellPickerV4/effects/useAssetsData.js";import"../../permissions/PermissionsContext.js";import"../../permissions/constants/index.js";import"../../permissions/withPermissionsHOC.js";import"../../permissions/ProvidePermissions.js";import"../OffsetWellPickerV4/components/AppHeader/AppHeader.js";import"../OffsetWellPickerV4/components/Toolbar/Toolbar.js";import"../OffsetWellPickerV4/components/Filter/Filter.js";import"../OffsetWellPickerV4/components/Map/WellsMap.js";import"../OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js";import"../OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/constants.js";import"../OffsetWellPickerV4/utils/index.js";import"../OffsetWellPickerV4/OffsetWellPickerV4.module.css.js";import"../OffsetWellMap/OffsetWellMap.js";import"../ConfirmationDialog.js";import"../TextLink/index.js";import"../Avatar/index.js";import"../Template/TemplatePopover/index.js";import"../Template/TemplateSharingDialog/index.js";import"../MenuItem/index.js";import"../MiddleTruncate/MiddleTruncate.js";import"../PinnableFilters/PinnableFilters.js";import"../HeaderLayout/HeaderLayout.js";import"../PadOffsetsPicker/PadOffsetsPicker.js";import"../PadOffsetsPicker/OffsetAssetChip.js";import"../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../PadOffsetsPicker/StagesSelector.js";import"../PadOffsetsPickerV2/PadOffsetsPickerV2.js";import"../Table/TableToolbar/TableToolbar.js";import"../Table/TableContainer/TableContainer.js";import"../Table/TableCell/TableCell.js";import"../Table/TablePagination/TablePagination.js";import"../Table/TablePaginationActions/TablePaginationActions.js";import{Tooltip as pe}from"../Tooltip/Tooltip.js";import"../Tooltip/ScrollableTooltip.js";import"../PriceInput/PriceInput.js";import"../LabelsCounter/LabelsCounter.js";import"../Stepper/Stepper.js";import"../Stepper/Step/Step.js";import"../Stepper/StepsWrapper.js";import"../Comment/CommentIcon/index.js";import"../FilesLoader/FilesLoader.js";import"../../componentsV2/FileIcon/icons/ArchiveFileIcon.js";import"../../componentsV2/FileIcon/icons/CSVFileIcon.js";import"../../componentsV2/FileIcon/icons/DocFileIcon.js";import"../../componentsV2/FileIcon/icons/EDMFileIcon.js";import"../../componentsV2/FileIcon/icons/ExcelFileIcon.js";import"../../componentsV2/FileIcon/icons/ImageFileIcon.js";import"../../componentsV2/FileIcon/icons/JsonFileIcon.js";import"../../componentsV2/FileIcon/icons/LasFileIcon.js";import"../../componentsV2/FileIcon/icons/OtherFileIcon.js";import"../../componentsV2/FileIcon/icons/PdfFileIcon.js";import"../../componentsV2/FileIcon/icons/PowerPointFileIcon.js";import"../../componentsV2/FileIcon/icons/TxtFileIcon.js";import"../../componentsV2/FileIcon/icons/UnknownFileIcon.js";import"../../componentsV2/FileIcon/icons/VideoFileIcon.js";import"../../componentsV2/FileIcon/icons/XmlFileIcon.js";import"../SearchInput/index.js";import"../FeedItem/FeedItem.js";import"../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../PostInput/PostInput.js";import"../KeyboardDateTimePicker.js";import"../AddComment/Popover.js";import"../AddComment/Popup.js";import"../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../StageDesignVActual/ComparisonHeader.js";import"../StageDesignVActual/ComparisonRow.js";import"../EmbeddedApp/DevCenterEmbeddedApp.js";import"../EmbeddedApp/EmbeddedApp.js";import"../Autocomplete/Autocomplete.js";import"../DocumentViewer/DocumentViewer.js";import"../ColorPickerPalette/ColorPickerPalette.js";import"../Search/Search.js";import"../Search/components/Listbox.js";import"../Search/components/Paper.js";import"../Search/components/RecentSearches.js";import"../Search/components/Groups.js";import"../Search/components/SelectAllListItem.js";import"../StatusBadge/index.js";import"../Attachment/index.js";import"../EmojiIconButton.js";import"../FileUploadIconButton.js";import"../FilePreview/index.js";import"../FailedFileUploading.js";import"../UserMention/index.js";import"../CommentsInfo/index.js";import"../CommentInput/index.js";import"../Comment/index.js";import"../CommentLoader.js";import"../AssetNameLabel/AssetStatusBadge.js";import"../AssetEditorV2/components/PrimaryAssetSelect.js";import"../AssetEditorV2/components/SecondaryAssetSelect.js";import"../AssetEditorV2/components/SelectItem.js";import"../AssetEditorV2/components/MultipleAssetsToggle.js";import"../AssetEditorV2/components/PrimaryAssetSelectV2.js";import"../EChartsWrapper/EChartsWrapper.js";import"../AssetsMultipleSelector/AssetsMultipleSelector.js";import"@material-ui/icons/Close";import"@material-ui/icons/GetApp";import"../GoogleDocsViewer/index.js";import"../NewDocumentViewer/effects/useFileContent.js";import"../NewDocumentViewer/styles.js";import"../FilesLoaderV2/styles.js";import"../FilesDropzone/styles.js";import"../FilesProcessor/styles.js";import"../Hint/styles.js";import"@babel/runtime/helpers/taggedTemplateLiteral";import"fparser";import"../Formula/useFormulaStyles.js";import"../Formula/RootXIcon.js";import"../Formula/FormulaTextEditor.js";import"../Formula/CloseSuggestion.js";import"../Formula/SuggestionsMenu.js";import{showInfoNotification as ce}from"../../utils/notificationToasts.js";function me(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,s)}return o}function le(t){for(var o=1;o<arguments.length;o++){var s=null!=arguments[o]?arguments[o]:{};o%2?me(Object(s),!0).forEach((function(o){e(t,o,s[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):me(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}var ae="OffsetWellPickerV5",de=function(){var me,de=_((function(e){return e.open})),ue=_((function(e){return e.isWDUser})),je=_((function(e){return e.defaultSubjectWell})),fe=_((function(e){return e.currentUser})),Ce=_((function(e){return e.offsetSettings})),Ae=_((function(e){return e.isViewOnly})),ve=_((function(e){return e.onClose})),he=_((function(e){return e.onSave})),Se=_((function(e){return e.maxOffsetSize})),ge=_((function(e){return e.localMaxOffsetSize})),Ve=_((function(e){return e.syncAutoEnabled})),Ie=r(null),be=s(Ie,2),Pe=be[0],De=be[1],Te=Math.min(Se+1,ge+1,L+1),xe=Math.min(Math.max(Te,ge+1),L+1),ye=null==je?void 0:je.asset_id,We=x(ye),Fe=s(We,1)[0];ne(Ce,he,xe);var Be=J((function(e){return e.isFilterExpanded})),Oe=J((function(e){return e.isMapHidden})),ke=J((function(e){return e.isWellNameExpand})),we=J((function(e){return e.isHScrollMoved})),Me=J((function(e){return e.setIsHScrollMoved})),Ee=J((function(e){return e.isAdvancedSearchHidden})),Le=J((function(e){return e.setIsAdvancedSearchHidden})),He=+(null==je?void 0:je.companyId)||+(null==fe?void 0:fe.company_id),Ne=ye>0,Ge=X((function(e){return e.filters})),Re=X((function(e){return e.setFilters})),qe=X((function(e){return e.resetFilters})),ze=Ge[F.radius]||B,Ue=Ge.selectionMode||"radius",Ke=Ge.polygonCoords,Ze=T({open:de}),_e=Ze.canViewCompanies,Xe=Ze.companies,Je=r([]),Qe=s(Je,2),Ye=Qe[0],$e=Qe[1],et=r([]),tt=s(et,2),ot=tt[0],st=tt[1],nt=i((function(){return Ge[F.company]}),[Ge]);p((function(){var e=(null==Ce?void 0:Ce.selectedWellIds)||[];!de||ot.length>0||0===e.length||o(n.mark((function t(){var o;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,W(e);case 2:o=t.sent,st(o);case 4:case"end":return t.stop()}}),t)})))()}),[de,null==Ce?void 0:Ce.selectedWellIds,ot.length]);var rt=i((function(){var e=Ye.map((function(e){return e.companyId})).filter((function(e){return null!=e})),o=ot||[];if(!_e)return t(new Set([].concat(He?[He]:[],t(e),t(o))));if(void 0===nt)return t(new Set([].concat(He?[He]:[],t(e),t(o))));if(Array.isArray(nt)&&0===nt.length)return null;var s=new Set(nt);return He&&s.add(He),e.forEach((function(e){return s.add(e)})),o.forEach((function(e){return s.add(e)})),Array.from(s)}),[nt,He,_e,Ye,ot]),it=r((null==Ce?void 0:Ce.wellSection)||O),pt=s(it,2),ct=pt[0],mt=pt[1],lt=c(!0),at=r(!0),dt=s(at,2),ut=dt[0],jt=dt[1],ft=c(!1);p((function(){if(!ft.current){var e=(null==Ce?void 0:Ce.selectedWellIds)||[];de&&0!==e.length?o(n.mark((function t(){var o,s;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==(o=e.filter((function(e){return!Ye.some((function(t){return t.id===e}))}))).length){t.next=4;break}return ft.current=!0,t.abrupt("return");case 4:return t.next=6,y(o);case 6:s=t.sent,$e(Fe?function(e){var t=s.find((function(e){return e.id===Fe.id}))?s:s.concat(Fe);return a(e.concat(t),"id")}:function(e){return a(e.concat(s),"id")}),ft.current=!0;case 9:case"end":return t.stop()}}),t)})))():ft.current=!0}}),[de,null==Ce?void 0:Ce.selectedWellIds,Fe,Ye]);var Ct=xe<=(null==Ye?void 0:Ye.length),At=c(),vt=r(!0),ht=s(vt,2),St=ht[0],gt=ht[1];p((function(){if(de&&Ct&&ce("App can’t process more than (".concat(xe-1,") Offset Wells.")),!de){var e,t,o=new Set(At.current||[]);(null==Ce||null===(e=Ce.selectedWellIds)||void 0===e?void 0:e.length)===(null===(t=At.current)||void 0===t?void 0:t.length)&&((null==Ce?void 0:Ce.selectedWellIds)||[]).every((function(e){return o.has(e)}))||(lt.current=!0),At.current=null==Ce?void 0:Ce.selectedWellIds}}),[Ct,de,Ce,xe]);var Vt=v(rt,Fe,ze,Ue,Ke),It=s(Vt,2),bt=It[0],Pt=It[1],Dt=D(He),Tt=s(Dt,1)[0],xt=S(ye,bt),yt=s(xt,7),Wt=yt[0],Ft=yt[1],Bt=yt[2],Ot=yt[3],kt=yt[4],wt=yt[5],Mt=yt[6],Et=i((function(){if(!Fe)return null;if(null==Wt||!Wt.length)return Fe;var t=Wt.filter((function(e){return e.value!==O})).map((function(e){return e.label}));return t.length>0?le(le({},Fe),{},e({},k.wellSection,t)):Fe}),[Fe,Wt]);p((function(){gt(!0),Ft(null),Ot(null)}),[Ot,Ft,ye]);var Lt=g(He,null==Ce?void 0:Ce.metricsKeys),Ht=s(Lt,2),Nt=Ht[0],Gt=Ht[1],Rt=h(He,bt,Wt,Bt,ye,Nt,de),qt=i((function(){if(!Rt||null==Xe||!Xe.length)return Rt;var e={};return Xe.forEach((function(t){e[t.id]=t.name})),Rt.map((function(t){return le(le({},t),{},{companyName:e[t.companyId]||"Null"})}))}),[Rt,Xe]),zt=!Pt;p((function(){if(zt){var e,t=(e=o(n.mark((function e(){var t,o,s,r,i,p,c,m,l,a,d,u;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=void 0===(null==Ce?void 0:Ce.isSynced)||(null==Ce?void 0:Ce.isSynced),o=!0,!t){e.next=21;break}if(r=Bt[O]||[],i=new Set(r),p=((null==Ce?void 0:Ce.selectedWellIds)||[]).every((function(e){return i.has(e)})),r.length===(null==Ce||null===(s=Ce.selectedWellIds)||void 0===s?void 0:s.length)&&p){e.next=18;break}return e.next=9,K(r,ye);case 9:(c=e.sent).slice(0,Te+1).map((function(e){return e.id})),m=c.slice(0,ge+1).map((function(e){return e.id})),l=le(le({},Ce),{},{subjectWellId:ye,selectedWellIds:m,offsetWellsLimited:xe<=m.length}),a=new Set(m),d=c.filter((function(e){return a.has(e.id)})),he(l,d),e.next=19;break;case 18:o=!1;case 19:e.next=22;break;case 21:o=!1;case 22:if(o){e.next=27;break}return e.next=25,K((null==Ce?void 0:Ce.selectedWellIds)||[],ye);case 25:u=e.sent,he(Ce,u);case 27:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)});Ve&&St&&Ce&&Bt&&(t(),gt(!1))}}),[Ce,Bt,ye,xe,Ve,zt,St,Te,ge,he]);var Ut=V(qt,Xe,_e),Kt=P(Nt,_e),Zt=I(qt,Ge),_t=i((function(){return Zt?a([].concat(t(Ye),t(Zt)),"id"):Zt}),[Zt,Ye]);p((function(){if(Zt&&zt&<.current){var e=new Set((null==Ce?void 0:Ce.selectedWellIds)||[]),t=qt.filter((function(t){return e.has(t.id)}));Et&&(t=t.concat(Et)),$e(a(t,"id")),lt.current=!1}}),[qt,Zt,null==Ce?void 0:Ce.selectedWellIds,zt,Et]);var Xt=b(Et,_t,Ye,jt),Jt=s(Xt,5),Qt=Jt[0],Yt=Jt[1],$t=Jt[2],eo=Jt[3],to=Jt[4],oo=m((function(e,o,s){var n;if(s===U.well.name)n=o;else{var r=new Map,i=new Map;qt.forEach((function(e){r.set(e.id,e.rigName),i.has(e.rigName)||i.set(e.rigName,[]),i.get(e.rigName).push(e.id)}));var p=[];o.forEach((function(e){var o=r.get(e),s=i.get(o)||[];p.push.apply(p,t(s))})),n=p}var c=new Set(n),m=qt.filter((function(e){var t=e.id;return c.has(t)}));e?(m=m.slice(0,Math.min(m.length,xe-Ye.length)),$e((function(e){return a(e.concat(m),"id")}))):$e((function(e){return d(e.filter((function(e){var t=e.id;return!m.find((function(e){return e.id===t}))})))}))}),[qt,xe,Ye.length]),so=m((function(){Le(!0)}),[Le]),no=m((function(e){Gt(e)}),[Gt]),ro=m((function(e,t){Gt((function(o){return o.map((function(o){return o===e?t:o}))}))}),[Gt]),io=m((function(e,t){Yt(e),eo(t)}),[Yt,eo]),po=m((function(e,o){if(o){var s=(null==qt?void 0:qt.find((function(t){return t.id===e.id})))||e;$e((function(e){return[].concat(t(e),[s])}))}else $e((function(t){return t.filter((function(t){return t.id!==e.id}))}))}),[qt]),co=m((function(e){if(e){var t=Et?Zt.concat(Et):Zt,o=u(a(t,"id"),"distance");$e(o.slice(0,xe))}else $e(Et?[Et]:[])}),[Zt,Et,xe]),mo=m((function(e){if(Bt){var t=new Set(Bt[e]||[]),o=(null==qt?void 0:qt.filter((function(e){return t.has(e.id)})))||[],s=u(o,"distance");$e(s.slice(0,Te))}else $e(Et?[Et]:[])}),[Bt,Te,Et,qt]),lo=m((function(e){mt(e),mo(e)}),[mo]),ao=i((function(){return Ye.find((function(e){return e.id===ye}))?Ye.length-1:Ye.length}),[Ye,ye]),uo=i((function(){if(!Bt)return!1;var e=Ye.map((function(e){return e.id})),t=Bt[ct]||[];if(Math.min(t.length,Te)!==e.length)return!1;var o=new Set(t);return e.every((function(e){return o.has(e)}))}),[Bt,Ye,ct,Te]),jo=i((function(){return!!Tt&&w.includes(Tt)}),[Tt]),fo=i((function(){return jo?"IDAS generated offsets.":ue?"Offset Selection App.":"WellHub."}),[jo,ue]),Co=function(){var t=new Set((null==Ce?void 0:Ce.selectedWellIds)||[]),o=(qt||[]).filter((function(e){return t.has(e.id)}));Et&&(o=o.concat(Et)),$e(a(o,"id"));var s=le(le({},Ce),{},{mapHidden:Oe,filterExpanded:Be,wellNameExpanded:ke});he(s),Re(le(e({},F.radius,B),(null==Ce?void 0:Ce.filters)||{})),mt((null==Ce?void 0:Ce.wellSection)||O),ve()},Ao=ut||Pt,vo=i((function(){return!!Ne&&(!Ao&&(!uo||(!(j(Ge)||!Ge[F.sideTracks])||ct!==O)))}),[Ne,uo,Ge,ct,Ao]),ho=m((function(){qe(),mt(O),mo(O)}),[qe,mo]),So=!qt||!Wt||!to,go=r(M),Vo=s(go,2),Io=Vo[0],bo=Vo[1],Po=r([]),Do=s(Po,2),To=Do[0],xo=Do[1],yo=c();p((function(){if(to){var e=to.slice(0,Io);xo(e)}}),[to,Io,Et]),p((function(){if(yo.current){var e=yo.current.querySelector(".".concat(Y.wellNameFixed));e&&(we?e.classList.remove(Y.noShadow):e.classList.add(Y.noShadow))}}),[we,To]);var Wo=i((function(){return a(To,"id")}),[To]),Fo=i((function(){var e=Wo.filter((function(e){return e.checked}));return[e,Wo.length!==e.length&&Boolean(e.length)&&!Ct,e.length===Wo.length||Ct]}),[Wo,Ct]),Bo=s(Fo,3),Oo=Bo[0],ko=Bo[1],wo=Bo[2],Mo=i((function(){return Z()}),[]);p((function(){kt===E.SUCCEEDED&&ho()}),[Bt,ho,kt]);return $(se,{open:de,onClose:Co,size:"fullscreen",className:Q.modalDialog,title:$(H,{totalCount:null!==(me=null==qt?void 0:qt.length)&&void 0!==me?me:0,selectedCount:ao,maxOffsetWellNumber:xe,isXtoProvider:jo,resyncStatus:kt,setResyncStatus:wt,metricsKeys:Nt,onChangeMetricsKeys:no}),actions:!Ae&&ee("div",{className:Q.actionsWrapper,children:[!So&&vo?$(pe,{placement:"bottom-start",title:"Reset to Synced Offsets in ".concat(ue?"Offset App":"Wellhub"),children:$("div",{children:$(ie,{"data-testid":"".concat(ae,"_reset"),onClick:ho,color:"primary",startIcon:$(f,{}),children:"Reset"})})}):Ne&&ee("div",{children:[$("span",{className:l(oe.regular12,oe.colors.t6),children:"The offset list is being automatically populated by "}),$("span",{className:l(oe.medium12,oe.colors.t6),children:fo})]}),ee("div",{className:Q.buttonGap,children:[$(ie,{"data-testid":"".concat(ae,"_cancel"),onClick:Co,color:"primary",children:"Cancel"}),ee(ie,{"data-testid":"".concat(ae,"_selectedWells"),variant:"contained",color:"primary",onClick:function(){ve();var e=le(le({},Ce),{},{companyId:He,subjectWellId:ye,selectedWellIds:Ye.map((function(e){return e.id})),filters:Ge,metricsKeys:Nt,wellSection:ct,isSynced:uo,mapHidden:Oe,filterExpanded:Be,wellNameExpanded:ke,offsetWellsLimited:Ct});he(e,Ye)},children:["Select (",ao,")"]})]})]}),children:ee("div",{className:l(Q.offsetWellDialog),children:[$(te,{}),So?$(re,{}):ee("div",{className:l(Q.contentWrapper,e({},Q.contentBlocked,Ao)),children:[ee("div",{className:Q.columnsContainer,children:[!Oe&&de&&$("div",{className:Q.leftColumn,children:$(G,{mapHidden:Oe,subjectWell:Et,offsetWellIds:Ye.map((function(e){return e.id})),wells:_t,handleChangeOffsetWell:po,activeWellId:Pe})}),ee("div",{className:Q.rightColumn,onScroll:function(e){e.target&&(Ee&&(e.target.scrollLeft=0,Le(!1)),e.target.scrollLeft<=5&&we&&Me(!1),e.target.scrollLeft>5&&!we&&Me(!0),e.target.scrollHeight!==e.target.offsetHeight&&Math.round(e.target.scrollTop+e.target.offsetHeight+2)>=e.target.scrollHeight&&Io<to.length&&bo((function(e){return e+M})))},children:[$(N,{isHidden:!Be,filterOptions:Ut,wellSections:Wt,selectedWellSection:ct,subjectWell:Et,assetCompanyId:He,onChangeBicWells:lo}),$("div",{className:Y.stickyTable,children:ee(C,{"aria-label":"ows table head",innerRef:yo,children:[$(A,{children:$(q,{columnsWithDict:Kt,metricsKeys:Nt,sortBy:Qt,sortDirection:$t,indeterminate:ko,isAllWellsSelected:wo,onChangeSort:io,onUpdateMetricsKey:ro,handleChangeAllOffsetWells:co,wellNameStyle:Y.wellNameFixed,isImperial:Mo,isTaColumnVisible:!!Mt.length})}),Ae&&$("div",{className:Q.topGradient})]})}),!Ae&&ee("div",{className:l(Y.searchCellWrapper),children:[$("div",{className:Y.searchCell,children:$(z,{companyId:He,subjectWellId:ye,onChange:oo,selectedWellIds:Oo.map((function(e){return e.id})),onHideAdvancedSearch:so})}),$("div",{className:Q.topGradient})]}),$(R,{isTableLoading:Ao,subjectWellId:ye,columnsWithDict:Kt,wells:To,metricsKeys:Nt,handleChangeOffsetWell:po,isLastWell:to.length<=Io,isLimitedOffsetWells:Ct,maxOffsetWellNumber:xe,wellSections:Wt,setActiveWellId:De,taScores:Mt})]})]}),Ae&&Ne&&ee("div",{className:Q.viewOnlyInfoContainer,children:[$("span",{className:l(oe.regular12,oe.colors.t6),children:"The offset list is being automatically populated by "}),$("span",{className:l(oe.medium12,oe.colors.t6),children:fo})]})]})]})})};export{de as OffsetWellPickerV5};
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/toConsumableArray";import o from"@babel/runtime/helpers/asyncToGenerator";import s from"@babel/runtime/helpers/slicedToArray";import n from"@babel/runtime/regenerator";import{useState as r,useRef as i,useMemo as p,useEffect as c,useCallback as m}from"react";import l from"classnames";import{uniqBy as a,uniq as d,sortBy as u,isEmpty as j}from"lodash";import{Replay as f}from"@material-ui/icons";import{Table as C,TableHead as A}from"@material-ui/core";import{useFetchWells as h}from"./effects/useFetchWells.js";import{useAdvancedWells as v}from"./effects/useAdvancedWells.js";import{useBicWells as S}from"./effects/useBicWells.js";import{useCompanyMetricKey as g}from"./effects/useCompanyMetricKey.js";import{useFilterOptions as V}from"./effects/useFilterOptions.js";import{useFilteredWells as I}from"./effects/useFilteredWells.js";import{useSortedWells as b}from"./effects/useSortedWells.js";import"./effects/useAssetsData.js";import{useTableColumns as D}from"./effects/useTableColumns.js";import{useCompanyProvider as P}from"./effects/useCompanyProvider.js";import{useCompanies as T}from"./effects/useCompanies.js";import{usePinnedWells as x}from"./effects/usePinnedWells.js";import{useSearchedWells as y}from"./effects/useSearchedWells.js";import{useFetchSubjectWell as W}from"./effects/useFetchSubjectWell.js";import"uuid";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import"../../clients/jsonApi/index.js";import"../../clients/subscriptions/constants.js";import"../../clients/subscriptions.v1.js";import"../../clients/subscriptions/subscriptions-client.factory.js";import"../../clients/api/apiCore.js";import"../../clients/constants.js";import"../../clients/sso/auth0.js";import"../../clients/sso/oauth2.js";import"./api/shared/dataFormatter.js";import{fetchCompanyIdsByWellIds as F}from"./api/wells/fetchCompanyIdsByWellIds.js";import{DEFAULT_RADIUS_MILES as B,FilterType as O,ALL_SECTION_KEY as k,COMPANY_PROVIDERS_FOR_IDAS as M,ROWS_PER_PAGE as w,RESYNC_STATUS as L,MAX_OFFSET_SIZE as E}from"./constants.js";import{AppHeader as H}from"./components/AppHeader/AppHeader.js";import{Filter as N}from"./components/Filter/Filter.js";import{WellsMap as G}from"./components/Map/WellsMap.js";import{OffsetWellsTable as R}from"./components/OffsetWellsTable/OffsetWellsTable.js";import{OffsetWellsTableHead as q}from"./components/OffsetWellsTable/OffsetWellsTableHead.js";import{AdvancedSearch as z}from"./components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js";import{SEARCH_CATEGORIES as U}from"./components/OffsetWellsTable/AdvancedSearch/constants.js";import{getCoordinatedWells as K}from"./utils/index.js";import{getIsImperial as Z}from"./utils/getIsImperial.js";import{usePickerPropsStore as _}from"./stores/picker-props-store/usePickerPropsStore.js";import{useFilterStore as X}from"./stores/filter-store/useFilterStore.js";import{useViewStore as J}from"./stores/view-store/useViewStore.js";import Q from"./OffsetWellPickerV5.module.css.js";import Y from"./components/OffsetWellsTable/OffsetWellsTable.module.css.js";import"../../utils/index.js";import{jsx as $,jsxs as ee}from"react/jsx-runtime";import"@material-ui/core/Snackbar";import"../Notifications/Toast.js";import"../Notifications/Notifications.scss.js";import{NotificationsContainer as te}from"../Notifications/NotificationsContainer.js";import oe from"../../styles/typography/index.js";import"../../styles/counter/counter.module.scss.js";import"../DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider/IsInsideIsolatedDcAppProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"@icon-park/react/es/all";import"../../icons/IconParkProvider.js";import"../../icons/customIcons/icons/AddMessage.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/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/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/Lasso.js";import"../../utils/mobileDetect.js";import"../IconButton/index.js";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/appPackages.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import"../../constants/corvaCompanyId.js";import"../GradientManager/configuration/constants.js";import"../Modal/CorvaModal.css.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../AppIcon/AppIcon.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../DevCenter/AppContext.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.js";import"../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../componentsV2/Text/Text.js";import"../../componentsV2/Grid/Grid.js";import"../../componentsV2/Grid/Cell.js";import"../../componentsV2/Header/Header.scss.js";import{Button as se}from"../../componentsV2/Button/Button.js";import"../../componentsV2/ButtonIcon/ButtonIcon.js";import{Tooltip as ne}from"../../componentsV2/Tooltip/Tooltip.js";import"../../componentsV2/Popover/Popover.js";import"../../componentsV2/Radio/Radio.js";import"../../componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js";import"../../componentsV2/Checkbox/Checkbox.js";import"../../componentsV2/TextInput/TextInput.js";import"../../componentsV2/Label/Label.js";import"../../componentsV2/TextEndTruncated/TextEndTruncated.scss.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.constants.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.scss.js";import"../../componentsV2/TextLink/TextLink.js";import{LoaderCircular as re}from"../../componentsV2/LoaderCircular/LoaderCircular.js";import"../../componentsV2/Chip/Chip.js";import"../../componentsV2/ChipAlert/ChipAlert.js";import"../../componentsV2/ChipIndicator/ChipIndicator.js";import"../../componentsV2/Avatar/Avatar.js";import"../../componentsV2/AvatarGroup/AvatarGroup.js";import"@material-ui/lab";import"../../componentsV2/ToggleButtons/ToggleButtons.scss.js";import"../../componentsV2/Paper/Paper.js";import"../../componentsV2/ModalWindow/ModalWindow.scss.js";import{Modal as ie}from"../../componentsV2/Modal/Modal.js";import"../../componentsV2/Menu/Menu.js";import"../../componentsV2/utils.js";import"../../componentsV2/Hint/Hint.scss.js";import"../../componentsV2/Counter/Counter.js";import"../../componentsV2/BadgeBase/BadgeBase.scss.js";import"../../componentsV2/BadgeDot/BadgeDot.scss.js";import"../../componentsV2/LoaderLinear/LoaderLinear.scss.js";import"../../componentsV2/LoaderLogo/LoaderLogo.constants.js";import"../../componentsV2/LoaderLogo/LoaderLogo.scss.js";import"../../componentsV2/Switch/Switch.js";import"../../componentsV2/Tabs/Tabs.js";import"../../componentsV2/EmptyState/EmptyState.scss.js";import"../../componentsV2/FileIcon/FileIcon.js";import"../../componentsV2/Tag/Tag.js";import"react-dropzone";import"../../componentsV2/FilesDropzone/FilesDropzone.scss.js";import"../../componentsV2/FilesLoader/FilesLoader.scss.js";import"../../componentsV2/FilesProcessor/FilesProcessor.scss.js";import"../../componentsV2/Skeleton/Skeleton.scss.js";import"../../utils/main.js";import"../../componentsV2/CopyToClipboard/CopyToClipboard.scss.js";import"../../componentsV2/Stepper/Step/Step.scss.js";import"../../componentsV2/Stepper/Stepper.scss.js";import"../../componentsV2/ButtonLive/ButtonLive.js";import"../../componentsV2/ButtonText/ButtonText.js";import"../../componentsV2/IndicatorLive/IndicatorLive.js";import"../../componentsV2/Accordion/Accordion.scss.js";import"../../componentsV2/Breadcrumbs/Breadcrumbs.scss.js";import"../../componentsV2/BadgeComment/BadgeComment.js";import"../../componentsV2/AppContainer/AppContainer.js";import"../../componentsV2/AppContainer/AppContainer.constants.js";import"../../componentsV2/AppFooter/AppFooter.js";import"../../componentsV2/AppCommonsProvider/AppCommonsContext.js";import"../../componentsV2/AppHeader/AppHeader.constants.js";import"../../componentsV2/AppHeader/AppBadge/AppBadge.scss.js";import"../../componentsV2/AppHeader/AppAssets/utils.js";import"../../componentsV2/AppHeader/AppAssets/AppAssets.scss.js";import"../PadModeSelect/PadModeSelect.js";import"../../componentsV2/AppHeader/PadMode/PadMode.scss.js";import"../../constants/streamSourceType.js";import"../../types/shared/Completions.js";import"../PadModeSelect/types.js";import"lodash/flatten";import"lodash/partition";import"../../componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.js";import"../../componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.constants.js";import"../../componentsV2/PadModeSelect/WellStreamActivityStatus/WellStreamActivityStatus.scss.js";import"../../componentsV2/PadModeSelect/PadModeSelect.constants.js";import"../../componentsV2/PadModeSelect/PadModeSelect.scss.js";import"querystring";import"uuid/v1";import"jsona";import"../../utils/env.js";import"../StatusBadge/constants.js";import"lodash/isEmpty";import"lodash/sortBy";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import{useGlobalOffsetWellsSync as pe}from"../../effects/useGlobalOffsetWellsSync.js";import"../../componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js";import"../../componentsV2/UniversalLink/UniversalLink.scss.js";import"../../componentsV2/AppHeader/V3/AssetChips/AssetChips.scss.js";import"../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js";import"../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.constants.js";import"../../componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js";import"../../componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.scss.js";import"../../componentsV2/AppDqPopover/DqAlert/DqAlert.scss.js";import"../../componentsV2/AppDqPopover/DqAsset/DqAsset.scss.js";import"../../componentsV2/AppDqPopover/AppDqPopover.scss.js";import"../../utils/getSingleAsset.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js";import"../../componentsV2/AppHeader/V3/AssetSelector/constants.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorSelect.scss.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/loadAssets.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelector.scss.js";import"../../componentsV2/AppHeader/V3/AppTitle/AppTitle.constants.js";import"../../componentsV2/AppContainer/headerCommon.scss.js";import"../../componentsV2/AppHeader/V3/AppTitle/AppTitle.scss.js";import"../../componentsV2/AppHeader/V3/constants.scss.js";import"@babel/runtime/helpers/typeof";import"../../componentsV2/AppHeader/V3/SettingsButton/SettingsButton.js";import"../../componentsV2/AppHeader/V3/SettingsButton/SettingsButton.constants.js";import"../../componentsV2/AppSettings/AppSettings.js";import"../../componentsV2/AppSettings/AppSettings.constants.js";import"../../componentsV2/AppSettings/AppSettingsPinningContext.js";import"../../componentsV2/AppSizeProvider/AppSizeProvider.js";import"../../componentsV2/AppHeader/V3/Actions/Actions.constants.js";import"../../componentsV2/AppHeader/V3/Actions/Actions.scss.js";import"../../componentsV2/AppHeader/V3/AppHeaderV3.scss.js";import"../../componentsV2/AppHeader/AppHeader.scss.js";import"../../componentsV2/OffsetWellsButton/OffsetWellsButton.js";import"../../componentsV2/Autocomplete/Autocomplete.scss.js";import"../../componentsV2/Menu/MenuItem/MenuItem.js";import"../../componentsV2/Autocomplete/AutocompleteListBox.js";import"../../componentsV2/AppSettingsDivider/AppSettingsDivider.scss.js";import"../../componentsV2/WellArchivedMessage/WellArchivedMessage.js";import"../../componentsV2/DatePicker/DatePicker.js";import"../../componentsV2/DragHandle/DragHandle.js";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"rollbar";import"@rollbar/react";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.scss.js";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../Icons/AnnotationIcon.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../Annotations/AnnotationsContext.js";import"../Toaster/Toaster.js";import"../HelpCenter/HelpCenterIcon.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../AssetEditor/index.js";import"../AssetEditorV2/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import ce from"../LoadingIndicator/LoadingIndicator.js";import"../Typography.js";import"../RealTimeValuesSidebar/RealTimeSidebar.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../ErrorBoundary/ErrorBoundary.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../SlateFormattedText/SlateFormattedText.js";import"../SlateFormattedText/RenderElements.js";import"slate";import"../EmptyState/EmptyState.js";import"../ParameterCharts/ParameterCharts.js";import"../ParameterCharts/AddEditTrack.js";import"../ChartActionsList/ChartActionsList.js";import"../CopyToClipboard/CopyToClipboard.js";import"../AssetEditor/AssetEditorAutocomplete.js";import"../AssetEditor/SingleAssetEditor.js";import"react-color";import"../SettingEditors/ColorEditor/style.css.js";import"../SettingEditors/DropdownEditor/index.js";import"../SwitchControl/index.js";import"../ColorPicker/ColorPicker.js";import"../Chart/components/ChartButton.js";import"../Chart/components/ChartButtons.js";import"../Chart/components/ChartWrapper.js";import"../Chart/components/AxisDropdown.js";import"../Chart/components/ChartSelect.js";import"../Chart/components/buttons/DragToZoomButton.js";import"../Chart/components/buttons/ZoomInButton.js";import"../Chart/components/buttons/ZoomOutButton.js";import"../Chart/components/buttons/PanButton.js";import"../Chart/components/buttons/ResetZoomButton.js";import"../Chart/components/buttons/HideAxesButton.js";import"../Chart/components/buttons/ChartTypeButton.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../TruncatedText/index.js";import"../MiddleTruncatedText/MiddleTruncatedText.js";import"../RangeSlider/constants.js";import"../RangeSlider/Input.css.js";import"../RangeSlider/RangeSlider.css.js";import"../AdvancedSlider/AdvancedSlider.js";import"../Breadcrumbs/index.js";import"../VirtualizedTable/index.js";import"../EmptyView/EmptyView.js";import"../EmptyView/EmptyAppView/EmptyAppView.js";import"../Button/components/Button/index.js";import"moment-timezone";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import"../ContextMenuItem/index.js";import"../FolderMenuItem/index.js";import"../EditableItem/EditableItem/index.js";import"../EditableItem/EditableItemWithBadge/index.js";import"../Checkbox/index.js";import"../FolderMenuItemWithLinks/index.js";import"../TextField/index.js";import"../Chip/index.js";import"../Counter/index.js";import"../AnchorsList/AnchorsList.js";import"../Select/index.js";import"../Select/SelectFilterBy.js";import"../CustomSelect/index.js";import"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../ResizableTable/ResizableTable.js";import"../GradientPicker/GradientPicker.js";import"../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"../GradientManager/GradientPreview/GradientPreview.js";import"../GradientManager/GradientSelect.styles.js";import"../GradientManager/GradientManager.styles.js";import"../Drillstring/BHASchematic.js";import"../Drillstring/BHATable/index.js";import"../Drillstring/BHAComponentIcon.js";import"../Drillstring/BHAComponentDetail/index.js";import"../Drillstring/BHATileIcon.js";import"../Drillstring/BHATile/BHATile.js";import"../Drillstring/BHAList/BHAList.js";import"../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../Casing/CasingTable/index.js";import"../Casing/CasingComponentIcon.js";import"../Casing/CasingTileIcon.js";import"../Casing/CasingTableV2/CasingTableV2.js";import"../Casing/CasingTile/CasingTile.js";import"../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../WellSummary/WellSummaryItemLabel.js";import"../WellSummary/WellSummaryItemTitle.js";import"../WellSummary/WellSummaryItemValue.js";import"../WellSummary/ActivitySummaryChart.js";import"../WellSummary/FracWirelineTimeChart.js";import"../BICOffsetPickerDialog/index.js";import"../OffsetWellButton/OffsetWellButton.js";import"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../OffsetWellPickerV3/index.js";import"../OffsetWellChips/Chip.js";import"../OffsetWellChips/ChipsContainer.js";import"./OffsetWellPickerV5WithStore.js";import"../OffsetWellPickerV4/utils/apiCalls.js";import"../OffsetWellPickerV4/effects/useAdvancedWells.js";import"../OffsetWellPickerV4/constants.js";import"react-virtualized";import"../OffsetWellPickerV4/effects/useAssetsData.js";import"../../permissions/PermissionsContext.js";import"../../permissions/constants/index.js";import"../../permissions/withPermissionsHOC.js";import"../../permissions/ProvidePermissions.js";import"../OffsetWellPickerV4/components/AppHeader/AppHeader.js";import"../OffsetWellPickerV4/components/Toolbar/Toolbar.js";import"../OffsetWellPickerV4/components/Filter/Filter.js";import"../OffsetWellPickerV4/components/Map/WellsMap.js";import"../OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js";import"../OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/constants.js";import"../OffsetWellPickerV4/utils/index.js";import"../OffsetWellPickerV4/OffsetWellPickerV4.module.css.js";import"../OffsetWellMap/OffsetWellMap.js";import"../ConfirmationDialog.js";import"../TextLink/index.js";import"../Avatar/index.js";import"../Template/TemplatePopover/index.js";import"../Template/TemplateSharingDialog/index.js";import"../MenuItem/index.js";import"../MiddleTruncate/MiddleTruncate.js";import"../PinnableFilters/PinnableFilters.js";import"../HeaderLayout/HeaderLayout.js";import"../PadOffsetsPicker/PadOffsetsPicker.js";import"../PadOffsetsPicker/OffsetAssetChip.js";import"../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../PadOffsetsPicker/StagesSelector.js";import"../PadOffsetsPickerV2/PadOffsetsPickerV2.js";import"../Table/TableToolbar/TableToolbar.js";import"../Table/TableContainer/TableContainer.js";import"../Table/TableCell/TableCell.js";import"../Table/TablePagination/TablePagination.js";import"../Table/TablePaginationActions/TablePaginationActions.js";import"../Tooltip/ScrollableTooltip.js";import"../PriceInput/PriceInput.js";import"../LabelsCounter/LabelsCounter.js";import"../Stepper/Stepper.js";import"../Stepper/Step/Step.js";import"../Stepper/StepsWrapper.js";import"../Comment/CommentIcon/index.js";import"../FilesLoader/FilesLoader.js";import"../../componentsV2/FileIcon/icons/ArchiveFileIcon.js";import"../../componentsV2/FileIcon/icons/CSVFileIcon.js";import"../../componentsV2/FileIcon/icons/DocFileIcon.js";import"../../componentsV2/FileIcon/icons/EDMFileIcon.js";import"../../componentsV2/FileIcon/icons/ExcelFileIcon.js";import"../../componentsV2/FileIcon/icons/ImageFileIcon.js";import"../../componentsV2/FileIcon/icons/JsonFileIcon.js";import"../../componentsV2/FileIcon/icons/LasFileIcon.js";import"../../componentsV2/FileIcon/icons/OtherFileIcon.js";import"../../componentsV2/FileIcon/icons/PdfFileIcon.js";import"../../componentsV2/FileIcon/icons/PowerPointFileIcon.js";import"../../componentsV2/FileIcon/icons/TxtFileIcon.js";import"../../componentsV2/FileIcon/icons/UnknownFileIcon.js";import"../../componentsV2/FileIcon/icons/VideoFileIcon.js";import"../../componentsV2/FileIcon/icons/XmlFileIcon.js";import"../SearchInput/index.js";import"../FeedItem/FeedItem.js";import"../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../PostInput/PostInput.js";import"../KeyboardDateTimePicker.js";import"../AddComment/Popover.js";import"../AddComment/Popup.js";import"../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../StageDesignVActual/ComparisonHeader.js";import"../StageDesignVActual/ComparisonRow.js";import"../EmbeddedApp/DevCenterEmbeddedApp.js";import"../EmbeddedApp/EmbeddedApp.js";import"../Autocomplete/Autocomplete.js";import"../DocumentViewer/DocumentViewer.js";import"../ColorPickerPalette/ColorPickerPalette.js";import"../Search/Search.js";import"../Search/components/Listbox.js";import"../Search/components/Paper.js";import"../Search/components/RecentSearches.js";import"../Search/components/Groups.js";import"../Search/components/SelectAllListItem.js";import"../StatusBadge/index.js";import"../Attachment/index.js";import"../EmojiIconButton.js";import"../FileUploadIconButton.js";import"../FilePreview/index.js";import"../FailedFileUploading.js";import"../UserMention/index.js";import"../CommentsInfo/index.js";import"../CommentInput/index.js";import"../Comment/index.js";import"../CommentLoader.js";import"../AssetNameLabel/AssetStatusBadge.js";import"../AssetEditorV2/components/PrimaryAssetSelect.js";import"../AssetEditorV2/components/SecondaryAssetSelect.js";import"../AssetEditorV2/components/SelectItem.js";import"../AssetEditorV2/components/MultipleAssetsToggle.js";import"../AssetEditorV2/components/PrimaryAssetSelectV2.js";import"../EChartsWrapper/EChartsWrapper.js";import"../AssetsMultipleSelector/AssetsMultipleSelector.js";import"@material-ui/icons/Close";import"@material-ui/icons/GetApp";import"../GoogleDocsViewer/index.js";import"../NewDocumentViewer/effects/useFileContent.js";import"../NewDocumentViewer/styles.js";import"../FilesLoaderV2/styles.js";import"../FilesDropzone/styles.js";import"../FilesProcessor/styles.js";import"../Hint/styles.js";import"@babel/runtime/helpers/taggedTemplateLiteral";import"fparser";import"../Formula/useFormulaStyles.js";import"../Formula/RootXIcon.js";import"../Formula/FormulaTextEditor.js";import"../Formula/CloseSuggestion.js";import"../Formula/SuggestionsMenu.js";import{showInfoNotification as me}from"../../utils/notificationToasts.js";function le(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,s)}return o}function ae(t){for(var o=1;o<arguments.length;o++){var s=null!=arguments[o]?arguments[o]:{};o%2?le(Object(s),!0).forEach((function(o){e(t,o,s[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):le(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}var de="OffsetWellPickerV5",ue=function(){var le,ue,je,fe=_((function(e){return e.open})),Ce=_((function(e){return e.isWDUser})),Ae=_((function(e){return e.defaultSubjectWell})),he=_((function(e){return e.currentUser})),ve=_((function(e){return e.offsetSettings})),Se=_((function(e){return e.isViewOnly})),ge=_((function(e){return e.onClose})),Ve=_((function(e){return e.onSave})),Ie=_((function(e){return e.maxOffsetSize})),be=_((function(e){return e.localMaxOffsetSize})),De=_((function(e){return e.syncAutoEnabled})),Pe=r(null),Te=s(Pe,2),xe=Te[0],ye=Te[1],We=Math.min(Ie+1,be+1,E+1),Fe=Math.min(Math.max(We,be+1),E+1),Be=null==Ae?void 0:Ae.asset_id,Oe=W(Be),ke=s(Oe,1)[0];pe(ve,Ve,Fe);var Me=J((function(e){return e.isFilterExpanded})),we=J((function(e){return e.isMapHidden})),Le=J((function(e){return e.isHScrollMoved})),Ee=J((function(e){return e.setIsHScrollMoved})),He=J((function(e){return e.isAdvancedSearchHidden})),Ne=J((function(e){return e.setIsAdvancedSearchHidden})),Ge=+(null==Ae?void 0:Ae.companyId)||+(null==he?void 0:he.company_id),Re=Be>0,qe=X((function(e){return e.filters})),ze=X((function(e){return e.setFilters})),Ue=X((function(e){return e.resetFilters})),Ke=null!==(le=X((function(e){return e.filters.radius})))&&void 0!==le?le:B,Ze=null!==(ue=X((function(e){return e.filters.selectionMode})))&&void 0!==ue?ue:"radius",_e=X((function(e){return e.filters.polygonCoords})),Xe=T({open:fe}),Je=Xe.canViewCompanies,Qe=Xe.companies,Ye=r([]),$e=s(Ye,2),et=$e[0],tt=$e[1],ot=r([]),st=s(ot,2),nt=st[0],rt=st[1],it=i(new Set),pt=r([]),ct=s(pt,2),mt=ct[0],lt=ct[1],at=r(!1),dt=s(at,2),ut=dt[0],jt=dt[1],ft=p((function(){return qe[O.company]}),[qe]);c((function(){var e=(null==ve?void 0:ve.selectedWellIds)||[];!fe||nt.length>0||0===e.length||o(n.mark((function t(){var o;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,F(e);case 2:o=t.sent,rt(o);case 4:case"end":return t.stop()}}),t)})))()}),[fe,null==ve?void 0:ve.selectedWellIds,nt.length]);var Ct=p((function(){var e=et.map((function(e){return e.companyId})).filter((function(e){return null!=e})),o=nt||[];if(!Je)return t(new Set((Ge?[Ge]:[]).concat(e,o)));if(void 0===ft)return t(new Set((Ge?[Ge]:[]).concat(e,o)));if(Array.isArray(ft)&&0===ft.length)return null;var s=new Set(ft);return Ge&&s.add(Ge),e.forEach((function(e){return s.add(e)})),o.forEach((function(e){return s.add(e)})),Array.from(s)}),[ft,Ge,Je,et,nt]),At=r((null==ve?void 0:ve.wellSection)||k),ht=s(At,2),vt=ht[0],St=ht[1],gt=i(!0),Vt=r(!0),It=s(Vt,2),bt=It[0],Dt=It[1],Pt=Fe<=(null==et?void 0:et.length),Tt=i(),xt=r(!0),yt=s(xt,2),Wt=yt[0],Ft=yt[1];c((function(){if(fe&&Pt&&me("App can’t process more than (".concat(Fe-1,") Offset Wells.")),!fe){var e,t,o=new Set(Tt.current||[]);(null==ve||null===(e=ve.selectedWellIds)||void 0===e?void 0:e.length)===(null===(t=Tt.current)||void 0===t?void 0:t.length)&&((null==ve?void 0:ve.selectedWellIds)||[]).every((function(e){return o.has(e)}))||(gt.current=!0),Tt.current=null==ve?void 0:ve.selectedWellIds}}),[Pt,fe,ve,Fe]);var Bt=h(Ct,ke,Ke,Ze,_e),Ot=s(Bt,2),kt=Ot[0],Mt=Ot[1],wt=x(null==ve?void 0:ve.selectedWellIds),Lt=s(wt,2),Et=Lt[0],Ht=Lt[1],Nt=y(),Gt=s(Nt,3),Rt=Gt[0],qt=Gt[1],zt=Gt[2],Ut=p((function(){if(!kt)return null;var e=kt;if(null!=Et&&Et.length){var t=new Set(e.map((function(e){return e.id}))),o=Et.filter((function(e){return!t.has(e.id)}));o.length>0&&(e=e.concat(o))}if(null!=Rt&&Rt.length){var s=new Set(e.map((function(e){return e.id}))),n=Rt.filter((function(e){return!s.has(e.id)}));n.length>0&&(e=e.concat(n))}return ke&&!e.some((function(e){return e.id===ke.id}))&&(e=[ke].concat(e)),e}),[kt,ke,Et,Rt]),Kt=P(Ge),Zt=s(Kt,1)[0],_t=S(Be,Ut),Xt=s(_t,7),Jt=Xt[0],Qt=Xt[1],Yt=Xt[2],$t=Xt[3],eo=Xt[4],to=Xt[5],oo=Xt[6],so=p((function(){return!!Jt&&Jt.some((function(e){return e.value!==k}))}),[Jt]);c((function(){Ft(!0),Qt(null),$t(null)}),[$t,Qt,Be]);var no=g(Ge,null==ve?void 0:ve.metricsKeys),ro=s(no,2),io=ro[0],po=ro[1],co=v(Ge,Ut,Jt,Yt,Be,io,fe),mo=s(co,2),lo=mo[0],ao=mo[1],uo=p((function(){if(!lo||null==Qe||!Qe.length)return lo;var e={};return Qe.forEach((function(t){e[t.id]=t.name})),lo.map((function(t){return ae(ae({},t),{},{companyName:e[t.companyId]||"Null"})}))}),[lo,Qe]),jo=p((function(){return ke?uo&&uo.find((function(e){return e.id===ke.id}))||ke:null}),[ke,uo]),fo=!(Mt||ao||Ht||qt);c((function(){if(fo){var e,t=(e=o(n.mark((function e(){var t,o,s,r,i,p,c,m,l,a,d,u;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=void 0===(null==ve?void 0:ve.isSynced)||(null==ve?void 0:ve.isSynced),o=!0,!t){e.next=20;break}if(r=Yt[k]||[],i=new Set(r),p=((null==ve?void 0:ve.selectedWellIds)||[]).every((function(e){return i.has(e)})),r.length===(null==ve||null===(s=ve.selectedWellIds)||void 0===s?void 0:s.length)&&p){e.next=17;break}return e.next=9,K(r,Be);case 9:c=e.sent,m=c.slice(0,be+1).map((function(e){return e.id})),l=ae(ae({},ve),{},{subjectWellId:Be,selectedWellIds:m,offsetWellsLimited:Fe<=m.length}),a=new Set(m),d=c.filter((function(e){return a.has(e.id)})),Ve(l,d),e.next=18;break;case 17:o=!1;case 18:e.next=21;break;case 20:o=!1;case 21:if(o){e.next=26;break}return e.next=24,K((null==ve?void 0:ve.selectedWellIds)||[],Be);case 24:u=e.sent,Ve(ve,u);case 26:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)});De&&Wt&&ve&&Yt&&(t(),Ft(!1))}}),[ve,Yt,Be,Fe,De,fo,Wt,We,be,Ve]);var Co=V(uo,Qe,Je),Ao=D(io,Je,so),ho=I(uo,qe,_e,Ke),vo=p((function(){return ho?a(et.concat(ho),"id"):ho}),[ho,et]);c((function(){if(ho&&fo&>.current){var e=new Set((null==ve?void 0:ve.selectedWellIds)||[]),t=uo.filter((function(t){return e.has(t.id)})),o=new Set(t.map((function(e){return e.id}))),s=et.filter((function(t){return e.has(t.id)&&!o.has(t.id)}));t=t.concat(s),jo&&(t=t.concat(jo)),tt(a(t,"id")),gt.current=!1}}),[uo,ho,null==ve?void 0:ve.selectedWellIds,fo,jo,et]),c((function(){if(null!=uo&&uo.length&&0!==it.current.size){var e=it.current,t=uo.filter((function(t){return e.has(t.id)}));t.length>0&&(tt((function(e){var o=t.slice(0,Math.max(0,Fe-e.length));return a(e.concat(o),"id")})),t.forEach((function(t){return e.delete(t.id)})))}}),[uo,Fe]);var So,go=b(jo,vo,et,Dt),Vo=s(go,5),Io=Vo[0],bo=Vo[1],Do=Vo[2],Po=Vo[3],To=Vo[4],xo=m((So=o(n.mark((function e(t,o,s){var r,i,p,c,m,l,u,j;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s===U.well.name?r=o:(i=new Map,p=new Map,uo.forEach((function(e){i.set(e.id,e.rigName),p.has(e.rigName)||p.set(e.rigName,[]),p.get(e.rigName).push(e.id)})),r=o.flatMap((function(e){var t=i.get(e);return p.get(t)||[]}))),c=new Set(r),m=uo.filter((function(e){var t=e.id;return c.has(t)})),!(t&&m.length<r.length)){e.next=12;break}if(l=new Set(m.map((function(e){return e.id}))),!((u=r.filter((function(e){return!l.has(e)}))).length>0)){e.next=12;break}return lt((function(e){return e.concat(u)})),e.next=10,zt(u);case 10:lt((function(e){return e.filter((function(e){return!u.includes(e)}))})),u.forEach((function(e){return it.current.add(e)}));case 12:t?(j=m.slice(0,Math.min(m.length,Fe-et.length))).length>0&&tt((function(e){return a(e.concat(j),"id")})):tt((function(e){return d(e.filter((function(e){var t=e.id;return!m.find((function(e){return e.id===t}))})))}));case 13:case"end":return e.stop()}}),e)}))),function(e,t,o){return So.apply(this,arguments)}),[uo,Fe,et.length,zt]),yo=m((function(){Ne(!0)}),[Ne]),Wo=m((function(e){po(e)}),[po]),Fo=m((function(e,t){po((function(o){return o.map((function(o){return o===e?t:o}))}))}),[po]),Bo=m((function(e,t){bo(e),Po(t)}),[bo,Po]),Oo=m((function(e,t){if(t){var o=(null==uo?void 0:uo.find((function(t){return t.id===e.id})))||e;tt((function(e){return e.concat(o)}))}else tt((function(t){return t.filter((function(t){return t.id!==e.id}))}))}),[uo]),ko=m((function(e){if(e){var t=jo?ho.concat(jo):ho,o=u(a(t,"id"),"distance");tt(o.slice(0,Fe))}else tt(jo?[jo]:[])}),[ho,jo,Fe]),Mo=m((function(e){if(Yt){var t=new Set(Yt[e]||[]),o=(null==uo?void 0:uo.filter((function(e){return t.has(e.id)})))||[],s=u(o,"distance");tt(s.slice(0,We))}else tt(jo?[jo]:[])}),[Yt,We,jo,uo]),wo=m((function(e){St(e),Mo(e)}),[Mo]),Lo=p((function(){return et.find((function(e){return e.id===Be}))?et.length-1:et.length}),[et,Be]),Eo=p((function(){if(!Yt)return!1;var e=et.map((function(e){return e.id})),t=Yt[vt]||[];if(Math.min(t.length,We)!==e.length)return!1;var o=new Set(t);return e.every((function(e){return o.has(e)}))}),[Yt,et,vt,We]),Ho=p((function(){return!!Zt&&M.includes(Zt)}),[Zt]),No=p((function(){return Ho?"IDAS generated offsets.":Ce?"Offset Selection App.":"WellHub."}),[Ho,Ce]),Go=m((function(){ge();var e=et.map((function(e){return e.id})),t=ae(ae({},ve),{},{companyId:Ge,subjectWellId:Be,selectedWellIds:e,filters:qe,metricsKeys:io,wellSection:vt,isSynced:Eo,mapHidden:we,filterExpanded:Me,offsetWellsLimited:Pt});Ve(t,et)}),[ge,et,ve,Ge,Be,qe,io,vt,Eo,we,Me,Pt,Ve]);c((function(){ut&&0===it.current.size&&(jt(!1),Go())}),[ut,et,Go]);var Ro=function(){var e=new Set((null==ve?void 0:ve.selectedWellIds)||[]),t=(uo||[]).filter((function(t){return e.has(t.id)}));if(null!=Et&&Et.length){var o=new Set(t.map((function(e){return e.id}))),s=Et.filter((function(t){return e.has(t.id)&&!o.has(t.id)}));t=t.concat(s)}jo&&(t=t.concat(jo)),tt(a(t,"id"));var n=ae(ae({},ve),{},{mapHidden:we,filterExpanded:Me});Ve(n),ze(ae({},(null==ve?void 0:ve.filters)||{})),St((null==ve?void 0:ve.wellSection)||k),ge()},qo=bt||Mt,zo=p((function(){return!!Re&&(!qo&&(!Eo||(!(j(qe)||!qe[O.sideTracks])||vt!==k)))}),[Re,Eo,qe,vt,qo]),Uo=m((function(){Ue(),St(k),Mo(k)}),[Ue,Mo]),Ko=!uo||!Jt||!To,Zo=r(w),_o=s(Zo,2),Xo=_o[0],Jo=_o[1],Qo=r([]),Yo=s(Qo,2),$o=Yo[0],es=Yo[1],ts=i();c((function(){if(To){var e=To.slice(0,Xo);es(e)}}),[To,Xo,jo]),c((function(){if(ts.current){var e=ts.current.querySelector(".".concat(Y.wellNameFixed));e&&(Le?e.classList.remove(Y.noShadow):e.classList.add(Y.noShadow))}}),[Le,$o]);var os=p((function(){return a($o,"id")}),[$o]),ss=p((function(){var e=os.filter((function(e){return e.checked}));return[e,os.length!==e.length&&Boolean(e.length)&&!Pt,e.length===os.length||Pt]}),[os,Pt]),ns=s(ss,3),rs=ns[0],is=ns[1],ps=ns[2],cs=p((function(){return Z()}),[]);c((function(){eo===L.SUCCEEDED&&Uo()}),[Yt,Uo,eo]);return $(ie,{open:fe,onClose:Ro,size:"fullscreen",className:Q.modalDialog,title:$(H,{totalCount:null!==(je=null==uo?void 0:uo.length)&&void 0!==je?je:0,selectedCount:Lo,maxOffsetWellNumber:Fe,isXtoProvider:Ho,resyncStatus:eo,setResyncStatus:to,metricsKeys:io,onChangeMetricsKeys:Wo}),actions:!Se&&ee("div",{className:Q.actionsWrapper,children:[!Ko&&zo?$(ne,{placement:"bottom-start",title:"Reset to Synced Offsets in ".concat(Ce?"Offset App":"Wellhub"),children:$("div",{children:$(se,{"data-testid":"".concat(de,"_reset"),onClick:Uo,color:"primary",startIcon:$(f,{}),children:"Reset to Defaults"})})}):Re&&ee("div",{children:[$("span",{className:l(oe.regular12,oe.colors.t6),children:"The offset list is being automatically populated by "}),$("span",{className:l(oe.medium12,oe.colors.t6),children:No})]}),ee("div",{className:Q.buttonGap,children:[$(se,{"data-testid":"".concat(de,"_cancel"),onClick:Ro,color:"primary",children:"Cancel"}),ee(se,{"data-testid":"".concat(de,"_selectedWells"),variant:"contained",color:"primary",onClick:function(){it.current.size>0?jt(!0):Go()},disabled:ut,prefix:ut?$(re,{size:16}):void 0,children:["Select (",Lo,")"]})]})]}),children:ee("div",{className:l(Q.offsetWellDialog),children:[$(te,{}),Ko?$(ce,{}):ee("div",{className:l(Q.contentWrapper,e({},Q.contentBlocked,qo)),children:[ee("div",{className:Q.columnsContainer,children:[!we&&fe&&$("div",{className:Q.leftColumn,children:$(G,{mapHidden:we,subjectWell:jo,offsetWellIds:et.map((function(e){return e.id})),wells:vo,handleChangeOffsetWell:Oo,activeWellId:xe})}),ee("div",{className:Q.rightColumn,onScroll:function(e){e.target&&(He&&(e.target.scrollLeft=0,Ne(!1)),e.target.scrollLeft<=5&&Le&&Ee(!1),e.target.scrollLeft>5&&!Le&&Ee(!0),e.target.scrollHeight!==e.target.offsetHeight&&Math.round(e.target.scrollTop+e.target.offsetHeight+2)>=e.target.scrollHeight&&Xo<To.length&&Jo((function(e){return e+w})))},children:[$(N,{isHidden:!Me,filterOptions:Co,wellSections:Jt,selectedWellSection:vt,subjectWell:jo,assetCompanyId:Ge,onChangeBicWells:wo}),$("div",{className:Y.stickyTable,children:ee(C,{"aria-label":"ows table head",innerRef:ts,children:[$(A,{children:$(q,{columnsWithDict:Ao,metricsKeys:io,sortBy:Io,sortDirection:Do,indeterminate:is,isAllWellsSelected:ps,onChangeSort:Bo,onUpdateMetricsKey:Fo,handleChangeAllOffsetWells:ko,wellNameStyle:Y.wellNameFixed,isImperial:cs,isTaColumnVisible:!!oo.length,isWellSectionColumnVisible:so})}),Se&&$("div",{className:Q.topGradient})]})}),!Se&&ee("div",{className:l(Y.searchCellWrapper),children:[$("div",{className:Y.searchCell,children:$(z,{companyId:Ge,subjectWellId:Be,onChange:xo,selectedWellIds:rs.map((function(e){return e.id})),onHideAdvancedSearch:yo,loadingAssetIds:mt})}),$("div",{className:Q.topGradient})]}),$(R,{isTableLoading:qo,subjectWellId:Be,columnsWithDict:Ao,wells:$o,metricsKeys:io,handleChangeOffsetWell:Oo,isLastWell:To.length<=Xo,isLimitedOffsetWells:Pt,maxOffsetWellNumber:Fe,wellSections:Jt,setActiveWellId:ye,taScores:oo,isWellSectionColumnVisible:so})]})]}),Se&&Re&&ee("div",{className:Q.viewOnlyInfoContainer,children:[$("span",{className:l(oe.regular12,oe.colors.t6),children:"The offset list is being automatically populated by "}),$("span",{className:l(oe.medium12,oe.colors.t6),children:No})]})]})]})})};export{ue as OffsetWellPickerV5};
|
|
2
2
|
//# sourceMappingURL=OffsetWellPickerV5.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OffsetWellPickerV5.js","sources":["../../../src/components/OffsetWellPickerV5/OffsetWellPickerV5.js"],"sourcesContent":["import { useState, useEffect, useRef, useCallback, useMemo } from 'react';\nimport classNames from 'classnames';\nimport { isEmpty, uniq, uniqBy, sortBy as sortArray } from 'lodash';\nimport { Replay as ReplayIcon } from '@material-ui/icons';\nimport { Table, TableHead } from '@material-ui/core';\n\nimport {\n useAdvancedWells,\n useBicWells,\n useFilterOptions,\n useCompanyMetricKey,\n useFilteredWells,\n useSortedWells,\n useTableColumns,\n useCompanyProvider,\n useCompanies,\n} from './effects';\nimport { useFetchWells } from './effects/useFetchWells';\nimport { useFetchSubjectWell } from './effects/useFetchSubjectWell';\nimport { fetchCompanyIdsByWellIds, fetchWellsByIds } from './api';\nimport { AppHeader } from './components/AppHeader';\nimport { Filter } from './components/Filter';\nimport { WellsMap } from './components/Map';\nimport { OffsetWellsTable } from './components/OffsetWellsTable';\nimport { OffsetWellsTableHead } from './components/OffsetWellsTable/OffsetWellsTableHead';\nimport { AdvancedSearch } from './components/OffsetWellsTable/AdvancedSearch';\nimport {\n ALL_SECTION_KEY,\n ColumnType,\n COMPANY_PROVIDERS_FOR_IDAS,\n FilterType,\n MAX_OFFSET_SIZE,\n ROWS_PER_PAGE,\n RESYNC_STATUS,\n DEFAULT_RADIUS_MILES,\n} from './constants';\nimport { SEARCH_CATEGORIES } from './components/OffsetWellsTable/AdvancedSearch/constants';\nimport { getCoordinatedWells } from './utils';\nimport { getIsImperial } from './utils/getIsImperial';\nimport { usePickerPropsStore } from './stores/picker-props-store/usePickerPropsStore';\nimport { useFilterStore } from './stores/filter-store/useFilterStore';\nimport { useViewStore } from './stores/view-store/useViewStore';\n\nimport styles from './OffsetWellPickerV5.module.css';\nimport offsetTableStyles from './components/OffsetWellsTable/OffsetWellsTable.module.css';\n\nimport { showInfoNotification } from '~/utils';\nimport { NotificationsContainer } from '~/components/Notifications';\nimport { typography } from '~/styles';\nimport { Button, LoadingIndicator, Tooltip } from '~/components';\nimport { Modal } from '~/componentsV2';\nimport { useGlobalOffsetWellsSync } from '~/effects';\n\nconst PAGE_NAME = 'OffsetWellPickerV5';\n\nexport const OffsetWellPickerV5 = () => {\n const open = usePickerPropsStore(state => state.open);\n const isWDUser = usePickerPropsStore(state => state.isWDUser);\n const defaultSubjectWell = usePickerPropsStore(state => state.defaultSubjectWell);\n const currentUser = usePickerPropsStore(state => state.currentUser);\n const offsetSettings = usePickerPropsStore(state => state.offsetSettings);\n const isViewOnly = usePickerPropsStore(state => state.isViewOnly);\n const onClose = usePickerPropsStore(state => state.onClose);\n const onSave = usePickerPropsStore(state => state.onSave);\n const offsetSize = usePickerPropsStore(state => state.maxOffsetSize);\n const localMaxOffsetSize = usePickerPropsStore(state => state.localMaxOffsetSize);\n const syncAutoEnabled = usePickerPropsStore(state => state.syncAutoEnabled);\n\n const [activeWellId, setActiveWellId] = useState(null);\n const maxOffsetSize = Math.min(offsetSize + 1, localMaxOffsetSize + 1, MAX_OFFSET_SIZE + 1);\n const maxOffsetWellNumber = Math.min(\n Math.max(maxOffsetSize, localMaxOffsetSize + 1),\n MAX_OFFSET_SIZE + 1\n );\n\n const subjectWellId = defaultSubjectWell?.asset_id;\n\n // Fetch complete subject well data with coordinates\n const [fetchedSubjectWell] = useFetchSubjectWell(subjectWellId);\n\n useGlobalOffsetWellsSync(offsetSettings, onSave, maxOffsetWellNumber);\n\n const isFilterExpanded = useViewStore(state => state.isFilterExpanded);\n const isMapHidden = useViewStore(state => state.isMapHidden);\n const isWellNameExpand = useViewStore(state => state.isWellNameExpand);\n const isHScrollMoved = useViewStore(state => state.isHScrollMoved);\n const setIsHScrollMoved = useViewStore(state => state.setIsHScrollMoved);\n const isAdvancedSearchHidden = useViewStore(state => state.isAdvancedSearchHidden);\n const setIsAdvancedSearchHidden = useViewStore(state => state.setIsAdvancedSearchHidden);\n\n const assetCompanyId = +defaultSubjectWell?.companyId || +currentUser?.company_id;\n const hasValidAssetId = subjectWellId > 0;\n const filters = useFilterStore(state => state.filters);\n const setFilters = useFilterStore(state => state.setFilters);\n const resetFilters = useFilterStore(state => state.resetFilters);\n const radiusFilter = filters[FilterType.radius] || DEFAULT_RADIUS_MILES;\n const selectionMode = filters.selectionMode || 'radius';\n const { polygonCoords } = filters;\n const { canViewCompanies, companies } = useCompanies({ open });\n const [selectedWells, setSelectedWells] = useState([]);\n const [preselectedCompanyIds, setPreselectedCompanyIds] = useState([]);\n\n const companyFilter = useMemo(() => filters[FilterType.company], [filters]);\n\n // Bootstrap: ensure companies of pre-selected wells (from settings) are fetched after refresh\n useEffect(() => {\n const selectedIds = offsetSettings?.selectedWellIds || [];\n if (!open || preselectedCompanyIds.length > 0 || selectedIds.length === 0) return;\n (async () => {\n const ids = await fetchCompanyIdsByWellIds(selectedIds);\n setPreselectedCompanyIds(ids);\n })();\n }, [open, offsetSettings?.selectedWellIds, preselectedCompanyIds.length]);\n\n // Compute which companies to fetch wells from\n const companyIdsToFetch = useMemo(() => {\n // Always include companies of selected wells so they remain visible\n const selectedWellCompanyIds = selectedWells\n .map(well => well.companyId)\n .filter(id => id != null);\n const bootstrapCompanyIds = preselectedCompanyIds || [];\n\n // If user can't view companies, use default behavior (fetch from user's company only)\n if (!canViewCompanies) {\n const baseIds = assetCompanyId ? [assetCompanyId] : [];\n return [...new Set([...baseIds, ...selectedWellCompanyIds, ...bootstrapCompanyIds])];\n }\n\n // If no company filter set at all, default to subject well's company (initial state)\n if (companyFilter === undefined) {\n const baseIds = assetCompanyId ? [assetCompanyId] : [];\n return [...new Set([...baseIds, ...selectedWellCompanyIds, ...bootstrapCompanyIds])];\n }\n // If company filter is empty array, user cleared it = fetch all companies\n if (Array.isArray(companyFilter) && companyFilter.length === 0) {\n return null; // null means fetch from all companies\n }\n // If company filter has values, always include subject well's company + selected wells' companies\n const allIdsSet = new Set(companyFilter);\n if (assetCompanyId) {\n allIdsSet.add(assetCompanyId);\n }\n selectedWellCompanyIds.forEach(id => allIdsSet.add(id));\n bootstrapCompanyIds.forEach(id => allIdsSet.add(id));\n return Array.from(allIdsSet);\n }, [companyFilter, assetCompanyId, canViewCompanies, selectedWells, preselectedCompanyIds]);\n const [selectedWellSection, setSelectedWellSection] = useState(\n offsetSettings?.wellSection || ALL_SECTION_KEY\n );\n const initLoading = useRef(true);\n const [isTableLoading, setIsTableLoading] = useState(true);\n const hasBootstrappedSelectedWells = useRef(false);\n\n // Bootstrap: ensure selected wells are populated even if not yet in `wells`\n useEffect(() => {\n if (hasBootstrappedSelectedWells.current) return;\n const selectedIds = offsetSettings?.selectedWellIds || [];\n if (!open || selectedIds.length === 0) {\n hasBootstrappedSelectedWells.current = true;\n return;\n }\n (async () => {\n const missingIds = selectedIds.filter(id => !selectedWells.some(w => w.id === id));\n if (missingIds.length === 0) {\n hasBootstrappedSelectedWells.current = true;\n return;\n }\n const fetched = await fetchWellsByIds(missingIds);\n if (fetchedSubjectWell) {\n setSelectedWells(prev => {\n const withSubject = fetched.find(w => w.id === fetchedSubjectWell.id)\n ? fetched\n : fetched.concat(fetchedSubjectWell);\n return uniqBy(prev.concat(withSubject), 'id');\n });\n } else {\n setSelectedWells(prev => uniqBy(prev.concat(fetched), 'id'));\n }\n hasBootstrappedSelectedWells.current = true;\n })();\n // TODO: Check reference stability. Initially had only open, offsetSettings?.selectedWellIds\n }, [open, offsetSettings?.selectedWellIds, fetchedSubjectWell, selectedWells]);\n const isLimitedOffsetWells = maxOffsetWellNumber <= selectedWells?.length;\n\n /** @type {ReturnType<typeof useRef<number[]>>} */\n const prevSelectedWellIds = useRef();\n const [appLoading, setAppLoading] = useState(true);\n\n useEffect(() => {\n if (open && isLimitedOffsetWells) {\n showInfoNotification(\n `App can’t process more than (${maxOffsetWellNumber - 1}) Offset Wells.`\n );\n }\n // NOTE: Refresh when the offset well changes externally\n if (!open) {\n const prevIdsSet = new Set(prevSelectedWellIds.current || []);\n const isNotChanged =\n offsetSettings?.selectedWellIds?.length === prevSelectedWellIds.current?.length &&\n (offsetSettings?.selectedWellIds || []).every(id => prevIdsSet.has(id));\n if (!isNotChanged) {\n initLoading.current = true;\n }\n prevSelectedWellIds.current = offsetSettings?.selectedWellIds;\n }\n // TODO: Check reference stability. Initially had only isLimitedOffsetWells, open, offsetSettings.\n }, [isLimitedOffsetWells, open, offsetSettings, maxOffsetWellNumber]);\n\n // NOTE: Fetch wells based on company filter, coordinate bounds, or polygon if subject well exists\n const [rawWells, areWellsLoading] = useFetchWells(\n companyIdsToFetch,\n fetchedSubjectWell,\n radiusFilter,\n selectionMode,\n polygonCoords\n );\n const [companyProvider] = useCompanyProvider(assetCompanyId);\n\n const [\n wellSections,\n setWellSections,\n bicWells,\n setBicWells,\n resyncStatus,\n setResyncStatus,\n taScores,\n ] = useBicWells(subjectWellId, rawWells);\n\n // NOTE: Derive enriched subject well from fetched data + sections\n const subjectWell = useMemo(() => {\n if (!fetchedSubjectWell) return null;\n if (!wellSections?.length) return fetchedSubjectWell;\n\n const allSectionNames = wellSections\n .filter(item => item.value !== ALL_SECTION_KEY)\n .map(({ label }) => label);\n\n return allSectionNames.length > 0\n ? { ...fetchedSubjectWell, [ColumnType.wellSection]: allSectionNames }\n : fetchedSubjectWell;\n }, [fetchedSubjectWell, wellSections]);\n\n useEffect(() => {\n setAppLoading(true);\n setWellSections(null);\n setBicWells(null);\n // TODO: Check reference stability. Initially had only subjectWellId.\n }, [setBicWells, setWellSections, subjectWellId]);\n\n const [metricsKeys, setMetricsKeys] = useCompanyMetricKey(\n assetCompanyId,\n offsetSettings?.metricsKeys\n );\n\n // NOTE: Calculate wells with coordinates, metrics and well section name\n const wellsWithoutCompanyName = useAdvancedWells(\n assetCompanyId,\n rawWells,\n wellSections,\n bicWells,\n subjectWellId,\n metricsKeys,\n open\n );\n\n // NOTE: Add company names to wells for display\n const wells = useMemo(() => {\n if (!wellsWithoutCompanyName || !companies?.length) return wellsWithoutCompanyName;\n\n const companyMap = {};\n companies.forEach(company => {\n companyMap[company.id] = company.name;\n });\n\n return wellsWithoutCompanyName.map(well => ({\n ...well,\n companyName: companyMap[well.companyId] || 'Null',\n }));\n }, [wellsWithoutCompanyName, companies]);\n\n // TODO: Why it was !areWellsLoading && wells?.length === rawWells?.length;?\n const isAllWellsLoaded = !areWellsLoading;\n\n useEffect(() => {\n if (!isAllWellsLoaded) return;\n const syncOffsetWells = async () => {\n const isSynced = typeof offsetSettings?.isSynced === 'undefined' || offsetSettings?.isSynced;\n let offsetWellsChanged = true;\n if (isSynced) {\n const bicWellIds = bicWells[ALL_SECTION_KEY] || [];\n const bicWellIdsSet = new Set(bicWellIds);\n const isMatched = (offsetSettings?.selectedWellIds || []).every(wellId =>\n bicWellIdsSet.has(wellId)\n );\n // if well hub or offset selection app be changed\n if (bicWellIds.length !== offsetSettings?.selectedWellIds?.length || !isMatched) {\n const wellsByDistance = await getCoordinatedWells(bicWellIds, subjectWellId);\n let selectedWellIds = wellsByDistance.slice(0, maxOffsetSize + 1).map(well => well.id);\n selectedWellIds = wellsByDistance.slice(0, localMaxOffsetSize + 1).map(well => well.id);\n const newOffsetSetting = {\n ...offsetSettings,\n subjectWellId,\n selectedWellIds,\n offsetWellsLimited: maxOffsetWellNumber <= selectedWellIds.length,\n };\n const selectedWellIdsSet = new Set(selectedWellIds);\n const offsetWells = wellsByDistance.filter(well => selectedWellIdsSet.has(well.id));\n onSave(newOffsetSetting, offsetWells);\n } else {\n offsetWellsChanged = false;\n }\n } else {\n offsetWellsChanged = false;\n }\n\n if (!offsetWellsChanged) {\n const offsetWells = await getCoordinatedWells(\n offsetSettings?.selectedWellIds || [],\n subjectWellId\n );\n onSave(offsetSettings, offsetWells);\n }\n };\n\n if (syncAutoEnabled && appLoading && offsetSettings && bicWells) {\n syncOffsetWells();\n setAppLoading(false);\n }\n // TODO: Check reference stability. Initially had only offsetSettings, bicWells, subjectWellId, maxOffsetWellNumber, syncAutoEnabled\n }, [\n offsetSettings,\n bicWells,\n subjectWellId,\n maxOffsetWellNumber,\n syncAutoEnabled,\n isAllWellsLoaded,\n appLoading,\n maxOffsetSize,\n localMaxOffsetSize,\n onSave,\n ]);\n\n const filterOptions = useFilterOptions(wells, companies, canViewCompanies);\n\n // NOTE: Table columns with metrics\n const columnsWithDict = useTableColumns(metricsKeys, canViewCompanies);\n // NOTE: Filter wells\n const filteredWells = useFilteredWells(wells, filters);\n\n // NOTE: Include selected wells from other companies so they can be deselected\n const wellsToDisplay = useMemo(() => {\n if (!filteredWells) return filteredWells;\n // Ensure ALL selected wells are displayed (at top via useSortedWells)\n // regardless of current company filter\n return uniqBy([...selectedWells, ...filteredWells], 'id');\n }, [filteredWells, selectedWells]);\n\n useEffect(() => {\n if (!filteredWells || !isAllWellsLoaded) return;\n\n if (initLoading.current) {\n const selectedIdsSet = new Set(offsetSettings?.selectedWellIds || []);\n let data = wells.filter(well => selectedIdsSet.has(well.id));\n if (subjectWell) data = data.concat(subjectWell);\n setSelectedWells(uniqBy(data, 'id'));\n initLoading.current = false;\n }\n // Don't automatically deselect wells when filters change - let user manually deselect them\n // TODO: Check reference stability. Initially had only wells, filteredWells, offsetSettings?.selectedWellIds, isAllWellsLoaded\n }, [wells, filteredWells, offsetSettings?.selectedWellIds, isAllWellsLoaded, subjectWell]);\n\n // NOTE: Sort wells\n const [sortBy, setSortBy, sortDirection, setSortDirection, sortedWells] = useSortedWells(\n subjectWell,\n wellsToDisplay,\n selectedWells,\n setIsTableLoading\n );\n\n // NOTE: Add advanced wells\n const handleAddRemoveAssets = useCallback(\n (isAdding, newAssets, assetType) => {\n let addingWellIds;\n if (assetType === SEARCH_CATEGORIES.well.name) {\n addingWellIds = newAssets;\n } else {\n // Build lookup maps once for O(1) access\n const wellIdToRigName = new Map();\n const rigNameToWellIds = new Map();\n wells.forEach(well => {\n wellIdToRigName.set(well.id, well.rigName);\n if (!rigNameToWellIds.has(well.rigName)) {\n rigNameToWellIds.set(well.rigName, []);\n }\n rigNameToWellIds.get(well.rigName).push(well.id);\n });\n\n const allRigWellIds = [];\n newAssets.forEach(assetId => {\n const rigName = wellIdToRigName.get(assetId);\n const rigWellIds = rigNameToWellIds.get(rigName) || [];\n allRigWellIds.push(...rigWellIds);\n });\n addingWellIds = allRigWellIds;\n }\n const addingWellIdsSet = new Set(addingWellIds);\n let addingWells = wells.filter(({ id }) => addingWellIdsSet.has(id));\n if (isAdding) {\n addingWells = addingWells.slice(\n 0,\n Math.min(addingWells.length, maxOffsetWellNumber - selectedWells.length)\n );\n setSelectedWells(selectedWells => uniqBy(selectedWells.concat(addingWells), 'id'));\n } else {\n setSelectedWells(selectedWells =>\n uniq(selectedWells.filter(({ id }) => !addingWells.find(well => well.id === id)))\n );\n }\n },\n // TODO: Check reference stability. Initially had wells, selectedWells\n [wells, maxOffsetWellNumber, selectedWells.length]\n );\n\n const handleHideAdvancedSearch = useCallback(() => {\n setIsAdvancedSearchHidden(true);\n }, [setIsAdvancedSearchHidden]);\n\n // NOTE: Change metrics keys\n const handleChangeMetricsKeys = useCallback(\n newMetricsKeys => {\n setMetricsKeys(newMetricsKeys);\n },\n [setMetricsKeys]\n );\n\n const handleUpdateMetricsKey = useCallback(\n (key, newValue) => {\n setMetricsKeys(prevKeys => prevKeys.map(item => (item === key ? newValue : item)));\n },\n [setMetricsKeys]\n );\n\n const handleChangeSortBy = useCallback(\n (sortKey, sortDirection) => {\n setSortBy(sortKey);\n setSortDirection(sortDirection);\n },\n [setSortBy, setSortDirection]\n );\n\n // NOTE: Check and Uncheck one offset well\n const handleChangeOffsetWell = useCallback(\n (well, checked) => {\n if (checked) {\n const enrichedWell = wells?.find(w => w.id === well.id) || well;\n setSelectedWells(prevWells => [...prevWells, enrichedWell]);\n } else {\n setSelectedWells(prevWells => prevWells.filter(item => item.id !== well.id));\n }\n },\n [wells]\n );\n\n // NOTE: Select and Unselect All wells\n const handleChangeAllOffsetWells = useCallback(\n checked => {\n if (checked) {\n const data = subjectWell ? filteredWells.concat(subjectWell) : filteredWells;\n const sortedData = sortArray(uniqBy(data, 'id'), 'distance');\n setSelectedWells(sortedData.slice(0, maxOffsetWellNumber));\n } else {\n setSelectedWells(subjectWell ? [subjectWell] : []);\n }\n },\n [filteredWells, subjectWell, maxOffsetWellNumber]\n );\n\n // NOTE: Well Section change filter\n const updateSelectedWellsBySection = useCallback(\n section => {\n if (bicWells) {\n const sectionWellIdsSet = new Set(bicWells[section] || []);\n const sectionWells = wells?.filter(well => sectionWellIdsSet.has(well.id)) || [];\n const limitedWells = sortArray(sectionWells, 'distance');\n setSelectedWells(limitedWells.slice(0, maxOffsetSize));\n } else {\n setSelectedWells(subjectWell ? [subjectWell] : []);\n }\n },\n [bicWells, maxOffsetSize, subjectWell, wells]\n );\n\n const handleChangeWellSection = useCallback(\n section => {\n setSelectedWellSection(section);\n updateSelectedWellsBySection(section);\n },\n [updateSelectedWellsBySection]\n );\n\n // NOTE: Get Selected wells count\n const selectedWellsCount = useMemo(() => {\n if (selectedWells.find(well => well.id === subjectWellId)) {\n return selectedWells.length - 1;\n }\n return selectedWells.length;\n }, [selectedWells, subjectWellId]);\n\n // NOTE: Save offset setting\n const isSynced = useMemo(() => {\n if (!bicWells) return false;\n const selectedWellIds = selectedWells.map(({ id }) => id);\n const owsWellIds = bicWells[selectedWellSection] || [];\n const owsWellIdsLength = Math.min(owsWellIds.length, maxOffsetSize);\n\n if (owsWellIdsLength !== selectedWellIds.length) {\n return false;\n }\n const owsWellIdsSet = new Set(owsWellIds);\n return selectedWellIds.every(id => owsWellIdsSet.has(id));\n }, [bicWells, selectedWells, selectedWellSection, maxOffsetSize]);\n\n const isXtoProvider = useMemo(() => {\n return companyProvider ? COMPANY_PROVIDERS_FOR_IDAS.includes(companyProvider) : false;\n }, [companyProvider]);\n\n const offsetLabel = useMemo(() => {\n if (isXtoProvider) {\n return 'IDAS generated offsets.';\n }\n\n return isWDUser ? 'Offset Selection App.' : 'WellHub.';\n }, [isXtoProvider, isWDUser]);\n\n const handleSave = () => {\n onClose();\n\n const newOffsetSetting = {\n ...offsetSettings,\n companyId: assetCompanyId,\n subjectWellId,\n selectedWellIds: selectedWells.map(({ id }) => id),\n filters,\n metricsKeys,\n wellSection: selectedWellSection,\n isSynced,\n mapHidden: isMapHidden,\n filterExpanded: isFilterExpanded,\n wellNameExpanded: isWellNameExpand,\n offsetWellsLimited: isLimitedOffsetWells,\n };\n onSave(newOffsetSetting, selectedWells);\n };\n\n const handleCancel = () => {\n const selectedIdsSet = new Set(offsetSettings?.selectedWellIds || []);\n let data = (wells || []).filter(well => selectedIdsSet.has(well.id));\n if (subjectWell) data = data.concat(subjectWell);\n setSelectedWells(uniqBy(data, 'id'));\n\n const newOffsetSetting = {\n ...offsetSettings,\n mapHidden: isMapHidden,\n filterExpanded: isFilterExpanded,\n wellNameExpanded: isWellNameExpand,\n };\n onSave(newOffsetSetting);\n setFilters({\n [FilterType.radius]: DEFAULT_RADIUS_MILES,\n ...(offsetSettings?.filters || {}),\n });\n setSelectedWellSection(offsetSettings?.wellSection || ALL_SECTION_KEY);\n onClose();\n };\n\n const isTableFullLoading = isTableLoading || areWellsLoading;\n\n // NOTE: Reset processing\n const isResetVisible = useMemo(() => {\n if (!hasValidAssetId) return false;\n if (isTableFullLoading) return false;\n if (!isSynced) return true;\n if (!isEmpty(filters) && filters[FilterType.sideTracks]) return true;\n if (selectedWellSection !== ALL_SECTION_KEY) return true;\n return false;\n }, [hasValidAssetId, isSynced, filters, selectedWellSection, isTableFullLoading]);\n\n const handleReset = useCallback(() => {\n resetFilters();\n setSelectedWellSection(ALL_SECTION_KEY);\n updateSelectedWellsBySection(ALL_SECTION_KEY);\n }, [resetFilters, updateSelectedWellsBySection]);\n\n const isLoading = !wells || !wellSections || !sortedWells;\n\n // NOTE: Well Name shadow\n const [tableRowsCount, setTableRowsCount] = useState(ROWS_PER_PAGE);\n const [tableWells, setTableWells] = useState([]);\n const headTableRef = useRef();\n\n useEffect(() => {\n if (!sortedWells) return;\n\n const wells = sortedWells.slice(0, tableRowsCount);\n setTableWells(wells);\n }, [sortedWells, tableRowsCount, subjectWell]);\n\n // NOTE: Remove shadow from header column\n useEffect(() => {\n if (!headTableRef.current) return;\n const headColumn = headTableRef.current.querySelector(`.${offsetTableStyles.wellNameFixed}`);\n if (!headColumn) return;\n if (!isHScrollMoved) {\n headColumn.classList.add(offsetTableStyles.noShadow);\n } else {\n headColumn.classList.remove(offsetTableStyles.noShadow);\n }\n }, [isHScrollMoved, tableWells]);\n\n // Calculations for table header and search - moved from OffsetWellsTable\n const uniqTableWells = useMemo(() => uniqBy(tableWells, 'id'), [tableWells]);\n\n const [selectedTableWells, indeterminate, isAllWellsSelected] = useMemo(() => {\n const selectedTableWells = uniqTableWells.filter(well => well.checked);\n const indeterminate =\n uniqTableWells.length !== selectedTableWells.length &&\n Boolean(selectedTableWells.length) &&\n !isLimitedOffsetWells;\n const isAllWellsSelected =\n selectedTableWells.length === uniqTableWells.length || isLimitedOffsetWells;\n\n return [selectedTableWells, indeterminate, isAllWellsSelected];\n }, [uniqTableWells, isLimitedOffsetWells]);\n\n const isImperial = useMemo(() => getIsImperial(), []);\n\n useEffect(() => {\n if (resyncStatus === RESYNC_STATUS.SUCCEEDED) {\n handleReset();\n }\n // TODO: Check reference stability. Initially had only bicWells\n }, [bicWells, handleReset, resyncStatus]);\n\n const handleScroll = e => {\n if (!e.target) return;\n\n if (isAdvancedSearchHidden) {\n e.target.scrollLeft = 0;\n setIsAdvancedSearchHidden(false);\n }\n\n // Check if H-Scroll is visible\n if (e.target.scrollLeft <= 5 && isHScrollMoved) {\n setIsHScrollMoved(false);\n }\n if (e.target.scrollLeft > 5 && !isHScrollMoved) {\n setIsHScrollMoved(true);\n }\n\n // Check if scroll has reached top or bottom\n if (e.target.scrollHeight === e.target.offsetHeight) return;\n\n const currentScrollBottom = Math.round(e.target.scrollTop + e.target.offsetHeight + 2);\n\n if (currentScrollBottom >= e.target.scrollHeight && tableRowsCount < sortedWells.length) {\n setTableRowsCount(count => count + ROWS_PER_PAGE);\n }\n };\n\n return (\n <Modal\n open={open}\n onClose={handleCancel}\n size=\"fullscreen\"\n className={styles.modalDialog}\n title={\n <AppHeader\n totalCount={wells?.length ?? 0}\n selectedCount={selectedWellsCount}\n maxOffsetWellNumber={maxOffsetWellNumber}\n isXtoProvider={isXtoProvider}\n resyncStatus={resyncStatus}\n setResyncStatus={setResyncStatus}\n metricsKeys={metricsKeys}\n onChangeMetricsKeys={handleChangeMetricsKeys}\n />\n }\n actions={\n !isViewOnly && (\n <div className={styles.actionsWrapper}>\n {!isLoading && isResetVisible ? (\n <Tooltip\n placement=\"bottom-start\"\n title={`Reset to Synced Offsets in ${isWDUser ? 'Offset App' : 'Wellhub'}`}\n >\n <div>\n <Button\n data-testid={`${PAGE_NAME}_reset`}\n onClick={handleReset}\n color=\"primary\"\n startIcon={<ReplayIcon />}\n >\n Reset\n </Button>\n </div>\n </Tooltip>\n ) : (\n hasValidAssetId && (\n <div>\n <span className={classNames(typography.regular12, typography.colors.t6)}>\n The offset list is being automatically populated by \n </span>\n <span className={classNames(typography.medium12, typography.colors.t6)}>\n {offsetLabel}\n </span>\n </div>\n )\n )}\n <div className={styles.buttonGap}>\n <Button data-testid={`${PAGE_NAME}_cancel`} onClick={handleCancel} color=\"primary\">\n Cancel\n </Button>\n <Button\n data-testid={`${PAGE_NAME}_selectedWells`}\n variant=\"contained\"\n color=\"primary\"\n onClick={handleSave}\n >\n Select ({selectedWellsCount})\n </Button>\n </div>\n </div>\n )\n }\n >\n <div className={classNames(styles.offsetWellDialog)}>\n <NotificationsContainer />\n {!isLoading ? (\n <div\n className={classNames(styles.contentWrapper, {\n [styles.contentBlocked]: isTableFullLoading,\n })}\n >\n <div className={styles.columnsContainer}>\n {!isMapHidden && open && (\n <div className={styles.leftColumn}>\n <WellsMap\n mapHidden={isMapHidden}\n subjectWell={subjectWell}\n offsetWellIds={selectedWells.map(({ id }) => id)}\n wells={wellsToDisplay}\n handleChangeOffsetWell={handleChangeOffsetWell}\n activeWellId={activeWellId}\n />\n </div>\n )}\n <div className={styles.rightColumn} onScroll={handleScroll}>\n <Filter\n isHidden={!isFilterExpanded}\n filterOptions={filterOptions}\n wellSections={wellSections}\n selectedWellSection={selectedWellSection}\n subjectWell={subjectWell}\n assetCompanyId={assetCompanyId}\n onChangeBicWells={handleChangeWellSection}\n />\n <div className={offsetTableStyles.stickyTable}>\n <Table aria-label=\"ows table head\" innerRef={headTableRef}>\n <TableHead>\n <OffsetWellsTableHead\n columnsWithDict={columnsWithDict}\n metricsKeys={metricsKeys}\n sortBy={sortBy}\n sortDirection={sortDirection}\n indeterminate={indeterminate}\n isAllWellsSelected={isAllWellsSelected}\n onChangeSort={handleChangeSortBy}\n onUpdateMetricsKey={handleUpdateMetricsKey}\n handleChangeAllOffsetWells={handleChangeAllOffsetWells}\n wellNameStyle={offsetTableStyles.wellNameFixed}\n isImperial={isImperial}\n isTaColumnVisible={!!taScores.length}\n />\n </TableHead>\n {isViewOnly && <div className={styles.topGradient} />}\n </Table>\n </div>\n\n {!isViewOnly && (\n <div className={classNames(offsetTableStyles.searchCellWrapper)}>\n <div className={offsetTableStyles.searchCell}>\n <AdvancedSearch\n companyId={assetCompanyId}\n subjectWellId={subjectWellId}\n onChange={handleAddRemoveAssets}\n selectedWellIds={selectedTableWells.map(({ id }) => id)}\n onHideAdvancedSearch={handleHideAdvancedSearch}\n />\n </div>\n <div className={styles.topGradient} />\n </div>\n )}\n\n <OffsetWellsTable\n isTableLoading={isTableFullLoading}\n subjectWellId={subjectWellId}\n columnsWithDict={columnsWithDict}\n wells={tableWells}\n metricsKeys={metricsKeys}\n handleChangeOffsetWell={handleChangeOffsetWell}\n isLastWell={sortedWells.length <= tableRowsCount}\n isLimitedOffsetWells={isLimitedOffsetWells}\n maxOffsetWellNumber={maxOffsetWellNumber}\n wellSections={wellSections}\n setActiveWellId={setActiveWellId}\n taScores={taScores}\n />\n </div>\n </div>\n {isViewOnly && hasValidAssetId && (\n <div className={styles.viewOnlyInfoContainer}>\n <span className={classNames(typography.regular12, typography.colors.t6)}>\n The offset list is being automatically populated by \n </span>\n <span className={classNames(typography.medium12, typography.colors.t6)}>\n {offsetLabel}\n </span>\n </div>\n )}\n </div>\n ) : (\n <LoadingIndicator />\n )}\n </div>\n </Modal>\n );\n};\n"],"names":["PAGE_NAME","OffsetWellPickerV5","_wells$length","open","usePickerPropsStore","state","isWDUser","defaultSubjectWell","currentUser","offsetSettings","isViewOnly","onClose","onSave","offsetSize","maxOffsetSize","localMaxOffsetSize","syncAutoEnabled","useState","_useState2","_slicedToArray","_useState","activeWellId","setActiveWellId","Math","min","MAX_OFFSET_SIZE","maxOffsetWellNumber","max","subjectWellId","asset_id","useFetchSubjectWell","fetchedSubjectWell","_useFetchSubjectWell","useGlobalOffsetWellsSync","isFilterExpanded","useViewStore","isMapHidden","isWellNameExpand","isHScrollMoved","setIsHScrollMoved","isAdvancedSearchHidden","setIsAdvancedSearchHidden","assetCompanyId","companyId","company_id","hasValidAssetId","filters","useFilterStore","setFilters","resetFilters","radiusFilter","FilterType","radius","DEFAULT_RADIUS_MILES","selectionMode","polygonCoords","_useCompanies","useCompanies","canViewCompanies","companies","_useState4","_useState3","selectedWells","setSelectedWells","_useState6","_useState5","preselectedCompanyIds","setPreselectedCompanyIds","companyFilter","useMemo","company","useEffect","selectedIds","selectedWellIds","length","_asyncToGenerator","_regeneratorRuntime","mark","_callee","ids","wrap","_context","prev","next","fetchCompanyIdsByWellIds","sent","stop","companyIdsToFetch","selectedWellCompanyIds","map","well","filter","id","bootstrapCompanyIds","_toConsumableArray","Set","baseIds","undefined","Array","isArray","allIdsSet","add","forEach","from","_useState7","wellSection","ALL_SECTION_KEY","_useState8","selectedWellSection","setSelectedWellSection","initLoading","useRef","_useState10","_useState9","isTableLoading","setIsTableLoading","hasBootstrappedSelectedWells","current","_callee2","missingIds","fetched","_context2","some","w","abrupt","fetchWellsByIds","withSubject","find","concat","uniqBy","isLimitedOffsetWells","prevSelectedWellIds","_useState12","_useState11","appLoading","setAppLoading","showInfoNotification","_offsetSettings$selec","_prevSelectedWellIds$","prevIdsSet","every","has","useFetchWells","_useFetchWells2","_useFetchWells","rawWells","areWellsLoading","useCompanyProvider","companyProvider","_useCompanyProvider","_useBicWells","useBicWells","_useBicWells2","wellSections","setWellSections","bicWells","setBicWells","resyncStatus","setResyncStatus","taScores","subjectWell","allSectionNames","item","value","_ref3","label","ColumnType","useCompanyMetricKey","metricsKeys","_useCompanyMetricKey2","_useCompanyMetricKey","setMetricsKeys","wellsWithoutCompanyName","useAdvancedWells","wells","companyMap","name","_objectSpread","companyName","isAllWellsLoaded","_ref4","syncOffsetWells","_callee3","isSynced","offsetWellsChanged","_offsetSettings$selec2","bicWellIds","bicWellIdsSet","isMatched","wellsByDistance","newOffsetSetting","selectedWellIdsSet","offsetWells","_offsetWells","_context3","wellId","getCoordinatedWells","slice","offsetWellsLimited","apply","this","arguments","filterOptions","useFilterOptions","columnsWithDict","useTableColumns","filteredWells","useFilteredWells","wellsToDisplay","selectedIdsSet","data","useSortedWells","_useSortedWells2","_useSortedWells","sortBy","setSortBy","sortDirection","setSortDirection","sortedWells","handleAddRemoveAssets","useCallback","isAdding","newAssets","assetType","addingWellIds","SEARCH_CATEGORIES","wellIdToRigName","Map","rigNameToWellIds","set","rigName","get","push","allRigWellIds","assetId","rigWellIds","addingWellIdsSet","addingWells","_ref5","uniq","_ref6","handleHideAdvancedSearch","handleChangeMetricsKeys","newMetricsKeys","handleUpdateMetricsKey","key","newValue","prevKeys","handleChangeSortBy","sortKey","handleChangeOffsetWell","checked","enrichedWell","prevWells","handleChangeAllOffsetWells","sortedData","sortArray","updateSelectedWellsBySection","section","sectionWellIdsSet","sectionWells","limitedWells","handleChangeWellSection","selectedWellsCount","_ref7","owsWellIds","owsWellIdsSet","isXtoProvider","COMPANY_PROVIDERS_FOR_IDAS","includes","offsetLabel","handleCancel","mapHidden","filterExpanded","wellNameExpanded","isTableFullLoading","isResetVisible","isEmpty","sideTracks","handleReset","isLoading","ROWS_PER_PAGE","_useState14","_useState13","tableRowsCount","setTableRowsCount","_useState16","_useState15","tableWells","setTableWells","headTableRef","headColumn","querySelector","offsetTableStyles","wellNameFixed","classList","remove","noShadow","uniqTableWells","selectedTableWells","Boolean","_useMemo2","_useMemo","indeterminate","isAllWellsSelected","isImperial","getIsImperial","RESYNC_STATUS","SUCCEEDED","_jsx","Modal","size","className","styles","modalDialog","title","AppHeader","totalCount","selectedCount","onChangeMetricsKeys","actions","_jsxs","actionsWrapper","children","Tooltip","placement","Button","onClick","color","startIcon","ReplayIcon","classNames","typography","regular12","colors","t6","medium12","buttonGap","variant","_ref8","offsetWellDialog","NotificationsContainer","LoadingIndicator","contentWrapper","contentBlocked","columnsContainer","leftColumn","WellsMap","offsetWellIds","_ref9","rightColumn","onScroll","e","target","scrollLeft","scrollHeight","offsetHeight","round","scrollTop","count","Filter","isHidden","onChangeBicWells","stickyTable","Table","innerRef","TableHead","OffsetWellsTableHead","onChangeSort","onUpdateMetricsKey","wellNameStyle","isTaColumnVisible","topGradient","searchCellWrapper","searchCell","AdvancedSearch","onChange","_ref10","onHideAdvancedSearch","OffsetWellsTable","isLastWell","viewOnlyInfoContainer"],"mappings":"gpzBAqDA,IAAMA,GAAY,qBAELC,GAAqB,WAAM,IAAAC,GAChCC,GAAOC,GAAoB,SAAAC,GAAK,OAAIA,EAAMF,QAC1CG,GAAWF,GAAoB,SAAAC,GAAK,OAAIA,EAAMC,YAC9CC,GAAqBH,GAAoB,SAAAC,GAAK,OAAIA,EAAME,sBACxDC,GAAcJ,GAAoB,SAAAC,GAAK,OAAIA,EAAMG,eACjDC,GAAiBL,GAAoB,SAAAC,GAAK,OAAIA,EAAMI,kBACpDC,GAAaN,GAAoB,SAAAC,GAAK,OAAIA,EAAMK,cAChDC,GAAUP,GAAoB,SAAAC,GAAK,OAAIA,EAAMM,WAC7CC,GAASR,GAAoB,SAAAC,GAAK,OAAIA,EAAMO,UAC5CC,GAAaT,GAAoB,SAAAC,GAAK,OAAIA,EAAMS,iBAChDC,GAAqBX,GAAoB,SAAAC,GAAK,OAAIA,EAAMU,sBACxDC,GAAkBZ,GAAoB,SAAAC,GAAK,OAAIA,EAAMW,mBAEnBC,GAAAA,EAAS,MAAKC,GAAAC,EAAAC,GAAA,GAA/CC,GAAYH,GAAA,GAAEI,GAAeJ,GAAA,GAC9BJ,GAAgBS,KAAKC,IAAIX,GAAa,EAAGE,GAAqB,EAAGU,EAAkB,GACnFC,GAAsBH,KAAKC,IAC/BD,KAAKI,IAAIb,GAAeC,GAAqB,GAC7CU,EAAkB,GAGdG,GAAgBrB,cAAAA,EAAAA,GAAoBsB,SAGbC,GAAAA,EAAoBF,IAA1CG,GAAwDZ,EAAAa,GAAA,GAAtC,GAEzBC,GAAyBxB,GAAgBG,GAAQc,IAEjD,IAAMQ,GAAmBC,GAAa,SAAA9B,GAAK,OAAIA,EAAM6B,oBAC/CE,GAAcD,GAAa,SAAA9B,GAAK,OAAIA,EAAM+B,eAC1CC,G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AWI,SAAUJ,GAAWE,OAAOC,IAAIZ,SACpErD,eAWnB"}
|
|
1
|
+
{"version":3,"file":"OffsetWellPickerV5.js","sources":["../../../src/components/OffsetWellPickerV5/OffsetWellPickerV5.js"],"sourcesContent":["import { useState, useEffect, useRef, useCallback, useMemo } from 'react';\nimport classNames from 'classnames';\nimport { isEmpty, uniq, uniqBy, sortBy as sortArray } from 'lodash';\nimport { Replay as ReplayIcon } from '@material-ui/icons';\nimport { Table, TableHead } from '@material-ui/core';\n\nimport {\n useAdvancedWells,\n useBicWells,\n useFilterOptions,\n useCompanyMetricKey,\n useFilteredWells,\n useSortedWells,\n useTableColumns,\n useCompanyProvider,\n useCompanies,\n usePinnedWells,\n useSearchedWells,\n} from './effects';\nimport { useFetchWells } from './effects/useFetchWells';\nimport { useFetchSubjectWell } from './effects/useFetchSubjectWell';\nimport { fetchCompanyIdsByWellIds } from './api';\nimport { AppHeader } from './components/AppHeader';\nimport { Filter } from './components/Filter';\nimport { WellsMap } from './components/Map';\nimport { OffsetWellsTable } from './components/OffsetWellsTable';\nimport { OffsetWellsTableHead } from './components/OffsetWellsTable/OffsetWellsTableHead';\nimport { AdvancedSearch } from './components/OffsetWellsTable/AdvancedSearch';\nimport {\n ALL_SECTION_KEY,\n COMPANY_PROVIDERS_FOR_IDAS,\n FilterType,\n MAX_OFFSET_SIZE,\n ROWS_PER_PAGE,\n RESYNC_STATUS,\n DEFAULT_RADIUS_MILES,\n} from './constants';\nimport { SEARCH_CATEGORIES } from './components/OffsetWellsTable/AdvancedSearch/constants';\nimport { getCoordinatedWells } from './utils';\nimport { getIsImperial } from './utils/getIsImperial';\nimport { usePickerPropsStore } from './stores/picker-props-store/usePickerPropsStore';\nimport { useFilterStore } from './stores/filter-store/useFilterStore';\nimport { useViewStore } from './stores/view-store/useViewStore';\n\nimport styles from './OffsetWellPickerV5.module.css';\nimport offsetTableStyles from './components/OffsetWellsTable/OffsetWellsTable.module.css';\n\nimport { showInfoNotification } from '~/utils';\nimport { NotificationsContainer } from '~/components/Notifications';\nimport { typography } from '~/styles';\nimport { LoadingIndicator } from '~/components';\nimport { Button, LoaderCircular, Modal, Tooltip } from '~/componentsV2';\nimport { useGlobalOffsetWellsSync } from '~/effects';\n\nconst PAGE_NAME = 'OffsetWellPickerV5';\n\nexport const OffsetWellPickerV5 = () => {\n const open = usePickerPropsStore(state => state.open);\n const isWDUser = usePickerPropsStore(state => state.isWDUser);\n const defaultSubjectWell = usePickerPropsStore(state => state.defaultSubjectWell);\n const currentUser = usePickerPropsStore(state => state.currentUser);\n const offsetSettings = usePickerPropsStore(state => state.offsetSettings);\n const isViewOnly = usePickerPropsStore(state => state.isViewOnly);\n const onClose = usePickerPropsStore(state => state.onClose);\n const onSave = usePickerPropsStore(state => state.onSave);\n const offsetSize = usePickerPropsStore(state => state.maxOffsetSize);\n const localMaxOffsetSize = usePickerPropsStore(state => state.localMaxOffsetSize);\n const syncAutoEnabled = usePickerPropsStore(state => state.syncAutoEnabled);\n\n const [activeWellId, setActiveWellId] = useState(null);\n const maxOffsetSize = Math.min(offsetSize + 1, localMaxOffsetSize + 1, MAX_OFFSET_SIZE + 1);\n const maxOffsetWellNumber = Math.min(\n Math.max(maxOffsetSize, localMaxOffsetSize + 1),\n MAX_OFFSET_SIZE + 1\n );\n\n const subjectWellId = defaultSubjectWell?.asset_id;\n\n // Fetch complete subject well data with coordinates\n const [fetchedSubjectWell] = useFetchSubjectWell(subjectWellId);\n\n useGlobalOffsetWellsSync(offsetSettings, onSave, maxOffsetWellNumber);\n\n const isFilterExpanded = useViewStore(state => state.isFilterExpanded);\n const isMapHidden = useViewStore(state => state.isMapHidden);\n const isHScrollMoved = useViewStore(state => state.isHScrollMoved);\n const setIsHScrollMoved = useViewStore(state => state.setIsHScrollMoved);\n const isAdvancedSearchHidden = useViewStore(state => state.isAdvancedSearchHidden);\n const setIsAdvancedSearchHidden = useViewStore(state => state.setIsAdvancedSearchHidden);\n\n const assetCompanyId = +defaultSubjectWell?.companyId || +currentUser?.company_id;\n const hasValidAssetId = subjectWellId > 0;\n const filters = useFilterStore(state => state.filters);\n const setFilters = useFilterStore(state => state.setFilters);\n const resetFilters = useFilterStore(state => state.resetFilters);\n const radiusFilter = useFilterStore(state => state.filters.radius) ?? DEFAULT_RADIUS_MILES;\n const selectionMode = useFilterStore(state => state.filters.selectionMode) ?? 'radius';\n const polygonCoords = useFilterStore(state => state.filters.polygonCoords);\n const { canViewCompanies, companies } = useCompanies({ open });\n const [selectedWells, setSelectedWells] = useState([]);\n const [preselectedCompanyIds, setPreselectedCompanyIds] = useState([]);\n\n // Track wells being selected via search that need to wait for enrichment\n const pendingSearchSelectionRef = useRef(new Set());\n\n // Track asset IDs currently being fetched (for loading spinner in search dropdown)\n const [loadingAssetIds, setLoadingAssetIds] = useState([]);\n\n // Track if save is waiting for pending wells to be enriched\n const [isSavePending, setIsSavePending] = useState(false);\n\n const companyFilter = useMemo(() => filters[FilterType.company], [filters]);\n\n // Bootstrap: ensure companies of pre-selected wells (from settings) are fetched after refresh\n useEffect(() => {\n const selectedIds = offsetSettings?.selectedWellIds || [];\n if (!open || preselectedCompanyIds.length > 0 || selectedIds.length === 0) return;\n (async () => {\n const ids = await fetchCompanyIdsByWellIds(selectedIds);\n setPreselectedCompanyIds(ids);\n })();\n }, [open, offsetSettings?.selectedWellIds, preselectedCompanyIds.length]);\n\n // Compute which companies to fetch wells from\n const companyIdsToFetch = useMemo(() => {\n // Always include companies of selected wells so they remain visible\n const selectedWellCompanyIds = selectedWells\n .map(well => well.companyId)\n .filter(id => id != null);\n const bootstrapCompanyIds = preselectedCompanyIds || [];\n\n // If user can't view companies, use default behavior (fetch from user's company only)\n if (!canViewCompanies) {\n const baseIds = assetCompanyId ? [assetCompanyId] : [];\n\n return [...new Set(baseIds.concat(selectedWellCompanyIds, bootstrapCompanyIds))];\n }\n\n // If no company filter set at all, default to subject well's company (initial state)\n if (companyFilter === undefined) {\n const baseIds = assetCompanyId ? [assetCompanyId] : [];\n\n return [...new Set(baseIds.concat(selectedWellCompanyIds, bootstrapCompanyIds))];\n }\n // If company filter is empty array, user cleared it = fetch all companies\n if (Array.isArray(companyFilter) && companyFilter.length === 0) {\n return null; // null means fetch from all companies\n }\n // If company filter has values, always include subject well's company + selected wells' companies\n const allIdsSet = new Set(companyFilter);\n if (assetCompanyId) {\n allIdsSet.add(assetCompanyId);\n }\n selectedWellCompanyIds.forEach(id => allIdsSet.add(id));\n bootstrapCompanyIds.forEach(id => allIdsSet.add(id));\n return Array.from(allIdsSet);\n }, [companyFilter, assetCompanyId, canViewCompanies, selectedWells, preselectedCompanyIds]);\n const [selectedWellSection, setSelectedWellSection] = useState(\n offsetSettings?.wellSection || ALL_SECTION_KEY\n );\n const initLoading = useRef(true);\n const [isTableLoading, setIsTableLoading] = useState(true);\n\n const isLimitedOffsetWells = maxOffsetWellNumber <= selectedWells?.length;\n\n /** @type {ReturnType<typeof useRef<number[]>>} */\n const prevSelectedWellIds = useRef();\n const [appLoading, setAppLoading] = useState(true);\n\n useEffect(() => {\n if (open && isLimitedOffsetWells) {\n showInfoNotification(\n `App can’t process more than (${maxOffsetWellNumber - 1}) Offset Wells.`\n );\n }\n // NOTE: Refresh when the offset well changes externally\n if (!open) {\n const prevIdsSet = new Set(prevSelectedWellIds.current || []);\n const isNotChanged =\n offsetSettings?.selectedWellIds?.length === prevSelectedWellIds.current?.length &&\n (offsetSettings?.selectedWellIds || []).every(id => prevIdsSet.has(id));\n if (!isNotChanged) {\n initLoading.current = true;\n }\n prevSelectedWellIds.current = offsetSettings?.selectedWellIds;\n }\n // TODO: Check reference stability. Initially had only isLimitedOffsetWells, open, offsetSettings.\n }, [isLimitedOffsetWells, open, offsetSettings, maxOffsetWellNumber]);\n\n // NOTE: Fetch wells based on company filter, coordinate bounds, or polygon if subject well exists\n const [rawWells, areRawWellsLoading] = useFetchWells(\n companyIdsToFetch,\n fetchedSubjectWell,\n radiusFilter,\n selectionMode,\n polygonCoords\n );\n\n // NOTE: Fetch pinned wells independently of radius\n const [pinnedWells, arePinnedWellsLoading] = usePinnedWells(offsetSettings?.selectedWellIds);\n\n // NOTE: Fetch wells selected via search that are outside current bounds\n const [searchedWells, areSearchedWellsLoading, fetchSearchedWells] = useSearchedWells();\n\n // NOTE: Ensure subject well, pinned wells and searched wells are always in rawWells for enrichment pipeline\n const rawWellsWithSubject = useMemo(() => {\n if (!rawWells) {\n return null;\n }\n\n let result = rawWells;\n\n if (pinnedWells?.length) {\n const existingIds = new Set(result.map(w => w.id));\n const missingPinned = pinnedWells.filter(w => !existingIds.has(w.id));\n\n if (missingPinned.length > 0) {\n result = result.concat(missingPinned);\n }\n }\n\n // Merge searched wells (wells added via search that are outside bounds)\n if (searchedWells?.length) {\n const existingIds = new Set(result.map(w => w.id));\n const missingSearched = searchedWells.filter(w => !existingIds.has(w.id));\n\n if (missingSearched.length > 0) {\n result = result.concat(missingSearched);\n }\n }\n\n if (fetchedSubjectWell && !result.some(w => w.id === fetchedSubjectWell.id)) {\n result = [fetchedSubjectWell].concat(result);\n }\n\n return result;\n }, [rawWells, fetchedSubjectWell, pinnedWells, searchedWells]);\n\n const [companyProvider] = useCompanyProvider(assetCompanyId);\n\n const [\n wellSections,\n setWellSections,\n bicWells,\n setBicWells,\n resyncStatus,\n setResyncStatus,\n taScores,\n ] = useBicWells(subjectWellId, rawWellsWithSubject);\n\n const isWellSectionColumnVisible = useMemo(() => {\n if (!wellSections) {\n return false;\n }\n\n return wellSections.some(section => section.value !== ALL_SECTION_KEY);\n }, [wellSections]);\n\n useEffect(() => {\n setAppLoading(true);\n setWellSections(null);\n setBicWells(null);\n // TODO: Check reference stability. Initially had only subjectWellId.\n }, [setBicWells, setWellSections, subjectWellId]);\n\n const [metricsKeys, setMetricsKeys] = useCompanyMetricKey(\n assetCompanyId,\n offsetSettings?.metricsKeys\n );\n\n // NOTE: Calculate wells with coordinates, metrics and well section name\n const [wellsWithoutCompanyName, areAdvancedWellsLoading] = useAdvancedWells(\n assetCompanyId,\n rawWellsWithSubject,\n wellSections,\n bicWells,\n subjectWellId,\n metricsKeys,\n open\n );\n\n // NOTE: Add company names to wells for display\n const wells = useMemo(() => {\n if (!wellsWithoutCompanyName || !companies?.length) return wellsWithoutCompanyName;\n\n const companyMap = {};\n companies.forEach(company => {\n companyMap[company.id] = company.name;\n });\n\n return wellsWithoutCompanyName.map(well => ({\n ...well,\n companyName: companyMap[well.companyId] || 'Null',\n }));\n }, [wellsWithoutCompanyName, companies]);\n\n // NOTE: Derive enriched subject well from the enrichment pipeline (includes company name)\n const subjectWell = useMemo(() => {\n if (!fetchedSubjectWell) {\n return null;\n }\n\n if (!wells) {\n return fetchedSubjectWell;\n }\n\n const enrichedSubjectWell = wells.find(w => w.id === fetchedSubjectWell.id);\n\n return enrichedSubjectWell || fetchedSubjectWell;\n }, [fetchedSubjectWell, wells]);\n\n const isAllWellsLoaded =\n !areRawWellsLoading &&\n !areAdvancedWellsLoading &&\n !arePinnedWellsLoading &&\n !areSearchedWellsLoading;\n\n useEffect(() => {\n if (!isAllWellsLoaded) {\n return;\n }\n\n const syncOffsetWells = async () => {\n const isSynced = typeof offsetSettings?.isSynced === 'undefined' || offsetSettings?.isSynced;\n\n let offsetWellsChanged = true;\n\n if (isSynced) {\n const bicWellIds = bicWells[ALL_SECTION_KEY] || [];\n const bicWellIdsSet = new Set(bicWellIds);\n const isMatched = (offsetSettings?.selectedWellIds || []).every(wellId =>\n bicWellIdsSet.has(wellId)\n );\n\n // if well hub or offset selection app be changed\n if (bicWellIds.length !== offsetSettings?.selectedWellIds?.length || !isMatched) {\n const wellsByDistance = await getCoordinatedWells(bicWellIds, subjectWellId);\n const selectedWellIds = wellsByDistance\n .slice(0, localMaxOffsetSize + 1)\n .map(well => well.id);\n const newOffsetSetting = {\n ...offsetSettings,\n subjectWellId,\n selectedWellIds,\n offsetWellsLimited: maxOffsetWellNumber <= selectedWellIds.length,\n };\n const selectedWellIdsSet = new Set(selectedWellIds);\n const offsetWells = wellsByDistance.filter(well => selectedWellIdsSet.has(well.id));\n\n onSave(newOffsetSetting, offsetWells);\n } else {\n offsetWellsChanged = false;\n }\n } else {\n offsetWellsChanged = false;\n }\n\n if (!offsetWellsChanged) {\n const offsetWells = await getCoordinatedWells(\n offsetSettings?.selectedWellIds || [],\n subjectWellId\n );\n onSave(offsetSettings, offsetWells);\n }\n };\n\n if (syncAutoEnabled && appLoading && offsetSettings && bicWells) {\n syncOffsetWells();\n setAppLoading(false);\n }\n // TODO: Check reference stability. Initially had only offsetSettings, bicWells, subjectWellId, maxOffsetWellNumber, syncAutoEnabled\n }, [\n offsetSettings,\n bicWells,\n subjectWellId,\n maxOffsetWellNumber,\n syncAutoEnabled,\n isAllWellsLoaded,\n appLoading,\n maxOffsetSize,\n localMaxOffsetSize,\n onSave,\n ]);\n\n const filterOptions = useFilterOptions(wells, companies, canViewCompanies);\n\n // NOTE: Table columns with metrics\n const columnsWithDict = useTableColumns(\n metricsKeys,\n canViewCompanies,\n isWellSectionColumnVisible\n );\n // NOTE: Filter wells\n const filteredWells = useFilteredWells(wells, filters, polygonCoords, radiusFilter);\n\n // NOTE: Include selected wells from other companies so they can be deselected\n const wellsToDisplay = useMemo(() => {\n if (!filteredWells) {\n return filteredWells;\n }\n\n // Ensure ALL selected wells are displayed (at top via useSortedWells)\n // regardless of current company filter\n return uniqBy(selectedWells.concat(filteredWells), 'id');\n }, [filteredWells, selectedWells]);\n\n useEffect(() => {\n if (!filteredWells || !isAllWellsLoaded) {\n return;\n }\n\n if (initLoading.current) {\n const selectedIdsSet = new Set(offsetSettings?.selectedWellIds || []);\n\n let data = wells.filter(well => selectedIdsSet.has(well.id));\n\n // Preserve existing selectedWells not in wells array (may have been fetched by usePinnedWells)\n const dataIds = new Set(data.map(w => w.id));\n const preserved = selectedWells.filter(w => selectedIdsSet.has(w.id) && !dataIds.has(w.id));\n\n data = data.concat(preserved);\n\n if (subjectWell) {\n data = data.concat(subjectWell);\n }\n\n setSelectedWells(uniqBy(data, 'id'));\n initLoading.current = false;\n }\n }, [\n wells,\n filteredWells,\n offsetSettings?.selectedWellIds,\n isAllWellsLoaded,\n subjectWell,\n selectedWells,\n ]);\n\n // NOTE: Add pending search selections once wells are enriched\n useEffect(() => {\n if (!wells?.length || pendingSearchSelectionRef.current.size === 0) {\n return;\n }\n\n const pendingIds = pendingSearchSelectionRef.current;\n const enrichedWells = wells.filter(w => pendingIds.has(w.id));\n\n if (enrichedWells.length > 0) {\n setSelectedWells(prev => {\n const limited = enrichedWells.slice(0, Math.max(0, maxOffsetWellNumber - prev.length));\n\n return uniqBy(prev.concat(limited), 'id');\n });\n enrichedWells.forEach(w => pendingIds.delete(w.id));\n }\n }, [wells, maxOffsetWellNumber]);\n\n // NOTE: Sort wells\n const [sortBy, setSortBy, sortDirection, setSortDirection, sortedWells] = useSortedWells(\n subjectWell,\n wellsToDisplay,\n selectedWells,\n setIsTableLoading\n );\n\n // NOTE: Add advanced wells\n const handleAddRemoveAssets = useCallback(\n async (isAdding, newAssets, assetType) => {\n let addingWellIds;\n\n if (assetType === SEARCH_CATEGORIES.well.name) {\n addingWellIds = newAssets;\n } else {\n // Build lookup maps once for O(1) access\n const wellIdToRigName = new Map();\n const rigNameToWellIds = new Map();\n wells.forEach(well => {\n wellIdToRigName.set(well.id, well.rigName);\n if (!rigNameToWellIds.has(well.rigName)) {\n rigNameToWellIds.set(well.rigName, []);\n }\n rigNameToWellIds.get(well.rigName).push(well.id);\n });\n\n addingWellIds = newAssets.flatMap(assetId => {\n const rigName = wellIdToRigName.get(assetId);\n\n return rigNameToWellIds.get(rigName) || [];\n });\n }\n\n const addingWellIdsSet = new Set(addingWellIds);\n const addingWells = wells.filter(({ id }) => addingWellIdsSet.has(id));\n\n // Fetch missing wells (outside bounds) when adding via search\n // These will be added to selectedWells via effect once enriched\n if (isAdding && addingWells.length < addingWellIds.length) {\n const foundIds = new Set(addingWells.map(w => w.id));\n const missingIds = addingWellIds.filter(id => !foundIds.has(id));\n\n if (missingIds.length > 0) {\n // Show loading spinner in search dropdown\n setLoadingAssetIds(prev => prev.concat(missingIds));\n\n // Trigger fetch to add wells to enrichment pipeline\n await fetchSearchedWells(missingIds);\n\n // Clear loading state\n setLoadingAssetIds(prev => prev.filter(id => !missingIds.includes(id)));\n\n // Store as pending - effect will add enriched wells to selectedWells\n missingIds.forEach(id => pendingSearchSelectionRef.current.add(id));\n }\n }\n\n if (isAdding) {\n // Only add wells that are already enriched (in wells array)\n const limitedWells = addingWells.slice(\n 0,\n Math.min(addingWells.length, maxOffsetWellNumber - selectedWells.length)\n );\n if (limitedWells.length > 0) {\n setSelectedWells(selectedWells => uniqBy(selectedWells.concat(limitedWells), 'id'));\n }\n } else {\n setSelectedWells(selectedWells =>\n uniq(selectedWells.filter(({ id }) => !addingWells.find(well => well.id === id)))\n );\n }\n },\n // TODO: Check reference stability. Initially had wells, selectedWells\n [wells, maxOffsetWellNumber, selectedWells.length, fetchSearchedWells]\n );\n\n const handleHideAdvancedSearch = useCallback(() => {\n setIsAdvancedSearchHidden(true);\n }, [setIsAdvancedSearchHidden]);\n\n // NOTE: Change metrics keys\n const handleChangeMetricsKeys = useCallback(\n newMetricsKeys => {\n setMetricsKeys(newMetricsKeys);\n },\n [setMetricsKeys]\n );\n\n const handleUpdateMetricsKey = useCallback(\n (key, newValue) => {\n setMetricsKeys(prevKeys => prevKeys.map(item => (item === key ? newValue : item)));\n },\n [setMetricsKeys]\n );\n\n const handleChangeSortBy = useCallback(\n (sortKey, sortDirection) => {\n setSortBy(sortKey);\n setSortDirection(sortDirection);\n },\n [setSortBy, setSortDirection]\n );\n\n // NOTE: Check and Uncheck one offset well\n const handleChangeOffsetWell = useCallback(\n (well, checked) => {\n if (checked) {\n const enrichedWell = wells?.find(w => w.id === well.id) || well;\n setSelectedWells(prevWells => prevWells.concat(enrichedWell));\n } else {\n setSelectedWells(prevWells => prevWells.filter(item => item.id !== well.id));\n }\n },\n [wells]\n );\n\n // NOTE: Select and Unselect All wells\n const handleChangeAllOffsetWells = useCallback(\n checked => {\n if (checked) {\n const data = subjectWell ? filteredWells.concat(subjectWell) : filteredWells;\n const sortedData = sortArray(uniqBy(data, 'id'), 'distance');\n setSelectedWells(sortedData.slice(0, maxOffsetWellNumber));\n } else {\n setSelectedWells(subjectWell ? [subjectWell] : []);\n }\n },\n [filteredWells, subjectWell, maxOffsetWellNumber]\n );\n\n // NOTE: Well Section change filter\n const updateSelectedWellsBySection = useCallback(\n section => {\n if (bicWells) {\n const sectionWellIdsSet = new Set(bicWells[section] || []);\n const sectionWells = wells?.filter(well => sectionWellIdsSet.has(well.id)) || [];\n const limitedWells = sortArray(sectionWells, 'distance');\n setSelectedWells(limitedWells.slice(0, maxOffsetSize));\n } else {\n setSelectedWells(subjectWell ? [subjectWell] : []);\n }\n },\n [bicWells, maxOffsetSize, subjectWell, wells]\n );\n\n const handleChangeWellSection = useCallback(\n section => {\n setSelectedWellSection(section);\n updateSelectedWellsBySection(section);\n },\n [updateSelectedWellsBySection]\n );\n\n // NOTE: Get Selected wells count\n const selectedWellsCount = useMemo(() => {\n if (selectedWells.find(well => well.id === subjectWellId)) {\n return selectedWells.length - 1;\n }\n return selectedWells.length;\n }, [selectedWells, subjectWellId]);\n\n // NOTE: Save offset setting\n const isSynced = useMemo(() => {\n if (!bicWells) return false;\n const selectedWellIds = selectedWells.map(({ id }) => id);\n const owsWellIds = bicWells[selectedWellSection] || [];\n const owsWellIdsLength = Math.min(owsWellIds.length, maxOffsetSize);\n\n if (owsWellIdsLength !== selectedWellIds.length) {\n return false;\n }\n const owsWellIdsSet = new Set(owsWellIds);\n return selectedWellIds.every(id => owsWellIdsSet.has(id));\n }, [bicWells, selectedWells, selectedWellSection, maxOffsetSize]);\n\n const isXtoProvider = useMemo(() => {\n return companyProvider ? COMPANY_PROVIDERS_FOR_IDAS.includes(companyProvider) : false;\n }, [companyProvider]);\n\n const offsetLabel = useMemo(() => {\n if (isXtoProvider) {\n return 'IDAS generated offsets.';\n }\n\n return isWDUser ? 'Offset Selection App.' : 'WellHub.';\n }, [isXtoProvider, isWDUser]);\n\n const performSave = useCallback(() => {\n onClose();\n\n const selectedIds = selectedWells.map(({ id }) => id);\n\n const newOffsetSetting = {\n ...offsetSettings,\n companyId: assetCompanyId,\n subjectWellId,\n selectedWellIds: selectedIds,\n filters,\n metricsKeys,\n wellSection: selectedWellSection,\n isSynced,\n mapHidden: isMapHidden,\n filterExpanded: isFilterExpanded,\n offsetWellsLimited: isLimitedOffsetWells,\n };\n onSave(newOffsetSetting, selectedWells);\n }, [\n onClose,\n selectedWells,\n offsetSettings,\n assetCompanyId,\n subjectWellId,\n filters,\n metricsKeys,\n selectedWellSection,\n isSynced,\n isMapHidden,\n isFilterExpanded,\n isLimitedOffsetWells,\n onSave,\n ]);\n\n // NOTE: Complete pending save once all wells are enriched\n useEffect(() => {\n if (!isSavePending) {\n return;\n }\n\n // Check if all pending wells have been enriched (moved to selectedWells)\n if (pendingSearchSelectionRef.current.size === 0) {\n setIsSavePending(false);\n performSave();\n }\n }, [isSavePending, selectedWells, performSave]);\n\n const handleSave = () => {\n if (pendingSearchSelectionRef.current.size > 0) {\n // Wells still pending enrichment - wait for them\n setIsSavePending(true);\n return;\n }\n\n performSave();\n };\n\n const handleCancel = () => {\n const selectedIdsSet = new Set(offsetSettings?.selectedWellIds || []);\n let data = (wells || []).filter(well => selectedIdsSet.has(well.id));\n\n if (pinnedWells?.length) {\n const dataIds = new Set(data.map(w => w.id));\n const preserved = pinnedWells.filter(w => selectedIdsSet.has(w.id) && !dataIds.has(w.id));\n\n data = data.concat(preserved);\n }\n\n if (subjectWell) {\n data = data.concat(subjectWell);\n }\n\n setSelectedWells(uniqBy(data, 'id'));\n\n const newOffsetSetting = {\n ...offsetSettings,\n mapHidden: isMapHidden,\n filterExpanded: isFilterExpanded,\n };\n onSave(newOffsetSetting);\n setFilters({\n ...(offsetSettings?.filters || {}),\n });\n setSelectedWellSection(offsetSettings?.wellSection || ALL_SECTION_KEY);\n onClose();\n };\n\n const isTableFullLoading = isTableLoading || areRawWellsLoading;\n\n // NOTE: Reset processing\n const isResetVisible = useMemo(() => {\n if (!hasValidAssetId) return false;\n if (isTableFullLoading) return false;\n if (!isSynced) return true;\n if (!isEmpty(filters) && filters[FilterType.sideTracks]) return true;\n if (selectedWellSection !== ALL_SECTION_KEY) return true;\n return false;\n }, [hasValidAssetId, isSynced, filters, selectedWellSection, isTableFullLoading]);\n\n const handleReset = useCallback(() => {\n resetFilters();\n setSelectedWellSection(ALL_SECTION_KEY);\n updateSelectedWellsBySection(ALL_SECTION_KEY);\n }, [resetFilters, updateSelectedWellsBySection]);\n\n const isLoading = !wells || !wellSections || !sortedWells;\n\n // NOTE: Well Name shadow\n const [tableRowsCount, setTableRowsCount] = useState(ROWS_PER_PAGE);\n const [tableWells, setTableWells] = useState([]);\n const headTableRef = useRef();\n\n useEffect(() => {\n if (!sortedWells) return;\n\n const wells = sortedWells.slice(0, tableRowsCount);\n setTableWells(wells);\n }, [sortedWells, tableRowsCount, subjectWell]);\n\n // NOTE: Remove shadow from header column\n useEffect(() => {\n if (!headTableRef.current) return;\n const headColumn = headTableRef.current.querySelector(`.${offsetTableStyles.wellNameFixed}`);\n if (!headColumn) return;\n if (!isHScrollMoved) {\n headColumn.classList.add(offsetTableStyles.noShadow);\n } else {\n headColumn.classList.remove(offsetTableStyles.noShadow);\n }\n }, [isHScrollMoved, tableWells]);\n\n // Calculations for table header and search - moved from OffsetWellsTable\n const uniqTableWells = useMemo(() => uniqBy(tableWells, 'id'), [tableWells]);\n\n const [selectedTableWells, indeterminate, isAllWellsSelected] = useMemo(() => {\n const selectedTableWells = uniqTableWells.filter(well => well.checked);\n const indeterminate =\n uniqTableWells.length !== selectedTableWells.length &&\n Boolean(selectedTableWells.length) &&\n !isLimitedOffsetWells;\n const isAllWellsSelected =\n selectedTableWells.length === uniqTableWells.length || isLimitedOffsetWells;\n\n return [selectedTableWells, indeterminate, isAllWellsSelected];\n }, [uniqTableWells, isLimitedOffsetWells]);\n\n const isImperial = useMemo(() => getIsImperial(), []);\n\n useEffect(() => {\n if (resyncStatus === RESYNC_STATUS.SUCCEEDED) {\n handleReset();\n }\n // TODO: Check reference stability. Initially had only bicWells\n }, [bicWells, handleReset, resyncStatus]);\n\n const handleScroll = e => {\n if (!e.target) return;\n\n if (isAdvancedSearchHidden) {\n e.target.scrollLeft = 0;\n setIsAdvancedSearchHidden(false);\n }\n\n // Check if H-Scroll is visible\n if (e.target.scrollLeft <= 5 && isHScrollMoved) {\n setIsHScrollMoved(false);\n }\n if (e.target.scrollLeft > 5 && !isHScrollMoved) {\n setIsHScrollMoved(true);\n }\n\n // Check if scroll has reached top or bottom\n if (e.target.scrollHeight === e.target.offsetHeight) return;\n\n const currentScrollBottom = Math.round(e.target.scrollTop + e.target.offsetHeight + 2);\n\n if (currentScrollBottom >= e.target.scrollHeight && tableRowsCount < sortedWells.length) {\n setTableRowsCount(count => count + ROWS_PER_PAGE);\n }\n };\n\n return (\n <Modal\n open={open}\n onClose={handleCancel}\n size=\"fullscreen\"\n className={styles.modalDialog}\n title={\n <AppHeader\n totalCount={wells?.length ?? 0}\n selectedCount={selectedWellsCount}\n maxOffsetWellNumber={maxOffsetWellNumber}\n isXtoProvider={isXtoProvider}\n resyncStatus={resyncStatus}\n setResyncStatus={setResyncStatus}\n metricsKeys={metricsKeys}\n onChangeMetricsKeys={handleChangeMetricsKeys}\n />\n }\n actions={\n !isViewOnly && (\n <div className={styles.actionsWrapper}>\n {!isLoading && isResetVisible ? (\n <Tooltip\n placement=\"bottom-start\"\n title={`Reset to Synced Offsets in ${isWDUser ? 'Offset App' : 'Wellhub'}`}\n >\n <div>\n <Button\n data-testid={`${PAGE_NAME}_reset`}\n onClick={handleReset}\n color=\"primary\"\n startIcon={<ReplayIcon />}\n >\n Reset to Defaults\n </Button>\n </div>\n </Tooltip>\n ) : (\n hasValidAssetId && (\n <div>\n <span className={classNames(typography.regular12, typography.colors.t6)}>\n The offset list is being automatically populated by \n </span>\n <span className={classNames(typography.medium12, typography.colors.t6)}>\n {offsetLabel}\n </span>\n </div>\n )\n )}\n <div className={styles.buttonGap}>\n <Button data-testid={`${PAGE_NAME}_cancel`} onClick={handleCancel} color=\"primary\">\n Cancel\n </Button>\n <Button\n data-testid={`${PAGE_NAME}_selectedWells`}\n variant=\"contained\"\n color=\"primary\"\n onClick={handleSave}\n disabled={isSavePending}\n prefix={isSavePending ? <LoaderCircular size={16} /> : undefined}\n >\n Select ({selectedWellsCount})\n </Button>\n </div>\n </div>\n )\n }\n >\n <div className={classNames(styles.offsetWellDialog)}>\n <NotificationsContainer />\n {!isLoading ? (\n <div\n className={classNames(styles.contentWrapper, {\n [styles.contentBlocked]: isTableFullLoading,\n })}\n >\n <div className={styles.columnsContainer}>\n {!isMapHidden && open && (\n <div className={styles.leftColumn}>\n <WellsMap\n mapHidden={isMapHidden}\n subjectWell={subjectWell}\n offsetWellIds={selectedWells.map(({ id }) => id)}\n wells={wellsToDisplay}\n handleChangeOffsetWell={handleChangeOffsetWell}\n activeWellId={activeWellId}\n />\n </div>\n )}\n <div className={styles.rightColumn} onScroll={handleScroll}>\n <Filter\n isHidden={!isFilterExpanded}\n filterOptions={filterOptions}\n wellSections={wellSections}\n selectedWellSection={selectedWellSection}\n subjectWell={subjectWell}\n assetCompanyId={assetCompanyId}\n onChangeBicWells={handleChangeWellSection}\n />\n <div className={offsetTableStyles.stickyTable}>\n <Table aria-label=\"ows table head\" innerRef={headTableRef}>\n <TableHead>\n <OffsetWellsTableHead\n columnsWithDict={columnsWithDict}\n metricsKeys={metricsKeys}\n sortBy={sortBy}\n sortDirection={sortDirection}\n indeterminate={indeterminate}\n isAllWellsSelected={isAllWellsSelected}\n onChangeSort={handleChangeSortBy}\n onUpdateMetricsKey={handleUpdateMetricsKey}\n handleChangeAllOffsetWells={handleChangeAllOffsetWells}\n wellNameStyle={offsetTableStyles.wellNameFixed}\n isImperial={isImperial}\n isTaColumnVisible={!!taScores.length}\n isWellSectionColumnVisible={isWellSectionColumnVisible}\n />\n </TableHead>\n {isViewOnly && <div className={styles.topGradient} />}\n </Table>\n </div>\n\n {!isViewOnly && (\n <div className={classNames(offsetTableStyles.searchCellWrapper)}>\n <div className={offsetTableStyles.searchCell}>\n <AdvancedSearch\n companyId={assetCompanyId}\n subjectWellId={subjectWellId}\n onChange={handleAddRemoveAssets}\n selectedWellIds={selectedTableWells.map(({ id }) => id)}\n onHideAdvancedSearch={handleHideAdvancedSearch}\n loadingAssetIds={loadingAssetIds}\n />\n </div>\n <div className={styles.topGradient} />\n </div>\n )}\n\n <OffsetWellsTable\n isTableLoading={isTableFullLoading}\n subjectWellId={subjectWellId}\n columnsWithDict={columnsWithDict}\n wells={tableWells}\n metricsKeys={metricsKeys}\n handleChangeOffsetWell={handleChangeOffsetWell}\n isLastWell={sortedWells.length <= tableRowsCount}\n isLimitedOffsetWells={isLimitedOffsetWells}\n maxOffsetWellNumber={maxOffsetWellNumber}\n wellSections={wellSections}\n setActiveWellId={setActiveWellId}\n taScores={taScores}\n isWellSectionColumnVisible={isWellSectionColumnVisible}\n />\n </div>\n </div>\n {isViewOnly && hasValidAssetId && (\n <div className={styles.viewOnlyInfoContainer}>\n <span className={classNames(typography.regular12, typography.colors.t6)}>\n The offset list is being automatically populated by \n </span>\n <span className={classNames(typography.medium12, typography.colors.t6)}>\n {offsetLabel}\n </span>\n </div>\n )}\n </div>\n ) : (\n <LoadingIndicator />\n )}\n </div>\n </Modal>\n );\n};\n"],"names":["PAGE_NAME","OffsetWellPickerV5","_useFilterStore","_useFilterStore2","_wells$length","open","usePickerPropsStore","state","isWDUser","defaultSubjectWell","currentUser","offsetSettings","isViewOnly","onClose","onSave","offsetSize","maxOffsetSize","localMaxOffsetSize","syncAutoEnabled","useState","_useState2","_slicedToArray","_useState","activeWellId","setActiveWellId","Math","min","MAX_OFFSET_SIZE","maxOffsetWellNumber","max","subjectWellId","asset_id","useFetchSubjectWell","fetchedSubjectWell","_useFetchSubjectWell","useGlobalOffsetWellsSync","isFilterExpanded","useViewStore","isMapHidden","isHScrollMoved","setIsHScrollMoved","isAdvancedSearchHidden","setIsAdvancedSearchHidden","assetCompanyId","companyId","company_id","hasValidAssetId","filters","useFilterStore","setFilters","resetFilters","radiusFilter","radius","DEFAULT_RADIUS_MILES","selectionMode","polygonCoords","_useCompanies","useCompanies","canViewCompanies","companies","_useState4","_useState3","selectedWells","setSelectedWells","_useState6","_useState5","preselectedCompanyIds","setPreselectedCompanyIds","pendingSearchSelectionRef","useRef","Set","_useState8","_useState7","loadingAssetIds","setLoadingAssetIds","_useState10","_useState9","isSavePending","setIsSavePending","companyFilter","useMemo","FilterType","company","useEffect","selectedIds","selectedWellIds","length","_asyncToGenerator","_regeneratorRuntime","mark","_callee","ids","wrap","_context","prev","next","fetchCompanyIdsByWellIds","sent","stop","companyIdsToFetch","selectedWellCompanyIds","map","well","filter","id","bootstrapCompanyIds","_toConsumableArray","concat","undefined","Array","isArray","allIdsSet","add","forEach","from","_useState11","wellSection","ALL_SECTION_KEY","_useState12","selectedWellSection","setSelectedWellSection","initLoading","_useState14","_useState13","isTableLoading","setIsTableLoading","isLimitedOffsetWells","prevSelectedWellIds","_useState16","_useState15","appLoading","setAppLoading","showInfoNotification","_offsetSettings$selec","_prevSelectedWellIds$","prevIdsSet","current","every","has","useFetchWells","_useFetchWells2","_useFetchWells","rawWells","areRawWellsLoading","usePinnedWells","_usePinnedWells2","_usePinnedWells","pinnedWells","arePinnedWellsLoading","_useSearchedWells","useSearchedWells","_useSearchedWells2","searchedWells","areSearchedWellsLoading","fetchSearchedWells","rawWellsWithSubject","result","existingIds","w","missingPinned","missingSearched","some","useCompanyProvider","companyProvider","_useCompanyProvider","_useBicWells","useBicWells","_useBicWells2","wellSections","setWellSections","bicWells","setBicWells","resyncStatus","setResyncStatus","taScores","isWellSectionColumnVisible","section","value","useCompanyMetricKey","metricsKeys","_useCompanyMetricKey2","_useCompanyMetricKey","setMetricsKeys","_useAdvancedWells","useAdvancedWells","_useAdvancedWells2","wellsWithoutCompanyName","areAdvancedWellsLoading","wells","companyMap","name","_objectSpread","companyName","subjectWell","find","isAllWellsLoaded","_ref2","syncOffsetWells","_callee2","isSynced","offsetWellsChanged","_offsetSettings$selec2","bicWellIds","bicWellIdsSet","isMatched","wellsByDistance","newOffsetSetting","selectedWellIdsSet","offsetWells","_offsetWells","_context2","wellId","getCoordinatedWells","slice","offsetWellsLimited","apply","this","arguments","filterOptions","useFilterOptions","columnsWithDict","useTableColumns","filteredWells","useFilteredWells","wellsToDisplay","uniqBy","selectedIdsSet","data","dataIds","preserved","size","pendingIds","enrichedWells","limited","delete","_ref3","useSortedWells","_useSortedWells2","_useSortedWells","sortBy","setSortBy","sortDirection","setSortDirection","sortedWells","handleAddRemoveAssets","useCallback","isAdding","newAssets","assetType","addingWellIds","wellIdToRigName","rigNameToWellIds","addingWellIdsSet","addingWells","foundIds","missingIds","limitedWells","_context3","SEARCH_CATEGORIES","Map","set","rigName","get","push","flatMap","assetId","_ref4","includes","uniq","_ref5","_callee3","_x","_x2","_x3","handleHideAdvancedSearch","handleChangeMetricsKeys","newMetricsKeys","handleUpdateMetricsKey","key","newValue","prevKeys","item","handleChangeSortBy","sortKey","handleChangeOffsetWell","checked","enrichedWell","prevWells","handleChangeAllOffsetWells","sortedData","sortArray","updateSelectedWellsBySection","sectionWellIdsSet","sectionWells","handleChangeWellSection","selectedWellsCount","_ref6","owsWellIds","owsWellIdsSet","isXtoProvider","COMPANY_PROVIDERS_FOR_IDAS","offsetLabel","performSave","_ref7","mapHidden","filterExpanded","handleCancel","isTableFullLoading","isResetVisible","isEmpty","sideTracks","handleReset","isLoading","ROWS_PER_PAGE","_useState18","_useState17","tableRowsCount","setTableRowsCount","_useState20","_useState19","tableWells","setTableWells","headTableRef","headColumn","querySelector","offsetTableStyles","wellNameFixed","classList","remove","noShadow","uniqTableWells","selectedTableWells","Boolean","_useMemo2","_useMemo","indeterminate","isAllWellsSelected","isImperial","getIsImperial","RESYNC_STATUS","SUCCEEDED","_jsx","Modal","className","styles","modalDialog","title","AppHeader","totalCount","selectedCount","onChangeMetricsKeys","actions","_jsxs","actionsWrapper","children","Tooltip","placement","Button","onClick","color","startIcon","ReplayIcon","classNames","typography","regular12","colors","t6","medium12","buttonGap","variant","disabled","prefix","LoaderCircular","offsetWellDialog","NotificationsContainer","LoadingIndicator","contentWrapper","contentBlocked","columnsContainer","leftColumn","WellsMap","offsetWellIds","_ref8","rightColumn","onScroll","e","target","scrollLeft","scrollHeight","offsetHeight","round","scrollTop","count","Filter","isHidden","onChangeBicWells","stickyTable","Table","innerRef","TableHead","OffsetWellsTableHead","onChangeSort","onUpdateMetricsKey","wellNameStyle","isTaColumnVisible","topGradient","searchCellWrapper","searchCell","AdvancedSearch","onChange","_ref9","onHideAdvancedSearch","OffsetWellsTable","isLastWell","viewOnlyInfoContainer"],"mappings":"ylzBAsDA,IAAMA,GAAY,qBAELC,GAAqB,WAAM,IAAAC,GAAAC,GAAAC,GAChCC,GAAOC,GAAoB,SAAAC,GAAK,OAAIA,EAAMF,QAC1CG,GAAWF,GAAoB,SAAAC,GAAK,OAAIA,EAAMC,YAC9CC,GAAqBH,GAAoB,SAAAC,GAAK,OAAIA,EAAME,sBACxDC,GAAcJ,GAAoB,SAAAC,GAAK,OAAIA,EAAMG,eACjDC,GAAiBL,GAAoB,SAAAC,GAAK,OAAIA,EAAMI,kBACpDC,GAAaN,GAAoB,SAAAC,GAAK,OAAIA,EAAMK,cAChDC,GAAUP,GAAoB,SAAAC,GAAK,OAAIA,EAAMM,WAC7CC,GAASR,GAAoB,SAAAC,GAAK,OAAIA,EAAMO,UAC5CC,GAAaT,GAAoB,SAAAC,GAAK,OAAIA,EAAMS,iBAChDC,GAAqBX,GAAoB,SAAAC,GAAK,OAAIA,EAAMU,sBACxDC,GAAkBZ,GAAoB,SAAAC,GAAK,OAAIA,EAAMW,mBAEnBC,GAAAA,EAAS,MAAKC,GAAAC,EAAAC,GAAA,GAA/CC,GAAYH,GAAA,GAAEI,GAAeJ,GAAA,GAC9BJ,GAAgB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A,GACdhJ,gBAAiBA,GACjBsJ,SAAUA,GACVC,2BAA4BA,WAIjCnK,IAAckC,IACbkT,GAAA,MAAA,CAAKT,UAAWC,EAAOsE,sBAAsB5D,SAC3C,CAAAb,EAAA,OAAA,CAAME,UAAWmB,EAAWC,GAAWC,UAAWD,GAAWE,OAAOC,IAAIZ,SAAA,yDAGxEb,EAAA,OAAA,CAAME,UAAWmB,EAAWC,GAAWI,SAAUJ,GAAWE,OAAOC,IAAIZ,SACpErD,eAWnB"}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
+
import type { FilterState } from './stores/filter-store/types';
|
|
1
2
|
/**
|
|
2
3
|
* NOTE: onChange is called with an extended version of OffsetSettings
|
|
3
4
|
* Here only used properties are listed
|
|
4
5
|
*/
|
|
5
|
-
export type MapStyleType = 'dark' | 'satellite';
|
|
6
6
|
export type OffsetSettingsInput = {
|
|
7
7
|
filterExpanded?: boolean;
|
|
8
|
-
wellNameExpanded?: boolean;
|
|
9
8
|
mapHidden?: boolean;
|
|
10
|
-
|
|
11
|
-
filters?: {};
|
|
9
|
+
filters?: FilterState;
|
|
12
10
|
wellSection?: string;
|
|
13
11
|
selectedWellIds: number[];
|
|
14
12
|
isSynced?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OffsetWellPickerV5.types.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellPickerV5/OffsetWellPickerV5.types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OffsetWellPickerV5.types.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellPickerV5/OffsetWellPickerV5.types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE/D;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,WAAW,CAA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,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,kBAAkB,CAAC,EAAE;QACnB,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IAEF,cAAc,CAAC,EAAE,mBAAmB,CAAC;IAErC;;OAEG;IACH,WAAW,CAAC,EAAE;QACZ,UAAU,EAAE,MAAM,CAAC;QACnB,EAAE,EAAE,MAAM,CAAC;QACX,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IAEF,mDAAmD;IACnD,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,WAAW,CAAC,UAAU,EAAE,CAAC,GAAG,UAAU,EAAE,CAAC;IAC1F;;;;;;;;OAQG;IACH,MAAM,EAAE,CAAC,cAAc,EAAE,oBAAoB,EAAE,aAAa,CAAC,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC;IACrF;;;OAGG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,qBAAqB;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qBAAqB;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,wBAAwB;IACxB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,wBAAwB;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OffsetWellPickerV5WithStore.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellPickerV5/OffsetWellPickerV5WithStore.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"OffsetWellPickerV5WithStore.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellPickerV5/OffsetWellPickerV5WithStore.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAA0B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAsE1E,eAAO,MAAM,2BAA2B,EAAE,EAAE,CAAC,uBAAuB,CAcnE,CAAC"}
|