@corva/ui 0.49.0-1 → 0.49.0-2

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.
@@ -49,10 +49,13 @@ declare function getChartOptions({ seriesCount, recordsCount, labelMinLength, la
49
49
  title: {
50
50
  text: string;
51
51
  style: {
52
- fontSize: number;
52
+ fontSize: string;
53
+ cursor: string;
54
+ color: string;
53
55
  };
54
56
  };
55
57
  labels: {
58
+ padding: number;
56
59
  style: {
57
60
  color: string;
58
61
  };
@@ -61,6 +64,7 @@ declare function getChartOptions({ seriesCount, recordsCount, labelMinLength, la
61
64
  yAxis: {
62
65
  gridLineColor: string;
63
66
  labels: {
67
+ padding: number;
64
68
  style: {
65
69
  color: string;
66
70
  };
@@ -68,7 +72,9 @@ declare function getChartOptions({ seriesCount, recordsCount, labelMinLength, la
68
72
  title: {
69
73
  text: string;
70
74
  style: {
71
- fontSIze: number;
75
+ fontSize: string;
76
+ cursor: string;
77
+ color: string;
72
78
  };
73
79
  };
74
80
  };
@@ -1 +1 @@
1
- {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/components/Chart/options.js"],"names":[],"mappings":";AAgBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8DC"}
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/components/Chart/options.js"],"names":[],"mappings":";AAgBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwEC"}
@@ -1 +1 @@
1
- import t from"@babel/runtime/helpers/defineProperty";import e from"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import r from"../../../../LoadingIndicator/LoadingIndicator.js";import{SEGMENTS as o}from"../../../../../constants/segment.js";import"../AppActions/AppActions.css.js";import{jsx as i}from"react/jsx-runtime";import"../AppSettingsDialog/AppSettingsDialog.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import s from"../AppInfoMessage/AppInfoMessage.js";import"../DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../../Modal/CorvaModal.js";import"@babel/runtime/helpers/objectWithoutProperties";import"@babel/runtime/helpers/slicedToArray";import"react";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import"../../../AppHeader/AppHeader.js";import"../../../AppSideBar/AppSideBar.js";import"../../../AppsDataProvider/AppsDataProvider.js";import"../../DevCenterAppContainer.js";import"../../../NavigationBar/NavigationBar.js";import"../../../SideBar/SideBar.js";import"../../../AppSettingsPopover/AppSettingsPopover.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react-router";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../AppContext.js";import"../../../../AssetEditor/index.js";import"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../Typography.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import"../../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"lodash";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/index.js";import"../../../../SettingEditors/DropdownEditor/index.js";import"../../../../SettingEditors/RadioEditor/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/buttons/DragToZoomButton.js";import"../../../../Chart/components/buttons/ZoomInButton.js";import"../../../../Chart/components/buttons/ZoomOutButton.js";import"../../../../Chart/components/buttons/PanButton.js";import"../../../../Chart/components/buttons/ResetZoomButton.js";import"../../../../Chart/components/buttons/HideAxesButton.js";import"../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../TruncatedText/index.js";import"../../../../RangeSlider/RangeSlider.js";import"../../../../AdvancedSlider/AdvancedSlider.js";import"../../../../Breadcrumbs/index.js";import"../../../../VirtualizedTable/index.js";import"../../../../EmptyView/EmptyView.js";import p from"../../../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../../../Button/index.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"../../../../CustomSelect/index.js";import"../../../../Tabs/Tabs.js";import"../../../../Tabs/Tab.js";import"../../../../ResizableTable/ResizableTable.js";import"../../../../Drillstring/BHASchematic.js";import"../../../../Drillstring/BHATable/index.js";import"../../../../Drillstring/BHAComponentIcon.js";import"../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../Drillstring/BHATileIcon.js";import"../../../../Drillstring/BHATile/BHATile.js";import"../../../../Drillstring/BHAList/BHAList.js";import"../../../../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../../../Casing/CasingTable/index.js";import"../../../../Casing/CasingComponentIcon.js";import"../../../../Casing/CasingTileIcon.js";import"../../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../../Casing/CasingTile/CasingTile.js";import"../../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../WellSummary/WellSummaryItemValue.js";import"../../../../WellSummary/ActivitySummaryChart.js";import"../../../../WellSummary/FracWirelineTimeChart.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../../../clients/jsonApi/index.js";import"../../../../../constants/goals.js";import"../../../../../constants/alerts.js";import"../../../../../constants/apps.js";import"../../../../../constants/drillstring.js";import"../../../../../constants/completion.js";import"../../../../../constants/notifications.js";import"../../../../../constants/feed.js";import"../../../../../constants/bha.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"../../../../OffsetWellPickerV4/OffsetWellPickerV4.js";import"../../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"uuid";import"../../../../ConfirmationDialog.js";import"../../../../TextLink/index.js";import"../../../../Avatar/index.js";import"../../../../Template/TemplatePopover/index.js";import"../../../../MenuItem/index.js";import"../../../../PadModeSelect/PadModeSelect.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"@material-ui/core";import"../../../../Table/TableToolbar/TableToolbar.js";import"../../../../Table/TableContainer/TableContainer.js";import"../../../../Table/TableCell/TableCell.js";import"../../../../Tooltip/MuiTooltipDcWrapper.js";import"../../../../PriceInput/PriceInput.js";import"../../../../LabelsCounter/LabelsCounter.js";import"../../../../Stepper/Step.js";import"../../../../Stepper/StepsWrapper.js";import"../../../../Stepper/Stepper.js";import"../../../../Comment/CommentIcon/index.js";import"../../../../FilesLoader/FilesLoader.js";import"../../../../FilesLoader/Icons/FileIcon.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"../../../../HelpCenter/HelpCenterIcon.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/InputAdornmentLeft.js";import"../../../../Search/components/Groups.js";import n from"../../../../EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import a from"./components/ChooseAssetButton/index.js";function m(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function l(e){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?m(Object(o),!0).forEach((function(r){t(e,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):m(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function d(t){var m=t.AppComponent,d=t.app,c=t.appData,j=t.appProps,u=t.availability,A=t.isCLIApp,S=t.isLoading,C=t.isMultiRig,g=t.layoutEnvironment,b=t.openIntercom,P=t.segment,f=t.toggleAppSettingsDialog;if(!d.package)return i(s,{app:d,children:i(p,{title:p.APP_MESSAGES.appPackageWasNotFound.title,subtitle:p.APP_MESSAGES.appPackageWasNotFound.subtitle,state:p.EMPTY_STATES.error})});if(S)return i(s,{app:d,children:i(r,{})});if(!u.hasProductSubscription||!u.isAppSubscribedForAsset){var E=p.APP_MESSAGES,T=E.appNotSubscribed,h=E.appNotSubscribedForAsset,x=p.EMPTY_STATES,y=u.isProductSubscriptionExist?h:T,D=y.title,I=y.subtitle;return i(s,{app:d,children:i(p,{title:D,subtitle:I,state:x.noSubscription})})}if(!m)return i(s,{app:d,children:i(p,{title:"App component was not found",state:p.EMPTY_STATES.empty})});if(!C){var v;if(c.rig&&!c.well)return i(s,{app:d,children:i(p,{actions:A&&i(a,{toggleAppSettingsDialog:f}),title:"".concat(c.rig.name," has no active well"),state:p.EMPTY_STATES.empty})});if("general"===(null==g?void 0:g.type)&&P===o.COMPLETION&&!c.fracFleet)return i(s,{app:d,children:i(p,{actions:A&&i(a,{toggleAppSettingsDialog:f}),title:p.APP_MESSAGES.fracFleetWasNotFound.title,state:p.EMPTY_STATES.empty})});if(!("general"!==(null==g?void 0:g.type)||P!==o.COMPLETION||null!==(v=c.fracFleet)&&void 0!==v&&v.current_pad_id||d.settings.padId))return i(s,{app:d,children:i(p,{actions:A&&i(a,{toggleAppSettingsDialog:f}),title:p.APP_MESSAGES.fracFleetHasNoPad.title,state:p.EMPTY_STATES.empty})});if("general"===(null==g?void 0:g.type)&&P===o.COMPLETION&&(!c.wells||c.wells.length<1))return i(s,{app:d,children:i(p,{actions:A&&i(a,{toggleAppSettingsDialog:f}),title:p.APP_MESSAGES.padHasNoWells.title,state:p.EMPTY_STATES.empty})});if(!(c.rig||c.well||c.settings||c.wells))return i(s,{app:d,children:i(p,{actions:A&&i(a,{toggleAppSettingsDialog:f}),state:p.EMPTY_STATES.empty,title:"No asset data were found"})})}return i(e,{ErrorView:function(t){return i(p,l(l({},t),{},{title:p.APP_MESSAGES.internalAppError.title,subtitle:i(n,{openIntercom:b}),state:p.EMPTY_STATES.error}))},app:d,withAppHeader:!0,children:i(m,l(l(l({app:d},d.settings),c),j))})}d.defaultProps={availability:{hasProductSubscription:!0,isAppSubscribedForAsset:!0}};export{d as default};
1
+ import t from"@babel/runtime/helpers/defineProperty";import e from"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import r from"../../../../LoadingIndicator/LoadingIndicator.js";import{SEGMENTS as o}from"../../../../../constants/segment.js";import"../AppActions/AppActions.css.js";import{jsx as i}from"react/jsx-runtime";import"../AppSettingsDialog/AppSettingsDialog.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import s from"../AppInfoMessage/AppInfoMessage.js";import"../DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../../Modal/CorvaModal.js";import"@babel/runtime/helpers/objectWithoutProperties";import"@babel/runtime/helpers/slicedToArray";import"react";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import"../../../AppHeader/AppHeader.js";import"../../../AppSideBar/AppSideBar.js";import"../../../AppsDataProvider/AppsDataProvider.js";import"../../DevCenterAppContainer.js";import"../../../NavigationBar/NavigationBar.js";import"../../../SideBar/SideBar.js";import"../../../AppSettingsPopover/AppSettingsPopover.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react-router";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../AppContext.js";import"../../../../AssetEditor/index.js";import"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../Typography.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import"../../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"lodash";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/index.js";import"../../../../SettingEditors/DropdownEditor/index.js";import"../../../../SettingEditors/RadioEditor/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/buttons/DragToZoomButton.js";import"../../../../Chart/components/buttons/ZoomInButton.js";import"../../../../Chart/components/buttons/ZoomOutButton.js";import"../../../../Chart/components/buttons/PanButton.js";import"../../../../Chart/components/buttons/ResetZoomButton.js";import"../../../../Chart/components/buttons/HideAxesButton.js";import"../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../TruncatedText/index.js";import"../../../../RangeSlider/RangeSlider.js";import"../../../../AdvancedSlider/AdvancedSlider.js";import"../../../../Breadcrumbs/index.js";import"../../../../VirtualizedTable/index.js";import"../../../../EmptyView/EmptyView.js";import p from"../../../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../../../Button/index.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"../../../../CustomSelect/index.js";import"../../../../Tabs/Tabs.js";import"../../../../Tabs/Tab.js";import"../../../../ResizableTable/ResizableTable.js";import"../../../../Drillstring/BHASchematic.js";import"../../../../Drillstring/BHATable/index.js";import"../../../../Drillstring/BHAComponentIcon.js";import"../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../Drillstring/BHATileIcon.js";import"../../../../Drillstring/BHATile/BHATile.js";import"../../../../Drillstring/BHAList/BHAList.js";import"../../../../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../../../Casing/CasingTable/index.js";import"../../../../Casing/CasingComponentIcon.js";import"../../../../Casing/CasingTileIcon.js";import"../../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../../Casing/CasingTile/CasingTile.js";import"../../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../WellSummary/WellSummaryItemValue.js";import"../../../../WellSummary/ActivitySummaryChart.js";import"../../../../WellSummary/FracWirelineTimeChart.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../../../clients/jsonApi/index.js";import"../../../../../constants/goals.js";import"../../../../../constants/alerts.js";import"../../../../../constants/apps.js";import"../../../../../constants/drillstring.js";import"../../../../../constants/completion.js";import"../../../../../constants/notifications.js";import"../../../../../constants/feed.js";import"../../../../../constants/bha.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"../../../../OffsetWellPickerV4/OffsetWellPickerV4.js";import"../../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"uuid";import"../../../../ConfirmationDialog.js";import"../../../../TextLink/index.js";import"../../../../Avatar/index.js";import"../../../../Template/TemplatePopover/index.js";import"../../../../MenuItem/index.js";import"../../../../PadModeSelect/PadModeSelect.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"@material-ui/core";import"../../../../Table/TableToolbar/TableToolbar.js";import"../../../../Table/TableContainer/TableContainer.js";import"../../../../Table/TableCell/TableCell.js";import"../../../../Tooltip/MuiTooltipDcWrapper.js";import"../../../../PriceInput/PriceInput.js";import"../../../../LabelsCounter/LabelsCounter.js";import"../../../../Stepper/Step.js";import"../../../../Stepper/StepsWrapper.js";import"../../../../Stepper/Stepper.js";import"../../../../Comment/CommentIcon/index.js";import"../../../../FilesLoader/FilesLoader.js";import"../../../../FilesLoader/Icons/FileIcon.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"../../../../HelpCenter/HelpCenterIcon.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/InputAdornmentLeft.js";import"../../../../Search/components/Groups.js";import n from"../../../../EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import a from"./components/ChooseAssetButton/index.js";function m(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function l(e){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?m(Object(o),!0).forEach((function(r){t(e,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):m(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function d(t){var m=t.AppComponent,d=t.app,c=t.appData,j=t.appProps,u=t.availability,A=t.isCLIApp,S=t.isLoading,C=t.isMultiRig,g=t.layoutEnvironment,b=t.openIntercom,P=t.segment,f=t.toggleAppSettingsDialog;if(!d.package)return i(s,{app:d,children:i(p,{title:p.APP_MESSAGES.appPackageWasNotFound.title,subtitle:p.APP_MESSAGES.appPackageWasNotFound.subtitle,state:p.EMPTY_STATES.error})});if(S)return i(s,{app:d,children:i(r,{})});if(!u.hasProductSubscription||!u.isAppSubscribedForAsset){var E=p.APP_MESSAGES,T=E.appNotSubscribed,h=E.appNotSubscribedForAsset,x=p.EMPTY_STATES,y=u.hasProductSubscription?h:T,D=y.title,I=y.subtitle;return i(s,{app:d,children:i(p,{title:D,subtitle:I,state:x.noSubscription})})}if(!m)return i(s,{app:d,children:i(p,{title:"App component was not found",state:p.EMPTY_STATES.empty})});if(!C){var v;if(c.rig&&!c.well)return i(s,{app:d,children:i(p,{actions:A&&i(a,{toggleAppSettingsDialog:f}),title:"".concat(c.rig.name," has no active well"),state:p.EMPTY_STATES.empty})});if("general"===(null==g?void 0:g.type)&&P===o.COMPLETION&&!c.fracFleet)return i(s,{app:d,children:i(p,{actions:A&&i(a,{toggleAppSettingsDialog:f}),title:p.APP_MESSAGES.fracFleetWasNotFound.title,state:p.EMPTY_STATES.empty})});if(!("general"!==(null==g?void 0:g.type)||P!==o.COMPLETION||null!==(v=c.fracFleet)&&void 0!==v&&v.current_pad_id||d.settings.padId))return i(s,{app:d,children:i(p,{actions:A&&i(a,{toggleAppSettingsDialog:f}),title:p.APP_MESSAGES.fracFleetHasNoPad.title,state:p.EMPTY_STATES.empty})});if("general"===(null==g?void 0:g.type)&&P===o.COMPLETION&&(!c.wells||c.wells.length<1))return i(s,{app:d,children:i(p,{actions:A&&i(a,{toggleAppSettingsDialog:f}),title:p.APP_MESSAGES.padHasNoWells.title,state:p.EMPTY_STATES.empty})});if(!(c.rig||c.well||c.settings||c.wells))return i(s,{app:d,children:i(p,{actions:A&&i(a,{toggleAppSettingsDialog:f}),state:p.EMPTY_STATES.empty,title:"No asset data were found"})})}return i(e,{ErrorView:function(t){return i(p,l(l({},t),{},{title:p.APP_MESSAGES.internalAppError.title,subtitle:i(n,{openIntercom:b}),state:p.EMPTY_STATES.error}))},app:d,withAppHeader:!0,children:i(m,l(l(l({app:d},d.settings),c),j))})}d.defaultProps={availability:{hasProductSubscription:!0,isAppSubscribedForAsset:!0}};export{d as default};
@@ -1,10 +1,9 @@
1
- export function AdvancedSearch({ companyId, subjectWellId, onChange, selectedWellIds, onHideAdvancedSearch, viewType, }: {
1
+ export function AdvancedSearch({ companyId, subjectWellId, onChange, selectedWellIds, onHideAdvancedSearch, }: {
2
2
  companyId: any;
3
3
  subjectWellId: any;
4
4
  onChange: any;
5
5
  selectedWellIds: any;
6
6
  onHideAdvancedSearch: any;
7
- viewType: any;
8
7
  }): JSX.Element;
9
8
  export namespace AdvancedSearch {
10
9
  namespace propTypes {
@@ -13,7 +12,6 @@ export namespace AdvancedSearch {
13
12
  const onChange: PropTypes.Validator<(...args: any[]) => any>;
14
13
  const selectedWellIds: PropTypes.Validator<number[]>;
15
14
  const onHideAdvancedSearch: PropTypes.Validator<(...args: any[]) => any>;
16
- const viewType: PropTypes.Validator<string>;
17
15
  }
18
16
  }
19
17
  import PropTypes from "prop-types";
@@ -1 +1 @@
1
- {"version":3,"file":"AdvancedSearch.d.ts","sourceRoot":"","sources":["../../../../../../src/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js"],"names":[],"mappings":"AASO;;;;;;;gBAyEN"}
1
+ {"version":3,"file":"AdvancedSearch.d.ts","sourceRoot":"","sources":["../../../../../../src/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js"],"names":[],"mappings":"AASO;;;;;;gBAuEN"}
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/slicedToArray";import{useState as r,useRef as o}from"react";import t from"prop-types";import{TextField as n,InputAdornment as a,Popover as i}from"@material-ui/core";import{Search as l}from"@material-ui/icons";import s from"./AutoCompleteAssetSearch.js";import c from"./AdvancedSearch.module.css.js";import{jsxs as d,Fragment as u,jsx as m}from"react/jsx-runtime";var p=function(t){var p=t.companyId,f=t.subjectWellId,h=t.onChange,v=t.selectedWellIds,I=t.onHideAdvancedSearch,g=t.viewType,y=r(null),b=e(y,2),A=b[0],C=b[1],R=r(""),j=e(R,2),q=j[0],T=j[1],W=o(),w=function(){T(""),C(null),I()};return d(u,{children:[m(n,{"data-testid":"ows_advanced_search",id:"well-section-search-textfield",placeholder:"Add Offset ...",InputProps:{startAdornment:m(a,{position:"start",children:m(l,{className:c.searchIcon})}),className:c.searchInput},classes:{root:c.searchRoot},ref:W,value:q,onChange:function(e){T(e.target.value),e.target.value&&C(W.current)},onClick:function(e){C(e.currentTarget)}}),m(i,{open:Boolean(A),anchorEl:A,onClose:w,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:m(s,{subjectWellId:f,value:q,company:p,selectedWellIds:v,onChange:h,onClose:w,viewType:g})})]})};p.propTypes={companyId:t.number.isRequired,subjectWellId:t.number.isRequired,onChange:t.func.isRequired,selectedWellIds:t.arrayOf(t.number).isRequired,onHideAdvancedSearch:t.func.isRequired,viewType:t.string.isRequired};export{p as AdvancedSearch};
1
+ import e from"@babel/runtime/helpers/slicedToArray";import{useState as r,useRef as o}from"react";import t from"prop-types";import{TextField as n,InputAdornment as a,Popover as l}from"@material-ui/core";import{Search as c}from"@material-ui/icons";import i from"./AutoCompleteAssetSearch.js";import s from"./AdvancedSearch.module.css.js";import{jsxs as d,Fragment as u,jsx as m}from"react/jsx-runtime";var p=function(t){var p=t.companyId,f=t.subjectWellId,h=t.onChange,v=t.selectedWellIds,I=t.onHideAdvancedSearch,g=r(null),b=e(g,2),A=b[0],C=b[1],y=r(""),j=e(y,2),R=j[0],W=j[1],q=o(),O=function(){W(""),C(null),I()};return d(u,{children:[m(n,{"data-testid":"ows_advanced_search",id:"well-section-search-textfield",placeholder:"Add Offset ...",InputProps:{startAdornment:m(a,{position:"start",children:m(c,{className:s.searchIcon})}),className:s.searchInput},classes:{root:s.searchRoot},ref:q,value:R,onChange:function(e){W(e.target.value),e.target.value&&C(q.current)},onClick:function(e){C(e.currentTarget)}}),m(l,{open:Boolean(A),anchorEl:A,onClose:O,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:m(i,{subjectWellId:f,value:R,company:p,selectedWellIds:v,onChange:h,onClose:O})})]})};p.propTypes={companyId:t.number.isRequired,subjectWellId:t.number.isRequired,onChange:t.func.isRequired,selectedWellIds:t.arrayOf(t.number).isRequired,onHideAdvancedSearch:t.func.isRequired};export{p as AdvancedSearch};
@@ -1,11 +1,10 @@
1
1
  export default AutoCompleteAssetSearch;
2
- declare function AutoCompleteAssetSearch({ company, subjectWellId, value, selectedWellIds, onChange, viewType, }: {
2
+ declare function AutoCompleteAssetSearch({ company, subjectWellId, value, selectedWellIds, onChange, }: {
3
3
  company: any;
4
4
  subjectWellId: any;
5
5
  value: any;
6
6
  selectedWellIds: any;
7
7
  onChange: any;
8
- viewType: any;
9
8
  }): JSX.Element;
10
9
  declare namespace AutoCompleteAssetSearch {
11
10
  namespace propTypes {
@@ -14,7 +13,6 @@ declare namespace AutoCompleteAssetSearch {
14
13
  const value: PropTypes.Validator<string>;
15
14
  const selectedWellIds: PropTypes.Validator<number[]>;
16
15
  const onChange: PropTypes.Validator<(...args: any[]) => any>;
17
- const viewType: PropTypes.Validator<string>;
18
16
  }
19
17
  }
20
18
  import PropTypes from "prop-types";
@@ -1 +1 @@
1
- {"version":3,"file":"AutoCompleteAssetSearch.d.ts","sourceRoot":"","sources":["../../../../../../src/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js"],"names":[],"mappings":";AAyFA;;;;;;;gBA6JC"}
1
+ {"version":3,"file":"AutoCompleteAssetSearch.d.ts","sourceRoot":"","sources":["../../../../../../src/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js"],"names":[],"mappings":";AAyFA;;;;;;gBA4JC"}
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/slicedToArray";import{useState as t,useMemo as r,useRef as o,useEffect as n}from"react";import i from"prop-types";import{get as s}from"lodash";import{withStyles as a,Tooltip as l,makeStyles as p,Chip as c,Input as u}from"@material-ui/core";import d from"@material-ui/icons/Close";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../utils/apiCalls.js";import"../../../effects/useAdvancedWells.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/defineProperty";import{ViewType as m}from"../../../constants.js";import"../../../../../utils/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/notifications.js";import"../../../../../constants/feed.js";import"../../../../../constants/bha.js";import"@babel/runtime/helpers/typeof";import"moment";import"react-virtualized";import{useAssetsData as f}from"../../../effects/useAssetsData.js";import h from"./AssetTypesSection.js";import x from"./AssetResultSection.js";import{SEARCH_CATEGORIES as b,CATEGORY_KEY_VALUES as g}from"./constants.js";import{jsxs as y,jsx as v,Fragment as C}from"react/jsx-runtime";var j=a((function(){return{tooltip:{backgroundColor:"#414141",color:"#ffffff",fontSize:"11px",lineHeight:"16px",borderRadius:"4px",boxShadow:"0px 4px 4px rgba(0, 0, 0, 0.12)",padding:"4px"}}}))(l),I=p((function(e){return{wrapper:{width:function(e){var t=e.viewType,r=e.searchWidth;return t===m.mobile?r:"996px"},display:"flex",flexDirection:"column",padding:16},inputWrapper:{display:"flex",width:"auto",margin:"0 8px 8px",alignItems:"center",flexWrap:"nowrap",justifyContent:"space-between"},selectedChip:{height:"24px",margin:"4px"},selectedChipDeleteIcon:{width:"16px",height:"16px",color:e.palette.primary.text6,"&:hover":{color:e.palette.primary.text1}},selectedLabel:{fontWeight:400,fontSize:"16px",lineHeight:"22px",color:e.palette.primary.text1,whiteSpace:"nowrap",paddingLeft:"4px",paddingRight:"8px"},disabledIcon:{width:"16px",height:"16px",color:e.palette.primary.text6,opacity:.4},closeIconButton:{padding:0,"&:hover $closeIcon":{color:e.palette.primary.text1}},searchInput:{width:"100%",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",borderBottom:"2px solid #03BCD4"},closeIcon:{color:e.palette.primary.text6,fontSize:"18px"}}})),w=function(i){var a=i.company,l=i.subjectWellId,p=i.value,m=i.selectedWellIds,w=i.onChange,A=i.viewType,W=t(null),R=e(W,2),S=R[0],T=R[1],k=t(null),D=e(k,2),q=D[0],z=D[1],N=t(1),L=e(N,2),B=L[0],H=L[1],K=r((function(){return window.innerWidth-32}),[]),O=I({viewType:A,searchWidth:K}),P=o();n((function(){z(p)}),[p]);var U=f(q,S,B,a,m),F=e(U,2),G=F[0],$=F[1],_=r((function(){return S&&$&&0!==$.length?$[0][1].filter((function(e){return e.checked})).length:0}),[S,$]);return y("div",{className:O.wrapper,children:[v("div",{className:O.inputWrapper,children:y("div",{className:O.searchInput,children:[S&&y(C,{children:[v(c,{"data-not-migrated-muichip":!0,classes:{root:O.selectedChip,deleteIcon:O.selectedChipDeleteIcon},label:s(b,[S,"labelPlural"],"Assets"),deleteIcon:v(d,{}),onDelete:function(){T(null)}}),_>0&&y("span",{className:O.selectedLabel,children:[_," Selected"]})]}),v(u,{"data-testid":"".concat("AutoCompleteAssetSearch","_searchInput"),inputRef:P,autoFocus:!0,disableUnderline:!0,fullWidth:!0,value:q||"",placeholder:"Add Offset ...",onChange:function(e){var t=e.target.value;P.current.focus(),z(t),H(1)},onKeyUp:function(t){var r=t.target.value,o=t.keyCode,n=g.find((function(t){var o=e(t,2);return o[0],o[1].autoCategorizedKey===r.trim().toLowerCase()}));if(n&&(13===o||32===o))return z(""),T(n[0]),void H(1);""===r&&8===o&&(T(null),H(1))}}),v(j,{title:"Clear",children:v(d,{className:S||q?O.selectedChipDeleteIcon:O.disabledIcon,onClick:function(){P.current.focus(),z(""),T(null),H(1)}})})]})}),!S&&!q&&v(h,{onClickAssetType:function(e){P.current.focus(),T(e),H(1)}}),(S||q)&&v(x,{subjectWellId:l,page:B,assetType:S,loading:G,groupedAssets:$,onClickAsset:function(e,t){w(!e.checked,[e.redirectAssetId],t)},onClickAllAsset:function(e,t){var r=$[0][1];w(e,r.map((function(e){return e.redirectAssetId})),t)},onScrollReached:function(e){"top"===e&&B>1&&H((function(e){return e-1})),"bottom"===e&&H((function(e){return e+1}))}})]})};w.propTypes={subjectWellId:i.number.isRequired,company:i.number.isRequired,value:i.string.isRequired,selectedWellIds:i.arrayOf(i.number).isRequired,onChange:i.func.isRequired,viewType:i.string.isRequired};export{w as default};
1
+ import e from"@babel/runtime/helpers/slicedToArray";import{useState as t,useMemo as r,useRef as n,useEffect as o}from"react";import i from"prop-types";import{get as s}from"lodash";import{withStyles as a,Tooltip as l,makeStyles as c,Chip as p,Input as u}from"@material-ui/core";import d from"@material-ui/icons/Close";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../utils/apiCalls.js";import"../../../effects/useAdvancedWells.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/defineProperty";import"../../../constants.js";import"../../../../../utils/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/notifications.js";import"../../../../../constants/feed.js";import"../../../../../constants/bha.js";import"@babel/runtime/helpers/typeof";import"moment";import"react-virtualized";import{useAssetsData as m}from"../../../effects/useAssetsData.js";import f from"./AssetTypesSection.js";import h from"./AssetResultSection.js";import{SEARCH_CATEGORIES as x,CATEGORY_KEY_VALUES as b}from"./constants.js";import{jsxs as g,jsx as y,Fragment as C}from"react/jsx-runtime";var j=a((function(){return{tooltip:{backgroundColor:"#414141",color:"#ffffff",fontSize:"11px",lineHeight:"16px",borderRadius:"4px",boxShadow:"0px 4px 4px rgba(0, 0, 0, 0.12)",padding:"4px"}}}))(l),I=c((function(e){return{wrapper:{width:function(e){return e.searchWidth},maxWidth:"996px",display:"flex",flexDirection:"column",padding:16},inputWrapper:{display:"flex",width:"auto",margin:"0 8px 8px",alignItems:"center",flexWrap:"nowrap",justifyContent:"space-between"},selectedChip:{height:"24px",margin:"4px"},selectedChipDeleteIcon:{width:"16px",height:"16px",color:e.palette.primary.text6,"&:hover":{color:e.palette.primary.text1}},selectedLabel:{fontWeight:400,fontSize:"16px",lineHeight:"22px",color:e.palette.primary.text1,whiteSpace:"nowrap",paddingLeft:"4px",paddingRight:"8px"},disabledIcon:{width:"16px",height:"16px",color:e.palette.primary.text6,opacity:.4},closeIconButton:{padding:0,"&:hover $closeIcon":{color:e.palette.primary.text1}},searchInput:{width:"100%",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",borderBottom:"2px solid #03BCD4"},closeIcon:{color:e.palette.primary.text6,fontSize:"18px"}}})),v=function(i){var a=i.company,l=i.subjectWellId,c=i.value,v=i.selectedWellIds,w=i.onChange,A=t(null),W=e(A,2),R=W[0],S=W[1],k=t(null),D=e(k,2),T=D[0],q=D[1],z=t(1),N=e(z,2),L=N[0],B=N[1],H=r((function(){return window.innerWidth-32}),[]),K=I({searchWidth:H}),O=n();o((function(){q(c)}),[c]);var P=m(T,R,L,a,v),U=e(P,2),F=U[0],G=U[1],$=r((function(){return R&&G&&0!==G.length?G[0][1].filter((function(e){return e.checked})).length:0}),[R,G]);return g("div",{className:K.wrapper,children:[y("div",{className:K.inputWrapper,children:g("div",{className:K.searchInput,children:[R&&g(C,{children:[y(p,{"data-not-migrated-muichip":!0,classes:{root:K.selectedChip,deleteIcon:K.selectedChipDeleteIcon},label:s(x,[R,"labelPlural"],"Assets"),deleteIcon:y(d,{}),onDelete:function(){S(null)}}),$>0&&g("span",{className:K.selectedLabel,children:[$," Selected"]})]}),y(u,{"data-testid":"".concat("AutoCompleteAssetSearch","_searchInput"),inputRef:O,autoFocus:!0,disableUnderline:!0,fullWidth:!0,value:T||"",placeholder:"Add Offset ...",onChange:function(e){var t=e.target.value;O.current.focus(),q(t),B(1)},onKeyUp:function(t){var r=t.target.value,n=t.keyCode,o=b.find((function(t){var n=e(t,2);return n[0],n[1].autoCategorizedKey===r.trim().toLowerCase()}));if(o&&(13===n||32===n))return q(""),S(o[0]),void B(1);""===r&&8===n&&(S(null),B(1))}}),y(j,{title:"Clear",children:y(d,{className:R||T?K.selectedChipDeleteIcon:K.disabledIcon,onClick:function(){O.current.focus(),q(""),S(null),B(1)}})})]})}),!R&&!T&&y(f,{onClickAssetType:function(e){O.current.focus(),S(e),B(1)}}),(R||T)&&y(h,{subjectWellId:l,page:L,assetType:R,loading:F,groupedAssets:G,onClickAsset:function(e,t){w(!e.checked,[e.redirectAssetId],t)},onClickAllAsset:function(e,t){var r=G[0][1];w(e,r.map((function(e){return e.redirectAssetId})),t)},onScrollReached:function(e){"top"===e&&L>1&&B((function(e){return e-1})),"bottom"===e&&B((function(e){return e+1}))}})]})};v.propTypes={subjectWellId:i.number.isRequired,company:i.number.isRequired,value:i.string.isRequired,selectedWellIds:i.arrayOf(i.number).isRequired,onChange:i.func.isRequired};export{v as default};
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{memo as r,useRef as i,useMemo as o,useEffect as s,useCallback as n}from"react";import p from"classnames";import a from"prop-types";import{Table as l,TableHead as m,TableBody as d,TableRow as c,TableCell as u}from"@material-ui/core";import"../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import{jsx as j,jsxs as C,Fragment as f}from"react/jsx-runtime";import"../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../Modal/CorvaModal.js";import"@babel/runtime/helpers/objectWithoutProperties";import"../../../IconMenu/index.js";import"../../../StyledMenuItem/index.js";import"../../../DevCenter/AppHeader/AppHeader.js";import"../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";import"../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../DevCenter/SideBar/SideBar.js";import"../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react-router";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../DevCenter/AppContext.js";import"../../../AssetEditor/index.js";import"../../../AppVersionsSelect/AppVersionsSelect.js";import h from"../../../LoadingIndicator/LoadingIndicator.js";import"../../../Typography.js";import"../../../CollapsableSidebar.js";import"../../../DateTimePicker/index.js";import"../../../DatePicker/index.js";import"../../../ErrorBoundary/ErrorBoundary.js";import"../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../Annotations/components/AnnotationsList/index.js";import"../../../Annotations/components/LastAnnotation/index.js";import"../../../Annotations/AnnotationsContext.js";import"../../../SlateFormattedText/SlateFormattedText.js";import"../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"lodash";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/index.js";import"../../../SettingEditors/DropdownEditor/index.js";import"../../../SettingEditors/RadioEditor/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/buttons/DragToZoomButton.js";import"../../../Chart/components/buttons/ZoomInButton.js";import"../../../Chart/components/buttons/ZoomOutButton.js";import"../../../Chart/components/buttons/PanButton.js";import"../../../Chart/components/buttons/ResetZoomButton.js";import"../../../Chart/components/buttons/HideAxesButton.js";import"../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../TruncatedText/index.js";import"../../../RangeSlider/RangeSlider.js";import"../../../AdvancedSlider/AdvancedSlider.js";import"../../../Breadcrumbs/index.js";import"../../../VirtualizedTable/index.js";import"../../../EmptyView/EmptyView.js";import"../../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../../Button/index.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"../../../CustomSelect/index.js";import"../../../Tabs/Tabs.js";import"../../../Tabs/Tab.js";import"../../../ResizableTable/ResizableTable.js";import"../../../Drillstring/BHASchematic.js";import"../../../Drillstring/BHATable/index.js";import"../../../Drillstring/BHAComponentIcon.js";import"../../../Drillstring/BHAComponentDetail/index.js";import"../../../Drillstring/BHATileIcon.js";import"../../../Drillstring/BHATile/BHATile.js";import"../../../Drillstring/BHAList/BHAList.js";import"../../../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../../Casing/CasingTable/index.js";import"../../../Casing/CasingComponentIcon.js";import"../../../Casing/CasingTileIcon.js";import"../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../Casing/CasingTile/CasingTile.js";import"../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../WellSummary/WellSummaryItemLabel.js";import"../../../WellSummary/WellSummaryItemTitle.js";import"../../../WellSummary/WellSummaryItemValue.js";import"../../../WellSummary/ActivitySummaryChart.js";import"../../../WellSummary/FracWirelineTimeChart.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../../clients/jsonApi/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/notifications.js";import"../../../../constants/feed.js";import"../../../../constants/bha.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"../../OffsetWellPickerV4.js";import"../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"uuid";import"../../../ConfirmationDialog.js";import"../../../TextLink/index.js";import"../../../Avatar/index.js";import"../../../Template/TemplatePopover/index.js";import"../../../MenuItem/index.js";import"../../../PadModeSelect/PadModeSelect.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"../../../Tooltip/MuiTooltipDcWrapper.js";import"../../../PriceInput/PriceInput.js";import"../../../LabelsCounter/LabelsCounter.js";import"../../../Stepper/Step.js";import"../../../Stepper/StepsWrapper.js";import"../../../Stepper/Stepper.js";import"../../../Comment/CommentIcon/index.js";import"../../../FilesLoader/FilesLoader.js";import"../../../FilesLoader/Icons/FileIcon.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"../../../HelpCenter/HelpCenterIcon.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/InputAdornmentLeft.js";import"../../../Search/components/Groups.js";import{AdvancedSearch as A}from"./AdvancedSearch/AdvancedSearch.js";import b from"./OffsetWellsTableHead.js";import v from"./OffsetWellsTableRow.js";import{METRICS_LIST as D,EXPANED_WELLNAME_WIDTH as g,TableColumns as S,ROW_HEIGHT as y,ViewType as T}from"../../constants.js";import x from"./OffsetWellsTable.module.css.js";import{getIsImperial as I}from"../../utils/unitSystem.js";var P=function(r){var a,P=r.open,W=r.isTableLoading,w=r.companyId,E=r.subjectWellId,R=r.sortBy,B=r.setSortBy,O=r.sortDirection,L=r.setSortDirection,k=r.columnsWithDict,q=r.wells,F=r.metricsKeys,V=r.setMetricsKeys,N=r.handleChanageOffsetWell,H=r.handleChangeAllOffsetWells,M=r.handleAddRemoveAssets,K=r.isWellNameExpand,Z=r.setIsWellNameExpand,z=r.isHscrollMoved,U=r.onHideAdvancedSearch,G=r.isViewOnly,J=r.isLastWell,Q=r.contentRef,X=r.isLimitedOffsetwells,Y=r.tableTop,$=r.wellSections,_=r.setActiveWellId,ee=r.viewType,te=i(),re=i(),ie=o((function(){var e=q.filter((function(e){return e.checked}));return[e,q.length!==e.length&&e.length&&!X,e.length===q.length||X]}),[q,X]),oe=t(ie,3),se=oe[0],ne=oe[1],pe=oe[2],ae=o((function(){return I()}),[]),le=o((function(){return(F||[]).reduce((function(e,t){return e.concat(D.filter((function(e){return e.key===t})))}),[])}),[F]),me=o((function(){return K?g-58:S[0].width[F.length]-58}),[K,null==F?void 0:F.length]),de=o((function(){return se.length*y}),[se]);s((function(){if(ee!==T.mobile){var e=te.current.querySelector(".".concat(x.wellNameFixed));z?e.classList.remove(x.noShadow):e.classList.add(x.noShadow);var t=re.current.querySelectorAll(".".concat(x.wellNameFixed));z?t.forEach((function(e){return e.classList.remove(x.noShadow)})):t.forEach((function(e){return e.classList.add(x.noShadow)}))}}),[z,re.current,te.current,q]);var ce=n((function(e,t){B(e),L(t)}),[]),ue=n((function(e){V(e)}),[]),je=n((function(e,t){V((function(r){return r.map((function(r){return r===e?t:r}))}))}),[]);return W?j(h,{fullscreen:!1}):k&&q?C(f,{children:[j("div",{className:x.stickyTable,children:j(l,{"aria-label":"ows table head",innerRef:te,children:j(m,{children:j(b,{open:P,columnsWithDict:k,metricsKeys:F,sortBy:R,sortDirection:O,indeterminate:ne,isAllWellsSelected:pe,onChangeSort:ce,onChangeMetricsKeys:ue,onUpdateMetricsKey:je,isWellNameExpand:K,setIsWellNameExpand:Z,handleChangeAllOffsetWells:H,wellNameStyle:x.wellNameFixed,isViewOnly:G,isImperial:ae,contentRef:Q,viewType:ee})})})}),!G&&j("div",{className:x.searchCell,children:j(A,{companyId:w,subjectWellId:E,wells:q,onChange:M,selectedWellIds:se.map((function(e){return e.id})),onHideAdvancedSearch:U,width:null===(a=Q.current)||void 0===a?void 0:a.getBoundingClientRect().width,viewType:ee})}),j(l,{"aria-label":"ows table body",innerRef:re,className:x.bodyTable,children:C(d,{children:[j(c,{children:j(u,{className:p(x.topShadow,e({},x.viewOnlyShadow,G))})}),q.map((function(e){return j(v,{columnsWithDict:k,subjectWellId:E,data:e,metricsKeys:F,metricsColumns:le,handleChanageOffsetWell:N,isWellNameExpand:K,wellNameStyle:x.wellNameFixed,wellNameWidth:me,isViewOnly:G,isImperial:ae,isLimitedOffsetwells:X,flyTo:de,tableTop:Y,wellSections:$,setActiveWellId:_,viewType:ee},e.id)})),!J&&j(c,{children:j(u,{className:x.loadingCell,children:j("span",{children:"Loading..."})})}),j(c,{children:j(u,{className:x.bottomShadow})})]})})]}):null};P.propTypes={open:a.bool.isRequired,isTableLoading:a.bool.isRequired,companyId:a.number.isRequired,subjectWellId:a.number.isRequired,sortBy:a.string.isRequired,setSortBy:a.func.isRequired,sortDirection:a.string.isRequired,setSortDirection:a.func.isRequired,columnsWithDict:a.arrayOf(a.shape({})).isRequired,wells:a.arrayOf(a.shape({})).isRequired,metricsKeys:a.arrayOf(a.string).isRequired,setMetricsKeys:a.func.isRequired,handleChanageOffsetWell:a.func.isRequired,handleChangeAllOffsetWells:a.func.isRequired,handleAddRemoveAssets:a.func.isRequired,setIsWellNameExpand:a.func.isRequired,isWellNameExpand:a.bool.isRequired,isHscrollMoved:a.bool.isRequired,onHideAdvancedSearch:a.func.isRequired,isViewOnly:a.bool.isRequired,isLastWell:a.bool.isRequired,isLimitedOffsetwells:a.bool.isRequired,contentRef:a.shape().isRequired,tableTop:a.number.isRequired,wellSections:a.arrayOf(a.shape({})).isRequired,setActiveWellId:a.func.isRequired,viewType:a.string.isRequired};var W=r(P);export{W as default};
1
+ import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{memo as r,useRef as i,useMemo as o,useEffect as s,useCallback as n}from"react";import p from"classnames";import a from"prop-types";import{Table as l,TableHead as m,TableBody as d,TableRow as c,TableCell as u}from"@material-ui/core";import"../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import{jsx as j,jsxs as C,Fragment as f}from"react/jsx-runtime";import"../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../Modal/CorvaModal.js";import"@babel/runtime/helpers/objectWithoutProperties";import"../../../IconMenu/index.js";import"../../../StyledMenuItem/index.js";import"../../../DevCenter/AppHeader/AppHeader.js";import"../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";import"../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../DevCenter/SideBar/SideBar.js";import"../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react-router";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../DevCenter/AppContext.js";import"../../../AssetEditor/index.js";import"../../../AppVersionsSelect/AppVersionsSelect.js";import h from"../../../LoadingIndicator/LoadingIndicator.js";import"../../../Typography.js";import"../../../CollapsableSidebar.js";import"../../../DateTimePicker/index.js";import"../../../DatePicker/index.js";import"../../../ErrorBoundary/ErrorBoundary.js";import"../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../Annotations/components/AnnotationsList/index.js";import"../../../Annotations/components/LastAnnotation/index.js";import"../../../Annotations/AnnotationsContext.js";import"../../../SlateFormattedText/SlateFormattedText.js";import"../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"lodash";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/index.js";import"../../../SettingEditors/DropdownEditor/index.js";import"../../../SettingEditors/RadioEditor/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/buttons/DragToZoomButton.js";import"../../../Chart/components/buttons/ZoomInButton.js";import"../../../Chart/components/buttons/ZoomOutButton.js";import"../../../Chart/components/buttons/PanButton.js";import"../../../Chart/components/buttons/ResetZoomButton.js";import"../../../Chart/components/buttons/HideAxesButton.js";import"../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../TruncatedText/index.js";import"../../../RangeSlider/RangeSlider.js";import"../../../AdvancedSlider/AdvancedSlider.js";import"../../../Breadcrumbs/index.js";import"../../../VirtualizedTable/index.js";import"../../../EmptyView/EmptyView.js";import"../../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../../Button/index.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"../../../CustomSelect/index.js";import"../../../Tabs/Tabs.js";import"../../../Tabs/Tab.js";import"../../../ResizableTable/ResizableTable.js";import"../../../Drillstring/BHASchematic.js";import"../../../Drillstring/BHATable/index.js";import"../../../Drillstring/BHAComponentIcon.js";import"../../../Drillstring/BHAComponentDetail/index.js";import"../../../Drillstring/BHATileIcon.js";import"../../../Drillstring/BHATile/BHATile.js";import"../../../Drillstring/BHAList/BHAList.js";import"../../../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../../Casing/CasingTable/index.js";import"../../../Casing/CasingComponentIcon.js";import"../../../Casing/CasingTileIcon.js";import"../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../Casing/CasingTile/CasingTile.js";import"../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../WellSummary/WellSummaryItemLabel.js";import"../../../WellSummary/WellSummaryItemTitle.js";import"../../../WellSummary/WellSummaryItemValue.js";import"../../../WellSummary/ActivitySummaryChart.js";import"../../../WellSummary/FracWirelineTimeChart.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../../clients/jsonApi/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/notifications.js";import"../../../../constants/feed.js";import"../../../../constants/bha.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"../../OffsetWellPickerV4.js";import"../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"uuid";import"../../../ConfirmationDialog.js";import"../../../TextLink/index.js";import"../../../Avatar/index.js";import"../../../Template/TemplatePopover/index.js";import"../../../MenuItem/index.js";import"../../../PadModeSelect/PadModeSelect.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"../../../Tooltip/MuiTooltipDcWrapper.js";import"../../../PriceInput/PriceInput.js";import"../../../LabelsCounter/LabelsCounter.js";import"../../../Stepper/Step.js";import"../../../Stepper/StepsWrapper.js";import"../../../Stepper/Stepper.js";import"../../../Comment/CommentIcon/index.js";import"../../../FilesLoader/FilesLoader.js";import"../../../FilesLoader/Icons/FileIcon.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"../../../HelpCenter/HelpCenterIcon.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/InputAdornmentLeft.js";import"../../../Search/components/Groups.js";import{AdvancedSearch as A}from"./AdvancedSearch/AdvancedSearch.js";import b from"./OffsetWellsTableHead.js";import v from"./OffsetWellsTableRow.js";import{METRICS_LIST as D,EXPANED_WELLNAME_WIDTH as g,TableColumns as S,ROW_HEIGHT as y,ViewType as x}from"../../constants.js";import T from"./OffsetWellsTable.module.css.js";import{getIsImperial as I}from"../../utils/unitSystem.js";var P=function(r){var a,P=r.open,W=r.isTableLoading,w=r.companyId,E=r.subjectWellId,R=r.sortBy,B=r.setSortBy,O=r.sortDirection,L=r.setSortDirection,k=r.columnsWithDict,q=r.wells,F=r.metricsKeys,V=r.setMetricsKeys,N=r.handleChanageOffsetWell,H=r.handleChangeAllOffsetWells,M=r.handleAddRemoveAssets,K=r.isWellNameExpand,Z=r.setIsWellNameExpand,z=r.isHscrollMoved,U=r.onHideAdvancedSearch,G=r.isViewOnly,J=r.isLastWell,Q=r.contentRef,X=r.isLimitedOffsetwells,Y=r.tableTop,$=r.wellSections,_=r.setActiveWellId,ee=r.viewType,te=i(),re=i(),ie=o((function(){var e=q.filter((function(e){return e.checked}));return[e,q.length!==e.length&&e.length&&!X,e.length===q.length||X]}),[q,X]),oe=t(ie,3),se=oe[0],ne=oe[1],pe=oe[2],ae=o((function(){return I()}),[]),le=o((function(){return(F||[]).reduce((function(e,t){return e.concat(D.filter((function(e){return e.key===t})))}),[])}),[F]),me=o((function(){return K?g-58:S[0].width[F.length]-58}),[K,null==F?void 0:F.length]),de=o((function(){return se.length*y}),[se]);s((function(){if(ee!==x.mobile){var e=te.current.querySelector(".".concat(T.wellNameFixed));z?e.classList.remove(T.noShadow):e.classList.add(T.noShadow);var t=re.current.querySelectorAll(".".concat(T.wellNameFixed));z?t.forEach((function(e){return e.classList.remove(T.noShadow)})):t.forEach((function(e){return e.classList.add(T.noShadow)}))}}),[z,re.current,te.current,q]);var ce=n((function(e,t){B(e),L(t)}),[]),ue=n((function(e){V(e)}),[]),je=n((function(e,t){V((function(r){return r.map((function(r){return r===e?t:r}))}))}),[]);return W?j(h,{fullscreen:!1}):k&&q?C(f,{children:[j("div",{className:T.stickyTable,children:j(l,{"aria-label":"ows table head",innerRef:te,children:j(m,{children:j(b,{open:P,columnsWithDict:k,metricsKeys:F,sortBy:R,sortDirection:O,indeterminate:ne,isAllWellsSelected:pe,onChangeSort:ce,onChangeMetricsKeys:ue,onUpdateMetricsKey:je,isWellNameExpand:K,setIsWellNameExpand:Z,handleChangeAllOffsetWells:H,wellNameStyle:T.wellNameFixed,isViewOnly:G,isImperial:ae,contentRef:Q,viewType:ee})})})}),!G&&j("div",{className:T.searchCell,children:j(A,{companyId:w,subjectWellId:E,wells:q,onChange:M,selectedWellIds:se.map((function(e){return e.id})),onHideAdvancedSearch:U,width:null===(a=Q.current)||void 0===a?void 0:a.getBoundingClientRect().width})}),j(l,{"aria-label":"ows table body",innerRef:re,className:T.bodyTable,children:C(d,{children:[j(c,{children:j(u,{className:p(T.topShadow,e({},T.viewOnlyShadow,G))})}),q.map((function(e){return j(v,{columnsWithDict:k,subjectWellId:E,data:e,metricsKeys:F,metricsColumns:le,handleChanageOffsetWell:N,isWellNameExpand:K,wellNameStyle:T.wellNameFixed,wellNameWidth:me,isViewOnly:G,isImperial:ae,isLimitedOffsetwells:X,flyTo:de,tableTop:Y,wellSections:$,setActiveWellId:_,viewType:ee},e.id)})),!J&&j(c,{children:j(u,{className:T.loadingCell,children:j("span",{children:"Loading..."})})}),j(c,{children:j(u,{className:T.bottomShadow})})]})})]}):null};P.propTypes={open:a.bool.isRequired,isTableLoading:a.bool.isRequired,companyId:a.number.isRequired,subjectWellId:a.number.isRequired,sortBy:a.string.isRequired,setSortBy:a.func.isRequired,sortDirection:a.string.isRequired,setSortDirection:a.func.isRequired,columnsWithDict:a.arrayOf(a.shape({})).isRequired,wells:a.arrayOf(a.shape({})).isRequired,metricsKeys:a.arrayOf(a.string).isRequired,setMetricsKeys:a.func.isRequired,handleChanageOffsetWell:a.func.isRequired,handleChangeAllOffsetWells:a.func.isRequired,handleAddRemoveAssets:a.func.isRequired,setIsWellNameExpand:a.func.isRequired,isWellNameExpand:a.bool.isRequired,isHscrollMoved:a.bool.isRequired,onHideAdvancedSearch:a.func.isRequired,isViewOnly:a.bool.isRequired,isLastWell:a.bool.isRequired,isLimitedOffsetwells:a.bool.isRequired,contentRef:a.shape().isRequired,tableTop:a.number.isRequired,wellSections:a.arrayOf(a.shape({})).isRequired,setActiveWellId:a.func.isRequired,viewType:a.string.isRequired};var W=r(P);export{W as default};
@@ -49,13 +49,21 @@ export const PROPPANTS_TYPES: {
49
49
  unitType: string;
50
50
  color: string;
51
51
  }[];
52
- export const PROPPANTS_CON_TYPES: {
52
+ export const PROPPANTS_CON_TYPES: ({
53
53
  name: string;
54
54
  key: string;
55
55
  unitType: string;
56
56
  unit: string;
57
57
  color: string;
58
- }[];
58
+ precision?: undefined;
59
+ } | {
60
+ name: string;
61
+ key: string;
62
+ unitType: string;
63
+ unit: string;
64
+ color: string;
65
+ precision: number;
66
+ })[];
59
67
  export const PROPPANTS_MASS_TYPES: {
60
68
  name: string;
61
69
  key: string;
@@ -84,6 +92,11 @@ export namespace PRESSURE_COLORS {
84
92
  const hydrostatic_pressure: string;
85
93
  const backside_pressure: string;
86
94
  }
95
+ export namespace TRACKING_CONCENTRATION_COLORS {
96
+ const fr_concentration: string;
97
+ const surfactant_concentration: string;
98
+ const powder_breaker_concentration: string;
99
+ }
87
100
  export namespace FLOW_RATE_COLORS {
88
101
  const clean_flow_rate_in: string;
89
102
  const slurry_flow_rate_in: string;
@@ -1 +1 @@
1
- {"version":3,"file":"completion.d.ts","sourceRoot":"","sources":["../../src/constants/completion.js"],"names":[],"mappings":"AAAA;;;;;IA+BE;AAEF;;;;;IA+BE;AAEF;;;;;IA+BE;AAEF;;;;;IAqCE;;;;;;AAQF;;;;IAkJE;AAEF;;;;IA8BE;AAIF;;;;;IAGE;AAEF;;;;;IA6DE;AAEF;;;;;;IAsBE;AAEF;;;;;;IAsBE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCF;;;;IA0BE;AAEF;;;;;;;;;;;;;;;;;;KA4CE;AAEF;;;IAiBE;;;;;;;;;;;;;;;;;;AA6CF;;EAgCE"}
1
+ {"version":3,"file":"completion.d.ts","sourceRoot":"","sources":["../../src/constants/completion.js"],"names":[],"mappings":"AAAA;;;;;IA+BE;AAEF;;;;;IA+BE;AAEF;;;;;IA+BE;AAEF;;;;;IAqCE;;;;;;AAQF;;;;IAkJE;AAEF;;;;IA8BE;AAIF;;;;;IAGE;AAEF;;;;;IA6DE;AAEF;;;;;;;;;;;;;;KA8BE;AAEF;;;;;;IAsBE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CF;;;;IA0BE;AAEF;;;;;;;;;;;;;;;;;;KA4CE;AAEF;;;IAiBE;;;;;;;;;;;;;;;;;;AA6CF;;EAgCE"}
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import o from"@babel/runtime/helpers/toConsumableArray";var r;function l(e,o){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);o&&(l=l.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),r.push.apply(r,l)}return r}function n(o){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?l(Object(n),!0).forEach((function(r){e(o,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(n,e))}))}return o}var i=[{name:"Pressure Testing",key:"pressure testing",isFlatTime:!0,color:"#FFF350"},{name:"Pump Off",key:"pump off",isFlatTime:!0,color:"#939E98"},{name:"Fracturing",key:"fracturing",isFlatTime:!1,color:"#429FF8"},{name:"Pad",key:"pad",isFlatTime:!1,color:"#FF8260"},{name:"Flush",key:"flush",isFlatTime:!1,color:"#10EAF0"}],a=[{name:"Pull out of Hole",key:"pull out of hole",isFlatTime:!1,color:"#800080"},{name:"Plug and Perf",key:"plug and perf",isFlatTime:!1,color:"#FFA500"},{name:"Run in Hole",key:"run in hole",isFlatTime:!1,color:"#00008B"},{name:"Static",key:"static",isFlatTime:!1,color:"#D3D3D3"},{name:"Out of Hole",key:"out of hole",isFlatTime:!1,color:"#FFC0CB"}],t=[{name:"Pull out of Hole (VT)",key:"pull out of hole vertical",isFlatTime:!1,color:"#EB3447"},{name:"Pull out of Hole (HZ)",key:"pull out of hole horizontal",isFlatTime:!1,color:"#ED602A"},{name:"Run in Hole (VT)",key:"run in hole vertical",isFlatTime:!1,color:"#390099"},{name:"Run in Hole (HZ)",key:"run in hole horizontal",isFlatTime:!1,color:"#6150C1"},{name:"Static",key:"static",isFlatTime:!1,color:"#FFBD00"}],c=[{name:"HVFR Low",key:"hvfr_low",unitType:"oil",color:"#1fff71"},{name:"15# Linear Gel",key:"15#_linear_gel",unitType:"oil",color:"#00E7E9"},{name:"15% HCL Acid",key:"15%_hcl_acid",unitType:"oil",color:"#6ec732"},{name:"Slickwater",key:"slickwater",unitType:"oil",color:"#7AB8ED"},{name:"15# XL Borate",key:"15#_xl_borate",unitType:"oil",color:"#ff9a4c"},{name:"Fresh Water",key:"fresh_water",unitType:"oil",color:"#4c7fff"}],p={name:"Total Chemicals",key:"total_chemical_rate_in",color:"#00FF00"},s=[{name:"Liquid Gel",color:"#84F4F7",key:"gel"},{name:"Acid",color:"#6ec732",key:"acid"},{name:"Liquid FR",color:"#FFA891",key:"friction_reducer"},{name:"Liquid FR Extra",color:"#91FFA8",key:"friction_reducer_extra"},{name:"Total Liquid FR",color:"#FF91A8",key:"total_friction_reducer"},{name:"Fluid Loss",color:"#c7bd32",key:"fluid_loss"},{name:"Cross Linker",color:"#B0CA87",key:"cross_linker"},{name:"Liquid EB",color:"#32b8c7",key:"enzyme_breaker"},{name:"Polymer Plug",color:"#9fc732",key:"ploymer_plug"},{name:"Acid Inhibitor",color:"#AB9081",key:"acid_inhibitor"},{name:"Acid Retarder",color:"#7CC6FE",key:"acid_retarder"},{name:"Emulsifier",color:"#5DFDCB",key:"emulsifier"},{name:"Clay Stabilizer",color:"#9C6B20",key:"clay_stabilizer"},{name:"Surfactant",color:"#FFF689",key:"surfactant"},{name:"Non-Emulsifier",color:"#C0DF85",key:"non_emulsifier"},{name:"Fines Suspender",color:"#7B8E55",key:"fines_suspender"},{name:"Anti-Sludge",color:"#07393C",key:"anti_sludge"},{name:"Scale Inhibitor",color:"#C0E5CA",key:"scale_inhibitor"},{name:"Iron Control",color:"#CD5334",key:"iron_control"},{name:"Oxygen Scavenger",color:"#DFF283",key:"oxygen_scavenger"},{name:"Mutual Solvent",color:"#ad5ec7",key:"mutual_solvent"},{name:"Corrosion Inhibitor",color:"#7C2209",key:"corrosion_inhibitor"},{name:"Paraffin Control",color:"#F5A65B",key:"paraffin_control"},{name:"Biocide",color:"#E9B76A",key:"biocide"},{name:"PH Adjusting Agent",color:"#519872",key:"ph_adjusting_agent"},{name:"Accelerator",color:"#5E3023",key:"accelerator"},{name:"Instant Crosslinker",color:"#6E6E23",key:"instant_crosslinker"},{name:"Delayed Crosslinker",color:"#7E306E",key:"delayed_crosslinker"},{name:"Liquid Breaker",color:"#233023",key:"liquid_breaker"}],u=[{name:"Diverter",color:"#BB9394",key:"divertor"},{name:"Powder Breaker",color:"#c732b8",key:"powder_breaker"},{name:"Powder Gel",color:"#308E23",key:"powder_gel"},{name:"Powder FR",color:"#30239E",key:"powder_friction_reducer"},{name:"Powder EB",color:"#A32A78",key:"powder_enzyme_breaker"}],m=[].concat(o(s.map((function(e){return n(n({},e),{},{unitType:"volume"})}))),o(u.map((function(e){return n(n({},e),{},{unitType:"mass"})})))),y=[{name:"100 Mesh",key:"100_mesh",unitType:"mass",color:"#ff0000"},{name:"40/70 Brown",key:"40_70_brown",unitType:"mass",color:"#603000"},{name:"40/70 Mesh",key:"40_70_mesh",unitType:"mass",color:"#5454cc"},{name:"40/70 NWS",key:"40_70_nws",unitType:"mass",color:"#ff4242"},{name:"40/70 RBS",key:"40_70_rbs",unitType:"mass",color:"#ff42bc"},{name:"30/50 Brown",key:"30_50_brown",unitType:"mass",color:"#964B00"},{name:"30/50 Mesh",key:"30_50_mesh",unitType:"mass",color:"#9898cc"},{name:"25/50 Brown",key:"25_50_brown",unitType:"mass",color:"#B27C45"},{name:"25/50 Mesh",key:"25_50_mesh",unitType:"mass",color:"#32aa32"},{name:"20/40 Mesh",key:"20_40_mesh",unitType:"mass",color:"#ff7979"}],_=[{name:"Total Proppant Conc",key:"total_proppant_concentration",unitType:"massConcentration",unit:"lb/gal",color:"#FF8F0B"},{name:"Proppant 1 Conc",key:"proppant_1_concentration",unitType:"massConcentration",unit:"lb/gal",color:"#7EB93A"},{name:"Proppant 2 Conc",key:"proppant_2_concentration",unitType:"massConcentration",unit:"lb/gal",color:"#6785E8"}],k=[{name:"Total Proppant Volume",key:"total_proppant_mass",unitType:"mass",color:"#EE964B",unit:"lb"},{name:"Proppant 1 Volume",key:"proppant_1_mass",unitType:"mass",color:"#C6C013",unit:"lb"},{name:"Proppant 2 Volume",key:"proppant_2_mass",unitType:"mass",color:"#7ff577",unit:"lb"}],f={top_perforation:"#0085e3",bottom_perforation:"#8BC7F2",perforated_length:"#519872",total_shots:"#9500b7",flush_volume:"#FF6161"},F={well_head_pressure:"#F50057",pipe_frictional_pressure_loss:"#D8496B",nwb_frictional_pressure_loss:"#807DFF",bottomhole_pressure:"#4DCFB3",net_pressure:"#EE752F",max_treating_pressure:"#F50258",ave_treating_pressure:"#FF6161",breakdown_pressure:"#03db5a",isip_pressure:"#7169AE",delta_pressure:"#efd34b",hydrostatic_pressure:"#E458C8",backside_pressure:"#32aa32"},d={clean_flow_rate_in:"#7CC900",slurry_flow_rate_in:"#64B5FF",max_flow_rate:"#0085e3",ave_flow_rate:"#8BC7F2"},b={total_slurry_volume_in:"#7169AE",total_clean_volume_in:"#257CFF"},w=[{name:"Fracturing",key:"fracturing",color:"#429FF8"},{name:"Wireline",key:"wireline",color:"#FF9C00"},{name:"Swap Over - Fracturing",key:"swap_over_fracturing",color:"#347EC5"},{name:"Swap Over - Wireline",key:"swap_over_wireline",color:"#BF7500"},{name:"Waiting on Offset Wells",key:"waiting_on_offset_wells",color:"#BDBDBD"}],g=[{key:"line_speed",label:"Line Speed",unitType:"velocity",unit:"ft/min",isDefaultView:!0},{key:"line_tension",label:"Line Tension",unitType:"mass",unit:"lb",isDefaultView:!0},{key:"casing_collar_locator",label:"CCL",isDefaultView:!0},{key:"elapsed_time",label:"Elapsed Time",unitType:"time",unit:"s"},{key:"voltage",label:"Voltage",unitType:"voltage",unit:"mV"},{key:"current",label:"Current",unitType:"current",unit:"mA"},{key:"measured_depth",label:"Measured Depth",unitType:"length",unit:"ft"}],A=[{key:"pad",label:"Pad Mode"},{key:"active_frac",label:"Active Frac"},{key:"active_wireline",label:"Active Wireline"},{key:"active_pumpdown",label:"Active Pumpdown"}],T={pad:"pad",activeFrac:"active_frac",activeWireline:"active_wireline",activePumpdown:"active_pumpdown",custom:"custom"},h={padApp:"Pad Apps",fracWirelineMultiWellApp:"Frac & Wireline Multi-Well Apps",fracMultiWellApp:"Frac Multi-Well Apps",wirelineMultiWellApp:"Wireline Multi-Well Apps",pumpdownMultiWellApp:"Pumpdown Multi-Well Apps",fracSingleWellApp:"Frac Single Well Apps",wirelineSingleWellApp:"Wireline Single Well Apps",pumpdownSingleWellApp:"Pumpdown Single Well Apps"},v=(e(r={},h.padApp,[T.pad,T.custom]),e(r,h.fracWirelineMultiWellApp,[T.pad,T.activeFrac,T.activeWireline,T.custom]),e(r,h.fracMultiWellApp,[T.pad,T.activeFrac,T.custom]),e(r,h.fracSingleWellApp,[T.activeFrac,T.custom]),e(r,h.wirelineMultiWellApp,[T.pad,T.activeWireline,T.custom]),e(r,h.wirelineSingleWellApp,[T.activeWireline,T.custom]),e(r,h.pumpdownMultiWellApp,[T.pad,T.activePumpdown,T.custom]),e(r,h.wirelineSingleWellApp,[T.activePumpdown,T.custom]),r);export{i as ACTIVITIES,u as CHEMICALS_MASS_TYPES,m as CHEMICALS_TYPES,s as CHEMICALS_VOL_TYPES,v as COMPLETION_APPTYPE_MODES_DICT,h as COMPLETION_APP_TYPES,T as COMPLETION_MODES,w as COMPLETION_OPERATION_TYPE,A as DEFAULT_SUPPORTED_PAD_MODES,d as FLOW_RATE_COLORS,c as FLUIDS_TYPES,F as PRESSURE_COLORS,_ as PROPPANTS_CON_TYPES,k as PROPPANTS_MASS_TYPES,y as PROPPANTS_TYPES,f as STAGE_ACTUAL_PARAM_COLORS,p as TOTAL_CHEMICAL_TYPE,b as TOTAL_VOLUME_COLORS,a as WIRELINE_ACTIVITIES,t as WIRELINE_BREAKDOWN_ACTIVITIES,g as WIRELINE_PARAMETERS};
1
+ import e from"@babel/runtime/helpers/defineProperty";import o from"@babel/runtime/helpers/toConsumableArray";var r;function l(e,o){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);o&&(l=l.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),r.push.apply(r,l)}return r}function n(o){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?l(Object(n),!0).forEach((function(r){e(o,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(n,e))}))}return o}var a=[{name:"Pressure Testing",key:"pressure testing",isFlatTime:!0,color:"#FFF350"},{name:"Pump Off",key:"pump off",isFlatTime:!0,color:"#939E98"},{name:"Fracturing",key:"fracturing",isFlatTime:!1,color:"#429FF8"},{name:"Pad",key:"pad",isFlatTime:!1,color:"#FF8260"},{name:"Flush",key:"flush",isFlatTime:!1,color:"#10EAF0"}],i=[{name:"Pull out of Hole",key:"pull out of hole",isFlatTime:!1,color:"#800080"},{name:"Plug and Perf",key:"plug and perf",isFlatTime:!1,color:"#FFA500"},{name:"Run in Hole",key:"run in hole",isFlatTime:!1,color:"#00008B"},{name:"Static",key:"static",isFlatTime:!1,color:"#D3D3D3"},{name:"Out of Hole",key:"out of hole",isFlatTime:!1,color:"#FFC0CB"}],t=[{name:"Pull out of Hole (VT)",key:"pull out of hole vertical",isFlatTime:!1,color:"#EB3447"},{name:"Pull out of Hole (HZ)",key:"pull out of hole horizontal",isFlatTime:!1,color:"#ED602A"},{name:"Run in Hole (VT)",key:"run in hole vertical",isFlatTime:!1,color:"#390099"},{name:"Run in Hole (HZ)",key:"run in hole horizontal",isFlatTime:!1,color:"#6150C1"},{name:"Static",key:"static",isFlatTime:!1,color:"#FFBD00"}],c=[{name:"HVFR Low",key:"hvfr_low",unitType:"oil",color:"#1fff71"},{name:"15# Linear Gel",key:"15#_linear_gel",unitType:"oil",color:"#00E7E9"},{name:"15% HCL Acid",key:"15%_hcl_acid",unitType:"oil",color:"#6ec732"},{name:"Slickwater",key:"slickwater",unitType:"oil",color:"#7AB8ED"},{name:"15# XL Borate",key:"15#_xl_borate",unitType:"oil",color:"#ff9a4c"},{name:"Fresh Water",key:"fresh_water",unitType:"oil",color:"#4c7fff"}],p={name:"Total Chemicals",key:"total_chemical_rate_in",color:"#00FF00"},s=[{name:"Liquid Gel",color:"#84F4F7",key:"gel"},{name:"Acid",color:"#6ec732",key:"acid"},{name:"Liquid FR",color:"#FFA891",key:"friction_reducer"},{name:"Liquid FR Extra",color:"#91FFA8",key:"friction_reducer_extra"},{name:"Total Liquid FR",color:"#FF91A8",key:"total_friction_reducer"},{name:"Fluid Loss",color:"#c7bd32",key:"fluid_loss"},{name:"Cross Linker",color:"#B0CA87",key:"cross_linker"},{name:"Liquid EB",color:"#32b8c7",key:"enzyme_breaker"},{name:"Polymer Plug",color:"#9fc732",key:"ploymer_plug"},{name:"Acid Inhibitor",color:"#AB9081",key:"acid_inhibitor"},{name:"Acid Retarder",color:"#7CC6FE",key:"acid_retarder"},{name:"Emulsifier",color:"#5DFDCB",key:"emulsifier"},{name:"Clay Stabilizer",color:"#9C6B20",key:"clay_stabilizer"},{name:"Surfactant",color:"#FFF689",key:"surfactant"},{name:"Non-Emulsifier",color:"#C0DF85",key:"non_emulsifier"},{name:"Fines Suspender",color:"#7B8E55",key:"fines_suspender"},{name:"Anti-Sludge",color:"#07393C",key:"anti_sludge"},{name:"Scale Inhibitor",color:"#C0E5CA",key:"scale_inhibitor"},{name:"Iron Control",color:"#CD5334",key:"iron_control"},{name:"Oxygen Scavenger",color:"#DFF283",key:"oxygen_scavenger"},{name:"Mutual Solvent",color:"#ad5ec7",key:"mutual_solvent"},{name:"Corrosion Inhibitor",color:"#7C2209",key:"corrosion_inhibitor"},{name:"Paraffin Control",color:"#F5A65B",key:"paraffin_control"},{name:"Biocide",color:"#E9B76A",key:"biocide"},{name:"PH Adjusting Agent",color:"#519872",key:"ph_adjusting_agent"},{name:"Accelerator",color:"#5E3023",key:"accelerator"},{name:"Instant Crosslinker",color:"#6E6E23",key:"instant_crosslinker"},{name:"Delayed Crosslinker",color:"#7E306E",key:"delayed_crosslinker"},{name:"Liquid Breaker",color:"#233023",key:"liquid_breaker"}],u=[{name:"Diverter",color:"#BB9394",key:"divertor"},{name:"Powder Breaker",color:"#c732b8",key:"powder_breaker"},{name:"Powder Gel",color:"#308E23",key:"powder_gel"},{name:"Powder FR",color:"#30239E",key:"powder_friction_reducer"},{name:"Powder EB",color:"#A32A78",key:"powder_enzyme_breaker"}],m=[].concat(o(s.map((function(e){return n(n({},e),{},{unitType:"volume"})}))),o(u.map((function(e){return n(n({},e),{},{unitType:"mass"})})))),y=[{name:"100 Mesh",key:"100_mesh",unitType:"mass",color:"#ff0000"},{name:"40/70 Brown",key:"40_70_brown",unitType:"mass",color:"#603000"},{name:"40/70 Mesh",key:"40_70_mesh",unitType:"mass",color:"#5454cc"},{name:"40/70 NWS",key:"40_70_nws",unitType:"mass",color:"#ff4242"},{name:"40/70 RBS",key:"40_70_rbs",unitType:"mass",color:"#ff42bc"},{name:"30/50 Brown",key:"30_50_brown",unitType:"mass",color:"#964B00"},{name:"30/50 Mesh",key:"30_50_mesh",unitType:"mass",color:"#9898cc"},{name:"25/50 Brown",key:"25_50_brown",unitType:"mass",color:"#B27C45"},{name:"25/50 Mesh",key:"25_50_mesh",unitType:"mass",color:"#32aa32"},{name:"20/40 Mesh",key:"20_40_mesh",unitType:"mass",color:"#ff7979"}],_=[{name:"Total Proppant Conc",key:"total_proppant_concentration",unitType:"massConcentration",unit:"lb/gal",color:"#FF8F0B"},{name:"BHPC",key:"bottomhole_proppant_concentration",unitType:"massConcentration",unit:"lb/gal",color:"#9F4BED",precision:2},{name:"Proppant 1 Conc",key:"proppant_1_concentration",unitType:"massConcentration",unit:"lb/gal",color:"#7EB93A"},{name:"Proppant 2 Conc",key:"proppant_2_concentration",unitType:"massConcentration",unit:"lb/gal",color:"#6785E8"}],k=[{name:"Total Proppant Volume",key:"total_proppant_mass",unitType:"mass",color:"#EE964B",unit:"lb"},{name:"Proppant 1 Volume",key:"proppant_1_mass",unitType:"mass",color:"#C6C013",unit:"lb"},{name:"Proppant 2 Volume",key:"proppant_2_mass",unitType:"mass",color:"#7ff577",unit:"lb"}],f={top_perforation:"#0085e3",bottom_perforation:"#8BC7F2",perforated_length:"#519872",total_shots:"#9500b7",flush_volume:"#FF6161"},F={well_head_pressure:"#F50057",pipe_frictional_pressure_loss:"#D8496B",nwb_frictional_pressure_loss:"#807DFF",bottomhole_pressure:"#4DCFB3",net_pressure:"#EE752F",max_treating_pressure:"#F50258",ave_treating_pressure:"#FF6161",breakdown_pressure:"#03db5a",isip_pressure:"#7169AE",delta_pressure:"#efd34b",hydrostatic_pressure:"#E458C8",backside_pressure:"#32aa32"},d={fr_concentration:"#D99C88",surfactant_concentration:"#FEF798",powder_breaker_concentration:"#993895"},b={clean_flow_rate_in:"#7CC900",slurry_flow_rate_in:"#64B5FF",max_flow_rate:"#0085e3",ave_flow_rate:"#8BC7F2"},w={total_slurry_volume_in:"#7169AE",total_clean_volume_in:"#257CFF"},g=[{name:"Fracturing",key:"fracturing",color:"#429FF8"},{name:"Wireline",key:"wireline",color:"#FF9C00"},{name:"Swap Over - Fracturing",key:"swap_over_fracturing",color:"#347EC5"},{name:"Swap Over - Wireline",key:"swap_over_wireline",color:"#BF7500"},{name:"Waiting on Offset Wells",key:"waiting_on_offset_wells",color:"#BDBDBD"}],T=[{key:"line_speed",label:"Line Speed",unitType:"velocity",unit:"ft/min",isDefaultView:!0},{key:"line_tension",label:"Line Tension",unitType:"mass",unit:"lb",isDefaultView:!0},{key:"casing_collar_locator",label:"CCL",isDefaultView:!0},{key:"elapsed_time",label:"Elapsed Time",unitType:"time",unit:"s"},{key:"voltage",label:"Voltage",unitType:"voltage",unit:"mV"},{key:"current",label:"Current",unitType:"current",unit:"mA"},{key:"measured_depth",label:"Measured Depth",unitType:"length",unit:"ft"}],A=[{key:"pad",label:"Pad Mode"},{key:"active_frac",label:"Active Frac"},{key:"active_wireline",label:"Active Wireline"},{key:"active_pumpdown",label:"Active Pumpdown"}],h={pad:"pad",activeFrac:"active_frac",activeWireline:"active_wireline",activePumpdown:"active_pumpdown",custom:"custom"},v={padApp:"Pad Apps",fracWirelineMultiWellApp:"Frac & Wireline Multi-Well Apps",fracMultiWellApp:"Frac Multi-Well Apps",wirelineMultiWellApp:"Wireline Multi-Well Apps",pumpdownMultiWellApp:"Pumpdown Multi-Well Apps",fracSingleWellApp:"Frac Single Well Apps",wirelineSingleWellApp:"Wireline Single Well Apps",pumpdownSingleWellApp:"Pumpdown Single Well Apps"},C=(e(r={},v.padApp,[h.pad,h.custom]),e(r,v.fracWirelineMultiWellApp,[h.pad,h.activeFrac,h.activeWireline,h.custom]),e(r,v.fracMultiWellApp,[h.pad,h.activeFrac,h.custom]),e(r,v.fracSingleWellApp,[h.activeFrac,h.custom]),e(r,v.wirelineMultiWellApp,[h.pad,h.activeWireline,h.custom]),e(r,v.wirelineSingleWellApp,[h.activeWireline,h.custom]),e(r,v.pumpdownMultiWellApp,[h.pad,h.activePumpdown,h.custom]),e(r,v.wirelineSingleWellApp,[h.activePumpdown,h.custom]),r);export{a as ACTIVITIES,u as CHEMICALS_MASS_TYPES,m as CHEMICALS_TYPES,s as CHEMICALS_VOL_TYPES,C as COMPLETION_APPTYPE_MODES_DICT,v as COMPLETION_APP_TYPES,h as COMPLETION_MODES,g as COMPLETION_OPERATION_TYPE,A as DEFAULT_SUPPORTED_PAD_MODES,b as FLOW_RATE_COLORS,c as FLUIDS_TYPES,F as PRESSURE_COLORS,_ as PROPPANTS_CON_TYPES,k as PROPPANTS_MASS_TYPES,y as PROPPANTS_TYPES,f as STAGE_ACTUAL_PARAM_COLORS,p as TOTAL_CHEMICAL_TYPE,w as TOTAL_VOLUME_COLORS,d as TRACKING_CONCENTRATION_COLORS,i as WIRELINE_ACTIVITIES,t as WIRELINE_BREAKDOWN_ACTIVITIES,T as WIRELINE_PARAMETERS};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "0.49.0-1",
3
+ "version": "0.49.0-2",
4
4
  "description": "Shared components/utils for Corva ui projects",
5
5
  "keywords": [
6
6
  "corva-ui"
@@ -194,6 +194,7 @@
194
194
  "@storybook/addon-links": "6.4.9",
195
195
  "@storybook/addon-postcss": "^2.0.0",
196
196
  "@storybook/addon-storysource": "6.4.9",
197
+ "@storybook/addon-viewport": "6.5.13",
197
198
  "@storybook/addons": "6.4.9",
198
199
  "@storybook/cli": "6.4.9",
199
200
  "@storybook/preset-scss": "^1.0.3",