@corva/ui 0.50.0-7 → 0.50.0-9
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/components/AddComment/Popover.js +1 -1
- package/components/AddComment/components/Content.js +1 -1
- package/components/AppVersionsSelect/AppVersionsSelect.js +1 -1
- package/components/BICOffsetPickerDialog/index.js +1 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
- package/components/Casing/CasingTableV2/components/Component.js +1 -1
- package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
- package/components/Comment/CommentIcon/index.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.css.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.d.ts +1 -5
- package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterAppZoidComponent.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
- package/components/DocumentViewer/DocumentViewer.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
- package/components/IconMenu/index.d.ts +3 -3
- package/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
- package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
- package/components/OffsetWellPickerV4/OffsetWellPickerV4.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
- package/components/OffsetWellPickerV4/components/Filter/Filter.d.ts +1 -3
- package/components/OffsetWellPickerV4/components/Filter/Filter.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
- package/components/OffsetWellPickerV4/components/Filter/Filter.module.css.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
- package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
- package/components/Toaster/ToastContainer.d.ts +3 -0
- package/components/Toaster/ToastContainer.d.ts.map +1 -0
- package/components/Toaster/ToastContainer.js +1 -0
- package/components/Toaster/Toaster.d.ts +7 -0
- package/components/Toaster/Toaster.d.ts.map +1 -0
- package/components/Toaster/Toaster.js +1 -0
- package/components/Toaster/index.d.ts +3 -0
- package/components/Toaster/index.d.ts.map +1 -0
- package/components/TruncatedText/index.d.ts +15 -1
- package/components/TruncatedText/index.d.ts.map +1 -1
- package/components/TruncatedText/index.js +1 -1
- package/components/index.d.ts +2 -1
- package/components/index.js +1 -1
- package/constants/completion.d.ts +1 -0
- package/constants/completion.d.ts.map +1 -1
- package/constants/completion.js +1 -1
- package/package.json +1 -1
- package/utils/devcenterToasts.d.ts +2 -0
- package/utils/devcenterToasts.d.ts.map +1 -0
- package/utils/devcenterToasts.js +1 -0
- package/utils/index.d.ts +2 -1
- package/utils/index.d.ts.map +1 -1
- package/utils/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{memo as e,useMemo as t}from"react";import{isEmpty as o}from"lodash";import r from"prop-types";import{Grid as n}from"@material-ui/core";import{isMobileDetected as i}from"../../../../../utils/mobileDetect.js";import{jsxs as s,jsx as p}from"react/jsx-runtime";import"../../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";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/slicedToArray";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/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/objectWithoutProperties";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"../../../../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"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/AxisDropdown.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"../../../CasingTable/index.js";import m from"../../../CasingComponentIcon.js";import"../../../CasingTileIcon.js";import"../../CasingTableV2.js";import"../../../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{OD_ID_DEP_LIST as a,COMPONENT_GRADES as l,COMPONENT_CLASSES as d,COMPONENT_MATERIALS as c}from"../../../../../constants/casing.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"../../../../OffsetWellMap/OffsetWellMap.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{CancelButton as j}from"../../../../Drillstring/BHAComponentsTable/components/shared/CancelButton.js";import"../../../../Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.js";import"../../../../Drillstring/BHAComponentsTable/components/shared/FormatedNumber.js";import{InputText as C}from"../../../../Drillstring/BHAComponentsTable/components/shared/InputText.js";import"../../../../Drillstring/BHAComponentsTable/components/shared/MoreButton.js";import{SaveButton as u}from"../../../../Drillstring/BHAComponentsTable/components/shared/SaveButton.js";import{SelectField as g}from"../../../../Drillstring/BHAComponentsTable/components/shared/SelectField.js";import"../../../../Drillstring/BHAComponentsTable/components/shared/StaticField.js";import{SharedEditorElements as h}from"../../../../Drillstring/BHAComponentsTable/components/shared/SharedEditorElements.js";import"../../../../Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js";import b from"../../../../Drillstring/BHAComponentsTable/components/Suggestions/Suggestions.js";import{useStyles as A}from"../../../../Drillstring/BHAComponentsTable/components/sharedStyles.js";import{OD_ID_DEP_COLUMNS as D,CONTAINER_XS as v}from"../constants.js";function f(e){var r=e.component,f=e.error,S=e.onChange,x=e.onCancel,T=e.onSave,P=e.onUseSuggestion,y=e.columns,B=A({isMobile:i}),I=i?v/2:v/y,_=function(e){return f&&f[e]},E=t((function(){var e=a;return r.outer_diameter?e.filter((function(e){return e.outer_diameter===parseFloat(r.outer_diameter)})):[]}),[r.outer_diameter]);return s(n,{container:!0,spacing:0,className:B.editorContainer,children:[!i&&p(n,{item:!0,className:B.editorComponentSize,children:p(m,{component:r})}),p(n,{item:!0,className:B.eidtorContentContainer,children:s(n,{container:!0,spacing:2,children:[p(h,{component:r,getError:_,onChange:S,isCasing:!0}),E.length>0&&p(b,{data:E,allData:a,columns:D,displayKeys:["outer_diameter","inner_diameter"],descriptionKeys:["outer_diameter","inner_diameter","linear_weight","number_of_joints","component_length"],onSelect:P,isCasing:!0}),p(C,{type:"name",label:"Name",value:r.name,error:_("name"),xs:I,onChangeField:S}),p(C,{type:"number_of_joints",label:"# of Joints",value:r.number_of_joints,error:_("number_of_joints"),xs:I,onChangeField:S}),p(C,{type:"component_length",label:"Component Length",unit:"length",value:r.component_length,error:_("component_length"),xs:I,onChangeField:S}),p(C,{type:"weight",label:"T.Weight",unit:"mass",value:r.weight,error:_("weight"),disabled:!0,xs:I,onChangeField:S}),p(g,{type:"grade",options:l,label:"Grade",value:r.grade,error:_("grade"),xs:I,onChangeField:S}),p(C,{type:"outer_diameter_tooljoint",label:"TJ OD",unit:"shortLength",value:r.outer_diameter_tooljoint,error:_("outer_diameter_tooljoint"),xs:I,onChangeField:S}),p(C,{type:"inner_diameter_tooljoint",label:"TJ ID",unit:"shortLength",value:r.inner_diameter_tooljoint,error:_("inner_diameter_tooljoint"),xs:I,onChangeField:S}),p(C,{type:"length_tooljoint",label:"TJ Length Per Joint",unit:"length",value:r.length_tooljoint,error:_("length_tooljoint"),xs:I,onChangeField:S}),p(C,{type:"connection_type",label:"Connection Type",value:r.connection_type,error:_("connection_type"),xs:I,onChangeField:S}),p(g,{type:"class",options:d,label:"Class",value:r.class,error:_("class"),xs:I,onChangeField:S}),p(g,{type:"material",options:c,label:"Material",value:r.material,error:_("material"),xs:I,onChangeField:S})]})}),!i&&s(n,{item:!0,className:B.eidtorActionGroup,children:[p(j,{handleCancel:x}),p(u,{handleSave:T,disabled:!o(f)})]})]})}f.propTypes={component:r.shape({outer_diameter:r.number,component_length:r.number,name:r.string,number_of_joints:r.number,weight:r.number,connection_type:r.string,grade:r.string,class:r.string,material:r.string,outer_diameter_tooljoint:r.number,inner_diameter_tooljoint:r.number,length_tooljoint:r.number}).isRequired,error:r.shape({}),onChange:r.func.isRequired,onCancel:r.func.isRequired,onSave:r.func.isRequired,onUseSuggestion:r.func.isRequired,columns:r.number.isRequired},f.defaultProps={error:null};var S=e(f);export{S as default};
|
|
1
|
+
import{memo as e,useMemo as t}from"react";import{isEmpty as o}from"lodash";import r from"prop-types";import{Grid as n}from"@material-ui/core";import{isMobileDetected as i}from"../../../../../utils/mobileDetect.js";import{jsxs as s,jsx as p}from"react/jsx-runtime";import"../../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";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/slicedToArray";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/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/objectWithoutProperties";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"../../../../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"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/AxisDropdown.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"../../../CasingTable/index.js";import m from"../../../CasingComponentIcon.js";import"../../../CasingTileIcon.js";import"../../CasingTableV2.js";import"../../../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{OD_ID_DEP_LIST as a,COMPONENT_GRADES as l,COMPONENT_CLASSES as d,COMPONENT_MATERIALS as c}from"../../../../../constants/casing.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"../../../../OffsetWellMap/OffsetWellMap.js";import"../../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"uuid";import"../../../../Toaster/Toaster.js";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{CancelButton as j}from"../../../../Drillstring/BHAComponentsTable/components/shared/CancelButton.js";import"../../../../Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.js";import"../../../../Drillstring/BHAComponentsTable/components/shared/FormatedNumber.js";import{InputText as C}from"../../../../Drillstring/BHAComponentsTable/components/shared/InputText.js";import"../../../../Drillstring/BHAComponentsTable/components/shared/MoreButton.js";import{SaveButton as u}from"../../../../Drillstring/BHAComponentsTable/components/shared/SaveButton.js";import{SelectField as g}from"../../../../Drillstring/BHAComponentsTable/components/shared/SelectField.js";import"../../../../Drillstring/BHAComponentsTable/components/shared/StaticField.js";import{SharedEditorElements as h}from"../../../../Drillstring/BHAComponentsTable/components/shared/SharedEditorElements.js";import"../../../../Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js";import b from"../../../../Drillstring/BHAComponentsTable/components/Suggestions/Suggestions.js";import{useStyles as A}from"../../../../Drillstring/BHAComponentsTable/components/sharedStyles.js";import{OD_ID_DEP_COLUMNS as D,CONTAINER_XS as v}from"../constants.js";function f(e){var r=e.component,f=e.error,S=e.onChange,T=e.onCancel,x=e.onSave,P=e.onUseSuggestion,y=e.columns,B=A({isMobile:i}),I=i?v/2:v/y,_=function(e){return f&&f[e]},E=t((function(){var e=a;return r.outer_diameter?e.filter((function(e){return e.outer_diameter===parseFloat(r.outer_diameter)})):[]}),[r.outer_diameter]);return s(n,{container:!0,spacing:0,className:B.editorContainer,children:[!i&&p(n,{item:!0,className:B.editorComponentSize,children:p(m,{component:r})}),p(n,{item:!0,className:B.eidtorContentContainer,children:s(n,{container:!0,spacing:2,children:[p(h,{component:r,getError:_,onChange:S,isCasing:!0}),E.length>0&&p(b,{data:E,allData:a,columns:D,displayKeys:["outer_diameter","inner_diameter"],descriptionKeys:["outer_diameter","inner_diameter","linear_weight","number_of_joints","component_length"],onSelect:P,isCasing:!0}),p(C,{type:"name",label:"Name",value:r.name,error:_("name"),xs:I,onChangeField:S}),p(C,{type:"number_of_joints",label:"# of Joints",value:r.number_of_joints,error:_("number_of_joints"),xs:I,onChangeField:S}),p(C,{type:"component_length",label:"Component Length",unit:"length",value:r.component_length,error:_("component_length"),xs:I,onChangeField:S}),p(C,{type:"weight",label:"T.Weight",unit:"mass",value:r.weight,error:_("weight"),disabled:!0,xs:I,onChangeField:S}),p(g,{type:"grade",options:l,label:"Grade",value:r.grade,error:_("grade"),xs:I,onChangeField:S}),p(C,{type:"outer_diameter_tooljoint",label:"TJ OD",unit:"shortLength",value:r.outer_diameter_tooljoint,error:_("outer_diameter_tooljoint"),xs:I,onChangeField:S}),p(C,{type:"inner_diameter_tooljoint",label:"TJ ID",unit:"shortLength",value:r.inner_diameter_tooljoint,error:_("inner_diameter_tooljoint"),xs:I,onChangeField:S}),p(C,{type:"length_tooljoint",label:"TJ Length Per Joint",unit:"length",value:r.length_tooljoint,error:_("length_tooljoint"),xs:I,onChangeField:S}),p(C,{type:"connection_type",label:"Connection Type",value:r.connection_type,error:_("connection_type"),xs:I,onChangeField:S}),p(g,{type:"class",options:d,label:"Class",value:r.class,error:_("class"),xs:I,onChangeField:S}),p(g,{type:"material",options:c,label:"Material",value:r.material,error:_("material"),xs:I,onChangeField:S})]})}),!i&&s(n,{item:!0,className:B.eidtorActionGroup,children:[p(j,{handleCancel:T}),p(u,{handleSave:x,disabled:!o(f)})]})]})}f.propTypes={component:r.shape({outer_diameter:r.number,component_length:r.number,name:r.string,number_of_joints:r.number,weight:r.number,connection_type:r.string,grade:r.string,class:r.string,material:r.string,outer_diameter_tooljoint:r.number,inner_diameter_tooljoint:r.number,length_tooljoint:r.number}).isRequired,error:r.shape({}),onChange:r.func.isRequired,onCancel:r.func.isRequired,onSave:r.func.isRequired,onUseSuggestion:r.func.isRequired,columns:r.number.isRequired},f.defaultProps={error:null};var S=e(f);export{S as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as t}from"../../../_virtual/_tslib.js";import{jsx as i}from"react/jsx-runtime";import r from"prop-types";import{makeStyles as e,Tooltip as o,IconButton as a,Badge as p}from"@material-ui/core";import s from"../../Avatar/index.js";import l from"./BadgeIcon.js";var m=e((function(t){return{icon:{padding:0,"&:hover":{"& .MuiBadge-root .MuiBadge-badge svg path":{"&:first-of-type":{fill:t.palette.primary.light}},"& .MuiAvatar-root":{outline:"1px solid ".concat(t.palette.primary.light)}},marginTop:4},badge:{top:2,right:6,"&:hover":{"& svg path":{"&:first-of-type":{fill:t.palette.primary.light}}}},tooltip:{marginTop:8}}})),n=function(r){var e=r.displayName,n=r.imgSrc,
|
|
1
|
+
import{__assign as t}from"../../../_virtual/_tslib.js";import{jsx as i}from"react/jsx-runtime";import r from"prop-types";import{makeStyles as e,Tooltip as o,IconButton as a,Badge as p}from"@material-ui/core";import s from"../../Avatar/index.js";import l from"./BadgeIcon.js";var m=e((function(t){return{icon:{padding:0,"&:hover":{"& .MuiBadge-root .MuiBadge-badge svg path":{"&:first-of-type":{fill:t.palette.primary.light}},"& .MuiAvatar-root":{outline:"1px solid ".concat(t.palette.primary.light)}},marginTop:4},badge:{top:2,right:6,"&:hover":{"& svg path":{"&:first-of-type":{fill:t.palette.primary.light}}}},tooltip:{marginTop:8}}})),n=function(r){var e=r.displayName,n=r.imgSrc,d=r.size,g=m();return i(o,t({title:"Add Comment",placement:"bottom",classes:{tooltip:g.tooltip}},{children:i(a,t({classes:{root:g.icon}},{children:i(p,t({classes:{badge:g.badge},badgeContent:i(l,{})},{children:i(s,{displayName:e,size:d,imgSrc:n})}))}))}))},d={displayName:r.string,imgSrc:r.string,size:r.number};n.propTypes=d,n.defaultProps={displayName:"",imgSrc:void 0,size:24};export{n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from'./../../../ext-esm/style-inject/dist/style-inject.es.js';var t={container:"DevCenterAppContainer_container__6zeRh",containerContent:"DevCenterAppContainer_containerContent__Jxol2",containerMaximized:"DevCenterAppContainer_containerMaximized__rJ5mZ"};e(".DevCenterAppContainer_container__6zeRh{background-color:#201f1f;bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}.dc-app-container__light-theme{background-color:#fff;box-shadow:inset 0 0 0 2px #ccc;color:rgba(0,0,0,.87)}.dc-app-container__pdf-report{zoom:.5}.c-dashboard-report__app--light-theme,.dc-app-container__light-theme{scrollbar-color:hsla(0,0%,50%,.6) transparent!important}.DevCenterAppContainer_containerContent__Jxol2{height:100%;overflow:hidden;width:100%}.DevCenterAppContainer_containerMaximized__rJ5mZ{bottom:10px;box-shadow:0 0 18px 3px rgba(0,0,0,.75);height:auto;left:10px;overflow:hidden;position:fixed;right:10px;top:10px;width:auto;z-index:500}.DevCenterAppContainer_containerMaximized__rJ5mZ .DevCenterAppContainer_containerContent__Jxol2{margin-right:28px;width:auto}");export{t as default};
|
|
1
|
+
import e from'./../../../ext-esm/style-inject/dist/style-inject.es.js';var t={container:"DevCenterAppContainer_container__6zeRh",containerContent:"DevCenterAppContainer_containerContent__Jxol2",containerMaximized:"DevCenterAppContainer_containerMaximized__rJ5mZ",footerIconButton:"DevCenterAppContainer_footerIconButton__4XZ-y"};e(".DevCenterAppContainer_container__6zeRh{background-color:#201f1f;bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}.dc-app-container__light-theme{background-color:#fff;box-shadow:inset 0 0 0 2px #ccc;color:rgba(0,0,0,.87)}.dc-app-container__pdf-report{zoom:.5}.c-dashboard-report__app--light-theme,.dc-app-container__light-theme{scrollbar-color:hsla(0,0%,50%,.6) transparent!important}.DevCenterAppContainer_containerContent__Jxol2{height:100%;overflow:hidden;width:100%}.DevCenterAppContainer_containerMaximized__rJ5mZ{bottom:10px;box-shadow:0 0 18px 3px rgba(0,0,0,.75);height:auto;left:10px;overflow:hidden;position:fixed;right:10px;top:10px;width:auto;z-index:500}.DevCenterAppContainer_containerMaximized__rJ5mZ .DevCenterAppContainer_containerContent__Jxol2{margin-right:28px;width:auto}.DevCenterAppContainer_footerIconButton__4XZ-y{margin-right:4px!important}");export{t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevCenterAppContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js"],"names":[],"mappings":";AAqCA;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"DevCenterAppContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js"],"names":[],"mappings":";AAqCA;;;;;;;;;;;;;;;;;;;;;;;;;gBA6NC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import{useContext as o,useState as i}from"react";import r from"classnames";import{pickBy as n,pick as s,noop as p}from"lodash";import{useTheme as a}from"@material-ui/core";import m from"../../Icons/AnnotationIcon.js";import l from"../../Annotations/components/AnnotationsList/index.js";import"../../Annotations/components/LastAnnotation/index.js";import{AnnotationsProvider as d}from"../../Annotations/AnnotationsContext.js";import{jsx as c,jsxs as j,Fragment as u}from"react/jsx-runtime";import C from"./components/AppActions/AppActions.js";import g from"./components/AppSettingsDialog/AppSettingsDialog.js";import"./components/AnnotationsButton/AnnotationsButton.js";import A from"./components/NonPriorityMenus/NonPriorityMenus.js";import f from"./components/FullscreenButton/FullscreenButton.js";import"./components/AppInfoMessage/AppInfoMessage.js";import b from"./components/DevCenterAppView/DevCenterAppView.js";import{DcFullscreenElemsCoordinatorProvider as h}from"./components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"./components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import{IsInsideDcAppProvider as S}from"./components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../Modal/CorvaModal.js";import"../../IconMenu/index.js";import"../../StyledMenuItem/index.js";import"../AppHeader/AppHeader.js";import"../AppSideBar/AppSideBar.js";import"../AppsDataProvider/AppsDataProvider.js";import"../NavigationBar/NavigationBar.js";import"../SideBar/SideBar.js";import"../AppSettingsPopover/AppSettingsPopover.js";import"../AppFilterPanelLayout/AppFilterPanelLayout.js";import{DevCenterRouterContext as I}from"../DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import v from"../AppContext.js";import"../../AssetEditor/index.js";import"../../AppVersionsSelect/AppVersionsSelect.js";import"../../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"../../SlateFormattedText/SlateFormattedText.js";import"../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";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/AxisDropdown.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 P from"../../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{DEV_CENTER_CLI_APP_ID as D}from"../../../constants/devcenter.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/OffsetWellPickerV4.js";import"../../OffsetWellMap/OffsetWellMap.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{HelpCenterIcon as x}from"../../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{isNativeDetected as y,isMobileDetected as T}from"../../../utils/mobileDetect.js";import"querystring";import"uuid/v1";import"../../../clients/subscriptions.js";import L from"../../../effects/useDevCenterApp.js";import"../../../utils/index.js";import{getAppSegment as E,getAppName as M,getTimestampFromQuery as B}from"../../../utils/devcenter.js";import O from"./effects/useAppSettings.js";import k from"./effects/useAnnotationsList.js";import F from"./effects/useAnnotationsData.js";import W from"./effects/useAppMaximized.js";import w from"./DevCenterAppContainer.css.js";import V from"./components/RestoreAppSizeButton/index.js";import{getAppVersion as H}from"./utils.js";import R from"./components/PriorityMenus/PriorityMenus.js";import{showSuccessNotification as z}from"../../../utils/notificationToasts.js";function N(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function _(e){for(var o=1;o<arguments.length;o++){var i=null!=arguments[o]?arguments[o]:{};o%2?N(Object(i),!0).forEach((function(o){t(e,o,i[o])})):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 U=y||T;function q(t){var T,N,q,Z,G,K=t.CLIAppComponent,J=t.CLIAppSettings,Q=t.app,X=t.appId,Y=t.className,$=t.coordinates,tt=t.currentDashboardAppsLastAnnotations,et=t.currentUser,ot=t.devCenterRouter,it=t.isActionsDisabled,rt=t.availability,nt=t.isSettingsDialogHidden,st=t.layoutEnvironment,pt=t.onAppContainerClick,at=void 0===pt?p:pt,mt=t.onAppRemove,lt=t.onCloneDashboard,dt=t.onIsMaximizedChange,ct=t.onSettingChange,jt=t.onSettingsChange,ut=t.setIsFullscreenModalMode,Ct=void 0===ut?p:ut,gt=t.updateCurrentDashboardAppLastAnnotation,At=t.openIntercom,ft=void 0===At?p:At,bt=t.timestamp,ht=t.onHelpCenterClick,St=o(v),It=a(),vt=i([]),Pt=e(vt,2),Dt=Pt[0],xt=Pt[1],yt=i([]),Tt=e(yt,2),Lt=Tt[0],Et=Tt[1],Mt=null!==(T=null==St?void 0:St[X||Q.id])&&void 0!==T?T:{isLoading:!0},Bt=null===(N=Q.package)||void 0===N||null===(q=N.manifest)||void 0===q?void 0:q.application,Ot=E(Q),kt=!(null==Bt||null===(Z=Bt.ui)||void 0===Z||!Z.multi_rig),Ft=M(Q),Wt=W({onIsMaximizedChange:dt,devCenterRouter:ot,appId:X}),wt=Wt.isMaximized,Vt=Wt.setIsMaximized,Ht=bt||B(null===(G=ot.location.query)||void 0===G?void 0:G.query),Rt=Q.id===D,zt=Rt&&U?_(_({},$),{},{w:12}):$,Nt=L({CLIAppComponent:K,CLIAppSettings:J,app:Q,version:H(Q)}),_t=Nt.isLoading,Ut=Nt.AppSettings,qt=Nt.AppComponent,Zt=O({setIsFullscreenModalMode:Ct}),Gt=Zt.isAppSettingsDialogOpened,Kt=Zt.toggleAppSettingsDialog,Jt=k(),Qt=Jt.isAnnotationsListOpened,Xt=Jt.toggleAnnotationsList,Yt=_t||!et||!kt&&Mt.isLoading,$t=ot.location,te=$t.pathname,ee=$t.query,oe=F({app:Q,appData:Mt,currentDashboardAppsLastAnnotations:tt}),ie=oe.appLastAnnotation,re=oe.assetCompanyId,ne=oe.assetIdForAnnotation,se=oe.isAppSupportsAnnotations,pe=n(s(Mt,["well","rig","fracFleet","wells"]),Boolean);return c(I.Provider,{value:ot,children:c(h,{setIsFullscreenModalMode:Ct,children:c(S,{value:!0,children:j("div",{className:r("dc-app-container",Y,wt&&"dc-app-container__maximized",It.isLightTheme&&"dc-app-container__light-theme",w.container),"data-testid":"".concat("DevCenter_AppContainer","_").concat(Q.app.name),onClick:function(){return at()},children:[c("div",{className:w.containerContent,children:c(b,{AppComponent:qt,app:Q,appData:pe,isAppLoading:_t,availability:rt,isCLIApp:Rt,isLoading:Yt,isMultiRig:kt,layoutEnvironment:st,openIntercom:ft,segment:Ot,toggleAppSettingsDialog:Kt,appProps:{coordinates:zt,currentUser:et,devCenterRouter:ot,onSettingChange:ct,onSettingsChange:jt,setIsFullscreenModalMode:Ct,setIsMaximized:Vt,setMainMenuItems:xt,setSecondaryMenuItems:Et,appHeaderProps:_({app:Q,appLastAnnotation:ie,appSettings:Q.settings,coordinates:zt,currentUser:et,isMaximized:wt,layoutEnvironment:st,onSettingChange:ct,toggleAnnotationsList:Xt,updateCurrentDashboardAppLastAnnotation:gt},pe),isNative:y,layoutEnvironment:st,timestamp:Ht}})}),Gt&&c(g,{AppSettingsComponent:Ut,app:Q,appData:Mt,appName:Ft,currentUser:et,isMultiRig:kt,isSettingsDialogHidden:nt,layoutEnvironment:st,onAppRemove:mt,onCloneDashboard:lt,onSettingChange:ct,onSettingsChange:jt,segment:Ot,timestamp:Ht,toggleAppSettingsDialog:Kt}),Qt&&c(d,{children:c(l,{appId:Q.app.id,appSettings:Q.settings,appTitle:Q.name,assetCompanyId:re,assetId:ne,currentUser:et,onClose:Xt,showSuccessNotification:z})}),!it&&wt&&c(V,{setIsMaximized:Vt}),j(C,{children:[se&&c(P,{onClick:Xt,children:c(m,{})}),c(P,{"data-testid":"".concat("DevCenter_AppContainer","_helpContent"),onClick:function(){return ht()},disabled:Rt,children:c(x,{appId:Q.app.id,helpContentUpdatedAt:Q.help_content_updated_at})}),U&&!wt?c(f,{setIsMaximized:Vt}):j(u,{children:[c(R,{menuItems:Dt,devCenterRouter:ot}),c(A,{appId:Q.id,devCenterRouter:ot,isMaximized:wt,menuItems:Lt,pathname:te,query:ee,setIsMaximized:Vt,toggleAppSettingsDialog:Kt,paperClassName:"paperPosition"})]})]})]})})})})}q.defaultProps={availability:{hasProductSubscription:!0,isAppSubscribedForAsset:!0}};export{q as default};
|
|
1
|
+
import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import{useContext as o,useState as i}from"react";import r from"classnames";import{pickBy as n,pick as s,noop as p}from"lodash";import{useTheme as a}from"@material-ui/core";import m from"../../Icons/AnnotationIcon.js";import l from"../../Annotations/components/AnnotationsList/index.js";import"../../Annotations/components/LastAnnotation/index.js";import{AnnotationsProvider as d}from"../../Annotations/AnnotationsContext.js";import{jsx as c,jsxs as j,Fragment as u}from"react/jsx-runtime";import C from"./components/AppActions/AppActions.js";import A from"./components/AppSettingsDialog/AppSettingsDialog.js";import"./components/AnnotationsButton/AnnotationsButton.js";import g from"./components/NonPriorityMenus/NonPriorityMenus.js";import f from"./components/FullscreenButton/FullscreenButton.js";import"./components/AppInfoMessage/AppInfoMessage.js";import b from"./components/DevCenterAppView/DevCenterAppView.js";import{DcFullscreenElemsCoordinatorProvider as h}from"./components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"./components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import{IsInsideDcAppProvider as S}from"./components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../Modal/CorvaModal.js";import"../../IconMenu/index.js";import"../../StyledMenuItem/index.js";import"../AppHeader/AppHeader.js";import"../AppSideBar/AppSideBar.js";import"../AppsDataProvider/AppsDataProvider.js";import"../NavigationBar/NavigationBar.js";import"../SideBar/SideBar.js";import"../AppSettingsPopover/AppSettingsPopover.js";import"../AppFilterPanelLayout/AppFilterPanelLayout.js";import{DevCenterRouterContext as I}from"../DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import P from"../AppContext.js";import"../../AssetEditor/index.js";import"../../AppVersionsSelect/AppVersionsSelect.js";import"../../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"../../SlateFormattedText/SlateFormattedText.js";import"../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";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/AxisDropdown.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 v from"../../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{DEV_CENTER_CLI_APP_ID as D}from"../../../constants/devcenter.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/OffsetWellPickerV4.js";import"../../OffsetWellMap/OffsetWellMap.js";import"../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"uuid";import"../../Toaster/Toaster.js";import x from"../../Toaster/ToastContainer.js";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{HelpCenterIcon as y}from"../../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{isNativeDetected as T,isMobileDetected as L}from"../../../utils/mobileDetect.js";import"querystring";import"uuid/v1";import"../../../clients/subscriptions.js";import E from"../../../effects/useDevCenterApp.js";import"../../../utils/index.js";import{getAppSegment as B,getAppName as M,getTimestampFromQuery as O}from"../../../utils/devcenter.js";import k from"./effects/useAppSettings.js";import F from"./effects/useAnnotationsList.js";import W from"./effects/useAnnotationsData.js";import w from"./effects/useAppMaximized.js";import V from"./DevCenterAppContainer.css.js";import H from"./components/RestoreAppSizeButton/index.js";import{getAppVersion as R}from"./utils.js";import z from"./components/PriorityMenus/PriorityMenus.js";import{showSuccessNotification as N}from"../../../utils/notificationToasts.js";function _(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function U(e){for(var o=1;o<arguments.length;o++){var i=null!=arguments[o]?arguments[o]:{};o%2?_(Object(i),!0).forEach((function(o){t(e,o,i[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):_(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var q=T||L;function Z(t){var L,_,Z,G,K,J=t.CLIAppComponent,Q=t.CLIAppSettings,X=t.app,Y=t.appId,$=t.className,tt=t.coordinates,et=t.currentDashboardAppsLastAnnotations,ot=t.currentUser,it=t.devCenterRouter,rt=t.isActionsDisabled,nt=t.availability,st=t.isSettingsDialogHidden,pt=t.layoutEnvironment,at=t.onAppContainerClick,mt=void 0===at?p:at,lt=t.onAppRemove,dt=t.onCloneDashboard,ct=t.onIsMaximizedChange,jt=t.onSettingChange,ut=t.onSettingsChange,Ct=t.setIsFullscreenModalMode,At=void 0===Ct?p:Ct,gt=t.updateCurrentDashboardAppLastAnnotation,ft=t.openIntercom,bt=void 0===ft?p:ft,ht=t.timestamp,St=t.onHelpCenterClick,It=o(P),Pt=a(),vt=i([]),Dt=e(vt,2),xt=Dt[0],yt=Dt[1],Tt=i([]),Lt=e(Tt,2),Et=Lt[0],Bt=Lt[1],Mt=null!==(L=null==It?void 0:It[Y||X.id])&&void 0!==L?L:{isLoading:!0},Ot=null===(_=X.package)||void 0===_||null===(Z=_.manifest)||void 0===Z?void 0:Z.application,kt=B(X),Ft=!(null==Ot||null===(G=Ot.ui)||void 0===G||!G.multi_rig),Wt=M(X),wt=w({onIsMaximizedChange:ct,devCenterRouter:it,appId:Y}),Vt=wt.isMaximized,Ht=wt.setIsMaximized,Rt=ht||O(null===(K=it.location.query)||void 0===K?void 0:K.query),zt=X.id===D,Nt=zt&&q?U(U({},tt),{},{w:12}):tt,_t=E({CLIAppComponent:J,CLIAppSettings:Q,app:X,version:R(X)}),Ut=_t.isLoading,qt=_t.AppSettings,Zt=_t.AppComponent,Gt=k({setIsFullscreenModalMode:At}),Kt=Gt.isAppSettingsDialogOpened,Jt=Gt.toggleAppSettingsDialog,Qt=F(),Xt=Qt.isAnnotationsListOpened,Yt=Qt.toggleAnnotationsList,$t=Ut||!ot||!Ft&&Mt.isLoading,te=it.location,ee=te.pathname,oe=te.query,ie=W({app:X,appData:Mt,currentDashboardAppsLastAnnotations:et}),re=ie.appLastAnnotation,ne=ie.assetCompanyId,se=ie.assetIdForAnnotation,pe=ie.isAppSupportsAnnotations,ae=n(s(Mt,["well","rig","fracFleet","wells"]),Boolean);return c(I.Provider,{value:it,children:c(h,{setIsFullscreenModalMode:At,children:c(S,{value:!0,children:j("div",{className:r("dc-app-container",$,Vt&&"dc-app-container__maximized",Pt.isLightTheme&&"dc-app-container__light-theme",V.container),"data-testid":"".concat("DevCenter_AppContainer","_").concat(X.app.name),onClick:function(){return mt()},children:[c(x,{}),c("div",{className:V.containerContent,children:c(b,{AppComponent:Zt,app:X,appData:ae,isAppLoading:Ut,availability:nt,isCLIApp:zt,isLoading:$t,isMultiRig:Ft,layoutEnvironment:pt,openIntercom:bt,segment:kt,toggleAppSettingsDialog:Jt,appProps:{coordinates:Nt,currentUser:ot,devCenterRouter:it,onSettingChange:jt,onSettingsChange:ut,setIsFullscreenModalMode:At,setIsMaximized:Ht,setMainMenuItems:yt,setSecondaryMenuItems:Bt,appHeaderProps:U({app:X,appLastAnnotation:re,appSettings:X.settings,coordinates:Nt,currentUser:ot,isMaximized:Vt,layoutEnvironment:pt,onSettingChange:jt,toggleAnnotationsList:Yt,updateCurrentDashboardAppLastAnnotation:gt},ae),isNative:T,layoutEnvironment:pt,timestamp:Rt}})}),Kt&&c(A,{AppSettingsComponent:qt,app:X,appData:Mt,appName:Wt,currentUser:ot,isMultiRig:Ft,isSettingsDialogHidden:st,layoutEnvironment:pt,onAppRemove:lt,onCloneDashboard:dt,onSettingChange:jt,onSettingsChange:ut,segment:kt,timestamp:Rt,toggleAppSettingsDialog:Jt}),Xt&&c(d,{children:c(l,{appId:X.app.id,appSettings:X.settings,appTitle:X.name,assetCompanyId:ne,assetId:se,currentUser:ot,onClose:Yt,showSuccessNotification:N})}),!rt&&Vt&&c(H,{setIsMaximized:Ht}),j(C,{children:[pe&&c(v,{className:V.footerIconButton,tooltipProps:{title:"Add Annotation"},onClick:Yt,children:c(m,{})}),c(v,{"data-testid":"".concat("DevCenter_AppContainer","_helpContent"),onClick:function(){return St()},className:V.footerIconButton,disabled:zt,tooltipProps:{title:"Help Center"},children:c(y,{appId:X.app.id,helpContentUpdatedAt:X.help_content_updated_at})}),q&&!Vt?c(f,{setIsMaximized:Ht}):j(u,{children:[c(z,{menuItems:xt,devCenterRouter:it}),c(g,{appId:X.id,devCenterRouter:it,isMaximized:Vt,menuItems:Et,pathname:ee,query:oe,setIsMaximized:Ht,toggleAppSettingsDialog:Jt})]})]})]})})})})}Z.defaultProps={availability:{hasProductSubscription:!0,isAppSubscribedForAsset:!0}};export{Z as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import i from'./../../../../../ext-esm/style-inject/dist/style-inject.es.js';var t={appActions:"AppActions_appActions__hPD0u",appActionsButton:"AppActions_appActionsButton__SYkEO"};i(".AppActions_appActions__hPD0u{bottom:5px;cursor:pointer;position:absolute;right:7px;transition:visibility .45s cubic-bezier(.23,1,.32,1) 0ms;visibility:hidden;z-index:10000}.dc-app-container:hover .AppActions_appActions__hPD0u{visibility:visible}.AppActions_appActionsButton__SYkEO{background-color:transparent!important;padding:3px}");export{t as default};
|
|
1
|
+
import i from'./../../../../../ext-esm/style-inject/dist/style-inject.es.js';var t={appActions:"AppActions_appActions__hPD0u",appActionsButton:"AppActions_appActionsButton__SYkEO"};i(".AppActions_appActions__hPD0u{bottom:5px;cursor:pointer;margin-left:12px;position:absolute;right:7px;transition:visibility .45s cubic-bezier(.23,1,.32,1) 0ms;visibility:hidden;z-index:10000}.dc-app-container:hover .AppActions_appActions__hPD0u{visibility:visible}.AppActions_appActionsButton__SYkEO{background-color:transparent!important;padding:3px}");export{t as default};
|
package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"prop-types";import t from"@material-ui/icons/InfoOutlined";import{jsxs as o,jsx as r,Fragment as i}from"react/jsx-runtime";import"../AppActions/AppActions.css.js";import"../AppSettingsDialog/AppSettingsDialog.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import"../DevCenterAppView/DevCenterAppView.js";import"../DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../../Modal/CorvaModal.js";import"@babel/runtime/helpers/slicedToArray";import"react";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import s from"../../../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"../../../AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../AppContext.js";import"../../../../AssetEditor/index.js";import"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../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/AxisDropdown.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/OffsetWellPickerV4.js";import"../../../../OffsetWellMap/OffsetWellMap.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 p from"./AppInfoMessage.css.js";function n(e){var n=e.app,m=e.children,a=e.message,l=e.submessage;return o("div",{className:p.appInfoMessage,children:[r(s,{app:n}),o("div",{className:p.content,children:[m,!m&&o(i,{children:[r(t,{size:"large",className:p.infoIcon}),r("p",{className:p.message,children:a}),l&&r("p",{className:p.submessage,children:l})]})]})]})}n.propTypes={app:e.shape({}).isRequired,children:e.node,message:e.oneOfType([e.node,e.string]),submessage:e.string},n.defaultProps={message:"",submessage:"",children:null};export{n as default};
|
|
1
|
+
import e from"prop-types";import t from"@material-ui/icons/InfoOutlined";import{jsxs as o,jsx as r,Fragment as i}from"react/jsx-runtime";import"../AppActions/AppActions.css.js";import"../AppSettingsDialog/AppSettingsDialog.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import"../DevCenterAppView/DevCenterAppView.js";import"../DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../../Modal/CorvaModal.js";import"@babel/runtime/helpers/slicedToArray";import"react";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import s from"../../../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"../../../AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../AppContext.js";import"../../../../AssetEditor/index.js";import"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../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/AxisDropdown.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/OffsetWellPickerV4.js";import"../../../../OffsetWellMap/OffsetWellMap.js";import"../../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"uuid";import"../../../../Toaster/Toaster.js";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 p from"./AppInfoMessage.css.js";function n(e){var n=e.app,m=e.children,a=e.message,l=e.submessage;return o("div",{className:p.appInfoMessage,children:[r(s,{app:n}),o("div",{className:p.content,children:[m,!m&&o(i,{children:[r(t,{size:"large",className:p.infoIcon}),r("p",{className:p.message,children:a}),l&&r("p",{className:p.submessage,children:l})]})]})]})}n.propTypes={app:e.shape({}).isRequired,children:e.node,message:e.oneOfType([e.node,e.string]),submessage:e.string},n.defaultProps={message:"",submessage:"",children:null};export{n as default};
|
package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{useState as o}from"react";import{func as r,shape as i,string as n,bool as s}from"prop-types";import{withStyles as p,Dialog as a,Tabs as m,DialogTitle as l,Divider as d,DialogContent as c,Tab as j,DialogActions as u}from"@material-ui/core";import{cloneDeep as C,get as g,noop as A}from"lodash";import b from"../../../../ErrorBoundary/ErrorBoundary.js";import f from"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import{jsxs as h,jsx as S,Fragment as P}from"react/jsx-runtime";import"../AppActions/AppActions.css.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import"../AppInfoMessage/AppInfoMessage.js";import"../DevCenterAppView/DevCenterAppView.js";import"../DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../../Modal/CorvaModal.js";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"../../../AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import{useDevCenterRouter as v}from"../../../DevCenterRouterContext/effects/useDevCenterRouter.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../AppContext.js";import D from"../../../../AssetEditor/index.js";import y from"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../LoadingIndicator/LoadingIndicator.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"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/AxisDropdown.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 x from"../../../../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 T from"../../../../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{DEV_CENTER_CLI_APP_ID as I}from"../../../../../constants/devcenter.js";import"../../../../../constants/goals.js";import{SEGMENTS as E,SEGMENT_TO_ASSET_TYPE as B}from"../../../../../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/OffsetWellPickerV4.js";import"../../../../OffsetWellMap/OffsetWellMap.js";import"../../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"uuid";import k from"../../../../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 O from"./RemoveAppButton.js";import R from"./AppDetails.js";import L from"./AppSettingsDialog.module.css.js";function V(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function W(t){for(var o=1;o<arguments.length;o++){var r=null!=arguments[o]?arguments[o]:{};o%2?V(Object(r),!0).forEach((function(o){e(t,o,r[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var F="DC_appSettings",w=p({paper:{minWidth:"50rem",height:"40rem"}})(a),H=p({root:{marginBottom:10}})(m),M="SETTINGS",N="APP DETAILS";function q(r){var i=r.AppSettingsComponent,n=r.app,s=r.appData,p=r.appName,a=r.currentUser,m=r.isMultiRig,A=r.isSettingsDialogHidden,V=r.layoutEnvironment,q=r.onAppRemove,_=r.onCloneDashboard,U=r.onSettingsChange,G=r.segment,Z=r.toggleAppSettingsDialog,z=o(M),K=t(z,2),Y=K[0],J=K[1],Q=o((function(){var e;return W(W({},C(n.settings)),{},{package:n.settings.package||(null==n||null===(e=n.package)||void 0===e?void 0:e.version)})})),X=t(Q,2),$=X[0],ee=X[1],te=o(!0),oe=t(te,2),re=oe[0],ie=oe[1],ne=v(),se=n.id===I,pe=function(t,o){return ee((function(r){return W(W({},r),{},e({},t,o))}))},ae=function(e){return ee((function(t){return W(W({},t),e)}))},me=V&&"asset"===V.type,le=!(m||me&&G===E.COMPLETION);return h(w,{open:!0,onBackdropClick:Z,children:[h(l,{children:[p," settings"]}),S(d,{}),h(c,{children:[h(H,{value:Y,onChange:function(e,t){return J(t)},indicatorColor:"primary",textColor:"primary",children:[S(j,{"data-testid":"".concat(F,"_settingsTab"),label:M,value:M}),S(j,{"data-testid":"".concat(F,"_appDetailsTab"),label:N,value:N}),S(x,{"data-testid":"".concat(F,"_viewAppPageTab"),className:L.viewAppButton,onClick:function(){var e,t;return ne.push((t=null==n||null===(e=n.app)||void 0===e?void 0:e.id,"/apps/".concat(t)))},children:"VIEW APP PAGE"})]}),h(b,{ErrorView:f,app:n,children:[S(k,{open:!re&&!$.package,isShowCancel:!1,title:"Validation failed",text:"You should select the app version to proceed",handleOk:function(){return ie(!0)}}),Y===M&&h(P,{children:[A&&S(T,{}),!A&&h(P,{children:[le&&S(D,{appKey:se?null:n.app.app_key,settings:$,onSettingsChange:ae,appType:B[G],isNullable:me,label:"Active Asset"}),i&&S(i,{app:n,appData:s,settings:$,onSettingChange:pe,onSettingsChange:ae,layoutEnvironment:V,currentUser:a}),S(y,{appId:n.app.id,value:$.package,onChange:function(e){return pe("package",e)}})]})]}),Y===N&&S(R,{appDescription:g(n,"app.description"),appSummary:g(n,"app.summary")})]})]}),h(u,{children:[!A&&q&&S(O,{appName:p,onAppRemove:q}),S(x,{"data-testid":"".concat(F,"_cancel"),variation:"secondary",onClick:Z,children:"Cancel"}),A&&S(x,{variation:"primary",onClick:function(){return _()},children:"Copy Dashboard"}),!A&&S(x,{"data-testid":"".concat(F,"_save"),variation:"primary",onClick:function(){$.package||se?(U($),Z()):ie(!1)},children:"Save"})]})]})}q.propTypes={AppSettingsComponent:r,app:i({}).isRequired,appData:i({}).isRequired,appName:n.isRequired,currentUser:i({}).isRequired,isMultiRig:s.isRequired,isSettingsDialogHidden:s,layoutEnvironment:i({}).isRequired,onAppRemove:r,onCloneDashboard:r,onSettingsChange:r.isRequired,segment:n.isRequired,toggleAppSettingsDialog:r.isRequired},q.defaultProps={AppSettingsComponent:null,isSettingsDialogHidden:!1,onAppRemove:void 0,onCloneDashboard:A};export{q as default};
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{useState as o}from"react";import{func as r,shape as i,string as n,bool as s}from"prop-types";import{withStyles as p,Dialog as a,Tabs as m,DialogTitle as l,Divider as d,DialogContent as c,Tab as j,DialogActions as u}from"@material-ui/core";import{cloneDeep as C,get as g,noop as A}from"lodash";import b from"../../../../ErrorBoundary/ErrorBoundary.js";import f from"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import{jsxs as h,jsx as S,Fragment as P}from"react/jsx-runtime";import"../AppActions/AppActions.css.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import"../AppInfoMessage/AppInfoMessage.js";import"../DevCenterAppView/DevCenterAppView.js";import"../DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../../Modal/CorvaModal.js";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"../../../AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import{useDevCenterRouter as v}from"../../../DevCenterRouterContext/effects/useDevCenterRouter.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../AppContext.js";import D from"../../../../AssetEditor/index.js";import y from"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../LoadingIndicator/LoadingIndicator.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"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/AxisDropdown.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 T from"../../../../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 x from"../../../../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{DEV_CENTER_CLI_APP_ID as I}from"../../../../../constants/devcenter.js";import"../../../../../constants/goals.js";import{SEGMENTS as E,SEGMENT_TO_ASSET_TYPE as B}from"../../../../../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/OffsetWellPickerV4.js";import"../../../../OffsetWellMap/OffsetWellMap.js";import"../../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"uuid";import"../../../../Toaster/Toaster.js";import k from"../../../../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 O from"./RemoveAppButton.js";import R from"./AppDetails.js";import L from"./AppSettingsDialog.module.css.js";function V(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function W(t){for(var o=1;o<arguments.length;o++){var r=null!=arguments[o]?arguments[o]:{};o%2?V(Object(r),!0).forEach((function(o){e(t,o,r[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var F="DC_appSettings",w=p({paper:{minWidth:"50rem",height:"40rem"}})(a),H=p({root:{marginBottom:10}})(m),M="SETTINGS",N="APP DETAILS";function q(r){var i=r.AppSettingsComponent,n=r.app,s=r.appData,p=r.appName,a=r.currentUser,m=r.isMultiRig,A=r.isSettingsDialogHidden,V=r.layoutEnvironment,q=r.onAppRemove,_=r.onCloneDashboard,U=r.onSettingsChange,G=r.segment,Z=r.toggleAppSettingsDialog,z=o(M),K=t(z,2),Y=K[0],J=K[1],Q=o((function(){var e;return W(W({},C(n.settings)),{},{package:n.settings.package||(null==n||null===(e=n.package)||void 0===e?void 0:e.version)})})),X=t(Q,2),$=X[0],ee=X[1],te=o(!0),oe=t(te,2),re=oe[0],ie=oe[1],ne=v(),se=n.id===I,pe=function(t,o){return ee((function(r){return W(W({},r),{},e({},t,o))}))},ae=function(e){return ee((function(t){return W(W({},t),e)}))},me=V&&"asset"===V.type,le=!(m||me&&G===E.COMPLETION);return h(w,{open:!0,onBackdropClick:Z,children:[h(l,{children:[p," settings"]}),S(d,{}),h(c,{children:[h(H,{value:Y,onChange:function(e,t){return J(t)},indicatorColor:"primary",textColor:"primary",children:[S(j,{"data-testid":"".concat(F,"_settingsTab"),label:M,value:M}),S(j,{"data-testid":"".concat(F,"_appDetailsTab"),label:N,value:N}),S(T,{"data-testid":"".concat(F,"_viewAppPageTab"),className:L.viewAppButton,onClick:function(){var e,t;return ne.push((t=null==n||null===(e=n.app)||void 0===e?void 0:e.id,"/apps/".concat(t)))},children:"VIEW APP PAGE"})]}),h(b,{ErrorView:f,app:n,children:[S(k,{open:!re&&!$.package,isShowCancel:!1,title:"Validation failed",text:"You should select the app version to proceed",handleOk:function(){return ie(!0)}}),Y===M&&h(P,{children:[A&&S(x,{}),!A&&h(P,{children:[le&&S(D,{appKey:se?null:n.app.app_key,settings:$,onSettingsChange:ae,appType:B[G],isNullable:me,label:"Active Asset"}),i&&S(i,{app:n,appData:s,settings:$,onSettingChange:pe,onSettingsChange:ae,layoutEnvironment:V,currentUser:a}),S(y,{appId:n.app.id,value:$.package,onChange:function(e){return pe("package",e)}})]})]}),Y===N&&S(R,{appDescription:g(n,"app.description"),appSummary:g(n,"app.summary")})]})]}),h(u,{children:[!A&&q&&S(O,{appName:p,onAppRemove:q}),S(T,{"data-testid":"".concat(F,"_cancel"),variation:"secondary",onClick:Z,children:"Cancel"}),A&&S(T,{variation:"primary",onClick:function(){return _()},children:"Copy Dashboard"}),!A&&S(T,{"data-testid":"".concat(F,"_save"),variation:"primary",onClick:function(){$.package||se?(U($),Z()):ie(!1)},children:"Save"})]})]})}q.propTypes={AppSettingsComponent:r,app:i({}).isRequired,appData:i({}).isRequired,appName:n.isRequired,currentUser:i({}).isRequired,isMultiRig:s.isRequired,isSettingsDialogHidden:s,layoutEnvironment:i({}).isRequired,onAppRemove:r,onCloneDashboard:r,onSettingsChange:r.isRequired,segment:n.isRequired,toggleAppSettingsDialog:r.isRequired},q.defaultProps={AppSettingsComponent:null,isSettingsDialogHidden:!1,onAppRemove:void 0,onCloneDashboard:A};export{q as default};
|
package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/slicedToArray";import{useState as e}from"react";import{Dialog as o,DialogTitle as r,DialogContent as i,DialogContentText as s,DialogActions as p}from"@material-ui/core";import n from"prop-types";import{jsxs as m,Fragment as a,jsx as l}from"react/jsx-runtime";import"../AppActions/AppActions.css.js";import"./AppSettingsDialog.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import"../AppInfoMessage/AppInfoMessage.js";import"../DevCenterAppView/DevCenterAppView.js";import"../DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../../Modal/CorvaModal.js";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"../../../AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../AppContext.js";import"../../../../AssetEditor/index.js";import"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../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/AxisDropdown.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 d from"../../../../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/OffsetWellPickerV4.js";import"../../../../OffsetWellMap/OffsetWellMap.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";var j={elevation:1};function c(n){var c=n.appName,C=n.onAppRemove,u=e(!1),A=t(u,2),b=A[0],P=A[1],h=function(){return P(!1)};return m(a,{children:[l(d,{"data-testid":"".concat("DC_removeApp","_button"),onClick:function(){return P(!0)},variation:"dangerSecondary",children:"REMOVE APP"}),m(o,{open:b,onClose:h,PaperProps:j,children:[m(r,{"data-testid":"".concat("DC_removeApp","_title"),children:["Remove ",c]}),l(i,{children:l(s,{children:"Are you sure you want to remove this app?"})}),m(p,{children:[l(d,{"data-testid":"".concat("DC_removeApp","_cancel"),onClick:h,children:"Cancel"}),l(d,{"data-testid":"".concat("DC_removeApp","_confirm"),onClick:function(){return C()},variation:"dangerPrimary",children:"Remove"})]})]})]})}c.propTypes={appName:n.string.isRequired,onAppRemove:n.func.isRequired};export{c as default};
|
|
1
|
+
import t from"@babel/runtime/helpers/slicedToArray";import{useState as e}from"react";import{Dialog as o,DialogTitle as r,DialogContent as i,DialogContentText as s,DialogActions as p}from"@material-ui/core";import n from"prop-types";import{jsxs as m,Fragment as a,jsx as l}from"react/jsx-runtime";import"../AppActions/AppActions.css.js";import"./AppSettingsDialog.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import"../AppInfoMessage/AppInfoMessage.js";import"../DevCenterAppView/DevCenterAppView.js";import"../DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../../Modal/CorvaModal.js";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"../../../AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../AppContext.js";import"../../../../AssetEditor/index.js";import"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../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/AxisDropdown.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 d from"../../../../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/OffsetWellPickerV4.js";import"../../../../OffsetWellMap/OffsetWellMap.js";import"../../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"uuid";import"../../../../Toaster/Toaster.js";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";var j={elevation:1};function c(n){var c=n.appName,C=n.onAppRemove,u=e(!1),A=t(u,2),b=A[0],P=A[1],h=function(){return P(!1)};return m(a,{children:[l(d,{"data-testid":"".concat("DC_removeApp","_button"),onClick:function(){return P(!0)},variation:"dangerSecondary",children:"REMOVE APP"}),m(o,{open:b,onClose:h,PaperProps:j,children:[m(r,{"data-testid":"".concat("DC_removeApp","_title"),children:["Remove ",c]}),l(i,{children:l(s,{children:"Are you sure you want to remove this app?"})}),m(p,{children:[l(d,{"data-testid":"".concat("DC_removeApp","_cancel"),onClick:h,children:"Cancel"}),l(d,{"data-testid":"".concat("DC_removeApp","_confirm"),onClick:function(){return C()},variation:"dangerPrimary",children:"Remove"})]})]})]})}c.propTypes={appName:n.string.isRequired,onAppRemove:n.func.isRequired};export{c as default};
|
package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js
CHANGED
|
@@ -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{jsx as i}from"react/jsx-runtime";import"../AppActions/AppActions.css.js";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/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"../../../AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";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/AxisDropdown.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"../../../../OffsetWellMap/OffsetWellMap.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,P=t.openIntercom,b=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,y=p.EMPTY_STATES,x=u.hasProductSubscription?h:T,D=x.title,I=x.subtitle;return i(s,{app:d,children:i(p,{title:D,subtitle:I,state:y.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)&&b===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)||b!==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)&&b===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:P}),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{jsx as i}from"react/jsx-runtime";import"../AppActions/AppActions.css.js";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/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"../../../AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";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/AxisDropdown.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"../../../../OffsetWellMap/OffsetWellMap.js";import"../../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"uuid";import"../../../../Toaster/Toaster.js";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,P=t.openIntercom,b=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 T=p.APP_MESSAGES,E=T.appNotSubscribed,h=T.appNotSubscribedForAsset,y=p.EMPTY_STATES,x=u.hasProductSubscription?h:E,D=x.title,I=x.subtitle;return i(s,{app:d,children:i(p,{title:D,subtitle:I,state:y.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)&&b===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)||b!==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)&&b===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:P}),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 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import n from'./../../../../../ext-esm/style-inject/dist/style-inject.es.js';var o={menuIcon:"NonPriorityMenus_menuIcon__mFVEH",containerDropdownActionMaximize:"NonPriorityMenus_containerDropdownActionMaximize__39rRv",iconButton:"NonPriorityMenus_iconButton__h0M6N"};n(".NonPriorityMenus_menuIcon__mFVEH{margin-right:4px!important;padding:0!important}.NonPriorityMenus_containerDropdownActionMaximize__39rRv{outline:none}.NonPriorityMenus_iconButton__h0M6N{color:var(--palette-primary-text-6)!important;padding:6px!important}.NonPriorityMenus_iconButton__h0M6N:hover{color:var(--palette-primary-text-1)!important}");export{o as default};
|