@corva/ui 3.75.0-13 → 3.75.0-14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs-bundle/components/AddComment/Popover.js +1 -1
- package/cjs-bundle/components/AddComment/Popover.js.map +1 -1
- package/cjs-bundle/components/AddComment/components/Content.js +1 -1
- package/cjs-bundle/components/AddComment/components/Content.js.map +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/components/Map/Map.js +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/components/Map/Map.js.map +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/index.js.map +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js.map +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
- package/cjs-bundle/components/DocumentViewer/DocumentViewer.js +1 -1
- package/cjs-bundle/components/DocumentViewer/DocumentViewer.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
- package/cjs-bundle/components/OffsetWellMap/OffsetWellMap.js +1 -1
- package/cjs-bundle/components/OffsetWellMap/OffsetWellMap.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Map/Map.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Map/Map.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/effects/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/effects/index.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/effects/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/effects/index.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapTooltipState.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapTooltipState.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useSelectionToolOrchestration.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useSelectionToolOrchestration.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/utils/well-markers-utils.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/utils/well-markers-utils.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/CompanySafeguardWrapper/CompanySafeguardWrapper.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/CompanySafeguardWrapper/CompanySafeguardWrapper.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/wellTransformations.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/wellTransformations.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/utils/getCoordinatedWells.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/utils/getCoordinatedWells.js.map +1 -1
- package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js +1 -1
- package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
- package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
- package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js.map +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/hooks/usePadsByRadius.js +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/hooks/usePadsByRadius.js.map +1 -1
- package/components/AddComment/Popover.js +1 -1
- package/components/AddComment/Popover.js.map +1 -1
- package/components/AddComment/components/Content.js +1 -1
- package/components/AddComment/components/Content.js.map +1 -1
- package/components/BICOffsetPickerDialog/components/Map/Map.d.ts.map +1 -1
- package/components/BICOffsetPickerDialog/components/Map/Map.js +1 -1
- package/components/BICOffsetPickerDialog/components/Map/Map.js.map +1 -1
- package/components/BICOffsetPickerDialog/index.js +1 -1
- package/components/BICOffsetPickerDialog/index.js.map +1 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
- package/components/Casing/CasingTableV2/components/Component.js +1 -1
- package/components/Casing/CasingTableV2/components/Component.js.map +1 -1
- package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
- package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
- package/components/DocumentViewer/DocumentViewer.js +1 -1
- package/components/DocumentViewer/DocumentViewer.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
- package/components/OffsetWellMap/OffsetWellMap.d.ts.map +1 -1
- package/components/OffsetWellMap/OffsetWellMap.js +1 -1
- package/components/OffsetWellMap/OffsetWellMap.js.map +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
- package/components/OffsetWellPickerV2/components/Map/Map.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/components/Map/Map.js +1 -1
- package/components/OffsetWellPickerV2/components/Map/Map.js.map +1 -1
- package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
- package/components/OffsetWellPickerV2/effects/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/effects/index.js +1 -1
- package/components/OffsetWellPickerV2/effects/index.js.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/effects/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/effects/index.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/effects/index.js.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
- package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
- package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
- package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
- package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
- package/components/OffsetWellPickerV4/effects/useAdvancedWells.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/utils/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js +1 -1
- package/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js.map +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapTooltipState.js +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapTooltipState.js.map +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useSelectionToolOrchestration.js +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useSelectionToolOrchestration.js.map +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/utils/well-markers-utils.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/utils/well-markers-utils.js +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/utils/well-markers-utils.js.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/CompanySafeguardWrapper/CompanySafeguardWrapper.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/CompanySafeguardWrapper/CompanySafeguardWrapper.js.map +1 -1
- package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/wellTransformations.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/wellTransformations.js +1 -1
- package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/wellTransformations.js.map +1 -1
- package/components/OffsetWellPickerV5/utils/getCoordinatedWells.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/utils/getCoordinatedWells.js +1 -1
- package/components/OffsetWellPickerV5/utils/getCoordinatedWells.js.map +1 -1
- package/components/PadOffsetsPicker/StagesSelector.js +1 -1
- package/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
- package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
- package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/hooks/usePadsByRadius.d.ts.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/hooks/usePadsByRadius.js +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/hooks/usePadsByRadius.js.map +1 -1
- package/mcp-server/server.mjs +4 -4
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/slicedToArray";import t from"@babel/runtime/helpers/defineProperty";import o from"@babel/runtime/helpers/asyncToGenerator";import s from"@babel/runtime/regenerator";import{useReducer as n,useEffect as i}from"react";import{func as r,shape as p,number as m,string as c,oneOf as a}from"prop-types";import{isEmpty as l,get as d,last as j,isNull as u,noop as C,range as I}from"lodash";import{makeStyles as A,Dialog as S,DialogTitle as g,DialogContent as V,Grid as h,FormControl as T,InputLabel as v,Select as D,MenuItem as F,Checkbox as f,ListItemText as P,Typography as b,FormLabel as y,RadioGroup as x,FormControlLabel as E,Radio as L,DialogActions as B,Button as k}from"@material-ui/core";import{getAppStorage as O}from"../../clients/jsonApi/index.js";import"../DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"@babel/runtime/helpers/objectWithoutProperties";import"classnames";import"../Modal/CorvaModal.scss.js";import"@icon-park/react/es/all";import{jsxs as w,Fragment as H,jsx as M}from"react/jsx-runtime";import"../../icons/IconParkProvider.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/DragOne.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/InfoRounded.js";import"../../icons/customIcons/icons/FlameFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import"../../icons/customIcons/icons/GuidedFrac.js";import"../../utils/mobileDetect.js";import"../IconButton/index.js";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/appPackages.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import"../../constants/corvaCompanyId.js";import"../GradientManager/configuration/constants.js";import"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"../DevCenter/AppContext.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react-router-dom";import"query-string";import"../../utils/index.js";import"@material-ui/icons";import"../EmptyState/EmptyState.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/styles.js";import"@material-ui/pickers";import"@date-io/moment";import"moment";import"../../config/theme/index.js";import"../../hocs/withAssetEditorLockHOC.js";import"../ErrorBoundary/ErrorBoundary.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../Button/components/Button/index.js";import"moment-timezone";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import"../AssetEditorV2/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import"../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../ConfirmationDialog.js";import"immutable";import"../../permissions/PermissionsContext.js";import"../../permissions/constants/index.js";import"../../permissions/withPermissionsHOC.js";import"../../permissions/ProvidePermissions.js";import"../../componentsV2/AppHeader/V3/VersionSelect/VersionSelect.constants.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../Annotations/AnnotationsContext.js";import"../../componentsV2/AppContainer/AppContainer.js";import"../../componentsV2/AppContainer/AppContainer.constants.js";import"../../componentsV2/Text/Text.js";import"../../componentsV2/Header/Header.scss.js";import"../../componentsV2/Tooltip/Tooltip.scss.js";import"../../componentsV2/TextEndTruncated/TextEndTruncated.scss.js";import"../../componentsV2/AppCommonsProvider/AppCommonsContext.js";import"../../componentsV2/AppHeader/AppHeader.constants.js";import"../../componentsV2/AppHeader/AppBadge/AppBadge.scss.js";import"../../componentsV2/Chip/Chip.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.constants.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.scss.js";import"../../componentsV2/AppHeader/AppAssets/utils.js";import"../../componentsV2/AppHeader/AppAssets/AppAssets.scss.js";import"../PadModeSelect/PadModeSelect.js";import"../../componentsV2/AppHeader/PadMode/PadMode.scss.js";import"../../constants/streamSourceType.js";import"../../componentsV2/PadModeSelect/PadModeSelect.js";import"../../componentsV2/PadModeSelect/PadModeSelect.constants.js";import"../../componentsV2/AppCommonsProvider/AppCommonsProvider.js";import"../../componentsV2/utils.js";import"../../componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js";import"../../componentsV2/UniversalLink/UniversalLink.scss.js";import"../../componentsV2/AppHeader/V3/AssetChips/AssetChips.scss.js";import"../../componentsV2/Button/Button.js";import"../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js";import"../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.constants.js";import"../../componentsV2/Popover/Popover.js";import"@babel/runtime/helpers/toConsumableArray";import"../../componentsV2/Accordion/Accordion.scss.js";import"../../componentsV2/ButtonIcon/ButtonIcon.js";import"../../componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js";import"../../componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.scss.js";import"../../componentsV2/AppDqPopover/DqAlert/DqAlert.scss.js";import"../../componentsV2/AppDqPopover/DqAsset/DqAsset.scss.js";import"../../componentsV2/AppDqPopover/AppDqPopover.scss.js";import"../../componentsV2/Menu/Menu.js";import"../../componentsV2/ModalWindow/ModalWindow.js";import"../../componentsV2/Modal/Modal.scss.js";import"../../componentsV2/LoaderLogo/LoaderLogo.constants.js";import"../../componentsV2/LoaderLogo/LoaderLogo.scss.js";import"../../utils/getSingleAsset.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js";import"../../componentsV2/TextInput/TextInput.js";import"../../componentsV2/AppHeader/V3/AssetSelector/constants.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorSelect.scss.js";import"../../componentsV2/ChipIndicator/ChipIndicator.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/loadAssets.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelector.scss.js";import"../../clients/subscriptions/constants.js";import"querystring";import"uuid/v1";import"../../clients/subscriptions.v1.js";import"../../clients/subscriptions/subscriptions-client.factory.js";import"jsona";import"../../utils/env.js";import"../StatusBadge/constants.js";import"lodash/set";import"lodash/get";import"lodash/unset";import"../../clients/api/apiCore.js";import"../../clients/constants.js";import"../../clients/sso/auth0.js";import"../../clients/sso/oauth2.js";import"../../clients/api/rateLimiter.js";import"lodash/isEmpty";import"lodash/sortBy";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../../componentsV2/AppSettings/AppSettingsPinningContext.js";import"../../componentsV2/AppHeader/V3/AppTitle/AppTitle.constants.js";import"../../componentsV2/AppHeader/V3/AppTitle/AppTitle.scss.js";import"../../componentsV2/AppHeader/V3/constants.scss.js";import"@babel/runtime/helpers/typeof";import"../../componentsV2/AppHeader/V3/SettingsButton/SettingsButton.js";import"../../componentsV2/AppHeader/V3/SettingsButton/SettingsButton.constants.js";import"../../componentsV2/AppSettings/AppSettings.js";import"../../componentsV2/AppSettings/AppSettings.constants.js";import"../../componentsV2/AppSizeProvider/AppSizeProvider.js";import"../../componentsV2/AppHeader/V3/Actions/Actions.constants.js";import"../../componentsV2/AppHeader/V3/Actions/Actions.scss.js";import"../../componentsV2/AppHeader/V3/AppHeaderV3.scss.js";import"../../componentsV2/AppHeader/AppHeader.scss.js";import"../../componentsV2/EmptyState/EmptyState.scss.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.scss.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.scss.js";import"../../componentsV2/Grid/Grid.js";import"../../componentsV2/Grid/Cell.js";import"../../componentsV2/PopoverPanel/PopoverPanel.js";import"../../componentsV2/Radio/Radio.js";import"../../componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js";import"../../componentsV2/Checkbox/Checkbox.js";import"../../componentsV2/TextInputNext/TextInputNext.js";import"../../componentsV2/TextArea/TextArea.js";import"../../componentsV2/Label/Label.js";import"../../componentsV2/TextLink/TextLink.js";import"../../componentsV2/ChipAlert/ChipAlert.js";import"../../componentsV2/Avatar/Avatar.js";import"../../componentsV2/AvatarGroup/AvatarGroup.js";import"@material-ui/lab";import"../../componentsV2/ToggleButtons/ToggleButtons.scss.js";import"../../componentsV2/Paper/Paper.js";import"../../componentsV2/Hint/Hint.scss.js";import"../../componentsV2/Counter/Counter.js";import"../../componentsV2/BadgeBase/BadgeBase.scss.js";import"../../componentsV2/TemplatesControl/TemplatesControl.js";import"zustand";import"../../componentsV2/TemplatesControl/utils.js";import"../../componentsV2/TemplatesControl/icons/folder/index.js";import"../../componentsV2/TemplatesControl/Store/utils.js";import"../../componentsV2/TemplatesControl/types.js";import"../../componentsV2/BadgeDot/BadgeDot.scss.js";import"../../componentsV2/LoaderLinear/LoaderLinear.scss.js";import"../../componentsV2/Switch/Switch.js";import"../../componentsV2/Tabs/Tabs.js";import"../../componentsV2/FileIcon/FileIcon.js";import"../../componentsV2/Tag/Tag.js";import"react-dropzone";import"../../componentsV2/FilesDropzone/FilesDropzone.scss.js";import"../../componentsV2/FilesLoader/FilesLoader.scss.js";import"file-extension";import"image-extensions";import"video-extensions";import"../../componentsV2/FilesProcessor/FilesProcessor.scss.js";import"../../componentsV2/Skeleton/Skeleton.scss.js";import"../../utils/main.js";import"../../componentsV2/CopyToClipboard/CopyToClipboard.scss.js";import"../../componentsV2/Stepper/Step/Step.scss.js";import"../../componentsV2/Stepper/Stepper.scss.js";import"../../componentsV2/ButtonLive/ButtonLive.js";import"../../componentsV2/ButtonText/ButtonText.js";import"../../componentsV2/IndicatorLive/IndicatorLive.js";import"../../componentsV2/Breadcrumbs/Breadcrumbs.scss.js";import"../../componentsV2/BadgeComment/BadgeComment.js";import"../../componentsV2/AppFooter/AppFooter.js";import"../../componentsV2/OffsetWellsButton/OffsetWellsButton.js";import"../../componentsV2/ChartAxisExtreme/ChartAxisExtreme.scss.js";import"highcharts";import"../../componentsV2/ChartAxisExtreme/ChartAxisExtremeDragTracker.js";import"../../componentsV2/Autocomplete/Autocomplete.js";import"../../componentsV2/Select/Select.js";import"../../componentsV2/AppSettingsDivider/AppSettingsDivider.scss.js";import"../../componentsV2/WellArchivedMessage/WellArchivedMessage.js";import"../../componentsV2/DatePicker/DatePicker.js";import"../../componentsV2/DragHandle/DragHandle.js";import"../../componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js";import"../../componentsV2/Slider/constants.js";import"../../componentsV2/Slider/components/SliderThumb.js";import"../../componentsV2/Slider/Slider.scss.js";import"../../componentsV2/SliderAdvanced/SliderAdvanced.js";import"react-color";import"../../componentsV2/ColorPicker/Swatches/Swatches.scss.js";import"../../componentsV2/ColorPicker/OpacityDragtracker/OpacityDragTracker.scss.js";import"../../componentsV2/ColorPicker/ColorPicker.scss.js";import"../../componentsV2/ChartHelper/ChartHelper.scss.js";import"../../componentsV2/Hotkey/Hotkey.js";import"@tanstack/react-query";import"../../componentsV2/InterventionEventSelector/useInterventionUnitEvents.js";import"../../componentsV2/InterventionEventSelector/InterventionEventSelector.scss.js";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.css.js";import"../Icons/AnnotationIcon.js";import"../HelpCenter/HelpCenterIcon.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/RestoreAppSizeButton.css.js";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.scss.js";import"../Toaster/Toaster.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../AssetEditor/index.js";import"../LoadingIndicator/LoadingIndicator.js";import"../Typography.js";import"../RealTimeValuesSidebar/RealTimeSidebar.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../SlateFormattedText/SlateFormattedText.js";import"../SlateFormattedText/RenderElements.js";import"slate";import"../ParameterCharts/ParameterCharts.js";import"../ParameterCharts/AddEditTrack.js";import"../ChartActionsList/ChartActionsList.js";import"../CopyToClipboard/CopyToClipboard.js";import"../AssetEditor/AssetEditorAutocomplete.js";import"../AssetEditor/SingleAssetEditor.js";import"../SettingEditors/ColorEditor/style.css.js";import"../SettingEditors/DropdownEditor/index.js";import"../SwitchControl/index.js";import"../ColorPicker/ColorPicker.js";import"../Chart/components/ChartButton.js";import"../Chart/components/ChartButtons.js";import"../Chart/components/ChartWrapper.js";import"../Chart/components/AxisDropdown.js";import"../Chart/components/ChartSelect.js";import"../Chart/ChartWrapperContext.js";import"../Chart/effects/useChartModifier.js";import"../Chart/components/buttons/HideAxesButton.js";import"../Chart/components/buttons/ChartTypeButton.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../TruncatedText/index.js";import"../MiddleTruncatedText/MiddleTruncatedText.js";import"../RangeSlider/constants.js";import"../RangeSlider/Input.css.js";import"../RangeSlider/RangeSlider.css.js";import"../AdvancedSlider/AdvancedSlider.js";import"../Breadcrumbs/index.js";import"../VirtualizedTable/index.js";import"../EmptyView/EmptyView.js";import"../EmptyView/EmptyAppView/EmptyAppView.js";import"../ContextMenuItem/index.js";import"../FolderMenuItem/index.js";import"../EditableItem/EditableItem/index.js";import"../EditableItem/EditableItemWithBadge/index.js";import"../Checkbox/index.js";import"../FolderMenuItemWithLinks/index.js";import"../TextField/index.js";import"../Chip/index.js";import"../Counter/index.js";import"../AnchorsList/AnchorsList.js";import"../Select/index.js";import"../Select/SelectFilterBy.js";import"../CustomSelect/index.js";import"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../ResizableTable/ResizableTable.js";import"../GradientPicker/GradientPicker.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"../GradientManager/GradientPreview/GradientPreview.js";import"../GradientManager/GradientSelect.scss.js";import"../GradientManager/GradientManager.styles.js";import"../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"../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 W from"../OffsetWellChips/Chip.js";import"../OffsetWellChips/ChipsContainer.js";import"../OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/OffsetWellPickerV5WithStore.js";import"../OffsetWellMap/OffsetWellMap.js";import"@material-ui/core/Snackbar";import"../Notifications/Toast.js";import"../Notifications/Notifications.scss.js";import"../TextLink/index.js";import"../Avatar/index.js";import"../Template/TemplatePopover/index.js";import"../Template/TemplateSharingDialog/index.js";import"../MenuItem/index.js";import"../MiddleTruncate/MiddleTruncate.js";import"../PinnableFilters/PinnableFilters.js";import"../HeaderLayout/HeaderLayout.js";import"./PadOffsetsPicker.js";import"./OffsetAssetChip.js";import"./OffsetAssetsListExpander.js";import"../PadOffsetsPickerV2/PadOffsetsPickerV2.js";import"../Table/TableToolbar/TableToolbar.js";import"../Table/TableContainer/TableContainer.js";import"../Table/TableCell/TableCell.js";import"../Table/TablePagination/TablePagination.js";import"../Table/TablePaginationActions/TablePaginationActions.js";import"../Tooltip/ScrollableTooltip.js";import"../PriceInput/PriceInput.js";import"../LabelsCounter/LabelsCounter.js";import"../Stepper/Stepper.js";import"../Stepper/Step/Step.js";import"../Stepper/StepsWrapper.js";import"../Comment/CommentIcon/index.js";import"../FilesLoader/FilesLoader.js";import"../../componentsV2/FileIcon/icons/ArchiveFileIcon.js";import"../../componentsV2/FileIcon/icons/CSVFileIcon.js";import"../../componentsV2/FileIcon/icons/DocFileIcon.js";import"../../componentsV2/FileIcon/icons/EDMFileIcon.js";import"../../componentsV2/FileIcon/icons/ExcelFileIcon.js";import"../../componentsV2/FileIcon/icons/ImageFileIcon.js";import"../../componentsV2/FileIcon/icons/JsonFileIcon.js";import"../../componentsV2/FileIcon/icons/LasFileIcon.js";import"../../componentsV2/FileIcon/icons/OtherFileIcon.js";import"../../componentsV2/FileIcon/icons/PdfFileIcon.js";import"../../componentsV2/FileIcon/icons/PowerPointFileIcon.js";import"../../componentsV2/FileIcon/icons/TxtFileIcon.js";import"../../componentsV2/FileIcon/icons/UnknownFileIcon.js";import"../../componentsV2/FileIcon/icons/VideoFileIcon.js";import"../../componentsV2/FileIcon/icons/XmlFileIcon.js";import"../SearchInput/index.js";import"../FeedItem/FeedItem.js";import"../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../PostInput/PostInput.js";import"../KeyboardDateTimePicker.js";import"../AddComment/Popover.js";import"../AddComment/Popup.js";import"../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../StageDesignVActual/ComparisonHeader.js";import"../StageDesignVActual/ComparisonRow.js";import"../EmbeddedApp/DevCenterEmbeddedApp.js";import"../EmbeddedApp/EmbeddedApp.js";import"../Autocomplete/Autocomplete.js";import"../DocumentViewer/DocumentViewer.js";import"../ColorPickerPalette/ColorPickerPalette.js";import"../Search/Search.js";import"../Search/components/Listbox.js";import"../Search/components/Paper.js";import"../Search/components/RecentSearches.js";import"../Search/components/Groups.js";import"../Search/components/SelectAllListItem.js";import"../StatusBadge/index.js";import"../Attachment/index.js";import"../EmojiIconButton.js";import"../FileUploadIconButton.js";import"../FilePreview/index.js";import"../FailedFileUploading.js";import"../UserMention/index.js";import"../CommentsInfo/index.js";import"../CommentInput/index.js";import"../Comment/index.js";import"../CommentLoader.js";import"../AssetNameLabel/AssetStatusBadge.js";import"../AssetEditorV2/components/PrimaryAssetSelect.js";import"../AssetEditorV2/components/SecondaryAssetSelect.js";import"../AssetEditorV2/components/SelectItem.js";import"../AssetEditorV2/components/MultipleAssetsToggle.js";import"../AssetEditorV2/components/PrimaryAssetSelectV2.js";import"../EChartsWrapper/EChartsWrapper.js";import"../AssetsMultipleSelector/AssetsMultipleSelector.js";import"@material-ui/icons/Close";import"@material-ui/icons/GetApp";import"../GoogleDocsViewer/index.js";import"../NewDocumentViewer/effects/useFileContent.js";import"../NewDocumentViewer/styles.js";import"../FilesLoaderV2/styles.js";import"../FilesDropzone/styles.js";import"../FilesProcessor/styles.js";import"../Hint/styles.js";import"@babel/runtime/helpers/taggedTemplateLiteral";import"fparser";import"../Formula/useFormulaStyles.js";import"../Formula/RootXIcon.js";import"../Formula/FormulaTextEditor.js";import"../Formula/CloseSuggestion.js";import"../Formula/SuggestionsMenu.js";import"../CommentCard/CommentCard.js";import"@material-ui/icons/AlternateEmail";import"../AttachFileButton/AttachFileButton.scss.js";import"../CommentInputNext/CommentInputNext.js";import"../UserMention/utils/index.js";import"react-s3-uploader/s3upload";import"../CommentComposer/CommentMetaLine.scss.js";import"../CommentComposer/ChatChannelSelector.scss.js";import"../CommentComposer/ShareToChatRow.scss.js";import"../CommentComposer/CommentComposer.scss.js";import"../AttachmentPreview/AttachmentPreview.js";import"../AttachmentPreview/AttachmentImage.js";import"../AttachmentPreview/AttachmentPreview.scss.js";import"../CommentPin/CommentPin.js";import"../FeedCard/FeedCard.js";import"../FeedItemCard/FeedItemCard.js";import"../NewCommentCursor/NewCommentCursor.js";import"../LinkedText/LinkedText.js";import"../FeedItem/feedItemTypes/AlertFeedItem.js";import"../FeedItem/feedItemTypes/PostFeedItem.js";import"../FeedItem/feedItemTypes/GeosteeringFeedItem.js";import"../FeedItem/feedItemTypes/DrillingOperationalNoteFeedItem.js";import"../FeedItem/feedItemTypes/DrillingOperationSummaryFeedItem.js";import"../FeedItem/feedItemTypes/DrillingDailyCostFeedItem.js";import"../FeedItem/feedItemTypes/DocumentFeedItem.js";import"../FeedItem/feedItemTypes/DrillerMemoFeedItem.js";import"../FeedItem/feedItemTypes/NptFeedItem.js";import"../FeedItem/feedItemTypes/SurveyStationFeedItem/index.js";import"../FeedItem/feedItemTypes/LessonsLearnedFeedItem/index.js";import"../FeedItem/feedItemTypes/TracesMemoFeedItem.js";import"../FeedItem/feedItemTypes/DepthCommentFeedItem.js";import"../FeedItem/feedItemTypes/CompletionOperationalNoteFeedItem.js";import"../FeedItem/feedItemTypes/CompletionOperationSummaryFeedItem.js";import"../FeedItem/feedItemTypes/CompletionDailyCostFeedItem.js";import"../FeedItem/feedItemTypes/CompletionDocumentFeedItem.js";import"../FeedItem/feedItemTypes/CompletionNptFeedItem.js";import"../FeedItem/feedItemTypes/StageOverviewFeedItem/index.js";import"../FeedItem/feedItemTypes/AppAnnotationFeedItem/index.js";import"../FeedItem/feedItemTypes/WellPlanFeedItem/index.js";import"../FeedItem/feedItemTypes/FluidReportFeedItem.js";import"../FeedItem/feedItemTypes/BhaFeedItem/BhaFeedItem.js";import"../FeedItem/feedItemTypes/DvDCommentFeedItem.js";import"../FeedItem/feedItemTypes/PCCommentFeedItem.js";import"../FeedItem/feedItemTypes/HookloadCommentFeedItem.js";import"../FeedItem/feedItemTypes/NptLessonsCommentFeedItem.js";import"../FeedItem/feedItemTypes/GenericDataCommentFeedItem.js";function N(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 R(e){for(var o=1;o<arguments.length;o++){var s=null!=arguments[o]?arguments[o]:{};o%2?N(Object(s),!0).forEach((function(o){t(e,o,s[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):N(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}var G,q=A({dialogPaper:{width:"75%",maxWidth:420}}),_=(G=o(s.mark((function e(t,o){var n,i;return s.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,O("corva","completion.wits",t,{limit:1,sort:"{timestamp:-1}"});case 3:n=e.sent,i=l(n)?null:d(j(n),"stage_number",null),o({type:"SUCCESS",lastStageNumber:i}),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),o({type:"FAILURE",error:e.t0.message});case 11:case"end":return e.stop()}}),e,null,[[0,8]])}))),function(e,t){return G.apply(this,arguments)}),U=function(e,t){switch(t.type){case"FETCH_STAGES":return R(R({},e),{},{requestState:"pending"});case"SUCCESS":return R(R({},e),{},{requestState:"success",lastStageNumber:t.lastStageNumber});case"FAILURE":return R(R({},e),{},{requestState:"failure",error:t.error});default:return e}},z=function(e,o){switch(o.type){case"OPEN_DIALOG":return R(R({},e),{},{dialogState:"open"});case"CLOSE_DIALOG":return R(R({},e),{},{dialogState:"closed"});case"SET_SELECTED_STAGES":return R(R({},e),{},{selectedStages:o.selectedStages,stagesData:o.selectedStages.reduce((function(e,o){return R(R({},e),{},t({},o,{lineStyle:"dotted",lineWidth:2}))}),{})});case"SET_SELECTED_LINE_STYLE":return R(R({},e),{},{stagesData:R(R({},e.stagesData),{},t({},o.stage,R(R({},e.stagesData[o.stage]),{},{lineStyle:o.selectedLineStyle})))});case"SET_SELECTED_LINE_WIDTH":return R(R({},e),{},{stagesData:R(R({},e.stagesData),{},t({},o.stage,R(R({},e.stagesData[o.stage]),{},{lineWidth:Number(o.selectedLineWidth)})))});default:return e}},K=function(t){var o=t.onSave,s=t.onDelete,r=t.offset,p=q(),m=n(U,{requestState:"idle",lastStageNumber:null,error:null}),c=e(m,2),a=c[0],l=c[1],j=n(z,{dialogState:"closed",selectedStages:r.selectedStages||[],stagesData:r.stages||{}}),A=e(j,2),O=A[0],N=A[1],G=function(e){return function(t){N({type:"SET_SELECTED_LINE_STYLE",stage:e,selectedLineStyle:t.target.value})}},K=function(e){return function(t){N({type:"SET_SELECTED_LINE_WIDTH",stage:e,selectedLineWidth:t.target.value})}},X=function(){N({type:"CLOSE_DIALOG"})},Y=r.selectedWellId;i((function(){l({type:"FETCH_STAGES"}),_(Y,l)}),[Y]);var J=u(a.lastStageNumber);return w(H,{children:[M(W,{title:r.selectedWellName,onClick:J?C:function(){N({type:"OPEN_DIALOG"})},onRemoveOffsetWell:s,wellId:Y,rigName:""}),"success"===a.requestState&&w(S,{open:"open"===O.dialogState,onBackdropClick:X,classes:{paper:p.dialogPaper},children:[M(g,{children:"Offset Well Stages"}),M(V,{children:w(h,{container:!0,direction:"column",spacing:2,children:[M(h,{item:!0,children:w(T,{margin:"normal",fullWidth:!0,required:!0,children:[M(v,{htmlFor:"stages-multi-select",children:"Stages"}),M(D,{inputProps:{name:"stages",id:"stages-multi-select"},value:O.selectedStages,renderValue:function(e){return"".concat(e.length," stages selected")},onChange:function(e){N({type:"SET_SELECTED_STAGES",selectedStages:e.target.value})},multiple:!0,children:I(1,a.lastStageNumber+1).map((function(e){return w(F,{value:e,children:[M(f,{checked:O.selectedStages.includes(e)}),M(P,{primary:e})]},e)}))})]})}),O.selectedStages.sort((function(e,t){return e-t})).map((function(e){return w(h,{item:!0,children:[w(b,{variant:"subtitle1",children:["Stage ",e]}),w(T,{component:"fieldset",children:[M(y,{component:"legend",required:!0,children:"Line Style"}),w(x,{name:"line-style",value:d(O.stagesData,[e,"lineStyle"],"dotted"),onChange:G(e),row:!0,children:[M(E,{value:"dotted",control:M(L,{}),label:"Dotted"}),M(E,{value:"dashed",control:M(L,{}),label:"Dashed"}),M(E,{value:"solid",control:M(L,{}),label:"Solid"})]})]}),w(T,{component:"fieldset",children:[M(y,{component:"legend",required:!0,children:"Line Width"}),w(x,{name:"line-width",value:String(d(O.stagesData,[e,"lineWidth"],"2")),onChange:K(e),row:!0,children:[M(E,{value:String(1),control:M(L,{}),label:"Thin"}),M(E,{value:String(2),control:M(L,{}),label:"Normal"}),M(E,{value:String(4),control:M(L,{}),label:"Thick"})]})]})]},e)}))]})}),w(B,{children:[M(k,{onClick:X,children:"Cancel"}),M(k,{variant:"contained",color:"primary",onClick:function(){var e=R(R({},r),{},{stages:O.stagesData,selectedStages:O.selectedStages});X(),o(e)},children:"Save"})]})]})]})};K.propTypes={onSave:r.isRequired,onDelete:r.isRequired,offset:p({selectedWellId:m,selectedWellName:c,selectedWellStatus:a(["active","idle","complete","paused","unknown"])}).isRequired};export{K as default};
|
|
1
|
+
import e from"@babel/runtime/helpers/slicedToArray";import t from"@babel/runtime/helpers/defineProperty";import o from"@babel/runtime/helpers/asyncToGenerator";import s from"@babel/runtime/regenerator";import{useReducer as i,useEffect as n}from"react";import{func as r,shape as p,number as m,string as c,oneOf as a}from"prop-types";import{isEmpty as l,get as d,last as j,isNull as u,noop as C,range as I}from"lodash";import{makeStyles as A,Dialog as S,DialogTitle as g,DialogContent as V,Grid as h,FormControl as T,InputLabel as v,Select as D,MenuItem as F,Checkbox as f,ListItemText as b,Typography as P,FormLabel as x,RadioGroup as y,FormControlLabel as E,Radio as L,DialogActions as B,Button as k}from"@material-ui/core";import{getAppStorage as O}from"../../clients/jsonApi/index.js";import"../DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"@babel/runtime/helpers/objectWithoutProperties";import"classnames";import"../Modal/CorvaModal.scss.js";import"@icon-park/react/es/all";import{jsxs as w,Fragment as H,jsx as M}from"react/jsx-runtime";import"../../icons/IconParkProvider.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/DragOne.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/InfoRounded.js";import"../../icons/customIcons/icons/FlameFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import"../../icons/customIcons/icons/GuidedFrac.js";import"../../utils/mobileDetect.js";import"../IconButton/index.js";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/appPackages.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import"../../constants/corvaCompanyId.js";import"../GradientManager/configuration/constants.js";import"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"../DevCenter/AppContext.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react-router-dom";import"query-string";import"../../utils/index.js";import"@material-ui/icons";import"../EmptyState/EmptyState.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/styles.js";import"@material-ui/pickers";import"@date-io/moment";import"moment";import"../../config/theme/index.js";import"../../hocs/withAssetEditorLockHOC.js";import"../ErrorBoundary/ErrorBoundary.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../Button/components/Button/index.js";import"moment-timezone";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import"../AssetEditorV2/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import"../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../ConfirmationDialog.js";import"immutable";import"../../permissions/PermissionsContext.js";import"../../permissions/constants/index.js";import"../../permissions/withPermissionsHOC.js";import"../../permissions/ProvidePermissions.js";import"../../componentsV2/AppHeader/V3/VersionSelect/VersionSelect.constants.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../Annotations/AnnotationsContext.js";import"../../componentsV2/AppContainer/AppContainer.js";import"../../componentsV2/AppContainer/AppContainer.constants.js";import"../../componentsV2/Text/Text.js";import"../../componentsV2/Header/Header.scss.js";import"../../componentsV2/Tooltip/Tooltip.scss.js";import"../../componentsV2/TextEndTruncated/TextEndTruncated.scss.js";import"../../componentsV2/AppCommonsProvider/AppCommonsContext.js";import"../../componentsV2/AppHeader/AppHeader.constants.js";import"../../componentsV2/AppHeader/AppBadge/AppBadge.scss.js";import"../../componentsV2/Chip/Chip.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.constants.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.scss.js";import"../../componentsV2/AppHeader/AppAssets/utils.js";import"../../componentsV2/AppHeader/AppAssets/AppAssets.scss.js";import"../PadModeSelect/PadModeSelect.js";import"../../componentsV2/AppHeader/PadMode/PadMode.scss.js";import"../../constants/streamSourceType.js";import"../../componentsV2/PadModeSelect/PadModeSelect.js";import"../../componentsV2/PadModeSelect/PadModeSelect.constants.js";import"../../componentsV2/AppCommonsProvider/AppCommonsProvider.js";import"../../componentsV2/utils.js";import"../../componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js";import"../../componentsV2/UniversalLink/UniversalLink.scss.js";import"../../componentsV2/AppHeader/V3/AssetChips/AssetChips.scss.js";import"../../componentsV2/Button/Button.js";import"../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js";import"../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.constants.js";import"../../componentsV2/Popover/Popover.js";import"@babel/runtime/helpers/toConsumableArray";import"../../componentsV2/Accordion/Accordion.scss.js";import"../../componentsV2/ButtonIcon/ButtonIcon.js";import"../../componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js";import"../../componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.scss.js";import"../../componentsV2/AppDqPopover/DqAlert/DqAlert.scss.js";import"../../componentsV2/AppDqPopover/DqAsset/DqAsset.scss.js";import"../../componentsV2/AppDqPopover/AppDqPopover.scss.js";import"../../componentsV2/Menu/Menu.js";import"../../componentsV2/ModalWindow/ModalWindow.js";import"../../componentsV2/Modal/Modal.scss.js";import"../../componentsV2/LoaderLogo/LoaderLogo.constants.js";import"../../componentsV2/LoaderLogo/LoaderLogo.scss.js";import"../../utils/getSingleAsset.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js";import"../../componentsV2/TextInput/TextInput.js";import"../../componentsV2/AppHeader/V3/AssetSelector/constants.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorSelect.scss.js";import"../../componentsV2/ChipIndicator/ChipIndicator.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/loadAssets.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelector.scss.js";import"../../clients/subscriptions/constants.js";import"querystring";import"uuid/v1";import"../../clients/subscriptions.v1.js";import"../../clients/subscriptions/subscriptions-client.factory.js";import"jsona";import"../../utils/env.js";import"../StatusBadge/constants.js";import"lodash/set";import"lodash/get";import"lodash/unset";import"../../clients/api/apiCore.js";import"../../clients/constants.js";import"../../clients/sso/auth0.js";import"../../clients/sso/oauth2.js";import"../../clients/api/rateLimiter.js";import"lodash/isEmpty";import"lodash/sortBy";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../../componentsV2/AppSettings/AppSettingsPinningContext.js";import"../../componentsV2/AppHeader/V3/AppTitle/AppTitle.constants.js";import"../../componentsV2/AppHeader/V3/AppTitle/AppTitle.scss.js";import"../../componentsV2/AppHeader/V3/constants.scss.js";import"@babel/runtime/helpers/typeof";import"../../componentsV2/AppHeader/V3/SettingsButton/SettingsButton.js";import"../../componentsV2/AppHeader/V3/SettingsButton/SettingsButton.constants.js";import"../../componentsV2/AppSettings/AppSettings.js";import"../../componentsV2/AppSettings/AppSettings.constants.js";import"../../componentsV2/AppSizeProvider/AppSizeProvider.js";import"../../componentsV2/AppHeader/V3/Actions/Actions.constants.js";import"../../componentsV2/AppHeader/V3/Actions/Actions.scss.js";import"../../componentsV2/AppHeader/V3/AppHeaderV3.scss.js";import"../../componentsV2/AppHeader/AppHeader.scss.js";import"../../componentsV2/EmptyState/EmptyState.scss.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.scss.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.scss.js";import"../../componentsV2/Grid/Grid.js";import"../../componentsV2/Grid/Cell.js";import"../../componentsV2/PopoverPanel/PopoverPanel.js";import"../../componentsV2/Radio/Radio.js";import"../../componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js";import"../../componentsV2/Checkbox/Checkbox.js";import"../../componentsV2/TextInputNext/TextInputNext.js";import"../../componentsV2/TextArea/TextArea.js";import"../../componentsV2/Label/Label.js";import"../../componentsV2/TextLink/TextLink.js";import"../../componentsV2/ChipAlert/ChipAlert.js";import"../../componentsV2/Avatar/Avatar.js";import"../../componentsV2/AvatarGroup/AvatarGroup.js";import"@material-ui/lab";import"../../componentsV2/ToggleButtons/ToggleButtons.scss.js";import"../../componentsV2/Paper/Paper.js";import"../../componentsV2/Hint/Hint.scss.js";import"../../componentsV2/Counter/Counter.js";import"../../componentsV2/BadgeBase/BadgeBase.scss.js";import"../../componentsV2/TemplatesControl/TemplatesControl.js";import"zustand";import"../../componentsV2/TemplatesControl/utils.js";import"../../componentsV2/TemplatesControl/icons/folder/index.js";import"../../componentsV2/TemplatesControl/Store/utils.js";import"../../componentsV2/TemplatesControl/types.js";import"../../componentsV2/BadgeDot/BadgeDot.scss.js";import"../../componentsV2/LoaderLinear/LoaderLinear.scss.js";import"../../componentsV2/Switch/Switch.js";import"../../componentsV2/Tabs/Tabs.js";import"../../componentsV2/FileIcon/FileIcon.js";import"../../componentsV2/Tag/Tag.js";import"react-dropzone";import"../../componentsV2/FilesDropzone/FilesDropzone.scss.js";import"../../componentsV2/FilesLoader/FilesLoader.scss.js";import"file-extension";import"image-extensions";import"video-extensions";import"../../componentsV2/FilesProcessor/FilesProcessor.scss.js";import"../../componentsV2/Skeleton/Skeleton.scss.js";import"../../utils/main.js";import"../../componentsV2/CopyToClipboard/CopyToClipboard.scss.js";import"../../componentsV2/Stepper/Step/Step.scss.js";import"../../componentsV2/Stepper/Stepper.scss.js";import"../../componentsV2/ButtonLive/ButtonLive.js";import"../../componentsV2/ButtonText/ButtonText.js";import"../../componentsV2/IndicatorLive/IndicatorLive.js";import"../../componentsV2/Breadcrumbs/Breadcrumbs.scss.js";import"../../componentsV2/BadgeComment/BadgeComment.js";import"../../componentsV2/AppFooter/AppFooter.js";import"../../componentsV2/OffsetWellsButton/OffsetWellsButton.js";import"../../componentsV2/ChartAxisExtreme/ChartAxisExtreme.scss.js";import"highcharts";import"../../componentsV2/ChartAxisExtreme/ChartAxisExtremeDragTracker.js";import"../../componentsV2/Autocomplete/Autocomplete.js";import"../../componentsV2/Select/Select.js";import"../../componentsV2/AppSettingsDivider/AppSettingsDivider.scss.js";import"../../componentsV2/WellArchivedMessage/WellArchivedMessage.js";import"../../componentsV2/DatePicker/DatePicker.js";import"../../componentsV2/DragHandle/DragHandle.js";import"../../componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js";import"../../componentsV2/Slider/constants.js";import"../../componentsV2/Slider/components/SliderThumb.js";import"../../componentsV2/Slider/Slider.scss.js";import"../../componentsV2/SliderAdvanced/SliderAdvanced.js";import"react-color";import"../../componentsV2/ColorPicker/Swatches/Swatches.scss.js";import"../../componentsV2/ColorPicker/OpacityDragtracker/OpacityDragTracker.scss.js";import"../../componentsV2/ColorPicker/ColorPicker.scss.js";import"../../componentsV2/ChartHelper/ChartHelper.scss.js";import"../../componentsV2/Hotkey/Hotkey.js";import"@tanstack/react-query";import"../../componentsV2/InterventionEventSelector/useInterventionUnitEvents.js";import"../../componentsV2/InterventionEventSelector/InterventionEventSelector.scss.js";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.css.js";import"../Icons/AnnotationIcon.js";import"../HelpCenter/HelpCenterIcon.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/RestoreAppSizeButton.css.js";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.scss.js";import"../Toaster/Toaster.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../AssetEditor/index.js";import"../LoadingIndicator/LoadingIndicator.js";import"../Typography.js";import"../RealTimeValuesSidebar/RealTimeSidebar.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../SlateFormattedText/SlateFormattedText.js";import"../SlateFormattedText/RenderElements.js";import"slate";import"../ParameterCharts/ParameterCharts.js";import"../ParameterCharts/AddEditTrack.js";import"../ChartActionsList/ChartActionsList.js";import"../CopyToClipboard/CopyToClipboard.js";import"../AssetEditor/AssetEditorAutocomplete.js";import"../AssetEditor/SingleAssetEditor.js";import"../SettingEditors/ColorEditor/style.css.js";import"../SettingEditors/DropdownEditor/index.js";import"../SwitchControl/index.js";import"../ColorPicker/ColorPicker.js";import"../Chart/components/ChartButton.js";import"../Chart/components/ChartButtons.js";import"../Chart/components/ChartWrapper.js";import"../Chart/components/AxisDropdown.js";import"../Chart/components/ChartSelect.js";import"../Chart/ChartWrapperContext.js";import"../Chart/effects/useChartModifier.js";import"../Chart/components/buttons/HideAxesButton.js";import"../Chart/components/buttons/ChartTypeButton.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../TruncatedText/index.js";import"../MiddleTruncatedText/MiddleTruncatedText.js";import"../RangeSlider/constants.js";import"../RangeSlider/Input.css.js";import"../RangeSlider/RangeSlider.css.js";import"../AdvancedSlider/AdvancedSlider.js";import"../Breadcrumbs/index.js";import"../VirtualizedTable/index.js";import"../EmptyView/EmptyView.js";import"../EmptyView/EmptyAppView/EmptyAppView.js";import"../ContextMenuItem/index.js";import"../FolderMenuItem/index.js";import"../EditableItem/EditableItem/index.js";import"../EditableItem/EditableItemWithBadge/index.js";import"../Checkbox/index.js";import"../FolderMenuItemWithLinks/index.js";import"../TextField/index.js";import"../Chip/index.js";import"../Counter/index.js";import"../AnchorsList/AnchorsList.js";import"../Select/index.js";import"../Select/SelectFilterBy.js";import"../CustomSelect/index.js";import"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../ResizableTable/ResizableTable.js";import"../GradientPicker/GradientPicker.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"../GradientManager/GradientPreview/GradientPreview.js";import"../GradientManager/GradientSelect.scss.js";import"../GradientManager/GradientManager.styles.js";import"../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"../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 W from"../OffsetWellChips/Chip.js";import"../OffsetWellChips/ChipsContainer.js";import"../OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/OffsetWellPickerV5WithStore.js";import"mapbox-gl/dist/mapbox-gl.css";import"@material-ui/icons/Info";import"@material-ui/icons/Block";import"../OffsetWellMap/WellTooltip.module.css.js";import"../OffsetWellMap/OffsetWellMap.module.css.js";import"../../config/mapboxGl/index.js";import"../../config/mapbox/index.js";import"react-dom";import"@material-ui/core/Snackbar";import"../Notifications/Toast.js";import"../Notifications/Notifications.scss.js";import"../TextLink/index.js";import"../Avatar/index.js";import"../Template/TemplatePopover/index.js";import"../Template/TemplateSharingDialog/index.js";import"../MenuItem/index.js";import"../MiddleTruncate/MiddleTruncate.js";import"../PinnableFilters/PinnableFilters.js";import"../HeaderLayout/HeaderLayout.js";import"./PadOffsetsPicker.js";import"./OffsetAssetChip.js";import"./OffsetAssetsListExpander.js";import"../PadOffsetsPickerV2/PadOffsetsPickerV2.js";import"../Table/TableToolbar/TableToolbar.js";import"../Table/TableContainer/TableContainer.js";import"../Table/TableCell/TableCell.js";import"../Table/TablePagination/TablePagination.js";import"../Table/TablePaginationActions/TablePaginationActions.js";import"../Tooltip/ScrollableTooltip.js";import"../PriceInput/PriceInput.js";import"../LabelsCounter/LabelsCounter.js";import"../Stepper/Stepper.js";import"../Stepper/Step/Step.js";import"../Stepper/StepsWrapper.js";import"../Comment/CommentIcon/index.js";import"../FilesLoader/FilesLoader.js";import"../../componentsV2/FileIcon/icons/ArchiveFileIcon.js";import"../../componentsV2/FileIcon/icons/CSVFileIcon.js";import"../../componentsV2/FileIcon/icons/DocFileIcon.js";import"../../componentsV2/FileIcon/icons/EDMFileIcon.js";import"../../componentsV2/FileIcon/icons/ExcelFileIcon.js";import"../../componentsV2/FileIcon/icons/ImageFileIcon.js";import"../../componentsV2/FileIcon/icons/JsonFileIcon.js";import"../../componentsV2/FileIcon/icons/LasFileIcon.js";import"../../componentsV2/FileIcon/icons/OtherFileIcon.js";import"../../componentsV2/FileIcon/icons/PdfFileIcon.js";import"../../componentsV2/FileIcon/icons/PowerPointFileIcon.js";import"../../componentsV2/FileIcon/icons/TxtFileIcon.js";import"../../componentsV2/FileIcon/icons/UnknownFileIcon.js";import"../../componentsV2/FileIcon/icons/VideoFileIcon.js";import"../../componentsV2/FileIcon/icons/XmlFileIcon.js";import"../SearchInput/index.js";import"../FeedItem/FeedItem.js";import"../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../PostInput/PostInput.js";import"../KeyboardDateTimePicker.js";import"../AddComment/Popover.js";import"../AddComment/Popup.js";import"../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../StageDesignVActual/ComparisonHeader.js";import"../StageDesignVActual/ComparisonRow.js";import"../EmbeddedApp/DevCenterEmbeddedApp.js";import"../EmbeddedApp/EmbeddedApp.js";import"../Autocomplete/Autocomplete.js";import"../DocumentViewer/DocumentViewer.js";import"../ColorPickerPalette/ColorPickerPalette.js";import"../Search/Search.js";import"../Search/components/Listbox.js";import"../Search/components/Paper.js";import"../Search/components/RecentSearches.js";import"../Search/components/Groups.js";import"../Search/components/SelectAllListItem.js";import"../StatusBadge/index.js";import"../Attachment/index.js";import"../EmojiIconButton.js";import"../FileUploadIconButton.js";import"../FilePreview/index.js";import"../FailedFileUploading.js";import"../UserMention/index.js";import"../CommentsInfo/index.js";import"../CommentInput/index.js";import"../Comment/index.js";import"../CommentLoader.js";import"../AssetNameLabel/AssetStatusBadge.js";import"../AssetEditorV2/components/PrimaryAssetSelect.js";import"../AssetEditorV2/components/SecondaryAssetSelect.js";import"../AssetEditorV2/components/SelectItem.js";import"../AssetEditorV2/components/MultipleAssetsToggle.js";import"../AssetEditorV2/components/PrimaryAssetSelectV2.js";import"../EChartsWrapper/EChartsWrapper.js";import"../AssetsMultipleSelector/AssetsMultipleSelector.js";import"@material-ui/icons/Close";import"@material-ui/icons/GetApp";import"../GoogleDocsViewer/index.js";import"../NewDocumentViewer/effects/useFileContent.js";import"../NewDocumentViewer/styles.js";import"../FilesLoaderV2/styles.js";import"../FilesDropzone/styles.js";import"../FilesProcessor/styles.js";import"../Hint/styles.js";import"@babel/runtime/helpers/taggedTemplateLiteral";import"fparser";import"../Formula/useFormulaStyles.js";import"../Formula/RootXIcon.js";import"../Formula/FormulaTextEditor.js";import"../Formula/CloseSuggestion.js";import"../Formula/SuggestionsMenu.js";import"../CommentCard/CommentCard.js";import"@material-ui/icons/AlternateEmail";import"../AttachFileButton/AttachFileButton.scss.js";import"../CommentInputNext/CommentInputNext.js";import"../UserMention/utils/index.js";import"react-s3-uploader/s3upload";import"../CommentComposer/CommentMetaLine.scss.js";import"../CommentComposer/ChatChannelSelector.scss.js";import"../CommentComposer/ShareToChatRow.scss.js";import"../CommentComposer/CommentComposer.scss.js";import"../AttachmentPreview/AttachmentPreview.js";import"../AttachmentPreview/AttachmentImage.js";import"../AttachmentPreview/AttachmentPreview.scss.js";import"../CommentPin/CommentPin.js";import"../FeedCard/FeedCard.js";import"../FeedItemCard/FeedItemCard.js";import"../NewCommentCursor/NewCommentCursor.js";import"../LinkedText/LinkedText.js";import"../FeedItem/feedItemTypes/AlertFeedItem.js";import"../FeedItem/feedItemTypes/PostFeedItem.js";import"../FeedItem/feedItemTypes/GeosteeringFeedItem.js";import"../FeedItem/feedItemTypes/DrillingOperationalNoteFeedItem.js";import"../FeedItem/feedItemTypes/DrillingOperationSummaryFeedItem.js";import"../FeedItem/feedItemTypes/DrillingDailyCostFeedItem.js";import"../FeedItem/feedItemTypes/DocumentFeedItem.js";import"../FeedItem/feedItemTypes/DrillerMemoFeedItem.js";import"../FeedItem/feedItemTypes/NptFeedItem.js";import"../FeedItem/feedItemTypes/SurveyStationFeedItem/index.js";import"../FeedItem/feedItemTypes/LessonsLearnedFeedItem/index.js";import"../FeedItem/feedItemTypes/TracesMemoFeedItem.js";import"../FeedItem/feedItemTypes/DepthCommentFeedItem.js";import"../FeedItem/feedItemTypes/CompletionOperationalNoteFeedItem.js";import"../FeedItem/feedItemTypes/CompletionOperationSummaryFeedItem.js";import"../FeedItem/feedItemTypes/CompletionDailyCostFeedItem.js";import"../FeedItem/feedItemTypes/CompletionDocumentFeedItem.js";import"../FeedItem/feedItemTypes/CompletionNptFeedItem.js";import"../FeedItem/feedItemTypes/StageOverviewFeedItem/index.js";import"../FeedItem/feedItemTypes/AppAnnotationFeedItem/index.js";import"../FeedItem/feedItemTypes/WellPlanFeedItem/index.js";import"../FeedItem/feedItemTypes/FluidReportFeedItem.js";import"../FeedItem/feedItemTypes/BhaFeedItem/BhaFeedItem.js";import"../FeedItem/feedItemTypes/DvDCommentFeedItem.js";import"../FeedItem/feedItemTypes/PCCommentFeedItem.js";import"../FeedItem/feedItemTypes/HookloadCommentFeedItem.js";import"../FeedItem/feedItemTypes/NptLessonsCommentFeedItem.js";import"../FeedItem/feedItemTypes/GenericDataCommentFeedItem.js";function N(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 G(e){for(var o=1;o<arguments.length;o++){var s=null!=arguments[o]?arguments[o]:{};o%2?N(Object(s),!0).forEach((function(o){t(e,o,s[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):N(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}var R,q=A({dialogPaper:{width:"75%",maxWidth:420}}),_=(R=o(s.mark((function e(t,o){var i,n;return s.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,O("corva","completion.wits",t,{limit:1,sort:"{timestamp:-1}"});case 3:i=e.sent,n=l(i)?null:d(j(i),"stage_number",null),o({type:"SUCCESS",lastStageNumber:n}),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),o({type:"FAILURE",error:e.t0.message});case 11:case"end":return e.stop()}}),e,null,[[0,8]])}))),function(e,t){return R.apply(this,arguments)}),U=function(e,t){switch(t.type){case"FETCH_STAGES":return G(G({},e),{},{requestState:"pending"});case"SUCCESS":return G(G({},e),{},{requestState:"success",lastStageNumber:t.lastStageNumber});case"FAILURE":return G(G({},e),{},{requestState:"failure",error:t.error});default:return e}},z=function(e,o){switch(o.type){case"OPEN_DIALOG":return G(G({},e),{},{dialogState:"open"});case"CLOSE_DIALOG":return G(G({},e),{},{dialogState:"closed"});case"SET_SELECTED_STAGES":return G(G({},e),{},{selectedStages:o.selectedStages,stagesData:o.selectedStages.reduce((function(e,o){return G(G({},e),{},t({},o,{lineStyle:"dotted",lineWidth:2}))}),{})});case"SET_SELECTED_LINE_STYLE":return G(G({},e),{},{stagesData:G(G({},e.stagesData),{},t({},o.stage,G(G({},e.stagesData[o.stage]),{},{lineStyle:o.selectedLineStyle})))});case"SET_SELECTED_LINE_WIDTH":return G(G({},e),{},{stagesData:G(G({},e.stagesData),{},t({},o.stage,G(G({},e.stagesData[o.stage]),{},{lineWidth:Number(o.selectedLineWidth)})))});default:return e}},K=function(t){var o=t.onSave,s=t.onDelete,r=t.offset,p=q(),m=i(U,{requestState:"idle",lastStageNumber:null,error:null}),c=e(m,2),a=c[0],l=c[1],j=i(z,{dialogState:"closed",selectedStages:r.selectedStages||[],stagesData:r.stages||{}}),A=e(j,2),O=A[0],N=A[1],R=function(e){return function(t){N({type:"SET_SELECTED_LINE_STYLE",stage:e,selectedLineStyle:t.target.value})}},K=function(e){return function(t){N({type:"SET_SELECTED_LINE_WIDTH",stage:e,selectedLineWidth:t.target.value})}},X=function(){N({type:"CLOSE_DIALOG"})},Y=r.selectedWellId;n((function(){l({type:"FETCH_STAGES"}),_(Y,l)}),[Y]);var J=u(a.lastStageNumber);return w(H,{children:[M(W,{title:r.selectedWellName,onClick:J?C:function(){N({type:"OPEN_DIALOG"})},onRemoveOffsetWell:s,wellId:Y,rigName:""}),"success"===a.requestState&&w(S,{open:"open"===O.dialogState,onBackdropClick:X,classes:{paper:p.dialogPaper},children:[M(g,{children:"Offset Well Stages"}),M(V,{children:w(h,{container:!0,direction:"column",spacing:2,children:[M(h,{item:!0,children:w(T,{margin:"normal",fullWidth:!0,required:!0,children:[M(v,{htmlFor:"stages-multi-select",children:"Stages"}),M(D,{inputProps:{name:"stages",id:"stages-multi-select"},value:O.selectedStages,renderValue:function(e){return"".concat(e.length," stages selected")},onChange:function(e){N({type:"SET_SELECTED_STAGES",selectedStages:e.target.value})},multiple:!0,children:I(1,a.lastStageNumber+1).map((function(e){return w(F,{value:e,children:[M(f,{checked:O.selectedStages.includes(e)}),M(b,{primary:e})]},e)}))})]})}),O.selectedStages.sort((function(e,t){return e-t})).map((function(e){return w(h,{item:!0,children:[w(P,{variant:"subtitle1",children:["Stage ",e]}),w(T,{component:"fieldset",children:[M(x,{component:"legend",required:!0,children:"Line Style"}),w(y,{name:"line-style",value:d(O.stagesData,[e,"lineStyle"],"dotted"),onChange:R(e),row:!0,children:[M(E,{value:"dotted",control:M(L,{}),label:"Dotted"}),M(E,{value:"dashed",control:M(L,{}),label:"Dashed"}),M(E,{value:"solid",control:M(L,{}),label:"Solid"})]})]}),w(T,{component:"fieldset",children:[M(x,{component:"legend",required:!0,children:"Line Width"}),w(y,{name:"line-width",value:String(d(O.stagesData,[e,"lineWidth"],"2")),onChange:K(e),row:!0,children:[M(E,{value:String(1),control:M(L,{}),label:"Thin"}),M(E,{value:String(2),control:M(L,{}),label:"Normal"}),M(E,{value:String(4),control:M(L,{}),label:"Thick"})]})]})]},e)}))]})}),w(B,{children:[M(k,{onClick:X,children:"Cancel"}),M(k,{variant:"contained",color:"primary",onClick:function(){var e=G(G({},r),{},{stages:O.stagesData,selectedStages:O.selectedStages});X(),o(e)},children:"Save"})]})]})]})};K.propTypes={onSave:r.isRequired,onDelete:r.isRequired,offset:p({selectedWellId:m,selectedWellName:c,selectedWellStatus:a(["active","idle","complete","paused","unknown"])}).isRequired};export{K as default};
|
|
2
2
|
//# sourceMappingURL=StagesSelector.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StagesSelector.js","sources":["../../../src/components/PadOffsetsPicker/StagesSelector.js"],"sourcesContent":["import { useEffect, useReducer } from 'react';\nimport { func, number, oneOf, string, shape } from 'prop-types';\nimport { isNull, get, noop, range, isEmpty, last } from 'lodash';\nimport {\n Button,\n Checkbox,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n FormControl,\n FormControlLabel,\n FormLabel,\n Grid,\n InputLabel,\n ListItemText,\n MenuItem,\n Radio,\n RadioGroup,\n Select,\n Typography,\n makeStyles,\n} from '@material-ui/core';\n\nimport { getAppStorage } from '~/clients/jsonApi';\nimport { OffsetWellChip } from '~/components';\n\nconst useStyles = makeStyles({\n dialogPaper: {\n width: '75%',\n maxWidth: 420,\n },\n});\n\nconst fetchStageAction = async (offsetWellId, dispatch) => {\n try {\n const response = await getAppStorage('corva', 'completion.wits', offsetWellId, {\n limit: 1,\n sort: '{timestamp:-1}',\n });\n const lastStageNumber = isEmpty(response) ? null : get(last(response), 'stage_number', null);\n dispatch({ type: 'SUCCESS', lastStageNumber });\n } catch (error) {\n dispatch({ type: 'FAILURE', error: error.message });\n }\n};\n\nconst stagesStateReducer = (state, action) => {\n switch (action.type) {\n case 'FETCH_STAGES':\n return { ...state, requestState: 'pending' };\n case 'SUCCESS':\n return { ...state, requestState: 'success', lastStageNumber: action.lastStageNumber };\n case 'FAILURE':\n return { ...state, requestState: 'failure', error: action.error };\n default:\n return state;\n }\n};\n\nconst dialogStateReducer = (state, action) => {\n switch (action.type) {\n case 'OPEN_DIALOG':\n return { ...state, dialogState: 'open' };\n case 'CLOSE_DIALOG':\n return { ...state, dialogState: 'closed' };\n case 'SET_SELECTED_STAGES':\n return {\n ...state,\n selectedStages: action.selectedStages,\n stagesData: action.selectedStages.reduce(\n (stages, stage) => ({\n ...stages,\n [stage]: {\n lineStyle: 'dotted',\n lineWidth: 2,\n },\n }),\n {}\n ),\n };\n case 'SET_SELECTED_LINE_STYLE':\n return {\n ...state,\n stagesData: {\n ...state.stagesData,\n [action.stage]: {\n ...state.stagesData[action.stage],\n lineStyle: action.selectedLineStyle,\n },\n },\n };\n case 'SET_SELECTED_LINE_WIDTH':\n return {\n ...state,\n stagesData: {\n ...state.stagesData,\n [action.stage]: {\n ...state.stagesData[action.stage],\n lineWidth: Number(action.selectedLineWidth),\n },\n },\n };\n default:\n return state;\n }\n};\n\nconst StagesSelector = ({ onSave, onDelete, offset }) => {\n const classes = useStyles();\n\n const [requestState, dispatchRequest] = useReducer(stagesStateReducer, {\n requestState: 'idle',\n lastStageNumber: null,\n error: null,\n });\n\n const [dialogState, dispatchDialog] = useReducer(dialogStateReducer, {\n dialogState: 'closed',\n selectedStages: offset.selectedStages || [],\n stagesData: offset.stages || {},\n });\n\n const handleStagesSelect = event => {\n dispatchDialog({ type: 'SET_SELECTED_STAGES', selectedStages: event.target.value });\n };\n\n const handleLineStyleChange = stage => event => {\n dispatchDialog({\n type: 'SET_SELECTED_LINE_STYLE',\n stage,\n selectedLineStyle: event.target.value,\n });\n };\n\n const handleLineWidthChange = stage => event => {\n dispatchDialog({\n type: 'SET_SELECTED_LINE_WIDTH',\n stage,\n selectedLineWidth: event.target.value,\n });\n };\n\n const openDialog = () => {\n dispatchDialog({ type: 'OPEN_DIALOG' });\n };\n\n const closeDialog = () => {\n dispatchDialog({ type: 'CLOSE_DIALOG' });\n };\n\n const offsetWellId = offset.selectedWellId;\n\n const handleSave = () => {\n const updatedOffset = {\n ...offset,\n stages: dialogState.stagesData,\n selectedStages: dialogState.selectedStages,\n };\n\n closeDialog();\n onSave(updatedOffset);\n };\n\n useEffect(() => {\n dispatchRequest({ type: 'FETCH_STAGES' });\n fetchStageAction(offsetWellId, dispatchRequest);\n }, [offsetWellId]);\n\n const isStageDataEmpty = isNull(requestState.lastStageNumber);\n\n return (\n <>\n <OffsetWellChip\n title={offset.selectedWellName}\n onClick={isStageDataEmpty ? noop : openDialog}\n onRemoveOffsetWell={onDelete}\n wellId={offsetWellId}\n rigName=\"\"\n />\n\n {requestState.requestState === 'success' && (\n <Dialog\n open={dialogState.dialogState === 'open'}\n onBackdropClick={closeDialog}\n classes={{ paper: classes.dialogPaper }}\n >\n <DialogTitle>Offset Well Stages</DialogTitle>\n <DialogContent>\n <Grid container direction=\"column\" spacing={2}>\n <Grid item>\n <FormControl margin=\"normal\" fullWidth required>\n <InputLabel htmlFor=\"stages-multi-select\">Stages</InputLabel>\n <Select\n inputProps={{ name: 'stages', id: 'stages-multi-select' }}\n value={dialogState.selectedStages}\n renderValue={selected => `${selected.length} stages selected`}\n onChange={handleStagesSelect}\n multiple\n >\n {range(1, requestState.lastStageNumber + 1).map(stage => (\n <MenuItem key={stage} value={stage}>\n <Checkbox checked={dialogState.selectedStages.includes(stage)} />\n <ListItemText primary={stage} />\n </MenuItem>\n ))}\n </Select>\n </FormControl>\n </Grid>\n {dialogState.selectedStages\n .sort((a, b) => a - b)\n .map(stage => (\n <Grid item key={stage}>\n <Typography variant=\"subtitle1\">Stage {stage}</Typography>\n <FormControl component=\"fieldset\">\n <FormLabel component=\"legend\" required>\n Line Style\n </FormLabel>\n <RadioGroup\n name=\"line-style\"\n value={get(dialogState.stagesData, [stage, 'lineStyle'], 'dotted')}\n onChange={handleLineStyleChange(stage)}\n row\n >\n <FormControlLabel value=\"dotted\" control={<Radio />} label=\"Dotted\" />\n <FormControlLabel value=\"dashed\" control={<Radio />} label=\"Dashed\" />\n <FormControlLabel value=\"solid\" control={<Radio />} label=\"Solid\" />\n </RadioGroup>\n </FormControl>\n <FormControl component=\"fieldset\">\n <FormLabel component=\"legend\" required>\n Line Width\n </FormLabel>\n <RadioGroup\n name=\"line-width\"\n value={String(get(dialogState.stagesData, [stage, 'lineWidth'], '2'))}\n onChange={handleLineWidthChange(stage)}\n row\n >\n <FormControlLabel value={String(1)} control={<Radio />} label=\"Thin\" />\n <FormControlLabel value={String(2)} control={<Radio />} label=\"Normal\" />\n <FormControlLabel value={String(4)} control={<Radio />} label=\"Thick\" />\n </RadioGroup>\n </FormControl>\n </Grid>\n ))}\n </Grid>\n </DialogContent>\n <DialogActions>\n <Button onClick={closeDialog}>Cancel</Button>\n <Button variant=\"contained\" color=\"primary\" onClick={handleSave}>\n Save\n </Button>\n </DialogActions>\n </Dialog>\n )}\n </>\n );\n};\n\nStagesSelector.propTypes = {\n onSave: func.isRequired,\n onDelete: func.isRequired,\n offset: shape({\n selectedWellId: number,\n selectedWellName: string,\n selectedWellStatus: oneOf(['active', 'idle', 'complete', 'paused', 'unknown']),\n }).isRequired,\n};\n\nexport default StagesSelector;\n"],"names":["_ref","useStyles","makeStyles","dialogPaper","width","maxWidth","fetchStageAction","_asyncToGenerator","_regeneratorRuntime","mark","_callee","offsetWellId","dispatch","response","lastStageNumber","wrap","_context","prev","next","getAppStorage","limit","sort","sent","isEmpty","get","last","type","t0","error","message","stop","_x","_x2","apply","this","arguments","stagesStateReducer","state","action","_objectSpread","requestState","dialogStateReducer","dialogState","selectedStages","stagesData","reduce","stages","stage","lineStyle","lineWidth","_defineProperty","selectedLineStyle","Number","selectedLineWidth","StagesSelector","_ref2","onSave","onDelete","offset","classes","useReducer","_useReducer2","_slicedToArray","_useReducer","dispatchRequest","_useReducer4","_useReducer3","dispatchDialog","handleLineStyleChange","event","target","value","handleLineWidthChange","closeDialog","selectedWellId","useEffect","isStageDataEmpty","isNull","_jsxs","_Fragment","children","_jsx","OffsetWellChip","title","selectedWellName","onClick","noop","onRemoveOffsetWell","wellId","rigName","Dialog","open","onBackdropClick","paper","DialogTitle","DialogContent","Grid","container","direction","spacing","item","FormControl","margin","fullWidth","required","InputLabel","htmlFor","Select","inputProps","name","id","renderValue","selected","length","onChange","multiple","range","map","MenuItem","Checkbox","checked","includes","ListItemText","primary","a","b","Typography","variant","component","FormLabel","RadioGroup","row","FormControlLabel","control","Radio","label","String","DialogActions","Button","color","updatedOffset","propTypes","func","isRequired","shape","number","string","selectedWellStatus","oneOf"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"StagesSelector.js","sources":["../../../src/components/PadOffsetsPicker/StagesSelector.js"],"sourcesContent":["import { useEffect, useReducer } from 'react';\nimport { func, number, oneOf, string, shape } from 'prop-types';\nimport { isNull, get, noop, range, isEmpty, last } from 'lodash';\nimport {\n Button,\n Checkbox,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n FormControl,\n FormControlLabel,\n FormLabel,\n Grid,\n InputLabel,\n ListItemText,\n MenuItem,\n Radio,\n RadioGroup,\n Select,\n Typography,\n makeStyles,\n} from '@material-ui/core';\n\nimport { getAppStorage } from '~/clients/jsonApi';\nimport { OffsetWellChip } from '~/components';\n\nconst useStyles = makeStyles({\n dialogPaper: {\n width: '75%',\n maxWidth: 420,\n },\n});\n\nconst fetchStageAction = async (offsetWellId, dispatch) => {\n try {\n const response = await getAppStorage('corva', 'completion.wits', offsetWellId, {\n limit: 1,\n sort: '{timestamp:-1}',\n });\n const lastStageNumber = isEmpty(response) ? null : get(last(response), 'stage_number', null);\n dispatch({ type: 'SUCCESS', lastStageNumber });\n } catch (error) {\n dispatch({ type: 'FAILURE', error: error.message });\n }\n};\n\nconst stagesStateReducer = (state, action) => {\n switch (action.type) {\n case 'FETCH_STAGES':\n return { ...state, requestState: 'pending' };\n case 'SUCCESS':\n return { ...state, requestState: 'success', lastStageNumber: action.lastStageNumber };\n case 'FAILURE':\n return { ...state, requestState: 'failure', error: action.error };\n default:\n return state;\n }\n};\n\nconst dialogStateReducer = (state, action) => {\n switch (action.type) {\n case 'OPEN_DIALOG':\n return { ...state, dialogState: 'open' };\n case 'CLOSE_DIALOG':\n return { ...state, dialogState: 'closed' };\n case 'SET_SELECTED_STAGES':\n return {\n ...state,\n selectedStages: action.selectedStages,\n stagesData: action.selectedStages.reduce(\n (stages, stage) => ({\n ...stages,\n [stage]: {\n lineStyle: 'dotted',\n lineWidth: 2,\n },\n }),\n {}\n ),\n };\n case 'SET_SELECTED_LINE_STYLE':\n return {\n ...state,\n stagesData: {\n ...state.stagesData,\n [action.stage]: {\n ...state.stagesData[action.stage],\n lineStyle: action.selectedLineStyle,\n },\n },\n };\n case 'SET_SELECTED_LINE_WIDTH':\n return {\n ...state,\n stagesData: {\n ...state.stagesData,\n [action.stage]: {\n ...state.stagesData[action.stage],\n lineWidth: Number(action.selectedLineWidth),\n },\n },\n };\n default:\n return state;\n }\n};\n\nconst StagesSelector = ({ onSave, onDelete, offset }) => {\n const classes = useStyles();\n\n const [requestState, dispatchRequest] = useReducer(stagesStateReducer, {\n requestState: 'idle',\n lastStageNumber: null,\n error: null,\n });\n\n const [dialogState, dispatchDialog] = useReducer(dialogStateReducer, {\n dialogState: 'closed',\n selectedStages: offset.selectedStages || [],\n stagesData: offset.stages || {},\n });\n\n const handleStagesSelect = event => {\n dispatchDialog({ type: 'SET_SELECTED_STAGES', selectedStages: event.target.value });\n };\n\n const handleLineStyleChange = stage => event => {\n dispatchDialog({\n type: 'SET_SELECTED_LINE_STYLE',\n stage,\n selectedLineStyle: event.target.value,\n });\n };\n\n const handleLineWidthChange = stage => event => {\n dispatchDialog({\n type: 'SET_SELECTED_LINE_WIDTH',\n stage,\n selectedLineWidth: event.target.value,\n });\n };\n\n const openDialog = () => {\n dispatchDialog({ type: 'OPEN_DIALOG' });\n };\n\n const closeDialog = () => {\n dispatchDialog({ type: 'CLOSE_DIALOG' });\n };\n\n const offsetWellId = offset.selectedWellId;\n\n const handleSave = () => {\n const updatedOffset = {\n ...offset,\n stages: dialogState.stagesData,\n selectedStages: dialogState.selectedStages,\n };\n\n closeDialog();\n onSave(updatedOffset);\n };\n\n useEffect(() => {\n dispatchRequest({ type: 'FETCH_STAGES' });\n fetchStageAction(offsetWellId, dispatchRequest);\n }, [offsetWellId]);\n\n const isStageDataEmpty = isNull(requestState.lastStageNumber);\n\n return (\n <>\n <OffsetWellChip\n title={offset.selectedWellName}\n onClick={isStageDataEmpty ? noop : openDialog}\n onRemoveOffsetWell={onDelete}\n wellId={offsetWellId}\n rigName=\"\"\n />\n\n {requestState.requestState === 'success' && (\n <Dialog\n open={dialogState.dialogState === 'open'}\n onBackdropClick={closeDialog}\n classes={{ paper: classes.dialogPaper }}\n >\n <DialogTitle>Offset Well Stages</DialogTitle>\n <DialogContent>\n <Grid container direction=\"column\" spacing={2}>\n <Grid item>\n <FormControl margin=\"normal\" fullWidth required>\n <InputLabel htmlFor=\"stages-multi-select\">Stages</InputLabel>\n <Select\n inputProps={{ name: 'stages', id: 'stages-multi-select' }}\n value={dialogState.selectedStages}\n renderValue={selected => `${selected.length} stages selected`}\n onChange={handleStagesSelect}\n multiple\n >\n {range(1, requestState.lastStageNumber + 1).map(stage => (\n <MenuItem key={stage} value={stage}>\n <Checkbox checked={dialogState.selectedStages.includes(stage)} />\n <ListItemText primary={stage} />\n </MenuItem>\n ))}\n </Select>\n </FormControl>\n </Grid>\n {dialogState.selectedStages\n .sort((a, b) => a - b)\n .map(stage => (\n <Grid item key={stage}>\n <Typography variant=\"subtitle1\">Stage {stage}</Typography>\n <FormControl component=\"fieldset\">\n <FormLabel component=\"legend\" required>\n Line Style\n </FormLabel>\n <RadioGroup\n name=\"line-style\"\n value={get(dialogState.stagesData, [stage, 'lineStyle'], 'dotted')}\n onChange={handleLineStyleChange(stage)}\n row\n >\n <FormControlLabel value=\"dotted\" control={<Radio />} label=\"Dotted\" />\n <FormControlLabel value=\"dashed\" control={<Radio />} label=\"Dashed\" />\n <FormControlLabel value=\"solid\" control={<Radio />} label=\"Solid\" />\n </RadioGroup>\n </FormControl>\n <FormControl component=\"fieldset\">\n <FormLabel component=\"legend\" required>\n Line Width\n </FormLabel>\n <RadioGroup\n name=\"line-width\"\n value={String(get(dialogState.stagesData, [stage, 'lineWidth'], '2'))}\n onChange={handleLineWidthChange(stage)}\n row\n >\n <FormControlLabel value={String(1)} control={<Radio />} label=\"Thin\" />\n <FormControlLabel value={String(2)} control={<Radio />} label=\"Normal\" />\n <FormControlLabel value={String(4)} control={<Radio />} label=\"Thick\" />\n </RadioGroup>\n </FormControl>\n </Grid>\n ))}\n </Grid>\n </DialogContent>\n <DialogActions>\n <Button onClick={closeDialog}>Cancel</Button>\n <Button variant=\"contained\" color=\"primary\" onClick={handleSave}>\n Save\n </Button>\n </DialogActions>\n </Dialog>\n )}\n </>\n );\n};\n\nStagesSelector.propTypes = {\n onSave: func.isRequired,\n onDelete: func.isRequired,\n offset: shape({\n selectedWellId: number,\n selectedWellName: string,\n selectedWellStatus: oneOf(['active', 'idle', 'complete', 'paused', 'unknown']),\n }).isRequired,\n};\n\nexport default StagesSelector;\n"],"names":["_ref","useStyles","makeStyles","dialogPaper","width","maxWidth","fetchStageAction","_asyncToGenerator","_regeneratorRuntime","mark","_callee","offsetWellId","dispatch","response","lastStageNumber","wrap","_context","prev","next","getAppStorage","limit","sort","sent","isEmpty","get","last","type","t0","error","message","stop","_x","_x2","apply","this","arguments","stagesStateReducer","state","action","_objectSpread","requestState","dialogStateReducer","dialogState","selectedStages","stagesData","reduce","stages","stage","lineStyle","lineWidth","_defineProperty","selectedLineStyle","Number","selectedLineWidth","StagesSelector","_ref2","onSave","onDelete","offset","classes","useReducer","_useReducer2","_slicedToArray","_useReducer","dispatchRequest","_useReducer4","_useReducer3","dispatchDialog","handleLineStyleChange","event","target","value","handleLineWidthChange","closeDialog","selectedWellId","useEffect","isStageDataEmpty","isNull","_jsxs","_Fragment","children","_jsx","OffsetWellChip","title","selectedWellName","onClick","noop","onRemoveOffsetWell","wellId","rigName","Dialog","open","onBackdropClick","paper","DialogTitle","DialogContent","Grid","container","direction","spacing","item","FormControl","margin","fullWidth","required","InputLabel","htmlFor","Select","inputProps","name","id","renderValue","selected","length","onChange","multiple","range","map","MenuItem","Checkbox","checked","includes","ListItemText","primary","a","b","Typography","variant","component","FormLabel","RadioGroup","row","FormControlLabel","control","Radio","label","String","DialogActions","Button","color","updatedOffset","propTypes","func","isRequired","shape","number","string","selectedWellStatus","oneOf"],"mappings":"q53BA2BA,IAOyBA,EAPnBC,EAAYC,EAAW,CAC3BC,YAAa,CACXC,MAAO,MACPC,SAAU,OAIRC,GAAmBN,EAAAO,EAAAC,EAAAC,MAAA,SAAAC,EAAOC,EAAcC,GAAQ,IAAAC,EAAAC,EAAA,OAAAN,EAAAO,MAAA,SAAAC,GAAA,OAAA,OAAAA,EAAAC,KAAAD,EAAAE,MAAA,KAAA,EAAA,OAAAF,EAAAC,KAAA,EAAAD,EAAAE,KAAA,EAE3BC,EAAc,QAAS,kBAAmBR,EAAc,CAC7ES,MAAO,EACPC,KAAM,mBACN,KAAA,EAHIR,EAAQG,EAAAM,KAIRR,EAAkBS,EAAQV,GAAY,KAAOW,EAAIC,EAAKZ,GAAW,eAAgB,MACvFD,EAAS,CAAEc,KAAM,UAAWZ,gBAAAA,IAAmBE,EAAAE,KAAA,GAAA,MAAA,KAAA,EAAAF,EAAAC,KAAA,EAAAD,EAAAW,GAAAX,EAAA,MAAA,GAE/CJ,EAAS,CAAEc,KAAM,UAAWE,MAAOZ,EAAMa,GAAAA,UAAW,KAAA,GAAA,IAAA,MAAA,OAAAb,EAAAc,OAAA,GAAApB,EAAA,KAAA,CAAA,CAAA,EAAA,IAEvD,KAAA,SAXqBqB,EAAAC,GAAA,OAAAhC,EAAAiC,MAAAC,KAAAC,UAAA,GAahBC,EAAqB,SAACC,EAAOC,GACjC,OAAQA,EAAOZ,MACb,IAAK,eACH,OAAAa,EAAAA,EAAA,CAAA,EAAYF,GAAK,CAAA,EAAA,CAAEG,aAAc,YACnC,IAAK,UACH,OAAAD,EAAAA,EAAA,CAAA,EAAYF,GAAK,CAAA,EAAA,CAAEG,aAAc,UAAW1B,gBAAiBwB,EAAOxB,kBACtE,IAAK,UACH,OAAAyB,EAAAA,EAAA,CAAA,EAAYF,GAAK,CAAA,EAAA,CAAEG,aAAc,UAAWZ,MAAOU,EAAOV,QAC5D,QACE,OAAOS,EAEb,EAEMI,EAAqB,SAACJ,EAAOC,GACjC,OAAQA,EAAOZ,MACb,IAAK,cACH,OAAAa,EAAAA,EAAA,CAAA,EAAYF,GAAK,CAAA,EAAA,CAAEK,YAAa,SAClC,IAAK,eACH,OAAAH,EAAAA,EAAA,CAAA,EAAYF,GAAK,CAAA,EAAA,CAAEK,YAAa,WAClC,IAAK,sBACH,OAAAH,EAAAA,EAAA,CAAA,EACKF,GAAK,CAAA,EAAA,CACRM,eAAgBL,EAAOK,eACvBC,WAAYN,EAAOK,eAAeE,QAChC,SAACC,EAAQC,GAAK,OACTD,EAAAA,EAAAA,GAAAA,GACFC,GAAAA,EAAAA,CAAAA,EAAAA,EAAQ,CACPC,UAAW,SACXC,UAAW,IAEb,GACF,MAGN,IAAK,0BACH,OAAAV,EAAAA,EAAA,CAAA,EACKF,GAAK,CAAA,EAAA,CACRO,kBACKP,EAAMO,YAAU,CAAA,EAAAM,EAAA,GAClBZ,EAAOS,MACHV,EAAAA,EAAAA,CAAAA,EAAAA,EAAMO,WAAWN,EAAOS,QAAM,GAAA,CACjCC,UAAWV,EAAOa,wBAI1B,IAAK,0BACH,OAAAZ,EAAAA,EAAA,CAAA,EACKF,GAAK,CAAA,EAAA,CACRO,kBACKP,EAAMO,YAAU,CAAA,EAAAM,EAAA,GAClBZ,EAAOS,MACHV,EAAAA,EAAAA,CAAAA,EAAAA,EAAMO,WAAWN,EAAOS,QAAM,GAAA,CACjCE,UAAWG,OAAOd,EAAOe,yBAIjC,QACE,OAAOhB,EAEb,EAEMiB,EAAiB,SAAkCC,GAAA,IAA/BC,IAAAA,OAAQC,IAAAA,SAAUC,IAAAA,OACpCC,EAAU1D,IAEwB2D,EAAAA,EAAWxB,EAAoB,CACrEI,aAAc,OACd1B,gBAAiB,KACjBc,MAAO,OACPiC,EAAAC,EAAAC,EAAA,GAJKvB,EAAYqB,EAAA,GAAEG,EAAeH,EAAA,GAMED,EAAAA,EAAWnB,EAAoB,CACnEC,YAAa,SACbC,eAAgBe,EAAOf,gBAAkB,GACzCC,WAAYc,EAAOZ,QAAU,CAAC,IAC9BmB,EAAAH,EAAAI,EAAA,GAJKxB,EAAWuB,EAAA,GAAEE,EAAcF,EAAA,GAU5BG,EAAwB,SAAArB,GAAK,OAAI,SAAAsB,GACrCF,EAAe,CACbzC,KAAM,0BACNqB,MAAAA,EACAI,kBAAmBkB,EAAMC,OAAOC,QAEnC,EAEKC,EAAwB,SAAAzB,GAAK,OAAI,SAAAsB,GACrCF,EAAe,CACbzC,KAAM,0BACNqB,MAAAA,EACAM,kBAAmBgB,EAAMC,OAAOC,QAEnC,EAMKE,EAAc,WAClBN,EAAe,CAAEzC,KAAM,kBAGnBf,EAAe+C,EAAOgB,eAa5BC,GAAU,WACRX,EAAgB,CAAEtC,KAAM,iBACxBpB,EAAiBK,EAAcqD,EACjC,GAAG,CAACrD,IAEJ,IAAMiE,EAAmBC,EAAOrC,EAAa1B,iBAE7C,OACEgE,EAAAC,EAAA,CAAAC,SAAA,CACEC,EAACC,EAAc,CACbC,MAAOzB,EAAO0B,iBACdC,QAAST,EAAmBU,EAhCf,WACjBnB,EAAe,CAAEzC,KAAM,iBAgCnB6D,mBAAoB9B,EACpB+B,OAAQ7E,EACR8E,QAAQ,KAGqB,YAA9BjD,EAAaA,cACZsC,EAACY,EAAM,CACLC,KAAkC,SAA5BjD,EAAYA,YAClBkD,gBAAiBnB,EACjBd,QAAS,CAAEkC,MAAOlC,EAAQxD,aAAc6E,SAAA,CAExCC,EAACa,EAAW,CAAAd,SAAA,uBACZC,EAACc,EAAa,CAAAf,SACZF,EAACkB,EAAI,CAACC,WAAS,EAACC,UAAU,SAASC,QAAS,EAAEnB,SAAA,CAC5CC,EAACe,EAAI,CAACI,MAAI,EAAApB,SACRF,EAACuB,EAAW,CAACC,OAAO,SAASC,WAAS,EAACC,UAAQ,EAAAxB,SAAA,CAC7CC,EAACwB,EAAU,CAACC,QAAQ,sBAAqB1B,SAAA,WACzCC,EAAC0B,EAAM,CACLC,WAAY,CAAEC,KAAM,SAAUC,GAAI,uBAClCvC,MAAO7B,EAAYC,eACnBoE,YAAa,SAAAC,GAAQ,MAAOA,GAAAA,OAAAA,EAASC,OAAM,mBAAmB,EAC9DC,SA1ES,SAAA7C,GACzBF,EAAe,CAAEzC,KAAM,sBAAuBiB,eAAgB0B,EAAMC,OAAOC,SA0E3D4C,UAAQ,EAAAnC,SAEPoC,EAAM,EAAG5E,EAAa1B,gBAAkB,GAAGuG,KAAI,SAAAtE,GAAK,OACnD+B,EAACwC,EAAQ,CAAa/C,MAAOxB,EAAMiC,SAAA,CACjCC,EAACsC,EAAQ,CAACC,QAAS9E,EAAYC,eAAe8E,SAAS1E,KACvDkC,EAACyC,EAAY,CAACC,QAAS5E,MAFVA,aAQtBL,EAAYC,eACVtB,MAAK,SAACuG,EAAGC,GAAC,OAAKD,EAAIC,CAAC,IACpBR,KAAI,SAAAtE,GAAK,OACR+B,EAACkB,EAAI,CAACI,MAAI,EAAApB,SAAA,CACRF,EAACgD,EAAU,CAACC,QAAQ,YAAW/C,SAAA,CAAA,SAAQjC,KACvC+B,EAACuB,EAAW,CAAC2B,UAAU,WAAUhD,SAAA,CAC/BC,EAACgD,EAAS,CAACD,UAAU,SAASxB,UAAQ,EAAAxB,SAAA,eAGtCF,EAACoD,EAAU,CACTrB,KAAK,aACLtC,MAAO/C,EAAIkB,EAAYE,WAAY,CAACG,EAAO,aAAc,UACzDmE,SAAU9C,EAAsBrB,GAChCoF,KAAG,EAAAnD,SAAA,CAEHC,EAACmD,EAAgB,CAAC7D,MAAM,SAAS8D,QAASpD,EAACqD,EAAS,IAACC,MAAM,WAC3DtD,EAACmD,EAAgB,CAAC7D,MAAM,SAAS8D,QAASpD,EAACqD,EAAS,IAACC,MAAM,WAC3DtD,EAACmD,EAAgB,CAAC7D,MAAM,QAAQ8D,QAASpD,EAACqD,EAAS,IAACC,MAAM,gBAG9DzD,EAACuB,EAAW,CAAC2B,UAAU,WAAUhD,SAAA,CAC/BC,EAACgD,EAAS,CAACD,UAAU,SAASxB,UAAQ,EAAAxB,SAAA,eAGtCF,EAACoD,EAAU,CACTrB,KAAK,aACLtC,MAAOiE,OAAOhH,EAAIkB,EAAYE,WAAY,CAACG,EAAO,aAAc,MAChEmE,SAAU1C,EAAsBzB,GAChCoF,KAAG,EAAAnD,SAAA,CAEHC,EAACmD,EAAgB,CAAC7D,MAAOiE,OAAO,GAAIH,QAASpD,EAACqD,EAAS,IAACC,MAAM,SAC9DtD,EAACmD,EAAgB,CAAC7D,MAAOiE,OAAO,GAAIH,QAASpD,EAACqD,EAAS,IAACC,MAAM,WAC9DtD,EAACmD,EAAgB,CAAC7D,MAAOiE,OAAO,GAAIH,QAASpD,EAACqD,EAAS,IAACC,MAAM,kBA7BpDxF,EAgCT,SAIf+B,EAAC2D,EAAa,CAAAzD,SAAA,CACZC,EAACyD,EAAM,CAACrD,QAASZ,EAAYO,SAAA,WAC7BC,EAACyD,EAAM,CAACX,QAAQ,YAAYY,MAAM,UAAUtD,QAjGnC,WACjB,IAAMuD,SACDlF,GAAM,GAAA,CACTZ,OAAQJ,EAAYE,WACpBD,eAAgBD,EAAYC,iBAG9B8B,IACAjB,EAAOoF,IAyFiE5D,SAAA,iBAQ5E,EAEA1B,EAAeuF,UAAY,CACzBrF,OAAQsF,EAAKC,WACbtF,SAAUqF,EAAKC,WACfrF,OAAQsF,EAAM,CACZtE,eAAgBuE,EAChB7D,iBAAkB8D,EAClBC,mBAAoBC,EAAM,CAAC,SAAU,OAAQ,WAAY,SAAU,cAClEL"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{isEmpty as e}from"lodash";import{makeStyles as t,Button as o,FormControl as s,InputLabel as i,Select as n,MenuItem as r,Checkbox as p,ListItemText as m}from"@material-ui/core";import{useMemo as c}from"react";import a from"../Modal/Modal.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../AppIcon/AppIcon.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"classnames";import"../DevCenter/AppContext.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router-dom";import"query-string";import{jsxs as l,Fragment as d,jsx as j}from"react/jsx-runtime";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/appPackages.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import"../../constants/corvaCompanyId.js";import"../GradientManager/configuration/constants.js";import"../../utils/index.js";import"../../utils/mobileDetect.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"@material-ui/icons";import"../EmptyState/EmptyState.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/styles.js";import"@material-ui/pickers";import"@date-io/moment";import"moment";import"../../config/theme/index.js";import"../../hocs/withAssetEditorLockHOC.js";import"../ErrorBoundary/ErrorBoundary.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../Button/components/Button/index.js";import"moment-timezone";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import"@icon-park/react/es/all";import"../../icons/IconParkProvider.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/DragOne.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/InfoRounded.js";import"../../icons/customIcons/icons/FlameFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import"../../icons/customIcons/icons/GuidedFrac.js";import"../AssetEditorV2/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import"../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../ConfirmationDialog.js";import"immutable";import"../../permissions/PermissionsContext.js";import"../../permissions/constants/index.js";import"../../permissions/withPermissionsHOC.js";import"../../clients/jsonApi/index.js";import"../../permissions/ProvidePermissions.js";import"../../componentsV2/AppHeader/V3/VersionSelect/VersionSelect.constants.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../Annotations/AnnotationsContext.js";import"../../componentsV2/AppContainer/AppContainer.js";import"../../componentsV2/AppContainer/AppContainer.constants.js";import"../../componentsV2/Text/Text.js";import"../../componentsV2/Header/Header.scss.js";import"../DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider.js";import"uuid";import"../../componentsV2/Tooltip/Tooltip.scss.js";import"../../componentsV2/TextEndTruncated/TextEndTruncated.scss.js";import"../../componentsV2/AppCommonsProvider/AppCommonsContext.js";import"../../componentsV2/AppHeader/AppHeader.constants.js";import"../../componentsV2/AppHeader/AppBadge/AppBadge.scss.js";import"../../componentsV2/Chip/Chip.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.constants.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.scss.js";import"../../componentsV2/AppHeader/AppAssets/utils.js";import"../../componentsV2/AppHeader/AppAssets/AppAssets.scss.js";import"../PadModeSelect/PadModeSelect.js";import"../../componentsV2/AppHeader/PadMode/PadMode.scss.js";import"../../constants/streamSourceType.js";import"../../componentsV2/PadModeSelect/PadModeSelect.js";import"../../componentsV2/PadModeSelect/PadModeSelect.constants.js";import"../../componentsV2/AppCommonsProvider/AppCommonsProvider.js";import"../../componentsV2/utils.js";import"../../componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js";import"../../componentsV2/UniversalLink/UniversalLink.scss.js";import"../../componentsV2/AppHeader/V3/AssetChips/AssetChips.scss.js";import"../../componentsV2/Button/Button.js";import"../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js";import"../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.constants.js";import"../../componentsV2/Popover/Popover.js";import"@babel/runtime/helpers/toConsumableArray";import"../../componentsV2/Accordion/Accordion.scss.js";import"../../componentsV2/ButtonIcon/ButtonIcon.js";import"../../componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js";import"../../componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.scss.js";import"../../componentsV2/AppDqPopover/DqAlert/DqAlert.scss.js";import"../../componentsV2/AppDqPopover/DqAsset/DqAsset.scss.js";import"../../componentsV2/AppDqPopover/AppDqPopover.scss.js";import"../../componentsV2/Menu/Menu.js";import"../../componentsV2/ModalWindow/ModalWindow.js";import"../../componentsV2/Modal/Modal.scss.js";import"../../componentsV2/LoaderLogo/LoaderLogo.constants.js";import"../../componentsV2/LoaderLogo/LoaderLogo.scss.js";import"../../utils/getSingleAsset.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js";import"../../componentsV2/TextInput/TextInput.js";import"../../componentsV2/AppHeader/V3/AssetSelector/constants.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorSelect.scss.js";import"../../componentsV2/ChipIndicator/ChipIndicator.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/loadAssets.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelector.scss.js";import"../../clients/subscriptions/constants.js";import"querystring";import"uuid/v1";import"../../clients/subscriptions.v1.js";import"../../clients/subscriptions/subscriptions-client.factory.js";import"jsona";import"../../utils/env.js";import"../StatusBadge/constants.js";import"lodash/set";import"lodash/get";import"lodash/unset";import"../../clients/api/apiCore.js";import"../../clients/constants.js";import"../../clients/sso/auth0.js";import"../../clients/sso/oauth2.js";import"../../clients/api/rateLimiter.js";import"lodash/isEmpty";import"lodash/sortBy";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../../componentsV2/AppSettings/AppSettingsPinningContext.js";import"../../componentsV2/AppHeader/V3/AppTitle/AppTitle.constants.js";import"../../componentsV2/AppHeader/V3/AppTitle/AppTitle.scss.js";import"../../componentsV2/AppHeader/V3/constants.scss.js";import"@babel/runtime/helpers/typeof";import"../../componentsV2/AppHeader/V3/SettingsButton/SettingsButton.js";import"../../componentsV2/AppHeader/V3/SettingsButton/SettingsButton.constants.js";import"../../componentsV2/AppSettings/AppSettings.js";import"../../componentsV2/AppSettings/AppSettings.constants.js";import"../../componentsV2/AppSizeProvider/AppSizeProvider.js";import"../../componentsV2/AppHeader/V3/Actions/Actions.constants.js";import"../../componentsV2/AppHeader/V3/Actions/Actions.scss.js";import"../../componentsV2/AppHeader/V3/AppHeaderV3.scss.js";import"../../componentsV2/AppHeader/AppHeader.scss.js";import"../../componentsV2/EmptyState/EmptyState.scss.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.scss.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.scss.js";import"../../componentsV2/Grid/Grid.js";import"../../componentsV2/Grid/Cell.js";import"../../componentsV2/PopoverPanel/PopoverPanel.js";import"../../componentsV2/Radio/Radio.js";import"../../componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js";import"../../componentsV2/Checkbox/Checkbox.js";import"../../componentsV2/TextInputNext/TextInputNext.js";import"../../componentsV2/TextArea/TextArea.js";import"../../componentsV2/Label/Label.js";import"../../componentsV2/TextLink/TextLink.js";import"../../componentsV2/ChipAlert/ChipAlert.js";import"../../componentsV2/Avatar/Avatar.js";import"../../componentsV2/AvatarGroup/AvatarGroup.js";import"@material-ui/lab";import"../../componentsV2/ToggleButtons/ToggleButtons.scss.js";import"../../componentsV2/Paper/Paper.js";import"../../componentsV2/Hint/Hint.scss.js";import"../../componentsV2/Counter/Counter.js";import"../../componentsV2/BadgeBase/BadgeBase.scss.js";import"../../componentsV2/TemplatesControl/TemplatesControl.js";import"zustand";import"../../componentsV2/TemplatesControl/utils.js";import"../../componentsV2/TemplatesControl/icons/folder/index.js";import"../../componentsV2/TemplatesControl/Store/utils.js";import"../../componentsV2/TemplatesControl/types.js";import"../../componentsV2/BadgeDot/BadgeDot.scss.js";import"../../componentsV2/LoaderLinear/LoaderLinear.scss.js";import"../../componentsV2/Switch/Switch.js";import"../../componentsV2/Tabs/Tabs.js";import"../../componentsV2/FileIcon/FileIcon.js";import"../../componentsV2/Tag/Tag.js";import"react-dropzone";import"../../componentsV2/FilesDropzone/FilesDropzone.scss.js";import"../../componentsV2/FilesLoader/FilesLoader.scss.js";import"file-extension";import"image-extensions";import"video-extensions";import"../../componentsV2/FilesProcessor/FilesProcessor.scss.js";import"../../componentsV2/Skeleton/Skeleton.scss.js";import"../../utils/main.js";import"../../componentsV2/CopyToClipboard/CopyToClipboard.scss.js";import"../../componentsV2/Stepper/Step/Step.scss.js";import"../../componentsV2/Stepper/Stepper.scss.js";import"../../componentsV2/ButtonLive/ButtonLive.js";import"../../componentsV2/ButtonText/ButtonText.js";import"../../componentsV2/IndicatorLive/IndicatorLive.js";import"../../componentsV2/Breadcrumbs/Breadcrumbs.scss.js";import"../../componentsV2/BadgeComment/BadgeComment.js";import"../../componentsV2/AppFooter/AppFooter.js";import"../../componentsV2/OffsetWellsButton/OffsetWellsButton.js";import"../../componentsV2/ChartAxisExtreme/ChartAxisExtreme.scss.js";import"highcharts";import"../../componentsV2/ChartAxisExtreme/ChartAxisExtremeDragTracker.js";import"../../componentsV2/Autocomplete/Autocomplete.js";import"../../componentsV2/Select/Select.js";import"../../componentsV2/AppSettingsDivider/AppSettingsDivider.scss.js";import"../../componentsV2/WellArchivedMessage/WellArchivedMessage.js";import"../../componentsV2/DatePicker/DatePicker.js";import"../../componentsV2/DragHandle/DragHandle.js";import"../../componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js";import"../../componentsV2/Slider/constants.js";import"../../componentsV2/Slider/components/SliderThumb.js";import"../../componentsV2/Slider/Slider.scss.js";import"../../componentsV2/SliderAdvanced/SliderAdvanced.js";import"react-color";import"../../componentsV2/ColorPicker/Swatches/Swatches.scss.js";import"../../componentsV2/ColorPicker/OpacityDragtracker/OpacityDragTracker.scss.js";import"../../componentsV2/ColorPicker/ColorPicker.scss.js";import"../../componentsV2/ChartHelper/ChartHelper.scss.js";import"../../componentsV2/Hotkey/Hotkey.js";import"@tanstack/react-query";import"../../componentsV2/InterventionEventSelector/useInterventionUnitEvents.js";import"../../componentsV2/InterventionEventSelector/InterventionEventSelector.scss.js";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.css.js";import"../Icons/AnnotationIcon.js";import"../HelpCenter/HelpCenterIcon.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/RestoreAppSizeButton.css.js";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.scss.js";import"../Toaster/Toaster.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../AssetEditor/index.js";import"../LoadingIndicator/LoadingIndicator.js";import"../Typography.js";import"../RealTimeValuesSidebar/RealTimeSidebar.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../SlateFormattedText/SlateFormattedText.js";import"../SlateFormattedText/RenderElements.js";import"slate";import"../ParameterCharts/ParameterCharts.js";import"../ParameterCharts/AddEditTrack.js";import"../ChartActionsList/ChartActionsList.js";import"../CopyToClipboard/CopyToClipboard.js";import"../AssetEditor/AssetEditorAutocomplete.js";import"../AssetEditor/SingleAssetEditor.js";import"../SettingEditors/ColorEditor/style.css.js";import"../SettingEditors/DropdownEditor/index.js";import"../SwitchControl/index.js";import"../ColorPicker/ColorPicker.js";import"../Chart/components/ChartButton.js";import"../Chart/components/ChartButtons.js";import"../Chart/components/ChartWrapper.js";import"../Chart/components/AxisDropdown.js";import"../Chart/components/ChartSelect.js";import"../Chart/ChartWrapperContext.js";import"../Chart/effects/useChartModifier.js";import"../Chart/components/buttons/HideAxesButton.js";import"../Chart/components/buttons/ChartTypeButton.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../TruncatedText/index.js";import"../MiddleTruncatedText/MiddleTruncatedText.js";import"../RangeSlider/constants.js";import"../RangeSlider/Input.css.js";import"../RangeSlider/RangeSlider.css.js";import"../AdvancedSlider/AdvancedSlider.js";import"../Breadcrumbs/index.js";import"../VirtualizedTable/index.js";import"../EmptyView/EmptyView.js";import"../EmptyView/EmptyAppView/EmptyAppView.js";import"../ContextMenuItem/index.js";import"../FolderMenuItem/index.js";import"../EditableItem/EditableItem/index.js";import"../EditableItem/EditableItemWithBadge/index.js";import"../Checkbox/index.js";import"../FolderMenuItemWithLinks/index.js";import"../IconButton/index.js";import"../TextField/index.js";import"../Chip/index.js";import"../Counter/index.js";import"../AnchorsList/AnchorsList.js";import"../Select/index.js";import"../Select/SelectFilterBy.js";import"../CustomSelect/index.js";import"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../ResizableTable/ResizableTable.js";import"../GradientPicker/GradientPicker.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"../GradientManager/GradientPreview/GradientPreview.js";import"../GradientManager/GradientSelect.scss.js";import"../GradientManager/GradientManager.styles.js";import"../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"../WellSummary/WellSummaryItemLabel.js";import"../WellSummary/WellSummaryItemTitle.js";import"../WellSummary/WellSummaryItemValue.js";import"../WellSummary/ActivitySummaryChart.js";import"../WellSummary/FracWirelineTimeChart.js";import"../BICOffsetPickerDialog/index.js";import"../OffsetWellButton/OffsetWellButton.js";import"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../OffsetWellPickerV3/index.js";import"../OffsetWellChips/Chip.js";import"../OffsetWellChips/ChipsContainer.js";import"../OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/OffsetWellPickerV5WithStore.js";import"../OffsetWellMap/OffsetWellMap.js";import"@material-ui/core/Snackbar";import"../Notifications/Toast.js";import"../Notifications/Notifications.scss.js";import"../TextLink/index.js";import"../Avatar/index.js";import"../Template/TemplatePopover/index.js";import"../Template/TemplateSharingDialog/index.js";import"../MenuItem/index.js";import"../MiddleTruncate/MiddleTruncate.js";import"../PinnableFilters/PinnableFilters.js";import"../HeaderLayout/HeaderLayout.js";import"../PadOffsetsPicker/PadOffsetsPicker.js";import"../PadOffsetsPicker/OffsetAssetChip.js";import"../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../PadOffsetsPicker/StagesSelector.js";import"../Table/TableToolbar/TableToolbar.js";import"../Table/TableContainer/TableContainer.js";import"../Table/TableCell/TableCell.js";import"../Table/TablePagination/TablePagination.js";import"../Table/TablePaginationActions/TablePaginationActions.js";import"../Tooltip/ScrollableTooltip.js";import"../PriceInput/PriceInput.js";import"../LabelsCounter/LabelsCounter.js";import"../Stepper/Stepper.js";import"../Stepper/Step/Step.js";import"../Stepper/StepsWrapper.js";import"../Comment/CommentIcon/index.js";import"../FilesLoader/FilesLoader.js";import"../../componentsV2/FileIcon/icons/ArchiveFileIcon.js";import"../../componentsV2/FileIcon/icons/CSVFileIcon.js";import"../../componentsV2/FileIcon/icons/DocFileIcon.js";import"../../componentsV2/FileIcon/icons/EDMFileIcon.js";import"../../componentsV2/FileIcon/icons/ExcelFileIcon.js";import"../../componentsV2/FileIcon/icons/ImageFileIcon.js";import"../../componentsV2/FileIcon/icons/JsonFileIcon.js";import"../../componentsV2/FileIcon/icons/LasFileIcon.js";import"../../componentsV2/FileIcon/icons/OtherFileIcon.js";import"../../componentsV2/FileIcon/icons/PdfFileIcon.js";import"../../componentsV2/FileIcon/icons/PowerPointFileIcon.js";import"../../componentsV2/FileIcon/icons/TxtFileIcon.js";import"../../componentsV2/FileIcon/icons/UnknownFileIcon.js";import"../../componentsV2/FileIcon/icons/VideoFileIcon.js";import"../../componentsV2/FileIcon/icons/XmlFileIcon.js";import"../SearchInput/index.js";import"../FeedItem/FeedItem.js";import"../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../PostInput/PostInput.js";import"../KeyboardDateTimePicker.js";import"../AddComment/Popover.js";import"../AddComment/Popup.js";import"../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../StageDesignVActual/ComparisonHeader.js";import"../StageDesignVActual/ComparisonRow.js";import"../EmbeddedApp/DevCenterEmbeddedApp.js";import"../EmbeddedApp/EmbeddedApp.js";import"../Autocomplete/Autocomplete.js";import"../DocumentViewer/DocumentViewer.js";import"../ColorPickerPalette/ColorPickerPalette.js";import"../Search/Search.js";import"../Search/components/Listbox.js";import"../Search/components/Paper.js";import"../Search/components/RecentSearches.js";import"../Search/components/Groups.js";import"../Search/components/SelectAllListItem.js";import"../StatusBadge/index.js";import"../Attachment/index.js";import"../EmojiIconButton.js";import"../FileUploadIconButton.js";import"../FilePreview/index.js";import"../FailedFileUploading.js";import"../UserMention/index.js";import"../CommentsInfo/index.js";import"../CommentInput/index.js";import"../Comment/index.js";import"../CommentLoader.js";import"../AssetNameLabel/AssetStatusBadge.js";import"../AssetEditorV2/components/PrimaryAssetSelect.js";import"../AssetEditorV2/components/SecondaryAssetSelect.js";import"../AssetEditorV2/components/SelectItem.js";import"../AssetEditorV2/components/MultipleAssetsToggle.js";import"../AssetEditorV2/components/PrimaryAssetSelectV2.js";import"../EChartsWrapper/EChartsWrapper.js";import u from"../AssetsMultipleSelector/AssetsMultipleSelector.js";import"@material-ui/icons/Close";import"@material-ui/icons/GetApp";import"../GoogleDocsViewer/index.js";import"../NewDocumentViewer/effects/useFileContent.js";import"../NewDocumentViewer/styles.js";import"../FilesLoaderV2/styles.js";import"../FilesDropzone/styles.js";import"../FilesProcessor/styles.js";import"../Hint/styles.js";import"@babel/runtime/helpers/taggedTemplateLiteral";import"fparser";import"../Formula/useFormulaStyles.js";import"../Formula/RootXIcon.js";import"../Formula/FormulaTextEditor.js";import"../Formula/CloseSuggestion.js";import"../Formula/SuggestionsMenu.js";import"../CommentCard/CommentCard.js";import"@material-ui/icons/AlternateEmail";import"../AttachFileButton/AttachFileButton.scss.js";import"../CommentInputNext/CommentInputNext.js";import"../UserMention/utils/index.js";import"react-s3-uploader/s3upload";import"../CommentComposer/CommentMetaLine.scss.js";import"../CommentComposer/ChatChannelSelector.scss.js";import"../CommentComposer/ShareToChatRow.scss.js";import"../CommentComposer/CommentComposer.scss.js";import"../AttachmentPreview/AttachmentPreview.js";import"../AttachmentPreview/AttachmentImage.js";import"../AttachmentPreview/AttachmentPreview.scss.js";import"../CommentPin/CommentPin.js";import"../FeedCard/FeedCard.js";import"../FeedItemCard/FeedItemCard.js";import"../NewCommentCursor/NewCommentCursor.js";import"../LinkedText/LinkedText.js";import"../FeedItem/feedItemTypes/AlertFeedItem.js";import"../FeedItem/feedItemTypes/PostFeedItem.js";import"../FeedItem/feedItemTypes/GeosteeringFeedItem.js";import"../FeedItem/feedItemTypes/DrillingOperationalNoteFeedItem.js";import"../FeedItem/feedItemTypes/DrillingOperationSummaryFeedItem.js";import"../FeedItem/feedItemTypes/DrillingDailyCostFeedItem.js";import"../FeedItem/feedItemTypes/DocumentFeedItem.js";import"../FeedItem/feedItemTypes/DrillerMemoFeedItem.js";import"../FeedItem/feedItemTypes/NptFeedItem.js";import"../FeedItem/feedItemTypes/SurveyStationFeedItem/index.js";import"../FeedItem/feedItemTypes/LessonsLearnedFeedItem/index.js";import"../FeedItem/feedItemTypes/TracesMemoFeedItem.js";import"../FeedItem/feedItemTypes/DepthCommentFeedItem.js";import"../FeedItem/feedItemTypes/CompletionOperationalNoteFeedItem.js";import"../FeedItem/feedItemTypes/CompletionOperationSummaryFeedItem.js";import"../FeedItem/feedItemTypes/CompletionDailyCostFeedItem.js";import"../FeedItem/feedItemTypes/CompletionDocumentFeedItem.js";import"../FeedItem/feedItemTypes/CompletionNptFeedItem.js";import"../FeedItem/feedItemTypes/StageOverviewFeedItem/index.js";import"../FeedItem/feedItemTypes/AppAnnotationFeedItem/index.js";import"../FeedItem/feedItemTypes/WellPlanFeedItem/index.js";import"../FeedItem/feedItemTypes/FluidReportFeedItem.js";import"../FeedItem/feedItemTypes/BhaFeedItem/BhaFeedItem.js";import"../FeedItem/feedItemTypes/DvDCommentFeedItem.js";import"../FeedItem/feedItemTypes/PCCommentFeedItem.js";import"../FeedItem/feedItemTypes/HookloadCommentFeedItem.js";import"../FeedItem/feedItemTypes/NptLessonsCommentFeedItem.js";import"../FeedItem/feedItemTypes/GenericDataCommentFeedItem.js";import{useOffsetPickerActions as C}from"./useOffsetPickerActions.js";var I=t({cancelButton:{marginLeft:"auto",marginRight:16}}),A=function(t){var A=t.assets,V=t.opened,S=t.currentOffsetSetting,g=t.appPad,F=t.companyId,h=t.onSave,T=t.onClose,v=I(),D=C({opened:V,appPad:g,assets:A,currentOffsetSetting:S}),P=D.selectedPads,f=D.selectedWellAssetIds,x=D.setSelectedPads,b=D.setSelectedWellAssetIds,y=c((function(){return P.reduce((function(e,t){return e.concat(t.wells)}),[])}),[P]),B=c((function(){return{company:[F],fields:["pad.wells"],sort:"last_active_at",per_page:100}}),[F]);return l(a,{open:V,onClose:T,title:"Offset Wells",size:"small",actions:l(d,{children:[j(o,{onClick:T,className:v.cancelButton,"data-testid":"closeButton",children:"Cancel"}),j(o,{variant:"contained",color:"primary",onClick:function(){var e=y.filter((function(e){return f.includes(e.assetId)})),t=new Map(S.map((function(e){return[e.selectedWellId,e]}))),o=e.map((function(e){var o=t.get(+e.assetId);return o||function(e){return{selectedWellId:Number(e.assetId),selectedWellIdNew:e.id,selectedWellName:e.name,selectedWellStatus:e.status,selectedStages:[],stages:{}}}(e)}));h(o),T()},"data-testid":"saveButton",children:"Save"})]}),children:[j(u,{selectedAssets:P,onChange:function(e){x(e)},label:"Pad *",type:"pad",customRequestQueryParams:B}),l(s,{"data-testid":"offsetWellDropdown",margin:"normal",disabled:!y.length,fullWidth:!0,required:!0,children:[j(i,{htmlFor:"wells",shrink:!e(f),children:"Well"}),j(n,{multiple:!0,inputProps:{name:"wells",id:"well-select"},value:f,onChange:function(e){b(e.target.value)},renderValue:function(e){return"".concat(e.length," selected")},children:y.map((function(e){return l(r,{value:e.assetId,"data-testid":"".concat(e.name,"_offsetWell_menuItem"),children:[j(p,{size:"small",checked:f.includes(e.assetId)}),j(m,{primary:e.name})]},e.id)}))})]})]})};export{A as default};
|
|
1
|
+
import{isEmpty as e}from"lodash";import{makeStyles as t,Button as o,FormControl as s,InputLabel as i,Select as n,MenuItem as r,Checkbox as p,ListItemText as m}from"@material-ui/core";import{useMemo as c}from"react";import a from"../Modal/Modal.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../AppIcon/AppIcon.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"classnames";import"../DevCenter/AppContext.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router-dom";import"query-string";import{jsxs as l,Fragment as d,jsx as j}from"react/jsx-runtime";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/appPackages.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import"../../constants/corvaCompanyId.js";import"../GradientManager/configuration/constants.js";import"../../utils/index.js";import"../../utils/mobileDetect.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"@material-ui/icons";import"../EmptyState/EmptyState.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/styles.js";import"@material-ui/pickers";import"@date-io/moment";import"moment";import"../../config/theme/index.js";import"../../hocs/withAssetEditorLockHOC.js";import"../ErrorBoundary/ErrorBoundary.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../Button/components/Button/index.js";import"moment-timezone";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import"@icon-park/react/es/all";import"../../icons/IconParkProvider.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/DragOne.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/InfoRounded.js";import"../../icons/customIcons/icons/FlameFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import"../../icons/customIcons/icons/GuidedFrac.js";import"../AssetEditorV2/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import"../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../ConfirmationDialog.js";import"immutable";import"../../permissions/PermissionsContext.js";import"../../permissions/constants/index.js";import"../../permissions/withPermissionsHOC.js";import"../../clients/jsonApi/index.js";import"../../permissions/ProvidePermissions.js";import"../../componentsV2/AppHeader/V3/VersionSelect/VersionSelect.constants.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../Annotations/AnnotationsContext.js";import"../../componentsV2/AppContainer/AppContainer.js";import"../../componentsV2/AppContainer/AppContainer.constants.js";import"../../componentsV2/Text/Text.js";import"../../componentsV2/Header/Header.scss.js";import"../DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider.js";import"uuid";import"../../componentsV2/Tooltip/Tooltip.scss.js";import"../../componentsV2/TextEndTruncated/TextEndTruncated.scss.js";import"../../componentsV2/AppCommonsProvider/AppCommonsContext.js";import"../../componentsV2/AppHeader/AppHeader.constants.js";import"../../componentsV2/AppHeader/AppBadge/AppBadge.scss.js";import"../../componentsV2/Chip/Chip.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.constants.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.scss.js";import"../../componentsV2/AppHeader/AppAssets/utils.js";import"../../componentsV2/AppHeader/AppAssets/AppAssets.scss.js";import"../PadModeSelect/PadModeSelect.js";import"../../componentsV2/AppHeader/PadMode/PadMode.scss.js";import"../../constants/streamSourceType.js";import"../../componentsV2/PadModeSelect/PadModeSelect.js";import"../../componentsV2/PadModeSelect/PadModeSelect.constants.js";import"../../componentsV2/AppCommonsProvider/AppCommonsProvider.js";import"../../componentsV2/utils.js";import"../../componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js";import"../../componentsV2/UniversalLink/UniversalLink.scss.js";import"../../componentsV2/AppHeader/V3/AssetChips/AssetChips.scss.js";import"../../componentsV2/Button/Button.js";import"../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js";import"../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.constants.js";import"../../componentsV2/Popover/Popover.js";import"@babel/runtime/helpers/toConsumableArray";import"../../componentsV2/Accordion/Accordion.scss.js";import"../../componentsV2/ButtonIcon/ButtonIcon.js";import"../../componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js";import"../../componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.scss.js";import"../../componentsV2/AppDqPopover/DqAlert/DqAlert.scss.js";import"../../componentsV2/AppDqPopover/DqAsset/DqAsset.scss.js";import"../../componentsV2/AppDqPopover/AppDqPopover.scss.js";import"../../componentsV2/Menu/Menu.js";import"../../componentsV2/ModalWindow/ModalWindow.js";import"../../componentsV2/Modal/Modal.scss.js";import"../../componentsV2/LoaderLogo/LoaderLogo.constants.js";import"../../componentsV2/LoaderLogo/LoaderLogo.scss.js";import"../../utils/getSingleAsset.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js";import"../../componentsV2/TextInput/TextInput.js";import"../../componentsV2/AppHeader/V3/AssetSelector/constants.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorSelect.scss.js";import"../../componentsV2/ChipIndicator/ChipIndicator.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/loadAssets.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelector.scss.js";import"../../clients/subscriptions/constants.js";import"querystring";import"uuid/v1";import"../../clients/subscriptions.v1.js";import"../../clients/subscriptions/subscriptions-client.factory.js";import"jsona";import"../../utils/env.js";import"../StatusBadge/constants.js";import"lodash/set";import"lodash/get";import"lodash/unset";import"../../clients/api/apiCore.js";import"../../clients/constants.js";import"../../clients/sso/auth0.js";import"../../clients/sso/oauth2.js";import"../../clients/api/rateLimiter.js";import"lodash/isEmpty";import"lodash/sortBy";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../../componentsV2/AppSettings/AppSettingsPinningContext.js";import"../../componentsV2/AppHeader/V3/AppTitle/AppTitle.constants.js";import"../../componentsV2/AppHeader/V3/AppTitle/AppTitle.scss.js";import"../../componentsV2/AppHeader/V3/constants.scss.js";import"@babel/runtime/helpers/typeof";import"../../componentsV2/AppHeader/V3/SettingsButton/SettingsButton.js";import"../../componentsV2/AppHeader/V3/SettingsButton/SettingsButton.constants.js";import"../../componentsV2/AppSettings/AppSettings.js";import"../../componentsV2/AppSettings/AppSettings.constants.js";import"../../componentsV2/AppSizeProvider/AppSizeProvider.js";import"../../componentsV2/AppHeader/V3/Actions/Actions.constants.js";import"../../componentsV2/AppHeader/V3/Actions/Actions.scss.js";import"../../componentsV2/AppHeader/V3/AppHeaderV3.scss.js";import"../../componentsV2/AppHeader/AppHeader.scss.js";import"../../componentsV2/EmptyState/EmptyState.scss.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.scss.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.scss.js";import"../../componentsV2/Grid/Grid.js";import"../../componentsV2/Grid/Cell.js";import"../../componentsV2/PopoverPanel/PopoverPanel.js";import"../../componentsV2/Radio/Radio.js";import"../../componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js";import"../../componentsV2/Checkbox/Checkbox.js";import"../../componentsV2/TextInputNext/TextInputNext.js";import"../../componentsV2/TextArea/TextArea.js";import"../../componentsV2/Label/Label.js";import"../../componentsV2/TextLink/TextLink.js";import"../../componentsV2/ChipAlert/ChipAlert.js";import"../../componentsV2/Avatar/Avatar.js";import"../../componentsV2/AvatarGroup/AvatarGroup.js";import"@material-ui/lab";import"../../componentsV2/ToggleButtons/ToggleButtons.scss.js";import"../../componentsV2/Paper/Paper.js";import"../../componentsV2/Hint/Hint.scss.js";import"../../componentsV2/Counter/Counter.js";import"../../componentsV2/BadgeBase/BadgeBase.scss.js";import"../../componentsV2/TemplatesControl/TemplatesControl.js";import"zustand";import"../../componentsV2/TemplatesControl/utils.js";import"../../componentsV2/TemplatesControl/icons/folder/index.js";import"../../componentsV2/TemplatesControl/Store/utils.js";import"../../componentsV2/TemplatesControl/types.js";import"../../componentsV2/BadgeDot/BadgeDot.scss.js";import"../../componentsV2/LoaderLinear/LoaderLinear.scss.js";import"../../componentsV2/Switch/Switch.js";import"../../componentsV2/Tabs/Tabs.js";import"../../componentsV2/FileIcon/FileIcon.js";import"../../componentsV2/Tag/Tag.js";import"react-dropzone";import"../../componentsV2/FilesDropzone/FilesDropzone.scss.js";import"../../componentsV2/FilesLoader/FilesLoader.scss.js";import"file-extension";import"image-extensions";import"video-extensions";import"../../componentsV2/FilesProcessor/FilesProcessor.scss.js";import"../../componentsV2/Skeleton/Skeleton.scss.js";import"../../utils/main.js";import"../../componentsV2/CopyToClipboard/CopyToClipboard.scss.js";import"../../componentsV2/Stepper/Step/Step.scss.js";import"../../componentsV2/Stepper/Stepper.scss.js";import"../../componentsV2/ButtonLive/ButtonLive.js";import"../../componentsV2/ButtonText/ButtonText.js";import"../../componentsV2/IndicatorLive/IndicatorLive.js";import"../../componentsV2/Breadcrumbs/Breadcrumbs.scss.js";import"../../componentsV2/BadgeComment/BadgeComment.js";import"../../componentsV2/AppFooter/AppFooter.js";import"../../componentsV2/OffsetWellsButton/OffsetWellsButton.js";import"../../componentsV2/ChartAxisExtreme/ChartAxisExtreme.scss.js";import"highcharts";import"../../componentsV2/ChartAxisExtreme/ChartAxisExtremeDragTracker.js";import"../../componentsV2/Autocomplete/Autocomplete.js";import"../../componentsV2/Select/Select.js";import"../../componentsV2/AppSettingsDivider/AppSettingsDivider.scss.js";import"../../componentsV2/WellArchivedMessage/WellArchivedMessage.js";import"../../componentsV2/DatePicker/DatePicker.js";import"../../componentsV2/DragHandle/DragHandle.js";import"../../componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js";import"../../componentsV2/Slider/constants.js";import"../../componentsV2/Slider/components/SliderThumb.js";import"../../componentsV2/Slider/Slider.scss.js";import"../../componentsV2/SliderAdvanced/SliderAdvanced.js";import"react-color";import"../../componentsV2/ColorPicker/Swatches/Swatches.scss.js";import"../../componentsV2/ColorPicker/OpacityDragtracker/OpacityDragTracker.scss.js";import"../../componentsV2/ColorPicker/ColorPicker.scss.js";import"../../componentsV2/ChartHelper/ChartHelper.scss.js";import"../../componentsV2/Hotkey/Hotkey.js";import"@tanstack/react-query";import"../../componentsV2/InterventionEventSelector/useInterventionUnitEvents.js";import"../../componentsV2/InterventionEventSelector/InterventionEventSelector.scss.js";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.css.js";import"../Icons/AnnotationIcon.js";import"../HelpCenter/HelpCenterIcon.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/RestoreAppSizeButton.css.js";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.scss.js";import"../Toaster/Toaster.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../AssetEditor/index.js";import"../LoadingIndicator/LoadingIndicator.js";import"../Typography.js";import"../RealTimeValuesSidebar/RealTimeSidebar.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../SlateFormattedText/SlateFormattedText.js";import"../SlateFormattedText/RenderElements.js";import"slate";import"../ParameterCharts/ParameterCharts.js";import"../ParameterCharts/AddEditTrack.js";import"../ChartActionsList/ChartActionsList.js";import"../CopyToClipboard/CopyToClipboard.js";import"../AssetEditor/AssetEditorAutocomplete.js";import"../AssetEditor/SingleAssetEditor.js";import"../SettingEditors/ColorEditor/style.css.js";import"../SettingEditors/DropdownEditor/index.js";import"../SwitchControl/index.js";import"../ColorPicker/ColorPicker.js";import"../Chart/components/ChartButton.js";import"../Chart/components/ChartButtons.js";import"../Chart/components/ChartWrapper.js";import"../Chart/components/AxisDropdown.js";import"../Chart/components/ChartSelect.js";import"../Chart/ChartWrapperContext.js";import"../Chart/effects/useChartModifier.js";import"../Chart/components/buttons/HideAxesButton.js";import"../Chart/components/buttons/ChartTypeButton.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../TruncatedText/index.js";import"../MiddleTruncatedText/MiddleTruncatedText.js";import"../RangeSlider/constants.js";import"../RangeSlider/Input.css.js";import"../RangeSlider/RangeSlider.css.js";import"../AdvancedSlider/AdvancedSlider.js";import"../Breadcrumbs/index.js";import"../VirtualizedTable/index.js";import"../EmptyView/EmptyView.js";import"../EmptyView/EmptyAppView/EmptyAppView.js";import"../ContextMenuItem/index.js";import"../FolderMenuItem/index.js";import"../EditableItem/EditableItem/index.js";import"../EditableItem/EditableItemWithBadge/index.js";import"../Checkbox/index.js";import"../FolderMenuItemWithLinks/index.js";import"../IconButton/index.js";import"../TextField/index.js";import"../Chip/index.js";import"../Counter/index.js";import"../AnchorsList/AnchorsList.js";import"../Select/index.js";import"../Select/SelectFilterBy.js";import"../CustomSelect/index.js";import"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../ResizableTable/ResizableTable.js";import"../GradientPicker/GradientPicker.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"../GradientManager/GradientPreview/GradientPreview.js";import"../GradientManager/GradientSelect.scss.js";import"../GradientManager/GradientManager.styles.js";import"../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"../WellSummary/WellSummaryItemLabel.js";import"../WellSummary/WellSummaryItemTitle.js";import"../WellSummary/WellSummaryItemValue.js";import"../WellSummary/ActivitySummaryChart.js";import"../WellSummary/FracWirelineTimeChart.js";import"../BICOffsetPickerDialog/index.js";import"../OffsetWellButton/OffsetWellButton.js";import"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../OffsetWellPickerV3/index.js";import"../OffsetWellChips/Chip.js";import"../OffsetWellChips/ChipsContainer.js";import"../OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/OffsetWellPickerV5WithStore.js";import"mapbox-gl/dist/mapbox-gl.css";import"@material-ui/icons/Info";import"@material-ui/icons/Block";import"../OffsetWellMap/WellTooltip.module.css.js";import"../OffsetWellMap/OffsetWellMap.module.css.js";import"../../config/mapboxGl/index.js";import"../../config/mapbox/index.js";import"react-dom";import"@material-ui/core/Snackbar";import"../Notifications/Toast.js";import"../Notifications/Notifications.scss.js";import"../TextLink/index.js";import"../Avatar/index.js";import"../Template/TemplatePopover/index.js";import"../Template/TemplateSharingDialog/index.js";import"../MenuItem/index.js";import"../MiddleTruncate/MiddleTruncate.js";import"../PinnableFilters/PinnableFilters.js";import"../HeaderLayout/HeaderLayout.js";import"../PadOffsetsPicker/PadOffsetsPicker.js";import"../PadOffsetsPicker/OffsetAssetChip.js";import"../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../PadOffsetsPicker/StagesSelector.js";import"../Table/TableToolbar/TableToolbar.js";import"../Table/TableContainer/TableContainer.js";import"../Table/TableCell/TableCell.js";import"../Table/TablePagination/TablePagination.js";import"../Table/TablePaginationActions/TablePaginationActions.js";import"../Tooltip/ScrollableTooltip.js";import"../PriceInput/PriceInput.js";import"../LabelsCounter/LabelsCounter.js";import"../Stepper/Stepper.js";import"../Stepper/Step/Step.js";import"../Stepper/StepsWrapper.js";import"../Comment/CommentIcon/index.js";import"../FilesLoader/FilesLoader.js";import"../../componentsV2/FileIcon/icons/ArchiveFileIcon.js";import"../../componentsV2/FileIcon/icons/CSVFileIcon.js";import"../../componentsV2/FileIcon/icons/DocFileIcon.js";import"../../componentsV2/FileIcon/icons/EDMFileIcon.js";import"../../componentsV2/FileIcon/icons/ExcelFileIcon.js";import"../../componentsV2/FileIcon/icons/ImageFileIcon.js";import"../../componentsV2/FileIcon/icons/JsonFileIcon.js";import"../../componentsV2/FileIcon/icons/LasFileIcon.js";import"../../componentsV2/FileIcon/icons/OtherFileIcon.js";import"../../componentsV2/FileIcon/icons/PdfFileIcon.js";import"../../componentsV2/FileIcon/icons/PowerPointFileIcon.js";import"../../componentsV2/FileIcon/icons/TxtFileIcon.js";import"../../componentsV2/FileIcon/icons/UnknownFileIcon.js";import"../../componentsV2/FileIcon/icons/VideoFileIcon.js";import"../../componentsV2/FileIcon/icons/XmlFileIcon.js";import"../SearchInput/index.js";import"../FeedItem/FeedItem.js";import"../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../PostInput/PostInput.js";import"../KeyboardDateTimePicker.js";import"../AddComment/Popover.js";import"../AddComment/Popup.js";import"../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../StageDesignVActual/ComparisonHeader.js";import"../StageDesignVActual/ComparisonRow.js";import"../EmbeddedApp/DevCenterEmbeddedApp.js";import"../EmbeddedApp/EmbeddedApp.js";import"../Autocomplete/Autocomplete.js";import"../DocumentViewer/DocumentViewer.js";import"../ColorPickerPalette/ColorPickerPalette.js";import"../Search/Search.js";import"../Search/components/Listbox.js";import"../Search/components/Paper.js";import"../Search/components/RecentSearches.js";import"../Search/components/Groups.js";import"../Search/components/SelectAllListItem.js";import"../StatusBadge/index.js";import"../Attachment/index.js";import"../EmojiIconButton.js";import"../FileUploadIconButton.js";import"../FilePreview/index.js";import"../FailedFileUploading.js";import"../UserMention/index.js";import"../CommentsInfo/index.js";import"../CommentInput/index.js";import"../Comment/index.js";import"../CommentLoader.js";import"../AssetNameLabel/AssetStatusBadge.js";import"../AssetEditorV2/components/PrimaryAssetSelect.js";import"../AssetEditorV2/components/SecondaryAssetSelect.js";import"../AssetEditorV2/components/SelectItem.js";import"../AssetEditorV2/components/MultipleAssetsToggle.js";import"../AssetEditorV2/components/PrimaryAssetSelectV2.js";import"../EChartsWrapper/EChartsWrapper.js";import u from"../AssetsMultipleSelector/AssetsMultipleSelector.js";import"@material-ui/icons/Close";import"@material-ui/icons/GetApp";import"../GoogleDocsViewer/index.js";import"../NewDocumentViewer/effects/useFileContent.js";import"../NewDocumentViewer/styles.js";import"../FilesLoaderV2/styles.js";import"../FilesDropzone/styles.js";import"../FilesProcessor/styles.js";import"../Hint/styles.js";import"@babel/runtime/helpers/taggedTemplateLiteral";import"fparser";import"../Formula/useFormulaStyles.js";import"../Formula/RootXIcon.js";import"../Formula/FormulaTextEditor.js";import"../Formula/CloseSuggestion.js";import"../Formula/SuggestionsMenu.js";import"../CommentCard/CommentCard.js";import"@material-ui/icons/AlternateEmail";import"../AttachFileButton/AttachFileButton.scss.js";import"../CommentInputNext/CommentInputNext.js";import"../UserMention/utils/index.js";import"react-s3-uploader/s3upload";import"../CommentComposer/CommentMetaLine.scss.js";import"../CommentComposer/ChatChannelSelector.scss.js";import"../CommentComposer/ShareToChatRow.scss.js";import"../CommentComposer/CommentComposer.scss.js";import"../AttachmentPreview/AttachmentPreview.js";import"../AttachmentPreview/AttachmentImage.js";import"../AttachmentPreview/AttachmentPreview.scss.js";import"../CommentPin/CommentPin.js";import"../FeedCard/FeedCard.js";import"../FeedItemCard/FeedItemCard.js";import"../NewCommentCursor/NewCommentCursor.js";import"../LinkedText/LinkedText.js";import"../FeedItem/feedItemTypes/AlertFeedItem.js";import"../FeedItem/feedItemTypes/PostFeedItem.js";import"../FeedItem/feedItemTypes/GeosteeringFeedItem.js";import"../FeedItem/feedItemTypes/DrillingOperationalNoteFeedItem.js";import"../FeedItem/feedItemTypes/DrillingOperationSummaryFeedItem.js";import"../FeedItem/feedItemTypes/DrillingDailyCostFeedItem.js";import"../FeedItem/feedItemTypes/DocumentFeedItem.js";import"../FeedItem/feedItemTypes/DrillerMemoFeedItem.js";import"../FeedItem/feedItemTypes/NptFeedItem.js";import"../FeedItem/feedItemTypes/SurveyStationFeedItem/index.js";import"../FeedItem/feedItemTypes/LessonsLearnedFeedItem/index.js";import"../FeedItem/feedItemTypes/TracesMemoFeedItem.js";import"../FeedItem/feedItemTypes/DepthCommentFeedItem.js";import"../FeedItem/feedItemTypes/CompletionOperationalNoteFeedItem.js";import"../FeedItem/feedItemTypes/CompletionOperationSummaryFeedItem.js";import"../FeedItem/feedItemTypes/CompletionDailyCostFeedItem.js";import"../FeedItem/feedItemTypes/CompletionDocumentFeedItem.js";import"../FeedItem/feedItemTypes/CompletionNptFeedItem.js";import"../FeedItem/feedItemTypes/StageOverviewFeedItem/index.js";import"../FeedItem/feedItemTypes/AppAnnotationFeedItem/index.js";import"../FeedItem/feedItemTypes/WellPlanFeedItem/index.js";import"../FeedItem/feedItemTypes/FluidReportFeedItem.js";import"../FeedItem/feedItemTypes/BhaFeedItem/BhaFeedItem.js";import"../FeedItem/feedItemTypes/DvDCommentFeedItem.js";import"../FeedItem/feedItemTypes/PCCommentFeedItem.js";import"../FeedItem/feedItemTypes/HookloadCommentFeedItem.js";import"../FeedItem/feedItemTypes/NptLessonsCommentFeedItem.js";import"../FeedItem/feedItemTypes/GenericDataCommentFeedItem.js";import{useOffsetPickerActions as C}from"./useOffsetPickerActions.js";var I=t({cancelButton:{marginLeft:"auto",marginRight:16}}),A=function(t){var A=t.assets,V=t.opened,S=t.currentOffsetSetting,g=t.appPad,F=t.companyId,h=t.onSave,T=t.onClose,v=I(),D=C({opened:V,appPad:g,assets:A,currentOffsetSetting:S}),P=D.selectedPads,f=D.selectedWellAssetIds,x=D.setSelectedPads,b=D.setSelectedWellAssetIds,y=c((function(){return P.reduce((function(e,t){return e.concat(t.wells)}),[])}),[P]),B=c((function(){return{company:[F],fields:["pad.wells"],sort:"last_active_at",per_page:100}}),[F]);return l(a,{open:V,onClose:T,title:"Offset Wells",size:"small",actions:l(d,{children:[j(o,{onClick:T,className:v.cancelButton,"data-testid":"closeButton",children:"Cancel"}),j(o,{variant:"contained",color:"primary",onClick:function(){var e=y.filter((function(e){return f.includes(e.assetId)})),t=new Map(S.map((function(e){return[e.selectedWellId,e]}))),o=e.map((function(e){var o=t.get(+e.assetId);return o||function(e){return{selectedWellId:Number(e.assetId),selectedWellIdNew:e.id,selectedWellName:e.name,selectedWellStatus:e.status,selectedStages:[],stages:{}}}(e)}));h(o),T()},"data-testid":"saveButton",children:"Save"})]}),children:[j(u,{selectedAssets:P,onChange:function(e){x(e)},label:"Pad *",type:"pad",customRequestQueryParams:B}),l(s,{"data-testid":"offsetWellDropdown",margin:"normal",disabled:!y.length,fullWidth:!0,required:!0,children:[j(i,{htmlFor:"wells",shrink:!e(f),children:"Well"}),j(n,{multiple:!0,inputProps:{name:"wells",id:"well-select"},value:f,onChange:function(e){b(e.target.value)},renderValue:function(e){return"".concat(e.length," selected")},children:y.map((function(e){return l(r,{value:e.assetId,"data-testid":"".concat(e.name,"_offsetWell_menuItem"),children:[j(p,{size:"small",checked:f.includes(e.assetId)}),j(m,{primary:e.name})]},e.id)}))})]})]})};export{A as default};
|
|
2
2
|
//# sourceMappingURL=PadOffsetsPickerV2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PadOffsetsPickerV2.js","sources":["../../../src/components/PadOffsetsPickerV2/PadOffsetsPickerV2.tsx"],"sourcesContent":["import { isEmpty } from 'lodash';\nimport {\n Button,\n FormControl,\n InputLabel,\n Select,\n MenuItem,\n Checkbox,\n ListItemText,\n makeStyles,\n} from '@material-ui/core';\nimport React, { useMemo } from 'react';\n\nimport { Modal, AssetsMultipleSelector } from '~/components';\nimport { AssetsMultipleSelectorProps } from '~/components/AssetsMultipleSelector/AssetsMultipleSelector';\nimport { AssetSelectorPad, AssetSelectorPadWell, PadOffsetsPickerV2Props } from './types';\nimport { useOffsetPickerActions } from './useOffsetPickerActions';\nimport { OffsetSetting } from '~/types';\n\nconst useStyles = makeStyles({\n cancelButton: {\n marginLeft: 'auto',\n marginRight: 16,\n },\n});\n\nconst convertWellToOffset = (well: AssetSelectorPadWell): OffsetSetting => ({\n selectedWellId: Number(well.assetId),\n selectedWellIdNew: well.id,\n selectedWellName: well.name,\n selectedWellStatus: well.status,\n selectedStages: [],\n stages: {},\n});\n\nconst PadOffsetsPickerV2 = ({\n assets,\n opened,\n currentOffsetSetting,\n appPad,\n companyId,\n onSave,\n onClose,\n}: PadOffsetsPickerV2Props): JSX.Element => {\n const classes = useStyles();\n const { selectedPads, selectedWellAssetIds, setSelectedPads, setSelectedWellAssetIds } =\n useOffsetPickerActions({ opened, appPad, assets, currentOffsetSetting });\n\n const wellsList: AssetSelectorPadWell[] = useMemo(\n () => selectedPads.reduce<AssetSelectorPadWell[]>((result, pad) => result.concat(pad.wells), []),\n [selectedPads]\n );\n\n const handlePadSelect = (pads: AssetSelectorPad[]) => {\n setSelectedPads(pads);\n };\n\n const handleWellSelect = (event: React.ChangeEvent<{ value: unknown }>) => {\n setSelectedWellAssetIds(event.target.value as number[]);\n };\n\n const handleSave = () => {\n const selectedWells = wellsList.filter(well => selectedWellAssetIds.includes(well.assetId));\n const offsetsMap = new Map(currentOffsetSetting.map(offset => [offset.selectedWellId, offset]));\n\n const newOffsets = selectedWells.map(well => {\n const preSelectedWell = offsetsMap.get(+well.assetId);\n if (preSelectedWell) return preSelectedWell;\n\n return convertWellToOffset(well);\n });\n\n onSave(newOffsets);\n onClose();\n };\n\n const padSelectorQuery = useMemo(\n () => ({\n company: [companyId],\n fields: ['pad.wells'],\n sort: 'last_active_at',\n per_page: 100,\n }),\n [companyId]\n );\n\n return (\n <Modal\n open={opened}\n onClose={onClose}\n title=\"Offset Wells\"\n size=\"small\"\n actions={\n <>\n <Button onClick={onClose} className={classes.cancelButton} data-testid=\"closeButton\">\n Cancel\n </Button>\n <Button variant=\"contained\" color=\"primary\" onClick={handleSave} data-testid=\"saveButton\">\n Save\n </Button>\n </>\n }\n >\n <AssetsMultipleSelector\n selectedAssets={selectedPads as AssetsMultipleSelectorProps['selectedAssets']}\n onChange={handlePadSelect as AssetsMultipleSelectorProps['onChange']}\n label=\"Pad *\"\n type=\"pad\"\n customRequestQueryParams={padSelectorQuery}\n />\n <FormControl\n data-testid=\"offsetWellDropdown\"\n margin=\"normal\"\n disabled={!wellsList.length}\n fullWidth\n required\n >\n <InputLabel htmlFor=\"wells\" shrink={!isEmpty(selectedWellAssetIds)}>\n Well\n </InputLabel>\n <Select\n multiple\n inputProps={{ name: 'wells', id: 'well-select' }}\n value={selectedWellAssetIds}\n onChange={handleWellSelect}\n renderValue={(selected) => `${(selected as string[]).length} selected`}\n >\n {wellsList.map(well => (\n <MenuItem\n key={well.id}\n value={well.assetId}\n data-testid={`${well.name}_offsetWell_menuItem`}\n >\n <Checkbox size=\"small\" checked={selectedWellAssetIds.includes(well.assetId)} />\n <ListItemText primary={well.name} />\n </MenuItem>\n ))}\n </Select>\n </FormControl>\n </Modal>\n );\n};\n\nexport default PadOffsetsPickerV2;\n"],"names":["useStyles","makeStyles","cancelButton","marginLeft","marginRight","PadOffsetsPickerV2","_ref","assets","opened","currentOffsetSetting","appPad","companyId","onSave","onClose","classes","_useOffsetPickerActio","useOffsetPickerActions","selectedPads","selectedWellAssetIds","setSelectedPads","setSelectedWellAssetIds","wellsList","useMemo","reduce","result","pad","concat","wells","padSelectorQuery","company","fields","sort","per_page","_jsxs","Modal","open","title","size","actions","_Fragment","children","_jsx","Button","onClick","className","variant","color","selectedWells","filter","well","includes","assetId","offsetsMap","Map","map","offset","selectedWellId","newOffsets","preSelectedWell","get","Number","selectedWellIdNew","id","selectedWellName","name","selectedWellStatus","status","selectedStages","stages","convertWellToOffset","AssetsMultipleSelector","selectedAssets","onChange","pads","label","type","customRequestQueryParams","FormControl","margin","disabled","length","fullWidth","required","InputLabel","htmlFor","shrink","isEmpty","Select","multiple","inputProps","value","event","target","renderValue","selected","MenuItem","Checkbox","checked","ListItemText","primary"],"mappings":"
|
|
1
|
+
{"version":3,"file":"PadOffsetsPickerV2.js","sources":["../../../src/components/PadOffsetsPickerV2/PadOffsetsPickerV2.tsx"],"sourcesContent":["import { isEmpty } from 'lodash';\nimport {\n Button,\n FormControl,\n InputLabel,\n Select,\n MenuItem,\n Checkbox,\n ListItemText,\n makeStyles,\n} from '@material-ui/core';\nimport React, { useMemo } from 'react';\n\nimport { Modal, AssetsMultipleSelector } from '~/components';\nimport { AssetsMultipleSelectorProps } from '~/components/AssetsMultipleSelector/AssetsMultipleSelector';\nimport { AssetSelectorPad, AssetSelectorPadWell, PadOffsetsPickerV2Props } from './types';\nimport { useOffsetPickerActions } from './useOffsetPickerActions';\nimport { OffsetSetting } from '~/types';\n\nconst useStyles = makeStyles({\n cancelButton: {\n marginLeft: 'auto',\n marginRight: 16,\n },\n});\n\nconst convertWellToOffset = (well: AssetSelectorPadWell): OffsetSetting => ({\n selectedWellId: Number(well.assetId),\n selectedWellIdNew: well.id,\n selectedWellName: well.name,\n selectedWellStatus: well.status,\n selectedStages: [],\n stages: {},\n});\n\nconst PadOffsetsPickerV2 = ({\n assets,\n opened,\n currentOffsetSetting,\n appPad,\n companyId,\n onSave,\n onClose,\n}: PadOffsetsPickerV2Props): JSX.Element => {\n const classes = useStyles();\n const { selectedPads, selectedWellAssetIds, setSelectedPads, setSelectedWellAssetIds } =\n useOffsetPickerActions({ opened, appPad, assets, currentOffsetSetting });\n\n const wellsList: AssetSelectorPadWell[] = useMemo(\n () => selectedPads.reduce<AssetSelectorPadWell[]>((result, pad) => result.concat(pad.wells), []),\n [selectedPads]\n );\n\n const handlePadSelect = (pads: AssetSelectorPad[]) => {\n setSelectedPads(pads);\n };\n\n const handleWellSelect = (event: React.ChangeEvent<{ value: unknown }>) => {\n setSelectedWellAssetIds(event.target.value as number[]);\n };\n\n const handleSave = () => {\n const selectedWells = wellsList.filter(well => selectedWellAssetIds.includes(well.assetId));\n const offsetsMap = new Map(currentOffsetSetting.map(offset => [offset.selectedWellId, offset]));\n\n const newOffsets = selectedWells.map(well => {\n const preSelectedWell = offsetsMap.get(+well.assetId);\n if (preSelectedWell) return preSelectedWell;\n\n return convertWellToOffset(well);\n });\n\n onSave(newOffsets);\n onClose();\n };\n\n const padSelectorQuery = useMemo(\n () => ({\n company: [companyId],\n fields: ['pad.wells'],\n sort: 'last_active_at',\n per_page: 100,\n }),\n [companyId]\n );\n\n return (\n <Modal\n open={opened}\n onClose={onClose}\n title=\"Offset Wells\"\n size=\"small\"\n actions={\n <>\n <Button onClick={onClose} className={classes.cancelButton} data-testid=\"closeButton\">\n Cancel\n </Button>\n <Button variant=\"contained\" color=\"primary\" onClick={handleSave} data-testid=\"saveButton\">\n Save\n </Button>\n </>\n }\n >\n <AssetsMultipleSelector\n selectedAssets={selectedPads as AssetsMultipleSelectorProps['selectedAssets']}\n onChange={handlePadSelect as AssetsMultipleSelectorProps['onChange']}\n label=\"Pad *\"\n type=\"pad\"\n customRequestQueryParams={padSelectorQuery}\n />\n <FormControl\n data-testid=\"offsetWellDropdown\"\n margin=\"normal\"\n disabled={!wellsList.length}\n fullWidth\n required\n >\n <InputLabel htmlFor=\"wells\" shrink={!isEmpty(selectedWellAssetIds)}>\n Well\n </InputLabel>\n <Select\n multiple\n inputProps={{ name: 'wells', id: 'well-select' }}\n value={selectedWellAssetIds}\n onChange={handleWellSelect}\n renderValue={(selected) => `${(selected as string[]).length} selected`}\n >\n {wellsList.map(well => (\n <MenuItem\n key={well.id}\n value={well.assetId}\n data-testid={`${well.name}_offsetWell_menuItem`}\n >\n <Checkbox size=\"small\" checked={selectedWellAssetIds.includes(well.assetId)} />\n <ListItemText primary={well.name} />\n </MenuItem>\n ))}\n </Select>\n </FormControl>\n </Modal>\n );\n};\n\nexport default PadOffsetsPickerV2;\n"],"names":["useStyles","makeStyles","cancelButton","marginLeft","marginRight","PadOffsetsPickerV2","_ref","assets","opened","currentOffsetSetting","appPad","companyId","onSave","onClose","classes","_useOffsetPickerActio","useOffsetPickerActions","selectedPads","selectedWellAssetIds","setSelectedPads","setSelectedWellAssetIds","wellsList","useMemo","reduce","result","pad","concat","wells","padSelectorQuery","company","fields","sort","per_page","_jsxs","Modal","open","title","size","actions","_Fragment","children","_jsx","Button","onClick","className","variant","color","selectedWells","filter","well","includes","assetId","offsetsMap","Map","map","offset","selectedWellId","newOffsets","preSelectedWell","get","Number","selectedWellIdNew","id","selectedWellName","name","selectedWellStatus","status","selectedStages","stages","convertWellToOffset","AssetsMultipleSelector","selectedAssets","onChange","pads","label","type","customRequestQueryParams","FormControl","margin","disabled","length","fullWidth","required","InputLabel","htmlFor","shrink","isEmpty","Select","multiple","inputProps","value","event","target","renderValue","selected","MenuItem","Checkbox","checked","ListItemText","primary"],"mappings":"im2BAmBA,IAAMA,EAAYC,EAAW,CAC3BC,aAAc,CACZC,WAAY,OACZC,YAAa,MAaXC,EAAqB,SAQiBC,GAAA,IAP1CC,IAAAA,OACAC,IAAAA,OACAC,IAAAA,qBACAC,IAAAA,OACAC,IAAAA,UACAC,IAAAA,OACAC,IAAAA,QAEMC,EAAUd,IAChBe,EACEC,EAAuB,CAAER,OAAAA,EAAQE,OAAAA,EAAQH,OAAAA,EAAQE,qBAAAA,IAD3CQ,IAAAA,aAAcC,IAAAA,qBAAsBC,IAAAA,gBAAiBC,IAAAA,wBAGvDC,EAAoCC,GACxC,WAAA,OAAML,EAAaM,QAA+B,SAACC,EAAQC,GAAG,OAAKD,EAAOE,OAAOD,EAAIE,MAAM,GAAE,MAC7F,CAACV,IA0BGW,EAAmBN,GACvB,WAAA,MAAO,CACLO,QAAS,CAAClB,GACVmB,OAAQ,CAAC,aACTC,KAAM,iBACNC,SAAU,IACX,GACD,CAACrB,IAGH,OACEsB,EAACC,EAAK,CACJC,KAAM3B,EACNK,QAASA,EACTuB,MAAM,eACNC,KAAK,QACLC,QACEL,EAAAM,EAAA,CAAAC,SAAA,CACEC,EAACC,EAAM,CAACC,QAAS9B,EAAS+B,UAAW9B,EAAQZ,aAAc,cAAY,cAAasC,SAAA,WAGpFC,EAACC,EAAM,CAACG,QAAQ,YAAYC,MAAM,UAAUH,QApCjC,WACjB,IAAMI,EAAgB1B,EAAU2B,QAAO,SAAAC,GAAI,OAAI/B,EAAqBgC,SAASD,EAAKE,YAC5EC,EAAa,IAAIC,IAAI5C,EAAqB6C,KAAI,SAAAC,GAAM,MAAI,CAACA,EAAOC,eAAgBD,EAAO,KAEvFE,EAAaV,EAAcO,KAAI,SAAAL,GACnC,IAAMS,EAAkBN,EAAWO,KAAKV,EAAKE,SAC7C,OAAIO,GAzCkB,SAACT,GAA0B,MAAqB,CAC1EO,eAAgBI,OAAOX,EAAKE,SAC5BU,kBAAmBZ,EAAKa,GACxBC,iBAAkBd,EAAKe,KACvBC,mBAAoBhB,EAAKiB,OACzBC,eAAgB,GAChBC,OAAQ,CAAC,EACV,CAoCYC,CAAoBpB,EAC7B,IAEArC,EAAO6C,GACP5C,KAwBuE,cAAY,aAAY2B,SAAA,YAI5FA,SAAA,CAEDC,EAAC6B,EAAsB,CACrBC,eAAgBtD,EAChBuD,SApDkB,SAACC,GACvBtD,EAAgBsD,IAoDZC,MAAM,QACNC,KAAK,MACLC,yBAA0BhD,IAE5BK,EAAC4C,EAAW,CACV,cAAY,qBACZC,OAAO,SACPC,UAAW1D,EAAU2D,OACrBC,WAAS,EACTC,UAAQ,EAAA1C,SAAA,CAERC,EAAC0C,EAAU,CAACC,QAAQ,QAAQC,QAASC,EAAQpE,GAAsBsB,SAAA,SAGnEC,EAAC8C,EAAM,CACLC,UAAQ,EACRC,WAAY,CAAEzB,KAAM,QAASF,GAAI,eACjC4B,MAAOxE,EACPsD,SAnEiB,SAACmB,GACxBvE,EAAwBuE,EAAMC,OAAOF,QAmE/BG,YAAa,SAACC,GAAQ,MAASA,GAAAA,OAAAA,EAAsBd,OAAM,YAAY,EAAAxC,SAEtEnB,EAAUiC,KAAI,SAAAL,GAAI,OACjBhB,EAAC8D,EAAQ,CAEPL,MAAOzC,EAAKE,QACZ,cAAgBF,GAAAA,OAAAA,EAAKe,KAA2B,wBAAAxB,SAAA,CAEhDC,EAACuD,EAAQ,CAAC3D,KAAK,QAAQ4D,QAAS/E,EAAqBgC,SAASD,EAAKE,WACnEV,EAACyD,EAAY,CAACC,QAASlD,EAAKe,SALvBf,EAAKa,cAYxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePadsByRadius.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/hooks/usePadsByRadius.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"usePadsByRadius.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/hooks/usePadsByRadius.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AA0BrC,eAAO,MAAM,eAAe,0CAIzB;IACD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,gBA2BA,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/defineProperty";import{useMemo as e}from"react";import{mapbox as r}from"../../../utils/index.js";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?n(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var o=
|
|
1
|
+
import t from"@babel/runtime/helpers/defineProperty";import{useMemo as e}from"react";import{mapbox as r}from"../../../utils/index.js";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?n(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var o=function(t){var e,n,i,o=null==t||null===(e=t.wells)||void 0===e||null===(n=e[0])||void 0===n||null===(i=n.topHole)||void 0===i?void 0:i.coordinates;if(o&&r.isValidLatLng(o)&&r.isValidCoordinates(o)&&(0!==o[0]||0!==o[1]))return o},c=function(t,e){var n=o(e);if(n)return r.getDistanceByCoordinates(t,n)},u=function(t){var r=t.radiusMiles,n=t.pads,u=t.selectedPadId,l=e((function(){return n.find((function(t){return t.id.toString()===(null==u?void 0:u.toString())}))}),[n,u]),s=o(l),f=e((function(){return s?n.map((function(t){return i(i({},t),{},{distanceMiles:c(s,t)})})):n}),[n,s]);return e((function(){return void 0!==r&&s?f.filter((function(t){return void 0!==t.distanceMiles&&t.distanceMiles<=r})):f}),[f,r,s])};export{u as usePadsByRadius};
|
|
2
2
|
//# sourceMappingURL=usePadsByRadius.js.map
|