@corva/ui 3.8.0-rc.1 → 3.8.0-rc.3
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/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/OffsetWellPickerV4.module.css.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.module.css.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/effects/useAdvancedWells.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/effects/useFetchWells.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/effects/useFilterOptions.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/effects/useFilteredWells.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/effects/useSortedWells.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/effects/useTableColumns.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/utils/apiCalls.js +1 -1
- package/cjs-bundle/components/StatusBadge/utils.js +1 -1
- package/cjs-bundle/effects/useWellnessAlerts.js +1 -1
- package/components/OffsetWellPickerV4/OffsetWellPickerV4.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
- package/components/OffsetWellPickerV4/OffsetWellPickerV4.module.css.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.module.css.js +1 -1
- package/components/OffsetWellPickerV4/effects/useAdvancedWells.d.ts +1 -1
- package/components/OffsetWellPickerV4/effects/useAdvancedWells.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/effects/useAdvancedWells.js +1 -1
- package/components/OffsetWellPickerV4/effects/useFetchWells.d.ts +2 -1
- package/components/OffsetWellPickerV4/effects/useFetchWells.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/effects/useFetchWells.js +1 -1
- package/components/OffsetWellPickerV4/effects/useFilterOptions.d.ts +5 -1
- package/components/OffsetWellPickerV4/effects/useFilterOptions.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/effects/useFilterOptions.js +1 -1
- package/components/OffsetWellPickerV4/effects/useFilteredWells.d.ts +97 -1
- package/components/OffsetWellPickerV4/effects/useFilteredWells.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/effects/useFilteredWells.js +1 -1
- package/components/OffsetWellPickerV4/effects/useSortedWells.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/effects/useSortedWells.js +1 -1
- package/components/OffsetWellPickerV4/effects/useTableColumns.d.ts +1 -1
- package/components/OffsetWellPickerV4/effects/useTableColumns.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/effects/useTableColumns.js +1 -1
- package/components/OffsetWellPickerV4/utils/apiCalls.d.ts +9 -8
- package/components/OffsetWellPickerV4/utils/apiCalls.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/utils/apiCalls.js +1 -1
- package/components/StatusBadge/utils.d.ts +1 -3
- package/components/StatusBadge/utils.d.ts.map +1 -1
- package/components/StatusBadge/utils.js +1 -1
- package/effects/useWellnessAlerts.d.ts.map +1 -1
- package/effects/useWellnessAlerts.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/slicedToArray";import t from"@babel/runtime/helpers/defineProperty";import{memo as o,useState as s,useRef as r,useEffect as i,useMemo as n,useCallback as p,Fragment as m}from"react";import a from"classnames";import c from"prop-types";import{Table as l,TableHead as d,TableBody as j,TableRow as u,TableCell as C}from"@material-ui/core";import{METRICS_LIST as A,EXPANDED_WELL_NAME_WIDTH as h,TableColumns as S,ViewType as f,ROW_HEIGHT as v,SEARCH_CELL_EXPAND_WIDTH as b,SEARCH_CELL_DEFAULT_WIDTH as g,ColumnType as D}from"../../constants.js";import{getIsImperial as V}from"../../utils/unitSystem.js";import{AdvancedSearch as I}from"./AdvancedSearch/AdvancedSearch.js";import T from"./OffsetWellsTableHead.js";import y from"./OffsetWellsTableRow.js";import P from"./OffsetWellsTable.module.css.js";import{jsxs as x,jsx as B}from"react/jsx-runtime";import"../../../DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider/IsInsideIsolatedDcAppProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"lodash";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/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/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"../../../../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"../../../../utils/env.js";import"../../../GradientManager/configuration/constants.js";import"../../../Modal/CorvaModal.css.js";import"uuid";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"@material-ui/icons";import"../../../DevCenter/AppContext.js";import"../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../../utils/index.js";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/Grid.scss.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/Paper/Paper.js";import"../../../../componentsV2/Popover/Popover.scss.js";import"../../../../componentsV2/Radio/Radio.js";import"../../../../componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js";import"../../../../componentsV2/Checkbox/Checkbox.js";import"../../../../componentsV2/TextInput/TextInput.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/Avatar/constants.js";import"../../../../componentsV2/AvatarGroup/AvatarGroup.scss.js";import"@material-ui/lab";import"../../../../componentsV2/ToggleButtons/ToggleButtons.scss.js";import"../../../../componentsV2/Modal/Modal.scss.js";import"../../../../componentsV2/Menu/Menu.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.scss.js";import"../../../../componentsV2/Switch/Switch.js";import"../../../../componentsV2/Tabs/Tabs.js";import"../../../../componentsV2/EmptyState/EmptyState.scss.js";import"../../../../componentsV2/FileIcon/FileIcon.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/LiveDotIndicator/LiveDotIndicator.scss.js";import"../../../../componentsV2/IndicatorLive/IndicatorLive.scss.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"../../../../clients/jsonApi/index.js";import"../../../PadModeSelect/types.js";import"@babel/runtime/helpers/toConsumableArray";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import"../../../../clients/subscriptions.js";import"../../../../clients/api/apiCore.js";import"../../../../clients/constants.js";import"../../../../clients/sso/auth0.js";import"../../../../clients/sso/oauth2.js";import"lodash/flatten";import"lodash/partition";import"../../../../componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.js";import"../../../../componentsV2/PadModeSelect/WellStreamActivityStatus/WellStreamActivityStatus.scss.js";import"../../../../componentsV2/PadModeSelect/PadModeSelect.scss.js";import"querystring";import"uuid/v1";import"jsona";import"../../../StatusBadge/constants.js";import"lodash/isEmpty";import"lodash/sortBy";import"../../../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../../../../componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js";import"../../../../componentsV2/AppHeader/V3/AssetChips/AssetChips.scss.js";import"../../../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js";import"../../../../componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js";import"../../../../componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.scss.js";import"../../../../componentsV2/AppDqPopover/DqAlert/DqAlert.scss.js";import"../../../../componentsV2/AppDqPopover/DqAsset/DqAsset.scss.js";import"../../../../componentsV2/AppDqPopover/AppDqPopover.scss.js";import"../../../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.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.scss.js";import"../../../../componentsV2/AppHeader/V3/constants.scss.js";import"@babel/runtime/helpers/typeof";import"../../../../componentsV2/AppSizeProvider/AppSizeProvider.js";import"../../../../componentsV2/AppSettings/AppSettings.js";import"../../../../componentsV2/AppSettings/AppSettingsPinningContext.js";import"../../../../componentsV2/AppHeader/V3/SettingsPopover/SettingsPopover.scss.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.scss.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 W 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"../../utils/apiCalls.js";import"../../effects/useAdvancedWells.js";import"react-virtualized";import"../../effects/useAssetsData.js";import"../AppHeader/AppHeader.js";import"../Toolbar/Toolbar.js";import"../Filter/Filter.js";import"../Map/WellsMap.js";import"./AdvancedSearch/constants.js";import"../../utils/index.js";import"../../OffsetWellPickerV4.module.css.js";import"@material-ui/core/Snackbar";import"../../../Notifications/Toast.js";import"../../../../styles/typography/index.js";import"../../../../styles/counter/counter.module.scss.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"../../../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";function w(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 E(e){for(var o=1;o<arguments.length;o++){var s=null!=arguments[o]?arguments[o]:{};o%2?w(Object(s),!0).forEach((function(o){t(e,o,s[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):w(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}var F=function(o){var c=o.open,w=o.isTableLoading,F=o.companyId,O=o.subjectWellId,L=o.sortBy,M=o.setSortBy,R=o.sortDirection,k=o.setSortDirection,H=o.columnsWithDict,q=o.wells,N=o.metricsKeys,G=o.setMetricsKeys,z=o.handleChangeOffsetWell,U=o.handleChangeAllOffsetWells,K=o.handleAddRemoveAssets,Z=o.isWellNameExpand,X=o.setIsWellNameExpand,J=o.isHScrollMoved,Q=o.onHideAdvancedSearch,Y=o.isViewOnly,$=o.isLastWell,_=o.contentRef,ee=o.isLimitedOffsetWells,te=o.maxOffsetWellNumber,oe=o.wellSections,se=o.setActiveWellId,re=o.viewType,ie=o.isWDUser,ne=o.taScores,pe=s([]),me=e(pe,2),ae=me[0],ce=me[1],le=s(null),de=e(le,2),je=de[0],ue=de[1],Ce=s(0),Ae=e(Ce,2),he=Ae[0],Se=Ae[1],fe=s(0),ve=e(fe,2),be=ve[0],ge=ve[1],De=r(),Ve=r(),Ie=r();i((function(){if(!je)return ce(q),void ge(0);var t=function(e,t,o,s){var r,i=e.findIndex((function(e){return t===e.id})),n=o.findIndex((function(e){return t===e.id}));-1===n&&(n=o.length);var p=Math.round(((null===(r=s.current)||void 0===r?void 0:r.clientHeight)-145)/v+1),m=n-i;Math.abs(m)>p&&(n=i+p*Math.sign(m));var a=n-i;return[i,n,a,200*(.4*Math.abs(a)+2),Math.min(i,n),(Math.abs(a)+1)*v]}(ae,je,q,_),o=e(t,6),s=o[0],r=o[1],i=o[2],n=o[3],p=o[4],m=o[5];if(Ie.current=n,r===s)ce(q);else{Se(p),ge(m);var a=function(e,t,o,s){return e.map((function(e,r){var i=o<r&&r<=s||s<=r&&r<o;return r===o?E(E({},e),{},{moveTo:t}):i?E(E({},e),{},{moveTo:o<s?-1:1,delayTime:Math.abs(r-o)}):e}))}(ae,i,s,r);ce(a),setTimeout((function(){ce(q),ge(0),ue(null)}),n)}}),[q]);var Te=n((function(){var e=ae.filter((function(e){return e.checked}));return[e,ae.length!==e.length&&e.length&&!ee,e.length===ae.length||ee]}),[ae,ee]),ye=e(Te,3),Pe=ye[0],xe=ye[1],Be=ye[2],We=n((function(){return V()}),[]),we=n((function(){return(N||[]).reduce((function(e,t){return e.concat(A.filter((function(e){return e.key===t})))}),[])}),[N]),Ee=n((function(){return Z?h-58:S[0].width[N.length]-58}),[Z,null==N?void 0:N.length]),Fe=n((function(){var e=Z?b:g;return ne.length&&(e+=function(e,t){var o=e.find((function(e){return e.key===t}));return(null==o?void 0:o.width)||0}(H,D.taScore)),"".concat(e,"px")}),[Z,ne]);i((function(){if(re!==f.mobile&&De.current&&Ve.current){var e=De.current.querySelector(".".concat(P.wellNameFixed));J?e.classList.remove(P.noShadow):e.classList.add(P.noShadow);var t=Ve.current.querySelectorAll(".".concat(P.wellNameFixed));J?t.forEach((function(e){return e.classList.remove(P.noShadow)})):t.forEach((function(e){return e.classList.add(P.noShadow)}))}}),[J,Ve.current,De.current,ae]);var Oe=p((function(e,t){M(e),k(t)}),[]),Le=p((function(e){G(e)}),[]),Me=p((function(e,t){G((function(o){return o.map((function(o){return o===e?t:o}))}))}),[]);return H&&ae?x("div",{className:P.offsetWellsTable,children:[B("div",{className:P.stickyTable,children:B(l,{"aria-label":"ows table head",innerRef:De,children:B(d,{children:B(T,{open:c,columnsWithDict:H,metricsKeys:N,sortBy:L,sortDirection:R,indeterminate:xe,isAllWellsSelected:Be,onChangeSort:Oe,onChangeMetricsKeys:Le,onUpdateMetricsKey:Me,isWellNameExpand:Z,setIsWellNameExpand:X,handleChangeAllOffsetWells:U,wellNameStyle:P.wellNameFixed,isViewOnly:Y,isImperial:We,contentRef:_,viewType:re,isTaColumnVisible:!!ne.length})})})}),!Y&&x("div",{className:a(P.searchCellWrapper,t({},P.searchCellWrapperExpanded,Z)),style:{"--dynamic-search-wrapper-width":Fe},children:[B("div",{className:P.searchCell,children:B(I,{companyId:F,subjectWellId:O,onChange:K,selectedWellIds:Pe.map((function(e){return e.id})),onHideAdvancedSearch:Q})}),!!Z&&B("div",{className:P.searchCellEmpty})]}),B(l,{"aria-label":"ows table body",innerRef:Ve,className:P.bodyTable,children:x(j,{children:[B(u,{children:B(C,{className:a(P.topShadow,t({},P.viewOnlyShadow,Y))})}),ae.map((function(e,t){return x(m,{children:[B(u,{children:je&&be>0&&t===he&&B(C,{style:{height:be}})}),B(y,{columnsWithDict:H,subjectWellId:O,data:e,metricsKeys:N,metricsColumns:we,handleChangeOffsetWell:z,isWellNameExpand:Z,wellNameStyle:P.wellNameFixed,wellNameWidth:Ee,isViewOnly:Y,isImperial:We,isLimitedOffsetWells:ee,maxOffsetWellNumber:te,wellSections:oe,setActiveWellId:se,viewType:re,newCheckedWellId:null!=e&&e.moveTo?je:0,setNewCheckedWellId:ue,index:null!=e&&e.moveTo?t:0,flyDuration:null!=e&&e.moveTo?Ie.current:0,isWDUser:ie,taScores:ne})]},e.id)})),!$&&B(u,{children:B(C,{className:P.loadingCell,children:B("span",{children:"Loading..."})})}),B(u,{children:B(C,{className:P.bottomShadow})})]})}),w&&B(W,{fullscreen:!1,className:P.loadingContainer})]}):null};F.propTypes={open:c.bool.isRequired,isTableLoading:c.bool.isRequired,companyId:c.number.isRequired,subjectWellId:c.number.isRequired,sortBy:c.string.isRequired,setSortBy:c.func.isRequired,sortDirection:c.string.isRequired,setSortDirection:c.func.isRequired,columnsWithDict:c.arrayOf(c.shape({})).isRequired,wells:c.arrayOf(c.shape({})).isRequired,metricsKeys:c.arrayOf(c.string).isRequired,setMetricsKeys:c.func.isRequired,handleChangeOffsetWell:c.func.isRequired,handleChangeAllOffsetWells:c.func.isRequired,handleAddRemoveAssets:c.func.isRequired,setIsWellNameExpand:c.func.isRequired,isWellNameExpand:c.bool.isRequired,isHScrollMoved:c.bool.isRequired,onHideAdvancedSearch:c.func.isRequired,isViewOnly:c.bool.isRequired,isLastWell:c.bool.isRequired,isLimitedOffsetWells:c.bool.isRequired,maxOffsetWellNumber:c.number.isRequired,contentRef:c.shape({}).isRequired,wellSections:c.arrayOf(c.shape({})).isRequired,setActiveWellId:c.func.isRequired,viewType:c.string.isRequired,isWDUser:c.bool.isRequired,taScores:c.arrayOf(c.shape({})).isRequired};var O=o(F);export{O as default};
|
|
1
|
+
import e from"@babel/runtime/helpers/slicedToArray";import t from"@babel/runtime/helpers/defineProperty";import{memo as o,useState as s,useRef as r,useEffect as i,useMemo as n,useCallback as p,Fragment as m}from"react";import a from"classnames";import c from"prop-types";import{Table as l,TableHead as d,TableBody as j,TableRow as u,TableCell as C}from"@material-ui/core";import{METRICS_LIST as A,EXPANDED_WELL_NAME_WIDTH as h,TableColumns as S,ViewType as f,ROW_HEIGHT as v,SEARCH_CELL_EXPAND_WIDTH as b,SEARCH_CELL_DEFAULT_WIDTH as g,ColumnType as D}from"../../constants.js";import{getIsImperial as V}from"../../utils/unitSystem.js";import{AdvancedSearch as I}from"./AdvancedSearch/AdvancedSearch.js";import T from"./OffsetWellsTableHead.js";import y from"./OffsetWellsTableRow.js";import P from"./OffsetWellsTable.module.css.js";import{jsxs as x,jsx as B}from"react/jsx-runtime";import"../../../DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider/IsInsideIsolatedDcAppProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"lodash";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/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/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"../../../../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"../../../../utils/env.js";import"../../../GradientManager/configuration/constants.js";import"../../../Modal/CorvaModal.css.js";import"uuid";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"@material-ui/icons";import"../../../DevCenter/AppContext.js";import"../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../../utils/index.js";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/Grid.scss.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/Paper/Paper.js";import"../../../../componentsV2/Popover/Popover.scss.js";import"../../../../componentsV2/Radio/Radio.js";import"../../../../componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js";import"../../../../componentsV2/Checkbox/Checkbox.js";import"../../../../componentsV2/TextInput/TextInput.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/Avatar/constants.js";import"../../../../componentsV2/AvatarGroup/AvatarGroup.scss.js";import"@material-ui/lab";import"../../../../componentsV2/ToggleButtons/ToggleButtons.scss.js";import"../../../../componentsV2/Modal/Modal.scss.js";import"../../../../componentsV2/Menu/Menu.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.scss.js";import"../../../../componentsV2/Switch/Switch.js";import"../../../../componentsV2/Tabs/Tabs.js";import"../../../../componentsV2/EmptyState/EmptyState.scss.js";import"../../../../componentsV2/FileIcon/FileIcon.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/LiveDotIndicator/LiveDotIndicator.scss.js";import"../../../../componentsV2/IndicatorLive/IndicatorLive.scss.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"../../../../clients/jsonApi/index.js";import"../../../PadModeSelect/types.js";import"@babel/runtime/helpers/toConsumableArray";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import"../../../../clients/subscriptions.js";import"../../../../clients/api/apiCore.js";import"../../../../clients/constants.js";import"../../../../clients/sso/auth0.js";import"../../../../clients/sso/oauth2.js";import"lodash/flatten";import"lodash/partition";import"../../../../componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.js";import"../../../../componentsV2/PadModeSelect/WellStreamActivityStatus/WellStreamActivityStatus.scss.js";import"../../../../componentsV2/PadModeSelect/PadModeSelect.scss.js";import"querystring";import"uuid/v1";import"jsona";import"../../../StatusBadge/constants.js";import"lodash/isEmpty";import"lodash/sortBy";import"../../../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../../../../componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js";import"../../../../componentsV2/AppHeader/V3/AssetChips/AssetChips.scss.js";import"../../../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js";import"../../../../componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js";import"../../../../componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.scss.js";import"../../../../componentsV2/AppDqPopover/DqAlert/DqAlert.scss.js";import"../../../../componentsV2/AppDqPopover/DqAsset/DqAsset.scss.js";import"../../../../componentsV2/AppDqPopover/AppDqPopover.scss.js";import"../../../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.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.scss.js";import"../../../../componentsV2/AppHeader/V3/constants.scss.js";import"@babel/runtime/helpers/typeof";import"../../../../componentsV2/AppSizeProvider/AppSizeProvider.js";import"../../../../componentsV2/AppSettings/AppSettings.js";import"../../../../componentsV2/AppSettings/AppSettingsPinningContext.js";import"../../../../componentsV2/AppHeader/V3/SettingsPopover/SettingsPopover.scss.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.scss.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 W 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"../../utils/apiCalls.js";import"../../effects/useAdvancedWells.js";import"react-virtualized";import"../../effects/useAssetsData.js";import"../AppHeader/AppHeader.js";import"../Toolbar/Toolbar.js";import"../Filter/Filter.js";import"../Map/WellsMap.js";import"./AdvancedSearch/constants.js";import"../../utils/index.js";import"../../OffsetWellPickerV4.module.css.js";import"@material-ui/core/Snackbar";import"../../../Notifications/Toast.js";import"../../../../styles/typography/index.js";import"../../../../styles/counter/counter.module.scss.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"../../../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";function w(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 E(e){for(var o=1;o<arguments.length;o++){var s=null!=arguments[o]?arguments[o]:{};o%2?w(Object(s),!0).forEach((function(o){t(e,o,s[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):w(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}var F=function(o){var c=o.open,w=o.isTableLoading,F=o.companyId,O=o.subjectWellId,L=o.sortBy,M=o.setSortBy,R=o.sortDirection,k=o.setSortDirection,H=o.columnsWithDict,q=o.wells,N=o.metricsKeys,G=o.setMetricsKeys,z=o.handleChangeOffsetWell,U=o.handleChangeAllOffsetWells,K=o.handleAddRemoveAssets,Z=o.isWellNameExpand,X=o.setIsWellNameExpand,J=o.isHScrollMoved,Q=o.onHideAdvancedSearch,Y=o.isViewOnly,$=o.isLastWell,_=o.contentRef,ee=o.isLimitedOffsetWells,te=o.maxOffsetWellNumber,oe=o.wellSections,se=o.setActiveWellId,re=o.viewType,ie=o.isWDUser,ne=o.taScores,pe=s([]),me=e(pe,2),ae=me[0],ce=me[1],le=s(null),de=e(le,2),je=de[0],ue=de[1],Ce=s(0),Ae=e(Ce,2),he=Ae[0],Se=Ae[1],fe=s(0),ve=e(fe,2),be=ve[0],ge=ve[1],De=r(),Ve=r(),Ie=r();i((function(){if(!je)return ce(q),void ge(0);var t=function(e,t,o,s){var r,i=e.findIndex((function(e){return t===e.id})),n=o.findIndex((function(e){return t===e.id}));-1===n&&(n=o.length);var p=Math.round(((null===(r=s.current)||void 0===r?void 0:r.clientHeight)-145)/v+1),m=n-i;Math.abs(m)>p&&(n=i+p*Math.sign(m));var a=n-i;return[i,n,a,200*(.4*Math.abs(a)+2),Math.min(i,n),(Math.abs(a)+1)*v]}(ae,je,q,_),o=e(t,6),s=o[0],r=o[1],i=o[2],n=o[3],p=o[4],m=o[5];if(Ie.current=n,r===s)ce(q);else{Se(p),ge(m);var a=function(e,t,o,s){return e.map((function(e,r){var i=o<r&&r<=s||s<=r&&r<o;return r===o?E(E({},e),{},{moveTo:t}):i?E(E({},e),{},{moveTo:o<s?-1:1,delayTime:Math.abs(r-o)}):e}))}(ae,i,s,r);ce(a),setTimeout((function(){ce(q),ge(0),ue(null)}),n)}}),[q,q.length]);var Te=n((function(){var e=ae.filter((function(e){return e.checked}));return[e,ae.length!==e.length&&e.length&&!ee,e.length===ae.length||ee]}),[ae,ee]),ye=e(Te,3),Pe=ye[0],xe=ye[1],Be=ye[2],We=n((function(){return V()}),[]),we=n((function(){return(N||[]).reduce((function(e,t){return e.concat(A.filter((function(e){return e.key===t})))}),[])}),[N]),Ee=n((function(){return Z?h-58:S[0].width[N.length]-58}),[Z,null==N?void 0:N.length]),Fe=n((function(){var e=Z?b:g;return ne.length&&(e+=function(e,t){var o=e.find((function(e){return e.key===t}));return(null==o?void 0:o.width)||0}(H,D.taScore)),"".concat(e,"px")}),[Z,ne]);i((function(){if(re!==f.mobile&&De.current&&Ve.current){var e=De.current.querySelector(".".concat(P.wellNameFixed));J?e.classList.remove(P.noShadow):e.classList.add(P.noShadow);var t=Ve.current.querySelectorAll(".".concat(P.wellNameFixed));J?t.forEach((function(e){return e.classList.remove(P.noShadow)})):t.forEach((function(e){return e.classList.add(P.noShadow)}))}}),[J,Ve.current,De.current,ae]);var Oe=p((function(e,t){M(e),k(t)}),[]),Le=p((function(e){G(e)}),[]),Me=p((function(e,t){G((function(o){return o.map((function(o){return o===e?t:o}))}))}),[]);return H&&ae?x("div",{className:P.offsetWellsTable,children:[B("div",{className:P.stickyTable,children:B(l,{"aria-label":"ows table head",innerRef:De,children:B(d,{children:B(T,{open:c,columnsWithDict:H,metricsKeys:N,sortBy:L,sortDirection:R,indeterminate:xe,isAllWellsSelected:Be,onChangeSort:Oe,onChangeMetricsKeys:Le,onUpdateMetricsKey:Me,isWellNameExpand:Z,setIsWellNameExpand:X,handleChangeAllOffsetWells:U,wellNameStyle:P.wellNameFixed,isViewOnly:Y,isImperial:We,contentRef:_,viewType:re,isTaColumnVisible:!!ne.length})})})}),!Y&&x("div",{className:a(P.searchCellWrapper,t({},P.searchCellWrapperExpanded,Z)),style:{"--dynamic-search-wrapper-width":Fe},children:[B("div",{className:P.searchCell,children:B(I,{companyId:F,subjectWellId:O,onChange:K,selectedWellIds:Pe.map((function(e){return e.id})),onHideAdvancedSearch:Q})}),!!Z&&B("div",{className:P.searchCellEmpty})]}),B(l,{"aria-label":"ows table body",innerRef:Ve,className:P.bodyTable,children:x(j,{children:[B(u,{children:B(C,{className:a(P.topShadow,t({},P.viewOnlyShadow,Y))})}),ae.map((function(e,t){return x(m,{children:[B(u,{children:je&&be>0&&t===he&&B(C,{style:{height:be}})}),B(y,{columnsWithDict:H,subjectWellId:O,data:e,metricsKeys:N,metricsColumns:we,handleChangeOffsetWell:z,isWellNameExpand:Z,wellNameStyle:P.wellNameFixed,wellNameWidth:Ee,isViewOnly:Y,isImperial:We,isLimitedOffsetWells:ee,maxOffsetWellNumber:te,wellSections:oe,setActiveWellId:se,viewType:re,newCheckedWellId:null!=e&&e.moveTo?je:0,setNewCheckedWellId:ue,index:null!=e&&e.moveTo?t:0,flyDuration:null!=e&&e.moveTo?Ie.current:0,isWDUser:ie,taScores:ne})]},e.id)})),!$&&B(u,{children:B(C,{className:P.loadingCell,children:B("span",{children:"Loading..."})})}),B(u,{children:B(C,{className:P.bottomShadow})})]})}),w&&B("div",{className:P.loadingContainer,children:B(W,{fullscreen:!1,className:P.loadingIndicator})})]}):null};F.propTypes={open:c.bool.isRequired,isTableLoading:c.bool.isRequired,companyId:c.number.isRequired,subjectWellId:c.number.isRequired,sortBy:c.string.isRequired,setSortBy:c.func.isRequired,sortDirection:c.string.isRequired,setSortDirection:c.func.isRequired,columnsWithDict:c.arrayOf(c.shape({})).isRequired,wells:c.arrayOf(c.shape({})).isRequired,metricsKeys:c.arrayOf(c.string).isRequired,setMetricsKeys:c.func.isRequired,handleChangeOffsetWell:c.func.isRequired,handleChangeAllOffsetWells:c.func.isRequired,handleAddRemoveAssets:c.func.isRequired,setIsWellNameExpand:c.func.isRequired,isWellNameExpand:c.bool.isRequired,isHScrollMoved:c.bool.isRequired,onHideAdvancedSearch:c.func.isRequired,isViewOnly:c.bool.isRequired,isLastWell:c.bool.isRequired,isLimitedOffsetWells:c.bool.isRequired,maxOffsetWellNumber:c.number.isRequired,contentRef:c.shape({}).isRequired,wellSections:c.arrayOf(c.shape({})).isRequired,setActiveWellId:c.func.isRequired,viewType:c.string.isRequired,isWDUser:c.bool.isRequired,taScores:c.arrayOf(c.shape({})).isRequired};var O=o(F);export{O as default};
|
package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.module.css.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from'./../../../../ext-esm/style-inject/dist/style-inject.es.js';var l={offsetWellsTable:"OffsetWellsTable-module_offsetWellsTable__pGL-8",loadingContainer:"OffsetWellsTable-module_loadingContainer__lA0IJ",stickyTable:"OffsetWellsTable-module_stickyTable__LZCzy",searchCellWrapper:"OffsetWellsTable-module_searchCellWrapper__n8cod",searchCellWrapperExpanded:"OffsetWellsTable-module_searchCellWrapperExpanded__pWrzU",searchCell:"OffsetWellsTable-module_searchCell__3IW23",searchCellEmpty:"OffsetWellsTable-module_searchCellEmpty__1sB-v",bodyTable:"OffsetWellsTable-module_bodyTable__djKsG",bodyGrid:"OffsetWellsTable-module_bodyGrid__Ss17M",loadingCell:"OffsetWellsTable-module_loadingCell__rBu7-",topShadow:"OffsetWellsTable-module_topShadow__MPc8N",viewOnlyShadow:"OffsetWellsTable-module_viewOnlyShadow__DOW-4",bottomShadow:"OffsetWellsTable-module_bottomShadow__jxM6E",wellNameFixed:"OffsetWellsTable-module_wellNameFixed__tKtuD",noShadow:"OffsetWellsTable-module_noShadow__Ssp7E"};e('.OffsetWellsTable-module_offsetWellsTable__pGL-8{display:flex;flex-direction:column;position:relative}.OffsetWellsTable-module_loadingContainer__lA0IJ{bottom:0;left:0;position:absolute;right:0;top:0;z-index:1500}.OffsetWellsTable-module_stickyTable__LZCzy{background-color:var(--palette-background-b-7);padding-right:16px;position:sticky;top:0;z-index:9}.OffsetWellsTable-module_searchCellWrapper__n8cod{background-color:var(--palette-background-b-7);display:inline-flex;left:0;position:sticky;top:49px;width:var(--dynamic-search-wrapper-width,1020px);z-index:9}.OffsetWellsTable-module_searchCellWrapperExpanded__pWrzU{width:var(--dynamic-search-wrapper-width,1270px)}.OffsetWellsTable-module_searchCell__3IW23{left:0;position:sticky;top:0;width:1020px;z-index:9}.OffsetWellsTable-module_searchCellEmpty__1sB-v{position:relative;width:250px}.OffsetWellsTable-module_bodyTable__djKsG{position:relative}.OffsetWellsTable-module_bodyGrid__Ss17M{margin-top:12px!important;overflow:hidden!important}.OffsetWellsTable-module_bodyGrid__Ss17M::-webkit-scrollbar-corner{background:transparent}.OffsetWellsTable-module_loadingCell__rBu7-{border-bottom:none!important;color:var(--palette-primary-text-8)!important;font-size:12px!important;height:16px!important;padding:0!important;position:absolute;text-align:center!important;width:100%;z-index:1000}.OffsetWellsTable-module_topShadow__MPc8N{background-image:linear-gradient(0deg,rgba(51,51,51,0),#333);border-bottom:none!important;height:16px!important;padding:0!important;position:sticky;top:93px;width:100%;z-index:999}.OffsetWellsTable-module_viewOnlyShadow__DOW-4{top:49px}.OffsetWellsTable-module_bottomShadow__jxM6E{border-bottom:none!important;bottom:0;height:16px!important;padding:0!important;position:sticky;width:100%;z-index:999}.OffsetWellsTable-module_bottomShadow__jxM6E:after{background-image:linear-gradient(180deg,rgba(51,51,51,0),#333);bottom:-1px;content:" ";height:16px!important;position:absolute;width:100%}.OffsetWellsTable-module_wellNameFixed__tKtuD{box-shadow:4px 0 6px -3px #191919!important}.OffsetWellsTable-module_noShadow__Ssp7E{box-shadow:none!important}');export{l as default};
|
|
1
|
+
import e from'./../../../../ext-esm/style-inject/dist/style-inject.es.js';var l={offsetWellsTable:"OffsetWellsTable-module_offsetWellsTable__pGL-8",loadingContainer:"OffsetWellsTable-module_loadingContainer__lA0IJ",loadingIndicator:"OffsetWellsTable-module_loadingIndicator__j5pye",stickyTable:"OffsetWellsTable-module_stickyTable__LZCzy",searchCellWrapper:"OffsetWellsTable-module_searchCellWrapper__n8cod",searchCellWrapperExpanded:"OffsetWellsTable-module_searchCellWrapperExpanded__pWrzU",searchCell:"OffsetWellsTable-module_searchCell__3IW23",searchCellEmpty:"OffsetWellsTable-module_searchCellEmpty__1sB-v",bodyTable:"OffsetWellsTable-module_bodyTable__djKsG",bodyGrid:"OffsetWellsTable-module_bodyGrid__Ss17M",loadingCell:"OffsetWellsTable-module_loadingCell__rBu7-",topShadow:"OffsetWellsTable-module_topShadow__MPc8N",viewOnlyShadow:"OffsetWellsTable-module_viewOnlyShadow__DOW-4",bottomShadow:"OffsetWellsTable-module_bottomShadow__jxM6E",wellNameFixed:"OffsetWellsTable-module_wellNameFixed__tKtuD",noShadow:"OffsetWellsTable-module_noShadow__Ssp7E"};e('.OffsetWellsTable-module_offsetWellsTable__pGL-8{display:flex;flex-direction:column;height:100%;position:relative}.OffsetWellsTable-module_loadingContainer__lA0IJ{align-items:center;backdrop-filter:blur(1px);bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:1500}.OffsetWellsTable-module_loadingIndicator__j5pye{position:absolute;top:0}.OffsetWellsTable-module_stickyTable__LZCzy{background-color:var(--palette-background-b-7);padding-right:16px;position:sticky;top:0;z-index:9}.OffsetWellsTable-module_searchCellWrapper__n8cod{background-color:var(--palette-background-b-7);display:inline-flex;left:0;position:sticky;top:49px;width:var(--dynamic-search-wrapper-width,1020px);z-index:9}.OffsetWellsTable-module_searchCellWrapperExpanded__pWrzU{width:var(--dynamic-search-wrapper-width,1270px)}.OffsetWellsTable-module_searchCell__3IW23{left:0;position:sticky;top:0;width:1020px;z-index:9}.OffsetWellsTable-module_searchCellEmpty__1sB-v{position:relative;width:250px}.OffsetWellsTable-module_bodyTable__djKsG{position:relative}.OffsetWellsTable-module_bodyGrid__Ss17M{margin-top:12px!important;overflow:hidden!important}.OffsetWellsTable-module_bodyGrid__Ss17M::-webkit-scrollbar-corner{background:transparent}.OffsetWellsTable-module_loadingCell__rBu7-{border-bottom:none!important;color:var(--palette-primary-text-8)!important;font-size:12px!important;height:16px!important;padding:0!important;position:absolute;text-align:center!important;width:100%;z-index:1000}.OffsetWellsTable-module_topShadow__MPc8N{background-image:linear-gradient(0deg,rgba(51,51,51,0),#333);border-bottom:none!important;height:16px!important;padding:0!important;position:sticky;top:93px;width:100%;z-index:999}.OffsetWellsTable-module_viewOnlyShadow__DOW-4{top:49px}.OffsetWellsTable-module_bottomShadow__jxM6E{border-bottom:none!important;bottom:0;height:16px!important;padding:0!important;position:sticky;width:100%;z-index:999}.OffsetWellsTable-module_bottomShadow__jxM6E:after{background-image:linear-gradient(180deg,rgba(51,51,51,0),#333);bottom:-1px;content:" ";height:16px!important;position:absolute;width:100%}.OffsetWellsTable-module_wellNameFixed__tKtuD{box-shadow:4px 0 6px -3px #191919!important}.OffsetWellsTable-module_noShadow__Ssp7E{box-shadow:none!important}');export{l as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function useAdvancedWells(companyId: any, rawWells: any, wellSections: any, offsetWellsBySection: any, subjectWellId: any, metricsKeys: any): any;
|
|
1
|
+
export function useAdvancedWells(companyId: any, rawWells: any, wellSections: any, offsetWellsBySection: any, subjectWellId: any, metricsKeys: any, open: any): any;
|
|
2
2
|
//# sourceMappingURL=useAdvancedWells.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAdvancedWells.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV4/effects/useAdvancedWells.js"],"names":[],"mappings":"AAYA,
|
|
1
|
+
{"version":3,"file":"useAdvancedWells.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV4/effects/useAdvancedWells.js"],"names":[],"mappings":"AAYA,oKAwHC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"@babel/runtime/helpers/
|
|
1
|
+
import r from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import n from"@babel/runtime/regenerator";import{useState as o,useRef as i,useEffect as u}from"react";import{groupBy as a,get as c}from"lodash";import{fetchMetricsData as f}from"../utils/apiCalls.js";import{ALL_SECTION_KEY as l,ColumnType as s}from"../constants.js";import{mapbox as p}from"../../../utils/index.js";function m(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),e.push.apply(e,n)}return e}function d(r){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){t(r,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(n,t))}))}return r}var b=p.getAssetV2Coordinates,v=p.getDistanceByCoordinates,y=function(r){return Number.isFinite(r)?parseFloat(r.toFixed(2)):null};function h(p,m,h,O,j,g,w){var P=o(null),x=e(P,2),F=x[0],D=x[1],E=o(null),k=e(E,2),C=k[0],S=k[1],A=o(null),H=e(A,2),T=H[0],B=H[1],G=i({});function N(r){return V.apply(this,arguments)}function V(){return(V=r(n.mark((function r(e){var o,i,u,l;return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,f(p,e,g);case 2:o=r.sent,i={},u=a(o,"asset_id"),e.forEach((function(r){var e,n=null===(e=u[r])||void 0===e?void 0:e.reduce((function(r,e){var n=c(e,"data.value"),o=c(e,"data.key");return d(d({},r),{},t({},o,y(n)))}),{});i[r]=n})),G.current=d(d({},G.current),i),l=[],T.forEach((function(r){l.push(d(d({},r),G.current[r.id]))})),D(l);case 10:case"end":return r.stop()}}),r)})))).apply(this,arguments)}return u((function(){m&&w&&function(){var r=m.find((function(r){return r.id===j})),t=r&&b(r,"topHole");if(t){var e=m.map((function(r){try{var e=b(r,"topHole");if(e){var n=parseFloat(v(t,e));return d(d({},r),{},{distance:parseFloat(n.toFixed(2))})}return r}catch(t){return r}}));S(e)}else S(m)}()}),[m,j,w]),u((function(){var r,e;C&&h&&O&&w&&(r=h.filter((function(r){return r.value!==l})),e=C.map((function(e){var n=r.filter((function(r){return(O[r.value]||[]).includes(e.id)})).map((function(r){return r.label}));return n.length>0?d(d({},e),{},t({},s.wellSection,n)):e})),B(e))}),[C,h,O,w]),u((function(){if(T&&w){var r=[];T.forEach((function(t){G.current[t.id]||r.push(t.id)})),N(r)}}),[T,w]),u((function(){F&&N(F.map((function(r){return r.id})))}),[g]),F}export{h as useAdvancedWells};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { Well } from '~/types';
|
|
2
|
+
export declare function useFetchWells(companyId?: number, addWellsUsabilityInfo?: (wells: Well[]) => Promise<Well[]> | Well[]): (boolean | Well[])[];
|
|
2
3
|
//# sourceMappingURL=useFetchWells.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFetchWells.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV4/effects/useFetchWells.
|
|
1
|
+
{"version":3,"file":"useFetchWells.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV4/effects/useFetchWells.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAY/B,wBAAgB,aAAa,CAC3B,SAAS,CAAC,EAAE,MAAM,EAClB,qBAAqB,GAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,OAAO,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI,EAAa,wBAkE9E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{__awaiter as t,__generator as e,__spreadArray as n}from'./../../../ext-esm/tslib/tslib.es6.js';import{useState as r,useEffect as o}from"react";import{identity as i}from"lodash";import{fetchWells as s}from"../utils/apiCalls.js";function a(a,u){if(void 0===u&&(u=i),"function"!=typeof u)throw new Error("addWellsUsabilityInfo must be a function");var l=r([]),c=l[0],f=l[1],m=r(!0),p=m[0],d=m[1];return o((function(){var r=!1;return f([]),d(!0),function(){t(this,void 0,void 0,(function(){var o,i,l,c,m=this;return e(this,(function(p){switch(p.label){case 0:return a?(o=sessionStorage.getItem("corva-offset-well-picker-wells"),i=o?JSON.parse(o):void 0,l=Date.now(),i&&i.companyId===a&&l-i.timestamp<3e5?(f(i.wells),d(!1),[2]):(c=[],[4,s(a,(function(o,i){return t(m,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return r?[2]:[4,u(o)];case 1:return t=e.sent(),c.push.apply(c,t),f((function(e){return n(n([],e,!0),t,!0)})),i&&!r&&(sessionStorage.setItem("corva-offset-well-picker-wells",JSON.stringify({wells:c,timestamp:Date.now(),companyId:a})),d(!1)),[2]}}))}))}),(function(){return r}))])):[2];case 1:return p.sent(),[2]}}))}))}(),function(){r=!0}}),[a]),[c,p]}export{a as useFetchWells};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFilterOptions.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV4/effects/useFilterOptions.js"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"useFilterOptions.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV4/effects/useFilterOptions.js"],"names":[],"mappings":"AAIA;;;;IAiBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"@babel/runtime/helpers/toConsumableArray";import
|
|
1
|
+
import r from"@babel/runtime/helpers/toConsumableArray";import{useMemo as t}from"react";import{FilterOptions as o}from"../constants.js";function n(n){return t((function(){return n?o.map((function(t){var o=t.value,e=t.label,a=new Set;return n.forEach((function(r){"Null"!==r[o]&&a.add(r[o])})),{value:o,label:e,options:r(a).sort().concat(["Null"])}})):[]}),[n])}export{n as useFilterOptions};
|
|
@@ -1,2 +1,98 @@
|
|
|
1
|
-
export function useFilteredWells(wells: any, filters: any):
|
|
1
|
+
export function useFilteredWells(wells: any, filters: any): {
|
|
2
|
+
toString: () => string;
|
|
3
|
+
charAt: (pos: number) => string;
|
|
4
|
+
charCodeAt: (index: number) => number;
|
|
5
|
+
concat: (...strings: string[]) => string;
|
|
6
|
+
indexOf: (searchString: string, position?: number) => number;
|
|
7
|
+
lastIndexOf: (searchString: string, position?: number) => number;
|
|
8
|
+
localeCompare: {
|
|
9
|
+
(that: string): number;
|
|
10
|
+
(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
|
|
11
|
+
(that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number;
|
|
12
|
+
};
|
|
13
|
+
match: {
|
|
14
|
+
(regexp: string | RegExp): RegExpMatchArray | null;
|
|
15
|
+
(matcher: {
|
|
16
|
+
[Symbol.match](string: string): RegExpMatchArray | null;
|
|
17
|
+
}): RegExpMatchArray | null;
|
|
18
|
+
};
|
|
19
|
+
replace: {
|
|
20
|
+
(searchValue: string | RegExp, replaceValue: string): string;
|
|
21
|
+
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
|
22
|
+
(searchValue: {
|
|
23
|
+
[Symbol.replace](string: string, replaceValue: string): string;
|
|
24
|
+
}, replaceValue: string): string;
|
|
25
|
+
(searchValue: {
|
|
26
|
+
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
|
27
|
+
}, replacer: (substring: string, ...args: any[]) => string): string;
|
|
28
|
+
};
|
|
29
|
+
search: {
|
|
30
|
+
(regexp: string | RegExp): number;
|
|
31
|
+
(searcher: {
|
|
32
|
+
[Symbol.search](string: string): number;
|
|
33
|
+
}): number;
|
|
34
|
+
};
|
|
35
|
+
slice: (start?: number, end?: number) => string;
|
|
36
|
+
split: {
|
|
37
|
+
(separator: string | RegExp, limit?: number): string[];
|
|
38
|
+
(splitter: {
|
|
39
|
+
[Symbol.split](string: string, limit?: number): string[];
|
|
40
|
+
}, limit?: number): string[];
|
|
41
|
+
};
|
|
42
|
+
substring: (start: number, end?: number) => string;
|
|
43
|
+
toLowerCase: () => string;
|
|
44
|
+
toLocaleLowerCase: {
|
|
45
|
+
(locales?: string | string[]): string;
|
|
46
|
+
(locales?: Intl.LocalesArgument): string;
|
|
47
|
+
};
|
|
48
|
+
toUpperCase: () => string;
|
|
49
|
+
toLocaleUpperCase: {
|
|
50
|
+
(locales?: string | string[]): string;
|
|
51
|
+
(locales?: Intl.LocalesArgument): string;
|
|
52
|
+
};
|
|
53
|
+
trim: () => string;
|
|
54
|
+
readonly length: number;
|
|
55
|
+
substr: (from: number, length?: number) => string;
|
|
56
|
+
valueOf: () => string;
|
|
57
|
+
codePointAt: (pos: number) => number | undefined;
|
|
58
|
+
includes: (searchString: string, position?: number) => boolean;
|
|
59
|
+
endsWith: (searchString: string, endPosition?: number) => boolean;
|
|
60
|
+
normalize: {
|
|
61
|
+
(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
|
|
62
|
+
(form?: string): string;
|
|
63
|
+
};
|
|
64
|
+
repeat: (count: number) => string;
|
|
65
|
+
startsWith: (searchString: string, position?: number) => boolean;
|
|
66
|
+
anchor: (name: string) => string;
|
|
67
|
+
big: () => string;
|
|
68
|
+
blink: () => string;
|
|
69
|
+
bold: () => string;
|
|
70
|
+
fixed: () => string;
|
|
71
|
+
fontcolor: (color: string) => string;
|
|
72
|
+
fontsize: {
|
|
73
|
+
(size: number): string;
|
|
74
|
+
(size: string): string;
|
|
75
|
+
};
|
|
76
|
+
italics: () => string;
|
|
77
|
+
link: (url: string) => string;
|
|
78
|
+
small: () => string;
|
|
79
|
+
strike: () => string;
|
|
80
|
+
sub: () => string;
|
|
81
|
+
sup: () => string;
|
|
82
|
+
padStart: (maxLength: number, fillString?: string) => string;
|
|
83
|
+
padEnd: (maxLength: number, fillString?: string) => string;
|
|
84
|
+
trimEnd: () => string;
|
|
85
|
+
trimStart: () => string;
|
|
86
|
+
trimLeft: () => string;
|
|
87
|
+
trimRight: () => string;
|
|
88
|
+
matchAll: (regexp: RegExp) => RegExpStringIterator<RegExpExecArray>;
|
|
89
|
+
replaceAll: {
|
|
90
|
+
(searchValue: string | RegExp, replaceValue: string): string;
|
|
91
|
+
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
|
92
|
+
};
|
|
93
|
+
at: (index: number) => string | undefined;
|
|
94
|
+
isWellFormed: () => boolean;
|
|
95
|
+
toWellFormed: () => string;
|
|
96
|
+
[Symbol.iterator]: () => StringIterator<string>;
|
|
97
|
+
}[];
|
|
2
98
|
//# sourceMappingURL=useFilteredWells.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFilteredWells.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV4/effects/useFilteredWells.js"],"names":[],"mappings":"AAMA,
|
|
1
|
+
{"version":3,"file":"useFilteredWells.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV4/effects/useFilteredWells.js"],"names":[],"mappings":"AAMA;;;;;;;;;8DAuCuj8M,KAAM,eAAe;iCAA/o6M,KAAM,eAAe,YAAW,KAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAH5+B,KAAM,eAAe;;;;;mBAGkI,KAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IADjL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"@babel/runtime/helpers/
|
|
1
|
+
import r from"@babel/runtime/helpers/slicedToArray";import e from"@babel/runtime/helpers/typeof";import{useMemo as t}from"react";import{uniqBy as i}from"lodash";import{FilterType as n}from"../constants.js";import{getTimestampByPeriod as o}from"../utils/timePeriod.js";function u(u,s){var m=/\sST0/g;return t((function(){if(!u)return null;var t=u.filter((function(r){return Object.keys(s).every((function(t){return"object"!==e(s[t])||!(s[t].length>0&&!s[t].includes(r[t]))}))}));void 0!==s[n.sideTracks]&&(t=t.filter((function(r){return!s[n.sideTracks]||!r.name.match(m)})));var a=s.period,c=s.timeRangeFrom,f=s.timeRangeTo,l=o(a,c,f),d=r(l,2),p=d[0],b=d[1];return Number.isFinite(p)&&Number.isFinite(b)&&(t=t.filter((function(r){return r.lastActive>=p&&r.lastActive<=b}))),Number.isFinite(s.radius)&&(t=t.filter((function(r){return r.distance<=s.radius}))),i(t,"id")}),[u,s])}export{u as useFilteredWells};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSortedWells.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV4/effects/useSortedWells.js"],"names":[],"mappings":"AAkBA,
|
|
1
|
+
{"version":3,"file":"useSortedWells.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV4/effects/useSortedWells.js"],"names":[],"mappings":"AAkBA,wIAuCC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import e from"@babel/runtime/helpers/toConsumableArray";import{useState as n,useEffect as
|
|
1
|
+
import r from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import e from"@babel/runtime/helpers/toConsumableArray";import{useState as n,useMemo as o,useEffect as i}from"react";import{isEmpty as c}from"lodash";import{SortDirection as u}from"react-virtualized";import{ColumnType as f}from"../constants.js";function a(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),e.push.apply(e,n)}return e}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))}))}return t}var l=function(r,t,n){var o=e(r),i=t===f.lastActive;return o.sort((function(r,e){return r[t]||0===r[t]&&!i?e[t]||0===e[t]&&!i?n===u.ASC?r[t]>=e[t]?1:-1:e[t]>=r[t]?1:-1:-1:1})),o};function s(r,e,a,s,m){var b=n(f.distance),O=t(b,2),d=O[0],y=O[1],j=n(u.ASC),v=t(j,2),h=v[0],P=v[1],g=o((function(){if(!e||m)return null;var t=a.map((function(r){return r.id})),n=a.filter((function(t){return t.id!==(null==r?void 0:r.id)})),o=l(n,d,h),i=e.filter((function(r){return!t.includes(r.id)})),u=l(i,d,h);return(c(r)?[]:[r]).concat(o).concat(u).map((function(r){return p(p({},r),{},{checked:a.some((function(t){return t.id===r.id}))})}))}),[e,d,h,r,a,m]);return i((function(){null!==g&&s(!1)}),[g,s]),[d,y,h,P,g]}export{s as useSortedWells};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function useTableColumns(metricsKeys: any): any;
|
|
1
|
+
export function useTableColumns(metricsKeys: any): any[];
|
|
2
2
|
//# sourceMappingURL=useTableColumns.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTableColumns.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV4/effects/useTableColumns.js"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"useTableColumns.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV4/effects/useTableColumns.js"],"names":[],"mappings":"AAIA,yDAoBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import r from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/toConsumableArray";import{useMemo as e}from"react";import{TableColumns as n,ColumnType as o}from"../constants.js";function c(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),e.push.apply(e,n)}return e}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))}))}return t}function p(r){return e((function(){if(!r)return null;var e=Math.min(r.length,3);return n.reduce((function(n,c){return c.type===o.metrics?[].concat(t(n),t(r.map((function(r){return i(i({},c),{},{key:r,width:c.width[e]})})))):[].concat(t(n),[i(i({},c),{},{width:c.width[e]})])}),[])}),[r])}export{p as useTableColumns};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
export function
|
|
3
|
-
export function
|
|
4
|
-
export function
|
|
5
|
-
export function
|
|
6
|
-
export function
|
|
7
|
-
export function
|
|
8
|
-
export function
|
|
1
|
+
import { Well } from '~/types';
|
|
2
|
+
export declare function fetchCompanies(): Promise<any[]>;
|
|
3
|
+
export declare function resyncIdasWells(currentUser: any, assetId: any): Promise<any>;
|
|
4
|
+
export declare function fetchWells(companyId: number, onPage: (wells: Well[], isEnd: boolean) => void, isCancelled: () => boolean): Promise<void>;
|
|
5
|
+
export declare function fetchOffsetWellSelections(assetId: any): Promise<any>;
|
|
6
|
+
export declare function fetchWellhubWells(assetId: any): Promise<any>;
|
|
7
|
+
export declare function fetchCompanyGoals(companyId: any): Promise<any>;
|
|
8
|
+
export declare function fetchMetricsData(companyId: any, wellIds: any, metricsKeys: any): Promise<any[]>;
|
|
9
|
+
export declare function fetchAllAssets(searchKey: any, assetType: any, page: number, company: any): Promise<any>;
|
|
9
10
|
//# sourceMappingURL=apiCalls.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiCalls.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV4/utils/apiCalls.
|
|
1
|
+
{"version":3,"file":"apiCalls.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV4/utils/apiCalls.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAO/B,wBAAsB,cAAc,mBASnC;AAED,wBAAsB,eAAe,CAAC,WAAW,KAAA,EAAE,OAAO,KAAA,gBAqBzD;AAED,wBAAsB,UAAU,CAC9B,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,EAC/C,WAAW,EAAE,MAAM,OAAO,GACzB,OAAO,CAAC,IAAI,CAAC,CAaf;AAiED,wBAAsB,yBAAyB,CAAC,OAAO,KAAA,gBAKtD;AAED,wBAAsB,iBAAiB,CAAC,OAAO,KAAA,gBAS9C;AAED,wBAAsB,iBAAiB,CAAC,SAAS,KAAA,gBAShD;AAID,wBAAsB,gBAAgB,CAAC,SAAS,KAAA,EAAE,OAAO,KAAA,EAAE,WAAW,KAAA,kBA2CrE;AAiED,wBAAsB,cAAc,CAAC,SAAS,KAAA,EAAE,SAAS,KAAA,EAAE,IAAI,QAAI,EAAE,OAAO,KAAA,gBAgB3E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t
|
|
1
|
+
import{__awaiter as t,__generator as e,__assign as s}from'./../../../ext-esm/tslib/tslib.es6.js';import r from"jsona";import{range as a,sortBy as n,get as i,concat as u}from"lodash";import{ROWS_PER_PAGE as o}from"../constants.js";import{getCompanies as l,getAppStorage as c,getCompanyGoals as d,getAssets as p,getWells as f,getRigs as m}from"../../../clients/jsonApi/index.js";import{postTaskAndWaitResult as _}from"../../../clients/jsonApi/postTaskAndWaitResult.js";var h=new r;function v(){return t(this,void 0,void 0,(function(){var t,s;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,l()];case 1:return t=e.sent(),[3,3];case 2:return s=e.sent(),console.error(s),[3,3];case 3:return[2,t?n(t,["name"]):[]]}}))}))}function b(s,r){return t(this,void 0,void 0,(function(){var t,a,n;return e(this,(function(e){switch(e.label){case 0:t=null,a={provider:"xto",app_key:"xto.idas_offset_performance_distance_be_od",asset_id:r,app_version:16,properties:{asset_id:r,user_id:s.id,user_name:"".concat(s.first_name," ").concat(s.last_name)}},e.label=1;case 1:return e.trys.push([1,3,,4]),[4,_(a)];case 2:return t=e.sent(),[3,4];case 3:return n=e.sent(),console.error(n),[3,4];case 4:return[2,t]}}))}))}function g(s,r,a){return t(this,void 0,void 0,(function(){var t,n;return e(this,(function(e){switch(e.label){case 0:t=1,e.label=1;case 1:return t<=20?[4,y(s,t)]:[3,4];case 2:if(n=e.sent(),a())return[2];if(n.length<1e3)return r(n,!0),[2];r(n,!1),e.label=3;case 3:return t++,[3,1];case 4:return[2]}}))}))}function y(s){return t(this,arguments,void 0,(function(t,s){var r,a;return void 0===s&&(s=1),e(this,(function(e){switch(e.label){case 0:r=null,e.label=1;case 1:return e.trys.push([1,3,,4]),[4,p({types:["well"],company_id:t?+t:void 0,fields:["asset.name","asset.parent_asset_id","asset.parent_asset_name","asset.status","asset.stats","asset.target_formation","asset.string_design","asset.root_asset_name","asset.basin","asset.county","asset.area","asset.visibility","asset.top_hole","asset.settings","well.settings","asset.last_active_at"],page:s,per_page:1e3,sort:"name"})];case 2:return r=e.sent(),[3,4];case 3:return a=e.sent(),console.error(a),[3,4];case 4:return[2,r?r.data.map((function(t){return{id:Number(t.id),name:i(t,"attributes.name"),status:i(t,"attributes.status"),rigId:i(t,"attributes.parent_asset_id")||"Null",rigName:i(t,"attributes.parent_asset_name")||"Null",formation:i(t,"attributes.target_formation")||"Null",stringDesign:i(t,"attributes.string_design")||"Null",programName:i(t,"attributes.root_asset_name")||"Null",basin:i(t,"attributes.basin")||"Null",county:i(t,"attributes.county")||"Null",area:i(t,"attributes.area")||"Null",visibility:i(t,"attributes.visibility"),topHole:i(t,"attributes.top_hole"),rigReleaseDate:i(t,"attributes.stats.well_end"),totalDepth:i(t,"attributes.stats.total_depth"),is_usable:!0,apiNumber:i(t,"attributes.settings.api_number","-"),lastActive:new Date(i(t,"attributes.last_active_at")).getTime()/1e3}})).filter((function(t){return t.visibility.includes("visible")})):[]]}}))}))}function w(s){return t(this,void 0,void 0,(function(){return e(this,(function(t){return[2,c("corva","data.offset-wells.bic",s,{limit:1,sort:"{timestamp: -1}"})]}))}))}function N(s){return t(this,void 0,void 0,(function(){var t,r;return e(this,(function(e){switch(e.label){case 0:t=null,e.label=1;case 1:return e.trys.push([1,3,,4]),[4,c("corva","data.offset_wells",s,{limit:1})];case 2:return t=e.sent(),[3,4];case 3:return r=e.sent(),console.error(r),[3,4];case 4:return[2,t||[]]}}))}))}function j(s){return t(this,void 0,void 0,(function(){var t,r;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,d(s)];case 1:return t=e.sent(),[3,3];case 2:return r=e.sent(),console.error(r),[3,3];case 3:return[2,t&&i(t,"company_goals")||{}]}}))}))}function A(s,r,n){return t(this,void 0,void 0,(function(){var i,u,o,l=this;return e(this,(function(d){switch(d.label){case 0:return 0===r.length?[2,[]]:(i=Math.floor(r.length/200)+1,[4,Promise.all(a(i).map((function(a,i){return t(l,void 0,void 0,(function(){var t,a,u,o,l;return e(this,(function(e){switch(e.label){case 0:t={company_id:s,"data.asset_id":{$in:r.slice(200*i,200*(i+1))},"data.key":{$in:n},"data.type":"asset"},a={_id:0,"data.key":1,"data.value":1,asset_id:"$data.asset_id"},u={aggregate:JSON.stringify([{$match:t},{$project:a}])},o=null,e.label=1;case 1:return e.trys.push([1,3,,4]),[4,c("corva","metrics",null,u)];case 2:return o=e.sent(),[3,4];case 3:return l=e.sent(),console.error(l),[3,4];case 4:return[2,o||[]]}}))}))})))]);case 1:return u=d.sent(),o=[],u.forEach((function(t){return o.push.apply(o,t)})),[2,o]}}))}))}function $(s,r,a){return t(this,void 0,void 0,(function(){var t,n,i;return e(this,(function(e){switch(e.label){case 0:t={company:a,search:s,per_page:o,page:r,fields:["well.name","well.asset_id","well.settings","well.status","well.rigName","well.visibility"],sort:"name"},e.label=1;case 1:return e.trys.push([1,3,,4]),[4,f(t)];case 2:return n=e.sent(),[3,4];case 3:return i=e.sent(),console.error(i),n=[],[3,4];case 4:return[2,h.deserialize(n).map((function(t){return{redirectAssetId:t.asset_id,apiNumber:t.settings.api_number,name:t.name,asset_id:t.asset_id,status:t.status,rigName:t.rigName,visibility:t.visibility,type:"well"}}))]}}))}))}function k(r,a,n){return t(this,void 0,void 0,(function(){var t,u,l;return e(this,(function(e){switch(e.label){case 0:t={company:n,search:r,per_page:o,page:a,fields:["rig.name","rig.active_well","rig.asset_id"],sort:"name"},e.label=1;case 1:return e.trys.push([1,3,,4]),[4,m(t)];case 2:return u=e.sent(),[3,4];case 3:return l=e.sent(),console.error(l),u=[],[3,4];case 4:return[2,h.deserialize(u).map((function(t){return s({redirectAssetId:i(t,["active_well","asset_id"])||null},t)}))]}}))}))}function x(s,r){return t(this,arguments,void 0,(function(t,s,r,a){var n;return void 0===r&&(r=1),e(this,(function(e){switch(e.label){case 0:return"well"!==s?[3,2]:[4,$(t,r,a)];case 1:case 3:return[2,e.sent()];case 2:return"rig"!==s?[3,4]:[4,k(t,r,a)];case 4:return[4,Promise.all([$(t,r,a),k(t,r,a)])];case 5:return n=e.sent(),[2,u.apply(void 0,n)]}}))}))}export{x as fetchAllAssets,v as fetchCompanies,j as fetchCompanyGoals,A as fetchMetricsData,w as fetchOffsetWellSelections,N as fetchWellhubWells,g as fetchWells,b as resyncIdasWells};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AssetItem, BadgeIconStatus } from '~/components/StatusBadge/constants';
|
|
2
|
-
import {
|
|
2
|
+
import { GetDeductsFromScoreClass, GetDeductsFromScoreValue, ParseWellnessAlertFromJson } from '~/components/StatusBadge/types';
|
|
3
3
|
export declare const isResolved: (status: string) => boolean;
|
|
4
4
|
export declare const getDeductsFromScoreClass: GetDeductsFromScoreClass;
|
|
5
5
|
export declare const getDeductsFromScoreValue: GetDeductsFromScoreValue;
|
|
@@ -16,8 +16,6 @@ export declare const getNewWellnessAlerts: ({ assetsList, alertsGroupByRuleId, w
|
|
|
16
16
|
wellHubSlug: any;
|
|
17
17
|
}) => any;
|
|
18
18
|
export declare const getIconType: (alertsFromAssetsListKeys: any, wellnessAlertsFromAssetsList: any) => "" | "success" | "error" | "issue";
|
|
19
|
-
export declare const findUpdatedFields: (oldAlert: any, newAlert: any) => Partial<any>;
|
|
20
|
-
export declare const hasOnlyLastCheckedAtKey: (alert: any) => boolean;
|
|
21
19
|
export declare const getSortedWellnessAlerts: (alertsKeys: any, alerts: any) => any;
|
|
22
20
|
export declare const getCategoryIconType: (rules: AssetItem[]) => BadgeIconStatus;
|
|
23
21
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/StatusBadge/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/StatusBadge/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,SAAS,EAET,eAAe,EAEhB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACxB,0BAA0B,EAC3B,MAAM,gCAAgC,CAAC;AAExC,eAAO,MAAM,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OACK,CAAC;AAEnD,eAAO,MAAM,wBAAwB,EAAE,wBAYtC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,wBAKtC,CAAC;AA6BF,eAAO,MAAM,0BAA0B,EAAE,0BA+BxC,CAAC;AAEF,eAAO,MAAM,eAAe,8BAGzB;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB,KAAG,MAA0D,CAAC;AAE/D,eAAO,MAAM,sBAAsB,uCAkB3B,CAAC;AAET,eAAO,MAAM,oBAAoB;;;;;SAmDhC,CAAC;AAEF,eAAO,MAAM,WAAW,0GAoBvB,CAAC;AAEF,eAAO,MAAM,uBAAuB,uCAYjC,CAAC;AAEJ,eAAO,MAAM,mBAAmB,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,eAQzD,CAAC"}
|